{action->getList assign=vallist}
{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="{$scriptName}?action=admin_usermanage_valuation_list">評価（登録順）</a>&nbsp;&nbsp;
  <a href="{$scriptName}?action=admin_usermanage_valuation_list&key=valup">評価点（昇順）</a>&nbsp;&nbsp;
  <a href="{$scriptName}?action=admin_usermanage_valuation_list&key=valdown">評価点（降順）</a>&nbsp;&nbsp;
  <a href="{$scriptName}?action=admin_usermanage_valuation_list&key=date">登録日順</a>&nbsp;&nbsp;
  <a href="{$scriptName}?action=admin_usermanage_valuation_list&key=consumer">商品名（登録順）</a>
 </td>
</tr>
</table>

 <table border="0" cellspacing="0" cellpadding="0" class="hyou">
     {foreach from=$vallist item=val name=vals}
       {if $smarty.foreach.vals.first}
	   <tr>
	         <th>No.</th>
	         <th>日付</th>
	         <th>評価点</th>
	         <th>コメント</th>
	         <th>評価者</th>
	         <th>出品者</th>
	         <th>削除</th>
	       </tr>
	   {/if}
         <tr>
           <td>{$smarty.foreach.vals.iteration}</td>
           <td>{$val.adddate|date_format:"%Y/%m/%d"}</td>
           <td>{$val.valuation}</td>
           <td>{$val.comment|escape|nl2br}</td>
           <td><a href="{$scriptName}?action=admin_usermanage_customer_detail&membercd={$val.consumermembercd}&from=valuation">{$val.consumernm}</a></td>
{if $val.membernm eq ""}
           <td>ONE-DEPO</td>
{else}
           <td><a href="{$scriptName}?action=admin_usermanage_customer_detail&membercd={$val.membercd}&from=valuation">{$val.membernm}</a></td>
{/if}
           <td>
             <button onclick="JavaScript:location.href='{$scriptName}?action=admin_usermanage_valuation_confirm&cd={$val.orderno}'">削除</button>
           </td>
         </tr>
       {foreachelse}
         <tr>
           <td colspan=6><div align="center">現在、評価情報はありません</div></td>
         </tr>             
       {if $smarty.foreach.vals.last}
	       </table>
       {/if}
     {/foreach}
 </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"}
