Initial commit

This commit is contained in:
易焱
2021-04-18 18:51:51 +08:00
commit ec705f2fa8
3240 changed files with 623103 additions and 0 deletions
+202
View File
@@ -0,0 +1,202 @@
<include file="Inc:head"/>
<style>
.house_region .select2-container{ width: 20%; float: left; margin-right:10px;}
#uniform-titlepic{ width: 113px;height: 36px;}
</style>
<div class="container-fluid">
<div class="main_head">
</div>
<div style="text-align:right; float:right"></div>
<div class="row-fluid">
<div class="span12">
</div>
<div class="widget-box">
<div class="widget-title"> <span class="icon"> <i class="icon-th"></i> </span>
<h5>订单详情</h5>
</div>
<div class="widget-content nopadding">
<table class="table table-bordered table-striped">
<tbody>
<tr class="odd gradeX">
<td>订单 ID</td><td> {$r.order_id}</td>
<td>订单号: </td><td>{$r.order_num}</td>
<td>会员: </td><td><a href="{:U('Member/detail',array('member_id'=>$r[member][member_id]))}" class="iframe2">{$r.member.company_name}</a></td>
</tr>
<tr class="even gradeC">
<td>下单时间: </td><td>{:date('Y/m/d H:i:s',$r[addtime])}</td>
<td>支付状态: </td><td>
<if condition="$r['is_pay']">
<span class="label label-success">已支付</span>
<else/>
<span class="label">未发货</span>
</if>
</td>
<td>发货状态: </td><td>
<if condition="$r['is_delivery']">
<a href="{:U('kuaidi',array('com'=>$r[shop_order_address][express_company_code],'num'=>$r[shop_order_address][express_company_num]))}" class="label label-success iframe">已发货(点击查看物流)</a>
<else/>
<span class="label">未发货</span>
</if>
</td>
</tr>
<tr class="odd gradeA">
<td>订单金额: </td><td>{$r.money} </td>
<td>应付金额: </td><td>{$r.pay_money}
<if condition="$r[money] neq $r[pay_money]">
<a href="#" class="label label-danger"></a>
</if>
</td>
<td> </td><td></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="widget-box">
<div class="widget-title"> <span class="icon"> <i class="icon-th"></i> </span>
<h5>收货信息</h5>
</div>
<div class="widget-content nopadding">
<table class="table table-bordered table-striped">
<tbody>
<tr class="odd gradeX">
<td width="30%">收货人:</td><td width="70%">{$r[shop_order_address]['username']} </td>
</tr>
<tr class="odd gradeX">
<td width="30%">电话:</td><td width="70%">{$r[shop_order_address]['mobile']} </td>
</tr>
<tr class="even gradeC">
<td width="30%">收货地址: </td><td colspan='3' width="70%">{$r[shop_order_address]['provin']}{$r[shop_order_address]['city']}{$r[shop_order_address]['area']}{$r[shop_order_address]['detail']}</td>
</tr>
</tbody>
</table>
</div>
</div>
<if condition="$r[shop_order_invoice]">
<div class="widget-box">
<div class="widget-title"> <span class="icon"> <i class="icon-th"></i> </span>
<h5>开票信息</h5>
</div>
<div class="widget-content nopadding">
<table class="table table-bordered table-striped">
<tbody>
<tr class="odd gradeX"><td width="30%">发票类型:</td><td width="70%">{$r[shop_order_invoice]['type']?"增值税专用发票":"增值税普通发票"} </td></tr>
<tr class="odd gradeX"><td width="30%">公司名称:</td><td width="70%">{$r.shop_order_invoice.company_name}</td></tr>
<tr class="odd gradeX"><td width="30%">纳税人识别号:</td><td width="70%">{$r.shop_order_invoice.taxpayer_number}</td></tr>
<?php
if($r[shop_order_invoice][type]){
?>
<tr class="odd gradeX"><td width="30%">注册地址:</td><td width="70%">{$r.shop_order_invoice.registration_address}</td></tr>
<tr class="odd gradeX"><td width="30%">注册电话:</td><td width="70%">{$r.shop_order_invoice.registration_mobile}</td></tr>
<tr class="odd gradeX"><td width="30%">开户银行:</td><td width="70%">{$r.shop_order_invoice.opening_bank}</td></tr>
<tr class="odd gradeX"><td width="30%">银行招账户:</td><td width="70%">{$r.shop_order_invoice.bank_account}</td></tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
<div class="widget-box">
<div class="widget-title"> <span class="icon"> <i class="icon-th"></i> </span>
<h5>发票收货地址</h5>
</div>
<div class="widget-content nopadding">
<table class="table table-bordered table-striped">
<tbody>
<tr class="odd gradeX">
<td width="30%">收货人:</td><td width="70%">{$r[shop_order_invoice_address]['username']} </td>
</tr>
<tr class="odd gradeX">
<td width="30%">电话:</td><td width="70%">{$r[shop_order_invoice_address]['mobile']} </td>
</tr>
<tr class="even gradeC">
<td width="30%">收货地址: </td><td colspan='3' width="70%">{$r[shop_order_invoice_address]['provin']}{$r[shop_order_invoice_address]['city']}{$r[shop_order_invoice_address]['area']}{$r[shop_order_invoice_address]['detail']}</td>
</tr>
</tbody>
</table>
</div>
</div>
</if>
<div class="widget-box">
<div class="widget-title"> <span class="icon"> <i class="icon-th"></i> </span>
<h5>商品信息</h5>
</div>
<div class="widget-content nopadding">
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>商品编号</th>
<th>商品</th>
<th>数量</th>
<th>价格</th>
<th>小计</th>
</tr>
</thead>
<tbody>
<foreach name="r.shop_order_detail" item="v">
<tr class="odd gradeX">
<td class="center">{$v.product_id}</td>
<td><a href="/{$v.catid}/{$v.product_id}.html" target="_blank"><img src="{$v.thumb}" style="height:40px;" />{$v.title} </a></td>
<td class="center"> {$v.quantity}</td>
<td class="center">{$v.price}</td>
<td class="center">{$v.money}</td>
</tr>
</foreach>
</tbody>
</table>
</div>
<div class="widget-title" style="text-align:right; line-height: 40px; font-size: 16px; font-weight: 600;"> 合计: {$r.money}&nbsp;&nbsp;</div>
</div>
<div class="widget-box">
<div class="widget-title"> <span class="icon"> <i class="icon-th"></i> </span>
<h5>用户备注</h5>
</div>
<div class="widget-title" style="padding-left:20px; line-height: 30px;">{$r[remark]?$r[remark]:"无"}</div>
</div>
<?php
if(!$_GET[isPrint]){
?>
<div class="form-actions">
<a href="__SELF__&isPrint=1" class="btn btn-danger" target="_blank">打印</a>
<button type="button" class="btn btn-danger" id="closeIframe">关闭</button>
</div>
<?php
}
?>
</div>
</div>
<include file="Inc/foot"/>
<include file="Inc/info_js"/>
<?php
if($_GET[isPrint]){
?>
<script>
$(function(){
$("a").each(function(){
$(this).attr("href","#");//这里一定要把href内容过滤掉,否则打印的内容会出现链接地址
})
})
window.print();
</script>
<?php
}
?>
@@ -0,0 +1,30 @@
<include file="Inc:head"/>
<div class="widget-box2" style="margin:0px;">
<div class="widget-content nopadding">
<form id="basic_validate" class="form-horizontal" method="post" action="__SELF__" onsubmit="return save_form2(this)">
<input type="hidden" name="order_id" value="{$r.order_id}">
<div class="control-group">
<label class="control-label">现在价格</label>
<div class="controls">
<input id="username" type="text" readonly value="{$r.pay_money}"/>
</div>
</div>
<div class="control-group">
<label class="control-label">修改后</label>
<div class="controls">
<input type="text" name="new_money" />
</div>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-success form_submit">确定</button>
<button type="button" class="btn btn-danger" id="closeIframe">取消</button>
<div id="status"></div>
</div>
<div id="submitted"></div>
</form>
</div>
</div>
<include file="Inc/foot"/>
@@ -0,0 +1,73 @@
<include file="Inc:header"/>
<div class="container-fluid">
<div class="main_head">
<div class="main_tab" style="width:30%; margin-top:10px;">
<a href="{:U('goods_delivery',array('is_delivery'=>0))}" class="btn {$_GET[is_delivery]==0?'on':''}">待发货(<span>{$readyDeliveryCount}</span>)</a>
<a href="{:U('goods_delivery',array('is_delivery'=>1))}" class="btn {$_GET[is_delivery]==1?'on':''}">已发货(<span>{$hasDeliveryCount}</span>)</a>
</div>
<div class="main_add" style="width:70%;">
<form action="__ACTION__" method="get">
<input type="hidden" name="is_delivery" value="{$_GET[is_delivery]}">
<label>订单号:<input name="order_num" value="{:I('get.order_num')}" class="span2"></label>
<button class="btn btn-inverse">搜索</button>
</form>
</div>
</div>
<div style="text-align:right; float:right"></div>
<div class="row-fluid">
<div class="span12">
<div class="widget-box">
<div class="widget-content nopadding">
<form method="post" action="__SELF__" onsubmit="return save_form2(this);" class="modelIndex">
<table class="table table-striped">
<thead>
<tr>
<th width="10%">订单编号</th>
<th width="10%">收货人</th>
<th width="10%">电话</th>
<th width="30%" style='text-align: left;'>地址</th>
<th width="10%" style='text-align: left;'>物流(点击查看)</th>
<th width="10%">操作</th>
</tr>
</thead>
<tbody>
<foreach name="data" item="v" >
<tr>
<td class="center tab-title"><a href="{:U('detail',array('order_id'=>$v['order_id']))}" class="iframe" width="70%" height="80%">{$v.order_num}</a></td>
<td class="center tab-title">{$v[shop_order_address][username]}</td>
<td class="center">{$v[shop_order_address][mobile]}</td>
<td>{$v[shop_order_address][province]}{$v[shop_order_address][city]}{$v[shop_order_address][area]}{$v[shop_order_address][detail]}</td>
<td class="tab-title">
<?php
if($v['shop_order_address'][express_company_num]){
$com=$v['shop_order_address'][express_company_code];
$num=$v['shop_order_address'][express_company_num];
?>
<a href="{:U('kuaidi',array('com'=>$com,'num'=>$num))}" class="iframe" target="_blank" width="70%" height="80%">{$v['shop_order_address'][express_company_num]}({$v['shop_order_address'][express_company_code]})</a>
<?php
}else{
?>
-
<?php
}
?>
</td>
<td class="center">
<a href="{:U('goods_delivery_add',array('order_id'=>$v['order_id']))}" onclick="" class="btn btn-primary btn-mini iframe" width="30%" height="30%">{$v[shop_order_address][express_company_code]?'修改单号':'录入单号'}</a>
</td>
</tr>
</foreach>
</tbody>
</table>
</form>
</div>
</div>
<div class="pagination alternate">
<ul>{$listpage}</ul>
</div>
</div>
</div>
</div>
<include file="Inc/footer"/>
@@ -0,0 +1,38 @@
<include file="Inc:head"/>
<div class="widget-box2" style="margin:0px;">
<div class="widget-content nopadding">
<form action="__SELF__" method="post" class="form-horizontal" onsubmit="return save_form2(this)">
<input type="hidden" name="order_id" value="{$data.order_id}">
<div class="control-group">
<label class="control-label">物流选择</label>
<div class="controls">
<select name="express_company_code">
<foreach name="distribution_mode" item="v">
<option value="{$v.1}" {$v[1]==$data[shop_order_address][express_company_code]?'selected':''}>{$v.0}</option>
</foreach>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label">物流编号</label>
<div class="controls"><input type="text" name="express_company_num" autocomplete="off" value="{$data[shop_order_address][express_company_num]}"></div>
</div>
<?php
if($data[shop_order_address][mobile]==$data[shop_order_invoice_address][mobile]&&$data[shop_order_address][detail]==$data[shop_order_invoice_address][detail]){
?>
<div class="control-group">
<label class="control-label">发票随货</label>
<div class="controls" style="margin-top:4px;"><input type="checkbox" name="invoice_as" value="1" checked="true"> (系统检测到收货地址与收票地址一样)</div>
</div>
<?php
}
?>
<div class="form-actions">
<button type="submit" class="btn btn-success form_submit">确定</button>
<button type="button" class="btn btn-danger" id="closeIframe">取消</button>
</div>
<form>
</div>
</div>
<include file="Inc:foot"/>
+109
View File
@@ -0,0 +1,109 @@
<include file="Inc:header"/>
<div class="container-fluid">
<div class="main_head">
<div class="main_tab" style="width:30%; margin-top:10px;">
<a href="{:U('index')}" class="btn {$_GET[status_code]?'':'on'}">全部订单</a>
<a href="{:U('index',array('status_code'=>101))}" class="btn {$_GET[status_code]==101?'on':''}">待付款(<span>{$readyPayCount}</span>)</a>
<a href="{:U('index',array('status_code'=>102))}" class="btn {$_GET[status_code]==102?'on':''}">待发货(<span>{$readyDeliveryCount}</span>)</a>
<a href="{:U('index',array('status_code'=>103))}" class="btn {$_GET[status_code]==103?'on':''}">待收货(<span>{$readyReceiptCount}</span>)</a>
<a href="{:U('index',array('status_code'=>104))}" class="btn {$_GET[status_code]==104?'on':''}">已完成(<span>{$ReceiptCount}</span>)</a>
</div>
<div class="main_add" style="width:70%;">
<form action="__ACTION__" method="get">
<input type="hidden" name="status_code" value="{$_GET[status_code]}">
<label>下单时间:
<input name="start_time" value="{:I('get.start_time')}" autocomplete="off" class="span2" onFocus="WdatePicker()" style="width:100px;">
-<input name="end_time" value="{:I('get.end_time')}" autocomplete="off" class="span2" onFocus="WdatePicker()" style="width:100px;">
</label>
<label>
<select name="keytype" style="width: 100px;">
<option value="order_num" <?= $_GET['keytype']==='order_num' ? 'selected':''; ?>>订单号</option>
<option value="mobile" <?= $_GET['keytype']==='mobile' ? 'selected':''; ?>>用户手机</option>
<option value="member_id" <?= $_GET['keytype']==='member_id' ? 'selected':''; ?>>用户ID</option>
</select>
</label>
<label><input name="keywords" value="{:I('get.keywords')}" class="span2"></label>
<button class="btn btn-inverse">搜索</button>
</form>
</div>
</div>
<div style="text-align:right; float:right"></div>
<div class="row-fluid">
<div class="span12">
<div class="widget-box">
<div class="widget-content nopadding">
<form method="post" action="__SELF__" onsubmit="return save_form2(this);" class="modelIndex">
<table class="table table-striped">
<thead>
<tr>
<th width="5%">ID</th>
<th width="10%">订单编号</th>
<th width="10%">会员</th>
<th width="5%">总金额</th>
<th width="5%">应付金额</th>
<th width="8%">支付状态</th>
<th width="8%">发货状态</th>
<th width="8%">订单状态</th>
<th width="10%">下单时间</th>
<th width="13%">操作</th>
</tr>
</thead>
<tbody>
<foreach name="data" item="v" >
<tr>
<td style="text-align: center;">{$v.order_id}</inpu></td>
<td class="center tab-title"><a href="{:U('detail',array('order_id'=>$v['order_id']))}" class="iframe" width="70%" height="80%">{$v.order_num}</a></td>
<td class="center tab-title"><a href="{:U('Member/detail',array('member_id'=>$v[member_id]))}" class="iframe" class="iframe" width="70%" height="80%">{$v.member.company_name}</a></td>
<td class="center">{$v.money}</td>
<td class="center">{$v.pay_money}
<if condition="$v[money] neq $v[pay_money]">
<a href="#" class="label label-danger"></a>
</if>
</td>
<td class="center">
<if condition="$v['is_pay'] eq 0 ">
<span class="label ">未支付</span>
<else/>
<span class="label label-success">已支付</span>
</if>
</td>
<td class="center">
<if condition="$v['is_delivery']">
<a href="{:kuaidi($v[distribution_mode],$v[logistics_number])}" target="_blank" class="label label-success">已发货</a>
<else/>
<span class="label">未发货</span>
</if>
</td>
<td class="center"><span class="badge badge-info">{$v.status_name}</span></td>
<td class="center">{:date('m/d H:i:s',$v[addtime])}</td>
<td >
<a href="{:U('detail',array('order_id'=>$v['order_id']))}" class="btn btn-inverse btn-mini iframe" width="70%" height="80%">查看</a>
<a href="{:U('log',array('order_id'=>$v['order_id']))}" class="btn btn-inverse btn-mini iframe" width="40%" height="50%">日志</a>
<if condition="$v['status_code'] eq 101">
<a href="{:U('editor_price',array('order_id'=>$v['order_id']))}" class="btn btn-inverse btn-mini iframe">改价</a>
<elseif condition="$v['status_code'] eq 111"/>
<a href="{:U('editor_price',array('order_id'=>$v['order_id']))}" class="btn btn-inverse btn-mini iframe">改价</a>
<a href="{:U('isBankPay',array('order_id'=>$v['order_id']))}" class="btn btn-inverse btn-mini ajax_del" confirm_info="您确认线下已收到客户的汇款吗?<br> 点击【确定】后订单将变已支付状态!">确认收款</a>
<a href="{:U('delete2',array('order_id'=>$v['order_id']))}" class="btn btn-inverse btn-mini ajax_del">删除</a>
</if>
<if condition="$v['status_code'] eq 201">
<a href="{:U('delete',array('order_id'=>$v['order_id']))}" class="btn btn-inverse btn-mini ajax_del">删除</a>
</if>
</td>
</tr>
</foreach>
</tbody>
</table>
</form>
</div>
</div>
</div>
<div class="pagination alternate">
<ul>{$listpage}</ul>
</div>
</div>
</div>
<include file="Inc/footer"/>
@@ -0,0 +1,73 @@
<include file="Inc:header"/>
<div class="container-fluid">
<div class="main_head">
<div class="main_tab" style="width:30%; margin-top:10px;">
<a href="{:U('invoice_delivery',array('is_delivery'=>0))}" class="btn {$_GET[is_delivery]==0?'on':''}">待发货(<span>{$readyDeliveryCount}</span>)</a>
<a href="{:U('invoice_delivery',array('is_delivery'=>1))}" class="btn {$_GET[is_delivery]==1?'on':''}">已发货(<span>{$hasDeliveryCount}</span>)</a>
</div>
<div class="main_add" style="width:70%;">
<form action="__ACTION__" method="get">
<input type="hidden" name="is_delivery" value="{$_GET[is_delivery]}">
<label>订单号:<input name="order_num" value="{:I('get.order_num')}" class="span2"></label>
<button class="btn btn-inverse">搜索</button>
</form>
</div>
</div>
<div style="text-align:right; float:right"></div>
<div class="row-fluid">
<div class="span12">
<div class="widget-box">
<div class="widget-content nopadding">
<form method="post" action="__SELF__" onsubmit="return save_form2(this);" class="modelIndex">
<table class="table table-striped">
<thead>
<tr>
<th width="10%">订单编号</th>
<th width="10%">收货人</th>
<th width="10%">电话</th>
<th width="30%" style='text-align: left;'>地址</th>
<th width="10%" style='text-align: left;'>物流编号</th>
<th width="10%">操作</th>
</tr>
</thead>
<tbody>
<foreach name="data" item="v" >
<tr>
<td class="center tab-title"><a href="{:U('detail',array('order_id'=>$v['order_id']))}" class="iframe" width="70%" height="80%">{$v.order_num}</a></td>
<td class="center tab-title">{$v[shop_order_invoice_address][username]}</td>
<td class="center">{$v[shop_order_invoice_address][mobile]}</td>
<td>{$v[shop_order_invoice_address][province]}{$v[shop_order_invoice_address][city]}{$v[shop_order_invoice_address][area]}{$v[shop_order_invoice_address][detail]}</td>
<td class="tab-title">
<?php
if($v['shop_order_invoice_address'][express_company_num]){
$com=$v['shop_order_invoice_address'][express_company_code];
$num=$v['shop_order_invoice_address'][express_company_num];
?>
<a href="{:U('kuaidi',array('com'=>$com,'num'=>$num))}" class="iframe" target="_blank">{$v['shop_order_invoice_address'][express_company_num]}({$v['shop_order_invoice_address'][express_company_code]})</a>
<?php
}else{
?>
-
<?php
}
?>
</td>
<td class="center">
<a href="{:U('invoice_delivery_add',array('order_id'=>$v['order_id']))}" onclick="" class="btn btn-primary btn-mini iframe" >{$v[shop_order_invoice_address][express_company_code]?'修改单号':'录入单号'}</a>
</td>
</tr>
</foreach>
</tbody>
</table>
</form>
</div>
</div>
<div class="pagination alternate">
<ul>{$listpage}</ul>
</div>
</div>
</div>
</div>
<include file="Inc/footer"/>
@@ -0,0 +1,28 @@
<include file="Inc:head"/>
<div class="widget-box2" style="margin:0px;">
<div class="widget-content nopadding">
<form action="__SELF__" method="post" class="form-horizontal" onsubmit="return save_form2(this)">
<input type="hidden" name="order_id" value="{$data.order_id}">
<div class="control-group">
<label class="control-label">物流选择</label>
<div class="controls">
<select name="express_company_code">
<foreach name="distribution_mode" item="v">
<option value="{$v.1}" {$v[1]==$data[shop_order_invoice_address][express_company_code]?'selected':''}>{$v.0}</option>
</foreach>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label">物流编号</label>
<div class="controls"><input type="text" name="express_company_num" autocomplete="off" value="{$data[shop_order_invoice_address][express_company_num]}"></div>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-success form_submit">确定</button>
<button type="button" class="btn btn-danger" id="closeIframe">取消</button>
</div>
<form>
</div>
</div>
<include file="Inc:foot"/>
+32
View File
@@ -0,0 +1,32 @@
<include file="Inc:head"/>
<div class="container-fluid">
<div class="main_head">
<div style="text-align:right; float:right"></div>
<div class="row-fluid">
<div class="span12">
<div class="widget-box">
<div class="widget-content nopadding">
<table class="table table-bordered table-striped">
<thead>
<tr>
<th width="30%">时间</th>
<th width="70%">内容</th>
</tr>
</thead>
<tbody>
<foreach name="data" item="v" >
<tr>
<td style="text-align: center;">{$v.time}</td>
<td style="text-align: center;">{$v.context}</td>
</tr>
</foreach>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<include file="Inc/foot" noiframeauto="true"/>
+32
View File
@@ -0,0 +1,32 @@
<include file="Inc:head"/>
<div class="container-fluid">
<div class="main_head">
<div style="text-align:right; float:right"></div>
<div class="row-fluid">
<div class="span12">
<div class="widget-box">
<div class="widget-content nopadding">
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>时间</th>
<th>日志</th>
</tr>
</thead>
<tbody>
<foreach name="data" item="v" >
<tr>
<td style="text-align: center;">{:date("Y-m-d H:i:s",$v[addtime])}</td>
<td style="text-align: center;">{$v.content}</td>
</tr>
</foreach>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<include file="Inc/foot" noiframeauto="true"/>
@@ -0,0 +1,94 @@
<include file="Inc:header"/>
<div class="container-fluid">
<div class="main_head">
<div class="main_tab" style="width:30%; margin-top:10px;">
<a href="{:U('refundOrder')}" class="btn {$_GET[status_code]?'':'on'}">所有</a>
<a href="{:U('refundOrder',array('status_code'=>301))}" class="btn {$_GET[status_code]==301?'on':''}">待处理(<span>{$readCount}</span>)</a>
<a href="{:U('refundOrder',array('status_code'=>302))}" class="btn {$_GET[status_code]==302?'on':''}">同意退款的订单(<span>{$agreeCount}</span>)</a>
<a href="{:U('refundOrder',array('status_code'=>311))}" class="btn {$_GET[status_code]==311?'on':''}">不同意退款的订单(<span>{$disagreeCount}</span>)</a>
</div>
<div class="main_add" style="width:70%;">
<form action="__ACTION__" method="get">
<input type="hidden" name="status_code" value="{$_GET[status_code]}">
<label>订单号:<input name="order_num" value="{:I('get.order_num')}" class="span2"></label>
<button class="btn btn-inverse">搜索</button>
</form>
</div>
</div>
<div style="text-align:right; float:right"></div>
<div class="row-fluid">
<div class="span12">
<div class="widget-box">
<div class="widget-content nopadding">
<form method="post" action="__SELF__" onsubmit="return save_form2(this);" class="modelIndex">
<table class="table table-striped">
<thead>
<tr>
<th width="5%">ID</th>
<th width="10%">订单编号</th>
<th width="10%">会员</th>
<th width="5%">总金额</th>
<th width="5%">应付金额</th>
<th width="8%">支付状态</th>
<th width="8%">发货状态</th>
<th width="8%">订单状态</th>
<th width="10%">下单时间</th>
<th width="13%">操作</th>
</tr>
</thead>
<tbody>
<foreach name="data" item="v" >
<tr>
<td style="text-align: center;">{$v.order_id}</inpu></td>
<td class="center tab-title"><a href="{:U('detail',array('order_id'=>$v['order_id']))}" class="iframe" width="70%" height="80%">{$v.order_num}</a></td>
<td class="center tab-title"><a href="{:U('Member/detail',array('member_id'=>$v[member_id]))}" class="iframe" class="iframe" width="70%" height="80%">{$v.member.company_name}</a></td>
<td class="center">{$v.money}</td>
<td class="center">{$v.pay_money}
<if condition="$v[money] neq $v[pay_money]">
<a href="#" class="label label-danger"></a>
</if>
</td>
<td class="center">
<if condition="$v['is_pay'] eq 0 ">
<span class="label ">未支付</span>
<else/>
<span class="label label-success">已支付</span>
</if>
</td>
<td class="center">
<if condition="$v['is_delivery']">
<a href="{:kuaidi($v[distribution_mode],$v[logistics_number])}" target="_blank" class="label label-success">已发货</a>
<else/>
<span class="label">未发货</span>
</if>
</td>
<td class="center"><span class="badge badge-info">{$v.status_name}</span></td>
<td class="center">{:date('m/d H:i:s',$v[addtime])}</td>
<td >
<a href="{:U('detail',array('order_id'=>$v['order_id']))}" class="btn btn-inverse btn-mini iframe" width="70%" height="80%">查看</a>
<a href="{:U('log',array('order_id'=>$v['order_id']))}" class="btn btn-inverse btn-mini iframe" width="40%" height="50%">日志</a>
<?php
if($v['status_code']==301){
?>
<a href="{:U('agree_refund',array('order_id'=>$v['order_id']))}" class="btn btn-inverse btn-mini ajax_del" confirm_info="同意退款后,费用将原路返还!您确定要操作吗?" width="40%" height="50%">同意</a>
<a href="{:U('disagree_refund',array('order_id'=>$v['order_id']))}" class="btn btn-inverse btn-mini ajax_del" confirm_info="您确定不同意用户的退款申请吗?" width="40%" height="50%">不同意</a>
<?php
}
?>
</td>
</tr>
</foreach>
</tbody>
</table>
</form>
</div>
</div>
</div>
<div class="pagination alternate">
<ul>{$listpage}</ul>
</div>
</div>
</div>
<include file="Inc/footer"/>