<?php session_start();
include("./../config/config.php");
include("./backend/validated_admin.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Welcome to dashboard icouponworld.com</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="This is the admin panel of icouponworld .com with the help of which you can manage the whole website." />
<meta name="keywords" content=" admin menu, bootstrap 4 navigation, bootstrap 4 sidebar menu, dashboard sidebar, html sidebar, off-canvas sidebar, overlay sidebar, vertical menu" />
<link rel="canonical" href="webpages.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="d-sm-flex align-items-center justify-content-between mb-4">
<h3>
Edit Contain Webpages
</h3>
</div>
<?php include("./includefiles/coupon_count.php"); ?>
<form>
<!--LIST OF CONTAIN BASED STATIC WEB PAGE 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">List of contain based static web page</h6>
</div>
<div class="card-body">
<!--Table-Responsive Begin-->
<div class="table-responsive">
<table class="table table-bordered">
<thead class="table-light-success border-bottom-0">
<tr>
<th>Id</th>
<th>Title</th>
<th>Description</th>
<th>Keyword</th>
<th>Data</th>
<th>Page Name</th>
<th>Update</th>
</tr>
</thead>
<tbody>
<?php $sql = "SELECT * FROM page_master ";
$myquery=$conn->query($sql);
$mydara= $myquery->fetchAll() ;
$rows_found = $myquery->rowCount();
foreach ($mydara as $key ) {
$rowId= $key['rowId'];
$short_title= $key['short_title'];
$description= $key['description'];
$keyword= $key['keyword'];
$data= $key['data'];
$page= $key['page_name'];
?>
<tr>
<th>1</th>
<td><?=$short_title?></td>
<td><?=$description?></td>
<td><?=$keyword?></td>
<td>
<div class="data-webpages">
<?=$data?>
</div>
</td>
<td><?=$page?></td>
<td><a href="#" data-bs-toggle="modal" data-bs-target="#updatemodel<?=$rowId?>" class="btn btn-primary px-2 py-1 btn-sm"><i class="fas fa-edit"></i></a></td>
</tr>
<div class="modal fade" id="updatemodel<?=$rowId?>" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="updatemodelLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="updatemodelLabel">Update Page</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<p>Are you sure! you want to Update this page?</p>
</div>
<div class="modal-footer bg-white">
<a href="edit-delete-master.php?page=<?=$page?>" class="btn btn-primary">Yes</a>
<a class="btn btn-secondary" data-bs-dismiss="modal">No</a>
</div>
</div>
</div>
</div>
<?php } ?>
</tbody>
</table>
</div>
<!--Table-Responsive End-->
<button type="submit" class="btn btn-primary mt-2 mb-5">Save</button>
</div>
</div>
</div>
<!---LIST OF CONTAIN BASED STATIC WEB PAGE End-->
</form>
</div>
<!-- Container End-->
</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>