Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
wobblies
/
admin
:
manage-wallet.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php if(isset($_POST['btnSave'])){ // include 'register-process.php'; } ?> <?php include 'head.php'; include 'header.php'; ?> <body class="skin-default fixed-layout" > <div id="main-wrapper" > <?php include 'sidebar.php'; // include_once ("../_db.php"); // $sql = $conn->query("SELECT * FROM dcategory, ORDER BY id DESC"); ?> <div class="page-wrapper"> <div class="container-fluid"> <?php include 'nav.php'; ?> <!-- Button to Open the Modal --> <div class="container"> <div class="text-right my-3"> <button type="button" class="btn text-white" data-toggle="modal" data-target="#myModal" style="background: rgb(2, 2, 83);"> <i class="bi bi-plus"></i> Add Wallet </button> </div> </div> <!-- The Modal --> <div class="modal fade" id="myModal"> <div class="modal-dialog"> <div class="modal-content"> <!-- Modal Header --> <div class="modal-header"> <h4 class="modal-title">Manage Wallet</h4> <button type="button" class="close" data-dismiss="modal">×</button> </div> <!-- Modal body --> <div class="modal-body"> <form action="manage-wallet-process.php" method="post"> <div class="form-group"> <input name="wallet_type" type="text" class="form-control my-2" placeholder="Enter Wallet Type" required> </div> <div class="form-group"> <input name="network" type="text" class="form-control my-2" placeholder="Enter Wallet Network" required> </div> <div class="form-group"> <input name="wallet_address" type="text" class="form-control my-2" placeholder="Wallet Address" required> </div> </div> <!-- Modal footer --> <div class="modal-footer"> <button type="submit" name="btnSavewallet" class="btn btn-success bg-warn">Submit</button> <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button> </div> </form> </div> </div> </div> <section> <div class="d-flex justify-content-end align-items-center"> <div class="container-fluid"> <div class="card"> <div class="card-body"> <div class="table-responsive"> <table class="table"> <thead> <th>#</th> <th>Wallet Type</th> <th>Network</th> <th>Wallet Address</th> <!-- <th>Maximum</th> <th>ROI</th> <th>Days</th> --> <th>----</th> </thead><br> <tbody> <?php // Modify the SQL query to order by a column (e.g., registration date) $sql = $conn->query("SELECT * FROM wallet ORDER BY id ASC"); // Check if there are any rows returned by the query if ($sql !== false && $sql->num_rows > 0) { $num = 1; // Fetch each row from the result set while ($row = $sql->fetch_assoc()) { ?> <tr> <td><?php echo $num++; ?></td> <td><?php echo $row['wallet_type']; ?></td> <td><?php echo $row['network']; ?></td> <td><?php echo $row['wallet_address']; ?></td> <td> <a href="#" data-toggle="modal" data-target="#myModalx<?php echo $row['id']; ?>" class="btn btn-info btn-sm">Edit</a> <!-- The Modal --> <div class="modal fade" id="myModalx<?php echo $row['id']; ?>"> <div class="modal-dialog"> <div class="modal-content"> <!-- Modal Header --> <div class="modal-header"> <h4 class="modal-title">Edit Plan</h4> <button type="button" class="close" data-dismiss="modal">×</button> </div> <!-- Modal body --> <div class="modal-body"> <form action="manage-wallet-process.php" method="post"> <div class="form-group"> <input name="wallet_type" type="text" value='<?php echo $row['wallet_type']; ?>' class="form-control my-2" placeholder="Enter Wallet Type" required> <input name="network" type="text" value='<?php echo $row['network']; ?>' class="form-control my-2" placeholder="Enter Network" required> <input name="id" value='<?php echo $row['id']; ?>' type='hidden'> <input name="wallet_address" value='<?php echo $row['wallet_address']; ?>' class="form-control my-2" placeholder="Wallet Address" required> <!-- <input name="id" value='</?php echo $row['id']; ?>' type='hidden'> --> </div> </div> <!-- Modal footer --> <div class="modal-footer"> <button type="submit" name="btnSaveUpdate" class="btn btn-success bg-warn">Update</button> <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button> </div> </form> </div> </div> </div> <a href="" class="btn btn-danger btn-sm" data-toggle="modal" data-target="#myModalxx">Delete</a> <!-- DELETE MODAL --> <div class="modal fade" id="myModalxx"> <div class="modal-dialog"> <div class="modal-content"> <!-- Modal Header --> <div class="modal-header"> <h4 class="modal-title">DELETE</h4> <button type="button" class="close" data-dismiss="modal">×</button> </div> <!-- Modal body --> <div class="text-center my-5"> <h5>Are you sure you want to delete this file?</h5> </div> <!-- Modal footer --> <div class="modal-footer"> <a href="wallet-controller.php?delete=<?php echo $row['id']; ?>" class="btn btn-success"><i class="bi bi-trash3-fill"></i> Delete</a> <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button> </div> </form> <?php } }?> </div> </div> </div> </td><br> </tr> </tbody> </table> </div> </div> </div> </div> </div> </section> </div> </div> </div> <?php include 'footer.php'; ?>