<%@ Page Language="C#" Inherits="SiteServer.BackgroundPages.Modal.InputAdd" Trace="false"%>
<%@ Register TagPrefix="bairong" Namespace="BaiRong.Controls" Assembly="BaiRong.Controls" %>
<%@ Register TagPrefix="user" Namespace="UserCenter.Controls" Assembly="UserCenter.Pages" %>
<%@ Register TagPrefix="site" Namespace="SiteServer.Controls" Assembly="SiteServer.Controls" %>

<HTML>
	<HEAD>
		<!--#include file="../inc/html_head.inc"-->
		<user:custom type="style" runat="server"></user:custom>
		<title id="MyTitle" runat="server"></title>
		
		
<meta http-equiv="content-type" content="text/html;charset=gb2312">
	</HEAD>
	<body>
		<form id="myForm" runat="server">
<bairong:Message runat="server"></bairong:Message>
		  <table width="95%" align="center" cellpadding="2" cellspacing="2">
	  <tr align="left" id="MessageLabelRow" runat="server">
				<td colspan="2"><asp:Label width="100%" id="MessageLabel" Style="TEXT-ALIGN:center; color:#FF0000" runat="server" /></td>
			</tr>
			<tr>
				<td width="120" align="left">
			  <bairong:help HelpText="提交表单名称" Text="提交表单名称：" runat="server" ></bairong:help>			  </td>
<td align="left">
					<asp:TextBox class="colorblur" onfocus="this.className='colorfocus';" onblur="this.className='colorblur';" Columns="25" MaxLength="50" id="InputName" runat="server" />
					<asp:RequiredFieldValidator ControlToValidate="InputName" ErrorMessage="*" Display="Dynamic"
						runat="server" />
					<asp:RegularExpressionValidator runat="server" ControlToValidate="InputName"
						ValidationExpression="[^',]+" ErrorMessage="*" Display="Dynamic" />
				</td>
			</tr>
            <tr>
				<td align="left">
				<bairong:help HelpText="设置提交内容是否需要审核" Text="是否需要审核：" runat="server" ></bairong:help>			  </td>
		  <td align="left">
                	<asp:RadioButtonList ID="IsChecked" RepeatDirection="Horizontal" runat="server">
						<asp:ListItem Text="需要审核" Value="False"></asp:ListItem>
						<asp:ListItem Text="不需要审核" Value="True" Selected="true"></asp:ListItem>
					</asp:RadioButtonList>
				</td>
			</tr>
            <tr>
				<td align="left">
				<bairong:help HelpText="设置提交内容是否需要回复" Text="是否需要回复：" runat="server" ></bairong:help>			  </td>
		  <td align="left">
                	<asp:RadioButtonList ID="IsReply" RepeatDirection="Horizontal" runat="server">
						<asp:ListItem Text="需要回复" Value="True"></asp:ListItem>
						<asp:ListItem Text="不需要回复" Value="False" Selected="true"></asp:ListItem>
					</asp:RadioButtonList>
				</td>
			</tr>
            <tr>
				<td align="left">
				<bairong:help HelpText="设置提交内容后是否需要发送邮件给管理员" Text="提交表单是否同时发送邮件：" runat="server" ></bairong:help>			  </td>
		  <td align="left">
                	<asp:RadioButtonList ID="IsMail" AutoPostBack="true" OnSelectedIndexChanged="IsMail_SelectedIndexChanged" RepeatDirection="Horizontal" runat="server">
						<asp:ListItem Text="发送邮件" Value="True"></asp:ListItem>
						<asp:ListItem Text="不发送邮件" Value="False" Selected="true"></asp:ListItem>
					</asp:RadioButtonList>
				</td>
			</tr>
            <asp:PlaceHolder ID="phMail" Visible="false" runat="server">
            <tr>
                <td align="left">
                <bairong:help HelpText="发送到管理员邮箱" Text="发送到管理员邮箱：" runat="server" ></bairong:help>
              </td>
                <td align="left">
                    <asp:TextBox class="colorblur" onfocus="this.className='colorfocus';" onblur="this.className='colorblur';" Columns="35" MaxLength="50" id="MailTo" runat="server" />
                    <asp:RequiredFieldValidator ControlToValidate="MailTo" ErrorMessage="*" Display="Dynamic" runat="server" />
                    <asp:RegularExpressionValidator ControlToValidate="MailTo" ValidationExpression="(\w[0-9a-zA-Z_-]*@(\w[0-9a-zA-Z-]*\.)+\w{2,})" Display="Dynamic" runat="server"><br>* 电子邮件格式不正确!</asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="left">
                <bairong:help HelpText="邮件标题" Text="邮件标题：" runat="server" ></bairong:help>
              </td>
                <td align="left">
                    <asp:TextBox class="colorblur" onfocus="this.className='colorfocus';" onblur="this.className='colorblur';" Columns="35" MaxLength="50" id="MailTitleFormat" Text="提醒（来自提交表单）" runat="server" />
                    <asp:RequiredFieldValidator ControlToValidate="MailTitleFormat" ErrorMessage="*" Display="Dynamic" runat="server" />
                </td>
            </tr>
            </asp:PlaceHolder>
            <tr>
				<td align="left">
				<bairong:help HelpText="提交成功提示信息" Text="提交成功提示信息：" runat="server" ></bairong:help>			  </td>
		  		<td align="left">
                	<asp:TextBox class="colorblur" onfocus="this.className='colorfocus';" onblur="this.className='colorblur';" Columns="45" Rows="3" TextMode="MultiLine" MaxLength="50" id="MessageSuccess" runat="server" />
				</td>
			</tr>
            <tr>
				<td align="left">
				<bairong:help HelpText="提交失败提示信息" Text="提交失败提示信息：" runat="server" ></bairong:help>			  </td>
		  		<td align="left">
                	<asp:TextBox class="colorblur" onfocus="this.className='colorfocus';" onblur="this.className='colorblur';" Columns="45" Rows="3" TextMode="MultiLine" MaxLength="50" id="MessageFailure" runat="server" />
				</td>
			</tr>
			<tr>
				<td colspan="2" align="center">
					<asp:Button class="button" id="Ok" text="确 定" OnClick="Ok_OnClick" runat="server" />&nbsp;&nbsp;
					<asp:Button class="button" id="Cancel" text="取 消" runat="server" />
				</td>
			</tr>
	  </table>
	</form>
	</body>
</HTML>
