<%@ Page CodeFileBaseClass="IlgharCMS.Lib.MemberPageBase" %>
<%If !String.Equals(OrderDetail[Kind], "Host") || Guid.Equals(OrderDetail[ServerID], Guid.Empty) || Convert.ToBoolean(OrderDetail[OnTrial])%>
	<%Response.End();%>
<%EndIf%>
<!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">
<head>
<!-- TemplateInfo codeOutsideHTMLIsLocked="true" -->
<ilghar:Get ID="OrderDetail" Object="Order.Detail" InnerID="Request.QueryString['ID']" Validate="True" />
<ilghar:Get ID="Config" Object="InstanceConfig" Operation="GetBasicSettings()" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理</title>
<link rel="stylesheet" type="text/css" href="<%=CommonPath%>jquery/themes/lightness/all.css" />
<ilghar:Comment><link rel="stylesheet" type="text/css" href="../../../S01/CHS/css/common.css" /></ilghar:Comment>
<link rel="stylesheet" href="<%=CssPath%>common.css" />
<script type="text/javascript">
var _page = "host";
var _webPath = "<%=WebPath%>";
var _id = "<%=Request.QueryString["ID"]%>";
var _serverBindings = "<%=OrderDetail[ServerBindings]%>";
var _serverBindingsCount = <%=OrderDetail[ServerBindingsCount]%>;
var _logEnabled = <%=Convert.ToString(OrderDetail[LogEnabled]).ToLower()%>;
var _defaultDoc = "<%=OrderDetail[DefaultDoc]%>";
var _error404 = "<%=OrderDetail[Error404]%>";
var _forbiddenDomain = "<%=Config[ForbiddenDomain]%>";
var _isLocked = <%=Convert.ToString(User["IsLocked"]).ToLower()%>;
var _lang_locked = "你被锁定，不能操作！";
var _lang_domain_incorrect = "域名格式不正确！";
var _lang_domain_exist = "此域名已经存在！";
var _lang_domain_max_count = "已达到最大可绑定域名数！";
var _lang_cant_delete_all_domain = "不能全部删除！";
var _lang_forbidden_domain = "此域名不能绑定！";
var _lang_working = "正在操作...";
var _lang_operation_success = "操作成功！";
var _lang_operation_fail = "操作失败！";
</script>
</head>
<body>
<div class="WhiteHeader">
	<div class="Left"><img src="<%=ImagePath%>close_frame_flipCHS.gif" alt="关闭侧栏导航" /></div>
	<div class="Title"><a href="list.aspx">产品列表</a> → <%=OrderDetail[Name]%></div>
</div>
<div class="Block">
	<ul class="TabMenu">
		<li class="Left"></li>
		<li class="Middle"><a href="view.aspx?ID=<%=Request.QueryString["ID"]%>">查看</a></li>
		<li class="Right"></li>
		<li class="Left Selected"></li>
		<li class="Middle Selected">管理</li>
		<li class="Right Selected"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="feedback.aspx?ID=<%=Request.QueryString["ID"]%>">反馈</a></li>
		<li class="Right"></li>
	</ul>
	<ul class="Title">
		<li class="Left"></li>
		<li class="Middle"></li>
		<li class="Right"></li>
	</ul>
	<form action="">
		<table border="0" cellpadding="4" cellspacing="1">
			<tfoot>
				<tr>
					<td colspan="2">
						<input type="submit" id="Submit" value="保存" />
					</td>
				</tr>
			</tfoot>
			<tbody>
				<tr>
					<th>域名列表：</th>
					<td>
						域名：<input type="text" name="ServerBinding" size="30" /><input type="button" id="AddServerBinding" value="添加" /><input type="button" id="DeleteServerBinding" value="删除" />最大可绑定数：<%=OrderDetail[ServerBindingsCount]%><br />
						<select name="ServerBindings" size="4">
							<ilghar:List Source="Manager.SplitToTable(OrderDetail[ServerBindings])">
								<ilghar:Record>
									<option><%=[0]%></option>
								</ilghar:Record>
							</ilghar:List>
						</select>
					</td>
				</tr>
				<tr>
					<th>是否写日志：</th>
					<td>
						<%If Convert.ToBoolean(OrderDetail[LogEnabled])%>
							<input type="radio" name="LogEnabled" id="LogEnabledYes" checked="checked" /><label for="LogEnabledYes">是</label>
							<input type="radio" name="LogEnabled" id="LogEnabledNo" /><label for="LogEnabledNo">否</label>
						<%Else%>
							<input type="radio" name="LogEnabled" id="LogEnabledYes" /><label for="LogEnabledYes">是</label>
							<input type="radio" name="LogEnabled" id="LogEnabledNo" checked="checked" /><label for="LogEnabledNo">否</label>
						<%EndIf%>
					</td>
				</tr>
				<tr>
					<th>默认文档：</th>
					<td><input type="text" name="DefaultDoc" value="<%=OrderDetail[DefaultDoc]%>" size="60" maxlength="255" class="Text" /></td>
				</tr>
				<tr>
					<th>自定义404错误：</th>
					<td><input type="text" name="Error404" value="<%=OrderDetail[Error404]%>" size="60" maxlength="255" class="Text" /></td>
				</tr>
			</tbody>
		</table>
	</form>
	<div class="Footer"></div>
</div>
<script type="text/javascript" src="<%=CommonPath%>jquery/core.js"></script>
<script type="text/javascript" src="<%=CommonPath%>jquery/ui.js"></script>
<script type="text/javascript" src="<%=CommonPath%>utility.js"></script>
<script type="text/javascript" src="<%=JsPath%>common.js"></script>
<script type="text/javascript" src="<%=JsPath%>host.js"></script>
</body>
</html>