browse.html.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * The browse file of mail module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
  6. * @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  7. * @author chen.tao <chentao@easycorp.ltd>
  8. * @package mail
  9. * @link https://www.zentao.net
  10. */
  11. namespace zin;
  12. $config->mail->browse->dtable->fieldList['toList']['map'] = $users;
  13. $canBatchDelete = hasPriv('mail', 'batchDelete');
  14. $queueList = initTableData($queueList, $config->mail->browse->dtable->fieldList);
  15. /* ZIN: layout. */
  16. panel
  17. (
  18. set::title($lang->mail->browse),
  19. dtable
  20. (
  21. set::cols($config->mail->browse->dtable->fieldList),
  22. set::data($queueList),
  23. set::userMap($users),
  24. set::checkable($canBatchDelete),
  25. set::onRenderCell(jsRaw('window.renderCell')),
  26. $canBatchDelete ? set::footToolbar(array
  27. (
  28. 'type' => 'btn-group',
  29. 'items' => array(array
  30. (
  31. 'text' => $lang->delete,
  32. 'btnType' => 'secondary',
  33. 'className' => 'batch-btn',
  34. 'data-on' => 'click',
  35. 'data-call' => 'onClickBatchDelete',
  36. 'data-params' => 'event',
  37. 'data-formaction' => createLink('mail', 'batchDelete'),
  38. 'data-confirm' => $lang->mail->confirmDelete
  39. ))
  40. )) : null,
  41. set::footPager(usePager())
  42. )
  43. );