{action->getUserlist assign=userlist}
{action->getCondictionPOST assign=cpost}
{action->getCondictionGET assign=cget}
{action->getPager assign=pager}
{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>

<table border="0" cellspacing="0" cellpadding="0" class="border-non">
 <tr>
   <td>
<strong>並び替え</strong>&nbsp;&nbsp;
  <a href="admin.php?action=admin_usermanage_customer_customerlist&sort=membercd&{$cget}">会員コード(降順)</a>&nbsp;&nbsp;
  <a href="admin.php?action=admin_usermanage_customer_customerlist&sort=lastnmkana&{$cget}">名前(昇順)</a>&nbsp;&nbsp;
  <a href="admin.php?action=admin_usermanage_customer_customerlist&sort=mailaddr&{$cget}">E-mail(昇順)</a>
	</td>
  </tr>
</table>


  <form action="{$scriptName}" method="POST">
  {$cpost}
  <input type="hidden" name="sort" value="{$action.sort}">
  <input type="hidden" name="pageID" value="{$action.pageID}">
  <input type="hidden" name="from" value="list">
  
  <table border="0" cellpadding="0" cellspacing="0" class="search-box">
    <tr>
      <td> {$pager} </td>
      <td align="right"><input type="Submit" name="dispatch_admin_usermanage_customer_search" value="検索条件指定へ">
			<input type="button" onclick="location.href='{$scriptName}?action=admin_usermanage_customer_customerlist'" value="解除">
			</td>
    </tr>
  </table>


<!-- ↓リスト -->
<table border="0" cellspacing="0" cellpadding="0" class="hyou">
    <tr>
      <th>チェック</th>
      <th>会員コード</th>
      <th>名前</th>
      <th>E-mail</th>
      <th>会員状態</th>
      <th>購入者登録</th>
      <th>出品者登録</th>
      <th>詳細</th>
    </tr>
    {foreach item=user from=$userlist}
      <tr>
        <td align="center">
          <input type="checkbox" name="code[]" value="{$user.membercd}"></td>
        <td>{$user.membercd}</td>
        <td>{$user.lastnm} {$user.firstnm}</td>
        <td>{$user.mailaddr}</td>
        <td align="center">{if $user.memberstate == 1}登録中{elseif $user.memberstate == 8}退会{elseif $user.memberstate == 9}停止中{/if}</td>
        <td align="center">{if $user.consumercd != NULL}○{else}×{/if}</td>
        <td align="center">{if $user.sellercd != NULL}{if $user.sellerstate == 1}未承認{elseif $user.sellerstate == 2}承認{elseif $user.sellerstate == 3}承認却下{else}&nbsp;{/if}
{else}&nbsp;{/if}</td>
        <td><button onclick="JavaScript:location.href='{$scriptName}?action=admin_usermanage_customer_detail&membercd={$user.membercd}&{$cget}&consumer={$action.consumer}&seller={$action.seller}&pageID={$action.pageID}&sort={$action.sort}&from=customerlist'; return false;">詳細</button></td>
      </tr>
    {foreachelse}
      <tr>
        <td height="30" colspan=8>現在、条件にあうユーザーは登録されていません</td>
      </tr>
    {/foreach}
    
       <tr>
       <td colspan="8">チェックしたものを&nbsp;&nbsp;
		<input type="Submit" name="dispatch_admin_usermanage_customer_confirm" value="利用停止解除にする">
        <input type="Submit" name="dispatch_admin_usermanage_customer_confirm" 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"}
