<%@ Page Language="C#" MasterPageFile="~/Admin/MainPage.Master" AutoEventWireup="true" CodeBehind="defaultLanguage.aspx.cs" Inherits="PPFOR.Admin.DesignCenter.Language.defaultLanguage" Title="默认语言设置" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PPFOR_mainContent" runat="server">
<script src="../../JS/popup.js" type="text/javascript"></script>  
<script type="text/javascript">
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 id="form1" runat="server">
      <table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-color:#D1D2CF" class="fortable">
        <tr>
          <td colspan="2" align="center" style="background-color:#F2F2F2"> 默认语言设置 </td>
        </tr>
        <tr>
          <td align="right" style="width:15%">首页模板：</td>
          <td><asp:TextBox ID="PPFOR_defaultTemplate" Width="300px" runat="server"></asp:TextBox> 
          <input type="button" value="选择模板" class="inputbutton" onmouseover="this.className='inputbutton_hover'" onmouseout="this.className='inputbutton'" onclick="openModelFilesForSelect('<%=PPFOR_defaultTemplate.ClientID %>');" /> 为空时使用设置为默认的语言的模板 
          <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" SetFocusOnError="true" ValidationExpression='^[/][^\\<>*?:|\"]{3,199}$' Display="Dynamic" ControlToValidate="PPFOR_defaultTemplate"><br />模板文件路径长度必须在4至200个字符之间，且不能包含以下字符之一： \ < > | " ? : *</asp:RegularExpressionValidator>
          </td>
        </tr>
        <tr>
            <td colspan="2" style="width:100%; height:50px; display:none;" align="center" valign="middle">
                <asp:Button ID="PPFOR_modifyTemplate" CssClass="inputbutton" runat="server" Text="提交" OnClick="PPFOR_modifyTemplateClick"/>
                <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_modifyTemplate.ClientID %>","reset1");
                </script>
            </td>
        </tr>    
      </table>
  </form>
</asp:Content>
