?
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/add_camp_shifting.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(); }); function suggestValues() { $("#batch_name").autocomplete("<?= site_url('administration/autosuggest_batch') ?>", { width: 300, selectFirst: false }); var camp_id = $("#camp_id").val(); $("#employee_name").autocomplete("<?= site_url()?>/administration/autosuggest/camp_allotment/camp_id/"+camp_id, { width: 300, selectFirst: false }); } </script> <div class="select-bar"> <label> </label> <span class="heading">Shift employees from camp</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('administration/addinadministration/insert_camp_shifting/view_camp_shifting/1',$attributes); $camp_list=$this->mastermodel->getdatas('camp','camp_name'); ?> <ul> <li> <label for="data">Camp Name</label> <input type="hidden" name="camp_id" id="camp_id" value="<?=$viewinfo->camp_id;?>"/> <div class="record_entry"> <?=$viewinfo->camp_name;?> </div> </li> <li> <div id="multi"> <label for="data">Date of Shifting</label> <?php $data = array( 'name' => 'camp_allotment_date', 'id' => 'camp_allotment_date', 'class' =>'required', 'value' => date("d-m-Y") ); echo form_input($data).form_error($data); ?> <img src="<?=base_url()?>assets/images/icons/calendar.png" alt="Click to popup the clendar!" /> </div> </li> <li> <label for="data">Shift to Camp</label> <select name="shift_to" id="shift_to" class="required"> <option value="">Select</option> <?php foreach($camp_list as $camp) { if($camp['camp_id'] != $viewinfo->camp_id) echo "<option value='". $camp['camp_id'] . "'>" . $camp['camp_name'] . "</option>"; } ?> </select> </li> <li> <label>Search using</label> <select name="search_using" id="search_using" onchange="showhide(this)"> <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> <li> <input type="hidden" name="tab_name" value="camp_allotment"/> <input type="hidden" name="resfunction" value="search_camp_allotment"/> </li> <div id='emp_box'> </div> </ul> <?php echo form_close();?> </fieldset>