Editing: clients.php
Kembali
<?php include '../components/connect.php'; session_start(); $admin_id = $_SESSION['admin_id']; if(!isset($admin_id)){ header('location:admin_login.php'); }; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Add quotataion request</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"> <link rel="stylesheet" href="../css/admin_style.css"> <link rel="stylesheet" href="../css/addclient.css"> </head> <body> <?php include '../components/admin_header.php'; ?> <section class="positions"> <h1 class="heading">Requested Products</h1> <div class="box-container"> <?php $select_request = mysqli_query($conn,"SELECT * FROM `client_login`"); if(mysqli_num_rows($select_request) > 0){ while($fetch_request =mysqli_fetch_assoc($select_request)){ ?> <div class="box"> <div class="flex"> <!-- <div class=""><?= $fetch_request['client_name'] ?></div> --> Suppliers Name:<?= $fetch_request['client_name']?><br> Contact:<?= $fetch_request['client_contact']?><br> Email:<?= $fetch_request['client_email']?><br> <!-- Address:<?= $fetch_request['address']?><br> --> Category:<?= $fetch_request['category']?><br> </div> <div class="buttons-box"> <a type="submit" class="btn " name="call" href="tel:<?= $fetch_request['client_contact']?>" >call</a> </div> </div> <?php } }else{ echo '<p class="empty">No Request!</p>'; } ?> </div> </section> <!-- <section class="show-products"> <h1 class="heading">products added</h1> <div class="box-container"> <?php $select_products = mysqli_query($conn,"SELECT * FROM `products`"); if(mysqli_num_rows($select_products) > 0){ while($fetch_products = mysqli_fetch_assoc($select_products)){ ?> <div class="box"> <img src="../uploaded_img/<?= $fetch_products['image_01']; ?>" alt=""> <div class="name"><?= $fetch_products['name']; ?></div> <div class="price">₹<span><?= $fetch_products['price']; ?></span>/-</div> <div class="details"><span><?= $fetch_products['details']; ?></span></div> <div class="flex-btn"> <a href="update_product.php?update=<?= $fetch_products['id']; ?>" class="option-btn">update</a> <a href="products.php?delete=<?= $fetch_products['id']; ?>" class="delete-btn" onclick="return confirm('delete this product?');">delete</a> </div> </div> <?php } }else{ echo '<p class="empty">no products added yet!</p>'; } ?> </div> </section> --> <script src="../js/admin_script.js"></script> </body> </html>
SIMPAN PERUBAHAN