step4.html.php 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <?php
  2. /**
  3. * The step4 view file of install 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 Mengyi Liu <liumengyi@easycorp.ltd>
  7. * @package install
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. set::zui(true);
  12. if(isset($error))
  13. {
  14. h::js("zui.Modal.alert({size: '480', message: '{$error}'}).then((res) => {openUrl('" . inlink('step3') . "')});");
  15. render('pagebase');
  16. return;
  17. }
  18. $trs = array();
  19. foreach($disabledFeatures as $feature)
  20. {
  21. if(is_array($feature) && empty($disabledProjectFeatures)) continue;
  22. if(is_string($feature) && !in_array($feature, $config->custom->allFeatures)) continue;
  23. $trs[] = h::tr
  24. (
  25. h::td
  26. (
  27. setClass('text-left'),
  28. is_array($feature) && !empty($disabledProjectFeatures) ? implode($lang->comma, $disabledProjectFeatures) : $lang->custom->features[$feature]
  29. ),
  30. h::td
  31. (
  32. icon
  33. (
  34. setClass('text-danger font-bold'),
  35. 'ban-circle'
  36. )
  37. ),
  38. h::td
  39. (
  40. icon
  41. (
  42. setClass('text-success font-bold'),
  43. 'check'
  44. )
  45. )
  46. );
  47. }
  48. foreach($config->custom->allFeatures as $feature)
  49. {
  50. if(in_array($feature, $disabledFeatures)) continue;
  51. if($feature == 'projectDetail' && empty($enabledProjectFeatures)) continue;
  52. $trs[] = h::tr
  53. (
  54. h::td
  55. (
  56. setClass('text-left'),
  57. ($feature == 'projectDetail' && !empty($enabledProjectFeatures)) ? implode($lang->comma, $enabledProjectFeatures) : $lang->custom->features[$feature]
  58. ),
  59. h::td
  60. (
  61. icon
  62. (
  63. setClass('text-success font-bold'),
  64. 'check'
  65. )
  66. ),
  67. h::td
  68. (
  69. icon
  70. (
  71. setClass('text-success font-bold'),
  72. 'check'
  73. )
  74. )
  75. );
  76. }
  77. div
  78. (
  79. setID('main'),
  80. setClass('flex justify-center'),
  81. div
  82. (
  83. setID('mainContent'),
  84. setClass('px-1 mt-2 w-full max-w-7xl'),
  85. formPanel
  86. (
  87. setClass('bg-canvas m-auto pb-8'),
  88. set::title($lang->install->selectMode),
  89. set::titleClass('text-xl'),
  90. set::actions(array()),
  91. on::click('.selectUsageBtn', 'selectUsage'),
  92. to::heading
  93. (
  94. setClass('justify-start gap-1'),
  95. span
  96. (
  97. setClass('text-gray'),
  98. icon
  99. (
  100. setClass('text-warning px-1'),
  101. 'help'
  102. ),
  103. $lang->upgrade->remarkDesc
  104. )
  105. ),
  106. h::table
  107. (
  108. setClass('table bordered text-center'),
  109. h::thead
  110. (
  111. h::tr
  112. (
  113. h::th
  114. (
  115. width('1/3'),
  116. $lang->custom->mode
  117. ),
  118. h::td
  119. (
  120. width('1/3'),
  121. $lang->custom->modeList['light']
  122. ),
  123. h::td
  124. (
  125. width('1/3'),
  126. $lang->custom->modeList['ALM']
  127. )
  128. )
  129. ),
  130. h::tbody
  131. (
  132. h::tr(h::td(setClass('text-left'), $lang->custom->usage), h::td($lang->custom->modeIntroductionList['light']), h::td($lang->custom->modeIntroductionList['ALM'])),
  133. $trs,
  134. h::tr
  135. (
  136. h::td
  137. (
  138. setClass('select-usage font-bold'),
  139. $lang->custom->selectUsage
  140. ),
  141. h::td
  142. (
  143. btn
  144. (
  145. set::id('light'),
  146. set::btnType('submit'),
  147. setClass('px-4 selectUsageBtn'),
  148. $lang->custom->useLight
  149. )
  150. ),
  151. h::td
  152. (
  153. btn
  154. (
  155. set::id('ALM'),
  156. set::btnType('submit'),
  157. setClass('px-4 selectUsageBtn'),
  158. $lang->custom->useALM
  159. )
  160. )
  161. )
  162. )
  163. ),
  164. contactUs(),
  165. input
  166. (
  167. set::name('mode'),
  168. set::type('hidden')
  169. )
  170. )
  171. )
  172. );
  173. render('pagebase');