<%@ page language="C#" autoeventwireup="true" inherits="admin_weiyouhui_weiyouhuiEdit, 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">微商家修改</div>
<form name="editUser" id="editUser" action="action.aspx?s=editUser&uid=<%=sUid%>" class="layui-form" method="post">
<input type="hidden" name="style" id="style" value="<%=sStyle %>" />
<table border="0" width="100%" class="layui-table" cellspacing="0" cellpadding="0">
<tr><td width="200">用户ID</td><td><a href="../editUser.aspx?id=<%=id%>" target="_blank"><%=id%></a></td></tr>
<tr><td>用户名</td>
<td><input type="text" class="inputText" size="50" value="<%=sUserName%>" name="user_name" /> 【<a href="../editUser.aspx?id=<%=id%>" target="_blank">修改用户名</a>】</td></tr>
<tr><td>商家状态</td>
<td><input type="radio" value="0" name="show" title="不显示" /><input type="radio" value="1" name="show" title="显示" /></td></tr>
<tr><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" value="<%=sNum%>" name="num" size="50" /></td></tr>
<tr><td>其它</td>
<td>当天查看数 <input type="text" class="inputText" value="<%=sTodayStat%>" name="todayStat" size="5" /> 总查看数 <input type="text" class="inputText" value="<%=sStat%>" name="stat" size="5" /> </td></tr>
</table>
<div class="tabTitle">商家资料</div>
<table border="0" width="100%" class="layui-table" cellspacing="0" cellpadding="0">
<tr><td width="200">模板</td><td>
<a href="#nogo" id="tlsort" class="layui-btn layui-btn-small">更换模板</a>
<script type="text/javascript">
var obj;
var objInput;
$("#tlsort").click(function()
{
obj=layer.tab({
  area: ['80%', '80%'],
  tab: [{title: '模板选择',  content:$("#templateSort").html()}]});
});
function setTemplate(value,tname)
{
    $("#"+tname).val(value);
    $("#templateSort .tlBox").removeClass("ck");
    $("#templateSort div[templateName='"+value+"']").addClass("ck");
    layer.close(obj);
    $("#editUser").submit();
}
</script></td></tr>
<tr><td>商家名称</td><td><input type="text" class="inputText" name="name" size="50" value="<%=sName%>" /></td></tr>
<tr><td>商家图标</td><td><input type="text" class="inputText" size="50" value="<%=sPic%>" id="pic" name="pic" /> <a href="/<%=sPic%>" target="_blank">[查看]</a> <a href="#nogo" onclick="showDiv('upfileDiv')">[上传]</a>
<div class="upfileDiv" 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=360,200&js=top.hideDiv('upfileDiv');top.valiUpPic('pic','','{picUrl}');" frameborder="0" scrolling="no"></iframe>
</div></td></tr>
<tr><td>二维码图片</td><td><input type="text" size="50" class="inputText" value="<%=sWxPic%>" id="wxPic" name="wxPic" /> <a href="/<%=sWxPic%>" target="_blank">[查看]</a> <a href="#nogo" onclick="showDiv('upfileDiv3')">[上传]</a><div class="upfileDiv" id="upfileDiv3">
<div class="upfileClose" onclick="hideDiv('upfileDiv3')">关闭</div>
<iframe width="400" height="100" style="padding:0px; margin:0px;" src="../inc/upFile.aspx?tn=wxPic&fn=editUser&size=300,0&js=top.hideDiv('upfileDiv3');top.valiUpPic('wxPic','','{picUrl}');" frameborder="0" scrolling="no"></iframe>
</div></td></tr>
<tr><td>所在地</td><td><div class="selectDivLine"><%=tools.showAddressSelectAdmin("city","city1") %></div></td></tr>
<tr><td>分类</td><td><div class="selectDivLine"><% =tools.showWeiyouhuiSortSelectAdmin("sort","sort1") %></div></td></tr>
<tr><td>企业地址</td><td><input type="text" class="inputText" name="address" value="<%=sAddress%>" size="50" /></td></tr>
<tr><td>营业时间</td><td><input type="text" class="inputText" name="openingHours" value="<%=sOpeningHours%>" size="50" /></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="<%=sWeixin%>" name="weixin" /></td></tr>
<tr><td>是否集成主站微信功能</td><td><input type="text" class="inputText" size="50" value="<%=sWxCk%>" name="wxCk" /> 0不开启 1开启</td></tr>
<tr><td>微信接口Token</td><td><input type="text" class="inputText" size="50" value="<%=sWxToken%>" name="wxToken" /></td></tr>
<tr><td>微信AppId</td><td><input type="text" class="inputText" size="50" value="<%=sWxAppId%>" name="wxAppId" /></td></tr>
<tr><td>微信应用密钥<br />
<span class="comments">AppSecret</span></td><td><input type="text" class="inputText" size="50" value="<%=sWxAppSecret%>" name="wxAppSecret" /></td></tr>
<tr><td>微信AccessToken</td><td><input type="text" class="inputText" size="50" value="<%=sWxAccessToken%>" name="wxAccessToken" /></td></tr>
<tr><td>微信AccessToken过期日期</td><td><input type="text" class="inputText" onclick="layui.laydate({elem:this})" size="50" value="<%=sWxAccessTokenDate%>" name="wxAccessTokenDate" /></td></tr>
<tr><td>商家介绍</td><td><textarea name="about" cols="80" rows="4" class="layui-textarea"><%=sAbout%></textarea></td></tr>
<tr><td>优惠说明</td><td><textarea name="sale" cols="80" rows="4" class="layui-textarea"><%=sSale%></textarea></td></tr>
<tr><td></td><td><input type="submit" class="layui-btn" value="修改资料" /></td></tr>
</table></form>
</div>
</div>
</div>
<div id="templateSort" style="display:none;"><%=sTemplateSort %></div>
<script language="javascript" type="text/javascript">
layui.use(['form','laydate'], function(){
var form = layui.form();
form.render();
form.on('select(city)', function(data){
acLoadAddress($("#city").val(),"");
});
form.on('select(sort)', function(data){
acLoadWeiyouhuiSort($("#sort").val(),'');
});
});
$("select[name='sort']").find("option[value='<%=sSort%>']").attr("selected",true);
acLoadWeiyouhuiSort("<%=sSort%>","<%=sSort1%>")
$("select[name='city']").find("option[value='<%=sCity%>']").attr("selected",true);
acLoadAddress("<%=sCity%>","<%=sCity1%>")
$(":radio[value='<%=sShow %>']").attr("checked","checked");
function showDiv(divId)
{
	document.getElementById(divId).style.display="block"
}
function hideDiv(divId)
{
	document.getElementById(divId).style.display="none"
}
</script>
</body>
</html>
