PK

ADDRLIN : /home/questend/public_html/subdomain/cheesybite.questend.com/purchase/
FLL :
Current File : /home/questend/public_html/subdomain/cheesybite.questend.com/purchase/purchase-list.php

<?php
   ob_start();
   //error_reporting(E_ALL ^ E_NOTICE);
   @session_start();
   ini_set('allow_url_include',1);    
   date_default_timezone_set("Asia/Kolkata");
   set_time_limit(600);
   ini_set('max_execution_time',600);
   include '../includes/settings/constant.php';
   //include '../includes/settings/db.php';
   require_once '../includes/settings/PDODB.php';
   include '../includes/modules/functions.php';
   
   $function = new FUNCTIONS();   
   if(empty($_SESSION['adminId_cheesyBites'])){
    header("Location: ../index.php");
    exit();
   }

   $ipAddress = $function->getRealIpAddr();
   $inventoryData = $function->getInventory($id=NULL,$itemCode=NULL,$itemType=NULL,$isActive=1);
   $purchaseData = $function->getPurchase($pId=NULL,$customer_contactno=NULL,$isActive=1,$orderBy='DESC');

   //delete inventory
   if(!empty($_GET['id']) && ($_GET['action']=='Del')) {
      $id=$_GET['id'];
      $pdodb = PDODB::getInstance();
      $sql = "UPDATE `purchase` SET isActive=0 WHERE pId = '".$id."'";
      //print_r($sql); exit;        
      $result = $pdodb->query($sql);
      $sql2 = "UPDATE `purchase_items` SET isActive=0 WHERE purchaseId = '".$id."'";
      $result2 = $pdodb->query($sql2);

      PDODB::closeInstance();
      if(!empty($result)){
        echo '<script type="text/javascript">location.replace("purchase-list.php");</script>';
      }
    }
    //end delete inventory
?>
<!DOCTYPE html>
<html>
   <head>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>INSPINIA | Basic Form</title>
      <?php include_once '../layout/style.php'; ?>
      <style type="text/css">
        .inpt-width {width: 60px;}
        .itemCode {width: 60px;}
        .hsnCode {width: 60px;}
        .unit {width: 60px;}
        .gstRate {width: 10px;}
        .rateperunit {width: 60%;}
        .qty {width: 60px;}
        .total {width: 60%;}

        .inpt-bgbord { border: none; background: transparent; }
      </style>
   </head>
   <body>
      <div id="wrapper">
         <?php $currentPage = 'Purchase-list'; include_once '../layout/side-bar.php'; ?>
         <div id="page-wrapper" class="gray-bg">
            <?php include_once '../layout/header.php'; ?>
            <div class="row wrapper border-bottom white-bg page-heading">
               <div class="col-lg-10">
                  <h2></h2>
                  <h2>Order List</h2>                  
               </div>
               <div class="col-lg-2">
               </div>
            </div>           
            <div class="row">
               <div class="col-lg-12">
                  <div class="ibox float-e-margins">                     
                    <div class="row">
                        <div class="col-lg-12" style="padding:0px;">
                            <div class="ibox float-e-margins">
                              <div class="ibox-title">
                                <?php if (!empty($statusMsg)) { ?>
                                  <div class="alert alert-success" role="alert">
                                    <button type="button" class="close" data-dismiss="alert">x</button>
                                    <?=$statusMsg;?>
                                  </div>
                                <?php } ?>
                              </div>
                              <div class="ibox-content">
                                <div class="table-responsive">
                                    <table class="table table-striped table-bordered table-hover dataTables-example">
                                      <thead>
                                        <tr>
                                           <th>S.No</th>
                                           <th>Customer Mobile No.</th>
                                           <th>Invoice No</th>
                                           <th>Invoice Date</th>
                                           <th>Amount</th>
                                           <th>Payment Mode</th>
                                           <th>PDF</th>                                           
                                           <th>Action</th>
                                        </tr>
                                      </thead>
                                      <tbody>
                                        <?php 
                                            $i=0;                                            
                                            foreach ($purchaseData as $key => $value){                                              
                                              $purchaseItemData = $function->getPurchaseItems($id=NULL,$purchaseId=$value['pId'],$inventoryId=NULL,$isActive=1,$orderBy=NULL);
                                              $totamt = 0;
                                              foreach ($purchaseItemData as $pKey => $pValue) {
                                                  $totamt += (float)$pValue['total'];
                                              }
                                            $i++;
                                        ?>
                                        <tr>
                                           <td><?=$i;?></td>
                                           <td><?=$value['customer_contactno'];?></td>
                                           <td><?=$value['invoiceId'];?></td>
                                           <td><?=$value['invoiceDate'];?></td>
                                           <td><?=$totamt;?></td>
                                           <td><?=$value['paymentMode'];?></td>
                                           <td><a target="_blank" href="../invoice.php?id=<?=$value['pId'];?>"><i style="font-size: 20px;" class="fa fa-print"></i> </a> </td>
                                           <td class="center">
                                            <a class="btn btn-primary btn-xs" href="purchase-edit.php?id=<?=$value['pId'];?>"><i class="fa fa-pencil"></i> View Detail</a> 
                                            <!-- <a class="btn btn-danger btn-xs" href="purchase-list.php?id=<?=$value['pId'];?>&action=Del" onclick="return confirm('Do you really want to delete!')"><i class="fa fa-trash"></i> Delete</a> -->
                                          </td>
                                        </tr>
                                        <?php } ?>
                                     </tbody>
                                    </table>
                                </div>
                              </div>                              
                            </div>
                        </div>
                    </div>                    
                  </div>
               </div>
            </div>
         </div>         
      </div>
      <?php include_once '../layout/script.php'; ?>

      <!-- Page-Level Scripts -->
      <script>
        $(document).ready(function(){
            $('.dataTables-example').DataTable({
                dom: '<"html5buttons"B>lTfgitp',                
                buttons: [
                    { extend: 'copy'},
                    {extend: 'csv'},
                    /*{extend: 'excel', title: 'ExampleFile'},
                    {extend: 'pdf', title: 'ExampleFile'},*/
                    /*{extend: 'print',
                     customize: function (win){
                        $(win.document.body).addClass('white-bg');
                        $(win.document.body).css('font-size', '10px');
                        $(win.document.body).find('table')
                            .addClass('compact')
                            .css('font-size', 'inherit');
                        }
                    }*/
                ]    
            });
        });
      </script>
   </body>
</html>


PK 99
E-SHOP || DASHBOARD
404

Page Not Found

It looks like you found a glitch in the matrix...

← Back to Home