%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<div id="users"> <!-- <h1><img src="<//?= base_url('assets/imgs/admin-user.png') ?>" class="header-img" style="margin-top:-3px;"> Admin Users</h1> --> <h1><i class="fa fa-user titleIconsize"></i> Admin Users</h1> <hr> <?php if (validation_errors()) { ?> <hr> <div class="alert alert-danger"><?= validation_errors() ?></div> <hr> <?php } if ($this->session->flashdata('result_add')) { ?> <hr> <div class="alert alert-success"><?= $this->session->flashdata('result_add') ?></div> <hr> <?php } if ($this->session->flashdata('result_delete')) { ?> <hr> <div class="alert alert-success"><?= $this->session->flashdata('result_delete') ?></div> <hr> <?php } ?> <a href="javascript:void(0);" data-toggle="modal" data-target="#add_edit_users" class="btn btn-primary btn-xs pull-right linkstylebox"><b>+</b> Add new user</a> <div class="clearfix"></div> <?php if ($users->result()) { ?> <div class="table-responsive"> <table class="table table-striped custab"> <thead> <tr> <th>#ID</th> <th>Username</th> <th>Email</th> <th>Last login</th> <th class="text-center">Action</th> </tr> </thead> <?php foreach ($users->result() as $user) { ?> <tr> <td><?= $user->id ?></td> <td><?= $user->username ?></td> <td><?= $user->email ?></td> <td><?= date('d.m.Y - H:m:s', $user->last_login) ?></td> <td class="text-center"> <div> <a href="?delete=<?= $user->id ?>" class="confirm-delete">Delete</a> | <a href="?edit=<?= $user->id ?>">Edit</a> </div> </td> </tr> <?php } ?> </table> </div> <?php } else { ?> <div class="clearfix"></div><hr> <div class="alert alert-info">No users found!</div> <?php } ?> <!-- add edit users --> <div class="modal fade" id="add_edit_users" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> <div class="modal-dialog" role="document"> <div class="modal-content"> <form action="" method="POST" enctype="multipart/form-data"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title" id="myModalLabel">Add New User</h4> </div> <div class="modal-body"> <input type="hidden" name="edit" value="<?= isset($_GET['edit']) ? $_GET['edit'] : '0' ?>"> <div class="form-group"> <label for="username">Username</label> <input type="text" name="username" value="<?= isset($_POST['username']) ? $_POST['username'] : '' ?>" class="form-control" id="username"> </div> <div class="form-group"> <label for="password">Password</label> <input type="password" name="password" class="form-control" value="" id="password"> </div> <div class="form-group"> <label for="email">Email</label> <input type="text" name="email" class="form-control" value="<?= isset($_POST['email']) ? $_POST['email'] : '' ?>" id="email"> </div> <div class="form-group"> <label for="permision">Set Permission</label> <?php $_POST['permision']=explode(",",$_POST['permision']); ?> <p>1)Add Products: <input type="checkbox" name="auth[]" value='1' <?php if (in_array(1, $_POST['permision'] )){?>checked <?php } ?> > 2)View Products: <input type="checkbox" name="auth[]" value='2' <?php if (in_array(2, $_POST['permision'])){?>checked <?php } ?>> 3)Feedback: <input type="checkbox" name="auth[]" value='3' <?php if (in_array(3, $_POST['permision'])){?>checked <?php } ?>> 4)Bookings: <input type="checkbox" name="auth[]" value='4' <?php if (in_array(4, $_POST['permision'])){?>checked <?php } ?>> </p> <p>5)Registered User: <input type="checkbox" name="auth[]" value='5' <?php if (in_array(5, $_POST['permision'])){?>checked <?php } ?>> 6)Shop Categories: <input type="checkbox" name="auth[]" value='6' <?php if (in_array(6, $_POST['permision'])){?>checked <?php } ?>> 7)Test Categories: <input type="checkbox" name="auth[]" value='7' <?php if (in_array(7, $_POST['permision'])){?>checked <?php } ?>> 8)Course Offered: <input type="checkbox" name="auth[]" value='8' <?php if (in_array(8, $_POST['permision'])){?>checked <?php } ?>></p> <p>9)Doctors: <input type="checkbox" name="auth[]" value='9' <?php if (in_array(9, $_POST['permision'])){?>checked <?php } ?>> 10)Custom Pages: <input type="checkbox" name="auth[]" value='10' <?php if (in_array(10, $_POST['permision'])){?>checked <?php } ?>> 11)Setting: <input type="checkbox" id="myCheck" name="auth[]" value='11' <?php if (in_array(11, $_POST['permision'])){?>checked <?php } ?>> 12)Advance Setting: <input type="checkbox" id="myCheck" name="auth[]" value='12' <?php if (in_array(12, $_POST['permision'])){?>checked <?php } ?>></p> 13)Call Requset: <input type="checkbox" id="myCheck" name="auth[]" value='13' <?php if (in_array(13, $_POST['permision'])){?>checked <?php } ?>> 14)Testimonials: <input type="checkbox" id="myCheck" name="auth[]" value='14' <?php if (in_array(14, $_POST['permision'])){?>checked <?php } ?>> 15)Prescriptions: <input type="checkbox" id="myCheck" name="auth[]" value='15' <?php if (in_array(15, $_POST['permision'])){?>checked <?php } ?>> 16)Whats New: <input type="checkbox" id="myCheck" name="auth[]" value='16' <?php if (in_array(16, $_POST['permision'])){?>checked <?php } ?>> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> <input type="submit" class="btn btn-primary" value="Save"> </div> </form> </div> </div> </div> </div> <script> <?php if (isset($_GET['edit'])) { ?> $(document).ready(function () { $("#add_edit_users").modal('show'); }); <?php } ?> </script>