?
Current Path : /home1/savoy/www/savoyglobal.net/drafthr/system/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/www/savoyglobal.net/drafthr/system/application/views/Settings/edit-reminder-page.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <div class="select-bar"> <label> <img src="<?=base_url()?>/assets/images/backbutton.png" title="Back" class="clickimage" onclick="viewremind(<?php echo $currpage; ?>,'remind_name','');" alt="Back" align = "center" width="25" height="25" /></label> </div> <script type="text/javascript"> jQuery(document).ready(function () { $('.one').datepick({dateFormat: 'dd-mm-yyyy'}); }); function updat_reminder(id,pageno,field,text) { var name=document.getElementById('remind_name').value; var date=document.getElementById('inputDate').value; var descp=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/updatereminder/'); ?>", { 'remname':name,'remdt':date,'desc':descp,'id':id,'pageno':pageno,'numbef':numbefore,'field':field,'text':text }, function(data) { $("#viewReminder").load("<?= site_url('settings/viewremind/') ?>" +"/" + pageno + "/" + field + "/" + text); }); } } } </script> <?php $result= $editreminder->row(); $attributes = array('id' => 'customForm'); echo form_open('',$attributes); ?> <fieldset> <legend>Edit Reminder</legend> <table> <tr> <td> <label for="remindname">Subject</label> </td> <td> <input value="<?php echo $result->remind_name; ?>" type="text" name="remind_name" id="remind_name"/><span id="remind_nameInfo" class="red_bold">*</span> </td> </tr> <tr> <td> <label> Reminder Date</label> </td> <td> <?php $remind_date = $this->mastermodel->convdatformat($result->remind_date); ?> <input class="one" readonly="readonly" id="inputDate" name="dateRem" value="<?php echo $remind_date; ?>"/> </td> </tr> <tr> <td> <label> Remind Before</label> </td> <td> <input type="text" id="numbefore" value="<?php echo $result->beforedt; ?>" name="numbefore"/> days </td> </tr> <tr> <td> <label for="description"> Description</label> </td> <td> <textarea cols="20" rows="5" id="description"><?php echo $result->description; ?></textarea> <span id="descriptionInfo" class="red_bold">*</span> </td> </tr> <tr> <td></td> <td> <button type="button" name="update-save" onclick="return converttodate('inputDate'),updat_reminder('<?= $result->id; ?>' ,'<?= $currpage ?>','<?=$field1 ?>','<?=$text ?>');" id="remind-save"> Update Reminder </button> </td> </tr> </table> </fieldset> <?php echo form_close(); ?> <div id="resultdiv" style="display: none"></div>