Şuanki Dizin: /home/wwwdreamtechnolo/www/vsacademysolapur.in/student_pannel/ |
Şuanki Dosya : /home/wwwdreamtechnolo/www/vsacademysolapur.in/student_pannel/view-payment.php |
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); require_once("../admin/lib/functions.php"); $db = new login_function(); if(isset($_SESSION['current_login_student'])) { $current_login_students = $_SESSION['current_login_student']; } if(!isset($_SESSION['current_login_student'])) { header("location:login.php"); } $exam_id_get = ""; if(isset($_GET['exam_id_get'])){ $exam_id_get = $_GET['exam_id_get']; $_SESSION['exam_id_get'] = $exam_id_get; } $exam_id_get = $_SESSION['exam_id_get']; $flag = 0; if (isset($_GET['exam_id']) && isset($_GET['student_id'])) { $exam_id1 = $_GET['exam_id']; $student_id1 = $_GET['student_id']; $payment_status = 'Pending'; $amount = $db->get_exam_amount($exam_id1); $exam_name = $db->get_exam_name($exam_id1); $isexist = $db->get_exam_register($exam_id1, $student_id1); if ($isexist === false) { if ($db->add_exam_details_form($exam_id1, $student_id1, $payment_status, $amount)) { $flag = 1; echo '<script>alert("Successfully registered for the exam!");</script>'; $whatsapp_message = "*Vs-Academy* \n\n" . "Your Exam Registration is successful for *$exam_name*.\n\n" . "*Important Note* : Your Exam Registraion is Successful, Kindly Pay The Exam Fee to Confirm Your Registration \n\n" . "*Payment Details* \n" . "*Phonepay Number* : 9890112009\n" . "*UPI-ID* : samarthclassesssp-4@okhdfcbank\n\n" . "*Contact*\n" . "*Vs-Academy*\n" . "*Phone Number* : 9096655180 \n" . "*Address* : Paras Building, Near Hotel Zakas, Saat Rasta, Solapur \n"; $url = "http://api.iconicsolution.co.in/wapp/v2/api/send?apikey=be2623e1abf04e40a8685426fde5de49&mobile=$current_login_students&msg=".urlencode($whatsapp_message); $response = file_get_contents($url); } else { $flag = 3; echo '<script>alert("Failed to insert!");</script>'; } } else { $flag = 2; echo '<script>alert("Student Already Enrolled For Exam!");</script>'; } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width initial-scale=1.0"> <title>FEEDBACK DETAILS REPORT</title> <!-- GLOBAL MAINLY STYLES--> <link href="css/bootstrap.min.css" rel="stylesheet" /> <link href="css/font-awesome.min.css" rel="stylesheet" /> <link href="css/line-awesome.min.css" rel="stylesheet" /> <link href="css/themify-icons.css" rel="stylesheet" /> <link href="css/animate.min.css" rel="stylesheet" /> <link href="css/toastr.min.css" rel="stylesheet" /> <link href="css/bootstrap-select.min.css" rel="stylesheet" /> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css"> <!-- PLUGINS STYLES--> <!-- THEME STYLES--> <link href="css/main.min.css" rel="stylesheet" /> <link href="datatable/datatables.min.css" rel="stylesheet" /> <!-- PAGE LEVEL STYLES--> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> .col-md-12 { width:100%; margin:auto; margin-top:20px; } table,th { text-align:center; text-transform:uppercase; } table,td { text-align:left; text-transform:uppercase; } @media only screen and (max-width: 600px) { .col-md-12 { width:100%; } .alert { width:100%; } .side-row { width:49%; display:inline-table; } } .content-wrapper { position: relative; background-color: #f2f3fa; margin-left: 230px; padding: 0 15px 60px 15px; -webkit-transition: margin .2s ease-in-out; -o-transition: margin .2s ease-in-out; transition: margin .2s ease-in-out; min-height: 1400px; } .txt { text-align:left; color:#232B99; font-size:12px; margin-right:10px; font-weight:bold; height:40px; } .qr-code { text-align: center; margin: 20px 0; margin-right: 100px; } .qr-code h2 { font-size: 24px; margin-bottom: 10px; color: #007BFF; /* Highlight color for heading */ } .qr-code img { max-width: 80%; /* Ensures the image doesn't exceed the container's width */ border: 5px solid #ddd; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); height: 450px; /* Adjust height as needed */ width: 600px; /* Increase this value for more width */ margin-top:25px; } .download-btn { text-align: center; margin-bottom: 55px; } .download-btn a { text-decoration: none; color: #fff; background-color: #28a745; padding: 10px 20px; border-radius: 5px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); transition: background-color 0.3s ease; } .download-btn a:hover { background-color: #218838; } .pay-message { text-align: center; margin-top: 20px; font-size: 16px; background-color: #fff; padding: 15px; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); } .pay-message span { color: #ff4500; font-weight: bold; } hr { border: 1px solid #000; width: 100%; margin: 20px 0; } .container1 { display: flex; } .container { width:40%; gap:0px; margin-left: 400px; padding: 20px; background-color: #fff; /* White background for the container */ border-radius: 8px; /* Rounded corners */ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */ } h1 { text-align: center; margin-bottom: 20px; /* Space below the heading */ color: #333; /* Dark text color for the heading */ } .exam-table { display: flex; flex-direction: column; border-collapse: collapse; /* Ensure borders are collapsed */ width: 100%; /* Full width of the container */ } .exam-table-header, .exam-table-row { display: flex; justify-content: space-between; padding: 10px; border-bottom: 1px solid #ddd; /* Light border for separation */ } .exam-table-header { background-color: #f4f4f4; /* Light gray background for the header */ font-weight: bold; } .exam-table-cell { flex: 1; /* Equal space for each cell */ text-transform: capitalize; margin: 0 5px; /* Spacing between cells */ } .exam-table-cell:nth-child(odd) { background-color: #f9f9f9; /* Alternating row color for better readability */ } .exam-table-cell:first-child { width: 30%; /* Adjust width of labels */ } .exam-table-cell:last-child { width: 70%; /* Adjust width of values */ } @media (max-width: 768px) { .exam-table-header, .exam-table-row { flex-direction: column; align-items: flex-start; } .exam-table-cell { width: 100%; /* Full width on smaller screens */ margin-bottom: 10px; /* Space between rows */ } } .amount-title { font-size:25px; font-weight:800; color:green; } .card { background: white; border-radius: 8px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); max-width: 800px; width: 100%; padding: 20px; box-sizing: border-box; text-align: center; } .card-title { margin: 0; font-size: 1.7em; font-weight:600; color: red; } .card-content { margin-top: 20px; } .instruction-list { list-style-type: decimal; padding-left: 20px; text-align: left; } .instruction-item { margin-bottom: 10px; font-size: 1em; color: #000; font-weight:600; } .btn-secondary { background-color: #ff6f61; /* Light pink color */ font-size:24px; border-radius:8px; color:white; } .btn-secondary:hover { background-color: #e55a50; color:white; } </style> <link href="css/animate.css" rel="stylesheet" type="text/css" media="all"> <script src="js/wow.min.js"></script> </head> <body> <?php include('header.php'); ?> <?php include('side-bar.php'); ?> <br> <center> </center> <br> <div class="container1"> <div class="container"> <h1>Exam Details</h1> <h2 class="card-title">-: Important Instructions :-</h2> <div class="card-content"> <ol class="instruction-list"> <li class="instruction-item">Click "Register For Exam" Button To Participate In Exam.</li> <li class="instruction-item">After Registration You Need To Pay Exam Fees On Given Payment Details..</li> <li class="instruction-item">After Payment You Need To Send This Payment Screenshot on +91 9096655180 This Whatsapp Number.</li> <li class="instruction-item">After Exam Fees Payment, Admin Will Approve Your Registration And Then You Can Download your Exam Hall Ticket.</li> <li class="instruction-item">Exam Hall Ticket Is Mandatory At Exam Center.</li> </ol> </div> <div class="pay-message"> <p>Please Send Your Payment Screenshot And Student Name to This Whatsapp Number: Vivek Patil Sir - <span>+91 9096655180</span></p> </div> <br> <?php $report_details = $db->get_exam_details_for_payment($exam_id_get); if (!empty($report_details)) { foreach ($report_details as $record) { // Extract data from the record $id = $record[0]; $exam_name = $record[1]; $subject = $record[2]; $instruction = $record[3]; $other_des = $record[4]; $total_marks = $record[5]; $exam_date = $record[6]; $exam_time = $record[7]; $start_time = $record[8]; $end_time = $record[9]; $status = $record[10]; $date = $record[11]; $time = $record[12]; $amount = $record[13]; $exam_desc = $record[16]; ?> <center><div class="amount-title">Exam Fees : <span style="color:orange;margin-left:20px"><?php echo htmlspecialchars($amount); ?></span></div></center><br> <div class="exam-table"> <div class="exam-table-header"> <div class="exam-table-cell">Field</div> <div class="exam-table-cell">Details</div> </div> <div class="exam-table-row"> <div class="exam-table-cell">Exam Name:</div> <div class="exam-table-cell" style="text-transform: uppercase;"><?php echo htmlspecialchars($exam_name); ?></div> </div> <div class="exam-table-row"> <div class="exam-table-cell">Subject:</div> <div class="exam-table-cell"><?php echo htmlspecialchars($subject); ?></div> </div> <div class="exam-table-row"> <div class="exam-table-cell">Instructions:</div> <div class="exam-table-cell"><?php echo htmlspecialchars($instruction); ?></div> </div> <div class="exam-table-row"> <div class="exam-table-cell">Other Details:</div> <div class="exam-table-cell"><?php echo htmlspecialchars($other_des); ?></div> </div> <div class="exam-table-row"> <div class="exam-table-cell">Total Marks:</div> <div class="exam-table-cell"><?php echo htmlspecialchars($total_marks); ?></div> </div> <div class="exam-table-row"> <div class="exam-table-cell">Exam Date:</div> <div class="exam-table-cell"><?php echo htmlspecialchars($exam_date= date("d-m-Y",strtotime($exam_date))."-".$exam_desc); ?></div> </div> <div class="exam-table-row"> <div class="exam-table-cell">Exam Time:</div> <div class="exam-table-cell"><?php echo htmlspecialchars($exam_time); ?></div> </div> <div class="exam-table-row"> <div class="exam-table-cell">Start Time:</div> <div class="exam-table-cell"><?php echo htmlspecialchars($start_time); ?></div> </div> <div class="exam-table-row"> <div class="exam-table-cell">End Time:</div> <div class="exam-table-cell"><?php echo htmlspecialchars($end_time); ?></div> </div> </div> </div> <?php } } else { echo "<p>No data found.</p>"; } ?> <div class="qr-code"> <h2>Scan to Pay</h2> <!-- <h2>Amount : </h2><?php echo $amount; ?> --> <div class="pay-message" style="width:475px;margin-left:60px" > <p>Upi - ID : <span> samarthclassesssp-4@okhdfcbank</span></p> </div> <img src="logo/qr (2).jpeg" alt="QR Code for Payment" style="height:500px"> <br> <br> <div class="download-btn"> <a href="logo/qr (2).jpeg" download>Download QR code</a> </div> <?php $isexist = $db->get_exist_status_for_hall_ticket($id, $current_login_students); $payment_status = $db->get_payment_status_for_hall_ticket($id,$current_login_students); $exam_status = $db->get_status_for_hall_ticket(); if (empty($isexist)) { ?> <div class="download-btn"> <a onclick="return confirm('Are you sure? You want to Enroll in the Exam');" href="view-payment.php?exam_id=<?php echo htmlspecialchars($id); ?>&student_id=<?php echo htmlspecialchars($current_login_students); ?>" style="background-color:#ff6f61"> Register For Exam </a> </div> <?php } else { if ($exam_status == 'on' && $payment_status == 'Approve') { ?> <a class="btn btn-secondary" href="print_hall_ticket.php?exam_id=<?php echo htmlspecialchars($id); ?>&student_id=<?php echo htmlspecialchars($current_login_students); ?>"> View Hall Ticket </a><br><br> <p class="alert alert-success">Your Payment is Approved</p> <?php } if ($payment_status == 'Pending') { ?> <p class="alert alert-danger">Your Payment is Pending</p> <?php } if ($exam_status == 'off' && $payment_status == 'Approve' ) { ?> <p class="alert alert-info">Hall ticket will be generated soon, please wait.</p> <p class="alert alert-success">Your Payment is Approved</p> <?php } if ($exam_status == 'off' && $payment_status == 'Pending ' ) { ?> <p class="alert alert-info">Hall ticket will be generated soon, please wait.</p> <p class="alert alert-danger">Your Payment is Pending</p> <?php } } ?> </div> </div> </div> </div> <br> <!-- END PAGA BACKDROPS--> <!-- New question dialog--> <!-- End New question dialog--> <!-- QUICK SIDEBAR--> <script src="js/jquery.min.js"></script> <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> <link rel="stylesheet" href="/resources/demos/style.css"> <script src="https://code.jquery.com/jquery-1.12.4.js"></script> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> <script> $( function() { $( "#from_date" ) .datepicker({ dateFormat: 'dd-mm-yy' }) ; $( "#to_date" ) .datepicker({ dateFormat: 'dd-mm-yy' }) ; } ) ; </script> <script src="js/popper.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/metisMenu.min.js"></script> <script src="js/jquery.slimscroll.min.js"></script> <script src="js/idle-timer.min.js"></script> <script src="js/toastr.min.js"></script> <script src="js/jquery.validate.min.js"></script> <script src="js/bootstrap-select.min.js"></script> <!-- PAGE LEVEL PLUGINS--> <!-- CORE SCRIPTS--> <script src="datatable/datatables.min.js"></script> <script src="js/app.min.js"></script> <script> $(function() { $('#example').DataTable({ pageLength: 500, fixedHeader: true, responsive: true, "sDom": 'rtip', columnDefs: [{ targets: 'no-sort', orderable: false }] }); var table = $('#example').DataTable(); $('#key-search').on('keyup', function() { table.search(this.value).draw(); }); }); </script> <!-- PAGE LEVEL SCRIPTS--> </body> </html>
Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4