GIF89a
<?php include("session.php"); ini_set('error_reporting', E_STRICT); //mysqli_set_charset($conn,'utf8'); include("connect.php"); include("libs.php"); include("multiImageCron.php"); include("subCals/getLatestOrders.php"); $sql31="INSERT INTO `admin_recent_visit_pages`(`user_id`, `user_type`, `click_section`, `click_date`, `click_time`) VALUES ('".$_COOKIE["user_idd"]."','".$_COOKIE["user_type"]."','Add Remove Products','".date('Y-m-d')."','".date('H:i:s A')."')"; $rs31=mysqli_query($conn,$sql31); ?> <!DOCTYPE html> <html> <!-- Added by HTTrack --> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <!-- /Added by HTTrack --> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Admin | Dashboard</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css"> <link rel="stylesheet" href="../../../code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css"> <link rel="stylesheet" href="plugins/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css"> <link rel="stylesheet" href="plugins/icheck-bootstrap/icheck-bootstrap.min.css"> <link rel="stylesheet" href="plugins/jqvmap/jqvmap.min.css"> <link rel="stylesheet" href="dist/css/adminlte.min.css"> <link rel="stylesheet" href="plugins/overlayScrollbars/css/OverlayScrollbars.min.css"> <link rel="stylesheet" href="plugins/daterangepicker/daterangepicker.css"> <link rel="stylesheet" href="plugins/summernote/summernote-bs4.css"> <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet"> <script type="text/javascript" src="js/validateForm5.js"></script> <script type="text/javascript" src="js/placeSubcat.js"></script> <script type="text/javascript" src="js/searchMe2.js"></script> <script type="text/javascript" src="js/ValidateForm6.js"></script> <script type="text/javascript" src="js/saveAlert.js"></script> <script type="text/javascript" src="js/changeQty.js"></script> <script type="text/javascript" src="js/openPage.js"></script> <script type="text/javascript" src="js/checkProdCode.js"></script> <script type="text/javascript" src="js/loadLay.js"></script> <script type="text/javascript" src="js/delLayout.js"></script> <script type="text/javascript" src="js/checkBox.js"></script> <script type="text/javascript" src="js/delSelData.js"></script> <link href="https://www.jqueryscript.net/css/jquerysctipttop.css" rel="stylesheet" type="text/css"> <script src="http://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script> <link rel="stylesheet" href="http://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> --><script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script src="ckeditor/ckeditor.js"></script> <script src="ckeditor/sample/js/sample.js"></script> <link rel="stylesheet" href="ckeditor/sample/css/samples.css"> <link rel="stylesheet" href="ckeditor/toolbarconfigurator/lib/codemirror/neo.css"> </head> <style> .getboi { width: 49%; padding: 0px 5px; margin-top: -7px; line-height: 21px; font-size: 24px; font-weight: 900; } .pro_gation { margin-right: auto; margin-left: auto; margin-bottom: auto; margin-top: 20px; } </style> <body class="hold-transition sidebar-mini layout-fixed"> <div class="wrapper"> <nav class="main-header navbar navbar-expand navbar-white navbar-light"> <!-- Left navbar links --> <ul class="navbar-nav"> <li class="nav-item"> <a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a> </li> <li class="nav-item d-none d-sm-inline-block"> <a href="index3.html" class="nav-link">Home</a> </li> <li class="nav-item d-none d-sm-inline-block"> <a href="#" class="nav-link">Contact</a> </li> </ul> <!-- SEARCH FORM --> <form class="form-inline ml-3"> <div class="input-group input-group-sm"> <input class="form-control form-control-navbar" type="search" placeholder="Search" aria-label="Search"> <div class="input-group-append"> <button class="btn btn-navbar" type="submit"> <i class="fas fa-search"></i> </button> </div> </div> </form> <!-- Right navbar links --> <?php include("notification.php"); ?> </nav> <!-- /.navbar --> <!-- Main Sidebar Container --> <?php include("sidemenu.php"); ?> <script type="text/javascript"> var chkArr=[]; </script> <section class="content scroll-class" style="width: 100%;float: right;"> <!-- Default box --> <div class="card"> <div class="col-md-12"> <form class="form-inline ml-3" style="float: right;"> <div class="input-group input-group-sm" style="background: #fff;border: 1px solid #999;"> <div class="input-group-append"> <button class="btn btn-navbar" type="button" onclick="delSelData('addremoveproduct.php','products','sr')"> Delete </button> </div> </div> </form> <?php $user_type=$_COOKIE["user_typee"]; if($user_type=='1' || $user_type=='2'){ ?> <form class="form-inline ml-3" style="float: right;"> <div class="input-group input-group-sm" style="background: #fff;border: 1px solid #999;margin-top: 5px;"> <input class="form-control form-control-navbar" id="searchValue" name="searchValue" type="text" placeholder="Enter sub category" aria-label="Search" style="border: none;"> <div class="input-group-append"> <button class="btn btn-navbar" type="button" onclick="searchMe2('addremoveproduct.php','1')"> <i class="fas fa-search"></i> </button> </div> </div> </form> <form class="form-inline ml-3" style="float: right;"> <div class="input-group input-group-sm" style="background: #fff;border: 1px solid #999;margin-top: 5px;"> <input class="form-control form-control-navbar" id="searchValue2" name="searchValue2" type="text" placeholder="Product Code" aria-label="Search" style="border: none;"> <div class="input-group-append"> <button class="btn btn-navbar" type="button" onclick="searchMe2('addremoveproduct.php','2')"> <i class="fas fa-search"></i> </button> </div> </div> </form> <?php } ?> </div> <div class="card-header" style="background-color: #343a40;padding: 5px;color: #fff;margin-top: 5px;"> <h3 class="card-title">Product Table</h3> </div> <div class="card-body p-0"> <table class="table table-bordered projects text-center"> <thead> <tr> <th> </th> <th> Sno. </th> <th> Category </th> <th> Sub Category </th> <th> Product Name </th> <th> Product Price </th> <th> Sale Price </th> <th> Quantity </th> <th> Product Code </th> <th> Manufacturer </th> <th> Color </th> <th> Size </th> <th> Edit|Remove|Deal|Priority|Varients|Alert </th> </tr> </thead> <?php if($_GET['rec']=="") { $limit=10; } else{ $limit=$_GET['rec']; } //page if($_GET['page']=="") { $page=0; }else { $page=($limit*($_GET['page']-1)); } $user_type=$_COOKIE["user_typee"]; if($user_type=='1' || $user_type=='2') { if($_GET['search']=="") { $sql3="SELECT * FROM `products` LIMIT ".$limit." OFFSET ".$page.""; } else if($_GET['search']==1) { $sql3="SELECT * FROM `products` WHERE `subcat_name`='".$_GET['data1']."'"; } else if($_GET['search']==2) { $sql3="SELECT * FROM `products` WHERE `p_code`='".$_GET['data1']."'"; } } else { if($_GET['search']=="") { $sql3="SELECT * FROM `products` WHERE `user_id`='".$_COOKIE["user_idd"]."' ".$limit." OFFSET ".$page.""; } else if($_GET['search']==1) { $sql3="SELECT * FROM `products` WHERE `user_id`='".$_COOKIE["user_idd"]."' && `subcat_name`='".$_GET['data1']."'"; } else if($_GET['search']==2) { $sql3="SELECT * FROM `products` WHERE `user_id`='".$_COOKIE["user_idd"]."' && `p_code`='".$_GET['data1']."'"; } } echo $sql3; $rs3=mysqli_query($conn,$sql3); while($row3=mysqli_fetch_array($rs3)){ // check product alert $sql4="SELECT * FROM `prod_alert` WHERE `prod_id`='".$row3['sr']."'"; $rs4=mysqli_query($conn,$sql4); $check4=mysqli_num_rows($rs4); ?> <tbody> <tr> <td> <input onclick="checkBox('<?php echo "chk".$row3['sr']; ?>','<?php echo $row3['sr']; ?>')" type="checkbox" id="chk<?php echo $row3['sr']; ?>" name="chk<?php echo $row3['sr']; ?>" value="<?php echo $row3['sr']; ?>"> </td> <td> <?php echo $row3['sr']; ?> </td> <td> <a> <?php echo $row3['cat_name']; ?> </a> </td> <td> <a> <?php echo $row3['subcat_name']; ?> </a> </td> <td class="project_progress" ondblclick="changeQty('Enter product name : ','<?php echo $row3['p_name']; ?>','<?php echo $row3['sr']; ?>','p_name','products','addremoveproduct.php')"> <a> <?php echo $row3['p_name']; ?> </a> </td> <td class="project-state" ondblclick="changeQty('Enter real price : ','<?php echo $row3['real_price']; ?>','<?php echo $row3['sr']; ?>','real_price','products','addremoveproduct.php')"> <a> <?php echo $row3['real_price']; ?> </a> </td> <td class="project-actions" ondblclick="changeQty('Enter sale price : ','<?php echo $row3['sale_price']; ?>','<?php echo $row3['sr']; ?>','sale_price','products','addremoveproduct.php')"> <a> <?php echo $row3['sale_price']; ?> </a> </td> <td class="project-actions" ondblclick="changeQty('Enter product quantity: ','<?php echo $row3['qty']; ?>','<?php echo $row3['sr']; ?>','qty','products','addremoveproduct.php')"> <a> <?php echo $row3['qty']; ?> </a> </td> <td class="project-actions "> <a> <?php echo $row3['p_code']; ?> </a> </td> <td class="project-actions "> <a> <?php echo $row3['manufacturer']; ?> </a> </td> <td class="project-actions "> <a> <?php echo $row3['p_color']; ?> </a> </td> <td class="project-actions" ondblclick="changeQty('Enter product size : ','<?php echo $row3['p_size']; ?>','<?php echo $row3['sr']; ?>','p_size','products','addremoveproduct.php')"> <a> <?php echo $row3['p_size']; ?> </a> </td> <td class="project-actions "> <a href="addremoveproduct.php?id=<?php echo $row3['sr']; ?>"> <img src="icons/edit.png" style="width:25px; height:25px" /> </a> <a href="delProduct.php?id=<?php echo $row3['sr']; ?>"> <img src="icons/delete.png" style="width:25px; height:25px" /> </a> <a href="hot_deals.php?prod_id=<?php echo $row3['sr']; ?>"><img src="icons/hot_deal.png" style="width:25px; height:25px" title="Hot Deal" /></a> <a href="priority.php?prod_id=<?php echo $row3['sr']; ?>"><img src="icons/priority.png" style="width:25px; height:25px" title="Set Priority" /></a> <a href="addremoveproduct.php?pvc=<?php echo $row3['p_code']; ?>&id2=<?php echo $row3['sr']; ?>"> <img src="icons/color.png" style="width:25px; height:25px" /> </a> <?php if($check4>0){ ?> <img src="icons/warning2.png" style="width:25px; height:25px" title="Set Product In Alert" onclick="saveAlert('<?php echo $row3['sr']; ?>','1')" /> <?php } else { ?> <img src="icons/warning.png" style="width:25px; height:25px" title="Set Product In Alert" onclick="saveAlert('<?php echo $row3['sr']; ?>','0')" /> <?php } ?> </td> </tr> </tbody> <?php } ?> </table> </div> <br> <?php /*$total=totalProd($conn); $totalPages=round($total/10); */ $total=10000; $totalPages=1100; // minimum pages if($_GET['page']==1){ $minP=1; } else { $minP=$_GET['page']-1; } // max points if($_GET['page']==$totalPages) { $maxP=$totalPages; } else if($_GET['page']=="") { $maxP=1; } else { $maxP=$_GET['page']+1; } ?> <nav aria-label="Page navigation pro_gation"> <ul class="pagination"> <?php if($total>0){ ?> <li class="page-item"><a class="page-link" href="addremoveproduct.php?page=1&rec=<?php echo $_GET['rec']; ?>">Previous</a></li> <?php } ?> <?php if($_GET['page']==""){ ?> <li class="page-item"><a class="page-link" href="addremoveproduct.php?page=1&rec=<?php echo $_GET['rec']; ?>">1</a></li> <li class="page-item"><a class="page-link" href="addremoveproduct.php?page=2&rec=<?php echo $_GET['rec']; ?>">2</a></li> <li class="page-item"><a class="page-link" href="addremoveproduct.php?page=3&rec=<?php echo $_GET['rec']; ?>">3</a></li> <?php } else if($_GET['page']==$totalPages){ $p2=$totalPages-1; $p1=$totalPages-2; ?> <li class="page-item"><a class="page-link" href="addremoveproduct.php?page=<?php echo $p2; ?>&rec=<?php echo $_GET['rec']; ?>"><?php echo $p2; ?></a></li> <li class="page-item"><a class="page-link" href="addremoveproduct.php?page=<?php echo $p1; ?>&rec=<?php echo $_GET['rec']; ?>"><?php echo $p1; ?></a></li> <li class="page-item"><a class="page-link" href="addremoveproduct.php?page=<?php echo $totalPages; ?>&rec=<?php echo $_GET['rec']; ?>"><?php echo $totalPages; ?></a></li> <?php } else { $p1=$_GET['page']-1; $p2=$_GET['page']+1; if($p1>0){ ?> <li class="page-item"><a class="page-link" href="addremoveproduct.php?page=<?php echo $p1; ?>&rec=<?php echo $_GET['rec']; ?>"><?php echo $p1; ?></a></li> <?php } ?> <li class="page-item"><a class="page-link" href="addremoveproduct.php?page=<?php echo $_GET['page']; ?>&rec=<?php echo $_GET['rec']; ?>"><?php echo $_GET['page']; ?></a></li> <li class="page-item"><a class="page-link" href="addremoveproduct.php?page=<?php echo $p2; ?>&rec=<?php echo $_GET['rec']; ?>"><?php echo $p2; ?></a></li> <?php } ?> <?php if($_GET['page']<$totalPages){ if($_GET['page']=="") { $p1=2; } else { $p1=$_GET['page']+1; } ?> <li class="page-item"><a class="page-link" href="addremoveproduct.php?page=<?php echo $p1; ?>&rec=<?php echo $_GET['rec']; ?>">Next</a></li> <?php } ?> </ul> </nav> <!-- /.card-body --> </div> <!-- /.card --> </section> <footer class="main-footer"> <strong>Copyrights © design & developed. by<a href="https://www.techeor.in/">Techeor Technology</a>.</strong> <div class="float-right d-none d-sm-inline-block"> </div> </footer> <aside class="control-sidebar control-sidebar-dark"> </aside> </div> <script src="plugins/jquery/jquery.min.js"></script> <script src="plugins/jquery-ui/jquery-ui.min.js"></script> <script> $.widget.bridge('uibutton', $.ui.button) </script> <script src="plugins/bootstrap/js/bootstrap.bundle.min.js"></script> <script src="plugins/chart.js/Chart.min.js"></script> <script src="plugins/sparklines/sparkline.js"></script> <script src="plugins/jqvmap/jquery.vmap.min.js"></script> <script src="plugins/jqvmap/maps/jquery.vmap.usa.js"></script> <script src="plugins/jquery-knob/jquery.knob.min.js"></script> <script src="plugins/moment/moment.min.js"></script> <script src="plugins/daterangepicker/daterangepicker.js"></script> <script src="plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js"></script> <script src="plugins/summernote/summernote-bs4.min.js"></script> <script src="plugins/overlayScrollbars/js/jquery.overlayScrollbars.min.js"></script> <script src="dist/js/adminlte.js"></script> <script src="dist/js/pages/dashboard.js"></script> <script src="dist/js/demo.js"></script> </body> </html>