?
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_site_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 site_id = $("#site_id").val(); $("#employee_name").autocomplete("<?= site_url()?>/administration/autosuggest_site/site_allotment/site_id/"+site_id, { width: 300, selectFirst: false }); } </script> <div class="select-bar"> <label> </label> <span class="heading">Shift employees from site</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('administration/addinadministration/insert_site_shifting/view_site_shifting/1',$attributes); $site_list=$this->mastermodel->getdatas('site','site_name'); ?> <ul> <li> <label for="data">Site Name</label> <input type="hidden" name="site_id" id="site_id" value="<?=$viewinfo->site_id;?>"/> <div class="record_entry"> <?=$viewinfo->site_name;?> </div> </li> <li> <div id="multi"> <label for="data">Date of Shifting</label> <?php $data = array( 'name' => 'site_allotment_date', 'id' => 'site_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 Site</label> <select name="shift_to" id="shift_to" class="required"> <option value="">Select</option> <?php foreach($site_list as $site) { if($site['site_id'] != $viewinfo->site_id) echo "<option value='". $site['site_id'] . "'>" . $site['site_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="site_allotment"/> <input type="hidden" name="resfunction" value="search_site_allotment"/> </li> <div id='emp_box'> </div> </ul> <?php echo form_close();?> </fieldset>