{action->getDetail  assign=detail}
{action->getMode    assign=mode}
{action->getRank    assign=rank}
{action->getComment assign=comment}
{include file="header.html"}
<!-- ↑ヘッダ -->


<div id="mypage">
<div id="title"><h2>商品詳細</h2></div>
<table width="600" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td colspan="2">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2"><hr></td>
  </tr>
  <tr>
    <td width="140"><img src="img.php?c={$detail[4]}&s=M&d=1"></td>
  <td><table width="268" border="0" cellspacing="6" cellpadding="0">
    <tr class="moji1">
      <td width="80">注文日：</td>
      <td width="170">{$detail[2]|date_format:"%Y/%m/%d"}</td>
    </tr>
    <tr class="moji1">
      <td>注文番号：</td>
      <td>{$detail[0]}</td>
    </tr>
    <tr class="moji1">
      <td>タイトル：</td>
      <td>{$detail[3]|escape}</td>
    </tr>
  </table></td>
  </tr>
  <tr>
    <td colspan="2"><hr></td>
  </tr>
</table>
<br>

<form action="{$scriptName}" method="POST">
<input type="hidden" name="action" value="customer_itembuy_valuation_check">
<input type="hidden" name="mode"   value="{$mode}">
<input type="hidden" name="no"     value="{$detail[0]}">
<input type="hidden" name="row"    value="{$detail[1]}">
  <table width="398" border="0" cellpadding="0" cellspacing="6">
  {if $mode == "news"}
    <tr class="moji1">
      <td width="386"><a href="{$scriptName}?action=customer_itembuy_order_cancel_check&no={$detail[0]}&row={$detail[1]}">キャンセルする</a></td>
    </tr>

  {elseif $mode == "past"}
    <tr class="moji1">
      <td width="100"><div align="right">評価する</div></td>
      <td width="300">
        <select name="rank">
        <option value=1 {if $rank == 1} selected{/if}>★☆☆☆☆
        <option value=2 {if $rank == 2} selected{/if}>★★☆☆☆
        <option value=3 {if $rank == 3} selected{/if}>★★★☆☆
        <option value=4 {if $rank == 4} selected{/if}>★★★★☆
        <option value=5 {if $rank == 5} selected{/if}>★★★★★
        </select>
      </td>
    </tr>
    <tr class="moji1">
      <td>&nbsp;</td>
      <td><textarea name="comment">{$comment}</textarea></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><input type="submit" name="Submit" value="評価する"></td>
    </tr>
    <tr>
      <td colspan="2">&nbsp;</td>
    </tr>
    <tr class="moji1">
      <td><div align="right"><a href="{$scriptName}?action=customer_itembuy_return_form&no={$detail[0]}&row={$detail[1]}">返品する</a></div></td>
      <td>&nbsp;</td>
    </tr>
    
  {else}
    <tr class="moji1">
      <td width="100"><div align="right">評価する</div></td>
      <td width="300">
        <select name="rank">
        <option value=1 {if $rank == 1 || $rank == ""} selected{/if}>★☆☆☆☆
        <option value=2 {if $rank == 2} selected{/if}>★★☆☆☆
        <option value=3 {if $rank == 3} selected{/if}>★★★☆☆
        <option value=4 {if $rank == 4} selected{/if}>★★★★☆
        <option value=5 {if $rank == 5} selected{/if}>★★★★★
        </select>
      </td>
    </tr>
    <tr class="moji1">
      <td>&nbsp;</td>
      <td><textarea name="comment">{$comment}</textarea></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><input type="submit" name="Submit" value="評価する"></td>
    </tr>
  {/if}

  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr class="moji1">
    <td>
      <div align="center">
        <input type="button" onclick="JavaScript:location.href='{$scriptName}?action=customer_itembuy_order_list&mode={$mode}';return false;" value="一覧へ">
      </div>
    </td>
  </tr>
  </table>
</form>
</div>


{include file="footer.html"}

