?
Current Path : /home1/savoy/public_html/savoyglobal.net/oscardraft/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/oscardraft/application/views/settings/view_user.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <div class="icons_main"> <div class="icons"> <img src="<?=base_url()?>assets/images/add.png" title="Add New" class="clickimage" onclick="addformdisplay('add_user','settings')" alt="Add New" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>User details</h4> </div> </div> <div class="grid_12"> <div class="box"> <div class="header"> </div> <div class="content"> <table id="table-example" class="table"> <thead> <tr> <th id="sl">Sl No</th> <th id="th1">User Name</th> <th id="th1">Employee Name</th> <th id="th1">Designation</th> <th id="th1">Action</th> </tr> </thead> <tbody> <?php $table=""; $field=""; $i=0; foreach($viewinfo->result() as $row) { $i++; ?> <tr> <td id="sl"> <?=$i?> </td> <td> <?=$row->user_name?> </td> <td> <?=$this->mastermodel->get_single_field_value('employee','employee_name','employee_id',$row->employee_id);?> </td> <td> <?=$this->mastermodel->get_single_joined_value('designation_name','designation','employee','designation_id','employee_designation_id','employee_id',$row->employee_id);?> </td> <td id="actions_3"> <?php if($_SESSION['user_id']==$row->user_id || $_SESSION['user_id']==1 ) { ?> <div class="elements"><img id="changepass" width="20" height="20" src="<?=base_url()?>assets/images/pref.png" title="Change Password" alt="Change Password" align="right" class="clickimage" onclick="editformdata('settings','edit_page','<?=$row->user_id;?>','user','user_id','changepassword')" /></div> <?php } ?> <div class="elements"> <img src="<?=base_url()?>assets/images/edit-icon.gif" title="Edit" width="20" height="20" alt="Edit" align = "center" class="clickimage" onclick="editformdata('settings','edit_page','<?=$row->user_id;?>','user','user_id','edit_user')" alt="" /> </div> <?php if($row->user_id!=1 ) { ?> <div class="elements"><img src="<?=base_url()?>assets/images/delete-icon.png" title="Delete" width="20" height="20" onclick="deletedata('master',<?=$row->user_id;?>,'master_id','settings','viewinsettingssearch','search_user','view_user','<?=$table?>','<?=$field?>')" alt="Delete" align = "center"/></div> <?php } ?> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> <!-- <div style='display:none'>--> <!--</div>-->