moveextfiles.html.php 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?php
  2. /**
  3. * The moveextfiles 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. jsVar('result', $result);
  13. $checkList = array();
  14. if($result == 'success')
  15. {
  16. foreach($files as $file)
  17. {
  18. $checkList[] = checkbox
  19. (
  20. on::click('checkFileClick'),
  21. setID($file),
  22. set::name("files[$file]"),
  23. set::text($file),
  24. set::checked(true)
  25. );
  26. }
  27. }
  28. div
  29. (
  30. setID('main'),
  31. div
  32. (
  33. setID('mainContent'),
  34. formPanel
  35. (
  36. set::formID('moveExtFileForm'),
  37. setClass('bg-canvas'),
  38. width('1000px'),
  39. set::title($lang->upgrade->compatibleEXT),
  40. set::actions(array()),
  41. set::target('_self'),
  42. $result == 'success' ? cell
  43. (
  44. setClass('move-extfile-tip text-secondary p-4 flex flex-wrap gap-3'),
  45. html($lang->upgrade->moveExtFileTip)
  46. ) : null,
  47. $result == 'success' ? cell
  48. (
  49. checkbox
  50. (
  51. on::click('checkAllClick'),
  52. setID('checkAll'),
  53. set::name('checkAll'),
  54. set::text($lang->upgrade->fileName),
  55. set::checked(true)
  56. )
  57. ) : null,
  58. cell
  59. (
  60. setClass('extfiles'),
  61. $result == 'success' ? $checkList : div
  62. (
  63. h::code
  64. (
  65. setClass('bg-surface'),
  66. $command
  67. )
  68. )
  69. ),
  70. $result == 'success' ? cell
  71. (
  72. setClass('flex justify-center'),
  73. btn
  74. (
  75. setClass('px-6'),
  76. on::click('submit'),
  77. set::type('primary'),
  78. set::text($lang->upgrade->next)
  79. )
  80. ) : cell
  81. (
  82. $lang->upgrade->moveEXTFileFail,
  83. btn
  84. (
  85. on::click('loadCurrentPage()'),
  86. setClass('px-6 ml-4'),
  87. set::text($lang->refresh)
  88. )
  89. )
  90. )
  91. )
  92. );
  93. render('pagebase');