%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<div id="content-wrapper"> <div class="container-fluid"> <!-- Breadcrumbs--> <ol class="breadcrumb"> <li class="breadcrumb-item"> <a href="<?php echo site_url('admin/dashboard'); ?>">Dashboard</a> </li> <li class="breadcrumb-item active">Manage Video</li> </ol> <!-- DataTables Example --> <div class="card mb-3 fomr-news" > <div class="card-header card-header-new"> <h3><i class="fa fa-calendar-alt"></i> View All Video </h3> <a href="<?=base_url('admin/managevideo/addvideo')?>"><input type="button" name="button" id="button" value="Add Video"></a> </div> <div class="row"> <form method="get" name="Manage_Interaction" id="Manage_Interaction"> <div class="col-xl-12"> <?php $role_id = $this->session->userdata('adid')->role_id; if(!in_array($role_id, array(4,6))) { ?> <div class="form-group m-form__group col-xl-3"> <label class="col-xl-3 col-lg-3 col-form-label">Select School<span class="text-danger">*</span> :</label> <div> <select name="school_filter" id="school_filter" class="form-control m-select2-custom select2-hidden-accessible"> <option value="">Select School</option> <?php foreach($schoolArray as $val) { ?> <option value="<?=$val['id']?>" <?php if($_GET['school_filter']==$val['id']){ echo 'selected'; } ?>><?=$val['school_name']?></option> <?php } ?> </select> </div> </div> <?php } else { ?> <div class="form-group m-form__group col-xl-3"> <label class="col-form-label">School: </label> <div class="select" data-select2-id="4"> <strong><?php echo $schoolArray[$_GET['school_filter']]['school_name'];?></strong> </div> </div> <?php } ?> <div class="form-group m-form__group col-xl-3"> <label class="col-xl-3 col-lg-3 col-form-label">Select Course<span class="text-danger">*</span> :</label> <div> <select name="department_filter" id="department_filter" class="form-control m-select2-custom select2-hidden-accessible"> <option value="">Select Course (optional)</option> <?php foreach($departmentArray as $val) { ?> <option value="<?=$val['id']?>" <?php if($_GET['department_filter']==$val['id']){ echo 'selected'; } ?>><?=$val['department_name']?></option> <?php } ?> </select> </div> </div> <div class="form-group m-form__group col-xl-2"> <label class="col-xl-3 col-lg-3 col-form-label">Select From Date<span class="text-danger">*</span> :</label> <div class=""> <input placeholder="Select date" type="text" id="from_date" value="<?=$_GET["from_date"]?>" name="from_date" autocomplete=OFF class="form-control"> <script type="text/javascript"> $(function () { $('#from_date').datepicker({ format: 'DD-MM-YYYY', maxDate: new Date, defaultDate: '<?=$_GET["from_date"]?>' }); }); </script> </div> </div> <div class="form-group m-form__group col-xl-2"> <label class="col-xl-3 col-lg-3 col-form-label">Select To Date<span class="text-danger">*</span> :</label> <div class=""> <input placeholder="Select date" type="text" id="to_date" value="<?=$_GET["to_date"]?>" name="to_date" autocomplete=OFF class="form-control"> <script type="text/javascript"> $(function () { $('#to_date').datepicker({ format: 'DD-MM-YYYY', maxDate: new Date, defaultDate: '<?=$_GET["to_date"]?>' }); }); </script> </div> </div> <div class="form-group m-form__group col-xl-2"> <input type="submit" name="submit" id="submit" value="SUBMIT" class="button2"> </div> </div> </form> </div> </div> <div class="card-body"> <div class="table-responsive"> <!---- Success Message ----> <?php if ($this->session->flashdata('success')) { ?> <p style="color:green; font-size:18px;"><?php echo $this->session->flashdata('success'); ?></p> </div> <?php } ?> <table class="table table-bordered" id="dataTable" width="100%" cellspacing="0"> <thead> <tr> <th>Sr. No.</th> <th>Campus</th> <th>Title</th> <th>Description</th> <th>Video</th> <th>Status</th> <th>Action</th> </tr> </thead> <tbody> <?php if(count($recorddetails)) : $cnt=1; foreach ($recorddetails as $row) : ?> <tr> <td><?php echo htmlentities($cnt);?></td> <td><?php echo htmlentities($row['title']);?></td> <td><?php echo htmlentities($row['description']);?></td> <td> <video width="220" height="140" controls> <source src="<?=base_url('upload/'.$row['vfile_name'])?>" type="video/mp4"> <source src="movie.ogg" type="video/ogg"> Your browser does not support the video tag. <!-- Text to be shown incase browser doesnt support html5 --> </video> </td> <td><?php echo htmlentities($row['tags']);?></td> <td><?php echo $row['status']=='3' ? 'Archive' : ($row['status']=='1' ? 'Save': 'Publish'); ?></td> <td><?php $id =$row['id']; echo anchor("admin/managevideo/addvideo/{$id}",' ','class="fa fa-edit" title="Add Video"')?><?php $id =$row['id']; echo anchor("admin/managevideo/viewvideo/{$id}",' ','class="fa fa-eye" title="Add Video"')?></td> </tr> <?php $cnt++; endforeach; else : ?> <tr> <td>No Record found</td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <?php endif; ?> </tbody> </table> </div> </div> </div> </div> <!-- /.container-fluid --> <script type='text/javascript'> // baseURL variable var baseURL= "<?php echo base_url();?>"; $(document).ready(function(){ $('#school_filter').change(function(){ var school_id = $(this).val(); $.ajax({ url:'<?= base_url('admin/manageusers/getajaxrecord') ?>', method: 'post', data: {school_id: school_id}, dataType: 'json', success: function(response){ // Add options $('#department_filter').html(''); $('#department_filter').append($('<option>').text(' -- Select Department -- ').attr('value', '')); $.each(response,function(i,value){ $('#department_filter').append($('<option>').text(value).attr('value', i)); }); } }); }); }); </script>