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

<div id="container">

{include file="admin/menu/submenu_money.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>
    <th>ステータス</th>
    <th>金額</th>
    <th>コメント</th>
  </tr>
  {foreach item=repayment from=$action.repaymentlist}
	<tr>
	  <td align="center"><input type="checkbox" name="checklist[]" value="{$repayment.orderno}"></td>
	  <td><a href="{$scriptName}?action=admin_ordermanage_order_detail_form&odno={$repayment.orderno}&state=1&display=" target="_blank">{$repayment.orderno}</a></td>
	  <td>{$repayment.orderdate|date_format:"%Y/%m/%d"}</td>
	  <td>
        {if $repayment.ordermembercd!=""}
        <a href="{$scriptName}?action=admin_usermanage_customer_detail&membercd={$repayment.ordermembercd}&from=customerlist" target="_blank">{$repayment.orderlastnm}{$repayment.orderfirstnm}<br />({$repayment.ordermembercd})</a>
        {else}
        {$repayment.sendbuyer}
        {/if}
      </td>
      {if $repayment.sellerlastnm != "" || $repayment.sellerfirstnm != ""}
      <td><a href="{$scriptName}?action=admin_usermanage_customer_detail&membercd={$repayment.sellermembercd}&from=customerlist" target="_blank">{$repayment.sellerlastnm}{$repayment.sellerfirstnm}<br />({$repayment.sellermembercd})</a></td>
      {else}
      <td>運営ショップ</td>
      {/if}
	  <td>{$repayment.refundreqdate|date_format:"%Y/%m/%d"}</td>
	  <td>
	  {if $repayment.refundprice lt $repayment.orderprice}
	  一部
	  {else}
	  全額
	  {/if}
	  </td>
	  <td>{$repayment.refundprice|number_format}円</td>
	  <td>{$repayment.refundreason|escape|nl2br}</td>
	</tr>
  {foreachelse}
    <tr>
      <td height="30" colspan=9>返金依頼はありません。</td>
    </tr>
  {/foreach}

	<tr>
	  <td align="right" colspan="9">
<input type="hidden" name="action" value="admin_moneymanage_repaymentlist_confirm">
<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"}
