-
展覽展會信息類網(wǎng)站織夢...
-
人力資源管理類網(wǎng)站織夢...
-
玩具動漫類網(wǎng)站織夢模板...
-
蔬菜鮮果配送類網(wǎng)站織夢...
-
儀器分析儀類網(wǎng)站織夢模...
-
物流快運速遞類網(wǎng)站織夢...
-
鋼結(jié)構(gòu)崗亭營銷型織夢網(wǎng)...
-
儀器儀表科技公司類網(wǎng)站...
-
精工機械軸承生產(chǎn)廠家類...
-
食品百貨英文外貿(mào)類網(wǎng)站...
-
財稅記賬工商注冊認證類...
-
貂絨大衣服裝設計類網(wǎng)站...
-
電子元件電路板類網(wǎng)站織...
-
電腦系統(tǒng)軟件下載類網(wǎng)站...
-
裝飾建材公司類網(wǎng)站織夢...
-
水利工程施工類網(wǎng)站織夢...
-
中英雙語律師事務所類網(wǎng)...
-
營銷型無縫鋼管定制生產(chǎn)...
-
手游APP軟件下載類網(wǎng)站織...
-
網(wǎng)站模板資源下載類網(wǎng)站...
效果演示

使用說明
- 可選擇導出指定的訂單,不選就是導出全部
- 導出的excle文件按當前時間命名
- 導出的excel文件請用wps軟件打開,office軟件下可能會亂碼
1、打開 /dede/shops_operations.php 找到
else if ($dopost == 'delete')在它上面加入else if ($dopost == 'out'){header("Content-type:application/vnd.ms-excel");header("Content-Disposition:attachment;filename=".date("Y-m-d-H-i-s").".xls");echo "<table><tr>";echo "<th>訂單號</th>";echo "<th>商品名稱</th>";echo "<th>單價(元/單位)</th>";echo "<th>數(shù)量</th>";echo "<th>支付方式</th>";echo "<th>配送費</th>";echo "<th>購買時間</th>";echo "<th>收貨人</th>";echo "<th>地址</th>";echo "<th>郵編</th>";echo "<th>聯(lián)系電話</th>";echo "<th>郵箱</th>";echo "<th>留言</th>";echo "<th>合計(元)</th>";echo "<th>狀態(tài)</th>";echo "</tr>";$wh = '';if( !empty($nid) ){$nids = explode('`',$nid);foreach($nids as $n){if($wh=='') $wh = " WHERE o.oid='$n' ";else $wh .= " OR o.oid='$n' ";}}$sql = "SELECT o.*,p.title,p.price as uprice,d.dname,u.* FROM dede_shops_orders as o left join dede_shops_products as p on o.oid=p.oid left join dede_shops_delivery as d on d.pid=o.pid LEFT JOIN dede_shops_userinfo AS u ON o.oid=u.oid $wh";$dsql->SetQuery($sql);$dsql->Execute('t');while($arr = $dsql->GetArray('t')){echo "<tr>";echo "<td>".$arr['oid']."</td>";//訂單號echo "<td>".$arr['title']."</td>";//商品名稱echo "<td>".$arr['uprice']."</td>";//單價echo "<td>".$arr['cartcount']."</td>";//數(shù)量echo "<td>".GetsType($arr['paytype'])."</td>";//支付方式echo "<td>".$arr['dname']."費用:".$arr['dprice']."元</td>";//配送費echo "<td>".GetDateTimeMk($arr['stime'])."</td>";//購買時間echo "<td>".$arr['consignee']."</td>";//收貨人echo "<td>".$arr['address']."</td>";//地址echo "<td>".$arr['zip']."</td>";//郵編echo "<td>".$arr['tel']."</td>";//聯(lián)系電話echo "<td>".$arr['email']."</td>";//郵箱echo "<td>".$arr['des']."</td>";//留言echo "<td>".$arr['priceCount']."</td>";//合計echo "<td>".GetSta($arr['state'])."</td>";//狀態(tài)echo "</tr>";}echo "</table>";exit();}
2、打開 /dede/shops_operations.htm 找到
<input type="button" name="b9" value="設為已完成狀態(tài)" class='np coolbg' style="width:100" onClick="OkSel();">
在它下面加入
<input type="button" name="b9" value="導出選中訂單" class='np coolbg' style="width:100" onClick="OutSel();">
繼續(xù)找到
function PushSel(){
在它上面加入
function OutSel(){var nid = getCheckboxItem();location.href = "shops_operations.php?dopost=out&nid="+nid;}