* ajusted views.
This commit is contained in:
@@ -11,23 +11,26 @@
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.lite.html.php';?>
|
||||
<table class='table-1'>
|
||||
<caption><?php echo $title;?></caption>
|
||||
<tr>
|
||||
<td valign='middle'>
|
||||
<?php
|
||||
if(isset($error) and $error)
|
||||
{
|
||||
echo $error;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<h3 class='a-center success'>{$title}</h3>";
|
||||
echo "<p class='text-center'>" . html::commonButton($lang->extension->viewInstalled, 'onclick=parent.location.href="' . inlink('browse', 'type=installed') . '"') . '</p>';
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<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-success'><?php echo $lang->extension->activate;?> <?php echo html::icon($lang->icons['activate']);?></small>
|
||||
</div>
|
||||
</div>
|
||||
<?php if(isset($error) and $error):?>
|
||||
<div class='alert alert-danger'>
|
||||
<i class='icon-info-sign'></i>
|
||||
<div class='content'><?php $error;?></div>
|
||||
</div>
|
||||
<?php else:?>
|
||||
<div class='alert alert-success'>
|
||||
<i class='icon-ok-sign'></i>
|
||||
<div class='content'>
|
||||
<h3><?php echo $title;?></h3>
|
||||
<p class='text-center'><?php echo html::commonButton($lang->extension->viewInstalled, 'onclick=parent.location.href="' . inlink('browse', 'type=installed') . '"');?></p>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -11,18 +11,22 @@
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.lite.html.php';?>
|
||||
<table class='table-1'>
|
||||
<caption><?php echo $title;?></caption>
|
||||
<tr>
|
||||
<td valign='middle'>
|
||||
<?php if($error):?>
|
||||
<?php
|
||||
echo "<h3 class='error'>{$lang->extension->needSorce}</h3>";
|
||||
echo "<p>$error</p>";
|
||||
?>
|
||||
<?php endif;?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div id='titlebar'>
|
||||
<div class='heading'>
|
||||
<span class='prefix' title='EXTENSION'><?php echo html::icon($lang->icons['extension']);?></span>
|
||||
<strong><?php echo $title;?></strong>
|
||||
</div>
|
||||
</div>
|
||||
<?php if(isset($error) and $error):?>
|
||||
<div class='alert alert-success'>
|
||||
<i class='icon-ok-sign'></i>
|
||||
<div class='content'>
|
||||
<h3><?php echo $lang->extension->needSorce;?></h3>
|
||||
<p><?php echo $error;?></p>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
</body>
|
||||
</html>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -11,21 +11,23 @@
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.lite.html.php';?>
|
||||
<table class='table-1'>
|
||||
<caption><?php echo $title;?></caption>
|
||||
<tr>
|
||||
<td valign='middle'>
|
||||
<?php
|
||||
echo "<h3 class='a-center success'>{$title}</h3>";
|
||||
if($removeCommands)
|
||||
{
|
||||
echo "<p class='strong'>{$lang->extension->unremovedFiles}</p>";
|
||||
echo join($removeCommands, '<br />');
|
||||
}
|
||||
echo "<p class='text-center'>" . html::commonButton($lang->extension->viewDeactivated, 'onclick=parent.location.href="' . inlink('browse', 'type=deactivated') . '"') . '</p>';
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<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-danger'><?php echo $lang->extension->deactivate;?> <?php echo html::icon($lang->icons['activate']);?></small>
|
||||
</div>
|
||||
</div>
|
||||
<div class='alert alert-success'>
|
||||
<i class='icon-ok-sign'></i>
|
||||
<div class='content'>
|
||||
<h3><?php echo $title;?></h3>
|
||||
<?php if($removeCommands):?>
|
||||
<p><strong><?php echo $lang->extension->unremovedFiles;?></strong></p>
|
||||
<p><?php echo join($removeCommands, '<br />');?></p>
|
||||
<?php endif;?>
|
||||
<p class='text-center'><?php echo html::commonButton($lang->extension->viewDeactivated, 'onclick=parent.location.href="' . inlink('browse', 'type=deactivated') . '"');?></p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -11,21 +11,23 @@
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.lite.html.php';?>
|
||||
<table class='table-1'>
|
||||
<caption><?php echo $title;?></caption>
|
||||
<tr>
|
||||
<td valign='middle'>
|
||||
<?php
|
||||
echo "<h3 class='a-center success'>{$title}</h3>";
|
||||
if($removeCommands)
|
||||
{
|
||||
echo "<p class='strong'>{$lang->extension->unremovedFiles}</p>";
|
||||
echo join($removeCommands, '<br />');
|
||||
}
|
||||
echo "<p class='text-center'>" . html::commonButton($lang->extension->viewAvailable, 'onclick=parent.location.href="' . inlink('browse', 'type=available') . '"') . '</p>';
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<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-danger'><?php echo $lang->extension->erase;?> <?php echo html::icon('trash');?></small>
|
||||
</div>
|
||||
</div>
|
||||
<div class='alert alert-success'>
|
||||
<i class='icon-ok-sign'></i>
|
||||
<div class='content'>
|
||||
<h3><?php echo $title;?></h3>
|
||||
<?php if($removeCommands):?>
|
||||
<p><strong><?php echo $lang->extension->unremovedFiles;?></strong></p>
|
||||
<p><?php echo join($removeCommands, '<br />');?></p>
|
||||
<?php endif;?>
|
||||
<p class='text-center'><?php echo html::commonButton($lang->extension->viewAvailable, 'onclick=parent.location.href="' . inlink('browse', 'type=available') . '"');?></p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -11,16 +11,17 @@
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.lite.html.php';?>
|
||||
<table class='table-1'>
|
||||
<caption><?php echo $extension->name . '[' . $extension->code . '] ' .$lang->extension->structure . ':';?></cation>
|
||||
<tr>
|
||||
<td>
|
||||
<?php
|
||||
$appRoot = $this->app->getAppRoot();
|
||||
$files = json_decode($extension->files);
|
||||
foreach($files as $file => $md5) echo $appRoot . $file . "<br />";
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div id='titlebar'>
|
||||
<div class='heading'>
|
||||
<span class='prefix' title='EXTENSION'><?php echo html::icon($lang->icons['extension']);?></span>
|
||||
<strong><?php echo $extension->name . '[' . $extension->code . '] ' .$lang->extension->structure . ':';?></strong>
|
||||
</div>
|
||||
</div>
|
||||
<div class='main'>
|
||||
<?php
|
||||
$appRoot = $this->app->getAppRoot();
|
||||
$files = json_decode($extension->files);
|
||||
foreach($files as $file => $md5) echo $appRoot . $file . "<br />";
|
||||
?>
|
||||
</div>
|
||||
<?php include '../../common/view/footer.lite.html.php';?>
|
||||
|
||||
@@ -11,25 +11,41 @@
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.lite.html.php';?>
|
||||
<table class='table-1'>
|
||||
<caption><?php echo $title;?></caption>
|
||||
<tr>
|
||||
<td valign='middle'>
|
||||
<?php if(isset($confirm) and $confirm == 'no'):?>
|
||||
<?php
|
||||
<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-danger'><?php echo html::icon('cog');?> <?php echo $lang->extension->uninstall;?></small>
|
||||
</div>
|
||||
</div>
|
||||
<?php if(isset($confirm) and $confirm == 'no'):?>
|
||||
<div class='alert alert-warning'>
|
||||
<i class='icon-info-sign'></i>
|
||||
<div class='content'>
|
||||
<?php
|
||||
echo "<p class='waring'>{$lang->extension->confirmUninstall}";
|
||||
echo html::a(inlink('uninstall', "extension=$code&confirm=yes"), $lang->extension->uninstall, '', "class='btn'");
|
||||
echo "</p>";
|
||||
echo "<p>{$lang->extension->noticeBackupDB}</p>"
|
||||
?>
|
||||
<?php elseif(!empty($error)):?>
|
||||
<?php
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php elseif(!empty($error)):?>
|
||||
<div class='alert alert-danger'>
|
||||
<i class='icon-info-sign'></i>
|
||||
<div class='content'>
|
||||
<?php
|
||||
echo "<h3 class='error'>" . $lang->extension->uninstallFailed . "</h3>";
|
||||
echo "<p>$error</p>";
|
||||
?>
|
||||
<?php else:?>
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php else:?>
|
||||
<div class='alert alert-success'>
|
||||
<i class='icon-ok-sign'></i>
|
||||
<div class='content'>
|
||||
<?php
|
||||
echo "<h3 class='a-center success'>{$title}</h3>";
|
||||
echo "<h3>{$title}</h3>";
|
||||
if(!empty($backupFile)) echo '<p>' . sprintf($lang->extension->backDBFile, $backupFile) . '</p>';
|
||||
if($removeCommands)
|
||||
{
|
||||
@@ -38,9 +54,8 @@
|
||||
}
|
||||
echo "<p class='text-center'>" . html::commonButton($lang->extension->viewAvailable, 'onclick=parent.location.href="' . inlink('browse', 'type=available') . '"') . '</p>';
|
||||
?>
|
||||
<?php endif;?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -11,10 +11,12 @@
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.lite.html.php';?>
|
||||
<div id='featurebar'>
|
||||
<div class='heading'><?php echo html::icon('upload') . ' ' . $lang->extension->upload;?></div>
|
||||
<div id='titlebar'>
|
||||
<div class='heading'>
|
||||
<span class='prefix'><?php echo html::icon('upload');?></span>
|
||||
<strong><?php echo $lang->extension->upload;?></strong>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form method='post' enctype='multipart/form-data' style='padding: 5% 20%'>
|
||||
<div class='input-group'>
|
||||
<input type='file' name='file' class='form-control' />
|
||||
|
||||
@@ -11,19 +11,21 @@
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.lite.html.php';?>
|
||||
<table class='table-1'>
|
||||
<caption><?php echo $title;?></caption>
|
||||
<tr>
|
||||
<td valign='middle'>
|
||||
<?php if($error):?>
|
||||
<?php
|
||||
echo "<h3 class='error'>{$lang->extension->waringInstall}</h3>";
|
||||
echo "<p>$error</p>";
|
||||
echo html::commonButton($lang->extension->refreshPage, 'onclick=location.href=location.href');
|
||||
?>
|
||||
<?php endif;?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div id='titlebar'>
|
||||
<div class='heading'>
|
||||
<span class='prefix' title='EXTENSION'><?php echo html::icon($lang->icons['extension']);?></span>
|
||||
<strong><?php echo $title;?></strong>
|
||||
</div>
|
||||
</div>
|
||||
<?php if($error):?>
|
||||
<div class='alert alert-danger'>
|
||||
<i class='icon-info-sign'></i>
|
||||
<div class='content'>
|
||||
<h3><?php echo $lang->extension->waringInstall;?></h3>
|
||||
<p><?php echo $error;?></p>
|
||||
<p class='text-center'><?php echo html::commonButton($lang->extension->refreshPage, 'onclick=location.href=location.href');?></p>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user