<%@ Page Language="C#" MasterPageFile="~/Admin/MainPage.Master" AutoEventWireup="true"
    Codebehind="LanguageEdit.aspx.cs" Inherits="PPFOR.Admin.DesignCenter.Language.LanguageEdit" Title="修改语言" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PPFOR_mainContent" runat="server">
<script src="../../JS/popup.js" type="text/javascript"></script>  
<script language="javascript" type="text/javascript">
function show(obj){
    if(obj!=null && obj.type=='checkbox')
    {
        var target1=document.getElementById('divSeo1');
        var target2=document.getElementById('divSeo2');
        target1.style.display=(obj.checked==true)?'':'none';  
        target2.style.display=(obj.checked==true)?'':'none'; 
    }
}
function readable(obj,targetid){
    var target=document.getElementById(targetid);
    if(obj!=null && obj.type=='checkbox' && target!=null)
    {
        target.readOnly=obj.checked;
        if(!obj.checked)
        {
            target.select();
        }
    }
}
function openModelFilesForSelect(id)
{
    popup_show("选择模板文件","<iframe id='fileFrame' src='/Admin/CustomView/filemanager.aspx?rid=" + document.getElementById(id).getAttribute("rid") + "' scrolling='yes' width='100%' height='100%' frameborder='0' ></iframe>",520,360);
}
</script>
    <form action="LanguageEdit.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_LanguageName" runat="server" TextMode="SingleLine" Maxlength="20" Width="150px"></asp:TextBox> * 
              <asp:Label ID="PPFOR_LanguageId" runat="server" Enabled="false" Visible="false"></asp:Label>
              <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" SetFocusOnError="true" ValidationExpression="^[^<>\x22\x27]{2,20}$" Display="Dynamic" ControlToValidate="PPFOR_LanguageName"><br />语言名称长度必须在2至20个字符之间，且不能包含以下字符之一：<，>，'，"</asp:RegularExpressionValidator>
              <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" SetFocusOnError="true" Display="Dynamic" ControlToValidate="PPFOR_LanguageName"><br />语言名称不能为空</asp:RequiredFieldValidator>
          </td>
        </tr>
        <tr>
            <td align="right">文件夹名称：</td>
            <td><asp:TextBox ID="PPFOR_LanguageFile" runat="server" TextMode="SingleLine" Maxlength="20" Width="150px"></asp:TextBox> * 
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" SetFocusOnError="true" ValidationExpression="^[a-zA-Z]{2,20}$" Display="Dynamic" ControlToValidate="PPFOR_LanguageFile"><br />文件夹名称长度必须在2至20个字符之间，且只能填写英文字母</asp:RegularExpressionValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" SetFocusOnError="true" Display="Dynamic" ControlToValidate="PPFOR_LanguageFile"><br />文件夹名称不能为空</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right">首页模板文件：</td>
            <td>
                <asp:TextBox ID="PPFOR_languageTemple" runat="server" TextMode="SingleLine" Maxlength="150" Width="300px"></asp:TextBox>
                <input type="button" value="选择模板" class="inputbutton" onmouseover="this.className='inputbutton_hover'" onmouseout="this.className='inputbutton'" onclick="openModelFilesForSelect('<%=PPFOR_languageTemple.ClientID %>');" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" SetFocusOnError="true" Display="Dynamic" ControlToValidate="PPFOR_languageTemple"><br />首页模板文件路径不能为空</asp:RequiredFieldValidator>        
                <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" SetFocusOnError="true" ValidationExpression='^[/][^\\<>*?:|\"]{3,149}$' Display="Dynamic" ControlToValidate="PPFOR_languageTemple"><br />模板文件路径长度必须在4至150个字符之间，且不能包含以下字符之一： \ < > | " ? : *</asp:RegularExpressionValidator>
            </td>
        </tr>
          <tr>
            <td align="right">网站名称：</td>
            <td>
                <asp:TextBox ID="PPFOR_webTitle" runat="server" Width="300px" MaxLength="255"></asp:TextBox> 
            </td>
        </tr>
        <tr>
            <td align="right">是否默认语言：</td>
            <td>
               <asp:CheckBox runat="server" ID="PPFOR_isDefault" Text="设为默认语言" />
            </td>
        </tr>
        <tr>
            <td align="right">静态页命名方式：</td>
            <td>
               <asp:RadioButton ID="PPFOR_createById" GroupName="createType" runat="server" Checked="true" Text="ID模式" />
               <asp:RadioButton ID="PPFOR_createByName" GroupName="createType" runat="server" Text="实名模式" />
            </td>
        </tr>
         <tr>
            <td colspan="2" style="background-color: #f2f2f2" align="left">&nbsp;&nbsp;搜索模板设置</td>
        </tr>
         <tr>
            <td align="right">新闻搜索模板：</td>
            <td>
                <asp:TextBox ID="PPFOR_newsTemplate" runat="server" TextMode="SingleLine" Maxlength="150" Width="300px"></asp:TextBox>
                <input type="button" value="选择模板" class="inputbutton" onmouseover="this.className='inputbutton_hover'" onmouseout="this.className='inputbutton'" onclick="openModelFilesForSelect('<%=PPFOR_newsTemplate.ClientID %>');" />
                <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" SetFocusOnError="true" ValidationExpression='^[/][^\\<>*?:|\"]{3,149}$' Display="Dynamic" ControlToValidate="PPFOR_newsTemplate"><br />模板文件路径必须以“/”开头，且长度必须在4至150个字符之间，且不能包含以下字符之一： \ < > | " ? : *</asp:RegularExpressionValidator>
            </td>
        </tr>
         <tr>
            <td align="right">产品搜索模板：</td>
            <td>
                <asp:TextBox ID="PPFOR_proTemplate" runat="server" TextMode="SingleLine" Maxlength="150" Width="300px"></asp:TextBox>
                <input type="button" value="选择模板" class="inputbutton" onmouseover="this.className='inputbutton_hover'" onmouseout="this.className='inputbutton'" onclick="openModelFilesForSelect('<%=PPFOR_proTemplate.ClientID %>');" />             
                <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" SetFocusOnError="true" ValidationExpression='^[/][^\\<>*?:|\"]{3,149}$' Display="Dynamic" ControlToValidate="PPFOR_proTemplate"><br />模板文件路径必须以“/”开头，且长度必须在4至150个字符之间，且不能包含以下字符之一： \ < > | " ? : *</asp:RegularExpressionValidator>
            </td>
        </tr>
         <tr>
            <td align="right">图片搜索模板：</td>
            <td>
                <asp:TextBox ID="PPFOR_picTemplate" runat="server" TextMode="SingleLine" Maxlength="150" Width="300px"></asp:TextBox>
                <input type="button" value="选择模板" class="inputbutton" onmouseover="this.className='inputbutton_hover'" onmouseout="this.className='inputbutton'" onclick="openModelFilesForSelect('<%=PPFOR_picTemplate.ClientID %>');" />               
                <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" SetFocusOnError="true" ValidationExpression='^[/][^\\<>*?:|\"]{3,149}$' Display="Dynamic" ControlToValidate="PPFOR_picTemplate"><br />模板文件路径必须以“/”开头，且长度必须在4至150个字符之间，且不能包含以下字符之一： \ < > | " ? : *</asp:RegularExpressionValidator>
            </td>
        </tr>
         <tr>
            <td align="right">下载搜索模板：</td>
            <td>
                <asp:TextBox ID="PPFOR_downloadTemplate" runat="server" TextMode="SingleLine" Maxlength="150" Width="300px"></asp:TextBox>
                <input type="button" value="选择模板" class="inputbutton" onmouseover="this.className='inputbutton_hover'" onmouseout="this.className='inputbutton'" onclick="openModelFilesForSelect('<%=PPFOR_downloadTemplate.ClientID %>');" />                  
                <asp:RegularExpressionValidator ID="RegularExpressionValidator7" runat="server" SetFocusOnError="true" ValidationExpression='^[/][^\\<>*?:|\"]{3,149}$' Display="Dynamic" ControlToValidate="PPFOR_downloadTemplate"><br />模板文件路径必须以“/”开头，且长度必须在4至150个字符之间，且不能包含以下字符之一： \ < > | " ? : *</asp:RegularExpressionValidator>
            </td>
        </tr>
          <tr>
            <td colspan="2" style="background-color: #f2f2f2" align="left">&nbsp;&nbsp;品牌模板设置</td>
        </tr>
          <tr>
            <td align="right">品牌详细页模板：</td>
            <td>
                <asp:TextBox ID="PPFOR_brandTemplate" runat="server" TextMode="SingleLine" Maxlength="150" Width="300px"></asp:TextBox>
                <input type="button" value="选择模板" class="inputbutton" onmouseover="this.className='inputbutton_hover'" onmouseout="this.className='inputbutton'" onclick="openModelFilesForSelect('<%=PPFOR_brandTemplate.ClientID %>');" />                  
                <asp:RegularExpressionValidator ID="RegularExpressionValidator9" runat="server" SetFocusOnError="true" ValidationExpression='^[/][^\\<>*?:|\"]{3,149}$' Display="Dynamic" ControlToValidate="PPFOR_brandTemplate"><br />模板文件路径必须以“/”开头，且长度必须在4至150个字符之间，且不能包含以下字符之一： \ < > | " ? : *</asp:RegularExpressionValidator>
            </td>
        </tr>
          <tr>
            <td align="right">品牌列表页模板：</td>
            <td>
                <asp:TextBox ID="PPFOR_brandListTemplate" runat="server" TextMode="SingleLine" Maxlength="150" Width="300px"></asp:TextBox>
                <input type="button" value="选择模板" class="inputbutton" onmouseover="this.className='inputbutton_hover'" onmouseout="this.className='inputbutton'" onclick="openModelFilesForSelect('<%=PPFOR_brandListTemplate.ClientID %>');" />                  
                <asp:RegularExpressionValidator ID="RegularExpressionValidator8" runat="server" SetFocusOnError="true" ValidationExpression='^[/][^\\<>*?:|\"]{3,149}$' Display="Dynamic" ControlToValidate="PPFOR_brandListTemplate"><br />模板文件路径必须以“/”开头，且长度必须在4至150个字符之间，且不能包含以下字符之一： \ < > | " ? : *</asp:RegularExpressionValidator>
            </td>
        </tr>
       <tr>
            <td colspan="2" style="background-color: #f2f2f2" align="left">&nbsp;&nbsp;会员模板设置</td>
        </tr>
        <tr>
            <td align="right">是否显示登录验证码：</td>
            <td>
                <asp:CheckBox ID="PPFOR_isShowUserCheckCode" runat="server" Text="显示登录验证码"></asp:CheckBox>  
            </td>
        </tr>
          <tr>
            <td align="right">会员中心页模板：</td>
            <td>
                <asp:TextBox ID="PPFOR_userCenterPage" runat="server" TextMode="SingleLine" Maxlength="150" Width="300px"></asp:TextBox>
                <input type="button" value="选择模板" class="inputbutton" onmouseover="this.className='inputbutton_hover'" onmouseout="this.className='inputbutton'" onclick="openModelFilesForSelect('<%=PPFOR_userCenterPage.ClientID %>');" />                  
                <asp:RegularExpressionValidator ID="RegularExpressionValidator13" runat="server" SetFocusOnError="true" ValidationExpression='^[/][^\\<>*?:|\"]{3,149}$' Display="Dynamic" ControlToValidate="PPFOR_userCenterPage"><br />模板文件路径必须以“/”开头，且长度必须在4至150个字符之间，且不能包含以下字符之一： \ < > | " ? : *</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">会员登录页模板：</td>
            <td>
                <asp:TextBox ID="PPFOR_userLoginPage" runat="server" TextMode="SingleLine" Maxlength="150" Width="300px"></asp:TextBox>
                <input type="button" value="选择模板" class="inputbutton" onmouseover="this.className='inputbutton_hover'" onmouseout="this.className='inputbutton'" onclick="openModelFilesForSelect('<%=PPFOR_userLoginPage.ClientID %>');" /> 为空则使用会员中心页模板                  
                <asp:RegularExpressionValidator ID="RegularExpressionValidator11" runat="server" SetFocusOnError="true" ValidationExpression='^[/][^\\<>*?:|\"]{3,149}$' Display="Dynamic" ControlToValidate="PPFOR_userLoginPage"><br />模板文件路径必须以“/”开头，且长度必须在4至150个字符之间，且不能包含以下字符之一： \ < > | " ? : *</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">会员注册页模板：</td>
            <td>
                <asp:TextBox ID="PPFOR_userRegeditPage" runat="server" TextMode="SingleLine" Maxlength="150" Width="300px"></asp:TextBox>
                <input type="button" value="选择模板" class="inputbutton" onmouseover="this.className='inputbutton_hover'" onmouseout="this.className='inputbutton'" onclick="openModelFilesForSelect('<%=PPFOR_userRegeditPage.ClientID %>');" /> 为空则使用会员中心页模板                  
                <asp:RegularExpressionValidator ID="RegularExpressionValidator10" runat="server" SetFocusOnError="true" ValidationExpression='^[/][^\\<>*?:|\"]{3,149}$' Display="Dynamic" ControlToValidate="PPFOR_userRegeditPage"><br />模板文件路径必须以“/”开头，且长度必须在4至150个字符之间，且不能包含以下字符之一： \ < > | " ? : *</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">会员密码找回页模板：</td>
            <td>
                <asp:TextBox ID="PPFOR_userGetPwdPage" runat="server" TextMode="SingleLine" Maxlength="150" Width="300px"></asp:TextBox>
                <input type="button" value="选择模板" class="inputbutton" onmouseover="this.className='inputbutton_hover'" onmouseout="this.className='inputbutton'" onclick="openModelFilesForSelect('<%=PPFOR_userGetPwdPage.ClientID %>');" /> 为空则使用会员中心页模板                  
                <asp:RegularExpressionValidator ID="RegularExpressionValidator12" runat="server" SetFocusOnError="true" ValidationExpression='^[/][^\\<>*?:|\"]{3,149}$' Display="Dynamic" ControlToValidate="PPFOR_userGetPwdPage"><br />模板文件路径必须以“/”开头，且长度必须在4至150个字符之间，且不能包含以下字符之一： \ < > | " ? : *</asp:RegularExpressionValidator>
            </td>
        </tr>    
        <tr>
            <td align="right">会员注销页模板：</td>
            <td>
                <asp:TextBox ID="PPFOR_userLogoutPage" runat="server" TextMode="SingleLine" Maxlength="150" Width="300px"></asp:TextBox>
                <input type="button" value="选择模板" class="inputbutton" onmouseover="this.className='inputbutton_hover'" onmouseout="this.className='inputbutton'" onclick="openModelFilesForSelect('<%=PPFOR_userLogoutPage.ClientID %>');" /> 为空则使用会员中心页模板                  
                <asp:RegularExpressionValidator ID="RegularExpressionValidator14" runat="server" SetFocusOnError="true" ValidationExpression='^[/][^\\<>*?:|\"]{3,149}$' Display="Dynamic" ControlToValidate="PPFOR_userLogoutPage"><br />模板文件路径必须以“/”开头，且长度必须在4至150个字符之间，且不能包含以下字符之一： \ < > | " ? : *</asp:RegularExpressionValidator>
            </td>
        </tr>
         <tr>
            <td colspan="2" style="background-color: #f2f2f2" align="left">&nbsp;&nbsp;购物车模板设置</td>
        </tr>
        <tr>
            <td align="right">购物车中心页模板：</td>
            <td>
                <asp:TextBox ID="PPFOR_cartViewPage" runat="server" TextMode="SingleLine" Maxlength="150" Width="300px"></asp:TextBox>
                <input type="button" value="选择模板" class="inputbutton" onmouseover="this.className='inputbutton_hover'" onmouseout="this.className='inputbutton'" onclick="openModelFilesForSelect('<%=PPFOR_cartViewPage.ClientID %>');" />                  
                <asp:RegularExpressionValidator ID="RegularExpressionValidator15" runat="server" SetFocusOnError="true" ValidationExpression='^[/][^\\<>*?:|\"]{3,149}$' Display="Dynamic" ControlToValidate="PPFOR_cartViewPage"><br />模板文件路径必须以“/”开头，且长度必须在4至150个字符之间，且不能包含以下字符之一： \ < > | " ? : *</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td colspan="2" style="background-color: #f2f2f2" align="left">                
                <input type="checkbox" id="PPFOR_ckeSeo" runat="server" onclick="show(this)" />Seo 优化设置 & 其它
            </td>
        </tr>     
        <tr id="divSeo1">
            <td align="right">Meta关键字：</td>
            <td>
                <asp:TextBox ID="PPFOR_languageKeyWord" runat="server" Width="98%" MaxLength="255"></asp:TextBox><br />
                <input type="checkbox" id="PPFOR_languageKeyWordAuto" runat="server" checked="checked" />自动获取
            </td>
        </tr>
        <tr id="divSeo2">
            <td align="right">Meta描述：</td>
            <td>
                <asp:TextBox ID="PPFOR_languageDescription" runat="server" Width="98%" MaxLength="255"></asp:TextBox> <br />
                <input type="checkbox" id="PPFOR_languageDescriptionAuto" runat="server" checked="checked" />自动获取                           
            </td>                  
        </tr>          
        <tr>
            <td colspan="2" style="width:100%; height:50px; display:none;" align="center" valign="middle">
                <asp:Button ID="PPFOR_updateLanguage" CssClass="inputbutton" runat="server" Text="提交" OnClick="PPFOR_updateLanguageClick"/>
                <input name="reset" type="reset" id="reset1" class="inputbutton" onmouseover="this.className='inputbutton_hover'" onmouseout="this.className='inputbutton'" value="重置" />
                <script type="text/javascript">
                    addButtonArray("<%= PPFOR_updateLanguage.ClientID %>","reset1");
                </script>
            </td>
        </tr>
        </table>
    </form>
</asp:Content>
