{action->getSeller assign=seller}
{action->getPrefData assign=prefdatas}
{errorList->getMessages assign=errmsg}
{include file="header.html"}
<script src="./js/prototype.js"></script>
<script src="./js/ajaxzip2.js" charset="UTF-8"></script>
<script>AjaxZip2.JSONDATA = './js/zipdata';</script>

<!--↓コンテンツ-->
<div id="contents">

<div id="pankuzu">
<ul>
<li><a href="index.php">トップ</a></li>
<li class="last">&nbsp;&gt;&nbsp<a href="{$dirName}/?action=customer_mypage">マイページ</a></li>
<li class="last">&nbsp;&gt;&nbsp;出品者情報変更</li>
</ul>
</div><!--End of pankuzu-->


<div id="etc">
<h3>{if $seller->memberCd}出品者情報変更{else}出品者情報登録{/if}</h3>

<form action="{$scriptName}" id="form1" method="POST">
<input type="hidden" name="action" value="customer_mypage_seller_insert_check">
<input type="hidden" name="memberCd" value="{$seller->memberCd}">
<input type="hidden" name="updCnt" value="{$seller->updCnt}">


<div id="buy">

<p>お客様の情報を入力してください。</p>
<p><span class="must">■</span>マークが付いている項目は、必須項目です。</p>

{if $errmsg}
  <ul class="alert">
    {foreach from=$errmsg item=msg}
      <li>{$msg|escape}</li>
    {/foreach}
  </ul>
{/if}
{action->getMemberInfo assign=memberinfo}
<table border="0" cellspacing="0" cellpadding="0" class="entryform">
	<tr>
		<td colspan="3" class="non2">▼あなたのお名前に間違いありませんか？　※名前、ニックネームの変更は「<a href="{$scriptName}?action=customer_mypage_member_insert_form&ba=customer_mypage_seller_insert_form">会員情報変更</a>」からお願いします。</td>
	</tr>
  <tr>
    <th>お名前</th>
    <td align="left" valign="top">{$memberinfo.lastnm|escape} {$memberinfo.firstnm|escape}</td>
   <td class="non2">&nbsp;</td>
  </tr>
  <tr>
    <th>ふりがな</th>
    <td align="left" valign="top">{$memberinfo.lastnmkana|escape} {$memberinfo.firstnmkana|escape}</td>
    <td class="non2">&nbsp;</td>
  </tr>
  <tr>
    <th>ニックネーム</th>
    <td align="left" valign="top">{$memberinfo.nicknm|escape}</td>
    <td class="non2">&nbsp;</td>
  </tr>
<tr>
<td colspan="3" class="non2">▼ご住所 ご自宅の住所を入力してください。</td>
</tr>
<tr>
<th class="must">郵便番号</th>
<td>
 <input type="text" name="post_code_a" size="4" maxlength="3" value="{$seller->post_code_a|escape}">&nbsp;－&nbsp;<input type="text" name="post_code_b" size="5" maxlength="4" value="{$seller->post_code_b|escape}">
<a href="javascript:void(0)" onClick="javascript:AjaxZip2.zip2addr('post_code_a','pref','address1','post_code_b'); return false;">
      <img src="img/btn_address_change.gif" alt="住所検索" width="64" height="20" border="0" align="middle"></a>
</td>
<td class="caution">半角数字　例）999－9999</td>
</tr>
  <tr>
<th class="must">都道府県</th>
    <td>
	   <select name="pref">
	   <option value="">都道府県&nbsp;&nbsp;
	   {foreach from=$prefdatas item=prefdata name=pref}
        <option value="{$prefdata.prefcd}" {if $seller->pref == $prefdata.prefcd}selected{/if}>{$prefdata.prefnm}
       {/foreach}
      </select>
</td>
<td class="caution">&nbsp;</td>
    </tr>
  <tr>
    <th class="must">住所１</th>
    <td><p><input name="address1" type="text" value="{$seller->address1|escape}" size="50"></p>
  		市町村町名、○丁目○番地○号まで入力してください。</td>
	<td class="caution">例）○○市○○町00丁目00番地0号</td>
    </tr>
  <tr>
   <th>住所２</th>
    <td><p><input name="address2" type="text" value="{$seller->address2|escape}" size="50"></p>
			マンション、アパート名、号室を入力してください。</td>
    <td class="caution">例）○○マンション801号室</td>
    </tr>
  <tr>
    <th class="must">電話番号</th>
   <td>
      <input type="text" name="phone_a" size="5" maxlength="5" value="{$seller->phone_a|escape}">&nbsp;－&nbsp;
      <input type="text" name="phone_b" size="4" maxlength="4" value="{$seller->phone_b|escape}">&nbsp;－&nbsp;
      <input type="text" name="phone_c" size="4" maxlength="4" value="{$seller->phone_c|escape}">
   </td>
      <td class="caution">半角数字</td>
    </tr>
{*
  <tr>
    <th>宛先</th>
  	 <td align="left" valign="top"><input type="text" name="destination" value="{$seller->destination}"></td>
      <td class="non2">&nbsp;</td>
  </tr>
*}

<tr>
<td colspan="3" class="non2">▼<strong>入金先の銀行口座</strong>を入力して下さい（弊社より入金させていただく口座です）。</td>
</tr>
<tr>
<th class="must">銀行名</th>
  <td><input type="text" name="receive_bank" value="{$seller->receive_bank|escape}"></td>
  <td class="caution">例）○○銀行、△△信用組合</td>
 </tr>
  <tr>
    <th class="must">支店名</th>
    <td><input type="text" name="receive_branch" value="{$seller->receive_branch|escape}"></td>
    <td class="caution">例） ○○支店、△△出張所</td>
  </tr>
  <tr>
    <th class="must">口座種別</th>
    <td>
      <input type="radio" name="receive_account" value="1" {if $seller->receive_account != "2"}checked{/if}><span class="style1">普通</span>　　　
      <input type="radio" name="receive_account" value="2" {if $seller->receive_account == "2"}checked{/if}><span class="style1">当座</span>
	</td>
	<td class="caution">&nbsp;</td>
  </tr>
  <tr>
    <th class="must">口座番号</th>
    <td><input type="text" name="receive_account_num" value="{$seller->receive_account_num|escape}"></td>
   <td class="caution">&nbsp;</td>
  </tr>
  <tr>
    <th class="must">口座名義</th>
    <td><input type="text" name="receive_account_name" value="{$seller->receive_account_name|escape}"></td>
    <td class="caution">&nbsp;</td>
  </tr>
{if $smarty.const.INPUT_CARD_INFO}
<tr>
<td colspan="3" class="non2">▼<strong>支払先となるクレジットカード情報</strong>を入力して下さい（弊社よりご請求させていただく先です）。</td>
</tr>
  
{*
  <tr>
    <th colspan="5" valign="top" class="style1"><div align="left">
          <input type="radio" name="paymode" value="account" {if $seller->
      paymode != "card"}checked{/if}>口座（入金先と別の時のみ記入）</div></th>
    </tr>
  <tr>
    <th class="account">銀行名</th>
  <td class="caution"><span class="caution">※</span></td>
  <td colspan="2"><input type="text" name="pay_bank" value="{$seller->pay_bank|escape}"></td>
  </tr>
  <tr>
    <th class="account">支店名</th>
  <td class="caution"><span class="caution">※</span></td>
  <td colspan="2"><input type="text" name="pay_branch" value="{$seller->pay_branch|escape}"></td>
  </tr>
  <tr>
    <th class="account">口座</th>
  <td class="caution"><span class="caution">※</span></td>
  <td colspan="2">
      <input type="radio" name="pay_account" value="1" {if $seller->pay_account != "2"}checked{/if}>
      <span class="style1">普通</span>　　　
      <input type="radio" name="pay_account" value="2" {if $seller->pay_account == "2"}checked{/if}>
      <span class="style1">当座</span>
  </td>
  </tr>
  <tr>
    <th class="account">口座番号</th>
  <td class="caution"><span class="caution">※</span></td>
  <td colspan="2"><input type="text" name="pay_account_num" value="{$seller->pay_account_num|escape}"></td>
  </tr>
  <tr>
    <th class="account">口座名義</th>
  <td class="caution"><span class="caution">※</span></td>
  <td colspan="2"><input type="text" name="pay_account_name" value="{$seller->pay_account_name|escape}"></td>
  </tr>
  <tr>
    <th colspan="4" class="account">
      <div align="left">
          <input type="radio" name="paymode" value="card" {if $seller->
      paymode == "card"}checked{/if}>カード </div></th>
  </tr>
*}  
  <tr>
    <th class="must">カード種類</th>
    <td>
      <select name="card_type">
        <option value="1" {if $seller->card_type == 1}selected{/if}>VISA
        <option value="2" {if $seller->card_type == 2}selected{/if}>MASTER
        <option value="3" {if $seller->card_type == 3}selected{/if}>NICOS
        <option value="4" {if $seller->card_type == 4}selected{/if}>JCB
        <option value="5" {if $seller->card_type == 5}selected{/if}>アメックス
      </select>
    </td>
	<td rowspan="5" class="caution"><p>取り扱いカード</p>
	<p><img src="img/visa.gif" alt="VISA" width="80" height="60" />&nbsp;&nbsp;<img src="img/mastercard.gif" alt="master card" width="80" height="60" /></p>
	<p><img src="img/nicos.gif" alt="nicos" width="80" height="60" />&nbsp;&nbsp;<img src="img/jcb.gif" alt="JCB" width="80" height="60" /></p>
	<p><img src="img/amex.gif" alt="amex" width="80" height="60" /></p></td>
  </tr>
  <tr>
    <th class="must">カード番号</th>
    <td><p><input name="card_num" type="text" value="{$seller->card_num|escape}" size="26" maxlength="16"></p>
		半角数字　（例） 1111222233334444</td>
  </tr>
  <tr>
    <th class="must">カード名義 </th>
    <td><input name="card_name" type="text" value="{$seller->card_name|escape}" size="30"></td>
  </tr>
  <tr>
    <th class="must">カード有効期限</th>
  <td>
      <select name="card_limit_y">
        {section name=card_limit_y loop=10}
        <option value={$smarty.section.card_limit_y.index+2007} {if $smarty.section.card_limit_y.index+2007 == $seller->card_limit_y} selected{/if}>{$smarty.section.card_limit_y.index+2007}&nbsp;&nbsp;
        {/section}
      </select>
      <span class="style1">年</span>
      <select name="card_limit_m">
        {section name=card_limit_m loop=12}
        <option value={$smarty.section.card_limit_m.index+1} {if $smarty.section.card_limit_m.index+1 == $seller->card_limit_m} selected{/if}>{$smarty.section.card_limit_m.index+1}&nbsp;&nbsp;
        {/section}
      </select>
      <span class="style1">月</span>
  </td>
  </tr>
  <tr>
    <th>セキュリティコード</th>
     <td><p><input type="text" name="card_sec_code" value="{$seller->card_sec_code|escape}" size="4" maxlength="4"></p>
   		 <p>半角数字　（例）1111<br />
				カード裏面のサイン欄上部に記載されている数字の一番右の3桁（または4桁）の数字を入力して下さい。</p></td>
 </tr>
{/if}
  <tr>
    <td colspan="2" class="non2">▼<strong>出品条件</strong>を入力して下さい。</td>
    <td class="caution">&nbsp;</td>
  </tr>
  
  <!-- 出品者契約用　追加 -->
  <input type="hidden" name="sellerdiv" value="1">
  
  <!--
		  <tr>
		    <th class="account">出品システムの契約区分</th>
		    <td><span class="caution">※</span></td>
		  <td>
		<input type="radio" name="sellerdiv" value="1"{if $seller->sellerdiv == 1 || $seller->sellerdiv eq ""} checked{/if}>小口出品<input type="radio" name="sellerdiv" value=2{if $seller->sellerdiv == 2} checked{/if}>大口出品&nbsp;&nbsp;&nbsp;&nbsp;
		<a href="{$scriptName}?action=help&pageid=keiyakukubun&from=seller" target="_blank">
		<span class="exposition
		">詳しい説明はこちら</span></a>  </td>
		  </tr>
  -->
  
  <tr>
    <th class="must">出品者からのお知らせ</th>
    <td><p><input type="text" name="news" size="60" value="{$seller->news|escape}"></p>
    	<p>全角50文字以内 </p></td>
    <td class="caution">
		<a href="{$scriptName}?action=help&pageid=exhibitinfo&from=seller" target="_blank">
		詳しい説明はこちら</a>  </td>
  </tr>

  <tr>
    <th class="must">出品者送料</th>
    <td><p><input type="text" name="sellersouryou" size="30" value="{$seller->sellersouryou|escape}">&nbsp;円</p>
    </td>
    <td class="caution"></td>
  </tr>

  <tr>
    <th class="must">出品者送料 上限</th>
    <td><p><input type="text" name="sellersouryoumax" size="30" value="{$seller->sellersouryoumax|escape}">&nbsp;円</p>
    </td>
    <td class="caution">送料の上限値です。購入金額が設定値以上になると、送料が無料になります。</td>
  </tr>

<tr>
<td colspan="2" class="non">&nbsp;</td>
<td class="constatation"><p>入力後「入力内容のご確認」<br />へお進みください。</p>
	<div id="submit">
	    <input type="image" src="img/constatation_btn.gif" alt="入力内容のご確認">
	    <input type="hidden" name="memberCd" value="{$conregist->memberCd}">
	</div>
</td>
</tr>
<tr>
<td colspan="2" class="non">&nbsp;</td>
<td class="constatation2"><p>前ページへ戻る</p>
<div id="submit">
	{if $action.ba == "customer"}
	    <input name="dispatch_customer_mypage" type="image" onclick="location.href='{$scriptName|replace:$smarty.const.SSL_URL_ROOT:$smarty.const.URL_ROOT}?action=customer_mypage'; return false;" src="img/back_btn.gif" alt="戻る">
	{elseif $action.ba == "item" and $action.itemcd != ""}
	    <input name="dispatch_itemdetail" type="image" onclick="location.href='{$scriptName|replace:$smarty.const.SSL_URL_ROOT:$smarty.const.URL_ROOT}?action=itemdetail&cd={$action.itemcd}'; return false;" src="img/back_btn.gif" alt="戻る">
	{else}
	    <input name="dispatch_seller_mypage" type="image" onclick="location.href='{$scriptName|replace:$smarty.const.SSL_URL_ROOT:$smarty.const.URL_ROOT}?action=seller_mypage'; return false;" src="img/back_btn.gif" alt="戻る">
	{/if}
	<input type="hidden" name="memberCd" value="{$conregist->memberCd}">
	</div>
</td>
</tr>

</table>
</form>

</div>
<!-- ↑コンテンツ -->


{include file="footer.html"}
