<%@ page language="C#" autoeventwireup="true" inherits="admin_user_Notice, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Import Namespace="D.Common" %>
<%@ Import Namespace="D.BLL" %>

<!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 runat="server">
	<title></title>
	<link id="CssName" rel="stylesheet" type="text/css" runat="server" />
	<script type="text/javascript" src="../../js/date/date.js"></script>
	<script src="../../js/Common.js" type="text/javascript"></script>
	<asp:Literal ID="LitJs" runat="server"></asp:Literal>
    <script src="../../js/lhgdialog/lhgcore.lhgdialog.min.js?self=true&skin=<%=Function.GetCssNameColor()%>" type="text/javascript"></script>
</head>
<body>
	<form id="form1" runat="server">
		<table class="dh" cellpadding="0" cellspacing="0" border="0" align="center">
			<tr>
				<td>
					<asp:Image ID="P_Go" runat="server" ImageAlign="AbsMiddle" />
					您现在的位置：<a href="../info.aspx">后台管理</a> >> <a href="NoticeList.aspx">公告管理</a> >> 设置公告
				</td>
			</tr>
		</table>
		<table class="border" cellspacing="1" cellpadding="0" width="99%" border="0" align="center">
			<tr>
				<td class="bqleft">标题：
				</td>
				<td class="bqright">
					<asp:TextBox ID="FilePicPath" runat="server" Style="display: none">user|0</asp:TextBox>
					<asp:TextBox ID="txtTitle" runat="server" Columns="50" CssClass="in1"></asp:TextBox>
				</td>
			</tr>
			<tr>
				<td class="bqleft">公告图片（一）：
				</td>
				<td class="bqright">
					<asp:TextBox ID="txtPicPath" Columns="30" runat="server" CssClass="in1" Style="float: left"></asp:TextBox><input
						type="button" value="上传图片" class="btn" onclick="WinOpenLhgDialog('上传图片','../common/uploadpic.aspx?ControlId=txtPicPath',620,280,'')"
						style="float: left" /><input type="button" value="从服务器上选择" class="btn" onclick="SelectFile('../common/SelectUploadFile2.aspx?filetype=image&ControlId=txtPicPath', '')" />
					上传图片默认保存到/<%=D.Common.Function.GetUploadFolder()%>/user下面
				</td>
			</tr>
			<tr>
				<td class="bqleft">公告图片（二）：
				</td>
				<td class="bqright">
					<asp:TextBox ID="txtPicPath2" Columns="30" runat="server" CssClass="in1" Style="float: left"></asp:TextBox><input
						type="button" value="上传图片" class="btn" onclick="WinOpenLhgDialog('上传图片', '../common/uploadpic.aspx?ControlId=txtPicPath2', 620, 280, '')"
						style="float: left" /><input type="button" value="从服务器上选择" class="btn" onclick="SelectFile('../common/SelectUploadFile2.aspx?filetype=image&ControlId=txtPicPath2', '')" />
					上传图片默认保存到/<%=D.Common.Function.GetUploadFolder()%>/user下面
				</td>
			</tr>
			<tr>
				<td class="bqleft">内容：
				</td>
				<td class="bqright">
					<asp:TextBox ID="txtContent" runat="server" TextMode="MultiLine"></asp:TextBox>
					<asp:Literal ID="LitContent" runat="server"></asp:Literal>
				</td>
			</tr>
			<tr>
				<td class="bqleft">优先级别：
				</td>
				<td class="bqright">
					<asp:TextBox ID="txtPriority" runat="server" Columns="10" CssClass="in1" Text="0" onkeyup="value=value.replace(/[^\d]/g,'')"></asp:TextBox>
					数字越大排列越靠前
				</td>
			</tr>
			<tr>
				<td class="bqleft">发布人：
				</td>
				<td class="bqright">
					<asp:TextBox ID="txtAddUser" runat="server" Columns="20" CssClass="in1"></asp:TextBox>
				</td>
			</tr>
			<tr>
				<td class="bqleft">发布时间：
				</td>
				<td class="bqright">
					<asp:TextBox ID="txtAddTime" runat="server" Columns="15" CssClass="in1" onClick="date({dateFmt:'yyyy-MM-dd',readOnly:true})"></asp:TextBox>
				</td>
			</tr>
			<tr>
				<td class="bqleft">公告状态：
				</td>
				<td class="bqright">
					<asp:RadioButtonList ID="RadState" runat="server" RepeatDirection="Horizontal">
						<asp:ListItem Value="1" Selected="True">草稿</asp:ListItem>
						<asp:ListItem Value="2">待审核</asp:ListItem>
						<asp:ListItem Value="3">终审通过</asp:ListItem>
					</asp:RadioButtonList>
				</td>
			</tr>
			<tr>
				<td class="bqleft"></td>
				<td class="bqright" height="40">
					<asp:Button ID="Button1" runat="server" Text=" 确认 " CssClass="btn radius30 pad_0_30"
						OnClick="Button1_Click" />
				</td>
			</tr>
		</table>
	</form>
</body>
</html>
