?
Current Path : /home1/savoy/public_html/savoyglobal.net/hr/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/hr/application/views/Settings/edit_user.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <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 $role=$this->mastermodel->profile_list(); $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('settings/addinsettings/update_user/view_user/1',$attributes);?> <ul> <li> <label for="data">User Name</label> <input type="text" name="username" id="username" class="required" value="<?=$viewinfo->username;?>" onchange="checkexistence('user','username',this.value)" /> </li> <li> <label for="data">Role</label> <select name="role_id" id="role_id" class="required">> <option value="">Select</option> <?php foreach($role as $roles) { echo "<option value='". $roles['role_id'] . "'";if($viewinfo->role_id == $roles['role_id']){echo "selected";} echo ">" . $roles['designation_name'] . "</option>"; } ?> </select> </li> <li> <label for="data">Email</label> <?php $data = array( 'name' => 'email', 'id' => 'email', 'value' => $viewinfo->email ); echo form_input($data).form_error($data); ?> <li id="role_permissions"> </li> <input type="hidden" name="user_id" value="<?=$viewinfo->id;?>"/> <input type="hidden" id="tab_name" name="tab_name" value="user"/> <li> <label for="submit"> </label> <button type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>