<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<base href="<?php echo $DIRCMS['site_url'];?>" />
<link href="template/<?php echo $DIRCMS['tpl_name'];?>/css/share.css" type="text/css" rel="stylesheet" />
<link href="template/<?php echo $DIRCMS['tpl_name'];?>/css/register.css" type="text/css" rel="stylesheet" />
<title>会员注册-<?php echo $DIRCMS['site_name'];?></title>
<script language="javascript" type="text/javascript" src="images/js/jquery.min.js"></script>
<script language="javascript" type="text/javascript">
function checkReg()
{
	if(document.getElementById('rusername').value.length<3 || document.getElementById('rusername').value.length>30)
	{
		alert('用户名只能长度为3-30个字符!');
		document.getElementById('rusername').focus();
		return false;
	}
	if(document.getElementById('pwd').value.length<3 || document.getElementById('pwd').value.length>30)
	{
		alert('用户密码只能以字母开头且长度为3-30个字符!');
		document.getElementById('pwd').focus();
		return false;
	}
	if(document.getElementById('pwdconfirm').value=='' || document.getElementById('pwdconfirm').value!=document.getElementById('pwd').value)
	{
		alert('两次密码输入不一致!');
		document.getElementById('pwdconfirm').focus();
		return false;
	}
	if(document.getElementById('email').value=='')
	{
		alert('请输入常用邮箱!');
		document.getElementById('email').focus();
		return false;
	}
	return true;
}
</script>
</head>

<body>
<!-- 头部开始 -->
	<?php include template('head');?>
<!-- 头部结束 -->
<!-- 正文开始 -->
<div class="ads_960"><script language="javascript" src="<?php echo $DIRCMS[site_url];?>ads.js.php?id=8"></script></div>
<div class="position"><a href="{{$DIRCMS['site_name']}">网站首页</a> > 注册会员</div>
<div class="div_register">
	<div class="div_register_left">
		<form action="member/index.php?file=login&action=register" method="post" name="myform" onsubmit="return checkReg();">
		<input type="hidden" name="do_submit" value="1" />
		<table width="470" border="0" cellspacing="0" cellpadding="0">
			<tr>
			<td height="40" align="right">会员类型：</td>
			<td> <?php echo $membermodel;?> <font color="#FF0000">注：只有企业会员才能开通黄页</font></td>
			</tr>
			<tr>
			<td height="40" align="right">会&nbsp;员&nbsp;名：</td>
			<td><input type="text" name="registerinfo[username]" id="rusername"/></td>
			</tr>
			<tr>
			<td></td><td class="reg_msg">长度为3-30个字符，支持中文</td>
			</tr>
			<tr>
			<td height="40" align="right">会员密码：</td>
			<td><input type="password" name="pwd" id="pwd" /></td>
			</tr>
			<tr>
			<td></td><td class="reg_msg">密码请设置6位以上</td>
			</tr>
			<tr>
			<td height="40" align="right">确认密码：</td>
			<td><input type="password" name="pwdconfirm" id="pwdconfirm"/></td>
			</tr>
			<tr>
			<td></td><td class="reg_msg">请再次输入您的密码</td>
			</tr>
			<tr>
			<td height="40" align="right">电子邮箱：</td>
			<td><input type="text" name="registerinfo[email]" id="email"/></td>
			</tr>
			<tr>
			<td></td><td class="reg_msg">请输入您常用的电子邮箱地址。推荐您使用126邮箱。</td>
			</tr>
			<?php if($ischeckcode) { ?>
			<tr>
			<td height="40" align="right">验&nbsp;证&nbsp;码：</td>
			<td><input type="text" name="chkcode" class="nn" id="chkcode"/> <img src="<?php echo $DIRCMS['site_url'];?>checkcode.php" onclick="this.src='<?php echo $DIRCMS[site_url];?>checkcode.php?id='+Math.random()*5;" style="cursor:pointer;" alt="验证码,看不清楚?请点击刷新验证码"/></td>
			</tr>
			<?php }?>
			<tr>
			<td height="40" align="right"><input type="checkbox" class="checkbox" name="regagreement" id="regagreement" checked="checked" value="1" /></td>
			<td height="40" align="left">阅读并同意《<a href="http://www.dircms.net/about/agreement.html" target="_blank">网络服务使用协议</a>》</td>
			</tr>
			<tr>
			<td></td><td height="40"><input type="submit" class="button" name="button" value="完成注册" /></td>
			</tr>
		</table>
		</form>
	</div>
	<div class="div_register_right">
		<div class="div_register_right_content">
		已经注册过帐户了？
		<br />
		<input type="button" style="background:url(template/<?php echo $DIRCMS['tpl_name'];?>/images/dl_button.gif); font-size:16px; font-weight:bold; color:#fff; cursor:pointer; width:147px; height:34px; border:0px" value="立即登陆" onclick="window.open('<?php echo $DIRCMS[site_url];?>member/index.php?file=login&action=login');" />
		<br />
		<p>
		<font style="font-size:14px; font-weight:bold">只需一步，免费注册会员</font>
			<div style="margin-top:0px; margin-left:5px">
			<br />
			<strong>注册会员</strong>
			<br />
			注册个人会员，您可以发布分类信息、置顶分类信息…
			<br />
			<strong>开通黄页</strong>
			<br />
			注册商家会员，发布您的商家信息，全面宣传，提高合作机会
			<br />

			</div>
		</div>
		</p>
	</div>
</div>
	<!-- 正文结束 -->
	<!-- 底部开始 -->
	<?php include template('footer');?>
	<!-- 底部结束 -->
</body>
</html>