$orders="active"; $caller1="open"; if($_REQUEST['ids']=='') { $oro_de="active"; } if($_REQUEST['ids']==1) { $oro_de1="active"; } if($_REQUEST['ids']=='2') { $oro_de2="active"; } if($_REQUEST['ids']=='3') { $oro_de3="active"; } if($_REQUEST['ids']=='4') { $oro_de4="active"; } if($_REQUEST['ids']=='5') { $oro_de5="active"; } if($_REQUEST['ids']=='15') { $oro_de15="active"; } ?> require_once '../template/superadmin/action_connection.php' ; include("../settings/adminsession.php"); include '../../include/conf.php'; session_start(); ?> $pundai_erumai_devidiya=$_REQUEST['ids']; if($pundai_erumai_devidiya=="") { $ommala_mavan="New Order"; } if($pundai_erumai_devidiya=="1") { $ommala_mavan="Confirmed Order"; } if($pundai_erumai_devidiya=="5") { $ommala_mavan="Packing Order"; } if($pundai_erumai_devidiya=="15") { $ommala_mavan="Ready to Dispatch Order"; } if($pundai_erumai_devidiya=="2") { $ommala_mavan="Dispatched Order"; } if($pundai_erumai_devidiya=="3") { $ommala_mavan="Delivered Order"; } if($pundai_erumai_devidiya=="4") { $ommala_mavan="Cancelled Order"; } if($pundai_erumai_devidiya=="4") { $ommala_mavan="Cancelled Order"; } ?> if(isset($_POST['sumbit'])){//to run PHP script on submit $v_id_order=$_REQUEST["v_id_order"]; $cour=$_REQUEST["courier_status_".$v_id_order.""]; date_default_timezone_set('Asia/Kolkata'); $date_ss = date('Y-m-d H:i:s ', time()); $Query="UPDATE `tbl_confirmorder` SET `orderstatus`='15',`couriername`='$cour',`packing_date`='$date_ss' WHERE `orid`='$v_id_order'"; $DB->query($Query); //$ids=$_REQUEST['ids']; header("location:view_packing.php?ids=5"); //$cour="courier_status".$v_id_order.""; //header("location:view_order.php?ids=5"); } ?> if($_REQUEST['ids']=="2") { $date_ss = date('Y-m-d H:i:s ', time()); $courier_no=trim(addslashes($_REQUEST['courier_no'])); $courier_status=trim(addslashes($_REQUEST['courier_status'])); $Query="UPDATE `tbl_confirmorder` SET `packing`='1' WHERE `orid`='".$_REQUEST['id']."'"; $DB->query($Query); $ids=$_REQUEST['ids']; header("location:view_packing.php?ids=5"); exit(); } if($_REQUEST['m_id']=="15") { date_default_timezone_set('Asia/Kolkata'); $s_id_date = date('Y-m-d H:i:s ', time()); $date_ss = date('Y-m-d H:i:s ', time()); $Query="UPDATE `tbl_confirmorder` SET `orderstatus`='15',`packing_date`='$s_id_date' WHERE `orid`='".$_REQUEST['id']."'"; $DB->query($Query); $ids=$_REQUEST['ids']; header("location:view_order.php?ids=15"); // exit(); } ?>
S.No. | Select | Invoice No | Date and Time | Name | State | Mobile No | if($_REQUEST['ids']==2) { ?>Courier Company | } ?> if($_REQUEST['ids']==3) { ?>Courier Company | } ?> if($_REQUEST['ids']=="") { ?>Payment Mode | } ?> if($_REQUEST['ids']==1) { ?>Payment Mode | } ?> if($_REQUEST['ids']==2) { ?>Courier No | } ?> if($_REQUEST['ids']==3) { ?>Courier No | } ?> if($_REQUEST['ids']=="") { ?>Amount | } ?> if($_REQUEST['ids']=="5") { ?>Amount | } ?> if($_REQUEST['ids']==1) { ?>Amount | } ?> if($_REQUEST['ids']==4) { ?>Amount | } ?> if($_REQUEST['ids']=="5") { ?>Qty | } ?> if($_REQUEST['ids']==2) { ?>Time | } ?>Address | Status |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
echo $nsssss;?> | echo $rowsss['refid'];?> | echo $rowsss['order_date_time'];?> | $mala_pundai_name; echo $mala_pundai_name= ucwords($mala_pundai_name); ?> | if($contry =="India"){ if($row['state']!=''){ echo $row['state']; }else{ echo $rowsss['state']; } }else{ echo $rowsss['contry']; }?> | echo $mala_pundai_phone;?> | $ccc_name=$rowsss['couriername']; if($ccc_name=="Franch Express") { $co_url="http://www.franchexpress.com/"; } if($ccc_name=="DHL Express") { $co_url="https://www.dhl.com/en/express.html"; } if($ccc_name=="Professional") { $co_url="https://www.tpcindia.com/"; } if($ccc_name=="India Post") { $co_url="https://www.indiapost.gov.in/vas/Pages/IndiaPostHome.aspx"; } if($ccc_name=="Dtdc") { $co_url="https://www.dtdc.in/"; } ?> if($_REQUEST['ids']==2) { ?>echo $rowsss['couriername'];?> | } ?> if($_REQUEST['ids']==3) { ?>echo $rowsss['couriername'];?> | } ?> if($_REQUEST['ids']=="") { ?>if($contry=="India") { if($varstatus!='0') { echo $ss=$varstatus; } else { echo $ss="Payumoney"; } } else { if($country_id==0) { echo $ss="Paypal"; } if($country_id==1) { echo $ss=$varstatus; } } ?> | } ?> if($_REQUEST['ids']==1) { ?>if($contry=="India") { if($varstatus!='0') { echo $ss=$varstatus; } else { echo $ss="Payumoney"; } } else { if($country_id==0) { echo $ss="Paypal"; } if($country_id==1) { echo $ss=$varstatus; } } ?> | } ?> if($_REQUEST['ids']==2) { ?>echo $rowsss['courier_no'];?> | } ?> if($_REQUEST['ids']==3) { ?>$d_stat=$rowsss['d_stat']; ?> if($d_stat==0) { ?> echo $rowsss['courier_no'];?> } ?> if($d_stat==5) { ?> Own Delivery } ?> if($d_stat==6) { ?> Confirmed by Call } ?> | } ?> if($_REQUEST['ids']=="4") { ?> if($contry!="India") { ?> Rs echo $man=$paypalamount;?> } ?>if($contry=="India") { ?> echo $sss;?> if($order_tc_id==0) { echo ($subtotal_123+$new_courier); } else { echo $subtotal_123; } } ?> | } ?> if($_REQUEST['ids']=="5") { ///////Packing check ?>if($contry!="India") { ?> Rs //echo $man=$paypalamount; if($weight == 0){ echo $subtotal_123; }if($rowsss['need_shipping']==2){ echo $rowsss['custom_charge'] + $subtotal_123;; }elseif($rowsss['need_shipping']!=1){ echo calc_ship($tot_weight_2_int, $new_date_mal_1, $conn) + $subtotal_123; }else{ echo $subtotal_123; } ?> } ?> if($contry=="India") { ?> echo $sss;?> if($weight == 0 ){ echo $subtotal_123; } elseif($order_tc_id==0) { echo ($subtotal_123+$new_courier); } else { echo $subtotal_123; } } ?> | } ?> if($_REQUEST['ids']=="") { ?>if($contry!="India") { ?> Rs echo $man=$paypalamount;?> } ?> if($contry=="India") { ?> echo $sss;?> if($order_tc_id==0) { echo ($subtotal_123+$new_courier); } else { echo $subtotal_123; } ?> } ?> | } ?> if($_REQUEST['ids']=="5") { $nsssss_new ?>echo $nsssss_new;?> | } ?> if($_REQUEST['ids']==1) { ?>if($contry=="India") { ?> echo $sss;?> if($order_tc_id==0) { echo ($subtotal_123+$new_courier); } else { echo $subtotal_123; } ?> } ?> | } ?> if($_REQUEST['ids']==2) { ?>echo $rowsss['deliverytime'];?> | } ?>$kkkasss=$kkkasss+1;?> |