%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">Notifications</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> Notifications </h3> <a href="<?=base_url('admin/notifications/addnotification')?>"> <input type="button" name="button" id="button" value="Add New Notifications"></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>Notification Title</th> <th>Notifications</th> <th>For</th> <th>Priority</th> <th>status</th> <th>Date</th> <th>Action</th> </tr> </thead> <tbody> <?php if(count($recordsArray)) : $cnt=1; $statusArray = array('0'=>'Draft', '1'=>'Saved', '2'=>'Publish'); $adid = $this->session->userdata('adid')->role_id; foreach ($recordsArray as $row) : if($adid->role_id==$row['notification_from'] || $row['status']=='2') { $sentArray = explode(',',$row['send_to']); $notificationArray = array('1'=>'IQAC','2'=>'DEAN','3'=>'HOD','4'=>'SCHOOL FACULTY','5'=>'DIGITAL TEAM'); ?> <tr> <td><?php echo htmlentities($cnt);?></td> <td><?php echo $row['notification_title']?></td> <td><?php echo $row['notification']?></td> <td><?php foreach($sentArray as $val) { if(array_key_exists($val,$notificationArray)){ echo $notificationArray[$val]; } else { echo 'NA'; } }?></td> <td><?php echo $row['priority']=='1' ? 'High' : ($row['priority']=='2' ? 'Medium' : 'Low');?></td> <td><?php echo $statusArray[$row['status']];?></td> <td><?php echo $row['createdon']; ?></td> <td> <?php if($adid->role_id==$row['notification_from'] || $adid->role_id<='2') {?> <?php echo anchor("admin/notifications/addnotification/{$row['id']}",' ','class="fa fa-edit"')?> <a href="<?=base_url('admin/notifications/deletenotification/'.$row['id'])?>" class="fa fa-trash confirm-delete"> </a> <?php } ?> <?php if($adid->role_id==$row['notification_from'] || $adid->role_id!='9') {?> <a href="<?=base_url('admin/notifications/view/'.$row['id'])?>" class="fa fa-eye"> </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> <td> </td> </tr> <?php endif; ?> </tbody> </table> </div> </div> </div> <!-- /.container-fluid --> <!-- Sticky Footer -->