<%@ Page CodeFileBaseClass="IlgharCMS.Lib.AdminPageBase" %>
<%@ Register TagPrefix="IlgharUC" TagName="Ime" Src="../../ime.dwt.ascx"%>
<!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="Member" Object="Member" 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" />
<ilgharUC:Ime Ime="true" Eot="true" runat="server" />
<script type="text/javascript">
var _page = "member_edit";
var _lang = "<%=ContentLang%>";
var _webPath = "<%=WebPath%>";
var _imagePath = "<%=ImagePath%>";
var _id = "<%=Request.QueryString["ID"]%>";
var _guid = "<%=Member[ID]%>";
var _name = "<%=Member[Name]%>";
var _email = "<%=Member[Email]%>";
var _identity = "<%=Member[Identity]%>";
var _lang_working = "正在操作...";
var _lang_operation_fail = "操作失败！";
var _lang_operation_success = "操作成功！";
var _lang_name_empty = "名称不能空！";
var _lang_password_question_empty = "密码问题不能为空！";
var _lang_email_incorrect = "Email地址格式不正确！";
var _lang_birthday_incorrect = "生日格式不正确！";
var _lang_name_exist = "会员名已被别人使用！";
var _lang_identity_exist = "身份证号已被别人使用！";
var _lang_email_exist = "注册邮箱已被别人使用！";
var _lang_pageid_empty = "页面标识不能空！";
</script>
</head>
<body>
<div class="WhiteHeader">
	<div class="Left"><img src="<%=ImagePath%>close_frame.gif" /></div>
	<div class="Title"><a href="list.aspx?Lang=<%=ContentLang%>">会员列表</a> → <span class="<%=ContentLang%>Font"><%=Member[Name]%></span></div>
	<div class="Right"></div>
</div>
<div class="Block">
	<ul class="TabMenu">
		<li class="Left Selected"></li>
		<li class="Middle Selected">编辑</li>
		<li class="Right Selected"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="money/list.aspx?Lang=<%=ContentLang%>&amp;MemberID=<%=Request.QueryString["ID"]%>">资金管理</a></li>
		<li class="Right"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="point/list.aspx?Lang=<%=ContentLang%>&amp;MemberID=<%=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>
		<table border="0" cellpadding="4" cellspacing="1">
			<tfoot>
				<tr>
					<td colspan="3"><input type="submit" value="编辑" /></td>
				</tr>
			</tfoot>
			<tbody>
				<tr>
					<th width="120">角色：</th>
					<td>
						<select name="RoleID" class="<%=ContentLang%>Font">
							<ilghar:List Mark="System" Object="Role">
								<ilghar:Record>
									<%If Guid.Equals(ID, Member[RoleID])%>
										<option value="<%=ID%>" selected="selected"><%=Name%></option>
									<%Else%>
										<option value="<%=ID%>"><%=Name%></option>
									<%EndIf%>
								</ilghar:Record>
							</ilghar:List>
						</select>
					</td>
				</tr>
				<tr>
					<th>会员名：</th>
					<td>
						<input type="text" name="Name" value="<%=Member[Name]%>" maxlength="50" class="Text <%=ContentLang%>Font" /><span id="NameExist" style="color:#F00"></span>
						<input type="checkbox" id="GuidCheckBox" /><label for="GuidCheckBox">Guid：</label><input type="text" name="ID" value="<%=Member[ID]%>" size="40" maxlength="40" disabled="disabled" class="Disabled" />
					</td>
				</tr>
				<tr>
					<th>密码：</th>
					<td><input type="password" name="Password" maxlength="20" class="Text" />若不修改，则留空</td>
				</tr>
				<tr>
					<th>密码提示问题：</th>
					<td><input type="text" name="PasswordQuestion" value="<%=Member[PasswordQuestion]%>" maxlength="20" class="Text" /></td>
				</tr>
				<tr>
					<th>提示问题答案：</th>
					<td><input type="text" name="PasswordAnswer" maxlength="20" class="Text" />若不修改，则留空</td>
				</tr>
				<tr>
					<th>注册邮箱：</th>
					<td><input type="text" name="Email" value="<%=Member[Email]%>" size="50" maxlength="50" class="Text" /><span id="EmailExist" style="color:#F00"></span></td>
				</tr>
				<tr>
					<th>身份证号：</th>
					<td><input type="text" name="Identity" value="<%=Member[Identity]%>" size="20" maxlength="18" class="Text" /><span id="IdentityExist" style="color:#F00"></span></td>
				</tr>
				<tr>
					<th>真实姓名：</th>
					<td><input type="text" name="RealName" value="<%=Member[RealName]%>" maxlength="50" class="Text" <%=ContentLang%>Font /></td>
				</tr>
				<tr>
					<th>生日：</th>
					<td><input type="text" name="Birthday" value="<%=Member[Birthday]%>" class="Wdate" /></td>
				</tr>
				<tr>
					<th>联系电话：</th>
					<td><input type="text" name="Phone" value="<%=Member[Phone]%>" maxlength="50" class="Text" /></td>
				</tr>
				<tr>
					<th>手机：</th>
					<td><input type="text" name="Mobile" value="<%=Member[Mobile]%>" maxlength="50" class="Text" /></td>
				</tr>
				<tr>
					<th>通讯地址：</th>
					<td><input type="text" name="Address" value="<%=Member[Address]%>" size="50" maxlength="255" class="Text <%=ContentLang%>Font" /></td>
				</tr>
				<tr>
					<th>邮编：</th>
					<td><input type="text" name="Zip" value="<%=Member[Zip]%>" maxlength="50" class="Text" /></td>
				</tr>
				<tr>
					<th>个人主页：</th>
					<td><input type="text" name="Homepage" value="<%=Member[Homepage]%>" size="50" maxlength="255" class="Text" /></td>
				</tr>
				<tr>
					<th>QQ：</th>
					<td><input type="text" name="QQ" value="<%=Member[QQ]%>" maxlength="50" class="Text" /></td>
				</tr>
				<tr>
					<th>性别：</th>
					<td>
						<select name="SexID" class="<%=ContentLang%>Font">
							<option value="">未指定</option>
							<ilghar:List Object="Sex">
								<ilghar:Record>
									<%If Guid.Equals(ID, Member[SexID])%>
										<option value="<%=ID%>" selected="selected"><%=Name%></option>
									<%Else%>
										<option value="<%=ID%>"><%=Name%></option>
									<%EndIf%>
								</ilghar:Record>
							</ilghar:List>
						</select>
					</td>
				</tr>
				<tr>
					<th>所属地区：</th>
					<td>
						<select name="RegionID" class="<%=ContentLang%>Font">
							<option value="">未指定</option>
							<ilghar:List Object="Region">
								<ilghar:Record>
									<%If Guid.Equals(ID, Member[RegionID])%>
										<option value="<%=ID%>" selected="selected"><%=Name%></option>
									<%Else%>
										<option value="<%=ID%>"><%=Name%></option>
									<%EndIf%>
								</ilghar:Record>
							</ilghar:List>
						</select>
					</td>
				</tr>
				<tr>
					<th>所属行业：</th>
					<td>
						<select name="IndustryID" class="<%=ContentLang%>Font">
							<option value="">未指定</option>
							<ilghar:List Object="Industry">
								<ilghar:Record>
									<%If Guid.Equals(ID, Member[IndustryID])%>
										<option value="<%=ID%>" selected="selected"><%=Name%></option>
									<%Else%>
										<option value="<%=ID%>"><%=Name%></option>
									<%EndIf%>
								</ilghar:Record>
							</ilghar:List>
						</select>
					</td>
				</tr>
				<tr>
					<th>模板：</th>
					<td>
						自定模板：<input type="text" name="Template" value="<%=Member[Template]%>" size="30" class="Text" />可以空<br />
						页面标识：<input type="text" name="PageID" value="<%=Member[PageID]%>" size="30" class="Text" />
						<select id="PageIDCandidate">
							<option value="">预定义</option>
							<option value="{ID}">ID</option>
							<option value="{Guid}">Guid</option>
						</select>可以空
					</td>
				</tr>
				<tr>
					<th>注册日期：</th>
					<td><%=Member[CreateTime]%></td>
				</tr>
				<tr>
					<th>创建人：</th>
					<td><%=Member[Creator]%></td>
				</tr>
				<tr>
					<th>指标：</th>
					<td>
						最后登录时间：<input type="text" name="LastLoginTime" value="<%=Member[LastLoginTime]%>" size="10" maxlength="15" class="Text" />
						最后登录IP：<input type="text" name="LastLoginIP" value="<%=Member[LastLoginIP]%>" size="10" maxlength="15" class="Text" />
						登陆次数：<input type="text" name="LoginTimes" value="<%=Member[LoginTimes]%>" size="10" maxlength="15" 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%>date_picker/date_picker.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%>member.js"></script>
</body>
</html>