mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 13:54:28 -07:00
UI update
This commit is contained in:
parent
0f7110b0e7
commit
527e4a9a62
139 changed files with 2046 additions and 124 deletions
|
@ -4,10 +4,10 @@
|
|||
<span class="title edit"><b><?=__('Editing DNS Domain')?></b></span>
|
||||
<?php
|
||||
if (!empty($_SESSION['error_msg'])) {
|
||||
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
|
||||
echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
|
||||
} else {
|
||||
if (!empty($_SESSION['ok_msg'])) {
|
||||
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";
|
||||
echo "<span class=\"vst-ok\"> → ".htmlentities($_SESSION['ok_msg'])."</span>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
<span class="title edit"><b><?=__('Editing User')?></b></span>
|
||||
<?php
|
||||
if (!empty($_SESSION['error_msg'])) {
|
||||
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
|
||||
echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
|
||||
} else {
|
||||
if (!empty($_SESSION['ok_msg'])) {
|
||||
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";
|
||||
echo "<span class=\"vst-ok\"> → ".htmlentities($_SESSION['ok_msg'])."</span>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
<span class="title edit"><b><?=__('Editing Domain')?></b></span>
|
||||
<?php
|
||||
if (!empty($_SESSION['error_msg'])) {
|
||||
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
|
||||
echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
|
||||
} else {
|
||||
if (!empty($_SESSION['ok_msg'])) {
|
||||
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";
|
||||
echo "<span class=\"vst-ok\"> → ".htmlentities($_SESSION['ok_msg'])."</span>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -4,6 +4,16 @@
|
|||
<div class="l-sort-toolbar clearfix">
|
||||
<table>
|
||||
<tr>
|
||||
<td class="step-right">
|
||||
<?
|
||||
if($panel[$user]['CRON_REPORTS'] == 'yes') {
|
||||
echo '<a class="vst" href="/delete/cron/reports/?token='.$_SESSION['token'].'">'.__('turn off notifications').'</a>';
|
||||
} else {
|
||||
echo '<a class="vst" href="/add/cron/reports/?token='.$_SESSION['token'].'">'.__('turn on notifications').'</a>';
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
|
||||
<td class="l-sort-toolbar__search-box">
|
||||
<form action="/search/" method="get">
|
||||
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
|
||||
|
@ -33,16 +43,6 @@
|
|||
</div>
|
||||
<input type="submit" value="" class="l-sort-toolbar__filter-apply" />
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<?
|
||||
if($panel[$user]['CRON_REPORTS'] == 'yes') {
|
||||
echo '<a class="vst" href="/delete/cron/reports/?token='.$_SESSION['token'].'">'.__('turn off notifications').'</a>';
|
||||
} else {
|
||||
echo '<a class="vst" href="/add/cron/reports/?token='.$_SESSION['token'].'">'.__('turn on notifications').'</a>';
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
@ -5,6 +5,33 @@
|
|||
<div class="l-sort-toolbar clearfix">
|
||||
<table>
|
||||
<tr>
|
||||
<?
|
||||
$mysql = 0;
|
||||
$pgsql = 0;
|
||||
|
||||
|
||||
list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"].":");
|
||||
|
||||
foreach ($data as $key => $value) {
|
||||
if ($data[$key]['TYPE'] == 'mysql'){
|
||||
$mysql = 1;
|
||||
|
||||
$db_admin_link = "http://".$http_host."/phpmyadmin/";
|
||||
if (!empty($_SESSION['DB_PMA_URL'])){
|
||||
$db_admin_link = $_SESSION['DB_PMA_URL'];
|
||||
}
|
||||
echo '<td class="step-right"><a class="vst" href="'.$db_admin_link.'">phpMyAdmin</td>';
|
||||
}
|
||||
if ($data[$key]['TYPE'] == 'pgsql'){
|
||||
$pgsql = 1;
|
||||
$db_admin_link = "http://".$http_host."/phppgadmin/";
|
||||
if (!empty($_SESSION['DB_PGA_URL'])){
|
||||
$db_admin_link = $_SESSION['DB_PGA_URL'];
|
||||
}
|
||||
echo '<td class="step-right"><a class="vst" href="'.$db_admin_link.'">phpPgAdmin</td>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
<td class="l-sort-toolbar__search-box">
|
||||
<form action="/search/" method="get">
|
||||
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
<!-- /.l-unit__col -->
|
||||
<div class="l-unit__col l-unit__col--right">
|
||||
<div class="l-unit__name">
|
||||
<?=$key?> <? if(!empty($data[$key]['SRC'])) echo "<span>⇢ ".$data[$key]['SRC']."</span>";?>
|
||||
<?=$key?> <? if(!empty($data[$key]['SRC'])) echo "<span>⇢ ".$data[$key]['SRC']."</span> "; if($data[$key]['RECORDS']) echo '<span>/ '.$data[$key]['RECORDS'].'</span>';?>
|
||||
</div>
|
||||
<div class="l-unit__ip">
|
||||
<?=str_replace('.', ' . ', $data[$key]['IP'])?>
|
||||
|
|
|
@ -5,7 +5,15 @@
|
|||
<div class="l-sort-toolbar clearfix">
|
||||
<table>
|
||||
<tr>
|
||||
<td class="l-sort-toolbar__search-box">
|
||||
<td class="step-right">
|
||||
<?
|
||||
list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"].":");
|
||||
$webmail = "http://".$http_host."/webmail/";
|
||||
if (!empty($_SESSION['MAIL_URL'])) $webmail = $_SESSION['MAIL_URL'];
|
||||
?>
|
||||
<a class="vst" href="<?=$webmail?>" target="_blank"><?=__('open webmail')?> <i></i></a>
|
||||
</td>
|
||||
<td class="l-sort-toolbar__search-box step-left">
|
||||
<form action="/search/" method="get">
|
||||
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
|
||||
<input type="text" name="q" class="search-input" value="<? echo isset($_POST['q']) ? htmlspecialchars($_POST['q']) : '' ?>" />
|
||||
|
@ -83,7 +91,6 @@
|
|||
<div class="actions-panel clearfix">
|
||||
<div class="actions-panel__col actions-panel__logs"><a href="?domain=<?=$key?>"><?=__('list accounts',$data[$key]['ACCOUNTS'])?> <i></i></a></div>
|
||||
<div class="actions-panel__col actions-panel__add"><a href="/add/mail/?domain=<?=$key?>"><?=__('add account')?> <i></i></a></div>
|
||||
<div class="actions-panel__col actions-panel__mail"><a href="<?=$webmail?>" target="_blank"><?=__('open webmail')?> <i></i></a></div>
|
||||
<div class="actions-panel__col actions-panel__edit"><a href="/edit/mail/?domain=<?=$key?>"><?=__('edit')?> <i></i></a></div>
|
||||
<div class="actions-panel__col actions-panel__suspend">
|
||||
<a id="<?=$spnd_action ?>_link_<?=$i?>" class="data-controls do_<?=$spnd_action?>">
|
||||
|
@ -121,7 +128,7 @@
|
|||
<!-- /.l-unit__col -->
|
||||
<div class="l-unit__col l-unit__col--right">
|
||||
<div class="l-unit__name separate">
|
||||
<?=$key?>
|
||||
<?=$key?> <? if($data[$key]['ACCOUNTS']) echo '<span>/ '.$data[$key]['ACCOUNTS'].'</span>';?>
|
||||
</div>
|
||||
<!-- /.l-unit__name -->
|
||||
<div class="l-unit__stats">
|
||||
|
|
|
@ -4,7 +4,15 @@
|
|||
<div class="l-sort-toolbar clearfix">
|
||||
<table>
|
||||
<tr>
|
||||
<td class="l-sort-toolbar__search-box">
|
||||
<td class="step-right">
|
||||
<?
|
||||
list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"].":");
|
||||
$webmail = "http://".$http_host."/webmail/";
|
||||
if (!empty($_SESSION['MAIL_URL'])) $webmail = $_SESSION['MAIL_URL'];
|
||||
?>
|
||||
<a class="vst" href="<?=$webmail?>" target="_blank"><?=__('open webmail')?> <i></i></a>
|
||||
</td>
|
||||
<td class="l-sort-toolbar__search-box step-left">
|
||||
<form action="/search/" method="get">
|
||||
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
|
||||
<input type="text" name="q" class="search-input" value="<? echo isset($_POST['q']) ? htmlspecialchars($_POST['q']) : '' ?>" />
|
||||
|
@ -140,7 +148,7 @@
|
|||
<div class="l-unit__stat-cols clearfix">
|
||||
<div class="l-unit__stat-col l-unit__stat-col--left"><?=__('Quota')?>:</div>
|
||||
<div class="l-unit__stat-col l-unit__stat-col--right">
|
||||
<b><?=$data[$key]['QUOTA']?></b>
|
||||
<b><? echo __($data[$key]['QUOTA'])?></b>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue