Template/Update (Part 46 - II)

* account management rework: Signup functionality
This commit is contained in:
Sarjuuk 2025-08-28 17:43:07 +02:00
parent 155bf1e4a3
commit f16479b50c
4 changed files with 279 additions and 57 deletions

View file

@ -1,23 +1,10 @@
<?php namespace Aowow; ?>
<?php $this->brick('header'); ?>
<div class="main" id="main">
<div class="main-precontents" id="main-precontents"></div>
<div class="main-contents" id="main-contents">
<?php
$this->brick('announcement');
namespace Aowow\Template;
$this->brick('pageTemplate');
use \Aowow\Lang;
?>
<div class="pad3"></div>
<?php if (!empty($this->text)): ?>
<div class="inputbox">
<h1><?=$this->head; ?></h1>
<div id="inputbox-error"></div>
<div style="text-align: center; font-size: 110%"><?=$this->text; ?></div>
</div>
<?php else: ?>
<script type="text/javascript">
function inputBoxValidate(f)
{
@ -77,20 +64,18 @@
e.focus();
return false;
}
}
</script>
<form action="?account=signup&amp;next=<?=$this->next; ?>" method="post" onsubmit="return inputBoxValidate(this)">
<form action="<?=$action ?? '.'; ?>" method="post" onsubmit="return inputBoxValidate(this)">
<div class="inputbox" style="position: relative">
<h1><?=$this->head; ?></h1>
<div id="inputbox-error"><?=$this->error; ?></div>
<h1><?=$head ?? ''; ?></h1>
<div id="inputbox-error"><?=$error ?? ''; ?></div>
<table align="center">
<tr>
<td align="right"><?=Lang::account('user').Lang::main('colon'); ?></td>
<td><input type="text" name="username" value="" maxlength="16" id="username-generic" style="width: 10em" /></td>
<td><input type="text" name="username" value="<?=$username ?? ''; ?>" maxlength="16" id="username-generic" style="width: 10em" /></td>
</tr>
<tr>
<td align="right"><?=Lang::account('pass').Lang::main('colon'); ?></td>
@ -103,9 +88,9 @@
<tr>
<tr>
<td align="right"><?=Lang::account('email').Lang::main('colon'); ?></td>
<td><input type="text" name="email" style="width: 10em" /></td>
<td><input type="text" name="email" value="<?=$email ?? ''; ?>" style="width: 10em" /></td>
</tr>
<td align="right" valign="top"><input type="checkbox" name="remember_me" id="remember_me" value="yes" /></td>
<td align="right" valign="top"><input type="checkbox" name="remember_me" id="remember_me" value="yes"<?=($rememberMe ?? '' ? ' checked="checked"' : ''); ?> /></td>
<td>
<label for="remember_me"><?=Lang::account('rememberMe'); ?></label>
<div class="pad2"></div>
@ -118,9 +103,3 @@
</form>
<script type="text/javascript">$WH.ge('username-generic').focus()</script>
<?php endif; ?>
<div class="clear"></div>
</div><!-- main-contents -->
</div><!-- main -->
<?php $this->brick('footer'); ?>