本文目錄一覽:
php訂單物流跟蹤出現網絡異常怎麼解決
?php
echo ‘ web-root = ‘.$_SERVER[‘DOCUMENT_ROOT’].’br’;
echo ‘ current-file = ‘.__FILE__.’br’;
echo ‘ current-dir = ‘.dirname(__FILE__).’br’;
echo ‘ http-root = ‘.$_SERVER[‘HTTP_HOST’].’br’;
echo ‘ web-position = ‘.$_SERVER[‘PHP_SELF’].’br’;
$file=’c:/webroot/index.php’;
echo ‘ file-position = ‘.$file.’br’;
$fileWebAddress=’http://’.str_replace($_SERVER[‘DOCUMENT_ROOT’],$_SERVER[‘HTTP_HOST’],$file);
echo ‘ file-web-position = ‘.$fileWebAddress.’br’;
?
用thinkphp寫一個訂單跟蹤oa系統要多久
這個主要看你的功能複雜程度了,如果對thinkphp比較了解的話,按正常OA系統的功能來看,最快1個星期不到就搞定了
php裏面商城訂單查詢代碼怎麼寫
aaeer.com裏面的訂單查詢代碼:
訂單號:
訂單查詢
訂單號:
input name=”ono” type=”text” id=”ono” width=”150″ height=”20″ ///訂單號輸入框a href=”javascript:;” class=”k_ajax” rel=”{URL:’/portal/cart.php’,CMD:’def’,ono:$(‘#ono’).val()}”訂單查詢/a //ajax提交,並獲得訂單詳情。
ajax返回的數據,自己查一下代碼吧。
toymen發表於:11-11-08 22:59 5樓[回復] #Top#toymen
人氣:516
積分:3418
金幣:23620
KC元老
ajax查詢訂單狀態,添加到../portal/cart.php中。
/**
處理訂單反饋信息頁
*/
function king_ajax_def(){
global $king;
// setcookie(‘KingCMS_Cart’,serialize($cart),time()+86400000,$king-config(‘inst’));$ono=kc_get(‘ono’,2,1);
$array_black=str_split(””%’);
if(!$data=$king-db-getRows_one(“select ono,oid,nstatus,kname,nnumber,ntotal,kfeedback,eid,nexpress from %s_orders where ono=$ono”)){kc_error($king-lang-get(‘system/error/onoerr’));}
$oid=$data[‘oid’];
$status=$data[‘nstatus’];
$s=’table class=”k_table_list” cellspacing=”0″‘;$s.=’caption’.$king-lang-get(‘portal/cart/prodinfo’).’(請牢記您的訂單號,以便支付與查詢!)/caption’;$s.=’trth class=”w150″‘.$king-lang-get(‘portal/cart/youorders’).’/thtdstrong class=”red”‘.$data[‘ono’].’/strong/td/tr’;$s.=’trth’.$king-lang-get(‘portal/cart/prodname’).’/thtd’.$data[‘kname’].’/td/tr’;$s.=’trth’.$king-lang-get(‘portal/cart/total’).’/thtd’.$data[‘nnumber’].’件/td/tr’;$s.=’trth’.$king-lang-get(‘portal/cart/alltotal’).’/thtd’.number_format($data[‘ntotal’],2).’/td/tr’;$s.=’trth’.$king-lang-get(‘portal/cart/rstatus’).’/thtd’.$data[‘nstatus’].’/td/tr’;$s.=’/table’;
$s.=’p/p’;
$s.=’br/’;
$height=0;
if($status3){
$s.=’pa href=”javascript:;” rel=”{URL:”.$king-config(‘inst’).’portal/cart.php’,CMD:’payment’,ono:’.$ono.’,IS:1}” class=”k_ajax”‘.$king-lang-get(‘portal/orders/viewmethod’).’/a/p’;}
kc_ajax($king-lang-get(‘portal/cart/myorders’),$s,0,”,500,310+($height*50));}
其中td’.$data[‘nstatus’].’/td/tr’; 這句輸出的是訂單狀態的id數字,需要轉換為文字,不懂php,自己改吧。
數字對應的文字:
1:交易創建
2:等待買家付款
3:買家付款成功
4:發貨成功
5:確認收貨,交易成功
6:交易關閉,未完成超時關閉
7:修改交易價格成功
8:買家申請退款
9:退款成功
10:退款關閉
11:修改交易價格
原創文章,作者:小藍,如若轉載,請註明出處:https://www.506064.com/zh-hk/n/250595.html