ajaxdisplay.html.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. /**
  3. * The ajaxcustom view file of datatable 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 zhujinyong<zhujinyong@easycorp.ltd>
  8. * @package zin
  9. * @link https://www.zentao.net
  10. */
  11. namespace zin;
  12. global $lang, $app;
  13. $app->loadLang('datatable');
  14. $showModule = isset($config->$currentModule->$currentMethod->showModule) ? $config->$currentModule->$currentMethod->showModule : '0';
  15. $showAllModule = isset($config->execution->task->allModule) ? $config->execution->task->allModule : 0;
  16. set::title($lang->datatable->displaySetting);
  17. form
  18. (
  19. set::url(helper::createLink('datatable', 'ajaxSave')),
  20. set::labelWidth('12em'),
  21. input
  22. (
  23. set('class', 'hidden'),
  24. set::name('target'),
  25. set::value($datatableID)
  26. ),
  27. input
  28. (
  29. set('class', 'hidden'),
  30. set::name('name'),
  31. set::value('showModule')
  32. ),
  33. formGroup
  34. (
  35. set::label($lang->datatable->showModule),
  36. radiolist
  37. (
  38. set::name('value'),
  39. set::inline(true),
  40. set::items($lang->datatable->showModuleList),
  41. set::value($showModule)
  42. )
  43. ),
  44. !empty($execution->multiple) || !empty($execution->hasProduct) ? formGroup
  45. (
  46. set::label($lang->datatable->showAllModule),
  47. radiolist
  48. (
  49. set::name('allModule'),
  50. set::inline(true),
  51. set::items($lang->datatable->showAllModuleList),
  52. set::value($showAllModule)
  53. )
  54. ) : null,
  55. input
  56. (
  57. set('class', 'hidden'),
  58. set::name('currentModule'),
  59. set::value($currentModule)
  60. ),
  61. input
  62. (
  63. set('class', 'hidden'),
  64. set::name('currentMethod'),
  65. set::value($currentMethod)
  66. ),
  67. set::actions(array('submit'))
  68. );
  69. render();