?
Current Path : /home1/savoy/www/savoyglobal.net/eduplus1/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/www/savoyglobal.net/eduplus1/application/views/hr/loadunpostedsalary.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $this->load->view('hr/hrfunctions'); ?> <script type="text/javascript"> jQuery(document).ready(function() { checkfiscalyear(); $('#validateform :checkbox').click(function() { checkallcheckbox(); }); checkunpostedsal(); }); function check_bank_selected(select){ if($('#'+select).val()==""){ alert("Select Bank Account") return false; } else if($('[name="salempdet[]"]:checked').length==0){ alert("Select Atleast one employee") return false; } else { addformdata('validateform'); } return true; } </script> <?php $attributes = array('id' => 'validateform', 'class' => 'customForm'); echo form_open('hr/addinhr/insert_multiple_posted_salary_payment/view_payslip/1', $attributes); ?> <div class="grid_12" > <div class="box"> <div id="viewmsg" style="width: 90%;margin: auto 0;height: 25px;"></div> <div class="header main">Employee</div> <div class="content no-padding" > <table class="table" cellpadding="0" cellspacing="0"> <tr> <th><input type="checkbox" style="width: 20px;" checked name="checksalempdet" id="checksalempdet" onclick="checkunpostedsal()" value="1"/></th> <th>Sl No.</th> <th>Employee no</th> <th>Name</th> <th>Designation</th> <th>Department</th> <th width="15%" class="last">Action</th> </tr> <?php $z = 1; $no = 1; foreach ($viewinfo as $row) { if ($z % 2 == 0) $alt = "alt"; else $alt = "alt1"; $emp = $this->mastermodel->get_data_srow('employee', $row['employee_id'], 'employee_id'); $desg = $this->mastermodel->get_data_srow('designation', $emp->employee_designation_id, 'designation_id'); $dept = $this->mastermodel->get_data_srow('department', $emp->employee_department_id, 'department_id'); ?> <tr class="<?= $alt ?>"> <td><input type="checkbox" style="width: 20px;" name="salempdet[]" id="salempdet_<?= $no ?>" value="<?= $row['employee_salary_slip_id'] ?>"/></td> <td><?= $no ?></td> <td><?= $row['employee_no'] ?></td> <td><?= $row['employee_name'] ?></td> <td> <?php if (!empty($desg)) { echo $desg->designation_name; } ?> </td> <td> <?php if (!empty($dept)) { echo $dept->department_name; } ?></td> <td> <div id="console_fronticons"> <div class="fronticons"> </div> <div class="fronticons"> <?= anchor("hr/unposted_payslip_pdf/".$row['employee_salary_slip_id'], '<img src="' . base_url() . '/assets/images/pdf.png" title="PaySlip" width="20" height="20">', 'title="PaySlip"'); ?> <img id="saldetexample" src="<?= base_url() ?>/assets/images/saldet.png" title="Salary Details" width="20" height="20" alt="Salary Details" align = "center" class="clickimage slslip" onclick="viewunpostedpayslip(<?= $row['employee_salary_slip_id'] ?>)" alt="" /> <img src="<?=base_url()?>assets/images/delete-icon.png" title="Delete" width="20" height="20" onclick="deletedata('employee_salary_slip',<?=$row['employee_salary_slip_id'];?>,'employee_salary_slip_id','hr','viewinhrsearch','search_payslip','view_payslip','','')" alt="Delete" align = "center"/> </div> </div> </td></tr> <?php $no++; $z++; } ?> <input type="hidden" name="empcount" id="empcount" value="<?= $no ?>"/> <input type="hidden" name="wef_date" id="wef_date" value="<?= $wef_date ?>"/> </table> </div> </div> </div> <div class="grid_12" > <div class="box"> <div class="header main">Payment Details</div> <div class="content no-padding" > <table class="table"> <tr> <th width="40%">Memo</th> <th width="40%">From Account</th> <th>Payment Method</th> </tr> <tr> <td> <?php $data = array( 'name' => 'memo', 'id' => 'memo', 'style' => 'width:300px;height:80px', ); echo form_textarea($data) . form_error($data); ?> </td> <td> <select name="bank_account_code" id="bank_account_code" class="" style="width:160px"> <option value="">Select</option> <?php $bankacc = $this->mastermodel->getdatas('finance_bank_account'); if (count($bankacc)) { foreach ($bankacc as $key => $acc) { echo "<option value='" . $acc['chart_account_code'] . "' >" . $acc['chart_account_code'] . '-' . $acc['bank_name'] . "</option>"; } } ?> </select> </td> <td> <input type="hidden" value="1" name="payment_type_id"/> <input type="text" value="Cash" readonly style="width: 150px;"/> </td> </tr> </table> </div> </div> </div> <div class="grid_12 "> <div class="box"> <div class="actions"> <div class="actions-left"> <div style="display:none"> <div id="empdiv"></div> </div> </div> <div class="actions-right"> <button type="submit" class="clickimage" onclick="return check_bank_selected('bank_account_code');">Process</button> <!-- <button type="submit" id="button1" class="clickimage" onclick="addformdata('validateform')">Process</button>--> </div> </div> </div> </div> <div style="display: none;"> <div id="staffsaldetdiv"></div> </div> <?php echo form_close(); ?>