?
Current Path : /home1/savoy/public_html/savoyglobal.net/drafthr/system/application/views/HR/ |
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/HR/editcomstaff.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <?php $staffsalaryid=""; $data = $this->hrmodel->get_sal_data('staffsalary',$staffid,date("d-m-Y")); foreach ($data as $dpay) { $staffsalaryid = $dpay['id']; } $stflea=$this->hrmodel->numcount_data('leaveallocation',$staffid,'staffid'); $leavalloc=$this->hrmodel->getstfleavallocs('leaveallocation',$staffid,'staffid'); foreach ($leavalloc as $lalloc) { $staffleaveid = $lalloc['id']; } $stfemp=$this->mastermodel->get_data_srow('staffemployeedetails',$staffid,'staffid'); $stfdes=$this->hrmodel->numcount_data('commissionsettings',$stfemp->designationid,'designationid'); $attributes = array('id' => 'customForm'); echo form_open('hr/updatecomstaff',$attributes); ?> <div class="select-bar"> <label> <img src="<?=base_url()?>/assets/images/backbutton.png" title="Back" class="clickimage" onclick="loadstaff('<?=$_SESSION['pagenum']?>','<?=$_SESSION['searchoption']?>','<?=$_SESSION['searchtxt']?>')" alt="Back" align = "center" width="25" height="25" /></label> </div> <img src="<?=base_url()?>assets/images/leav_white.jpg" class = "clickimage" title="Leave" alt="Leave" align = "right" <?php if($stflea != 0){ ?> onclick="editstfleaveallocation(<?=$staffleaveid?>)" <?php } else { ?> onclick="alert('Leave not Set');" <?php } ?> /> <img src="<?=base_url()?>assets/images/com_white.jpg" class = "clickimage" title="Commission" alt="Commission" align = "right" <?php if($stfdes != 0){ ?> onclick="editcomstaff('<?=$staffid?>')" <?php } else { ?> onclick="alert('Commission not Set');" <?php } ?> /> <img src="<?=base_url()?>assets/images/sal_white.jpg" class = "clickimage" title="Salary" alt="Salary" align = "right" <?if ($staffsalaryid != ""){ ?>onclick="editstafsal(<?=$staffsalaryid?>)"<?php } else { ?> onclick="alert('Employee Salary not Set');" <?php } ?>/> <img src="<?=base_url()?>assets/images/per_white.jpg" class = "clickimage" title="Personal" alt="Personal" align = "right" onclick="editstaff(1,<?=$staffid?>)" /> <br><br><br><br> <fieldset> <ul> <li> <table class="sort" cellpadding="0" cellspacing="0" align="right" ><caption>Commission Settings</caption> <thead><tr> <th>Type of Cover</th> <th>New Policy(%)</th> <th>Renewal(%)</th> </tr><?php $no= 0; foreach($viewinfo as $updata) { $no++; echo form_hidden('comid_'.$no,$updata['id']); $covername=$this->mastermodel->get_data_srow('covers',$updata['cover_id'],'id'); ?> <tr> <td width="200px"><?=$covername->cover; ?></td> <td><?php echo form_input('newpolicy_'.$no,$updata['newpolicy']);?></td> <td><?php echo form_input('renewal_'.$no,$updata['renewal']);?></td> </tr> <?php } ?> </table></li> </ul> <li><label for="submit"> </label> <button type="submit" id="submit" class="clickimage" >Update</button> </li> </fieldset> <?php form_close(); ?>