Şuanki Dizin: /home/wwwdreamtechnolo/public_html/balajimall.com/admin/ |
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/balajimall.com/admin/pending-product-approval-report.php |
<?php require_once("../lib/functions.php"); $db = new login_function(); $flag = 0; $success_msg = 0; $emp_id=""; $designation=""; $emp_name=""; $succ_msg = 0; $to_date=""; $from_date = ""; $category = ""; if(!isset($_SESSION['current_login_admin'])) { header("Location:index.php"); } if(isset($_SESSION['current_login_admin'])) { $email = $_SESSION['current_login_admin']; } if(isset($_GET['delete_id'])) { $del_id = $_GET['delete_id']; $db->delete_pending_approval_product_info($del_id); $success_msg = 2; } if(isset($_GET['approve_id'])) { $approve_id = $_GET['approve_id']; $db->update_product_status_pending_to_approve($approve_id); $success_msg = 1; } if($to_date == "") { $to_date = Date("d-m-Y"); } if($from_date == "") { $from_date = Date("d-m-Y"); } ?> <?php require_once('header.php'); ?> <link rel="stylesheet" href="/css/jquery-ui.css"> <link rel="stylesheet" href="/resources/demos/style.css"> <script src="/js/jquery-1.12.4.js"></script> <script src="/js/jquery-ui.js"></script> <script> $( function() { $( "#datepicker" ).datepicker({ dateFormat: 'dd-mm-yy' }); } ); </script> <script> $( function() { $( "#datepicker1" ).datepicker({ dateFormat: 'dd-mm-yy' }); } ); </script> <script src="src/jquery.table2excel.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#excel_btn").click(function(){ $("#table2excel").table2excel({ exclude: ".noExl", name: "Worksheet Name", filename: "pending Product Report" //do not include extension }); }); }); </script> <div id="page-wrapper"> <div class="row"> <div class="col-lg-12"> <h1 class="page-header"> Pending Dispatch Product Report</h1> </div> </div> <?php if($success_msg==1) { ?> <div class="alert alert-success"> <strong>Success!</strong> Product approved successfully </div> <?php } ?> <div class="row"> <div class="col-lg-12"> <div class="panel panel-default"> <div class="panel-heading"> Product Report </div> <div class="panel-body"> <?php if(isset($_POST['add_btn'])) { $category = $_POST['category']; } ?> <form role="form" method="post" enctype="multipart/form-data"> <!-- <div class="col-lg-3"> <input type="text" class="form-control" id="datepicker" name="from_date" value="<?php echo $from_date; ?>"> </div> <div class="col-lg-3"> <input type="text" class="form-control" id="datepicker1" placeholder="Enter Date to" name="to_date" value="<?php echo $to_date; ?>"> </div>--> </div> <div class="panel-body"> <div class="table-responsive"> <table class="table table-striped table-bordered table-hover" id="table2excel"> <thead> <tr> <th colspan="13"> Product Report</th> </tr> <tr class="noExl"> <th>Sr. No</th> <th>Category</th> <th>Product Name</th> <th>Sub Category</th> <th>Description</th> <th>Actual Price</th> <th>Selling Price </th> <th>Seller Name</th> <th width="30">Seller Contact</th> <th width="30">Action</th> <th width="30">Action</th> </tr> </thead> <tbody> <?php $report_details = $db->get_all_pending_product_info_for_admin(); if(!empty($report_details)) { $counter =0; foreach($report_details as $record) { $id = $report_details[$counter][0]; $category = $report_details[$counter][1]; $product_name = $report_details[$counter][2]; $tags = $report_details[$counter][3]; $description = $report_details[$counter][4]; $actual_price = $report_details[$counter][5]; $selling_price = $report_details[$counter][6]; $seller_email = $report_details[$counter][7]; $seller_data = $db->get_seller_info_from_email($seller_email); $seller_name = $seller_data[0][1]; $seller_contact = $seller_data[0][4]; ?> <tr> <td><?php echo $counter+1; ?></td> <td><?php echo $category; ?></td> <td><?php echo $product_name; ?></td> <td><?php echo $tags; ?></td> <td><?php echo $description; ?></td> <td><?php echo $actual_price; ?></td> <td><?php echo $selling_price; ?></td> <td><?php echo $seller_name; ?></td> <td><?php echo $seller_contact; ?></td> <td><a href="<?php echo $_SERVER['PHP_SELF']; ?>?approve_id=<?php echo $id;?>" >Approve</a></td> <td><a href="<?php echo $_SERVER['PHP_SELF']; ?>?delete_id=<?php echo $id;?>" onclick="return confirm('Are you sure?');">Delete</a></td> </tr> <?php $counter ++; } }else { ?> <td colspan="14">No Data Found...</td> <?php } ?> </tbody> </table> <button id="excel_btn" class="btn btn-success">Export</button> </div> <!-- /.table-responsive --> </div> </div> </div> </div> </div> </div> </body> </html>
Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4