?
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/add_site_allotment.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() { var currentTime = new Date() var month = currentTime.getMonth() + 1 var day = currentTime.getDate() var year = currentTime.getFullYear() var allotment_date = day+"-"+ month+"-"+year; suggestValues(allotment_date); }); function suggestValues(allotment_date) { $("#batch_name").autocomplete("<?= site_url() ?>/onboarding/autosuggest_batch/"+allotment_date, { width: 250, selectFirst: false }); $("#employee_name").autocomplete("<?= site_url() ?>/onboarding/autosuggest/site_allotment/"+allotment_date, { width: 250, selectFirst: false }); } </script> <div class="select-bar"> <label> </label> <span class="heading">Allot employees to site</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('onboarding/addinonboarding/insert_site_allotment/view_site_allotment/1',$attributes); ?> <ul> <li> <label for="data">Site Name</label> <input type="hidden" name="site_id" value="<?=$viewinfo->site_id;?>"/> <div class="record_entry"> <?=$viewinfo->site_name;?> </div> </li> <li> <div id="multi"> <label for="data">Date of Allotment</label> <input type="text" name="site_allotment_date" id="site_allotment_date" value="<?=date("d-m-Y");?>" class="required" onchange="suggestValues(this.value)"> <img src="<?=base_url()?>assets/images/icons/calendar.png" alt="Click to popup the clendar!" /> </div> </li> <li> <label>Search using</label> <select name="search_using" id="search_using" onchange="showhide(this)" class="required"> <option value="">Select</option> <option value="Batch">Batch</option> <option value="Employee">Employee</option> </select> </li> <li id="Batch_div" style="display: none;"> <label for="data">Select Batch</label> <input type="text" name="batch_name" id="batch_name"> <input type="button" value="Load Employees" onclick="show_employee_box()" style="margin-left: 5px; width: 120px;"/> </li> <li id="Employee_div" style="display: none;"> <label for="data">Select Employee</label> <input type="text" name="employee_name" id="employee_name" > <input type="button" value="Load Employees" onclick="show_employee_box_emp()" style="margin-left: 5px; width: 120px;"/> </li> <div id='emp_box'> </div> <li> <input type="hidden" name="tab_name" value="site_allotment"/> <input type="hidden" name="resfunction" value="search_site_allotment"/> </li> </ul> <?php echo form_close();?> </fieldset>