<%@ page language="C#" autoeventwireup="true" inherits="user_weiyouhui, kfenlei" %><%@ Register TagPrefix="qth8" TagName="userManageLeft" Src="~/inc/userWeixinLeft.ascx" %><%@ Register TagPrefix="qth8" TagName="userManageTop" Src="~/inc/userManageTop.ascx" %><!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>
<title><%=sWebName %> - 微优惠</title>
<link rel="stylesheet" type="text/css" href="css.css" />
<link rel="stylesheet" type="text/css" href="/template/css.css" />
</head>
<body>
<div align="center">
<qth8:userManageTop runat="server" ID="userManageTop" selectValue="5" />
<script type="text/javascript" language="javascript" src="/js/layui.js"></script>
<link href="/js/css/layui.css" rel="stylesheet" type="text/css" />
<script 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(sortid)', function(data){
acLoadWeiyouhuiSort($("#sortid").val(),'');
});
});
</script>
<div class="main" align="left">
<div class="clear"></div>
<qth8:userManageLeft runat="server" selectValue="6" ID="userManageLeft" />
<div class="userRight">
<div class="userRightContent">
<div class="userRightContentTop">微优惠</div>
<form action="action.aspx?s=weiyouhui" method="post" class="layui-form" name="weiyouhui" id="weiyouhui">
<table width="970" class="formTable" border="0" cellspacing="0" cellpadding="5">
<tr>
<td class="head" width="100">门面图片：</td>
<td width="500"><input class="inputText" value="<%=sPic%>" name="pic" id="inputpic" type="hidden" size="39" />
<img src="/images/nopic.png" id="imgpic" width="96" height="96" style="border:1px solid #dedede; cursor:pointer;" class="fl5" onclick="$('#upfileDiv').fadeIn(800)" /><a href="#nogo" onclick="$('#upfileDiv').fadeIn(800)" class="btn_1 fl5">上传</a>
<div class="clear"></div>
<div class="upfileDiv" id="upfileDiv">
<div class="upfileClose" onclick="hideDiv('upfileDiv')">关闭</div>
<iframe width="300" height="100" style=" padding:0px; margin:0px;" src="actionUpLoad.aspx?tn=pic&fn=weiyouhui&size=360,200&js=top.hideDiv('upfileDiv');top.valiUpPic('pic','{picUrl}');" frameborder="0" scrolling="no"></iframe>
</div>
</td>
<td width="230" class="commentary"></td> 
</tr>
<tr>
<td class="head" width="100">公众号二维码：</td>
<td width="390"><input class="inputText" value="<%=sWxPic%>" name="wxPic" id="inputwxPic" type="hidden" size="39" />
<img src="/images/nopic.png" id="imgwxPic" width="96" height="96" style="border:1px solid #dedede; cursor:pointer;" onclick="$('#upfileDiv2').fadeIn(800)" class="fl5" /><a href="#nogo" onclick="showDiv('upfileDiv2')" class="btn_1 fl5">上传</a>
<div class="clear"></div>
<div class="upfileDiv" id="upfileDiv2">
<div class="upfileClose" onclick="hideDiv('upfileDiv2')">关闭</div>
<iframe width="300" height="100" style=" padding:0px; margin:0px;" src="actionUpLoad.aspx?tn=wxPic&fn=weiyouhui&size=300,0&js=top.hideDiv('upfileDiv2');top.valiUpPic('wxPic','{picUrl}');" frameborder="0" scrolling="no"></iframe>
</div>
</td>
<td width="230" class="commentary"></td> 
</tr>
<tr>
<td class="head">商家名称：</td>
<td><input class="textInput" value="<%=sName%>" name="name" type="text" size="39" /></td>
<td class="commentary"></td> 
</tr>
<tr>
<td class="head">类别：</td>
<td><div class="post_city"><%=tools.showWeiyouhuiSortSelectAdmin("sortid","sortid1")%></div></td>
<td class="commentary"></td> 
</tr>
<tr>
<td class="head">所在地：</td>
<td><div class="post_city"><%=tools.showAddressSelect("city", "city1")%></div></td>
<td class="commentary"></td> 
</tr>
<tr>
<td class="head">手机：</td>
<td><input class="textInput" value="<%=sTel%>" name="tel" type="text" size="39" /></td>
<td class="commentary"></td> 
</tr>
<tr>
<td class="head">电话：</td>
<td><input class="textInput" value="<%=sPhone%>" name="phone" type="text" size="39" /></td>
<td class="commentary"></td> 
</tr>
<tr>
<td class="head">QQ：</td>
<td><input class="textInput" value="<%=sQq%>" name="qq" type="text" size="39" /></td>
<td class="commentary"></td> 
</tr>
<tr>
<td class="head">微信：</td>
<td><input class="textInput" value="<%=sWeixin%>" name="weixin" type="text" size="39" /></td>
<td class="commentary"></td> 
</tr>
<tr>
<td class="head">营业时间：</td>
<td><input class="textInput" value="<%=sOpeningHours%>" name="openingHours" type="text" size="39" /></td>
<td class="commentary"></td> 
</tr>
<tr>
<td class="head">地址：</td>
<td><input class="textInput" value="<%=sAddress%>" name="address" type="text" size="39" /></td>
<td class="commentary"></td> 
</tr>
<tr>
<td class="head">优惠说明：</td>
<td><textarea class="postTextarea" name="sale" rows="5" cols="50"><%=sSale%></textarea></td>
<td class="commentary" valign="top"></td> 
</tr>
<tr>
<td class="head">商家介绍：</td>
<td><textarea class="postTextarea" name="about" rows="5" cols="50"><%=sAbout%></textarea></td>
<td class="commentary" valign="top"></td> 
</tr>
<tr><td></td><td><input type="submit" class="inputSubmit" value="修改资料" /></td><td></td></tr>
</table>
</form>
<script language="javascript" type="text/javascript">
$("select[name='city']").find("option[value='<%=sCity%>']").attr("selected",true);
acLoadAddress("<%=sCity%>","<%=sCity1%>")
$("select[name='sortid']").find("option[value='<%=sSort%>']").attr("selected",true);
acLoadWeiyouhuiSort("<%=sSort%>","<%=sSort1%>")
 function valiUpPic(picId,picValue)
  {
  	document.getElementById("input"+picId).value=picValue
	if(picValue!="")
	{
		document.getElementById("img"+picId).src="/"+picValue
	}
	else
	{
		document.getElementById("img"+picId).src="/images/nopic.png"
	}
  }
  valiUpPic("pic",document.getElementById("inputpic").value)
  valiUpPic("wxPic",document.getElementById("inputwxPic").value)
  function showDiv(divId)
  {
  	document.getElementById(divId).style.display="block"
  }
  function hideDiv(divId)
  {
  	document.getElementById(divId).style.display="none"
  }
</script>
</div>
</div>
</div></div>
</body>
</html>