* ajusted style of module extension and upgrade.
This commit is contained in:
@@ -93,7 +93,7 @@ $lang->extension->errorGetModules = "Get extensions' categories dat
|
||||
$lang->extension->errorGetExtensions = 'Get extensions from www.zentao.net failed. You can visit <a href="http://www.zentao.net/extension/" target="_blank">www.zentao.net</a> to find your extensions, download it manually and then upload to zentaopms to install it.';
|
||||
$lang->extension->errorDownloadPathNotFound = 'The save path of package file <strong>%s</strong>does not exists.<br />For linux users, can execute <strong>mkdir -p %s</strong> to fix it.';
|
||||
$lang->extension->errorDownloadPathNotWritable = 'The save path of package file <strong>%s</strong>is not writable.<br />For linux users, can execute <strong>sudo chmod 777 %s</strong> to fix it.';
|
||||
$lang->extension->errorPackageFileExists = 'There is already a file with the same name <strong>%s</strong>.<h3> If you want to %s again, <a href="%s">please click this link</a>.</h3>';
|
||||
$lang->extension->errorPackageFileExists = 'There is already a file with the same name <strong>%s</strong>.<h5> If you want to %s again, <a href="%s">please click this link</a>.</h5>';
|
||||
$lang->extension->errorDownloadFailed = 'Download failed, please try again. Or you can download it manually and upload it to install.';
|
||||
$lang->extension->errorMd5Checking = 'The downloawd files checking failed, Please download it manually and upload it to install';
|
||||
$lang->extension->errorExtracted = 'The package file <strong> %s </strong> extracted failed. The error is:<br />%s';
|
||||
|
||||
@@ -93,7 +93,7 @@ $lang->extension->errorGetModules = '从www.zentao.net获得插件
|
||||
$lang->extension->errorGetExtensions = '从www.zentao.net获得插件失败。可能是因为网络方面的原因,您可以到 <a href="http://www.zentao.net/extension/" target="_blank" class="alert-link">www.zentao.net</a> 手工下载插件,然后上传安装。';
|
||||
$lang->extension->errorDownloadPathNotFound = '插件下载存储路径<strong>%s</strong>不存在。<br />linux下面请执行命令:<strong>mkdir -p %s</strong>来修正。';
|
||||
$lang->extension->errorDownloadPathNotWritable = '插件下载存储路径<strong>%s</strong>不可写。<br />linux下面请执行命令:<strong>sudo chmod 777 %s</strong>来修正。';
|
||||
$lang->extension->errorPackageFileExists = '下载路径已经有一个名为的<strong>%s</strong>附件。<h3>重新%s,<a href="%s" class="alert-link">请点击此链接</a></h3>';
|
||||
$lang->extension->errorPackageFileExists = '下载路径已经有一个名为的<strong>%s</strong>附件。<h5>重新%s,<a href="%s" class="alert-link">请点击此链接</a></h5>';
|
||||
$lang->extension->errorDownloadFailed = '下载失败,请重新下载。如果多次重试还不行,请尝试手工下载,然后通过上传功能上传。';
|
||||
$lang->extension->errorMd5Checking = '下载文件不完整,请重新下载。如果多次重试还不行,请尝试手工下载,然后通过上传功能上传。';
|
||||
$lang->extension->errorExtracted = '包文件<strong> %s </strong>解压缩失败,可能不是一个有效的zip文件。错误信息如下:<br />%s';
|
||||
|
||||
@@ -14,8 +14,6 @@
|
||||
<div id='titlebar'>
|
||||
<div class='heading'>
|
||||
<span class='prefix' title='EXTENSION'><?php echo html::icon($lang->icons['extension']);?></span>
|
||||
<strong><?php echo $title;?></strong>
|
||||
<small class='text-muted'><?php echo $lang->extension->activate;?> <?php echo html::icon($lang->icons['activate']);?></small>
|
||||
</div>
|
||||
</div>
|
||||
<?php if(isset($error) and $error):?>
|
||||
|
||||
@@ -11,56 +11,51 @@
|
||||
*/
|
||||
?>
|
||||
<?php include 'header.html.php';?>
|
||||
<div class='container bd-0'>
|
||||
<div class='cards'>
|
||||
<?php foreach($extensions as $extension):?>
|
||||
<div class='col-xs-12'><div class='card'>
|
||||
<div class='card-heading'><strong><?php echo $extension->name;?></strong></div>
|
||||
<div class='card-content text-muted'><?php echo $extension->desc;?></div>
|
||||
<div class='card-actions'>
|
||||
<div class='pull-right'>
|
||||
<div class='btn-group'>
|
||||
<?php
|
||||
$structureCode = html::a(inlink('structure', "extension=$extension->code"), $lang->extension->structure, '', "class='btn iframe'");
|
||||
$deactivateCode = html::a(inlink('deactivate', "extension=$extension->code"), $lang->extension->deactivate, '', "class='btn iframe'");
|
||||
$activateCode = html::a(inlink('activate', "extension=$extension->code"), $lang->extension->activate, '', "class='btn iframe'");
|
||||
$uninstallCode = html::a(inlink('uninstall', "extension=$extension->code"), $lang->extension->uninstall, '', "class='btn iframe'");
|
||||
$installCode = html::a(inlink('install', "extension=$extension->code"), $lang->extension->install, '', "class='btn iframe'");
|
||||
$eraseCode = html::a(inlink('erase', "extension=$extension->code"), $lang->extension->erase, '', "class='btn iframe'");
|
||||
|
||||
if(isset($extension->viewLink))
|
||||
{
|
||||
echo html::a($extension->viewLink, $lang->extension->view, '', "class='btn extension'");
|
||||
}
|
||||
if($extension->status == 'installed')
|
||||
{
|
||||
echo $structureCode;
|
||||
}
|
||||
if($extension->status == 'installed' and !empty($extension->upgradeLink))
|
||||
{
|
||||
echo html::a($extension->upgradeLink, $lang->extension->upgrade, '', "class='btn iframe'");
|
||||
}
|
||||
|
||||
if($extension->type != 'patch')
|
||||
{
|
||||
if($extension->status == 'installed') echo $deactivateCode . $uninstallCode;
|
||||
if($extension->status == 'deactivated') echo $activateCode . $uninstallCode;
|
||||
if($extension->status == 'available') echo $installCode . $eraseCode;
|
||||
}
|
||||
echo html::a($extension->site, $lang->extension->site, '_blank', 'class=btn');
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class='cards pd-0'>
|
||||
<?php foreach($extensions as $extension):?>
|
||||
<div class='col-xs-12'><div class='card'>
|
||||
<div class='card-heading'><strong><?php echo $extension->name;?></strong></div>
|
||||
<div class='card-content text-muted'><?php echo $extension->desc;?></div>
|
||||
<div class='card-actions'>
|
||||
<div class='pull-right'>
|
||||
<div class='btn-group'>
|
||||
<?php
|
||||
echo "{$lang->extension->version}: <i>{$extension->version}</i> ";
|
||||
echo "{$lang->extension->author}: <i>{$extension->author}</i> ";
|
||||
?>
|
||||
$structureCode = html::a(inlink('structure', "extension=$extension->code"), $lang->extension->structure, '', "class='btn iframe'");
|
||||
$deactivateCode = html::a(inlink('deactivate', "extension=$extension->code"), $lang->extension->deactivate, '', "class='btn iframe'");
|
||||
$activateCode = html::a(inlink('activate', "extension=$extension->code"), $lang->extension->activate, '', "class='btn iframe'");
|
||||
$uninstallCode = html::a(inlink('uninstall', "extension=$extension->code"), $lang->extension->uninstall, '', "class='btn iframe'");
|
||||
$installCode = html::a(inlink('install', "extension=$extension->code"), $lang->extension->install, '', "class='btn iframe'");
|
||||
$eraseCode = html::a(inlink('erase', "extension=$extension->code"), $lang->extension->erase, '', "class='btn iframe'");
|
||||
|
||||
if(isset($extension->viewLink))
|
||||
{
|
||||
echo html::a($extension->viewLink, $lang->extension->view, '', "class='btn extension'");
|
||||
}
|
||||
if($extension->status == 'installed')
|
||||
{
|
||||
echo $structureCode;
|
||||
}
|
||||
if($extension->status == 'installed' and !empty($extension->upgradeLink))
|
||||
{
|
||||
echo html::a($extension->upgradeLink, $lang->extension->upgrade, '', "class='btn iframe'");
|
||||
}
|
||||
|
||||
if($extension->type != 'patch')
|
||||
{
|
||||
if($extension->status == 'installed') echo $deactivateCode . $uninstallCode;
|
||||
if($extension->status == 'deactivated') echo $activateCode . $uninstallCode;
|
||||
if($extension->status == 'available') echo $installCode . $eraseCode;
|
||||
}
|
||||
echo html::a($extension->site, $lang->extension->site, '_blank', 'class=btn');
|
||||
?>
|
||||
</div>
|
||||
</div></div>
|
||||
<?php endforeach;?>
|
||||
</div>
|
||||
<?php
|
||||
echo "{$lang->extension->version}: <i>{$extension->version}</i> ";
|
||||
echo "{$lang->extension->author}: <i>{$extension->author}</i> ";
|
||||
?>
|
||||
</div>
|
||||
</div></div>
|
||||
<?php endforeach;?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -14,8 +14,6 @@
|
||||
<div id='titlebar'>
|
||||
<div class='heading'>
|
||||
<span class='prefix' title='EXTENSION'><?php echo html::icon($lang->icons['extension']);?></span>
|
||||
<strong><?php echo $title;?></strong>
|
||||
<small class='text-muted'><?php echo $lang->extension->deactivate;?> <?php echo html::icon($lang->icons['activate']);?></small>
|
||||
</div>
|
||||
</div>
|
||||
<div class='text-center with-padding'>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
</div>
|
||||
<?php if($error):?>
|
||||
<div class='panel panel-body text-center'>
|
||||
<h4 class='text-danger'><?php sprintf($lang->extension->installFailed, $installType);?></h4>
|
||||
<h5 class='text-danger'><?php sprintf($lang->extension->installFailed, $installType);?></h5>
|
||||
<p class='text-danger'><?php echo $error;?></p>
|
||||
<hr>
|
||||
<?php echo html::commonButton($lang->extension->refreshPage, 'onclick=location.href=location.href');?>
|
||||
@@ -32,14 +32,14 @@
|
||||
<?php elseif(isset($license)):?>
|
||||
<div class='panel panel-body '>
|
||||
<div class='content text-center'>
|
||||
<h4><?php echo $lang->extension->license;?></h4>
|
||||
<p><?php echo html::textarea('license', $license, "class='form-control' disabled rows='15'");?></p>
|
||||
<h5><?php echo $lang->extension->license;?></h5>
|
||||
<p><?php echo html::textarea('license', $license, "class='form-control' rows='15'");?></p>
|
||||
<?php echo html::a($agreeLink, $lang->extension->agreeLicense, '', "class='btn btn-primary'");?>
|
||||
</div>
|
||||
</div>
|
||||
<?php else:?>
|
||||
<div class='panel panel-body'>
|
||||
<h1 class='text-center mgb-20'><?php echo sprintf($lang->extension->installFinished, $installType);?></h1>
|
||||
<h5 class='text-center mgb-20'><?php echo sprintf($lang->extension->installFinished, $installType);?></h5>
|
||||
<div class='text-center'>
|
||||
<?php echo html::commonButton($lang->extension->viewInstalled, 'onclick=parent.location.href="' . inlink('browse') . '" class="btn btn-success"');?>
|
||||
</div>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<strong><?php echo $lang->upgrade->warnning;?></strong>
|
||||
</div>
|
||||
<div class='modal-body'>
|
||||
<div class='alert alert-warning with-icon'>
|
||||
<div class='alert with-icon'>
|
||||
<i class='icon-info-sign'></i>
|
||||
<div class='content'><?php echo $lang->upgrade->warnningContent;?></div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user