<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="task.aspx.cs" Inherits="Kcms.UI.admin.task" %>
<%@ Register assembly="PageNavigator" namespace="KcNavigator" tagprefix="Kc" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link href="skins/work-style.css" rel="stylesheet" type="text/css" />
    <script src="/inc/artDialog/artDialog.min.js" type="text/javascript"></script>
    <style type="text/css">
        .style1 { text-decoration: underline; }
    </style>
</head>
<body>
    <form id="form2" runat="server">
<div class="container">
 <div class="path clearfix"><div class="l"><h4><img src="skins/icon/enumber_summ.gif" align="absmiddle" />计划任务</h4></div><div class="r"><asp:Literal ID="litAdv" runat="server"></asp:Literal></div></div>
 <div class="mbox clearfix">
  <div class="left">
    <a href="task.aspx" class="on">任务设置</a>
  </div>
  <div class="right">
<div class="sbox">
<div class="bor">
	<s class="tl">上左</s>
	<s class="tr">上右</s>
	<s class="bl">下左</s>
	<s class="br">上右</s>
</div>
<div class="tit">
    <h3><em class="light">温馨提示</em></h3>
</div>
<div class="con">
  <ul class="disc">
  <li>【计划任务】的运行需要<span class="style1">前台有访问</span>，蜘蛛的访问也可以。</li>
  <li>如果一个专题有频繁的更新，还会参照【<a href="gatherpara.aspx">系统设置</a>】中的更新频率。多建专题可以避免这个问题。</li>
  <li>一般可以把【更新专题】的工作时段设置在<span class="style1">夜间</span>，这样网络压力也小。</li>
  <li>【释放专题】就是模拟人工发布，将聚合的内容逐步在前台显示。</li>
  <li>假设你的设置是：间隔时长：30分钟；工作时段:9-18时。那么就是:每天9-18点每隔30分钟释放(更新)1条</li>
  <li>聚合虽好，请不要贪多。防止引擎的降权。每天的聚合发布数量见【<a href="report.aspx">信息统计</a>】</li>
  </ul>
</div>
</div>
<br />
<p><asp:Button ID="Button1" runat="server" Text="使用官方推荐的计划任务" 
        onclick="Button1_Click" />　　<font color="red">注意：修改前请认真查看上述提示</font></p> 
<table class="rtable" width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
<tr class="title">
  <td align="center" width="5%">可用</td>
  <td align="center">任务名称</td>
  <td align="center">间隔时长</td>
  <td align="center">工作时段</td>
  <td align="center">执行时间</td>
  <td align="center">操作</td>
</tr>
    <asp:Repeater ID="rptList" runat="server" 
        onitemdatabound="rptList_ItemDataBound" 
        onitemcommand="rptList_ItemCommand">
    <ItemTemplate>
<tr onMouseOver="this.className='over'" onMouseOut="this.className=''">
    <asp:HiddenField ID="hidId" Value='<%#Eval("id")%>' runat="server" />
  <td align="center"><asp:CheckBox ID="chkState" runat="server" Checked='<%#Eval("state") %>'/></td>
  <td><asp:TextBox ID="txtTaskName" runat="server" Text='<%#Eval("taskname") %>'></asp:TextBox><br /><asp:Label ID="lblIntro" runat="server" Text='<%#Eval("intro") %>' ForeColor="#B4B4B4"></asp:Label></td>
  <td align="center"><asp:TextBox ID="txtDay" runat="server" Columns="1" onkeyup="this.value=this.value.replace(/\D/g,'')" onpaste="return false" style="ime-mode:disabled"></asp:TextBox>天<asp:TextBox ID="txtHour" runat="server" Columns="1" onkeyup="this.value=this.value.replace(/\D/g,'')" onpaste="return false" style="ime-mode:disabled"></asp:TextBox>时<asp:TextBox ID="txtMinute" runat="server" Columns="1" onkeyup="this.value=this.value.replace(/\D/g,'')" onpaste="return false" style="ime-mode:disabled"></asp:TextBox>分<asp:TextBox ID="txtSecond" runat="server" Columns="1" onkeyup="this.value=this.value.replace(/\D/g,'')" onpaste="return false" style="ime-mode:disabled"></asp:TextBox>秒</td>
  <td align="center"><asp:TextBox ID="txtStartHour" runat="server" Text='<%#Eval("starthour") %>' Columns="1" onkeyup="this.value=this.value.replace(/\D/g,'')" onpaste="return false" style="ime-mode:disabled"></asp:TextBox>点-<asp:TextBox ID="txtEndHour" runat="server" Text='<%#Eval("endhour") %>' Columns="1" onkeyup="this.value=this.value.replace(/\D/g,'')" onpaste="return false" style="ime-mode:disabled"></asp:TextBox>点</td>
  <td align="center"><%#Eval("lasttime") %><br /><asp:Literal ID="litNextTime" runat="server"></asp:Literal></td>
  <td align="center"><asp:LinkButton ID="btnEdit" CommandName="edit" runat="server">修改</asp:LinkButton> 
  </td>
</tr>
    </ItemTemplate>
    </asp:Repeater>
</table>
  </div>
 </div>
</div>
</form>
</body>
</html>