67 lines
2 KiB
PHP
67 lines
2 KiB
PHP
<?php
|
|
declare(strict_types=1);
|
|
/**
|
|
* The license view file of upgrade module of ZenTaoPMS.
|
|
* @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
|
|
* @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
|
|
* @author Mengyi Liu <liumengyi@easycorp.ltd>
|
|
* @package upgrade
|
|
* @link https://www.zentao.net
|
|
*/
|
|
namespace zin;
|
|
|
|
set::zui(true);
|
|
|
|
jsVar('copySuccess', $lang->upgrade->copySuccess);
|
|
jsVar('copyFail', $lang->upgrade->copyFail);
|
|
|
|
$cmd = strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' ? $lang->upgrade->createWinFile : $lang->upgrade->createLinuxFile;
|
|
$isEn = $app->getClientLang() == 'en';
|
|
|
|
div
|
|
(
|
|
setStyle(['padding' => '3rem 4rem', 'height' => '100vh']),
|
|
col
|
|
(
|
|
setClass('rounded-md bg-white gap-5 m-auto'),
|
|
setStyle(['padding' => '1.5rem 2rem', 'width' => '50rem']),
|
|
div
|
|
(
|
|
setClass('text-xl font-medium'),
|
|
$lang->upgrade->setStatusFileTitle
|
|
),
|
|
div
|
|
(
|
|
setClass('pre-wrap break-all break-words rounded-md bg-gray-100 px-8 py-6'),
|
|
ul
|
|
(
|
|
li(html(sprintf($cmd, $statusFile))),
|
|
li(html(sprintf($lang->upgrade->deleteStatusFile, $statusFile)))
|
|
)
|
|
),
|
|
checkbox
|
|
(
|
|
on::change('confirmStatusFile'),
|
|
$lang->upgrade->confirmStatusFile
|
|
),
|
|
row
|
|
(
|
|
setClass('justify-center gap-4'),
|
|
a
|
|
(
|
|
setClass('btn success ' . ($isEn ? 'w-28' : 'w-24')),
|
|
set::href('javascript:copyCommand("#command");'),
|
|
$lang->upgrade->copyCommand
|
|
),
|
|
a
|
|
(
|
|
setID('confirm'),
|
|
setClass('btn primary disabled ' . ($isEn ? 'w-28' : 'w-24')),
|
|
$lang->upgrade->continue
|
|
)
|
|
)
|
|
)
|
|
);
|
|
|
|
render('pagebase');
|