#set($title = "会員登録")
#set($menukubun = "1")
#parse( "/WEB-INF/view/common/header_admin.vm" )
<script language="JavaScript">
    <!--
    function OpenSrchWindow()
    {

    var zipCode = document.mainForm.zipCode.value;

	var url='#q("/admin/member/memberRegist/addrSearch?zipCode=")'+zipCode;
	window.open(url, "userEditForm", "width=600px, height=512px,resizable=yes,scrollbars=yes ");

    }

	function send_check(){
		document.mainForm.submit();
		return false;
     }
    //-->
</script>
<div id="contents">
<div id="contents_main">
<div id="breadcrumbsWrap">

</div><!--[ /breadcrumbsWrap ]-->
<div id="main" class="clearfix">


<h2 class="contents_title">会員登録</h2>

<div id="right_contents">

#if($tools.getMsgs()!="")
<font color="red" size="2">入力エラーがあります。</font>
#end
#set($member-url = $tools.getSecureUrl('/admin/member/memberRegist/memberConfirm/'))
<form name="mainForm" action="$!member-url" method="post">

<h3 class="table_title">基本情報</h3>
##<div id="search">
<table border="0" cellspacing="0" cellpadding="0" class="stripe2 mgb30 w840">
	<tr>
		<td class="w190">ログインID<font class="listpoint">*</font></td>
		<td><input name="loginId" type="text" class="w200" value="$!escape.html($!memberEditForm.loginId)">
			<BR>$!tools.getMsg("loginId")
		</td>
	</tr>
	<tr>
		<td>パスワード<font class="listpoint">*</font></td>
		<td><input name="password" type="text" / class="w200" value="$!escape.html($!memberEditForm.password)">
			<BR>$!tools.getMsg("password")
		</td>
	</tr>
	<tr>
		<td>パスワード確認<font class="listpoint">*</font></td>
		<td><input name="password2" type="text" / class="w200" value="$!escape.html($!memberEditForm.password2)">
			<BR>$!tools.getMsg("password2")
		</td>
	</tr>
	<tr>
		<td>E-mail(メイン)<font class="listpoint">*</font></td>
		<td><input name="mainPcEmail" type="text" / class="w250" value="$!escape.html($!memberEditForm.mainPcEmail)">
			<BR>$!tools.getMsg("mainPcEmail")
			$!tools.getMsg("Email")
		</td>
	</tr>
	<tr>
		<td>E-mail(サブ)</td>
		<td><input name="subPcEmail" type="text" / class="w250" value="$!escape.html($!{memberEditForm.subPcEmail})">
			<BR>$!tools.getMsg("subPcEmail")
			$!tools.getMsg("Email")
		</td>
	</tr>
	<tr>
		<td>氏名</td>
		<td>姓
		<input name="firstName" type="text" / class="w120" value="$!escape.html($!memberEditForm.firstName)">&nbsp;&nbsp;
		名<input name="lastName" type="text" / class="w120" value="$!escape.html($!memberEditForm.lastName)">
		<BR>$!tools.getMsg("firstName")
		$!tools.getMsg("lastName")
		</td>
	</tr>
	<tr>
		<td>フリガナ</td>
		<td>セイ<input name="firstNameKana" type="text" / class="w120 " value="$!escape.html($!memberEditForm.firstNameKana)">&nbsp;&nbsp;
		メイ<input name="lastNameKana" type="text" / class="w120 " value="$!escape.html($!memberEditForm.lastNameKana)">
		<BR>$!tools.getMsg("firstNameKana")
		$!tools.getMsg("lastNameKana")
		</td>
	</tr>
</table>
##</div>

<h3 class="table_title">住所情報</h3>
##<div id="search">
<table border="0" cellspacing="0" cellpadding="0" class="stripe2 mgb30 w840">
	<tr>
		<td class="w190" style="vertical-align:top">郵便番号</td>
		<td><input name="zipCode" type="text" / class="w80" value="$!escape.html($!memberEditForm.zipCode)">
		<BR>$!tools.getMsg("zipCode")
		<font class="txt10or">※半角数字7桁〔-は不要〕</font><font class="txt10">例:1230000</font>
		<BR><font class="txt10">&nbsp;<a href="javascript:OpenSrchWindow(this.form)">住所検索<img src="/em/images/cts_listallow.gif" border="0" align="absmiddle"></a></font>
		</td>
	</tr>
	<tr>
		<td>都道府県</td>
		<td>
		<select name="prefectureId" id="prefectureId" class="w100">
		<option value=""></option>
			#foreach($genreItem in $prefectureList)
				#if($memberEditForm.prefectureId && $genreItem.prefectureId == $memberEditForm.prefectureId)
					<option value="$!genreItem.prefectureId" selected>#he($!genreItem.prefecture)</option>
				#else
					<option value="$!genreItem.prefectureId">#he($!genreItem.prefecture)</option>
				#end
			#end
		</select>
		</td>
	</tr>
	<tr>
		<td>市区町村</td>
		<td><input name="cityName" type="text" / class="w300" value="$!escape.html($!memberEditForm.cityName)"><font class="txt10">例:市川市</font>
		<BR>$!tools.getMsg("cityName")
		</td>
	</tr>
	<tr>
		<td>町名・番地</td>
		<td><input name="areaName" type="text" / class="w300" value="$!escape.html($!memberEditForm.areaName)"><font class="txt10">例:八幡1-1-1</font>
		<BR>$!tools.getMsg("areaName")
		</td>
	</tr>
	<tr>
		<td>アパート・ビル・マンション</td>
		<td><input name="buildingName" type="text" / class="w300" value="$!escape.html($!memberEditForm.buildingName)"><font class="txt10">例:eモニタワー20F 2036号</font>
		<BR>$!tools.getMsg("buildingName")
		</td>
	</tr>
	<tr>
		<td>電話<font class="listpoint">*</font></td>
		<td><input name="telNo" type="text" / class="w150" value="$!escape.html($!memberEditForm.telNo)">
		<BR>$!tools.getMsg("telNo")
		</td>
	</tr>
</table>
##</div>

<h3 class="table_title">属性情報</h3>
##<div id="search">
<table border="0" cellspacing="0" cellpadding="0" class="stripe2 mgb10 w840">
	<tr>
		<td class="w190">性別</td>
		<td>
#if($!memberEditForm.genderCd)
<input type="radio" name="genderCd" value="0" #if($!memberEditForm.genderCd == "0")checked#end>男性&nbsp;&nbsp;
<input type="radio" name="genderCd" value="1" #if($!memberEditForm.genderCd == "1")checked#end>女性&nbsp;&nbsp;
<input type="radio" name="genderCd" value="2" #if($!memberEditForm.genderCd == "2")checked#end>その他&nbsp;&nbsp;
<input type="radio" name="genderCd" value="3" #if($!memberEditForm.genderCd == "3")checked#end>入力しない

#else
<input type="radio" name="genderCd" value="0">男性&nbsp;&nbsp;
<input type="radio" name="genderCd" value="1">女性&nbsp;&nbsp;
<input type="radio" name="genderCd" value="2">その他&nbsp;&nbsp;
<input type="radio" name="genderCd" value="3">入力しない
#end
		</td>
	</tr>
	<tr>
		<td>生年月日</td>
		<td>
<select name="birthdayY" id="birthdayY" class="w58">
<option value=""></option>
	#foreach($yyyy in [1900..$birthYYYY])
		#if($memberEditForm.birthdayY)
			#if($yyyy == $memberEditForm.birthdayY)
				<option value="$!yyyy" selected>#he($!yyyy)</option>
			#else
				<option value="$!yyyy">#he($!yyyy)</option>
			#end
		#else
			<option value="$!yyyy">#he($!yyyy)</option>
		#end
	#end
</select>/
<select name="birthdayM" id="birthdayM" class="w40 mgl10">
<option value=""></option>
	#foreach($mm in [1..12])
		#if($memberEditForm.birthdayM)
			#if($mm == $!memberEditForm.birthdayM)
				<option value="$!mm" selected>#he($!mm)</option>
			#else
				<option value="$!mm">#he($!mm)</option>
			#end
		#else
			<option value="$!mm">#he($!mm)</option>
		#end
	#end
</select>/
<select name="birthdayD" id="birthdayD" class="w40 mgl10">
<option value=""></option>
	#foreach($dd in [1..31])
		#if($memberEditForm.birthdayD)
			#if($dd == $memberEditForm.birthdayD)
				<option value="$!dd" selected>#he($!dd)</option>
			#else
				<option value="$!dd">#he($!dd)</option>
			#end
		#else
			<option value="$!dd">#he($!dd)</option>
		#end
	#end
</select>

<BR>$!tools.getMsg("birthdayY")
		</td>
	</tr>
##	<tr class="gray">
##		<td>退会フラグ</td>
##		<td>&nbsp;&nbsp;退会<input name="withDrawFlg" type="checkbox" / class="mgl10" value="$!memberEditForm.withDrawFlg"  #if($memberEditForm.withDrawFlg != "0") checked #end    ></td>
##	</tr>
	<tr>
		<td>ポイント<font class="listpoint">*</font></td>
		<td><input name="point" type="text" / class="w250" value="$!escape.html($!memberEditForm.point)">
		<BR>$!tools.getMsg("point")
		</td>
	</tr>
	<tr>
		<td style="vertical-align:top" >メモ</td>
		<td>
	 		<textarea name="memo" cols="35"  rows="5" class="w180 mgt5">$!memberEditForm.memo</textarea>
			<BR>$!tools.getMsg("memo")
		</td>
	</tr>
	<tr>
		<td style="text-align:center" colspan="2" class="w600">
			<font color="#FF0000"><B>入力情報の確認を行っていただくため確認画面に進みます</B></font>
		</td>
	</tr>

</table>
<div class="btn_area2" style="width:840px;">
		<button class="button" onclick="send_check(); return false;">入力情報確認</button>
</div>
##</div>
<input type="hidden" name="loginIdBefore" value="$!memberEditForm.loginIdBefore">
<input type="hidden" name="mainPcEmailBefore" value="$!memberEditForm.mainPcEmailBefore">
<input type="hidden" name="subPcEmailBefore" value="$!memberEditForm.subPcEmailBefore">
<input type="hidden" name="memberId" value="$!memberEditForm.memberId">
</form>

</div>
</div>
<div id="contents_bottom">
<img src="/em/images/bg_contents_bottom.jpg" width="1036" height="15" /> </div> </div>
</div>
</div>
</div>

#parse( "/WEB-INF/view/common/footer_admin.vm" )