<!DOCTYPE html>
<!--[if IE 8 ]><html dir="ltr" lang="zh-TW" class="ie8"><![endif]-->
<!--[if IE 9 ]><html dir="ltr" lang="zh-TW" class="ie9"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html dir="ltr" lang="zh-TW">
<!--<![endif]-->
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
<title>管理後臺</title>
<meta name="robots" content="noindex, nofollow" />
<link href="less/page.less" rel="stylesheet/less">
<link href="css/main.css" rel="stylesheet">
<link href="css/page.css" rel="stylesheet">
<script src="/jquery/jquery-1.10.js"></script>
<script>
	if('<?# alertMsg ?>' != ''){
		alert('<?# alertMsg ?>');
		if('<?# goBack ?>' == 'Y') history.back();
	}
	if('<?# locationHref ?>' != '') location.href = '<?# locationHref ?>';
</script>
</head>
<body>
	<?# sidePage ?>
	<div class="pos_rel" id="content">
		<?# header ?>
		<form id="form1" name="form1" method="post">
            <input type="hidden" id="id" name="id" value="<?# id ?>" />
            <input type="hidden" id="pUrl" name="pUrl" value="<?# pUrl ?>" />
			<div class="row mt_10 mb_5 h3 page_title">檢視會員</div>
			<div class="card">
				<div class="pos_rel bg_g_100 tabs_warp" id="tabs_warp">
					<div class="tabs_list">
						<a class="tabs_item" href="index.php">控制台</a>
						<a class="tabs_item" data-action="true" href="javascript:void(0);">檢視會員</a>
					</div>
				</div>
				<div class="d_md_flex flex_wrap card_body form_box">
                    <div class="col_md_6 d_flex form_list"><label>帳號</label><input type="text" value="<?# LoginName ?>" readonly /></div>
                    <div class="col_md_6 d_flex form_list"><label>信箱</label><input type="text" value="<?# MemberEmail ?>" readonly /></div>
                    <div class="col_md_6 d_flex form_list"><label>等級</label><input type="text" value="<?# LevelName ?>" readonly /></div>
                    <div class="col_md_6 d_flex form_list">
                        <label>狀態</label>
                        <select id="Status" name="Status">
                            <option value="10">正常</option>
                            <option value="0"><?# textStatus ?></option>
                            <option value="-10">停權</option>
                        </select>
                    </div>
                    <div class="col_md_6 d_flex form_list"><label>暱稱</label><input type="text" value="<?# MemberNick ?>" readonly /></div>
                    <div class="col_md_6 d_flex form_list"><label>姓名</label><input type="text" value="<?# MemberName ?>&nbsp;<?# Sex ?>" readonly /></div>
                    <div class="col_md_6 d_flex form_list"><label>手機</label><input type="text" value="<?# MemberMobile ?>" readonly /></div>
                    <div class="col_md_6 d_flex form_list"><label>住址</label><input type="text" value="<?# ZipCode ?>&nbsp;<?# CityName ?><?# AreaName ?><?# MemberAddress ?>" readonly /></div>
                    <div class="col_md_6 d_flex form_list"><label>Line ID</label><input type="text" value="<?# MemberLine ?>" readonly /></div>
                    <div class="col_md_6 d_flex form_list"><label>驗證碼</label><input type="text" value="<?# CheckCode ?>" readonly /></div>
                    <div class="col_md_6 d_flex form_list"><label>註冊</label><input type="text" value="<?# created ?>" readonly /></div>
                    <div class="col_md_6 d_flex form_list"><label>驗證</label><input type="text" value="<?# checked ?>" readonly /></div>
                    <div class="col_md_6 d_flex form_list"><label>最後登入</label><input type="text" value="<?# lastLogin ?>" readonly /></div>
                    <div class="col_md_6 d_flex form_list"><label>最後更新</label><input type="text" value="<?# modified ?>&nbsp;<?# ModifiedUserName ?>" readonly /></div>
				</div>
			</div>
            <div class="row mt_5 d_flex start_box">
				<a class="mr_2 btn btn_info" id="btnOK" href="javascript:void(0);">送出</a>
                <a class="mr_2 btn btn_g_300" id="btnCancel" href="javascript:void(0);">返回</a>
			</div>
		</form>
		<?# footer ?>
	</div>
</body>
</html>
<script>
	$(function(){
		var st = ('<?# Status ?>' == '10' || '<?# Status ?>' == '-10') ?'<?# Status ?>':0;
		$('#Status').val(st);

		$('#btnOK').click(function(){
			if($('#Status').val() == ''){
				alert('請選擇狀態!');
				$('#Status').focus();
				return false;
			}
			$('#form1').submit();
		});
		$('#btnCancel').click(function(){
			location.href = 'memberList.php';
		});
	});
</script>