?
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/singlestaffsalary.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ foreach($viewinfo as $updata) { $staffid =$updata['staffid']; $date = $updata['date']; $basicsalary = $updata['basicsalary']; $staffsalaryid=$updata['id']; $premiumtarget=$updata['premiumtarget']; $currencyid=$updata['currencytype']; $commission=$updata['commission']; $paymethod=$updata['paymethod']; $currency=$updata['currencytype']; } $currname=$this->customermodel->getSingleFieldValue('country','currencyname','id',$currency); $currcode=$this->customermodel->getSingleFieldValue('country','currencycode','id',$currency); $stf=$this->mastermodel->get_data_srow('staffpersonaldetails',$staffid,'id'); $allowded=$this->mastermodel->get_data('staffsalaryallowdeduc',$staffsalaryid,'staffsalaryid'); $date=$this->mastermodel->convdatformat($date); $cur=$this->mastermodel->get_data_srow('country',$currencyid,'id'); ?> <div class="select-bar"> <label> <img src="<?=base_url()?>/assets/images/backbutton.png" title="Back" class="clickimage" onclick="loadstaffsalary('<?=$_SESSION['pagenum']?>','<?=$_SESSION['searchoption']?>','<?=$_SESSION['searchtxt']?>')" alt="Back" align = "center" width="25" height="25" /></label> </div> <fieldset> <legend>Staff-Salary Settings</legend> <ul> <li> </li> <li> <label for="date">Employee Name</label> <label class="lbl_title"> <?=$stf->name;?></label> </li> <?php $stfper=$this->mastermodel->get_data_srow('staffpersonaldetails',$staffid,'id'); $stfemp=$this->mastermodel->get_data_srow('staffemployeedetails',$staffid,'staffid'); $desg = $this->mastermodel->get_data_srow('designation',$stfemp->designationid,'id'); $dept= $this->mastermodel->get_data_srow('department',$stfemp->deptid,'id'); if(!empty($desg)||!empty($dept)) { $designation=$desg->designation; $department=$dept->departmentname; } else { $designation=""; $department=""; } ?> <li> <fieldset> <ul> <li><label>Employee No</label><label class="lbl_title"> <?=$stfper->employeeid;?></label></li> <li><label>Designation</label><label class="lbl_title"> <?=$designation;?></label></li> <li><label>Department</label><label class="lbl_title"> <?=$department;?></label></li> </ul> </fieldset> <li> <label for="date">Date</label> <label class="lbl_title"><?=$date; $gross=0; ?></label> </li> <li> <label for="date">Basic Salary</label> <label class="lbl_title"><?=$cur->currencycode ;?> <?=$basicsalary;?></label> <?php $gross += $basicsalary; ?> </li> <li> <table align="left" width="700px"><tr><td valign="top"> <table class="sort" cellpadding="0" cellspacing="0" align="left" ><caption>Allowance Details</caption> <thead><tr> <th>Allowance Type</th> <th>Amount</th> </tr> <?php $i=1; $totalallow=0; foreach($allowded as $alde) { if($alde['allowdeductype'] == "1") { $data = array( 'name' => 'newpolicy_'.$i, 'id' => 'newpolicy_'.$i, 'style' => 'width:80%', 'value' => $alde['amount'], ); $allowdeducname=$this->mastermodel->get_data_srow('allowdeduc',$alde['allowdeducid'],'id'); ?> <tr> <td width="200px"><?=$allowdeducname->allowdeducname;?> </td><td width="100px" align="right"> <?php echo $alde['amount']; $gross+= $alde['amount']; $totalallow+=$alde['amount']; ?> </td> </tr> <?php $i++; }} ?> <tr><td><font color="a4bde8">Total Allowance(<?=$cur->currencycode ;?>)</font></td><td align="right"><strong><?=$totalallow;?></strong></td></tr> </tbody></table> </td><td valign="top" width="20px"></td><td valign="top"> <table class="sort" cellpadding="0" cellspacing="0" align="right" ><caption>Deduction Details</caption> <thead><tr> <th>Deduction Type</th> <th>Amount</th> </tr> <?php $i=1; $totaldeduc=0; foreach($allowded as $alde) { if($alde['allowdeductype'] == "0") { $allowdeducname=$this->mastermodel->get_data_srow('allowdeduc',$alde['allowdeducid'],'id'); ?> <tr> <td width="200px"><?=$allowdeducname->allowdeducname;?> </td><td width="100px" align="right"> <?php echo $alde['amount']; $gross-= $alde['amount']; ?> </td> </tr> <?php $i++; $totaldeduc+=$alde['amount']; }} ?> <tr><td><font color="a4bde8">Total Dedution(<?=$cur->currencycode ;?>)</font></td><td align="right"><strong><?=$totaldeduc;?></strong></td></tr> </tbody></table></td></tr></table> </li> <li> <label for="date"> Gross Salary</label> <label class="lbl_title"><?=$cur->currencycode ; ?> <?=$gross;?></label> <?php if($commission == '1') { ?> <li> <label for="date"> Premium Target</label> <label class="lbl_title"><?=$cur->currencycode ; ?> <?=$premiumtarget;?></label> </li> <?php } ?> <li> <label>Payment Method</label> <label class="lbl_title"> <?=ucfirst($paymethod);?></label> </li> <?php if($paymethod!='cash') { $paydetails=$this->mastermodel->get_data_srow('salarybank',$staffsalaryid,'sal_id'); } // if($paymethod=='bank') // { // ?> <!--li> // <label>DD/Cheque No.</label> // <label class="lbl_title"> <?=$paydetails->ch_dep_no;?></label> // <label>Bank Name</label> // <label class="lbl_title"> <?=$paydetails->bank_name;?></label> // </li> // <?php // } // // else if($paymethod=='netbank') // { // ?> // <li> // <label>Account Holder</label> // <label class="lbl_title"> <?=$paydetails->ch_dep_no;?></label> // <label>Bank Name</label> // <label class="lbl_title"> <?=$paydetails->bank_name;?></label> // </li> // <li> // <label>Account No.</label> // <label class="lbl_title"> <?=$paydetails->acc_no;?></label> // <label>Branch Name</label> // <label class="lbl_title"> <?=$paydetails->branch_name;?></label> // </li--> <?php // } ?> <li></li> <fieldset> <legend>Medical Insurance Settings</legend> <li></li> <table class="sort" id="addmed" border="0" cellpadding="0" cellspacing="0" width="60%"> <tbody><tr class="red_bold" align="left" valign="top"> <th width="10%">Sl No</th> <th width="10%">Type Of Insurance</th> <th width="20%">Insurance Company</th> <th width="18%">Policy No</th> <th width="12%">Plan Name</th> <th width="12%">Sum Insured</th> </tr> <?php $id=1; foreach ($viewactivity as $activity) { ?> <tr class="bold_black" align="left" valign="top"> <td><?=$id?></td> <td><?=$activity['type']?></td> <td><?=$activity['company']?></td> <td><?=$activity['policy']?></td> <td><?=$activity['plan']?></td> <td><?=$activity['sum']?></td> </tr> <?php } ?> </tbody></table> </fieldset> <fieldset> <legend>Annual Ticket Settings</legend> <ul><li><label>FROM : </label><label><?=$updata['fromticket'];?></label><label> - To : </label><label><?=$updata['toticket'];?></label> <br> <label>Return Ticket</label><label><?php if($updata['returnticket']=='1'){?>Yes<?php } else { ?> No <?php } ?> </label></li> <li> <table class="sort" id="addmed" border="0" cellpadding="0" cellspacing="0" width="60%"> <tbody><tr class="red_bold" align="left" valign="top"> <th width="10%">Sl No</th> <th width="50%">Description</th> <th width="40%">Name</th> </tr> <?php $id=1; foreach ($viewactivity1 as $activity1) { ?> <tr class="bold_black" align="left" valign="top"> <td><?=$id?></td> <td><?=$activity1['description']?></td> <td><?=$activity1['name']?></td> </tr> <?php } ?> </tbody></table> </li> </ul> </fieldset> <li></li> </ul> </fieldset>