<%@ Page CodeBehind="admin_adv.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Webdisk.admin_adv" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>广告设置</title>
		<link href="img/main.css" rel="stylesheet" type="text/css">
			<script>
	function admin_Size(num,objname)
{
	var obj=document.getElementById(objname)
	if (parseInt(obj.rows)+num>=3) {
		obj.rows = parseInt(obj.rows) + num;	
	}
	if (num>0)
	{
		obj.width="90%";
	}
}
			</script>
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<div align="center">
				<table border="0" cellspacing="1" cellpadding="3"  align="center" width="100%">
					<tr >
						<td colSpan="3" class="td_title">网站广告设置
						</td>
					</tr>
					<tr class="tableTd">
						<td width="283" align="right">登录页顶部广告代码：</td>
						<td width="751">
							<span class="forumrow">
								<span class="a3-green">
									<span class="forumrowHighlight">
										<textarea name="adv1" ID="adv1" style="WIDTH:400px" rows="3" runat="server"></textarea>
										<a href="javascript:admin_Size(-3,'adv1')"><img src="../pics/minus1.gif" width="20" height="20" border='0' unselectable="on"></a>
										<a href="javascript:admin_Size(3,'adv1')"><img src="../pics/plus1.gif" width="20" height="20" border='0' unselectable="on"></a>
									</span>
								</span>
							</span></td>
					</tr>
					<tr class="tableTd">
						<td align="right" width="283">操作区首页下部广告代码：</td>
						<td>
							<span class="forumrow">
								<span class="a3-green">
									<span class="forumrowHighlight">
										<textarea name="adv2" ID="adv2" style="WIDTH:400px" rows="3" runat="server"></textarea>
										<a href="javascript:admin_Size(-3,'adv2')"><img src="../pics/minus1.gif" width="20" height="20" border='0' unselectable="on"></a>
										<a href="javascript:admin_Size(3,'adv2')"><img src="../pics/plus1.gif" width="20" height="20" border='0' unselectable="on"></a>
									</span>
								</span>
							</span>
							<asp:CheckBox ID="noshow1" Text='付费等级不显示' runat="server" /></td>
					</tr>
					<tr class="tableTd">
						<td align="right" width="283">操作区顶部广告代码：</td>
						<td><textarea name="adv3" ID="adv3" style="WIDTH:400px" rows="3" runat="server"></textarea>
							<a href="javascript:admin_Size(-3,'adv3')"><img src="../pics/minus1.gif" width="20" height="20" border='0' unselectable="on"></a>
							<a href="javascript:admin_Size(3,'adv3')"><img src="../pics/plus1.gif" width="20" height="20" border='0' unselectable="on"></a>
							<asp:CheckBox ID="noshow2" Text='付费等级不显示' runat="server" /></td>
					</tr>
					<tr class="tableTd">
						<td align="right" width="283">文件区底部广告代码：</td>
						<td>
							<textarea name="adv4" ID="adv4" style="WIDTH:400px" rows="3" runat="server"></textarea>
							<a href="javascript:admin_Size(-3,'adv4')"><img src="../pics/minus1.gif" width="20" height="20" border='0' unselectable="on"></a>
							<a href="javascript:admin_Size(3,'adv4')"><img src="../pics/plus1.gif" width="20" height="20" border='0' unselectable="on"></a>
							<asp:CheckBox ID="noshow3" Text='付费等级不显示' runat="server" /></td>
					</tr>
					<tr class="tableTd">
						<td align="right" width="283">用户空间顶部广告代码：</td>
						<td>
							<textarea name="adv5" ID="adv5" style="WIDTH:400px" rows="3" runat="server"></textarea>
							<a href="javascript:admin_Size(-3,'adv5')"><img src="../pics/minus1.gif" width="20" height="20" border='0' unselectable="on"></a>
							<a href="javascript:admin_Size(3,'adv5')"><img src="../pics/plus1.gif" width="20" height="20" border='0' unselectable="on"></a>
							<asp:CheckBox ID="noshow4" Text='付费等级不显示' runat="server" /></FONT></td>
					</tr>
					<tr class="tableTd">
						<td align="right" width="283">用户空间底部广告代码：</td>
						<td>
							<textarea name="adv6" ID="adv6" style="WIDTH:400px" rows="3" runat="server"></textarea>
							<a href="javascript:admin_Size(-3,'adv6')"><img src="../pics/minus1.gif" width="20" height="20" border='0' unselectable="on"></a>
							<a href="javascript:admin_Size(3,'adv6')"><img src="../pics/plus1.gif" width="20" height="20" border='0' unselectable="on"></a>
							<asp:CheckBox id="noshow5" runat="server" Text="付费等级不显示"></asp:CheckBox></td>
					</tr>
					<tr>
						<td colSpan="3" class="td_title">客户端广告设置：
						</td>
					</tr>
					<tr class="tableTd">
						<td align="right" width="283">广告代码1：</td>
						<td>
							<textarea name="softadv1" ID="softadv1" style="WIDTH:400px" rows="3" runat="server"></textarea>
							<a href="javascript:admin_Size(-3,'softadv1')"><img src="../pics/minus1.gif" width="20" height="20" border='0' unselectable="on"></a>
							<a href="javascript:admin_Size(3,'softadv1')"><img src="../pics/plus1.gif" width="20" height="20" border='0' unselectable="on"></a></SPAN></SPAN></SPAN></FONT>
							<asp:CheckBox id="noshow6" runat="server" Text="付费等级不显示"></asp:CheckBox></td>
					</tr>
					<tr class="tableTd">
						<td align="right" width="283">广告代码2：</td>
						<td>
							<textarea name="softadv2" ID="softadv2" style="WIDTH:400px" rows="3" runat="server"></textarea>
							<a href="javascript:admin_Size(-3,'softadv2')"><img src="../pics/minus1.gif" width="20" height="20" border='0' unselectable="on"></a>
							<a href="javascript:admin_Size(3,'softadv2')"><img src="../pics/plus1.gif" width="20" height="20" border='0' unselectable="on"></a></SPAN></SPAN></SPAN></FONT>
							<asp:CheckBox id="noshow7" runat="server" Text="付费等级不显示"></asp:CheckBox></td>
					</tr>
					<tr class="tableTd">
						<td align="right" width="283">广告代码3：</td>
						<td>
							<textarea name="softadv3" ID="softadv3" style="WIDTH:400px" rows="3" runat="server"></textarea>
							<a href="javascript:admin_Size(-3,'softadv3')"><img src="../pics/minus1.gif" width="20" height="20" border='0' unselectable="on"></a>
							<a href="javascript:admin_Size(3,'softadv3')"><img src="../pics/plus1.gif" width="20" height="20" border='0' unselectable="on"></a></SPAN></SPAN></SPAN></FONT>
							<asp:CheckBox id="noshow8" runat="server" Text="付费等级不显示"></asp:CheckBox></td>
					</tr>
					<tr class="tableTd">
						<td align="right">顶端广告条高度：</td>
						<td><FONT face="宋体">
								<asp:TextBox id="softheight" runat="server" Width="69px"></asp:TextBox>px</FONT></td>
					</tr>
					<tr class="tableTd">
						<td align="right">广告显示间隔：</td>
						<td><FONT face="宋体">
								<asp:TextBox id="softtime" runat="server" Width="68px"></asp:TextBox>秒</FONT></td>
					</tr>
					<tr class="tableTd">
						<td colspan="2" align="right"><div align="center"><span class="forumrow"><span class="px14">
										<asp:Button ID="Button1" runat="server" Width="100px" class="formbutton" Text="保存设置" onclick="Button1_Click"></asp:Button>
									</span>
								</span>
							</div>
						</td>
					</tr>
				</table>
			</div>
		</form>
	</body>
</HTML>
