manageextmember.html.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <?php
  2. /**
  3. * The license view file of admin module of ZenTaoPMS.
  4. * @copyright Copyright 2009-2024 禅道软件(青岛)有限公司(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@chandao.com>
  7. * @package admin
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. modalHeader
  12. (
  13. set::title($lang->admin->authorUser),
  14. set::entityText($lang->admin->extensionList[$extCode])
  15. );
  16. jsVar('licenseCount', zget($extProperties, 'user', 0));
  17. jsVar('extGrantCountError', $lang->admin->extGrantCountError);
  18. /* zin: Define the sidebar in main content. */
  19. div
  20. (
  21. setClass('alert'),
  22. sprintf($lang->admin->extGrantCountNotice, zget($extProperties, 'user', 0), count($extAuthors))
  23. );
  24. div
  25. (
  26. setClass('w-full flex mt-3'),
  27. cell
  28. (
  29. setClass('w-1/5'),
  30. moduleMenu(set(array(
  31. 'modules' => $deptTree,
  32. 'activeKey' => $deptID,
  33. 'closeLink' => $this->createLink('admin', 'manageExtMember', "extCode={$extCode}"),
  34. 'showDisplay' => false,
  35. 'app' => $app->tab,
  36. 'toggleSidebar' => false
  37. )))
  38. ),
  39. cell
  40. (
  41. setClass('w-4/5'),
  42. formPanel
  43. (
  44. setID('manageExtMember'),
  45. set::submitBtnText($lang->save),
  46. set::formClass('border-0'),
  47. $authorUsers ? formRow
  48. (
  49. set::className('group-user-row'),
  50. formGroup
  51. (
  52. set::className('items-center row-label'),
  53. setStyle(array('align-items' => 'center')),
  54. set::label($lang->admin->authorUser),
  55. set::width('1/10'),
  56. checkbox
  57. (
  58. set::id('allInsideChecker'),
  59. set::name('allInsideChecker'),
  60. set::className('check-all'),
  61. set::checked(true)
  62. )
  63. ),
  64. formGroup
  65. (
  66. checkList
  67. (
  68. setClass('flex-wrap w-full h-full group-user-box'),
  69. set::name('members[]'),
  70. set::items($authorUsers),
  71. set::value(implode(',', array_keys($authorUsers))),
  72. set::inline(true)
  73. )
  74. )
  75. ) : null,
  76. $authorUsers ? h::hr() : null,
  77. !empty($noAuthorUsers) ? formRow
  78. (
  79. set::className('group-user-row'),
  80. formGroup
  81. (
  82. set::className('items-center row-label'),
  83. setStyle(array('align-items' => 'center')),
  84. set::label($lang->admin->noAuthorUser),
  85. set::width('1/10'),
  86. checkbox
  87. (
  88. set::id('allOtherChecker'),
  89. set::name('allOtherChecker'),
  90. set::className('check-all')
  91. )
  92. ),
  93. formGroup
  94. (
  95. checkList
  96. (
  97. setClass('flex-wrap w-full h-full group-user-box'),
  98. set::name('members[]'),
  99. set::items($noAuthorUsers),
  100. set::inline(true)
  101. ),
  102. formHidden('foo', '')
  103. )
  104. ) : null
  105. )
  106. )
  107. );