if(isset($_POST['submit']))
{
if ($_REQUEST["form_action"] == "Update") {
$category=trim(addslashes($_REQUEST['invoice']));
$id=$_REQUEST['id'];
$Query="UPDATE `tbl_confirmorder` SET `type`='" .$category. "' WHERE `orid`='".$_REQUEST['id']."'";
$DB->query($Query);
$flag="sucess";
//header("location:order_details.php?id=".$id);
header("location:view_order.php");
}
}
?>
if(isset($_POST['submitmal']))
{
if ($_REQUEST["form_action"] == "Update") {
$fromdate_3=$_POST['fromdate_24'];
date_default_timezone_set('Asia/Kolkata');
$date_ss = date('Y-m-d H:i:s ', time());
$de_date=$_REQUEST['de_date'];
$Query = "SELECT * from tbl_order where orderid='$de_date'";
$name_12_123_qty=$DB->query($Query);
$si=0;
while ($rowsss = mysql_fetch_array($name_12_123_qty)) {
$si;
date_default_timezone_set('Asia/Kolkata');
$ne_1=$_REQUEST['from_date'];
$ne=strtotime($_REQUEST['from_date'][$si]);
$nameaa="";
$date_ss = date('Y-m-d H:i:s ', time());
$first_month_date=date("Y-m-d",$ne);
$y=date("Y",$ne);
$m=date("M",$ne);
$d=date("d",$ne);
$nameaa .="$d";
$nameaa .=" / ";
$nameaa .=" $m ";
$nameaa .=$y;
$nameaa;
$order_id=$rowsss['ordid'];
if($ne!="")
{
$Query="UPDATE `tbl_order` SET `batchno`='$nameaa' WHERE `ordid`='".$order_id."'";
$DB->query($Query);
}
$si=$si+1;}
$iyya=1;
}
}
?>
if(isset($_POST['submitpaypal']))
{
if ($_REQUEST["form_action"] == "Update") {
$paypalamo=trim(addslashes($_REQUEST['paypalamo']));
$Query="UPDATE `tbl_confirmorder` SET `paypalamount`='$paypalamo' WHERE `orid`='".$_REQUEST['id']."'";
$DB->query($Query);
$ids=$_REQUEST['ids'];
header("location:view_order.php?ids=".$ids);
}
}
?>
if(isset($_POST['submit1']))
{
if ($_REQUEST["form_action"] == "Update") {
$id=$_REQUEST['id'];
$status=trim(addslashes($_REQUEST['status']));
if($status=="")
{
date_default_timezone_set('Asia/Kolkata');
//$date_ss = date('Y-m-d H:i:s ', time());
$Query="UPDATE `tbl_confirmorder` SET `orderstatus`='0' WHERE `orid`='".$_REQUEST['id']."'";
$DB->query($Query);
$ids=$_REQUEST['ids'];
header("location:view_order.php?ids=".$ids);
}
if($status=="Confirmed")
{
date_default_timezone_set('Asia/Kolkata');
$date_ss = date('Y-m-d H:i:s ', time());
$Query="UPDATE `tbl_confirmorder` SET `deliverydate`='" .$date_ss. "',`orderstatus`='1' WHERE `orid`='".$_REQUEST['id']."'";
$DB->query($Query);
$ids=$_REQUEST['ids'];
header("location:view_order.php?ids=".$ids);
}
if($status=="Packing")
{
date_default_timezone_set('Asia/Kolkata');
$date_ss = date('Y-m-d H:i:s ', time());
$Query="UPDATE `tbl_confirmorder` SET `orderstatus`='5' WHERE `orid`='".$_REQUEST['id']."'";
$DB->query($Query);
$ids=$_REQUEST['ids'];
header("location:view_order.php?ids=".$ids);
}
if($status=="Ready to Dispatch")
{
date_default_timezone_set('Asia/Kolkata');
$date_ss = date('Y-m-d H:i:s ', time());
$Query="UPDATE `tbl_confirmorder` SET `orderstatus`='15' WHERE `orid`='".$_REQUEST['id']."'";
$DB->query($Query);
$ids=$_REQUEST['ids'];
header("location:view_order.php?ids=".$ids);
}
if($status=="Dispatched")
{
$date_ss = date('Y-m-d H:i:s ', time());
$dis_phone=$_REQUEST['dis_phone'];
//enter Mobile numbers comma seperated
$courier_no=trim(addslashes($_REQUEST['courier_no']));
$courier_status=trim(addslashes($_REQUEST['courier_status']));
$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);
curl_setopt_array($curl, array(
CURLOPT_URL => 'http://sms.dial4sms.com/api/v2/SendSMS?SenderId=DRANBU&Message='.$message.'&MobileNumbers='.$dis_phone.'&ApiKey=eYfIWFmiAMhbL6JDTfOb3kzGzQr+eimy6prshuD8qLo=&ClientId=b45d4e3d-cb26-4856-8cbf-93a02a7b9eeb',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$response = curl_exec($curl);
curl_close($curl);
//$mobilenumbers1='$res_owner_mobile';
$Query="UPDATE `tbl_confirmorder` SET `deliverytime`='" .$date_ss. "',`couriername`='" .$courier_status. "',`courier_no`='" .$courier_no. "' ,`orderstatus`='2' WHERE `orid`='".$_REQUEST['id']."'";
$DB->query($Query);
$ids=$_REQUEST['ids'];
header("location:view_order.php?ids=".$ids);
}
if($status=="Delivered")
{
$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 `delivery_time1`='" .$date_ss. "',`order_afterdate_time`='" .$date_ss. "',`orderstatus`='3',d_stat='0' WHERE `orid`='".$_REQUEST['id']."'";
$DB->query($Query);
$ids=$_REQUEST['ids'];
header("location:view_order.php?ids=".$ids);
}
if($status=="Own Delivery")
{
$date_ss = date('Y-m-d H:i:s ', time());
//$courier_no=trim(addslashes($_REQUEST['courier_no']));
//$courier_status=trim(addslashes($_REQUEST['courier_status']));
$courier_status=trim(addslashes($_REQUEST['courier_status']));
$Query="UPDATE `tbl_confirmorder` SET `delivery_time1`='" .$date_ss. "',`order_afterdate_time`='" .$date_ss. "',`orderstatus`='3',`couriername`='$courier_status',d_stat='5' WHERE `orid`='".$_REQUEST['id']."'";
$DB->query($Query);
$ids=$_REQUEST['ids'];
header("location:view_order.php?ids=".$ids);
}
if($status=="Delivered-Confirmed by Call")
{
$date_ss = date('Y-m-d H:i:s ', time());
//$courier_no=trim(addslashes($_REQUEST['courier_no']));
//$courier_status=trim(addslashes($_REQUEST['courier_status']));
$courier_status=trim(addslashes($_REQUEST['courier_status']));
$Query="UPDATE `tbl_confirmorder` SET `delivery_time1`='" .$date_ss. "',`order_afterdate_time`='" .$date_ss. "',`orderstatus`='3',`couriername`='$courier_status',d_stat='6' WHERE `orid`='".$_REQUEST['id']."'";
$DB->query($Query);
$ids=$_REQUEST['ids'];
header("location:view_order.php?ids=".$ids);
}
if($status=="Refund")
{
$date_ss = date('Y-m-d H:i:s ', time());
$Query="UPDATE `tbl_confirmorder` SET `refund_time`='" .$date_ss. "',`orderstatus`='4' WHERE `orid`='".$_REQUEST['id']."'";
$DB->query($Query);
$ids=$_REQUEST['ids'];
header("location:view_order.php?ids=".$ids);
}
$flag="sucess";
// header("location:order_details.php?id=".$id);
}
}
?>
if($company_name=="Energy Foods")
{
?>
}
?>
if($company_name=="Siddhayoga Pharma")
{
?>

}
?>
if($company_name=="Energy Foods")
{
?>
}
?>
#11,2nd Street, Radha Nagar Extn.
Velachery,Chennai 600 042.
State :Tamilnadu Code:33
Phone:044-2253 1316
Email : drganbuganapathi@gmail.com
Website : www.drganbuganapathi.com
echo nl2br($rows_order['address']);?>
echo $rows_order['city'];?>, echo $rows_order['state'];?>- echo $rows_order['pin'];?>.
if($mala_olu==0)
{
?>
GST NO: echo $gst;?>.
}
?>
Mobile:
$pundai_phone=$rows_order['dif_phone'];
if($pundai_phone=="phone")
{
$mala_pundai_phone =$row['phone'];
}
else
{
$mala_pundai_phone = $rows_order['dif_phone'];
}
?>
echo $mala_pundai_phone;?>
if($company_name=="Energy Foods")
{
?>
GSTIN : 33ACMPA1286A2Z7
}
?>
if($company_name=="Siddhayoga Pharma")
{
?>
GSTIN : 33ABNPT2826P1ZZ
}
?>
if($company_name=="Energy Foods")
{
?>
PAN : ACMPA1286A
}
?>
if($company_name=="Siddhayoga Pharma")
{
?>
PAN : ABNPT2826P
}
?>
Invoice No : echo $rows_order['refid'];?>
Invoice Date : $new_date =$rows_order['order_date_time'];
echo $new_date = date("Y-m-d",strtotime($new_date));
?>
Payment Mode : echo $ss;?>
$objqrynewsubee = "SELECT SUM(totprice) AS amtTotal FROM tbl_order where orderid='$orderid'";
$name_12_123=$DB->query($objqrynewsubee);
$Fetchnewww = mysql_fetch_array($name_12_123);
$subtotal_123=$Fetchnewww['amtTotal'];
?>
$new_kilo_41=($tot_weight_2/1000);
$new_kilo_5 = explode('.',$new_kilo_41);
$new_kilo_6=$new_kilo_5[0];
$new_date_mal =$rows_order['order_date_time'];
$new_date_mal_1 = date("Y-m-d",strtotime($new_date_mal));
date_default_timezone_set('Asia/Kolkata');
$date_mal_1 = date('2020-09-20', time());
$curdate_mal_1 = strtotime($new_date_mal_1);
$curdate_mal_2 = strtotime($date_mal_1);
$date_mal_dat_pundai_mavan = date('2020-10-06', time());
$pundai_order_id=$_REQUEST['id'];
$Query_job_move_courier= "SELECT * from tbl_courier_charges where state='$state' ";
$name_12=$DB->query($Query_job_move_courier);
$row_job_move_courier= mysql_fetch_array($name_12);
if($pundai_order_id>495)
{
$courier_fees=$row_job_move_courier['amount'];
$courier_fees_para_1=$row_job_move_courier['amount'];
}
else
{
if($curdate_mal_1<$curdate_mal_2)
{
$courier_fees=$row_job_move_courier['amount'];
$courier_fees_para_1=$row_job_move_courier['amount'];
if($state=="Puducherry")
{
$courier_fees=60;
$courier_fees_para_1=60;
}
if($state=="Tamilnadu")
{
$courier_fees=40;
$courier_fees_para_1=40;
}
if($state=="Andhra Pradesh")
{
$courier_fees=150;
$courier_fees_para_1=150;
}
if($state=="Karnataka")
{
$courier_fees=150;
$courier_fees_para_1=150;
}
if($state=="Kerala")
{
$courier_fees=150;
$courier_fees_para_1=150;
}
if($state=="Telangana")
{
$courier_fees=150;
$courier_fees_para_1=150;
}
}
else
{
if($state=="Puducherry")
{
$courier_fees=60;
$courier_fees_para_1=60;
}
if($state=="Tamilnadu")
{
$courier_fees=40;
$courier_fees_para_1=40;
}
if($state=="Andhra Pradesh")
{
$courier_fees=100;
$courier_fees_para_1=100;
}
if($state=="Karnataka")
{
$courier_fees=100;
$courier_fees_para_1=100;
}
if($state=="Kerala")
{
$courier_fees=100;
$courier_fees_para_1=100;
}
if($state=="Telangana")
{
$courier_fees=100;
$courier_fees_para_1=100;
}
if($state=="Puducherry")
{
$courier_fees=60;
$courier_fees_para_1=60;
}
}
}
$packing_charges=round((($subtotal*$kudhi)/100));
$packing_charges123=0;
//$packing_charges123=round((($subtotal_123*10)/100));
if($contry!="India")
{
$packing_charges123=0;
$packing_charges=0;
}
if($orderid>'179')
{
$packing_charges123=round((($subtotal_123*$kudhi)/100));
if($contry!="India")
{
$packing_charges123=0;
$packing_charges=0;
}
if($state=="Puducherry")
{
$packing_charges=0;
$packing_charges123=0;
}
if($state=="Tamilnadu")
{
$packing_charges=0;
$packing_charges123=0;
}
if($state=="Puducherry")
{
$packing_charges123=0;
}
if($state=="Tamilnadu")
{
$packing_charges123=0;
}
}
if($courier_fees=='')
{
$new_date_mal =$rows_order['order_date_time'];
$new_date_mal_1 = date("Y-m-d",strtotime($new_date_mal));
date_default_timezone_set('Asia/Kolkata');
$date_mal_1 = date('2020-10-06', time());
$curdate_mal_1 = strtotime($new_date_mal_1);
$curdate_mal_2 = strtotime($date_mal_1);
$Query_job_move_courier_1= "SELECT * from tbl_courier_charges where state='Others' ";
$name_12_w=$DB->query($Query_job_move_courier_1);
$row_job_move_courier_1= mysql_fetch_array($name_12_w);
if($curdate_mal_1<$curdate_mal_2)
{
$courier_fees=300;
}
else
{
$courier_fees=$row_job_move_courier_1['amount'];
}
$subtotal_123;
$packing_charges123=round((($subtotal_123*$kudhi)/100));
$packing_charges=round((($subtotal*$kudhi)/100));
$courier_fees=($courier_fees+$packing_charges);
}
$courier_fees;
if($contry=="India")
{
$new_kilo_4=(($new_kilo_6+1)*$courier_fees);
}
else
{
$tot_weight_2_int=$new_weight_2;
$Query_q= "SELECT * from tbl_courier_charges_country where state='$contry' ";
$Query_job_move_courier_country=$DB->query($Query_q);
$row_job_move_courier_country= mysql_fetch_array($Query_job_move_courier_country);
$num_max_ship_int=mysql_num_rows($Query_job_move_courier_country);
if($num_max_ship_int>0)
{
$courier_fees_country=$row_job_move_courier_country['amount'];
$courier_fees_country_extra=$row_job_move_courier_country['additional_amount'];
}
else
{
$Query_jo= "SELECT * from tbl_courier_charges_country where state='Others' ";
$Query_job_move_courier_country=$DB->query($Query_jo);
$row_job_move_courier_country= mysql_fetch_array($Query_job_move_courier_country);
$courier_fees_country=$row_job_move_courier_country['amount'];
$courier_fees_country_extra=$row_job_move_courier_country['additional_amount'];
}
if($tot_weight_2_int<=500)
{
$courier_fees_country_1=$courier_fees_country;
$new_kilo_4=$courier_fees_country_1;
if($country_id==1)
{
$new_kilo_4=($courier_fees_country_1*75);
}
else
{
$new_kilo_4=$courier_fees_country_1;
}
}
else
{
$tot_weight_2_int_1=($tot_weight_2_int-500);
$tot_weight_2_int_1_2=($tot_weight_2_int_1/250);
$new_kilo_5_int = explode('.',$tot_weight_2_int_1_2);
$new_kilo_6_int=$new_kilo_5_int[0];
$new_kilo_6_int_7=($new_kilo_6_int+1);
$new_kilo_6_int_7_8=($courier_fees_country_extra*$new_kilo_6_int_7);
$courier_fees_country_1=($courier_fees_country+$new_kilo_6_int_7_8);
$new_kilo_4=$courier_fees_country_1;
if($country_id==1)
{
$new_kilo_4=($courier_fees_country_1*75);
}
else
{
$new_kilo_4=$courier_fees_country_1;
}
}
}
$full_total_cm_ar=($subtotal+$new_kilo_4);
?>
if($contry=="India")
{
?>
Weight : |
echo $new_kilo_41;?> |
Taxable Value : |
$sym;?> $off_mal=($mas_price_1-($mas_price_1*($offer/100)));
echo $off_mal_1=number_format((float)$off_mal, 2, '.', '');
?> $Fetchnewww['amtTotal'];?> |
if($new_sta==0)
{
?>
Total CGST : |
echo $sym;?> $off_mal_gst=($mas_price_2-($mas_price_2*($offer/100)));
echo $off_mal_gst_1=number_format((float)$off_mal_gst, 2, '.', '');
?>
$Fetchnewww['amtTotal'];?> |
Total SGST : |
echo $sym;?> $off_mal_gst=($mas_price_2-($mas_price_2*($offer/100)));
echo $off_mal_gst_1=number_format((float)$off_mal_gst, 2, '.', '');
?> |
}
else
{
?>
Total IGST $mas_price_2;?> : |
echo $sym;?>
($mas_price_2*2);?>
$off_mal_gst_1_ollu=($mas_price_2-($mas_price_2*($offer/100)));
$off_mal_gst_1_ollu=($off_mal_gst_1_ollu*2);
echo $off_mal_gst_1_ollu=number_format((float)$off_mal_gst_1_ollu, 2, '.', '');
?>
$Fetchnewww['amtTotal'];?> |
}
?>
$order_tc_id =$rows_order['order_tc_id'];
?>
if($order_tc_id==0)
{
?>
Shipping : |
echo $sym;?>
if($contry=="India")
{
?>
$id;
if($id == 36)
{
$new_kilo_4=80;
echo $new_kilo_4=number_format((float)$new_kilo_4, 2, '.', '');
}
else
{
?>
if($id == 37)
{
$new_kilo_4=120;
echo $new_kilo_4=number_format((float)$new_kilo_4, 2, '.', '');
}
else
{
?>
$new_kilo_4=(($new_kilo_6+1)*$courier_fees);
echo $new_kilo_4=number_format((float)$new_kilo_4, 2, '.', '');
?>
}
}
}
else
{
?>
$new_kilo_4;
echo $new_kilo_4=number_format((float)$new_kilo_4, 2, '.', '');
?>
}
?>
|
$packing_charges123;
if($contry!="India")
{
$packing_charges123=0;
$packing_charges=0;
}
if($packing_charges123>0)
{
?>
Packing Charges : |
$idsss=$_REQUEST['id'];
?>
echo $sym;?>
if($idsss==106)
{
?>
$packing_charges123=1446;
echo $packing_charges123=number_format((float)$packing_charges123, 2, '.', '');
?>
}
else
{
$packing_charges123;
echo $packing_charges123=number_format((float)$packing_charges123, 2, '.', '');
}
?> |
}
}
?>
function no_to_words($no)
{
$words = array('0'=> '' ,'1'=> 'One' ,'2'=> 'Two' ,'3' => 'Three','4' => 'Four','5' => 'Five','6' => 'Six','7' => 'Seven','8' => 'Eight','9' => 'Nine','10' => 'Ten','11' => 'Eleven','12' => 'Twelve','13' => 'Thirteen','14' => 'Fouteen','15' => 'Fifteen','16' => 'Sixteen','17' => 'Seventeen','18' => 'Eighteen','19' => 'Nineteen','20' => 'Twenty','30' => 'Thirty','40' => 'Fourty','50' => 'Fifty','60' => 'Sixty','70' => 'Seventy','80' => 'Eighty','90' => 'Ninty','100' => 'Hundred &','1000' => 'Thousand','100000' => 'Lakh','10000000' => 'Crore');
if($no == 0)
return ' ';
else {
$novalue='';
$highno=$no;
$remainno=0;
$value=100;
$value1=1000;
while($no>=100) {
if(($value <= $no) &&($no < $value1)) {
$novalue=$words["$value"];
$highno = (int)($no/$value);
$remainno = $no % $value;
break;
}
$value= $value1;
$value1 = $value * 100;
}
if(array_key_exists("$highno",$words))
return $words["$highno"]." ".$novalue." ".no_to_words($remainno);
else {
$unit=$highno%10;
$ten =(int)($highno/10)*10;
return $words["$ten"]." ".$words["$unit"]." ".$novalue." ".no_to_words($remainno);
}
}
}
?>
$order_tc_id;
if($order_tc_id==0)
{
?>
if($offer==0)
{
?>
if($company_name=="Siddhayoga Pharma")
{
?>
Proprietrix
TOTAL :
}
else
{
?>
$grsnt1111=($Fetchnewww['amtTotal']+$new_kilo_4+$packing_charges123);
$grsnt1111=number_format((float)$grsnt1111, 2, '.', '');?>
Rupees echo no_to_words($grsnt1111);?> only
TOTAL :
}
?>
|
echo $sym;?> $grsnt=($Fetchnewww['amtTotal']+$new_kilo_4+$packing_charges123);
echo $grsnt=number_format((float)$grsnt, 2, '.', '');?>
|
}
?>
$mal_pa=$Fetchnewww['amtTotal'];
$s_roun=round($mal_pa*$offer/100);
$s_roun_mal_su_ollu=round($mas_price_1*$offer/100);
$new_tot=($mal_pa-$s_roun);
?>
if($offer>0)
{
?>
if($company_name=="Siddhayoga Pharma")
{
?>
}
else
{
?>
TOTAL :
}
?>
|
echo $sym;?> $grsnt=($Fetchnewww['amtTotal']+$new_kilo_4+$packing_charges123);
echo $grsnt=number_format((float)$grsnt, 2, '.', '');?>
|
Offer@ echo $offer;?>% : |
echo $sym;?> $s_roun;?>
echo $s_roun_mal_su_ollu=number_format((float)$s_roun_mal_su_ollu, 2, '.', '');
?>
|
if($company_name=="Siddhayoga Pharma")
{
?>
Proprietrix
TOTAL :
}
else
{
?>
$grsnt1111=($Fetchnewww['amtTotal']+$new_kilo_4+$packing_charges123-$s_roun);
$grsnt1111=number_format((float)$grsnt1111, 2, '.', '');?>
Rupees echo no_to_words($grsnt1111);?> only
TOTAL :
}
?>
|
echo $sym;?> $grsnt=($Fetchnewww['amtTotal']+$new_kilo_4+$packing_charges123-$s_roun);
echo $grsnt=number_format((float)$grsnt, 2, '.', '');?>
|
}
?>
}
else
{
$mal_pa=$Fetchnewww['amtTotal'];
$s_roun=round($mal_pa*$offer/100);
$s_roun_mal_su_ollu=round($mas_price_1*$offer/100);
$new_tot=($mal_pa-$s_roun);
?>
if($offer==0)
{
?>
if($company_name=="Siddhayoga Pharma")
{
?>
Proprietrix
}
else
{
?>
$grsnt1111=($Fetchnewww['amtTotal']);
$grsnt1111=number_format((float)$grsnt1111, 2, '.', '');?>
Rupees echo no_to_words($grsnt1111);?> only
}
?>
TOTAL : |
echo $sym;?> $grsnt=($Fetchnewww['amtTotal']);
echo $grsnt=number_format((float)$grsnt, 2, '.', '');?>
|
}
?>
if($offer>0)
{
?>
Offer@ echo $offer;?>% : |
echo $sym;?> $s_roun;?>
echo $s_roun_mal_su_ollu=number_format((float)$s_roun_mal_su_ollu, 2, '.', '');
?>
|
if($company_name=="Siddhayoga Pharma")
{
?>
Proprietrix
}
else
{
?>
$grsnt1111=($Fetchnewww['amtTotal']-($s_roun));
$grsnt1111=number_format((float)$grsnt1111, 2, '.', '');?>
Rupees echo no_to_words($grsnt1111);?> only
}
?>
TOTAL : |
echo $sym;?> $grsnt=($Fetchnewww['amtTotal']-($s_roun));
echo $grsnt=number_format((float)$grsnt, 2, '.', '');?>
|
}
?>
}
?>
}
?>
if($contry!="India")
{
?>
Weight : |
echo $new_kilo_41;?> |
$order_tc_id =$rows_order['order_tc_id'];
?>
if($order_tc_id==0)
{
?>
Shipping : |
echo $sym;?>
if($contry=="India")
{
?>
$id;
if($id == 36)
{
$new_kilo_4=80;
echo $new_kilo_4=number_format((float)$new_kilo_4, 2, '.', '');
}
else
{
?>
if($id == 37)
{
$new_kilo_4=120;
echo $new_kilo_4=number_format((float)$new_kilo_4, 2, '.', '');
}
else
{
?>
$new_kilo_4=(($new_kilo_6+1)*$courier_fees);
echo $new_kilo_4=number_format((float)$new_kilo_4, 2, '.', '');
?>
}
}
}
else
{
?>
$new_kilo_4;
$de_id=$_REQUEST['id'];
if($de_id==8491907)
{
$new_kilo_4=69;
echo $new_kilo_4=number_format((float)$new_kilo_4, 2, '.', '');
}
else
{
echo $new_kilo_4=number_format((float)$new_kilo_4, 2, '.', '');
}
?>
}
?>
|
$packing_charges123;
if($contry!="India")
{
$packing_charges123=0;
$packing_charges=0;
}
if($packing_charges123>0)
{
?>
}
}
?>
function no_to_words($no)
{
$words = array('0'=> '' ,'1'=> 'One' ,'2'=> 'Two' ,'3' => 'Three','4' => 'Four','5' => 'Five','6' => 'Six','7' => 'Seven','8' => 'Eight','9' => 'Nine','10' => 'Ten','11' => 'Eleven','12' => 'Twelve','13' => 'Thirteen','14' => 'Fouteen','15' => 'Fifteen','16' => 'Sixteen','17' => 'Seventeen','18' => 'Eighteen','19' => 'Nineteen','20' => 'Twenty','30' => 'Thirty','40' => 'Fourty','50' => 'Fifty','60' => 'Sixty','70' => 'Seventy','80' => 'Eighty','90' => 'Ninty','100' => 'Hundred &','1000' => 'Thousand','100000' => 'Lakh','10000000' => 'Crore');
if($no == 0)
return ' ';
else {
$novalue='';
$highno=$no;
$remainno=0;
$value=100;
$value1=1000;
while($no>=100) {
if(($value <= $no) &&($no < $value1)) {
$novalue=$words["$value"];
$highno = (int)($no/$value);
$remainno = $no % $value;
break;
}
$value= $value1;
$value1 = $value * 100;
}
if(array_key_exists("$highno",$words))
return $words["$highno"]." ".$novalue." ".no_to_words($remainno);
else {
$unit=$highno%10;
$ten =(int)($highno/10)*10;
return $words["$ten"]." ".$words["$unit"]." ".$novalue." ".no_to_words($remainno);
}
}
}
?>
$order_tc_id;
if($order_tc_id==0)
{
?>
if($country_id==1)
{
$pun_do=Rupess;
}
else
{
$pun_do=dollars;
}
?>
$grsnt1111=($Fetchnewww['amtTotal']+$new_kilo_4+$packing_charges123);
$grsnt1111=number_format((float)$grsnt1111, 2, '.', '');?>
$sym1;?> echo no_to_words($grsnt1111);?> echo $pun_do;?> only
TOTAL :
|
echo $sym;?> $grsnt=($Fetchnewww['amtTotal']+$new_kilo_4+$packing_charges123);
echo $grsnt=number_format((float)$grsnt, 2, '.', '');?>
|
}
else
{
?>
$grsnt1111=($Fetchnewww['amtTotal']);
$grsnt1111=number_format((float)$grsnt1111, 2, '.', '');?>
echo $sym1;?> echo no_to_words($grsnt1111);?> only
TOTAL :
|
echo $sym;?> $grsnt=($Fetchnewww['amtTotal']);
echo $grsnt=number_format((float)$grsnt, 2, '.', '');?>
|
}
?>
}
?>
if($contry!="India")
{
?>
}
?>