booking/work/files/reports/custom_reports/تقرير المشاهير.php

131 lines
7.8 KiB
PHP
Executable File

<?php
require_once('fixed/config/go_con.php');
// access(50);
?>
<!DOCTYPE html>
<html lang="en" dir="rtl">
<?php require_once('fixed/head/go.php'); ?>
<body class="rtl">
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/@mdi/font@6.5.95/css/materialdesignicons.min.css">
<style>
a.active {
background-color: #e6edef;
}
h1 {
background: #24695c;
padding-right: 10px;
color: white;
margin-left: 10px;
font-weight: bold;
}
</style>
<?php require_once('fixed/loader/go.php'); ?>
<div class="page-wrapper" id="pageWrapper">
<?php require_once('fixed/header/go.php'); ?>
<div class="page-body-wrapper">
<?php require_once('fixed/sidebar/go.php'); ?>
<div class="page-body">
<div class="container-fluid">
<div class="email-wrap bookmark-wrap">
<div class="row">
<div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">
<div class="card">
<div class="tab-content" id="profile-tabContent">
<div class="tab-pane fade show active" id="all">
<div class="card-body new-user order-list text-center">
<div class="row">
<div class="col-12 col-sm-12 col-md-3 col-lg-4 col-xl-4">
</div>
<div
class="page-title mb-3 col-12 col-sm-12 col-md-6 col-lg-4 col-xl-4">
<i class="mdi mdi-monitor mr-2">
</i>
<h4>
ارقام اعلان حملة الباقات
offer
</h4>
</div>
<div class="col-12 col-sm-12 col-md-3 col-lg-4 col-xl-4">
</div>
</div>
</div>
<div class="tab-content">
<div class="tab-pane p-3 active" id="tab<?= $tabs ?>" role="tabpanel">
<div class="card-body new-user order-list">
<div class="table-responsive">
<table class="table table-bordered text-center"
style="vertical-align: middle;">
<thead class="table-primary"
style="vertical-align: middle;">
<tr>
<th scope="col">#</th>
<th scope="col">طريقة الاعلان</th>
<th scope="col">العدد</th>
</tr>
</thead>
<tbody>
<?php
$total = 0;
$get_book_details_sql = mysqli_query(
$db,
"SELECT `social_media`.`name`, COUNT(`tretment_pages_public_has_social_media`.`id`) AS `count`
FROM `tretment_pages_public_has_social_media`
INNER JOIN `social_media` ON `tretment_pages_public_has_social_media`.`social_media_id` = `social_media`.`id`
WHERE `tretment_pages_public_id` = 6
AND `tretment_pages_public_has_social_media`.`date_time` > '2023-10-10 00:00:00'
GROUP BY `social_media_id`
"
);
$count = 1;
while ($get_book_details = mysqli_fetch_assoc($get_book_details_sql)) {
?>
<tr>
<th scope="row">
<?= $count ?>
</th>
<td>
<?= $get_book_details['name'] ?>
</td>
<td>
<?= $get_book_details['count'] ?>
</td>
</tr>
<?php
$count++;
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php require_once('fixed/footer/go.php'); ?>
</div>
</div>
<?php require_once('fixed/js/go.php'); ?>
<?php require_once('fixed/waiting_ajax/go.php'); ?>
<script>
$("#Select-date").change(function () {
var SelectedDate = $(this).val();
window.location = 'r_walla?b=<?= $branch_id ?>&date=' + SelectedDate
});
</script>
</body>
</html>