?
Current Path : /home1/savoy/public_html/savoyglobal.net/eldertree/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/eldertree/application/views/hr/loadunpostedsalary.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $this->load->view('accounting/accountingfunctions'); $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); ?> <table class="table table-striped table-hover table-bordered" id="sample_4"> <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> <a class="receipt_voucher" data-employee_salary_slip_id="<?= $row['employee_salary_slip_id']; ?>" id="image_icon" href="#" > <img src="<?= base_url() ?>/assets/img/saldet.png" title="View" width="20" height="20" alt="View Entry" align = "center" /></a> </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 class="portlet box yellow"> <div class="portlet-title"> <div class="caption"><i classd="icon-cogs"></i>Payment Details</div> </div> <div class="portlet-body"> <table class="table table-striped table-hover table-bordered" id="sample_5"> <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 class="form-actions"> <button type="submit" class="btn blue" onclick="return check_bank_selected('bank_account_code');">Process</button> </div> <div style="display: none;"> <div id="staffsaldetdiv"></div> </div> <?php echo form_close(); ?> <script> jQuery(document).ready(function() { $('.receipt_voucher').on("click",function(e){ e.preventDefault(); var $modal = $('<div id="payment_vouchar_div" class="modal hide container fade" tabindex="-1"></div>'); var wef_date=$('#wef_date').val(); var salid = $(this).data('employee_salary_slip_id'); $.ajax({ url : "<?= site_url('hr/loadunpostedsalary/add_single_posted_salary_payment/') ?>/" + salid +"/"+wef_date, success: function(data){ $modal.empty().html(data); $modal.modal(); } }); }); }); </script>