{action->getReviewlist assign=reviewlist}
{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>



  <form method="get" action="">
<table border="0" cellspacing="0" cellpadding="0" class="search-box">
 <tr>
  <td>
    <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_reviewlist" 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>
   </td>
  </tr>
</table>
  </form>
<!-- ↑検索,並び替え -->

<!--↓並び替え用メニュー -->
<table border="0" cellspacing="0" cellpadding="0" class="border-non">
 <tr>
  <td>
<strong>並び替え</strong>&nbsp;&nbsp;
  <a href="{$scriptName}?action=admin_usermanage_itemattribute_reviewlist&key=review&srcdispnum={$action.srcdispnum}&srcword={$action.srcword}">レビュー（登録順）</a>&nbsp;&nbsp;
  <a href="{$scriptName}?action=admin_usermanage_itemattribute_reviewlist&key=rateup&srcdispnum={$action.srcdispnum}&srcword={$action.srcword}">ランク（昇順）</a>&nbsp;&nbsp;
  <a href="{$scriptName}?action=admin_usermanage_itemattribute_reviewlist&key=ratedown&srcdispnum={$action.srcdispnum}&srcword={$action.srcword}">ランク（降順）</a>&nbsp;&nbsp;
  <a href="{$scriptName}?action=admin_usermanage_itemattribute_reviewlist&key=date&srcdispnum={$action.srcdispnum}&srcword={$action.srcword}">登録日順</a>&nbsp;&nbsp;
  <a href="{$scriptName}?action=admin_usermanage_itemattribute_reviewlist&key=item&srcdispnum={$action.srcdispnum}&srcword={$action.srcword}">商品名（登録順）</a>&nbsp;&nbsp;
  <a href="{$scriptName}?action=admin_usermanage_itemattribute_reviewlist&key=user&srcdispnum={$action.srcdispnum}&srcword={$action.srcword}">名前（登録順）</a>
   </td>
  </tr>
</table>

<!-- ↓ページナビ、データ件数 -->
<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=$reviewlist item=rev name=revs}
       {if $smarty.foreach.revs.first}
	   <tr>
	         <th>No.</th>
	         <th>登録日付</th>
	         <th>レビュー</th>
	         <th>ランク</th>
	         <th>商品名</th>
	         <th>名前</th>
	         <th>削除</th>
	      </tr>
	   {/if}
	       <tr>
	         <td>{$rev.line}</td>
	         <td>{$rev.adddate}</td>
	         <td>
	        {$rev.comment|escape|nl2br}
	        </td>
	         <td>{$rev.rank}</td>
	         <td>{$rev.itemnm|escape}</td>
	         <td><a href="{$scriptName}?action=admin_usermanage_customer_detail&membercd={$rev.mcd}" target="_blank">{$rev.membernm|escape}</a></td>
	         <td>
	           <button onclick="JavaScript:location.href='{$scriptName}?action=admin_usermanage_itemattribute_confirm&cd={$rev.revcd}&listname=t_review&from={$from}'">削除</button></td>
	       </tr>
	     {foreachelse}
           <tr>
             <td colspan=7>現在、登録されているレビューはありません</td>
           </tr>             
	     {if $smarty.foreach.revs.last}
		     </table>
		 {/if}
	   {/foreach}
</table>

	

<!-- ↓ページナビ、データ件数 -->
<table class="navi_lower" 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"}
