tagging as ATutor 1.5.4-release
[atutor.git] / themes / default / users / email_change.tmpl.php
1 <?php require(AT_INCLUDE_PATH.'header.inc.php'); ?>
2
3 <script language="JavaScript" type="text/javascript" src="sha-1factory.js"></script>
4 <script language="JavaScript" type="text/javascript">
5 //<!--
6   function crypt_sha1() {
7         document.form.password_hidden.value = hex_sha1(document.form.password.value + "<?php echo $_SESSION['token']; ?>");
8         document.form.password.value = "";
9         return true;
10   }
11  //-->
12 </script>
13
14 <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
15         <input type="hidden" name="password_hidden" value="" />
16
17         <div class="input-form" style="max-width: 400px;">
18
19                 <div class="row">
20                         <div class="required" title="<?php echo _AT('required_field'); ?>">*</div><label for="password"><?php echo _AT('password'); ?></label><br />
21                         <input id="password" name="password" type="password" size="15" maxlength="15" value="" /><br />
22                 </div>
23
24                 <div class="row">
25                         <div class="required" title="<?php echo _AT('required_field'); ?>">*</div><label for="email"><?php echo _AT('email_address'); ?></label><br />
26                         <input id="email" name="email" type="text" size="50" maxlength="50" value="<?php echo stripslashes(htmlspecialchars($_POST['email'])); ?>" />
27                 </div>
28
29                 <div class="row buttons">
30                         <input type="submit" name="submit" value="<?php echo _AT('submit'); ?>" /> <input type="submit" name="cancel" value=" <?php echo _AT('cancel'); ?> " />
31                 </div>
32         </div>
33 </form>
34
35 <?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>