<%@Page Language="C#" Inherits="IWMS.Admin.MaintainNews" MasterPageFile="admin.master"%>
<asp:Content ContentPlaceHolderId="cphHead" runat="server">
	<style type="text/css">
	.cfs {
		float:left;
		width:50%;
		vertical-align:top;
		padding:10px 0;
	}
	</style>
	<script type="text/javascript" src="inc/admin_articleadd.js"></script>
	<script type="text/javascript">
	iwms.topic="<%=topic.ClientID%>";
	iwms.topicId="<%=topicid.ClientID%>";
	</script>
</asp:Content>

<asp:Content ContentPlaceHolderId="cphMain" runat="server">

	<form id="MyForm" runat="server">
	<div class="mframe">
	<div class="tl"></div>
	<div class="rt"></div>
	<div class="tm">
		<span class="tt">内容维护</span>
	</div>
	<div class="wrapper">
	<div class="ml"></div>
	<div class="mr"></div>
	<div class="mm">
		<asp:Label id="myLabel" class="msgBar" EnableViewState="false" runat="server"/>
		<div class="cfs">
		<fieldset>
			<legend>生成相关内容</legend>
		<table cellpadding="5" cellspacing="0" width="100%">
		<tr><td align="center" class="tdbg">
		  	新闻标题含：<asp:TextBox id="titleInclude" size="10" runat="server"/> 
		</td></tr>
		<tr><td align="center" class="tdbg">
		  	相关联标签：<asp:TextBox id="relateKey" size="10" runat="server"/> 
		</td></tr>
		<tr><td align="center" class="tdbg">
		   	<asp:Button id="btRelate" text="生成相关新闻" onclick="btRelate_OnClick" runat="server"/>&nbsp;
		</td></tr>
		</table>
		</fieldset>
		</div>
		
		<div class="cfs">
		<fieldset>
			<legend>批量设置专题</legend>
		<table cellpadding="5" cellspacing="0" width="100%">
		<tr><td class="tdbg">
		  	　新闻标题含：<asp:TextBox id="topicTitleInclude" size="20" runat="server"/>
		</td></tr>
		<tr><td class="tdbg">
		  	　设为专题：<asp:TextBox id="topic" size="20" Readonly="true" runat="server" />　<a href="javascript:OpenTopic();" style="text-decoration:underline">选择专题</a>
				<input type="hidden" id="topicid" value="0" runat="server"/>
	
		</td></tr>
		 <tr><td align="center" class="tdbg">
		   	<asp:Button id="btTopic" text="设置新闻专题" onclick="btTopic_OnClick" runat="server"/>&nbsp;
		</td></tr>
		</table>
		</fieldset>
		</div>
		
		<div class="cfs">
		<fieldset>
			<legend>内容批量转移</legend>
		<table cellpadding="5" cellspacing="0" width="100%">
		<tr><td align="center" class="tdbg">
			从分类： 
			<asp:DropDownList id="mSort"
				runat="server" />
			<script type="text/javascript">
			<!--
			function setOptionColor(obj)
			{
				for (var i=0;i<obj.options.length;i++)
				{
					if (obj.options[i].value=="0")
					{
						obj.options[i].style.color="gray";
					}else{
						obj.options[i].style.color="black";
					}
				}
			}
			setOptionColor(document.getElementById("<%=mSort.ClientID%>"));
			-->
			</script>
		</td></tr>
		<tr><td align="center" class="tdbg">
			转移到：
			<asp:DropDownList id="mToSort"
				runat="server" />
			<script type="text/javascript">
			setOptionColor(document.getElementById("<%=mToSort.ClientID%>"));
			</script>
		</td></tr>
		 <tr><td align="center" class="tdbg">
		   	<asp:Button id="btMove" text="转移" onclick="btMove_OnClick" runat="server"/>
		</td></tr>
		</table>
		</fieldset>
		</div>
		
		<div class="cfs">
		<fieldset>
			<legend>合并标签</legend>
		<table cellpadding="5" cellspacing="0" width="100%">
		<tr><td class="tdbg-dark" height="10">
			新闻加入"合并入标签"，并删除被合并标签
		</td></tr>
		  <tr><td align="center" class="tdbg">
		  	 被合并标签: <asp:TextBox id="tag1" size="20" MaxLength="100" runat="server"/><br/>
		  	 合并入标签: <asp:TextBox id="tag2" size="20" MaxLength="100" runat="server"/>
		  </td></tr>
		  <tr><td align="center" class="tdbg">
		  	<asp:Button text="合并" onclick="btCombineTag_OnClick" runat="server"/>
		</td>
		</tr>
		</table>
		</fieldset>
		</div>
		
		<div class="cfs">
		<fieldset>
			<legend>设置评论与生成简介</legend>
		<table cellpadding="5" cellspacing="0" width="100%">
		<tr><td align="center" class="tdbg">
			 分类：<asp:DropDownList id="sortid" runat="server"/><br/>
		</td></tr>
		<tr><td class="tdbg-dark" height="10">
			批量设置新闻是否可评论
		</td></tr>
		  <tr><td align="center" class="tdbg">
		  	 <asp:RadioButtonList id="allowRemark" RepeatColumns="2" RepeatLayout="flow" runat="server">
		  	 	<asp:ListItem value="1" Selected="true">可评论</asp:ListItem>
		  	 	<asp:ListItem value="0">不可评论</asp:ListItem>
		  	 </asp:RadioButtonList>
		  	 <asp:Button id="btRemark" text="设置评论" onclick="btRemark_OnClick" runat="server"/>&nbsp;
		  </td></tr>
		<tr><td class="tdbg-dark" height="10">
			生成新闻简介
		</td></tr>
		  <tr><td align="center" class="tdbg">
		  	 <asp:Button id="btSummary" text="批量生成新闻简介" onclick="btSummary_OnClick" runat="server"/>&nbsp;
		 </td>
		  </tr>
		  </table>
		</fieldset>
		</div>
		
		<div class="cfs">
		<fieldset>
			<legend>数据统计</legend>
		<table cellpadding="5" cellspacing="0" width="100%">
		<tr><td class="tdbg-dark" height="10">
			显示新闻数与实际的新闻数不符时重新统计新闻数
		</td></tr>
		<tr><td align="center" class="tdbg">
		  	 <asp:Button text="统计新闻数" onclick="btCountNews_OnClick" runat="server"/>
		</td></tr>
		<tr><td class="tdbg-dark" height="10">
			会员发帖数与实际不符时重新统计帖子数
		</td></tr>
		<tr><td align="center" class="tdbg">
		  	 <asp:Button text="统计帖子数" onclick="btCountPost_OnClick" runat="server"/>
		</td></tr>
		<tr><td class="tdbg-dark" height="10">
			显示会员数与实际的会员数不符时重新统计会员数
		</td></tr>
		  <tr><td align="center" class="tdbg">
		  	<asp:Button text="统计会员数" onclick="btCountUser_OnClick" runat="server"/>
		</td>
		</tr>
		</table>
		</fieldset>
		</div>
		
		<div class="cfs">
		<fieldset>
			<legend>生成 google sitemaps</legend>
		<table cellpadding="5" cellspacing="0" width="100%">
		<tr><td align="center">
			包含最新
			<asp:DropDownList id="gs_num" runat="server">
				<asp:ListItem value="50">50</asp:ListItem>
				<asp:ListItem value="100">100</asp:ListItem>
				<asp:ListItem value="300">300</asp:ListItem>
				<asp:ListItem value="700">700</asp:ListItem>
				<asp:ListItem value="1000">1000</asp:ListItem>
				<asp:ListItem value="1500">1500</asp:ListItem>
				<asp:ListItem value="2000">2000</asp:ListItem>
				<asp:ListItem value="5000">5000</asp:ListItem>
				<asp:ListItem value="8000">8000</asp:ListItem>
				<asp:ListItem value="10000">10000</asp:ListItem>
			</asp:DropDownList>
			条内容<br/>
			内容更新频率
			<asp:DropDownList id="gs_freq" runat="server">
				<asp:ListItem value="always">随时</asp:ListItem>
				<asp:ListItem value="hourly">每小时</asp:ListItem>
				<asp:ListItem value="daily" Selected="true">每天</asp:ListItem>
				<asp:ListItem value="weekly">每周</asp:ListItem>
				<asp:ListItem value="monthly">每月</asp:ListItem>
				<asp:ListItem value="yearly">每年</asp:ListItem>
				<asp:ListItem value="never">从不</asp:ListItem>
			</asp:DropDownList>
			<br/>
			　　<a href="https://www.google.com/webmasters/sitemaps" target="_blank">提交google sitemaps</a>
			<br/>
				<asp:Button id="genSitemaps" Text="生成Sitemaps文件" OnClick="genSitemaps_OnClick" runat="server"/>
		</td>
		</tr>
		</table>
		</fieldset>
		</div>
		
		<div class="cfs">
		<fieldset>
			<legend>提交百度互联网新闻开放协议</legend>
		<table cellpadding="5" cellspacing="0" width="100%">
		<tr><td>
			<script type="text/javascript">
			<!--
				function BaiduFeed()
				{
					var o_url = document.getElementById("baiduUrl");
					var o_num = document.getElementById("baiduNum");
					var b_url = location.href;
					b_url = b_url.substring(0,b_url.lastIndexOf("/")+1);
					b_url += "rssFeed.aspx?t=baidu";
					if (parseInt(o_num.value)>80){
						alert("最多取８０条新闻");
						o_num.value="80";
					}
					b_url += "&num="+ o_num.value;
					o_url.value = b_url;
				}
			-->
			</script>
			　提交内容条数 <input type="text" id="baiduNum" size="2" value="20" maxlength="2" onchange="BaiduFeed()" style="text-align:right"/>条<br/>
			　请在百度提交地址：<a href="http://news.baidu.com/newsop.html#ks5" target="_blank">http://news.baidu.com/newsop.html</a><br/>
			　提交这个地址：<input type="text" id="baiduUrl" size="35" onclick="this.select()"/>
			<script type="text/javascript">BaiduFeed();</script>
	
		</td></tr>
		</table>
		</fieldset>
		</div>
		
		<div style="padding:8px;clear:both"><b>注</b>：分类后“▽”表示类型为下载</div>
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>
	
	</form>

</asp:Content>