consistency.html.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /**
  3. * The consistency 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 Tingting Dai <daitingting@easycorp.ltd>
  7. * @package upgrade
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. set::zui(true);
  12. jsVar('version', (string)$version);
  13. jsVar('execFixSQL', !empty($alterSQL) && !$hasError);
  14. div
  15. (
  16. setStyle(['padding' => '3rem 4rem', 'height' => '100vh', 'overflow' => 'hidden']),
  17. col
  18. (
  19. setClass('container rounded-md bg-white gap-5'),
  20. setStyle(['padding' => '1.5rem 2rem', 'max-height' => '100%']),
  21. div(setClass('text-xl font-medium'), $lang->upgrade->consistency),
  22. div
  23. (
  24. $hasError ? $lang->upgrade->noticeErrSQL : $lang->upgrade->showSQLLog,
  25. $hasError ? null : span(setID('progressBox'))
  26. ),
  27. div
  28. (
  29. setID('logBox'),
  30. setClass('pre rounded-md bg-gray-100 overflow-x-hidden overflow-y-auto px-8 py-6'),
  31. setStyle(['max-height' => 'calc(100% - 5rem)']),
  32. $hasError ? html($alterSQL . ';') : null
  33. ),
  34. div
  35. (
  36. setClass('text-center'),
  37. btn
  38. (
  39. setID('continueBtn'),
  40. setClass('px-10'),
  41. set::type('primary disabled'),
  42. $hasError ? $lang->refresh : $lang->upgrade->continue
  43. )
  44. )
  45. )
  46. );
  47. render('pagebase');