?
Current Path : /home1/savoy/public_html/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/public_html/savoyglobal.net/drafthr/system/application/views/Settings/editschedule.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <script type="text/javascript"> jQuery(document).ready(function () { $('.one').datepick({dateFormat: 'dd-mm-yyyy'}); suggestpolicyno('policyno_search'); }); function update_schedule(id,pageno,field,text) { var policyno=document.getElementById('policyno').value ; var date=document.getElementById('activityDate').value ; var amount=document.getElementById('amount').value ; var policy_id=document.getElementById('policyid').value ; var before=document.getElementById('before').value ; if(isNaN(amount)) { alert('Enter only integer in amount Field') return false; } else if(isNaN(before)) { alert('Enter only integer in Alert before Field') return false; } else { if(validateform('policyno','amount')) { $.post("<?php echo site_url('settings/updateschedule/'); ?>", { 'date':date,'before':before,'amount':amount,'pid':policy_id,'pageno':pageno,'id':id,'field':field,'text':text }, function(data) { $("#schedule").load("<?= site_url('settings/viewschedulde/') ?>" +"/" + pageno +"/" + field+"/" + text); }); } } } </script> <div class="select-bar"> <label> <img src="<?=base_url()?>/assets/images/backbutton.png" title="Back" class="clickimage" onclick="viewschedulde('<?php echo $currpage; ?>','policy_id','')" alt="Back" align = "center" width="25" height="25" /></label> </div> <?php $result= $editschedule->row(); $attributes = array('id' => 'customForm'); echo form_open('',$attributes); ?> <fieldset> <legend>Edit Schedule</legend> <table> <tr> <td> <label for="policy "> Policy No</label> </td> <td height="55px"> <?php $policy_no= $this->customermodel->getSingleFieldValue('policynote','policyno','id',$result->policy_id); ?> <input type="text" readonly="readonly" value="<?php echo $policy_no; ?>" name="policyno" id="policyno"/> <img src="<?=base_url()?>/assets/images/button-search.png" title="Search" class="clickimage" id="click" onclick="showpolidiv()" > <span id="policy-noInfo" class="red_bold">*</span> <input type="hidden" name="policyid" id="policyid" value="<?php echo $result->policy_id; ?>"> <div id="schedet"></div> </td> </tr> <tr><td></td><td> <input type="text" name="policyno_search" id="policyno_search" value="<?php echo $policy_no; ?>"/> <img src="<?=base_url()?>/assets/images/use.png" class="clickimage" onclick="usepolicybynoforclaim($('input#policyno_search').val())" alt="" width="20" height="20" /> <input type="hidden" name="policyno_search_id" id="policyno_search_id" value="<?php echo $result->policy_id; ?>"> </td> </tr><tr><td></td></tr> <tr> <td></td><td><div id="enddet" > </div></td></tr> <tr> <td> <label>Schedule Date</label> </td> <td> <?php $sche_date = $this->mastermodel->convdatformat($result->date); ?> <input class="one" readonly="readonly" value="<?php echo $sche_date; ?>" id="activityDate" name="activityDate" value="<?php echo date("Y-m-d"); ?>"/> </td> </tr> <tr> <td> <label>Alert Before</label> </td> <td> <input id="before" name="before" value="<?php echo $result->beforedt; ?>"/>days </td> </tr> <tr> <td> <label for="amount"> Amount</label> </td> <td> <input type="text" name="amount" value="<?php echo $result->amount; ?>" id="amount"/> <span id="amountInfo" class="red_bold">*</span> </td> </tr> <!-- <tr> <td> <label for="payment"> Payment Method</label> </td> <td> cash <input type="radio" name="payment" id="payment" value="cash"/> bank<input type="radio" name="payment" id="payment" value="bank"/> online <input type="radio" name="payment" id="payment" value="online"/><br/> <span id="paymentInfo" class="red_bold">*</span> </td> </tr>--> <tr> <td></td> <td> <button type="button" name="remind-save" onclick="return converttodate('activityDate'),update_schedule('<?php echo $result->id; ?>' ,'<?php echo $currpage ?>','<?=$field2 ?>','<?= $text ?>');" id="remind-save">Update </button> </td> </tr> </table> </fieldset> <?php echo form_close(); ?> <div id="resultdiv" style="display: none"><div id="polidiv"></div></div>