<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="manageNewsCount1.aspx.cs" Inherits="Web.Wpdcc.manageNewsCount1" EnableEventValidation="false" %>

<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
    <title>website count</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--#include file = "../Css/head.htm" -->
</head>
<body>
    <div class="main-content-inner">
        <!-- #section:basics/content.breadcrumbs -->
        <div class="breadcrumbs" id="breadcrumbs">
            <script type="text/javascript">
                try { ace.settings.check('breadcrumbs', 'fixed') } catch (e) { }
            </script>
            <ul class="breadcrumb">
                <li>
                    <i class="ace-icon fa  fa-desktop"></i>
                    <a href="welcome.aspx">主页</a>
                </li>
                <li>网站数据分析
                </li>
                <li class="active">栏目发文统计</li>
            </ul>
            <!-- /.breadcrumb -->

            <!-- /section:basics/content.searchbox -->
        </div>
        <!-- /section:basics/content.breadcrumbs -->
        <div class="page-content">
            <div class="row">
                <div class="col-xs-12">
                    <!-- PAGE CONTENT BEGINS -->
                    <form id="form1" runat="server">
                        <div class="list-func-box func-box">
                            <div class="action-field">
                                <div class="tabbable">
                                    <ul class="nav nav-tabs" id="myTab4">
                                        <li class="active">
                                            <a aria-expanded="true" href="manageNewsCount1.aspx" data-toggle="tab">栏目发文统计</a>
                                        </li>
                                        <li>
                                            <a aria-expanded="false" href="manageNewsCount.aspx" data-toggle="tab">部门发文统计</a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                            <div class="bd tab-content">
                                <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
                                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                    <ContentTemplate>
                                        <div class="page-header clearfix">
                                            <div class="action-field">
                                                <div class="function-hd">
                                                    <div class="search-box fr">
                                                    </div>
                                                    <!--/search-box-->
                                                    <div class="action-field">
                                                        <div class="col-xs-8 col-sm-6">
                                                            <span class="pull-left">发文时间：</span>
                                                            <div class="input-daterange input-group pull-left">
                                                                <input id="txtBegintime" runat="server" class="input-sm form-control" type="text">
                                                                <span class="input-group-addon">
                                                                    <i class="fa fa-exchange"></i>
                                                                </span>
                                                                <input id="txtEndtime" runat="server" class="input-sm form-control" type="text">
                                                            </div>

                                                            <!-- /section:plugins/date-time.datepicker -->
                                                        </div>
                                                        <div class="pull-right">
                                                            &nbsp;
                                                        <asp:CheckBox ID="ckbBigclass" runat="server" Text="栏目：" Visible="false" />
                                                            <asp:DropDownList ID="ddlbigclass" runat="server" CssClass="input-md" DataTextField="name" DataValueField="bigclassId" Visible="false">
                                                            </asp:DropDownList>
                                                            <asp:DropDownList ID="ddlPassed" runat="server" CssClass="input-md" Visible="false">
                                                                <asp:ListItem Text="<全部>" Value="2"></asp:ListItem>
                                                                <asp:ListItem Text="通过" Value="1"></asp:ListItem>
                                                                <asp:ListItem Text="待审" Value="0"></asp:ListItem>
                                                            </asp:DropDownList>
                                                            <asp:DropDownList ID="ddlGrade" runat="server" Visible="false" CssClass="input-md" Width="70" DataTextField="name" DataValueField="pkId">
                                                            </asp:DropDownList>
                                                            <asp:DropDownList ID="ddlMode" CssClass="input-md" Visible="false" Width="100" runat="server" AutoPostBack="true" OnTextChanged="ddlMode_TextChanged">
                                                                <asp:ListItem Text="按栏目统计" Value="2"></asp:ListItem>
                                                            </asp:DropDownList>
                                                            &nbsp;&nbsp;
                                                        <asp:Button ID="btnQuery" class="btn btn-sm btn-primary" runat="server" Text="查询" OnClick="Btn_Click" />
                                                            &nbsp;&nbsp;
                                                        <asp:Button ID="btnExp" class="btn btn-sm btn-primary" runat="server" Text="导出" OnClick="Btn_Click" />
                                                            &nbsp;&nbsp;
                                                <a href="manageNewsImg.aspx" class="btn btn-primary btn-sm ">
                                                    <i class="ace-icon glyphicon glyphicon-align-left align-top bigger-125"></i>
                                                    统计图模式</a>
                                                        </div>
                                                    </div>
                                                    <!--/action-field-->
                                                </div>
                                            </div>
                                        </div>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                                <div class="function-bd">
                                    <!--[if lte IE 7]><div style="zoom:1"><![endif]-->
                                    <asp:GridView ID="gvResult" EmptyDataText="此时间段没有栏目发文记录 >_<~~~~" runat="server" class="table table-striped table-bordered table-hover" AutoGenerateColumns="false" AllowPaging="false" AllowSorting="true" OnSorting="gvResult_Sorting">
                                        <%-- <Columns>
                        <asp:BoundField HeaderText="部门" DataField="deptname" SortExpression="deptname" />
                        <asp:BoundField HeaderText="用户账号" DataField="username" SortExpression="username" />
                        <asp:BoundField HeaderText="用户名称" DataField="fullname" SortExpression="fullname" />
                        <asp:BoundField HeaderText="栏目" DataField="name" SortExpression="name" />
                        <asp:BoundField HeaderText="发文数" DataField="fbcount" SortExpression="fbcount" />
                        <asp:BoundField HeaderText="审核通过数" DataField="passedcount" SortExpression="passedcount" />
                        <asp:BoundField HeaderText="总点击量" DataField="clicksum" SortExpression="clicksum" />
                    </Columns>--%>
                                    </asp:GridView>
                                    <!--[if lte IE 7]></div><![endif]-->
                                </div>
                                <!--/function-bd-->
                            </div>
                        </div>
                    </form>
                    <!-- PAGE CONTENT ENDS -->
                </div>
            </div>
        </div>
        <!-- /.page-content -->
    </div>
    <!--#include file = "../Css/foot.htm -->
    <script type="text/javascript">
        jQuery(function ($) {

            //datepicker plugin
            //link
            $('.date-picker').datepicker({
                autoclose: true,
                todayHighlight: true
            })
            //show datepicker when clicking on the icon
            .next().on(ace.click_event, function () {
                $(this).prev().focus();
            });

            //or change it into a date range picker
            $('.input-daterange').datepicker({ autoclose: true });
        });
    </script>
</body>
</html>
