?
Current Path : /home1/savoy/public_html/savoyglobal.net/futuredraft/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/futuredraft/application/views/settings/add_user.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $employee=$this->mastermodel->get_employee_not_user(); ?> <script type="text/javascript"> function load_permission(id) { var emp_id=id.value; $.ajax({ type: "POST", url: "<?= site_url()?>"+'/settings/checkprofileset/'+emp_id, success: function(msg) { if(msg==0) { alert("Employee Profile Not Set"); } else { $("#permission_content").empty().html('<CENTER><img src="<?=base_url()?>assets/images/loading.gif" class="loading"/></CENTER>'); $("#permission_content").load("<?= site_url()?>"+'/settings/getprofilepermissionbyemployeeid/' + emp_id,function(newdata) { $("#permission_content").html(newdata); var emp_name = $("#employee_id").val(); var emp_code = emp_name.split('-'); $("#user_name").val(emp_code[1]); }); } } }); } function check_password() { $pass1=document.getElementById("password").value; $pass2=document.getElementById("re_password").value; if($pass1!=$pass2) { alert('passwords do not match') $pass1=document.getElementById("re_password").value=""; } } </script> <div class="icons_main"> <div class="icons"> <img src="<?=base_url()?>assets/images/back.png" title="Back" class="clickimage" onclick="viewdata('settings','viewinsettingssearch','search_user','view_user','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>Creating new User</h4> </div> </div> <?php $attributes=array('id'=>'validateform','class'=>'validate'); echo form_open('settings/addinsettings/insert_user/view_user/1',$attributes); ?> <div class="grid_6"> <div class="box"> <div class="header"> <span></span> </div> <div class="content no-padding"> <div class="section _100"> <label>Employee </label> <div> <select name="employee_id" id="employee_id" onchange="load_permission(employee_id)"> <option>Select Employee</option> <?php foreach($employee as $list) { ?> <option value="<?=$list['employee_id'].'-'.$list['employee_no']?>"><?=$list['employee_name']?></option> <?php } ?> </select> </div> </div> <?php ?> <div class="section _100"> <label> User Name </label> <div> <input name="user_name" id="user_name" class="required" type="text" readonly > </div> </div> <div class="section _100"> <label> Password </label> <div> <input name="password" id="password" class="required" type="password" > </div> </div> <div class="section _100"> <label> Re type Password </label> <div> <input type="password" name="re_password" id="re_password" onblur="check_password()" class="required" /> </div> </div> </div> </div> </div> <div id="permission_content"> </div> <?php echo form_close();?>