?
Current Path : /home1/savoy/public_html/savoyglobal.net/sibsmoved/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/sibsmoved/system/application/views/HR/sinstaffleave.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?> <?php foreach ($leavalloc as $leaveapplydata) { $staffid = $leaveapplydata['staffid']; $year = $leaveapplydata['year']; } $stfemp = $this->mastermodel->get_data_srow('staffemployeedetails', $staffid, 'staffid'); $staffsalaryid = ""; $data = $this->hrmodel->get_sal_data('staffsalary', $staffid, date("d-m-Y")); $staffsalaryid = $data->id; $stflea = $this->hrmodel->numcount_data('leaveallocation', $staffid, 'staffid'); $stfdes = $this->hrmodel->numcount_data('commissionsettings', $stfemp->designationid, 'designationid'); ?> <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 ?>)" /> <br><br><br> <fieldset> <ul> <li> <table class="sort" cellpadding="0" cellspacing="0"><caption>Leave Allocated for <?= date("Y"); ?></caption> <thead> <tr> <th>Leave Type</th> <th>Allocated</th> <th>Taken</th> <th>Balance</th> </tr> <?php foreach ($leavalloc as $updata) { $type = $updata['leavetypeid']; $noofdays = $updata['noofdays']; $leavetypename = $this->mastermodel->get_data_srow('leavetype', $type, 'id'); $taken = $this->hrmodel->get_leave_balance($staffid, $type, $year); ?> <tr><td><?= $leavetypename->leavename; ?></td><td><?= $noofdays; ?></td> <td><?= $taken; ?></td><td><?= $noofdays - $taken; ?></td></tr> <?php } ?> </thead> </table> </li> <li> <table class="sort" cellpadding="0" cellspacing="0"><caption>Leave Applied for <?= date("Y"); ?></caption> <thead><tr> <th>Leave Type</th> <th>From Date </th> <th>To Date</th> <th>Leave Type</th> <th>Leave Status</th> <th>Remarks</th> </tr> <?php foreach ($leaveapply as $leaveapplydata) { $fromdate = $leaveapplydata['fromdate']; $todate = $leaveapplydata['todate']; $type = $leaveapplydata['type']; $leavestatus = $leaveapplydata['leavestatus']; $staffid = $leaveapplydata['staffid']; $remarks = $leaveapplydata['remarks']; $leavetypename = $this->mastermodel->get_data_srow('leavetype', $type, 'id'); ; ?> <tr> <td><?= $leavetypename->leavename; ?></td> <td><?= $fromdate; ?></td> <td><?= $todate; ?></td> <td><?= $leavetypename->leavename; ?></td> <td><?= $leavestatus; ?></td> <td><?= $remarks; ?></td> </tr> <?php } ?> </thead></table> </li> </ul> </fieldset>