Barre les sous domaine quand ils sont en etat desactive

This commit is contained in:
Alan Garcia 2014-01-17 14:01:04 +00:00
parent 9210deb971
commit 6bda785158
2 changed files with 8 additions and 2 deletions

View File

@ -134,6 +134,8 @@ if ($r['dns_action']=='UPDATE') {?>
$dt=$dom->domains_type_lst(); $dt=$dom->domains_type_lst();
for($i=0;$i<$r["nsub"];$i++) { for($i=0;$i<$r["nsub"];$i++) {
$disabled_class=in_array(strtoupper($r['sub'][$i]['enable']),array('DISABLED','DISABLE') )?'sub-disabled':'';
?> ?>
<tr class="lst"> <tr class="lst">
<?php if ( $r['sub'][$i]['web_action'] =='DELETE') { echo "<td colspan='2' />"; } else { ?> <?php if ( $r['sub'][$i]['web_action'] =='DELETE') { echo "<td colspan='2' />"; } else { ?>
@ -149,10 +151,10 @@ for($i=0;$i<$r["nsub"];$i++) {
<?php } ?> <?php } ?>
</td> </td>
<?php } // end IF ==DELETE ?> <?php } // end IF ==DELETE ?>
<td><div class="retour-auto"><a href="http://<?php ecif($r["sub"][$i]["name"],$r["sub"][$i]["name"]."."); echo $r["name"] ?>" target="_blank"><?php <td><div class="retour-auto <?php echo $disabled_class; ?>"><a href="http://<?php ecif($r["sub"][$i]["name"],$r["sub"][$i]["name"]."."); echo $r["name"] ?>" target="_blank"><?php
echo ecif($r["sub"][$i]["name"] , $r["sub"][$i]["name"]."." , "" , 0) . $r["name"]; echo ecif($r["sub"][$i]["name"] , $r["sub"][$i]["name"]."." , "" , 0) . $r["name"];
?></a></div></td> ?></a></div></td>
<td><div class="retour-auto"><?php if ($r['sub'][$i]['type_desc']) { __($r['sub'][$i]['type_desc']); } else { echo __("ERROR, please check your server setup"); } ?> <td><div class="retour-auto <?php echo $disabled_class; ?>"><?php if ($r['sub'][$i]['type_desc']) { __($r['sub'][$i]['type_desc']); } else { echo __("ERROR, please check your server setup"); } ?>
<?php <?php
//if ($r["sub"][$i]['type'] === 'VHOST') { //if ($r["sub"][$i]['type'] === 'VHOST') {
if ( @$dt[$r["sub"][$i]['type']]['target'] === 'DIRECTORY') { if ( @$dt[$r["sub"][$i]['type']]['target'] === 'DIRECTORY') {

View File

@ -1079,3 +1079,7 @@ th.headerSortDown {
cursor: pointer; cursor: pointer;
background-color: #3399FF; background-color: #3399FF;
} }
.sub-disabled {
text-decoration: line-through;
}