Reworked admin -> customerslist, fixes #619

Signed-off-by: Florian Aders (EleRas) <eleras@froxlor.org>
This commit is contained in:
Florian Aders (EleRas)
2011-03-01 19:52:34 +01:00
parent 9d45759613
commit 357e60c054
3 changed files with 33 additions and 27 deletions

View File

@@ -9,21 +9,8 @@
</if> </if>
&nbsp;(<a href="$filename?s=$s&amp;page=$page&amp;action=su&amp;id={$row['customerid']}" rel="external">{$row['loginname']}</a> | {$row['adminname']}) &nbsp;(<a href="$filename?s=$s&amp;page=$page&amp;action=su&amp;id={$row['customerid']}" rel="external">{$row['loginname']}</a> | {$row['adminname']})
</strong> </strong>
</td> <div>
<td rowspan="2"> <span class="overviewcustomerextras">
<a href="$filename?s=$s&amp;page=$page&amp;action=edit&amp;id={$row['customerid']}" style="text-decoration:none;">
<img src="images/Froxlor/icons/edit.png" alt="{$lng['panel']['edit']}" />
</a>&nbsp;
<a href="$filename?s=$s&amp;page=$page&amp;action=delete&amp;id={$row['customerid']}" style="text-decoration:none;">
<img src="images/Froxlor/icons/delete.png" alt="{$lng['panel']['delete']}" />
</a>
</td>
</tr>
<tr>
<td>
<table class="overviewcustomerextras">
<tr>
<td style="width: 300px;">
Webspace:&nbsp; Webspace:&nbsp;
<if $row['diskspace'] != 'UL'> <if $row['diskspace'] != 'UL'>
<span class="progressBar" title="{$row['diskspace_used']} / {$row['diskspace']} MB"> <span class="progressBar" title="{$row['diskspace_used']} / {$row['diskspace']} MB">
@@ -39,8 +26,8 @@
<span class="greybar"><em style="left: 200px;">100%</em></span> <span class="greybar"><em style="left: 200px;">100%</em></span>
</span> </span>
</if> </if>
</td> </span>
<td style="width: 300px;"> <span class="overviewcustomerextras">
Traffic:&nbsp; Traffic:&nbsp;
<if $row['traffic'] != 'UL'> <if $row['traffic'] != 'UL'>
<span class="progressBar" title="{$row['traffic_used']} / {$row['traffic']} GB"> <span class="progressBar" title="{$row['traffic_used']} / {$row['traffic']} GB">
@@ -56,11 +43,18 @@
<span class="greybar"><em style="left: 200px;">100%</em></span> <span class="greybar"><em style="left: 200px;">100%</em></span>
</span> </span>
</if> </if>
</span>
<span style="clear: both !important;">
{$last_login}
</span>
</div>
</td> </td>
<td> <td>
{$last_login} <a href="$filename?s=$s&amp;page=$page&amp;action=edit&amp;id={$row['customerid']}" style="text-decoration:none;">
</td> <img src="images/Froxlor/icons/edit.png" alt="{$lng['panel']['edit']}" />
</tr> </a>&nbsp;
</table> <a href="$filename?s=$s&amp;page=$page&amp;action=delete&amp;id={$row['customerid']}" style="text-decoration:none;">
<img src="images/Froxlor/icons/delete.png" alt="{$lng['panel']['delete']}" />
</a>
</td> </td>
</tr> </tr>

View File

@@ -502,10 +502,13 @@ table tbody td {
text-align: left; text-align: left;
} }
.overviewcustomerextras,.overviewcustomerextras tbody td { .overviewcustomerextras {
line-height: 11px; line-height: 15px;
font-size: 10px; font-size: 10px;
border: 0; width: 300px;
float: left;
padding-top: 8px;
padding-bottom: 12px;
} }
td { td {

View File

@@ -14,7 +14,16 @@ $(document).ready(function(){
$(this).css("background-color", "#fff"); $(this).css("background-color", "#fff");
}, },
function() { function() {
$(this).css("background-color", "#f8f8f8"); $(this).css("background-color", "#f5f5f5");
}
);
}
if($("table.bradiusodd").length != 0) {
$("table.bradiusodd tr").hover(function() {
$(this).css("background-color", "#fff");
},
function() {
$(this).css("background-color", "#f5f5f5");
} }
); );
} }
@@ -24,7 +33,7 @@ $(document).ready(function(){
$(this).css("background-color", "#fff"); $(this).css("background-color", "#fff");
}, },
function() { function() {
$(this).css("background-color", "#f8f8f8"); $(this).css("background-color", "#f5f5f5");
} }
); );
} }