<?php include_once( "../../../../spider.inc.php" ); ?>
{charset:UTF-8}
{template:admin_default.tpl}
{module:member.member.bank.Form}
{preset:page_title MEMBER_PERSONAL_LABEL . '管理 > ' . member.member.memberObject->'view_name' . 'さんの振込先銀行口座'}

	<div class="panc">
		<a href="../../../">管理パネルトップ</a>
		&gt; <a href="../../">{write:MEMBER_PERSONAL_LABEL}情報一覧</a>
		{if:!is_null(member.member.memberObject) && strlen(member.member.memberObject->'member_number')>0}
		&gt; 銀行口座設定
		{/if}
	</div>

	<h1>
		{write:MEMBER_PERSONAL_LABEL}管理
		{if:!is_null(member.member.memberObject) && strlen(member.member.memberObject->'member_number')>0}
		&gt; {write:member.member.memberObject->'view_name'}さんの銀行口座設定
		{/if}
	</h1>
	
{if:IS_ERROR}

	<ul class="error">
	{foreach:errors error}
		<li>{write:error}</li>
	{/foreach}
	</ul>
	
{else}

	<form name="mform" action="./confirm.php?mi={write:member.member.memberObject->'member_id'}&amp;aci={write:member.member.bank.memberBankAccoutObject->'account_id'}" method="post" onsubmit="document.mform.zip_code.value=document.mform.zip_code_pre.value+'-'+document.mform.zip_code_pst.value;">
	<table class="detail" style="width:96%;margin:0 auto;">
	<tbody>
	<tr>
		<th style="width:12em;">金融機関コード</th>
		<td>
			<input type="text" name="bank_code" size="10" value="{write:member.member.bank.memberBankAccoutObject->'bank_code'}" style="ime-mode:inactive;" />
		</td>
	</tr>
	<tr>
		<th style="width:12em;">金融機関名</th>
		<td>
			<input type="text" name="bank_name" size="40" value="{write:member.member.bank.memberBankAccoutObject->'bank_name'}" style="ime-mode:active;" />
		</td>
	</tr>
	<tr>
		<th style="width:12em;">金融機関名フリガナ</th>
		<td>
			<input type="text" name="bank_kana" size="40" value="{write:member.member.bank.memberBankAccoutObject->'bank_kana'}" style="ime-mode:active;" />
		</td>
	</tr>
	<tr>
		<th style="width:12em;">支店コード</th>
		<td>
			<input type="text" name="bank_branch_code" size="40" value="{write:member.member.bank.memberBankAccoutObject->'bank_branch_code'}" style="ime-mode:inactive;" />
		</td>
	</tr>
	<tr>
		<th style="width:12em;">支店名</th>
		<td>
			<input type="text" name="bank_branch_name" size="40" value="{write:member.member.bank.memberBankAccoutObject->'bank_branch_name'}" style="ime-mode:active;" />
		</td>
	</tr>
	<tr>
		<th style="width:12em;">支店名フリガナ</th>
		<td>
			<input type="text" name="bank_branch_kana" size="40" value="{write:member.member.bank.memberBankAccoutObject->'bank_branch_kana'}" style="ime-mode:active;" />
		</td>
	</tr>
	<tr>
		<th style="width:12em;">口座種別</th>
		<td>
			<input type="radio" name="bank_account_type" value="0"
				{if:member.member.bank.memberBankAccoutObject->'bank_account_type'=='0'} checked{/if}
				/> 普通口座
			<input type="radio" name="bank_account_type" value="10"
				{if:member.member.bank.memberBankAccoutObject->'bank_account_type'=='10'} checked{/if}
				/> 当座預金
		</td>
	</tr>
	<tr>
		<th style="width:12em;">口座番号</th>
		<td>
			<input type="text" name="bank_account_code" size="40" value="{write:member.member.bank.memberBankAccoutObject->'bank_account_code'}" style="ime-mode:inactive;" />
		</td>
	</tr>
	<tr>
		<th style="width:12em;">口座名義</th>
		<td>
			<input type="text" name="bank_account_name" size="40" value="{write:member.member.bank.memberBankAccoutObject->'bank_account_name'}" style="ime-mode:active;" />
		</td>
	</tr>
	<tr>
		<th style="width:12em;">口座名義フリガナ</th>
		<td>
			<input type="text" name="bank_account_kana" size="40" value="{write:member.member.bank.memberBankAccoutObject->'bank_account_kana'}" style="ime-mode:active;" />
		</td>
	</tr>
	</tbody>
	</table>
	
	<p style="text-align:center;">
		<input type="submit" value="{if:strlen(member.member.bank.memberBankAccoutObject->'account_number')==0}登録{else}編集{/if}する"
		/><br />
	</p>
	</form>

{/if}
	<hr style="width:96%;margin:0 auto;margin-top:1em;" />
	<div style="width:96%;margin:0 auto;text-align:right;">
		{if:!is_null(member.member.memberObject) && strlen(member.member.memberObject->'member_number')>0}
		{write:member.member.memberObject->'view_name'}さんの
		&nbsp;&nbsp;
		&gt;&gt; <a href="../detail.php?mi={write:member.member.memberObject->'member_id'}">詳細情報</a>
		&nbsp;
		&gt;&gt; <a href="../../history/point.php?mi={write:member.member.memberObject->'member_id'}">ポイント履歴</a>
		&nbsp;
		&gt;&gt; <a href="../../history/login.php?mi={write:member.member.memberObject->'member_id'}">ログイン履歴</a>
		&nbsp;
		&gt;&gt; <a href="../../history/correspond.php?mi={write:member.member.memberObject->'member_id'}">対応履歴</a>
		<br />
		&gt;&gt; <a href="../form.php?mi={write:member.member.memberObject->'member_id'}">情報編集</a>
		&nbsp;
		&gt;&gt; <a href="../reject/form.php?mi={write:member.member.memberObject->'member_id'}">メール拒否設定</a>
		<br /><br />
		{/if}
		&gt;&gt; <a href="../../">{write:MEMBER_PERSONAL_LABEL}一覧へ戻る</a>
	</div>