?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec/application/views/settings/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/public_html/savoyglobal.net/sec/application/views/settings/display_alert.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?> <!-- BEGIN PAGE LEVEL STYLES --> <link rel="stylesheet" href="<?= base_url(); ?>assets/plugins/data-tables/DT_bootstrap.css" /> <!-- END PAGE LEVEL STYLES --> <div class="row-fluid"> <div class="span12"> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-cogs"></i>Alert</div> <div class="tools"> <a href="#" onclick="viewdata('settings','viewinsettingssearch','search_alert','view_alert', '<?= $_SESSION['pagenum']; ?>')" class="remove"></a> </div> </div> <div class="portlet-body"> <!-- BEGIN EXAMPLE TABLE PORTLET--> <?php if ($id == 1) { ?> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-cogs"></i>Fee Alert</div> </div> <div class="portlet-body"> <table class="table table-striped table-hover table-bordered" id="sample_3"> <thead> <tr> <th></th> <th>Student Name </th> <th>Batch Name</th> <th>Batch Allocation Date</th> <th>Course Fee</th> <th>Paid Amount </th> <th> Remove </th> </tr> </thead> <tbody> <?php $k = ''; $i = 1; if(($fee_alert_count)>0) { foreach ($fee_alert_detail as $student) { echo "<tr> <td>" . $i++ . "</td> <td>" .$this->mastermodel->get_single_field_value('student','first_name','student_id',$student) . "</td>"; $batch = ''; $course = ''; $allo_date = ''; $paid=''; foreach ($fee_alert_detail[$student] as $row) { $batch.='<p>' .$this->mastermodel->get_single_field_value('batch','batch_no','batch_id', $row['batch_id']) . '</p>'; $course.='<p class="text_r">' . $row['course_fee'] . '</p>'; $allo_date.='<p class="text_r">' . $this->mastermodel->convertdatenormalformat($row['allo_date']) . '</p>'; $paid.='<p class="text_r">' . $row['paid_amount'] . '</p>'; } echo " <td>$batch</td> <td>$allo_date</td> <td>$course</td> <td>$paid</td> "; echo '<td> <img src="'.base_url().'assets/img/delete-icon.png" title="Delete" width="20" height="20" onclick="remove_alert('.$student.')"/> </td> </tr>'; } } ?> </tbody> </table> </div> </div> <?php } else if ($id == 2) { ?> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-cogs"></i>Tenancy Agreement Renewal</div> </div> <div class="portlet-body"> <table class="table table-striped table-hover table-bordered" id="sample_3"> <thead> <tr> <th> Building Name </th> <th>Flat No</th> <th>Customer Name</th> <th>Rent Amount</th> <th> Lease End Date </th> <th> Remove </th> </tr> </thead> <tbody> <?php foreach ($detail as $row) { ?> <tr> <td> <?= $row['building_name'] ?> </td> <td id="center"> <?= $row['lease_flat_no'] ?> </td> <td> <?= $this->mastermodel->get_single_field_value('customer', 'customer_name', 'customer_id', $row['lease_customer_id']) ?> </td> <td id="center"> <?= $row['lease_rent_amount'] ?> </td> <td> <?= $this->mastermodel->convertdatenormalformat($row['lease_end_date']) ?> </td> <td> <img src="<?= base_url() ?>assets/images/delete-icon.png" title="Delete" width="20" height="20" onclick="remove_alert(<?= $row['alert_id'] ?>)"/> </td> </tr> <?php } ?> </tbody> </table> </div> </div> <?php } else if ($id == 4) { $title = ''; ?> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-cogs"></i>Visa Renewal</div> </div> <div class="portlet-body"> <table class="table table-striped table-hover table-bordered" id="sample_3"> <thead> <tr> <th> Employee Name </th> <th>Contact Number</th> <th>Visa Type</th> <th>Visa Expiry Date</th> <th>Status</th> <th> Remove </th> </tr> </thead> <tbody> <?php foreach ($detail as $row) { ?> <tr> <td> <?= $row['employee_name'] ?> </td> <td id="center"> <?= $row['employee_contact_no'] ?> </td> <td> <?= $row['employee_visa_type'] ?> </td> <td> <?= $this->mastermodel->convertdatenormalformat($row['employee_visa_expiry_date']) ?> </td> <td> <?= $row['employee_status'] ?> </td> <td> <img src="<?= base_url() ?>assets/images/delete-icon.png" title="Delete" width="20" height="20" onclick="remove_alert(<?= $row['alert_id'] ?>)"/> </td> </tr> <?php } ?> </tbody> </table> </div> </div> <?php } else { ?> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-cogs"></i>Labor Card Renewal</div> </div> <div class="portlet-body"> <table class="table table-striped table-hover table-bordered" id="sample_3"> <thead> <tr> <th> Employee Name </th> <th>Contact Number</th> <th>Labor Card Number</th> <th>Labor Card Expiry Date</th> <th>Status</th> <th> Remove </th> </tr> </thead> <tbody> <?php foreach ($detail as $row) { ?> <tr> <td> <?= $row['employee_name'] ?> </td> <td id="center"> <?= $row['employee_contact_no'] ?> </td> <td id="center"> <?= $row['employee_labour_card_no'] ?> </td> <td> <?= $this->mastermodel->convertdatenormalformat($row['employee_labour_card_expiry_date']) ?> </td> <td> <?= $row['employee_status'] ?> </td> <td> <img src="<?= base_url() ?>assets/images/delete-icon.png" title="Delete" width="20" height="20" onclick="remove_alert(<?= $row['alert_id'] ?>)"/> </td> </tr> <?php } ?> </tbody> </table> </div> </div> <?php } ?> </div> </div> </div> </div> <div id="ajax-modal" class="modal hide fade" tabindex="-1"></div> <script> jQuery(document).ready(function() { UIModals.init(); TableManaged.init(); }); </script>