?
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/viewschedule.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'}); }); 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/'); ?>", { 'policy':policyno,'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> <style> #viewmain { padding:10px 0 0 50px; } #viewmain table tr { height:35px; } #viewmain table tr td label { color:#000; } </style> <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); $pid= $result->policy_id; $covername= $this->mastermodel->get_cover($pid); $cname=$covername->cover; $custname=$covername->CustomerName; ?> <fieldset> <legend>View Payment Schedule</legend> <div id="viewmain"> <table> <tr> <td> <label for="policy "> Policy No</label> </td> <td width="30px">:</td> <td > <?php $policy_no= $this->customermodel->getSingleFieldValue('policynote','policyno','id',$result->policy_id); echo $policy_no; ?> </td> </tr> <tr> <td> <label for="insured "> Insured</label> </td> <td>:</td> <td> <?php echo $custname; ?> </td> </tr> <tr> <td> <label for="cover ">Type of Cover</label> </td> <td>:</td> <td > <?php echo $cname; ?> </td> </tr> <tr> <td> <label>Schedule Date</label> </td> <td>:</td> <td> <?php $sche_date = $this->mastermodel->convdatformat($result->date); ?> <?php echo $sche_date; ?> </td> </tr> <tr> <td> <label>Alert Before</label> </td> <td>:</td> <td> <?php echo $result->beforedt; echo " day(s)";?> </td> </tr> <tr> <td> <label for="amount"> Amount</label> </td> <td>:</td> <td> <?php echo $result->amount; ?> </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>--> </table> </div> </fieldset> <?php echo form_close(); ?> <div id="resultdiv" style="display: none"><div id="polidiv"></div></div>