?
Current Path : /home1/savoy/public_html/savoyglobal.net/eldertree/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/public_html/savoyglobal.net/eldertree/application/views/home/document_alert.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('commonjsfiles'); ?> <script> scrollToElement($('#dashboard_alert_div')); function scrollToElement(ele) { $(window).scrollTop(ele.offset().top).scrollLeft(ele.offset().left); } function close_alert(file_id,row_id,close_date) { if (confirm("Are you sure you want to remove the alert?")) { $.ajax({ type: "POST", url: "<?= site_url() ?>"+'/settings/alert_close/'+file_id+"/document_alert/"+close_date, success: function(msg) { $('#'+row_id) .hide(); } });} } </script> <div class="row-fluid"> <div class="tab-pane " id="tab_2"> <div class="portlet box yellow"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i>Document Alerts</div> <div class="tools"> <a href="#" onclick="view_page('home','alert','dashboard_alert_div')" class="remove"></a> </div> </div> <div class="portlet-body form"> <!-- BEGIN FORM--> <table id="table-example" class="table table-striped table-hover table-bordered"> <thead> <tr> <th id="sl">Sl No</th> <th>File Name</th> <th>Expiry Date</th> <th>Remind Before</th> <th>Download</th> <th>Remove</th> </tr> </thead> <tbody> <?php $check1 = $this->mastermodel->document_alert(); $i = 0; foreach ($check1 as $list) { $i++; echo "<tr id='close_alert_" . $i . "'><td>" . $i . "</td> <td>" . $list['file_name'] . "</td> <td>" . $this->mastermodel->convertdatenormalformat($list['file_expiry_date']) . "</td> <td>" . $list['file_remind_before'] . "</td>"; ?> <td> <a href="<?=base_url().$list['file_location'];?>"><img src="<?=base_url()?>assets/img/downarrow.png" title="Download" alt="Download" width="20" height="20"/></a> </td> <!-- <td> <a href="<?=base_url().$list['file_location']?>">Download</a> </td>--> <td> <img style="vertical-align: top;"src="<?= base_url() ?>assets/img/close.png" alt="Delete Row" class="delRow clickimage" onclick='close_alert("<?= $list['file_id'] ?>","close_alert_<?=$i ?>","<?= $list['file_expiry_date'] ?>")' title="Delete Row"/> </td> </tr> <?php } ?> </tbody> </table> <!-- END FORM--> </div> </div> </div> </div>