?
Current Path : /home1/savoy/public_html/savoyglobal.net/drafthr/system/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/drafthr/system/application/views/Settings/new_user.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <script> function FillValues1(empid,empname,desg,employee) { /* FUNCTION TO GET VALUES FROM PICK EMPLOYEE COLOR BOX AND FILL THE VALUES IN THE TEXT BOXES. */ desg= desg.replace(/ /g,"~"); desg= desg.replace(/\//g,"_"); $.ajax({ type: "POST", url: "<?php echo site_url('settings/GetRolefromCid/'); ?>" +"/" + desg +"/" + empid, success: function(msg){ if(msg==1) { alert('Profile not set for User Designation'); } else if(msg == 2) { alert('Staff already assigned to user'); } else { document.getElementById('EmpId').value=empid; document.getElementById('EmpName').value=empname; document.getElementById('uname').value=employee; document.getElementById('roles').value=desg; $("#PermissionDiv").load("<?php echo site_url('settings/GetRolefromCid/'); ?>" +"/" + desg +"/" + empid); } } }) $.fn.colorbox.close(); } </script> <?php $attributes = array('id' => 'InsertUserForm','class'=>'customForm'); echo form_open('settings/InsertUsersControler',$attributes); ?> <div id="userchecdiv" style="display: none"></div> <div style="width:25%;float:left"> <fieldset class="lefttalign"><legend>Create New User</legend> <ul> <li> <label>Staff </label> <?php echo form_input(array('name'=>'EmpName','readonly'=>'readonly','id'=>'EmpName')) ?> <input type="hidden" name="EmpId" id="EmpId"/> <input type="button" value="pick" class='pickEmp' onclick="showEmpPick()" /> <span id="EmpNameInfo" class="red_bold">*</span> </li> <li> <label>User Name </label> <?php echo form_input(array('name'=>'uname','id'=>'uname', 'onchange'=>"checkexistence('users','username',this.value)")) ?> <span id="unameInfo" class="red_bold">*</span> </li> <li> <label>Password </label> <?php echo form_password(array('name'=>'pword','id'=>'pword')) ?> <span id="pwordInfo" class="red_bold">*</span> </li> <li> <label>Re-Type Password </label> <?php echo form_password(array('name'=>'repassword','id'=>'repassword','onblur'=>'ValidatePassword()')) ?> </li> <li> <label>User Profile </label><input type="text" readonly name="roles" id="roles"/> <?php // echo "<select name='role' id='role' onchange='ListSelectedRole(this.value)' >"; // echo "<option value=''>Select Profile</option>"; // $role=$this->settingsmodel->getrolelist(); // if (count($role)) // { // foreach ($role as $key => $list) // { // $namee= $this->customermodel->getSingleFieldValue('designation','designation','id',$list['name']); // echo "<option value='". $list['id'] . "' >" . $namee . "</option>"; // } // echo "</select>"; // } ?> <!--<span id="roleInfo" class="red_bold">*</span>--> </li> </ul> <ul> <li> <input type="submit" onclick="return Insert_User();" value="Create User" /> </li> </ul> </fieldset> </div> <div id="PermissionDiv" style="width:74%;float:left;"></div> <?php echo form_close(); ?> <div id="backgrounddiv"></div> <div style='display:none'> <div id='PickEmployee' style='padding:10px; background:#fff;'> <?php $this->load->view('Customer/pickemployee');?> </div> </div>