{action->getCondictionPOST assign=cpost}
{action->getCondictionGET assign=cget}
{action->getMember   assign=member}
{action->getConsumer assign=consumer}
{action->getSeller   assign=seller}
{action->getFrom     assign=from}

{include file="admin/header.html"}
{include file="admin/gnavi.html"}

<div id="container">

{include file="admin/menu/submenu_user.html"}

<!-- ↓段組み メイン側 -->
<div id="main">

<h3>ユーザー情報詳細</h3>

<form action="{$scriptName}" method="POST">
{$cpost}
<input type="hidden" name="from"  value="detail">
<input type="hidden" name="code" value="{$member.membercd}">

<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
{if $member.memberstate == 1}
      <input type="hidden" name="stopmode" value="stop">
      <input type="Submit" name="dispatch_admin_usermanage_customer_confirm" value="利用停止">
{elseif $member.memberstate == 8}
      <span style="font-size:14px; color:#c00; font-weight:bold;">退会済</span>
{else}
      <input type="hidden" name="stopmode" value="unstop">
      <input type="Submit" name="dispatch_admin_usermanage_customer_confirm" value="利用停止解除">
{/if}
{if $seller.sellerstate == 1 || $seller.sellerstate == 3}
      <input type="hidden" name="mode" value="accept">
      <input type="Submit" name="dispatch_admin_usermanage_customer_stateconfirm" value="承認する">
{elseif $seller.sellerstate == 2}
      <input type="hidden" name="mode" value="unaccept">
      <input type="Submit" name="dispatch_admin_usermanage_customer_stateconfirm" value="承認しない">
{/if}
{if $from == "itemexhibit_detail"}
      <input type="hidden" name="itemcd"   value="{$action.itemcd}">
      <input type="hidden" name="structcd" value="{$action.structcd}">
      <input type="hidden" name="stockcd"  value="{$action.stockcd}">
      <input type="hidden" name="sellercd" value="{$action.sellercd}"> 
{/if}
      <input type="Submit" name="dispatch_admin_usermanage_{$from}" value="戻る"></td>
  </tr>
</table>
    
 <table border="0" cellspacing="0" cellpadding="0" class="hyou">
          <tr>
            <td colspan="2" class="hyou-smid"><strong>会員基本情報</strong></td>
</tr>

          <tr>
          {if $member}
              <th width="30%">名前</th><td width="70%">{$member.lastnm|escape}{$member.firstnm|escape}</td>
 </tr>
           <tr>
              <th>E-mail</th><td>{$member.mailaddr|escape}</td>
 </tr>
            <tr>
              <th>ニックネーム</th><td>{$member.nicknm|escape}</td>
            </tr>
            <tr>
              <th>秘密の質問</th><td>{$member.secquestioncd|escape}</td>
            </tr>
            <tr>
              <th>秘密の答え</th><td>{$member.secquestionans|escape}</td>
            </tr>
            <tr>
              <th>誕生日</th><td>{$member.birthdate|escape}</td>
            </tr>
            <tr>
              <th>自己紹介</th><td>{$member.selfintro|escape|nl2br}</td>
            </tr>
            <tr>
              <th>会員状態</th><td>{if $member.memberstate == 1}登録中{elseif $member.memberstate == 8}退会{elseif $member.memberstate == 9}停止中{/if}</td>
            </tr>
            <tr>
              <th>メール区分</th><td>{if $member.maildiv == 0}受け取らない{elseif $member.maildiv == 1}受け取る{/if}</td>
            </tr>
            <tr>
              <th>登録日</th><td>{$member.registdate}</td>
            </tr>
          {else}
            <tr>
              <td colspn="3">現在、会員基本情報は登録されていません</td>
            </tr>
          {/if}
</table>

 <table border="0" cellspacing="0" cellpadding="0" class="hyou">
          <tr>
              <td colspan="2" class="hyou-smid"><strong>購入者情報</strong></td>
</tr>
           
            {if $consumer}
              <tr>
                <th width="30%">郵便番号</th><td width="70%">{$consumer.postalcd|escape}</td>
              </tr>
              <tr>
                <th>都道府県</th><td>{$consumer.prefcd}</td>
              </tr>
              <tr>
                <th>住所１</th><td>{$consumer.addr1|escape}</td>
              </tr>
              <tr>
                <th>住所２</th><td>{$consumer.addr2|escape}</td>
              </tr>
              <tr>
                <th>電話番号１</th><td>{$consumer.telno1|escape}</td>
              </tr>
              <tr>
                <th>電話番号２</th><td>{$consumer.telno2|escape}</td>
              </tr>
              <tr>
                <th>送付先郵便番号</th><td>{$consumer.sendpostalcd|escape}</td>
              </tr>
              <tr>
                <th>送付先都道府県Ｃ</th><td>{$consumer.sendprefcd}</td>
              </tr>
              <tr>
                <th>送付先住所１</th><td>{$consumer.sendaddr1|escape}</td>
              </tr>
              <tr>
                <th>送付先住所２</th><td>{$consumer.sendaddr2|escape}</td>
              </tr>
              <tr>
                <th>送付先電話番号１</th><td>{$consumer.sendtelno1|escape}</td>
              </tr>
              <tr>
                <th>送付先宛先</th><td>{$consumer.addressee|escape}</td>
              </tr>
            {else}
              <tr>
                <td colspan="2">現在、購入者情報は登録されていません</td>
              </tr>
            {/if}
 </table>

 <table border="0" cellspacing="0" cellpadding="0" class="hyou">
            <tr>
              <td colspan="2" class="hyou-smid"><strong>出品者情報</strong></td>
</tr>

            {if $seller}
              <tr>
                <th width="30%">入金先銀行名</th><td width="70%">{$seller.depbanknm|escape}</td>
              </tr>
              <tr>
                <th>入金先支店名</th><td>{$seller.depbranchnm|escape}</td>
              </tr>
              <tr>
                <th>入金先口座</th><td>{if $seller.depaccount == 1}普通{elseif $seller.depaccount == 2}当座{/if}</td>
              </tr>
              <tr>
                <th>入金先口座番号</th><td>{$seller.depaccountno|escape}</td>
              </tr>
              <tr>
                <th>入金先口座名義</th><td>{$seller.depaccountnm|escape}</td>
              </tr>
<!--
              <tr>
                <th>入金先情報</th><td>{$seller.depinfo|escape}</td>
              </tr>
-->
              <tr>
                <th>入金先郵便番号</th><td>{$seller.deppostalcd|escape}</td>
              </tr>
              <tr>
                <th>入金先都道府県Ｃ</th><td>{$seller.depprefcd|escape}</td>
              </tr>
              <tr>
                <th>入金先住所１</th><td>{$seller.depaddr1|escape}</td>
              </tr>
              <tr>
                <th>入金先住所２</th><td>{$seller.depaddr2|escape}</td>
              </tr>
              <tr>
                <th>入金先電話番号１</th><td>{$seller.deptelno1|escape}</td>
              </tr>
              <tr>
                <th>入金先宛名</th><td>{$seller.depaddressee|escape}</td>
              </tr>
<!--
              <tr>
                <th>支払先情報</th><td>{$seller.payinfo|escape}</td>
              </tr>
              <tr>
                <th>支払先銀行名</th><td>{$seller.paybanknm|escape}</td>
              </tr>
              <tr>
                <th>支払先支店名</th><td>{$seller.paybranchnm|escape}</td>
              </tr>
              <tr>
                <th>支払先口座</th><td>{if $seller.payaccount == 1}普通{elseif $seller.payaccount == 2}当座{/if}</td>
              </tr>
              <tr>
                <th>支払先口座番号</th><td>{$seller.payaccountno|escape}</td>
              </tr>
              <tr>
                <th>支払先口座名義</th><td>{$seller.payaccountnm|escape}</td>
              </tr>
-->
<!--
              <tr>
                <th>本人確認用電話番号</th><td>{$seller.identtelno}</td>
              </tr>
-->
<!--
              <tr>
                <th>クレジットカード登録</th><td>{if $seller.creditregist == 1}あり{elseif $seller.creditregist == 2}なし{/if}</td>
              </tr>
              <tr>
                <th>カード種類</th><td>{if $seller.credittype == 1}Visa{elseif $seller.credittype == 2}JCB{elseif $seller.credittype == 3}MasterCard{/if}</td>
              </tr>
              <tr>
                <th>カード名義</th><td>{$seller.creditaccountnm|escape}</td>
              </tr>
              <tr>
                <th>カード番号</h><td>{$seller.creditaccountno|escape}</td>
              </tr>
              <tr>
                <th>カード有効期限</th><td>{$seller.creditexpireyear|escape}年{$seller.creditexpiremonth|escape}月</td>
              </tr>
              <tr>
                <th>セキュリティコード</th><td>{$seller.securitycd|escape}</td>
              </tr>
-->
              <tr>
                <th>出品者区分</th><td>{$seller.sellerdiv|escape}</td>
              </tr>
              <tr>
                <th>月額基本利用料</th><td>{$seller.basicfee|escape}</td>
              </tr>
              <tr>
                <th>出品システム利用料</th><td>{$seller.exsystemfee|escape}</td>
              </tr>
              <tr>
                <th>決済システム利用料</th><td>{$seller.stsystemfee|escape}</td>
              </tr>
              <tr>
                <th>出品者状態</th><td>{if $seller.sellerstate == 1}未承認{elseif $seller.sellerstate == 2}承認{elseif $seller.sellerstate == 3}承認却下{/if}</td>
              </tr>
              <tr>
                <th>出品機能利用停止</th><td>{if $seller.itemexhibitstop=="t"}停止中{else}解除中{/if}</td>
              </tr>
              <tr>
                <th>お知らせ</th><td>{$seller.news|escape|nl2br}</td>
              </tr>
              <tr>
                <th>プロフィール</th><td>{$seller.profile|escape}</td>
              </tr>
            {else}
              <tr>
                <td colspan="2">現在、出品者情報は登録されていません</td>
              </tr>
            {/if}
</table>

<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
{if $member.memberstate == 1}
      <input type="hidden" name="stopmode" value="stop">
      <input type="Submit" name="dispatch_admin_usermanage_customer_confirm" value="利用停止">
{elseif $member.memberstate == 8}
      <span style="font-size:14px; color:#c00; font-weight:bold;">退会済</span>
{else}
      <input type="hidden" name="stopmode" value="unstop">
      <input type="Submit" name="dispatch_admin_usermanage_customer_confirm" value="利用停止解除">
{/if}
{if $seller.sellerstate == 1 || $seller.sellerstate == 3}
      <input type="hidden" name="mode" value="accept">
      <input type="Submit" name="dispatch_admin_usermanage_customer_stateconfirm" value="承認する">
{elseif $seller.sellerstate == 2}
      <input type="hidden" name="mode" value="unaccept">
      <input type="Submit" name="dispatch_admin_usermanage_customer_stateconfirm" value="承認しない">
{/if}
{if $from == "itemexhibit_detail"}
      <input type="hidden" name="itemcd"   value="{$action.itemcd}">
      <input type="hidden" name="structcd" value="{$action.structcd}">
      <input type="hidden" name="stockcd"  value="{$action.stockcd}">
      <input type="hidden" name="sellercd" value="{$action.sellercd}"> 
{/if}
      <input type="Submit" name="dispatch_admin_usermanage_{$from}" value="戻る"></td>
  </tr>
</table>
    
</form>

<div class="pagetop" title="ページトップへ"><a href="#top">ページトップへ</a></div>

</div>
<!--End of main-->

<div class="cr"></div>
</div>
<!--End of container-->

{include file="admin/footer.html"}
