BBnepal-Accounts/application/views/student/my-syllabus.php

112 lines
4.9 KiB
PHP
Raw Normal View History

2024-07-10 12:43:19 +00:00
<main class="common_margin" id="main">
<div class="main-wrap">
<div class="breadcrumb-section">
<ol class="breadcrumb breadcrumb-back">
<a href="<?= base_url(); ?>student/my-classes"> <li class="breadcrumb-item"> Back</li> </a>
</ol>
</div>
<div class="syllabus-wrap">
<div class="syllabus-head">
<h3 class="common-heading">Syllabus</h3>
</div>
<div class="syllabus-main">
<?php if(!empty($student_syllabus)){
foreach ($student_syllabus as $value) { ?>
<div class="syllabus-tab">
<div class="syllabus-image"><img src="<?php echo base_url(); ?>assets_admin/images/icons/<?php echo $value['subject_icon']; ?>"></div>
<h5><?php echo $value['subject_name']; ?></h5>
<button class="join-class-btn" data-toggle="modal" data-target='<?php echo "#myModal_".$value['subject_syllabus_id']; ?>' >View</button>
</div>
<?php }
}else{ ?>
<div class="syllabus-tab">
<h5> No Syllabus </h5>
</div>
<?php }?>
</div>
</div>
</div>
</main>
<!-- Syllabus modal -->
<div class="syllabus-modal">
<?php if(!empty($student_syllabus)){
foreach ($student_syllabus as $value) {
?>
<div class="modal fade" id='<?php echo "myModal_".$value['subject_syllabus_id']; ?>' role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<div class="owl-carousel slider1">
<div class="item active">
<!-- <img src="<?php echo base_url().$value['syllabus'] ?>" alt="" /> -->
<embed src="<?php echo base_url().$value['syllabus'] ?>" frameborder="0" width="100%" height="650px">
</div>
</div>
<div class="down-btn-wrap">
<div class="page-number">
<div class="slider-counter1"><div class="slider-no1"></div><div class="tot-slider1"></div></div>
<span>Pages</span>
</div>
<a href="<?php echo base_url().$value['syllabus'] ?>" download>
<button type="button" class="dowload-sylla">Download Syllabus</button>
</a>
</div>
</div>
</div>
</div>
<?php }
} ?>
<!-- <div class="modal fade" id="myModal1" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<div class="owl-carousel slider1">
<div class="item active">
<img src="<?php echo base_url(); ?>assets_student/images/syllabus-doc.png" alt="" />
</div>
<div class="item">
<img src="<?php echo base_url(); ?>assets_student/images/syllabus-doc.png" alt="" />
</div>
<div class="item">
<img src="<?php echo base_url(); ?>assets_student/images/syllabus-doc.png" alt="" />
</div>
<div class="item">
<img src="<?php echo base_url(); ?>assets_student/images/syllabus-doc.png" alt="" />
</div>
<div class="item">
<img src="<?php echo base_url(); ?>assets_student/images/syllabus-doc.png" alt="" />
</div>
<div class="item">
<img src="<?php echo base_url(); ?>assets_student/images/syllabus-doc.png" alt="" />
</div>
<div class="item">
<img src="<?php echo base_url(); ?>assets_student/images/syllabus-doc.png" alt="" />
</div>
<div class="item">
<img src="<?php echo base_url(); ?>assets_student/images/syllabus-doc.png" alt="" />
</div>
</div>
<div class="down-btn-wrap">
<div class="page-number">
<div class="slider-counter1"><div class="slider-no1"></div><div class="tot-slider1"></div></div>
<span>Pages</span>
</div>
<button type="button" class="dowload-sylla">Download Syllabus</button>
</div>
</div>
</div>
</div> -->
</div>
<script src="https://github.com/pipwerks/PDFObject/blob/master/pdfobject.min.js"></script>