new improved template scheme

This commit is contained in:
Serghey Rodin 2013-05-10 11:04:40 +03:00
commit fd4e68bb8c
96 changed files with 1395 additions and 1425 deletions

View file

@ -59,19 +59,19 @@
if (!empty($data[$key]['FTP_USER'])) {
$ftp_user=$data[$key]['FTP_USER'];
}
$nginx_support='no';
if (!empty($data[$key]['NGINX'])) {
$nginx_support='yes';
$proxy_support='no';
if (!empty($data[$key]['PROXY'])) {
$proxy_support='yes';
}
if (strlen($data[$key]['NGINX_EXT']) > 16 ) {
$nginx_ext_title = str_replace(',', ', ', $data[$key]['NGINX_EXT']);
$nginx_ext = substr($data[$key]['NGINX_EXT'], 0, 16);
$nginx_ext = trim($nginx_ext, ",");
$nginx_ext = str_replace(',', ', ', $nginx_ext);
$nginx_ext = $nginx_ext.", ...";
if (strlen($data[$key]['PROXY_EXT']) > 16 ) {
$proxy_ext_title = str_replace(',', ', ', $data[$key]['PROXY_EXT']);
$proxy_ext = substr($data[$key]['PROXY_EXT'], 0, 16);
$proxy_ext = trim($proxy_ext, ",");
$proxy_ext = str_replace(',', ', ', $proxy_ext);
$proxy_ext = $proxy_ext.", ...";
} else {
$nginx_ext_title = '';
$nginx_ext = str_replace(',', ', ', $data[$key]['NGINX_EXT']);
$proxy_ext_title = '';
$proxy_ext = str_replace(',', ', ', $data[$key]['PROXY_EXT']);
}
?>
<tr class="data-row">
@ -135,53 +135,60 @@
<?php echo $data[$key]['IP'] ?>
</td>
<tr>
<td class="counter-name" style="padding: 0 0 8px 2px">
[<?php echo $data[$key]['TPL'] ?>] <?php print __('template');?>
</td>
</tr>
<tr>
<td class="chart1" style="padding: 0 0 0 2px">
<td class="chart1" style="padding: 2px 0 0 2px">
<?php print __('Bandwidth');?>: <?php echo humanize_usage($data[$key]['U_BANDWIDTH']) ?>
<div style="width:160px; height:6px; font-size:0;background-color:#c7d5b3;">
<div style="width:<?php echo get_percentage($data[$key]['U_BANDWIDTH'],$panel[$user]['BANDWIDTH']) ?>%; height:6px; background-color:#9bbb62; border-right:1px #9bbb62 solid;"></div>
<div style="width:160px; height:5px; font-size:0;background-color:#c7d5b3;">
<div style="width:<?php echo get_percentage($data[$key]['U_BANDWIDTH'],$panel[$user]['BANDWIDTH']) ?>%; height:5px; background-color:#9bbb62; border-right:1px #9bbb62 solid;"></div>
</div>
</td>
</tr>
<tr>
<td class="chart1" style="padding: 0 0 0 2px"><?php print __('Disk');?>: <?php echo humanize_usage($data[$key]['U_DISK']) ?>
<div style="width:160px; height:6px; font-size:0;background-color:#c7d5b3;">
<div style="width:<?php echo get_percentage($data[$key]['U_DISK'],$panel[$user]['DISK_QUOTA']) ?>%; height:6px; background-color:#9bbb62; border-right:1px #9bbb62 solid;"></div>
<div style="width:160px; height:5px; font-size:0;background-color:#c7d5b3;">
<div style="width:<?php echo get_percentage($data[$key]['U_DISK'],$panel[$user]['DISK_QUOTA']) ?>%; height:5px; background-color:#9bbb62; border-right:1px #9bbb62 solid;"></div>
</div>
</td>
</tr>
</table>
</td>
<td style="vertical-align:top;" width="300">
<td style="vertical-align:top;" width="260">
<table>
<tr>
<td class="counter-name" width="110"><?php print __('SSL Support');?>:</td>
<td class="counter-value"><?php print __($data[$key]['SSL']) ?></td>
<td class="counter-name"><?php print __('Web Template');?>:</td>
<td class="counter-value"><?php print __($data[$key]['TPL']) ?></td>
</tr>
<tr>
<td class="counter-name"><?php print __('SSL Support');?>:</td>
<td class="counter-value"><?php print $data[$key]['SSL'] ?></td>
</tr>
<tr>
<td class="counter-name"><?php print __('SSL Home Directory');?>:</td>
<td class="counter-value"><?php echo $ssl_home ?></td>
<td class="counter-value"><?php print $ssl_home ?></td>
</tr>
<tr>
<td class="counter-name"><?php print __('Nginx Support');?>:</td>
<td class="counter-value"><?php print __($nginx_support) ?></td>
</tr>
<tr>
<td class="counter-name"><?php print __('Nginx Extentions');?>:</td>
<td class="counter-value" <?php if (!empty($nginx_ext_title)) echo "title='".$nginx_ext_title."'" ?>><?php echo $nginx_ext ?></td>
</tr>
</table>
</td>
<td rowspan=4 style="vertical-align:top;" width="240">
<table>
<tr>
<td class="counter-name"><?php print __('Web Statistics');?>: </td>
<td class="counter-value"> <?php print __($web_stats) ?></td>
</tr>
</table>
</td>
<td rowspan=4 style="vertical-align:top;" width="300">
<table>
<tr>
<td class="counter-name"><?php print __('Proxy Support');?>:</td>
<td class="counter-value"><?php print __($proxy_support);?></td>
</tr>
<tr>
<td class="counter-name"><?php print __('Proxy Template');?>:</td>
<td class="counter-value"><?php echo $data[$key]['PROXY'];?></td>
</tr>
<tr>
<td class="counter-name"><?php print __('Proxy Extentions');?>:</td>
<td class="counter-value" <?php if (!empty($proxy_ext_title)) echo "title='".$proxy_ext_title."'" ?>><?php echo $proxy_ext ?></td>
</tr>
<tr>
<td class="counter-name"> <?php print __('Additional FTP Account');?>:</td>
<td class="counter-value"> <?php print __($ftp_user) ?></td>