Move to html5 / utf8
[squasher.git] / templates / login.tpl
1 <html>
2 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
3 <link rel=stylesheet href="css/squasher.css">
4 <title>Squasher</title>
5 <script type="text/javascript" src="js/md5.js"></script>
6 <script language="javascript">
7 function hasher(){ldelim}
8         var salt = '{$salt|escape:'quotes'}';
9         document.loginform.pass.value=hex_md5(hex_md5(document.loginform.pass.value)+salt);
10 {rdelim}
11 </script>
12
13 <div class="wrappercontainer" style="text-align:center;">
14
15         <div class="banner">&nbsp;</div>
16
17         <div class="content login">
18         <form name="loginform" onSubmit="hasher();" method="post">
19                 <table align=center>
20                 <tr>
21                         <td>Username :
22                         <td><input name="user" type=text value="">
23                 <tr>
24                         <td>Password :
25                         <td><input name="pass" type=password value="">
26                 </table>
27                 <button class="submit" type=submit>Sign in</button>
28         </form>
29         </div>
30
31         <div class="footer">&nbsp;</div>
32
33 </div>
34 {if $debug}{debug}{/if}
35 {* vim: set syntax=smarty ts=4 sw=4 sts=4 sr noet: *}