<%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
<%@ Register TagPrefix="uc1" TagName="OnlineEditor" Src="../UserControls/OnlineEditor.ascx" %>
<%@ Page Language="c#" Inherits="Discuz.Web.Admin.editannounce" Codebehind="global_editannounce.aspx.cs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>编辑公告</title>
<script type="text/javascript" src="../js/common.js"></script>
<link href="../styles/dntmanager.css" type="text/css" rel="stylesheet" />
<link href="../styles/modelpopup.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../js/modalpopup.js"></script>
<link href="../../templates/default/seditor.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../../javascript/common.js"></script>
<meta http-equiv="X-UA-Compatible" content="IE=7" />
</head>
<script type="text/javascript">
	function validate(theform)
	{
		if(document.getElementById("title").value == "")
		{
			alert("公告标题不能为空");
			document.getElementById("title").focus();
			return false;
		}
		$('announcemessage_hidden').value=parseubb($('announcemessage').value)

		return true;
	}
</script>
<body>
<div class="ManagerForm">
<form id="Form1" method="post" runat="server" onsubmit="return validate(this);">
<fieldset>
<legend style="background: url(../images/icons/icon33.jpg) no-repeat 6px 50%;">编辑公告</legend>
<table width="100%">
	<tr><td class="item_title" colspan="2">显示顺序</td></tr>
	<tr>
		<td class="vtop rowform">
			 <cc1:TextBox ID="displayorder" runat="server" RequiredFieldType="数据校验" CanBeNull="必填" Text="0" MaxLength="6" Size="3"></cc1:TextBox>
		</td>
		<td class="vtop"></td>
	</tr>
	<tr><td class="item_title" colspan="2">公告标题</td></tr>
	<tr>
		<td class="vtop rowform">
			 <cc1:TextBox ID="title" runat="server" CanBeNull="必填" RequiredFieldType="暂无校验" MaxLength="249" Size="60"></cc1:TextBox>
		<td class="vtop"></td>
	</tr>
	<tr><td class="item_title" colspan="2">起始时间</td></tr>
	<tr>
		<td class="vtop rowform">
			  <cc1:TextBox ID="starttime" runat="server" CanBeNull="必填" RequiredFieldType="日期时间" Width="200"></cc1:TextBox>
		<td class="vtop">格式:2005-5-5 13:22:02</td>
	</tr>
	<tr><td class="item_title" colspan="2">结束时间</td></tr>
	<tr>
		<td class="vtop rowform">
			  <cc1:TextBox ID="endtime" runat="server" CanBeNull="必填" RequiredFieldType="日期时间" Width="200"></cc1:TextBox>
		<td class="vtop">格式:2005-5-5 13:22:02</td>
	</tr>
	<tr><td class="item_title" colspan="2">公告内容</td></tr>
	<tr>
		<td class="vtop" colspan="2">
			  <uc1:OnlineEditor ID="announce" runat="server" controlname="announce" postminchars="0" postmaxchars="200"></uc1:OnlineEditor>
		</td>
	</tr>
</table>
<div style="display: none">
	<tr><td class="item_title" colspan="2">发布者用户名</td></tr>
	<tr>
		<td class="vtop rowform">
			 <cc1:TextBox ID="poster" runat="server" RequiredFieldType="暂无校验" CanBeNull="必填" MaxLength="20"
				Enabled="false"></cc1:TextBox>
		</td>
		<td class="vtop"></td>
	</tr>
</div>
<div class="Navbutton">
	<cc1:Button id="UpdateAnnounceInfo" runat="server" Text=" 提 交 " ValidateForm="true"></cc1:Button>&nbsp;&nbsp;
	<cc1:Button id="DeleteAnnounce" runat="server" Text=" 删 除 " ButtonImgUrl="../images/del.gif"></cc1:Button>&nbsp;&nbsp;
	<button type="button" class="ManagerButton" id="Button3" onclick="window.history.back();"><img src="../images/arrow_undo.gif"/> 返 回 </button>
</div>
</fieldset>
</form>
</div>
<%=footer%>
</body>
</html>