afterexec.html.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <?php
  2. /**
  3. * The afterexec 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. $hideHome = false;
  13. $finish = array();
  14. foreach($needProcess as $processKey => $processType)
  15. {
  16. $finish[$processKey] = false;
  17. if($processType == 'notice') continue;
  18. $hideHome = true;
  19. }
  20. jsVar('window.finish', $finish);
  21. jsVar('window.needProcess', $needProcess);
  22. jsVar('window.processLink', inlink('afterExec', "fromVersion=$fromVersion&processed=yes&skipMoveFile=yes"));
  23. $tips = array();
  24. if(!empty($needProcess['changeEngine']))
  25. {
  26. $tips[] = div
  27. (
  28. setClass('flex w-full justify-center items-center'),
  29. icon
  30. (
  31. setClass('text-warning px-1'),
  32. 'help'
  33. ),
  34. $lang->upgrade->needChangeEngine
  35. );
  36. }
  37. if(!empty($needProcess['search']))
  38. {
  39. $tips[] = div
  40. (
  41. setClass('flex w-full justify-center items-center'),
  42. icon
  43. (
  44. setClass('text-warning px-1'),
  45. 'help'
  46. ),
  47. $lang->upgrade->needBuild4Add
  48. );
  49. }
  50. if(!empty($needProcess['updateFile']))
  51. {
  52. $tips[] = div
  53. (
  54. setClass('flex flex-wrap w-full'),
  55. row
  56. (
  57. setClass('w-full justify-center items-center'),
  58. icon
  59. (
  60. setClass('text-warning px-1'),
  61. 'help'
  62. ),
  63. $lang->upgrade->updateFile
  64. ),
  65. col
  66. (
  67. setClass('w-full justify-center text-center'),
  68. setID('resultBox')
  69. )
  70. );
  71. }
  72. div
  73. (
  74. setStyle(['padding' => '3rem 4rem', 'height' => '100vh', 'overflow' => 'hidden']),
  75. col
  76. (
  77. setClass('container rounded-md bg-white gap-5'),
  78. setStyle(['padding' => '1.5rem 2rem']),
  79. cell
  80. (
  81. setClass('flex justify-center items-end h-28 mb-4'),
  82. icon
  83. (
  84. setClass('text-primary'),
  85. set::size('100'),
  86. 'checked'
  87. )
  88. ),
  89. cell
  90. (
  91. setClass('flex justify-center items-start font-bold text-lg h-12'),
  92. html($lang->upgrade->success)
  93. ),
  94. $showPrivTips ? cell
  95. (
  96. setClass('flex justify-center priv-tips'),
  97. $lang->upgrade->addTraincoursePrivTips
  98. ) : null,
  99. cell
  100. (
  101. setClass('flex justify-center'),
  102. btn
  103. (
  104. setClass('px-8'),
  105. setID('tohome'),
  106. set::target('_self'),
  107. set::url('index.php'),
  108. set::type('primary'),
  109. $lang->upgrade->tohome
  110. )
  111. )
  112. ),
  113. row
  114. (
  115. setClass('flex-wrap pt-6 text-gray gap-y-1'),
  116. $tips
  117. )
  118. );
  119. render('pagebase');