<%@ Page CodeFileBaseClass="IlgharCMS.Lib.AdminPageBase" %>
<!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="Admin" Object="Admin" InnerID="Request.QueryString['ID']" Validate="True" />
<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 language="c#" runat="server">
protected string MemberInstanceID
{
	get
	{
		DataRow[] rows = Manager.Channels.Select(Alias.Module.Namespace + "='IlgharCMS.MemberModule'");
		if (rows.Length > 0)
			return rows[0][Alias.Instance.InnerID].ToString();
		else
			return "0";
	}
}
</script>
<script type="text/javascript">
var _page = "admin_edit";
var _lang = "<%=ContentLang%>";
var _webPath = "<%=WebPath%>";
var _imagePath = "<%=ImagePath%>";
var _id = "<%=Request.QueryString["ID"]%>";
var _guid = "<%=Admin[ID]%>";
var _memberInstanceID = <%=MemberInstanceID%>;
var _validatekey = "<%=Manager.MakeValidateKey()%>";
var _memberID = 0;
var _lang_working = "正在操作...";
var _lang_operation_fail = "操作失败！";
var _lang_operation_success = "操作成功！";
var _lang_name_empty = "名称不能空！";
var _lang_email_incorrect = "Email地址格式不正确！";
var _lang_member_name_empty = "关联会员名不能空！";
var _lang_member_password_empty = "关联会员密码不能空！";
var _lang_member_email_incorrect = "关联会员Email地址格式不正确！";
var _lang_setting_member = "正在处理关联会员！";
</script>
</head>
<body>
<div class="WhiteHeader">
	<div class="Left"><img src="<%=ImagePath%>close_frame.gif" /></div>
	<div class="Title"><a href="list.aspx">管理员列表</a> → <span class="<%=ContentLang%>Font"><%=Admin[Name]%></span></div>
	<div class="Right"></div>
</div>
<div class="Block">
	<ul class="Title">
		<li class="Left"></li>
		<li class="Middle">编辑</li>
		<li class="Right"></li>
	</ul>
	<form>
		<table border="0" cellpadding="4" cellspacing="1">
			<tfoot>
				<tr>
					<td colspan="2"><input type="submit" value="编辑" /></td>
				</tr>
			</tfoot>
			<tbody>
				<tr>
					<th width="120">角色：</th>
					<td>
						<ilghar:List Object="Role">
							<select name="RoleID" class="<%=ContentLang%>Font">
								<ilghar:Record>
									<%If Guid.Equals(Admin[RoleID], ID)%>
										<option value="<%=ID%>" selected="selected"><%=Name%></option>
									<%Else%>
										<option value="<%=ID%>"><%=Name%></option>
									<%EndIf%>
								</ilghar:Record>
							</select>
						</ilghar:List>
					</td>
				</tr>
				<tr>
					<th>名称：</th>
					<td><input type="text" name="Name" value="<%=Admin[Name]%>" maxlength="50" class="Text" /></td>
				</tr>
				<tr>
					<th>密码：</th>
					<td><input type="password" name="Password" value="" maxlength="50" class="Text" />不修改，则留空</td>
				</tr>
				<tr>
					<th>Email：</th>
					<td><input type="text" name="Email" value="<%=Admin[Email]%>" maxlength="50" class="Text" /></td>
				</tr>
				<tr>
					<th>真实姓名：</th>
					<td><input type="text" name="RealName" value="<%=Admin[RealName]%>" maxlength="50" class="Text" /></td>
				</tr>
				<tr>
					<th>QQ：</th>
					<td><input type="text" name="QQ" value="<%=Admin[QQ]%>" maxlength="20" class="Text" /></td>
				</tr>
				<tr>
					<th>MSN：</th>
					<td><input type="text" name="MSN" value="<%=Admin[MSN]%>" maxlength="50" class="Text" /></td>
				</tr>
				<tr>
					<th>权限限于自己：</th>
					<td>
						<%If Convert.ToBoolean(Admin[HasSelfLimitation])%>
							<input type="radio" name="HasSelfLimitation" id="HasSelfLimitationYes" checked="checked" /><label for="HasSelfLimitationYes">是</label>
							<input type="radio" name="HasSelfLimitation" id="HasSelfLimitationNo" /><label for="HasSelfLimitationNo">否</label>
						<%Else%>
							<input type="radio" name="HasSelfLimitation" id="HasSelfLimitationYes" /><label for="HasSelfLimitationYes">是</label>
							<input type="radio" name="HasSelfLimitation" id="HasSelfLimitationNo" checked="checked" /><label for="HasSelfLimitationNo">否</label>
						<%EndIf%>
					</td>
				</tr>
				<tr>
					<th>修改关联会员：</th>
					<td><input type="checkbox" name="ChangeMember" disabled="disabled" /></td>
				</tr>
				<tr>
					<th>关联会员名：</th>
					<td><input type="text" name="MemberName" maxlength="50" disabled="disabled" class="Text" /></td>
				</tr>
				<tr>
					<th>关联会员密码：</th>
					<td><input type="password" name="MemberPassword" maxlength="50" disabled="disabled" class="Text" />若不修改，则留空</td>
				</tr>
				<tr>
					<th>关联会员Email：</th>
					<td><input type="text" name="MemberEmail" maxlength="50" disabled="disabled" 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>
<%If MemberChannel != null%>
	<script type="text/javascript" src="<%=Manager.GetModulePath(null)%><%=MemberChannel[IlgharCMS.SystemModule.Alias.Module.Namespace]%>/alias.js"></script>
<%EndIf%>
<script type="text/javascript" src="<%=CommonPath%>xmldom.js"></script>
<script type="text/javascript" src="<%=CommonPath%>utility.js"></script>
<script type="text/javascript" src="<%=JsPath%>global.js"></script>
<script type="text/javascript" src="<%=JsPath%>system.js"></script>
</body>
</html>