📄 register.php
字号:
<?php
if(!defined('InEmpireCMS'))
{
exit();
}
include("../../class/db_sql.php");
$link=db_connect();
$empire=new mysqlquery();
$editor=1;
$groupid=(int)$_GET['groupid'];
$groupid=$groupid?$groupid:$user_groupid;
CheckMemberGroupCanReg($groupid);
$formid=GetMemberFormId($groupid);
if(empty($formid))
{
printerror('ErrorUrl','',1);
}
$ecmsfirstpost=1;
$formfile='../../data/html/memberform'.$formid.'.php';
$url="<a href=../../../>首页</a> > <a href=../cp>控制面板</a> > 会员注册";
include("../../data/template/cp_1.php");
?>
<table width='100%' border='0' align='center' cellpadding='3' cellspacing='1' class="tableborder">
<form name=register method=post enctype="multipart/form-data" action=../../enews/index.php>
<input type=hidden name=enews value=register>
<tr class="header">
<td height="25" colspan="2">注册会员</td>
</tr>
<tr bgcolor="#EFEFEF">
<td height="25" colspan="2"><strong>基本信息
<input name="groupid" type="hidden" id="groupid" value="<?=$groupid?>">
</strong></td>
</tr>
<tr>
<td width='25%' height="25" bgcolor="#FFFFFF"> <div align='left'>用户名</div></td>
<td width='75%' height="25" bgcolor="#FFFFFF"> <input name='username' type='text' id='username' maxlength='30'>
*</td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF"> <div align='left'>密码</div></td>
<td height="25" bgcolor="#FFFFFF"> <input name='password' type='password' id='password' maxlength='20'>
*</td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF"> <div align='left'>重复密码</div></td>
<td height="25" bgcolor="#FFFFFF"> <input name='repassword' type='password' id='repassword' maxlength='20'>
*</td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF"> <div align='left'>邮箱</div></td>
<td height="25" bgcolor="#FFFFFF"> <input name='email' type='text' id='email' maxlength='50'>
*</td>
</tr>
<tr bgcolor="#EFEFEF">
<td height="25" colspan="2"><strong>其他信息</strong></td>
</tr>
<tr>
<td height="25" colspan="2" bgcolor="#FFFFFF">
<?php
@include($formfile);
?>
</td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF"> </td>
<td height="25" bgcolor="#FFFFFF"> <input type='submit' name='Submit' value='马上注册'>
<input type='button' name='Submit2' value='返回' onclick='history.go(-1)'></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25" colspan="2">说明:带*项为必填。</td>
</tr>
</form>
</table>
<?
include("../../data/template/cp_2.php");
db_close();
$empire=null;
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -