<%@ Page CodeBehind="admin_gg_add.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Webdisk.admin_gg_add" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE><LINK href="images/Site_Css.css" 
type=text/css rel=stylesheet>
    <script src="../js/jquery-1.7.1.min.js" type="text/javascript"></script>
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK 
href="images/Css.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.6000.16544" name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff topMargin=5 marginwidth="0" marginheight="0">
<form name="Form1" method="post" id="Form1" runat="server">
<DIV></DIV>
<DIV>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
  <TBODY>
  <TR>
    <TD class=menubar_title><IMG hspace=3 src="images/default.gif" 
      align=absMiddle vspace=3 border=0>&nbsp;<asp:Label id="add" runat="server" Font-Bold="True">添加</asp:Label>公告</TD>
    <TD class=menubar_readme_text vAlign=bottom>&nbsp;</TD>
  </TR>
  <TR>
    <TD class=menubar_function_text height=1>&nbsp;</TD>
    <TD class=menubar_menu_td align=right>&nbsp;</TD></TR>
  <TR>
    <TD colSpan=2 height=5></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
  <TBODY>
  <TR>
    <TD style="PADDING-LEFT: 2px; HEIGHT: 22px" 
    background=images/tab_top_bg.gif>
      <TABLE cellSpacing=0 cellPadding=0 border=0>
        <TBODY>
        <TR><!--按钮　Start-->
          <TD>
            <TABLE height=22 cellSpacing=0 cellPadding=0 border=0>
              <TBODY>
              <TR>
                <TD width=3><IMG id=tabImgLeft__0 height=22 
                  src="images/tab_unactive_left.gif" width=3></TD>
                <TD class=tab id=tabLabel__0 onclick=javascript:tabClick(0,1) 
background="images/tab_active_bg.gif" UNSELECTABLE="on">公告管理</TD>
                <TD width=3><IMG id=tabImgRight__0 height=22 
src="images/Menu/tab_active_right.gif" width=3></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
  <TR>
    <TD bgColor=#ffffff>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD width=1 background=images/tab_bg.gif><IMG height=1 
            src="images/tab_bg.gif" width=1></TD>
          <TD 
          class="borderstyle" 
          vAlign=top>
            <DIV id=tabContent__0>
            <TABLE width="100%" 
            border=0 align=center cellPadding=3 cellSpacing=1>
              <TBODY>
              <TR>
                <TD width="27%" class=table_body>标题</TD>
                <TD width="73%" class=table_none><asp:textbox id="title" runat="server" CssClass="tableTdtext" Width="456px"></asp:textbox>
                  <br>
                  (支持HTML)</TD>
                </TR>
              <TR>
                <TD class=table_body>内容</TD>
                <TD class=table_none>
                            <textarea name="content" style="display: none" runat="server" id="content"></textarea>
                            <iframe ID="Editor" name="Editor" src="../HtmlEditor/index.html?ID=content" frameBorder="0" marginHeight="0" marginWidth="0" scrolling="No" style="height:220px;width:100%"></iframe>
                  <br>
                  </TD>
                </TR>
              <TR>
                <TD class=table_body>发布类型</TD>
                <TD class=table_none>
                            <asp:CheckBoxList ID="type" runat="server" RepeatDirection="Horizontal" 
                                RepeatLayout="Flow">
                                <asp:ListItem Selected="True" Value="1">外部显示</asp:ListItem>
                                <asp:ListItem Selected="True" Value="2">内部显示</asp:ListItem>
                            </asp:CheckBoxList>
                  </TD>
                </TR>
              <TR>
                <TD class=table_body>角色</TD>
                <TD class=table_none>
                            <asp:CheckBoxList ID="role" runat="server" RepeatDirection="Horizontal" 
                                RepeatLayout="Flow">
                                <asp:ListItem Selected="True" Value="3">管理</asp:ListItem>
                                <asp:ListItem Selected="True" Value="1">教师</asp:ListItem>
                                <asp:ListItem Selected="True" Value="2">学生</asp:ListItem>
                            </asp:CheckBoxList>
                  </TD>
                </TR>
                </TBODY></TABLE>
            </DIV><!--内容框End--></TD>
          <TD width=1 background=images/tab_bg.gif><IMG height=1 
            src="images/tab_bg.gif" width=1></TD></TR></TBODY></TABLE></TD></TR>
  <TR>
    <TD background=images/tab_bg.gif bgColor=#ffffff><IMG height=1 
      src="images/tab_bg.gif" 
width=1></TD></TR></TBODY></TABLE><!--选项卡 End--></DIV>
  <DIV>    
    <div align="center"><span class="px14"><br>
      <asp:button id="Submit1" runat="server" Width="100px" Text="添　加" class="formbutton" onclick="Submit1_Click" OnClientClick="return setContent()"></asp:button>
    </span><br>
      </div>
  </DIV>
</FORM>
  <SCRIPT language=javascript>
        function tabClick(idx,count) {
          for (i_tr = 0; i_tr < count; i_tr++) {
              var tabImgLeft = eval('document.all.tabImgLeft__' + idx);
              var tabImgRight = eval('document.all.tabImgRight__' + idx);
              var tabLabel = eval('document.all.tabLabel__' + idx);
              var tabContent = eval('document.all.tabContent__' + idx);

              tabImgLeft.src = 'images/tab_active_left.gif';
              tabImgRight.src = 'images/tab_active_right.gif';
              tabLabel.background = 'images/tab_active_bg.gif';
              tabContent.style.visibility = 'visible';
              tabContent.style.display = 'block';
          }
        }
        tabClick(0, 1);
        function setContent() {
            $("#content").val(document.getElementById("Editor").contentDocument.getElementById("HtmlEditor").contentDocument.getElementsByTagName("body")[0].innerHTML);
            return true;
        }
       </SCRIPT>
<BR>
</BODY></HTML>
