<%@ page language="C#" autoeventwireup="true" inherits="admin_config, 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>
<title>框分类信息系统 后台管理</title>
<link href="css.css" rel="stylesheet" type="text/css" />
<%=tools.sHtmlEdit("sitesay,sitesay1,about,link,JoinUs,Advertising")%>
</head>
<body>
<div align="center">
<div class="main" align="left">
<qth8:adminTop ID="AdminTop1" runat="server" />
<script type="text/javascript">
function valiUpPic(picUrl,objid)
{
    $('#upfileDiv').hide();
	 $('#upfileDiv1').hide();
    $('#'+objid).attr("src",picUrl+"?"+Math.random());
}
layui.use(['form','laydate'], function(){
var form = layui.form();
form.render();
form.on('select(class01)', function(data){
	setWeather($('#class01').val(),'2');
});
form.on('select(class02)', function(data){
	setWeather($('#class02').val(),'3');
});
form.on('select(class03)', function(data){
	$("#weather").val("编码获取中……");
	$.get("action.aspx?s=getHtml&url=http://www.kfenlei.com/weather/city/city"+$("#class03").val()+".xml",
	function(data,status)
	{
		var city=data.split("|");
		$("#weather").val(city[1]);
	});
});
});
function setWeather(fCityName,fCityClass)
{
	$.get("action.aspx?s=getHtml&url=http://www.kfenlei.com/weather/city/city"+fCityName+".xml",
	function(data,status)
	{
		var city=data.split(",");
		selectBorough=document.getElementById("class0"+fCityClass);
		selectBoroughLangth=selectBorough.options.length;
		for(t=0;t<selectBoroughLangth;t++)
		{
			selectBorough.remove(0);
		}
		boroughOption=document.createElement("option");
		boroughOption.appendChild(document.createTextNode("请选择"));
		boroughOption.setAttribute("value", "");
		selectBorough.appendChild(boroughOption);
		for(i=0;i<city.length;i++)
		{
			arrayBorough=city[i].split("|");
			boroughOption=document.createElement("option");
			boroughOption.appendChild(document.createTextNode(arrayBorough[1]));
			boroughOption.setAttribute("value", arrayBorough[0]);
			selectBorough.appendChild(boroughOption);
			var form = layui.form();
			form.render();
		}
	});	
}
$(function(){
setWeather('','1');
});
</script>
<div class="d01">
 <form id="config" class="layui-form" action="action.aspx?s=editConfig" method="post" name="config">
<div class="tabTitle">基本信息</div>
<table width="100%" border="0" class="layui-table" cellspacing="0" cellpadding="0">
  <tr>
    <td class="head" width="200">网站LOGO</td>
    <td><div class="fl5"><img src="/template/images/logo.png" id="logo" width="260" /></div><div class="fl5" style="padding-top:25px"><a href="#nogo" onclick="$('#upfileDiv').show()" class="layui-btn layui-btn-primary layui-btn-small">修改</a></div>
    <div class="clear"></div>
    <div class="upfileDiv" id="upfileDiv">
<div class="upfileClose" onclick="$('#upfileDiv').hide()">关闭</div>
<iframe width="400" height="100" style="padding:0px; margin:0px;" src="inc/upFile.aspx?s=logo&tn=logo&fn=editUser&js=top.valiUpPic('{picUrl}','logo');" frameborder="0" scrolling="no"></iframe>
</div>
    </td>
  </tr>
  <tr>
    <td class="head" width="200">网站名称</td>
    <td><input id="name" type="text" value="<%=sName %>" name="name" class="layui-input" /></td>
  </tr>
  <tr>
    <td class="head">主域名<br />
<span class="comments">请填写顶级域名，不包括“www.”</span></td>
    <td><input id="domain" type="text" value="<%=sDomain %>" name="domain" class="layui-input" /></td>
  </tr>
  <tr>
    <td class="head">本站域名<br />
<span class="comments">默认为www.+主域名</span></td>
    <td><input id="tdomain" type="text" value="<%=sTDomain %>" name="tdomain" class="layui-input" /></td>
  </tr>
    <tr>
    <td class="head">首页标题</td>
    <td><input id="title" type="text" value="<%=sTitle %>" name="title" class="layui-input" /></td>
  </tr>
    <tr>
    <td class="head">首页关键词</td>
    <td><input id="keywords" type="text" value="<%=sKeyWords %>" name="keywords" class="layui-input" /></td>
  </tr>
  <tr>
    <td class="head">首页网站描述</td>
    <td><input id="description" type="text" value="<%=sDescription %>" name="description" class="layui-input" /></td>
  </tr>
    </tr>
    <tr>
    <td class="head">手机版首页标题</td>
    <td><input id="waptitle" type="text" value="<%=sWapTitle %>" name="waptitle" class="layui-input" /></td>
  </tr>
    <tr>
    <td class="head">手机版首页关键词</td>
    <td><input id="wapkeywords" type="text" value="<%=sWapKeyWords %>" name="wapkeywords" class="layui-input" /></td>
  </tr>
  <tr>
    <td class="head">手机版首页网站描述</td>
    <td><input id="wapdescription" type="text" value="<%=sWapDescription %>" name="wapdescription" class="layui-input" /></td>
  </tr>
  <tr>
    <td class="head">所在城市</td>
    <td><input id="city" type="text" value="<%=sCity %>" name="city" class="layui-input" /></td>
  </tr>
   <tr>
    <td class="head">天气所在地<br />
<span class="comments">系统会显示所在地的天气预报</span></td>
    <td><input id="weather" type="text" style="width:200px;" value="<%=sWeather %>" name="weather" class="layui-input fl5" />
	<div class="fl5"><select id="class01" lay-filter="class01">
<option value="">请选择</option>
</select></div>
<div class="fl5"><select id="class02" lay-filter="class02">
<option value="">市</option>
</select></div>
<div class="fl5"><select id="class03" lay-filter="class03">
<option value="">区</option>
</select></div></td>
  </tr>
   <tr>
    <td class="head">客服电话</td>
    <td><input id="tel" type="text" class="layui-input" value="<%=sTel %>" name="tel" /></td>
  </tr> 
     <tr>
    <td class="head">客服ＱＱ</td>
    <td><input id="qq" type="text" class="layui-input" value="<%=sQQ %>" name="qq" /></td>
  </tr>
    <tr>
    <td class="head">客服微信</td>
    <td><input id="weixin1" type="text" class="layui-input" value="<%=sWeixin %>" name="weixin" /></td>
  </tr>
  <tr>
    <td class="head" width="200">微信客服二维码</td>
    <td><div class="fl5"><img src="/template/images/qrcode/weixin.png" id="weixin" width="80" /></div><div class="fl5" style="padding-top:25px"><a href="#nogo" onclick="$('#upfileDiv1').show()" class="layui-btn layui-btn-primary layui-btn-small">修改</a></div>
    <div class="clear"></div>
    <div class="upfileDiv" id="upfileDiv1">
<div class="upfileClose" onclick="$('#upfileDiv1').hide()">关闭</div>
<iframe width="400" height="100" style="padding:0px; margin:0px;" src="inc/upFile.aspx?s=weixin&js=top.valiUpPic('{picUrl}','weixin');" frameborder="0" scrolling="no"></iframe>
</div>
    </td>
  </tr>
       <tr>
    <td class="head">Email</td>
    <td><input id="email" type="text" class="layui-input" value="<%=sEmail %>" name="email" /></td>
  </tr> 
       <tr>
    <td class="head">办公地址</td>
    <td><input id="address" type="text" class="layui-input" value="<%=sAddress %>" name="address" /></td>
  </tr>  
     <tr>
    <td class="head">备案号</td>
    <td><input id="ipc" type="text" class="layui-input" value="<%=sIpc %>" name="ipc" /></td>
  </tr>
  <tr>
    <td class="head">统计代码</td>
    <td>
<textarea id="stat" name="stat" class="layui-textarea" cols="70" rows="5"><%=sStat %></textarea>
</td></tr> 
</table>
<div class="tabTitle">参数设置</div>
<table width="100%" border="0" class="layui-table" cellspacing="0" cellpadding="0">
<tr>
<td class="head" width="200">评论需要审核</td>
<td><input type="radio" value="0" name="s5" title="开启" /> <input type="radio" value="1" name="s5" title="关闭" /></td>
</tr>
<tr>
<td class="head" width="200">商家二级域名</td>
<td><input type="radio" value="1" name="s7" title="开启" /> <input type="radio" value="0" name="s7" title="关闭" /></td>
</tr>
<tr>
<td class="head" width="200">商家可选择模板</td>
<td><input type="radio" value="0" name="s14" title="开启" /> <input type="radio" value="1" name="s14" title="关闭" /></td>
</tr>
<tr>
<td class="head" width="200">信息浏览量</td>
<td><input type="radio" value="1" name="s23" title="显示" /> <input type="radio" value="0" name="s23" title="关闭" /></td>
</tr>
<tr>
<td class="head" width="200">文章浏览量</td>
<td><input type="radio" value="1" name="s24" title="显示" /> <input type="radio" value="0" name="s24" title="关闭" /></td>
</tr>
</table>
<div class="tabTitle">QQ登录接口</div>
<table width="100%" border="0" class="layui-table" cellspacing="0" cellpadding="0">
<tr>
<td class="head" width="200">APP ID</td>
<td><input type="text" value="<%=sTxAppId %>" class="layui-input" name="txAppId" /></td>
</tr>
<tr>
<td class="head">APP KEY</td>
<td><input type="text" value="<%=sTxAppKey %>"  class="layui-input" name="txAppKey" /></td>
</tr>
</table>
<div class="tabTitle">网站公告</div>
<table width="100%" border="0" class="layui-table" cellspacing="0" cellpadding="0">
<tr>
<td class="head" width="200"><strong>首页公告</strong></td>
<td><textarea id="sitesay" name="sitesay" class="textarea01" cols="130" rows="15"><%=sSiteSay %></textarea>

</td>
  </tr>
    <tr>
    <td class="head"><strong>发布信息页公告</strong></td>
    <td><textarea id="sitesay1" name="sitesay1" class="textarea01" cols="130" rows="15"><%=sSiteSay1 %></textarea>
</td>
  </tr>
    <tr>
    <td class="head"><strong>关于我们</strong></td>
    <td>
<textarea id="about" name="about" class="textarea01" cols="130" rows="25"><%=sAbout %></textarea>
</td>
  </tr>
  <tr>
    <td class="head"><strong>友情链接说明</strong></td>
    <td>
<textarea id="link" name="link" class="textarea01" cols="130" rows="25"><%=sLink %></textarea>
</td>
  </tr>
  
    <tr>
    <td class="head"><strong>广告服务</strong></td>
    <td>
<textarea id="Advertising" name="Advertising" class="textarea01" runat="server" cols="130" rows="25"><%=sAdvertising %></textarea>
</td>
  </tr>
  
      <tr>
    <td class="head"><strong>加盟合作</strong></td>
    <td>
<textarea id="JoinUs" name="JoinUs" class="textarea01" runat="server" cols="130" rows="25"><%=sJoinUs %></textarea>
</td>
  </tr>
  <tr>
    <td class="head">&nbsp;</td>
    <td class="head"><input type="submit" class="layui-btn" value="确定修改" /></td>
  </tr>
  
</table>
</form>
</div>
</div>
</div>
</body>
<script>
ckRadio("s5","<%=sS5%>");
ckRadio("s7","<%=sS7%>");
ckRadio("s14","<%=sS14%>");
ckRadio("s23","<%=sS23%>");
ckRadio("s24","<%=sS24%>");
</script>
</html>
