L'aternance des couleurs dans les listes est maintenant en CSS3

This commit is contained in:
Alan Garcia 2013-05-23 16:18:56 +00:00
parent b4b8c1be39
commit 9a94561c55
27 changed files with 64 additions and 132 deletions

View File

@ -63,9 +63,7 @@ $list_ip = $authip->list_ip_whitelist();
<table class='tlist'>
<tr><th><?php __("Type"); ?></th><th><?php __("IP"); ?></th><th><?php __("Informations"); ?></th><th colspan='2' /></tr>
<?php
$col=1;
foreach($list_ip as $i) {
$col=3-$col;
if (checkip($i['ip'])) {
if ($i['subnet']==32) {
$txt="Address IPv4";
@ -79,7 +77,7 @@ $list_ip = $authip->list_ip_whitelist();
$txt="Subnet IPv6";
}
}
echo "<tr class='lst$col'><td>$txt</td><td>{$i['ip_human']}</td><td>{$i['infos']}</td>";
echo "<tr class='lst'><td>$txt</td><td>{$i['ip_human']}</td><td>{$i['infos']}</td>";
?>
<td><div class="ina edit"><a href="javascript:edit_ip(<?php echo "'".htmlentities($i['id'])."','".htmlentities($i['ip_human'])."','".htmlentities($i['infos'])."'"; ?>);"><?php __("Edit"); ?></a></div></td>
<td><div class="ina delete"><a href="adm_authip_whitelist.php?delete_id=<?php echo urlencode($i["id"]) ?>"><?php __("Delete"); ?></a></div></td>

View File

@ -55,10 +55,8 @@ echo "</p>";
<th><?php __("Users"); ?></th>
</tr>
<?php
$col=2;
foreach ( $lst_db_servers as $l) {
$col=3-$col;
echo "<tr class='lst$col'>"; ?>
echo "<tr class='lst'>"; ?>
<td><?php echo $l['id']; ?></td>
<td><?php echo $l['name']; ?></td>
<td><?php echo $l['host']; ?></td>

View File

@ -70,7 +70,7 @@ if (isset($error) && $error) {
?>
<form method="post" action="adm_dodefquotas.php">
<table border="0" cellpadding="4" cellspacing="0">
<tr class="lst1">
<tr class="lst">
<td>
<input type="hidden" name="action" value="delete" />
<select name="type" id="type" class="inl">
@ -93,7 +93,6 @@ foreach($quota->listtype() as $type) {
<div>
<input type="hidden" name="action" value="modify" />
<?php
$col=1;
$qarray=$quota->qlist();
$qlist=$quota->getdefaults();
reset($qlist);
@ -107,10 +106,9 @@ foreach($qlist as $type => $q) {
foreach($q as $name => $value) {
if (!isset($qarray[$name])) continue;
$key = $type . ":" . $name;
$col=3-$col;
?>
<tr class="lst<?php echo $col; ?>">
<tr class="lst">
<td><label for="<?php echo $key; ?>"><?php echo $qarray[$name] ; ?></label></td>
<td><input type="text" class="int" size="16" maxlength="16" name="<?php echo $key; ?>" id="<?php echo $key;?>" value="<?php ehe($value); ?>" /></td></tr>

View File

@ -63,10 +63,8 @@ include_once("head.php");
$pair=0;
$db->query("select sd.compte, m.login, sd.domaine, if(length(sub)>0,concat_ws('.',sd.sub,sd.domaine),sd.domaine) as fqdn, sd.valeur, dt.description, sd.web_result from sub_domaines sd,membres m, domaines_type dt where sd.web_action='OK' and length(sd.web_result)<>0 and upper(dt.name)=upper(sd.type) order by sd.domaine, sd.sub, sd.valeur;");
while($db->next_record()) {
++$pair;
?>
<tr class="lst<?php echo $pair%2+1 ?>">
while($db->next_record()) { ?>
<tr class="lst">
<td><?php echo $db->f('compte');?></td>
<td><?php echo $db->f('login');?> </td>
<td><?php echo $db->f('domaine');?> </td>
@ -92,10 +90,8 @@ while($db->next_record()) {
$pair=0;
$db->query("select d.compte, m.login, d.domaine, d.dns_result from domaines d, membres m where d.dns_action='OK' and dns_result <> 0 and dns_result <> '' and m.uid = d.compte;");
while($db->next_record()) {
++$pair;
?>
<tr class="lst<?php echo $pair%2+1 ?>">
while($db->next_record()) { ?>
<tr class="lst">
<td><?php echo $db->f('compte');?></td>
<td><?php echo $db->f('login');?> </td>
<td><?php echo $db->f('domaine');?> </td>

View File

@ -68,12 +68,10 @@ $c=$admin->dom_list(true,$forcecheck);
<table class="tlist">
<tr><th></th><th><?php __("Action"); ?></th><th><?php __("Domain"); ?></th><th><?php __("Creator"); ?></th><th><?php __("Connect as"); ?></th><th><?php __("OK?"); ?></th><th><?php __("Status"); ?></th></tr>
<?php
$col=1;
for($i=0;$i<count($c);$i++) {
$col=3-$col;
?>
<tr class="lst<?php echo $col; ?>">
<tr class="lst">
<td><?php if ($c[$i]["noerase"]) {
echo "<img src=\"icon/encrypted.png\" width=\"16\" height=\"16\" alt=\""._("Locked Domain")."\" />";
} ?></td>

View File

@ -47,14 +47,12 @@ $tab=$dom->lst_default_subdomains();
<table class="tlist">
<tr><th>&nbsp;</th><th><?php __("Sub"); ?></th><th><?php __("Type"); ?></th><th><?php __("settings"); ?></th><th><?php __("Concerned"); ?></th><th><?php __("Activation"); ?></th></tr>
<?php
$col=1;
for($i=0;$i<count($tab)+1;$i++) {?>
<tr class="lst<?php echo $col; ?>">
<tr class="lst">
<td>
<?php
@$val=$tab[$i];
$col=3-$col;
if (isset($tab[$i])){
echo "<input type='hidden' name='domup[$i][id]' value='".$val['id']."' />";
}

View File

@ -43,7 +43,7 @@ include_once("head.php");
<br />
<?php
if (isset($error) && $error) {
if (!empty($error)) {
echo "<p class=\"error\">$error</p>";
}
@ -68,11 +68,9 @@ if (isset($error) && $error) {
<th><?php __("create www directory ?");?></th>
</tr>
<?php
$pair=0;
foreach($dom->domains_type_lst() as $d) {
++$pair;
?>
<tr class="lst<?php echo $pair%2+1 ?>">
<tr class="lst">
<td><div class="ina edit"><a href="adm_domstypeedit.php?name=<?php echo urlencode($d['name']); ?>"><?php __("Edit"); ?></a></div></td>
<td><div class="ina"><a href="adm_domstyperegenerate.php?name=<?php echo urlencode($d['name']);?>"><?php __("Regenerate");?></a></div></td>
<td><?php echo $d['name'];?></td>

View File

@ -202,16 +202,13 @@ if ($mem->user["admlist"]==1) { // SHORT MODE
</tr>
<?php
reset($r);
$col=1;
$rz=ceil(count($r)/3);
for($z=0;$z<$rz;$z++)
{
$col=3-$col;
$val=$r[$z];
for($z=0;$z<$rz;$z++){
$val=$r[$z];
?>
<tr class="lst<?php echo $col; ?>">
<tr class="lst">
<?php if ($val["su"]) { ?>
<td>&nbsp;</td>
<?php } else { ?>

View File

@ -77,12 +77,9 @@ if (is_array($c)) {
<table border="0" cellpadding="4" cellspacing="0" class='tlist'>
<tr><th><?php __("Action"); ?></th><th><?php __("Login"); ?></th><th><?php __("Password"); ?></th></tr>
<?php
$col=1;
for($i=0;$i<count($c);$i++) {
$col=3-$col;
?>
for($i=0;$i<count($c);$i++) { ?>
<tr class="lst<?php echo $col; ?>">
<tr class="lst">
<td class="center"><div class="ina delete"><a href="adm_mxaccount.php?delaccount=<?php echo urlencode($c[$i]["login"]); ?>"><?php __("Delete"); ?></a></div></td>
<td><?php echo $c[$i]["login"]; ?></td>
<td><?php echo $c[$i]["pass"]; ?></td>

View File

@ -48,25 +48,25 @@ if (isset($error) && $error) {
}
?>
<ul id="adm_panel">
<li class="lst1"><a href="adm_tld.php"><?php __("Manage allowed domains (TLD)"); ?></a></li>
<li class="lst2"><a href="adm_passpolicy.php"><?php __("Password Policies"); ?></a></li>
<li class="lst1"><a href="adm_doms.php"><?php __("Manage installed domains"); ?></a></li>
<li class="lst2"><a href="adm_defquotas.php"><?php __("Change the default quotas"); ?></a></li>
<li class="lst1"><a href="adm_authip_whitelist.php"><?php __("Manage IP whitelist"); ?></a></li>
<li class="lst2"><a href="adm_email.php"><?php __("Send an email to all members"); ?></a></li>
<li class="lst"><a href="adm_tld.php"><?php __("Manage allowed domains (TLD)"); ?></a></li>
<li class="lst"><a href="adm_passpolicy.php"><?php __("Password Policies"); ?></a></li>
<li class="lst"><a href="adm_doms.php"><?php __("Manage installed domains"); ?></a></li>
<li class="lst"><a href="adm_defquotas.php"><?php __("Change the default quotas"); ?></a></li>
<li class="lst"><a href="adm_authip_whitelist.php"><?php __("Manage IP whitelist"); ?></a></li>
<li class="lst"><a href="adm_email.php"><?php __("Send an email to all members"); ?></a></li>
</ul>
<h3><?php __("Advanced features"); ?></h3>
<ul id="adm_panel_root">
<li class="lst2"><a href="adm_slavedns.php"><?php __("Manage slave DNS"); ?></a></li>
<li class="lst1"><a href="adm_mxaccount.php"><?php __("Manage allowed accounts for secondary mx"); ?></a></li>
<li class="lst2"><a href="adm_variables.php"><?php __("Configure AlternC variables"); ?></a></li>
<li class="lst1"><a href="adm_doms_def_type.php"><?php __("Manage defaults domains type"); ?></a></li>
<li class="lst2"><a href="adm_domstype.php"><?php __("Manage domains type"); ?></a></li>
<li class="lst1"><a href="adm_dnsweberror.php"><?php __("DNS and website having errors"); ?></a></li>
<li class="lst2"><a href="adm_db_servers.php"><?php __("Manage databases servers"); ?></a></li>
<li class="lst"><a href="adm_slavedns.php"><?php __("Manage slave DNS"); ?></a></li>
<li class="lst"><a href="adm_mxaccount.php"><?php __("Manage allowed accounts for secondary mx"); ?></a></li>
<li class="lst"><a href="adm_variables.php"><?php __("Configure AlternC variables"); ?></a></li>
<li class="lst"><a href="adm_doms_def_type.php"><?php __("Manage defaults domains type"); ?></a></li>
<li class="lst"><a href="adm_domstype.php"><?php __("Manage domains type"); ?></a></li>
<li class="lst"><a href="adm_dnsweberror.php"><?php __("DNS and website having errors"); ?></a></li>
<li class="lst"><a href="adm_db_servers.php"><?php __("Manage databases servers"); ?></a></li>
<!-- <li class="lst2"><a href="stats_members.php"><?php __("Account creation statistics"); ?></a></li> -->
<?php

View File

@ -143,12 +143,10 @@ if (is_array($c)) {
<th><?php __("Allow Password=Login?"); ?></th>
</tr>
<?php
$col=1;
foreach($c as $v) {
$col=3-$col;
foreach($c as $v) {
?>
<tr class="lst<?php echo $col; ?>">
<tr class="lst">
<td class="center">
<div class="ina edit"><a href="adm_passpolicy.php?edit=<?php echo urlencode($v["name"]); ?>"><?php __("Edit"); ?></a></div>
</td>

View File

@ -94,12 +94,10 @@ if (is_array($c)) { ?>
<table border="0" cellpadding="4" cellspacing="0" class='tlist'>
<tr><th><?php __("Action"); ?></th><th><?php __("IP Address"); ?></th></tr>
<?php
$col=1;
for($i=0;$i<count($c);$i++) {
$col=3-$col;
?>
<tr class="lst<?php echo $col; ?>">
<tr class="lst">
<td class="center"><div class="ina delete"><a href="adm_slavedns.php?delip=<?php echo urlencode($c[$i]['ip']); ?>"><?php __("Delete"); ?></a></div></td>
<td><?php echo $c[$i]["ip"]."/".$c[$i]["class"]; ?></td>
</tr>
@ -141,11 +139,9 @@ if (is_array($c)) { ?>
<table class="tlist">
<tr><th><?php __("Action"); ?></th><th><?php __("Login"); ?></th><th><?php __("Password"); ?></th></tr>
<?php
$col=1;
for($i=0;$i<count($c);$i++) {
$col=3-$col; ?>
for($i=0;$i<count($c);$i++) { ?>
<tr class="lst<?php echo $col; ?>">
<tr class="lst">
<td class="center"><div class="ina delete"><a href="adm_slavedns.php?delaccount=<?php echo urlencode($c[$i]["login"]); ?>"><?php __("Delete"); ?></a></div></td>
<td><?php ehe($c[$i]["login"]); ?></td>
<td><?php ehe($c[$i]["pass"]); ?></td>

View File

@ -72,12 +72,10 @@ $c=$admin->listtld();
<table class="tlist">
<tr><th colspan="2"> </th><th><?php __("TLD"); ?></th><th><?php __("Allowed Mode"); ?></th></tr>
<?php
$col=1;
for($i=0;$i<count($c);$i++) {
$col=3-$col;
?>
<tr class="lst<?php echo $col; ?>">
<tr class="lst">
<td><input id="sel<?php echo $i; ?>" type="checkbox" name="sel[]" class="inc" value="<?php echo $c[$i]["tld"]; ?>" /></td>
<td><div class="ina edit"><a href="adm_tldedit.php?tld=<?php echo urlencode($c[$i]["tld"]); ?>"><?php __("Edit"); ?></a></div></td>
<td><label for="sel<?php echo $i; ?>"><?php echo $c[$i]["tld"]; ?></label></td>

View File

@ -56,13 +56,10 @@ include_once ("head.php");
<table border="0" cellpadding="4" cellspacing="0" class='tlist'>
<tr><th><?php __("Names"); ?></th><th><?php __("Value"); ?></th><th><?php __("Comment"); ?></th></tr>
<?php
$col=1;
foreach( variables_list() as $vars) {
$col=3-$col;
?>
foreach( variables_list() as $vars) { ?>
<tr class="lst<?php echo $col; ?>">
<tr class="lst">
<td><?php echo $vars['name']; ?></td>
<td><input type="text" name="<?php ehe($vars['name']); ?>" value="<?php ehe($vars['value']); ?>" /></td>
<td><?php echo $vars['comment']; ?></td>

View File

@ -333,10 +333,8 @@ function actmoveto_not_empty() {
</tr>
<?php
$col=1;
for($i=0;$i<count($c);$i++) {
$col=3-$col;
echo "<tr class=\"lst$col\">\n";
echo "<tr class=\"lst\">\n";
if ($c[$i]["type"]) {
echo " <td width=\"28\"><input type=\"checkbox\" class=\"inc\" name=\"d[]\" value=\"".htmlentities($c[$i]["name"])."\" /></td>";
if ($p["showicons"]) {
@ -410,10 +408,8 @@ function actmoveto_not_empty() {
echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>";
echo "<tr><td valign=\"top\" width=\"50%\">";
echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>";
$col=1;
for($i=0;$i<round(count($c)/2);$i++) {
$col=3-$col;
echo "<tr class=\"lst$col\">\n";
echo "<tr class=\"lst\">\n";
if ($c[$i]["type"]) {
echo " <td width=\"28\"><input type=\"checkbox\" class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\" /></td><td><a href=\"";
echo "bro_editor.php?editfile=".urlencode($c[$i]["name"])."&amp;R=".urlencode($R);
@ -440,10 +436,8 @@ function actmoveto_not_empty() {
echo "</table>";
echo "</td><td valign=\"top\" width=\"50%\">";
echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>";
$col=1;
for($i=round(count($c)/2);$i<count($c);$i++) {
$col=3-$col;
echo "<tr class=\"lst$col\">\n";
echo "<tr class=\"lst\">\n";
if ($c[$i]["type"]) {
echo " <td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><a href=\"";
echo "bro_editor.php?editfile=".urlencode($c[$i]["name"])."&amp;R=".urlencode($R);
@ -477,10 +471,8 @@ function actmoveto_not_empty() {
echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>";
echo "<tr><td valign=\"top\" width=\"33%\">";
echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>";
$col=1;
for($i=0;$i<round(count($c)/3);$i++) {
$col=3-$col;
echo "<tr class=\"lst$col\">\n";
echo "<tr class=\"lst\">\n";
if ($c[$i]["type"]) {
echo " <td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><a href=\"";
echo "bro_editor.php?editfile=".urlencode($c[$i]["name"])."&amp;R=".urlencode($R);
@ -507,10 +499,8 @@ function actmoveto_not_empty() {
echo "</table>";
echo "</td><td valign=\"top\" width=\"33%\">";
echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>";
$col=1;
for($i=round(count($c)/3);$i<round(2*count($c)/3);$i++) {
$col=3-$col;
echo "<tr class=\"lst$col\">\n";
echo "<tr class=\"lst\">\n";
if ($c[$i]["type"]) {
echo " <td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><a href=\"";
echo "bro_editor.php?editfile=".urlencode($c[$i]["name"])."&amp;R=".urlencode($R);
@ -538,10 +528,8 @@ function actmoveto_not_empty() {
echo "</table>";
echo "</td><td valign=\"top\" width=\"33%\">";
echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>";
$col=1;
for($i=round(2*count($c)/3);$i<count($c);$i++) {
$col=3-$col;
echo "<tr class=\"lst$col\">\n";
echo "<tr class=\"lst\">\n";
if ($c[$i]["type"]) {
echo " <td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><a href=\"";
echo "bro_editor.php?editfile=".urlencode($c[$i]["name"])."&amp;R=".urlencode($R);

View File

@ -115,13 +115,11 @@ if ($r['dns_action']=='UPDATE') {?>
<table class="tlist">
<tr><th colspan="2"> </th><th><?php __("Subdomain"); ?></th><th><?php __("Type");?></th><th><?php __("Status")?></th><th></th></tr>
<?php
$col=1;
$dt=$dom->domains_type_lst();
for($i=0;$i<$r["nsub"];$i++) {
$col=3-$col;
?>
<tr class="lst<?php echo $col; ?>">
<tr class="lst">
<?php if ( $r['sub'][$i]['web_action'] =='DELETE') { echo "<td colspan='2' />"; } else { ?>
<td class="center">
<?php if (!(!$isinvited && $dt[strtolower($r["sub"][$i]["type"])]["enable"] != "ALL" )) { ?>

View File

@ -72,12 +72,8 @@ if (isset($error) && $error && !$noftp) {
<tr><th colspan="2"> </th><th><?php __("Enabled"); ?></th><th><?php __("Username"); ?></th><th><?php __("Folder"); ?></th></tr>
<?php
reset($r);
$col=1;
while (list($key,$val)=each($r))
{
$col=3-$col;
?>
<tr class="lst<?php echo $col; ?>">
while (list($key,$val)=each($r)) { ?>
<tr class="lst">
<td align="center"><input type="checkbox" class="inc" id="del_<?php echo $val["id"]; ?>" name="del_<?php echo $val["id"]; ?>" value="<?php echo $val["id"]; ?>" /></td>
<td><div class="ina edit"><a href="ftp_edit.php?id=<?php echo $val["id"] ?>"><?php __("Edit"); ?></a></div></td>

View File

@ -61,11 +61,8 @@ if (!$dir) {
<th><?php __("Username"); ?></th>
</tr>
<?php
$col=1;
for($i=0;$i<count($r);$i++){
$col=3-$col; ?>
<tr class="lst<?php echo $col; ?>">
for($i=0;$i<count($r);$i++){ ?>
<tr class="lst">
<td align="center"><input type="checkbox" class="inc" name="d[]" value="<?php echo $r[$i]?>" /></td>
<td>
<div class="ina"><a href="hta_edituser.php?user=<?php echo urlencode($r[$i])?>&amp;dir=<?php echo urlencode($dir); ?>"><img src="icon/encrypted.png" alt="<?php __("Change this user's password"); ?>" /><?php __("Change this user's password"); ?></a></div>

View File

@ -32,8 +32,7 @@ include_once("head.php");
if (!$r=$hta->ListDir()) {
$error=$err->errstr();
}
else {
} else {
reset($r);
}
@ -68,13 +67,11 @@ $mem->show_help("hta_list2");
<table class="tlist">
<tr><th colspan="2"> </th><th><?php __("Folder"); ?></th></tr>
<?php
$col=1;
for($i=0;$i<count($r);$i++){
$col=3-$col;
?>
<tr class="lst<?php echo $col; ?>">
<tr class="lst">
<td align="center"><input type="checkbox" class="inc" name="del_<?php echo $r[$i] ?>" value="<?php echo $r[$i] ?>" /></td>
<td>
<div class="ina lock"><a href="hta_edit.php?dir=<?php echo $r[$i]?>"><?php __("Edit login and passwords"); ?></a></div>

View File

@ -66,10 +66,8 @@ $lac = $authip->list_affected();
<th></th>
</tr>
<?php
$col=1;
foreach ($lac as $ll) {
$col=3-$col;
echo "<tr class='lst$col' >";
echo "<tr class='lst' >";
echo "<td><span title=\"{$list_ip[$ll['authorised_ip_id']]['ip_human']}\">".$list_ip[$ll['authorised_ip_id']]['infos'];
//echo "<br/>".$list_ip[$ll['authorised_ip_id']]['ip_human'];
echo "</span></td>";
@ -147,9 +145,7 @@ $lac = $authip->list_affected();
<table class="tlist">
<tr><th><?php __("Name"); ?></th><th><?php __("IP or network"); ?></th><th><?php __("Type"); ?></th><th colspan='2'></th></tr>
<?php
$col=1;
foreach($list_ip as $i) {
$col=3-$col;
if (checkip($i['ip'])) {
if ($i['subnet']==32) {
$txt="Address IPv4";
@ -163,7 +159,7 @@ foreach($list_ip as $i) {
$txt="Subnet IPv6";
}
}
echo "<tr class='lst$col' ><td>{$i['infos']}</td><td>{$i['ip_human']}</td><td>$txt</td>";
echo "<tr class='lst' ><td>{$i['infos']}</td><td>{$i['ip_human']}</td><td>$txt</td>";
?>
<td><div class="ina edit"><a href="javascript:edit_ip(<?php echo "'".htmlentities($i['id'])."','".htmlentities($i['ip_human'])."','".htmlentities($i['infos'])."'"; ?>);"><?php __("Edit"); ?></a></div></td>
<td><div class="ina delete"><a href="ip_main.php?delete_id=<?php echo urlencode($i["id"]) ?>"><?php __("Delete"); ?></a></div></td>

View File

@ -54,13 +54,11 @@ if(!$list || empty($list['dir'])){
</thead>
<tbody>
<?php
$col=1;
//listing of every logs of the current user.
while (list($key,$val)=each($list)){
foreach($val as $k => $v){
$col=3-$col;
?>
<tr class="lst<?php echo $col; ?>">
<tr class="lst">
<td><?php echo $v['name']; ?></td>
<td><?php echo $v['creation_date']; ?></td>
<td><?php echo format_size($v['filesize']); ?></td>

View File

@ -125,13 +125,13 @@ if (empty($allmails_list) && empty($search)) {
<tr><th></th><th></th><th><?php __("Enabled");?></th><th style="text-align:right"><?php __("Address"); ?></th><th><?php __("Pop/Imap"); ?></th><th><?php __("Other recipients"); ?></th><th><?php __("Last login time"); ?></th></tr>
<?php
$col=1; $i=0;
$i=0;
//listing of every mail of the current domain.
if(!empty($mails_list)) {
while (list($key,$val)=each($mails_list)) {
$col=3-$col; $grey="";
$grey="";
?>
<tr class="lst<?php echo $col; ?>">
<tr class="lst">
<?php if ($val["mail_action"]=="DELETING") { $grey="grey"; ?>
<td colspan="3"><?php __("Deleting..."); ?></td>
<?php } else if ($val["mail_action"]=="DELETE") { $grey="grey"; ?>

View File

@ -46,11 +46,9 @@ echo "<table cellspacing=\"0\" cellpadding=\"4\" class='tlist'>";
echo "<tr><th>"._("Quota")."</th><th>"._("Used")."</th><th>"._("Total")."</th></tr>";
$qlist=$quota->qlist();
reset($qlist);
$col=1;
while (list($key,$val)=each($qlist)) {
if ( !isset($q[$key]) || !$q[$key]["t"]) continue;
$col=3-$col;
echo "<tr class=\"lst$col\">";
echo "<tr class=\"lst\">";
echo "<td>";
if ($q[$key]["u"] >= $q[$key]["t"]) echo "<font class=\"over\">";
echo _($val);

View File

@ -54,13 +54,11 @@ if($rdb){
<tr><th>&nbsp;</th><th><?php __("Database"); ?></th><?php if ( variable_get('sql_allow_users_backups') ) { ?><th><?php __("Backup"); ?></th><?php } // sql_allow_users_backups ?><th><?php __("Restore"); ?></th><th><?php __("Show Settings"); ?></th><th><?php __("Size"); ?></th></tr>
<?php
$col=1;
for($i=0;$i<count($rdb);$i++) {
$val=$rdb[$i];
$val['size'] = $mysql->get_db_size($val['db']);
$col=3-$col;
?>
<tr class="lst<?php echo $col; ?>">
<tr class="lst">
<td align="center"><input type="checkbox" class="inc" id="del_<?php echo $val["db"]; ?>" name="del_<?php echo $val["db"]; ?>" value="<?php echo ($val["db"]); ?>" /></td>
<td><label for="del_<?php echo $val["db"]; ?>"><?php echo $val["db"]; ?></label></td>
<?php if ( variable_get('sql_allow_users_backups') ) { ?>

View File

@ -47,12 +47,10 @@ if (isset($error) && $error) {
<table cellspacing="0" cellpadding="4" class="tlist">
<tr><th>&nbsp;</th><th><?php __("User"); ?></th><th><?php __("Rights"); ?></th><th><?php __("Password");?></th></tr>
<?php
$col=1;
for($i=0;$i<count($r);$i++) {
$val=$r[$i];
$col=3-$col;
?>
<tr class="lst<?php echo $col; ?>">
<tr class="lst">
<td align="center">
<input type="checkbox" class="inc" id="del_<?php echo $val["name"]; ?>" name="del_<?php echo $val["name"]; ?>" value="<?php echo $val["name"]; ?>" />
</td>

View File

@ -80,13 +80,11 @@ if ($r) {
</tr>
<?php
$col=1;
$sql_right=$mysql->available_sql_rights();
for($i=0;$i<count($r);$i++) {
$val=$r[$i];
$col=3-$col;
?>
<tr class="lst<?php echo $col; ?>">
<tr class="lst">
<td><strong><?php echo $val["db"] ?></strong></td>
<td><a href="javascript:inverse_sql_right('<?php echo htmlentities($val["db"]);?>');"><?php __('Reverse selection');?></a></td>
<?php foreach($sql_right as $sr) { ?>

View File

@ -240,6 +240,9 @@ input[type=submit] {
background-color: #CFE3F1;
}
.lst:nth-child(even) { background:#E7F0F9; }
.lst:nth-child(odd) { background:#CFE3F1; }
.dlogin {
text-align: center;
}