X1-Shell 403 Bypass Sh3ll
Aktif Dizin:
/
/
home
/
ecofarmsafrica
/
public_html
/
eccapital-llc.com
Dosya Düzenle: admin.php
<?php session_start(); if (!isset($_SESSION['pnp_logged_in']) || $_SESSION['pnp_logged_in'] !== true) { header("Location: admin_login.php"); exit; } require 'DB/db.php'; ?> <!DOCTYPE html> <html lang="en"> <head> <?php include 'partiels/links.php' ?> </head> <body class="body bg-white dark:bg-[#0F172A]"> <div class="fixed w-full z-30 flex bg-white dark:bg-[#0F172A] p-2 items-center justify-center h-16 px-10"> <div class="logo ml-12 dark:text-white transform ease-in-out duration-500 flex-none h-full flex items-center justify-center"> Webixy </div> <!-- SPACER --> <div class="grow h-full flex items-center justify-center"></div> <!-- <div class="flex-none h-full text-center flex items-center justify-center"> <div class="flex space-x-3 items-center px-3"> <div class="flex-none flex justify-center"> <div class="w-8 h-8 flex "> <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcShta_GXR2xdnsxSzj_GTcJHcNykjVKrCBrZ9qouUl0usuJWG2Rpr_PbTDu3sA9auNUH64&usqp=CAU" alt="profile" class="shadow rounded-full object-cover" /> </div> </div> <div class="hidden md:block text-sm md:text-md text-black dark:text-white">John Doe</div> </div> </div> --> </div> <aside class="w-60 -translate-x-48 fixed transition transform ease-in-out duration-1000 z-50 flex h-screen bg-[#1E293B] "> <!-- open sidebar button --> <div class="max-toolbar translate-x-24 scale-x-0 w-full -right-6 transition transform ease-in duration-300 flex items-center justify-between border-4 border-white dark:border-[#0F172A] bg-[#1E293B] absolute top-2 rounded-full h-12"> <div class="flex pl-4 items-center space-x-2 "> <div> <div onclick="setDark('dark')" class="moon text-white hover:text-blue-500 dark:hover:text-[#38BDF8]"> <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth={3} stroke="currentColor" class="w-4 h-4"> <path strokeLinecap="round" strokeLinejoin="round" d="M21.752 15.002A9.718 9.718 0 0118 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 003 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 009.002-5.998z" /> </svg> </div> <div onclick="setDark('light')" class="sun hidden text-white hover:text-blue-500 dark:hover:text-[#38BDF8]"> <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4"> <path stroke-linecap="round" stroke-linejoin="round" d="M12 3v2.25m6.364.386l-1.591 1.591M21 12h-2.25m-.386 6.364l-1.591-1.591M12 18.75V21m-4.773-4.227l-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0z" /> </svg> </div> </div> <div class="text-white hover:text-blue-500 dark:hover:text-[#38BDF8]"> <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth={3} stroke="currentColor" class="w-4 h-4"> <path strokeLinecap="round" strokeLinejoin="round" d="M14.857 17.082a23.848 23.848 0 005.454-1.31A8.967 8.967 0 0118 9.75v-.7V9A6 6 0 006 9v.75a8.967 8.967 0 01-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 01-5.714 0m5.714 0a3 3 0 11-5.714 0" /> </svg> </div> </div> <div class="flex items-center space-x-3 group bg-gradient-to-r dark:from-cyan-500 dark:to-blue-500 from-indigo-500 via-purple-500 to-purple-500 pl-10 pr-2 py-1 rounded-full text-white "> <div class="transform ease-in-out duration-300 mr-12"> Webixy </div> </div> </div> <div onclick="openNav()" class="-right-6 transition transform ease-in-out duration-500 flex border-4 border-white dark:border-[#0F172A] bg-[#1E293B] dark:hover:bg-blue-500 hover:bg-purple-500 absolute top-2 p-3 rounded-full text-white hover:rotate-45"> <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth={3} stroke="currentColor" class="w-4 h-4"> <path strokeLinecap="round" strokeLinejoin="round" d="M3.75 6A2.25 2.25 0 016 3.75h2.25A2.25 2.25 0 0110.5 6v2.25a2.25 2.25 0 01-2.25 2.25H6a2.25 2.25 0 01-2.25-2.25V6zM3.75 15.75A2.25 2.25 0 016 13.5h2.25a2.25 2.25 0 012.25 2.25V18a2.25 2.25 0 01-2.25 2.25H6A2.25 2.25 0 013.75 18v-2.25zM13.5 6a2.25 2.25 0 012.25-2.25H18A2.25 2.25 0 0120.25 6v2.25A2.25 2.25 0 0118 10.5h-2.25a2.25 2.25 0 01-2.25-2.25V6zM13.5 15.75a2.25 2.25 0 012.25-2.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-2.25A2.25 2.25 0 0113.5 18v-2.25z" /> </svg> </div> <!-- MAX SIDEBAR--> <div class="max hidden text-white mt-20 flex-col space-y-2 w-full h-[calc(100vh)]"> <div onclick="showDashboard()" class="hover:ml-4 w-full text-white hover:text-purple-500 dark:hover:text-blue-500 bg-[#1E293B] p-2 pl-8 rounded-full transform ease-in-out duration-300 flex flex-row items-center space-x-3"> <span><i class="fa-solid fa-house" style="color: #ffffff;"></i></span> <div> Home </div> </div> <div onclick="showCategory()" class="hover:ml-4 w-full text-white hover:text-purple-500 dark:hover:text-blue-500 bg-[#1E293B] p-2 pl-8 rounded-full transform ease-in-out duration-300 flex flex-row items-center space-x-3"> <span><i class="fa-solid fa-layer-group" style="color: #ffffff;"></i></i></span> <div> Categories </div> </div> <div onclick="showSubCategory()" class="hover:ml-4 w-full text-white hover:text-purple-500 dark:hover:text-blue-500 bg-[#1E293B] p-2 pl-8 rounded-full transform ease-in-out duration-300 flex flex-row items-center space-x-3"> <span><i class="fa-solid fa-sitemap" style="color: #ffffff;"></i></span> <div> SubCategories </div> </div> <div onclick="showProduct()" class="hover:ml-4 w-full text-white hover:text-purple-500 dark:hover:text-blue-500 bg-[#1E293B] p-2 pl-8 rounded-full transform ease-in-out duration-300 flex flex-row items-center space-x-3"> <span><i class="fa-solid fa-table-list" style="color: #ffffff;"></i></span> <div> Products </div> </div> <div onclick="showContact()" class="hover:ml-4 w-full text-white hover:text-purple-500 dark:hover:text-blue-500 bg-[#1E293B] p-2 pl-8 rounded-full transform ease-in-out duration-300 flex flex-row items-center space-x-3"> <span><i class="fa-regular fa-address-card"></i></span> <div> Contact </div> </div> <a href="admin_logout.php"> <div class="hover:ml-4 w-full text-white hover:text-purple-500 dark:hover:text-blue-500 bg-[#1E293B] p-2 pl-8 rounded-full transform ease-in-out duration-300 flex flex-row items-center space-x-3"> <i class="fa-solid fa-right-from-bracket"></i> <div> Logout </div> </div> </a> </div> <!-- MINI SIDEBAR--> <div class="mini mt-20 flex flex-col space-y-2 w-full h-[calc(100vh)]"> <div onclick="showDashboard()" class="hover:ml-4 justify-end pr-5 text-white hover:text-purple-500 dark:hover:text-blue-500 w-full bg-[#1E293B] p-3 rounded-full transform ease-in-out duration-300 flex"> <span><i class="fa-solid fa-house" style="color: #ffffff;"></i></span> </div> <div onclick="showCategory()" class="hover:ml-4 justify-end pr-5 text-white hover:text-purple-500 dark:hover:text-blue-500 w-full bg-[#1E293B] p-3 rounded-full transform ease-in-out duration-300 flex"> <span><i class="fa-solid fa-layer-group" style="color: #ffffff;"></i></i></span> </div> <div onclick="showSubCategory()" class="hover:ml-4 justify-end pr-5 text-white hover:text-purple-500 dark:hover:text-blue-500 w-full bg-[#1E293B] p-3 rounded-full transform ease-in-out duration-300 flex"> <span><i class="fa-solid fa-sitemap" style="color: #ffffff;"></i></span> </div> <div onclick="showProduct()" class="hover:ml-4 justify-end pr-5 text-white hover:text-purple-500 dark:hover:text-blue-500 w-full bg-[#1E293B] p-3 rounded-full transform ease-in-out duration-300 flex"> <span><i class="fa-solid fa-table-list" style="color: #ffffff;"></i></span> </div> <div onclick="showContact()" class="hover:ml-4 justify-end pr-5 text-white hover:text-purple-500 dark:hover:text-blue-500 w-full bg-[#1E293B] p-3 rounded-full transform ease-in-out duration-300 flex"> <span><i class="fa-regular fa-address-card"></i></span> </div> <div class="hover:ml-4 justify-end pr-5 text-white hover:text-purple-500 dark:hover:text-blue-500 w-full bg-[#1E293B] p-3 rounded-full transform ease-in-out duration-300 flex"> <i class="fa-solid fa-right-from-bracket"></i> </div> </div> </aside> <!-- CONTENT --> <div class="content ml-12 transform ease-in-out duration-500 pt-20 px-2 md:px-5 pb-4 "> <!-- Dashboard Section --> <div id="dashboard"> <div class="flex flex-wrap my-5 -mx-2"> <div class="w-full lg:w-1/3 p-2"> <div class="flex items-center flex-row w-full bg-gradient-to-r dark:from-cyan-500 dark:to-blue-500 from-indigo-500 via-purple-500 to-pink-500 rounded-md p-3"> <div class="flex text-indigo-500 dark:text-white items-center bg-black dark:bg-[#0F172A] p-2 rounded-md flex-none w-20 h-20 md:w-02 md:h-20 "> <span><i class="fa-solid fa-layer-group" style="color: #ffffff;font-size: 50px;"></i></span> </div> <div class="flex flex-col justify-around flex-grow ml-5 text-white"> <div class="text-2xl whitespace-nowrap"> Total Category </div> <div class="text-2xl"> <?php // Execute a SELECT query $sql = "SELECT * FROM category"; $result = $conn->query($sql); // Check if the query was successful if ($result) { // Get the number of rows returned by the query $row_count = $result->num_rows; // Output the number of rows // echo "Number of rows: " . $row_count; } else { // Handle the case where the query fails echo "Error executing the query: " . $conn->error; } ?> <?php echo $row_count ?> </div> </div> </div> </div> <div class="w-full md:w-1/2 lg:w-1/3 p-2 "> <div class="flex items-center flex-row w-full bg-gradient-to-r dark:from-cyan-500 dark:to-blue-500 from-indigo-500 via-purple-500 to-pink-500 rounded-md p-3"> <div class="flex text-indigo-500 dark:text-white items-center bg-black dark:bg-[#0F172A] p-2 rounded-md flex-none w-20 h-20 md:w-02 md:h-20 "> <span><i class="fa-solid fa-table-list" style="color: #ffffff;font-size: 50px;"></i></span> </div> <div class="flex flex-col justify-around flex-grow ml-5 text-white"> <div class="text-2xl whitespace-nowrap"> Total Products </div> <div class="text-2xl"> <?php // Execute a SELECT query $sql = "SELECT * FROM products"; $result = $conn->query($sql); // Check if the query was successful if ($result) { // Get the number of rows returned by the query $row_count = $result->num_rows; // Output the number of rows // echo "Number of rows: " . $row_count; } else { // Handle the case where the query fails echo "Error executing the query: " . $conn->error; } ?> <?php echo $row_count ?> </div> </div> </div> </div> <div class="w-full md:w-1/2 lg:w-1/3 p-2"> <div class="flex items-center flex-row w-full bg-gradient-to-r dark:from-cyan-500 dark:to-blue-500 from-indigo-500 via-purple-500 to-pink-500 rounded-md p-3"> <div class="flex text-indigo-500 dark:text-white items-center bg-black dark:bg-[#0F172A] p-2 rounded-md flex-none w-20 h-20 md:w-02 md:h-20 "> <span><i class="fa-regular fa-address-card" style="color: #ffffff;font-size: 50px;"></i></span> </div> <div class="flex flex-col justify-around flex-grow ml-5 text-white"> <div class="text-2xl whitespace-nowrap"> Contact Information </div> <div class="text-2xl"> <?php // Execute a SELECT query $sql = "SELECT * FROM contact"; $result = $conn->query($sql); // Check if the query was successful if ($result) { // Get the number of rows returned by the query $row_count = $result->num_rows; // Output the number of rows // echo "Number of rows: " . $row_count; } else { // Handle the case where the query fails echo "Error executing the query: " . $conn->error; } ?> <?php echo $row_count ?> </div> </div> </div> </div> </div> </div> <!-- Category Section --> <div id="category" class="hidden dark:text-white"> <div class="relative flex flex-col min-w-0 mb-4 lg:mb-0 break-words bg-gray-50 dark:bg-gray-800 w-full shadow-lg rounded"> <div class="rounded-t mb-0 px-0 border-0"> <div class="flex flex-wrap items-center px-4 py-2"> <div class="relative w-full max-w-full flex-grow flex-1"> <h3 class="font-semibold text-5xl text-gray-900 dark:text-gray-50 p-3">Catagory</h3> </div> <div class="relative w-full max-w-full flex-grow flex-1 text-right"> <button type="button" class="p-3 rounded text-base bg-gradient-to-r from-green-400 to-blue-500 hover:from-pink-500 hover:to-yellow-500 ..."> <a class="font-bold" href="addforms/addcat.php">Add New Categories</a> </button> </div> </div> <div class="block w-full overflow-x-auto"> <table class="items-center w-full bg-transparent border-collapse"> <thead> <tr> <th class="px-4 bg-gray-100 dark:bg-gray-600 text-gray-500 dark:text-gray-100 align-middle border border-solid border-gray-200 dark:border-gray-500 py-3 text-base uppercase border-l-0 border-r-0 whitespace-nowrap font-semibold text-left"> ID</th> <th class="px-4 bg-gray-100 dark:bg-gray-600 text-gray-500 dark:text-gray-100 align-middle border border-solid border-gray-200 dark:border-gray-500 py-3 text-base uppercase border-l-0 border-r-0 whitespace-nowrap font-semibold text-center"> Category Name</th> <th class="px-4 bg-gray-100 dark:bg-gray-600 text-gray-500 dark:text-gray-100 align-middle border border-solid border-gray-200 dark:border-gray-500 py-3 text-base uppercase border-l-0 border-r-0 whitespace-nowrap font-semibold text-center min-w-140-px"> Image</th> <th class="px-4 bg-gray-100 dark:bg-gray-600 text-gray-500 dark:text-gray-100 align-middle border border-solid border-gray-200 dark:border-gray-500 py-3 text-base uppercase border-l-0 border-r-0 whitespace-nowrap font-semibold text-center min-w-140-px"> Created_at</th> <th class="px-4 bg-gray-100 dark:bg-gray-600 text-gray-500 dark:text-gray-100 align-middle border border-solid border-gray-200 dark:border-gray-500 py-3 text-base uppercase border-l-0 border-r-0 whitespace-nowrap font-semibold text-center min-w-140-px"> Updated_at</th> <th class="px-4 bg-gray-100 dark:bg-gray-600 text-gray-500 dark:text-gray-100 align-middle border border-solid border-gray-200 dark:border-gray-500 py-3 text-base uppercase border-l-0 border-r-0 whitespace-nowrap font-semibold text-center min-w-140-px"> Action</th> </tr> </thead> <tbody> <?php $sql = "SELECT * FROM category"; $result = $conn->query($sql); if ($result->num_rows > 0) { while ($row = $result->fetch_assoc()) { ?> <tr class="text-gray-700 dark:text-gray-100"> <th class="border-t-0 px-4 align-middle border-l-0 border-r-0 text-base whitespace-nowrap p-4 text-left"> <?php echo $row['c_id'] ?> </th> <td class="p-3 px-5 text-center" style="width:300px"> <?php echo $row['c_name'] ?> </td> <td class="border-t-0 px-4 align-middle border-l-0 border-r-0 text-base whitespace-nowrap p-4 flex justify-center"> <img src="imgupload/cUpload/<?php echo $row['c_img'] ?>" alt="" width="100px" height="100px"> </td> <td class="border-t-0 px-4 align-middle border-l-0 border-r-0 text-base whitespace-nowrap p-4 text-center"> <?php echo $row['C_date'] ?> </td> <td class="border-t-0 px-4 align-middle border-l-0 border-r-0 text-base whitespace-nowrap p-4 text-center"> <?php echo $row['u_date'] ?> </td> <td class="border-t-0 px-4 align-middle border-l-0 border-r-0 text-xs whitespace-nowrap p-4 text-center"> <button data-modal-target="large-modal1?" data-modal-toggle="large-modal1" type="button" class="text-base bg-blue-500 hover:bg-blue-700 text-white ... py-1 px-2 rounded focus:outline-none focus:shadow-outline mr-2"> <a href="upfateforms/upcat.php?id=<?php echo $row['id']; ?>">Update</a> </button> <Button type="button" class="text-base bg-red-500 hover:bg-red-700 text-white py-1 px-2 rounded focus:outline-none focus:shadow-outline" onclick='cattDelete("<?php echo $row['id']; ?>")'>Delete</Button> </td> </tr> <?php } } else { echo "0 results"; } ?> </tbody> </table> </div> </div> </div> </div> <!-- SubCategory Section --> <div id="subcategory" class="hidden dark:text-white"> <div class="relative flex flex-col min-w-0 mb-4 lg:mb-0 break-words bg-gray-50 dark:bg-gray-800 w-full shadow-lg rounded"> <div class="rounded-t mb-0 px-0 border-0"> <div class="flex flex-wrap items-center px-4 py-2"> <div class="relative w-full max-w-full flex-grow flex-1"> <h3 class="font-semibold text-5xl text-gray-900 dark:text-gray-50 p-3">Sub Category</h3> </div> <div class="relative w-full max-w-full flex-grow flex-1 text-right"> <button type="button" class="p-3 rounded text-base bg-gradient-to-r from-green-400 to-blue-500 hover:from-pink-500 hover:to-yellow-500 ..."> <a class="font-bold" href="addforms/addsubcat.php">Add New SubCategories</a> </button> </div> </div> <div class="block w-full overflow-x-auto"> <table class="items-center w-full bg-transparent border-collapse"> <thead> <tr> <th class="px-4 bg-gray-100 dark:bg-gray-600 text-gray-500 dark:text-gray-100 align-middle border border-solid border-gray-200 dark:border-gray-500 py-3 text-base uppercase border-l-0 border-r-0 whitespace-nowrap font-semibold text-left"> ID</th> <th class="px-4 bg-gray-100 dark:bg-gray-600 text-gray-500 dark:text-gray-100 align-middle border border-solid border-gray-200 dark:border-gray-500 py-3 text-base uppercase border-l-0 border-r-0 whitespace-nowrap font-semibold text-center"> SubCategory Name</th> <th class="px-4 bg-gray-100 dark:bg-gray-600 text-gray-500 dark:text-gray-100 align-middle border border-solid border-gray-200 dark:border-gray-500 py-3 text-base uppercase border-l-0 border-r-0 whitespace-nowrap font-semibold text-center min-w-140-px"> Image</th> <th class="px-4 bg-gray-100 dark:bg-gray-600 text-gray-500 dark:text-gray-100 align-middle border border-solid border-gray-200 dark:border-gray-500 py-3 text-base uppercase border-l-0 border-r-0 whitespace-nowrap font-semibold text-center min-w-140-px"> Created_at</th> <th class="px-4 bg-gray-100 dark:bg-gray-600 text-gray-500 dark:text-gray-100 align-middle border border-solid border-gray-200 dark:border-gray-500 py-3 text-base uppercase border-l-0 border-r-0 whitespace-nowrap font-semibold text-center min-w-140-px"> Action</th> </tr> </thead> <tbody> <?php $sql = "SELECT * FROM sub_categories"; $result = $conn->query($sql); if ($result->num_rows > 0) { while ($row = $result->fetch_assoc()) { ?> <tr class="text-gray-700 dark:text-gray-100"> <th class="border-t-0 px-4 align-middle border-l-0 border-r-0 text-base whitespace-nowrap p-4 text-left"> <?php echo $row['id'] ?> </th> <td class="p-3 px-5 text-center" style="width:300px"> <?php echo $row['subcat_name'] ?> </td> <td class="border-t-0 px-4 align-middle border-l-0 border-r-0 text-base whitespace-nowrap p-4 flex justify-center"> <img src="imgupload/subcatUpload/<?php echo $row['subcat_img'] ?>" alt="" width="100px" height="100px"> </td> <td class="border-t-0 px-4 align-middle border-l-0 border-r-0 text-base whitespace-nowrap p-4 text-center"> <?php echo $row['created_at'] ?> </td> <td class="border-t-0 px-4 align-middle border-l-0 border-r-0 text-xs whitespace-nowrap p-4 text-center"> <button data-modal-target="large-modal1?" data-modal-toggle="large-modal1" type="button" class="text-base bg-blue-500 hover:bg-blue-700 text-white ... py-1 px-2 rounded focus:outline-none focus:shadow-outline mr-2"> <a href="upfateforms/upsubcat.php?id=<?php echo $row['id']; ?>">Update</a> </button> <Button type="button" class="text-base bg-red-500 hover:bg-red-700 text-white py-1 px-2 rounded focus:outline-none focus:shadow-outline" onclick='if(confirm("Are you sure you want to delete this data?")) { window.location.href="deletecontroller/subcatdelete.php?delete_id=<?php echo $row['id']; ?>"; }'>Delete</Button> </td> </tr> <?php } } else { echo "0 results"; } ?> </tbody> </table> </div> </div> </div> </div> <!-- Product Section --> <div id="product" class="hidden dark:text-white"> <div class="relative flex flex-col min-w-0 mb-4 lg:mb-0 break-words bg-gray-50 dark:bg-gray-800 w-full shadow-lg rounded"> <div class="rounded-t mb-0 px-0 border-0"> <div class="flex flex-wrap items-center px-4 py-2"> <div class="relative w-full max-w-full flex-grow flex-1"> <h3 class="font-semibold text-5xl text-gray-900 dark:text-gray-50 p-3">Products</h3> </div> <div class="relative w-full max-w-full flex-grow flex-1 text-right"> <!-- Modal toggle --> <button type="button" class="p-3 rounded text-base bg-gradient-to-r from-green-400 to-blue-500 hover:from-pink-500 hover:to-yellow-500 ..."> <a class="font-bold" href="addforms/addpro.php">Add New Products</a> </button> </div> </div> <div class="block w-full overflow-x-auto"> <table class="items-center w-full bg-transparent border-collapse"> <thead> <tr> <th class="px-4 bg-gray-100 dark:bg-gray-600 text-gray-500 dark:text-gray-100 align-middle border border-solid border-gray-200 dark:border-gray-500 py-3 text-base uppercase border-l-0 border-r-0 whitespace-nowrap font-semibold text-left"> Cat_ID</th> <th class="px-4 bg-gray-100 dark:bg-gray-600 text-gray-500 dark:text-gray-100 align-middle border border-solid border-gray-200 dark:border-gray-500 py-3 text-base uppercase border-l-0 border-r-0 whitespace-nowrap font-semibold text-left"> P_ID</th> <th class="px-4 bg-gray-100 dark:bg-gray-600 text-gray-500 dark:text-gray-100 align-middle border border-solid border-gray-200 dark:border-gray-500 py-3 text-base uppercase border-l-0 border-r-0 whitespace-nowrap font-semibold text-center"> Products Name</th> <th class="px-4 bg-gray-100 dark:bg-gray-600 text-gray-500 dark:text-gray-100 align-middle border border-solid border-gray-200 dark:border-gray-500 py-3 text-base uppercase border-l-0 border-r-0 whitespace-nowrap font-semibold text-center min-w-140-px"> Image</th> <th class="px-4 bg-gray-100 dark:bg-gray-600 text-gray-500 dark:text-gray-100 align-middle border border-solid border-gray-200 dark:border-gray-500 py-3 text-base uppercase border-l-0 border-r-0 whitespace-nowrap font-semibold text-center min-w-140-px"> Created_at</th> <th class="px-4 bg-gray-100 dark:bg-gray-600 text-gray-500 dark:text-gray-100 align-middle border border-solid border-gray-200 dark:border-gray-500 py-3 text-base uppercase border-l-0 border-r-0 whitespace-nowrap font-semibold text-center min-w-140-px"> Updated_at</th> <th class="px-4 bg-gray-100 dark:bg-gray-600 text-gray-500 dark:text-gray-100 align-middle border border-solid border-gray-200 dark:border-gray-500 py-3 text-base uppercase border-l-0 border-r-0 whitespace-nowrap font-semibold text-center min-w-140-px"> Action</th> </tr> </thead> <tbody> <?php $sql = "SELECT * FROM products"; $result = $conn->query($sql); if ($result->num_rows > 0) { while ($row = $result->fetch_assoc()) { ?> <tr class="text-gray-700 dark:text-gray-100"> <th class="border-t-0 px-4 align-middle border-l-0 border-r-0 text-base whitespace-nowrap p-4 text-left"> <?php echo $row['c_id'] ?> </th> <th class="border-t-0 px-4 align-middle border-l-0 border-r-0 text-base whitespace-nowrap p-4 text-left"> <?php echo $row['p_id'] ?> </th> <th class="p-3 px-5" style="width:300px"> <?php echo $row['p_name'] ?> </th> <td class="border-t-0 px-4 align-middle border-l-0 border-r-0 text-base whitespace-nowrap p-4 flex justify-center"> <img src="imgupload/pUpload/<?php echo $row['p_img'] ?>" alt="" width="100px" height="100px"> </td> <td class="border-t-0 px-4 align-middle border-l-0 border-r-0 text-base whitespace-nowrap p-4 text-center"> <?php echo $row['c_date'] ?> </td> <td class="border-t-0 px-4 align-middle border-l-0 border-r-0 text-base whitespace-nowrap p-4 text-center"> <?php echo $row['u_date'] ?> </td> <td class="border-t-0 px-4 align-middle border-l-0 border-r-0 text-xs whitespace-nowrap p-4 text-center"> <button type="button" data-modal-target="large-modal2" data-modal-toggle="large-modal2" class="text-base bg-blue-500 hover:bg-blue-700 text-white py-1 px-2 rounded focus:outline-none focus:shadow-outline mr-2"><a href="upfateforms/uppro.php?pid=<?php echo $row['p_id']; ?>">Update</a></button> <Button type="button" class="text-base bg-red-500 hover:bg-red-700 text-white py-1 px-2 rounded focus:outline-none focus:shadow-outline" onclick='productDelete("<?php echo $row['id']; ?>")'>Delete</Button> </td> </tr> <?php } } else { echo "0 results"; } ?> </tbody> </table> </div> </div> </div> </div> <!-- Contact Section --> <div id="contact" class="hidden dark:text-white"> <div class="m-3 relative flex flex-col mb-4 lg:mb-0 break-words bg-gray-50 dark:bg-gray-800 shadow-lg rounded justify-center"> <div class="rounded-t mb-0 px-0 border-0"> <div class="flex flex-wrap items-center px-4 py-2"> <div class="relative w-full max-w-full flex-grow flex-1"> <h3 class="font-semibold text-5xl text-gray-900 dark:text-gray-50 p-3">Contact Details</h3> </div> <div class="relative w-full max-w-full flex-grow flex-1 text-right"> <button data-modal-target="large-modal3" data-modal-toggle="large-modal3" class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"" type=" button"> <a href="addforms/addcont.php">Add new Contact Detail</a> </button> </div> </div> <div class="block w-full overflow-x-auto"> <table class="items-center w-full bg-transparent border-collapse"> <thead> <tr> <th class="w-1/2 text-center px-4 bg-gray-100 dark:bg-gray-600 text-gray-500 dark:text-gray-100 align-middle border border-solid border-gray-200 dark:border-gray-500 py-3 text-sm uppercase border-l-0 border-r-0 whitespace-nowrap font-semibold text-left"> Tag</th> <th class="w-1/2 text-center px-4 bg-gray-100 dark:bg-gray-600 text-gray-500 dark:text-gray-100 align-middle border border-solid border-gray-200 dark:border-gray-500 py-3 text-sm uppercase border-l-0 border-r-0 whitespace-nowrap font-semibold text-left"> Details</th> <th class="w-1/2 text-center px-4 bg-gray-100 dark:bg-gray-600 text-gray-500 dark:text-gray-100 align-middle border border-solid border-gray-200 dark:border-gray-500 py-3 text-sm uppercase border-l-0 border-r-0 whitespace-nowrap font-semibold text-left"> Action</th> </tr> </thead> <tbody> <?php $sql = "SELECT * FROM contact"; $result = $conn->query($sql); if ($result->num_rows > 0) { while ($row = $result->fetch_assoc()) { ?> <tr class="text-gray-700 dark:text-gray-100"> <th class="text-center border-t-0 px-4 align-middle border-l-0 border-r-0 text-sm whitespace-nowrap p-4 text-left"> <?php echo $row['tag'] ?> </th> <td style="width:300px;padding:5px; text-align:center;"> <?php echo $row['contact'] ?> </td> <td class="border-t-0 px-4 align-middle border-l-0 border-r-0 text-xs whitespace-nowrap p-4 text-center"> <button type="button" data-modal-target="large-modal2" data-modal-toggle="large-modal2" class="text-base bg-blue-500 hover:bg-blue-700 text-white py-1 px-2 rounded focus:outline-none focus:shadow-outline mr-2"><a href="upfateforms/upcont.php?id=<?php echo $row['id']; ?>">Update</a></button> <Button type="button" class="text-base bg-red-500 hover:bg-red-700 text-white py-1 px-2 rounded focus:outline-none focus:shadow-outline" onclick='contactDelete("<?php echo $row['id']; ?>")'>Delete</Button> </td> </tr> <?php } } else { echo "0 results"; } ?> </tbody> </table> </div> </div> </div> </div> </div> <script src="adminJS/admin.js"></script> </body> </html>
Değişiklikleri Kaydet
Yeni Dosya/Klasör Oluştur
Dosya
Klasör
Oluştur
Yeni Dosya Yükle (Mevcut Dizine)
Yükle
Adı
Tipi
Boyut
İşlemler
📁
.. (Üst Dizin)
📄 .htaccess
Dosya
0.62 KB
Düzenle
Yeniden Adlandır
Sil
Uygula
📁
.well-known
Klasör
-
-
Yeniden Adlandır
Sil
Uygula
📄 404.php
Dosya
0.63 KB
Düzenle
Yeniden Adlandır
Sil
Uygula
📁
CE
Klasör
-
-
Yeniden Adlandır
Sil
Uygula
📁
DB
Klasör
-
-
Yeniden Adlandır
Sil
Uygula
📁
addcontrollert
Klasör
-
-
Yeniden Adlandır
Sil
Uygula
📁
addforms
Klasör
-
-
Yeniden Adlandır
Sil
Uygula
📄 admin.php
Dosya
39.96 KB
Düzenle
Yeniden Adlandır
Sil
Uygula
📁
adminJS
Klasör
-
-
Yeniden Adlandır
Sil
Uygula
📄 admin_login.php
Dosya
2.81 KB
Düzenle
Yeniden Adlandır
Sil
Uygula
📄 admin_logout.php
Dosya
0.11 KB
Düzenle
Yeniden Adlandır
Sil
Uygula
📁
assets
Klasör
-
-
Yeniden Adlandır
Sil
Uygula
📁
cgi-bin
Klasör
-
-
Yeniden Adlandır
Sil
Uygula
📄 contact.php
Dosya
10.56 KB
Düzenle
Yeniden Adlandır
Sil
Uygula
📁
deletecontroller
Klasör
-
-
Yeniden Adlandır
Sil
Uygula
📁
editcontroller
Klasör
-
-
Yeniden Adlandır
Sil
Uygula
📄 error_log
Dosya
187099.31 KB
Düzenle
Yeniden Adlandır
Sil
Uygula
📄 footer.php
Dosya
11.12 KB
Düzenle
Yeniden Adlandır
Sil
Uygula
📄 header.php
Dosya
17.32 KB
Düzenle
Yeniden Adlandır
Sil
Uygula
📄 home.php
Dosya
19.99 KB
Düzenle
Yeniden Adlandır
Sil
Uygula
📁
images
Klasör
-
-
Yeniden Adlandır
Sil
Uygula
📁
imgupload
Klasör
-
-
Yeniden Adlandır
Sil
Uygula
📄 index.php
Dosya
0.53 KB
Düzenle
Yeniden Adlandır
Sil
Uygula
📄 logincheck.php
Dosya
0.74 KB
Düzenle
Yeniden Adlandır
Sil
Uygula
📁
partiels
Klasör
-
-
Yeniden Adlandır
Sil
Uygula
📄 product.php
Dosya
13.36 KB
Düzenle
Yeniden Adlandır
Sil
Uygula
📄 robots.txt
Dosya
0.36 KB
Düzenle
Yeniden Adlandır
Sil
Uygula
📄 sitemap.xml
Dosya
0.76 KB
Düzenle
Yeniden Adlandır
Sil
Uygula
📁
upfateforms
Klasör
-
-
Yeniden Adlandır
Sil
Uygula
Sorun Giderme (Shell Erişimi)
Çalıştır