0% found this document useful (0 votes)
26 views

New Text Document

The document contains code for retrieving and displaying product review images from a database table. It also contains JavaScript code to filter a DataTable based on selected values for room and employee filters. The code queries an API route, passing the selected filter values, to retrieve and display the filtered employee assignment data in the DataTable.

Uploaded by

Joseph Diaz
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

New Text Document

The document contains code for retrieving and displaying product review images from a database table. It also contains JavaScript code to filter a DataTable based on selected values for room and employee filters. The code queries an API route, passing the selected filter values, to retrieve and display the filtered employee assignment data in the DataTable.

Uploaded by

Joseph Diaz
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

<!

--// <section class="img-gallery-magnific">-->


<!--// <?php-->
// $sql = "SELECT * FROM images where type_id = '$product_id' AND type
='review' AND deleted ='No'";
// $query = $conn->query($sql);
// $rows = $query->num_rows;
// $i = 0;
// while ($row = $query->fetch_array()) {
// $acvtiveBadge = $i == 0 ? "active" : "";
// echo '<div class="magnific-img">
// <a class="image-popup-vertical-fit"
href="admin/images/reviews/' . $row['name'] . '" title="9.jpg">
// <img src="admin/images/reviews/' .
$row['name'] . '" alt="9.jpg" />
// <i class="fa fa-search-plus" aria-
hidden="true"></i>
// </a>
// </div>';
// $i++;
// }
// ?>
<!--// </section>-->
<!--// <div class="clear"></div>-->
<!--// -->

<!--// </div>-->

<!--// </div>-->

<!--// <?php if ($specification != '') { ?>-->


<!--// <div class="card col-md-12">-->
<!--// <div class="card-body">-->
<!--// <h5 class="card-title">Specification</h5>-->
<!--// <h6 class="card-subtitle mb-2 text-muted">Full
Specification</h6>-->
<!--// <p class="card-text"><?php echo
htmlspecialchars_decode($specification); ?></p>-->

<!--// </div>-->
<!--// </div>-->
<!--// <?php } ?>--

$("#filterByRoom").change(function() {
var filterByEmployee = $('#filterByEmployee');
var filterByRoom = this.value;
alert(filterByEmployee+' '+filterByRoom)
table = $('#manageFloorTable').DataTable({
ajax: {
url: `{{ route('hotelManagement.boyAssign.getAssignedEmployee',
['filterByRoom' => ':filterByRoom','filterByEmployee' => ':filterByEmployee']) }}`
.replace(':filterByRoom', filterByRoom)
.replace(':filterByEmployee', filterByEmployee),
type: "GET",
},
processing: true,
destroy: true,
});
});
$("#filterByEmployee").change(function() {
var filterByRoom = $('#filterByRoom');
var filterByEmployee = this.value;
alert(filterByEmployee+' '+filterByRoom)
table = $('#manageFloorTable').DataTable({
ajax: {
url: `{{ route('hotelManagement.boyAssign.getAssignedEmployee',
['filterByRoom' => ':filterByRoom','filterByEmployee' => ':filterByEmployee']) }}`
.replace(':filterByRoom', filterByRoom)
.replace(':filterByEmployee', filterByEmployee),
type: "GET",
},
processing: true,
destroy: true,
});
});

You might also like