new css class

This commit is contained in:
Serghey Rodin 2014-01-22 12:07:13 +02:00
commit 0e3bda794b
12 changed files with 39 additions and 135 deletions

View file

@ -87,7 +87,7 @@
</tr>
<tr>
<td class="vst-text" style="padding: 10px 0 0 2px;">
<?php print __('Password');?> <a href="javascript:randomString();" class="genpass"><?php print __('generate');?></a>
<?php print __('Password');?> / <a href="javascript:randomString();" class="generate"><?php print __('generate');?></a>
</td>
</tr>
<tr>

View file

@ -93,7 +93,7 @@
</tr>
<tr>
<td class="vst-text" style="padding: 10px 0 0 2px;">
<?php print __('Priority');?> <span style="padding:0 0 0 6px; font-size: 10pt; color:#555;">(<?php print __('optional');?>)</span>
<?php print __('Priority');?> <span class="optional">(<?php print __('optional');?>)</span>
</td>
</tr>
<tr>

View file

@ -123,7 +123,7 @@
</tr>
<tr>
<td class="vst-text" style="padding: 10 0 0 2px;">
<?php print __('Assigned domain');?> <span style="padding:0 0 0 6px; font-size: 10pt; color:#555;">(<?php print __('optional');?>)</span>
<?php print __('Assigned domain');?> <span class="optional">(<?php print __('optional');?>)</span>
</td>
</tr>
<tr>
@ -133,7 +133,7 @@
</tr>
<tr>
<td class="vst-text" style="padding: 10 0 0 2px;">
<?php print __('NAT IP association');?> <span style="padding:0 0 0 6px; font-size: 10pt; color:#555;">(<?php print __('optional');?>)</span>
<?php print __('NAT IP association');?> <span class="optional"">(<?php print __('optional');?>)</span>
</td>
</tr>
<tr>

View file

@ -81,7 +81,7 @@
</tr>
<tr>
<td class="vst-text" style="padding: 10px 0 0 2px;">
<?php print __('Password');?> <a href="javascript:randomString();" class="genpass"><?php print __('generate');?></a>
<?php print __('Password');?> / <a href="javascript:randomString();" class="generate"><?php print __('generate');?></a>
</td>
</tr>
<tr>

View file

@ -70,7 +70,7 @@
</tr>
<tr>
<td class="vst-text" style="padding: 10px 0 0 2px;">
<?php print __('Password');?> <a href="javascript:randomString();" class="genpass" ><?php print __('generate');?></a>
<?php print __('Password');?> / <a href="javascript:randomString();" class="generate" ><?php print __('generate');?></a>
</td>
</tr>
<tr>
@ -124,12 +124,14 @@
foreach ($languages as $key => $value) {
echo "\n\t\t\t\t\t\t\t\t\t<option value=\"".$value."\"";
$svalue = "'".$value."'";
if (( $value == $v_language ) || ( $svalue == $v_language)){
echo 'selected' ;
}
if (( $value == 'en' ) && (empty($v_language))){
echo 'selected' ;
}
if (isset($v_language)){
if (( $value == $v_language ) || ( $svalue == $v_language)){
echo 'selected' ;
}
}
echo ">".$value."</option>\n";
}
?>

View file

@ -89,7 +89,7 @@
</tr>
<tr>
<td class="vst-text" style="padding: 10px 0 0 2px;">
<?php print __('Password');?> <a href="javascript:randomString();" class="genpass"><?php print __('generate');?></a>
<?php print __('Password');?> / <a href="javascript:randomString();" class="generate"><?php print __('generate');?></a>
</td>
</tr>
<tr>

View file

@ -87,7 +87,7 @@
</tr>
<tr>
<td class="vst-text" style="padding: 10px 0 0 2px;">
<?php print __('Priority');?> <span style="padding:0 0 0 6px; font-size: 10pt; color:#555;">(<?php print __('optional');?>)</span>
<?php print __('Priority');?> <span class="optional">(<?php print __('optional');?>)</span>
</td>
</tr>
<tr>

View file

@ -116,7 +116,7 @@
</tr>
<tr>
<td class="vst-text" style="padding: 10 0 0 2px;">
<?php print __('Assigned domain');?> <span style="padding:0 0 0 6px; font-size: 10pt; color:#555;">(<?php print __('optional');?>)</span>
<?php print __('Assigned domain');?> <span class="optional">(<?php print __('optional');?>)</span>
</td>
</tr>
<tr>
@ -126,7 +126,7 @@
</tr>
<tr>
<td class="vst-text" style="padding: 10 0 0 2px;">
<?php print __('NAT IP association');?> <span style="padding:0 0 0 6px; font-size: 10pt; color:#555;">(<?php print __('optional');?>)</span>
<?php print __('NAT IP association');?> <span class="optional">(<?php print __('optional');?>)</span>
</td>
</tr>
<tr>

View file

@ -80,7 +80,7 @@
</tr>
<tr>
<td class="vst-text" style="padding: 10px 0 0 2px;">
<?php print __('Password');?> <a href="javascript:randomString();" class="genpass"><?php print __('generate');?></a>
<?php print __('Password');?> / <a href="javascript:randomString();" class="generate"><?php print __('generate');?></a>
</td>
</tr>
<tr>

View file

@ -69,7 +69,7 @@
</tr>
<tr>
<td class="vst-text" style="padding: 10px 0 0 2px;">
<?php print __('Password');?> <a href="javascript:randomString();" class="genpass"><?php print __('generate');?></a>
<?php print __('Password');?> / <a href="javascript:randomString();" class="generate"><?php print __('generate');?></a>
</td>
</tr>
<tr>

View file

@ -4,124 +4,26 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Web Log Manager</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<style type="text/css">
body {
margin: 0;
margin-left: auto;
margin-right: auto;
font-family: Arial, Helvetica, sans-serif;
padding: 0 0 0 8px;
}
.main {
background-color: #ffffff;
padding: 0 0 18px 0;
box-shadow: 0 2px 6px rgba(100, 100, 100, 0.3);
}
.top {
color: #ffd76e;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
margin: 0;
font-size: 10pt;
text-align: left;
border: 0px;
border-collapse:collapse;
}
.top thead td {
background-color: #505050;
border-bottom: 1px solid #fff;
height: 25px;
text-align: right;
padding: 0 24px 0 0px;
weight:120px;
}
.top thead td:first-child{
border-left: 1px solid #fff;
border-right:none;
text-align:left;
padding: 0 0 0 0;
width:auto;
}
.top-link {
padding: 5px 22px 4px;
text-decoration: none;
color: #fff;
border-right: 1px solid #fff;
}
.top-link:hover {
color: #fff;
background-color: #999;
}
.top-link:active{
color: #fff;
background-color: #f79b44;
}
.top-selected-link {
padding: 5px 22px;
text-decoration: none;
color: #555;
background-color: #fff;
border-right: 1px solid #fff;
}
.top-selected-link:hover {
color: #174f82;
}
.top-selected-link:active {
color: #fff;
background-color: #f79b44;
}
.top-user {
padding: 0 2px 0 0;
text-decoration: none;
color: #ffd76e;
}
.top-user:hover {
color: #fff;
}
.top-user:active{
color: #fff;
background-color: #f79b44;
}
</style>
<link type="text/css" href="/css/main.css" rel="stylesheet" />
</head>
<body>
<table class="top">
<thead>
<tr>
<td>
<b><a class="top-<?php if($_GET['type'] == 'access' ) echo 'selected-' ?>link" href="/list/web-log/?domain=<?php echo $_GET['domain']."&type=access"?>">
<?php print __('AccessLog') ?>
</a></b>
<b><a class="top-<?php if($_GET['type'] == 'error' ) echo 'selected-' ?>link" href="/list/web-log/?domain=<?php echo $_GET['domain']."&type=error"?>">
<?php print __('ErrorLog') ?>
</a></b>
<b><a class="top-link" href="/download/web-log/?domain=<?php echo $_GET['domain']."&type=access"?>">
<?php print __('Download AccessLog') ?>
</a></b>
<b><a class="top-link" href="/download/web-log/?domain=<?php echo $_GET['domain']."&type=error"?>">
<?php print __('Download ErrorLog') ?>
</a></b>
</td>
</tr>
</thead>
</table>
<div style="color: #323232; padding: 16px 0px;"><?php echo __('Last 70 lines of %s.%s.log',$_GET['domain'],$_GET['type']) ;?></div>
<pre>
<div style="margin:0 auto;display: block; background: #fff;" >
<div class="top">
<div class="top-menu">
<a class="top-<?php if($_GET['type'] == 'access') echo 'selected-' ?>link" href="/list/web-log/?domain=<?php echo $_GET['domain']."&type=access"?>">
<?php print __('AccessLog') ?>
</a>
<a class="top-<?php if($_GET['type'] == 'error' ) echo 'selected-' ?>link" href="/list/web-log/?domain=<?php echo $_GET['domain']."&type=error"?>">
<?php print __('ErrorLog') ?>
</a>
<a class="top-link" href="/download/web-log/?domain=<?php echo $_GET['domain']."&type=access"?>">
<?php print __('Download AccessLog') ?>
</a>
<a class="top-link" href="/download/web-log/?domain=<?php echo $_GET['domain']."&type=error"?>">
<?php print __('Download ErrorLog') ?>
</a>
</div>
</div>
</div>
<div style="color: #323232; padding: 40px 0 20px 0;background: #fff;"><?php echo __('Last 70 lines of %s.%s.log',$_GET['domain'],$_GET['type']) ;?></div>
<pre>

View file

@ -69,7 +69,7 @@
</tr>
<tr>
<td class="vst-text" style="padding: 10px 0 0 2px;">
<?php print __('Password');?> <a href="javascript:randomString();" class="genpass"><?php print __('generate');?></a>
<?php print __('Password');?> / <a href="javascript:randomString();" class="generate"><?php print __('generate');?></a>
</td>
</tr>
<tr>