i18n integration

This commit is contained in:
Serghey Rodin 2013-01-21 16:24:33 +02:00
commit fb216fc3ee
18 changed files with 288 additions and 225 deletions

View file

@ -29,6 +29,12 @@
<form id="vstobjects" name="v_add_user" method="post">
<script type="text/javascript">
$(function() {
$("#v_email").change(function() {
document.getElementById('v_notify').value = document.getElementById('v_email').value;
});
});
function randomString() {
var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
var string_length = 10;
@ -83,7 +89,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_email" <?php if (!empty($v_email)) echo "value=".$v_email; ?>>
<input type="text" size="20" class="vst-input" name="v_email" id='v_email' <?php if (!empty($v_email)) echo "value=".$v_email; ?>>
</td>
</tr>
<tr>
@ -133,16 +139,21 @@
</tr>
<tr>
<td>
<input type="checkbox" size="20" class="vst-checkbox" name="v_notify" <?php if (empty($v_notify)) echo "checked=yes"; ?>>
</td>
</tr>
<tr>
<td style="padding: 24px 0 0 0;">
<input type="submit" name="ok" value="<?php print _('Add');?>" class="button">
<input type="button" class="button" value="<?php print _('Back');?>" onclick="<?php echo $back ?>">
<input type="text" class="vst-input" name="v_notify" id="v_notify" <?php if (!empty($v_notify)) echo "value=".$v_notify; ?>>
</td>
</tr>
</table>
<table class="data-col2">
<tr>
<td style="padding: 24px 0 0 0;" width="116px">
<input type="submit" name="ok" value="<?php print _('Add');?>" class="button">
</td>
<td style="padding: 24px 0 0 0;">
<input type="button" class="button" value="<?php print _('Back');?>" onclick="<?php echo $back ?>">
</td>
</tr>
</table>
</td>
</tr>
</table>

View file

@ -10,7 +10,7 @@
<table class="sub-menu" style="background: white;">
<tr>
<td style="padding: 10px 2px 10px 0;" ><a class="name"><b><?php print _('Adding Domain for hosting');?></b></a>
<td style="padding: 10px 2px 10px 0;" ><a class="name"><b><?php print _('Adding Web Domain');?></b></a>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
@ -66,7 +66,7 @@
}
}
</script>
<table class='data'>
<tr class="data-add">
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
@ -264,7 +264,7 @@
</tr>
<tr>
<td class="vst-text" style="padding: 10px 0 0 2px;">
<?php print _('Statistics');?>
<?php print _('Web Statistics');?>
</td>
</tr>
<tr>
@ -278,7 +278,7 @@
if (( $value == $v_stats ) || ($svalue == $v_stats )){
echo ' selected' ;
}
echo ">".$value."</option>\n";
echo ">" . _($value) . "</option>\n";
}
?>
</select>
@ -341,7 +341,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ftp_user" <?php if (!empty($v_ftp_user)) echo "value=".$v_ftp_user; ?>>
<input type="text" size="20" class="vst-input" name="v_ftp_user" <?php if (!empty($v_ftp_user)) echo "value=".$v_ftp_user; ?>>
</td>
</tr>
<tr>
@ -351,27 +351,29 @@
</tr>
<tr>
<td>
<input type="text" class="vst-input" name="v_ftp_password" <?php if (!empty($v_ftp_password)) echo "value=".$v_ftp_password; ?>>
<input type="text" class="vst-input" name="v_ftp_password" <?php if (!empty($v_ftp_password)) echo "value=".$v_ftp_password; ?>>
</td>
</tr>
<tr>
<td class="vst-text" style="padding: 10px 0 0 0;">
<?php print _('SEND_CREDENTIALS_NOTICE');?>
<?php print _('SEND_FTP_CREDENTIALS');?>
</td>
</tr>
<tr>
<td>
<input type="text" class="vst-input" name="v_ftp_email" <?php if (!empty($v_ftp_email)) echo "value=".$v_ftp_email; ?>>
<input type="text" class="vst-input" name="v_ftp_email" <?php if (!empty($v_ftp_email)) echo "value=".$v_ftp_email; ?>>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table class="data-col2" width="600px">
<table class="data-col2">
<tr>
<td style="padding: 33px 0 0 0;">
<td style="padding: 33px 0 0 0;" width="116px">
<input type="submit" name="ok" value="<?php print _('Add');?>" class="button">
</td>
<td style="padding: 33px 0 0 0;">
<input type="button" class="button" value="<?php print _('Back');?>" onclick="<?php echo $back ?>">
</td>
</tr>

View file

@ -45,7 +45,7 @@
<table class="data-col1">
<tr><td style="padding: 24px 0 2px 4px;"><a class="data-date" ?><?php echo strftime("%d %b %Y", strtotime($v_date))?></a></td></tr>
<tr><td style="padding: 0 0 6px 4px;"><a class="data-date" ?><?php echo $v_time?></a></td></tr>
<tr><td style="padding: 0 0 0 21px;" class="data-<?php echo $v_status ?>"><b><?php echo $v_status ?></b></td></tr>
<tr><td style="padding: 0 0 0 21px;" class="data-<?php echo $v_status ?>"><b><?php echo _($v_status); ?></b></td></tr>
</table>
</td>
<td class="data-dotted" width="830px" style="vertical-align:top;">
@ -194,9 +194,13 @@
<input type="text" size="20" class="vst-input" name="v_ns4" <?php if (!empty($v_ns4)) echo "value=".$v_ns4; ?>>
</td>
</tr>
</table>
<table class="data-col2">
<tr>
<td style="padding: 24px 0 0 0;">
<td style="padding: 24px 0 0 0;" width="116px">
<input type="submit" class="button" name="save" value="<?php print _('Save');?>">
</td>
<td style="padding: 24px 0 0 0;">
<input type="button" class="button" value="<?php print _('Back');?>" onclick="<?php echo $back ?>">
</td>
</tr>

View file

@ -63,9 +63,9 @@
<tr class="data-add">
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
<table class="data-col1">
<tr><td style="padding: 24px 0 2px 4px;"><a class="data-date" ?><?php echo date("d M Y", strtotime($v_date))?></a></td></tr>
<tr><td style="padding: 24px 0 2px 4px;"><a class="data-date" ?><?php echo strftime("%d %b %Y", strtotime($v_date))?></a></td></tr>
<tr><td style="padding: 0 0 6px 4px;"><a class="data-date" ?><?php echo $v_time?></a></td></tr>
<tr><td style="padding: 0 0 0 21px;" class="data-<?php echo $v_status ?>"><b><?php echo $v_status ?></b></td></tr>
<tr><td style="padding: 0 0 0 21px;" class="data-<?php echo $v_status ?>"><b><?php echo _($v_status) ?></b></td></tr>
</table>
</td>
<td class="data-dotted" width="830px" style="vertical-align:top;">
@ -178,7 +178,7 @@
<table style="display:<?php if ($v_ssl == 'no' ) { echo 'none';} else {echo 'block';}?> ;" id="ssltable">
<tr>
<td class="vst-text" style="padding: 9px 0 0 0;">
<?php print _('SSH Home Directory');?>
<?php print _('SSL Home Directory');?>
</td>
</tr>
<tr>
@ -228,7 +228,7 @@
</tr>
<tr>
<td class="vst-text" style="padding: 10px 0 0 2px;">
<?php print _('Statisitcs');?>
<?php print _('Web Statistics');?>
</td>
</tr>
<tr>
@ -242,15 +242,15 @@
if (( $value == $v_stats ) || ($svalue == $v_stats )){
echo ' selected' ;
}
echo ">".$value."</option>\n";
echo ">". _($value) ."</option>\n";
}
?>
?>
</select>
</td>
</tr>
<tr>
<td class="vst-text" style="padding: 10px 0 0 2px;">
<?php print _('Statistic Authorization');?>
<?php print _('Statistics Authorization');?>
</td>
</tr>
<tr>
@ -300,7 +300,7 @@
<tr>
<td class="vst-text" style="padding: 10px 0 0 0;">
<?php print _('Username');?>
<?php if (empty($v_ftp_user)) echo '<br><span style="font-size: 10pt; color:#555;">Prefix '.$user.'_ will be automaticaly added to username</span>' ?>
<?php if (empty($v_ftp_user)) echo '<br><span style="font-size: 10pt; color:#555;">' . _('FTP_PREFIX_WILL_BE_ADDED',$user."_") . '</span>' ?>
</td>
</tr>
<tr>
@ -324,7 +324,7 @@
?>
<tr>
<td class="vst-text" style="padding: 10px 0 0 0;">
<?php print _('SEND_CREDENTIALS_NOTICE');?>
<?php print _('SEND_FTP_CREDENTIALS');?>
</td>
</tr>
<tr>
@ -338,9 +338,13 @@
</table>
</td>
</tr>
</table>
<table class="data-col2">
<tr>
<td style="padding: 24px 0 0 0;">
<td style="padding: 24px 0 0 0;" width="116px">
<input type="submit" class="button" name="save" value="<?php print _('Save');?>">
</td>
<td style="padding: 24px 0 0 0;">
<input type="button" class="button" value="<?php print _('Back');?>" onclick="<?php echo $back ?>">
</td>
</tr>
@ -349,4 +353,4 @@
</tr>
</table>
</form>

View file

@ -7,7 +7,7 @@
if ($user == 'admin') {
echo "<button style=\"width:120px; padding: 2px 0px;\" onclick=\"location.href='/add/user/'\">" . _('Add User') . "</button>";
} else {
echo "<button style=\"width:120px; padding: 2px 0px;\" onclick=\"location.href='/add/web/'\">" . _('Add Domain') . "</button>";
echo "<button style=\"width:120px; padding: 2px 0px;\" onclick=\"location.href='/add/web/'\">" . _('Add Web Domain') . "</button>";
}
?>
</div>

View file

@ -3,7 +3,7 @@
<tr>
<td style="padding: 12px 0 8px 6px">
<div style="float:left">
<button style="width:120px; padding: 2px 0px;" onclick="location.href='/add/web/'"> <?php print _('Add Domain for hosting');?> </button>
<button style="width:120px; padding: 2px 0px;" onclick="location.href='/add/web/'"> <?php print _('Add Web Domain');?> </button>
</div>
<div style="text-align: right; float: right;">
<form action="/search/" method="get" >
@ -77,41 +77,50 @@
<tr class="data-row">
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
<table class="data-col1">
<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 date("d M Y", strtotime($data[$key]['DATE'])) ?></td></tr>
<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>
</table>
</td>
<td class="data-dotted" width="830px" style="vertical-align:top;">
<table width="830px">
<tr>
<td></td>
<?php
if (!empty($data[$key]['STATS'])) {
echo ' <td class="data-controls" width="114px">';
echo "<a href='http://".$key."/vstats/' target='_blank'>";
echo '<img src="/images/new_window.png" width="8px" height="8px"> '._('open webstats').' </a></td>';
}
?>
<td class="data-controls" width="50px"><a href="/edit/web/?domain=<?php echo "$key" ?>"><img src="/images/edit.png" width="8px" height="8px"> <?php print _('edit');?></a></td>
<td class="data-controls do_<?php echo $spnd_action ?>" width="80px">
<img src="/images/suspend.png" width="7px" height="8px" class="do_<?php echo $spnd_action ?>">
<a id="<?php echo $spnd_action ?>_link_<?php echo $i ?>" class="do_<?php echo $spnd_action ?>"> <?php echo _($spnd_action); ?></a>
<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 _('DOMAIN_ACTION_CONFIRMATION',_($spnd_action),$key);?></p>
</div>
</td>
<td class="data-controls do_delete" width="70px">
<img src="/images/delete.png" width="7px" height="7px" class="do_delete">
<a id="delete_link_<?php echo $i ?>" class="do_delete"> <?php print _('delete');?></a>
<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 _('DOMAIN_ACTION_CONFIRMATION',_('delete'),$key);?></p>
</div>
</td>
</tr>
</table>
<a id="delete_link_<?php echo $i ?>" class="do_delete">
<span class="data-controls do_delete">
<img src="/images/delete.png" width="7px" height="7px" class="do_delete">
<?php print _('delete');?>
<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 _('DOMAIN_ACTION_CONFIRMATION',_('delete'),$key);?></p>
</div>
</span>
</a>
<a id="<?php echo $spnd_action ?>_link_<?php echo $i ?>" class="do_<?php echo $spnd_action ?>">
<span class="data-controls do_<?php echo $spnd_action ?>" >
<img src="/images/suspend.png" width="7px" height="8px" class="do_<?php echo $spnd_action ?>">
<?php echo _($spnd_action); ?>
<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 _('DOMAIN_ACTION_CONFIRMATION',_($spnd_action),$key);?></p>
</div>
</span>
</a>
<a href="/edit/web/?domain=<?php echo $key ?>">
<span class="data-controls">
<img src="/images/edit.png" width="8px" height="8px">
<?php print _('edit');?>
</span>
</a>
<?php
if (!empty($data[$key]['STATS'])) {
?>
<a href="http://<?php echo $key ?>/vstats/" target="_blank">
<span class="data-controls">
<img src="/images/new_window.png" width="8px" height="8px">
<?php print _('open webstats');?>
</span>
</a>
<?php
}
?>
<table class="data-col2" width="830px">
<tr>
@ -152,7 +161,7 @@
<table>
<tr>
<td class="counter-name" width="110"><?php print _('SSL Support');?>:</td>
<td class="counter-value"><?php echo $data[$key]['SSL'] ?></td>
<td class="counter-value"><?php print _($data[$key]['SSL']) ?></td>
</tr>
<tr>
<td class="counter-name"><?php print _('SSL Home Directory');?>:</td>
@ -160,7 +169,7 @@
</tr>
<tr>
<td class="counter-name"><?php print _('Nginx Support');?>:</td>
<td class="counter-value"><?php echo $nginx_support ?></td>
<td class="counter-value"><?php print _($nginx_support) ?></td>
</tr>
<tr>
<td class="counter-name"><?php print _('Nginx Extentions');?>:</td>
@ -171,12 +180,12 @@
<td rowspan=4 style="vertical-align:top;" width="240">
<table>
<tr>
<td class="counter-name"><?php print _('Statistics');?>: </td>
<td class="counter-value"> <?php echo $web_stats ?></td>
<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 _('Additional FTP Account');?>:</td>
<td class="counter-value"> <?php echo $ftp_user ?></td>
<td class="counter-value"> <?php print _($ftp_user) ?></td>
</tr>
</table>
</td>
@ -196,7 +205,7 @@
<td>
<?php
if ( $i == 1) {
echo _('one domain');
echo _('1 domain');
} else {
echo _('%s domains',$i);
}

View file

@ -1,4 +1,4 @@
<br>
</td>
</tr>
</table>

View file

@ -22,7 +22,7 @@
.main {
background: #ffffff;
padding: 0 0 28px 0;
padding: 0 0 18px 0;
box-shadow: 0 0 2px 2px #d7d7d7;
border-bottom: 1px solid #cccccc;
border-left: 1px solid #cccccc;
@ -477,7 +477,7 @@
border-radius: 3px 3px 3px 3px;
color: #555;
font-size: 18px;
padding: 6px;
padding: 5px;
width: 360px;
height: 120px;
}
@ -496,7 +496,7 @@
border-radius: 3px 3px 3px 3px;
color: #555;
font-size: 14pt;
padding: 6px;
padding: 5px;
width: 360px;
height: 36px;
}
@ -510,7 +510,7 @@
}
.vst-list {
padding: 4px;
padding: 5px;
font-size: 12pt;
color: #555;
border-radius: 3px 3px 3px 3px;
@ -522,7 +522,7 @@
}
.vst-checkbox {
padding: 4px;
padding: 5px;
font-size: 12pt;
}

View file

@ -9,7 +9,7 @@
<table class="sub-menu" style="background: white;">
<tr>
<td style="padding: 10px 2px 10px 0;" ><a class="name"><b><?php print _('Adding Domain for hosting');?></b></a>
<td style="padding: 10px 2px 10px 0;" ><a class="name"><b><?php print _('Adding Web Domain');?></b></a>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";

View file

@ -3,13 +3,7 @@
<tr>
<td style="padding: 12px 0 8px 6px">
<div style="float:left">
<?php
if ($user == 'admin') {
echo "<button style=\"width:120px; padding: 2px 0px;\" onclick=\"location.href='/add/user/'\"> <?php print _('Add User');?> </button>";
} else {
echo "<button style=\"width:120px; padding: 2px 0px;\" onclick=\"location.href='/add/web/'\"> <?php print _('Add Domain');?> </button>";
}
?>
<button style="width:120px; padding: 2px 0px;" onclick="location.href='/add/web/'"> <?php print _('Add Web Domain') ?> </button>
</div>
<div style="text-align: right; float: right;">
<form action="/search/" method="get">
@ -22,7 +16,16 @@
<a style="padding: 0 4px 0 12px" class="select-controls" href='javascript:checkedAll("objects");'> <?php print _('toggle all');?> </a>
<select style="margin:0 2px 0 0px;" name="action">
<option><?php print _('apply to selected');?></option>
<option><?php print _('rebuild');?></option>
<option><?php print _('rebuild web');?></option>
<option><?php print _('rebuild DNS');?></option>
<option><?php print _('rebuild mail');?></option>
<option><?php print _('rebuild db');?></option>
<option><?php print _('rebuild cron');?></option>
<option><?php print _('update counters');?></option>
<option><?php print _('suspend');?></option>
<option><?php print _('unsuspend');?></option>
<option><?php print _('delete');?></option>
</select>
<input type="submit" name="ok" value="" class="button" style="width: 37px; height: 24px;font-size: 12px;">
</div>
@ -51,17 +54,19 @@
<td class="data-dotted" style="padding: 0px 10px 0px 0px">
<table class="data-col1">
<tr><td style="padding: 18 0 4 18;"><input type="checkbox" name="user[]" value="<?php echo $key ?>" ></td></tr>
<tr><td><a class="data-date" title="<?php echo $data[$key]['DATE']." ".$data[$key]['TIME'] ?>"><?php echo date("d M Y", strtotime($data[$key]['DATE']))?></a></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']))?></a><td></tr>
<tr><td class="data-<?php echo $status ?>"><b><?php echo _($status); ?></b></td></tr>
</table>
</td>
<td class="data-dotted" width="830px" style="vertical-align:top;">
<table width="830px">
<tr>
<td></td>
<td class="data-controls" width="50px"><a href="/edit/user/?user=<?php echo "$key" ?>"><img src="/images/edit.png" width="8px" height="8px"> edit</a></td>
</tr>
</table>
<a href="/edit/user/?user=<?php echo "$key" ?>">
<span class="data-controls">
<img src="/images/edit.png" width="8px" height="8px">
<?php print _('edit');?>
</span>
</a>
<table class="data-col2" width="830px">
<tr>
@ -184,7 +189,7 @@
<td>
<?php
if ( $i == 1) {
echo _('one account');
echo _('1 account');
} else {
echo _('%s accounts',$i);
}
@ -193,4 +198,3 @@
</tr>
</table>
</div>

View file

@ -3,10 +3,10 @@
<tr>
<td style="padding: 12px 0 8px 6px">
<div style="float:left">
<button style="width:120px; padding: 2px 0px;" onclick="location.href='/add/web/'"> <?php print _('Add Domain for hosting');?> </button>
<button style="width:120px; padding: 2px 0px;" onclick="location.href='/add/web/'"> <?php print _('Add Web Domain');?> </button>
</div>
<div style="text-align: right; float: right;">
<form action="/search/" method="get">
<form action="/search/" method="get" >
<input type="text" name="q" style="margin: 2px 2px 0px 0px; width: 250px; padding: 3px;" size="30">
<input type="submit" value="<?php print _('Search');?>" class="button" style="font-size: 12px; height: 24px;">
</form>
@ -16,6 +16,8 @@
<a style="padding: 0 4px 0 12px" class="select-controls" href='javascript:checkedAll("objects");'> <?php print _('toggle all');?> </a>
<select style="margin:0 2px 0 0px;" name="action">
<option><?php print _('apply to selected');?></option>
<option><?php print _('suspend');?></option>
<option><?php print _('unsuspend');?></option>
<option><?php print _('delete');?></option>
</select>
<input type="submit" name="ok" value="" class="button" style="width: 37px;font-size: 12px; height: 24px;">
@ -48,6 +50,18 @@
} 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);
@ -63,33 +77,40 @@
<tr class="data-row">
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
<table class="data-col1">
<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 date("d M Y", strtotime($data[$key]['DATE'])) ?></td></tr>
<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>
</table>
</td>
<td class="data-dotted" width="830px" style="vertical-align:top;">
<table width="830px">
<tr>
<td></td>
<?php
if (!empty($data[$key]['STATS'])) {
echo ' <td class="data-controls" width="114px">';
echo "<a href='http://".$key."/vstats/' target='_blank'>";
echo '<img src="/images/new_window.png" width="8px" height="8px"> '._('open webstats').' </a></td>';
}
?>
<td class="data-controls" width="50px"><a href="/edit/web/?domain=<?php echo "$key" ?>"><img src="/images/edit.png" width="8px" height="8px"> <?php print _('edit');?></a></td>
<td class="data-controls do_delete" width="70px">
<img src="/images/delete.png" width="7px" height="7px" class="do_delete">
<a id="delete_link_<?php echo $i ?>" class="do_delete"> <?php print _('delete');?></a>
<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 _('DOMAIN_ACTION_CONFIRMATION',_('delete'),$key);?></p>
</div>
</td>
</tr>
</table>
<a id="delete_link_<?php echo $i ?>" class="do_delete">
<span class="data-controls do_delete">
<img src="/images/delete.png" width="7px" height="7px" class="do_delete">
<?php print _('delete');?>
<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 _('DOMAIN_ACTION_CONFIRMATION',_('delete'),$key);?></p>
</div>
</span>
</a>
<a href="/edit/web/?domain=<?php echo $key ?>">
<span class="data-controls">
<img src="/images/edit.png" width="8px" height="8px">
<?php print _('edit');?>
</span>
</a>
<?php
if (!empty($data[$key]['STATS'])) {
?>
<a href="http://<?php echo $key ?>/vstats/" target="_blank">
<span class="data-controls">
<img src="/images/new_window.png" width="8px" height="8px">
<?php print _('open webstats');?>
</span>
</a>
<?php
}
?>
<table class="data-col2" width="830px">
<tr>
@ -126,39 +147,19 @@
</tr>
</table>
</td>
<td style="vertical-align:top;" width="250">
<td style="vertical-align:top;" width="300">
<table>
<tr>
<td class="counter-name"><?php print _('CGI Support');?>:</td>
<td class="counter-value"><?php echo $data[$key]['CGI'] ?></td>
</tr>
<tr>
<td class="counter-name"><?php print _('Error Log');?>:</td>
<td class="counter-value"><?php echo $data[$key]['ELOG'] ?></td>
</tr>
<tr>
<td class="counter-name"><?php print _('Statistics');?>:</td>
<td class="counter-value"><?php echo $data[$key]['STATS'] ?></td>
</tr>
<tr>
<td class="counter-name"><?php print _('Statistics Auth');?>:</td>
<td class="counter-value"><?php echo $data[$key]['STATS_AUTH'] ?></td>
</tr>
</table>
</td>
<td rowspan=4 style="vertical-align:top;" width="300">
<table width="300">
<tr>
<td class="counter-name" width="40%"><?php print _('SSL Support');?>:</td>
<td class="counter-value"><?php echo $data[$key]['SSL'] ?></td>
<td class="counter-name" width="110"><?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>
</tr>
<tr>
<td class="counter-name"><?php print _('Nginx Template');?>:</td>
<td class="counter-value"><?php echo $data[$key]['NGINX'] ?></td>
<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>
@ -166,6 +167,18 @@
</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>
<tr>
<td class="counter-name"> <?php print _('Additional FTP Account');?>:</td>
<td class="counter-value"> <?php print _($ftp_user) ?></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
@ -182,7 +195,7 @@
<td>
<?php
if ( $i == 1) {
echo _('one domain');
echo _('1 domain');
} else {
echo _('%s domains',$i);
}
@ -191,4 +204,3 @@
</tr>
</table>
</div>