<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Function_Add.aspx.cs" Inherits="TotCms.Web.Admin.Function_Add" %>

<%@ Register src="UI/main_top.ascx" tagname="main_top" tagprefix="uc1" %>

<!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 id="Head1" runat="server">
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>添加函数</title>
    <link href="style/global.css" rel="stylesheet" type="text/css" />
    <link href="label/editor.css" rel="stylesheet" type="text/css" />
    <script src="js/common.js" type="text/javascript"></script>
    <script type="text/javascript" src="label/editor.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
      <uc1:main_top ID="main_top1" runat="server" />
    
    </div>
    <table style="width:100%;" border="0" cellpadding="0" cellspacing="1" 
      class="black_border">
      <tr class="suphead">
        <td colspan="2">
                                                                                添加函数</td>
    </tr>
    <tr>
      <td class="fields_text">
        选择栏目：</td>
      <td class="fields_input">
       <asp:DropDownList ID="CategoryId" runat="server">
        </asp:DropDownList>
        </td>
    </tr>
    <tr>
      <td class="fields_text">
        函数名称：</td>
      <td class="fields_input">
        <asp:TextBox ID="Title" runat="server" CssClass="input_middle"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
          ControlToValidate="Title" ErrorMessage="请填写函数名称"></asp:RequiredFieldValidator>
          <asp:RegularExpressionValidator ID="RegularExpressionValidator1" 
          runat="server" ControlToValidate="Title" ErrorMessage="函数名称只能使用英文字母、数字和下划线" 
          ValidationExpression="^[A-Za-z0-9_]+$"></asp:RegularExpressionValidator>
          </td>
    </tr>
    <tr>
      <td class="fields_text">
        函数说明：</td>
      <td class="fields_input">
        <asp:TextBox ID="Demons" runat="server" CssClass="text_normal" 
          TextMode="MultiLine"></asp:TextBox>
          </td>
    </tr>
    <tr>
      <td class="fields_text">
        Sql查询语句：</td>
      <td class="fields_input">

    <asp:TextBox ID="Content" runat="server" CssClass="text_content" 
          TextMode="MultiLine" OnLoad="Content_Load"></asp:TextBox>
        <br />
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
          ControlToValidate="Content" ErrorMessage="函数内容不能为空"></asp:RequiredFieldValidator>
          <br />
        提示：在文本框中双击弹出Sql语句测试工具窗口。</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>
