📁
SKYSHELL MANAGER-
🛒
PHP v7.4.33
Create Folder
Create File
Current Path:
home
/
oshofree
/
public_html
/
chbluxuries.com
/
chb_data
/
Name
Size
Permissions
Actions
📁
..
-
0755
🗑️
🔒
📄
config.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
📄
error_log
377.32 KB
0644
🗑️
⬇️
✏️
🔒
Editing: logs.php
<?php session_start(); ?><?php include "header2.php"; ?><?php include "every.php";?> <body onLoad="getLocation()"> <style> .c{ background-color:rgba(1,255,1,0.1); color:#009900; padding:3px; border-radius:5px; border:1px solid rgb(1,255,1); font-size:10px; font-weight:800; margin:auto; text-align:center; } .d{ background-color:rgba(355,1,1,0.1); color:#FF0000; padding:3px; border-radius:5px; border:1px solid rgb(355,1,1); font-size:10px; font-weight:800; margin:auto; text-align:center; } </style> <main id="main"> <section id="pricing" class="pricing" style="margin-botttom:100px;"> <div class="container" data-aos="fade-up"> <h3 align="center" style="font-weight:900; color: #FF339A; ">PAYMENT LOG</h3> <div class="row content" align="center"> <div class="col-lg-12" style="padding:0px; margin:auto; width:100%; "> <form method="post" action=""> <p> <label>FROM</label> <input type="date" class="form-control" name="dar" required /></p> <p><label>TO</label> <input type="date" class="form-control" name="der" required /><br> <input type="text" value="<?php echo $email; ?>" name="user" required hidden/></p> <p> <input type="submit" name="submit" value="Search" class="btn-buy" style="background-color:#FF339A; border-radius:5px; color:#FFFFFF; border:none;" /></p> </form> <p style="overflow:auto; margin-bottom:50%; "><table class='table table-condensed ' width='100%' border="0" cellspacing='0' data-toggle='bootgrid'> <thead> <tr bgcolor="#CCCCCC"> <th data-column-id='employee_name' width='100px'>Type</th> <th data-column-id='employee_name' width='100px'>Amount</th> <th data-column-id='employee_salary' width='150px'> Date</th> <th data-column-id='employee_salary' width='100px'>Description</th> <th data-column-id='employee_salary' width='100px'>OrderID</th> </tr> </thead> <?php include "connect_to_mysqli.php"; if(isset($_POST['submit'])) { $from = $_POST['dar']; $to= $_POST['der']; $user= $_POST['user']; $plan="Yes";} if ($from=="") { $sql = "SELECT * from history where id ='".$usid."' "; $sql2 = mysqli_query($con,$sql); while ($row = mysqli_fetch_array($sql2)) { $rat=$row['name'] ; if ($rat=="Wallet TopUp" || $rat=="Membership Upgrade") { $raw="<div class='c'>Credit</div>"; } else { $raw="<div class='d'>Debit</div>"; } echo " <tr bgcolor='#fff'><td width='100px'>" . $raw . "</td><td width='100px'>" . $row['amount'] . "</td><td width='150px'>" . $row['date'] . "</td> <td width='100px'>" . $row['name'] . "</td><td width='100px' >" . $row['parcel'] . "</td> "; } } else{ $sql = "SELECT * from history where date BETWEEN '".$from."' AND '".$to."' && id ='".$usid."' "; $sql2 = mysqli_query($con,$sql); if (mysqli_affected_rows($con) == 0) { echo "<center>You don't have any transactions within that period</center>"; } else { while ($row = mysqli_fetch_array($sql2)) { $rat=$row['name'] ; if ($rat=="Wallet TopUp" || $rat=="Membership Upgrade") { $raw="<div class='c'>Credit</div>"; } else { $raw="<div class='d'>Debit</div>"; } echo " <tr bgcolor='#fff'><td width='100px' >" . $raw. "</td><td width='100px'>" . $row['amount'] . "</td><td width='150px'>" . $row['date'] . "</td> <td width='100px'>" . $row['name'] . "</td><td width='100px' >" . $row['parcel'] . "</td> "; } } } ?> </table></p> </div></div></div> </section> </main><!-- End #main --> <?php include "footer2.php"; ?>
💾 Save Changes