<%@ page language="C#" autoeventwireup="true" inherits="admin_token, 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" />
</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"><a href="https://mp.weixin.qq.com/" target="_blank">[微信公众平台注册]</a></span></div>
<form action="../action.aspx?s=token" name="token" class="layui-form" method="post">
<table width="100%" border="0" class="layui-table" cellspacing="0" cellpadding="0">
<tr>
<td width="200">公众号类型</td>
<td><input type="radio" name="wxLoginClass" value="0" title="定阅号、未认证服务号" /> <input type="radio" name="wxLoginClass" value="1" title="服务号" /><script>ckRadio("wxLoginClass","<%=sWxLoginClass%>");</script></td>
</tr>
<tr>
<td width="200">小程序模式</td>
<td><input type="radio" name="s29" value="0" title="正常" /> <input type="radio" name="s29" value="1" title="过审模式" /><script>ckRadio("s29","<%=s29%>");</script></td>
</tr>
<tr>
    <td class="head" width="120">URL</td>
    <td><input type="text" class="inputText" value="<%=sUrl%>" name="url" disabled="disabled" style="width:400px;" />
        </td>
	</tr>
	<tr>
    <td class="head" width="100">
        TOKEN</td>
    <td><input type="text" class="inputText" value="<%=sToken%>" name="token" style="width:400px;" /><span class="comments">&nbsp;Token可由站长任意填写，用作生成签名（32位字符以内）。 </span></td>
	</tr>
	<tr>
    <td class="head" width="100">AppID(应用ID)</td>
    <td><input type="text" class="inputText" value="<%=sAppId%>" name="appId" style="width:400px;" /></td>
	</tr>
	<tr>
    <td class="head" width="100">AppSecret(应用密钥)</td>
    <td><input type="text" class="inputText" value="<%=sAppSecret%>" name="appSecret" style="width:400px;" /></td>
	</tr>
	<tr>
    <td class="head" width="100">公众号名称</td>
    <td><input type="text" class="inputText" value="<%=sName%>" name="name" style="width:400px;" /></td>
	</tr>
	<tr>
    <td class="head" width="100">公众号二维码</td>
    <td><div class="fl5"><img src="/template/images/qrcode/gzh.png" id="gzh" width="80" /></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=gzh&js=top.valiUpPic('{picUrl}','gzh');" frameborder="0" scrolling="no"></iframe>
</div>
    </td>
	</tr>
	<tr>
    <td class="head" width="100">小程序名称</td>
    <td><input type="text" class="inputText" value="<%=sWxMiniName%>" name="wxMiniName" style="width:400px;" /></td>
	</tr>
	<tr>
    <td class="head" width="100">小程序码</td>
    <td><div class="fl5"><img src="/template/images/qrcode/xcx.png" id="xcx" 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=xcx&js=top.valiUpPic('{picUrl}','xcx');" frameborder="0" scrolling="no"></iframe>
</div></td>
	</tr>
	<tr>
    <td class="head" width="100">微信分享默认图标</td>
    <td><input type="text" class="inputText" value="<%=sSharePic%>" name="sharepic" id="sharepic" style="width:400px;" /> <a href="/<%=sSharePic%>" target="_blank">[查看]</a> <a href="#nogo" onclick="$('#upfileDiv4').show()">[上传]</a><div class="upfileDiv" id="upfileDiv4">
<div class="upfileClose" onclick="$('#upfileDiv4').hide()">关闭</div>
<iframe width="400" height="100" style="padding:0px; margin:0px;" src="../inc/upFile.aspx?tn=pic&fn=token&size=300,0&js=top.valiUpPic2('{picUrl}','sharepic');" frameborder="0" scrolling="no"></iframe>
</div></td>
	</tr>
	<tr>
    <td class="head" width="100"></td>
    <td><input type="submit" class="layui-btn" value="提交" /></td>
	</tr>
	</table>
	</form>
</div>
</div>
</div>
<script type="text/javascript">
function valiUpPic(picUrl,objid)
{
	$('#upfileDiv').hide();
    $('#upfileDiv1').hide();
    $('#'+objid).attr("src",picUrl+"?"+Math.random());
}
function valiUpPic2(picUrl,objid)
{
	$('#upfileDiv4').hide();
    $('#'+objid).val(picUrl);
}
</script>
</body>
</html>
