<{include file="index/header.html"}>
<div class="cnav"><a href="javascript:;" class="back">退款/退货操作</a></div>
<style type="text/css">
.time_line{ width:100%; border-bottom:1px solid #efefef; padding:10px 0 10px 0; float:left; }
.time_line span{ padding:0 30px 0 0; float: left; }
.plist{ width:100%; margin-top:5px; max-height:600px; overflow-y:scroll; border:1px solid #efefef; float: left;} 
.plist .name{ width:100%; background:#f8f8f8; float:left; }
.plist .name span{ font-size:14px; padding:6px 0 5px 10px; float:left; }
.plist .con{ width:100%; float:left; }
.plist .con .label{ width:100%; border-bottom:1px solid #efefef; float:left; }
.plist .con .label p{ padding:10px; float:left; }
</style>
<div class="time_line">
	<span>申请时间：<{$row.addtime}></span>
	<{if $row.status == '2'}>
		<span>同意退货：<{$row.passtime}></span>
		<span>发货时间：<{$row.sendtime}></span>
	<{/if}>
	<{if $row.status == '5'}>
		<span>确定时间：<{$row.oktime}></span>
	<{else}>
		<span>介入时间：<{$row.admintime}></span>
	<{/if}>
	<{if $row.status == '6'}>
		<span>售后失败：<{$row.failtime}></span> 
	<{/if}> 
</div>
<table class="etable">
	<tr>
		<td width="470" valign="top">
		<form action="?m=goods_order&a=refund_save" method="post">
			<{if $row.cid}><input name="id" type="hidden" value="<{$row.id}>"/><{/if}>
			<table class="etable"> 
				<tr>
					<td width="100px">售后编号：</td>
					<td><span style="float:left;"><{$row.service_id}></span></td>
				</tr>
				<tr>
					<td>退款原因：</td>
					<td><span style="float:left;"><{$row.reason_cn}></span></td>
				</tr>
				<tr>
					<td>退款金额：</td>
					<td><input name="price" type="text" size="50" id="price" value="<{$row.price}>"/></td>
				</tr>
				<tr>
					<td valign="top" style="padding-top:5px;">申请备注：</td>
					<td><textarea name="remarks" cols="50" rows="3" id="remarks"><{$row.remarks}></textarea></td>
				</tr> 
				<tr>
					<td>操作：</td>
					<td>
						<label><input name="status" type="radio" value="1" checked="checked"/>退款给用户</label> 
						<label><input name="status" type="radio" value="0"/>售后失效</label> 
					</td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td><input type="submit" value="保存" class="submit"/></td>
				</tr>
			</table>
		</form>
		</td>
		<td valign="top">
			<div class="plist">
				<div class="name"><span>售后记录</span></div>
				<div class="con">
					<{foreach item=i from=$process}>
						<div class="label">
							<p>
								<{$i.title}> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <{$i.addtime|date_format:'%Y-%m-%d %H:%M:%S'}> <br>
								<{$i.content}>
							</p>
						</div>
					<{/foreach}>
				</div> 
			</div>
		</td>
	</tr> 
</table>

<{include file="index/footer.html"}> 
<script type="text/javascript">
<{if $row.cid}>
	category_list('<{$row.pcid}>');	
<{else}>
	category_next('0');	
<{/if}>
</script>