{include file="header.html"}

{auth->checkAuth assign=check}
{if $check}
{auth->getAuthData name=membercd assign=membercd}
{header->getHeaderData membercd=$membercd assign=headerdata}
{else}
{header->getHeaderData assign=headerdata}
{/if}

<div id="contents">

<div id="pankuzu">
  <ul>
    <li><a href="{$dirName}/index.php">トップ</a></li>
    <li>&nbsp;&gt;&nbsp;<a href="{$smarty.const.URL_ROOT}{$dirName}/?action=customer_mypage">マイページ</a></li>
    <li class="last">&nbsp;&gt;&nbsp;評価の入力</li>
  </ul>
</div>
<!--End of pankuzu-->

<div id="etc">
  <h3>評価の入力</h3>

  <form action="{$scriptName}" method="POST">
  <input type="hidden" name="action" value="customer_itembuy_valuation_check">
  <input type="hidden" name="mode"   value="{$action.mode}">
  <input type="hidden" name="page"   value="{$action.page}">
  <input type="hidden" name="no"     value="{$action.no}">


  <table class="entryform" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <th colspan="4">注文情報</th>
    </tr>

    <tr>
      <th>店舗名：</th>
      <td>{if $action.sellername=="onedepo"}{$headerdata.systeminfo.shopnm}{else}{$action.sellername}{/if}</td>

      <th>評価する</th>
      <td>
        <select name="rank">
          <option value=5 {if $action.rank == 5 || $action.rank == ""} selected{/if}>★★★★★
          <option value=4 {if $action.rank == 4} selected{/if}>★★★★☆
          <option value=3 {if $action.rank == 3} selected{/if}>★★★☆☆
          <option value=2 {if $action.rank == 2} selected{/if}>★★☆☆☆
          <option value=1 {if $action.rank == 1} selected{/if}>★☆☆☆☆
        </select>
      </td>
    </tr>
    <tr>
      <th>注文番号：</th>
      <td>{$action.no}</td>
      <th rowspan="2">コメント</th>
      <td rowspan="2"><textarea name="comment" cols="35" rows="5">{$action.comment}</textarea></td>
    </tr>
    <tr>
      <th>注文日：</th>
      <td>{$action.orderdate|nl2br|date_format:"%Y/%m/%d"}</td>
    </tr>

    <tr>
      <td colspan="4" class="constatation">
        <p><input type="image" src="img/constatation_btn.gif" value="確認"></p>
        <p><input type="image" src="img/back_btn.gif" onclick="location.href='{$scriptName}?action=customer_itembuy_order_list&mode={$action.mode}&page={$action.page}';return false;" value="戻る"></p>
      </td>
    </tr>

    <tr>
      <td colspan="4">&nbsp;</td>
    </tr>

    <tr>
      <th colspan="4">購入商品情報</th>
    </tr>
    <tr>
{foreach from=$action.ordertitles item=title name=list}
{if $smarty.foreach.list.iteration % 4 == 0}
    </tr>
    <tr>
{/if}
      <td>
        <p><a href="img.php?c={$title.itemcd}&s=L&d=1" target="_blank" title="{$title.itemnm}"><img src="img.php?c={$title.itemcd}&s=S&d=1" width="147" border="0"></a></p>
        <p>{$title.itemnm}</p>
      </td>
{/foreach}
    </tr>
  </table>

  </form>

</div>
</div>


{include file="footer.html"}

