<%@ Page Inherits="Dvbbs.bbs.UI.Admin.admin_ads" %>
<%@ Register tagPrefix="Dvbbs" namespace="Dvbbs.Controls" assembly="Dvbbs.Web"%>
<%@ Register tagPrefix="bbs" tagName="AdminHeader" src="controls/admin_header.ascx"%>
<%@ Register tagPrefix="bbs" tagName="AdminFooter" src="controls/admin_footer.ascx"%>
<bbs:AdminHeader title="广告管理" runat="server" ID="Adminheader1" NAME="Adminheader1" />
<script language="javascript" src="../templates/default/scripts/calendar.js"></script>
<script type="text/javascript" language="javascript">
<!--
function DisTime(disobj,undisobj)
{
	if(document.all)
	{
		if(document.getElementById(disobj))
		{
			document.getElementById(disobj).style.display='block';
		}
		var undisarr = undisobj.split(',');
		var undisl = undisarr.length;      
		for(var i = 0; i < undisl; i++)
		{
			if(document.getElementById(undisarr[i]))
				document.getElementById(undisarr[i]).style.display='none';
		}
	}
}

function CheckTime(chkobj,timevalue)
{
	if(timevalue=="")
	{
		document.getElementsByName(chkobj+'select')[1].checked=true;
		document.getElementById(chkobj+'hour').style.display='block';
		var obj=document.getElementsByName('stat'+chkobj);           
		for(var i=0;i<obj.length;i++)
		{        
			obj[i].checked=true;
		} 
		document.getElementsByName(chkobj+'dayorweek')[0].checked=true;
	}
	else
	{
		var type=timevalue.split('|')[0];
		var timearray=timevalue.split('|')[1];
   
		if(type=='0')
		{
			/*初始选中单选*/
			var selobj=document.getElementsByName(chkobj+'select');
			for(var i=0;i<selobj.length;i++)
			{
				if(selobj[i].value==type)
				{
					selobj[i].checked=true;
					break;
				}
			}
			/*对应的表单显示*/
			document.getElementById(chkobj+'fix').style.display='block';
			document.getElementsByName(chkobj+'dayorweek')[0].checked=true;
				/*给对应的表单选上默认值*/
			var obj1=document.getElementById(chkobj+'fix1');  //起始日期
			var obj2=document.getElementById(chkobj+'fix2');　//结束日期
			obj1.value=timearray.split(',')[0];
			obj2.value=timearray.split(',')[1];          
		}
		else if(type=='1')
		{
      
			/*初始选中单选*/
			var selobj = document.getElementsByName(chkobj+'select');
			for(var i = 0; i < selobj.length; i++)
			{
				if(selobj[i].value == type)
				{
					selobj[i].checked = true;
					break;
				}
			}
			/*对应的表单显示*/
			document.getElementById(chkobj+'hour').style.display = 'block';     
			document.getElementsByName(chkobj+'dayorweek')[0].checked = true;
			/*给对应的表单选上默认值*/
			var obj = document.getElementsByName('stat'+chkobj);    
			var timeobj = timearray.split(',');  //各个小时数，以,号分隔
			for(var i = 0; i < obj.length; i++)
			{
				for(var j = 0; j < timeobj.length; j++)
				{
					if(obj[i].value == timeobj[j])
					{
						obj[i].checked = true; 
						continue; 
					}           
				}
			}
		}
		else if(type == '2')
		{     
		    
			/*初始选中单选*/
			var selobj = document.getElementsByName(chkobj+'select');     
			for(var i = 0; i < selobj.length; i++)
			{
				if(selobj[i].value == type)
				{
					selobj[i].checked = true;
					break;
				}
			}
			/*对应的表单显示*/
			document.getElementById(chkobj+'mix_dis').style.display = 'block'; 
			/*选择的是周还是天*/
			var dayorweek = timevalue.split('|')[1];
			if(dayorweek == "0")
			{
				document.getElementById(chkobj+'dayselect').style.display  = 'block';
				document.getElementById(chkobj+'weekselect').style.display = 'none';
			}
			else if(dayorweek == "1")
			{
				document.getElementById(chkobj+'weekselect').style.display='block';
				document.getElementById(chkobj+'dayselect').style.display='none';
			}
			var dayorweekarray = document.getElementsByName(chkobj+'dayorweek');
			for(var j = 0;j < dayorweekarray.length; j++)
			{
				if(dayorweekarray[j].value == dayorweek)
				{
					dayorweekarray[j].checked = true;
				}
			}
			/*给对应的表单选上默认值*/
			var month = timevalue.split('|')[2].split(',');
			var day = timevalue.split('|')[3].split(',');
			var week = timevalue.split('|')[4].split(',');
			var hour = timevalue.split('|')[5].split(',');    
			var monthobj = document.getElementsByName(chkobj+'month');
			var dayobj = document.getElementsByName(chkobj+'day');
			var weekobj = document.getElementsByName(chkobj+'week');
			var hourobj = document.getElementsByName(chkobj+'perhour'); 
			SelectMix(monthobj,month);
			SelectMix(dayobj,day);
			SelectMix(weekobj,week);
			SelectMix(hourobj,hour);
		}
		else
		{
			return ;
		}
	}
}

function SelectMix(obj1,obj2)
{
	for(var i = 0; i < obj1.length; i++)
	{
		for(var j = 0; j < obj2.length; j++)
		{
			if(obj1[i].value == obj2[j])
			{
                obj1[i].checked = true;
                continue;
            }          
		}
	}  
}
//-->
</script>
<style>.bgcl2{background-color:#EEF7FD}</style>
<% if(action==""){%>
<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0" ID="Table2">
	<tr>
		<th>
			广告管理</th>
	</tr>
	<tr>
		<td class="nf2">
			<div class="underline">功能说明：</div>
			<span>这里是论坛广告管理，你可以在这里创建，修改论坛的广告方案。<br /></span>
			<span>此处的广告方案起方案模板的作用，如果您已经将广告方案应用到版面中，那么，需要更新方案时请在修改版面属性中重新修改广告(修改此处的广告方案将不会作用于版面)。</span>
		</td>
	</tr>
	<tr>
		<td>
			<a href="admin_ads.aspx">广告管理首页</a> | <a href="admin_ads.aspx?action=new">新增广告方案</a>
		</td>
	</tr>
</table>
<br />
<form runat="server" ID="Form1">
	<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0" ID="Table3">
		<tr>
			<td colspan="3" class="title">
				现有广告方案列表</td>
		</tr>
		<tr>
			<td colspan="3">
				<span>点方案名称进行编辑，如果要删除广告方案，请先确认没有任何版面在使用它。</span>
			</td>
		</tr>
		<tr>
			<td width="6%">删除?</td>
			<td width="6%">编号</td>
			<td>方案名称</td>
		</tr>
		<asp:Repeater id="list" runat="server">
			<ItemTemplate>
				<tr onMouseOver="this.bgColor='#ffffff'" onMouseOut="this.bgColor=''">
					<td><Dvbbs:Span id="delete" runat="server" /></td>
					<td><Dvbbs:Span id="uid" runat="server" /></td>
					<td><Dvbbs:Anchor id="type" runat="server" /></td>
				</tr>
			</ItemTemplate>
		</asp:Repeater>
		<tr>
			<td align="left" colspan="3">
				<input type="submit" value="删  除" class="button" onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)"
					onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" /></td>
		</tr>
	</table>
</form>
</table>
<% } else { %>
<form action="" method="post">
	<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0" ID="Table4">
		<tr>
			<td class="title">
				广告管理</td>
		</tr>
		<tr>
			<td class="nf2">
				<div class="underline">功能说明:</div>
				<span>这里是论坛广告管理，你可以在这里创建，修改论坛的广告方案。
				<br />
					①选择在固定日期段内播放广告时，起始日期必须小于结束日期。<br />
					②选择在每天的每个时间段内播放时，如果不选择任一个时间，则代表全天不播放。<br />
					③情形一：选择混合模式时，如果不选择任一月，则表示全年不播放；<br />
					&nbsp;&nbsp;&nbsp;情形二：如果不选择任一天和任一周时，表示全月不播放。<br />
					&nbsp;&nbsp;&nbsp;情形三：如果不选择某天（某周）下的小时内，代表当天（或周）全天不播放。<br />
					④混合月、日（周）、时设置模式时，只有全部条件满足才生效。比如如果设置(全年不播放、每月的10号、每天的10点播放广告）时，仍然不播放广告。<br />
					此处的广告方案起方案模板的作用，如果您已经将广告方案应用到版面中，那么，需要更新方案时请在修改版面属性中重新修改广告(修改此处的广告方案将不会作用于版面)。
					</span>
			</td>
		</tr>
		<tr>
			<td>
				<a href="admin_ads.aspx">广告管理首页</a> | <a href="admin_ads.aspx?action=new">新增广告方案</a>|
				<a href="#dv_ads_1">顶部广告代码</a> | <a href="#dv_ads_2">底部广告代码</a> | <a href="#dv_ads_3">
					浮动广告</a> | <a href="#dv_ads_4">固定广告</a> | <a href="#dv_ads_5">帖间随机广告</a> | <a href="#dv_ads_6">
					文字广告</a>
			</td>
		</tr>
	</table>
	<br />
	<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0">
		<% if(action=="edit") { %>
		<tr>
			<td class="title" colspan="2">
				修改广告方案</td>
		</tr>
		<% } else { %>
		<tr>
			<td class="title" colspan="2">
				新建广告方案</td>
		</tr>
		<%}%>
		<tr>
			<td width="30%">广告方案名称
			</td>
			<td>
				<input id="ads_type" value="<% if(ads_type=="") Response.Write("新广告方案");else Response.Write(ads_type);%>" name="ads_type" size="30" onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" />
				<span>给您的广告方案命名，长度不能多于50字节</span>
			</td>
		</tr>
		<tr>
			<td class="title">广告方案说明
			</td>
			<td class="td1" align="right">
				<a href="#"><img src="images/p_up.gif" border="0" title="顶部"></a>&nbsp; <a href="#bottom">
					<img src="images/p_down.gif" border="0" title="底部"></a>&nbsp;
			</td>
		</tr>
		<tr>
			<td colspan="2"><textarea name="description" style="width:90%;height:100px" id="description" onFocus="IEvent('focus',this)"
					onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"><%if(description=="")Response.Write("默认广告设置方案");else Response.Write(Server.HtmlEncode(description.ToString()));%></textarea>
				<br />
				<span>广告方案简要说明，可以不填，长度不能多于50字节</span>
			</td>
		</tr>
	</table>
	<br />
	<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0">
		<tr>
			<td class="title" width="30%">顶部广告代码</td>
			<td align="right" class="td1">
				<a name="dv_ads_1"></a><a href="#"><img src="images/p_up.gif" border="0" title="顶部"></a>&nbsp;
				<a href="#bottom"><img src="images/p_down.gif" border="0" title="底部"></a>&nbsp;
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<textarea name="ads_top" style="width:90%;height:100px" id="ads_top" onFocus="IEvent('focus',this)"
					onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"><% if(initarray[0]==null)Response.Write("&lt;iframe src=&quot;http://server.dvbbs.net/dvbbs/dvbbs_soft_top.html&quot; height=&quot;60&quot; width=&quot;468&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot;&gt;&lt;/iframe&gt;");else Response.Write(Server.HtmlEncode(initarray[0].ToString()));%></textarea>
				<br />
				<span>请填写广告代码，支持HTML和脚本。总长度不多于2500字节。</span></td>
		</tr>
	</table>
	<!--选择广告时间-->
	<!--initarray[1] 是时间-->
	<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0">
		<tr>
			<td class="title">请设置播放顶部广告内容的时间段
			</td>
		</tr>
		<tr>
			<td>
				<% TimeTips(initarray[1]); %>
				选择顶部广告时间段方式：&nbsp;&nbsp; <input type="radio" name="topselect" id="topselect" value="0" class="radio" onclick="DisTime('topfix','tophour,topmix_dis')" />固定日期段内播放&nbsp;
				<input type="radio" class="radio" name="topselect" id="topselect" value="1" onclick="DisTime('tophour','topfix,topmix_dis')" />每天的某些小时内播放&nbsp;
				<input type="radio" class="radio" name="topselect" id="topselect" value="2" onclick="DisTime('topmix_dis','tophour,topfix')" />按照月、日、小时等混合设置&nbsp;
			</td>
		</tr>
		<tr>
			<td>
				<!--固定日期段-->
				<div id="topfix" style="display:none">
					<table>
						<tr>
							<td>播放广告日期范围(格式 yyyy-mm-dd):&nbsp;&nbsp; <input id='topfix1' name='topfix1' onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)"
									onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" readonly='readonly' style='width:80' title='点击打开日期控件'
									onclick='calendar.setHook(this)' runat='server' /> -- <input id='topfix2' name='topfix2' onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)"
									onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" readonly='readonly' style='width:80' title='点击打开日期控件' onclick='calendar.setHook(this)'
									runat='server' /></td>
						</tr>
					</table>
				</div>
				<!--end固定日期段-->
				<!--每天的小时-->
				<div id="tophour" style="display:none">
					<table>
						<tr>
							<td><input type="checkbox" name="stattop" id="stattop" value="0" class="checkbox" />0点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattop" value="1" class="checkbox" />1点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattop" value="2" class="checkbox" />2点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattop" value="3" class="checkbox" />3点&nbsp;&nbsp;</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="stattop" value="4" class="checkbox" />4点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattop" value="5" class="checkbox" />5点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattop" value="6" class="checkbox" />6点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattop" value="7" class="checkbox" />7点&nbsp;&nbsp;</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="stattop" value="8" class="checkbox" />8点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattop" value="9" class="checkbox" />9点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattop" value="10" class="checkbox" />10点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattop" value="11" class="checkbox" />11点&nbsp;&nbsp;</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="stattop" value="12" class="checkbox" />12点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattop" value="13" class="checkbox" />13点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattop" value="14" class="checkbox" />14点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattop" value="15" class="checkbox" />15点&nbsp;&nbsp;</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="stattop" value="16" class="checkbox" />16点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattop" value="17" class="checkbox" />17点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattop" value="18" class="checkbox" />18点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattop" value="19" class="checkbox" />19点&nbsp;&nbsp;</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="stattop" value="20" class="checkbox" />20点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattop" value="21" class="checkbox" />21点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattop" value="22" class="checkbox" />22点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattop" value="23" class="checkbox" />23点&nbsp;&nbsp;</td>
						</tr>
					</table>
				</div>
				<!--end每天的小时-->
				<!--混合设置-->
				<div id="topmix_dis" style="display:none">
					<table>
						<tr>
							<td>
								<input type="radio" class="radio" name="topdayorweek" value="0" onclick="DisTime('topdayselect','topweekselect')" />&nbsp;按号数设置
								<input type="radio" class="radio" name="topdayorweek" value="1" onclick="DisTime('topweekselect','topdayselect')" />&nbsp;按周几设置
							</td>
						</tr>
					</table>
					<table>
						<tr>
							<td>
								请设置播放广告的月份(1-12) ：<br />
								<table>
									<tr>
										<td><input type="checkbox" name="topmonth" value="1" class="checkbox" />1月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="topmonth" value="2" class="checkbox" />2月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="topmonth" value="3" class="checkbox" />3月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="topmonth" value="4" class="checkbox" />4月&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="topmonth" value="5" class="checkbox" />5月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="topmonth" value="6" class="checkbox" />6月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="topmonth" value="7" class="checkbox" />7月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="topmonth" value="8" class="checkbox" />8月&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="topmonth" value="9" class="checkbox" />9月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="topmonth" value="10" class="checkbox" />10月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="topmonth" value="11" class="checkbox" />11月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="topmonth" value="12" class="checkbox" />12月&nbsp;&nbsp;</td>
									</tr>
								</table>
								<div id="topdayselect">
									请设置各月份的某些天(1-31) ：<br />
									<table>
										<tr>
											<td><input type="checkbox" name="topday" value="1" class="checkbox" />1号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="topday" value="2" class="checkbox" />2号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="topday" value="3" class="checkbox" />3号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="topday" value="4" class="checkbox" />4号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="topday" value="5" class="checkbox" />5号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="topday" value="6" class="checkbox" />6号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="topday" value="7" class="checkbox" />7号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="topday" value="8" class="checkbox" />8号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="topday" value="9" class="checkbox" />9号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="topday" value="10" class="checkbox" />10号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="topday" value="11" class="checkbox" />11号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="topday" value="12" class="checkbox" />12号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="topday" value="13" class="checkbox" />13号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="topday" value="14" class="checkbox" />14号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="topday" value="15" class="checkbox" />15号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="topday" value="16" class="checkbox" />16号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="topday" value="17" class="checkbox" />17号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="topday" value="18" class="checkbox" />18号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="topday" value="19" class="checkbox" />19号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="topday" value="20" class="checkbox" />20号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="topday" value="21" class="checkbox" />21号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="topday" value="22" class="checkbox" />22号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="topday" value="23" class="checkbox" />23号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="topday" value="24" class="checkbox" />24号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="topday" value="25" class="checkbox" />25号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="topday" value="26" class="checkbox" />26号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="topday" value="27" class="checkbox" />27号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="topday" value="28" class="checkbox" />28号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="topday" value="29" class="checkbox" />29号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="topday" value="30" class="checkbox" />30号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="topday" value="31" class="checkbox" />31号&nbsp;&nbsp;</td>
										</tr>
									</table>
								</div>
								<div id="topweekselect" style="display:none">
									请设置各月份每周的周几(1-7)：<br />
									<table>
										<tr>
											<td><input type="checkbox" name="topweek" value="1" class="checkbox" />周一&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="topweek" value="2" class="checkbox" />周二&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="topweek" value="3" class="checkbox" />周三&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="topweek" value="4" class="checkbox" />周四&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="topweek" value="5" class="checkbox" />周五&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="topweek" value="6" class="checkbox" />周六&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="topweek" value="7" class="checkbox" />周七&nbsp;&nbsp;</td>
										</tr>
									</table>
								</div>
								请设置某天(周几)播放广告的时间(0-23)：<br />
								<table>
									<tr>
										<td><input type="checkbox" name="topperhour" value="0" class="checkbox" />0点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="topperhour" value="1" class="checkbox" />1点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="topperhour" value="2" class="checkbox" />2点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="topperhour" value="3" class="checkbox" />3点&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="topperhour" value="4" class="checkbox" />4点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="topperhour" value="5" class="checkbox" />5点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="topperhour" value="6" class="checkbox" />6点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="topperhour" value="7" class="checkbox" />7点&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="topperhour" value="8" class="checkbox" />8点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="topperhour" value="9" class="checkbox" />9点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="topperhour" value="10" class="checkbox" />10点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="topperhour" value="11" class="checkbox" />11点&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="topperhour" value="12" class="checkbox" />12点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="topperhour" value="13" class="checkbox" />13点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="topperhour" value="14" class="checkbox" />14点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="topperhour" value="15" class="checkbox" />15点&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="topperhour" value="16" class="checkbox" />16点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="topperhour" value="17" class="checkbox" />17点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="topperhour" value="18" class="checkbox" />18点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="topperhour" value="19" class="checkbox" />19点&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="topperhour" value="20" class="checkbox" />20点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="topperhour" value="21" class="checkbox" />21点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="topperhour" value="22" class="checkbox" />22点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="topperhour" value="23" class="checkbox" />23点&nbsp;&nbsp;</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</div>
				<script type="text/javascript" language="javascript">
    <!--
     CheckTime('top','<%=initarray[1]%>')
    //-->
				</script>
				<!--end混合设置-->
			</td>
		</tr>
	</table>
	<!--end 选择广告时间-->
	<br />
	<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0">
		<tr>
			<td class="title" width="30%">底部广告代码</td>
			<td align="right" class="td1">
				<a name="dv_ads_2"></a><a href="#"><img src="images/p_up.gif" border="0" title="顶部" /></a>
				<a href="#bottom"><img src="images/p_down.gif" border="0" title="底部"></a>&nbsp;
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<textarea name="ads_bottom" style="width:90%;height:100px" id="ads_bottom" onFocus="IEvent('focus',this)"
					onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"><% if(initarray[2]==null)Response.Write("&lt;iframe src=&quot;http://server.dvbbs.net/dvbbs/dvbbs_soft_end.html&quot; height=&quot;60&quot; width=&quot;468&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot;  frameborder=&quot;0&quot; scrolling=&quot;no&quot;&gt;&lt;/iframe&gt;");else Response.Write(Server.HtmlEncode(initarray[2].ToString()));%></textarea>
				<br />
				<span>请填写广告代码，支持HTML和脚本。 总长度不多于2500字节。</span>
			</td>
		</tr>
	</table>
	<!--选择广告时间-->
	<!--initarray[3]是时间-->
	<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0">
		<tr>
			<td class="title">请设置播放底部广告内容的时间段
			</td>
		</tr>
		<tr>
			<td>
				<%TimeTips(initarray[3]);%>
				选择底部广告时间段方式：&nbsp;&nbsp; <input type="radio" class="radio" name="bottomselect" id="bottomselect" value="0" onclick="DisTime('bottomfix','bottomhour,bottommix_dis')" />固定日期段内播放&nbsp;
				<input type="radio" class="radio" name="bottomselect" id="bottomselect" value="1" onclick="DisTime('bottomhour','bottomfix,bottommix_dis')" />每天的某些小时内播放&nbsp;
				<input type="radio" class="radio" name="bottomselect" id="bottomselect" value="2" onclick="DisTime('bottommix_dis','bottomhour,bottomfix')" />按照月、日、小时等混合设置&nbsp;
			</td>
		</tr>
		<tr>
			<td>
				<!--固定日期段-->
				<div id="bottomfix" style="display:none">
					<table>
						<tr>
							<td>播放广告日期范围(格式 yyyy-mm-dd):&nbsp;&nbsp; <input id="bottomfix1" name='bottomfix1' onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)"
									onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" readonly='readonly' style='width:80' title='点击打开日期控件'
									onclick='calendar.setHook(this)' runat='server' /> -- <input id="bottomfix2" name='bottomfix2' onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)"
									onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" readonly='readonly' style='width:80' title='点击打开日期控件' onclick='calendar.setHook(this)'
									runat='server' /></td>
						</tr>
					</table>
				</div>
				<!--end固定日期段-->
				<!--每天的小时-->
				<div id="bottomhour" style="display:none">
					<table>
						<tr>
							<td><input type="checkbox" name="statbottom" value="0" class="checkbox" />0点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statbottom" value="1" class="checkbox" />1点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statbottom" value="2" class="checkbox" />2点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statbottom" value="3" class="checkbox" />3点&nbsp;&nbsp;</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="statbottom" value="4" class="checkbox" />4点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statbottom" value="5" class="checkbox" />5点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statbottom" value="6" class="checkbox" />6点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statbottom" value="7" class="checkbox" />7点&nbsp;&nbsp;</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="statbottom" value="8" class="checkbox" />8点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statbottom" value="9" class="checkbox" />9点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statbottom" value="10" class="checkbox" />10点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statbottom" value="11" class="checkbox" />11点&nbsp;&nbsp;</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="statbottom" value="12" class="checkbox" />12点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statbottom" value="13" class="checkbox" />13点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statbottom" value="14" class="checkbox" />14点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statbottom" value="15" class="checkbox" />15点&nbsp;&nbsp;</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="statbottom" value="16" class="checkbox" />16点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statbottom" value="17" class="checkbox" />17点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statbottom" value="18" class="checkbox" />18点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statbottom" value="19" class="checkbox" />19点&nbsp;&nbsp;</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="statbottom" value="20" class="checkbox" />20点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statbottom" value="21" class="checkbox" />21点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statbottom" value="22" class="checkbox" />22点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statbottom" value="23" class="checkbox" />23点&nbsp;&nbsp;</td>
						</tr>
					</table>
				</div>
				<!--end每天的小时-->
				<!--混合设置-->
				<div id="bottommix_dis" style="display:none">
					<table>
						<tr>
							<td>
								<input type="radio" class="radio" name="bottomdayorweek" value="0" onclick="DisTime('bottomdayselect','bottomweekselect')" />&nbsp;按号数设置
								<input type="radio" class="radio" name="bottomdayorweek" value="1" onclick="DisTime('bottomweekselect','bottomdayselect')" />&nbsp;按周几设置
							</td>
						</tr>
					</table>
					<table>
						<tr>
							<td>
								请设置播放广告的月份(1-12) ：<br />
								<table>
									<tr>
										<td><input type="checkbox" name="bottommonth" value="1" class="checkbox" />1月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="bottommonth" value="2" class="checkbox" />2月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="bottommonth" value="3" class="checkbox" />3月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="bottommonth" value="4" class="checkbox" />4月&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="bottommonth" value="5" class="checkbox" />5月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="bottommonth" value="6" class="checkbox" />6月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="bottommonth" value="7" class="checkbox" />7月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="bottommonth" value="8" class="checkbox" />8月&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="bottommonth" value="9" class="checkbox" />9月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="bottommonth" value="10" class="checkbox" />10月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="bottommonth" value="11" class="checkbox" />11月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="bottommonth" value="12" class="checkbox" />12月&nbsp;&nbsp;</td>
									</tr>
								</table>
								<div id="bottomdayselect">
									请设置各月份的某些天(1-31) ：<br />
									<table>
										<tr>
											<td><input type="checkbox" name="bottomday" value="1" class="checkbox" />1号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="bottomday" value="2" class="checkbox" />2号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="bottomday" value="3" class="checkbox" />3号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="bottomday" value="4" class="checkbox" />4号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="bottomday" value="5" class="checkbox" />5号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="bottomday" value="6" class="checkbox" />6号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="bottomday" value="7" class="checkbox" />7号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="bottomday" value="8" class="checkbox" />8号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="bottomday" value="9" class="checkbox" />9号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="bottomday" value="10" class="checkbox" />10号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="bottomday" value="11" class="checkbox" />11号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="bottomday" value="12" class="checkbox" />12号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="bottomday" value="13" class="checkbox" />13号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="bottomday" value="14" class="checkbox" />14号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="bottomday" value="15" class="checkbox" />15号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="bottomday" value="16" class="checkbox" />16号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="bottomday" value="17" class="checkbox" />17号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="bottomday" value="18" class="checkbox" />18号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="bottomday" value="19" class="checkbox" />19号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="bottomday" value="20" class="checkbox" />20号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="bottomday" value="21" class="checkbox" />21号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="bottomday" value="22" class="checkbox" />22号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="bottomday" value="23" class="checkbox" />23号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="bottomday" value="24" class="checkbox" />24号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="bottomday" value="25" class="checkbox" />25号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="bottomday" value="26" class="checkbox" />26号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="bottomday" value="27" class="checkbox" />27号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="bottomday" value="28" class="checkbox" />28号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="bottomday" value="29" class="checkbox" />29号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="bottomday" value="30" class="checkbox" />30号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="bottomday" value="31" class="checkbox" />31号&nbsp;&nbsp;</td>
										</tr>
									</table>
								</div>
								<div id="bottomweekselect" style="display:none">
									请设置各月份每周的周几(1-7)：<br />
									<table>
										<tr>
											<td><input type="checkbox" name="bottomweek" value="1" class="checkbox" />周一&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="bottomweek" value="2" class="checkbox" />周二&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="bottomweek" value="3" class="checkbox" />周三&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="bottomweek" value="4" class="checkbox" />周四&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="bottomweek" value="5" class="checkbox" />周五&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="bottomweek" value="6" class="checkbox" />周六&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="bottomweek" value="7" class="checkbox" />周七&nbsp;&nbsp;</td>
										</tr>
									</table>
								</div>
								请设置某天(周几)播放广告的时间(0-23)：<br />
								<table>
									<tr>
										<td><input type="checkbox" name="bottomperhour" value="0" class="checkbox" />0点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="bottomperhour" value="1" class="checkbox" />1点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="bottomperhour" value="2" class="checkbox" />2点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="bottomperhour" value="3" class="checkbox" />3点&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="bottomperhour" value="4" class="checkbox" />4点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="bottomperhour" value="5" class="checkbox" />5点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="bottomperhour" value="6" class="checkbox" />6点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="bottomperhour" value="7" class="checkbox" />7点&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="bottomperhour" value="8" class="checkbox" />8点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="bottomperhour" value="9" class="checkbox" />9点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="bottomperhour" value="10" class="checkbox" />10点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="bottomperhour" value="11" class="checkbox" />11点&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="bottomperhour" value="12" class="checkbox" />12点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="bottomperhour" value="13" class="checkbox" />13点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="bottomperhour" value="14" class="checkbox" />14点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="bottomperhour" value="15" class="checkbox" />15点&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="bottomperhour" value="16" class="checkbox" />16点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="bottomperhour" value="17" class="checkbox" />17点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="bottomperhour" value="18" class="checkbox" />18点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="bottomperhour" value="19" class="checkbox" />19点&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="bottomperhour" value="20" class="checkbox" />20点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="bottomperhour" value="21" class="checkbox" />21点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="bottomperhour" value="22" class="checkbox" />22点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="bottomperhour" value="23" class="checkbox" />23点&nbsp;&nbsp;</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</div>
				<script type="text/javascript" language="javascript">
    <!--
     CheckTime('bottom','<%=initarray[3]%>')
    //-->
				</script>
			</td>
		</tr>
	</table>
	<!--end 选择广告时间-->
	<br />
	<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0">
		<tr>
			<td class="title" width="30%">浮动广告</td>
			<td align="right" class="td1">
				<a name="dv_ads_3"></a><a href="#"><img src="images/p_up.gif" border="0" title="顶部"></a>&nbsp;
				<a href="#bottom"><img src="images/p_down.gif" border="0" title="底部"></a>&nbsp;
			</td>
		</tr>
		<tr>
			<td>开启浮动广告<br />
				<span>如果没开启，所有相关设置均无效。</span></td>
			<td>
				<input type="radio" class="radio" <% if(initarray[4]=="0"||initarray[4]==null)Response.Write("checked=\"checked\"");%> value="0" name="ads_float_on" />否&nbsp;&nbsp;
				<input type="radio" class="radio" <% if(initarray[4]=="1")Response.Write("checked=\"checked\"");%> value="1" name="ads_float_on" />是 
				&nbsp;&nbsp;
			</td>
		</tr>
		<tr>
			<td>浮动广告图片地址<br />
				<span>请填写浮动广告图片地址</span></td>
			<td>
				<input id="ads_float_picurl" size="60" name="ads_float_picurl" value="<%if(initarray[5]!=null)Response.Write(initarray[5]);%>" onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" />
			</td>
		</tr>
		<tr>
			<td>浮动广告链接地址<br />
				<span>请填写浮动广告点击后前往的地址</span></td>
			<td>
				<input id="ads_float_linkurl" size="60" name="ads_float_linkurl" value="<%if(initarray[6]!=null)Response.Write(initarray[6]);%>" onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" />
			</td>
		</tr>
		<tr>
			<td>浮动广告图片宽度<br />
				<span>象素，大于0的数字。</span></td>
			<td>
				<input id="ads_float_picwidth" size="10" value="<% if(initarray[7]==null) Response.Write("80");else Response.Write(initarray[7]);%>" name="ads_float_picwidth" onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" />
			</td>
		</tr>
		<tr>
			<td>浮动广告图片高度<br />
				<span>象素，大于0的数字。</span></td>
			<td>
				<input id="ads_float_picheight" size="10" value="<% if(initarray[8]==null) Response.Write("33");else Response.Write(initarray[8]);%>" name="ads_float_picheight" onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" />
			</td>
		</tr>
	</table>
	<!--选择广告时间-->
	<!--initarray[9]是时间-->
	<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0">
		<tr>
			<td class="title">请设置播放浮动广告内容的时间段
			</td>
		</tr>
		<tr>
			<td>
				<% TimeTips(initarray[9]); %>
				选择浮动广告时间段方式：<input type="radio" class="radio" name="floatselect" id="floatselect" value="0" onclick="DisTime('floatfix','floathour,floatmix_dis')" />固定日期段内播放&nbsp;&nbsp;
				<input type="radio" name="floatselect" class="radio" id="floatselect" value="1" onclick="DisTime('floathour','floatfix,floatmix_dis')" />每天的某些小时内播放&nbsp;&nbsp;
				<input type="radio" name="floatselect" class="radio" id="floatselect" value="2" onclick="DisTime('floatmix_dis','floathour,floatfix')" />按照月、日、小时等混合设置
			</td>
		</tr>
		<tr>
			<td>
				<div id="floatfix" style="display:none">
					<table>
						<tr>
							<td>播放广告日期范围(格式 yyyy-mm-dd):&nbsp;&nbsp; <input id="floatfix1" name='floatfix1' readonly='readonly' onFocus="IEvent('focus',this)"
									onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" style='width:80'
									title='点击打开日期控件' onclick='calendar.setHook(this)' runat='server' /> -- <input id="floatfix2" name='floatfix2' readonly='readonly' onFocus="IEvent('focus',this)"
									onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" style='width:80' title='点击打开日期控件' onclick='calendar.setHook(this)'
									runat='server' /></td>
						</tr>
					</table>
				</div>
				<!--end固定日期段-->
				<!--每天的小时-->
				<div id="floathour" style="display:none">
					<table>
						<tr>
							<td><input type="checkbox" name="statfloat" value="0" class="checkbox" />0点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfloat" value="1" class="checkbox" />1点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfloat" value="2" class="checkbox" />2点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfloat" value="3" class="checkbox" />3点&nbsp;&nbsp;</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="statfloat" value="4" class="checkbox" />4点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfloat" value="5" class="checkbox" />5点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfloat" value="6" class="checkbox" />6点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfloat" value="7" class="checkbox" />7点&nbsp;&nbsp;</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="statfloat" value="8" class="checkbox" />8点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfloat" value="9" class="checkbox" />9点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfloat" value="10" class="checkbox" />10点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfloat" value="11" class="checkbox" />11点&nbsp;&nbsp;</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="statfloat" value="12" class="checkbox" />12点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfloat" value="13" class="checkbox" />13点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfloat" value="14" class="checkbox" />14点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfloat" value="15" class="checkbox" />15点&nbsp;&nbsp;</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="statfloat" value="16" class="checkbox" />16点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfloat" value="17" class="checkbox" />17点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfloat" value="18" class="checkbox" />18点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfloat" value="19" class="checkbox" />19点&nbsp;&nbsp;</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="statfloat" value="20" class="checkbox" />20点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfloat" value="21" class="checkbox" />21点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfloat" value="22" class="checkbox" />22点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfloat" value="23" class="checkbox" />23点&nbsp;&nbsp;</td>
						</tr>
					</table>
				</div>
				<!--end每天的小时-->
				<!--混合设置-->
				<div id="floatmix_dis" style="display:none">
					<table>
						<tr>
							<td>
								<input type="radio" class="radio" name="floatdayorweek" value="0" onclick="DisTime('floatdayselect','floatweekselect')" />按号数设置&nbsp;&nbsp;
								<input type="radio" class="radio" name="floatdayorweek" value="1" onclick="DisTime('floatweekselect','floatdayselect')" />按周几设置
							</td>
						</tr>
					</table>
					<table>
						<tr>
							<td>
								请设置播放广告的月份(1-12) ：<br />
								<table>
									<tr>
										<td><input type="checkbox" name="floatmonth" value="1" class="checkbox" />1月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="floatmonth" value="2" class="checkbox" />2月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="floatmonth" value="3" class="checkbox" />3月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="floatmonth" value="4" class="checkbox" />4月&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="floatmonth" value="5" class="checkbox" />5月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="floatmonth" value="6" class="checkbox" />6月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="floatmonth" value="7" class="checkbox" />7月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="floatmonth" value="8" class="checkbox" />8月&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="floatmonth" value="9" class="checkbox" />9月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="floatmonth" value="10" class="checkbox" />10月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="floatmonth" value="11" class="checkbox" />11月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="floatmonth" value="12" class="checkbox" />12月&nbsp;&nbsp;</td>
									</tr>
								</table>
								<div id="floatdayselect">
									请设置各月份的某些天(1-31) ：<br />
									<table>
										<tr>
											<td><input type="checkbox" name="floatday" value="1" class="checkbox" />1号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="floatday" value="2" class="checkbox" />2号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="floatday" value="3" class="checkbox" />3号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="floatday" value="4" class="checkbox" />4号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="floatday" value="5" class="checkbox" />5号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="floatday" value="6" class="checkbox" />6号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="floatday" value="7" class="checkbox" />7号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="floatday" value="8" class="checkbox" />8号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="floatday" value="9" class="checkbox" />9号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="floatday" value="10" class="checkbox" />10号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="floatday" value="11" class="checkbox" />11号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="floatday" value="12" class="checkbox" />12号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="floatday" value="13" class="checkbox" />13号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="floatday" value="14" class="checkbox" />14号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="floatday" value="15" class="checkbox" />15号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="floatday" value="16" class="checkbox" />16号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="floatday" value="17" class="checkbox" />17号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="floatday" value="18" class="checkbox" />18号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="floatday" value="19" class="checkbox" />19号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="floatday" value="20" class="checkbox" />20号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="floatday" value="21" class="checkbox" />21号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="floatday" value="22" class="checkbox" />22号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="floatday" value="23" class="checkbox" />23号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="floatday" value="24" class="checkbox" />24号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="floatday" value="25" class="checkbox" />25号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="floatday" value="26" class="checkbox" />26号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="floatday" value="27" class="checkbox" />27号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="floatday" value="28" class="checkbox" />28号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="floatday" value="29" class="checkbox" />29号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="floatday" value="30" class="checkbox" />30号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="floatday" value="31" class="checkbox" />31号&nbsp;&nbsp;</td>
										</tr>
									</table>
								</div>
								<div id="floatweekselect" style="display:none">
									请设置各月份每周的周几(1-7)：<br />
									<table>
										<tr>
											<td><input type="checkbox" name="floatweek" value="1" class="checkbox" />周一&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="floatweek" value="2" class="checkbox" />周二&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="floatweek" value="3" class="checkbox" />周三&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="floatweek" value="4" class="checkbox" />周四&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="floatweek" value="5" class="checkbox" />周五&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="floatweek" value="6" class="checkbox" />周六&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="floatweek" value="7" class="checkbox" />周七&nbsp;&nbsp;</td>
										</tr>
									</table>
								</div>
								请设置某天(周几)播放广告的时间(0-23)：<br />
								<table>
									<tr>
										<td><input type="checkbox" name="floatperhour" value="0" class="checkbox" />0点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="floatperhour" value="1" class="checkbox" />1点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="floatperhour" value="2" class="checkbox" />2点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="floatperhour" value="3" class="checkbox" />3点&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="floatperhour" value="4" class="checkbox" />4点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="floatperhour" value="5" class="checkbox" />5点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="floatperhour" value="6" class="checkbox" />6点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="floatperhour" value="7" class="checkbox" />7点&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="floatperhour" value="8" class="checkbox" />8点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="floatperhour" value="9" class="checkbox" />9点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="floatperhour" value="10" class="checkbox" />10点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="floatperhour" value="11" class="checkbox" />11点&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="floatperhour" value="12" class="checkbox" />12点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="floatperhour" value="13" class="checkbox" />13点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="floatperhour" value="14" class="checkbox" />14点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="floatperhour" value="15" class="checkbox" />15点&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="floatperhour" value="16" class="checkbox" />16点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="floatperhour" value="17" class="checkbox" />17点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="floatperhour" value="18" class="checkbox" />18点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="floatperhour" value="19" class="checkbox" />19点&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="floatperhour" value="20" class="checkbox" />20点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="floatperhour" value="21" class="checkbox" />21点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="floatperhour" value="22" class="checkbox" />22点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="floatperhour" value="23" class="checkbox" />23点&nbsp;&nbsp;</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</div>
				<script type="text/javascript" language="javascript">
    <!--
     CheckTime('float','<%=initarray[9]%>')
    //-->
				</script>
			</td>
		</tr>
	</table>
	<!--end 选择广告时间-->
	<br />
	<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0">
		<tr>
			<td class="title" width="30%">固定广告</td>
			<td align="right" class="td1">
				<a name="dv_ads_4"></a><a href="#"><img src="images/p_up.gif" border="0" title="顶部"></a>&nbsp;
				<a href="#bottom"><img src="images/p_down.gif" border="0" title="底部"></a>&nbsp;
			</td>
		</tr>
		<tr>
			<td>开启固定广告<br />
				<span>如果没开启，所有相关设置均无效。</span></td>
			<td><input type="radio" class="radio" <% if(initarray[10]=="0"||initarray[10]==null)Response.Write("checked=\"checked\"");%> value="0" name="ads_picad_on" />否&nbsp;&nbsp;
				<input type="radio" class="radio" <% if(initarray[10]=="1")Response.Write("checked=\"checked\"");%> value="1" name="ads_picad_on" />是&nbsp;&nbsp;
			</td>
		</tr>
		<tr>
			<td>固定广告图片地址<br />
				<span>请填写固定广告图片地址</span></td>
			<td><input id="ads_picad_picurl" size="60" name="ads_picad_picurl" value="<%if(initarray[11]!=null)Response.Write(initarray[11]);%>" onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" />
			</td>
		</tr>
		<tr>
			<td>固定广告链接地址<br />
				<span>请填写固定广告点击后前往的地址</span></td>
			<td><input id="ads_picad_linkurl" size="60" name="ads_picad_linkurl"  value="<%if(initarray[12]!=null)Response.Write(initarray[12]);%>" onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" />
			</td>
		</tr>
		<tr>
			<td>固定广告图片宽度<br />
				<span>象素,大于0的数字。</span></td>
			<td>
				<input id="ads_picad_picwidth" size="10" value="<% if(initarray[13]==null) Response.Write("80");else Response.Write(initarray[13]);%>" name="ads_picad_picwidth" onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" />
			</td>
		</tr>
		<tr>
			<td>固定广告图片高度<br />
				<span>象素,大于0的数字。</span></td>
			<td><input id="ads_picad_picheight" size="10"  value="<% if(initarray[14]==null) Response.Write("33");else Response.Write(initarray[14]);%>" name="ads_picad_picheight" onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" />
			</td>
		</tr>
	</table>
	<!--选择广告时间-->
	<!--initarray[15]是时间-->
	<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0">
		<tr>
			<td class="title">请设置播放固定广告内容的时间段
			</td>
		</tr>
		<tr>
			<td>
				<%	
	  TimeTips(initarray[15]);
	%>
				选择固定广告时间段方式：&nbsp;&nbsp; <input type="radio" class="radio" name="fixselect" id="fixselect" value="0" onclick="DisTime('fixfix','fixhour,fixmix_dis')" />固定日期段内播放&nbsp;&nbsp;
				<input type="radio" class="radio" name="fixselect" id="fixselect" value="1" onclick="DisTime('fixhour','fixfix,fixmix_dis')" />每天的某些小时内播放&nbsp;&nbsp;
				<input type="radio" class="radio" name="fixselect" id="fixselect" value="2" onclick="DisTime('fixmix_dis','fixhour,fixfix')" />按照月、日、小时等混合设置
			</td>
		</tr>
		<tr>
			<td>
				<!--固定日期段-->
				<div id="fixfix" style="display:none">
					<table>
						<tr>
							<td>播放广告日期范围(格式 yyyy-mm-dd):&nbsp;&nbsp; <input id="fixfix1" name='fixfix1' onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)"
									onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" readonly='readonly' style='width:80' title='点击打开日期控件'
									onclick='calendar.setHook(this)' runat='server' /> -- <input id="fixfix2" name='fixfix2' readonly='readonly' style='width:80' title='点击打开日期控件'
									onclick='calendar.setHook(this)' onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"
									runat='server' /></td>
						</tr>
					</table>
				</div>
				<!--end固定日期段-->
				<!--每天的小时-->
				<div id="fixhour" style="display:none">
					<table>
						<tr>
							<td><input type="checkbox" name="statfix" value="0" class="checkbox" />0点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfix" value="1" class="checkbox" />1点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfix" value="2" class="checkbox" />2点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfix" value="3" class="checkbox" />3点&nbsp;&nbsp;</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="statfix" value="4" class="checkbox" />4点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfix" value="5" class="checkbox" />5点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfix" value="6" class="checkbox" />6点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfix" value="7" class="checkbox" />7点&nbsp;&nbsp;</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="statfix" value="8" class="checkbox" />8点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfix" value="9" class="checkbox" />9点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfix" value="10" class="checkbox" />10点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfix" value="11" class="checkbox" />11点&nbsp;&nbsp;</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="statfix" value="12" class="checkbox" />12点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfix" value="13" class="checkbox" />13点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfix" value="14" class="checkbox" />14点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfix" value="15" class="checkbox" />15点&nbsp;&nbsp;</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="statfix" value="16" class="checkbox" />16点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfix" value="17" class="checkbox" />17点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfix" value="18" class="checkbox" />18点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfix" value="19" class="checkbox" />19点&nbsp;&nbsp;</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="statfix" value="20" class="checkbox" />20点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfix" value="21" class="checkbox" />21点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfix" value="22" class="checkbox" />22点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statfix" value="23" class="checkbox" />23点&nbsp;&nbsp;</td>
						</tr>
					</table>
				</div>
				<!--end每天的小时-->
				<!--混合设置-->
				<div id="fixmix_dis" style="display:none">
					<table>
						<tr>
							<td>
								<input type="radio" class="radio" name="fixdayorweek" value="0" onclick="DisTime('fixdayselect','fixweekselect')" />按号数设置&nbsp;&nbsp;
								<input type="radio" class="radio" name="fixdayorweek" value="1" onclick="DisTime('fixweekselect','fixdayselect')" />按周几设置
							</td>
						</tr>
					</table>
					<table>
						<tr>
							<td>
								请设置播放广告的月份(1-12) ：<br />
								<table>
									<tr>
										<td><input type="checkbox" name="fixmonth" value="1" class="checkbox" />1月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="fixmonth" value="2" class="checkbox" />2月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="fixmonth" value="3" class="checkbox" />3月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="fixmonth" value="4" class="checkbox" />4月&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="fixmonth" value="5" class="checkbox" />5月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="fixmonth" value="6" class="checkbox" />6月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="fixmonth" value="7" class="checkbox" />7月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="fixmonth" value="8" class="checkbox" />8月&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="fixmonth" value="9" class="checkbox" />9月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="fixmonth" value="10" class="checkbox" />10月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="fixmonth" value="11" class="checkbox" />11月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="fixmonth" value="12" class="checkbox" />12月&nbsp;&nbsp;</td>
									</tr>
								</table>
								<div id="fixdayselect">
									请设置各月份的某些天(1-31) ：<br />
									<table>
										<tr>
											<td><input type="checkbox" name="fixday" value="1" class="checkbox" />1号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="fixday" value="2" class="checkbox" />2号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="fixday" value="3" class="checkbox" />3号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="fixday" value="4" class="checkbox" />4号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="fixday" value="5" class="checkbox" />5号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="fixday" value="6" class="checkbox" />6号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="fixday" value="7" class="checkbox" />7号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="fixday" value="8" class="checkbox" />8号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="fixday" value="9" class="checkbox" />9号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="fixday" value="10" class="checkbox" />10号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="fixday" value="11" class="checkbox" />11号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="fixday" value="12" class="checkbox" />12号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="fixday" value="13" class="checkbox" />13号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="fixday" value="14" class="checkbox" />14号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="fixday" value="15" class="checkbox" />15号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="fixday" value="16" class="checkbox" />16号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="fixday" value="17" class="checkbox" />17号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="fixday" value="18" class="checkbox" />18号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="fixday" value="19" class="checkbox" />19号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="fixday" value="20" class="checkbox" />20号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="fixday" value="21" class="checkbox" />21号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="fixday" value="22" class="checkbox" />22号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="fixday" value="23" class="checkbox" />23号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="fixday" value="24" class="checkbox" />24号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="fixday" value="25" class="checkbox" />25号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="fixday" value="26" class="checkbox" />26号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="fixday" value="27" class="checkbox" />27号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="fixday" value="28" class="checkbox" />28号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="fixday" value="29" class="checkbox" />29号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="fixday" value="30" class="checkbox" />30号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="fixday" value="31" class="checkbox" />31号&nbsp;&nbsp;</td>
										</tr>
									</table>
								</div>
								<div id="fixweekselect" style="display:none">
									请设置各月份每周的周几(1-7)：<br />
									<table>
										<tr>
											<td><input type="checkbox" name="fixweek" value="1" class="checkbox" />周一&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="fixweek" value="2" class="checkbox" />周二&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="fixweek" value="3" class="checkbox" />周三&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="fixweek" value="4" class="checkbox" />周四&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="fixweek" value="5" class="checkbox" />周五&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="fixweek" value="6" class="checkbox" />周六&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="fixweek" value="7" class="checkbox" />周七&nbsp;&nbsp;</td>
										</tr>
									</table>
								</div>
								请设置某天(周几)播放广告的时间(0-23)：<br />
								<table>
									<tr>
										<td><input type="checkbox" name="fixperhour" value="0" class="checkbox" />0点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="fixperhour" value="1" class="checkbox" />1点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="fixperhour" value="2" class="checkbox" />2点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="fixperhour" value="3" class="checkbox" />3点&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="fixperhour" value="4" class="checkbox" />4点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="fixperhour" value="5" class="checkbox" />5点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="fixperhour" value="6" class="checkbox" />6点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="fixperhour" value="7" class="checkbox" />7点&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="fixperhour" value="8" class="checkbox" />8点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="fixperhour" value="9" class="checkbox" />9点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="fixperhour" value="10" class="checkbox" />10点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="fixperhour" value="11" class="checkbox" />11点&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="fixperhour" value="12" class="checkbox" />12点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="fixperhour" value="13" class="checkbox" />13点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="fixperhour" value="14" class="checkbox" />14点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="fixperhour" value="15" class="checkbox" />15点&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="fixperhour" value="16" class="checkbox" />16点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="fixperhour" value="17" class="checkbox" />17点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="fixperhour" value="18" class="checkbox" />18点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="fixperhour" value="19" class="checkbox" />19点&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="fixperhour" value="20" class="checkbox" />20点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="fixperhour" value="21" class="checkbox" />21点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="fixperhour" value="22" class="checkbox" />22点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="fixperhour" value="23" class="checkbox" />23点&nbsp;&nbsp;</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</div>
				<script type="text/javascript" language="javascript">
    <!--
     CheckTime('fix','<%=initarray[15]%>')
    //-->
				</script>
			</td>
		</tr>
	</table>
	<!--end 选择广告时间-->
	<br />
	<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0">
		<tr>
			<td class="title" width="30%">帖间随机广告</td>
			<td align="right" class="td1">
				<a name="dv_ads_5"></a><a href="#"><img src="images/p_up.gif" border="0" title="顶部"></a>&nbsp;
				<a href="#bottom"><img src="images/p_down.gif" border="0" title="底部"></a>&nbsp;
			</td>
		</tr>
		<tr>
			<td>开启帖间随机广告<br />
				<span>如果没开启，所有相关设置均无效</span>
			</td>
			<td>
				<input type="radio" class="radio" <% if(initarray[16]=="0"||initarray[16]==null)Response.Write("checked=\"checked\"");%> value="0" name="ads_post_on" />否&nbsp;&nbsp;
				<input type="radio" class="radio" <% if(initarray[16]=="1")Response.Write("checked=\"checked\"");%> value="1" name="ads_post_on" />是&nbsp;
			</td>
		</tr>
		<tr>
			<td class="title" valign="top" colspan="2">帖间随机广告代码
			</td>
		</tr>
		<tr>
			<td align="left" valign="top" colspan="2">
				<textarea name="ads_post" style="width:90%;height:100px" id="ads_post" onFocus="IEvent('focus',this)"
					onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"><% if(initarray[17]==null){%>&lt;a href=&quot;http://www.dvbbs.net/buy.asp&quot; target=&quot;_blank&quot;&gt;动网论坛商业版热卖中&lt;/a&gt;
&lt;a href=&quot;http://p.dvbbs.net/&quot; target=&quot;_blank&quot;&gt;&lt;font color=&quot;red&quot;&gt;动网论坛PHP官方站点&lt;/font&gt;&lt;/a&gt;
&lt;a href=&quot;http://www.aspsky.cn&quot; target=&quot;_blank&quot;&gt;&lt;font color=&quot;blue&quot;&gt;动网论坛专用虚拟主机&lt;/font&gt;&lt;/a&gt;
&lt;a href=&quot;http://www.cndw.com&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;&lt;font color=&quot;#941AE6&quot;&gt;动网·网络社区源动力&lt;/font&gt;&lt;/b&gt;&lt;/a&gt;<%}else Response.Write(Server.HtmlEncode(initarray[17].ToString()));%>
				</textarea>
				<br />
				<span>请填写广告代码，每个广告一行，请用回车分开，支持HTML和脚本。</span>
			</td>
		</tr>
	</table>
	<!--选择广告时间-->
	<!--initarray[18]是广告时间-->
	<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0">
		<tr>
			<td class="title">请设置帖间随机广告内容的时间段
			</td>
		</tr>
		<tr>
			<td>
				<%	
	  TimeTips(initarray[18]);
	%>
				选择帖间随机广告时间段方式：&nbsp;&nbsp; <input type="radio" class="radio" name="postselect" id="postselect" value="0" onclick="DisTime('postfix','posthour,postmix_dis')" />固定日期段内播放&nbsp;&nbsp;
				<input type="radio" class="radio" name="postselect" id="postselect" value="1" onclick="DisTime('posthour','postfix,postmix_dis')" />每天的某些小时内播放&nbsp;&nbsp;
				<input type="radio" class="radio" name="postselect" id="postselect" value="2" onclick="DisTime('postmix_dis','posthour,postfix')" />按照月、日、小时等混合设置
			</td>
		</tr>
		<tr>
			<td>
				<!--固定日期段-->
				<div id="postfix" style="display:none">
					<table>
						<tr>
							<td>播放广告日期范围(格式 yyyy-mm-dd):&nbsp;&nbsp; <input id="postfix1" name='postfix1' onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)"
									onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" readonly='readonly' style='width:80' title='点击打开日期控件'
									onclick='calendar.setHook(this)' runat='server' /> -- <input id="postfix2" name='postfix2' onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)"
									onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" readonly='readonly' style='width:80' title='点击打开日期控件' onclick='calendar.setHook(this)'
									runat='server' /></td>
						</tr>
					</table>
				</div>
				<!--end固定日期段-->
				<!--每天的小时-->
				<div id="posthour" style="display:none">
					<table>
						<tr>
							<td><input type="checkbox" name="statpost" value="0" class="checkbox" />0点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statpost" value="1" class="checkbox" />1点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statpost" value="2" class="checkbox" />2点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statpost" value="3" class="checkbox" />3点&nbsp;&nbsp;</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="statpost" value="4" class="checkbox" />4点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statpost" value="5" class="checkbox" />5点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statpost" value="6" class="checkbox" />6点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statpost" value="7" class="checkbox" />7点&nbsp;&nbsp;</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="statpost" value="8" class="checkbox" />8点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statpost" value="9" class="checkbox" />9点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statpost" value="10" class="checkbox" />10点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statpost" value="11" class="checkbox" />11点&nbsp;&nbsp;</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="statpost" value="12" class="checkbox" />12点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statpost" value="13" class="checkbox" />13点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statpost" value="14" class="checkbox" />14点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statpost" value="15" class="checkbox" />15点&nbsp;&nbsp;</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="statpost" value="16" class="checkbox" />16点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statpost" value="17" class="checkbox" />17点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statpost" value="18" class="checkbox" />18点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statpost" value="19" class="checkbox" />19点&nbsp;&nbsp;</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="statpost" value="20" class="checkbox" />20点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statpost" value="21" class="checkbox" />21点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statpost" value="22" class="checkbox" />22点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="statpost" value="23" class="checkbox" />23点&nbsp;&nbsp;</td>
						</tr>
					</table>
				</div>
				<!--end每天的小时-->
				<!--混合设置-->
				<div id="postmix_dis" style="display:none">
					<table>
						<tr>
							<td>
								<input type="radio" class="radio" name="postdayorweek" value="0" onclick="DisTime('postdayselect','postweekselect')" />按号数设置&nbsp;&nbsp;
								<input type="radio" class="radio" name="postdayorweek" value="1" onclick="DisTime('postweekselect','postdayselect')" />按周几设置
							</td>
						</tr>
					</table>
					<table>
						<tr>
							<td>
								请设置播放广告的月份(1-12) ：<br />
								<table>
									<tr>
										<td><input type="checkbox" name="postmonth" value="1" class="checkbox" />1月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="postmonth" value="2" class="checkbox" />2月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="postmonth" value="3" class="checkbox" />3月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="postmonth" value="4" class="checkbox" />4月&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="postmonth" value="5" class="checkbox" />5月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="postmonth" value="6" class="checkbox" />6月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="postmonth" value="7" class="checkbox" />7月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="postmonth" value="8" class="checkbox" />8月&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="postmonth" value="9" class="checkbox" />9月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="postmonth" value="10" class="checkbox" />10月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="postmonth" value="11" class="checkbox" />11月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="postmonth" value="12" class="checkbox" />12月&nbsp;&nbsp;</td>
									</tr>
								</table>
								<div id="postdayselect">
									请设置各月份的某些天(1-31) ：<br />
									<table>
										<tr>
											<td><input type="checkbox" name="postday" value="1" class="checkbox" />1号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="postday" value="2" class="checkbox" />2号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="postday" value="3" class="checkbox" />3号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="postday" value="4" class="checkbox" />4号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="postday" value="5" class="checkbox" />5号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="postday" value="6" class="checkbox" />6号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="postday" value="7" class="checkbox" />7号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="postday" value="8" class="checkbox" />8号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="postday" value="9" class="checkbox" />9号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="postday" value="10" class="checkbox" />10号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="postday" value="11" class="checkbox" />11号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="postday" value="12" class="checkbox" />12号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="postday" value="13" class="checkbox" />13号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="postday" value="14" class="checkbox" />14号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="postday" value="15" class="checkbox" />15号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="postday" value="16" class="checkbox" />16号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="postday" value="17" class="checkbox" />17号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="postday" value="18" class="checkbox" />18号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="postday" value="19" class="checkbox" />19号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="postday" value="20" class="checkbox" />20号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="postday" value="21" class="checkbox" />21号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="postday" value="22" class="checkbox" />22号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="postday" value="23" class="checkbox" />23号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="postday" value="24" class="checkbox" />24号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="postday" value="25" class="checkbox" />25号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="postday" value="26" class="checkbox" />26号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="postday" value="27" class="checkbox" />27号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="postday" value="28" class="checkbox" />28号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="postday" value="29" class="checkbox" />29号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="postday" value="30" class="checkbox" />30号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="postday" value="31" class="checkbox" />31号&nbsp;&nbsp;</td>
										</tr>
									</table>
								</div>
								<div id="postweekselect" style="display:none">
									请设置各月份每周的周几(1-7)：<br />
									<table>
										<tr>
											<td><input type="checkbox" name="postweek" value="1" class="checkbox" />周一&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="postweek" value="2" class="checkbox" />周二&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="postweek" value="3" class="checkbox" />周三&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="postweek" value="4" class="checkbox" />周四&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="postweek" value="5" class="checkbox" />周五&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="postweek" value="6" class="checkbox" />周六&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="postweek" value="7" class="checkbox" />周七&nbsp;&nbsp;</td>
										</tr>
									</table>
								</div>
								请设置某天(周几)播放广告的时间(0-23)：<br />
								<table>
									<tr>
										<td><input type="checkbox" name="postperhour" value="0" class="checkbox" />0点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="postperhour" value="1" class="checkbox" />1点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="postperhour" value="2" class="checkbox" />2点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="postperhour" value="3" class="checkbox" />3点&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="postperhour" value="4" class="checkbox" />4点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="postperhour" value="5" class="checkbox" />5点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="postperhour" value="6" class="checkbox" />6点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="postperhour" value="7" class="checkbox" />7点&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="postperhour" value="8" class="checkbox" />8点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="postperhour" value="9" class="checkbox" />9点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="postperhour" value="10" class="checkbox" />10点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="postperhour" value="11" class="checkbox" />11点&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="postperhour" value="12" class="checkbox" />12点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="postperhour" value="13" class="checkbox" />13点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="postperhour" value="14" class="checkbox" />14点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="postperhour" value="15" class="checkbox" />15点&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="postperhour" value="16" class="checkbox" />16点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="postperhour" value="17" class="checkbox" />17点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="postperhour" value="18" class="checkbox" />18点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="postperhour" value="19" class="checkbox" />19点&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="postperhour" value="20" class="checkbox" />20点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="postperhour" value="21" class="checkbox" />21点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="postperhour" value="22" class="checkbox" />22点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="postperhour" value="23" class="checkbox" />23点&nbsp;&nbsp;</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</div>
				<script type="text/javascript" language="javascript">
    <!--
     CheckTime('post','<%=initarray[18]%>')
    //-->
				</script>
			</td>
		</tr>
	</table>
	<!--end 选择广告时间-->
	<br />
	<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0">
		<tr>
			<td class="title" width="30%">文字广告</td>
			<td align="right" class="td1">
				<a name="dv_ads_6"></a><a href="#"><img src="images/p_up.gif" border="0" title="顶部"></a>&nbsp;
				<a href="#bottom"><img src="images/p_down.gif" border="0" title="底部"></a>&nbsp;
			</td>
		</tr>
		<tr>
			<td>
				开启文字广告<br />
				<span>如果没开启，所有相关设置均无效。</span>
			</td>
			<td>
				<input type="radio" class="radio" <% if(initarray[19]=="0"||initarray[19]==null)Response.Write("checked=\"checked\"");%> value="0" name="ads_text_on" />否&nbsp;&nbsp;
				<input type="radio" class="radio" value="1" <% if(initarray[19]=="1")Response.Write("checked=\"checked\"");%> name="ads_text_on" />是&nbsp;&nbsp;
			</td>
		</tr>
		<tr>
			<td>
				版面文字广告位设置<br />
				<span>此设置只涉及版面，和首页无关。</span>
			</td>
			<td>
				<input type="radio" class="radio" <% if(initarray[20]=="1"||initarray[20]==null)Response.Write("checked=\"checked\"");%> value="1" name="ads_text_board" />帖子列表&nbsp;&nbsp;
				<input type="radio" class="radio" <% if(initarray[20]=="2")Response.Write("checked=\"checked\"");%> value="2" name="ads_text_board" />帖子内容&nbsp;&nbsp;
				<input type="radio" class="radio" <% if(initarray[20]=="3")Response.Write("checked=\"checked\"");%> value="3" name="ads_text_board" />两者都显示&nbsp;&nbsp;
				<input type="radio" class="radio" <% if(initarray[20]=="0")Response.Write("checked=\"checked\"");%> value="0" name="ads_text_board" />两者都不显示&nbsp;&nbsp;
			</td>
		</tr>
		<tr>
			<td>
				文字广告每行广告个数<br />
				<span>个,1-20不能为0</span>
			</td>
			<td>
				<input id="ads_text_seting" value="<% if(initarray[21]==null) Response.Write("4");else Response.Write(initarray[21]);%>" name="ads_text_seting" onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" />
			</td>
		</tr>
	</table>
	<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0">
		<tr>
			<td class="title">页面文字广告位内容
			</td>
		</tr>
		<tr>
			<td align="left" valign="top">
				<textarea name="ads_text" style="width:90%;height:100px" id="ads_text" onFocus="IEvent('focus',this)"
					onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)"><% if(initarray[22]==null) Response.Write("&lt;a href=&quot;http://www.dvbbs.net/buy.asp&quot; target=&quot;_blank&quot;&gt;动网论坛商业版热卖中&lt;/a&gt;&lt;a href=&quot;http://www.safe888.com/&quot; target=&quot;_blank&quot;&gt;&lt;font color=&quot;red&quot;&gt;动网雷傲共推抗DDOS攻击防火墙&lt;/font&gt;&lt;/a&gt;&lt;a href=&quot;http://www.aspsky.cn&quot; target=&quot;_blank&quot;&gt;&lt;font color=&quot;blue&quot;&gt;动网论坛专用虚拟主机&lt;/font&gt;&lt;/a&gt;&lt;a href=&quot;http://www.linkidc.com&quot; target=&quot;_blank&quot;&gt;&lt;font color=&quot;#941AE6&quot;&gt;零刻数据·南北互联主机托管&lt;/font&gt;&lt;/a&gt;");else Response.Write(Server.HtmlEncode(initarray[22].ToString()));%></textarea>
				<br />
				<span>请填写广告代码，每个广告一行，请用回车分开，支持HTML和脚本。</span>
			</td>
		</tr>
	</table>
	<!--选择广告时间-->
	<!--initarray[23]是广告时间-->
	<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0">
		<tr>
			<th>
				请设置播放页面文字广告内容的时间段</th>
		<tr>
			<td>
				<%	
	  TimeTips(initarray[23]);
	%>
				选择文字广告时间段方式：&nbsp;&nbsp; <input type="radio" class="radio" name="textselect" id="textselect" value="0" onclick="DisTime('textfix','texthour,textmix_dis')" />固定日期段内播放&nbsp;&nbsp;
				<input type="radio" class="radio" name="textselect" id="textselect" value="1" onclick="DisTime('texthour','textfix,textmix_dis')" />每天的某些小时内播放&nbsp;&nbsp;
				<input type="radio" class="radio" name="textselect" id="textselect" value="2" onclick="DisTime('textmix_dis','texthour,textfix')" />按照月、日、小时等混合设置
			</td>
		</tr>
		<tr>
			<td>
				<!--固定日期段-->
				<div id="textfix" style="display:none">
					<table>
						<tr>
							<td>播放广告日期范围(格式 yyyy-mm-dd):&nbsp;&nbsp; <input id="textfix1" name='textfix1' onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)"
									onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" readonly='readonly' style='width:80' title='点击打开日期控件'
									onclick='calendar.setHook(this)' runat='server' /> -- <input id="textfix2" name='textfix2' onFocus="IEvent('focus',this)" onBlur="IEvent('blur',this)"
									onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" readonly='readonly' style='width:80' title='点击打开日期控件' onclick='calendar.setHook(this)'
									runat='server' /></td>
						</tr>
					</table>
				</div>
				<!--end固定日期段-->
				<!--每天的小时-->
				<div id="texthour" style="display:none">
					<table>
						<tr>
							<td><input type="checkbox" name="stattext" value="0" class="checkbox" />0点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattext" value="1" class="checkbox" />1点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattext" value="2" class="checkbox" />2点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattext" value="3" class="checkbox" />3点&nbsp;&nbsp;</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="stattext" value="4" class="checkbox" />4点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattext" value="5" class="checkbox" />5点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattext" value="6" class="checkbox" />6点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattext" value="7" class="checkbox" />7点&nbsp;&nbsp;</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="stattext" value="8" class="checkbox" />8点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattext" value="9" class="checkbox" />9点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattext" value="10" class="checkbox" />10点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattext" value="11" class="checkbox" />11点&nbsp;&nbsp;</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="stattext" value="12" class="checkbox" />12点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattext" value="13" class="checkbox" />13点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattext" value="14" class="checkbox" />14点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattext" value="15" class="checkbox" />15点&nbsp;&nbsp;</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="stattext" value="16" class="checkbox" />16点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattext" value="17" class="checkbox" />17点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattext" value="18" class="checkbox" />18点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattext" value="19" class="checkbox" />19点&nbsp;&nbsp;</td>
						</tr>
						<tr>
							<td><input type="checkbox" name="stattext" value="20" class="checkbox" />20点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattext" value="21" class="checkbox" />21点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattext" value="22" class="checkbox" />22点&nbsp;&nbsp;</td>
							<td><input type="checkbox" name="stattext" value="23" class="checkbox" />23点&nbsp;&nbsp;</td>
						</tr>
					</table>
				</div>
				<!--end每天的小时-->
				<!--混合设置-->
				<div id="textmix_dis" style="display:none">
					<table>
						<tr>
							<td>
								<input type="radio" class="radio" name="textdayorweek" value="0" onclick="DisTime('textdayselect','textweekselect')" />按号数设置&nbsp;&nbsp;
								<input type="radio" class="radio" name="textdayorweek" value="1" onclick="DisTime('textweekselect','textdayselect')" />按周几设置
							</td>
						</tr>
					</table>
					<table>
						<tr>
							<td>
								请设置播放广告的月份(1-12) ：<br />
								<table>
									<tr>
										<td><input type="checkbox" name="textmonth" value="1" class="checkbox" />1月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="textmonth" value="2" class="checkbox" />2月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="textmonth" value="3" class="checkbox" />3月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="textmonth" value="4" class="checkbox" />4月&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="textmonth" value="5" class="checkbox" />5月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="textmonth" value="6" class="checkbox" />6月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="textmonth" value="7" class="checkbox" />7月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="textmonth" value="8" class="checkbox" />8月&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="textmonth" value="9" class="checkbox" />9月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="textmonth" value="10" class="checkbox" />10月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="textmonth" value="11" class="checkbox" />11月&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="textmonth" value="12" class="checkbox" />12月&nbsp;&nbsp;</td>
									</tr>
								</table>
								<div id="textdayselect">
									请设置各月份的某些天(1-31) ：<br />
									<table>
										<tr>
											<td><input type="checkbox" name="textday" value="1" class="checkbox" />1号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="textday" value="2" class="checkbox" />2号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="textday" value="3" class="checkbox" />3号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="textday" value="4" class="checkbox" />4号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="textday" value="5" class="checkbox" />5号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="textday" value="6" class="checkbox" />6号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="textday" value="7" class="checkbox" />7号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="textday" value="8" class="checkbox" />8号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="textday" value="9" class="checkbox" />9号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="textday" value="10" class="checkbox" />10号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="textday" value="11" class="checkbox" />11号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="textday" value="12" class="checkbox" />12号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="textday" value="13" class="checkbox" />13号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="textday" value="14" class="checkbox" />14号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="textday" value="15" class="checkbox" />15号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="textday" value="16" class="checkbox" />16号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="textday" value="17" class="checkbox" />17号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="textday" value="18" class="checkbox" />18号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="textday" value="19" class="checkbox" />19号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="textday" value="20" class="checkbox" />20号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="textday" value="21" class="checkbox" />21号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="textday" value="22" class="checkbox" />22号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="textday" value="23" class="checkbox" />23号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="textday" value="24" class="checkbox" />24号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="textday" value="25" class="checkbox" />25号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="textday" value="26" class="checkbox" />26号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="textday" value="27" class="checkbox" />27号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="textday" value="28" class="checkbox" />28号&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="textday" value="29" class="checkbox" />29号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="textday" value="30" class="checkbox" />30号&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="textday" value="31" class="checkbox" />31号&nbsp;&nbsp;</td>
										</tr>
									</table>
								</div>
								<div id="textweekselect" style="display:none">
									请设置各月份每周的周几(1-7)：<br />
									<table>
										<tr>
											<td><input type="checkbox" name="textweek" value="1" class="checkbox" />周一&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="textweek" value="2" class="checkbox" />周二&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="textweek" value="3" class="checkbox" />周三&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="textweek" value="4" class="checkbox" />周四&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td><input type="checkbox" name="textweek" value="5" class="checkbox" />周五&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="textweek" value="6" class="checkbox" />周六&nbsp;&nbsp;</td>
											<td><input type="checkbox" name="textweek" value="7" class="checkbox" />周七&nbsp;&nbsp;</td>
										</tr>
									</table>
								</div>
								请设置某天(周几)播放广告的时间(0-23)：<br />
								<table>
									<tr>
										<td><input type="checkbox" name="textperhour" value="0" class="checkbox" />0点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="textperhour" value="1" class="checkbox" />1点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="textperhour" value="2" class="checkbox" />2点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="textperhour" value="3" class="checkbox" />3点&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="textperhour" value="4" class="checkbox" />4点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="textperhour" value="5" class="checkbox" />5点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="textperhour" value="6" class="checkbox" />6点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="textperhour" value="7" class="checkbox" />7点&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="textperhour" value="8" class="checkbox" />8点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="textperhour" value="9" class="checkbox" />9点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="textperhour" value="10" class="checkbox" />10点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="textperhour" value="11" class="checkbox" />11点&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="textperhour" value="12" class="checkbox" />12点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="textperhour" value="13" class="checkbox" />13点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="textperhour" value="14" class="checkbox" />14点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="textperhour" value="15" class="checkbox" />15点&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="textperhour" value="16" class="checkbox" />16点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="textperhour" value="17" class="checkbox" />17点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="textperhour" value="18" class="checkbox" />18点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="textperhour" value="19" class="checkbox" />19点&nbsp;&nbsp;</td>
									</tr>
									<tr>
										<td><input type="checkbox" name="textperhour" value="20" class="checkbox" />20点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="textperhour" value="21" class="checkbox" />21点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="textperhour" value="22" class="checkbox" />22点&nbsp;&nbsp;</td>
										<td><input type="checkbox" name="textperhour" value="23" class="checkbox" />23点&nbsp;&nbsp;</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</div>
				<script type="text/javascript" language="javascript">
    <!--
     CheckTime('text','<%=initarray[23]%>')
    //-->
				</script>
			</td>
		</tr>
	</table>
	<!--end 选择广告时间-->
	<br />
	<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0">
		<tr>
			<td align="center" valign="top" class="bottom">
				<input name="AddNewTemp" type="submit" id="AddNewTemp" value="保  存" class="button" onFocus="IEvent('focus',this)"
					onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" /></td>
			<a name='bottom'></a>
		</tr>
	</table>
</form>
<%}%>
<br />
<br />
<bbs:AdminFooter runat="server" ID="Adminfooter1" NAME="Adminfooter1" />
