📁
SKYSHELL MANAGER-
🛒
PHP v7.4.33
Create Folder
Create File
Current Path:
home
/
oshofree
/
public_html
/
chblogistics.com
/
8f313d
/
Name
Size
Permissions
Actions
📁
..
-
0555
🗑️
🔒
📄
error_log
25.01 KB
0644
🗑️
⬇️
✏️
🔒
📄
index.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
Editing: voice.php
<?php session_start(); ?><?php include "header2.php"; ?><?php include "every.php";?> <body onLoad="getLocation()"> <main id="main"> <section id="pricing" class="pricing" style="margin-botttom:100px;"> <div class="container" data-aos="fade-up"> <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:#FF0996; 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'>SN</th> <th data-column-id='employee_name' width='100px'>Invoice No</th> <th data-column-id='employee_name' width='100px'>Amount</th> <th data-column-id='employee_salary' width='100px'>Payment Status</th> <th data-column-id='employee_salary' width='100px'>Payment Description</th> <th data-column-id='employee_name' width='100px'>Tracking No</th> <th data-column-id='employee_name' width='100px'>Payment Method</th> <th data-column-id='employee_name' width='100px'>Date</th> <th data-column-id='employee_name' width='100px'></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."' ORDER BY s DESC"; $sql2 = mysqli_query($con,$sql); $i=1; while ($row = mysqli_fetch_array($sql2) ) { echo" <tr bgcolor='#fff'><td width='100px' >" . $i++ . "</td><td width='100px' >CHB" . $row['parcel'] . "</td><td width='100px'>" . $row['amount'] . "</td> <td width='100px' ><button class='submitad'>Paid</button><td width='100px' >" . $row['name'] . "<td width='100px' >" . $row['parcel'] . "</td><td width='100px' >Wallet</td></td><td width='100px'>" . $row['date'] . "</td> <td><form action='invoice.php' method='post'> <input type='text' name='ordid' value='" . $row['parcel'] . "' required hidden> <button type='submit' name='submit' value='Invoice' style='background-color:none; outline:none; border:none;' ><i class='bx bx-search'></i></button></form></td> "; } } else{ $sql = "SELECT * from history where date BETWEEN '".$from."' AND '".$to."' && id ='".$usid."' ORDER BY s DESC"; $sql2 = mysqli_query($con,$sql); if (mysqli_affected_rows($con) == 0) { echo "<center>You don't have any Delivery within that period</center>"; } else { while ($row = mysqli_fetch_array($sql2)) { $sta = $row['status']; $kay=" <td><form action='invoice.php' method='post'> <input type='text' name='ordid' value='" . $row['id'] . "' required hidden> <input type='submit' name='submit' value='Invoice' class='submitn' ></form></td>"; echo " <tr bgcolor='#fff'><td width='100px' >" . $i++ . "</td><td width='100px' >CHB" . $row['parcel'] . "</td><td width='100px'>" . $row['amount'] . "</td> <td width='100px' ><button class='submitad'>Paid</button><td width='100px' >" . $row['name'] . "<td width='100px' >" . $row['parcel'] . "</td><td width='100px' >Wallet</td></td><td width='100px'>" . $row['date'] . "</td> <td><form action='invoice.php' method='post'> <input type='text' name='ordid' value='" . $row['id'] . "' required hidden> <button type='submit' name='submit' value='Invoice' style='background-color:none; outline:none; border:none;' ><i class='bx bx-search'></i></button></form></td> "; } } } ?> </table></p> </div></div></div> </section> </main><!-- End #main --> <?php include "footer2.php"; ?>
💾 Save Changes