SVN tag for release should only contain scripts in "docs" folder without "mods",...
[atutor.git] / themes / mobile / login.tmpl.php
1 <?php require(AT_INCLUDE_PATH.'header.inc.php'); 
2
3
4 ?>
5
6 <script language="JavaScript" src="sha-1factory.js" type="text/javascript"></script>
7
8 <script type="text/javascript">
9 /* 
10  * Encrypt login password with sha1
11  */
12 function encrypt_password() {
13         document.form.form_password_hidden.value = hex_sha1(hex_sha1(document.form.form_password.value) + "<?php echo $_SESSION['token']; ?>");
14         document.form.form_password.value = "";
15         return true;
16 }
17
18 </script>
19 <div class="container">
20         <div class="column-login">
21                 <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
22                 <input type="hidden" name="form_login_action" value="true" />
23                 <input type="hidden" name="form_course_id" value="<?php echo $this->course_id; ?>" />
24                 <input type="hidden" name="form_password_hidden" value="" />
25                 <div class="input-form">
26                         <fieldset class="group_form"><legend class="group_form"><?php echo _AT('login') ;?></legend>
27                         
28                                 <?php if ($_GET['course']): ?>
29                                         <div class="row">
30                                                 <h3><?php echo _AT('login'). ' ' . $this->title; ?></h3>
31                                         </div>
32                                 <?php endif;?>
33
34                                 <label for="login"><?php echo _AT('login_name_or_email'); ?></label><br />
35                                 <input type="text" name="form_login" size="50" style="max-width: 80%; width: 80%;" id="login" /><br />
36
37                                 <label for="pass"><?php echo _AT('password'); ?></label><br />
38                                 <input type="password" class="formfield" name="form_password" style="max-width: 80%; width: 80%;" id="pass" />
39                                 <br /><br />
40                                 <input type="submit" name="submit" value="<?php echo _AT('login'); ?>" class="button" onclick="return encrypt_password();" /> 
41                                 <br /><br />
42                         </form>
43                         <?php
44                         if($_config['allow_registration'] ==1){
45                         ?>
46                         Don't have an account? 
47                         <form action="registration.php" method="get">
48                         <?php if (defined('AT_EMAIL_CONFIRMATION') && AT_EMAIL_CONFIRMATION): ?>
49                                 <p><?php echo _AT('confirm_account_text'); ?></p>
50                         <?php endif; ?>
51                         <input type="submit" name="register" value="<?php echo _AT('register'); ?>" class="button" />
52                         <br /><br />
53                         </form>
54                         <?php } ?>
55                         
56                         </fieldset>                     
57                 </div>
58                 
59         </div>
60 </div>
61
62 <?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>