<%@ page language="C#" masterpagefile="~/SiteServer/MasterPage/PageTemplate.Master" autoeventwireup="true" inherits="SiteServer_Article_Delete, v5star.Web" title="Untitled Page" theme="Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PageBody" Runat="Server">
    <aspx:HeadMenuWebControls ID="HeadMenuWebControls1" runat="server" HeadOPTxt="删除"
        HeadTitleTxt="内容管理">
        <aspx:HeadMenuButtonItem ButtonIcon="back.gif" ButtonName="返回" ButtonPopedom="List"
            ButtonUrl="history.back()" ButtonUrlType="JavaScript" ButtonVisible="True" />
    </aspx:HeadMenuWebControls>
    <aspx:TabOptionWebControls ID="TabOptionWebControls1" runat="server" TabImagesPath="../../images/Menu/">
        <aspx:TabOptionItem ID="TabOptionItem1" runat="server" Tab_Name="信息列表">
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%">
                <Columns>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <input id="Checkbox1" type="checkbox" onclick="CheckAll(this)" runat="server" /><label>全选</label>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="ItemCheckBox" runat="server" />
                        </ItemTemplate>
                        <HeaderStyle Width="60px" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="标题">
                        <ItemTemplate>
                            <%#MyTitle(Eval("Article_Title"), Eval("id"))%>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="状态">
                        <ItemTemplate>
                            <%#ArtStat(Eval("Article_Status"))%>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <asp:Button ID="Button2" runat="server" Text="删除" CssClass="button_bak" OnClick="Button2_Click" />
            &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;
            <aspx:CutePager ID="CutePager1" runat="server" AlwaysShow="True" CustomInfoTextAlign="Center"
                HorizontalAlign="Center" ShowCustomInfoSection="Right" OnPageChanged="CutePager1_PageChanged">
            </aspx:CutePager>
        </aspx:TabOptionItem>
        <aspx:TabOptionItem ID="TabOptionItem2" runat="server" Tab_Name="内容搜索">
            内容状态：<asp:DropDownList ID="ddl_con" runat="server">
                <asp:ListItem Value="100">全部</asp:ListItem>
                <asp:ListItem Value="0">未审核</asp:ListItem>
                <asp:ListItem Value="1">已审核</asp:ListItem>
                <asp:ListItem Value="2">审核失败</asp:ListItem>
            </asp:DropDownList>每页显示：<asp:DropDownList ID="ddl_ps" runat="server">
                <asp:ListItem Value="10">默认</asp:ListItem>
                <asp:ListItem>15</asp:ListItem>
                <asp:ListItem>20</asp:ListItem>
                <asp:ListItem>30</asp:ListItem>
                <asp:ListItem>40</asp:ListItem>
                <asp:ListItem>50</asp:ListItem>
                <asp:ListItem>100</asp:ListItem>
                <asp:ListItem>150</asp:ListItem>
                <asp:ListItem>200</asp:ListItem>
            </asp:DropDownList>时间：从<asp:TextBox ID="TimeStar" runat="server" Width="80px" CssClass="text_input"
                onfocus="javascript:LMC_Class_Date.popUpCalendar(this,this, 'yyyy-mm-dd');"></asp:TextBox>到<asp:TextBox
                    ID="TimeEnd" runat="server" Width="80px" CssClass="text_input" onfocus="javascript:LMC_Class_Date.popUpCalendar(this,this, 'yyyy-mm-dd');"></asp:TextBox>目标：<asp:DropDownList
                        ID="ddl_tt" runat="server">
                        <asp:ListItem Value="Article_Title">标题</asp:ListItem>
                        <asp:ListItem Value="Article_SubTitle">副标题</asp:ListItem>
                        <asp:ListItem Value="Article_AuthorName">作者</asp:ListItem>
                        <asp:ListItem Value="Article_Keyword">关键字</asp:ListItem>
                        <asp:ListItem Value="Article_Intro">简介</asp:ListItem>
                        <asp:ListItem Value="Article_Content">内容</asp:ListItem>
                        <asp:ListItem Value="Article_Source">来源</asp:ListItem>
                        <asp:ListItem Value="Article_IsOnTop">置顶</asp:ListItem>
                        <asp:ListItem Value="Article_IsElite">推荐</asp:ListItem>
                    </asp:DropDownList><br />
            关键字：<asp:TextBox ID="keyword" runat="server"></asp:TextBox>
            <asp:Button ID="Button1" runat="server" CssClass="button_bak" Text="搜 索" OnClick="Button1_Click" />
        </aspx:TabOptionItem>
    </aspx:TabOptionWebControls>

    <script type="text/javascript">
    var  LMC_Class_Date   =   new   ClassDate("<%=Page.ResolveClientUrl("~/SiteServer/js/date/images/")%>");     
    </script>
<script type="text/javascript">
  //<![CDATA[
  function CheckAll(oCheckbox)
  {
   var GridView1 = document.getElementById("<%=GridView1.ClientID %>");
   for(i = 1;i < GridView1.rows.length; i++)
   {
    GridView1.rows[i].cells[0].getElementsByTagName("INPUT")[0].checked = oCheckbox.checked;
   }
  }
  
  //]]>
  </script>

</asp:Content>

