{action->getHistory assign=lists}
{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-->

<div id="etc">
<h3>販売履歴</h3>

<form action="{$scriptName}" id="form_search" method="GET">
<input type="hidden" name="exno"       value="{$action.exno}">
<input type="hidden" name="itemnm"     value="{$action.itemnm}">
<input type="hidden" name="membercd"   value="{$action.membercd}">
<input type="hidden" name="name"       value="{$action.name}">
<input type="hidden" name="mailaddr"   value="{$action.mailaddr}">
<input type="hidden" name="preaction"  value="seller_itemexhibit_history_list">
<input type="hidden" name="action"     value="seller_itemexhibit_history_search">
<input type="hidden" name="page"       value="{$action.page}">
 <p> <div align="center"><input type="image" src="img/bt_search.gif" alt="検索"></div></p>
</form>

{action->getLinks}&nbsp;{if $action.cnt>0}{$action.cnt}件のデータ{/if}
<table border="0" cellspacing="0" cellpadding="0" class="entryform column">
{foreach from=$lists key=orderno item=order name=orders}
  {if $smarty.foreach.orders.first}
    <tr>
      <th>受注番号</th>
      <th>受注日</th>
      <th>購入者</th>
      <th>出品番号</th>
      <th>タイトル</th>
      <th>数量</th>
      <th>評価</th>
      <th>操作</th>
    </tr>
  {/if}
  {foreach from=$order.orderrow key=orderrowno item=orderrow name=orderrows}
  <form action="{$scriptName}" id="form_{$smarty.foreach.orders.iteration}" method="GET">
  <input type="hidden" name="action" value="seller_itemexhibit_detail">
  <input type="hidden" name="preaction" value="seller_itemexhibit_history_list">
  <input type="hidden" name="orderno" value="{$orderno}">
  <input type="hidden" name="page" value="{$action.page}">
  {if $smarty.foreach.orderrows.first}
    <tr class="moji1">
      <td>{$orderno}</td>
      <td>{$order.orderdate|date_format:"%Y/%m/%d"}</td>
      <td>{$order.customernm}</td>
      <td>{$orderrow.exno}</td>
      <td class="itemname">{$orderrow.itemnm}</td>
      <td><div align="center">{$orderrow.count|number_format}</div></td>
      {if $smarty.foreach.orderrows.first}
        <td>{if $order.valuation ne ""}{$order.valuation}点{/if}</td>
      {else}
        <td>&nbsp;</td>
      {/if}
      <td>
   <div id="button">
      <input type="image" src="img/detail_btn.gif" alt="詳細">
      </div>
      </td>
    </tr>
  {else}
    <tr class="moji1">
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>{$orderrow.exno}</td>
      <td>{$orderrow.itemnm}</td>
      <td><div align="center">{$orderrow.count}</div></td>
      <td>&nbsp;</td>
    </tr>
  {/if}
  {foreachelse}
    <tr class="moji1">
      <td>{$order.orderno}</td>
      <td>{$order.orderdate}</td>
      <td>{$order.customernm}</td>
      <td colspan=3>該当する商品は見つかりませんでした。</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
  {/foreach}
  </form>

{foreachelse}
  <tr>
    <td colspan=7>データがありません。</td>
  </tr>
{/foreach}
  <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>

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

{include file="footer.html"}
