initial commit with snapshot 20140213
This commit is contained in:
83
templates/register_form.tpl.php
Executable file
83
templates/register_form.tpl.php
Executable file
@@ -0,0 +1,83 @@
|
||||
<? require_once('./templates/overall_header.tpl.php'); ?>
|
||||
<script src="templates/scripts/nick.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
function checkForm()
|
||||
{
|
||||
value = document.getElementById('passwd').value;
|
||||
value2 = document.getElementById('passwd_confirm').value;
|
||||
|
||||
if (value != value2)
|
||||
{
|
||||
alert("Password do not match!");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (document.getElementById('nick-inuse').style.display == 'inline')
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
||||
<div id="content">
|
||||
<? if ($this->TPL['error_msg'] != '') { ?>
|
||||
<div class="error_form">
|
||||
<?= $this->TPL['error_msg']; ?>
|
||||
</div>
|
||||
<? } ?>
|
||||
<br><form action="<?= $_SERVER['REQUEST_URI']; ?>" method="post" onsubmit="return checkForm();">
|
||||
<div class="forum_table">
|
||||
<div class="row">
|
||||
<div class="hc1">Register</div>
|
||||
<div class="hc4"> </div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="tc1 lc">
|
||||
Nick:
|
||||
</div>
|
||||
<div class="tc4 rc">
|
||||
<input type="text" maxlength="30" name="nick" id="nick" value="<?= $this->TPL['nick']; ?>" required pattern=".{3,}" title="3 characters minimum" onblur="checkNick()">
|
||||
<span id="nick-inuse" style="display: none; color: red; font-weight: bold">Nick is in use. Type another one.</span>
|
||||
<span id="nick-free" style="display: none; color: green; font-weight: bold">Nick is free.</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="tc1 lc">
|
||||
Password:
|
||||
</div>
|
||||
<div class="tc4 rc">
|
||||
<input type="password" name="passwd" id="passwd" value="" required pattern=".{8,}" title="8 characters minimum">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="tc1 lc">
|
||||
Confirm password:
|
||||
</div>
|
||||
<div class="tc4 rc">
|
||||
<input type="password" name="passwd_confirm" id="passwd_confirm" value="" required pattern=".{8,}" title="8 characters minimum">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="tc1 lc">
|
||||
Email address:
|
||||
</div>
|
||||
<div class="tc4 rc">
|
||||
<input type="email" name="email" id="email" value="<?= $this->TPL['email']; ?>" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="tc1 lc">
|
||||
|
||||
</div>
|
||||
<div class="tc4 rc">
|
||||
<input type="submit" value="Create account">
|
||||
</div>
|
||||
</div>
|
||||
</div></form>
|
||||
</div>
|
||||
|
||||
<? require_once('./templates/overall_footer.tpl.php'); ?>
|
||||
Reference in New Issue
Block a user