fixing deletion of AlternC's accounts, and adding label to account lists

This commit is contained in:
Benjamin Sonntag 2012-08-21 09:07:26 +00:00
parent 09458ca510
commit cc75df6b72
2 changed files with 10 additions and 3 deletions

View File

@ -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;
}

View File

@ -144,9 +144,9 @@ while (list($key,$val)=each($r))
if ($val["su"]) { ?>
<td>&nbsp;</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>&nbsp;</td>
<td><?php echo $val["parentlogin"] ?></td>
<td><?php echo format_date('%3$d-%2$d-%1$d',$val["created"]); ?></td>