Viewing File: /home/rareljzw/public_html/admin/sale-nfts.php
<?php
$pageName = "Listed Nfts";
include($_SERVER['DOCUMENT_ROOT']."/admin/layout/header.php");
//$balances = $row['acct_balance']->rowCount();
?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
All Listed Nfts
</h1>
<ol class="breadcrumb">
<li><a href="./dashboard"><i class="fa fa-dashboard"></i> Dashboard</a></li>
</ol>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-xs-12">
<div class="box">
<!-- /.box-header -->
<div class="box-body">
<div class="table-responsive">
<table id="example2" class="table table-bordered table-hover">
<thead>
<tr>
<th>No</th>
<th>Item Name</th>
<th>Owner</th>
<th>Price</th>
<th>Gas Fee</th>
<th>Status</th>
<th>Created</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
$sql="SELECT * FROM nfts INNER JOIN payment ON nfts.payment_id=payment.payment_id
INNER JOIN users ON nfts.username=users.username WHERE nft_status='sale'";
$stmt = $conn->prepare($sql);
$stmt->execute();
$sn=1;
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)){
?>
<tr>
<td><?= $sn++ ?></td>
<td><?= $row['nft_name'] ?></td>
<td><a href="./view-users.php?id=<?php echo $row['username']; ?>" target="_blank">@<?= $row['username'] ?></a> </td>
<td>$<?= $row['amount'] ?></td>
<td>$<?= $row['fee'] ?></td>
<td><?= $row['nft_status'] ?></td>
<td><?= $row['createdAt'] ?></td>
<td class="text-center">
<a href="./view-nfts.php?id=<?php echo $row['nft_id']; ?>" class="btn btn-primary">View</a>
<a href="./delete-nfts.php?id=<?php echo $row['nft_id']; ?>" class="btn btn-danger">Del</a>
</td>
</tr>
<?php
}
?>
</tbody>
<tfoot>
<tr>
<br>
</tr>
</tfoot>
</table>
</div>
</div>
<!-- /.box-body -->
</div>
<!-- /.box -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<?php
include($_SERVER['DOCUMENT_ROOT']."/admin/layout/footer.php");
?>
Back to Directory
File Manager
<