File "purchase-code.php"
Full Path: /home/u165092617/domains/tadzz.com/public_html/admin/purchase-code.php
File size: 10.28 KB
MIME-type: text/x-php
Charset: utf-8
<?php session_start();
include("./../config/config.php");
include("./backend/validated_admin.php");
$sql_license = "SELECT * FROM admin_license";
$sql_connect = $conn->query($sql_license);
$sql_fetch = $sql_connect->fetchAll();
$sql_row_found = $sql_connect->rowCount();
//echo $sql_row_found;
if($sql_row_found > 0){
foreach($sql_fetch as $row){
$name = $row['product_name'];
$product_id = $row['product_id'];
$pr_date = $row['purchase_date'];
$buyer = $row['buyer_name'];
$type = $row['license_type'];
$supported = $row['supported_until'];
$pr_code = $row['purchase_code'];
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Purchase Code - iCouponWorld | Coupons | Discounts| Promo Codes</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link id="favicon" rel="icon" type="image/x-icon" href="../images/web-images/home/favicon.png">
<meta name="robots" content="index, follow" />
<meta name="author" content="Design Collection">
<meta name="description" content="You are provided with a license key file that you place in the file system of the machine on which Integration Server">
<meta name="keywords" content="Purchase Code, Theme Status, Status, Purchase Code, promo code, cashback, offer, promotion, deal">
<link rel="canonical" href="purchase-code.php"/>
<!-- Viewport configuration, scaling options -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- Bootstrap CSS -->
<link href="../css/icouponworld.css" rel="stylesheet">
<!-- CSS Stylesheet -->
<link href="../css/dashboard.css" rel="stylesheet">
<!-- Font Awesome icon -->
<link href="../fontawesome/css/fontawesome.css" rel="stylesheet" />
<!-- Roboto font -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;1,100;1,300;1,400;1,500;1,700&display=swap" rel="stylesheet">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!--unique id begin -->
<div id="s_mm">
<!--scroll-top Begin-->
<div id="scroll-top">
<!--sidebarwrapper Begin-->
<div id="sidebarwrapper">
<!--Sidebarmenu Begin-->
<?php include("./includefiles/sidebar.php"); ?>
<!--Sidebarmenu End-->
<!--content-wrapper Begin-->
<div id="content-wrapper" class="d-flex flex-column dashboard-navbar">
<div id="maincontent">
<!-- Navbar Topbar Begin-->
<?php include("./includefiles/header.php"); ?>
<!-- Navbar Topbar End-->
<!-- Container Begin-->
<div class="container-fluid px-4">
<div class="align-items-center justify-content-between mb-4">
<h3>
Purchase Code
</h3>
<p>Enter your purchase code here, to activate the Icoupon, and get full feature updates and premium support.</p>
</div>
<?php include("./includefiles/coupon_count.php"); ?>
<form>
<!--Create your own free form Begin-->
<div class="col-md-12">
<div class="card border-0 shadow mb-4">
<div class="card-header bg-white border-bottom py-3">
<h6 class="m-0 fw-bold text-inherit">Item activate pannel</h6>
</div>
<div class="card-body">
<div class="row">
<div class="col-md-12">
<div class="table-responsive">
<table class="table table-bordered">
<thead class="table-light-success border-bottom-0">
<tr>
<th class="fs-15 text-uppercase" scope="col">Item Status </th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Product Name:</th>
<td><?=$name?></td>
</tr>
<tr>
<th scope="row">Product ID:</th>
<td><?=$product_id?></td>
</tr>
<tr>
<th scope="row">Purchase Date</th>
<td><?php echo date( "d F Y", strtotime( $pr_date ) ) ?></td>
</tr>
<tr>
<th scope="row">Buyer Name</th>
<td><?=$buyer?></td>
</tr>
<tr>
<th scope="row">License Type</th>
<td><?=$type?></td>
</tr>
<tr>
<th scope="row">Supported Until</th>
<td> 6 month Duration After Purchase Date</td>
</tr>
<tr>
<th scope="row">Purchase Code:</th>
<td><?= $pr_code?></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="col-md-12">
<div class="form-check">
<input type="radio" class="form-check-input" id="radio1" name="optradio" value="option1" checked>Activated
<label class="form-check-label" for="radio1"></label>
</div>
<div class="form-check">
<input type="radio" class="form-check-input" id="radio2" data-bs-toggle="modal" data-bs-target="#exampleModal" name="optradio" value="option2">Deactivate
<label class="form-check-label" for="radio2"></label>
</div>
</div>
</div>
</div>
</div>
</div>
<!---Create your own free form End-->
</form>
</div>
<!-- Container End-->
<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Item Deactive</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
Sure! You want to Deactivate your item
</div>
<div class="modal-footer bg-white">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">No</button>
<a href="./backend/deactive_user_account.php?id=<?=($pr_code)?>" class="btn btn-primary">Yes</a>
</div>
</div>
</div>
</div>
</div>
<!--Copyright Begin-->
<?php include("./includefiles/footer.php"); ?>
<!--Copyright End-->
</div>
<!--content-wrapper End-->
</div>
<!--sidebarwrapper End-->
<!--Scroll to top Begin-->
<a class="scroll-to-top rounded" href="#scroll-top">
<i class="fas fa-angle-up"></i>
</a>
<!--Scroll to top End-->
<!-- Jquery Script -->
<script src="../js/jquery-3.4.1.min.js"></script>
<!-- Bootstrap Script -->
<script src="../js/bootstrap.bundle.min.js"></script>
<!-- dashboard-icouponworld Script -->
<script src="../js/dashboard-icouponworld.js"></script>
</div>
<!--scroll-top End-->
</div>
<!--unique id End -->
</body>
</html>