%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
<?php $banner_type_array = unserialize(BANNER_TYPE); ?> <div id="content-wrapper"> <div class="container-fluid"> <!-- Breadcrumbs--> <ol class="breadcrumb"> <li class="breadcrumb-item"> <a href="<?php echo site_url('admin/home'); ?>">Dashboard</a> </li> <li class="breadcrumb-item active">Banners</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> Banner Details </h3> <a href="<?=base_url('admin/managebanners/addbanner')?>"> <input type="button" name="button" id="button" value="Add New Banner"></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>#</th> <th>Banner Name</th> <th>Banner Image</th> <th>Banner Type</th> <th>Banner Text</th> <th>Status</th> <th>Action</th> </tr> </thead> <tbody> <?php if(count($banners)) : $cnt=1; foreach ($banners as $row) : $u_path = 'attachments/banner_images/'; if ($row['banner_image'] != null && file_exists($u_path . $row['banner_image'])) { $image = base_url($u_path . $row['banner_image']); } else { $image = base_url('attachments/no-image.png'); } ?> <tr> <td><?php echo htmlentities($cnt);?></td> <td><?php echo $row['banner_name']?></td> <td><img src="<?= $image ?>" alt="No Image" class="img-thumbnail" style="height:50px;width:100px;" /></td> <td><?= $banner_type_array[$row['banner_type']] ?></td> <td><?= html_entity_decode($row['banner_text']) ?></td> <td><?= $row['status']=='1' ? 'Active' : 'Inactive' ?></td> <td> <a href="<?=base_url('admin/managebanners/addbanner')?>?edit=<?= $row['id'] ?>"><span class="fa fa-edit"></span></a> <a href="?delete=<?= $row['id'] ?>" class="confirm-delete" onclick="return confirm('Are you sure you want to delete this record?');"><span class="fa fa-trash"></span></a> </td> </tr> <?php $cnt++; endforeach; else : ?> <tr> <td colspan="7">No Record found</td> </tr> <?php endif; ?> </tbody> </table> </div> </div> </div> <!-- /.container-fluid --> <!-- Sticky Footer -->