<%@ page language="C#" autoeventwireup="true" inherits="admin_editUser, kfenlei" %><%@ Register Src="inc/adminTop.ascx" TagName="adminTop" TagPrefix="qth8" %><!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" />
<link href="css.css" rel="stylesheet" type="text/css" />
<title>框分类信息系统 后台管理</title></head>
<body>
<div align="center">
<div class="main" align="left">
<qth8:adminTop ID="AdminTop1" runat="server" />
<div class="d01">
<div class="tabTitle">用户信息修改<span class="tabTitleCom">用户ID <%=id%>&nbsp;|&nbsp;<a href="xxgl.aspx?u=<%=id%>" target="_blank">发布信息数 <%=sInfoCount%></a>&nbsp;|&nbsp;<a href="xxgl.aspx?u=<%=id%>" target="_blank">今日发布 <%=sDayInfoCount%></a> &nbsp;&nbsp;&nbsp;&nbsp;<a href="action.aspx?s=loginUser&id=<%=id%>" target="_blank" class="layui-btn layui-btn-small">登录用户</a></span></div>
<form name="editUser" class="layui-form" action="action.aspx?s=editUser&id=<%=id%>" method="post">
<table border="0" width="100%" class="layui-table" cellspacing="0" cellpadding="0">
<tr>
<td width="200">用户名</td>
<td><input type="text" class="inputText" size="50" value="<%=sUserName%>" name="userName" />
</td></tr>
<tr>
<td>密码<br />
<span class="comments">直接填写新密码修改</span></td>
<td><input type="text" class="inputText" size="50" value="" name="passWord" /></td></tr>
<tr>
<td>手机认证</td>
<td><input type="radio" value="0" name="valiTel" title="未认证" /><input type="radio" value="1" name="valiTel" title="已认证" />
</td>
</tr>
<tr>
<td>认证手机号</td>
<td><input type="text" class="inputText" value="<%=sValiTelValue%>" size="50" name="valiTelValue" />
</td></tr>
<tr><td>用户级别</td>
<td><input type="radio" value="0" name="level" lay-filter="level" title="普通" /><input type="radio" value="2" name="level" lay-filter="level" title="会员" />
</td></tr>
<tr id="date1"><td>会员到期日期</td>
<td><input type="text" class="inputText" size="50" value="<%=sLevelDate%>" name="levelDate" onclick="layui.laydate({elem:this})" />
</td></tr>
<tr><td>用户类型</td>
<td><input type="radio" value="0" name="level1" title="个人" /><input type="radio" value="1" name="level1" title="中介" /></td></tr>
<tr><td>商家</td>
<td><input type="radio" value="0" name="companyCk" lay-filter="companyCk" title="未开通" /><input type="radio" value="1" name="companyCk" lay-filter="companyCk" title="已开通" /><input type="radio" value="2" name="companyCk" lay-filter="companyCk" title="vip" />
</td></tr>
<tr id="date2"><td>vip商家有效日期</td>
<td><input type="text" class="inputText" size="22" onclick="layui.laydate({elem:this})" value="<%=vstartdate%>" name="vstartdate" /> - <input type="text" class="inputText" size="22" onclick="layui.laydate({elem:this})" value="<%=voverdate%>" name="voverdate" />
</td></tr>
<tr><td>微优惠</td>
<td><input type="radio" value="0" name="weiyouhuiCk" lay-filter="weiyouhuiCk" title="未开通" /><input type="radio" value="1" name="weiyouhuiCk" lay-filter="weiyouhuiCk" title="已开通" />
</td></tr>
<tr id="date3"><td>微优惠有效日期</td>
<td><input type="text" class="inputText" size="22" onclick="layui.laydate({elem:this})" value="<%=sStartDate%>" name="startDate" /> - <input type="text" class="inputText" size="22" onclick="layui.laydate({elem:this})" value="<%=sOverDate%>" name="overDate" /></td></tr>
<tr>
<td>名称</td>
<td><input type="text" class="inputText" size="50" value="<%=sName%>" name="name" /></td></tr>
<tr>
<td>电话</td>
<td><input type="text" class="inputText" size="50" value="<%=sPhone%>" name="phone" /></td></tr>
<tr>
<td>手机</td>
<td><input type="text" class="inputText" size="50" value="<%=sTel%>" name="tel" /></td></tr>
<tr>
<td>QQ</td>
<td><input type="text" class="inputText" size="50" value="<%=sQq%>" name="qq" /></td></tr>
<tr>
<td>微信</td>
<td><input type="text" class="inputText" size="50" value="<%=sWx%>" name="wx" /></td></tr>
<tr>
<td>邮箱</td>
<td><input type="text" class="inputText" size="50" value="<%=sEmail%>" name="email" /></td></tr>
<tr>
<td>头像</td>
<td><input type="text" class="inputText" size="50" value="<%=sPic%>" id="pic" name="pic" /> <a href="<%=sPic1%>" target="_blank">【查看】</a> <a href="#nogo" onclick="showDiv('upfileDiv')">【上传】</a>
<div class="upfileDiv" style="" id="upfileDiv">
<div class="upfileClose" onclick="hideDiv('upfileDiv')">关闭</div>
<iframe width="400" height="100" style="padding:0px; margin:0px;" src="inc/upFile.aspx?tn=pic&fn=editUser&size=200,0&js=top.hideDiv('upfileDiv');top.valiUpPic('pic','','{picUrl}');" frameborder="0" scrolling="no"></iframe>
</div>
</td></tr>
<tr>
<td>积分</td>
<td><input type="text" class="inputText" size="50" value="<%=sJifen%>" name="jifen" /></td></tr>
<tr>
<td>余额</td>
<td><input type="text" class="inputText" size="50" value="<%=sYuan%>" name="yuan" /></td></tr>
<tr>
<tr>
<td>Access_Token<br />
<span class="comments">QQ登录字段</span></td>
<td><input type="text" class="inputText" size="50" value="<%=sAccessToken%>" name="accessToken" /></td></tr>
<tr>
<tr>
<td>QQ_Open_Id<br />
<span class="comments">QQ登录字段</span></td>
<td><input type="text" class="inputText" size="50" value="<%=sOpenId%>" name="openId" /></td></tr>
<tr>
<tr>
<td>Token<br />
<span class="comments">微信接口</span></td>
<td><input type="text" class="inputText" size="50" value="<%=sToken%>" name="token" /></td></tr>
<tr>
<td>个人说明</td>
<td><textarea name="about" cols="50" rows="10" class="layui-textarea"><%=sAbout%></textarea></td></tr>
<tr><td></td><td><input type="submit" class="layui-btn" value="修改用户信息" /></td></tr>
</table>
</form>
</div>
</div>
</div>
<script language="javascript" type="text/javascript">
ckRadio("valiTel","<%=sValiTel%>");
ckRadio("level","<%=sLevel%>");
ckRadio("level1","<%=sLevel1%>");
ckRadio("companyCk","<%=sCompanyCk%>");
ckRadio("weiyouhuiCk","<%=sWeiyouhuiCk%>");
updateForm();
layui.use(['form','laydate'], function(){
var form = layui.form();
form.render();
form.on('radio(weiyouhuiCk)', function(data){
updateForm();
});
form.on('radio(companyCk)', function(data){
updateForm();
});
form.on('radio(level)', function(data){
updateForm();
});
});
function updateForm()
{
$("#date1").hide();$("#date2").hide();$("#date3").hide();
if($("input:radio[name='level']:checked").val()=="2")
{
	$("#date1").show();
}
if($("input:radio[name='companyCk']:checked").val()=="2")
{
	$("#date2").show();
}
if($("input:radio[name='weiyouhuiCk']:checked").val()=="1")
{
	$("#date3").show();
}
}
function showDiv(divId)
{
	document.getElementById(divId).style.display="block"
}
function hideDiv(divId)
{
	document.getElementById(divId).style.display="none"
}
</script>
</body>
</html>
