?
Current Path : /home1/savoy/www/savoyglobal.net/sibs_draft/system/application/views/Claims/ |
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/sibs_draft/system/application/views/Claims/editclaim.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'}); $('.three').datepick({dateFormat: 'dd-mm-yyyy'}); $('.four').datepick({dateFormat: 'dd-mm-yyyy'}); suggestpolicyno('policyno_search'); }); </script> <?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ foreach($viewinfo as $updata) { $claimid = $updata['id']; $policyid=$updata['policyid']; $dateofloss=$updata['dateofloss']; $intimationdate=$updata['intimationdate']; $claimsref=$updata['claimsref']; $claimspolicyno=$updata['claimspolicyno']; $descofloss=$updata['descofloss']; $estimatedamt=$updata['estimatedamt']; $date=$updata['date']; $status=$updata['status']; $cid=$updata['currency']; } $policynum=$this->mastermodel->get_data_srow('policynote',$policyid,'id'); $dateofloss=$this->mastermodel->convdatformat($dateofloss); $intimationdate=$this->mastermodel->convdatformat($intimationdate); $date=$this->mastermodel->convdatformat($date); ?> <div class="select-bar"> <label> <img src="<?=base_url()?>/assets/images/backbutton.png" title="Back" class="clickimage" onclick="loadclaim('<?=$_SESSION['pagenum']?>','<?=$_SESSION['searchoption']?>','<?=$_SESSION['searchtxt']?>')" alt="Back" align = "center" width="25" height="25" /></label> </div> <fieldset> <legend>Update Claim</legend> <?php $attributes = array('id' => 'customForm'); echo form_open_multipart('claims/editclaim',$attributes); echo form_hidden('claimid',$claimid); ?> <ul> <li> <label>Date</label> <input class="three" name="date" id="date" value="<?php echo $date; ?>" readonly="true" type="text" style="background-image: url(../../../../assets/images/datefocus.gif);"> </li> <li> <label for="country">Policy No</label> <?php $data = array( 'name' => 'policyno', 'id' => 'policyno', 'value' => $policynum->policyno, ); ?> <?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="policyidInfo" class="red_bold">*</span> <input type="hidden" name="policyid" id="policyid" value="<?php echo $policynum->id; ?>"> </li> <li >OR</li> <li> <label>Policy No.</label><input type="text" value="<?=$policynum->policyno;?>" name="policyno_search" id="policyno_search" /> <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> <div id="enddet" > </div> <li> <label>Date of Loss</label> <input class="one" name="dateofloss" readonly="true" id="dateofloss" type="text" value="<?php echo $dateofloss;?>" style="background-image: url(../../../../assets/images/datefocus.gif);"> <span id="dateoflossInfo" class="red_bold">*</span> </li> <li> <label>Claims Intimation Date</label> <input class="two" name="intimationdate" readonly="true" id="intimationdate" type="text" value="<?php echo $intimationdate;?>" style="background-image: url(../../../../assets/images/datefocus.gif);"> <span id="intimationdateInfo" class="red_bold">*</span> </li> <?php ?> <input type="hidden" name="claimsref" value="<?php echo $claimsref; ?>"> <li> <label for="country">Claims Policy No</label> <?php $data1 = array( 'name' => 'claimspolicyno', 'id' => 'claimspolicyno', 'value' => $claimspolicyno, ); ?> <?php echo form_input($data1).form_error($data1); ?><span id="claimspolicynoInfo" class="red_bold">*</span> </li> <li> <?php $currency= $this->customermodel->getSingleFieldValue('country','currencyname','id',$cid); ?> <label>Currency</label><select name="currency" id="currency"> <option value="<?=$cid?>"><?=$currency?></option> <?php foreach($curlist as $cur) { if($cid!=$cur['id']) { echo '<option value="'.$cur['id'].'">'.$cur['currencyname'] .'</option>'; } } ?> </select> </li> <li> <?php $data2 = array( 'name' => 'descofloss', 'id' => 'descofloss', 'rows' => '5', 'cols' => '5', 'style' => 'width:50%', 'value' => $descofloss ); ?> <label for="date">Description of Loss</label> <?php echo form_textarea($data2); ?> </li> <li> <label for="country">Estimated Claim Amount</label> <?php $data3 = array( 'name' => 'estimatedamt', 'id' => 'estimatedamt', 'value' => $estimatedamt ); $options = array( 'Pending' => 'Pending', 'Settled' => 'Settled', 'Partial Payment' => 'Partial Payment', 'Denied' => 'Denied', ); ?> <?php echo form_input($data3).form_error($data3); ?><span id="estimatedamtInfo" class="red_bold">*</span> </li> <li> <label for="Name">Status</label> <?php echo form_dropdown('status',$options,$status);?> </li> <li></li> <fieldset> <legend>Claim Description</legend> <li> <input name="addRows" value="Add More" onclick="addRowToTableClaims();" title="Add more details." type="button"> <input name="deleteRows" value="Remove" onclick="removeRowFromTableClaims();" title="Delete the last detail." type="button"> </li> <li></li> <table class="sort" id="addrow" border="0" cellpadding="0" cellspacing="0" width="60%"> <tbody><tr class="red_bold" align="left" valign="top"> <th width="10%">Date</th> <th width="18%">Description</th> <th width="12%">Remarks</th> <?php $id=1; foreach ($viewactivity as $activity) {?> </tr> <tr class="bold_black" align="left" valign="top"> <td><input class="four" name="txt_conDate_<?=$id?>" id="txt_conDate_<?=$id?>" value="<?=$activity['date']?>" style="width: 100px;" type="text" style="background-image: url(../../../../assets/images/datefocus.gif);"> <input name="hid_conCnt" id="hid_conCnt" value="3" type="hidden"></td> <td><input name="txt_conDesc_<?=$id?>" id="txt_conDesc_<?=$id?>" value="<?=$activity['description']?>" style="width: 150px;" type="text"></td> <td><textarea name="txt_conRem_<?=$id?>" id="txt_conRem_<?=$id?>" style="width: 200px;"><?=$activity['remarks']?></textarea></td> </tr> <input name="hidc_<?=$id?>" id="hidc_<?=$id?>" value="<?=$activity['id']?>" type="hidden"> <?php $id++; } ?> </tbody></table> </fieldset> <li></li> <li></li> <fieldset> <legend>Claims Settlement Amount</legend> <li> <input name="addRows" value="Add More" onclick="addRowToTableClaimsSet();" title="Add more details." type="button"> <input name="deleteRows" value="Remove" onclick="removeRowFromTableClaimsSet();" title="Delete the last detail." type="button"> </li> <li></li> <table class="sort" id="addsettl" border="0" cellpadding="0" cellspacing="0" width="60%"> <tbody><tr class="red_bold" align="left" valign="top"> <th width="18%">Description</th> <th width="12%">Amount</th> </tr> <?php $id=1; foreach ($settlement as $set) {?> <tr class="bold_black" align="left" valign="top"> <td><textarea name="txt_conDescSet_<?=$id?>" id="txt_conDescSet_<?=$id?>" style="width: 250px;"><?=$set['description'];?></textarea></td> <td><input name="txt_conAmt_<?=$id?>" id="txt_conAmt_<?=$id?>" style="width: 200px;" value="<?=$set['amount'];?>" type="text"> <input name="hid_conCnt" id="hid_conCnt" value="1" type="hidden"> <input name="hidc_<?=$id?>" id="hidc_<?=$id?>" value="<?=$set['id']?>" type="hidden"></td> </tr> <?php $id++; } ?> </tbody></table> </fieldset> <li></li> <li><label for="submit"> </label> <button type="submit" id="submit" class="clickimage" onclick="return doallthethree();">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>