This commit is contained in:
Serghey Rodin 2014-08-28 09:40:04 +03:00
commit 1b2dc864dd
23 changed files with 260 additions and 270 deletions

View file

@ -59,9 +59,9 @@
$ftp_user=$data[$key]['FTP_USER'];
}
if (strlen($ftp_user) > 16 ) {
if (strlen($ftp_user) > 24 ) {
$ftp_user = str_replace(':', ', ', $ftp_user);
$ftp_user = substr($ftp_user, 0, 16);
$ftp_user = substr($ftp_user, 0, 24);
$ftp_user = trim($ftp_user, ":");
$ftp_user = str_replace(':', ', ', $ftp_user);
$ftp_user = $ftp_user.", ...";
@ -73,9 +73,9 @@
if (!empty($data[$key]['PROXY'])) {
$proxy_support='yes';
}
if (strlen($data[$key]['PROXY_EXT']) > 16 ) {
if (strlen($data[$key]['PROXY_EXT']) > 24 ) {
$proxy_ext_title = str_replace(',', ', ', $data[$key]['PROXY_EXT']);
$proxy_ext = substr($data[$key]['PROXY_EXT'], 0, 16);
$proxy_ext = substr($data[$key]['PROXY_EXT'], 0, 24);
$proxy_ext = trim($proxy_ext, ",");
$proxy_ext = str_replace(',', ', ', $proxy_ext);
$proxy_ext = $proxy_ext.", ...";
@ -141,7 +141,8 @@
<table class="data-col2">
<tr>
<td colspan=3 class="domain">
<b><?php echo $key ?></b> <a class="aliases"><?php echo str_replace(',', ', ', $data[$key]['ALIAS']) ?></a>
<?php echo $key ?>
<a class="aliases"><?php echo str_replace(',', ', ', $data[$key]['ALIAS']) ?></a>
</td>
</tr>
<tr>
@ -151,25 +152,27 @@
<td class="counter-name">
<?php echo $data[$key]['IP'] ?>
</td>
</tr>
<tr><td colspan=2><div style="height:5px;"></div></td></tr>
<tr>
<tr>
<td class="chart1" style="padding: 8px 0 0 0">
<td class="chart" style="padding: 4px 0 0 0;">
<?php print __('Bandwidth');?>: <?php echo humanize_usage($data[$key]['U_BANDWIDTH']) ?>
<div style="width:160px; height:6px; font-size:0;background-color:#ddd;">
<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 class="bar mini" title="<?php echo get_percentage($data[$key]['U_BANDWIDTH'],$panel[$user]['BANDWIDTH']) ?>%">
<div class="fill mini" style="width:<?php echo get_percentage($data[$key]['U_BANDWIDTH'],$panel[$user]['BANDWIDTH']) ?>%"></div>
</div>
</td>
</tr>
<tr>
<td class="chart1" style="padding: 4px 0 0 0"><?php print __('Disk');?>: <?php echo humanize_usage($data[$key]['U_DISK']) ?>
<div style="width:160px; height:6px; font-size:0;background-color:#ddd;">
<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>
<td class="chart">
<?php print __('Disk');?>: <?php echo humanize_usage($data[$key]['U_DISK']) ?>
<div class="bar mini" title="<?php echo get_percentage($data[$key]['U_DISK'],$panel[$user]['DISK_QUOTA']) ?>%">
<div class="fill mini" style="width:<?php echo get_percentage($data[$key]['U_DISK'],$panel[$user]['DISK_QUOTA']) ?>%"></div>
</div>
</td>
</tr>
</table>
</td>
<td style="vertical-align:top;" width="297px">
<td style="vertical-align:top;" width="238px">
<table>
<tr>
<td class="counter-name"><?php print __('Web Template');?>:</td>
@ -179,30 +182,28 @@
<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 print $ssl_home ?></td>
</tr>
<tr>
<td class="counter-name"><?php print __('Web Statistics');?>: </td>
<td class="counter-value"> <?php print __($web_stats) ?></td>
</tr>
<tr>
<td class="counter-name"><?php print __('Proxy Support');?>:</td>
<td class="counter-value"><?php print __($proxy_support);?></td>
</tr>
</table>
</td>
<td rowspan=4 style="vertical-align:top;">
<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>
<td class="counter-name"><?php print __('Proxy Extensions');?>:</td>
<td class="counter-value"><?php echo $proxy_ext;?></td>
</tr>
<tr>
<td class="counter-name"> <?php print __('Additional FTP Account');?>:</td>