browsestoryconcept.html.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /**
  3. * The browseStoryConcept view file of custom 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 Shujie Tian<tianshujie@easycorp.ltd>
  7. * @package custom
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. jsVar('defaultKey', $config->custom->URSR);
  12. $canCreate = hasPriv('custom', 'setstoryconcept');
  13. if($canCreate) $createItem = array('icon' => 'plus', 'class' => 'primary', 'text' => $lang->custom->setStoryConcept, 'url' => $this->createLink('custom', 'setstoryconcept'), 'data-toggle' => 'modal');
  14. $tableData = initTableData($URSRList, $config->custom->browseStoryConcept->dtable->fieldList);
  15. include 'sidebar.html.php';
  16. div
  17. (
  18. setClass('flex'),
  19. $sidebarMenu,
  20. div
  21. (
  22. setClass('story-concept-panel flex-auto col ml-4'),
  23. div
  24. (
  25. setClass('panel-header flex-auto'),
  26. div
  27. (
  28. setClass('flex-auto text-md font-bold'),
  29. $lang->custom->product->fields['browsestoryconcept']
  30. ),
  31. toolbar
  32. (
  33. !empty($createItem) ? item(set($createItem)) : null
  34. )
  35. ),
  36. dtable
  37. (
  38. set::cols($config->custom->browseStoryConcept->dtable->fieldList),
  39. set::data($tableData),
  40. set::onRenderCell(jsRaw('window.renderCell'))
  41. )
  42. )
  43. );
  44. /* ====== Render page ====== */
  45. render();