to18guide.html.php 5.1 KB

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