fixing deletion of AlternC's accounts, and adding label to account lists
This commit is contained in:
parent
09458ca510
commit
cc75df6b72
|
@ -34,7 +34,14 @@ if (!$admin->enabled) {
|
|||
exit();
|
||||
}
|
||||
|
||||
if(isset($_POST["del_confirm"]) && $_POST["del_confirm"] == "y"){
|
||||
$fields = array (
|
||||
"d" => array ("request", "array", array()),
|
||||
"del_confirm" => array("request", "string", ""),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
|
||||
if($del_confirm == "y"){
|
||||
if (!is_array($d)) {
|
||||
$d[]=$d;
|
||||
}
|
||||
|
|
|
@ -144,9 +144,9 @@ while (list($key,$val)=each($r))
|
|||
if ($val["su"]) { ?>
|
||||
<td> </td>
|
||||
<?php } else { ?>
|
||||
<td><input type="checkbox" class="inc" name="d[]" value="<?php echo $val["uid"]; ?>" /></td>
|
||||
<td><input type="checkbox" class="inc" name="d[]" id="user_<?php echo $val["uid"]; ?>" value="<?php echo $val["uid"]; ?>" /></td>
|
||||
<?php } ?>
|
||||
<td <?php if ($val["su"]) echo "style=\"color: red\""; ?>><b><?php echo $val["login"] ?></b></td>
|
||||
<td <?php if ($val["su"]) echo "style=\"color: red\""; ?>><label for="user_<?php echo $val["uid"]; ?>"><b><?php echo $val["login"] ?></b></label></td>
|
||||
<td><a href="mailto:<?php echo $val["mail"]; ?>"><?php echo $val["nom"]." ".$val["prenom"] ?></a> </td>
|
||||
<td><?php echo $val["parentlogin"] ?></td>
|
||||
<td><?php echo format_date('%3$d-%2$d-%1$d',$val["created"]); ?></td>
|
||||
|
|
Loading…
Reference in New Issue