<!--#include file="../conn.asp"-->
<!--#include file="../config.asp"-->
<!--#include file="../Include/Function.asp"-->
<!--#include file=cookies.asp-->
<!--#include file=../ads/Html2Js.asp-->
<%
'=====================================
'天天供求信息网站管理系统
'天天网络科技工作室出品
'客服中心:http://www.ip126.com
'微信公众号:ip126com
'QQ:530051328 mail:bbfhq@163.com
'=====================================
%>
<SCRIPT src="../Include/sinaflash.js" type=text/javascript></SCRIPT>
<SCRIPT src="../Include/sinaflashfp.js" type=text/javascript></SCRIPT>

<%Call OpenConn
dim action,dname,dimgurl,adlink,parameter1,parameter2,imgurl,imgurl1,imgurl2,imgurl3,imgurl4,imgurl5,imgurl6,imgurl7,imgurl8,imgurl9,imgurl10,imgurl11,imgurl12,imgurl13,imgurl14,adlink1,adlink2,adlink3,adlink4,adlink5,adlink6,adlink7,adlink8,adlink9,adlink10,adlink11,adlink12,adlink13,adlink14,area_width,area_height,pic_width,pic_height,ad_num,flip_time,pause_time,wait_time,area_width2,area_height2,pic_width2,pic_height2,ad_num2,flip_time2,pause_time2,wait_time2,hspace,FileNameSh,FileNameFp
action=request.querystring("action")
select case action
case "add" 
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from DNJY_adfp",conn,1,3
rs.AddNew
rs("imgurl")=dimgurl
rs("adlink")=trim(request("adlink"))
rs.Update
rs.Close
set rs=nothing

case "del"
conn.execute ("delete from DNJY_adfp where id="&id)
conn.close   
set conn=nothing 
response.Redirect "adfp.asp"

case "edit"
imgurl1=request("imgurl1")
imgurl2=request("imgurl2")
imgurl3=request("imgurl3")
imgurl4=request("imgurl4")
imgurl5=request("imgurl5")
imgurl6=request("imgurl6")
imgurl7=request("imgurl7")
imgurl8=request("imgurl8")
imgurl9=request("imgurl9")
imgurl10=request("imgurl10")
imgurl11=request("imgurl11")
imgurl12=request("imgurl12")
imgurl13=request("imgurl13")
imgurl14=request("imgurl14")
imgurl=imgurl1+"|"+imgurl2+"|"+imgurl3+"|"+imgurl4+"|"+imgurl5+"|"+imgurl6+"|"+imgurl7+"|"+imgurl8+"|"+imgurl9+"|"+imgurl10+"|"+imgurl11+"|"+imgurl12+"|"+imgurl13+"|"+imgurl14

adlink1=request("adlink1")
adlink2=request("adlink2")
adlink3=request("adlink3")
adlink4=request("adlink4")
adlink5=request("adlink5")
adlink6=request("adlink6")
adlink7=request("adlink7")
adlink8=request("adlink8")
adlink9=request("adlink9")
adlink10=request("adlink10")
adlink11=request("adlink11")
adlink12=request("adlink12")
adlink13=request("adlink13")
adlink14=request("adlink14")
adlink=adlink1+"|"+adlink2+"|"+adlink3+"|"+adlink4+"|"+adlink5+"|"+adlink6+"|"+adlink7+"|"+adlink8+"|"+adlink9+"|"+adlink10+"|"+adlink11+"|"+adlink12+"|"+adlink13+"|"+adlink14

parameter1=request("area_width")+"|"+request("area_height")+"|"+request("pic_width")+"|"+request("pic_height")+"|"+request("ad_num")+"|"+request("flip_time")+"|"+request("pause_time")+"|"+request("wait_time")
parameter2=request("area_width2")+"|"+request("area_height2")+"|"+request("pic_width2")+"|"+request("pic_height2")+"|"+request("hspace")+"|"+request("ad_num2")+"|"+request("flip_time2")+"|"+request("pause_time2")+"|"+request("wait_time2")

set rs = server.createobject("adodb.recordset")
sql="select top 1 * from DNJY_adfp"
rs.open sql,conn,1,3
rs("imgurl")=imgurl
rs("adlink")=adlink
rs("parameter1")=parameter1
rs("parameter2")=parameter2
rs.Update
rs.Close
set rs=Nothing

Dim fp_pics,fp_links,JsCode,JsCodefp
set rs=server.CreateObject("adodb.recordset")
rs.Open "select top 1 * from DNJY_adfp",conn,1,1
if rs.EOF and rs.BOF then
response.write"<tr bgcolor=#FFFFFF><td colspan='4'><p align='center'><font color='red'>无广告！</font></td></tr></table><br>"
else
fp_pics=fp_pics+"/"&strInstallDir+rs("imgurl")+"§"
fp_links=fp_links+rs("ADLink")+"§"
fp_pics=Replace(rs("imgurl"),"|","§")
fp_links=Replace(rs("ADLink"),"|","§")
dimgurl=split(rs("imgurl"),"|")
adlink=split(rs("adlink"),"|")
parameter1=split(rs("parameter1"),"|")
parameter2=split(rs("parameter2"),"|")
end If

'生成方式一代码
JsCode="<div id=FP_L style=""WIDTH: 180; TEXT-ALIGN: center""></div>" & vbCrLf & _
"<script type=text/javascript>" & vbCrLf & _
"<!--" & vbCrLf & _
"var fp_pics="""",fp_links="""";" & vbCrLf & _
"fp_pics=""§"&fp_pics&"""" & vbCrLf & _
"fp_links=""§"&fp_links&"""" & vbCrLf & _
"fp_pics=fp_pics.substring(1);" & vbCrLf & _
"fp_links=fp_links.substring(1);" & vbCrLf & _
"var def_pic = ""/"&strInstallDir&"UploadFiles/adfp/1.JPG""; //默认图片地址" & vbCrLf & _
"var def_link = escape(""http://www.ip126.com/""); //默认图片链接" & vbCrLf & _
"var FP = new sinaFlash(""/"&strInstallDir&"img/flipper.swf"", ""FP_L_swf"", "&parameter1(0)&", "&parameter1(1)&", ""7"", ""#FFFFFF"", false, ""High"");"&vbCrLf & _
"FP.addParam(""menu"", ""false"");" & vbCrLf & _
"FP.addParam(""wmode"", ""transparent"");//transparent为透明opaque为要底色" & vbCrLf & _
"FP.addVariable(""pic_width"", """&parameter1(2)&"""); //图片宽" & vbCrLf & _
"FP.addVariable(""pic_height"", """&parameter1(3)&"""); //图片高" & vbCrLf & _
"FP.addVariable(""ad_num"", """&parameter1(4)&"""); //翻牌数量" & vbCrLf & _
"FP.addVariable(""flip_time"", """&parameter1(5)&"""); //翻牌速度" & vbCrLf & _
"FP.addVariable(""pause_time"", """&parameter1(6)&"""); //间隔时间" & vbCrLf & _
"FP.addVariable(""wait_time"", """&parameter1(7)&"""); //等待时间" & vbCrLf & _
"FP.addVariable(""pics"", fp_pics); //广告图片地址" & vbCrLf & _
"FP.addVariable(""urls"", fp_links); //广告链接地址" & vbCrLf & _
"FP.addVariable(""def_pic"", def_pic); //默认图片地址" & vbCrLf & _
"FP.addVariable(""def_link"", def_link); //默认链接地址" & vbCrLf & _
"FP.write(""FP_L"");" & vbCrLf & _
"//-->" & vbCrLf & _
"</script>" & vbCrLf & _
""

JsCode=Html2Js(JsCode)
JsCode="document.write('"&JsCode&"')"
JsCode = "<!--" & vbCrLf & JsCode & vbCrLf &"//-->" 
FileNameSh = Server.MapPath("../UploadFiles/adfp/sinaflash.js")
Call WriteToFile(FileNameSh,JsCode,"gb2312")'用函数方式


'生成方式二代码＝＝＝＝＝＝
JsCodefp="<DIV id=flipper_div align=center></DIV>" & vbCrLf & _
"<SCRIPT type=text/javascript>" & vbCrLf & _
"<!--" & vbCrLf & _
"var fp_data = new Array();" & vbCrLf & _
"fp_data.push(["""&dimgurl(0)&""","""&adlink(0)&"""]);" & vbCrLf & _
"fp_data.push(["""&dimgurl(1)&""","""&adlink(1)&"""]);" & vbCrLf & _
"fp_data.push(["""&dimgurl(2)&""","""&adlink(2)&"""]);" & vbCrLf & _
"fp_data.push(["""&dimgurl(3)&""","""&adlink(3)&"""]);" & vbCrLf & _
"fp_data.push(["""&dimgurl(4)&""","""&adlink(4)&"""]);" & vbCrLf & _
"fp_data.push(["""&dimgurl(5)&""","""&adlink(5)&"""]);" & vbCrLf & _
"fp_data.push(["""&dimgurl(6)&""","""&adlink(6)&"""]);" & vbCrLf & _
"fp_data.push(["""&dimgurl(7)&""","""&adlink(7)&"""]);" & vbCrLf & _
"fp_data.push(["""&dimgurl(8)&""","""&adlink(8)&"""]);" & vbCrLf & _
"fp_data.push(["""&dimgurl(9)&""","""&adlink(9)&"""]);" & vbCrLf & _
"fp_data.push(["""&dimgurl(10)&""","""&adlink(10)&"""]);" & vbCrLf & _
"fp_data.push(["""&dimgurl(11)&""","""&adlink(11)&"""]);" & vbCrLf & _
"fp_data.push(["""&dimgurl(12)&""","""&adlink(12)&"""]);" & vbCrLf & _
"fp_data.push(["""&dimgurl(13)&""","""&adlink(13)&"""]);" & vbCrLf & _

"var fp_pics="""",fp_links="""";" & vbCrLf & _
"var fp_lens = fp_data.length;" & vbCrLf & _
"for(var i=0; i<fp_lens; i++){" & vbCrLf & _
	"fp_pics += fp_data[i][0];" & vbCrLf & _
	"fp_links += escape(fp_data[i][1]);" & vbCrLf & _
	"if(i%2==0 && i!=fp_lens-1){" & vbCrLf & _
		"fp_pics += ""§"";" & vbCrLf & _
		"fp_links += ""§"";" & vbCrLf & _
	"}else if(i%2==1 && i!=fp_lens-1){" & vbCrLf & _
		"fp_pics += ""§_§"";" & vbCrLf & _
		"fp_links += ""§_§"";" & vbCrLf & _
	"}" & vbCrLf & _
"}" & vbCrLf & _
"var oswf = new sinaFlash(""/"&strInstallDir&"img/flipper_v2.swf"", ""flipper"", "&parameter2(0)&", "&parameter2(1)&", ""7"", ""#FFFFFF"", false, ""High"");" & vbCrLf & _
"oswf.addParam(""allowScriptAccess"", ""always"");" & vbCrLf & _
"oswf.addParam(""menu"", ""false"");" & vbCrLf & _
"oswf.addParam(""wmode"", ""transparent"");//transparent为透明opaque为要底色" & vbCrLf & _
"oswf.addParam(""scale"", ""noscale"");" & vbCrLf & _
"oswf.addVariable(""pic_width"", """&parameter2(2)&""");//图片宽" & vbCrLf & _
"oswf.addVariable(""pic_height"", """&parameter2(3)&""");//图片宽" & vbCrLf & _
"oswf.addVariable(""hspace"", """&parameter2(4)&""");//图片间距" & vbCrLf & _
"oswf.addVariable(""colnum"", """&parameter2(5)&""");//翻牌数量" & vbCrLf & _
"oswf.addVariable(""flip_time"", """&parameter2(6)&""");//翻牌速度" & vbCrLf & _
"oswf.addVariable(""pause_time"", """&parameter2(7)&""");//间隔时间" & vbCrLf & _
"oswf.addVariable(""vspace"", """&parameter2(8)&""");//等待时间" & vbCrLf & _
"oswf.addVariable(""pics"", fp_pics);//广告图片地址" & vbCrLf & _
"oswf.addVariable(""urls"", fp_links);//广告链接地址" & vbCrLf & _
"oswf.addVariable(""rand"", ""0"");" & vbCrLf & _
"oswf.write(""flipper_div"");" & vbCrLf & _
"//-->" & vbCrLf & _
"</SCRIPT>" & vbCrLf & _
""
JsCodefp=Html2Js(JsCodefp)
JsCodefp="document.write('"&JsCodefp&"')"
JsCodefp = "<!--" & vbCrLf & JsCodefp & vbCrLf &"//-->" 
FileNameFp = Server.MapPath("../UploadFiles/adfp/sinaflashfp.js")
Call WriteToFile(FileNameFp,JsCodefp,"gb2312")'用函数方式
rs.Close
set rs=Nothing
response.Write "<script language=javascript>alert('已成功保存并生成JS代码！');location.replace('adfp.asp');</script>"
end select
%>
<html>
<head>
<title>翻牌广告管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="style.css" type="text/css">
<style type="text/css">
<!--
body {
	background-color: #E7EEF5;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style></head>
<body>
<table width="98%" border="1" align="center" cellpadding="3" cellspacing="0" bordercolorlight="#335078" bordercolordark="#FFFFFF" bgcolor="#C5D5E4"  style="font-size:12px; letter-spacing:1px;">
  <tr> 
    <td height="20" bgcolor="#C5D5E4" align="center"><span style="color: #FF0000"><strong><font style="font-size:14px">翻牌广告管理（注意图片类型必须为jpg，建议130*100像素，图片地址和链接地址不能带有字符“|”)</font></strong></span></td>
  </tr>
  <tr> 
    <td bgcolor="#EAEEF4"> <br>
	<table width="98%" border="1" align="center" cellpadding="3" cellspacing="0" bordercolorlight="#335078" bordercolordark="#FFFFFF" bgcolor="#C5D5E4"  style="font-size:12px; letter-spacing:1px;">
        <tr align="center" bgcolor="#FFFFFF" height="20"> 
          <td width="30" bgcolor="#D9E4EE">编号</td>
          <td bgcolor="#D9E4EE">广告图片地址</td>
		  <td bgcolor="#D9E4EE">图片预览</td>
          <td bgcolor="#D9E4EE">广告链接地址</td>         
        </tr>
        <%set rs=server.CreateObject("adodb.recordset")
		  rs.Open "select top 1 * from DNJY_adfp",conn,1,1		  
		  if rs.EOF and rs.BOF then
          response.write"<tr bgcolor=#FFFFFF><td colspan='4'><p align='center'><font color='red'>无此广告！</font></td></tr></table><br>"		  
		  else
imgurl=rs("imgurl")
imgurl=split(imgurl,"|")
imgurl1=imgurl(0)
imgurl2=imgurl(1)
imgurl3=imgurl(2)
imgurl4=imgurl(3)
imgurl5=imgurl(4)
imgurl6=imgurl(5)
imgurl7=imgurl(6)
imgurl8=imgurl(7)
imgurl9=imgurl(8)
imgurl10=imgurl(9)
imgurl11=imgurl(10)
imgurl12=imgurl(11)
imgurl13=imgurl(12)
imgurl14=imgurl(13)

adlink=rs("adlink")
adlink=split(adlink,"|")
adlink1=adlink(0)
adlink2=adlink(1)
adlink3=adlink(2)
adlink4=adlink(3)
adlink5=adlink(4)
adlink6=adlink(5)
adlink7=adlink(6)
adlink8=adlink(7)
adlink9=adlink(8)
adlink10=adlink(9)
adlink11=adlink(10)
adlink12=adlink(11)
adlink13=adlink(12)
adlink14=adlink(13)

parameter1=rs("parameter1")
parameter1=split(parameter1,"|")
area_width=parameter1(0)
area_height=parameter1(1)
pic_width=parameter1(2)
pic_height=parameter1(3)
ad_num=parameter1(4)
flip_time=parameter1(5)
pause_time=parameter1(6)
wait_time=parameter1(7)


parameter2=rs("parameter2")
parameter2=split(parameter2,"|")
area_width2=parameter2(0)
area_height2=parameter2(1)
pic_width2=parameter2(2)
pic_height2=parameter2(3)
hspace=parameter2(4)
ad_num2=parameter2(5)
flip_time2=parameter2(6)
pause_time2=parameter2(7)
wait_time2=parameter2(8)
end If%>
        <form name="form" method="post" action="?action=edit">
          <tr bgcolor="#FFFFFF" align="center">
		  <td bgcolor="#F4F7F9">1</td>		  
            <td bgcolor="#F4F7F9"><input name="imgurl1" type="text" id="imgurl1" value="<%=imgurl1%>" size="40"> <INPUT TYPE="button" value="上传图片1"  onClick="window.open('../ads/DNJY_upload_ad.asp?ttup=adfp&dform=form&fupname=1&frmname=imgurl1','blank_','scrollbars=yes,resizable=no,top=40,left=150,width=500,height=150')"></td>
			<td bgcolor="#F4F7F9"><img src=../<%=imgurl1%> width='130' height='100'></td>
            <td bgcolor="#F4F7F9"><input name="adlink1" type="text" id="adlink1" value="<%=adlink1%>" size="40"></td>
          </tr>
          <tr bgcolor="#FFFFFF" align="center">
		  <td bgcolor="#F4F7F9">2</td>		  
            <td bgcolor="#F4F7F9"><input name="imgurl2" type="text" id="imgurl2" value="<%=imgurl2%>" size="40"> <INPUT TYPE="button" value="上传图片2"  onClick="window.open('../ads/DNJY_upload_ad.asp?ttup=adfp&dform=form&fupname=2&frmname=imgurl2','blank_','scrollbars=yes,resizable=no,top=40,left=150,width=500,height=150')"></td>
			<td bgcolor="#F4F7F9"><img src=../<%=imgurl2%> width='130' height='100'></td>
            <td bgcolor="#F4F7F9"><input name="adlink2" type="text" id="adlink2" value="<%=adlink2%>" size="40"></td>
          </tr>
          <tr bgcolor="#FFFFFF" align="center">
		  <td bgcolor="#F4F7F9">3</td>		  
            <td bgcolor="#F4F7F9"><input name="imgurl3" type="text" id="imgurl3" value="<%=imgurl3%>" size="40"> <INPUT TYPE="button" value="上传图片3"  onClick="window.open('../ads/DNJY_upload_ad.asp?ttup=adfp&dform=form&fupname=3&frmname=imgurl3','blank_','scrollbars=yes,resizable=no,top=40,left=150,width=500,height=150')"></td>
			<td bgcolor="#F4F7F9"><img src=../<%=imgurl3%> width='130' height='100'></td>
            <td bgcolor="#F4F7F9"><input name="adlink3" type="text" id="adlink3" value="<%=adlink3%>" size="40"></td>
          </tr>
          <tr bgcolor="#FFFFFF" align="center">
		  <td bgcolor="#F4F7F9">4</td>		  
            <td bgcolor="#F4F7F9"><input name="imgurl4" type="text" id="imgurl4" value="<%=imgurl4%>" size="40"> <INPUT TYPE="button" value="上传图片4"  onClick="window.open('../ads/DNJY_upload_ad.asp?ttup=adfp&dform=form&fupname=4&frmname=imgurl4','blank_','scrollbars=yes,resizable=no,top=40,left=150,width=500,height=150')"></td>
			<td bgcolor="#F4F7F9"><img src=../<%=imgurl4%> width='130' height='100'></td>
            <td bgcolor="#F4F7F9"><input name="adlink4" type="text" id="adlink4" value="<%=adlink4%>" size="40"></td>
          </tr>
          <tr bgcolor="#FFFFFF" align="center">
		  <td bgcolor="#F4F7F9">5</td>		  
            <td bgcolor="#F4F7F9"><input name="imgurl5" type="text" id="imgurl5" value="<%=imgurl5%>" size="40"> <INPUT TYPE="button" value="上传图片5"  onClick="window.open('../ads/DNJY_upload_ad.asp?ttup=adfp&dform=form&fupname=5&frmname=imgurl5','blank_','scrollbars=yes,resizable=no,top=40,left=150,width=500,height=150')"></td>
			<td bgcolor="#F4F7F9"><img src=../<%=imgurl5%> width='130' height='100'></td>
            <td bgcolor="#F4F7F9"><input name="adlink5" type="text" id="adlink5" value="<%=adlink5%>" size="40"></td>
          </tr> 
          <tr bgcolor="#FFFFFF" align="center">
		  <td bgcolor="#F4F7F9">6</td>		  
            <td bgcolor="#F4F7F9"><input name="imgurl6" type="text" id="imgurl6" value="<%=imgurl6%>" size="40"> <INPUT TYPE="button" value="上传图片6"  onClick="window.open('../ads/DNJY_upload_ad.asp?ttup=adfp&dform=form&fupname=6&frmname=imgurl6','blank_','scrollbars=yes,resizable=no,top=40,left=150,width=500,height=150')"></td>
			<td bgcolor="#F4F7F9"><img src=../<%=imgurl6%> width='130' height='100'></td>
            <td bgcolor="#F4F7F9"><input name="adlink6" type="text" id="adlink6" value="<%=adlink6%>" size="40"></td>
          </tr>
          <tr bgcolor="#FFFFFF" align="center">
		  <td bgcolor="#F4F7F9">7</td>		  
            <td bgcolor="#F4F7F9"><input name="imgurl7" type="text" id="imgurl7" value="<%=imgurl7%>" size="40"> <INPUT TYPE="button" value="上传图片7"  onClick="window.open('../ads/DNJY_upload_ad.asp?ttup=adfp&dform=form&fupname=7&frmname=imgurl7','blank_','scrollbars=yes,resizable=no,top=40,left=150,width=500,height=150')"></td>
			<td bgcolor="#F4F7F9"><img src=../<%=imgurl7%> width='130' height='100'></td>
            <td bgcolor="#F4F7F9"><input name="adlink7" type="text" id="adlink7" value="<%=adlink7%>" size="40"></td>
          </tr>
          <tr bgcolor="#FFFFFF" align="center">
		  <td bgcolor="#F4F7F9">8</td>		  
            <td bgcolor="#F4F7F9"><input name="imgurl8" type="text" id="imgurl8" value="<%=imgurl8%>" size="40"> <INPUT TYPE="button" value="上传图片8"  onClick="window.open('../ads/DNJY_upload_ad.asp?ttup=adfp&dform=form&fupname=8&frmname=imgurl8','blank_','scrollbars=yes,resizable=no,top=40,left=150,width=500,height=150')"></td>
			<td bgcolor="#F4F7F9"><img src=../<%=imgurl8%> width='130' height='100'></td>
            <td bgcolor="#F4F7F9"><input name="adlink8" type="text" id="adlink8" value="<%=adlink8%>" size="40"></td>
          </tr> 
          <tr bgcolor="#FFFFFF" align="center">
		  <td bgcolor="#F4F7F9">9</td>		  
            <td bgcolor="#F4F7F9"><input name="imgurl9" type="text" id="imgurl9" value="<%=imgurl9%>" size="40"> <INPUT TYPE="button" value="上传图片9"  onClick="window.open('../ads/DNJY_upload_ad.asp?ttup=adfp&dform=form&fupname=9&frmname=imgurl9','blank_','scrollbars=yes,resizable=no,top=40,left=150,width=500,height=150')"></td>
			<td bgcolor="#F4F7F9"><img src=../<%=imgurl9%> width='130' height='100'></td>
            <td bgcolor="#F4F7F9"><input name="adlink9" type="text" id="adlink9" value="<%=adlink9%>" size="40"></td>
          </tr>
          <tr bgcolor="#FFFFFF" align="center">
		  <td bgcolor="#F4F7F9">10</td>		  
            <td bgcolor="#F4F7F9"><input name="imgurl10" type="text" id="imgurl10" value="<%=imgurl10%>" size="40"> <INPUT TYPE="button" value="上传图片10"  onClick="window.open('../ads/DNJY_upload_ad.asp?ttup=adfp&dform=form&fupname=10&frmname=imgurl10','blank_','scrollbars=yes,resizable=no,top=40,left=150,width=500,height=150')"></td>
			<td bgcolor="#F4F7F9"><img src=../<%=imgurl10%> width='130' height='100'></td>
            <td bgcolor="#F4F7F9"><input name="adlink10" type="text" id="adlink10" value="<%=adlink10%>" size="40"></td>
          </tr>
          <tr bgcolor="#FFFFFF" align="center">
		  <td bgcolor="#F4F7F9">11</td>		  
            <td bgcolor="#F4F7F9"><input name="imgurl11" type="text" id="imgurl11" value="<%=imgurl11%>" size="40"> <INPUT TYPE="button" value="上传图片11"  onClick="window.open('../ads/DNJY_upload_ad.asp?ttup=adfp&dform=form&fupname=11&frmname=imgurl11','blank_','scrollbars=yes,resizable=no,top=40,left=150,width=500,height=150')"></td>
			<td bgcolor="#F4F7F9"><img src=../<%=imgurl11%> width='130' height='100'></td>
            <td bgcolor="#F4F7F9"><input name="adlink11" type="text" id="adlink11" value="<%=adlink11%>" size="40"></td>
          </tr> 
          <tr bgcolor="#FFFFFF" align="center">
		  <td bgcolor="#F4F7F9">12</td>		  
            <td bgcolor="#F4F7F9"><input name="imgurl12" type="text" id="imgurl12" value="<%=imgurl12%>" size="40"> <INPUT TYPE="button" value="上传图片12"  onClick="window.open('../ads/DNJY_upload_ad.asp?ttup=adfp&dform=form&fupname=12&frmname=imgurl12','blank_','scrollbars=yes,resizable=no,top=40,left=150,width=500,height=150')"></td>
			<td bgcolor="#F4F7F9"><img src=../<%=imgurl12%> width='130' height='100'></td>
            <td bgcolor="#F4F7F9"><input name="adlink12" type="text" id="adlink12" value="<%=adlink12%>" size="40"></td>
          </tr>
          <tr bgcolor="#FFFFFF" align="center">
		  <td bgcolor="#F4F7F9">13</td>		  
            <td bgcolor="#F4F7F9"><input name="imgurl13" type="text" id="imgurl13" value="<%=imgurl13%>" size="40"> <INPUT TYPE="button" value="上传图片13"  onClick="window.open('../ads/DNJY_upload_ad.asp?ttup=adfp&dform=form&fupname=13&frmname=imgurl13','blank_','scrollbars=yes,resizable=no,top=40,left=150,width=500,height=150')"></td>
			<td bgcolor="#F4F7F9"><img src=../<%=imgurl13%> width='130' height='100'></td>
            <td bgcolor="#F4F7F9"><input name="adlink13" type="text" id="adlink13" value="<%=adlink13%>" size="40"></td>
          </tr>
          <tr bgcolor="#FFFFFF" align="center">
		  <td bgcolor="#F4F7F9">14</td>		  
            <td bgcolor="#F4F7F9"><input name="imgurl14" type="text" id="imgurl14" value="<%=imgurl14%>" size="40"> <INPUT TYPE="button" value="上传图片14"  onClick="window.open('../ads/DNJY_upload_ad.asp?ttup=adfp&dform=form&fupname=14&frmname=imgurl14','blank_','scrollbars=yes,resizable=no,top=40,left=150,width=500,height=150')"></td>
			<td bgcolor="#F4F7F9"><img src=../<%=imgurl14%> width='130' height='100'></td>
            <td bgcolor="#F4F7F9"><input name="adlink14" type="text" id="adlink14" value="<%=adlink14%>" size="40"></td>
          </tr>
          <tr bgcolor="#FFFFFF" align="left">		  
            <td bgcolor="#F4F7F9" colspan="2"><b>方式一参数</b><br>
区域宽度：<input name="area_width" type="text" value="<%=area_width%>" size="5">
区域高度：<input name="area_height" type="text" value="<%=area_height%>" size="5">
图片宽度：<input name="pic_width" type="text" value="<%=pic_width%>" size="5">
图片高度：<input name="pic_height" type="text" value="<%=pic_height%>" size="5">
<br>
翻牌数量：<input name="ad_num" type="text" value="<%=ad_num%>" size="5">
翻牌速度：<input name="flip_time" type="text" value="<%=flip_time%>" size="5">
间隔时间：<input name="pause_time" type="text" value="<%=pause_time%>" size="5">
等待时间：<input name="wait_time" type="text" value="<%=wait_time%>" size="5">
</td>
            <td bgcolor="#F4F7F9" colspan="2"><b>方式二参数</b><br>

区域宽度：<input name="area_width2" type="text" value="<%=area_width2%>" size="5">
区域高度：<input name="area_height2" type="text" value="<%=area_height2%>" size="5">
图片宽度：<input name="pic_width2" type="text" value="<%=pic_width2%>" size="5">
图片高度：<input name="pic_height2" type="text" value="<%=pic_height2%>" size="5">
图片间距：<input name="hspace" type="text" value="<%=hspace%>" size="5"><br>
翻牌数量：<input name="ad_num2" type="text" value="<%=ad_num2%>" size="5">
翻牌速度：<input name="flip_time2" type="text" value="<%=flip_time2%>" size="5">
间隔时间：<input name="pause_time2" type="text" value="<%=pause_time2%>" size="5">
等待时间：<input name="wait_time2" type="text" value="<%=wait_time2%>" size="5">

</td>
          </tr>               
      </table>
<table align="center">
          <tr bgcolor="#FFFFFF" >            
            <td bgcolor="#F4F7F9">			
			<input type="submit" name="Submit" value="保存并生成代码">			
            </td>
          </tr>
</TABLE></form>	<br></td>
  </tr>
</table>
<br>

<%CloseRs(rs)%>
<TABLE width="98%" border="1" align="center" cellpadding="3" cellspacing="0" bordercolorlight="#335078" bordercolordark="#FFFFFF" bgcolor="#C5D5E4"  style="font-size:12px; letter-spacing:1px;">
<button onClick="document.location.reload()">刷新看效果</button>
<TR>
	<TD>方式一预览</TD>
	<TD><!--翻牌方式一开始-->
<script src="../UploadFiles/adfp/sinaflash.js"></script>
</TD>
</TR>
<TR>
	<TD>方式二预览</TD>
	<TD><!--翻牌方式二开始-->
<script src="../UploadFiles/adfp/sinaflashfp.js"></script>
</TD>
</TR>
</TABLE>
<table width="98%" border="1" align="center" cellpadding="3" cellspacing="0" bordercolorlight="#335078" bordercolordark="#FFFFFF" bgcolor="#C5D5E4"  style="font-size:12px; letter-spacing:1px;">
  <tr> 
    <td height="20" bgcolor="#C5D5E4" align="center"><span style="color: #FF0000"><strong><font style="font-size:14px">翻 牌 广 告 代 码 生 成 及 调 用 方 式</font></strong></span></td>
  </tr>
  <tr> 
    <td bgcolor="#EAEEF4">
<TABLE>
<TR>
	<TD>   
	<TABLE>
	<textarea name="S1" cols="50" rows="6" class="input2">
<!--翻牌方式一广告代码开始-->
<script src="UploadFiles/adfp/sinaflash.js"></script>
<!--广告代码结束-->
      </textarea>
	<textarea name="S1" cols="50" rows="4" class="input2">注意：此方式广告同一页面只能放置一处，且前面要包含文件<SCRIPT src="Include/sinaflash.js" type=text/javascript></SCRIPT>
      </textarea>

		  </TABLE>
        </TD>
<TD>&nbsp;</TD>
	<TD> <TABLE> 
	<textarea name="S1" cols="50" rows="6" class="input2">
<!--翻牌方式二广告代码开始-->
<script src="UploadFiles/adfp/sinaflashfp.js"></script>
<!--广告代码结束-->
      </textarea>
	<textarea name="S1" cols="50" rows="4" class="input2">注意：此方式广告同一页面只能放置一处，且前面要包含文件<SCRIPT src="Include/sinaflashfp.js" type=text/javascript></SCRIPT>
      </textarea>

		</TABLE></TD>
</TR>
</TABLE>

		</td>
  </tr>
</table>
</body> 
</html>
 <%Call CloseDB(conn)%>