<!--#include file="../check.asp"--><!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link type="text/css" rel="stylesheet" href="/css/reset.css" />
<link type="text/css" rel="stylesheet" href="/css/main.css" />
<link type="text/css" rel="stylesheet" href="/css/template_vendor.css" />
<script type="text/javascript" src="/scripts/common.js"></script>
<script type="text/javascript" src="/scripts/nav.js"></script>
<script type="text/javascript" src="/scripts/GetAdvCode.aspx.js"></script>
</head>
<body>
<!--#include file="top.asp"-->
<%
call ConnectionDatabase
sql = "select * from member where username='"&Session("Usr_UserName")&"'"
set rs = conn.execute(sql)
if rs.eof then
	Call WriteErr("找不到相关数据！","")
end if
%>
	<div id="mainborder">
		<div id="main">
			
		<h3 class="bigico bigico_help">获取漂浮代码</h3>
		<div class="vspace"></div>
		
		<div class="shrink">

				<input type="hidden" name="root" id="root" value="http://pay.46ka.com/" />
				<input type="hidden" name="gm" id="gm" value="<%=Session("Usr_userid")%>" />
				
				<div class="fl" style="width:48%">
					<span class="bold">选择类型:</span>
					<div class="vspace"></div>

					<input type="radio" name="function" id="payg" value="payg" checked="checked" onclick="javascript:selectType(this);" />
					<label for="payg">分区分组支付连接漂浮 &nbsp;</label>
					<div id="gDiv" style="margin:5px 0 20px 22px">
						<select name="gSelect" id="gSelect" onchange="javascript:generate();" style="width:180px;">

<%

	set Rss=GrateRs("select * from L_fenzu where userid="&Session("Usr_userid"),1)
	do while not Rss.eof
		Response.Write "<option value='"&Rss("id")&"'"
		Response.Write ">"&Rss("name")&"</option>"
		Rss.movenext
	loop 

%>


</select>
					</div>
					
					<input type="radio" name="function" id="paym" value="paym" onclick="javascript:selectType(this);" />
					<label for="paym">分区支付连接漂浮 &nbsp;</label>
					<div id="mDiv" style="margin:5px 0 20px 22px">
						<select name="mSelect" id="mSelect" onchange="javascript:generate();" style="width:180px;">

<%
	set Rs=GrateRs("select * from l_woool where userid="&session("Usr_userid"),1)
	do while not Rs.eof
		Response.Write "<option value='"&Rs("id")&"'"
		Response.Write ">"&Rs("wooolname")&"</option>"
		Rs.movenext
	loop 

%>


</select>
					</div>

					<div style="display:none">
						<input type="radio" name="function" id="message" value="message" onclick="javascript:selectType(this);" />
						<label for="message">留言信箱连接漂浮</label>
					</div>

					<div style="margin-top:25px">
						<span class="bold">选择图片样式:</span>
						<div class="vspace"></div>
						<div id="paypicDiv" style="margin:5px 0 20px 0">
							<input type="radio" name="paypics" id="paypic1" value="pay1" checked="checked" onclick="javascript:selectPic(this);" /><label for="paypic1">样式1 &nbsp;</label>
							<input type="radio" name="paypics" id="paypic2" value="pay2" onclick="javascript:selectPic(this);" /><label for="paypic2">样式2 &nbsp;</label>
							<input type="radio" name="paypics" id="paypic3" value="pay3" onclick="javascript:selectPic(this);" /><label for="paypic3">样式3 &nbsp;</label>
							<input type="radio" name="paypics" id="paypic4" value="pay4" onclick="javascript:selectPic(this);" /><label for="paypic4">样式4 &nbsp;</label>
							<input type="radio" name="paypics" id="paypic5" value="pay5" onclick="javascript:selectPic(this);" /><label for="paypic5">样式5 &nbsp;</label>
							<input type="radio" name="paypics" id="paypic6" value="pay6" onclick="javascript:selectPic(this);" /><label for="paypic6">样式6 &nbsp;</label>
						</div>
						<div id="msgpicDiv" style="margin:5px 0 20px 0; display:none">
							<input type="radio" name="msgpics" id="msgpic1" value="msg1" checked="checked" onclick="javascript:selectPic(this);" /><label for="msgpic1">样式1 &nbsp;</label>
						</div>
						<img id="picPreview" alt="" style="display:none" />
					</div>
				</div>
				</div>

				<div class="fl" style="width:45%">
					<fieldset>
						<legend class="bold">漂浮代码</legend>
						<div style="margin:12px">
							在左边选择漂浮代码内容后，生成的引用代码会显示在下方框中，请将它复制到您的网页源代码底部即可实现漂浮显示。
							<div class="lb"></div>
							<div>
								<textarea id="code" style="width:98%" rows="5" onfocus="this.select();"></textarea>
								<div class="lb"></div>
								<input type="button" value="演示" class="button" style="width:70px" onclick="javascript:demoStart();" />
								<input type="button" value="停止" class="button" style="width:70px" onclick="javascript:demoStop();" />
							</div>
						</div>
					</fieldset>
				</div>

				<div class="clear"></div>
			</form>
		</div>
		<script type="text/javascript" src="http://pay.46ka.com/adv.asp?m=10000&pic=pay1"></script>
	
		</div>
	</div>
</div>
</body>
</html>