<%@ Page Language="C#" AutoEventWireup="true" Inherits="System_InfoModel_CustomForm, QianboCMS" EnableEventValidation="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 runat="server">
    <title>设置表单</title>
    <link href="../Css/layout.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript" src="../../Js/Common.js"></script>
    <script language="javascript" type="text/javascript" src="../../Js/DatePicker/WdatePicker.js"></script>
</head>

<body>
    <table cellspacing="1" cellpadding="0" class="wzdh" align="center">
        <tr>
            <td style="padding-left: 10px;">
                <img src="../Images/Skin/Default/you.gif" align="absmiddle" />
                您现在的位置：<a href="../SystemInfo.aspx">后台管理</a> &gt;&gt; <a href="CustomFormList.aspx">表单管理</a> &gt;&gt;
                <asp:Literal ID="Literal1" runat="server">新增</asp:Literal>表单
			</td>
        </tr>
    </table>
    <form id="form1" runat="server">
        <table cellpadding="0" cellspacing="1" class="border" align="center">
            <tr class="tdbg">
                <td class="bqleft">表单显示控制：</td>
                <td class="bqright">
                    <asp:RadioButtonList ID="txtShowForm" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Selected="True" Value="0">系统前台可见</asp:ListItem>
                        <asp:ListItem Value="1">会员后台可见</asp:ListItem>
                    </asp:RadioButtonList>
				</td>
            </tr>
            <tr class="tdbg">
                <td class="bqleft">表单名称：</td>
                <td class="bqright">
                    <asp:TextBox ID="txtFormName" MaxLength="50" runat="server"></asp:TextBox>
                    <font color="red">*</font>
				</td>
            </tr>
            <tr class="tdbg">
                <td class="bqleft">表名：</td>
                <td class="bqright">
					Qianbo_Form_<asp:TextBox ID="txtTableName" runat="server" MaxLength="20"></asp:TextBox>
                    <font color="red">*</font>
				</td>
            </tr>
            <tr class="tdbg">
                <td class="bqleft">上传附件存放目录：</td>
                <td class="bqright">
					upload/<asp:TextBox ID="txtUploadPath" runat="server" MaxLength="50" Columns="12"></asp:TextBox>
                    <font color="red">*</font> 必须以字母开头，并由字母或数字组成。如修改此设置请手动修改对应文件夹名称。
				</td>
            </tr>
            <tr class="tdbg">
                <td class="bqleft">允许上传的文件大小：</td>
                <td class="bqright">
					只能上传小于或等于
					<asp:TextBox ID="txtUploadSize" runat="server" MaxLength="15" Text="0"></asp:TextBox>
                    KB以内的文件（0KB表示不限制）<font color="red">*</font>
				</td>
            </tr>
            <tr class="tdbg">
                <td class="bqleft">表单描述：</td>
                <td class="bqright">
                    <asp:TextBox ID="txtFormDesc" Columns="65" Rows="4" runat="server" TextMode="MultiLine"></asp:TextBox>
				</td>
            </tr>
            <tr class="tdbg">
                <td class="bqleft">启用时间限制：</td>
                <td class="bqright">
                    <asp:RadioButtonList ID="txtIsUnlockTime" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="True">启用</asp:ListItem>
                        <asp:ListItem Selected="True" Value="False">不启用</asp:ListItem>
                    </asp:RadioButtonList>
				</td>
            </tr>
            <tr class="tdbg">
                <td class="bqleft">开始时间：</td>
                <td class="bqright">
                    <asp:TextBox ID="txtStartTime" MaxLength="50" runat="server" onClick="WdatePicker()"></asp:TextBox>
                    <font color="red">*</font>
				</td>
            </tr>
            <tr class="tdbg">
                <td class="bqleft">结束时间：</td>
                <td class="bqright">
                    <asp:TextBox ID="txtEndTime" MaxLength="50" runat="server" onClick="WdatePicker()"></asp:TextBox>
                    <font color="red">*</font>
				</td>
            </tr>
            <tr class="tdbg">
                <td class="bqleft">指定用户组提交：</td>
                <td class="bqright">
                    <asp:CheckBoxList ID="UserGroupList" runat="server" RepeatDirection="Horizontal"></asp:CheckBoxList>
				</td>
            </tr>
            <tr class="tdbg">
                <td class="bqleft">每个用户只允许提交一次：</td>
                <td class="bqright">
                    <asp:RadioButtonList ID="txtIsSubmitNum" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="True">限制</asp:ListItem>
                        <asp:ListItem Selected="True" Value="False">不限制</asp:ListItem>
                    </asp:RadioButtonList>
				</td>
            </tr>
            <tr class="tdbg">
                <td class="bqleft">金币设置：</td>
                <td class="bqright">
                    <asp:TextBox ID="txtMoney" MaxLength="5" runat="server" Columns="5">0</asp:TextBox>
                    如需要扣除 5 个金币请设置为 -5 ，不设置请为0。
				</td>
            </tr>
            <tr class="tdbg">
                <td class="bqleft">显示验证码：</td>
                <td class="bqright">
                    <asp:RadioButtonList ID="txtIsValidate" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="True">显示</asp:ListItem>
                        <asp:ListItem Selected="True" Value="False">不显示</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr class="tdbg">
                <td class="bqleft"></td>
                <td class="bqright">
                    <asp:Button ID="btnSubmit" runat="server" Text="确定" CssClass="btn" OnClick="btnSubmit_Click" />
                    <input id="btnNo" type="button" value="取消" onclick="location.href = 'CustomFormList.aspx'" class="btn" />
				</td>
            </tr>
        </table>
    </form>
    <br />
</body>
</html>