ok

Mini Shell

Direktori : /home2/selectio/public_html/ramali.in/dashboard/public/
Upload File :
Current File : //home2/selectio/public_html/ramali.in/dashboard/public/confirm-delete-shipping.php

<div id="content" class="container col-md-12">
    <?php
    include_once('includes/custom-functions.php');
    $fn = new custom_functions;
    if (isset($_POST['btnDelete'])) {

        $ID = (isset($_GET['id'])) ? $db->escapeString($fn->xss_clean($_GET['id'])) : "";
        
        $sql_query = "DELETE FROM shipping WHERE id =" . $ID;
        $db->sql($sql_query);
        $delete_product_result = $db->getResult();
        if (!empty($delete_product_result)) {
            $delete_product_result = 0;
        }
        $delete_product_result = 1;
        if ($delete_product_result) {
            header("location: shipping-details.php");
        }
    }

    if (isset($_POST['btnNo'])) {
        header("location: shipping-details.php");
    }
    if (isset($_POST['btncancel'])) {
        header("location: shipping-details.php");
    }

    ?>
    <?php
    if ($permissions['subcategories']['delete'] == 1) { ?>
        <h1>Confirm Action</h1>
        <hr/>
        <form method="post">
            <p>Are you sure want to delete this Subcategory?All the Products will also be Deleted.</p>
            <input type="submit" class="btn btn-primary" value="Delete" name="btnDelete" />
            <input type="submit" class="btn btn-danger" value="Cancel" name="btnNo" />
        </form>
        <div class="separator"> </div>
    <?php } else { ?>
        <div class="alert alert-danger topmargin-sm" style="margin-top: 20px;">You have no permission to delete subcategory.</div>
        <form method="post">
            <input type="submit" class="btn btn-danger" value="Back" name="btncancel" />
        </form>
    <?php }  ?>
</div>

<?php $db->disconnect(); ?>

Zerion Mini Shell 1.0