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="email"><?php echo T_('E-mail'); ?></label></th>
19 <td><input type="text" id="email" name="email" size="40" class="required" /></td>
24 <td><input type="submit" name="submitted" value="<?php echo T_('Register'); ?>" /></td>
29 <script type="text/javascript">
31 $("#username").focus()
33 clearTimeout(self.searching);
34 self.searching = setTimeout(function() {
35 $.get("<?php echo $GLOBALS['root']; ?>ajaxIsAvailable.php?username=" + $("#username").val(), function(data) {
37 $("#availability").removeClass()
38 .html("<?php echo T_('Available'); ?>");
40 $("#availability").removeClass()
41 .addClass("not-available")
42 .html("<?php echo T_('Not Available'); ?>");
51 <?php $this->includeTemplate($GLOBALS['bottom_include']); ?>