Changeset 2670 for alternc/trunk/bureau/admin/hta_edit.php
- Timestamp:
- 04/06/10 22:29:08 (3 years ago)
- File:
-
- 1 edited
-
alternc/trunk/bureau/admin/hta_edit.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
alternc/trunk/bureau/admin/hta_edit.php
r2559 r2670 24 24 To read the license please visit http://www.gnu.org/copyleft/gpl.html 25 25 ---------------------------------------------------------------------- 26 Original Author of file: Franck Missoum 26 Original Author of file: Franck Missoum, Benjamin Sonntag 27 27 Purpose of file: Edit a protected folder 28 28 ---------------------------------------------------------------------- … … 50 50 if (!count($r)) { 51 51 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 59 55 ?> 60 56 <form method="post" action="hta_dodeluser.php"> 61 57 <table cellspacing="0" cellpadding="4"> 62 58 <tr> 63 <th colspan="2" ><input type="hidden" name="dir" value="<?php echo $dir?>"> </th>59 <th colspan="2" ><input type="hidden" name="dir" value="<?php echo $dir?>"><?php __("Actions"); ?></th> 64 60 <th><?php __("Username"); ?></th> 65 61 </tr> … … 72 68 <tr class="lst<?php echo $col; ?>"> 73 69 <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]?>&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]?>&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> 75 73 <td><?php echo $r[$i]; ?></td> 76 74 </tr> … … 78 76 } 79 77 ?> 80 <tr><td colspan="3"><input type="submit" class="inb" name="submit" value="<?php __("Delete the checked users"); ?>" /></td></tr>81 78 </table> 79 <br /> 80 <input type="submit" class="inb" name="submit" value="<?php __("Delete the checked users"); ?>" /> 82 81 </form> 83 82 83 <?php } ?> 84 84 <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> 86 86 </p> 87 <p> 88 <small><a href="bro_main.php?R=<?php echo $dir ?>"><?php __("File browser"); ?></a></small> 89 </p> 87 88 <p> </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"> 116 document.forms['main'].user.focus(); 117 </script> 118 90 119 <?php include_once("foot.php"); ?>
Note: See TracChangeset
for help on using the changeset viewer.
