MMCT TEAM
Server IP : 162.214.80.37  /  Your IP : 216.73.216.68
Web Server : Apache
System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : imyrqtmy ( 2189)
PHP Version : 8.2.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home2/imyrqtmy/www/edutext/Admin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/imyrqtmy/www/edutext/Admin/inq_list.php
<?php
session_start();
$se = $_SESSION["id"];
if (!isset($_SESSION['id'])) {
    header("Location: login.php");
}
include("Includes/db.php");;
 
?>

<!doctype html>
<html lang="en">
<head>
        
     <?php include 'Includes/head.php'; ?>


    </head>

    <body data-sidebar="dark">

    <!-- <body data-layout="horizontal" data-topbar="dark"> -->

        <!-- Begin page -->
        <div id="layout-wrapper">

            
            <?php include 'Includes/header.php'; ?>

            <!-- ========== Left Sidebar Start ========== -->
            <div class="vertical-menu">

                <div data-simplebar class="h-100">

                    <!--- Sidemenu -->
                   <?php include 'Includes/sidebar.php'; ?>
                    <!-- Sidebar -->
                </div>
            </div>
            <!-- Left Sidebar End -->

            

            <!-- ============================================================== -->
            <!-- Start right Content here -->
            <!-- ============================================================== -->
            <div class="main-content">

                <div class="page-content">
                    <div class="container-fluid">

                        <!-- start page title -->
                        <div class="row">
                            <div class="col-12">
                                <div class="page-title-box d-sm-flex align-items-center justify-content-between">
                                    <h4 class="mb-sm-0 font-size-18">  Inquiry Details</h4>

                                  

                                </div>
                            </div>
                        </div>
                        <!-- end page title -->
                        
                        <div class="row">
                            <div class="col-12">
                                <div class="card">
                                    <div class="card-body">
                                        <div class="row">
                                            
								            <div class="col-md-10"></div>
								            <div class="col-md-2" style="padding: 13px;">
								              
                                            <!--     
                                               <a href="about_add.php"><button type="button" class="btn btn-primary waves-effect waves-light">
                                               <i class="fa fa-plus"></i> Add
                                                </button></a> -->
                                                
								            </div>
            								<br>
            								
            								
            								
                                        </div>
                                        <table id="datatable-buttons" class="table table-bordered dt-responsive  nowrap w-100">
                                            <thead>
                                            <tr>
                                                <th>#</th>
                                                <th>Action</th>
                                                <th>Status</th>
                                                <th>Vendor Name</th>
                                                <th>User Mobile No</th>
                                                <th>Date</th>
                                                <th>Time</th>
                                                <th>Weight</th>
                                                <th>Address</th>
                                                <th>Remark</th>
                                              
                                                
                                            </tr>
                                            </thead>
        
        
                                            <tbody>
                                                 <?php
                                                $count = 1;
                                                $sql = "select * from tbl_schdule_pickup ";
                                                $sql_res = mysqli_query($con, $sql) or die(mysqli_error($con));
                                                while ($sql_row = mysqli_fetch_assoc($sql_res)){ 
                                                   
                                                 $uid =  $sql_row['uid'];

                                                 $status =  $sql_row['status'];

                                                 $vendor_assign =  $sql_row['vendor_assign'];

                                                 $sch_address =  $sql_row['sch_address'];

                                                 $sqls = "select * from tbl_user where id='$uid'";
                                                $sql_ress = mysqli_query($con, $sqls) or die(mysqli_error($con));
                                                $sql_rows = mysqli_fetch_assoc($sql_ress); 

                                                $sqla = "select * from tbl_add  where id='$sch_address'";
                                                $sql_resa = mysqli_query($con, $sqla) or die(mysqli_error($con));
                                                $sql_rowa = mysqli_fetch_assoc($sql_resa);   
                                                    

                                                      $sqlv = "select * from tbl_vendor  where id='$vendor_assign'";
                                                $sql_resv = mysqli_query($con, $sqlv) or die(mysqli_error($con));
                                                $sql_rowv = mysqli_fetch_assoc($sql_resv);   
                                                    ?>
                                                    
                                            <tr>
                                                <td><?php echo $count; ?></td>
                                                 <td>
                                                      
                                                      <?php

                                                     if ($status == '0') {
                                                        ?>
                                                          <a href="./assign_inq.php?id=<?php echo $sql_row['id']; ?>" class=" text-primary">
                                                               Assign Inquiry
                                                            </a>
                                                        <?php
                                                     }
                                                     else{
                                                        
                                                     }

                                                     ?>
                                                          
                                                 </td>
                                                 <td>
                                                     <?php

                                                     if ($status == '0') {
                                                         # code...
                                                        echo 'Inquiry Not Assign';
                                                     }
                                                     else{
                                                        echo 'Assigned Inquiry';
                                                     }

                                                     ?>
                                                 </td>
                                                 <td>
                                                    <?php

                                                     if ($status == '0') {
                                                         # code...
                                                        
                                                     }
                                                     else{
                                                        echo $sql_rowv['name'];
                                                     }

                                                     ?>
                                                    
                                                 </td>
                                                <td><?php echo $sql_rows['mobile']; ?></td>
                                                 <td><?php echo $sql_row['sch_date']; ?></td>
                                                 <td> 
                                                   <?php echo $sql_row['sch_time']; ?>
                                                 </td>
                                                  <td> 
                                                   <?php echo $sql_row['sch_weight']; ?>
                                                 </td>
                                                 <td><?php echo $sql_rowa['address']; ?></td>
                                                 <td> 
                                                   <?php echo $sql_row['sch_remark']; ?>
                                                 </td>

                                                   
 
                                            </tr>
                                          
                                               <?php $count++;
                                                } ?>
                                            </tbody>
                                        </table>
        
                                    </div>
                                </div>
                            </div> <!-- end col -->
                        </div> <!-- end row -->
                       
                        <!-- end row -->

                       
                        <!-- end row -->

                       
                        <!-- end row -->
                    </div>
                    <!-- container-fluid -->
                </div>
                <!-- End Page-content -->

                

                <footer class="footer">
                     <?php include 'Includes/footer.php'; ?>
                </footer>
            </div>
            <!-- end main content-->

        </div>
        <!-- END layout-wrapper -->

        <!-- Right Sidebar -->
        
        <!-- /Right-bar -->

        <!-- Right bar overlay-->
        <div class="rightbar-overlay"></div>

     
        <?php include 'Includes/bscript.php'; ?>
    </body>

</html>

MMCT - 2023