Files
EasySoft-ZenTaoPMS/module/instance/view/upgrade.html.php
2023-07-31 08:02:25 +00:00

33 lines
1.5 KiB
PHP

<?php
/**
* The edit view file of instance module of QuCheng.
*
* @copyright Copyright 2021-2022 北京渠成软件有限公司(BeiJing QurCheng Software Co,LTD, www.qucheng.com)
* @license ZPL (http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
* @author Jianhua Wang <wangjianhua@easycorp.ltd>
* @package instance
* @version $Id$
* @link https://www.qucheng.com
*/
?>
<?php include $this->app->getModuleRoot() . '/common/view/header.html.php';?>
<?php js::set('instanceNotices', $lang->instance->notices);?>
<div id='mainContent' class='main-content'>
<div class='main-header'>
<h2><?php echo "{$lang->instance->upgrade} : {$instance->name}";?></h2>
</div>
<form method='post' action='<?php echo helper::createLink("instance", "upgrade", "id=$instance->id");?>' id='upgradeForm'>
<?php if(empty($instance->latestVersion)):?>
<p class='modal-message text-center'><?php echo $lang->instance->noHigherVersion;?></p>
<?php else:?>
<p class='modal-message text-center'><?php echo $lang->instance->notices['confirmUpgrade'];?></p>
<?php echo html::hidden('confirm', 'yes');?>
<div class='text-center'>
<button type="button" class="btn btn-default btn-wide" data-dismiss="modal"><?php echo $lang->cancel;?></button>
<?php echo html::submitButton($lang->instance->upgrade);?>
</div>
<?php endif;?>
</form>
</div>
<?php include $this->app->getModuleRoot() . '/common/view/footer.html.php';?>