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

<!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>OA标题页</title>
    <link href="../css/css.css" rel="stylesheet" type="text/css" />
      <meta charset="utf-8" />
    <link rel="stylesheet" href="../kindeditor/themes/default/default.css" />
	<link rel="stylesheet" href="../kindeditor/plugins/code/prettify.css" />
	<script charset="utf-8" src="../kindeditor/kindeditor-all.js"></script>
	<script charset="utf-8" src="../kindeditor/lang/zh-CN.js"></script>
	<script charset="utf-8" src="../kindeditor/plugins/code/prettify.js"></script>
	<script>
	    KindEditor.ready(function (K) {
	        var editor1 = K.create('#content1', {
	            cssPath: '../kindeditor/plugins/code/prettify.css',
	            uploadJson: '../kindeditor/asp.net/upload_json.ashx',
	            fileManagerJson: '../kindeditor/asp.net/file_manager_json.ashx',
	            allowFileManager: true,
	            afterCreate: function () {
	                var self = this;
	                K.ctrl(document, 13, function () {
	                    self.sync();
	                    K('form[name=example]')[0].submit();
	                });
	                K.ctrl(self.edit.doc, 13, function () {
	                    self.sync();
	                    K('form[name=example]')[0].submit();
	                });
	            }
	        });
	        prettyPrint();
	    });
	</script>
</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 class  ="main-c-03-right02-top">
                	   <!--这里添加页面标题 -->
                      	通知公告
                </td>
                </tr>
            </table>
            <div id="main-c-03-right02-main">
              <asp:Panel ID="Panel3" runat="server">            
<!--栏目开始 -->
            <!--这里添加内容 -->
            <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="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>
   

<!--栏目结束 -->
               
<!--栏目开始 -->

                        <!--这里添加内容 -->
                        
    <!--  一组内容模块开始   --> 
    <table class ="tablezong"  border="0"  cellpadding="0" cellspacing="0" style =" margin-top :30px">
      <tr>
        <td style ="text-align :left " >
        <table  style =" width :100%" 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" MaxLength="25" Width="500px"></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 ">
                        查阅部门<br /> 
                        <asp:CheckBox ID="cbChoose_Department" runat="server" AutoPostBack="True" 
                            oncheckedchanged="cbChoose_Department_CheckedChanged" Text="全选" />
                    </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 " >
                        公告内容</td>
                    <td class ="tabletd_left ">

                       <textarea id="content1" cols="100" rows="8" style="width:700px;height:200px;visibility:hidden;" runat="server"></textarea>
                   </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" />
                        
                        单个附件不大于50M<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 ">
                        <asp:Label ID="lbEditId" runat="server" Visible="False"></asp:Label>
                    </td>
                    <td class="tabletd_left ">
                        <asp:Button ID="btAddNotice" runat="server" onclick="btAddNotice_Click" 
                            Text="提交" ValidationGroup="AddNotice" />
                    </td>
                </tr>
            </table>
        
        
        
            
                    </td>
      </tr>
    </table>
<!-- 一组内容模块结束 -->
                       
<!--栏目结束 -->
</asp:Panel> 


               

<!--  一组内容模块开始   --> 
            <table border="0"  class ="tablezong"  cellpadding="0" cellspacing="0" id="table_NoticeView" runat ="server"  visible ="false"  >
      <tr>
        <td   style ="text-align :left ">

            <table  style =" width :700px "    border = "0"  cellpadding ="" cellspacing ="0">
                <tr>
                    <td style =" background-color :White " >
                    <div style = " font-size :large ; font-weight :bold ; text-align :center;width :700px; ; padding :20px 5px 5px 5px  " id = "viewbiaoti" runat ="server" ></div>
                    <div id ="viewneirong" runat ="server"  style ="width :700px; padding :5px 5px 5px 5px"  ></div>
</td>
                </tr>
                <tr>
                    <td  style =" padding :20px 5px 5px 5px" >
                        <asp:Label ID="lbFujian" runat="server" Text="附件："></asp:Label>
                      
                       <asp:BulletedList 
                            ID="BulletedList1" runat="server" DisplayMode="LinkButton" 
                            onclick="BulletedList1_Click">

                        </asp:BulletedList>
                      <div style =" text-align :right ">                         发 布 人:<asp:Label ID="lbNoticemanages" runat="server"></asp:Label>
                        &nbsp;   &nbsp; 
                        发布时间：<asp:Label ID="lbNoticedate" runat="server"></asp:Label>   &nbsp;   &nbsp; 
                        查阅部门：
                        <asp:Label ID="lbDepartment" runat="server"></asp:Label></div> 
                    </td>
                </tr>
                <tr>
                     <td style =" text-align :center; padding:20px 20px 20px 20px " >
                        <asp:Button ID="btBack" runat="server" onclick="btBack_Click" Text="返回" />
                    </td>
                </tr>
            </table>
</td>
      </tr>
    </table>
<!-- 一组内容模块结束 --> 


                </div>
            </div>
        </form>
    </body>
</html>