?
Current Path : /home1/savoy/www/savoyglobal.net/drafthr/system/application/views/Policies/ |
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/Policies/editendorsement.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'}); $('.two').datepick({dateFormat: 'dd-mm-yyyy'}); checkfiscalyear("begin","mycompany"); $("input.auto").autoNumeric(); }); function showtextbox(val) { document.getElementById('sumdetid').innerHTML="<label >"+val+" Details</label>"; if(val!="Cash") { var newdiv = document.createElement('input'); newdiv.setAttribute('id','Txt_Pay_accno'); newdiv.setAttribute('type','text'); newdiv.setAttribute('name','Txt_Pay_accno'); document.getElementById('sumdetid').appendChild(newdiv); } } </script> <?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ foreach($viewinfo as $updata) { $endorsementid = $updata['id']; $policyid=$updata['policyid']; $endpolicyno=$updata['endpolicyno']; $date=$updata['date']; $endrefno=$updata['endrefno']; $mode=$updata['mode']; $accno=$updata['actype']; $premiumchange=$updata['premiumchange']; $remarks=$updata['remarks']; $paymentoptions=$updata['paymentoptions']; $policyfeeschange=$updata['policyfeeschange']; $enddate = $updata['enddate']; } $policynum=$this->mastermodel->get_data_srow('policynote',$policyid,'id'); $date=$this->mastermodel->convdatformat($date); $enddate=$this->mastermodel->convdatformat($enddate); ?> <div class="select-bar"> <label> <img src="<?=base_url()?>/assets/images/backbutton.png" title="Back" class="clickimage" onclick="loadendorsement('<?=$_SESSION['pagenum']?>','<?=$_SESSION['searchoption']?>','<?=$_SESSION['searchtxt']?>')" alt="Back" align = "center" width="25" height="25" /></label> </div> <div id="viewmsg"></div> <?php $attributes = array('id' => 'customForm'); echo form_open_multipart('policies/editendorsement',$attributes); ?> <fieldset> <legend>Update Endorsement</legend> <?php echo form_hidden('endorsementid',$endorsementid); ?> <ul> <li> <label>Endorsement Ref. No.</label><?php echo $endrefno; ?> </li> <li> <label >Date</label> <input class="one" name="date" id="date" readonly="true" value ="<?php echo $date; ?>" type="text" style="background-image: url(../../../../assets/images/datefocus.gif);"> <input type="hidden" value="<?=$policynum->quotation_ref?>" name="endref"/> </li> <li> <?php $data = array( 'name' => 'policyno', 'id' => 'policyno', 'readonly' =>'readonly', 'value' => $policynum->policyno, ); ?> <label for="country">Policy No.</label> <?php echo form_input($data).form_error($data); ?> <img id="inliexample1" src="<?=base_url()?>/assets/images/button-search.png" title="Search" class="clickimage" onclick="showpolidiv()" ><span id="policynoInfo" class="red_bold">*</span> <input type="hidden" name="policyid" id="policyid" value="<?=$policyid?>"> </li> <li>OR </li> <li> <label>Policy No.</label><input type="text" name="policyno_search" id="policyno_search" value="<?=$policynum->policyno;?>"/> <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"> </li> <li> <div id="enddet" > </div> <li> <label >Endorsement Date</label> <input class="two" name="enddate" id="enddate" readonly="true" value="<?php echo $enddate;?>" type="text" style="background-image: url(../../../../assets/images/datefocus.gif);"> </li> <li> <?php $data1 = array( 'name' => 'endpolicyno', 'id' => 'endpolicyno', 'value' => $endpolicyno, ); ?> <label for="country">Endorsement Policy No.</label> <?php echo form_input($data1);?> </li> <li> <label for="date">Endorsement Type</label> <?php $options = array( 'Addition' => 'Addition', 'Deduction' => 'Deduction', 'No Change in Premium' => 'No Change in Premium', ); $js='onchange=hidepremium(this.value)'; echo form_dropdown('mode', $options, $mode,$js); ?> </li> <?php $data2 = array( 'name' => 'remarks', 'id' => 'remarks', 'rows' => '5', 'cols' => '5', 'style' => 'width:50%', 'value' => $remarks, ); ?> <li> <label for="date">Description</label> <?php echo form_textarea($data2); ?> </li> <li> <label for="date">Premium</label> <?php $dat=array( 'name' => 'premiumchange', 'id' => 'premiumchange', 'class' =>'auto' ); echo form_input($dat,$premiumchange); ?> </li> <li> <label for="date">Policy Fees</label> <?php $dat=array( 'name' => 'policyfeeschange', 'id' => 'policyfeeschange', 'class' =>'auto' ); echo form_input($dat,$policyfeeschange); ?> </li> <li> <table><tr> <td><label >Payment Method</label><select id="paymethod" name="paymethod" > <option value="credit" <?php if($paymentoptions=="credit"){ echo "selected"; } ?>>Credit</option> </select> </td></tr></table> </li> <li><label for="submit"> </label> <button type="submit" id="button1" class="clickimage" onclick="return validateform('policyno');">Update</button> </li> </ul> </fieldset> <?php echo form_close();?>