<%@ 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/userCssList.htm"-->

    <script language="javascript" type="text/javascript">
        jQuery(function ($) {
            
            /*列表高度*/
            $('.function-bd').height($(window).innerHeight() - 145);

            $(window).resize(function () {
                $('.function-bd').height($(window).innerHeight() - 145);
            });

        });
        
    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>

</head>
<body>
    <form method="post" runat="server">
    <div class="list-func-box func-box">
        <div class="hd">
            <div class="breadcrumb">
                <asp:Label ID="lbNav" runat="server"></asp:Label>
            </div>
            <!--/breadcrumb-->
            <div class="user-service">
                <%--<a class="help" href="#">帮助</a>--%></div>
            <!--/user-service-->
        </div>
        <div class="bd">
            <div class="function-hd">
                <div class="search-box fr">
                    状态查看：<asp:DropDownList ID="StateDropDownList" runat="server" AutoPostBack="True" OnSelectedIndexChanged="StateDropDownList_SelectedIndexChanged" CssClass="drop-txt">
                        <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>
                <!--/search-box-->
                <div class="action-field">
                
                </div>
                <!--/action-field-->
            </div>
            <div class="function-bd" style="height: 580px; overflow: auto;">
            <!--[if lte IE 7]><div style="zoom:1"><![endif]-->
                    <asp:DataGrid ID="newsGrid" runat="server" class="list-table" 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>
                                    <asp:HyperLink ID="intactTitle" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.intactTitle") %>'
                                        Target="_blank" NavigateUrl='<%# Eval("copyFromLink") + "newsInfo.aspx?pkId=" + Eval("originalNewsId") %>'> 
                                    </asp:HyperLink>
                                </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>
                                    <asp:LinkButton ID="edit" runat="server" CommandName="edit">编辑</asp:LinkButton>&nbsp;
                                    <asp:LinkButton ID="audit" runat="server" CommandName="audit" CausesValidation="False">审核</asp:LinkButton>&nbsp;
                                    <asp:LinkButton ID="view" runat="server" CommandName="view">查看批注</asp:LinkButton>&nbsp;
                                    <asp:CheckBox ID="del" runat="server" Text="删除" Visible="False"></asp:CheckBox>&nbsp;
                                </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>
    </form>
</body>
</html>
