?
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/edit_training.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <div class="select-bar"> <label><img src="<?=base_url()?>assets/images/backbutton.png" title="Back" class="clickimage" onclick="viewdata('administration','viewinadministrationsearch','search_training','view_training','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Update Employee Training Details</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('administration/addinadministration/update_training/view_training/1',$attributes); $employee = $this->administrationmodel->get_emp_info($viewinfo->employee_id); 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); ?> <ul> <li> <label for="data">Employee Name</label> <div class="record_entry"> <?php echo $employee->emp_non_full_name; ?> <input type="hidden" name="employee_id" value="<?=$viewinfo->employee_id;?>"/> <input type="hidden" name="employee_training_id" value="<?=$viewinfo->employee_training_id;?>"/> </div> </li> <li> <label for="data">Employee No</label> <div class="record_entry"> <?php echo $emp_non_no; ?> </div> </li> <li> <label for="data">Joining Date</label> <div class="record_entry"> <?php echo $employee->emp_non_date_joining; ?> </div> </li> <li> <label for="data">Trade</label> <div class="record_entry"> <?php echo $employee->trade_name; ?> </div> </li> <li> <label for="data">Training Module</label> <select name="training_id" id="training_id" class="required"> <option value="">Select</option> <?php $training_list=$this->mastermodel->get_data('training_module',$employee->trade_id,'trade_id'); foreach($training_list as $training) { echo "<option value='". $training['training_module_id'] . "'";if($viewinfo->training_id == $training['training_module_id'] ){echo "selected";} echo ">" . $training['training_type'] . "</option>"; } ?> </select> </li> <li> <table class="sort"> <caption>Training Date</caption> <tr> <th align="center">Start Date</th> <th align="center">End Date</th> </tr> <tr> <td> <div id="multi"> <input type="text" name="training_date_start" id="training_date_start" value="<?=$this->mastermodel->convertdatenormalformat($viewinfo->training_date_start);?>" /> <img src="<?=base_url()?>assets/images/icons/calendar.png" alt="Click to popup the clendar!" /> </div> </td> <td> <div id="multi"> <input type="text" name="training_date_end" id="training_date_end" value="<?=$this->mastermodel->convertdatenormalformat($viewinfo->training_date_end);?>" /> <img src="<?=base_url()?>assets/images/icons/calendar.png" alt="Click to popup the clendar!" /> </div> </td> </tr> </table> </li> <li> <table class="sort"> <caption>Training Test</caption> <tr> <th align="center">Attempt</th> <th align="center">Test Date</th> <th align="center">Test Result</th> </tr> <tr> <td> First Attempt </td> <td> <div id="multi"> <input type="text" name="first_attempt_date" id="first_attempt_date" value="<?=$this->mastermodel->convertdatenormalformat($viewinfo->first_attempt_date);?>"/> <img src="<?=base_url()?>assets/images/icons/calendar.png" alt="Click to popup the clendar!" /> </div> </td> <td> <select name="first_attempt_result" id="first_attempt_result"> <option value="">Select</option> <option value="Pass" <?php if($viewinfo->first_attempt_result == "Pass"){echo "selected";} ;?>>Pass</option> <option value="Fail" <?php if($viewinfo->first_attempt_result == "Fail"){echo "selected";} ;?>>Fail</option> </select> </td> </tr> <tr> <td> Second Attempt </td> <td> <div id="multi"> <input type="text" name="second_attempt_date" id="second_attempt_date" value="<?=$this->mastermodel->convertdatenormalformat($viewinfo->second_attempt_date);?>" /> <img src="<?=base_url()?>assets/images/icons/calendar.png" alt="Click to popup the clendar!" /> </div> </td> <td> <select name="second_attempt_result" id="second_attempt_result"> <option value="">Select</option> <option value="Pass" <?php if($viewinfo->second_attempt_result == "Pass"){echo "selected";} ;?>>Pass</option> <option value="Fail" <?php if($viewinfo->second_attempt_result == "Fail"){echo "selected";} ;?>>Fail</option> </select> </td> </tr> </table> </li> <li> <label for="data">Remarks</label> <?php $data = array( 'name' => 'remarks', 'id' => 'remarks', 'value' => $viewinfo->remarks ); echo form_textarea($data).form_error($data); ?> </li> <li> <input type="hidden" name="tab_name" value="employee_training"/> <input type="hidden" name="resfunction" value="search_employee_training"/> </li> <li> <label for="submit"> </label> <button type="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>