Ignore:
Timestamp:
04/06/10 22:29:08 (3 years ago)
Author:
benjamin
Message:

CSS / ERGONOMICS suite (et pas fin)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • alternc/trunk/bureau/admin/hta_edit.php

    r2559 r2670  
    2424 To read the license please visit http://www.gnu.org/copyleft/gpl.html 
    2525 ---------------------------------------------------------------------- 
    26  Original Author of file: Franck Missoum 
     26 Original Author of file: Franck Missoum, Benjamin Sonntag 
    2727 Purpose of file: Edit a protected folder 
    2828 ---------------------------------------------------------------------- 
     
    5050        if (!count($r)) { 
    5151                echo "<p class=\"error\">".sprintf(_("No authorized user in %s"),$dir)."</p>"; 
    52                 echo "<a href=\"hta_adduser.php?dir=$dir\">"._("Add a username")."</a><br />"; 
    53                 echo "<br /><small><a href=\"bro_main.php?R=$dir\">"._("File browser")."</a><br /></small>"; 
    54                 include_once("foot.php"); 
    55                 exit(); 
    56         } 
    57 reset($r); 
    58  
     52        } else { 
     53          reset($r); 
     54           
    5955?> 
    6056<form method="post" action="hta_dodeluser.php"> 
    6157<table cellspacing="0" cellpadding="4"> 
    6258        <tr> 
    63                 <th colspan="2" ><input type="hidden" name="dir" value="<?php echo $dir?>">&nbsp;</th> 
     59   <th colspan="2" ><input type="hidden" name="dir" value="<?php echo $dir?>"><?php __("Actions"); ?></th> 
    6460                <th><?php __("Username"); ?></th> 
    6561        </tr> 
     
    7268        <tr class="lst<?php echo $col; ?>"> 
    7369                <td align="center"><input type="checkbox" class="inc" name="d[]"" value="<?php echo $r[$i]?>" /></td> 
    74                 <td><a href="hta_edituser.php?user=<?php echo $r[$i]?>&amp;dir=<?php echo $dir?>"><img src="images/edit.png" alt="<?php __("Edit"); ?>" /></a></td> 
     70                <td> 
     71<div class="ina"><a href="hta_edituser.php?user=<?php echo $r[$i]?>&amp;dir=<?php echo $dir?>"><img src="icon/encrypted.png" alt="<?php __("Change this user's password"); ?>" /><?php __("Change this user's password"); ?></a></div> 
     72</td> 
    7573                <td><?php echo $r[$i]; ?></td> 
    7674        </tr> 
     
    7876} 
    7977?> 
    80 <tr><td colspan="3"><input type="submit" class="inb" name="submit" value="<?php __("Delete the checked users"); ?>" /></td></tr> 
    8178</table> 
     79<br /> 
     80<input type="submit" class="inb" name="submit" value="<?php __("Delete the checked users"); ?>" /> 
    8281</form> 
    8382 
     83<?php } ?> 
    8484<p> 
    85 <a href="hta_adduser.php?dir=<?php echo $dir ?>"><?php __("Add a username"); ?></a> 
     85<span class="inb"><a href="bro_main.php?R=<?php echo $dir ?>"><?php __("Show this folder's content in the File Browser"); ?></a></span> 
    8686</p> 
    87 <p> 
    88 <small><a href="bro_main.php?R=<?php echo $dir ?>"><?php __("File browser"); ?></a></small> 
    89 </p> 
     87 
     88<p>&nbsp;</p> 
     89 
     90<hr /> 
     91<p><?php __("Adding an authorized user"); ?></p> 
     92 
     93<form method="post" action="hta_doadduser.php" name="main" id="main"> 
     94<table class="tedit"> 
     95        <tr> 
     96                <td><input type="hidden" name="dir" value="<?php echo $dir ?>" /><?php __("Folder"); ?></td> 
     97                <td><code><?php echo $dir; ?></code></td> 
     98        </tr> 
     99        <tr> 
     100                <td><label for="user"><?php __("Username"); ?></label></td> 
     101                <td><input type="text" class="int" name="user" id="user" value="" size="20" maxlength="64" /></td> 
     102        </tr> 
     103        <tr> 
     104                <td><label for="password"><?php __("Password"); ?></label></td> 
     105                <td><input type="password" class="int" name="password" id="password" value="" size="20" maxlength="64" /></td> 
     106        </tr> 
     107        <tr> 
     108                <td><label for="passwordconf"><?php __("Confirm password"); ?></label></td> 
     109                <td><input type="password" class="int" name="passwordconf" id="passwordconf" value="" size="20" maxlength="64" /></td> 
     110        </tr> 
     111</table> 
     112<br /> 
     113<input type="submit" class="inb" value="<?php __("Add this user"); ?>" /> 
     114</form> 
     115<script type="text/javascript"> 
     116document.forms['main'].user.focus(); 
     117</script> 
     118 
    90119<?php include_once("foot.php"); ?> 
Note: See TracChangeset for help on using the changeset viewer.