about.html.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <?php
  2. /**
  3. * The about view file of misc 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 Tingting Dai <daitingting@easycorp.ltd>
  7. * @package misc
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. set::title(' ');
  12. set::size('lg');
  13. $zentaoItems = array();
  14. foreach($lang->misc->zentao as $label => $groupItems)
  15. {
  16. if(strpos(',labels,icons,version,others,', ",$label,") !== false) continue;
  17. $api = $this->app->getClientLang() == 'en' ? $config->misc->enApi : $config->misc->api;
  18. $liItems = array();
  19. foreach($groupItems as $groupItem => $groupLabel)
  20. {
  21. $bizLink = $this->app->getClientLang() == 'en' ? 'https://www.zentao.pm' : 'https://www.zentao.net/page/enterprise.html';
  22. $link = $groupItem == 'bizversion' ? $bizLink : "{$api}/goto.php?item={$groupItem}&from=about" ;
  23. $liItems[] = h::li
  24. (
  25. setStyle('line-height', '24px'),
  26. a
  27. (
  28. setID($groupItem),
  29. set('href', $link),
  30. set('target', '_blank'),
  31. set('class', ($groupItem == 'zentaotrain' || $groupItem == 'bizversion' ? 'text-danger' : '')),
  32. $groupLabel
  33. )
  34. );
  35. }
  36. $zentaoItems[] = panel
  37. (
  38. set::className('w-1/4 mx-3'),
  39. set::title($lang->misc->zentao->labels[$label]),
  40. set::titleClass('strong'),
  41. set::headingClass('gray-200'),
  42. set::bodyClass('pd-10px'),
  43. h::ul
  44. (
  45. set::className('pl-5 mb-2'),
  46. setStyle('list-style-type', 'disc'),
  47. $liItems
  48. )
  49. );
  50. }
  51. h::table
  52. (
  53. set::className('table borderless'),
  54. h::tr
  55. (
  56. h::td
  57. (
  58. set::className('text-center'),
  59. zui::width('200px'),
  60. img
  61. (
  62. set('src', $config->webRoot . 'theme/default/images/main/' . $lang->logoImg)
  63. ),
  64. h4
  65. (
  66. set::className('text-center my-2 font-bold'),
  67. trim($config->visions, ',') == 'lite' ? $lang->liteName . ' ' . $config->liteVersion : sprintf($lang->misc->zentao->version, $config->version)
  68. )
  69. ),
  70. h::td
  71. (
  72. div
  73. (
  74. set::className('flex flex-nowrap justify-start'),
  75. $zentaoItems
  76. )
  77. )
  78. ),
  79. h::tr
  80. (
  81. h::td
  82. (
  83. set::className('copyright text-right align-middle'),
  84. set('colspan', 2),
  85. div(set::className('pull-left'), html($lang->designedByAIUX)),
  86. div
  87. (
  88. set::className('pull-right'),
  89. html($lang->misc->copyright)
  90. )
  91. )
  92. )
  93. );
  94. render('modalDialog');