]> projects.mako.cc - scuttle/blob - templates/register.tpl.php
Tagged 0.7.5
[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" 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="email"><?php echo T_('E-mail'); ?></label></th>
19     <td><input type="text" id="email" name="email" size="40" class="required" /></td>
20     <td></td>
21 </tr>
22 <tr>
23     <td></td>
24     <td><input type="submit" name="submitted" value="<?php echo T_('Register'); ?>" /></td>
25     <td></td>
26 </tr>
27 </table>
28 </form>
29 <script type="text/javascript">
30 $(function() {
31   $("#username").focus()
32                 .keydown(function() {
33                   clearTimeout(self.searching);
34                   self.searching = setTimeout(function() {
35                     $.get("<?php echo $GLOBALS['root']; ?>ajaxIsAvailable.php?username=" + $("#username").val(), function(data) {
36                         if (data) {
37                           $("#availability").removeClass()
38                                             .html("<?php echo T_('Available'); ?>");
39                         } else {
40                           $("#availability").removeClass()
41                                             .addClass("not-available")
42                                             .html("<?php echo T_('Not Available'); ?>");
43                         }
44                       }
45                     );
46                   }, 300);
47                 });
48 });
49 </script>
50
51 <?php $this->includeTemplate($GLOBALS['bottom_include']); ?>

Benjamin Mako Hill || Want to submit a patch?