<!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>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>{%$lngpack.sitename%}</title>
<meta name="keywords" content="{%$lngpack.keyword%}" />
<meta name="description" content="{%$lngpack.description%}" />
<script type="text/javascript" src="{%$rootdir%}js/jquery.js"></script>
<script type="text/javascript" src="{%$rootdir%}js/basicrun.js"></script>
<script type="text/javascript" src="{%$rootdir%}js/jquery.Slide.js"></script>
<script type="text/javascript" src="{%$rootdir%}js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="{%$rootdir%}espcms_includes/js/citydb.js"></script>
<script type="text/javascript" src="{%$rootdir%}espcms_includes/js/cityselect.js"></script>
<script type="text/javascript" src="{%$rootdir%}espcms_includes/js/espcms_dialog.js"></script>
<script type="text/javascript" src="{%$rootdir%}espcms_includes/js/espcms_formvalidation.js"></script>
<link href="{%$rootpath%}css/espcms_public.css" rel="stylesheet" type="text/css" />
<link href="{%$rootpath%}css/espcms_v5div.css" rel="stylesheet" type="text/css" />
<link href="{%$rootpath%}css/espcms_page.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
	$(window).load(function() {
		$("#clickmenubotton li span").hover(function() {
			$(this).addClass("menuhover");
			$(this).parent().find("ul.subnav").slideDown('fast').show();
			$(this).parent().hover(function() {
			}, function() {
				$(this).parent().find("ul.subnav").fadeOut('fast');
				$(this).parent().find("span").removeClass("menuhover");
			});
		});
	});
</script>
</head>

<body>
{%link file="public/head.html"%}
<div class="espcms_page_bannpic"><img src="{%$rootpath%}images/bann/type_pic.jpg"/></div>

<div class="espcms_page espcms_page_left_linkbg">
	<div class="espcms_page_left">
		{%list name=memmenu%}
	</div>
	<div class="espcms_page_right">
		{%if $out=='center'%}
		<div class="espcms_page_typename">欢迎您成功登陆</div>
		<div class="espcms_page_location">您现在的位置：<a href="{%$homelink%}">首页</a> » <b>{%$lngpack.member_center_name%}</b></div>
		<div class="espcms_page_right_line"></div>

		<div class="espcms_book_paddingbottom0 pt10">
			<div class="espcms_bbs_form">
				<b class="b1"></b><b class="b2"></b><b class="b3"></b><b class="b4"></b>
				<div class="title"><div class="messageicon2"></div><div class="messtitle">{%$member.username%}</div>欢迎您登陆会员中心</div>
				<div class="content">
					<div class="espcms_form_group">
						<label for="username" class="control_label16">您上次登陆的时间为</label>
						<div class="control_required20 f14">{%$member.lasttime|espcms_timeformat(3)%}</div>
					</div>
					<div class="espcms_form_group">
						<label for="username" class="control_label16">您上次登陆的IP为</label>
						<div class="control_required20 f14">{%$member.lastip|espcms_ip(2)%}</div>
					</div>
					<div class="espcms_form_group">
						<label for="username" class="control_label16">您的会员等级为</label>
						<div class="control_required20 f14">{%$member.rankname%}</div>
					</div>
					<div class="espcms_form_group">
						<label for="username" class="control_label16">您的会员积分为</label>
						<div class="control_required20 f14">{%$member.integral%}</div>
					</div>
					<div class="espcms_form_group">
						<label for="username" class="control_label16">您的登陆次数为</label>
						<div class="control_required20 f14">{%$member.visitcount%}次</div>
					</div>
				</div>
				<b class="b5"></b><b class="b6"></b><b class="b7"></b><b class="b8"></b>
			</div>
		</div>
		{%list name=memorder%}
		{%list name=membbs%}

		{%elseif $out=='editinfo'%}

		<script type="text/javascript">
			$(function () {
				{%if $member_con.MEMBER_CITY_VERIFY==1%}
					$("#city_select").citySelect({
						prov: "{%if $member.province%}{%$member.province%}{%else%}北京{%/if%}",
						city: "{%$member.city%}",
						dist: "{%$member.district%}",
						nodata: "none"
					});
				{%/if%}

				$("#editinfo").espcms_formvalidation({focusName: "#alias"});
				$('.dialog_link').espcms_dig();
			});
		</script>

		<form name="editinfo" id="editinfo" method="post" action="{%$mlink.edit_save%}">
		<input type="hidden" name="tokenname" value="{%$tokenkey.token_name%}"/>
		<input type="hidden" name="tokenkey" value="{%$tokenkey.token_key%}"/>
		<input type="hidden" name="inputclass" value="editinfo"/>
		<div class="espcms_book_paddingbottom0 pt10">
			<div class="espcms_bbs_form">
				<b class="b1"></b><b class="b2"></b><b class="b3"></b><b class="b4"></b>
				<div class="title"><div class="messageicon2"></div><div class="messtitle">个人资料修改</div></div>
				<div class="content">
					<div class="espcms_form_group">
						<label for="username" class="control_label">用户名</label>
						<div class="control_required f14">{%$member.username%}</div>
					</div>
					<div class="espcms_form_group">
						<label for="email" class="control_label">电子邮箱</label>
						<div class="control_required f14">{%$member.email%}</div>
					</div>
					<div class="espcms_form_group">
						<label for="alias" class="control_label">姓名（昵称）</label>
						<div class="control_required">
							<input type="text" name="alias" id="alias" value="{%$member.alias%}" class="col4 infoInput"/>
						</div>
					</div>
					<div class="espcms_form_group">
						<label for="sex" class="control_label">性别</label>
						<div class="control_required20 f14">
							<input type="radio" value="1" name="sex" {%if $member.sex==1%}checked{%/if%}> 男&nbsp;
							<input type="radio" value="2" name="sex" {%if $member.sex==2%}checked{%/if%}> 女
						</div>
					</div>
					<div class="espcms_form_group">
						<label for="birthday" class="control_label">生日</label>
						<div class="control_required20 f14">
							<input type="text" name="birthday" value="{%$member.birthday|espcms_timeformat(2)%}" id="birthday" onclick="WdatePicker({el:'birthday',readOnly:true,dateFmt:'yyyy-MM-dd'})" maxlength="100" class="col5 infoInput"/>
							<span class="form_message">请按“2000-00-00”格式进行填写</span>
						</div>
					</div>
					{%if $member_con.MEMBER_CITY_VERIFY==1%}
					<div class="espcms_form_group">
						<label for="cityone" class="control_label">地区</label>
						<div class="control_required20 f14">
							<div id="city_select">
								<select class="infoInput prov" data-size="8" name="province"></select>
								<select class="infoInput city" data-size="8" name="city"></select>
								<select class="infoInput dist" data-size="8" name="district"></select>
							</div>
						</div>
					</div>
					{%/if%}
					<div class="espcms_form_group">
						<label for="address" class="control_label">详细地址</label>
						<div class="control_required20 f14">
							<input type="text" name="address" id="address" value="{%$member.address%}" class="col8 infoInput" />
						</div>
					</div>
					<div class="espcms_form_group">
						<label for="zipcode" class="control_label">联系电话</label>
						<div class="control_required20 f14">
							<input type="text" name="tel" value="{%$member.tel%}"  class="col6 infoInput"/>
						</div>
					</div>
					<div class="espcms_form_group">
						<label for="zipcode" class="control_label">QQ</label>
						<div class="control_required20 f14">
							<input type="text" name="qq" value="{%$member.qq%}" class="col6 infoInput"/>
						</div>
					</div>
					<div class="espcms_form_group">
						<label for="zipcode" class="control_label">微信号</label>
						<div class="control_required20 f14">
							<input type="text" name="weixin" id="weixin" value="{%$member.weixin%}"class="col6 infoInput"/>
						</div>
					</div>
					{%forlist from=$att_array key=i%}
						{%if $att_array[i].inputtype=='string' || $att_array[i].inputtype=='int' || $att_array[i].inputtype=='float' || $att_array[i].inputtype=='decimal'%}
						<div class="espcms_form_group {%$att_array[i].attrname%}">
							<label class="col-sm-2 control_label">{%$att_array[i].typename%}</label>
							<div class="control_required20">
								<input type="text" name="{%$att_array[i].attrname%}" class="infoInput" id="{%$att_array[i].attrname%}" value="{%$att_array[i].attrvalue%}" placeholder="{%$att_array[i].typeremark%}" title="{%$att_array[i].typeremark%}" {%if $att_array[i].isvalidate==1%} data-validation="{%$att_array[i].validatetext%}"{%/if%} data-validation-msg="{%$att_array[i].validate_str%}" />
							</div>
						</div>
						{%/if%}

						{%if $att_array[i].inputtype=='text' || $att_array[i].inputtype=='htmltext'%}
						<div class="espcms_form_group {%$att_array[i].attrname%}">
							<label class="col-sm-2 control_label">{%$att_array[i].typename%}</label>
							<div class="control_required20">
								<textarea name="{%$att_array[i].attrname%}" class="infoInput" style="width:100%;height:{%$att_array[i].attrrow%}px" id="{%$att_array[i].attrname%}" placeholder="{%$att_array[i].typeremark%}" title="{%$att_array[i].typeremark%}" {%if $att_array[i].isvalidate==1%} data-validation="{%$att_array[i].validatetext%}"{%/if%} data-validation-msg="{%$att_array[i].validate_str%}">{%$att_array[i].attrvalue%}</textarea>
							</div>
						</div>
						{%/if%}

						{%if $att_array[i].inputtype=='addon' || $att_array[i].inputtype=='img'%}
						<div class="espcms_form_group {%$att_array[i].attrname%}">
							<label class="col-sm-2 control_label">{%$att_array[i].typename%}</label>
							<div class="control_required20">
								<div class="input-group">
									<input type="text" name="{%$att_array[i].attrname%}" class="infoInput" id="{%$att_array[i].attrname%}" value="{%$att_array[i].attrvalue%}" placeholder="{%$att_array[i].typeremark%}" title="{%$att_array[i].typeremark%}" data-display-type="top" {%if $att_array[i].isvalidate==1%} data-validation="{%$att_array[i].validatetext%}"{%/if%} data-validation-msg="{%$att_array[i].validate_str%}" />
									<span class="input-group-btn">
										<a data-w="500px" data-h="300px" data-url="{%$att_array[i].uploadlink%}" data-title="上传文件" class="btn btn-green dialog_link">上传文件</a>
									</span>
								</div>
							</div>
						</div>
						{%/if%}

						{%if $att_array[i].inputtype=='datetime' || $att_array[i].inputtype=='date'%}
						<div class="espcms_form_group {%$att_array[i].attrname%}">
							<label class="col-sm-2 control_label">{%$att_array[i].typename%}</label>
							<div class="control_required20">
								<input type="text" name="{%$att_array[i].attrname%}" class="infoInput {%$att_array[i].inputtype%}" id="{%$att_array[i].attrname%}" onclick="WdatePicker({el:'{%$att_array[i].attrname%}',readOnly:true,dateFmt:'yyyy-MM-dd'})" value="{%$att_array[i].attrvalue%}" placeholder="{%$att_array[i].typeremark%}" title="{%$att_array[i].typeremark%}" {%if $att_array[i].isvalidate==1%} data-validation="{%$att_array[i].validatetext%}"{%/if%} data-validation-msg="{%$att_array[i].validate_str%}"/>
							</div>
						</div>
						{%/if%}

						{%if $att_array[i].inputtype=='select'%}
						<div class="espcms_form_group {%$att_array[i].attrname%}">
							<label class="col-sm-2 control_label">{%$att_array[i].typename%}</label>
							<div class="control_required20">
								<select class="selectpicker infoInput" name="{%$att_array[i].attrname%}" id="{%$att_array[i].attrname%}" data-size="8" {%if $att_array[i].isvalidate==1%}data-validation="{%$att_array[i].validatetext%}"{%/if%} data-validation-msg="{%$att_array[i].validate_str%}" title="{%pack:public_pack-espcms_select_title%}{%$att_array[i].typename%}">
									{%forlist from=$att_array[i].attrvalue key=ii%}
									<option value="{%$att_array[i].attrvalue[ii].name%}" {%$att_array[i].attrvalue[ii].selected%}>{%$att_array[i].attrvalue[ii].name%}</option>
									{%/forlist%}
								</select>
							</div>
						</div>
						{%/if%}

						{%if $att_array[i].inputtype=='radio'%}
						<div class="espcms_form_group {%$att_array[i].attrname%}">
							<label class="col-sm-2 control_label">{%$att_array[i].typename%}</label>
							<div class="control_required20 pt6">
								{%forlist from=$att_array[i].attrvalue key=ii%}
								<input type="radio" name="{%$att_array[i].attrname%}" value="{%$att_array[i].attrvalue[ii].name%}" {%if $att_array[i].attrvalue[ii].selected=='selected'%}checked{%/if%}/><span class="pr10">{%$att_array[i].attrvalue[ii].name%}</span>
								{%/forlist%}
							</div>
						</div>
						{%/if%}

						{%if $att_array[i].inputtype=='checkbox'%}
						<div class="espcms_form_group {%$att_array[i].attrname%}">
							<label class="col-sm-2 control_label">{%$att_array[i].typename%}</label>
							<div class="control_required20 pt6">
								{%forlist from=$att_array[i].attrvalue key=ii%}
								<input type="checkbox" name="{%$att_array[i].attrname%}[]" value="{%$att_array[i].attrvalue[ii].name%}" {%if $att_array[i].attrvalue[ii].selected=='selected'%}checked{%/if%}/><span class="pr10">{%$att_array[i].attrvalue[ii].name%}</span>
								{%/forlist%}
							</div>
						</div>
						{%/if%}
					{%/forlist%}
					<div class="espcms_form_group">
						<label class="control_label"> </label>
						<div class="control_required20">
							<input type="submit" id="submit" class="button blue2" value="确认修改资料"/>
						</div>
					</div>
				</div>
				<b class="b5"></b><b class="b6"></b><b class="b7"></b><b class="b8"></b>
			</div>
		</div>
		</form>
		{%elseif $out=='editpassword'%}
		<script type="text/javascript">
			$(function () {
				$("#editinfo").espcms_formvalidation({focusName: "#oldpassword"});
			});
		</script>
		<form name="editinfo" id="editinfo" method="post" action="{%$mlink.edit_save%}">
		<input type="hidden" name="tokenname" value="{%$tokenkey.token_name%}"/>
		<input type="hidden" name="tokenkey" value="{%$tokenkey.token_key%}"/>
		<input type="hidden" name="inputclass" value="editpassword"/>
		<div class="espcms_book_paddingbottom0 pt10">
			<div class="espcms_bbs_form">
				<b class="b1"></b><b class="b2"></b><b class="b3"></b><b class="b4"></b>
				<div class="title"><div class="messageicon2"></div><div class="messtitle">密码修改</div></div>
				<div class="content">
					<div class="espcms_form_group">
						<label for="username" class="control_label">用户名</label>
						<div class="control_required f14">{%$member.username%}</div>
					</div>
					<div class="espcms_form_group">
						<label for="email" class="control_label">电子邮箱</label>
						<div class="control_required f14">{%$member.email%}</div>
					</div>
					<div class="espcms_form_group">
						<label for="alias" class="control_label">旧密码</label>
						<div class="control_required">
							<input type="password" name="oldpassword" id="oldpassword" size="18" class="infoInput" placeholder="请输入原登陆密码" title="请输入原登陆密码" data-validation-minlength="6" data-validation-maxlength="30" data-validation-msg="抱歉：原登陆密码输入错误，请返回重新输入！"  />
						</div>
					</div>
					<div class="espcms_form_group">
						<label for="title" class="control_label">新密码</label>
						<div class="control_required">
							<input type="password" name="password"  class="col5 infoInput" id="password" placeholder="请输入新的登陆密码" title="请输入新的登陆密码" password-rank="2" password-rank-msg="密码太简单，请换一个试试" data-validation-minlength="6" data-validation-maxlength="30" data-validation-msg="抱歉：新的密码输入错误，请返回重新输入" />
						</div>
					</div>
					<div class="espcms_form_group">
						<label for="title" class="control_label">确认密码</label>
						<div class="control_required">
							<input type="password" name="validation_password"  class="col5 infoInput"  id="validation_password" placeholder="请输入登陆确认密码" title="请输入登陆确认密码" password-validation-field="password" data-password-validation-msg="两次密码不一样，请重新输入！" data-validation-minlength="6" data-validation-maxlength="30" data-validation-msg="抱歉：确认密码输入错误，请返回重新输入！" />
						</div>
					</div>

					<div class="espcms_form_group">
						<label class="control_label"> </label>
						<div class="control_required20">
							<input type="submit" id="submit" class="button blue2" value="确认修改密码"/>
						</div>
					</div>
				</div>
				<b class="b5"></b><b class="b6"></b><b class="b7"></b><b class="b8"></b>
			</div>
		</div>
		</form>
		{%elseif $out=='editemail'%}
		<script type="text/javascript">
			$(function () {
				$("#editinfo").espcms_formvalidation({
					focusName: "#password",
					verifyURL: "{%$mlink.verify%}",
					verifyQueryString: "userid={%$member.userid%}",
					verifyField: "email"
				});
			});
		</script>
		<form name="editinfo" id="editinfo" method="post" action="{%$mlink.edit_save%}">
		<input type="hidden" name="tokenname" value="{%$tokenkey.token_name%}"/>
		<input type="hidden" name="tokenkey" value="{%$tokenkey.token_key%}"/>
		<input type="hidden" name="inputclass" value="editmail"/>
		<div class="espcms_book_paddingbottom0 pt10">
			<div class="espcms_bbs_form">
				<b class="b1"></b><b class="b2"></b><b class="b3"></b><b class="b4"></b>
				<div class="title"><div class="messageicon2"></div><div class="messtitle">E-mail修改</div></div>
				<div class="content">
					<div class="espcms_form_group">
						<label for="username" class="control_label">用户名</label>
						<div class="control_required f14">{%$member.username%}</div>
					</div>
					<div class="espcms_form_group">
						<label for="email" class="control_label">原电子邮箱</label>
						<div class="control_required f14">{%$member.email%}</div>
					</div>
					<div class="espcms_form_group">
						<label class="control_label">登陆密码</label>
						<div class="control_required">
							<input type="password" name="password" id="password" size="18" class="infoInput" placeholder="请输入登陆密码" title="请输入登陆密码" data-validation-minlength="6" data-validation-maxlength="30" data-validation-msg="抱歉：登陆密码输入错误，请返回重新输入！"  />
						</div>
					</div>
					<div class="espcms_form_group">
						<label for="title" class="control_label">新E-mail</label>
						<div class="control_required">
							<input type="text" name="email" id="email" class="col6 infoInput" data-validation="^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$"  placeholder="请输入E-mail" title="请输入E-mail" data-validation-msg="抱歉：E-mail输入错误，请重新输入！" validation-warning="抱歉：E-mail已存在" />
						</div>
					</div>
					<div class="espcms_form_group">
						<label class="control_label"> </label>
						<div class="control_required20">
							<input type="submit" id="submit" class="button blue2" value="确认修改E-mail"/>
						</div>
					</div>
				</div>
				<b class="b5"></b><b class="b6"></b><b class="b7"></b><b class="b8"></b>
			</div>
		</div>
		</form>
		{%/if%}
	</div>
</div>

{%link file="public/footer.html"%}
</body>
</html>
