]> projects.mako.cc - scuttle/blob - templates/register.tpl.php
updated readme file
[scuttle] / templates / register.tpl.php
1 <?php $this->includeTemplate($GLOBALS['top_include']); ?> 
2
3 <p><?php echo sprintf(T_('Sign up here to create a free %s account. All the information requested below is required'), $GLOBALS['sitename']); ?>.</p>
4
5 <form action="<?php echo $formaction; ?>" method="post">
6 <table>
7 <tr>
8   <th align="left"><label for="username"><?php echo T_('Username'); ?></label></th>
9   <td><input type="text" id="username" name="username" size="20" maxlength="25" class="required" /></td>
10   <td id="availability"></td>
11 </tr>
12 <tr>
13   <th align="left"><label for="password"><?php echo T_('Password'); ?></label></th>
14   <td><input type="password" id="password" name="password" size="20" class="required" /></td>
15   <td></td>
16 </tr>
17 <tr>
18   <th align="left"><label for="passconf"><?php echo T_('Confirm Password'); ?></label></th>
19   <td><input type="password" id="passconf" name="passconf" size="20" class="required" /></td>
20   <td></td>
21 </tr>
22 <tr>
23   <th align="left"><label for="email"><?php echo T_('E-mail'); ?></label></th>
24   <td><input type="text" id="email" name="email" size="40" maxlength="50" class="required" /></td>
25   <td></td>
26 </tr>
27 <tr>
28   <td><input type="hidden" name="token" value="<?php echo $token; ?>" /></td>
29   <td><input type="submit" name="submitted" value="<?php echo T_('Register'); ?>" /></td>
30   <td></td>
31 </tr>
32 </table>
33 </form>
34 <script type="text/javascript">
35 $(function() {
36   $("#username").focus()
37                 .keydown(function() {
38                   clearTimeout(self.searching);
39                   self.searching = setTimeout(function() {
40                     $.get("<?php echo $GLOBALS['root']; ?>ajaxIsAvailable.php?username=" + $("#username").val(), function(data) {
41                         if (data) {
42                           $("#availability").removeClass()
43                                             .html("<?php echo T_('Available'); ?>");
44                         } else {
45                           $("#availability").removeClass()
46                                             .addClass("not-available")
47                                             .html("<?php echo T_('Not Available'); ?>");
48                         }
49                       }
50                     );
51                   }, 300);
52                 });
53 });
54 </script>
55
56 <?php $this->includeTemplate($GLOBALS['bottom_include']); ?>

Benjamin Mako Hill || Want to submit a patch?