PNG IHDR x sBIT|d pHYs + tEXtSoftware www.inkscape.org< ,tEXtComment
<?php
require "inc/session.php";
require "include/header.php";
require "inc/process2.php";
?>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<body>
<?php
require "include/sidebar.php";
?>
<main id="main" class="main">
<div class="pagetitle">
<h1>Fan card management </h1>
<nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index.php">Home</a></li>
<li class="breadcrumb-item"><a href="index.php"> Fan card manager</a></li>
<li class="breadcrumb-item active"> All Fan card</li>
</ol>
</nav>
</div><!-- End Page Title -->
<section class="section dashboard">
<div class="row">
<div class="container">
<!-- alert start -->
<?php
if(isset($success)){
?>
<div class="alert alert-success" role="alert">
<?php echo $success;?>
</div>
<?php
}else{
if(isset($error)){
?>
<div class="alert alert-danger" role="alert">
<?php echo $error;?>
</div>
<?php
}
}
?>
<h3>Add Fan card </h3>
<br>
<div class="card">
<div class="card-body">
<!-- fan card -->
<div id="fan">
<h5 class="card-title">All <span>Fan card </span></h5>
<!-- Button trigger modal -->
<a href="add_fancard.php" class="btn btn-primary">
Add New Fancard
</a>
<table class="table datatable">
<thead class="thead-light">
<th>Name</th>
<th>email</th>
<th>Type</th>
<th>Price</th>
<th>Action</th>
</thead>
<tbody>
<?php
$sql_fancard ="SELECT * FROM buy_fancard";
$count=0;
$query_fancard= mysqli_query($connection, $sql_fancard);
while ($fancard=mysqli_fetch_assoc($query_fancard)){
?>
<tr>
<td><?php echo $fancard["name"];?></td>
<td><?php echo $fancard["email"];?></td>
<td><?php
$card_id= $fancard["card_id"];
$sql_card ="SELECT * FROM fan_card WHERE id = $card_id";
$count=0;
$query_card= mysqli_query($connection, $sql_card);
$card=mysqli_fetch_assoc($query_card);
echo $card["name"];
?></td>
<td><?php echo $fancard["amount_paid"];?></td>
<td>
<a class="btn btn-success" href="veiw.php?fan_card=<?php echo $fancard["id"];?>">Veiw</a>
<!-- <a href="Edit_fancard?id=<?php echo $fancard["id"];?>">Edit</a> -->
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
<hr>
<h5 class="card-title">All <span>Application </span></h5>
<!-- Button trigger modal -->
<a href="add_fancard.php" class="btn btn-primary">
Add New Orphanage
</a>
<table class="table datatable">
<thead class="thead-light">
<th>image</th>
<th>Name</th>
<th>Price</th>
<th>Action</th>
</thead>
<tbody>
<?php
$sql_fan ="SELECT * FROM fan_card";
$count=0;
$query_fan= mysqli_query($connection, $sql_fan);
while ($fan=mysqli_fetch_assoc($query_fan)){
?>
<tr>
<td><img src="<?php echo $fan["thumbnail"];?>" style="height:50px;"
class="img-thumbnail" alt=""></td>
<td><?php echo $fan["name"];?></td>
<td><?php echo $fan["price"];?></td>
<td>
<a href="?delete_fan=<?php echo $fan["id"];?>">Delete</a>
<!-- <a href="Edit_fan?id=<?php echo $fan["id"];?>">Edit</a> -->
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
</div>
</section>
</main><!-- End #main -->
<!-- ======= Footer ======= -->
<?php
require "include/footer.php";
?>
</body>
</html>
b IDATxytVսϓ22 A@IR:hCiZ[v*E:WũZA ^dQeQ @ !jZ'>gsV仿$|?g)&x-E