{include file="admin/header.html"}
{include file="admin/gnavi.html"}

<div id="container">

{include file="admin/menu/submenu_order.html"}

<!-- ↓段組み メイン側 -->
<div id="main">

<h3>返品/キャンセル 依頼管理リスト</h3>


<!-- ↓エラーメッセージ -->
{errorList->getMessages assign=errmsg}
{if $errmsg}
<div class="error">
  <ul class="alert">
  {foreach from=$errmsg item=msg}
    <li>{$msg|escape}</li>
  {/foreach}
  </ul>
</div>
{/if}
<!-- ↑エラーメッセージ -->
<form method="POST" action="{$scriptName}">
<table border="0" cellspacing="0" cellpadding="0" class="hyou">
  <tr>
    <th>チェック</th>
    <th>受注番号</th>
    <th>受注日</th>
    <th>購入者</th>
    <th>種別</th>
    <th>品名</th>
  </tr>
  {foreach from=$action.return_list item=prereturn name=index}
  <tr>
    <input type="hidden" name="orderno[{$smarty.foreach.index.iteration}]" value="{$prereturn.orderno}">
    <input type="hidden" name="orderrowno[{$smarty.foreach.index.iteration}]" value="{$prereturn.orderrowno}">
    <input type="hidden" name="updcnt[{$smarty.foreach.index.iteration}]" value="{$prereturn.updcnt}">
    <td><input type="checkbox" name="checklist[]" value="{$smarty.foreach.index.iteration}"></td>
    <td><a href="{$scriptName}?action=admin_ordermanage_order_detail_form&odno={$prereturn.orderno}&state=1&display=" target="_blank">{$prereturn.orderno}</a></td>
    <td>{$prereturn.orderdate|date_format:"%Y/%m/%d"}</td>
    <td><a href="{$scriptName}?action=admin_usermanage_customer_detail&membercd={$prereturn.ordermember}&from=customerlist" target="_blank">{$prereturn.lastnm}{$prereturn.firstnm}</a></td>
    <td>
    {if $prereturn.forwardstate == 8 }
    返品
    {else}
    キャンセル
    {/if}
    </td>
    <td>{$prereturn.itemnm}&nbsp;{action->getVariationNm itemcd=$prereturn.itemcd structcd=$prereturn.structcd}</td>
  </tr>
  {foreachelse}
    <tr>
      <td height="30" colspan=9>返品依頼はありません。</td>
    </tr>
  {/foreach}
</table>

<table border="0" cellspacing="0" cellpadding="0">
  <tr>
   <td align="right">
		<input type="hidden" name="action" value="admin_ordermanage_prereturn_check">
		<input type="submit" value="返品済にする ／ キャンセルを確認済みにする">
   </td>
  </tr>
</table>

</form>

<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"}
