?
Current Path : /home1/savoy/public_html/savoyglobal.net/horeitia/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/public_html/savoyglobal.net/horeitia/application/views/Administration/add_training.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <script language="javascript" type="text/javascript"> jQuery(document).ready(function() { suggestValues(); <?php if(isset($employee_name)) { ?> show_employee_info(); <?php } ?> }); function suggestValues() { $("#employee_name").autocomplete("<?= site_url()?>/administration/all_employees", { width: 300, selectFirst: false }); } function show_employee_info() { var employee_name = $('#employee_name').val(); var flag = 0; var iChars = "-"; for (var i = 0; i < employee_name.length; i++) { if (iChars.indexOf(employee_name.charAt(i)) != -1) { flag = 1; } } if(employee_name == "" || flag == 0) { alert("Please select Employee First"); } else { $("#employee_info").empty().html('<CENTER><img src="<?=base_url()?>assets/images/loading.gif" class="loading"/></CENTER>'); employee_name = encodeURIComponent(employee_name); $("#employee_info").load("<?=site_url()?>/administration/get_employee_info/employee_info_training/"+employee_name); } } </script> <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">Insert Employee Training Details</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('administration/addinadministration/insert_training/view_training/1',$attributes); if(isset($employee_name)) { $employee = urldecode($employee_name); echo "<input type='hidden' name='alert_id' value='$alert_id'/>"; } else $employee = ""; ?> <ul> <li> <label for="data">Select Employee</label> <input type="text" name="employee_name" id="employee_name" class="required" value="<?=$employee;?>"> <input type="button" value="Load Employee Info" onclick="show_employee_info()" style="margin-left: 5px; width: 130px;"/> </li> <div id="employee_info"> </div> <li> <input type="hidden" name="tab_name" value="employee_training"/> <input type="hidden" name="resfunction" value="search_employee_training"/> </li> </ul> <?php echo form_close();?> </fieldset>