
<!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=utf-8" />
<title>[.$ourphp_adminfont.admintitle.]</title>
<link href="templates/images/ourphp_login.css" rel="stylesheet" type="text/css"> 
<script type="text/javascript" src="../../function/plugs/jquery/1.7.2/jquery-1.7.2.min.js"></script>
<script src="../../function/plugs/layer/layer.min.js"></script>
<script>
<!--
/*第一种形式 第二种形式 更换显示样式*/
function setTab(m,n){
 var tli=document.getElementById("menu"+m).getElementsByTagName("li");
 var mli=document.getElementById("main"+m).getElementsByTagName("ul");
 for(i=0;i<tli.length;i++){
  tli[i].className=i==n?"hover":"";
  mli[i].style.display=i==n?"block":"none";
 }
}
//-->

function dialog(id){
    $.layer({
        type: 2,
        title: '搜索',
        shade: [0],
		border: [5, 0.3, '#000'],
        area: ['80%', '600px'],
		iframe:{src: 'ourphp_adminsearch.php?ourphp=ourphp&stype=user',scrolling: 'yes'}
    });
};

</script>

</head>

<body>
<div style="height:50px;"></div>
<div style="clear:both"></div>
<div id="tabs0">
 <ul class="menu0" id="menu0">
  <li onclick="setTab(0,0)" class="hover">会员列表</li>
  <li onclick="setTab(0,1)">添加新会员</li>
  <li onclick="dialog('search')">搜索</li>
 </ul>
 <div class="main" id="main0" style="border-top:2px #488fcd solid; clear:both;">
  <ul class="block">
	  <li>
		<div class="ourphp_newslist">
		<form id="form2" name="form2" method="post" action="?ourphp_cms=Batch&type=[.$a[0].]&couponclass=[.$a[1].]">
		        <table width="100%" border="0" cellpadding="10" class="ourphp_newslist">
                  <tr>
				  	<td width="5%" bgcolor="#EBEBEB"><div align="center">ID</div></td>
                    <td width="17%" bgcolor="#EBEBEB">会员账号</td>
					<td width="10%" bgcolor="#EBEBEB">会员姓名</td>
					<td width="15%" bgcolor="#EBEBEB">现金/积分/虚拟币</td>
					<td width="8%" bgcolor="#EBEBEB">IP</td>
					<td width="5%" bgcolor="#EBEBEB">状态</td>
					<td width="10%" bgcolor="#EBEBEB">推荐人</td>
                    <td width="15%" bgcolor="#EBEBEB">注册时间</td>
                    <td width="15%" bgcolor="#EBEBEB">操作</td>
                  </tr>
				  [.section loop=$Userlist name=op.]
                  <tr>
				  	<td>
						<div align="center">
							[.if $a[0] == 'coupon'.]
								<input type="checkbox" name="op_b[]" value="[.$Userlist[op].email.]" />
							[./if.]
							<font style="background:#009933; color:#FFFFFF; padding:2px; text-align:center;">[.$Userlist[op].id.]</font>
						</div>
					</td>
                    <td>
					[.$Userlist[op].email.] ([.$Userlist[op].class.])
					<br />
					推广码 : [.$Userlist[op].regcode.]
					</td>
					<td>[.$Userlist[op].name.]</td>
					<td>[.$Userlist[op].money.]&nbsp;/&nbsp;[.$Userlist[op].integral.]&nbsp;/&nbsp;[.$Userlist[op].coin.]</td>
                    <td>[.$Userlist[op].ip.]</td>
					<td>[.if $Userlist[op].status == 1.]开启[.else.]锁定[./if.]</td>
					<td>[.$Userlist[op].source.]</td>
					<td>[.$Userlist[op].time.]</td>
                    <td>
                    <a href="ourphp_userview.php?id=[.$Userlist[op].id.]">编辑</a>&nbsp;&nbsp;-&nbsp;&nbsp;
                    <a href="ourphp_userinvitation.php?name=[.$Userlist[op].email.]&list=1">邀请</a>&nbsp;&nbsp;-&nbsp;&nbsp;
                    <a href="?ourphp_cms=del&id=[.$Userlist[op].id.]" onclick="javascript:return confirm('确认删除吗?')">删除</a>
                    </td>
                  </tr>
				  [.sectionelse.]
				  <tr>
                    <td colspan="9">[.$ourphp_access.]</td>
                  </tr>
				  [./section.]
                  <tr>
                    <td colspan="9">[.$ourphppage.]</td>
                  </tr>
				  [.if $a[0] == 'coupon'.]
				  <tr>
                    <td colspan="9"><input type="submit" name="Submit" value="批量发优惠券" class="ourphp_listan" /></td>
                  </tr>
				  [./if.]
                </table>
			</form>
		</div>
	  </li>
  </ul>
  
  <ul>
	  <li>
		<form id="form1" name="form1" method="POST" action="?ourphp_cms=add" class="registerform">
		<table width="98%" border="0" cellpadding="5" cellspacing="0" bordercolor="#666666" style="border-collapse:collapse; margin-top:20px;" align="center">
		<tr>
		  	<td><div align="right">会员级别</div></td>
			<td>
			
				<select name="OP_Userclass" class="win3" >
				  [.section loop=$Userleve name=op.]
					<option value="[.$Userleve[op].id.]">[.$Userleve[op].name.]</option>
				  [./section.]
				</select>
			
			</td>
		  </tr>
		  <tr>
		  	<td><div align="right">状态</div></td>
			<td>
			<label><input name="OP_Userstatus" type="radio" value="1" checked="checked" />开启</label>&nbsp;&nbsp;
			<label><input name="OP_Userstatus" type="radio" value="2" />锁定</label>
			</td>
		  </tr>
		  <tr>
		  	<td><div align="right">账户现金</div></td>
			<td>添加好会员后,在后台充值中操作</td>
		  </tr>
		  <tr>
		  	<td><div align="right">账户积分</div></td>
			<td>添加好会员后,在后台充值中操作</td>
		  </tr>
		  <tr>
		  	<td><div align="right">账户虚拟币</div></td>
			<td>添加好会员后,在后台充值中操作</td>
		  </tr>
		  <tr>
				<td><div align="right"><h5>实名信息</h5></div></td>
				<td></td>
		  </tr>
		  <tr>
		  	<td><div align="right">会员账号</div></td>
			<td><input name="OP_Useremail" type="text" class="win" [.$ourphp_bgcolor.] [.if $ourphp_usercontrol.OP_Regtyle == 'email'.]datatype="e"[.else.]datatype="m"[./if.] nullmsg="账号是必填项!"/><font color=red> (*)</font>
			
			[.if $ourphp_usercontrol.OP_Regtyle == 'email'.]EAMIL格式，如：77701950@qq.com[./if.]
			[.if $ourphp_usercontrol.OP_Regtyle == 'tel'.]手机号格式，如：13199509559[./if.]
			
			</td>
		  </tr>
		  <tr>
		  	<td><div align="right">会员姓名</div></td>
			<td><input name="OP_Username" type="text" class="win" [.$ourphp_bgcolor.]  datatype="*" nullmsg="姓名是必填项!" /><font color=red> (*)</font></td>
		  </tr>
		  <tr>
		  	<td><div align="right">手机号码</div></td>
			<td><input name="OP_Usertel" type="text" class="win" [.$ourphp_bgcolor.]  datatype="*" nullmsg="电话是必填项!" /><font color=red> (*)</font></td>
		  </tr>
		  <tr>
		  	<td><div align="right">身份证号</div></td>
			<td><input name="OP_Useradd" type="text" class="win" [.$ourphp_bgcolor.] /></td>
		  </tr>
		  <tr>
				<td><div align="right"><h5>提现信息</h5></div></td>
				<td></td>
		  </tr>
		  <tr>
		  	<td><div align="right">收款类型</div></td>
			<td><input name="OP_Userskype" type="text" class="win" [.$ourphp_bgcolor.] /></td>
		  </tr>
		  <tr>
		  	<td><div align="right">收款账号</div></td>
			<td><input name="OP_Useraliww" type="text" class="win" [.$ourphp_bgcolor.] /></td>
		  </tr>
		  <tr>
				<td><div align="right"><h5>基本信息</h5></div></td>
				<td></td>
		  </tr>
		  <tr>
		  	<td><div align="right">登录密码</div></td>
			<td><input name="OP_Userpass" type="text" class="win" [.$ourphp_bgcolor.] atatype="*6-16" nullmsg="请设置密码！" errormsg="密码范围在6~16位之间！" /><font color=red> (*)</font></td>
		  </tr>
		  <tr>
		  	<td><div align="right">确认密码</div></td>
			<td><input name="OP_Userpassto" type="text" class="win" [.$ourphp_bgcolor.] datatype="*" recheck="OP_Userpass" nullmsg="请再输入一次密码！" errormsg="您两次输入的账号密码不一致！" /><font color=red> (*)</font></td>
		  </tr>
		  <tr>
		  	<td><div align="right">微信/QQ</div></td>
			<td><input name="OP_Userqq" type="text" class="win" [.$ourphp_bgcolor.] /></td>
		  </tr>
		  <tr>
		  	<td><div align="right">推荐人账号</div></td>
			<td><input name="OP_Usersource" type="text" class="win" value="后台添加" [.$ourphp_bgcolor.] /></td>
		  </tr>
		  <tr>
		  	<td><div align="right">头像地址</div></td>
			<td><input name="OP_Userhead" type="text" class="win" [.$ourphp_bgcolor.] /></td>
		  </tr>
		  <tr>
		  	<td><div align="right">IP</div></td>
			<td><input name="OP_Userip" type="text" class="win" [.$ourphp_bgcolor.] /></td>
		  </tr>
		  <tr>
		  	<td><div align="right">安全问题</div></td>
			<td>
			
				<select name="OP_Userproblem" class="win3" >
				  [.section loop=$Userproblem name=op.]
					<option value="[.$Userproblem[op].name.]">[.$Userproblem[op].name.]</option>
				  [./section.]
				</select>
				
			<font color=red> (*)</font></td>
		  </tr>
		  <tr>
		  	<td><div align="right">答案</div></td>
			<td><input name="OP_Useranswer" type="text" class="win" [.$ourphp_bgcolor.]  datatype="*" nullmsg="答案是必填项!"  /><font color=red> (*)</font></td>
		  </tr>
		  <tr>
		  	<td><div align="right">人生宣言</div></td>
			<td><textarea name="OP_Usertext" class="wtextarea"  ></textarea></td>
		  </tr>
		  
		   <tr>
		   	<td></td>
			<td><input type="submit" name="submit" value="提 交" class="ourphp-anniu"/></td>
		  </tr>
		</table>
		</form>
	  </li>
  </ul>
 </div>
</div>
[.include file="ourphp_foot.html".]
</body>
</html>