#set($title = "会員検索")
#set($menukubun = "1")
#parse( "/WEB-INF/view/common/header_admin.vm" )
<SCRIPT language="JavaScript">
     <!--
     sent = false;
     function send_check(){
		document.mainForm.submit();
		return false;
     }

function clear1(){
    form=document.forms[0];
    formClear(document.forms[0]);
}

function formClear(form_obj){
    for (i = 0; i < form_obj.elements.length;i++ ) {
        obj =form_obj.elements[i];
        if (obj.type == "checkbox" || obj.type == "radio") {
            obj.checked=false;
        }else if (obj.type == "text" || obj.type == "textarea") {
            obj.value="";
        }else if (obj.type == "select-one") {
            obj.selectedIndex=-1;
        }
    }
}
     // -->
</SCRIPT>
<script language="javascript" type="text/javascript" charset="utf-8">
<!--
	//開始日
	$(function() {
	  $('#fromDay').datepick({showTrigger: '#calFromDate'
	});
	});

	//終了日
	$(function() {
	  $('#toDay').datepick({showTrigger: '#calToDate'});
	});
	// -->
</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">
#set($member-url = $tools.getSecureUrl('/admin/member/memberSearch/memberSearchResult/'))
<form name="mainForm" action="$!member-url" method="post">

<div id="search">
##<div class="clearfix">
<table border="0" cellspacing="5" cellpadding="0" class="stripe3 w790">
	<tr class="gray">
		<td class="w100">$tools.getMsgs()<br></td>
	</tr>
</table>
<table border="0" cellspacing="5" cellpadding="0" class="stripe3 w790">
	<tr class="gray">
		<td class="w100">会員ID</td>
		<td><input name="memberId" type="text" class="w180 mgl10" value="$!escape.html($!memberSearchForm.memberId)">&nbsp;と一致</td>
		<td  class="w110">ログインID</td>
		<td><input name="loginId" type="text" class="w180 mgl10" value="$!escape.html($!memberSearchForm.loginId)">&nbsp;を含む</td>
	</tr>
	<tr>
		<td>氏</td>
		<td><input name="firstName" type="text" class="w180 mgl10" value="$!escape.html($!memberSearchForm.firstName)">&nbsp;を含む</td>
		<td>名</td>
		<td><input name="lastName" type="text" class="w180 mgl10" value="$!escape.html($!memberSearchForm.lastName)">&nbsp;を含む</td>
	</tr>
	<tr>
		<td class="w100">氏(カナ)</td>
		<td><input name="firstNameKana" type="text" class="w180 mgl10" value="$!escape.html($!memberSearchForm.firstNameKana)">&nbsp;を含む</td>
		<td  class="w100">名(カナ)</td>
		<td><input name="lastNameKana" type="text" class="w180 mgl10" value="$!escape.html($!memberSearchForm.lastNameKana)">&nbsp;を含む</td>
	</tr>
	<tr>
		<td>PCメールアドレス</td>
		<td><input name="pcEmail" type="text" class="w180 mgl10" value="$!escape.html($!memberSearchForm.pcEmail)">&nbsp;を含む</td>
		<td>携帯メールアドレス</td>
		<td><input name="mbEmail" type="text" class="w180 mgl10" value="$!escape.html($!memberSearchForm.mbEmail)">&nbsp;を含む</td>
	</tr>
	<tr>
		<td class="w100">電話</td>
		<td><input name="telNo" type="text" class="w180 mgl10" value="$!escape.html($!memberSearchForm.telNo)">&nbsp;を含む</td>
		<td  class="w100">性別$!memberSearchForm.genderCd</td>
		<td>
			<select name="genderCd" id="genderCd"  class="w100 mgl10">
				<option value=""></option>
				<option value="0" #if ( "$!{memberSearchForm.genderCd}" == "0" ) selected #end>男</option>
				<option value="1" #if ( "$!{memberSearchForm.genderCd}" == "1" ) selected #end>女</option>
			</select>&nbsp;と一致
		</td>
	</tr>
	<tr>
		<td>年代</td>
		<td>
			<select name="age" id="age"  class="w100 mgl10">
				<option value=""></option>
				<option value="10" #if ( "$!{memberSearchForm.age}" == "10" ) selected #end>10代</option>
				<option value="20" #if ( "$!{memberSearchForm.age}" == "20" ) selected #end>20代</option>
				<option value="30" #if ( "$!{memberSearchForm.age}" == "30" ) selected #end>30代</option>
				<option value="40" #if ( "$!{memberSearchForm.age}" == "40" ) selected #end>40代</option>
				<option value="50" #if ( "$!{memberSearchForm.age}" == "50" ) selected #end>50代</option>
				<option value="60" #if ( "$!{memberSearchForm.age}" == "60" ) selected #end>60代</option>
				<option value="70" #if ( "$!{memberSearchForm.age}" == "70" ) selected #end>70代</option>
				<option value="80" #if ( "$!{memberSearchForm.age}" == "80" ) selected #end>80代</option>
				<option value="90" #if ( "$!{memberSearchForm.age}" == "90" ) selected #end>90代</option>
				<option value="100" #if ( "$!{memberSearchForm.age}" == "100" ) selected #end>100代</option>
			</select>
			&nbsp;~
			<select name="age1" id="age1"  class="w100">
				<option value=""></option>
				<option value="10" #if ( "$!{memberSearchForm.age1}" == "10" ) selected #end>10代</option>
				<option value="20" #if ( "$!{memberSearchForm.age1}" == "20" ) selected #end>20代</option>
				<option value="30" #if ( "$!{memberSearchForm.age1}" == "30" ) selected #end>30代</option>
				<option value="40" #if ( "$!{memberSearchForm.age1}" == "40" ) selected #end>40代</option>
				<option value="50" #if ( "$!{memberSearchForm.age1}" == "50" ) selected #end>50代</option>
				<option value="60" #if ( "$!{memberSearchForm.age1}" == "60" ) selected #end>60代</option>
				<option value="70" #if ( "$!{memberSearchForm.age1}" == "70" ) selected #end>70代</option>
				<option value="80" #if ( "$!{memberSearchForm.age1}" == "80" ) selected #end>80代</option>
				<option value="90" #if ( "$!{memberSearchForm.age1}" == "90" ) selected #end>90代</option>
				<option value="100" #if ( "$!{memberSearchForm.age1}" == "100" ) selected #end>100代</option>
			</select>
		</td>
		<td class="w100">ポイント</td>
		<td><input name="point" type="text" class="w180 mgl10" value="$!escape.html($!memberSearchForm.point)">&nbsp;以上</td>
	</tr>
	<tr>
		<td  class="w100">郵便番号</td>
		<td><input name="zipCode" type="text" maxlength="7" class="w100 mgl10"  value="$!escape.html($!memberSearchForm.zipCode)">&nbsp;~
		<input name="zipCode1" type="text" maxlength="7" class="w100"  value="$!escape.html($!memberSearchForm.zipCode1)"></td>
		<td class="w100">都道府県</td>
		<td>
<select name="prefectureId" id="prefectureId"  class="w100 mgl10">
<option value=""></option>
	#foreach($genreItem in $prefectureList)
		#if($memberSearchForm.prefectureId && $genreItem.prefectureId == $memberSearchForm.prefectureId)
			<option value="$!genreItem.prefectureId" selected>#he($!genreItem.prefecture)</option>
		#else
			<option value="$!genreItem.prefectureId">#he($!genreItem.prefecture)</option>
		#end
	#end
</select>
			&nbsp;と一致
		</td>
	</tr>
	<tr>
		<td>市区町村</td>
		<td><input name="cityName" type="text" class="w180 mgl10" value="$!escape.html($!memberSearchForm.cityName)">&nbsp;を含む</td>
		<td>町名・番地</td>
		<td><input name="areaName" type="text" class="w180 mgl10" value="$!escape.html($!memberSearchForm.areaName)">&nbsp;を含む</td>
	</tr>
	<tr>
		<td  class="w100">建物名</td>
		<td><input name="buildingName" type="text" class="w180 mgl10" value="$!escape.html($!memberSearchForm.buildingName)">&nbsp;を含む</td>
	</tr>
	<tr>
		<td>生年月日</td>
		<td class="listcts" colspan="3">
<select name="birthdayY" id="birthdayY" class="w58 mgl10">
<option value=""></option>
	#foreach($yyyy in [1900..$birthYYYY])
		#if($memberSearchForm.birthdayY)
			#if($yyyy == $memberSearchForm.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">
<option value=""></option>
	#foreach($mm in [1..12])
		#if($memberSearchForm.birthdayM)
			#if($mm == $memberSearchForm.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">
<option value=""></option>
	#foreach($dd in [1..31])
		#if($memberSearchForm.birthdayD)
			#if($dd == $memberSearchForm.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>
			&nbsp;~
<select name="birthdayY1" id="birthdayY1" class="w58 mgl5">
<option value=""></option>
	#foreach($yyyy in [1900..$birthYYYY])
		#if($memberSearchForm.birthdayY1)
			#if($yyyy == $memberSearchForm.birthdayY1)
				<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="birthdayM1" id="birthdayM1" class="w40">
<option value=""></option>
	#foreach($mm in [1..12])
		#if($memberSearchForm.birthdayM1)
			#if($mm == $memberSearchForm.birthdayM1)
				<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="birthdayD1" id="birthdayD1" class="w40">
<option value=""></option>
	#foreach($dd in [1..31])
		#if($memberSearchForm.birthdayD1)
			#if($dd == $memberSearchForm.birthdayD1)
				<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>
		</td>
	</tr>
	<tr>
		<td>会員登録日</td>
		<td colspan="3">
		<input name="fromDay" id="fromDay" type="text" / class="w100 mgl10" value="$!escape.html($!memberSearchForm.fromDay)">
		<div style="display: none;"><img id="calFromDate" src="/em/images/icon_cal.gif" style="padding-left:5px;padding-right:5px; vertical-align: middle;"></div>
		~
		<input name="toDay" id="toDay" type="text" / class="w100 mgl5" value="$!escape.html($!memberSearchForm.toDay)">
		<div style="display: none;"><img id="calToDate" src="/em/images/icon_cal.gif" style="padding-left:5px;padding-right:5px; vertical-align: middle;"></div>
		</td>

	</tr>

	<tr>
		<td style="vertical-align:top" >メモ</td>
		<td><div>
	 		<textarea id="textarea2" name="memo" cols="35" rows="3" class="w180 mgl10 mgt5">$!memberSearchForm.memo</textarea>&nbsp;を含む
	 		</div>
		</td>
		<td></td>
		<td></td>
	</tr>
	<tr>
		<td class="w100">退会フラグ</td>
		<td colspan="3">&nbsp;&nbsp;

#if($!memberSearchForm.withDrawFlg)
<input type="radio" name="withDrawFlg" value="0" #if($!memberSearchForm.withDrawFlg == "0")checked#end>退会者は含まない&nbsp;&nbsp;
<input type="radio" name="withDrawFlg" value="1" #if($!memberSearchForm.withDrawFlg == "1")checked#end>退会者も含む&nbsp;&nbsp;
<input type="radio" name="withDrawFlg" value="2" #if($!memberSearchForm.withDrawFlg == "2")checked#end>退会者のみ
#else
<input type="radio" name="withDrawFlg" value="0" checked>退会者は含まない&nbsp;&nbsp;
<input type="radio" name="withDrawFlg" value="1">退会者も含む&nbsp;&nbsp;
<input type="radio" name="withDrawFlg" value="2">退会者のみ
#end
		</td>
	</tr>
	<tr>
	<td align="center" colspan="4"><br>
	##<input type="button" class="button" value="クリア" onClick="clear1();" />
		##<a href="#" onclick="send_check();"><img src="/em/images/enq_01_btn_03_off.jpg" width="100" height="35" alt="検索" /></a>
		<button class="button" onclick="send_check(); return false;">検索</button>
	</td>
	</tr>
</table>
##</div>
</div>

</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" )