<%@ Page Language="c#" Inherits="WebApp.Admin.PublicNewsList" CodeBehind="PublicNewsList.aspx.cs" %>

<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
    <title>主站共享信息列表</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--#include file = "../Css/adminCssEdit.htm" -->
</head>
<body>
    <form id="Form1" method="post" runat="server">
    <div class="list-func-box func-box">
        <div class="hd">
            主站共享信息列表
        </div>
        <div class="bd">
            <div class="function-hd">
                <div class="search-box fr">
                </div>
                <!--/search-box-->
                <div class="action-field">
                <asp:Button ID="save" runat="server" Text="保 存" OnClick="save_Click" CssClass="btn"></asp:Button>&nbsp;
                <asp:Button ID="cancel" runat="server" Text="取 消" Visible="false" CssClass="btn"></asp:Button>&nbsp;
                <asp:Button ID="ok" runat="server" Text="添 加" OnClick="ok_Click" CssClass="btn"></asp:Button>
                </div>
            </div>
            <asp:DataGrid ID="newsGrid" runat="server" class="list-table" AllowSorting="True" AutoGenerateColumns="False" Width="100%" OnItemCommand="newsGrid_ItemCommand">
                <Columns>
                    <asp:BoundColumn Visible="False" DataField="pkId" HeaderText="ID号" HeaderStyle-CssClass="title"></asp:BoundColumn>
                    <asp:TemplateColumn HeaderText="标题" HeaderStyle-CssClass="title">
                        <ItemTemplate>
                            <asp:HyperLink ID="intactTitle" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.intactTitle") %>'
                                Target="_blank" NavigateUrl='<%# DataBinder.Eval(Container, "DataItem.pkId", "newsInfo.aspx?pkId={0}") %>'>
                            </asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:TemplateColumn HeaderText="发布人及信息" HeaderStyle-CssClass="title">
                        <ItemTemplate>
                            <asp:Label ID="info" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.editor")+"  详细..." %>'
                                ToolTip='<%# "发布时间："+DataBinder.Eval(Container, "DataItem.updateTime") %>'>
                            </asp:Label>
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:TemplateColumn HeaderText="固顶" HeaderStyle-CssClass="title">
                        <ItemTemplate>
                            <asp:DropDownList ID="isTop" runat="server" SelectedIndex='<%# DataBinder.Eval(Container, "DataItem.isTop") %>'>
                                <asp:ListItem Value="0" Selected="True">取消</asp:ListItem>
                                <asp:ListItem Value="1">固顶</asp:ListItem>
                            </asp:DropDownList>
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:TemplateColumn HeaderText="审核" HeaderStyle-CssClass="title">
                        <ItemTemplate>
                            <asp:DropDownList ID="pass" runat="server" SelectedIndex='<%# DataBinder.Eval(Container, "DataItem.passed") %>'>
                                <asp:ListItem Value="0" Selected="True">待审</asp:ListItem>
                                <asp:ListItem Value="1">通过</asp:ListItem>
                            </asp:DropDownList>
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:TemplateColumn HeaderText="执 行" HeaderStyle-CssClass="title">
                        <ItemTemplate>
                            <asp:LinkButton ID="edit" runat="server" CommandName="edit">编 辑</asp:LinkButton>
                            <asp:CheckBox ID="del" runat="server" Text="删 除"></asp:CheckBox>
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:BoundColumn Visible="False" DataField="useListTitle" HeaderText="useListTitle" HeaderStyle-CssClass="title">
                    </asp:BoundColumn>
                </Columns>
            </asp:DataGrid>
        
        </div>
        <div class="ft">
            <div class="pagination">
                    <asp:Label ID="lblPage" runat="server"></asp:Label>
            </div>
            <!--/action-field-->
        </div>
    </div>
    </form>
</body>
</html>
