?
Current Path : /home1/savoy/www/savoyglobal.net/eduplus1/application/views/home/ |
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/www/savoyglobal.net/eduplus1/application/views/home/medical_test_expiry_alerts.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?> <script> scrollToElement($('#dashboard_alert_div')); function scrollToElement(ele) { $(window).scrollTop(ele.offset().top).scrollLeft(ele.offset().left); } function close_alert(emp_id,row_id,alert_date) { if (confirm("Are you sure you want to remove the alert?")) { $.ajax({ type: "POST", url: "<?= site_url() ?>"+'/settings/alert_close/'+emp_id+"/medical_expiry/"+alert_date, success: function(msg) { $('#'+row_id) .hide(); } });} } </script> <div class="icons_main"> <div class="icons"> <img src="<?= base_url() ?>assets/images/back.png" title="Back" class="clickimage" onclick="view_page('home','dashboard','dashboard_alert_div')" alt="Back" align = "center" width="32" height="32" /> </div> </div> <div class="clean"></div> <div class="grid_12"> <div class="box"> <div class="header main no-icon"> <span>Medical test expiry alerts</span> </div> <div class="content "> <table id="table-example" class="table"> <thead> <tr> <th>SL NO</th> <th>Employee No</th> <th>Employee Name</th> <th>Expiry Date</th> <th>Remove</th> </tr><thead> </thead> <tbody> <?php $check5 = $this->mastermodel->medical_expiry(); $i = 0; foreach ($check5 as $list) { $i++; ?> <tr id='close_alert_<?= $i ?>'> <td><?= $i ?></td> <td><?= $list['employee_no'] ?></td> <td><?= $list['employee_name'] ?></td> <td><?= $this->mastermodel->convertdatenormalformat($list['medical_test_expiry_date']) ?></td> <td><img class="clickimage" src='<?= base_url() ?>assets/images/delete-icon.png' onclick="close_alert('<?= $list['employee_id'] ?>','close_alert_<?=$i?>','<?= $list['medical_test_expiry_date'] ?>')" title='Delete' width='20' height='20' alt='Delete' align = 'center'/></td> </tr> <?php } ?> </tbody> </table> </div> </div> </div>