[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/templates/admin/user/ -> update.inc (source)

   1  <script type="text/javascript">
   2  <!--
   3  
   4  function validate_update()
   5  {
   6      if (document.updateuser.user_name.value == "") {
   7          document.updateuser.user_name.focus();
   8          alert('<?php echo addslashes(_("You must specify the username to add.")) ?>');
   9          return false;
  10      } else if (document.updateuser.user_pass_1 &&
  11                 document.updateuser.user_pass_1.value != document.updateuser.user_pass_2.value) {
  12          document.updateuser.user_pass_1.value = "";
  13          document.updateuser.user_pass_2.value = "";
  14          document.updateuser.user_pass_1.focus();
  15          alert('<?php echo addslashes(_("Passwords must match.")) ?>');
  16          return false;
  17      }
  18  
  19      return true;
  20  }
  21  
  22  //-->
  23  </script>
  24  
  25  <form name="updateuser" method="post">
  26  <input type="hidden" name="form" value="update">
  27  <input type="hidden" name="user_name" value="<?php echo htmlspecialchars($f_user_name) ?>" />
  28  <h1 class="header">
  29   <?php printf(_("Update %s"), $f_user_name) ?>
  30  </h1>
  31  <table class="striped nowrap" cellspacing="0" width="100%">
  32  <?php if ($auth->hasCapability('update')): ?>
  33   <tr>
  34    <td width="1%" class="light rightAlign">
  35     <?php echo _("New Username (optional)") ?>
  36    </td>
  37    <td>
  38     <input type="text" name="user_name2" value="<?php echo htmlspecialchars($f_user_name) ?>" />
  39    </td>
  40   </tr>
  41   <tr>
  42    <td class="rightAlign">
  43     <?php echo _("Password") ?>
  44    </td>
  45    <td>
  46     <input type="password" name="user_pass_1" />
  47    </td>
  48   </tr>
  49   <tr>
  50    <td class="rightAlign">
  51     <?php echo _("Confirm Password") ?>
  52    </td>
  53    <td>
  54     <input type="password" name="user_pass_2" />
  55    </td>
  56   </tr>
  57  <?php endif; ?>
  58   <tr>
  59    <td class="rightAlign">
  60     <?php echo _("Full Name") ?>
  61    </td>
  62    <td>
  63     <input type="text" name="user_fullname" value="<?php echo htmlspecialchars($identity->getValue('fullname')) ?>" />
  64    </td>
  65   </tr>
  66   <tr>
  67    <td class="rightAlign">
  68     <?php echo _("Email Address") ?>
  69    </td>
  70    <td>
  71     <input type="text" name="user_email"  value="<?php echo htmlspecialchars($identity->getValue('from_addr')) ?>" />
  72    </td>
  73   </tr>
  74   <tr>
  75    <td class="control leftAlign" colspan="2">
  76     <input type="submit" class="button" name="submit" onclick="return validate_update();" value="<?php echo _("Update user") ?>" />
  77     <input type="reset" class="button" name="reset" value="<?php echo _("Reset") ?>" />
  78    </td>
  79   </tr>
  80  </table>
  81  </form>
  82  <br />


Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7