browse.html.php 1.1 KB

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * The browse view file of productplan module of ZenTaoPMS.
  4. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
  5. * @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  6. * @author zhouxin <zhouxin@easycorp.ltd>
  7. * @package productplan
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. $privs = array
  12. (
  13. 'canViewPlan' => common::hasPriv($app->rawModule, 'view'),
  14. 'canStartPlan' => common::hasPriv($app->rawModule, 'start'),
  15. 'canClosePlan' => common::hasPriv($app->rawModule, 'close'),
  16. 'canFinishPlan' => common::hasPriv($app->rawModule, 'finish'),
  17. 'canActivatePlan' => common::hasPriv($app->rawModule, 'activate')
  18. );
  19. jsVar('productID', $productID);
  20. jsVar('productplanLang', $lang->productplan);
  21. jsVar('privs', $privs);
  22. jsVar('rawModule', $app->rawModule);
  23. jsVar('currentTab', $app->tab);
  24. jsVar('checkedSummary', $lang->productplan->checkedSummary);
  25. include("browseby{$viewType}.html.php");