?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec/draft/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/sec/draft/application/views/settings/add_user.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?> <!--<script type="text/javascript" src="<?= base_url() ?>assets/scripts/jquery-1.4.4.min.js"></script> --> <?php $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/img/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> <!-- BEGIN PAGE LEVEL STYLES --> <!-- END PAGE LEVEL STYLES --> <div class="row-fluid"> <div class="tab-pane " id="tab_2"> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i>Creating new User</div> <div class="tools"> <a href="#" onclick="viewdata('settings','viewinsettingssearch','search_user','view_user','<?=$_SESSION['pagenum'];?>')" class="remove"></a> </div> </div> <div class="portlet-body form"> <!-- BEGIN FORM--> <?php $attributes = array('id' => 'validateform', 'class' => 'form-horizontal validate'); echo form_open('settings/addinsettings/insert_user/view_user/1',$attributes); ?> <h3 class="form-section"></h3> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Employee </label> <div class="controls"> <select name="employee_id" id="employee_id" class="span12" 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> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">User Name </label> <div class="controls"> <input name="user_name" id="user_name" class="required span12" type="text" readonly > </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label"> Password </label> <div class="controls"> <input name="password" id="password" class="requiredspan12" type="password" > </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Re type Password </label> <div class="controls"> <input type="password" name="re_password" id="re_password" onblur="check_password()" class="span12required" /> </div> </div> </div> </div> <div id="permission_content"> </div> <?php echo form_close(); ?> <!-- END FORM--> </div> </div> </div> </div>