Restructure repository
[scuttle] / templates / login.tpl.php
1 <?php
2 $this->includeTemplate($GLOBALS['top_include']);
3 ?>
4
5 <script type="text/javascript">
6 window.onload = function() {
7     document.getElementById("username").focus();
8 }
9 </script>
10
11 <form action="<?php echo $formaction; ?>" method="post">
12     <div><input type="hidden" name="query" value="<?php echo $querystring; ?>" /></div>
13     <table>
14     <tr>
15         <th align="left"><label for="username"><?php echo T_('Username'); ?></label></th>
16         <td><input type="text" id="username" name="username" size="20" /></td>
17         <td></td>
18     </tr>
19     <tr>
20         <th align="left"><label for="password"><?php echo T_('Password'); ?></label></th>
21         <td><input type="password" id="password" name="password" size="20" /></td>
22         <td><input type="checkbox" name="keeppass" value="yes" /> <?php echo T_("Don't ask for my password for 2 weeks"); ?>.</td>
23     </tr>
24     <tr>
25         <td></td>
26         <td><input type="submit" name="submitted" value="<?php echo T_('Log In'); ?>" /></td>
27         <td></td>
28     </tr>
29     </table>
30     <p>&raquo; <a href="<?php echo $GLOBALS['root'] ?>password.php"><?php echo T_('Forgotten your password?') ?></p>
31 </form>
32
33 <?php
34 $this->includeTemplate($GLOBALS['bottom_include']);
35 ?>

Benjamin Mako Hill || Want to submit a patch?