<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Field_Add.aspx.cs" Inherits="TopWinCMS.WebUI.Admin.Field.Field_Add" %>

<!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>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <meta content="no-cache" http-equiv="Pragma" />

    <script language="javascript" type="text/javascript" src="../TopWin.js"></script>

    <link href="../Style.css" rel="stylesheet" type="text/css" />

    <script language="javascript" src="../../Images/skysoft.js" type="text/javascript"></script>

    <style type="text/css">
        .RowTitle
        {
            width: 200px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table cellspacing="0" cellpadding="4" width="100%" border="0" id="NavigationPath">
                <tr>
                    <td style="width: auto">
                        <img src="../../Images/arrow.gif" alt="" />
                        您现在的位置：&nbsp;
                        <asp:Label ID="LB_Path" runat="server"></asp:Label>
                    </td>
                    <td style="width: auto">
                        <a href="Field_Add.aspx?ModelID=<%=Request["ModelID"] %>">添加字段</a>
                    </td>
                </tr>
            </table>
            <table id="Tab0" class="TabelGrid" style="width: 100%">
                <tr>
                    <td class="RowTitle">
                        字段名称：<br />
                    </td>
                    <td>
                        <asp:TextBox ID="TB_FieldName" runat="server" Width="250px"></asp:TextBox>
                        (比如：&quot;Title&quot;)&nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        字段类型：
                    </td>
                    <td>
                        <asp:DropDownList ID="DDL_FieldType" runat="server">
                            <asp:ListItem Value="nvarchar">字符型(1-4000)</asp:ListItem>
                            <asp:ListItem Value="ntext">大字符型</asp:ListItem>
                            <asp:ListItem Value="int">整型</asp:ListItem>
                            <asp:ListItem Value="float">浮点</asp:ListItem>
                            <asp:ListItem Value="double">双精度</asp:ListItem>
                        </asp:DropDownList>
                        &nbsp;&nbsp; 字段宽度：<asp:TextBox ID="TB_MaxFieldLength" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        默认值：
                    </td>
                    <td>
                        <asp:TextBox ID="TB_DefaultValue" runat="server" Width="250px" Height="85px" TextMode="MultiLine"></asp:TextBox>
                        (多个值用&quot;回车&quot;格开,对radio,select元素有效)
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        控件类型：
                    </td>
                    <td>
                        <asp:DropDownList ID="DDL_ControlType" runat="server">
                            <asp:ListItem Value="text" Selected="True">单行文本框(text)</asp:ListItem>
                            <asp:ListItem Value="password">密码框(password)</asp:ListItem>
                            <asp:ListItem Value="select">下拉框(select)</asp:ListItem>
                            <asp:ListItem Value="radio">单选框(radio)</asp:ListItem>
                            <asp:ListItem Value="checkbox">复选框(checkbox)</asp:ListItem>
                            <asp:ListItem Value="textarea">多行文本框(textarea)</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        控件标题：
                    </td>
                    <td>
                        <asp:TextBox ID="TB_Title" runat="server" Width="250px"></asp:TextBox>
                        (比如：&quot;标题&quot;)
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        控件宽度：
                    </td>
                    <td>
                        <asp:TextBox ID="TB_Width" runat="server" Width="95px"></asp:TextBox>
                        &nbsp;(单位：像素)
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        控件附加提示：
                    </td>
                    <td>
                        <asp:TextBox ID="TB_Tips" runat="server" Width="250px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        是否必填：
                    </td>
                    <td>
                        <asp:RadioButtonList ID="RBL_Indispensable" runat="server" RepeatDirection="Horizontal"
                            RepeatLayout="Flow">
                            <asp:ListItem Selected="True" Value="1">必填</asp:ListItem>
                            <asp:ListItem Value="0">不必填</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr style="display: none">
                    <td class="RowTitle">
                        会员中心是否可用：
                    </td>
                    <td>
                        <asp:RadioButtonList ID="RBL_IsShowInMember" runat="server" RepeatDirection="Horizontal"
                            RepeatLayout="Flow">
                            <asp:ListItem Selected="True" Value="1">可用</asp:ListItem>
                            <asp:ListItem Value="0">不可用</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        是否启用：
                    </td>
                    <td>
                        <asp:RadioButtonList ID="RBL_Stop" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                            <asp:ListItem Value="0" Selected="True">启用</asp:ListItem>
                            <asp:ListItem Value="1">停用</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
            </table>
            <div style="text-align: center">
                <br />
                <asp:Button ID="BT_OK" runat="server" CssClass="btn" Text="确定" OnClick="BT_OK_Click" /></div>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>