?
Current Path : /home1/savoy/www/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/www/savoyglobal.net/hr/application/views/Onboarding/add_camp_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/camp_allotment/"+allotment_date, { width: 250, selectFirst: false }); } </script> <div class="select-bar"> <label><img src="<?=base_url()?>assets/images/backbutton.png" title="Back" class="clickimage" onclick="viewdata('onboarding','viewinonboardingsearch','search_camp_allotment','view_camp_allotment','1');" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Allot employees to camp</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('onboarding/addinonboarding/insert_camp_allotment/view_camp_allotment/1',$attributes); ?> <ul> <li> <label for="data">Camp Name</label> <input type="hidden" name="camp_id" value="<?=$viewinfo->camp_id;?>"/> <div class="record_entry"> <?=$viewinfo->camp_name;?> </div> </li> <li> <div id="multi"> <label for="data">Date of Allotment</label> <input type="text" name="camp_allotment_date" value="<?=date("d-m-Y");?>" id="camp_allotment_date" 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="camp_allotment"/> <input type="hidden" name="resfunction" value="search_camp_allotment"/> </li> </ul> <?php echo form_close();?> </fieldset>