<%@ Page Inherits="Caicai.Framework.UI.Admin.Config" %>
<!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">
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" href="style.css" rel="stylesheet" rev="stylesheet" media="all" />
<script type="text/javascript" src="../files/common/jquery.js"></script>
<script type="text/javascript" src="include/common.js"></script>
<script type="text/javascript">
$(function()
{
//站点管理系统是否开启系统
	$("input[name=Page_OpenSystem]").click(function()
	{
		var OpenSystem = $(this).attr("value");
		if(OpenSystem == "password")
		{
			$("#SystemPassword").show();
			$("#SystemText").hide();
		}
		else if (OpenSystem == "false")
		{
			$("#SystemPassword").hide();
			$("#SystemText").show();
		}
		else
		{
			$("#SystemPassword").hide();
			$("#SystemText").hide();
		}
	})
	
	if($("#config").length != 0)
	{
		var OpenSystem = $("#config input[name=Page_OpenSystem][checked]").val();
		if(OpenSystem == "password")
		{
			$("#SystemPassword").show();
			$("#SystemText").hide();
		}
		else if (OpenSystem == "false")
		{
			$("#SystemPassword").hide();
			$("#SystemText").show();
		}
		else
		{
			$("#SystemPassword").hide();
			$("#SystemText").hide();
		}
	}
})
</script>
</head>
<body id="config">
<form id="form1" runat="server">
<asp:Panel runat="server" ID="PanelConfig">
<table class="table subsubmenu">
<thead>
<tr>
	<td colspan="2"><a href="#" class="tag"><%= Caicai.Framework.Common.Language.Get("ConfigManage") %></a><a href="#" class="tag"><%= Caicai.Framework.Common.Language.Get("RegisterKey") %></a></td>
</tr>
</thead>
</table>
<br />
<table class="table">
<thead>
<tr>
	<td colspan="2"><a href="#" class="helpall">[?]</a></td>
</tr>
</thead>
<tr>
	<th><%= Caicai.Framework.Common.Language.Get("PageSiteName") %>&nbsp;<a href="#" class="help">[?]</a></th>
	<td><span class="note"><%= Caicai.Framework.Common.Language.Get("PageSiteName","note") %></span><Cai:CTextBox  ID="Page_SiteName" runat="server" Width="400"  /></td>
</tr>
<tr>
	<th><%= Caicai.Framework.Common.Language.Get("PageSiteCopyright") %>&nbsp;<a href="#" class="help">[?]</a></th>
	<td><span class="note"><%= Caicai.Framework.Common.Language.Get("PageSiteCopyright","note") %></span><Cai:CTextBox  ID="Page_SiteCopyright" runat="server" Width="400"  /></td>
</tr>
<tr>
	<th><%= Caicai.Framework.Common.Language.Get("PageSiteTel") %>&nbsp;<a href="#" class="help">[?]</a></th>
	<td><span class="note"><%= Caicai.Framework.Common.Language.Get("PageSiteTel","note") %></span><Cai:CTextBox  ID="Page_SiteTel" runat="server" Width="400"  /></td>
</tr>
<tr>
	<th><%= Caicai.Framework.Common.Language.Get("PageSiteEmail") %>&nbsp;<a href="#" class="help">[?]</a></th>
	<td><span class="note"><%= Caicai.Framework.Common.Language.Get("PageSiteEmail","note") %></span><Cai:CTextBox  ID="Page_SiteEmail" runat="server" Width="400"  /></td>
</tr>
<tr>
	<th><%= Caicai.Framework.Common.Language.Get("PageSiteUrl") %>&nbsp;<a href="#" class="help">[?]</a></th>
	<td><span class="note"><%= Caicai.Framework.Common.Language.Get("PageSiteUrl","note") %></span><Cai:CTextBox  ID="Page_SiteUrl" runat="server" Width="400"  /></td>
</tr>
<tr>
	<th><%= Caicai.Framework.Common.Language.Get("PageOpenSystem") %>&nbsp;<a href="#" class="help">[?]</a></th>
	<td><span class="note"><%= Caicai.Framework.Common.Language.Get("PageOpenSystem","note") %></span><Cai:CRadioButtonList ID="Page_OpenSystem" runat="server" ControlType="FileName" Name="files/appsettings/open.xml" /></td>
</tr>
<tr id="SystemPassword" style="display:none;">
	<th><%= Caicai.Framework.Common.Language.Get("PageOpenSystemPassword") %>&nbsp;<a href="#" class="help">[?]</a></th>
	<td><span class="note"><%= Caicai.Framework.Common.Language.Get("PageOpenSystemPassword","note") %></span><Cai:CTextBox  ID="Page_OpenSystemPassword" runat="server" /></td>
</tr>
<tr id="SystemText" style="display:none;">
	<th><%= Caicai.Framework.Common.Language.Get("PageCloseSystemText") %>&nbsp;<a href="#" class="help">[?]</a></th>
	<td><span class="note"><%= Caicai.Framework.Common.Language.Get("PageCloseSystemText","note") %></span><Cai:CTextBox  ID="Page_CloseSystemText" runat="server" ControlType="MultiLine" /></td>
</tr>
<tr>
	<th style="width:140px;"><%= Caicai.Framework.Common.Language.Get("PageLanguage") %>&nbsp;<a href="#" class="help">[?]</a></th>
	<td><span class="note"><%= Caicai.Framework.Common.Language.Get("PageLanguage","note") %></span><Cai:CDropDownList  ID="Page_Language" runat="server" ControlType="FileName" Name="files/appsettings/languages.xml" /></td>
</tr>
<tr>
	<th><%= Caicai.Framework.Common.Language.Get("PageUrlRewrite") %>&nbsp;<a href="#" class="help">[?]</a></th>
	<td><span class="note"><%= Caicai.Framework.Common.Language.Get("PageUrlRewrite","note") %></span><Cai:CDropDownList  ID="Page_UrlRewrite" runat="server" ControlType="FileName" Name="files/appsettings/urlrewrite.xml" /></td>
</tr>
<tr>
	<th><%= Caicai.Framework.Common.Language.Get("PageServerCache") %>&nbsp;<a href="#" class="help">[?]</a></th>
	<td><span class="note"><%= Caicai.Framework.Common.Language.Get("PageServerCache","note") %></span><Cai:CCheckBox ID="Page_ServerCache" runat="server" /></td>
</tr>
<!--
<tr>
	<th style="width:140px;"><%= Caicai.Framework.Common.Language.Get("FileUploadExtension") %>&nbsp;<a href="#" class="help">[?]</a></th>
	<td><span class="note"><%= Caicai.Framework.Common.Language.Get("FileUploadExtension","note") %></span><Cai:CTextBox  ID="FileUpload_Extension" runat="server" /></td>
</tr>
-->
</table>
<table class="table">
<thead>
<tr>
	<td colspan="2"><a href="#" class="helpall">[?]</a></td>
</tr>
</thead>
<tr>
	<th style="width:140px;"><%= Caicai.Framework.Common.Language.Get("PageWebSiteUrl") %>&nbsp;<a href="#" class="help">[?]</a></th>
	<td><span class="note"><%= Caicai.Framework.Common.Language.Get("PageWebSiteUrl", "note") %></span>&nbsp;<%= Request.Url.ToString().ToLower().Replace("admin/config.aspx?tag=1","").Replace("admin/config.aspx?tag=2","") %></td>
</tr>
<tr>
	<th style="width:140px;"><%= Caicai.Framework.Common.Language.Get("PageWebSiteCode") %>&nbsp;<a href="#" class="help">[?]</a></th>
	<td><span class="note"><%= Caicai.Framework.Common.Language.Get("PageWebSiteCode", "note") %></span>&nbsp;&nbsp;<asp:Literal ID="LB_WebSiteCode" runat="server" /></td>
</tr>
<tr>
	<th><%= Caicai.Framework.Common.Language.Get("PageRegisterKey") %>&nbsp;<a href="#" class="help">[?]</a></th>
	<td><span class="note"><%= Caicai.Framework.Common.Language.Get("PageRegisterKey","note") %></span><Cai:CTextBox  ID="Page_RegisterKey" runat="server" Width="400"  /><asp:Image runat="server" ID="IM_IsRegisterKey" Style="vertical-align:top" /></td>
</tr>
</table>
<br />
<div style="text-align:center;"><asp:Button ID="ButtonConfig" runat="server" CssClass="button" OnClick="Manage_Click" /><input type="reset" class="button" value='<%= Caicai.Framework.Common.Language.Get("Reset") %>' /></div>
</asp:Panel>
</form>
</body>
</html>