D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home3
/
encodto1
/
salvation.incrediblebengal.com
/
admin
/
Filename :
staff-management.php
back
Copy
<?php include'config.php'; include'get_session_access.php'; $page_title = "Staff Management"; ?> <!DOCTYPE html> <html lang="en"> <head> <title>Encode Restaurent - Admin Dashboard </title> <?php include'style.php'; ?> </head> <body> <div id="main-wrapper"> <?php include'header.php'; ?> <?php include'sidebar.php'; ?> <!--********************************** Content body start ***********************************--> <div class="content-body"> <!-- row --> <div class="container-fluid"> <div class="row"> <div class="col-lg-12 col-sm-12"> <div class="page_title"> <ul class="list-inline"> <li><a class="gradient-5" href="add-staff.php">Add Staff</a></li> </ul> </div> </div> <div class="col-xl-12"> <div class="table-responsive"> <table id="example5" class="display mb-4 dataTablesCard staff_list"> <thead> <tr> <th><strong class="font-w600">ID</strong></th> <th><strong class="font-w600">Name</strong></th> <th><strong class="font-w600">Password</strong></th> <th><strong class="font-w600">Mobile No.</strong></th> <th><strong class="font-w600">Email</strong></th> <th><strong class="font-w600">Role</strong></th> <th><strong class="font-w600">Salary</strong></th> <th><strong class="font-w600">Status</strong></th> <th><strong class="font-w600">Image</strong></th> <th><strong class="font-w600">Action</strong></th> </tr> </thead> <tbody> <?php $view_staff = mysqli_query($conn, "SELECT * FROM restro_staff"); if($view_staff-> num_rows > 0){ while($row = mysqli_fetch_assoc($view_staff)){ $staff_status = $row['staff_status']; echo "<tr> <td>".$row['staff_id'].".</td> <td class='wspace-no'>".$row['staff_name']."</td> <td class='wspace-no'>".$row['staff_pass']."</td> <td>+91 ".$row['staff_phone']."</td> <td>".$row['staff_email']."</td> <td>".$row['staff_role']."</td> <td><i class='fa fa-inr'></i> ".$row['staff_salary']."</td>"; if ($staff_status == "active") { echo "<td><a class='btn btn-info' href=''>Active</a></td>"; } elseif ($staff_status == "inactive") { echo "<td><a class='btn btn-danger' href=''>Inactive</a></td>"; } echo "<td> <div class='menulist_img'> <img src='images/restro-staff/".$row['staff_img']."'> </div> </td> <td> <div class='dropdown ml-auto'> <div class='btn-link' data-toggle='dropdown'> <svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'> <path d='M11.0005 12C11.0005 12.5523 11.4482 13 12.0005 13C12.5528 13 13.0005 12.5523 13.0005 12C13.0005 11.4477 12.5528 11 12.0005 11C11.4482 11 11.0005 11.4477 11.0005 12Z' stroke='#3E4954' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/> <path d='M18.0005 12C18.0005 12.5523 18.4482 13 19.0005 13C19.5528 13 20.0005 12.5523 20.0005 12C20.0005 11.4477 19.5528 11 19.0005 11C18.4482 11 18.0005 11.4477 18.0005 12Z' stroke='#3E4954' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/> <path d='M4.00049 12C4.00049 12.5523 4.4482 13 5.00049 13C5.55277 13 6.00049 12.5523 6.00049 12C6.00049 11.4477 5.55277 11 5.00049 11C4.4482 11 4.00049 11.4477 4.00049 12Z' stroke='#3E4954' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/> </svg> </div> <div class='dropdown-menu dropdown-menu-right'> <a class='dropdown-item text-success' href='staff-details.php?id=".$row['staff_id']."'> <svg class='mr-3' xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='#17ba00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'></path><circle cx='12' cy='12' r='3'></circle></svg>View </a> <a class='dropdown-item text-info' href='staff-edit.php?id=".$row['staff_id']."'> <svg class='mr-3' width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'> <path d='M22 11.08V12C21.9988 14.1564 21.3005 16.2547 20.0093 17.9818C18.7182 19.709 16.9033 20.9725 14.8354 21.5839C12.7674 22.1953 10.5573 22.1219 8.53447 21.3746C6.51168 20.6273 4.78465 19.2461 3.61096 17.4371C2.43727 15.628 1.87979 13.4881 2.02168 11.3363C2.16356 9.18457 2.99721 7.13633 4.39828 5.49707C5.79935 3.85782 7.69279 2.71538 9.79619 2.24015C11.8996 1.76491 14.1003 1.98234 16.07 2.86' stroke='#2F4CDD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/> <path d='M22 4L12 14.01L9 11.01' stroke='#2F4CDD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/> </svg> Edit </a> </div> </div> </td> </tr>"; } } ?> </tbody> </table> </div> </div> </div> </div> </div> <!--********************************** Content body end ***********************************--> <?php include'footer.php'; ?> </body> </html>