<%@ page language="C#" autoeventwireup="true" inherits="admin_form_SetForm, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Import Namespace="D.Common" %>
<!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 src="../../js/Common.js" type="text/javascript"></script>

    <script src="../../js/date/date.js" type="text/javascript"></script>
    <script src="../../js/lhgdialog/lhgcore.lhgdialog.min.js?self=true&skin=<%=Function.GetCssNameColor()%>" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server" onkeydown="Save()">
    <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="FormList.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="txtFormName" MaxLength="50" runat="server" CssClass="in1"></asp:TextBox><font color="#ff0066">*</font>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                表名：
            </td>
            <td class="bqright">
                D_F_<asp:TextBox ID="txtTableName" runat="server" MaxLength="20" CssClass="in1"></asp:TextBox><font
                    color="#ff0066">*</font>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                上传附件存放目录：
            </td>
            <td class="bqright">
                /upload/<asp:TextBox ID="txtUploadPath" runat="server" MaxLength="50" Columns="12" CssClass="in1"></asp:TextBox>
                <font color="#ff0066">*</font>（由字母或数字组成，如修改此设置请手动修改对应文件夹名称）
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                允许上传文件大小：
            </td>
            <td class="bqright">
                只能上传小于或等于<asp:TextBox ID="txtUploadSize" runat="server" MaxLength="15" Text="0" CssClass="in1"></asp:TextBox>KB的文件（0KB表示不限制）<font
                    color="#ff0066">*</font>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                表单初始字段：
            </td>
            <td class="bqright">
                <asp:CheckBoxList ID="FieldData" runat="server" RepeatDirection="Horizontal" RepeatColumns="7">
                    <asp:ListItem Value="UserId">用户ID</asp:ListItem>
                    <asp:ListItem Value="UserName">用户名称</asp:ListItem>
                    <asp:ListItem Value="AdminId">管理员ID</asp:ListItem>
                    <asp:ListItem Value="AdminName">管理员名称</asp:ListItem>
                    <asp:ListItem Value="Ip">IP地址</asp:ListItem>
                    <asp:ListItem Value="IpAddress">IP所在地</asp:ListItem>
                    <asp:ListItem Value="IpNetwork">IP访问网络</asp:ListItem>
                    <asp:ListItem Value="AddTime" Selected="True">添加时间</asp:ListItem>
                    <asp:ListItem Value="UpdateTime">更新时间</asp:ListItem>
                    <asp:ListItem Value="Click">访问次数</asp:ListItem>
                </asp:CheckBoxList>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                表单描述：
            </td>
            <td class="bqright">
                <asp:TextBox ID="txtFormDesc" Columns="50" Rows="4" runat="server" TextMode="MultiLine"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <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>
            <td class="bqleft">
                开始时间：
            </td>
            <td class="bqright">
                <asp:TextBox ID="txtStartTime" MaxLength="50" runat="server" onClick="date({dateFmt:'yyyy-MM-dd HH:mm:ss',readOnly:true})" CssClass="in1"></asp:TextBox><font
                    color="#ff0066">*</font>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                结束时间：
            </td>
            <td class="bqright">
                <asp:TextBox ID="txtEndTime" MaxLength="50" runat="server" onClick="date({dateFmt:'yyyy-MM-dd HH:mm:ss',readOnly:true})" CssClass="in1"></asp:TextBox><font
                    color="#ff0066">*</font>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                指定用户组提交：
            </td>
            <td class="bqright">
                <asp:DataList ID="dlGroupIdStr" runat="server" RepeatColumns="8" RepeatDirection="Horizontal">
                    <ItemTemplate>
                        <asp:HiddenField ID="hidGroupId" runat="server" Value='<%# Eval("UserGroupId") %>' />
                        <asp:CheckBox ID="CheckBox1" runat="server" /><asp:Label ID="Label1" runat="server"
                            Text='<%# Eval("GroupName") %>'></asp:Label>
                    </ItemTemplate>
                </asp:DataList>
            </td>
        </tr>
        <tr>
            <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>
            <td class="bqleft">
                管理员后台录入模板：
            </td>
            <td class="bqright">
                <asp:TextBox ID="txtAdminTemplate" runat="server" Columns="50" CssClass="in1" Style="float: left"></asp:TextBox>
                <input id="Button3" type="button" value="选择模板" class="btn" onclick="WinOpenLhgDialog('选择模板','../template/SelectTemplate.aspx?ControlId=txtAdminTemplate',650,450,'')" Style="float: left" /><font
                    color="#ff0066">*</font>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                用户后台录入模板：
            </td>
            <td class="bqright">
                <asp:TextBox ID="txtUserTemplate" runat="server" Columns="50" CssClass="in1" Style="float: left"></asp:TextBox>
                <input id="Button1" type="button" value="选择模板" class="btn" onclick="WinOpenLhgDialog('选择模板','../template/SelectTemplate.aspx?ControlId=txtUserTemplate',650,450,'')" Style="float: left" /><font
                    color="#ff0066">*</font>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                HTML调用模板：
            </td>
            <td class="bqright">
                <asp:TextBox ID="txtHtmlTemplate" runat="server" Columns="50" CssClass="in1" Style="float: left"></asp:TextBox>
                <input id="Button2" type="button" value="选择模板" class="btn" onclick="WinOpenLhgDialog('选择模板','../template/SelectTemplate.aspx?ControlId=txtHtmlTemplate',650,450,'')" Style="float: left" /><font
                    color="#ff0066">*</font>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                自动编辑录入界面：
            </td>
            <td class="bqright">
                <asp:CheckBoxList ID="IsAutoHtml" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Selected="True" Value="1">管理员后台</asp:ListItem>
                    <asp:ListItem Selected="True" Value="1">用户后台</asp:ListItem>
                    <asp:ListItem Selected="True" Value="1">HTML调用</asp:ListItem>
                </asp:CheckBoxList>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                录入信息后：<br />(针对以HTML方式调用)
            </td>
            <td class="bqright">
                <table cellpadding="2" cellspacing="0" border="0">
                    <tr>
                        <td colspan="2">
                            <asp:RadioButtonList ID="RadioSkip" runat="server">
                                <asp:ListItem Value="1" Selected="True">系统默认</asp:ListItem>
                                <asp:ListItem Value="2">弹出js提示框,不跳转</asp:ListItem>
                                <asp:ListItem Value="3">弹出js提示框,并跳转到</asp:ListItem>
                                <asp:ListItem Value="4">不提示，直接转到指定页面</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">js提示框提示语言：</td>
                        <td><asp:TextBox ID="txtSkipLang" runat="server" Text="成功发布信息" Columns="40" CssClass="in1"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td align="right">指定页面地址：</td>
                        <td><asp:TextBox
                                ID="txtSkipUrl" runat="server" Columns="40" Text="http://" CssClass="in1"></asp:TextBox>输入{Id}可获得添加信息Id值
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td class="bqleft" style="height: 26px">
                积分设置：
            </td>
            <td class="bqright" style="height: 26px">
                <asp:TextBox ID="txtIntegral" MaxLength="5" runat="server" Columns="5" CssClass="in1">0</asp:TextBox>
                如需要扣除2点积分请设置为-2，不设置请为0
            </td>
        </tr>
        <tr>
            <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>
                
                <font color="#ff0066">开启验证码之后，需要手动在录入界面增加认证码字段</font>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
            </td>
            <td class="bqright" align="center" height="40">
                <asp:Button ID="DianCMS_Submit" runat="server" Text=" 确定(Ctrl+s) " CssClass="btn radius30 pad_0_30" OnClick="btnSubmit_Click" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
