<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UnitStat.aspx.cs" Inherits="Web.User.UnitStat" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
     <script type="text/javascript" src="WebCalendar.js"></script>
      <script src="Init.js" type="text/javascript"></script>
      <script type="text/javascript" src="../../Css/Common.js"></script>
     <link href="../../Css/Admin.CSS" rel="stylesheet" type="text/css">
     <script type="text/javascript">
         function showdiv() {
             OnInit();
         }
 
     </script>
    <style type="text/css">
        #table1
        {
            width: 818px;
        }
    </style>
</head>
<body onload="showdiv()">
    <form id="form1" runat="server">
<div>    
        <table id="Table1" cellspacing="1" border="0" align="center" bgcolor="#EDF1FA">
            <tr>
            <td>&nbsp;时间范围：&nbsp;<asp:TextBox ID="txtStartDate" runat="server" 
                    Width="70px" onclick="new Calendar().show(this);" Height="18"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtStartDate"
                                ErrorMessage="起始日期格式不正确！" ValidationExpression="^((\d{2}(([02468][048])|([13579][26]))[\-\/\s]?((((0?[13578])|(1[02]))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\-\/\s]?((0?[1-9])|([1-2][0-9])))))|(\d{2}(([02468][1235679])|([13579][01345789]))[\-\/\s]?((((0?[13578])|(1[02]))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\-\/\s]?((0?[1-9])|(1[0-9])|(2[0-8]))))))(\s(((0?[1-9])|(1[0-2]))\:([0-5][0-9])((\s)|(\:([0-5][0-9])\s))([AM|PM|am|pm]{2,2})))?$">*</asp:RegularExpressionValidator>到&nbsp;<asp:TextBox ID="txtEndDate" runat="server" Width="70" Height="18"
                    onclick="new Calendar().show(this);"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtEndDate"
                                ErrorMessage="截止日期格式不正确！" ValidationExpression="^((\d{2}(([02468][048])|([13579][26]))[\-\/\s]?((((0?[13578])|(1[02]))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\-\/\s]?((0?[1-9])|([1-2][0-9])))))|(\d{2}(([02468][1235679])|([13579][01345789]))[\-\/\s]?((((0?[13578])|(1[02]))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\-\/\s]?((0?[1-9])|(1[0-9])|(2[0-8]))))))(\s(((0?[1-9])|(1[0-2]))\:([0-5][0-9])((\s)|(\:([0-5][0-9])\s))([AM|PM|am|pm]{2,2})))?$">*</asp:RegularExpressionValidator>
                 <div style="display:inline;">单位类别：&nbsp;<select ID="DLunittype" runat="server" onchange="onSelectSource()" >
                            <option Value="0" selected="selected">请选择</option>
                        </select>
                        &nbsp;单位名称：&nbsp;<select ID="DLarticlesource" runat="server" onchange="Onselect()">
                            <option Value="0" selected="selected">全部</option>
                        </select>
                        <div style="display:none;">
                            <asp:TextBox ID="txttype" runat="server" Width="26px" Text=""></asp:TextBox>
                            <asp:TextBox ID="txtsource" runat="server" Width="30px" Text=""></asp:TextBox>
                            </div> </div>&nbsp;<asp:Button ID="Search_btn" runat="server" 
                    Text="查询" Width="54px" onclick="Search_btn_Click" />&nbsp;&nbsp;
                <asp:Button ID="btn_out" runat="server" Text="导出" onclick="btn_out_Click" />
                </td>
            </tr>           
            <tr>
                <td valign="top">
                <table id="table_one" runat="server" width="812px">
                <tr>
                <td height="25" align="center" class="table_title"><font size="4"><asp:Label 
                        ID="Label1" runat="server" Text=""></asp:Label>新闻明细表</font></td>
                </tr>
                <tr>
                 <td>
                    <asp:DataGrid runat="server"  AutoGenerateColumns="False" id="dg" 
                        CellPadding="5" Width="812px" BackColor="#EDF1FA" BorderStyle="Solid" BorderWidth="1px" BorderColor="Gray">
                    <PagerStyle NextPageText="上一页" PageButtonCount="100" PrevPageText="" 
                            Visible="False" Mode="NumericPages" />
                    <Columns>
                         <asp:BoundColumn DataField="bigClassName" HeaderText="所属栏目">
                         <ItemStyle  HorizontalAlign="Center" Height="20" Width="120"/>
                         </asp:BoundColumn>
                         <asp:TemplateColumn HeaderText="文章标题">
                         <ItemTemplate>
                         <%# GetintactTitle((DataBinder.Eval(Container,"DataItem.intactTitle").ToString())) %>
                         </ItemTemplate>
                         <ItemStyle  Height="20" Width="250"/>
                         </asp:TemplateColumn>
                       <asp:BoundColumn HeaderText="发布时间" DataField="times">
                       <ItemStyle  HorizontalAlign="Center" Height="20" Width="80"/>
                       </asp:BoundColumn>
                        <asp:BoundColumn HeaderText="作者" DataField="Author">
<ItemStyle HorizontalAlign="Center" Height="20px" Width="100px"></ItemStyle>
                         </asp:BoundColumn>
                        <asp:BoundColumn HeaderText="审核人" DataField="UserName">
                            <ItemStyle Height="20px" HorizontalAlign="Center" Width="100px" />
                         </asp:BoundColumn>
                         <asp:TemplateColumn HeaderText="审核是否通过（是/否）">
                         <ItemTemplate>
                         <%# Getpass(Convert.ToInt32((DataBinder.Eval(Container,"DataItem.pass").ToString()))) %>
                         </ItemTemplate>
                             <ItemStyle HorizontalAlign="Center" />
                         </asp:TemplateColumn>
                    </Columns>
                    <HeaderStyle HorizontalAlign="Center" 
                        VerticalAlign="Middle" Height="20" />
                    </asp:DataGrid>
                 </td>
                </tr>
                    </table>
                    <asp:Label ID="showPage" runat="server" Text="Label"></asp:Label>
                    <asp:Label ID="Showmessage" runat="server" ForeColor="Red"></asp:Label>
                 </td>
            </tr>
            
            <tr>
                <td height="30">总计：审核通过：<asp:Label ID="pass_count" runat="server" 
                        ForeColor="#FF3300"></asp:Label>
                &nbsp;总共文章数量：<asp:Label ID="news_count" runat="server" 
                    ForeColor="#FF3300"></asp:Label>
                </td>
           </tr>
        </table>
  
    </div>
    </form>
</body>
</html>
