Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/www/vsacademysolapur.in/student_pannel/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/www/vsacademysolapur.in/student_pannel/dashboard.php

<?php
    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");
    }
    
    $flag   =   0;
    if(isset($_GET['delete_id']))
    {
        $delete_id  =   $_GET['delete_id'];
        
        if($db->delete_vehicle_data($delete_id))
        {
            $flag   =   1;
        }
    }
// $recorded_data = array();
// $recorded_data = $db-> get_status();
// if(!empty($recorded_data))
// {  
//     $id                             =$recorded_data[0];
//     $status                             =$recorded_data[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>Vehicle Search Page</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>
</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">

<div class="container1">
    <div class="card-container">
<?php
$report_details = $db->get_exam_details(); // Fetch exam details from the database

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];
        $exam_status = $db->get_status_for_hall_ticket();
        $payment_status = $db->get_payment_status_for_hall_ticket($id, $current_login_students);
        $isexist = $db->get_exist_status_for_hall_ticket($id, $current_login_students);

        // Convert exam_date from Y-m-d to d-m-Y for display
        $formatted_exam_date = date("d-m-Y", strtotime($exam_date));
        
        // Convert current date to Y-m-d format for comparison
        $current_date = date("Y-m-d");
        
        // Convert formatted_exam_date to Y-m-d format for comparison
        $exam_date_for_comparison = date("Y-m-d", strtotime($exam_date));
        
        // Check if the exam date is in the past
        $is_exam_done = ($exam_date_for_comparison < $current_date);
?>
        <div class="card">
            <div class="card-details">
                <h2 class="title" style="text-transform: uppercase;"><?php echo htmlspecialchars($exam_name); ?></h2>
                <p class="detail" style="text-transform: capitalize;">Subject: <?php echo htmlspecialchars($subject); ?></p>
                <p class="detail" style="text-transform: capitalize;">Exam Date: <?php echo htmlspecialchars($formatted_exam_date); ?> - <?php echo htmlspecialchars($exam_desc); ?></p>
                <p class="detail" style="text-transform: capitalize;">Time: <?php echo htmlspecialchars($start_time . ' - ' . $end_time); ?></p>
            </div>
            <div class="button-container">
                <?php
                if (!$is_exam_done) {
                    if ($isexist == "") {
                        ?>
                        <a class="btn btn-primary" href="view-payment.php?exam_id_get=<?php echo htmlspecialchars($id); ?>">Register For Exam</a>
                        <?php
                    } else {
                        ?>
                        <a class="btn btn-primary" href="view-payment.php?exam_id_get=<?php echo htmlspecialchars($id); ?>">View Exam Details/Hall Ticket</a>
                        <?php
                    }
                } else {
                    ?>
                    <p style="color: red; font-weight: bold;">The exam has already been completed.</p>
                    <?php
                }
                ?>
            </div>
        </div>
<?php
    }
} else {
    echo '<div><p>Exam has not been conducted yet. Please wait until it is scheduled.</p></div>';
}
?>

    </div>
</div>
</div>
</div>
<script>
function viewSchedule(examId) {
    // Implement your view schedule logic here
    alert('View schedule for exam ID: ' + examId);
}
function downloadSyllabus(examId) {
    // Implement your download syllabus logic here
    alert('Download syllabus for exam ID: ' + examId);
}
</script>
<style type="text/css">
.container1 {
    flex-wrap: wrap;
    gap: 20px;=
    width: 90%;
    max-width: 2000px;
    margin: 0 auto; 
}
.card-container {
    flex-wrap: wrap;
    gap: 20px;
    width: 100%; 
}
.card {

    border: 1px solid red;
    margin-top: 20px;
    display: flex;
    flex: 1 1 calc(20% - 20px);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
}
.title {
    font-size: 30px;
    color: #ff6f61; 
    margin-bottom: 15px;
}

.detail {
    font-size: 1em;
    color: #333;
    margin-bottom: 10px;
}

.button-container {
    margin-top: 20px;
}

.btn {
    border: none;
    border-radius: 4px;
    color: #fff;
    padding: 10px 15px;
    font-size: 1em;
    cursor: pointer;
    margin: 5px;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #4caf50; /* Green color */
}

.btn-primary:hover {
    background-color: #45a049;
}

.btn-secondary {
    background-color: #ff6f61; /* Light pink color */
}

.btn-secondary:hover {
    background-color: #e55a50;
}

</style>

<!-- 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>

EliteHackz.ORG
Revonzy Mini Shell
root@revonzy.com

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