ב הוא חיבור של הרב יהושע בועז שתוכנו מראי מקומות למקורותشسdggרות הל555ה התafhgfh
במסgרות ה gh//شی הוא חיבור של הרב יהושע בועז שתוכנו מראי מקומות למקורותהתנדaghhhhו12ין יעל, המעציfghfghfע
/
www-data
/
newsites
/
adminpanel
/
application
/
views
/
Upload FileeE
HOME
<div class="main-panel"> <div class="container"> <div class="page-inner"> <div class="page-header"> <h4 class="page-title">View users</h4> </div> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <div class="d-flex align-items-center"> <a href ="<?php echo base_url().'index.php/Users/useradd'?>" class="btn btn-primary btn-round ml-auto" style="color:#fff !important;"> <i class="fa fa-plus"></i> Add User </a> </div> </div> <div class="card-body"> <!-- Add Modal Start--> <div class="modal fade" id="addRowModal" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header border-0"> <h5 class="modal-title"> <span class="fw-mediumbold" style="color:#000 !important;"> Add User</span> </h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <form method='post' enctype='multipart/form-data' action="<?php echo base_url().'index.php/Users/addusersajaxdata';?>"> <div class="row"> <div class="col-md-6 pr-0"> <div class="form-group form-group-default"> <label>User Name</label> <input id="username" name="username" type="text" class="form-control" placeholder="Enter User Name"> </div> </div> <div class="col-md-6"> <div class="form-group form-group-default"> <label>Login Name</label> <input id="loginname" name="loginname" type="text" class="form-control" placeholder="Enter Login Name"> </div> </div> </div> <div class="row"> <div class="col-md-6 pr-0"> <div class="form-group form-group-default"> <label>Password</label> <input id="password" name="password" type="password" class="form-control" placeholder="Enter password"> </div> </div> <div class="col-md-6"> <div class="form-group form-group-default"> <label>Confirm Password</label> <input id="confirmpassword" name="confirmpassword" type="password" class="form-control" placeholder="Enter Confirm password"> </div> </div> </div> <div class="row"> <div class="col-md-6 pr-0"> <div class="form-group form-group-default"> <label>EMPLOYEE ID</label> <input id="employee_id" name="employee_id" type="text" class="form-control" placeholder="Enter Employee ID"> </div> </div> <div class="col-md-6"> <div class="form-group form-group-default"> <label>Email</label> <input id="email" name="email" type="text" class="form-control" placeholder="Enter Email ID"> </div> </div> </div> <div class="row"> <div class="col-md-6 pr-0"> <div class="form-group form-group-default"> <label>Mobile No</label> <input id="mobile_no" name="mobile_no" type="text" class="form-control" placeholder="Enter Mobile No"> </div> </div> <div class="col-md-6"> <div class="form-group form-group-default"> <label>Designation</label> <input id="designation" name="designation" type="text" class="form-control" placeholder="Enter Designation"> </div> </div> </div> <div class="row"> <div class="col-md-6 pr-0"> <div class="form-group form-group-default"> <label>Profile</label> <input id="profile" name="profile" type="text" class="form-control" placeholder="Enter Employee ID"> </div> </div> <div class="col-md-6"> <div class="form-group form-group-default"> <label>Active</label> <input id="activestatus" name="activestatus" type="checkbox" value="1"> </div> </div> </div> <div class="row"> <div class="col-md-6"> <div class="form-group form-group-default"> <label>Image</label> <input id="profileimage" name="profileimage" type="file"> </div> </div> </div> </div> <div class="modal-footer border-0"> <input type="submit" name='submit' class="btn btn-primary" value='Add'> <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button> </div> </form> </div> </div> </div> <!--Add End --> <!-- view Modal Start--> <div class="modal fade" id="ViewRowModal" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header border-0"> <h5 class="modal-title"> <span class="fw-mediumbold" style="color:#000 !important;"> View User</span> </h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body" id="viewdata"> <!-- Ajax Data display here in id tabledata--> </div> <div class="modal-footer border-0"> <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button> </div> </div> </div> </div> <!--view End --> <!-- Edit Modal Start --> <div class="modal fade" id="EditRowModal" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header border-0"> <h5 class="modal-title"> <span class="fw-mediumbold" style="color:#000 !important;"> Edit User</span> </h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <form method='post' enctype='multipart/form-data' action="<?php echo base_url().'index.php/Users/updateusersajaxdata';?>"> <div class="modal-body" id="editdata"> <!-- Edit data goes here --> </div> <div class="modal-footer border-0"> <input type="submit" id="updateRowButton" class="btn btn-primary" name='submit' value='Update'> <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button> </div> </div> </div> </div> <!--Edit End --> <div id="del_success"><center><span style="color:green" ><h2> <?php if($this->session->flashdata('success')){ echo $this->session->flashdata('success'); }?></h2></span></center></div> <div class="table-responsive"> <table id="add-row" class="display table table-striped table-hover" > <thead> <tr> <th>S.No</th> <th>Login Name</th> <th>Active</th> <th style="width: 10%">Action</th> </tr> </thead> <tbody id=""> <?php if($usersdata1){ foreach ($usersdata1 as $users_data) { ?> <tr class="row<?php echo $users_data['id'];?>"> <td><?php echo $users_data['sno'];?></td> <td><?php echo $users_data['login_name'];?></td> <td><?php echo $users_data['active'];?></td> <td> <div class="form-button-action"> <button type="button" data-toggle="modal" id="view_<?php echo $users_data['id'];?>" name="view_<?php echo $users_data['id'];?>" onclick="viewuser('<?php echo $users_data['id'];?>')" data-target="#ViewRowModal" title="" class="btn-link btn-primary " data-original-title="View User"> <i class="fa fa-eye"></i> </button> <a href ="<?php echo base_url().'index.php/Users/useredit/'?><?php echo $users_data['id'];?>" class="btn-link btn-primary " > <i class="fa fa-edit"></i> </a> <!--<button type="button" data-toggle="tooltip" title="" class="btn-link btn-danger" onclick="javascript:users_delete('<?php echo $users_data['id'];?>')" data-original-title="Remove"> <i class="fa fa-times"></i> </button>--> </div> </td> </tr> <?php } } ?> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> <script type="text/javascript"> function viewuser(id) { $.ajax({ type: "POST", url: '<?php echo base_url().'index.php/Users/viewusersajaxdata';?>', data: {'userid':id}, success: function(result) { //alert(result); $('#viewdata').html(result); } }); } </script> <style> .form-group-default { border:none !important; } </style> <script> function users_delete(id){ //alert(id); $.ajax({ type : "POST", url : "<?php echo site_url('Organization/user_delete')?>", dataType : "JSON", data : {id:id}, success: function(data){ $('#del_success').html('<center><span style="color:green" ><h2>User Deleted Successfully</h2></span></center>'); $(".row"+id).hide(2000); } }); } </script>