
{include file="header.html"}
<!-- ↑ヘッダ -->

<!--↓コンテンツ-->
<div id="contents">

<div id="pankuzu">
<ul>
<li><a href="index.php">トップ</a></li>
<li>&nbsp;&gt;&nbsp;<a href="{$dirName}/?action=seller_mypage">出品機能</a></li>
<li class="last">&nbsp;&gt;&nbsp;返金処理</li>
</ul>
</div><!--End of pankuzu-->

<!--↓エラーメッセージ -->
{errorList->getMessages assign=errmsg}
{if $errmsg}
  <ul class="alert">
  {foreach from=$errmsg item=msg}
    <li>{$msg|escape}</li>
  {/foreach}
  </ul>
{/if}
<!--↑エラーメッセージ -->

<div id="etc">
<h3>返金処理データ選択</h3>

<table border="0" cellspacing="0" cellpadding="0" class="entryform column">
  <tr>
    <th>受注<br />番号</th>
    <th>受注日</th>
    <th>購入者</th>
    <th>出品番号</th>
    <th>タイトル</th>
    <th>数量</th>
    <th>金額</th>
    <th>手数料</th>
{*
    <td width="50">棚番ID</td>
*}
    <th>操作</th>
  </tr>
  {foreach from=$action.data item="data"}
    {foreach from=$data.subdata item="subdata" key="key"}
    {if $key == 0}
  <tr class="moji1">
    <td rowspan="{$data.subcount}">{$data.orderno}</td>
    <td rowspan="{$data.subcount}">{$data.orderdate|date_format:"%Y/%m/%d"}</td>
    {if $data.ordermember != ""}
    <td rowspan="{$data.subcount}">{$data.ordernm}</td>
    {else}
    <td rowspan="{$data.subcount}">{$data.sendbuyer}</td>
    {/if}
    
    <td><div align="center">{$subdata.exno}</div></td>
    <td class="itemname">{$subdata.itemnm|escape}</td>
    <td><div align="center">{$subdata.count|number_format}</div></td>
    <td><div align="right">{$subdata.price|number_format}円</div></td>
    <td rowspan="{$data.subcount}"><div align="center">{$data.comission|number_format}円</div></td>
{*
    <td><div align="center">{$subdata.rackid}</div></td>
*}
    <td rowspan="{$data.subcount}">
    <form action="{$scriptName}" method="POST">
        <input type="hidden" name="action" value="seller_itemexhibit_refund_form">
        <input type="hidden" name="orderno" value="{$data.orderno}">
        <div id="button">
        <input type="image" src="img/return_money.gif" alt="返金">
        </div>
    </form>
    </td>
  </tr>
    {else}
    <tr>
    <td><div align="center">{$subdata.orderitemcd}</div></td>
    <td><div align="center">{$subdata.itemnm}</div></td>
    <td><div align="center">{$subdata.count|number_format}</div></td>
    <td><div align="right">{$subdata.price|number_format}円</div></td>
    <td><div align="center">{$subdata.rackid}</div></td>
    </tr>
    {/if}
    {/foreach}

  {/foreach}
  {if $action.count == 0}
   <tr>
       <td colspan="10">返金できる商品はありません
   </tr>
   {/if}
 
  <tr>
    <td colspan="10" class="constatation2"><p>出品機能一覧ページへ戻る</p>
      <a href="JavaScript:location.href='{$scriptName|replace:$smarty.const.SSL_URL_ROOT:$smarty.const.URL_ROOT}?action=seller_mypage'"><img src="img/back_btn.gif" alt="戻る" width="116" height="24" /></a>
    </td>
  </tr>
</table>
<br>

</div>
<!--End of etc-->
</div>
<!-- ↑コンテンツ -->

{include file="footer.html"}
