<%@ Page Inherits="Dvbbs.bbs.UI.Admin.admin_ForumNewsSetting" %>
<%@ 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" />
<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0" ID="Table1">
	<tr>
		<th colspan="2">
			论坛首页调用管理</th>
	</tr>
	<tr>
		<td width="20%" align="center">
			<button Style="width:80;height:50;border:1px solid #BED1DF;background:#F3F6FA;color:blue;">注意事项</button>
		</td>
		<td width="80%" class="right">①添加调用后，在列表中点击相应的预览可以看到效果，将调用代码复制到你的首页就可以了。
			<BR />
			②如果你的首页是和论坛程序分开，在填写调用模板时建议用上绝对地址路径。
			<BR />
			③若需要设置外部调用限制和设置临时文件名，修改Dv_News.aspx文件，文件里附有说明。
			<BR />
			④建议根据不同的调用设定更新时间间隔，如不是经常更新的版块调用可以设置长一些时间间隔，这样可以有效地减低消耗。
		</td>
	</tr>
	<tr>
		<td colSpan="2"><A href="admin_ForumNewsSetting.aspx?Act=AddSetting"><strong>添加首页调用</strong></A>
			&nbsp;&nbsp;|&nbsp;&nbsp;<A href="admin_ForumNewsSetting.aspx?Act=Newslist"><strong>首页调用列表</strong></A>
			&nbsp;&nbsp;|&nbsp;&nbsp;<A href="../Dv_Demo.aspx" target="_blank"><strong>查看所有调用演示</strong></A>
		</td>
	</tr>
</table>
<br />
<%
	if(Request["Act"]!=null && (Request["Act"].ToString()=="AddSetting" || Request["Act"].ToString()=="EditNewsInfo"))
	{
%>
<script type="text/javascript" language="javascript">
<!--
if(<%=NewsType%>!=0)
{
if(<%=NewsType%>==1)
{
	window.onload=Function("NewsTypeSel(<%=NewsType%>);CheckSel('FormatTime',<%=FormatTime%>);CheckSel('Orders',<%=Orders%>);CheckSel('TopicType',<%=TopicType%>);CheckSel('BoardType',<%=BoardType%>);CheckSel('BoardLimit',<%=BoardLimit%>);CheckSel('Boardid0',<%=Boardid%>);CheckSel('FormatTime',<%=FormatTime%>);");
}
else if(<%=NewsType%>==2)
{
window.onload=Function("NewsTypeSel(<%=NewsType%>);CheckSel('FormatTime',<%=FormatTime%>);");
}
else if(<%=NewsType%>==3)
{
window.onload=Function("NewsTypeSel(<%=NewsType%>);CheckSel('Orders',<%=Orders%>);CheckSel('Boardid1',<%=Boardid%>);CheckSel('FormatTime',<%=FormatTime%>);");
}
else if(<%=NewsType%>==4 || <%=NewsType%>==7)
{
window.onload=Function("NewsTypeSel(<%=NewsType%>);CheckSel('UserOrders',<%=UserOrders%>);CheckSel('FormatTime',<%=FormatTime%>);CheckSel('FormatTime',<%=FormatTime%>);");
}
else if(<%=NewsType%>==5)
{
window.onload=Function("NewsTypeSel(<%=NewsType%>);CheckSel('FormatTime',<%=FormatTime%>);CheckSel('Boardid2',<%=Boardid%>);");
}
else if(<%=NewsType%>==6)
{
window.onload=Function("NewsTypeSel(<%=NewsType%>);CheckSel('Boardid3',<%=Boardid%>);CheckSel('BoardLimit',<%=BoardLimit%>);CheckSel('FileType',<%=FileType%>);CheckSel('FileOrders',<%=FileOrders%>);CheckSel('BoardLock',<%=BoardLock%>);CheckSel('FormatTime',<%=FormatTime%>);");
}
else if(<%=NewsType%>==7)
{
window.onload=Function("NewsTypeSel(<%=NewsType%>);CheckSel('FormatTime',<%=FormatTime%>);");
}
else if(<%=NewsType%>==8)
{
window.onload=Function("NewsTypeSel(<%=NewsType%>);CheckSel('FormatTime',<%=FormatTime%>);");
}
else if(<%=NewsType%>==9)
{
window.onload=Function("NewsTypeSel(<%=NewsType%>);CheckSel('FormatTime',<%=FormatTime%>);CheckSel('Boardid4',<%=Boardid%>);CheckSel('BoardType4',<%=BoardType%>);");
}
}
//-->
</script>
<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0" ID="Table2">
	<form METHOD="post" ACTION="?Act=<%=Action%>" name="TheForm">
		<tr>
			<th colspan="2">
				首页调用管理</th></tr>
		<tr>
			<td class="left" width="30%">调用标识名称
			</td>
			<td class="right" width="70%">
				<input onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" onkeyup="OutputNewsCode(this.value);" type="text" maxLength="10" size="30" name="NewsName" value="<%=NewsName%>">
				<br />
				<span>请使用英文或数字设定调用名称,并且是唯一标识.不能超出10个字符。</span>
			</td>
		</tr>
		<tr>
			<td class="left">调用代码
			</td>
			<td class="right">
				<INPUT disabled onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" type="text" size="70" value='<script src="Dv_News.aspx?GetName=<%=NewsName%>"></script>' name="Newscode">
			</td>
		</tr>
		<tr>
			<td class="left">调用说明
			</td>
			<td class="right">
				<INPUT onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" type="text" maxLength="30" size="30" name="Intro" value="<%=Intro%>">
				<br />
				<span>提示说明,以作管理区分.不能超出30个字符。</span>
			</td>
		</tr>
		<tr>
			<td class="left">调用类型
			</td>
			<td class="right">
				<SELECT id="NewsType" onchange="NewsTypeSel(this.selectedIndex)" name="NewsType">
					<option value="0" selected>选取调用类型</option>
					<option value="1">帖子调用</option>
					<option value="2">信息调用</option>
					<option value="3">版块调用</option>
					<option value="4">会员调用</option>
					<option value="5">公告调用</option>
					<option value="6">展区调用</option>
					<option value="7">圈子调用</option>
					<option value="8">登录框调用</option>
					<option value="9">图片集调用</option>
				</SELECT>
			</td>
		</tr>
		<tr>
			<td class="left">数据更新间隔
			</td>
			<td class="right">
				<INPUT onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" type="text" size="13" name="Updatetime" value="<%=UpdateTime%>"><INPUT type="hidden" name="AddTime" value="<%=AddTime%>">&nbsp;&nbsp;<span>单位：秒</span>
			</td>
		</tr>
		<tr>
			<td class="left">
				时间显示格式
			</td>
			<td class="right">
				<SELECT id="FormatTime" name="FormatTime">
					<option value="0" selected>YYYY-M-D H:M:S(长格式)</option>
					<option value="1">YYYY年M月D</option>
					<option value="2">YYYY-M-D</option>
					<option value="3">H:M:S</option>
					<option value="4">hh:mm</option>
				</SELECT>
				<span>按服务器时间区域格式显示。</span>
			</td>
		</tr>
		<tr>
			<td class="left">调用设置</td>
			<td class="right">
				<div id="News"></div>
			</td>
		</tr>
</table>
<br />
<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0" ID="Table3">
	<tr>
		<th colspan="2">
			调用模板设置(请用HTML语法填写)
		</th>
	</tr>
	<!-- 调用模板设置 -->
	<tr>
		<td class="left" width="30%">模板_开始标记部分
		</td>
		<td class="right" width="70%">
			<textarea onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)"
				onMouseOut="IEvent('mouseout',this)" name="Skin_Head" ID="Skin_Head" style="WIDTH:100%"
				rows="3"><%=Server.HtmlEncode(Skin_Head)%></textarea>
			<br>
			<a href="javascript:admin_Size(-3,'Skin_Head')"><img src="images/minus.gif" unselectable="on" border='0'></a>
			<a href="javascript:admin_Size(3,'Skin_Head')"><img src="images/plus.gif" unselectable="on" border='0'></a>
		</td>
	</tr>
	<tr>
		<td class="left">
			模板_主体循环标记部分
			<fieldset title="模板变量">
				<legend>&nbsp;模板变量说明&nbsp;</legend>
				<div id="skin_info" align="left"></div>
			</fieldset>
		</td>
		<td valign="top" class="right">
			<div id="DisInput"></div>
			<textarea onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)"
				onMouseOut="IEvent('mouseout',this)" name="Skin_Main" ID="Skin_Main" style="WIDTH:100%"
				rows="10"><%=Server.HtmlEncode(Skin_Main)%></textarea> <textarea onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)"
				onMouseOut="IEvent('mouseout',this)" name="Skin_Main1" ID="Skin_Main1" style="WIDTH:100%;visibility:hidden;" rows="0" disabled="disabled">  帐号：<input tyep="text" name="name" size="12"  /> 密码：<input type="password" name="password" size="12"  maxlength="20" style="width:120;" onselectstart="return false"/>验证码：{$CheckCode} Cookie <select name="savedays"><option value="0" selected="selected">不保存</option><option value="1">保存一天</option><option value="30">保存一月</option><option value="365">保存一年</option></select> <input type="submit" name="submit" value="登录" /></textarea>
			<textarea name="Skin_Main2" ID="Skin_Main2" style="WIDTH:100%;visibility:hidden;" rows="0"
				disabled="disabled"><A onmouseover="displayStatusMsg();return     document.returnValue"           
href="javascript:jump2url()"><IMG  style="FILTER:     revealTrans(duration=2,transition=20)"   height=280 src="{$PicPath}"     width=260     border=0    name=bannerADrotator></A><br>
			</textarea>
			<br>
			<a href="javascript:admin_Size(-3,'Skin_Main')"><img src="images/minus.gif" unselectable="on" border='0'></a>
			<a href="javascript:admin_Size(3,'Skin_Main')"><img src="images/plus.gif" unselectable="on" border='0'></a>
		</td>
	</tr>
	<tr>
		<td class="left">模板_结束标记部分
		</td>
		<td class="right">
			<textarea onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)"
				onMouseOut="IEvent('mouseout',this)" name="Skin_Footer" ID="Skin_Footer" style="WIDTH:100%"
				rows="3"><%=Server.HtmlEncode(Skin_Footer)%></textarea>
			<br>
			<a href="javascript:admin_Size(-3,'Skin_Footer')"><img src="images/minus.gif" unselectable="on" border='0'></a>
			<a href="javascript:admin_Size(3,'Skin_Footer')"><img src="images/plus.gif" unselectable="on" border='0'></a>
		</td>
	</tr>
	<tr>
		<td align="center" colspan="2">
			<INPUT onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)"
				onMouseOut="IEvent('mouseout',this)" TYPE="submit" class="button" value="提交">&nbsp;&nbsp;&nbsp;<INPUT TYPE="reset" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)"
				onMouseOut="IEvent('mouseout',this)" class="button" value="重填">
		</td>
	</tr>
</table>
</form> </div> 
<!-- 设置信息部分 -->
<div id="News_1" style="DISPLAY: none">
	<!-- 帖子调用 -->
	<table cellpadding="0" cellspacing="1" width="100%" class="maintable" border="0">
		<tr>
			<td width="30%" class="left">
				显示记录数
			</td>
			<td class="right" width="70%">
				<INPUT TYPE="text" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" NAME="Total" size="5" value="<%=Total%>">
			</td>
		</tr>
		<tr>
			<td class="left">
				标题长度
			</td>
			<td class="right">
				<INPUT TYPE="text" NAME="Topiclen" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" size="5" value="<%=Topiclen%>">
			</td>
		</tr>
		<tr>
			<td class="left">
				内容长度
			</td>
			<td class="right">
				<INPUT TYPE="text" NAME="Contentlen" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" size="5" value="<%=Contentlen%>">
			</td>
		</tr>
		<tr>
			<td class="left">
				帖子排序
			</td>
			<td class="right">
				<SELECT NAME="Orders" ID="Orders">
					<option value="0" SELECTED>默认最新排序(推荐使用)</option>
					<option value="1">按照时间(按最新主题时间)</option>
					<option value="2">按照时间(按最新回复时间)</option>
					<option value="3">按照点击(最热帖)</option>
				</SELECT>
			</td>
		</tr>
		<tr>
			<td class="left">
				天数的限制
			</td>
			<td class="right">
				<INPUT TYPE="text" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" NAME="Sdate" size="5" value="<%=Sdate%>">
				<br />
				<span>查询多少天内帖子，1为当天。若为空则日期不限，建议为空。</span>
			</td>
		</tr>
		<tr>
			<td class="left">
				显示的类型
			</td>
			<td class="right">
				<SELECT NAME="TopicType" ID="TopicType">
					<option value="0" SELECTED>显示主题</option>
					<option value="1">显示精华主题</option>
					<option value="2">显示主题和回复</option>
				</SELECT>
				<br />
				<span>不推荐数据量大的用户使用调用主题和回复。</span>
			</td>
		</tr>
		<tr>
			<td class="left">
				调用的版面
			</td>
			<td class="right">
				<SELECT id="Boardid0" NAME="Boardid">
					<option value="0">选取所有版面</option>
					<%=jumplists%>
				</SELECT>
			</td>
		</tr>
		<tr>
			<td class="left">
				版 面 设 置
			</td>
			<td class="right">
				<SELECT NAME="BoardType" ID="BoardType">
					<option value="0" SELECTED>只显示该版面的数据</option>
					<option value="1">显示该版面的下级所有版面的数据</option>
				</SELECT>
			</td>
		</tr>
		<tr>
			<td class="left">
				版面的限制
			</td>
			<td class="right">
				<SELECT NAME="BoardLimit" ID="BoardLimit">
					<option value="0" SELECTED>显示所有数据</option>
					<option value="1">不显示特殊版面数据</option>
				</SELECT>
				<br />
				<span>特殊版面指隐藏版面和认证版面</span>
			</td>
		</tr>
		<tr>
			<td class="left">
				单独用户ID
			</td>
			<td class="right">
				<INPUT TYPE="text" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" NAME="UserIDList" value="<%=UserIDList%>">
				<br />
				<span>请填写用户会员ID,用英文逗号分隔</span>
			</td>
		</tr>
	</table>
	<SCRIPT LANGUAGE="JavaScript">
<!--
//BoardJumpListSelect_Admin('Boardid',"Boardid0","选取所有版面","",0);
//-->
	</SCRIPT>
</div>
<div id="News_2" style="DISPLAY:none">
	<!-- 信息调用 -->
	<table cellpadding="0" cellspacing="1" width="100%" class="maintable" border="0">
		<tr>
			<td><FONT face="宋体"></FONT></td>
		</tr>
	</table>
</div>
<div id="News_3" style="DISPLAY:none">
	<!-- 版块调用 -->
	<table cellpadding="0" cellspacing="1" width="100%" class="maintable" border="0">
		<tr>
			<td class="left" width="30%">
				显示模式
			</td>
			<td class="right" width="70%">
				<SELECT NAME="Orders" ID="Orders">
					<option value="0" selected>树型结构</option>
					<option value="1">地图结构</option>
				</SELECT>
			</td>
		</tr>
		<tr>
			<td class="left">
				每行显示数量
			</td>
			<td class="right">
				<input type="text" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" name="BoardTab" size="8" value="<%=Tab%>">&nbsp;&nbsp;<span>地图结构时，限制每行显示数量。</span>
			</td>
		</tr>
		<tr>
			<td class="left">
				限制调用版块的层数
			</td>
			<td>
				<input type="text" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" name="Depth" size="8" value="<%=Depth%>">
				<br />
				<span>如0，表示只调用第一级分类；为空则表示调用所有；<br />当地图结构模式时，层数超过2无效。</span>
			</td>
		</tr>
		<tr>
			<td class="left">
				调用的版面
			</td>
			<td class="right">
				<SELECT id="Boardid1" NAME="Boardid">
					<option value="0">选取所有版面</option>
					<%=jumplists%>
				</SELECT>
			</td>
		</tr>
		<tr>
			<td class="left">
				版块显示设置
			</td>
			<td class="right">
				<input type="radio" class="radio" name="Stats" value="0">显示所有版块
				<br />
				<input type="radio" class="radio" name="Stats" value="1" checked>不显示隐藏版块
			</td>
		</tr>
	</table>
	<SCRIPT LANGUAGE="JavaScript">
<!--
//BoardJumpListSelect_Admin('Boardid',"Boardid1","选取所有版面","",0);

//-->
	</SCRIPT>
</div>
<div id="News_4" style="DISPLAY:none">
	<!-- 会员调用 -->
	<table cellpadding="0" cellspacing="1" width="100%" class="maintable" border="0">
		<tr>
			<td class="left" width="20%">
				显示记录数
			</td>
			<td class="right" width="80%">
				<INPUT TYPE="text" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" NAME="Total" size="10" value="<%=Total%>">
			</td>
		</tr>
		<tr>
			<td class="left">
				会员排序
			</td>
			<td class="right">
				<SELECT NAME="UserOrders" ID="UserOrders">
					<option value="0" SELECTED>按注册时间</option>
					<option value="1">按用户文章</option>
					<option value="2">按用户主题</option>
					<option value="3">按用户金钱</option>
					<option value="4">按用户经验</option>
					<option value="5">按用户登陆次数</option>
				</SELECT>
			</td>
		</tr>
	</table>
</div>
<div id="News_5" style="DISPLAY:none">
	<!-- 公告调用 -->
	<table cellpadding="0" cellspacing="1" width="100%" class="maintable" border="0">
		<tr>
			<td class="left" width="20%">
				显示记录数
			</td>
			<td class="right" width="80%">
				<INPUT TYPE="text" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" NAME="Total" size="10" value="<%=Total%>">
			</td>
		</tr>
		<tr>
			<td class="left">
				标题长度
			</td>
			<td class="right">
				<INPUT TYPE="text" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" NAME="Topiclen" size="10" value="<%=Topiclen%>">
			</td>
		</tr>
		<tr>
			<td class="left">
				调用的版面
			</td>
			<td class="right">
				<SELECT id="Boardid2" NAME="Boardid">
					<option value="0">选取所有版面</option>
					<%=jumplists%>
				</SELECT>
			</td>
		</tr>
	</table>
	<SCRIPT LANGUAGE="JavaScript">
<!--
//BoardJumpListSelect_Admin('Boardid',"Boardid2","选取所有版面","",0);
//-->
	</SCRIPT>
</div>
<div id="News_6" style="DISPLAY:none">
	<!-- 展区调用 -->
	<table cellpadding="0" cellspacing="1" width="100%" class="maintable" border="0">
		<tr>
			<td class="left" width="20%">
				显示记录数
			</td>
			<td class="right" width="80%">
				<INPUT TYPE="text" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" NAME="Total" size="10" value="<%=Total%>">
			</td>
		</tr>
		<tr>
			<td class="left">
				每行显示个数
			</td>
			<td class="right">
				<INPUT TYPE="text" NAME="Tab" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" size="10" value="<%=Tab%>">
			</td>
		</tr>
		<tr>
			<td class="left">
				标题长度
			</td>
			<td class="right">
				<INPUT TYPE="text" NAME="Topiclen" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" size="10" value="<%=Topiclen%>">
			</td>
		</tr>
		<tr>
			<td class="left">
				调用的版面
			</td>
			<td class="right">
				<SELECT id="Boardid3" NAME="Boardid">
					<option value="0">选取所有版面</option>
					<%=jumplists%>
				</SELECT>
			</td>
		</tr>
		<tr>
			<td class="left">
				版面限制设置
			</td>
			<td class="right">
				<SELECT NAME="BoardLock" ID="BoardLock">
					<option value="0" selected>不限制</option>
					<option value="1">该版面不被调用</option>
					<option value="2">只调用该版面</option>
					<option value="3">该版面的下级版面</option>
					<option value="4">该版及下级所有版面</option>
				</SELECT>
			</td>
		</tr>
		<tr>
			<td class="left">
				版面的限制
			</td>
			<td class="right">
				<SELECT NAME="BoardLimit" ID="BoardLimit">
					<option value="0" SELECTED>显示所有数据</option>
					<option value="1">不显示特殊版面数据</option>
				</SELECT>&nbsp;&nbsp;<span>特殊版面指隐藏版面和认证版面</span>
			</td>
		</tr>
		<tr>
			<td class="left">
				调用文件类型
			</td>
			<td class="right">
				<SELECT NAME="FileType" ID="FileType">
					<option value="0" SELECTED>所有文件</option>
					<option value="1">图片集</option>
					<option value="2">文件集(.rar)</option>
					<option value="3">文件集(.zip)</option>
					<option value="4">文件集(.doc)</option>
				</SELECT>
			</td>
		</tr>
		<tr>
			<td class="left">
				显示排序
			</td>
			<td class="right">
				<SELECT NAME="FileOrders" ID="FileOrders">
					<option value="0" SELECTED>默认</option>
					<option value="1">按下载次数</option>
					<option value="2">按文件大小</option>
				</SELECT>
			</td>
		</tr>
	</table>
	<SCRIPT LANGUAGE="JavaScript">
<!--
//BoardJumpListSelect_Admin('Boardid',"Boardid3","选取所有版面","",0);
//BoardJumpListSelect_Admin(Boardid,"Boardid3","选取所有版面","",0);
//-->
	</SCRIPT>
</div>
<div id="News_7" style="DISPLAY:none">
	<!-- 圈子调用 -->
	<table cellpadding="0" cellspacing="1" width="100%" class="maintable" border="0">
		<tr>
			<td class="left" width="20%">
				显示记录数
			</td>
			<td class="right" width="80%">
				<INPUT TYPE="text" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" NAME="Total" size="10" value="<%=Total%>">
			</td>
		</tr>
		<tr>
			<td class="left">
				圈子排序
			</td>
			<td class="right">
				<SELECT NAME="UserOrders" ID="UserOrders">
					<option value="0" SELECTED>按创建时间</option>
					<option value="1">按成员总数</option>
					<option value="2">按主题总数</option>
					<option value="3">按帖子总数</option>
					<option value="4">按成员上限</option>
				</SELECT>
			</td>
		</tr>
	</table>
</div>
<div id="News_8" style="DISPLAY:none">
	<!-- 登陆框调用 -->
	<table cellpadding="0" cellspacing="1" width="100%" class="maintable" border="0">
		<tr>
			<td></td>
		</tr>
	</table>
</div>
<div id="News_9" style="DISPLAY:none">
	<!-- 图片集调用 -->
	<table cellpadding="0" cellspacing="1" width="100%" class="maintable" border="0">
		<tr>
			<td class="left" width="20%">
				显示记录数
			</td>
			<td class="right" width="80%">
				<INPUT TYPE="text" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" NAME="Total" size="10" value="<%=Total%>">
			</td>
		</tr>
		<tr>
			<td class="left">
				图片轮显时间
			</td>
			<td class="right"><INPUT TYPE="text" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" NAME="FlashTime" size="10" value="<%=FlashTime%>">
			</td>
		</tr>
		<tr>
			<td class="left">
				调用的版面
			</td>
			<td class="right">
				<SELECT id="Boardid4" NAME="Boardid">
					<option value="0">选取所有版面</option>
					<%=jumplists%>
				</SELECT>
			</td>
		</tr>
		<tr>
			<td class="left">
				版面&nbsp;&nbsp;设置
			</td>
			<td class="right">
				<SELECT NAME="BoardType" ID="BoardType4">
					<option value="0" SELECTED>只显示该版面的数据</option>
					<option value="1">显示该版面的下级所有版面的数据</option>
				</SELECT>
			</td>
		</tr>
	</table>
</div>
<!-- 变量说明 -->
<div id="skininfo_0" style="DISPLAY:none"></div>
<div id="skininfo_1" style="DISPLAY:none">
	<ol>
		<li>
		标题：{$Topic}
		<li>
		内容：{$Content}
		<li>
		作者：{$UserName}
		<li>
		发表时间：{$PostTime}
		<li>
		回复者：{$ReplyName}
		<li>
		回复时间：{$ReplyTime}
		<li>
		版块名称：{$BoardName}
		<li>
		版块说明：{$BoardInfo} 
		<!--		<li>
		心情图标：{$Face}-->
		<li>
		帖子ID：{$ID}
		<li>
		帖子ReplyID：{$ReplyID}
		<li>
			版面ID：{$Boardid}</li>
	</ol>
</div>
<div id="skininfo_2" style="DISPLAY:none">
	<ol>
		<li>
		□- 主题总数 ：{$TopicNum}
		<li>
		□- 论坛贴数 ：{$PostNum}
		<li>
		□- 注册人数 ：{$JoinMembers}
		<li>
		□- 论坛在线 ：{$AllOnline}
		<li>
		□- 新进会员 ：{$LastUser}
		<li>
		□- 今日帖数 ：{$TodayPostNum}
		<li>
		□- 昨日贴数 ：{$YesterdayPostNum}
		<li>
		□- 高峰贴数 ：{$TopPostNum}
		<li>
			□- 最高在线 ：{$TopOnline} 
			<!--		<li>
			□- 建站时间 ：{$BuildDay}--></li>
	</ol>
</div>
<div id="skininfo_3" style="DISPLAY:none">
	<ol>
		<li>
		版块ID：{$BoardID}
		<li>
		版块名称：{$BoardName}
		<li>
		版块说明：{$BoardInfo}
		<li>
		版块下级分版数：{$BoardChild}
		<li>
		版块帖子数：{$PostNum}
		<li>
		版块主题数：{$TopicNum}
		<li>
		版块当天发帖数：{$TodayNum}
		<li>
			版块规则说明：{$Rules}</li>
	</ol>
</div>
<div id="Board_Input" style="DISPLAY:none">
	<fieldset title="模板变量">
<legend>&nbsp;版块特殊设置&nbsp;</legend>
区版块前标识符：<input type="text" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" name="Board_Input0" size="40" value="<%=Board_Input0%>">
<br>
子版块前标识符：<input type="text" name="Board_Input1" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" size="40" value="<%=Board_Input1%>">
<br>
上下级版块间隔：<input type="text" name="Board_Input2" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" size="40" value="<%=Board_Input2%>">
<br>
&nbsp;&nbsp;&nbsp;同级版块间隔：<input type="text" name="Board_Input4" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" size="40" value="<%=Board_Input4%>">
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;版块换行：<input type="text" name="Board_Input3" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" size="40" value="<%=Board_Input3%>">
</fieldset>
</div>
<div id="skininfo_4" style="DISPLAY:none">
	<ol>
		<li>
		用户ID ：{$UserID}
		<li>
		用户名 ：{$UserName}
		<li>
		用户主题数 ：{$UserTopic}
		<li>
		用户帖子数 ：{$UserPost}
		<li>
		用户精华数 ：{$UserBest}
		<li>
		用户金钱 ：{$UserWealth}
		<li>
		用户魅力 ：{$UserCP}
		<li>
		用户经验 ：{$UserEP}
		<li>
		用户被删帖数 ：{$UserDel}
		<li>
		用户性别 ：{$UserSex}
		<li>
		用户注册时间 ：{$JoinDate}
		<li>
			用户登陆次数 ：{$UserLogins}</li>
	</ol>
</div>
<div id="skininfo_5" style="DISPLAY:none">
	<ol>
		<li>
		公告ID：{$ID}
		<li>
		标题：{$Topic}
		<li>
		作者：{$UserName}
		<li>
		版块名称：{$BoardName}
		<li>
		版块ID：{$Boardid}
		<li>
			时间：{$PostTime}</li>
	</ol>
</div>
<div id="skininfo_6" style="DISPLAY:none">
	<ol>
		<li>
		作者：{$UserName}
		<li>
		版块名称：{$BoardName}
		<li>
		版块ID：{$Boardid}
		<li>
		时间：{$AddTime}
		<li>
		文件ID：{$ID}
		<li>
		文件名：{$Filename} 
		<!--<li>文件说明：{$Readme}-->
		<li>
		文件类型：{$FileType}
		<li>
		文件预览文件名：{$ViewFilename} 
		<!--<li>浏览数：{$ViewNum}-->
		<li>
		下载数：{$DownNum}
		<li>
		文件大小：{$FileSize}
		<li>
		帖子主题ID：{$RootID}
		<li>
		帖子对应ID：{$ReplyID}
		<li>
		交替颜色：{$TColor}
		<li>
		图片高度：{$PicHeight}
		<li>
			图片宽度：{$PicWidth}</li>
	</ol>
</div>
<div id="Show_Input" style="DISPLAY:none">
	<fieldset title="模板变量" style="PADDING-RIGHT:5px; PADDING-LEFT:5px; PADDING-BOTTOM:5px; PADDING-TOP:5px">
<legend>&nbsp;展区特殊设置&nbsp;</legend>
&nbsp;&nbsp;图片宽度：<input type="text" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" name="PicWidth" size="10" value="<%=PicWidth%>"> <span>象素</span>
<br>
&nbsp;&nbsp;图片高度：<input type="text" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" name="PicHeight" size="10" value="<%=PicHeight%>"> <span>象素</span>
<br>
交替颜色1：<input type="text" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" name="TColor1" id="TColor1" size="10" value="<%=TColor1%>">
<img border="0" src="images/rect.gif" style="cursor:pointer;background-Color:<%=TColor1%>;" onclick="Getcolor(this,'TColor1');"
			title="选取颜色!">
<br>
交替颜色2：<input type="text" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" name="TColor2" id="TColor1" size="10" value="<%=TColor2%>">
<img border="0" src="images/rect.gif" style="cursor:pointer;background-Color:<%=TColor2%>;" onclick="Getcolor(this,'TColor2');"
			title="选取颜色!">
<br>
&nbsp;&nbsp;换行标记：<input type="text" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" name="Board_Input0" size="40" value="<%=Board_Input0%>">
</fieldset>
</div>
<div id="skininfo_7" style="DISPLAY:none">
	<ol>
		<li>
		圈子ID：{$IGID}
		<li>
		圈子名称：{$IGName}
		<li>
		圈子说明：{$GrouInfo}
		<li>
		圈子创建者ID：{$AppUserID}
		<li>
		圈子创建者名称：{$AppUserName}
		<li>
		圈子成员数：{$IGUserNum}
		<li>
		圈子状态：{$Stats}
		<li>
		圈子帖子总数：{$IGPostNum}
		<li>
		圈子主题总数：{$IGTopicNum}
		<li>
		圈子今日发贴数：{$IGTodayNum}
		<li>
		圈子昨日发贴数：{$IGYesterdayNum}
		<li>
			圈子成员数上限：{$LimitUser} 
			<!--		<li>
			创建时间：{$PassDate}--></li>
	</ol>
</div>
<div id="skininfo_8" style="DISPLAY:none">
	<ol>
		<li>
			验证码：{$CheckCode}</li>
	</ol>
</div>
<div id="skininfo_9" style="DISPLAY:none">
	<ol>
		<li>
			图片：{$PicPath}</li>
	</ol>
</div>
<iframe width="260" height="165" id="colourPalette" src="images/nc_selcolor.htm" style="BORDER-RIGHT:gray 1px solid; BORDER-TOP:gray 1px solid; LEFT:0px; VISIBILITY:hidden; BORDER-LEFT:gray 1px solid; BORDER-BOTTOM:gray 1px solid; POSITION:absolute; TOP:0px"
	frameborder="0" scrolling="no"></iframe>
<%
}else{
%>
<table cellpadding="0" cellspacing="1" width="100%" class="maintable" border="0">
	<tr>
		<th colspan="7">
			首页调用列表</th>
	</tr>
	<tr>
	<tr>
		<td width="3%" nowrap="nowrap">删除?</td>
		<td width="16%" nowrap="nowrap">类别</td>
		<td width="16%" nowrap="nowrap">名称</td>
		<td width="19%" nowrap="nowrap">说明</td>
		<td width="16%" nowrap="nowrap">添加时间/更新时间</td>
		<td width="16%" nowrap="nowrap">添加者</td>
		<td width="16%" nowrap="nowrap">操作</td>
	</tr>
	<form action="?Act=DelInfo" method="post" name="TheForm1">
		<asp:Repeater id="list" runat="server">
			<ItemTemplate>
				<tr onMouseOver="this.bgColor='#ffffff'" onMouseOut="this.bgColor=''">
					<td width="1%">
						<Dvbbs:Span id="delete" runat="server" /></td>
					<td width="16%">
						<Dvbbs:Span id="NewsType" runat="server" /></td>
					<td width="16%">
						<Dvbbs:Span id="NewsName" runat="server" /></td>
					<td width="19%">
						<Dvbbs:Span id="Intro" runat="server" /></td>
					<td width="16%">
						<Dvbbs:Span id="AddTime" runat="server" /></td>
					<td width="16%">
						<Dvbbs:Span id="MasterName" runat="server" /></td>
					<td width="16%">
						<Dvbbs:Span id="Edit" runat="server" /></td>
				</tr>
			</ItemTemplate>
		</asp:Repeater>
		<!--			<tr>
				<td colspan="10"><Dvbbs:Pager id="pager" runat="server"/></td>
			</tr>-->
		<tr>
			<input type="hidden" name="viewcode" value="">
			<td align="center" colspan="7"><input class="button" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)"
					onMouseOut="IEvent('mouseout',this)" type="submit" value="提 交" /></td>
		</tr>
	</form>
</table>
<%}%>
<script LANGUAGE="JavaScript">
<!--
function NewsTypeSel(Val){
	var skininfo = document.getElementById("skininfo_"+Val);
	if (skininfo){
		document.getElementById("skin_info").innerHTML = skininfo.innerHTML;
	}
	if (Val>0){
		var News = document.getElementById("News_"+Val);
		document.getElementById("News").innerHTML = News.innerHTML;
	}else{
		document.getElementById("News").innerHTML = "";
	}
	if (Val==3){
	document.getElementById("DisInput").innerHTML = document.getElementById("Board_Input").innerHTML;
	}
	else if(Val==6){
	document.getElementById("DisInput").innerHTML = document.getElementById("Show_Input").innerHTML;
	}
	else if(Val==8)
	{
		if(document.getElementById("Skin_Main").innerHTML=="")
		{
			document.getElementById("Skin_Main").innerHTML = document.getElementById("Skin_Main1").innerHTML
		}
	}
	else if(Val==9)
	{
		if(document.getElementById("Skin_Main").innerHTML=="")
		{
			document.getElementById("Skin_Main").innerHTML = document.getElementById("Skin_Main2").innerHTML
		}
	}
	document.getElementById("NewsType").selectedIndex = parseInt(Val);
}
function CheckSel(Voption,Value)
{
	var obj = document.getElementById(Voption);
	for (i=0;i<obj.length;i++){
		if (obj.options[i].value==Value){
		obj.options[i].selected=true;
		break;
		}
	}
}
function OutputNewsCode(Val){
	var obj = TheForm.Newscode;
	if (obj){
		if (Val!=''){
			obj.value = "<scr"+"ipt src=\"Dv_News.aspx?GetName="+Val.toLowerCase()+"\"><\/scr"+"ipt>";
		}else{
			obj.value = "";
		}
	}
}

// 修改编辑栏高度
function admin_Size(num,objname)
{
	var obj=document.getElementById(objname)
	if (parseInt(obj.rows)+num>=3) {
		obj.rows = parseInt(obj.rows) + num;	
	}
	if (num>0)
	{
		obj.width="90%";
	}
}
function Getcolor(img_val,input_val){
	var obj = document.getElementById("colourPalette");
	ColorImg = img_val;
	ColorValue = document.getElementById(input_val);
	if (obj){
	obj.style.left = getOffsetLeft(ColorImg) + "px";
	obj.style.top = (getOffsetTop(ColorImg) + ColorImg.offsetHeight) + "px";
	if (obj.style.visibility=="hidden")
	{
	obj.style.visibility="visible";
	}else {
	obj.style.visibility="hidden";
	}
	}
}
//Colour pallete top offset
function getOffsetTop(elm) {
	var mOffsetTop = elm.offsetTop;
	var mOffsetParent = elm.offsetParent;
	while(mOffsetParent){
		mOffsetTop += mOffsetParent.offsetTop;
		mOffsetParent = mOffsetParent.offsetParent;
	}
	return mOffsetTop;
}

//Colour pallete left offset
function getOffsetLeft(elm) {
	var mOffsetLeft = elm.offsetLeft;
	var mOffsetParent = elm.offsetParent;
	while(mOffsetParent) {
		mOffsetLeft += mOffsetParent.offsetLeft;
		mOffsetParent = mOffsetParent.offsetParent;
	}
	return mOffsetLeft;
}
function setColor(color)
{
	if (ColorValue){ColorValue.value = color;}
	if (ColorImg){ColorImg.style.backgroundColor = color;}
	document.getElementById("colourPalette").style.visibility="hidden";
}
function runscript(n,Val)
{
	TheForm1.viewcode.value = "<scr"+"ipt src=\"Dv_News.aspx?GetName="+Val.toLowerCase()+"\"><\/scr"+"ipt>";
	
	window.open("../Dv_NewsView.aspx",'Dv_ViewNews','toolbar=no,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=780,height=450,left=200,top=150');
}

//-->
</script>
<bbs:AdminFooter runat="server" ID="Adminfooter1" NAME="Adminfooter1" />
