Domain: amberpublishers.in
Server Adress: 86.38.243.169
privdayz.com
<?php
session_start();
require('PHPHelper.php');
if (isset($_POST['submit'])) {
$full_name = realEscape('full_name');
$mobile = realEscape('mobile');
$email = realEscape('email');
$sr_no = realEscape('sr_no');
$reason = realEscape('reason');
$stu_name = realEscape('stu_name');
$roll_no = realEscape('roll_no');
$enroll_no = realEscape('enroll_no');
$coc = $_FILES['coc']['name'];
$coc_tmp = $_FILES['coc']['tmp_name'];
$date = date('d-F-Y');
$time = date('g:i A');
if (file_format($coc, $img_format)) {
$new_file_name = new_fileName($coc);
$insert = "INSERT INTO `marksheet_veri_req`(`stu_name`,`roll_no`,`enroll_no`, `name`, `mobile`, `email`, `srno`, `file`, `reason`, `date`, `time`,`status`)
VALUES ('$stu_name','$roll_no','$enroll_no', '$full_name','$mobile','$email','$sr_no','$new_file_name','$reason','$date','$time','Unverified')";
if (mysqli_query($conn, $insert)) {
move_uploaded_file($coc_tmp, 'Files/certi_verification/' . $new_file_name);
SuccessFun('Your Request has been submitted successfully. ');
} else {
DangerFun('Failed to submit your request. Please try again later');
}
} else {
DangerFun('Invalid File Format');
}
}
if (isset($_POST['track_application'])) {
$track_email = realEscape('email');
$_SESSION['track_application_email'] = $track_email;
echo "<script>
if (window.history.replaceState) {
window.history.replaceState(null, null, window.location.href)
}
</script>";
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Apply For Certificate Verification</title>
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Aldrich' rel='stylesheet'>
<link href="css/main.css" rel="stylesheet">
<!-- Favicons -->
<link rel="icon" href="./img/favicon/favicon.ico" type="image/x-icon" />
<link rel="apple-touch-icon" sizes="180x180" href="./img/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="./img/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="./img/favicon/favicon-16x16.png">
<link href="vendor/datatables/dataTables.bootstrap4.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="https://unpkg.com/swiper/swiper-bundle.min.css" />
<link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />
<link href="css/Custom.css" rel="stylesheet">
</head>
<body>
<div class="container-fluid bg-white">
<div class="row">
<div class="col-12 shadow">
<div class="row">
<div class="col-md-6 col-12">
<div class="w-100 p-3">
<a href=""> <img src="img/kmclu-logo.png" class="w-100"></a>
</div>
</div>
</div>
</div>
</div>
</div>
<section class="container mt-5 mb-5">
<div class="row shadow py-3 rounded mb-3">
<div class="col-12 mb-3">
<h5 class="text-primary" style="font-size: 15px;">Track Your Application</h5>
<form method="post">
<div class="row">
<div class="col-md-6 mb-3">
<input type="email" name="email" placeholder="Enter Your Email" value="<?php echo (isset($_SESSION['track_application_email']) ? $_SESSION['track_application_email'] : "") ?>" class="form-control" required>
</div>
<div class="col-md-6 mb-3">
<button type="submit" name="track_application" class="btn btn-primary">Check</button>
</div>
</div>
</form>
</div>
<div class="col-12">
<?php
if (isset($_SESSION['track_application_email'])) {
$getAppliationData = mysqli_query($conn, "SELECT * FROM `marksheet_veri_req` where email = '$_SESSION[track_application_email]'");
if (mysqli_num_rows($getAppliationData) > 0) {
?>
<table class="table table-bordered w-100">
<thead class="table-primary">
<tr>
<th class="text-center text-nowrap">Student Name</th>
<th class="text-center text-nowrap">Roll No.</th>
<th class="text-center text-nowrap">Enroll. No.</th>
<th class="text-center text-nowrap">Certificate Sr.No.</th>
<th class="text-center text-nowrap">Fee</th>
<th class="text-center text-nowrap">Application Status</th>
</tr>
</thead>
<tbody>
<?php
while ($getAppliationData_f = mysqli_fetch_assoc($getAppliationData)) {
if ($getAppliationData_f['fee'] == 0) {
$fees = "
<form method='POST' action='https://www.kmcluerp.in/fees-portal/srcadmis/srcadmisdata.php'>
<input type='hidden' name='api_key' value='HASH669SRC'>
<input type='hidden' name='roll_number' value='$getAppliationData_f[roll_no]'>
<input type='hidden' name='student_name' value='$getAppliationData_f[stu_name]'>
<input type='hidden' name='course_fee' value='500'>
<input type='hidden' name='enrollment_number' value='$getAppliationData_f[enroll_no]'>
<input type='hidden' name='fee_type' value='Certificate Verification'>
<button type='submit' name='paynow' class='btn btn-info'>Pay Now</button>
</form>
";
} else {
$fees = $getAppliationData_f['fee'];
}
echo "
<tr>
<td class='text-center'>$getAppliationData_f[stu_name]</td>
<td class='text-center'>$getAppliationData_f[roll_no]</td>
<td class='text-center'>$getAppliationData_f[enroll_no]</td>
<td class='text-center'>$getAppliationData_f[srno]</td>
<td class='text-center'>$fees</td>
<td class='text-center'>$getAppliationData_f[status]</td>
</tr>
";
}
?>
</tbody>
</table>
<?php
} else {
echo "
<h5 class='text-danger'> No Application Found </h5>
";
}
?>
<?php
}
?>
</div>
</div>
<div class="row bg-white shadow">
<div class="col-md-5 col-12 p-0 m-0" style="background-color: #40bfae;">
<div class="d-flex justify-content-center align-items-center w-100 h-100">
<img src="img/stu-verification.jpg" class="w-100">
</div>
</div>
<div class="col-md-7 col-12">
<div class="pt-5 pb-5 pl-2 pr-2">
<form method="POST" enctype="multipart/form-data">
<div class="row">
<div class="col-12 mb-3 text-center">
<h3 class="label-color font-weight-bold">Certificate Verification</h3>
</div>
<div class="col-12">
<p> <b class="text-danger">Note :</b> All fields are mendatory</p>
</div>
<div class="col-md-6 col-12 mb-3">
<label class="form-label label-color">Student Name</label>
<input type="text" name="stu_name" class="form-control" required placeholder="Student Name">
</div>
<div class="col-md-6 col-12 mb-3">
<label class="form-label label-color">Student Roll Number</label>
<input type="number" name="roll_no" class="form-control" required placeholder="Student Roll Number">
</div>
<div class="col-md-6 col-12 mb-3">
<label class="form-label label-color">Student Enrollement Number</label>
<input type="text" name="enroll_no" class="form-control" required placeholder="Student Enrollement Number">
</div>
<div class="col-md-6 col-12 mb-3">
<label class="form-label label-color">Certificate Serial Number</label>
<input type="number" name="sr_no" class="form-control" required placeholder="Serial Number">
</div>
<div class="col-md-6 col-12 mb-3">
<label class="form-label label-color">Your Full Name</label>
<input type="text" name="full_name" class="form-control" required placeholder="Enter Your Full Name">
</div>
<div class="col-md-6 col-12 mb-3">
<label class="form-label label-color">Your Contact Number</label>
<input type="number" name="mobile" class="form-control" required placeholder="Contact Number">
</div>
<div class="col-md-6 col-12 mb-3">
<label class="form-label label-color"> Your Email Address</label>
<input type="email" name="email" class="form-control" required placeholder="Email Address">
</div>
<div class="col-12 mb-3">
<label class="form-label label-color">Copy Of Marksheet</label>
<input type="file" name="coc" accept="image/*" class="form-control" required>
</div>
<div class="col-12 mb-3">
<label class="form-label label-color">Reason</label>
<textarea name="reason" class="form-control" required></textarea>
</div>
<div class="col-12 mb-3 text-center">
<button type="submit" name="submit" class="btn btn-info pl-5 pr-5">Submit</button>
</div>
</div>
</form>
</div>
</div>
</div>
</section>
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js?v=<?php echo time() ?>"></script>
<script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script>
<script src="js/countdowntimer.js"></script>
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script src="js/custom.js"></script>
</body>
</html>
