* finish task #2261.
This commit is contained in:
@@ -51,10 +51,10 @@ class backup extends control
|
||||
$backupFile = new stdclass();
|
||||
$backupFile->time = filemtime($file);
|
||||
$backupFile->name = str_replace('.sql.php', '', basename($file));
|
||||
$backupFile->files[$file] = filesize($file);
|
||||
$backupFile->files[$file] = abs(filesize($file));
|
||||
if(file_exists($this->backupPath . $backupFile->name . '.file.zip.php'))
|
||||
{
|
||||
$backupFile->files[$this->backupPath . $backupFile->name . '.file.zip.php'] = filesize($this->backupPath . $backupFile->name . '.file.zip.php');
|
||||
$backupFile->files[$this->backupPath . $backupFile->name . '.file.zip.php'] = abs(filesize($this->backupPath . $backupFile->name . '.file.zip.php'));
|
||||
}
|
||||
|
||||
$backups[$backupFile->name] = $backupFile;
|
||||
|
||||
@@ -178,9 +178,9 @@ class customModel extends model
|
||||
if(strpos($value, $this->lang->custom->productproject->locked) !== false) continue;
|
||||
foreach($changes as $change)
|
||||
{
|
||||
if(strpos($value, $change['before']) !== false)
|
||||
if(stripos($value, $change['before']) !== false)
|
||||
{
|
||||
$value = str_replace($change['before'], $change['after'], $value);
|
||||
$value = str_ireplace($change['before'], $change['after'], $value);
|
||||
if($type == 'array') $lang[$key] = $value;
|
||||
if($type == 'object')$lang->$key = $value;
|
||||
$changed[$value] = true;
|
||||
|
||||
@@ -6,3 +6,15 @@ li{line-height: 2em}
|
||||
.modal-body{padding: 20px 60px;}
|
||||
|
||||
.dropdown-menu {min-width: 120px; margin-top: 0;}
|
||||
|
||||
.card.ad > .img-wrapper {
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
height: 85px;
|
||||
width: 100%;
|
||||
}
|
||||
.card.ad > .img-wrapper > img{display: none;}
|
||||
.card.ad > .card-heading {text-align: center;}
|
||||
.card.ad > .card-reveal > .card-heading { padding: 12px 10px 10px 15px;}
|
||||
.card.ad > .card-reveal {color: #333;}
|
||||
.card.ad > .card-reveal li{line-height:1.5}
|
||||
|
||||
@@ -23,7 +23,7 @@ $lang->install->seeLatestRelease = 'See the latest release.';
|
||||
$lang->install->welcome = 'Welcome to use ZenTaoPMS.';
|
||||
$lang->install->license = 'ZentaoPMS use license of Z PUBLIC LICENSE(ZPL) 1.1';
|
||||
$lang->install->desc = <<<EOT
|
||||
ZenTaoPMS is an opensource project management software licensed under LGPL. It has product manage, project mange, testing mange features, also with organization manage and affair manage.
|
||||
ZenTaoPMS is an opensource project management software licensed under <a href='http://zpl.pub' target='_blank'>ZPL</a>. It has product manage, project mange, testing mange features, also with organization manage and affair manage.
|
||||
|
||||
ZenTaoPMS is developped by PHH and mysql under the zentaophp framework developped by the same team. Through the framework, ZenTaoPMS can be customed and extended very easily.
|
||||
EOT;
|
||||
|
||||
@@ -23,7 +23,7 @@ $lang->install->seeLatestRelease = '看看最新的版本';
|
||||
$lang->install->welcome = '欢迎使用禅道项目管理软件!';
|
||||
$lang->install->license = '禅道项目管理软件使用 Z PUBLIC LICENSE(ZPL) 1.1 授权协议';
|
||||
$lang->install->desc = <<<EOT
|
||||
禅道项目管理软件(ZenTaoPMS)是一款国产的,基于LGPL协议,开源免费的项目管理软件,它集产品管理、项目管理、测试管理于一体,同时还包含了事务管理、组织管理等诸多功能,是中小型企业项目管理的首选。
|
||||
禅道项目管理软件(ZenTaoPMS)是一款国产的,基于<a href='http://zpl.pub' target='_blank'>ZPL</a>协议,开源免费的项目管理软件,它集产品管理、项目管理、测试管理于一体,同时还包含了事务管理、组织管理等诸多功能,是中小型企业项目管理的首选。
|
||||
|
||||
禅道项目管理软件使用PHP + MySQL开发,基于自主的PHP开发框架──ZenTaoPHP而成。第三方开发者或者企业可以非常方便的开发插件或者进行定制。
|
||||
EOT;
|
||||
@@ -138,3 +138,35 @@ $lang->install->joinZentao = <<<EOT
|
||||
<p>您已经成功安装禅道管理系统%s,<strong class='text-danger'>请及时删除install.php</strong>。</p><p>友情提示:为了您及时获得禅道的最新动态,请在禅道社区(<a href='http://www.zentao.net' class='alert-link' target='_blank'>www.zentao.net</a>)进行登记。</p>
|
||||
|
||||
EOT;
|
||||
|
||||
$lang->install->other = "其他产品推荐:";
|
||||
$lang->install->chanzhi = new stdclass();
|
||||
$lang->install->chanzhi->name = '蝉知企业门户系统';
|
||||
$lang->install->chanzhi->desc = <<<EOD
|
||||
<ul>
|
||||
<li>专业的企业营销门户系统</li>
|
||||
<li>功能丰富,操作简洁方便</li>
|
||||
<li>大量细节针对SEO优化</li>
|
||||
<li>开源免费,不限商用!</li>
|
||||
</ul>
|
||||
EOD;
|
||||
$lang->install->ranzhi = new stdclass();
|
||||
$lang->install->ranzhi->name = '然之协同管理系统';
|
||||
$lang->install->ranzhi->desc = <<<EOD
|
||||
<ul>
|
||||
<li>客户管理,订单跟踪</li>
|
||||
<li>项目任务,公告文档</li>
|
||||
<li>收入支出,出帐入账</li>
|
||||
<li>论坛博客,动态消息</li>
|
||||
</ul>
|
||||
EOD;
|
||||
$lang->install->yidou = new stdclass();
|
||||
$lang->install->yidou->name = '亿斗进销存管理运营系统';
|
||||
$lang->install->yidou->desc = <<<EOD
|
||||
<ul>
|
||||
<li>销售订单处理,信息及时反馈</li>
|
||||
<li>采销业务状况,时时查询跟进</li>
|
||||
<li>仓储配货送货,轻松便利快捷</li>
|
||||
<li>财务收款付款,简单实用准确</li>
|
||||
</ul>
|
||||
EOD;
|
||||
|
||||
@@ -36,6 +36,42 @@
|
||||
<img src="<?php echo $this->app->getWebRoot() . 'theme/default/images/main/weixin.jpg'?>" width='200' height='200'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2'>
|
||||
<div class='row'>
|
||||
<div class='col-md-4'>
|
||||
<a class="card ad" href="http://www.chanzhi.org" target="_blank">
|
||||
<div class="img-wrapper" style="background-image:url(<?php echo $defaultTheme . 'images/main/chanzhi.png'?>)"><img src="<?php echo $defaultTheme . 'images/main/chanzhi.png'?>" alt=""></div>
|
||||
<strong class="card-heading"><?php echo $lang->install->chanzhi->name?></strong>
|
||||
<div class="card-reveal">
|
||||
<h5 class="card-heading"><?php echo $lang->install->chanzhi->name?></h5>
|
||||
<div class="card-content"><?php echo $lang->install->chanzhi->desc?></div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class='col-md-4'>
|
||||
<a class="card ad" href="http://www.ranzhico.com" target="_blank">
|
||||
<div class="img-wrapper" style="background-image:url(<?php echo $defaultTheme . 'images/main/ranzhi.png'?>)"><img src="<?php echo $defaultTheme . 'images/main/ranzhi.png'?>" alt=""></div>
|
||||
<strong class="card-heading"><?php echo $lang->install->ranzhi->name?></strong>
|
||||
<div class="card-reveal">
|
||||
<h5 class="card-heading"><?php echo $lang->install->ranzhi->name?></h5>
|
||||
<div class="card-content"><?php echo $lang->install->ranzhi->desc?></div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class='col-md-4'>
|
||||
<a class="card ad" href="http://www.yidou.in" target="_blank">
|
||||
<div class="img-wrapper" style="background-image:url(<?php echo $defaultTheme . 'images/main/yidou.png'?>)"><img src="<?php echo $defaultTheme . 'images/main/yidou.png'?>" alt=""></div>
|
||||
<strong class="card-heading"><?php echo $lang->install->yidou->name?></strong>
|
||||
<div class="card-reveal">
|
||||
<h5 class="card-heading"><?php echo $lang->install->yidou->name?></h5>
|
||||
<div class="card-content"><?php echo $lang->install->yidou->desc?></div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class='modal-footer'>
|
||||
|
||||
@@ -99,6 +99,7 @@ class upgrade extends control
|
||||
$this->view->title = $this->lang->upgrade->result;
|
||||
$this->view->position[] = $this->lang->upgrade->common;
|
||||
|
||||
$this->app->loadLang('install');
|
||||
if(!$this->upgrade->isError())
|
||||
{
|
||||
$this->view->result = 'success';
|
||||
|
||||
12
module/upgrade/css/execute.css
Normal file
12
module/upgrade/css/execute.css
Normal file
@@ -0,0 +1,12 @@
|
||||
.adbox{margin-top:20px;}
|
||||
.card.ad > .img-wrapper {
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
height: 85px;
|
||||
width: 100%;
|
||||
}
|
||||
.card.ad > .img-wrapper > img{display: none;}
|
||||
.card.ad > .card-heading {text-align: center;}
|
||||
.card.ad > .card-reveal > .card-heading { padding: 12px 10px 10px 15px;}
|
||||
.card.ad > .card-reveal {color: #333;}
|
||||
.card.ad > .card-reveal li{line-height:1.5}
|
||||
@@ -22,6 +22,39 @@
|
||||
<?php else:?>
|
||||
<div class='alert alert-success mgb-10'><strong><?php echo $lang->upgrade->success?></strong></div>
|
||||
<div class='mt-10px'><?php echo html::a('index.php', $lang->upgrade->tohome, '', "class='btn btn-sm'")?></div>
|
||||
<div class='row adbox'>
|
||||
<h5><?php echo $lang->install->other?></h5>
|
||||
<div class='col-md-4'>
|
||||
<a class="card ad" href="http://www.chanzhi.org" target="_blank">
|
||||
<div class="img-wrapper" style="background-image:url(<?php echo $defaultTheme . 'images/main/chanzhi.png'?>)"><img src="<?php echo $defaultTheme . 'images/main/chanzhi.png'?>" alt=""></div>
|
||||
<strong class="card-heading"><?php echo $lang->install->chanzhi->name?></strong>
|
||||
<div class="card-reveal">
|
||||
<h5 class="card-heading"><?php echo $lang->install->chanzhi->name?></h5>
|
||||
<div class="card-content"><?php echo $lang->install->chanzhi->desc?></div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class='col-md-4'>
|
||||
<a class="card ad" href="http://www.ranzhico.com" target="_blank">
|
||||
<div class="img-wrapper" style="background-image:url(<?php echo $defaultTheme . 'images/main/ranzhi.png'?>)"><img src="<?php echo $defaultTheme . 'images/main/ranzhi.png'?>" alt=""></div>
|
||||
<strong class="card-heading"><?php echo $lang->install->ranzhi->name?></strong>
|
||||
<div class="card-reveal">
|
||||
<h5 class="card-heading"><?php echo $lang->install->ranzhi->name?></h5>
|
||||
<div class="card-content"><?php echo $lang->install->ranzhi->desc?></div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class='col-md-4'>
|
||||
<a class="card ad" href="http://www.yidou.in" target="_blank">
|
||||
<div class="img-wrapper" style="background-image:url(<?php echo $defaultTheme . 'images/main/yidou.png'?>)"><img src="<?php echo $defaultTheme . 'images/main/yidou.png'?>" alt=""></div>
|
||||
<strong class="card-heading"><?php echo $lang->install->yidou->name?></strong>
|
||||
<div class="card-reveal">
|
||||
<h5 class="card-heading"><?php echo $lang->install->yidou->name?></h5>
|
||||
<div class="card-content"><?php echo $lang->install->yidou->desc?></div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
BIN
www/theme/default/images/main/chanzhi.png
Normal file
BIN
www/theme/default/images/main/chanzhi.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.7 KiB |
BIN
www/theme/default/images/main/ranzhi.png
Normal file
BIN
www/theme/default/images/main/ranzhi.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.2 KiB |
BIN
www/theme/default/images/main/yidou.png
Normal file
BIN
www/theme/default/images/main/yidou.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.4 KiB |
Reference in New Issue
Block a user