{assign var="orderinfo" value=$action.orderinfo}

{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>

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

<table border="0" cellspacing="0" cellpadding="0" class="entryform">
<tr>
<td colspan="2" class="non2">▼購入情報</td>
</tr>
<tr>
  <th>購入日</th>
  <td>{$orderinfo.orderdate|date_format:"%Y/%m/%d"}</td>
</tr>
<tr>
  <th>受注番号</th>
  <td>{$orderinfo.orderno}</td>
</tr>
<tr>
  <th>購入者</th>
  {if $orderinfo.ordermember != "" }
  <td>{$orderinfo.ordernm}</td>
  {else}
  <td>{$orderinfo.sendbuyer}</td>
  {/if}
</tr>
<tr>
  <th>金額</th>
  <td>{$orderinfo.allprice|number_format}円</td>
</tr>
<tr>
  <th>評価</th>
  <td>{$orderinfo.valuation}</td>
</tr>
<tr>
  <th>コメント</th>
  <td>{$orderinfo.comment|escape|nl2br}</td>
</tr>
<tr>
<td colspan="2" class="non2">▼送付先情報</td>
</tr>
<tr>
  <th>郵便番号</th>
  <td>{$orderinfo.sendpostalcd}</td>
</tr>
<tr>
  <th>送都道府県</th>
  <td>{$orderinfo.prefnm}</td>
</tr>
<tr>
  <th>住所１</th>
  <td>{$orderinfo.sendaddr1}</td>
</tr>
<tr>
  <th>住所２</th>
  <td>{$orderinfo.sendaddr2}</td>
</tr>
<tr>
  <th>電話番号</th>
  <td>{$orderinfo.sendtelno1}</td>
</tr>
<tr>
  <th>宛名</th>
  <td>{$orderinfo.addressee}</td>
</tr> 
</table>


<table border="0" cellspacing="0" cellpadding="0" class="entryform">
<tr>
<td colspan="4" class="non2">▼商品リスト</td>
</tr>
<tr>
<th>出品番号</th>
<th>商品名</th>
<th>数量</th>
<th>金額</th>
</tr>
      {foreach from=$action.data item=data}
  	<tr>
        <td>{$data.exno}</td>
        <td class="itemname">{$data.itemnm}&nbsp;{$data.variationnm}</td>
        <td>{$data.count|number_format}</td>
        <td>{$data.price|number_format}円</td>
      </tr>
      {/foreach}
<tr>
<th class="non2">処理依頼</th>
<td colspan="3" class="non2">

		<form action="{$scriptName}" method="POST">
		<input type="hidden" name="action" value="seller_itemexhibit_refund_confirm">
		<input type="hidden" name="orderno" value="{$action.orderno}">
		{assign var="refundtype" value=$action.refundtype|default:"all"}
		{assign var="refundprice" value=$action.refundprice|default:0}
		<p>
        <input name="refundtype" value="all" type="radio" id="all"{if $refundtype=="all"}checked{/if}><label for="all">全額返金</label>
        {$orderinfo.allprice|number_format}円
		</p>
      　<p>
        <input name="refundtype" value="semi" type="radio" id="semi"{if $refundtype!="all"}checked{/if}><label for="semi">一部返金</label>
        <input type="text" name="refundprice" size="7" {if $refundtype!="all"}value="{$refundprice}"{/if}>円
      </p>
     <p>
     コメント<br />
     <textarea rows="5" cols="80" name="comment">{$action.comment}</textarea>
     </p></td>
  </tr>
  <tr>
	<td colspan="4" class="constatation"><p>入力内容をご確認ください。</p>
	<input src="img/constatation_btn.gif" alt="確認" border="0" type="image">
	</td>
 </tr>
	<tr>
	<td colspan="4" class="constatation2"><p>返金依頼一覧ページへ戻る</p>
	<a href="{$scriptName}?action=seller_itemexhibit_refund_list"><img src="img/back_btn.gif" alt="戻る" border="0">
	</td>
 </tr>

</table>
</form>

</div>
<!--↑コンテナ -->

</div>
<!-- ↑ラッパー -->


{include file="footer.html"}
