<%@ page language="C#" autoeventwireup="true" inherits="Admin_Article_List, GroupTGWeb_deploy" %>

<%@ Register Assembly="ShopNum1.Control" Namespace="ShopNum1.Control" TagPrefix="cc1" %>
<%@ Register Src="UserControl/MessageShow.ascx" TagName="MessageShow" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ShopNum1" %>
<!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 id="Head1" runat="server">
    <title>文章列表</title>

    <script type="text/javascript" language="javascript" src="../js/CommonJS.js"></script>

    <link type="text/css" rel="Stylesheet" href="css/index.css" />
    <style type="text/css">
        .style1
        {
            width: 463px;
        }
    </style>
</head>
<body style="padding: 0; background-image: url(images/Bg_right.gif); background-repeat: repeat;
    font-size: 12px">
    <form id="form1" runat="server">
    <ShopNum1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnableScriptGlobalization="True"
        EnableScriptLocalization="True" />
    <div class="main">
        <div class="table1">
            <div class="navigator">
                <asp:Label ID="LabelTitle" runat="server" Text="【文章列表】"></asp:Label></div>
            <div class="content">
                <table cellpadding="4" cellspacing="0" border="0" width="100%">
                    <tr>
                        <td align="right">
                            <asp:Localize ID="LocalizeTitle" runat="server" Text="文章标题："></asp:Localize>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="TextBoxTitle" runat="server" CssClass="input1"></asp:TextBox>
                        </td>
                        <td align="right">
                            <asp:Localize ID="Localize2" runat="server" Text="文章类别："></asp:Localize>
                        </td>
                        <td>
                            <asp:DropDownList ID="DropDownListType" runat="server" Width="80">
                            </asp:DropDownList>
                        </td>
                        <td align="right">
                            <asp:Localize ID="LocalizeIsRecommend" runat="server" Text="是否推荐："></asp:Localize>
                        </td>
                        <td>
                            <asp:DropDownList ID="DropDownListIsRecommend" runat="server" Width="80">
                            </asp:DropDownList>
                        </td>
                        <td align="right">
                            <asp:Localize ID="LocalizeIsShow" runat="server" Text="是否前台显示："></asp:Localize>
                        </td>
                        <td>
                            <asp:DropDownList ID="DropDownListIsShow" runat="server" Width="80">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Localize ID="LocalizePublisher" runat="server" Text="作者/发布人："></asp:Localize>
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxPublisher" runat="server" CssClass="input1"></asp:TextBox>
                        </td>
                        <td align="right">
                            <asp:Localize ID="LocalizeIsHot" runat="server" Text="是否热点："></asp:Localize>
                        </td>
                        <td>
                            <asp:DropDownList ID="DropDownListIsHot" runat="server" Width="80">
                            </asp:DropDownList>
                        </td>
                        <td align="right">
                            <asp:Localize ID="LocalizeIsHead" runat="server" Text="是否头条："></asp:Localize>
                        </td>
                        <td>
                            <asp:DropDownList ID="DropDownListIsHead" runat="server" Width="80">
                            </asp:DropDownList>
                        </td>
                        <td align="right">
                            <asp:Localize ID="LocalizeIsAllowComment" runat="server" Text="允许评论："></asp:Localize>
                        </td>
                        <td>
                            <asp:DropDownList ID="DropDownListIsAllowComment" runat="server" Width="80">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Localize ID="LocalizeSendTime" runat="server" Text="发布时间："></asp:Localize>
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxTime1" CssClass="input1" runat="server"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorStartDate" runat="server"
                                ControlToValidate="TextBoxTime1" Display="Dynamic" ErrorMessage="时间格式不正确" ValidationExpression="^\d{4}-(\d{2}|\d{1})-(\d{2}|\d{1})( (\d{2}|\d{1}):(\d{2}|\d{1}):(\d{2}|\d{1}))*"></asp:RegularExpressionValidator>
                            <img id="imgTime1" alt="" src="images/Calendar.png" style="width: 16px; height: 18px;"
                                align="absmiddle" />
                            <ShopNum1:CalendarExtender ID="CalendarExtender3" runat="server" TargetControlID="TextBoxTime1"
                                PopupButtonID="imgTime1" CssClass="ajax__calendar">
                            </ShopNum1:CalendarExtender>
                            -
                            <asp:TextBox ID="TextBoxTime2" CssClass="input1" runat="server"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorEndDate" runat="server"
                                ControlToValidate="TextBoxTime2" Display="Dynamic" ErrorMessage="时间格式不正确" ValidationExpression="^\d{4}-(\d{2}|\d{1})-(\d{2}|\d{1})( (\d{2}|\d{1}):(\d{2}|\d{1}):(\d{2}|\d{1}))*"></asp:RegularExpressionValidator>
                            <img id="imgTime2" alt="" src="images/Calendar.png" style="width: 16px; height: 18px;"
                                align="absmiddle" />
                            <ShopNum1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="TextBoxTime2"
                                PopupButtonID="imgTime2" CssClass="ajax__calendar">
                            </ShopNum1:CalendarExtender>
                        </td>
                        <td align="right">
                            <asp:Localize ID="LocalizeCityCode" runat="server" Text="城市："></asp:Localize>
                        </td>
                        <td>
                            <asp:DropDownList ID="DropDownListCityCode" runat="server" Width="80">
                            </asp:DropDownList>
                        </td>
                        <td align="right">
                            <asp:Button ID="ButtonSearch" runat="server" Text="查询" CssClass="bt2" OnClick="ButtonSearch_Click" />
                        </td>
                    </tr>
                </table>
                <cc1:Num1GridView ID="Num1GridiewShow" runat="server" AllowPaging="True" AllowSorting="True"
                    AutoGenerateColumns="False" Width="100%" AscendingImageUrl="~/images/SortAsc.gif"
                    DescendingImageUrl="~/images/SortDesc.gif" Font-Size="Small" Font-Bold="False"
                    AddSequenceColumn="False" AllowMultiColumnSorting="False" BorderColor="#CCDDEF"
                    BorderStyle="Solid" BorderWidth="1px" CellPadding="4" Del="False" DeletePromptText="确实要删除指定的记录吗？"
                    Edit="False" FixHeader="False" GridViewSortDirection="Ascending" PagingStyle="None"
                    Style="margin-left: 2px;" TableName="" DataSourceID="ObjectDataSourceData">
                    <HeaderStyle HorizontalAlign="Center" BackColor="#6699CC" Font-Bold="True" ForeColor="#FFFFFF">
                    </HeaderStyle>
                    <PagerStyle HorizontalAlign="Left" BackColor="#EEEEEE" ForeColor="#6699CC"></PagerStyle>
                    <Columns>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <input id="checkboxAll" onclick="javascript:SelectAllCheckboxes(this);" type="checkbox" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <input id="checkboxItem" type="checkbox" value='<%# Eval("Guid") %>' />
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" Width="30px" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="Guid" HeaderText="GUID" SortExpression="Guid" Visible="False" />
                        <%--<asp:BoundField DataField="Title" HeaderText="文章标题" SortExpression="Title" />--%>
                        <asp:TemplateField HeaderText="文章标题">
                            <ItemTemplate>
                                <a href='<%#"Article_Operate.aspx?Guid="+Eval("Guid") %>'>
                                    <%# Eval("Title")%></a>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="Name" HeaderText="所属分类" SortExpression="Name">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="作者/发布人" DataField="Publisher" SortExpression="Publisher" />
                        <asp:BoundField DataField="Source" HeaderText="文章来源" SortExpression="Source"></asp:BoundField>
                        <asp:BoundField DataField="Keywords" HeaderText="关键字" SortExpression="Keywords">
                        </asp:BoundField>
                        <asp:BoundField DataField="Description" HeaderText="文章描述" SortExpression="Description">
                        </asp:BoundField>
                        <asp:BoundField DataField="CityName" HeaderText="城市" SortExpression="CityName" />
                    </Columns>
                </cc1:Num1GridView>
            </div>
        </div>
    </div>
    <div class="vote">
        <asp:Button ID="ButtonReplay" runat="server" OnClientClick="return EditButton()"
            CausesValidation="False" Text="查看评论" CssClass="bt3" OnClick="ButtonReplay_Click" />
        <asp:Button ID="ButtonAdd" runat="server" CausesValidation="False" Text="添加" CssClass="bt2"
            OnClientClick="return GetCheckedBoxValues()" OnClick="ButtonAdd_Click" />
        <asp:Button ID="ButtonEdite" runat="server" CausesValidation="False" Text="编辑" CssClass="bt2"
            OnClientClick="return EditButton()" OnClick="ButtonEdite_Click" />
        <asp:Button ID="ButtonDelete" runat="server" Text="删除" OnClientClick="return DeleteButton()"
            CssClass="bt2" OnClick="ButtonDelete_Click" />
        <uc1:MessageShow ID="MessageShow" Visible="false" runat="server" />
    </div>
    <asp:ObjectDataSource ID="ObjectDataSourceData" runat="server" SelectMethod="Search"
        TypeName="GroupFlyTG.BusinessLogic.GroupFlyTG_Article_Action" OldValuesParameterFormatString="original_{0}">
        <SelectParameters>
            <asp:ControlParameter ControlID="TextBoxTitle" Name="title" PropertyName="Text" Type="String"
                DefaultValue="" />
            <asp:ControlParameter ControlID="TextBoxPublisher" Name="publisher" PropertyName="Text"
                Type="String" DefaultValue="" />
            <asp:ControlParameter ControlID="DropDownListType" Name="articlecategoryid" PropertyName="SelectedValue"
                Type="Int32" />
            <asp:ControlParameter ControlID="RegularExpressionValidatorStartDate" Name="startdate"
                PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="RegularExpressionValidatorEndDate" Name="enddate"
                PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="DropDownListIsShow" Name="IsShow" PropertyName="SelectedValue"
                Type="Int32" DefaultValue="-1" />
            <asp:ControlParameter ControlID="DropDownListIsHot" Name="IsHot" PropertyName="SelectedValue"
                Type="Int32" DefaultValue="-1" />
            <asp:ControlParameter ControlID="DropDownListIsRecommend" Name="isrecommand" PropertyName="SelectedValue"
                Type="Int32" DefaultValue="" />
            <asp:ControlParameter ControlID="DropDownListIsHead" Name="IsHead" PropertyName="SelectedValue"
                Type="Int32" DefaultValue="-1" />
            <asp:ControlParameter ControlID="DropDownListIsAllowComment" Name="IsAllowComment"
                PropertyName="SelectedValue" Type="Int32" DefaultValue="-1" />
            <asp:ControlParameter ControlID="DropDownListCityCode" Name="CityCode" PropertyName="SelectedValue"
                Type="String" />
            <asp:Parameter DefaultValue="0" Name="isDeleted" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:HiddenField ID="HiddenFieldAgentLoginID" runat="server" />
    <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
    </form>
</body>
</html>
