<script type="text/javascript" src="{$_config[siteurl]}include/javascript/reg.js"></script>
<div id="body">
<div class="link_path"><a href="{$_config[siteurl]}">首页</a>&nbsp;&raquo;&nbsp;用户注册</div>
<div class="mainrail rail-border-1">
<h1 class="rail-h-1 rail-h-bg-1">快速注册成为$_config[sitename]会员</h1>
<!--{if $error}--><div class="formerror">$error</div><!--{/if}-->
<div class="post">
    <!--{if $_config['closereg']}-->
    <div style="text-align:center">网站关闭了注册功能。<a href="javascript:history.go(-1);">返回</a></a></div>
    <!--{elseif $action=='activation'}-->
    <form method="post" action="" onsubmit="checkForm(this);">
    	<input type="hidden" name="activation" value="$activeuser">
    	<table class="table" cellspacing="0" cellpadding="0" align="center">
            <tr>
                <td width="100"></td>
                <td>激活用户：$activeuser</td>
            </tr>
            <!--{if $_seccode['registry']}-->
            <tr>
                <td align="right" valign="top">验证码：</td>
                <td><img src="{$_config[siteurl]}seccode.php" width="80" height="25" class="t_input" /><br /><input type="text" name="seccode" class="t_input" /></td>
                <td>&nbsp;</td>
            </tr>
            <!--{/if}-->
            <tr>
                <td width="100"></td>
                <td><button type="submit" value="yes" name="regsubmit">提交激活</button></td>
            </tr>
		</table>
    </form>
    <!--{else}-->
    <form method="post" action="" onsubmit="return checkForm(this);">
        <input type="hidden" name="forward" value="$forward" />
        <table class="table" border="0" cellspacing="0" cellpadding="0" width="600" align="center">
            <tr>
                <td></td>
                <td colspan="2" height="25">已是会员，<a href="{$_config[siteurl]}member/login.php">请点击这里登录。</td>
            </tr>
            <tr>
                <td align="right" width="10%">用户名：</td>
                <td width="15%"><input type="text" name="username" value="$username" class="t_input" /></td>
                <td width="*">不能大于<span class="font_2">15</span>个字符</td>
            </tr>
            <tr>
                <td align="right">E-mail：</td>
                <td><input type="text" name="email" value="$email" class="t_input" /></td>
                <td>邮箱地址字符不能大于<span class="font_2">60</span>个字符</td>
            </tr>
            <tr>
                <td align="right">登录密码：</td>
                <td><input type="password" name="password" class="t_input" /></td>
                <td></td>
            </tr>
            <tr>
                <td align="right">重新密码：</td>
                <td><input type="password" name="password_s" class="t_input" /></td>
                <td></td>
            </tr>
            <!--{if $_config['showregrule']}-->
            <tr>
                <td align="right" valign="top">注册协议：</td>
                <td colspan="2">
                    <textarea rows="5" cols="60" class="txt" style="width:400px;" readonly >$regrule</textarea><br />
                    <input type="checkbox" id="regrule" value="1" /><label for="regrule">我接受注册协议</label>
                </td>
            </tr>
            <!--{/if}-->
            <!--{if $_seccode['registry']}-->
            <tr>
                <td align="right" valign="top">验证码：</td>
                <td><div id="seccode"></div><input type="text" class="t_input" name="seccode" onfocus="show_seccode();" /></td>
                <td>&nbsp;</td>
            </tr>
            <!--{/if}-->
            <tr>
                <td></td>
                <td><button type="submit" value="yes" name="regsubmit">提交注册信息</button></td>
                <td>&nbsp;</td>
            </tr>
        </table>
    </form>
    <!--{/if}-->
</div>
</div>
</div>