1
0
mirror of https://github.com/serghey-rodin/vesta.git synced 2025-03-12 04:36:25 -07:00

216 lines
16 KiB
HTML
Raw Normal View History

2013-02-24 18:10:10 +02:00
<table class="submenu">
2013-01-19 23:57:58 +04:00
<tr>
2013-02-24 18:10:10 +02:00
<td style="padding: 2px 0 0 6px">
<div class="submenu-button-block">
<button class="submenu-button" onclick="location.href='/add/web/'"> <?php print __('Add Web Domain');?> </button>
2013-01-19 23:57:58 +04:00
</div>
2013-02-24 18:10:10 +02:00
<div class="submenu-search-block">
<form action="/search/" method="get">
<input type="text" name="q" class="submenu-search-field">
<input type="submit" value="<?php print __('Search');?>" class="submenu-button" style="width: 96px;">
2013-01-19 23:57:58 +04:00
</form>
</div>
2013-02-24 18:10:10 +02:00
<div class="submenu-select-block">
2013-01-19 23:57:58 +04:00
<form action="/bulk/web/" method="post" id="objects">
<a class="submenu-select-link" href='javascript:checkedAll("objects");'> <?php print __('toggle all');?> </a>
2013-02-24 18:10:10 +02:00
<select class="submenu-select-dropdown" name="action">
<option value=""><?php print __('apply to selected');?></option>
<option value="suspend"><?php print __('suspend');?></option>
<option value="unsuspend"><?php print __('unsuspend');?></option>
<option value="delete"><?php print __('delete');?></option>
2013-01-19 23:57:58 +04:00
</select>
2013-02-24 18:10:10 +02:00
<input type="submit" name="ok" value="" class="submenu-button" style="width: 36px;">
2013-01-19 23:57:58 +04:00
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div id="vstobjects">
<table class='data'>
<?php
foreach ($data as $key => $value) {
++$i;
if ($data[$key]['SUSPENDED'] == 'yes') {
$status = 'suspended';
$spnd_action = 'unsuspend' ;
2013-04-25 21:15:37 +03:00
$spnd_confirmation = 'UNSUSPEND_DOMAIN_CONFIRMATION' ;
2013-01-19 23:57:58 +04:00
} else {
$status = 'active';
$spnd_action = 'suspend' ;
2013-04-25 21:15:37 +03:00
$spnd_confirmation = 'SUSPEND_DOMAIN_CONFIRMATION' ;
2013-01-19 23:57:58 +04:00
}
if (!empty($data[$key]['SSL_HOME'])) {
if ($data[$key]['SSL_HOME'] == 'same') {
$ssl_home = 'public_html';
} else {
$ssl_home = 'public_shtml';
}
} else {
$ssl_home = '';
}
$web_stats='no';
if (!empty($data[$key]['STATS'])) {
$web_stats=$data[$key]['STATS'];
}
$ftp_user='no';
if (!empty($data[$key]['FTP_USER'])) {
$ftp_user=$data[$key]['FTP_USER'];
}
$nginx_support='no';
if (!empty($data[$key]['NGINX'])) {
$nginx_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.", ...";
} else {
$nginx_ext_title = '';
$nginx_ext = str_replace(',', ', ', $data[$key]['NGINX_EXT']);
}
2013-01-22 01:19:52 +02:00
?>
2013-01-19 23:57:58 +04:00
<tr class="data-row">
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
<table class="data-col1">
2013-01-21 16:24:33 +02:00
<tr><td style="padding: 18 0 4 18;"><input type="checkbox" name="domain[]" value="<?php echo $key ?>" ></td></tr>
<tr><td><a class="data-date" title="<?php echo $data[$key]['DATE']." ".$data[$key]['TIME'] ?>"><?php echo strftime("%d %b %Y", strtotime($data[$key]['DATE'])) ?></td></tr>
<tr><td class="data-<?php echo $status ?>"><b><?php echo __($status); ?></b></td></tr>
2013-01-19 23:57:58 +04:00
</table>
</td>
<td class="data-dotted" width="830px" style="vertical-align:top;">
2013-01-29 00:18:09 +02:00
<a id="delete_link_<?php echo $i ?>" class="data-controls do_delete">
<span class="do_delete">
2013-01-22 01:19:52 +02:00
<img src="/images/delete.png" width="7px" height="7px">
<?php print __('delete');?>
2013-01-21 16:24:33 +02:00
<input type="hidden" name="delete_url" value="/delete/web/?domain=<?php echo $key ?>" />
<div id="delete_dialog_<?php echo $i ?>" class="confirmation-text-delete hidden" title="<?php print __('Confirmation');?>">
<p class="counter-value"><?php print __('DELETE_DOMAIN_CONFIRMATION',$key);?></p>
2013-01-21 16:24:33 +02:00
</div>
</span>
</a>
2013-01-29 00:18:09 +02:00
<a id="<?php echo $spnd_action ?>_link_<?php echo $i ?>" class="data-controls do_<?php echo $spnd_action ?>">
<span class="do_<?php echo $spnd_action ?>">
2013-01-22 01:19:52 +02:00
<img src="/images/suspend.png" width="7px" height="8px">
<?php echo __($spnd_action); ?>
2013-01-21 16:24:33 +02:00
<input type="hidden" name="<?php echo $spnd_action ?>_url" value="/<?php echo $spnd_action ?>/web/?domain=<?php echo $key ?>" />
<div id="<?php echo $spnd_action ?>_dialog_<?php echo $i ?>" class="confirmation-text-suspention hidden" title="<?php print __('Confirmation');?>">
<p class="counter-value"><?php print __($spnd_confirmation,$key);?></p>
2013-01-21 16:24:33 +02:00
</div>
</span>
</a>
2013-01-29 00:18:09 +02:00
<a href="/edit/web/?domain=<?php echo $key ?>" class="data-controls">
<span>
2013-01-21 16:24:33 +02:00
<img src="/images/edit.png" width="8px" height="8px">
<?php print __('edit');?>
2013-01-21 16:24:33 +02:00
</span>
</a>
<?php
if (!empty($data[$key]['STATS'])) {
?>
2013-01-29 00:18:09 +02:00
<a href="http://<?php echo $key ?>/vstats/" target="_blank" class="data-controls">
<span>
2013-01-21 16:24:33 +02:00
<img src="/images/new_window.png" width="8px" height="8px">
<?php print __('open webstats');?>
2013-01-21 16:24:33 +02:00
</span>
</a>
<?php
}
?>
2013-01-19 23:57:58 +04:00
<table class="data-col2" width="830px">
<tr>
<td colspan=3 class="domain" style="padding: 0 0 0 4px;">
<b><?php echo $key ?></b> <a class="aliases" style="padding: 0 30px 0 8px"><?php echo str_replace(',', ', ', $data[$key]['ALIAS']) ?></a>
</td>
</tr>
<tr>
<td style="vertical-align:top;" >
<table>
<tr>
<td class="counter-name" style="padding: 2px 0 0 2px;">
<?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');?>
2013-01-19 23:57:58 +04:00
</td>
2013-01-22 01:19:52 +02:00
</tr>
2013-01-19 23:57:58 +04:00
<tr>
<td class="chart1" style="padding: 0 0 0 2px">
<?php print __('Bandwidth');?>: <?php echo humanize_usage($data[$key]['U_BANDWIDTH']) ?>
2013-01-19 23:57:58 +04:00
<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>
</td>
</tr>
<tr>
<td class="chart1" style="padding: 0 0 0 2px"><?php print __('Disk');?>: <?php echo humanize_usage($data[$key]['U_DISK']) ?>
2013-01-19 23:57:58 +04:00
<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>
</td>
</tr>
</table>
</td>
<td style="vertical-align:top;" width="300">
<table>
<tr>
<td class="counter-name" width="110"><?php print __('SSL Support');?>:</td>
<td class="counter-value"><?php print __($data[$key]['SSL']) ?></td>
2013-01-19 23:57:58 +04:00
</tr>
<tr>
<td class="counter-name"><?php print __('SSL Home Directory');?>:</td>
2013-01-19 23:57:58 +04:00
<td class="counter-value"><?php echo $ssl_home ?></td>
</tr>
<tr>
<td class="counter-name"><?php print __('Nginx Support');?>:</td>
<td class="counter-value"><?php print __($nginx_support) ?></td>
2013-01-19 23:57:58 +04:00
</tr>
<tr>
<td class="counter-name"><?php print __('Nginx Extentions');?>:</td>
2013-01-19 23:57:58 +04:00
<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>
2013-01-19 23:57:58 +04:00
</tr>
<tr>
<td class="counter-name"> <?php print __('Additional FTP Account');?>:</td>
<td class="counter-value"> <?php print __($ftp_user) ?></td>
2013-01-19 23:57:58 +04:00
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<?php
}
?>
</table>
</form>
<table class="data-count">
<tr>
<td width="160px">
<td>
<?php
if ( $i == 1) {
echo __('1 domain');
2013-01-19 23:57:58 +04:00
} else {
echo __('%s domains',$i);
2013-01-19 23:57:58 +04:00
}
?>
</td>
</tr>
</table>
</div>