moved code up one level to eliminate the docs subdirectory
[acontent.git] / themes / default / profile / change_email.tmpl.php
1 <?php 
2 /************************************************************************/
3 /* AContent                                                             */
4 /************************************************************************/
5 /* Copyright (c) 2010                                                   */
6 /* Inclusive Design Institute                                           */
7 /*                                                                      */
8 /* This program is free software. You can redistribute it and/or        */
9 /* modify it under the terms of the GNU General Public License          */
10 /* as published by the Free Software Foundation.                        */
11 /************************************************************************/
12
13 global $onload;
14 $onload = 'document.form.form_password.focus();';
15 require(TR_INCLUDE_PATH.'header.inc.php'); 
16
17 ?>
18
19 <script language="JavaScript" type="text/javascript" src="include/jscripts/sha-1factory.js"></script>
20
21 <script type="text/javascript">
22 function encrypt_password()
23 {
24         document.form.form_password_hidden.value = hex_sha1(document.form.form_password.value);
25         document.form.form_password.value = "";
26 }
27 </script>
28
29 <div class="input-form">
30 <fieldset class="group_form"><legend class="group_form"><?php echo _AT('change_email'); ?></legend>
31
32         <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
33                 <input type="hidden" name="form_password_hidden" value="" />
34         
35                 <table class="form-data" align="center">
36                         <tr>
37                                 <td align="left">
38                                         <span class="required" title="<?php echo _AT('required_field'); ?>">*</span>
39                                         <label for="form_password"><?php echo _AT('password'); ?></label>
40                                 </td>
41                                 <td align="left">
42                                         <input id="form_password" name="form_password" type="password" size="15" maxlength="15" value="" />
43                                 </td>
44                         </tr>
45
46                         <tr>
47                                 <td align="left">
48                                         <span class="required" title="<?php echo _AT('required_field'); ?>">*</span>
49                                         <label for="email"><?php echo _AT('email_address'); ?></label>
50                                 </td>
51                                 <td align="left">
52                                         <input id="email" name="email" type="text" size="50" maxlength="50" value="<?php echo stripslashes(htmlspecialchars($_POST['email'])); ?>" />
53                                 </td>
54                         </tr>
55                 
56                         <tr>
57                                 <td colspan="2">
58                                         <p class="submit_button">
59                                                 <input type="submit" name="submit" value="<?php echo _AT('submit'); ?>" onclick="encrypt_password()" />
60                                                 <input type="submit" name="cancel" value=" <?php echo _AT('cancel'); ?> " />
61                                         </p>
62                                 </td>
63                         </tr>
64                 </table>
65         </form>
66
67 </fieldset>
68 </div>
69
70 <?php require(TR_INCLUDE_PATH.'footer.inc.php'); ?>