* Code for task #57907
This commit is contained in:
@@ -233,13 +233,13 @@ class install extends control
|
||||
if(!empty($_POST))
|
||||
{
|
||||
$this->install->grantPriv();
|
||||
if(dao::isError()) return print(js::error(dao::getError()) . js::locate('back'));
|
||||
if(dao::isError()) return print(js::error(dao::getError()));
|
||||
|
||||
$this->install->updateLang();
|
||||
if(dao::isError()) return print(js::error(dao::getError()) . js::locate('back'));
|
||||
if(dao::isError()) return print(js::error(dao::getError()));
|
||||
|
||||
if($this->post->importDemoData) $this->install->importDemoData();
|
||||
if(dao::isError()) return print(js::alert($this->lang->install->errorImportDemoData) . js::locate('back'));
|
||||
if(dao::isError()) return print(js::alert($this->lang->install->errorImportDemoData));
|
||||
|
||||
$this->loadModel('setting');
|
||||
$this->setting->updateVersion($this->config->version);
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
.c-company {width: 80px !important;}
|
||||
.c-company-value {width: 300px !important;}
|
||||
|
||||
.mw-table {max-width: 650px !important;}
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
.c-company {width: 150px !important;}
|
||||
.c-company-value {width: 350px !important;}
|
||||
|
||||
.mw-table {max-width: 950px !important;}
|
||||
|
||||
@@ -161,6 +161,9 @@ $lang->install->company = 'Company Name';
|
||||
$lang->install->account = 'Admin Account';
|
||||
$lang->install->password = 'Admin Password';
|
||||
|
||||
$lang->install->placeholder = new stdclass();
|
||||
$lang->install->placeholder->password = 'Combination of letters, numbers and special symbols, at least 6 characters';
|
||||
|
||||
$lang->install->errorEmpty['company'] = "{$lang->install->company} should not be blank.";
|
||||
$lang->install->errorEmpty['account'] = "{$lang->install->account} should not be blank.";
|
||||
$lang->install->errorEmpty['password'] = "{$lang->install->password} should not be blank.";
|
||||
|
||||
@@ -161,6 +161,9 @@ $lang->install->company = '公司名称';
|
||||
$lang->install->account = '管理员帐号';
|
||||
$lang->install->password = '管理员密码';
|
||||
|
||||
$lang->install->placeholder = new stdclass();
|
||||
$lang->install->placeholder->password = '六位及以上,包含数字、字母和特殊字符';
|
||||
|
||||
$lang->install->errorEmpty['company'] = "{$lang->install->company}不能为空";
|
||||
$lang->install->errorEmpty['account'] = "{$lang->install->account}不能为空";
|
||||
$lang->install->errorEmpty['password'] = "{$lang->install->password}不能为空";
|
||||
|
||||
@@ -45,8 +45,8 @@
|
||||
<strong><?php echo $lang->install->getPriv;?></strong>
|
||||
</div>
|
||||
<div class='modal-body'>
|
||||
<form method='post'>
|
||||
<table class='table table-form mw-500px' style='margin: 0 auto'>
|
||||
<form method='post' target='hiddenwin'>
|
||||
<table class='table table-form mw-table' style='margin: 0 auto'>
|
||||
<tr>
|
||||
<th class='c-company'><?php echo $lang->install->company;?></th>
|
||||
<td class='c-company-value'><?php echo html::input('company', '', "class='form-control'");?></td>
|
||||
@@ -62,7 +62,7 @@
|
||||
<tr>
|
||||
<th><?php echo $lang->install->password;?></th>
|
||||
<td><?php echo html::input('password', '', "class='form-control' oninput=\"this.value = this.value.replace(/[\u4e00-\u9fa5d]/g, '');\"");?></td>
|
||||
<td><?php echo $lang->user->placeholder->password1;?></td>
|
||||
<td><?php echo $lang->install->placeholder->password;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th></th><td><?php echo html::checkBox('importDemoData', $lang->install->importDemoData);?></td>
|
||||
|
||||
Reference in New Issue
Block a user