?
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/search_employees_popup.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <?php $attributes=array('id'=>'searchvalidateform','class'=>'customForm'); echo form_open('',$attributes); if(isset($_SESSION['searchdata'])) { $searchdata=$_SESSION['searchdata']; if(!empty($searchdata)) { $searchtext=$searchdata['searchtext']; $searchfield=$searchdata['searchopt']; } else { $searchtext = ""; $searchfield = ""; } } else { $searchtext = ""; $searchfield = ""; } ?> Search For <input type="text" class="required" name="searchtext" id="searchtext" value="<?=$searchtext;?>"> In <select name="searchopt" id="searchopt" class="required"> <option value="">Select</option> <option <?php if ($searchfield == "emp_non_full_name") echo "selected"; ?> value="emp_non_full_name">Employee Name</option> <option <?php if ($searchfield == "emp_non_no") echo "selected"; ?> value="emp_non_no">Employee No</option> <option <?php if ($searchfield == "batch_code") echo "selected"; ?> value="batch_code">Batch Code</option> <option <?php if ($searchfield == "trade_name") echo "selected"; ?> value="trade_name">Trade</option> <option <?php if ($searchfield == "nationality_name") echo "selected"; ?> value="nationality_name">Nationality</option> <option <?php if ($searchfield == "emp_non_date_joining") echo "selected"; ?> value="emp_non_date_joining">Date of Joining</option> </select> <input type="submit" id="button1" onclick="search_employees();" class="clickimage" value="Search"/> <?php echo form_close(); ?> <div id="employees_list_popup"> </div>