1 <?php $this->includeTemplate($GLOBALS['top_include']); ?>
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>
5 <form action="<?php echo $formaction; ?>" method="post">
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>
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>
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>
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" class="required" /></td>
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>
34 <script type="text/javascript">
36 $("#username").focus()
38 clearTimeout(self.searching);
39 self.searching = setTimeout(function() {
40 $.get("<?php echo $GLOBALS['root']; ?>ajaxIsAvailable.php?username=" + $("#username").val(), function(data) {
42 $("#availability").removeClass()
43 .html("<?php echo T_('Available'); ?>");
45 $("#availability").removeClass()
46 .addClass("not-available")
47 .html("<?php echo T_('Not Available'); ?>");
56 <?php $this->includeTemplate($GLOBALS['bottom_include']); ?>