browse.html.php 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. namespace zin;
  3. if(!$hasAuditcl)
  4. {
  5. $currentModuleName = $lang->auditcl->qa;
  6. include('../../common/ext/ui/closefeaturenotice.html.php');
  7. return;
  8. }
  9. featureBar
  10. (
  11. set::current('all'),
  12. set::linkParams("groupID={$groupID}&processID={$processID}&browseType={key}&param={$param}&orderBy={$orderBy}&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}"),
  13. li(searchToggle(set::module('auditcl'), set::open($browseType == 'bysearch')))
  14. );
  15. $canBatchCreate = hasPriv('auditcl', 'batchCreate');
  16. $batchCreateLink = $this->createLink('auditcl', 'batchCreate', "groupID=$groupID");
  17. $batchCreateItem = array('text' => $lang->auditcl->batchCreate, 'url' => $batchCreateLink);
  18. toolbar
  19. (
  20. $canBatchCreate ? item(set($batchCreateItem + array('class' => 'btn primary', 'icon' => 'plus'))) : null
  21. );
  22. sidebar
  23. (
  24. moduleMenu
  25. (
  26. set::modules($moduleTree),
  27. set::activeKey($processID),
  28. set::allText($lang->auditcl->process),
  29. set::settingLink(''),
  30. set::showDisplay(false),
  31. set::closeLink(createLink('auditcl', 'browse', "groupID={$groupID}&processID=0")),
  32. set::app($app->tab)
  33. )
  34. );
  35. $canBatchEdit = hasPriv('auditcl', 'batchEdit');
  36. $footToolbar = array
  37. (
  38. array
  39. (
  40. 'type' => 'btn-group',
  41. 'items' => array
  42. (
  43. array
  44. (
  45. 'text' => $lang->edit,
  46. 'className' => 'secondary batch-btn',
  47. 'disabled' => !$canBatchEdit,
  48. 'data-page' => 'batch',
  49. 'data-formaction' => createLink('auditcl', 'batchEdit', "groupID=$groupID"),
  50. )
  51. )
  52. )
  53. );
  54. $cols = $config->auditcl->dtable->fieldList;
  55. $data = initTableData($auditclList, $cols);
  56. dtable
  57. (
  58. set::id('auditcls'),
  59. set::userMap($users),
  60. set::cols($cols),
  61. set::data($data),
  62. set::sortLink($this->createLink('auditcl', 'browse', "groupID=$groupID&processID=$processID&browseType=$browseType&queryID=myQueryID&orderBy={name}_{sortType}")),
  63. set::orderBy($orderBy),
  64. set::checkable(true),
  65. set::footPager(usePager()),
  66. set::footToolbar($footToolbar)
  67. );