<!--#include file="Conn.asp"--><%Checklogin("系统管理")%><!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理区域</title>
<link rel="stylesheet" href="css/common.css" type="text/css" />
<script language="javascript" src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/js.js"></script>
<style>
#jmbox{
overflow:auto;zoom:1;margin-top:5px;
}
.jmlabel{
float:left;
width:70px;text-align:right;
height:22px;line-height:22px;
font-size:14px;font-weight:bold;
color:#0099CC;padding-right:4px
}
.txt1{float:left;width:350px;}
.txturl{width:600px;color:blue}
.txttitle{width:600px}
.txtbox{width:820px;height:28px}
.w726{
width:726px;
}
th span{font-size:12px;display:block;color:#666;font-weight:normal}
th span a{color:red}
</style>
</head>

<body>
<div id="man_zone">
<%

Set Rs = Server.CreateObject("ADODB.RecordSet")

Act = Request.QueryString("act")
If act = "save" Then

index_ad1 = Request.Form("index_ad1")
index_ad1title = Request.Form("index_ad1title")
index_ad1url = Request.Form("index_ad1url")
index_ad2 = Request.Form("index_ad2")
index_ad2title = Request.Form("index_ad2title")
index_ad2url = Request.Form("index_ad2url")
index_ad3 = Request.Form("index_ad3")
index_ad3title = Request.Form("index_ad3title")
index_ad3url = Request.Form("index_ad3url")


indexc_ad1 = Request.Form("indexc_ad1")
indexc_ad1title = Request.Form("indexc_ad1title")
indexc_ad1url = Request.Form("indexc_ad1url")
indexc_ad2 = Request.Form("indexc_ad2")
indexc_ad2title = Request.Form("indexc_ad2title")
indexc_ad2url = Request.Form("indexc_ad2url")
indexc_ad3 = Request.Form("indexc_ad3")
indexc_ad3title = Request.Form("indexc_ad3title")
indexc_ad3url = Request.Form("indexc_ad3url")

page_ad1 = Request.Form("page_ad1")
page_ad1title = Request.Form("page_ad1title")
page_ad1url = Request.Form("page_ad1url")

page_ad2 = Request.Form("page_ad2")
page_ad2title = Request.Form("page_ad2title")
page_ad2url = Request.Form("page_ad2url")


index_ad = Request.Form("index_ad")


dbc = Request.Form("dbc")


Rs.Open "Select * From gg Where id=1",Conn,1,3
If Not Rs.Bof And Not Rs.Eof Then
	Rs("index_ad1")=index_ad1
	Rs("index_ad1url")=index_ad1url
	Rs("index_ad2")=index_ad2
	Rs("index_ad2url")=index_ad2url
	Rs("index_ad3")=index_ad3
	Rs("index_ad3url")=index_ad3url

	Rs("indexc_ad1")=indexc_ad1
	Rs("indexc_ad1url")=indexc_ad1url
	Rs("indexc_ad2")=indexc_ad2
	Rs("indexc_ad2url")=indexc_ad2url
	Rs("indexc_ad3")=indexc_ad3
	Rs("indexc_ad3url")=indexc_ad3url

	Rs("page_ad1")=page_ad1
	Rs("page_ad1url")=page_ad1url
	Rs("page_ad2")=page_ad2
	Rs("page_ad2url")=page_ad2url
	Rs("index_ad1title")=index_ad1title
	Rs("index_ad2title")=index_ad2title
	Rs("index_ad3title")=index_ad3title

	Rs("indexc_ad1title")=indexc_ad1title
	Rs("indexc_ad2title")=indexc_ad2title
	Rs("indexc_ad3title")=indexc_ad3title
	Rs("page_ad1title")=page_ad1title
	Rs("page_ad2title")=page_ad2title

	Rs("index_ad")=index_ad

	Rs("dbc")=dbc
Else
	Rs.AddNew
	
	Rs("index_ad1")=index_ad1
	Rs("index_ad1url")=index_ad1url
	Rs("index_ad2")=index_ad2
	Rs("index_ad2url")=index_ad2url
	Rs("index_ad3")=index_ad3
	Rs("index_ad3url")=index_ad3url

	Rs("indexc_ad1")=indexc_ad1
	Rs("indexc_ad1url")=indexc_ad1url
	Rs("indexc_ad2")=indexc_ad2
	Rs("indexc_ad2url")=indexc_ad2url
	Rs("indexc_ad3")=indexc_ad3
	Rs("indexc_ad3url")=indexc_ad3url

	Rs("page_ad1")=page_ad1
	Rs("page_ad1url")=page_ad1url
	Rs("page_ad2")=page_ad2
	Rs("page_ad2url")=page_ad2url
	Rs("index_ad1title")=index_ad1title
	Rs("index_ad2title")=index_ad2title
	Rs("index_ad3title")=index_ad3title

	Rs("indexc_ad1title")=indexc_ad1title
	Rs("indexc_ad2title")=indexc_ad2title
	Rs("indexc_ad3title")=indexc_ad3title

	Rs("page_ad1title")=page_ad1title
	Rs("page_ad2title")=page_ad2title
	Rs("index_ad")=index_ad
	Rs("dbc")=dbc
End If
Rs.Update:Rs.Close:Set Rs=Nothing:Conn.Close:Set Conn=Nothing
Response.Write "<script>alert('更新成功');location.href='gg.asp'</script>"
Response.End
End If 'end save

Rs.Open "Select * From gg Where id=1",Conn,1,1
If Not Rs.Bof And Not Rs.Eof Then
	index_ad1=Rs("index_ad1")
	index_ad1url=Rs("index_ad1url")
	index_ad2=Rs("index_ad2")
	index_ad2url=Rs("index_ad2url")
	index_ad3=Rs("index_ad3")
	index_ad3url=Rs("index_ad3url")


	indexc_ad1=Rs("indexc_ad1")
	indexc_ad1url=Rs("indexc_ad1url")
	indexc_ad2=Rs("indexc_ad2")
	indexc_ad2url=Rs("indexc_ad2url")
	indexc_ad3=Rs("indexc_ad3")
	indexc_ad3url=Rs("indexc_ad3url")

	page_ad1=Rs("page_ad1")
	page_ad1url=Rs("page_ad1url")

	page_ad2=Rs("page_ad2")
	page_ad2url=Rs("page_ad2url")

	index_ad1title=Rs("index_ad1title")
	index_ad2title=Rs("index_ad2title")
	index_ad3title=Rs("index_ad3title")


	indexc_ad1title=Rs("indexc_ad1title")
	indexc_ad2title=Rs("indexc_ad2title")
	indexc_ad3title=Rs("indexc_ad3title")


	page_ad1title=Rs("page_ad1title")
	page_ad2title=Rs("page_ad2title")

	index_ad = Rs("index_ad")
	dbc = Rs("dbc")
End If
Rs.Close:Set Rs=Nothing:Conn.Close:Set Conn=Nothing

%>
	<form name="form1" method="post" action="?act=save">
	<table width="100%" border="0" cellpadding="3" cellspacing="1" class="table1">
		<tbody>
			<tr>
				<th width="8%">首页右上图标</th>
				<td>
					<table width="100%" border="0" cellpadding="3" cellspacing="1" class="table1">
						<tbody>
							<tr>
								<th width="15%"><span>小于（160*140）</span></th>
								<td><input type="text" id="index_ad" name="index_ad" value="<%=index_ad%>" class="txt1" /><iframe src="uploadad.asp?id=index_ad" frameborder="0" scrolling="no" style="width:320px;height:22px;float:left;margin-left:10px;"></iframe></td>
							</tr>
						</tbody>
					</table>
				</td>
			</tr>
			<tr>
				<th width="8%">首页广告<br />（一）</th>
				<td>
					<table width="100%" border="0" cellpadding="3" cellspacing="1" class="table1">
						<tbody>
							<tr>
								<th width="15%"><span>标题</span></th>
								<td><input type="text" id="index_ad1title" name="index_ad1title" value="<%=index_ad1title%>" class="txt1 txttitle" /></td>
							</tr>
							<tr>
								<th width="15%"><span>URL</span></th>
								<td><input type="text" id="index_ad1url" name="index_ad1url" value="<%=index_ad1url%>" class="txt1 txturl" /></td>
							</tr>
							<tr>
								<th width="15%"><span>大图（1170*400）</span></th>
								<td><input type="text" id="index_ad1" name="index_ad1" value="<%=index_ad1%>" class="txt1" /><iframe src="uploadad.asp?id=index_ad1" frameborder="0" scrolling="no" style="width:320px;height:22px;float:left;margin-left:10px;"></iframe></td>
							</tr>
						</tbody>
					</table>
				</td>
			</tr>
			<tr>
				<th width="8%">首页广告<br />（二）</th>
				<td>
					<table width="100%" border="0" cellpadding="3" cellspacing="1" class="table1">
						<tbody>
							<tr>
								<th width="15%"><span>标题</span></th>
								<td><input type="text" id="index_ad2title" name="index_ad2title" value="<%=index_ad2title%>" class="txt1 txttitle" /></td>
							</tr>
							<tr>
								<th width="15%"><span>URL</span></th>
								<td><input type="text" id="index_ad2url" name="index_ad2url" value="<%=index_ad2url%>" class="txt1 txturl" /></td>
							</tr>
							<tr>
								<th width="15%"><span>大图（1170*400）</span></th>
								<td><input type="text" id="index_ad2" name="index_ad2" value="<%=index_ad2%>" class="txt1" /><iframe src="uploadad.asp?id=index_ad2" frameborder="0" scrolling="no" style="width:320px;height:22px;float:left;margin-left:10px;"></iframe></td>
							</tr>
						</tbody>
					</table>
				</td>
			</tr>
			<tr>
				<th width="8%">首页广告<br />（三）</th>
				<td>
					<table width="100%" border="0" cellpadding="3" cellspacing="1" class="table1">
						<tbody>
							<tr>
								<th width="15%"><span>标题</span></th>
								<td><input type="text" id="index_ad3title" name="index_ad3title" value="<%=index_ad3title%>" class="txt1 txttitle" /></td>
							</tr>
							<tr>
								<th width="15%"><span>URL</span></th>
								<td><input type="text" id="index_ad3url" name="index_ad3url" value="<%=index_ad3url%>" class="txt1 txturl" /></td>
							</tr>
							<tr>
								<th width="15%"><span>大图（1170*400）</span></th>
								<td><input type="text" id="index_ad3" name="index_ad3" value="<%=index_ad3%>" class="txt1" /><iframe src="uploadad.asp?id=index_ad3" frameborder="0" scrolling="no" style="width:320px;height:22px;float:left;margin-left:10px;"></iframe></td>
							</tr>
						</tbody>
					</table>
				</td>
			</tr>
			<tr>
				<th width="8%">首页中部广告<br />（一）</th>
				<td>
					<table width="100%" border="0" cellpadding="3" cellspacing="1" class="table1">
						<tbody>
							<tr>
								<th width="15%"><span>标题</span></th>
								<td><input type="text" id="indexc_ad1title" name="indexc_ad1title" value="<%=indexc_ad1title%>" class="txt1 txttitle" /></td>
							</tr>
							<tr>
								<th width="15%"><span>URL</span></th>
								<td><input type="text" id="indexc_ad1url" name="indexc_ad1url" value="<%=indexc_ad1url%>" class="txt1 txturl" /></td>
							</tr>
							<tr>
								<th width="15%"><span>大图（368*265）</span></th>
								<td><input type="text" id="indexc_ad1" name="indexc_ad1" value="<%=indexc_ad1%>" class="txt1" /><iframe src="uploadad.asp?id=indexc_ad1" frameborder="0" scrolling="no" style="width:320px;height:22px;float:left;margin-left:10px;"></iframe></td>
							</tr>
						</tbody>
					</table>
				</td>
			</tr>
			<tr>
				<th width="8%">首页中部广告<br />（二）</th>
				<td>
					<table width="100%" border="0" cellpadding="3" cellspacing="1" class="table1">
						<tbody>
							<tr>
								<th width="15%"><span>标题</span></th>
								<td><input type="text" id="indexc_ad2title" name="indexc_ad2title" value="<%=indexc_ad2title%>" class="txt1 txttitle" /></td>
							</tr>
							<tr>
								<th width="15%"><span>URL</span></th>
								<td><input type="text" id="indexc_ad2url" name="indexc_ad2url" value="<%=indexc_ad2url%>" class="txt1 txturl" /></td>
							</tr>
							<tr>
								<th width="15%"><span>大图（368*265）</span></th>
								<td><input type="text" id="indexc_ad2" name="indexc_ad2" value="<%=indexc_ad2%>" class="txt1" /><iframe src="uploadad.asp?id=indexc_ad2" frameborder="0" scrolling="no" style="width:320px;height:22px;float:left;margin-left:10px;"></iframe></td>
							</tr>
						</tbody>
					</table>
				</td>
			</tr>
			<tr>
				<th width="8%">首页中部广告<br />（三）</th>
				<td>
					<table width="100%" border="0" cellpadding="3" cellspacing="1" class="table1">
						<tbody>
							<tr>
								<th width="15%"><span>标题</span></th>
								<td><input type="text" id="indexc_ad3title" name="indexc_ad3title" value="<%=indexc_ad3title%>" class="txt1 txttitle" /></td>
							</tr>
							<tr>
								<th width="15%"><span>URL</span></th>
								<td><input type="text" id="indexc_ad3url" name="indexc_ad3url" value="<%=indexc_ad3url%>" class="txt1 txturl" /></td>
							</tr>
							<tr>
								<th width="15%"><span>大图（368*265）</span></th>
								<td><input type="text" id="indexc_ad3" name="indexc_ad3" value="<%=indexc_ad3%>" class="txt1" /><iframe src="uploadad.asp?id=indexc_ad3" frameborder="0" scrolling="no" style="width:320px;height:22px;float:left;margin-left:10px;"></iframe></td>
							</tr>
						</tbody>
					</table>
				</td>
			</tr>
			<tr>
				<th width="8%">产品内页<br />（右下一）</th>
				<td>
					<table width="100%" border="0" cellpadding="3" cellspacing="1" class="table1">
						<tbody>
							<tr>
								<th width="15%"><span>标题</span></th>
								<td><input type="text" id="page_ad1title" name="page_ad1title" value="<%=page_ad1title%>" class="txt1 txttitle" /></td>
							</tr>
							<tr>
								<th width="15%"><span>URL</span></th>
								<td><input type="text" id="page_ad1url" name="page_ad1url" value="<%=page_ad1url%>" class="txt1 txturl" /></td>
							</tr>
							<tr>
								<th width="15%"><span>尺寸（270*不限）</span></th>
								<td><input type="text" id="page_ad1" name="page_ad1" value="<%=page_ad1%>" class="txt1" /><iframe src="uploadad.asp?id=page_ad1" frameborder="0" scrolling="no" style="width:320px;height:22px;float:left;margin-left:10px;"></iframe></td>
							</tr>
						</tbody>
					</table>
				</td>
			</tr>
			<tr>
				<th width="8%">产品内页<br />（右下二）</th>
				<td>
					<table width="100%" border="0" cellpadding="3" cellspacing="1" class="table1">
						<tbody>
							<tr>
								<th width="15%"><span>标题</span></th>
								<td><input type="text" id="page_ad2title" name="page_ad2title" value="<%=page_ad2title%>" class="txt1 txttitle" /></td>
							</tr>
							<tr>
								<th width="15%"><span>URL</span></th>
								<td><input type="text" id="page_ad2url" name="page_ad2url" value="<%=page_ad2url%>" class="txt1 txturl" /></td>
							</tr>
							<tr>
								<th width="15%"><span>尺寸（270*不限）</span></th>
								<td><input type="text" id="page_ad2" name="page_ad2" value="<%=page_ad2%>" class="txt1" /><iframe src="uploadad.asp?id=page_ad2" frameborder="0" scrolling="no" style="width:320px;height:22px;float:left;margin-left:10px;"></iframe></td>
							</tr>
						</tbody>
					</table>
				</td>
			</tr>
			<tr>
				<th width="8%">二维码</th>
				<td>
					<table width="100%" border="0" cellpadding="3" cellspacing="1" class="table1">
						<tbody>
							<tr>
								<th width="15%"><span>尺寸（270*不限）</span></th>
								<td><input type="text" id="dbc" name="dbc" value="<%=dbc%>" class="txt1" /><iframe src="uploadad.asp?id=dbc" frameborder="0" scrolling="no" style="width:320px;height:22px;float:left;margin-left:10px;"></iframe></td>
							</tr>
						</tbody>
					</table>
				</td>
			</tr>

			<tr>
				<th></th>
				<td><input type="submit" name="save" id="save" value="确定" class="btn1" /> <input type="reset" name="save" id="save" value="重置" class="btn1" /></td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
</body>
</html>
