if($genpath=='')
{
//$genpath =$_SERVER['HTTP_HOST']."/rtransecute/index.php?pd_name=$pd_name&pd_inr_amt=$pd_inr_amt&pd_euro_amt=$pd_euro_amt";
$genpath ="?pd_id=$pd_id";
}
//...function - start here
function getmicrotime1()
{
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
$time_start = getmicrotime1();
//...function - end here
if($flaginter!=1)
{
include_once "../rcontrol/config.php";
include_once "../rcommon/functions.php";
include_once "../rcommon/database.php";
}
//include_once "../mis/includes/config.inc.php";
$prd_query_chk = "select * from creditcard_payment_product where id = '$pd_id' and (visible = 'Y')";
$prd_result_chk = mysql_db_query($DATABASE,$prd_query_chk);
$prd_count_chk = mysql_num_rows($prd_result_chk);
//...Fetch the product details.....Start here............
$query_p_1 = "select * from creditcard_payment_product where id='$pd_id' and (visible = 'Y' or visible = 'y')";
$result_p_1 = mysql_db_query($DATABASE,$query_p_1) or die(mysql_error());
if(mysql_num_rows($result_p_1)!='')
{
$pd_name = mysql_result($result_p_1,$i,'prod_name');
$pd_inr_amt = mysql_result($result_p_1,$i,'prod_inr_price');
$pd_euro_amt = mysql_result($result_p_1,$i,'prod_euro_price');
}
//...Fetch the product details.....end here............
//...Fetch the current value of USD/ EURO.....Start here............
$query_2 = "select * from currency_rate order by id desc";
$result_2 = mysql_db_query($DATABASE,$query_2) or die(mysql_error());
if(mysql_num_rows($result_2)!='')
{
$usd_amt = round(mysql_result($result_2,$i,'usd_rate'),2);
$euro_amt = round(mysql_result($result_2,$i,'euro_rate'),2);
}
//...Fetch the current value of USD/ EURO.....End here............
$thecurrenttimestamp=mktime();
$yyyy = date("Y",$thecurrenttimestamp);
$mm = date("m",$thecurrenttimestamp);
$dd = date("d",$thecurrenttimestamp);
$hh = date("H",$thecurrenttimestamp);
$ii = date("i",$thecurrenttimestamp);
$thecurrenttimestamp = $yyyy.$mm.$dd.$hh.$ii;
$nameofcardowner = str_replace(" ","",$user);
$card_no = str_replace(",", "", $card_no);
$description=$contact_person."@".$prod_name."@".$thecurrenttimestamp;
$orderdescription = "YarnsandFibers"; //your script should substitute detailed description of your order here ( This field is not mandatory )
if($submit == 'submit')
{
$contact_person = trim($contact_person);
$street = trim($street);
$city = trim($city);
$state = trim($state);
$zip = trim($zip);
$telnocc = trim($telnocc);
$telno = trim($telno);
$emailaddr = trim($emailaddr);
if($contact_person=='') $error.= "Please enter your name on card
";
if($street=='') $error.= "Please enter street name
";
if($city=='') $error.= "Please enter city
";
if($state=='') $error.= "Please enter state
";
if($zip=='') $error.= "Please enter zip
";
if($telnocc=='') $error.= "Please enter 3 digits country telephone code
";
if($telno=='') $error.= "Please enter your telephone number
";
if($emailaddr =='')
$error .= "Please enter your e-mail address";
else
{
if(! ereg('^[a-zA-Z0-9_\.\-]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$', $emailaddr))
$error .= "Incorrect e-mail address, please try again
";
}
if(!$error)
{
if($c_symbol == 'EURO')
$inr_amount = $amount * $euro_amt;
elseif($c_symbol == 'USD')
$inr_amount =$amount * $usd_amt;
elseif($c_symbol == 'INR')
$inr_amount =$pd_inr_amt;
$query = "select * from `creditcard_payment_applied_nonmember` where contactperson = '$contact_person' and prod_name = '$pd_name' and inr_value = '$inr_amount' and description like '$description'";
$result = mysql_db_query($DATABASE,$query);
$count = mysql_num_rows($result);
if($count == '')
{
$query_1 = "INSERT INTO `creditcard_payment_applied_nonmember` ( `id` , `contactperson` , `street` , `city` , `state` , `zip` , `country_name` , `country_value` , `country_code` , `tel` , `email` , `description` , `orderdescription` , `inr_value` , `currencysymbol` , `eurousdamt` , `date` , `prod_name` ) VALUES ('', '$contact_person', '$street', '$city', '$state', '$zip', '$country_name', '$country_value', '$telnocc', '$telno', '$emailaddr', '$description','$orderdescription','$inr_amount', '$c_symbol', '$amount', NOW(), '$pd_name')";
$result_1 = mysql_db_query($DATABASE,$query_1);
}
else
{
$query_1 = "UPDATE `creditcard_payment_applied_nonmember` set
`contactperson` = '$contact_person', `street` = '$street',
`city` = '$city',
`state` ='$state',
`zip` ='$zip',
`country_name` = '$country_name',
`country_value` ='$country_value',
`country_code` = '$telnocc',
`tel` = '$telno',
`email` = '$emailaddr',
`description`='$description',
`orderdescription`='$orderdescription' ,
`inr_value` ='$inr_amount' ,
`currencysymbol` ='$c_symbol' ,
`eurousdamt` ='$amount' ,
`date` =NOW() ,
`prod_name`='$pd_name' where contactperson = '$contact_person' and prod_name = '$pd_name' and inr_value = '$inr_amount'";
$result_1 = mysql_db_query($DATABASE,$query_1);
}
$path = $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
include_once "checkout.php";
}
}
$thecurrenttimestamp=mktime();
$yyyy = date("Y",$thecurrenttimestamp);
$mm = date("m",$thecurrenttimestamp);
$dd = date("d",$thecurrenttimestamp);
$hh = date("H",$thecurrenttimestamp);
$ii = date("i",$thecurrenttimestamp);
$thecurrenttimestamp = $yyyy.$mm.$dd.$hh.$ii;
$description=pd_name."@".$thecurrenttimestamp;
//...Fetch the current value of USD/ EURO.....Start here............
$query_2 = "select * from currency_rate order by id desc";
$result_2 = mysql_db_query($DATABASE,$query_2) or die(mysql_error());
if(mysql_num_rows($result_2)!='')
{
$usd_amt = round(mysql_result($result_2,$i,'usd_rate'),2);
$euro_amt = round(mysql_result($result_2,$i,'euro_rate'),2);
}
$product_usd_amt = round(($pd_euro_amt * $euro_amt)/$usd_amt);
//...Fetch the current value of USD/ EURO.....End here............
?>
Your Online Subscription on YarnsandFibers
include "../rssi/topbanner.php"; ?>
|
include "../rssi/register_upgrade_homepg.php";
flush();
?>
|
|
RSS
Feed |
|
|
Subscribe
to Newsletter |
|
|
New
on YnFx |
include "../newonynfx/newonynfx_home.php";
flush();
?>
|
|
YnFx
Preferred Member |
include "../rssi/leftbanner_newhome.php";
flush();
?>
|
Visit
Polyesteronline.com |
|
|
Payment
Gateway |
|
if($prd_count_chk != 0) {
?>
}else echo " This product is not available at the moment.
Please contact us at Payment@YarnsandFibers.com for other schemes";?>
|
Note : The charges will be billed to your Credit Card / Bank Statement in Indian Rupee as Ez-comm wireless India Pvt Ltd at the prevailing exchange rate.
|
include "../rssi/bottombanner.php";
?>