JezK
Edit File: ratings.php
<?php include("app/checkSession.php"); include("header.php"); include_once("app/adminObj.php"); if(!isset($_SESSION['customer_user_id'])){ //$customerObj->redirect('login.php'); // commented on 27th dec sriram } $ratingusers_list= $customerObj->getRatingList($_SESSION['customer_user_id']); // echo $ratingusers_list[0]['warehouse_rating'];exit; // print_r($ratingusers_list); // exit; // foreach($ratingusers_list as $rating_list){ // $rating='<tr> // <td>'warehousename'</td> // <td>'.$rating_list['warehouse_id'].'</td> // <td>'.$rating_list['warehouse_request_type'].'</td> // <td></td> // <td></td> // </tr>' // } ?> <!-- <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous"> --> <style> .star-rating { /* border:solid 1px #ccc; */ display:flex; flex-direction: row-reverse; /* font-size:30px; */ justify-content:space-around; /* padding:0 .2em; */ text-align:center; /* width:5em; */ } .star-rating input { display:none; } .star-rating label.star { font-size: 21px; } button.btn.ratingButton{ padding: 10px !important; } .btn{ font-size: 12px !important; } .star-rating label { color:#ccc; cursor:pointer; } .star-rating input:checked ~ label { color:#f90; } .rated-button{ background-color: white !important; color: white !important; } table.dataTable tbody th, table.dataTable tbody td { padding: 15px 13px !important; } /* .star-rating label:hover, .star-rating label:hover ~ label { color:#fc0; } */ </style> <div class="container px-md-5 px-0"> </div> <div class="container first-position"> <div class="container mt-3 position-2"> <div class="row px-md-4 px-0 "> <div class="tophead col-md-4"> <h6> <?php echo $lang['RATINGS'];?></h6> </div> <div class="col-md-4"> </div> </div> </div> <div class="container "> <div class=" p-4 myquotation-table table-responsive"> <table id="example" class="display bg-white tbl-border table-borderless table tbl-width ratingTable" style="width:100%"> <thead> <tr> <th style="width:123px !important ;"> <?php echo $lang['WAREHOUSE_NAME'];?></th> <th style="width:112px !important ;"> <?php echo $lang['QUOTATION_ID'];?></th> <th style="width:152px !important ;"> <?php echo $lang['REQUEST_TYPE'];?></th> <th style="width:112px !important;"><?php echo $lang['RATINGS'];?></th> </tr> </thead> <tbody> <tr> <form method="post" action="app/rating_app.php"> </form> </tr> </tbody> </table> </div> </div> <div class="container position-relative"> <div class="row export_csv"> <div class="col-md-3 offset-md-9 pl-5 pr-0 rating-button-alignment"> <a href="export_rating.php" id="export" class="btn btn-primary"><i class="fa fa-download"></i><span class="pl-2"><?php echo $lang['EXPORT_XLSX'];?></span></a> </div> </div> </div> </div> <!-- footer --> <?php include("footer.php"); ?> <!-- <script src="js/jquery.min.js"></script> --> <!-- <script src="js/jquery.pagination.min.js"></script> --> <!----> <script> let $ =jQuery; $(document).ready(function() { $('#example').DataTable( { "processing": true, "dataSrc": "", "dom": 'Bfrtip', "dom": 'Rlfrtlip', language: { search: '', searchPlaceholder: "<?php echo $lang['SEARCH'];?>", paginate: {previous: '<?php echo $lang['PREV'];?>',next:'<?php echo $lang['NEXT'];?>'}}, "pagingType": "full_numbers", "bProcessing": true, "bServerSide": true, "sAjaxSource": "app/rating_ajax.php", // "ordering": false, "fnDrawCallback": function( oSettings ) { rowCount=oSettings.json.iTotalRecords; if(rowCount<1){ $("#export").addClass("d-none") } }, "aoColumns": [{ mData: 'warehouse_name' } , { mData: 'quotation_id' } , { mData: 'request_status' }, { mData: 'rating' } ] } ); } ); // function ratingValidation(){ // alert("hello") // var value=document.getElementsByClassName('rating') // console.log(value) // alert(value);return false; // } </script>