<%@ Page Language="c#" Inherits="Web.User.manageContribute" CodeBehind="manageContribute.aspx.cs" %>
<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
    <title>manage contribute</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--#include file="../Css/userCssList.htm"-->
    <script type="text/javascript">
        jQuery(function ($) {

            $("#save").click(function () {
                return confirm("您确定要继续执行本次操作吗？");
            });
            
            /*列表高度*/
            $('.function-bd').height($(window).innerHeight() - 145);

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

        });
        
    </script>
    <script language="javascript" type="text/javascript">
    function openViewWin(flag) 
    {
        //window.open("viewAuditRemark.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':'viewAuditRemark.aspx?pkId='+flag
        });
    }
    
    function openCheckAllWin(bigClassId, menuId) 
    {
        //window.open("auditMore.aspx?bigClassId="+bigClassId +"&menuId="+menuId+"","批量审核","scrollbars=yes,width=900,height=500");
        var url="auditMore.aspx?bigClassId="+bigClassId +"&menuId="+menuId;
        
        var a = $("<a href='"+url+"' target='_blank'>Apple</a>").get(0);  
        var e = document.createEvent('MouseEvents');  
            e.initEvent('click', true, true);  
            a.dispatchEvent(e);  
            console.log('event has been changed');
    }
    </script>

</head>
<body>
    <form method="post" runat="server">
    <div class="list-func-box func-box">
        <div class="hd">
            <div class="breadcrumb">
                <asp:PlaceHolder ID="placeHead" runat="server"></asp:PlaceHolder>
            </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" CssClass="drop-txt" AutoPostBack="True" OnSelectedIndexChanged="StateDropDownList_SelectedIndexChanged"></asp:DropDownList>
                </div>
                <!--/search-box-->
                <div class="action-field">
                    <asp:Button ID="save" class="btn" runat="server" Text="保 存" OnClick="save_Click"></asp:Button>
                    &nbsp;
                    <asp:Button ID="ok" class="btn" runat="server" Text="添 加" OnClick="ok_Click"></asp:Button>
                    <%--<asp:Button ID="AuditMore" class="btn" runat="server" Text="批量审核" />--%>
                    &emsp;
                    <asp:HyperLink ID="AuditMore" runat="server" Target="_blank" CssClass="blue">批量审核</asp:HyperLink>
                </div>
                <!--/action-field-->
            </div>
            <div class="function-bd" style="height: 580px; overflow: auto;">
            <!--[if lte IE 7]><div style="zoom:1"><![endif]-->
            <asp:HiddenField ID="hfidstr" runat="server" />
            <asp:HiddenField ID="hftitlestr" runat="server" />
            <asp:DataGrid ID="newsGrid" runat="server" class="list-table" AllowSorting="True" AutoGenerateColumns="False" OnItemCommand="newsGrid_ItemCommand">
                <Columns>
                    <asp:BoundColumn DataField="pkId" HeaderText="ID号" HeaderStyle-CssClass="hidden" ItemStyle-CssClass="hidden" FooterStyle-CssClass="hidden">
                    </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", "ShwContribute.aspx?pkId={0}") %>'> 
                            </asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:BoundColumn DataField="userName" HeaderText="发布人账号" HeaderStyle-CssClass="title"></asp:BoundColumn>
                    <asp:TemplateColumn HeaderText="发布人昵称" HeaderStyle-CssClass="title">
                        <ItemTemplate>
                            <a href="#"><asp:Label ID="info" runat="server" Text='<%#Eval("fullName") %>' ToolTip='<%# "发布IP："+ Eval("updateIp") %>'></asp:Label></a>
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:TemplateColumn HeaderText="发布时间" HeaderStyle-CssClass="title">
                        <ItemTemplate>
                            <a href="#"><asp:Label ID="lbtime" runat="server" Text='<%# Eval("updateTime", "{0:yyyy-M-d}") %>' ToolTip='<%# Eval("updateTime") %>'></asp:Label></a>
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:TemplateColumn HeaderText="审核状态" HeaderStyle-CssClass="title">
                        <ItemTemplate>
                            <asp:DropDownList ID="state" runat="server" Visible="False">
                            </asp:DropDownList>
                            <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">审核</asp:LinkButton>&nbsp;
                            <asp:LinkButton ID="contribute" runat="server" CommandName="contribute">投稿</asp:LinkButton>&nbsp;
                            <asp:LinkButton ID="view" runat="server" CommandName="view">查看批注</asp:LinkButton>&nbsp;
                            <asp:CheckBox ID="del" runat="server" Text="删除"></asp:CheckBox>
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:BoundColumn DataField="state" HeaderText="状态" Visible="False" HeaderStyle-CssClass="title"></asp:BoundColumn>
                    <asp:BoundColumn DataField="contributeId" HeaderText="" Visible="False"></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"></asp:Label>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
