EVOLUTION-NINJA
Edit File: material_details.php
<?php echo view('includes/admin_header.php')?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1 style="padding-bottom:10px;border-bottom:2px dashed #ccc;margin-bottom:20px;">Material View</h1> </section> <!-- Main content --> <section class="content"> <div class="row my_header" style="margin: 0 !important;"> <h4>Faculty Name - <?php echo $result->username ?><small style="padding-left:10%;"></small></h4> <br> <ul class="nav nav-pills" style="background:white; padding:15px;"> <li class="active"><a data-toggle="pill" href="#video">Video File</a></li> <li><a data-toggle="pill" href="#pdf">PDF File</a></li> <li><a data-toggle="pill" href="#images">Images</a></li> </ul> <div class="tab-content" style="background:white; padding:15px;"> <div id="video" class="tab-pane fade in active"> <div class="row"> <?php $videos = json_decode($result->video); if($videos != "") { ?> <?php foreach($videos as $vid) {?> <div class="col-sm-4 video"> <iframe class="embed-responsive-item" width="100%" height="250" src="<?php echo base_url('subject_videos');?>/<?php echo $vid ?>" allowfullscreen></iframe> <br> <p style="text-align:center"><b>Material Name:</b> <?php echo $vid; ?><br><b>Subject Name:</b> <?php echo $result->sub_domain; ?><br><b>Added Date:</b> <?php echo $result->created_at; ?> <br><b>Approval Status:</b> <?php echo $result->approval_status; ?><br><b>Return Status:</b> <?php echo $result->return_status; ?></p> </div> <?php } }?> </div><!-- row ----> </div><!-- video ----> <div id="pdf" class="tab-pane fade"> <div class="row"> <?php $pdfs = json_decode($result->pdf); if($pdfs != "") { ?> <?php foreach($pdfs as $pdf) { ?> <div class="col-sm-4 pdf_file"> <a href="<?php echo base_url('subject_pdf');?>/<?php echo $pdf ?>" target="_blank" ><img src="<?php echo base_url('public/assets/images/pdf_file.png');?>" class="img-responsive center-block"></a> <p style="text-align:center"><b>Material Name:</b> <?php echo $pdf; ?><br><b>Subject Name:</b> <?php echo $result->sub_domain; ?><br><b>Added Date:</b> <?php echo $result->created_at; ?> <br><b>Approval Status:</b> <?php echo $result->approval_status; ?><br><b>Return Status:</b> <?php echo $result->return_status; ?></p> </div> <?php } }?> </div><!-- row ----> </div><!-- pdf ----> <div id="images" class="tab-pane fade"> <div class="row"> <?php $images = json_decode($result->image); if($images != "") { ?> <?php foreach($images as $img) { ?> <div class="col-sm-4 images_file"> <a href="<?php echo base_url('subject_images');?>/<?php echo $img ?>" target="_blank" ><img src="<?php echo base_url('subject_images');?>/<?php echo $img ?>" class="img-responsive center-block"></a> <p style="text-align:center"><b>Material Name:</b> <?php echo $img; ?><br><b>Subject Name:</b> <?php echo $result->sub_domain; ?><br><b>Added Date:</b> <?php echo $result->created_at; ?> <br><b>Approval Status:</b> <?php echo $result->approval_status; ?><br><b>Return Status:</b> <?php echo $result->return_status; ?></p> </div> <?php } }?> </div><!-- row ----> </div><!-- images ----> </div> </div><!-- /.row --> </section> <!-- /.content --> </div> <?php echo view('includes/admin_footer.php')?> <style type="text/css"> .video{ height:378px; overflow: hidden; margin-bottom: 20px; } .video p{ padding-top:5px; } .pdf_file{ height:290px; overflow: hidden; margin-bottom: 20px; } .pdf_file img{ width:50%; margin-bottom: 15px; } .images_file{ height:290px; overflow: hidden; margin-bottom: 20px; } .images_file img{ width: 60%; height: 161px; overflow: hidden; } .images_file p{ padding-top:10px; } </style>