?
Current Path : /home1/savoy/public_html/savoyglobal.net/sibs_draft/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/sibs_draft/system/application/views/HR/singlestaff.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <script type="text/javascript"> $(document).ready(function(){ //Display Loading Image viewfolderstructure('','','<?=$id?>','<?=$tablename?>','<?=$fieldname?>'); }); </script> <?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ foreach($viewinfo as $updata) { $staffid=$updata['id']; } $stfemp=$this->mastermodel->get_data_srow('staffemployeedetails',$staffid,'staffid'); $stfperm=$this->mastermodel->get_data_srow('staffpermaddress',$staffid,'staffid'); $stfloc=$this->mastermodel->get_data_srow('stafflocaladdress',$staffid,'staffid'); if($stfemp->reportingtostaffid != 0) { $stf=$this->mastermodel->get_data_srow('staffpersonaldetails',$stfemp->reportingtostaffid,'id'); $reportingname = $stf->name; } else { $reportingname =""; } $staffsalaryid=""; $data = $this->hrmodel->get_sal_data('staffsalary',$staffid,date("d-m-Y")); if(!empty ($data)) $staffsalaryid = $data->id; $stfdes=$this->hrmodel->numcount_data('commissionsettings',$stfemp->designationid,'designationid'); $stflea=$this->hrmodel->numcount_data('leaveallocation',$staffid,'staffid'); ?> <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="leavestaff(<?=$staffid?>)" <?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="comstaff('<?=$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="singstafsal(<?=$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="singlestaff(0,<?=$staffid?>)" /> <fieldset> <legend>Staff Details</legend> <fieldset class ="leftone"> <legend>Personal Details</legend> <ul> <li> <label>Employee Name</label> <label class="lbl_title"><?php echo $updata['name']; ?></label> </li> <li> <label>Employee No</label> <label class="lbl_title"><?php echo $updata['employeeid']; ?></label> </li> <li> <label>Gender</label> <label class="lbl_title"><?php echo $updata['gender']; ?></label> </li> <li> <label>Date of Birth</label> <label class="lbl_title"><?php echo $this->mastermodel->convdatformat($updata['dob']); ?></label> </li> <?php $date2 = date("Y-m-d"); $date1 = $updata['dob']; $diff = abs(strtotime($date2) - strtotime($date1)); $years = floor($diff / (365*60*60*24)); $months = floor(($diff - $years * 365*60*60*24) / (30*60*60*24)); ?> <li> <label for="date">Age</label> <label class="lbl_title"><?php printf("%d years, %d months\n", $years, $months); ;?></label> </li> <li> <label for="date">Marital Status</label> <label class="lbl_title"> <?php echo $updata['maritalstatus']; ?></label> </li> <li> <label for="date">Nationality</label> <label class="lbl_title"> <?php echo $updata['nationality']; ?></label> </li> <li> <label for="date">ID No.</label> <label class="lbl_title"> <?php echo $updata['idno']; ?></label> </li> <li> <label for="date">Passport No.</label> <label class="lbl_title"> <?php echo $updata['passportno']; ?></label> </li> <li> <label for="date">Type of Visa</label> <label class="lbl_title"> <?php echo $updata['typeofvisa']; ?></label> </li> <li> <label>Expiry of of Visa</label> <label class="lbl_title"> <?php echo $this->mastermodel->convdatformat($updata['expiryofvisa']); ?></label> </li> </ul> </fieldset> <fieldset class="rightone1"> <legend>Employee Details</legend> <ul> <li> <label for="date">Type</label> <label class="lbl_title"> <?php echo $updata['type']; ?></label> </li> <?php echo "<li><label>Designation</label>"; $desg=$this->mastermodel->get_data_srow('designation',$stfemp->designationid,'id'); echo '<label class="lbl_title">'.$desg->designation.'</label>'; ?> <?php echo "<li> <label>Department</label>"; $dep=$this->mastermodel->get_data_srow('department',$stfemp->deptid,'id'); echo '<label class="lbl_title">'.$dep->departmentname.'</label>'; ?> <?php echo "<li> <label>Grade</label>"; $grad=$this->mastermodel->get_data_srow('grade',$stfemp->gradeid,'id'); echo '<label class="lbl_title">'.$grad->gradename.'</label>'; ?> <?php echo "<li> <label>Status</label>"; $stat=$this->mastermodel->get_data_srow('status',$stfemp->statusid,'id'); echo '<label class="lbl_title">'.$stat->statusname.'</label>'; ?> <li> <label>Joining Date</label> <label class="lbl_title"> <?php echo $this->mastermodel->convdatformat($stfemp->joiningdate);?></label></li> <li> <label for="date">Reporting to</label> <label class="lbl_title"> <?php echo $reportingname; ?></label></li> <li> <label for="date">Branch</label> <?php $branch=$this->mastermodel->get_data_srow('ourbranch',$stfemp->branchid,'id'); ?> <label class="lbl_title"> <?php echo $branch->branchname ; ?></label></li> <li> <label for="date">Labour Card No.</label> <label class="lbl_title"> <?php echo $stfemp->labourcardno ; ?></label></li> <li> <label>Labour Card Expiry</label> <label class="lbl_title"> <?php echo $this->mastermodel->convdatformat($stfemp->labourcardexpiry ); ?></label></li> <li> <label for="date">Employee Device No</label> <label class="lbl_title"> <?php echo $stfemp->device_no ; ?></label> </li> </ul> </fieldset><br><br> <fieldset class="lefttwo1"> <legend>Permanent Address</legend> <ul> <li> <?php $data1 = array( 'name' => 'emailid', 'id' => 'emailid', 'value' => $stfperm->emailid, ); ?> <label for="date">Email Address</label> <label class="lbl_title"> <?php echo $stfperm->emailid ; ?></label> </li> <li> <label for="type">Phone No</label> <label class="lbl_title"> <?php echo $stfperm->phone ; ?></label> </li> <li> <label for="date">Mobile</label> <label class="lbl_title"> <?php echo $stfperm->mobile ; ?></label> </li> <li> <label for="date">Address</label> <label class="lbl_title"> <?php echo nl2br($stfperm->address) ; ?></label> </li> <li> <label for="date">Po Box</label> <label class="lbl_title"> <?php echo $stfperm->pobox ; ?></label> </li> <li> <label for="date">Country</label> <label class="lbl_title"> <?php echo $stfperm->country ; ?></label> </li> <li> <label for="date">City</label> <label class="lbl_title"> <?php echo $stfperm->city ; ?></label> </li> </ul> </fieldset> <fieldset class="righttwo1"> <legend>Local Address</legend> <ul> <li> <label for="type">Phone No</label> <label class="lbl_title"> <?php echo $stfloc->phone ; ?></label> </li> <li> <label for="date">Mobile</label> <label class="lbl_title"> <?php echo $stfloc->mobile ; ?></label> </li> <li> <label for="date">Address</label> <label class="lbl_title"> <?php echo nl2br($stfloc->address) ; ?></label> </li> <li> <label for="date">Po Box</label> <label class="lbl_title"> <?php echo $stfloc->pobox ; ?></label> </li> <li> <label for="date">Country</label> <label class="lbl_title"> <?php echo $stfloc->country ; ?></label> </li> <li> <label for="date">City</label> <label class="lbl_title"> <?php echo $stfloc->city ; ?></label> </li> <li></li> </ul> </fieldset> <fieldset> <legend>Educational Qualification</legend> <ul> <table id="addrow" border="0" cellpadding="0" cellspacing="0" width="80%"> <tbody><tr class="red_bold" align="left" valign="top"> <td width="25%">Course</td> <td width="18%">University</td> <td width="18%">Year of Passing</td> </tr> <?php $id=1; foreach ($viewedu as $edu) {?> <tr class="bold_black" align="left" valign="top"> <td><?php echo $edu['course'];?> </td> <td><?php echo $edu['university'];?></td> <td><?php echo $edu['yearofpassing'];?></td> </tr> <?php $id++; } ?> </tbody></table> </ul> </fieldset> <li></li> <fieldset> <legend>Additional Certification</legend> <ul> <table id="addrow" border="0" cellpadding="0" cellspacing="0" width="80%"> <tbody><tr class="red_bold" align="left" valign="top"> <td width="25%">Course</td> <td width="18%">Institute</td> <td width="18%">Year of Passing</td> </tr> <?php $id=1; foreach ($viewcert as $cert) {?> <tr class="bold_black" align="left" valign="top"> <td><?php echo $cert['course'];?> </td> <td><?php echo $cert['institute'];?></td> <td><?php echo $cert['yearofpassing'];?></td> </tr> <?php $id++; } ?> </tbody></table> </ul> </fieldset> <li></li> <fieldset> <legend>Professional Experience</legend> <ul> <table id="addrow" border="0" cellpadding="0" cellspacing="0" width="80%"> <tbody><tr class="red_bold" align="left" valign="top"> <td width="25%">Employer</td> <td width="18%">Designation</td> <td width="18%">Period</td> </tr> <?php $id=1; foreach ($viewprof as $prof) {?> <tr class="bold_black" align="left" valign="top"> <td><?php echo $prof['employer'];?> </td> <td><?php echo $prof['designation'];?></td> <td><?php echo $prof['period'];?></td> </tr> <?php $id++; } ?> </tbody></table> </ul> </fieldset><li></li> </fieldset> <fieldset> <legend>Files</legend> <div id="Folderssv"> </div> </fieldset>