<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Send_Article.aspx.cs" Inherits="TotCms.Web.Admin.Send_Article" %>

<%@ Register src="UI/main_top.ascx" tagname="main_top" tagprefix="uc1" %>

<!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 runat="server">
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>发布文章</title>
    <link href="style/global.css" rel="stylesheet" type="text/css" />
  <link href="js/calendar.css" rel="stylesheet" type="text/css" />
  <script src="js/common.js" type="text/javascript"></script>
  <script src="js/calendar.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
    
      <uc1:main_top ID="main_top1" runat="server" />
    
    </div>
    <table style="width:100%;" border="0" cellpadding="0" cellspacing="1" 
      class="black_border">
      <tr class="suphead">
        <td colspan="2">
                                                                                发布文章</td>
    </tr>
    <tr>
      <td class="fields_text" height="50">
        根据文章ID：</td>
      <td class="fields_input">
        从 <asp:TextBox ID="Sid" runat="server">1</asp:TextBox>
        　到 <asp:TextBox ID="Eid" runat="server">1000</asp:TextBox>
          &nbsp;<asp:Button ID="Button5" runat="server" Text="开始发布" 
          onclick="Button5_Click" />          
          </td>
    </tr>
    <tr>
      <td class="fields_text" height="50">
        根据文章模板：</td>
      <td class="fields_input">
        <asp:DropDownList ID="TemplateId" runat="server">
        </asp:DropDownList>
          &nbsp;<asp:Button ID="Button6" runat="server" Text="开始发布" 
          onclick="Button6_Click" />
          </td>
    </tr>
    <tr>
      <td class="fields_text" height="50">
        根据栏目分类：</td>
      <td class="fields_input">
        <asp:Label ID="CategoryTitle" runat="server" Text="请选择栏目分类"></asp:Label>
        <asp:TextBox ID="CategoryId" runat="server" Text="0" CssClass="hidden"></asp:TextBox>
          <input id="Button4" type="button" value="..." onclick="popupWindow('Category_Tree.aspx','category_tree',400,300,1)" />
        <asp:Button ID="Button7" runat="server" Text="开始发布" onclick="Button7_Click" />(不选则发布全部文章)
          </td>
    </tr>
    <tr>
      <td class="fields_text" height="50">
        根据文章添加日期：</td>
      <td class="fields_input">
        从 
        <asp:TextBox ID="Sdate" runat="server"></asp:TextBox><input name="button" type="button" onclick="displayCalendar(document.forms[0].Sdate,'yyyy-mm-dd',this)" value="..." />
        到　<asp:TextBox ID="Edate" runat="server"></asp:TextBox><input name="button" type="button" onclick="displayCalendar(document.forms[0].Edate,'yyyy-mm-dd',this)" value="..." />
          &nbsp;<asp:Button ID="Button8" runat="server" Text="开始发布" 
          onclick="Button8_Click" />
          </td>
    </tr>
  </table>
  <br />
  <table style="width:100%;" border="0" cellpadding="0" cellspacing="1" 
      class="black_border">
      <tr class="suphead">
        <td colspan="2">
                                                                                发布所有文章</td>
    </tr>
    <tr>
      <td colspan="2" align="center" height="50">
        <input id="puball" type="button" value="发布所有文章" onclick="location.href='SendArticleAll.aspx?start=1'" /></td>
    </tr>
  </table>

  <div align="center">
  <asp:UpdateProgress ID="UpdateProgress1" runat="server">
    <ProgressTemplate>
      <asp:Image ID="Image1" runat="server" ImageUrl="~/Admin/images/loading.gif" />
    </ProgressTemplate>
  </asp:UpdateProgress>
   </div>   
  <asp:UpdatePanel ID="UpdatePanel1" runat="server">
          <ContentTemplate>
            <div class="info"><asp:Label ID="RetSts" runat="server" Text=""></asp:Label></div>
          </ContentTemplate>
            <Triggers>
              <asp:AsyncPostBackTrigger ControlID="Button5" EventName="Click">
              </asp:AsyncPostBackTrigger>
              <asp:AsyncPostBackTrigger ControlID="Button6" EventName="Click" />
              <asp:AsyncPostBackTrigger ControlID="Button7" EventName="Click" />
              <asp:AsyncPostBackTrigger ControlID="Button8" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>
      
    </form>
</body>
</html>
