{action->getTaglist assign=taglist}
{action->getFrom    assign=from}
{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="search-box">
 <tr>
   <td>
	{if $action.sort=='date'}
	     {assign var="s_date" value='-date'}
	{else}
	     {assign var="s_date" value='date'}
	{/if}
	{if $action.sort=='title'}
	     {assign var="s_title" value='-title'}
	{else}
	     {assign var="s_title" value='title'}
	{/if}
	{if $action.sort=='releasediv'}
	     {assign var="s_releasediv" value='-releasediv'}
	{else}
	     {assign var="s_releasediv" value='releasediv'}
	{/if}

  <form method="get" action="">
    <input type="hidden" name="key" value="{$action.key}">
    <input type="text" name="srcword" value="{$action.srcword}" size="25">&nbsp;
    <input type="submit" name="dispatch_admin_usermanage_itemattribute_taglist" value="検索">&nbsp;
    <select name="srcdispnum">
      <option value="12">表示件数</option>
      {foreach from=$action.srcdispnumlist item=srcdisp}
        <option value="{$srcdisp}" {if $srcdisp==$action.srcdispnum} selected{/if}>{$srcdisp}</option>
      {/foreach}
    </select>
  </form>
    </td>
  </tr>
</table>
<!-- ↑検索,並び替え -->

<table border="0" cellspacing="0" cellpadding="0" class="border-non">
 <tr>
   <td>
<strong>並び替え</strong>&nbsp;&nbsp;
  <a href="{$scriptName}?action=admin_usermanage_itemattribute_taglist&key=tag&srcdispnum={$action.srcdispnum}&srcword={$action.srcword}">タグ（登録順）</a>&nbsp;&nbsp;
  <a href="{$scriptName}?action=admin_usermanage_itemattribute_taglist&key=name&srcdispnum={$action.srcdispnum}&srcword={$action.srcword}">タグ（名前順）</a>&nbsp;&nbsp;
  <a href="{$scriptName}?action=admin_usermanage_itemattribute_taglist&key=date&srcdispnum={$action.srcdispnum}&srcword={$action.srcword}">登録日順</a>&nbsp;&nbsp;
  <a href="{$scriptName}?action=admin_usermanage_itemattribute_taglist&key=item&srcdispnum={$action.srcdispnum}&srcword={$action.srcword}">商品名（登録順）</a>&nbsp;&nbsp;
  <a href="{$scriptName}?action=admin_usermanage_itemattribute_taglist&key=user&srcdispnum={$action.srcdispnum}&srcword={$action.srcword}">名前（登録順）</a>
   </td>
 </tr>
</table>

<!-- ↓ページナビ、データ件数、追加ボタン（上）07/05/14 tominaga add-->
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>{$pager}
          {$action.cnt}件のデータ
    </td>
  </tr>
</table>
<!-- ↑ページナビ、データ件数、追加ボタン（上） -->

 <table border="0" cellspacing="0" cellpadding="0" class="hyou">
     {foreach from=$taglist item=tag name=tags}
       {if $smarty.foreach.tags.first}
	   <tr>
	         <th>No.</th>
	         <th>登録日付</th>
	         <th>タグ</th>
	         <th>商品名</th>
	         <th>名前</th>
	         <th>操作</th>
	    </tr>
	    {/if}
          <tr>
            <td>{$tag.line|escape}</td>
            <td>{$tag.adddate|escape}</td>
            <td>{$tag.tagnm|escape}</td>
            <td>{$tag.itemnm|escape}</td>
            <td><a href="{$scriptName}?action=admin_usermanage_customer_detail&membercd={$tag.mcd|escape}" target="_blank">{$tag.membernm|escape}</a></td>
            <td><button onclick="JavaScript:location.href='{$scriptName}?action=admin_usermanage_itemattribute_confirm&cd={$tag.tagcd|escape}&listname=t_tag&from={$from}'">削除</button></td>
          </tr>
       {foreachelse}
           <tr>
             <td colspan=6>現在、登録されているタグはありません</td>
           </tr>             
       {if $smarty.foreach.tags.last}
	       </table>
	   {/if}
     {/foreach}
 </table>

<!-- ↓ページナビ、データ件数、追加ボタン（下）07/05/14 tominaga add -->
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>{$pager}
          {$action.cnt}件のデータ</td>
  </tr>
</table>
<!-- ↑ページナビ、データ件数、追加ボタン（下） -->


<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"}
