%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 Files</li> </ol> <!-- DataTables Example --> <div class="card mb-3 fomr-news"> <div class="card-header card-header-new"><h3> <i class="fas fa-table"></i> Manage Files </h3> <a href="<?=base_url('admin/managefiles/addrecord')?>"> <input type="button" name="button" id="button" value="Add New File"></a> </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>S.no.</th> <th>Title</th> <th>File</th> <th>nbsp;</th> <th>status</th> <th>Date</th> <th>Action</th> </tr> </thead> <tbody> <?php if(count($recordsArray)) : $cnt=1; foreach ($recordsArray as $row) : ?> <tr> <td><?php echo htmlentities($cnt);?></td> <td><?php echo $row['file_title']?></td> <td><a href="<?=base_url('attachments/custom_files/'.$row['file_image'])?>" target="_blank"><img src="<?=base_url('attachments/custom_files/'.$row['file_image'])?>" width="100px" /></a> </td> <td> <span id='<?=$row['id']?>'><?php echo base_url('attachments/custom_files/'.$row['file_image']); ?> </span> <p><button type="button" onclick="copyToClipboard('#<?=$row['id']?>')">Copy To Clipboard</button></p> </td> <td><?php echo $row['status']=='1' ? 'Active' : 'Inactive';?></td> <td><?php echo $row['createdon']; ?></td> <td> <?php if($adid->role_id==$row['notification_from'] || $adid->role_id<='2') {?> <?php echo anchor("admin/managefiles/addrecord/{$row['id']}",' ','class="fa fa-edit"')?> <a href="<?=base_url('admin/managefiles/deleterecords/'.$row['id'])?>" class="fa fa-trash confirm-delete" onclick="return confirm('Are you sure you want to delete this record?');"> </a> <?php } ?> </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> <!-- /.container-fluid --> <!-- Sticky Footer --> <script> $(document).ready(function(){ $("button").click(function(){ $("span").select(); document.execCommand('copy'); }); }); function copyToClipboard(element) { var $temp = $("<input>"); $("body").append($temp); $temp.val($(element).html()).select(); document.execCommand("copy"); $temp.remove(); } </script> <!-- /.container-fluid -->