Şuanki Dizin: /home/wwwdreamtechnolo/public_html/vsacademysolapur.in/admin/ |
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/vsacademysolapur.in/admin/assign_center.php |
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); require_once("lib/functions.php"); $db = new login_function(); $flag = 0; $success_msg = 0; if(isset($_SESSION['current_login_admin'])) { $current_login_admin = $_SESSION['current_login_admin']; } if(!isset($_SESSION['current_login_admin'])) { header("location:index.php"); } $exam_id1 = ""; if(isset($_GET['exam_id'])){ $exam_id1 = $_GET['exam_id']; $_SESSION['exam_id'] = $exam_id1; } $exam_id1 = $_SESSION['exam_id']; if (isset($_GET['exam_id']) && isset($_GET['studen_id']) && isset($_GET['status'])) { $exam_id = $_GET['exam_id']; $student_id = $_GET['studen_id']; $status = $_GET['status']; if ($status === 'Approve' || $status === 'Pending') { if ($db->set_request_status_block($exam_id, $student_id, $status)) { echo '<script>alert("Status updated successfully");</script>'; } else { echo '<script>alert("Failed to update status");</script>'; } } else { echo '<script>alert("Invalid status");</script>'; } } // $recorded_data = array(); // $recorded_data = $db-> get_student_addmission_for_hall_ticket1($student_id); // if(!empty($recorded_data)) // { // $id =$recorded_data[0]; // $candidate_full_name =$recorded_data[1]; // $parent_full_name =$recorded_data[2]; // $mother_name =$recorded_data[3]; // $permant_address =$recorded_data[4]; // $school_name =$recorded_data[5]; // $select_school_type =$recorded_data[6]; // $select_school_medium =$recorded_data[7]; // $last_year_per =$recorded_data[8]; // $adhar_no =$recorded_data[9]; // $date_of_brith =$recorded_data[10]; // $parants_mobile_no =$recorded_data[11]; // $gender =$recorded_data[12]; // $photo =$recorded_data[13]; // $marshit =$recorded_data[14]; // $laguage_for_exam =$recorded_data[15]; // $signature_parent =$recorded_data[16]; // $date =$recorded_data[17]; // $time =$recorded_data[18]; // $standard =$recorded_data[19]; // $signature_student =$recorded_data[20]; // } if(isset($_POST['add'])) { $center_id = $_POST['center_id']; $exam_id = $exam_id1; if(isset($_POST['assign_student_id'])) { foreach($_POST['assign_student_id'] as $student_id) { $isexist = $db->get_assigned_student_Exist($exam_id,$student_id); if ($isexist == "") { if($db->add_multiple_center_data($center_id,$exam_id,$student_id)) { $success_msg = 1; } } } } } ?> <!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>Create Exam 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--> <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; } </style> <link href="css/animate.css" rel="stylesheet" type="text/css" media="all"> <script src="js/wow.min.js"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> </head> <body class="fixed-navbar"> <div class="page-wrapper"> <?php include('header.php'); ?> <?php include('side-bar.php'); ?> <div class="content-wrapper"> <div class="page-content fade-in-up"> <?php if($success_msg == 1) { ?> <div class="alert alert-success"> Center Assigned Successfully. </div> <?php } if($success_msg == 2) { ?> <script type="text/javascript"> alert("Registration Approved Successfully."); </script> <?php } ?> <form class="form-pink" method="post" action="<?php echo $_SERVER['PHP_SELF']?>" name="myForm" onsubmit="return validateForm()" autocomplete="off" enctype="multipart/form-data"> <div class="ibox" style="border-radius:5px; padding:7px;"> <div class="ibox-body" style="padding:7px; padding-top:0px;"> <div class="ibox-head"> <div class="ibox-title"><i class="fas fa-user-tie" style="margin-right:10px;"></i>Assign Center Report</div> </div> <br /> <div class="col-lg-3"> <div class="form-group"> <label class="form-label">Select Center</label> <select name="center_id" class="form-control" id="project_list"> <option value="Select"> Select Center </option> <?php $data = array(); $data = $db->get_center_details(); $counter = 1; if(!empty($data)) { foreach($data as $record) { $res_id = $record[0]; $center_name = $record[1]; ?> <option value="<?php echo $res_id; ?>"><?php echo $center_name; ?></option> <?php } } ?> </select> </div> </div> <div class="table-responsive row"> <table class="table table-bordered table-hover" id="example" style="overflow-x:auto;overflow-y:auto;" cellpadding=0 cellspacing=0> <thead class="thead-default thead-lg"> <tr> <th>Sr No</th> <th>Select Students</th> <th>Exam Name</th> <th>Exam Date</th> <th>Student Name</th> <th>Student Mobile Number</th> <th>Payment Status</th> <th>Payment Amount</th> <th>Description</th> <th>Date</th> <th>Time</th> </tr> </thead> <tbody> <?php $report_details = $db->get_student_details_enrolled($exam_id1); if (!empty($report_details)) { $counter = 0; foreach ($report_details as $record) { $id = $report_details[$counter][0]; $exam_id = $report_details[$counter][1]; $student_id = $report_details[$counter][2]; $payment_status = $report_details[$counter][3]; $payment_amount = $report_details[$counter][4]; $description = $report_details[$counter][5]; $date = $report_details[$counter][6]; $time = $report_details[$counter][7]; $exam_name = $db->get_exam_name_by_id($exam_id); $exam_date = $db->get_exam_date_by_id($exam_id); $student_name = $db->get_student_name_by__id($student_id); $student_no = $db->get_student_mobile_by__id($student_id); $center_id = $db->get_center_name_by__id($exam_id,$student_id); $isexist1 = $db->get_exist_assigned_user($exam_id,$student_id); ?> <tr class="odd gradeX"> <td><?php echo $counter + 1; ?></td> <td><input style="height:20px;width:20px" type="checkbox" name="assign_student_id[]" value="<?php echo $student_id; ?>" <?php if($isexist1!=""){ ?> checked <?php } ?>></td> <td><?php echo $exam_name; ?></td> <td><?php echo $exam_date; ?></td> <td><?php echo $student_name; ?></td> <td><?php echo $student_no; ?></td> <td><?php echo $payment_status; ?></td> <td><?php echo $payment_amount; ?></td> <td><?php echo $description; ?></td> <td><?php echo $date; ?></td> <td><?php echo $time; ?></td> <!-- <td class="center"><a href="enrolled_student_for_exam.php?exam_id=<?php echo $id;?>" style="color: blue;">Verify / Pending</a></td> --> </tr> <?php $counter++; } } else { ?> <tr> <td colspan="12">No Data Found..</td> </tr> <?php } ?> </tbody> </table> <div class="col-sm-12 form-group mb-12" style="text-align:center; padding-left:0px; padding-right:0px; padding-top:20px;"> <div class="col-sm-4 form-group mb-4" style="margin:auto;"> <input style="font-size: 16px;" type="submit" name="add" class="btn btn-primary" value="Assign"> <!-- <button class="btn btn-pink btn-air" type="submit" name="add" style="width:50%;"><a href="assign_center.php?exam_id=<?php echo $exam_id; ?>&studen_id=<?php echo $student_id ?>" >Assign</a></button> --> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </form> <div class="sidenav-backdrop backdrop"></div> <div class="preloader-backdrop"> <div class="page-preloader">Loading</div> </div> <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