* Finish task #41768.

This commit is contained in:
holan20180123
2021-08-23 09:29:32 +08:00
parent dde3943872
commit 31c72cbbe9
9 changed files with 408 additions and 295 deletions

View File

@@ -1,90 +1,34 @@
<?php
/**
* The html template file of step4 method of install module of ZenTaoPMS.
* The to20 view file of install module of ZenTaoPMS.
*
* @copyright Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
* @copyright Copyright 2009-2021 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
* @license ZPL (http://zpl.pub/page/zplv12.html)
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
* @package ZenTaoPMS
* @version $Id: step4.html.php 4129 2013-01-18 01:58:14Z wwccss $
* @author Yuchun Li <liyuchun@cnezsoft.com>
* @package install
* @version $Id$
* @link http://www.zentao.net
*/
?>
<?php include '../../common/view/header.lite.html.php';?>
<style>.modal-body table tr th{text-align: right}</style>
<div class='container'>
<div class='modal-dialog'>
<?php if(isset($error)):?>
<div class='modal-header'>
<strong><?php echo $lang->install->error;?></strong>
</div>
<div class='modal-body'>
<div class='alert alert-danger alert-pure with-icon'>
<i class='icon-exclamation-sign'></i>
<div class='content'><?php echo $error;?></div>
<div class='panel' style='padding:50px; margin:50px 300px;'>
<form method='post'>
<h1 class='text-center'><?php echo $title;?></h1>
<div class='panel-body'>
<?php echo $lang->install->introductionContent;?>
<div class='text-center'>
<h2><?php echo $lang->install->howToUse;?></h2>
<?php $systemMode = isset($lang->upgrade->to15Mode['classic']) ? 'classic' : 'new';?>
<div class='select-mode'><?php echo html::radio('mode', $lang->install->modeList, $systemMode);?></div>
<div id='selectedModeTips' class='text-info'><?php echo $lang->upgrade->selectedModeTips[$systemMode];?></div>
</div>
</div>
</div>
<div class='modal-footer'>
<?php echo html::commonButton($lang->install->pre, "onclick='javascript:history.back(-1)'");?>
</div>
<?php elseif(isset($success)):?>
<div class='modal-header'>
<strong><?php echo $lang->install->success;?></strong>
</div>
<div class='modal-body'>
<div class='alert alert-success alert-pure with-icon'>
<i class='icon-check-circle'></i>
<div class='content'><?php echo $afterSuccess;?></div>
<hr/>
<div class='panel-footer text-center'>
<?php echo html::submitButton($lang->install->next);?>
</div>
</div>
<div class='modal-footer'>
<?php echo html::commonButton($lang->install->pre, "onclick='javascript:history.back(-1)'");?>
</div>
<?php else:?>
<div class='modal-header'>
<strong><?php echo $lang->install->getPriv;?></strong>
</div>
<div class='modal-body'>
<form method='post' target='hiddenwin'>
<table class='table table-form mw-400px' style='margin: 0 auto'>
<tr>
<th class="<?php echo strpos($this->app->getClientLang(), 'zh') === false ? 'w-150px' : 'w-80px';?>"><?php echo $lang->install->company;?></th>
<td class="<?php echo strpos($this->app->getClientLang(), 'zh') === false ? 'w-350px' : 'w-300px';?>"><?php echo html::input('company', '', "class='form-control'");?></td>
</tr>
<tr class='hidden'>
<th><?php echo $lang->install->working;?></th>
<td><?php echo html::select('flow', $lang->install->workingList, 'full', "class='form-control chosen'");?></td>
</tr>
<tr>
<th><?php echo $lang->install->account;?></th>
<td><?php echo html::input('account', '', "class='form-control'");?></td>
</tr>
<tr>
<th><?php echo $lang->install->password;?></th>
<td><?php echo html::input('password', '', "class='form-control'");?></td>
</tr>
<tr>
<th><?php echo $lang->install->selectedMode;?></th>
<td>
<?php $systemMode = isset($lang->upgrade->to15Mode['classic']) ? 'classic' : 'new';?>
<?php echo html::radio('mode', $lang->upgrade->to15Mode, $systemMode);?>
</td>
</tr>
<tr>
<th></th>
<td>
<div class='text-info'><?php echo $lang->install->selectedModeTips;?></div>
</td>
</tr>
<tr>
<th></th><td><?php echo html::checkBox('importDemoData', $lang->install->importDemoData);?></td>
</tr>
<tr class='text-center'>
<td colspan='2'><?php echo html::submitButton();?></td>
</tr>
</table>
</form>
</div>
<?php endif;?>
</form>
</div>
</div>
<?php include '../../common/view/footer.lite.html.php';?>