<%@ page language="C#" autoeventwireup="true" inherits="SystemManagement_NoticeManagement, App_Web_ygqhqmlp" %>
    
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>公告管理</title>
    <style type ="text/css"> 
                .mycss   table   tr   td   table   tr   td   span   {   color:red;   } 
        </style>  
    <link href="CssHtml.css" rel="stylesheet" type="text/css" />
    <script src="My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script type="text/javascript">
var oWindow;
function ow(Url,W,H)
{
    if (typeof(oWindow)=="object")
      {
        if (oWindow.closed)
        {
         var   prostr;   
        prostr   ="height="+ H +",width="+ W+ " ,top=50,left=180,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,   resizable=no";         
        oWindow=window.open(Url,"",prostr);         
        oWindow.focus(); 
         }
         else
        {
        oWindow.focus();
         }
     }
     else
        {
          var   prostr;   
        prostr   ="height="+ H +",width="+ W+ " ,top=50,left=180,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,   resizable=no";         
        oWindow=window.open(Url,"",prostr);         
        oWindow.focus();
      }
}


    </script>

</head>
<body style="font-size: 9pt">
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
       
        <div style ="margin-top :0px; ">
            <table style="width: 100%;font-size: 9pt ;  border-bottom: #1471b0 1px solid;" cellpadding="0" cellspacing="0">
                <tr>
                
                  <td style=" width :35%;" align="left">
                        目前位置： 系统公告 </td>
                  
                    <td style="width: 65%; height: 22px;" align="right">                                         
                        <asp:ImageButton ID="toexcel" runat="server" ImageUrl="Images/17.gif" OnClick="ImageButton3_Click" />
                        
                         <a href="OnlineHelp/OnlineHelp.aspx" target="_blank">
                                        <img src="Images/8.gif" style="border-top-style: none; border-right-style: none;
                                            border-left-style: none; border-bottom-style: none;" /></a></td>
                </tr>
            </table>
             <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate> 
              <table width =100%  style="height: 8px; " cellpadding="0" cellspacing="0"><tr style="height: 8px;"><td style="height: 8px;" align =center valign =top  >
                    <asp:ImageButton ID="img_open" runat="server" ImageUrl="Images/arrow_d.gif" Height="6px"  ToolTip="展开查询面板" OnClick="img_open_Click" />
                    </td></tr></table>
               <asp:Panel ID="Panel1"   runat="server" Visible="False">
                <input id="output_sql" type="hidden" runat ="server"  />
         <input id="output_name" type="hidden" runat ="server"  />             
                   <table width=100% style="border-right: gold 2px solid; border-top: gold 2px solid; border-left: gold 2px solid; border-bottom: gold 2px solid">        <tr>
                                
                                <td style="width: 100%;  height: 23px;"
                                    valign="middle">
                                   <img src="images/ss.jpg" style="width: 21px; height: 21px"  />  
                                  搜索内容：
                                    <asp:TextBox ID="txtKeyword" runat="server" Width="106px" BorderStyle="Ridge" MaxLength="25"
                                        ToolTip="输入查找值" Height="19px" Font-Size="9pt"></asp:TextBox>&nbsp;字段：<asp:DropDownList ID="dpdKeywords" runat="server"
                                            TabIndex="1" ToolTip="精确查询时必选" Height="20" >
                                            <asp:ListItem Value="theme">标题</asp:ListItem>
                                            <asp:ListItem Value="contents">内容</asp:ListItem>
                                            
                                             <asp:ListItem Value="person">发布人</asp:ListItem>
                                             <asp:ListItem Value="edate">是否过期</asp:ListItem>
                                            
                                            
                                     
                                           
                                            <asp:ListItem Selected="True"></asp:ListItem>
                                        </asp:DropDownList>
                                        <input id="Radio1"
                                        runat="server" name="searchWay" type="radio" /> 模糊查询<input id="Radio2" runat="server" name="searchWay" type="radio" 
                                        checked="true" />精确查询
                                    <asp:Button ID="btnSubmit" runat="server" Height =22px  Text="查 询" onclick="btnSubmit_Click"  Width="64px"/>
                                    &nbsp; &nbsp;
                                   
                              
                                    <input id="Checkbox1" runat="server" type="checkbox" enableviewstate="true" />创建日期&nbsp;
                                    从：
                              
                                  
                                    <input id="txtD1" type="text"  class="Wdate" maxlength="10" 
                        onclick="WdatePicker()" runat="server"  readonly ="readonly" style="width: 95px; height: 19px; border-right: #a4c6f1 1px solid; border-top: #a4c6f1 1px solid; border-left: #a4c6f1 1px solid; border-bottom: #a4c6f1 1px solid;"/>
                                    
                                 
                                     至：<input id="txtD2" type="text"  class="Wdate" maxlength="10" 
                        onclick="WdatePicker()" runat="server"  readonly ="readonly" style="width: 95px; height: 19px; border-right: #a4c6f1 1px solid; border-top: #a4c6f1 1px solid; border-left: #a4c6f1 1px solid; border-bottom: #a4c6f1 1px solid;" />
                                <asp:Label ID="lbl_state" ForeColor ="red"  runat="server" Text=""></asp:Label>     
                                    </td>
                               
                            </tr>
                            </table> 
                           
                     </asp:Panel>  
                         
                             <div class ="mycss" >
            <asp:GridView ID="GridView1" runat="server" Style="width: 100%; text-align: center"
                AutoGenerateColumns="False"     PageSize="15"  AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging" CellPadding="0" CellSpacing ="0"  >
                 <EmptyDataTemplate>
                       <table width="100%">
                            <tr style="background-color: #1471b0;height: 19px">
                            
                                <td style="color: white; font-weight: bold; font-size: 9pt;" align="center" >标题
                                </td>
                                <td style="color: white; font-weight: bold; font-size: 9pt;" align="center" >发布人
                                </td>
                                <td  style="color: white; font-weight: bold; font-size: 9pt;" align="center">创建日期
                              </td>
                               <td  style="color: white; font-weight: bold; font-size: 9pt;" align="center">过期日期
                              </td>
                                
                                
                            </tr>
                            <tr>
                                <td align =center   colspan=5>
                                没有数据....................................................
                                </td>
                                
                            </tr>
                        </table>
                    </EmptyDataTemplate>
                
                
                
                <Columns>
                    
                   
                  
                    <asp:TemplateField HeaderText="公告标题"  >
                        <ItemTemplate>
                           
                                 <a href='SystemManagement/openNotice.aspx?id=<%#DataBinder.Eval(Container.DataItem,"id")%>'  style ="color :Blue ;" target="_blank">      <%#DataBinder.Eval(Container.DataItem,"Theme")%></a>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Left" />
                    </asp:TemplateField>
                    
                    
                  
                    
                 <asp:TemplateField HeaderText="发布人">
                        <ItemTemplate>
                           <asp:Label ID="lbl_receiverName" ToolTip ="" runat="server" Text='<%#  Eval("person") %>'></asp:Label>
                        
                        </ItemTemplate>
                    </asp:TemplateField>
                   <asp:TemplateField HeaderText="创建日期" SortExpression="cdate"  >
                        
                        <ItemTemplate>
                            <asp:Label ID="lbl_cdate" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"cdate","{0:yyyy-MM-dd}")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                  
                    <asp:TemplateField HeaderText="过期日期" SortExpression="edate"    >
                        
                        <ItemTemplate>
                            <asp:Label ID="lbl_edate" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"edate","{0:yyyy-MM-dd}")%>'  ></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                  
                </Columns>
              
                <HeaderStyle BackColor="#1471B0" Font-Size="9pt" ForeColor="White"  height=21px/>
                <AlternatingRowStyle BackColor="White" />
               
            </asp:GridView> 
            <asp:SqlDataSource ID="SqlDataSource1" runat="server"></asp:SqlDataSource>
            </div> 
         </ContentTemplate>
        </asp:UpdatePanel>  
         
        </div> 
      
    </form>
</body>
</html>
