<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Fields_Edit.aspx.cs" Inherits="TotCms.Web.Office.Source.Fields_Edit" %>

<!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="../style/global.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../js/common.js"></script>
    <script src="../../js/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="../../js/jquery-ui-1.8.10/js/jquery-ui-1.8.10.custom.min.js" type="text/javascript"></script>
    <link href="../../js/jquery-ui-1.8.10/css/ui-lightness/jquery-ui-1.8.10.custom.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
      $(function () {
        $("#dialog:ui-dialog").dialog("destroy");
        $("#dialog-win").dialog({
          autoOpen: false,
          height: 350,
          width: 400,
          modal: true,
          buttons: {
            "确定": function () {
              $(this).dialog("close");
            },
            "取消": function () {
              $(this).dialog("close");
            }
          },
          close: function () {

          }
        });

        $("#selclass").click(function () {
          $("#dialog-win").dialog("open");
        });
      });
      function CloseFrame() {
        $("#dialog-win").dialog("close");
      }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="dialog-win" title="选择模块">
	    <iframe src="../Module/GetTree.aspx" width="370" height="350" frameborder="0" scrolling="auto"></iframe>	
    </div>
    <div id="right_dqwz">字段编辑</div>
    <table style="width:100%;" border="0" cellpadding="0" cellspacing="1" 
      class="black_border">
      <tr class="suphead">
        <td colspan="2">
                    <asp:Label ID="lbTitle" runat="server"></asp:Label>
                    自定义字段</td>
    </tr>
    <tr>
      <td class="fields_text">
          内容模型：</td>
      <td class="fields_input">
          <asp:TextBox ID="CategoryId" runat="server" CssClass="hidden"></asp:TextBox>
          <asp:TextBox ID="CategoryTitle" runat="server" ReadOnly="True"></asp:TextBox>
          &nbsp;<input id="selclass" name="selclass" type="button" value="请选择" class="selclass" />
    </tr>
    <tr>
      <td class="fields_text">
          字段名称：</td>
      <td class="fields_input">
        <asp:TextBox ID="FieldName" runat="server" CssClass="input_middle"></asp:TextBox>
          <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
              ControlToValidate="FieldName" ErrorMessage="只能使用数字和字母" 
              ValidationExpression="\w+"></asp:RegularExpressionValidator>
          <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
              ControlToValidate="FieldName" ErrorMessage="字段名称不能为空"></asp:RequiredFieldValidator>
          </td>
    </tr>
    <tr>
      <td class="fields_text">
          字段说明：</td>
      <td class="fields_input">
        <asp:TextBox ID="FieldTitle" runat="server" CssClass="input_middle"></asp:TextBox>
          &nbsp;
          <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
          ControlToValidate="FieldTitle" ErrorMessage="字段说明不能为空"></asp:RequiredFieldValidator>
          </td>
    </tr>
    <tr>
      <td class="fields_text">
          字段类型：</td>
      <td class="fields_input">
          <asp:DropDownList ID="FieldType" runat="server">
          </asp:DropDownList>
          长度：<asp:TextBox ID="FieldLen" runat="server">50</asp:TextBox>
          </td>
    </tr>
    <tr>
      <td class="fields_text">
          表单类型：</td>
      <td class="fields_input">
          <asp:DropDownList ID="FormType" runat="server">
          </asp:DropDownList>
                </td>
    </tr>
    <tr>
      <td class="fields_text">
          表单名称：</td>
      <td class="fields_input">
          <asp:TextBox ID="FormText" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
              ControlToValidate="FormText" ErrorMessage="请填写表单名称"></asp:RequiredFieldValidator>
                </td>
    </tr>
    <tr>
      <td class="fields_text">表单默认值：</td>
      <td class="fields_input">
          <asp:TextBox ID="FormDefault" runat="server" CssClass="text_content_default" 
              TextMode="MultiLine"></asp:TextBox>
                <br />
          多个值以回车分隔(比如在下拉列表、多选等表单中)</td>
    </tr>
    <tr>
      <td class="fields_text">表单样式：</td>
      <td class="fields_input">
          <asp:TextBox ID="tbStyle" runat="server" CssClass="text_normal" 
              TextMode="MultiLine"></asp:TextBox>
                <br />
          </td>
    </tr>
    <tr>
      <td colspan="2" align="center">
        <asp:Button ID="Button1" runat="server" Text="添 加" onclick="Button1_Click" />
        <input id="Button2" type="reset" value="取 消" /></td>
    </tr>
  </table>
    </form>
</body>
</html>
