Mini Shell
<?php
require_once('function-file.php');
require_once('function-menu.php');
require_once('function-testo-footer.php');
require_once("config.php");
$qCode = $_GET["qcd"];
if(isset($qCode)){
$checkPayIdQcode = mysqli_query($connt, "SELECT * FROM payments WHERE txnid='".$qCode."'");
$countRwQcode = mysqli_num_rows($checkPayIdQcode);
if($countRwQcode > 0){
?>
<link href="https://fonts.googleapis.com/css?family=Heebo|Raleway:500|Roboto+Condensed&display=swap" rel="stylesheet">
<style>
body{
font-family: 'Heebo', sans-serif !important;
}
.success-comp{
margin-top: 40px;
}
.txt-cont{
margin-top: 50px;
text-align: center;
padding: 0px 260px;
}
.txt-cont p{
font-size: 16px;
line-height: 26px;
}
@media screen and (max-width: 768px){
.logo, .logo img{
width: 100%;
}
.txt-cont{
padding: 10px;
}
}
</style>
<div class="container" style="max-width:1200px;width:100%;margin-left:auto;margin-right:auto;">
<div class="success-comp">
<div class="logo" style="text-align: center;">
<img src="http://development.lankavirtualacademy.com/images/mail/mail_logo_v2.png" alt="LOGO">
</div>
<div class="txt-cont">
<p>කණගාටුයි, අපගේ වාර්තාවෙන් පෙනී යන්නේ මේ වන විටත් ඔබ Lanka Virtual Academy ආයතනයෙහි ලියාපදිංචි සාමාජිකයෙකු බවයි.
ඔබට අපගෙන් කිසියම් උපකාරයක් අවශ්ය නම් හෝ කිසියම් තොරතුරක් දැන ගැනීමට අවශ්ය නම් 011 599 89 89 හෝ 077 442 95 17 යන දුරකථන අංකවලට අමතන්න.
</p>
</div>
<div class="txt-cont">
<p>மன்னிக்கவும், எங்களது பதிவுகளின் படி நீங்கள் ஏற்கனவே Lanka Virtual Academy யின் பதிவுசெய்யப்பட்ட ஓர் உறுப்பினர்.
தேவை இருப்பின் விபரங்களுக்கு 011 599 8989 அல்லது 077 442 9517 ஆகிய தொலைபேசி இலக்கங்களை தொடர்புகொள்ளவும்.</p>
</div>
<div class="txt-cont">
<p>Sorry, our record shows that you are already a registered member of Lanka Virtual Academy.</p>
<p>If you need any assistance please feel free to call us at 011 599 89 89 or 077 442 9517.</p>
<p><strong>The Administration</strong><br/><strong>Lanka Virtual Academy</strong></p>
</div>
</div>
</div>
<?php
}
else{
if(isset($_GET["usf"])){
$userID = $_GET["usf"];
$getUserInfo = mysqli_query($connt, "SELECT * FROM student_reg WHERE stu_id='".$userID."' ");
$res = mysqli_fetch_assoc($getUserInfo);
$getCourseInfo = mysqli_query($connt, "SELECT * FROM courses WHERE course_id='".$res["course_id"]."'");
$crsRes = mysqli_fetch_assoc($getCourseInfo);
$finalAmount = $crsRes['course_fees'];
if($crsRes['discount'] !== '0'){
$pcnt = $crsRes['discount'];
$prc = $crsRes['course_fees'];
$deduct = ($prc / 100) * $pcnt;
$finalAmount = $prc - $deduct;
$dscountStatus = 1;
}
else{
$dscountStatus = 0;
}
$urlPera = 'reg='.$res["reg_code"].'&q1='.$res["stu_id"].'&q2='.$res["course_id"].'&q3='.$finalAmount; // URL perameter
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Pay Hrere</title>
<?php commoncss();?>
<link href="https://fonts.googleapis.com/css?family=Heebo|Raleway:500|Roboto+Condensed&display=swap" rel="stylesheet">
<style>
body{
font-family: 'Heebo', sans-serif !important;
}
.logo{
position: relative;
width: 450px;
background-color: #f3f3f3;
margin-left: auto;
margin-right: auto;
margin-top: 30px;
border-radius: 5px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-o-border-radius: 5px;
border: 1px solid #e0e0e0;
}
.logo img{
width: 100%;
}
.payment-component{
width: 100%;
margin-top: 10px;
margin-bottom: 50px;
}
.payment-component .p-comp-inner{
width: 450px;
padding: 0px;
margin-left: auto;
margin-right: auto;
}
.payment-component .sets{
width: 450px;
padding: 10px;
background-color: #f3f3f3;
border-radius: 5px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-o-border-radius: 5px;
border: 1px solid #e0e0e0;
margin-bottom: 10px;
}
.payment-component .sets .inp{
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: 5px;
margin-bottom: 5px;
font-size: 16px;
border-bottom: 1px solid #ddd;
}
.payment-component .sets h4{
padding-bottom: 10px;
}
.payment-component .sets input{
border: 1px solid #ddd;
padding: 5px;
background-color: #fff;
}
.payment-component .p-comp-inner .upper-set{
width: 100%;
height: 60px;
font-size: 18px;
font-weight: 400;
color: #000;
background-color: #f3f3f3;
border: 1px solid #e0e0e0;
padding: 20px;
letter-spacing: 0.5px;
text-align: center;
border-radius: 5px 5px 0px 0px;
-webkit-border-radius: 5px 5px 0px 0px;
-moz-border-radius: 5px 5px 0px 0px;
-o-border-radius: 5px 5px 0px 0px;
}
.payment-component .liset{
border-radius: 0px 0px 5px 5px;
-webkit-border-radius: 0px 0px 5px 5px;
-moz-border-radius: 0px 0px 5px 5px;
-o-border-radius: 0px 0px 5px 5px;
}
.setbtn button{
background-color: transparent;
position: relative;
border: none;
text-align: center;
margin-left: auto;
margin-right: auto;
}
/*
.iconsbtn{
background-image: url('https://www.payhere.lk/downloads/images/payhere_long_banner.png');
background-size: 100%;
background-position: -115px center;
background-color: transparent !important;
background-repeat: no-repeat;
height: 40px;
width: 400px;
position:absolute;
transform: translate(17%, 0px);
-webkit-transform: translate(17%, 0px);
-moz-transform: translate(17%, 0px);
-o-transform: translate(17%, 0px);
}
*/
.iconsbtn-cont{
width: 100%;
}
.iconsbtn-cont img{
width: 100%;
}
.setbtn .btn1{
width: 200px;
height: 50px;
background-color: #0377d6;
margin-bottom: 15px;
padding: 15px 10px;
color: #fff;
border-radius: 5px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-o-border-radius: 5px;
font-size: 18px;
transition: .2s;
-webkit-transition: .2s;
-moz-transition: .2s;
-o-transition: .2s;
outline: none;
box-shadow: 0px 1px 3px #3ecfff, 0px 5px 10px rgba(255,255,255,0.3) inset;
border: 1px solid #0a70a7;
margin-left: auto;
margin-right: auto;
transform: translate(56%, 0px);
-webkit-transform: translate(56%, 0px);
-moz-transform: translate(56%, 0px);
-o-transform: translate(56%, 0px);
}
.setbtn .btn1:hover{
background-color: #094795;
}
@media screen and (max-width: 768px){
.logo, .payment-component .p-comp-inner, .payment-component .sets{
width: 100%;
}
.iconsbtn-cont{
width: 100%;
}
.iconsbtn-cont img{
width: 100%;
}
.setbtn .btn1{
transform: translate(40%, 0px);
-webkit-transform: translate(40%, 0px);
-moz-transform: translate(40%, 0px);
-o-transform: translate(40%, 0px);
}
}
</style>
</head>
<body>
<div class="container">
<div class="logo">
<img src="http://development.lankavirtualacademy.com/images/mail/mail_logo_v2.png" alt="LOGO">
</div>
<div class="payment-component">
<div class="p-comp-inner">
<div class="d1 upper-set">
<strong>Order Summary</strong>
</div>
<div class="d2">
<form method="post" action="https://www.payhere.lk/pay/checkout">
<input type="hidden" name="merchant_id" value="214071"> <!-- Replace your Merchant ID -->
<input type="hidden" name="return_url" value="https://www.lankavirtualacademy.com/payherertn.php?<?php echo $urlPera; ?>">
<input type="hidden" name="cancel_url" value="https://www.lankavirtualacademy.com/payhere_cancel.php">
<input type="hidden" name="notify_url" value="https://www.lankavirtualacademy.com/payhere_notify.php">
<div class="sets">
<h4>Subscription Details</h4>
<div class="inp" style="border-top:1px solid #ddd;padding-top:7px;">
<label for="">Course Name</label>
<p><?php echo $crsRes["course_name"]; ?></p>
</div>
<div class="inp">
<label for="">Subscription Fees</label>
<p><?php echo $crsRes["course_fees"]; ?></p>
</div>
<?php
if($dscountStatus == 1){
?>
<div class="inp">
<label for="">Discount</label>
<p><?php echo $crsRes["discount"]."%"; ?></p>
</div>
<div class="inp">
<label for="">Amount Payable</label>
<p><?php echo $finalAmount; ?></p>
</div>
<?php
}
?>
<div class="inp">
<label for="">Course Duration</label>
<p>1 Year (Full Syllabus)</p>
</div>
</div>
<div class="sets">
<h4>Student Details</h4>
<div class="inp" style="border-top:1px solid #ddd;padding-top:7px;">
<label for="">Student Name</label>
<p><?php echo $res["stu_name"]." ".$res["parent_name"]; ?></p>
</div>
<div class="inp">
<label for="">Student ID</label>
<p><?php echo $res["stu_id"]; ?></p>
</div>
<div class="inp">
<label for="">Email Address</label>
<p><?php echo $res["stu_email"]; ?></p>
</div>
<div class="inp">
<label for="">Contact Number</label>
<p><?php echo $res["stu_phone"]; ?></p>
</div>
<input type="hidden" name="order_id" value="<?php echo $res["stu_id"]; ?>">
<input type="hidden" name="items" value="<?php echo $crsRes["course_name"]; ?>">
<input type="hidden" name="currency" value="LKR">
<input type="hidden" name="amount" value="<?php echo $finalAmount; ?>">
<input type="hidden" name="first_name" value="<?php echo $res["stu_name"]; ?>">
<input type="hidden" name="last_name" value="<?php echo $res["parent_name"]; ?>">
<input type="hidden" name="email" value="<?php echo $res["stu_email"]; ?>">
<input type="hidden" name="phone" value="<?php echo $res["stu_phone"]; ?>">
<input type="hidden" name="address" value="<?php echo $res["city"]; ?>">
<input type="hidden" name="city" value="<?php echo $res["city"]; ?>">
<input type="hidden" name="country" value="Sri Lanka">
</div>
<div class="sets setbtn">
<button type="submit" class="btn1">Pay Now</button>
<div class="iconsbtn-cont">
<img src="img/pay_icn.png" alt="">
</div>
</div>
</form>
</div>
</div> <!-- Inner End /-->
</div> <!-- payment-component End /-->
</div> <!-- Cntainer End /-->
<?php
}
else{
header("location: index.php");
}
}
}
?>
Zerion Mini Shell 1.0