?
Current Path : /home1/savoy/www/savoyglobal.net/drafthr/system/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/drafthr/system/application/views/Home/todayreminderpage.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <script> function add_remind() { $("#viewReminder").load("<?= site_url('settings/addremindpage/') ?>"); } function delremind(table, field,pageno) { $("#viewReminder").load("<?= site_url('settings/deletereminder/') ?>" +"/" +table + "/" + field+ "/" + pageno,function(){ viewremind(pageno,field,""); }); } function editremind(field,pageno,field1,text) { $("#viewReminder").load("<?= site_url('settings/Get_editreminder_data/') ?>" +"/" + field + "/" + pageno+"/" + field1 + "/" + text); } function viewremind(pageno,field,text) { $("#viewReminder").load("<?= site_url('settings/viewremind/') ?>" +"/" + pageno + "/"+field+"/"+text); } function Insert_Reminder_details() { var RemName=document.getElementById('remind-name').value ; var RemDate=document.getElementById('inputDate').value ; var Description=document.getElementById('description').value ; var numbefore=document.getElementById('numbefore').value ; if(isNaN(numbefore)) { alert('Enter only integer in date before Field') return false; } else { if(validateform('description','remind-name')) { $.post("<?php echo site_url('settings/insertreminder/'); ?>", { 'remname':RemName,'remdt':RemDate,'desc':Description,'numbef':numbefore }, function(data) { alert(data); RemName=document.getElementById('remind-name').value=""; RemDate=document.getElementById('inputDate').value="<?php echo date('d-m-Y'); ?>" Description=document.getElementById('description').value="" ; numbefore=document.getElementById('numbefore').value="" ; }); } } } function searchreminder(pageno,serctext,seloption) { if(seloption=='remind_date' ) { serctext=serctext.replace(/\//gi,'-') } serctext = serctext.replace(/ /g,"~"); serctext = serctext.replace(/\//g,"_"); $("#viewReminder").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $('#viewReminder').load("<?php echo site_url('settings/viewremind/'); ?>/"+pageno + "/" + seloption + "/" +serctext ); } </script> <fieldset><legend>View Today's Reminders</legend> <table class="sort"> <tr> <th width="10%">Sl No.</th> <th width="20%">Subject</th> <th width="15%">Date</th> <th width="25">Description</th> <?php $i=0; foreach ($remlist as $remind) { $i=$i+1; $remind_dat = $this->mastermodel->convdatformat($remind['remind_date']); echo "<tr><td>".$i."</td><td>".$remind['remind_name']."</td><td>".$remind_dat."</td><td>".$remind['description']."</td>"; echo "</tr>"; } ?> </table> </fieldset>