?
Current Path : /home1/savoy/public_html/savoyglobal.net/drafthr/system/application/views/Sales/ |
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/drafthr/system/application/views/Sales/pickemployee.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <script> function changetxt(val) { if(val=="staffemployeedetails~designationid~staffid") { document.getElementById('searchtextbox').style.display = "none"; document.getElementById('SearchText').value=document.getElementById("SearchCmb").value; document.getElementById('searchcombo').style.display="block"; } else { document.getElementById('searchtextbox').style.display = "block"; document.getElementById('SearchText').value=""; document.getElementById('searchcombo').style.display="none"; } } function loadSearchTxt(valu) { document.getElementById('SearchText').value=valu; } function listsearchemployee1(searchtext,options) { $('#Result_Div').load("<?php echo site_url('customer/listsearchemployee/'); ?>" + "/" + document.getElementById(searchtext).value + "/" + document.getElementById(options).value ); } </script> <form id="customForm"> <fieldset class="lefttalign"><legend>Search Employee</legend> <div id="searchoptions_Div"> <ul> <li> <label>Search Text</label> <div id="searchtextbox"> <input type="text" id="SearchText"/> </div> <div id="searchcombo" style="display: none"> <?php echo "<select name='SearchCmb' id='SearchCmb' style='height: 30px;' onchange=\"loadSearchTxt(this.value)\">"; echo "<option value='' selected >Select Designation</option>"; $desig=$this->mastermodel->getdatas('designation'); if (count($desig)) { foreach ($desig as $key => $list) { echo "<option value='". $list['id'] . "' >" . $list['designation'] . "</option>"; } echo "</select>"; } ?> </div> </li> <li> <label>Search By</label> <select name='searchoption1' id='selectoption1' onchange="changetxt(this.value);"> <option value="staffpersonaldetails~employeeid~id">Employee No</option> <option value="staffpersonaldetails~name~id" >Employee Name</option> <option value="staffemployeedetails~designationid~staffid" >Designation</option> </select> </li> <li> <input type="button" value="search" onclick="listsearchemployee1('SearchText','selectoption1')"/> </li> </ul> </div> </fieldset> <div id="Result_Div" style="overflow: auto;height: 200px"></div> </form>