?
Current Path : /home1/savoy/www/savoyglobal.net/sgms/application/views/Administration/ |
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/sgms/application/views/Administration/employee_box_site.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?> <script type="text/javascript"> function checkallemp(status) { if(status.checked == true) { var num_rows = $("#num_rows").val(); for(i=1; i<= num_rows; i++) { document.getElementById('select_employee_'+i).checked = true; } } if(status.checked == false) { var num_rows = $("#num_rows").val(); for(i=1; i<= num_rows; i++) { document.getElementById('select_employee_'+i).checked = false; } } } </script> <?php $employees_list=$this->administrationmodel->get_alloted_employees_site($value,$batch_code,''); ?> <li> <table class="sort"> <caption>Available Employees</caption> <tr> <th align="center"><input style="width:15px;" type="checkbox" id="check_all" name="check_all" onclick="checkallemp(this)"/></th> <th align="center">Employee Name</th> <th align="center">Employee No</th> <th align="center">Trade</th> <th align="center">Batch Code</th> <th align="center">Joining Date</th> </tr> <?php $i=1; foreach($employees_list as $employee) { if($employee['emp_non_no'][0]==',') { $employee['emp_non_no']=substr($employee['emp_non_no'], 1); } $emp_non_no = str_replace(',',', ', $employee['emp_non_no']); ?> <tr> <td> <input style="width:15px;" type="checkbox" id="select_employee_<?=$i;?>" name="select_employee_<?=$i;?>" /> <input type="hidden" name="employee_id_<?=$i;?>" value="<?=$employee['emp_non_id'];?>" /> </td> <td> <?=$employee['emp_non_full_name'];?> </td> <td> <?=$emp_non_no;?> </td> <td> <?=$employee['trade_name'];?> </td> <td> <?=$employee['batch_code'];?> </td> <td> <?=$this->mastermodel->convdatformat($employee['emp_non_date_joining']);?> </td> </tr> <?php $i++; } ?> </table> <input type="hidden" id="num_rows" value="<?=($i-1);?>"/> </li> <li> <label for="submit"> </label> <button type="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </li>