<%@ Page Language="c#" Inherits="Web.User.manageSiteContribute" CodeBehind="manageSiteContribute.aspx.cs" %>

<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
    <title>managesitecontribute</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--#include file="../Css/head.htm"-->
</head>
<body>
    <form method="post" runat="server">
        <div class="list-func-box func-box">
            <div class="hd">
                <div class="breadcrumb">
                    <ul class="breadcrumb">
                        <li>
                            <i class="ace-icon fa  fa-desktop"></i>&nbsp; 网站首页 &nbsp;&gt;&nbsp; 
                <asp:Label ID="lbNav" runat="server"></asp:Label>
                        </li>
                    </ul>
                </div>
                <!--/breadcrumb-->
            </div>
            <div class="page-content">
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <div class="list-func-box func-box">
                            <div class="bd">
                                <div class="function-hd">
                                    <div class="search-box pull-right">
                                        状态查看：<asp:DropDownList ID="StateDropDownList" runat="server" AutoPostBack="True" OnSelectedIndexChanged="StateDropDownList_SelectedIndexChanged" CssClass="input-md">
                                            <asp:ListItem Value="-1">全部</asp:ListItem>
                                            <asp:ListItem Value="0" Selected="True">未审核</asp:ListItem>
                                            <asp:ListItem Value="1">审核通过</asp:ListItem>
                                            <asp:ListItem Value="2">审核未通过</asp:ListItem>
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div class="function-bd">
                                    <!--[if lte IE 7]><div style="zoom:1"><![endif]-->
                                    <asp:DataGrid ID="newsGrid" runat="server" class="table table-striped table-bordered table-hover" AllowSorting="True" AutoGenerateColumns="False" OnItemCommand="newsGrid_ItemCommand">
                                        <Columns>
                                            <asp:BoundColumn Visible="False" DataField="pkId" HeaderText="ID号" HeaderStyle-CssClass="title"></asp:BoundColumn>
                                            <asp:TemplateColumn HeaderText="标题" HeaderStyle-CssClass="title">
                                                <ItemTemplate>
                                                    <span data-placement="right" data-rel="popover" data-content="<%# DataBinder.Eval(Container, "DataItem.intactTitle") %>" data-trigger="hover">
                                                        <asp:HyperLink ID="intactTitle" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.intactTitle") %>'
                                                            Target="_blank" NavigateUrl='<%# Eval("copyFromLink") + "newsInfo.aspx?pkId=" + Eval("originalNewsId") %>'> 
                                                        </asp:HyperLink>
                                                    </span>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:HyperLinkColumn DataNavigateUrlField="copyFromLink" DataTextField="CopyFrom" HeaderText="投稿单位" Target="_blank" HeaderStyle-CssClass="title"></asp:HyperLinkColumn>
                                            <asp:BoundColumn DataField="userName" HeaderText="发布人" HeaderStyle-CssClass="title"></asp:BoundColumn>
                                            <asp:TemplateColumn HeaderText="审核状态" HeaderStyle-CssClass="title">
                                                <ItemTemplate>
                                                    <asp:Label ID="LabelState" runat="server"></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="投稿栏目" HeaderStyle-CssClass="title">
                                                <ItemTemplate>
                                                    <asp:Label ID="lbBCName" runat="server"></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="管理" HeaderStyle-CssClass="title" ItemStyle-CssClass="td-a">
                                                <ItemTemplate>
                                                    <div class="action-buttons">
                                                        <asp:LinkButton ID="edit" runat="server" CommandName="edit" data-toggle="tooltip" data-placement="bottom" title="编辑"><i class="ace-icon fa fa-pencil bigger-120 blue" ></i></asp:LinkButton>
                                                        <asp:LinkButton ID="audit" runat="server" CommandName="audit" CausesValidation="False" data-toggle="tooltip" data-placement="bottom" title="审核"><i class="ace-icon glyphicon glyphicon-ok bigger-120"></i></asp:LinkButton>
                                                        <asp:LinkButton ID="view" runat="server" CommandName="view" data-toggle="tooltip" data-placement="bottom" title="查看批注"><i class="ace-icon fa fa-pencil-square-o bigger-120" ></i></asp:LinkButton>
                                                        <asp:CheckBox ID="del" runat="server" Text="删除" Visible="False"></asp:CheckBox>
                                                    </div>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:BoundColumn DataField="state" HeaderText="状态" Visible="False" HeaderStyle-CssClass="title"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="bigClassId" HeaderText="" Visible="False" HeaderStyle-CssClass="title"></asp:BoundColumn>
                                        </Columns>
                                    </asp:DataGrid>
                                    <!--[if lte IE 7]></div><![endif]-->
                                </div>
                            </div>
                            <!--/bd-->
                            <div class="ft">
                                <div class="pagination">
                                    <asp:Label ID="showPage" runat="server">Label</asp:Label>
                                </div>
                            </div>
                        </div>
                        <!-- PAGE CONTENT ENDS -->
                    </div>
                </div>
            </div>
        </div>
    </form>
    <!--#include file="../Css/foot.htm"-->
     <script language="javascript" type="text/javascript">
         function openViewWin(flag) {
             //window.open("viewSiteAuditRemark.aspx?pkId="+flag +"","查看审核批注","scrollbars=yes,width=300,height=190");
             $.fancybox({
                 'width': 400,
                 'height': 200,
                 'hideOnOverlayClick': false,
                 'transitionIn': 'elastic',
                 'transitionOut': 'fade',
                 'type': 'iframe',
                 'padding': '0',
                 'href': 'viewSiteAuditRemark.aspx?pkId=' + flag
             });
         }

    </script>
</body>
</html>
