{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>


<!-- ↓エラーメッセージ -->
{errorList->getMessages assign=errmsg}
{if $errmsg}
<div class="erorr">
<ul class="alert">
  {foreach from=$errmsg item=msg}
  <li>{$msg|escape}</li>
  {/foreach}
</ul>
</div>
{/if}
<!-- ↑エラーメッセージ -->

{* 検索条件展開処理 *}
{action->getExtraTag assign=extratag}
{action->getExtraStr assign=extrastr}

<!--↓並び替え -->
{if $action.sort=='exno'}
     {assign var="s_exno" value='-exno'}
{else}
     {assign var="s_exno" value='exno'}
{/if}
{if $action.sort=='title'}
     {assign var="s_title" value='-title'}
{else}
     {assign var="s_title" value='title'}
{/if}
{if $action.sort=='scdcompdate'}
     {assign var="s_scdcompdate" value='-scdcompdate'}
{else}
     {assign var="s_scdcompdate" value='scdcompdate'}
{/if}
{if $action.sort=='status'}
     {assign var="s_status" value='-status'}
{else}
     {assign var="s_status" value='status'}
{/if}
{if $action.sort=='image'}
     {assign var="s_image" value='-image'}
{else}
     {assign var="s_image" value='image'}
{/if}
{if $action.sort=='membercd'}
     {assign var="s_membercd" value='-membercd'}
{else}
     {assign var="s_membercd" value='membercd'}
{/if}
{if $action.sort=='membernm'}
     {assign var="s_membernm" value='-membernm'}
{else}
     {assign var="s_membernm" value='membernm'}
{/if}


<table border="0" cellspacing="0" cellpadding="0" class="border-non">
<tr>
  <td>
<strong>並び替え</strong>&nbsp;&nbsp;
<a href="{$scriptName}?action=admin_usermanage_itemexhibit_list&listsize={$action.listsize}&sort={$s_exno}&{$extrastr}">出品番号</a>&nbsp;&nbsp;
<a href="{$scriptName}?action=admin_usermanage_itemexhibit_list&listsize={$action.listsize}&sort={$s_title}&{$extrastr}">タイトル</a>&nbsp;&nbsp;
{* <a href="{$scriptName}?action=admin_usermanage_itemexhibit_list&listsize={$action.listsize}&sort={$s_scdcompdate}&{$extrastr}">出品期限</a>&nbsp;&nbsp; *}
{* <a href="{$scriptName}?action=admin_usermanage_itemexhibit_list&listsize={$action.listsize}&sort={$s_image}&{$extrastr}">登録画像</a>&nbsp;&nbsp; *}
<a href="{$scriptName}?action=admin_usermanage_itemexhibit_list&listsize={$action.listsize}&sort={$s_membercd}&{$extrastr}">会員コード</a>&nbsp;&nbsp;
<a href="{$scriptName}?action=admin_usermanage_itemexhibit_list&listsize={$action.listsize}&sort={$s_membernm}&{$extrastr}">会員名</a>&nbsp;&nbsp;
  </td>
 </tr>
</table>



<form name="page" action="{$scriptName}" method="GET">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
  <td>
    <SELECT name="listsize">
        <OPTION value="12">表示件数</OPTION>
        <OPTION value="10" {if $action.listsize == 10}SELECTED{/if}>10</OPTION>
        <OPTION value="20" {if $action.listsize == 20}SELECTED{/if}>20</OPTION>
        <OPTION value="50" {if $action.listsize == 50}SELECTED{/if}>50</OPTION>
        <OPTION value="100"{if $action.listsize == 100}SELECTED{/if}>100</OPTION>
    </SELECT>
    <input type="submit" value="表示切替">
    <input type="hidden" name="action" value="admin_usermanage_itemexhibit_list">
    <input type="hidden" name="sort" value="{$action.sort}">
    {$extratag}    
    </td>
  </tr>
</table>
</form>


<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
        {$pager}
        {$action.cnt}件のデータ
    </td>
    <td align="right">
      <form action="{$scriptName}" method="GET">
        <input type="hidden" name="action" value="admin_usermanage_itemexhibit_search">
        <input type="hidden" name="pageID"   value="{$action.pageID|default:1}">
        <input type="hidden" name="sort"     value="{$action.sort}">
        <input type="hidden" name="listsize" value="{$action.Pager_perPage}">
        {$extratag}
        <input type="submit" value="検索条件指定へ">
      </form>
    </td>
  </tr>
</table>


<form action="{$scriptName}" method="GET" name="form1">
<table border="0" cellspacing="0" cellpadding="0" class="hyou">
<tr>
    <th>選択</th>
    <th>出品番号</th>
    <th>タイトル</th>
    {* <th>登録画像</th> *}
    {* <th>出品期限</th> *}
    <th>会員コード</th>
    <th>会員状態</th>
    <th>名前</th>
    <th>詳細</th>
</tr>

{foreach from=$action.data item=stock}
<tr>
    <td><input type="checkbox" name="cd[]" value="{$stock.itemcd}|{$stock.structcd}|{$stock.stockcd}|{$stock.sellercd}"></td>
    <td>{$stock.itemcd}{$stock.structcd}{$stock.stockcd}</td>
    <td>{$stock.itemnm}</td>
    {*<td align="center">{if $stock.generalcd != NULL}○{else}×{/if}</td> *}
    {* <td>{$stock.scdcompdate}</td> *}
    <td>{$stock.sellercd}</td>
    <td>
      {if     $stock.memberstate == 1}登録済み
      {elseif $stock.memberstate == 8}退会
      {elseif $stock.memberstate == 9}停止中
      {else}その他
      {/if}
    </td>
    <td>{$stock.lastnm} {$stock.firstnm}</td>
    <td>
    <button onClick="location.href='{$scriptName}?action=admin_usermanage_itemexhibit_detail&itemcd={$stock.itemcd}&structcd={$stock.structcd}&stockcd={$stock.stockcd}&sellercd={$stock.sellercd}&pageID={$action.pageID|default:1}&sort={$action.sort}&listsize={$action.listsize}&{$extrastr}';return false;">
    詳細</button>
    </td>
</tr>
{/foreach}
</table>

<!-- ↓ページナビ、データ件数 -->
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
        {$pager}
        {$action.cnt}件のデータ
    </td>
  </tr>
</table>
<!-- ↑ページナビ、データ件数 -->


<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="right">
<input type="hidden" name="action" value="admin_usermanage_itemexhibit_confirm">
<input type="submit" 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"}
