$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"; } ?> require_once '../template/superadmin/action_connection.php' ; include("../settings/adminsession.php"); session_start(); ?> if(isset($_POST['submit'])){//to run PHP script on submit if(!empty($_POST['check_list'])){ // Loop to store and display values of individual checked checkbox. $man='0'; $ttt="sacpara21@gmail.com"; foreach($_POST['check_list'] as $selected_view ) { $input = "$selected_view "; list($selected, $bdfffff) = explode('_', $input); echo $selected; // "5" $bdfffff; // "8" } } } ?> $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 date_default_timezone_set('Asia/Kolkata'); $date_ss = date('Y-m-d H:i:s ', time()); $dis_phone=$_REQUEST['dis_phone']; $v_id_order=$_REQUEST["v_id_order"]; $courier_status=$_REQUEST["courier_status_".$v_id_order.""]; $courier_no=trim(addslashes($_REQUEST["c_no_".$v_id_order.""])); $date_ss = date('Y-m-d H:i:s ', time()); $user = "A5aa862a129267ac55838c7f2e5869d7f"; //your username $password = "conform123"; //your password $senderid="DRANBU"; //Your senderid $messagetype="N"; //Type Of Your Message $url="http://hpsms.dial4sms.com/api/web2sms.php?"; $message = "Hi Shipment from Dr. G.ANBUGANAPATHI is dispatched through ".$courier_status.".Your Shipment no. is ".$courier_no.". DRANBU"; //enter Your Message $message = urlencode($message); $ch = curl_init(); if (!$ch){die("Couldn't initialize a cURL handle");} $ret = curl_setopt($ch, CURLOPT_URL,$url); curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt ($ch, CURLOPT_POSTFIELDS, "workingkey=$user&sender=$senderid&to=$dis_phone&message=$message"); $ret = curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $curlresponse = curl_exec($ch); // execute $Query="UPDATE `tbl_confirmorder` SET `deliverytime`='" .$date_ss. "',`couriername`='" .$courier_status. "',`courier_no`='" .$courier_no. "' ,`orderstatus`='2' WHERE `orid`='".$v_id_order."'"; $DB->query($Query); //$ids=$_REQUEST['ids']; // header("location:view_order.php?ids=15"); //$cour="courier_status".$v_id_order.""; header("location:view_order.php?ids=15"); } ?>
S.No. | Invoice No | Order Date & Time | Name | State | Mobile No | if($_REQUEST['ids']!=15) { ?>Type | } ?> 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']=="15") { ?>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 | } ?> if($_REQUEST['ids']==15) { ?>Packed Time | } ?> if($_REQUEST['ids']==15) { ?>Pickup By | } ?>
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
echo $nsssss;?> | echo $rowsss['refid'];?> | echo $rowsss['order_date_time'];?> | echo $mala_pundai_name;?> | echo $rowsss['state'];?> | echo $mala_pundai_phone;?> | if($_REQUEST['ids']!=15) { ?>Patient | } ?> $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") { ?> echo $sss;?> if($order_tc_id==0) { if($qty_devidiya==0) { $new_courier=0; } echo ($subtotal_123+$new_courier); } else { echo $subtotal_123; } } ?> | } ?> if($_REQUEST['ids']=="5") { ?>if($contry=="India") { ?> echo $sss;?> if($order_tc_id==0) { if($qty_devidiya==0) { $new_courier=0; } echo ($subtotal_123+$new_courier); } else { echo $subtotal_123; } } ?> | } ?> if($_REQUEST['ids']=="") { ?>if($contry=="India") { ?> echo $sss;?> if($order_tc_id==0) { if($qty_devidiya==0) { $new_courier=0; } echo ($subtotal_123+$new_courier); } else { echo $subtotal_123; } ?> } ?> if($contry!="India") { ?> echo $rowsss['paypalamount'];?> } ?> | } ?> if($_REQUEST['ids']=="15") { ?>if($contry=="India") { ?> echo $sss;?> if($order_tc_id==0) { if($qty_devidiya==0) { $new_courier=0; } echo ($subtotal_123+$new_courier); } else { echo $subtotal_123; } ?> } ?> if($contry!="India") { ?> echo $rowsss['paypalamount'];?> } ?> | } ?> if($_REQUEST['ids']=="5") { $nsssss_new ?>echo $nsssss_new;?> | } ?> if($_REQUEST['ids']==1) { ?>if($contry=="India") { ?> echo $sss;?> if($order_tc_id==0) { if($qty_devidiya==0) { $new_courier=0; } echo ($subtotal_123+$new_courier); } else { echo $subtotal_123; } ?> } ?> | } ?> if($_REQUEST['ids']==2) { ?>echo $rowsss['deliverytime'];?> | } ?> if($_REQUEST['ids']==15) { ?>echo $rowsss['packing_date'];?> | } ?> if($_REQUEST['ids']==15) { ?>} ?> |