<%@ Page Language="C#" MasterPageFile="~/Admin/MainPage.Master" AutoEventWireup="true" ValidateRequest="false" 
    Codebehind="ModelAdd.aspx.cs" Inherits="PPFOR.Admin.ContentArea.Model.ModelAdd" Title="添加信息" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PPFOR_mainContent" runat="server">    
<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="/ckfinder/ckfinder.js"></script> 
<form action="ModelAdd.aspx" method="post" id="form1" runat="server">
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="fortable">
    <thead>   
        <tr>
            <td colspan="2" align="center">添加信息</td>
        </tr>    
    </thead>                   
        <tr>
            <td style="width:15%" align="right">信息名称：</td>
            <td>
                <asp:TextBox ID="PPFOR_modelName" runat="server" Width="300px" MaxLength="30"></asp:TextBox>                 
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" SetFocusOnError="true" ValidationExpression="^[^<>:\{\}\x22]{2,30}$" Display="Dynamic" ControlToValidate="PPFOR_modelName"><br />信息名称长度必须在2至30个字符之间，且不能包含以下字符之一：<，>，:，{，}，"</asp:RegularExpressionValidator>
              <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" SetFocusOnError="true" Display="Dynamic" ControlToValidate="PPFOR_modelName"><br />信息名称不能为空</asp:RequiredFieldValidator>
              <asp:Label ID="PPFOR_modelBelongLanguage" runat="server" Enabled="false" Visible="false"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="right">信息内容：</td>
            <td>
                <asp:TextBox ID="PPFOR_modelContent" runat="server" TextMode="MultiLine" Height="84px" Width="502px"></asp:TextBox>
                    <script type="text/javascript">
                        var ckEditor=CKEDITOR.replace("<%=PPFOR_modelContent.ClientID%>", {
                         customConfig:'/ckeditor/templet_config.js'
                        });
                    </script>
            </td>
        </tr>  
        <tr>
            <td align="right">排序：</td>
            <td>
                <asp:TextBox ID="PPFOR_sort" runat="server" Text="0" MaxLength="4"></asp:TextBox>
                <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="PPFOR_sort" Display="Dynamic" SetFocusOnError="true" Type="Integer" MinimumValue="-999" MaximumValue="9999">排序顺序只能填写-999至9999之间的整数</asp:RangeValidator>
            </td>
        </tr>   
        <tr>
            <td align="right">是否显示：</td>
            <td>
                <asp:CheckBox ID="PPFOR_show" runat="server" Text="显示" Checked="true"></asp:CheckBox>               
            </td>
        </tr>                    
        <tr>
            <td colspan="2" style="width:100%; height:50px; display:none" align="center" valign="middle">
                <asp:Button ID="PPFOR_addModel" CssClass="inputbutton" runat="server" Text="添加" OnClick="PPFOR_addModelClick"/>
                <input name="reset" type="reset" id="reset1" class="inputbutton" onmouseover="this.className='inputbutton_hover'" onmouseout="this.className='inputbutton'" value="重置" />
                <asp:Label ID="PPFOR_goToModelList" runat="server"></asp:Label>
                <script type="text/javascript">
                    addButtonArray("<%= PPFOR_addModel.ClientID %>","reset1","goBack");
                </script>
            </td>
        </tr>           
    </table>
</form>
</asp:Content>
