Un peu de clean sur hta_edit
Ajout de title sur les liens de adm_edit
This commit is contained in:
parent
e9b187ba29
commit
f45510dc77
|
@ -219,10 +219,10 @@ $val=$r[$z];
|
|||
<td align="center"><input type="checkbox" class="inc" name="d[]" value="<?php echo $val["uid"]; ?>" /></td>
|
||||
<?php } ?>
|
||||
<td align="center">
|
||||
<a href="adm_login.php?id=<?php echo $val["uid"];?>" target="_parent">[ <?php __("C"); ?> ]</a>
|
||||
<a href="adm_edit.php?uid=<?php echo $val["uid"] ?>">[ <?php __("E"); ?> ]</a>
|
||||
<a href="adm_login.php?id=<?php echo $val["uid"];?>" target="_parent" title="<?php __("Connect as"); ?>">[ <?php __("C"); ?> ]</a>
|
||||
<a href="adm_edit.php?uid=<?php echo $val["uid"] ?>" title="<?php __("Edit"); ?>">[ <?php __("E"); ?> ]</a>
|
||||
<?php if($admin->checkcreator($val['uid'])) { ?>
|
||||
<a href="adm_quotaedit.php?uid=<?php echo $val["uid"] ?>">[ <?php __("Q"); ?> ]</a>
|
||||
<a href="adm_quotaedit.php?uid=<?php echo $val["uid"] ?>" title="<?php __("Quotas"); ?>">[ <?php __("Q"); ?> ]</a>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td style="padding-right: 2px; border-right: 1px solid black; <?php if ($val["su"]) echo "color: red"; ?>"><b><?php echo $val["login"] ?></b></td>
|
||||
|
|
|
@ -36,87 +36,89 @@ $fields = array (
|
|||
getFields($fields);
|
||||
|
||||
if (!$dir) {
|
||||
$error=_("No folder selected!");
|
||||
$error=_("No folder selected!");
|
||||
} else {
|
||||
$r=$hta->get_hta_detail($dir);
|
||||
if (!$r) {
|
||||
$error=$err->errstr();
|
||||
}
|
||||
}
|
||||
$r=$hta->get_hta_detail($dir);
|
||||
if (!$r) {
|
||||
$error=$err->errstr();
|
||||
}
|
||||
} // if !$dir
|
||||
|
||||
?>
|
||||
<h3><?php printf(_("List of authorized user in folder %s"),$dir); ?></h3>
|
||||
<hr id="topbar"/>
|
||||
<br />
|
||||
<?php
|
||||
if (!count($r)) {
|
||||
echo "<p class=\"error\">".sprintf(_("No authorized user in %s"),$dir)."</p>";
|
||||
} else {
|
||||
reset($r);
|
||||
|
||||
if (!count($r)) {
|
||||
echo "<p class=\"error\">".sprintf(_("No authorized user in %s"),$dir)."</p>";
|
||||
} else {
|
||||
reset($r);
|
||||
?>
|
||||
<form method="post" action="hta_dodeluser.php">
|
||||
<table cellspacing="0" cellpadding="4" class='tlist'>
|
||||
<tr>
|
||||
<th colspan="2" ><input type="hidden" name="dir" value="<?php echo $dir?>"> </th>
|
||||
<th><?php __("Username"); ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2" ><input type="hidden" name="dir" value="<?php echo $dir?>"> </th>
|
||||
<th><?php __("Username"); ?></th>
|
||||
</tr>
|
||||
<?php
|
||||
$col=1;
|
||||
|
||||
for($i=0;$i<count($r);$i++){
|
||||
$col=3-$col;
|
||||
?>
|
||||
<tr class="lst<?php echo $col; ?>">
|
||||
<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])?>&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>
|
||||
</td>
|
||||
<td><?php echo $r[$i]; ?></td>
|
||||
</tr>
|
||||
$col=3-$col; ?>
|
||||
<tr class="lst<?php echo $col; ?>">
|
||||
<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])?>&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>
|
||||
</td>
|
||||
<td><?php echo $r[$i]; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
} // for $i
|
||||
?>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
<input type="submit" class="inb" name="submit" value="<?php __("Delete the checked users"); ?>" />
|
||||
</form>
|
||||
|
||||
<?php } ?>
|
||||
<?php } // else !count $r ?>
|
||||
<p>
|
||||
<span class="inb"><a href="bro_main.php?R=<?php echo $dir ?>"><?php __("Show this folder's content in the File Browser"); ?></a></span>
|
||||
</p>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<hr />
|
||||
<p><?php __("Adding an authorized user"); ?></p>
|
||||
<fieldset>
|
||||
<legend><h3><?php __("Adding an authorized user"); ?></h3></legend>
|
||||
|
||||
<form method="post" action="hta_doadduser.php" name="main" id="main">
|
||||
<table class="tedit">
|
||||
<tr>
|
||||
<th><input type="hidden" name="dir" value="<?php echo $dir ?>" /><?php __("Folder"); ?></th>
|
||||
<td><code><?php echo $dir; ?></code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="user"><?php __("Username"); ?></label></th>
|
||||
<td><input type="text" class="int" name="user" id="user" value="" size="20" maxlength="64" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="password"><?php __("Password"); ?></label></th>
|
||||
<td><input type="password" class="int" name="password" id="password" value="" size="20" maxlength="64" /><?php display_div_generate_password(DEFAULT_PASS_SIZE,"#password","#passwordconf"); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="passwordconf"><?php __("Confirm password"); ?></label></th>
|
||||
<td><input type="password" class="int" name="passwordconf" id="passwordconf" value="" size="20" maxlength="64" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<input type="submit" class="inb" value="<?php __("Add this user"); ?>" />
|
||||
</form>
|
||||
<form method="post" action="hta_doadduser.php" name="main" id="main">
|
||||
<table class="tedit">
|
||||
<tr>
|
||||
<th><input type="hidden" name="dir" value="<?php echo $dir ?>" /><?php __("Folder"); ?></th>
|
||||
<td><code><?php echo $dir; ?></code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="user"><?php __("Username"); ?></label></th>
|
||||
<td><input type="text" class="int" name="user" id="user" value="" size="20" maxlength="64" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="password"><?php __("Password"); ?></label></th>
|
||||
<td><input type="password" class="int" name="password" id="password" value="" size="20" maxlength="64" /><?php display_div_generate_password(DEFAULT_PASS_SIZE,"#password","#passwordconf"); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="passwordconf"><?php __("Confirm password"); ?></label></th>
|
||||
<td><input type="password" class="int" name="passwordconf" id="passwordconf" value="" size="20" maxlength="64" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
<input type="submit" class="inb" value="<?php __("Add this user"); ?>" />
|
||||
</form>
|
||||
</fieldset>
|
||||
|
||||
<script type="text/javascript">
|
||||
document.forms['main'].user.focus();
|
||||
document.forms['main'].setAttribute('autocomplete', 'off');
|
||||
document.forms['main'].user.focus();
|
||||
document.forms['main'].setAttribute('autocomplete', 'off');
|
||||
</script>
|
||||
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
Loading…
Reference in New Issue