?
Current Path : /home1/savoy/public_html/savoyglobal.net/sgms/application/views/Settings/ |
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/sgms/application/views/Settings/add_user.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <script language="javascript" type="text/javascript"> jQuery(document).ready(function() { $("#employee").autocomplete("<?= site_url() ?>/master/autosuggestemployeenotuser/", { width: 250, selectFirst: false }); }); function set_user_name() { if($('#employee_id').val()!="") { $.ajax({ type: "POST", url: "<?= site_url()?>"+'/settings/checkprofileset/' + $('#employee_id').val(), success: function(msg) { if(msg==0) { alert("Employee Profile Not Set"); $("input#employee").val(""); $("#employee").css('border','solid 1px red'); $("#employee").focus(); } else { $("#permission_content").empty().html('<CENTER><img src="<?=base_url()?>assets/images/loading.gif" class="loading"/></CENTER>'); $("#permission_content").load("<?= site_url()?>"+'/settings/getprofilepermissionbyemployeeid/' + $('#employee_id').val(),function(newdata) { var emp_name = $("#employee").val(); var emp_code = emp_name.split('-'); $("#username").val(emp_code[1]); $("#permission_content").html(newdata); }); } } }); } } </script> <div class="select-bar"> <label><img src="<?=base_url()?>assets/images/backbutton.png" title="Back" class="clickimage" onclick="viewdata('settings','viewinsettingssearch','search_user','view_user','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Creating new user</span> </div> <fieldset> <?php $profiles=$this->settingsmodel->profile_list(); $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('settings/addinsettings/insert_user/view_user/1',$attributes);?> <ul> <li> <label for="data">Employee Name</label> <input type="text" name="employee" id="employee" class="required" onblur="set_user_name();" /> <input type="hidden" name="employee_id" id="employee_id" class="required" /> </li> <li> <label for="data">User Name</label> <input type="text" name="username" readonly id="username" class="required" onblur="checkexistence('user','username',this.value)" /> </li> <li id="role_permissions"> <div id="permission_content"> </div> </li> <li> <input type="hidden" name="tab_name" value="user"/> <input type="hidden" name="resfunction" value="search_user"/> <label for="submit"> </label> <button type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>