<%@ Page Language="C#" MasterPageFile="~/Admin/MainPage.Master" AutoEventWireup="true" CodeBehind="type_modify.aspx.cs" Inherits="PPFOR.Admin.DesignCenter.Label.type_modify" Title="修改标签分类" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PPFOR_mainContent" runat="server">
<script language="javascript" type="text/javascript">
function validateLabelTypeDescription(source,args)
{
    var obj=document.getElementById('<%= PPFOR_labelTypeDescription.ClientID %>');
    if(obj.value.length>255)
    {
        args.IsValid=false;
    }
    else
    {
        args.IsValid=true;
    }
}
</script>
<form action="type_modify.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_labelTypeName" runat="server" TextMode="SingleLine" Maxlength="30" Width="150px"></asp:TextBox><br />
              <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" SetFocusOnError="true" ValidationExpression="^[A-Za-z0-9\u4e00-\u9fa5]{1,30}$" Display="Dynamic" ControlToValidate="PPFOR_labelTypeName">标签分类名只能包含英文字母、数字、汉字，标签分类名长度必须在1-30个字符之间</asp:RegularExpressionValidator>
              <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" SetFocusOnError="true" Display="Dynamic" ControlToValidate="PPFOR_labelTypeName">标签分类名不能为空</asp:RequiredFieldValidator>
              <asp:Label ID="PPFOR_labelTypeId" runat="server" Enabled="false" Visible="false"></asp:Label>
              <asp:Label ID="PPFOR_labelTypeIsSystem" runat="server" Enabled="false" Visible="false"></asp:Label>
          </td>
        </tr>
        <tr>
          <td align="right">所属语言：</td>
          <td><asp:Label ID="PPFOR_labelTypeLanguage" runat="server" Width="150px"></asp:Label>
          <asp:Label ID="PPFOR_labelTypeLanguageId" runat="server" Enabled="false" Visible="false"></asp:Label>
          </td>
        </tr>        
        <tr>
          <td align="right">标签分类描述：</td>
          <td>
            <asp:TextBox ID="PPFOR_labelTypeDescription" runat="server" TextMode="MultiLine" MaxLength="255" Width="300" Height="80"></asp:TextBox>
              <asp:CustomValidator ID="CustomValidator1" runat="server" Display="Dynamic" SetFocusOnError="true" ControlToValidate="PPFOR_labelTypeDescription" ClientValidationFunction="validateLabelTypeDescription">角色描述长度不能大于255个字符</asp:CustomValidator>
          </td>
        </tr>
        <tr>
            <td align="center" colspan="2" valign="middle" style="height:50px; display:none">
                <asp:Button ID="PPFOR_updateLabelType" CssClass="inputbutton" runat="server" Text="提交" OnClick="PPFOR_updateLabelTypeClick"/>
                <input id="reset1" name="reset" type="reset" class="inputbutton" onmouseover="this.className='inputbutton_hover'" onmouseout="this.className='inputbutton'" value="重置" />
                <script type="text/javascript">
                    addButtonArray("<%= PPFOR_updateLabelType.ClientID %>","reset1");
                </script>
            </td>
        </tr>
      </table>
      <br />
</form>
</asp:Content>
