?
Current Path : /home1/savoy/public_html/savoyglobal.net/hr/application/views/Onboarding/ |
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/hr/application/views/Onboarding/employee_box.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->onboardingmodel->get_unalloted_employees($table_name,$batch_code); ?> <li> <table class="sort"> <caption>Available Employees</caption> <tr> <th align="center"><input style="width:15px;" checked 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); } $employee['emp_non_no'] = str_replace(',',', ', $employee['emp_non_no']); ?> <tr> <td> <input style="width:15px;" checked 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> <?=$employee['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> <table class="sort"> <caption>Send Alert to</caption> <tr> <th align="center">Select</th> <th align="center">Username</th> <th align="center">Designation</th> </tr> <?php $i=1; $user_list = $this->mastermodel->get_alert_users('12'); foreach ($user_list as $user) { ?> <tr> <td style="width:15px;" > <input type="checkbox" name="select_user_<?=$i;?>" checked /> </td> <td> <input type="hidden" name="user_id_<?=$i;?>" value="<?=$user['id'];?>"/> <?=$user['username'];?> </td> <td> <?=$user['designation_name'];?> </td> </tr> <?php $i++; } ?> </table> </li> <li> <label for="submit"> </label> <button type="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </li>