<%@ Page CodeBehind="admin_adv.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Typhoto.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="541" align="right">登录页顶部广告代码：</td>
						<td width="835">
							<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="../images/minus1.gif" width="20" height="20" border='0' unselectable="on"></a>
							<a href="javascript:admin_Size(3,'adv1')"><img src="../images/plus1.gif" width="20" height="20" border='0' unselectable="on"></a>									</span>								</span>							</span></td>
				  </tr>
					<tr class="tableTd">
						<td align="right">登录后顶部广告代码：</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="../images/minus1.gif" width="20" height="20" border='0' unselectable="on"></a>
										<a href="javascript:admin_Size(3,'adv2')"><img src="../images/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">登录后左下广告代码：</td>
						<td><textarea name="adv3" ID="adv3" style="WIDTH:400px" rows="3" runat="server"></textarea>
							<a href="javascript:admin_Size(-3,'adv3')"><img src="../images/minus1.gif" width="20" height="20" border='0' unselectable="on"></a>
							<a href="javascript:admin_Size(3,'adv3')"><img src="../images/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">登录首页广告代码：</td>
						<td>
							<textarea name="adv4" ID="adv4" style="WIDTH:400px" rows="3" runat="server"></textarea>
							<a href="javascript:admin_Size(-3,'adv4')"><img src="../images/minus1.gif" width="20" height="20" border='0' unselectable="on"></a>
							<a href="javascript:admin_Size(3,'adv4')"><img src="../images/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">用户空间顶部广告代码：</td>
						<td>
							<textarea name="adv5" ID="adv5" style="WIDTH:400px" rows="3" runat="server"></textarea>
							<a href="javascript:admin_Size(-3,'adv5')"><img src="../images/minus1.gif" width="20" height="20" border='0' unselectable="on"></a>
							<a href="javascript:admin_Size(3,'adv5')"><img src="../images/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">用户空间左下广告代码：</td>
						<td>
							<textarea name="adv6" ID="adv6" style="WIDTH:400px" rows="3" runat="server"></textarea>
							<a href="javascript:admin_Size(-3,'adv6')"><img src="../images/minus1.gif" width="20" height="20" border='0' unselectable="on"></a>
							<a href="javascript:admin_Size(3,'adv6')"><img src="../images/plus1.gif" width="20" height="20" border='0' unselectable="on"></a>
							<asp:CheckBox id="noshow5" runat="server" Text="付费等级不显示"></asp:CheckBox></td>
					</tr>
					<tr class="tableTd">
					  <td align="right">图片详细页下方广告代码：</td>
					  <td><textarea name="adv7" ID="adv7" style="WIDTH:400px" rows="3" runat="server"></textarea>
                        <a href="javascript:admin_Size(-3,'adv7')"><img src="../images/minus1.gif" width="20" height="20" border='0' unselectable="on"></a> <a href="javascript:admin_Size(3,'adv7')"><img src="../images/plus1.gif" width="20" height="20" border='0' unselectable="on"></a>
                        <asp:CheckBox id="noshow6" runat="server" Text="付费等级不显示"></asp:CheckBox></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>
