<%@ page language="C#" autoeventwireup="true" inherits="Admin_PageType_ListInfo, App_Web_9hw0ihhl" enableEventValidation="false" theme="theme1" stylesheettheme="theme1" %>

<!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">
    <title>PassionCMS2</title>

    <script language="javascript" src="../../JScript.js"></script>

</head>
<body bgcolor="#DBEAF5">
    <form id="form1" runat="server">
        <div align="center">
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td background="../images/Top_line_3.gif" height="2">
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        <table border="0" cellpadding="0" cellspacing="0" width="100%" id="Table4" style="background-color: #3390C6;">
                            <tr>
                                <td height="27" bgcolor="3390C6" width="20">
                                </td>
                                <td width="80" bgcolor="3390C6" align="center" background='../images/Menu_selected_bg.gif'>
                                    <a href="#">新闻列表</a>
                                </td>
                                <td width="80" bgcolor="3390C6" align="center">
                                    <a href="addListInfo.aspx?cateID=<%=cateID %>" class='menu_title'>新增新闻</a>
                                </td>
                                <td bgcolor="3390C6">
                                    &nbsp;</td>
                                <td bgcolor="3390C6" width="10">
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td background="../images/Sub_menu_bg.gif" height="24">
                        <table class="O" cellspacing="0" cellpadding="0" width="100%" border="0" id="Table6">
                            <tbody>
                                <tr>
                                    <td width="20">
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td height="10">
                    </td>
                </tr>
            </table>
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td width="3%">
                    </td>
                    <td>
                        <asp:GridView ID="gvList" Width="95%" SkinID="gridviewSkin1" DataKeyNames="ID" AutoGenerateColumns="false"
                            runat="server" OnRowDataBound="gvList_RowDataBound" OnRowCommand="gvList_RowCommand">
                            <Columns>
                                <asp:TemplateField>
                                    <HeaderStyle Width="20" HorizontalAlign="Left" />
                                    <ItemStyle HorizontalAlign="Center" />
                                    <HeaderTemplate>
                                        <asp:CheckBox ID="chkAll" runat="server" />
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chkSelect" runat="server" />
                                        <asp:HiddenField ID="hfID" runat="server" Value='<%# Server.HtmlEncode(DataBinder.Eval(Container.DataItem,"ID",""))%>' />
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" Width="12px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="序号">
                                    <HeaderStyle Width="40" />
                                    <ItemStyle HorizontalAlign="Left" />
                                    <ItemTemplate>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Right" Wrap="false" Width="30px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="标题">
                                    <ItemTemplate>
                                        <asp:HyperLink ID="urlTitle" runat="server" Text='<%# Server.HtmlEncode(DataBinder.Eval(Container.DataItem,"Title","")) %>'
                                            NavigateUrl='<%#"editListInfo.aspx?ID=" + DataBinder.Eval(Container.DataItem,"ID") + "&cateID=" + DataBinder.Eval(Container.DataItem,"cateID")%>'
                                            Target="_self"></asp:HyperLink>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Left" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="浏览次数">
                                    <ItemTemplate>
                                        <%#DataBinder.Eval(Container.DataItem,"Viewnum") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="发布时间">
                                    <ItemTemplate>
                                        <asp:Label ID="lblTime" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"AddDate","{0:yy-MM-dd HH:mm}") %>'></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Right" Width="120px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="固顶">
                                    <ItemTemplate>
                                        <asp:HiddenField ID="hfIsTop" runat="server" Value='<%#DataBinder.Eval(Container.DataItem,"IsTop") %>' />
                                        <asp:LinkButton ID="btnTop" runat="server" CommandName="IsTop" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"ID") + "#" + DataBinder.Eval(Container.DataItem,"IsTop")%>'></asp:LinkButton>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" Width="30px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="推荐">
                                    <ItemTemplate>
                                        <asp:HiddenField ID="hfIsGood" runat="server" Value='<%#DataBinder.Eval(Container.DataItem,"IsGood") %>' />
                                        <asp:LinkButton ID="btnGood" runat="server" CommandName="IsGood" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"ID") + "#" + DataBinder.Eval(Container.DataItem,"IsGood")%>'></asp:LinkButton>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" Width="30px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="状态">
                                    <ItemTemplate>
                                        <asp:HiddenField ID="hfIsHidden" runat="server" Value='<%#DataBinder.Eval(Container.DataItem,"IsHidden") %>' />
                                        <asp:LinkButton ID="btnHidden" runat="server" CommandName="IsHidden" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"ID") + "#" + DataBinder.Eval(Container.DataItem,"IsHidden") %>'></asp:LinkButton>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" Width="30px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="修改">
                                    <ItemTemplate>
                                        <asp:HyperLink ID="urlEdit" runat="server" Text="修改" Target="_self" NavigateUrl='<%#"EditListInfo.aspx?ID=" + DataBinder.Eval(Container.DataItem,"ID") +"&cateID=" + DataBinder.Eval(Container.DataItem,"cateID")%>'></asp:HyperLink>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" Width="30px" />
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </td>
                    <td width="3%">
                    </td>
                </tr>
                <tr height="5">
                </tr>
            </table>
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td width="3%">
                    </td>
                    <td>
                        <table style="border: 0px; width: 100%;" cellpadding="0" cellspacing="0">
                            <tr>
                                <td style="text-align: left; height: 25px;">
                                    <asp:Button ID="btnDelete" runat="server" Text="删 除" OnClick="btnDelete_Click" />&nbsp;
                                </td>
                                <td style="text-align: right; height: 25px;">
                                    <asp:Label ID="lblListInfo" runat="server"></asp:Label>
                                    &nbsp; 每页<asp:DropDownList ID="ddlPageSize" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
                                        <asp:ListItem Value="10" Text="10"></asp:ListItem>
                                        <asp:ListItem Value="20" Text="20"></asp:ListItem>
                                        <asp:ListItem Value="50" Text="50"></asp:ListItem>
                                        <asp:ListItem Value="100" Text="100"></asp:ListItem>
                                    </asp:DropDownList>条
                                    <asp:LinkButton ID="lbFirst" runat="server" Text="首页" OnClick="lb_Click"></asp:LinkButton>
                                    <asp:LinkButton ID="lbForward" runat="server" Text="上一页" OnClick="lb_Click"></asp:LinkButton>
                                    <asp:LinkButton ID="lbNext" runat="server" Text="下一页" OnClick="lb_Click"></asp:LinkButton>
                                    <asp:LinkButton ID="lbLast" runat="server" Text="尾页" OnClick="lb_Click"></asp:LinkButton>
                                    跳至<asp:TextBox ID="txtToPageNo" runat="server" MaxLength="6" Width="38px" OnTextChanged="btnGo_Click"></asp:TextBox>页
                                    <asp:Button ID="btnGo" runat="server" OnClick="btnGo_Click" Text="GO" />
                                </td>
                                <td align="right">
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td width="3%">
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
