command.html.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. /**
  3. * The delete files view file of upgrade module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2025 禅道软件(青岛)集团有限公司 (ZenTao Software (Qingdao) Co., Ltd. www.chandao.com)
  6. * @license ZPL (http://zpl.pub/page/zplv12.html)
  7. * @author Gang Liu <liugang@chandao.com>
  8. * @package upgrade
  9. * @version $Id$
  10. * @link https://www.zentao.net
  11. */
  12. namespace zin;
  13. set::zui(true);
  14. jsVar('copySuccess', $lang->upgrade->copySuccess);
  15. jsVar('copyFail', $lang->upgrade->copyFail);
  16. div
  17. (
  18. setStyle(['padding' => '3rem 4rem', 'height' => '100vh', 'overflow' => 'hidden']),
  19. col
  20. (
  21. setClass('rounded-md bg-white gap-5 m-auto'),
  22. setStyle(['padding' => '1.5rem 2rem', 'width' => '50rem']),
  23. row
  24. (
  25. setClass('items-center gap-4'),
  26. icon
  27. (
  28. setClass('text-2xl text-warning'),
  29. 'exclamation-sign'
  30. ),
  31. div
  32. (
  33. setClass('text-xl font-medium'),
  34. $lang->upgrade->notice
  35. )
  36. ),
  37. div
  38. (
  39. setID('command'),
  40. setClass('pre-wrap break-all break-words rounded-md bg-gray-100 px-8 py-6'),
  41. setStyle('height', 'calc(100% - 8rem)'),
  42. $command
  43. ),
  44. div
  45. (
  46. setClass('text-warning'),
  47. $tips
  48. ),
  49. row
  50. (
  51. setClass('justify-center gap-4'),
  52. a
  53. (
  54. setClass('btn success w-24'),
  55. set::href('javascript:copyCommand("#command");'),
  56. $lang->upgrade->copyCommand
  57. ),
  58. a
  59. (
  60. setClass('btn primary w-24'),
  61. set::href('javascript:loadCurrentPage()'),
  62. $lang->refresh
  63. )
  64. )
  65. )
  66. );
  67. render('pagebase');