<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="notice_manage.aspx.cs" Inherits="Web.yw.notice_manage1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>无标题页</title>
    <link href="../css/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="fom" runat="server">
        <div id ="main-c-03-right" >
            <table cellpadding="0"; cellspacing ="0"; style =" width :100%;background-image: url('../css/images/right_top.png'); background-repeat :repeat-x" >
                <tr>
                    <td style ="width :720px; height :34px;  background-image: url('../css/images/atghtj.png');	background-repeat: no-repeat;
                	background-position: left top;"><div id="main-c-03-right02-top">
                	   <!--这里添加页面标题 -->
                      	公告管理
                      	
                	</div></td>
                </tr>
            </table>
            <div id="main-c-03-right02-main">
          <asp:Panel   ID="Panel3" runat ="server" >
<!--栏目开始 -->
<div runat ="server"  id ="table_List">
            <table style ="width :100%" border="0" align="center" cellpadding="0" cellspacing="0" class="ziti04">
               <tr>
                    <td style ="font-weight:bolder;background-image: url('../css/images/asdfrsg.png'); height :33px; padding-left :20px">
                    <!--这里添加栏目标题 -->
                    公告列表
                    
                     &gt;&gt;</td>
                    <td style ="background-image: url('../css/images/asdfrsg.png'); width :103px"></td>
                    <td style ="background-image: url('../css/images/asdfrsg.png'); width :64px"></td>
                    <td  style ="background-image: url('../css/images/asdfrsg.png'); width :76px" ></td>
                </tr>
                <tr>
                    <td height="10" colspan="4" style="font-weight:bolder;"></td>
                </tr>
            </table>
            <!--这里添加内容 -->
            <asp:GridView ID="GridView1" runat="server" 
            onrowdatabound="GridView1_RowDataBound" Width="100%" 
                BorderWidth="1px" CssClass="gv" AutoGenerateColumns="False" 
                            onselectedindexchanging="GridView1_SelectedIndexChanging" onrowcreated="GridView1_RowCreated" 
                onrowdeleting="GridView1_RowDeleting">
            <RowStyle BorderWidth="1px" CssClass="gvrow" />
                        <Columns>
                         <asp:TemplateField> 
               <HeaderTemplate>  <asp:CheckBox ID="CheckBox2" Text ="全选" runat="server" AutoPostBack="True" 
                OnCheckedChanged="CheckBox2_CheckedChanged"  />    </HeaderTemplate>        
               <ItemTemplate><asp:CheckBox ID="CheckBox1" runat="server" /></ItemTemplate>               
               </asp:TemplateField>
                              <asp:BoundField DataField="id" HeaderText="序号" ReadOnly="True" />
                <asp:TemplateField HeaderText="标题" ShowHeader="False">
                    <ItemTemplate>
                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" 
                            CommandName="Select" Text='<%# bind("noticetitle") %>'></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
       
                <asp:BoundField DataField="industry" HeaderText="可查阅主管部门" ReadOnly="True" />
                <asp:BoundField DataField="department" HeaderText="可查阅单位" ReadOnly="True" />
                <asp:BoundField DataField="noticedate" HeaderText="发布时间" ReadOnly="True" />
                <asp:BoundField DataField="noticemanages" HeaderText="发布人" ReadOnly="True" />
                <asp:BoundField DataField="managerid" HeaderText="发布人证件号" ReadOnly="True" />
                <asp:BoundField DataField="noviceview" HeaderText="显示" ReadOnly="True" />
                <asp:CommandField HeaderText="修改" DeleteText="修改" ShowDeleteButton="True" />
                                </Columns>
            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
        </asp:GridView>
<table cellpadding="0" cellspacing="0" style ="width :100%">
              <tr>
                  <td style =" padding-left :5px; text-align :left  ">
                                            <asp:Button ID="btDelAll" runat="server" onclick="btDelAll_Click" 
                              Text="批量删除" Visible="False" />
                        </td>
                  <td  id ="allowpage" runat ="server" style ="text-align :right ;  padding-right  :5px">
                      &nbsp;</td>
              </tr>
          </table>
</div> 
<!--栏目结束 -->
               
<!--栏目开始 -->
<div runat ="server" id ="table1">
                <table style =" width :100%" border="0" align="center" cellpadding="0" cellspacing="0" class="ziti04">
                     <tr>
                         <td style ="font-weight:bolder;background-image: url('../css/images/asdfrsg.png'); width :497px; height :33px; padding-left :20px">
                             <!--这里添加栏目标题 -->
                             添加公告 
                             &gt;&gt;</td>
                         <td style ="background-image: url('../css/images/asdfrsg.png'); width :103px"></td>
                         <td style ="background-image: url('../css/images/asdfrsg.png'); width :64px"></td>
                         <td  style ="background-image: url('../css/images/asdfrsg.png'); width :76px" ></td>
                    </tr>
                    <tr>
                         <td height="10" colspan="4" style="font-weight:bolder;"></td>
                    </tr>
                </table>
                        <!--这里添加内容 -->
                        <table  style =" width :700px" border = "1" class ="table " cellpadding ="0" cellspacing ="0">
                <tr>
                    <td style ="width:80px"  class ="tabletd_right ">
                        公告标题：</td>
                    <td class ="tabletd_left ">
                        <asp:TextBox ID="tbNoticetitle" runat="server"></asp:TextBox><span style ="color :Red ">（必填）</span>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                            ControlToValidate="tbNoticetitle" Display="Dynamic" ErrorMessage="标题不能为空。" 
                            ValidationGroup="AddNotice" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class ="tabletd_right " >
                        公告内容：</td>
                    <td class ="tabletd_left ">
        <asp:TextBox ID="tbNoticecontent" runat="server" Width="500px" Rows="5" TextMode="MultiLine"></asp:TextBox>
                          <span  style ="color :Red ">（必填）</span><div>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                              ControlToValidate="tbNoticecontent" Display="Dynamic" 
                            ErrorMessage="内容不能为空。" ValidationGroup="AddNotice" ForeColor="Red"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" 
                                ControlToValidate="tbNoticecontent" Display="Dynamic" ErrorMessage="不能超过300个字" 
                                ValidationExpression="^[\S\s]{1,300}$" ValidationGroup="AddNotice" 
                                ForeColor="Red"></asp:RegularExpressionValidator>
                        </div> 
                    </td>
                </tr>
                                <tr>
                    <td class ="tabletd_right ">
                        添加附件：</td>
                    <td class ="tabletd_left ">
                        <asp:FileUpload ID="FileUpload1" runat="server" />
                        <asp:Button ID="btUpload" runat="server" Text="上传" onclick="btUpload_Click" />
                        
                        单个附件不大于4M<div>
                            <asp:Label ID="lbFileNameList" runat="server" Text="已经上传的文件：" Visible="False"></asp:Label>
                            <asp:CheckBoxList ID="cblFileList" runat="server">
                            </asp:CheckBoxList>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="tabletd_right ">
                        单位：<br /> 
                        <asp:CheckBox ID="cbChoose_Department" runat="server" AutoPostBack="True" 
                            oncheckedchanged="cbChoose_Department_CheckedChanged" Text="全选" 
                            Visible="False" />
                    </td>
                    <td class="tabletd_left ">
                        <asp:CheckBoxList ID="cblAddDepartment" runat="server" RepeatColumns="6" 
                            RepeatDirection="Horizontal">
                        </asp:CheckBoxList>
                    </td>
                </tr>
                <tr>
                    <td class="tabletd_right ">
                        前台显示：</td>
                    <td class="tabletd_left ">
                        <asp:RadioButtonList ID="rblView" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Selected="True">是</asp:ListItem>
                            <asp:ListItem>否</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                        <tr>
                            <td class="tabletd_right ">
                                &nbsp;</td>
                            <td class="tabletd_left ">
                                <asp:Button ID="btAddNotice" runat="server" onclick="btAddNotice_Click" 
                                    Text="添加" ValidationGroup="AddNotice" />
                            </td>
                        </tr>
            </table>
          </div>               
<!--栏目结束 -->
</asp:Panel> 
            
<!--栏目开始 -->
<div runat ="server" id ="table_Edit">
                <table style =" width :100%" border="0" align="center" cellpadding="0" cellspacing="0" class="ziti04">
                     <tr>
                         <td style ="font-weight:bolder;background-image: url('../css/images/asdfrsg.png'); width :497px; height :33px; padding-left :20px">
                             <!--这里添加栏目标题 -->
                             修改公告 
                             &gt;&gt;</td>
                         <td style ="background-image: url('../css/images/asdfrsg.png'); width :103px"></td>
                         <td style ="background-image: url('../css/images/asdfrsg.png'); width :64px"></td>
                         <td  style ="background-image: url('../css/images/asdfrsg.png'); width :76px" ></td>
                    </tr>
                    <tr>
                         <td height="10" colspan="4" style="font-weight:bolder;"></td>
                    </tr>
                </table>
                        <!--这里添加内容 -->
                        <table  style =" width :700px" border = "1" class ="table " cellpadding ="0" cellspacing ="0">
                <tr>
                    <td class="tabletd_right " style="width:80px">
                        公告标题：</td>
                    <td class="tabletd_left ">
                        <asp:TextBox ID="tbEditNoticetitle" runat="server"></asp:TextBox><span style ="color :red ">（必填）</span>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" 
                            ControlToValidate="tbEditNoticetitle" Display="Dynamic" ErrorMessage="标题不能为空。" 
                            ValidationGroup="EditJilu" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class ="tabletd_right " >
                        <asp:Label ID="Label3" runat="server" Text="公告内容："></asp:Label>
                    </td>
                    <td class ="tabletd_left ">
                        <asp:TextBox ID="tbEditNeirong" runat="server" Rows="5" TextMode="MultiLine" 
                            Width="500px"></asp:TextBox><span style ="color :Red ">（必填）</span><div>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                            ControlToValidate="tbEditNeirong" Display="Dynamic" ErrorMessage="内容不能为空。" 
                            ValidationGroup="EditJilu" ForeColor="Red"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" 
                                ControlToValidate="tbEditNeirong" Display="Dynamic" ErrorMessage="不能超过300个字" 
                                ValidationExpression="^[\S\s]{1,300}$" ValidationGroup="EditJilu" 
                                ForeColor="Red"></asp:RegularExpressionValidator>
                        </div> 
                    </td>
                </tr>
                                                <tr>
                    <td class="tabletd_right ">
                        附件：</td>
                    <td class="tabletd_left ">
                                                                <asp:FileUpload ID="FileUploadEdit" runat="server" />
                        <asp:Button ID="btUploadEdit" runat="server" Text="上传" onclick="btUploadEdit_Click" />
                                                                单个附件不大于4M<div >
                        <asp:Label ID="lbFileNameListEdit" runat="server" Text="已经上传的文件：" Visible="False"></asp:Label>
                            <asp:CheckBoxList ID="cblFileNameListEdit" runat="server">
                            </asp:CheckBoxList>
                        </div>                    </td>
                </tr>
                <tr>
                    <td class="tabletd_right ">
                        单位：</td>
                    <td class="tabletd_left ">
                        <asp:DropDownList ID="ddlEditDepartment" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="tabletd_right ">
                        前台显示：</td>
                    <td class="tabletd_left ">
                        <asp:RadioButtonList ID="rblEditView" runat="server" 
                            RepeatDirection="Horizontal">
                            <asp:ListItem Selected="True">是</asp:ListItem>
                            <asp:ListItem>否</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class ="tabletd_right ">
        <asp:Label ID="lbEditId" runat="server" Visible="False"></asp:Label>
                    </td>
                    <td class ="tabletd_left ">
        <asp:Button ID="btEditNotice" runat="server" onclick="btEditNotice_Click" Text="提交修改" 
                            ValidationGroup="EditJilu" />
                    </td>
                </tr>
            </table>
       </div>                
<!--栏目结束 -->

            
<!--栏目开始 -->
<div runat ="server" id ="table_ViewNotice">
                <table style =" width :100%" border="0" align="center" cellpadding="0" cellspacing="0" class="ziti04">
                     <tr>
                         <td style ="font-weight:bolder;background-image: url('../css/images/asdfrsg.png'); width :497px; height :33px; padding-left :20px">
                             <!--这里添加栏目标题 -->
                             公告详情 
                             &gt;&gt;</td>
                         <td style ="background-image: url('../css/images/asdfrsg.png'); width :103px"></td>
                         <td style ="background-image: url('../css/images/asdfrsg.png'); width :64px"></td>
                         <td  style ="background-image: url('../css/images/asdfrsg.png'); width :76px" ></td>
                    </tr>
                    <tr>
                         <td height="10" colspan="4" style="font-weight:bolder;"></td>
                    </tr>
                </table>
                        <!--这里添加内容 -->
                        <table  style =" width :700px" border = "1" class ="table " cellpadding ="0" cellspacing ="0">
                <tr>
                    <td style ="width:80px"  class ="tabletd_right ">
                        发布人：</td>
                    <td class ="tabletd_left ">
        <asp:Label ID="lbNoticemanages" runat="server"></asp:Label>
                        &nbsp;</td>
                    <td style ="width:80px"  class ="tabletd_right ">
                        发布时间：</td>
                    <td class="tabletd_left ">
                        <asp:Label ID="lbNoticedate" runat="server"></asp:Label>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="tabletd_right " style="width:80px">
                        主管部门：</td>
                    <td class="tabletd_left ">
                        <asp:Label ID="lbIndustry" runat="server"></asp:Label>
                        &nbsp;</td>
                    <td class="tabletd_right " style="width:80px">
                        单位：</td>
                    <td class="tabletd_left ">
                        <asp:Label ID="lbDepartment" runat="server"></asp:Label>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="tabletd_right " style="width:80px">
                        公告标题：</td>
                    <td class="tabletd_left " colspan="3">
                        <asp:Label ID="lbNoticetitle" runat="server"></asp:Label>
                        &nbsp;&nbsp;</td>
                </tr>
                <tr>
                    <td class ="tabletd_right " >
                        公告内容：</td>
                    <td class ="tabletd_left " colspan="3">
                        <asp:Label ID="lbNoticecontent" runat="server"></asp:Label>
                        &nbsp;</td>
                </tr>
                                                <tr>
                    <td class="tabletd_right ">
                        附件：</td>
                                     <td class="tabletd_left " colspan="5" >
                                              <asp:BulletedList 
                            ID="BulletedList1" runat="server" DisplayMode="LinkButton" 
                            onclick="BulletedList1_Click">

                        </asp:BulletedList></td>
                </tr>
                <tr>
                    <td class="tabletd_right ">
                        &nbsp;</td>
                    <td class="tabletd_left " colspan="3">
                        <asp:Button ID="btBack" runat="server" onclick="btBack_Click" Text="返回" />
                    </td>
                </tr>
            </table>
             </div>            
<!--栏目结束 -->
                </div>
            </div>
        </form>
    </body>
</html>

