modify ads

This commit is contained in:
Flatlogic Bot 2026-04-02 12:35:28 +00:00
parent 47f6bb2062
commit 7b06146e61
2 changed files with 12 additions and 12 deletions

View File

@ -143,7 +143,7 @@ qh_page_start(
<div class="col-md-6">
<label class="form-label fw-semibold text-dark"><?= qh_h(qh_t('Video File', 'ملف الفيديو')) ?></label>
<input type="file" name="video" class="form-control" accept="video/mp4,video/webm,video/ogg" required>
<div class="form-text"><?= qh_h(qh_t('Max 5 videos is recommended. Formats: MP4, WebM, OGG.', 'يُنصح بحد أقصى 5 فيديوهات. الصيغ: MP4, WebM, OGG.')) ?></div>
<div class="form-text"><?= qh_h(qh_t('Formats: MP4, WebM, OGG.', 'الصيغ: MP4, WebM, OGG.')) ?></div>
</div>
<div class="col-12 mt-3">
<button type="submit" class="btn btn-primary px-4"><?= qh_h(qh_t('Upload Video', 'رفع الفيديو')) ?></button>

View File

@ -8,7 +8,7 @@ $queueOverview = qh_queue_overview();
$activeVideos = [];
try {
$stmt = db()->query("SELECT video_path FROM hospital_ads WHERE is_active = 1 ORDER BY sort_order ASC, id DESC LIMIT 10");
$stmt = db()->query("SELECT video_path FROM hospital_ads WHERE is_active = 1 ORDER BY sort_order ASC, id DESC ");
if ($stmt) {
$activeVideos = $stmt->fetchAll(PDO::FETCH_COLUMN);
}
@ -78,9 +78,9 @@ qh_page_start(
<div class="card-body p-4 bg-light">
<?php if ($activeCalls): ?>
<div class="row g-3">
<div class="row g-3 row-cols-2 row-cols-lg-5">
<?php foreach ($activeCalls as $ticket): $speech = qh_call_message($ticket); ?>
<div class="col-6 col-lg-3">
<div class="col">
<div class="card border-0 shadow-sm h-100 announcement-card" data-announcement-key="<?= qh_h((string) $ticket['id']) ?>-<?= qh_h((string) strtotime((string) $ticket['called_at'])) ?>" data-announcement-en="<?= qh_h($speech['en']) ?>" data-announcement-ar="<?= qh_h($speech['ar']) ?>">
<div class="card-body text-center p-2">
<div class="fs-2 fw-bold text-primary mb-1"><?= qh_h($ticket['ticket_number']) ?></div>
@ -113,19 +113,19 @@ qh_page_start(
<h5 class="mb-0 font-weight-bold text-dark"><?= qh_h(qh_t('Queue by Clinic', 'الإنتظار حسب العيادة')) ?></h5>
</div>
<div class="card-body p-4 bg-light">
<div class="row g-3">
<div class="row g-3 row-cols-2 row-cols-lg-5">
<?php foreach ($queueOverview as $row): ?>
<div class="col-6 col-lg-3">
<div class="col">
<div class="card border-0 shadow-sm h-100">
<div class="card-body p-3 d-flex flex-column justify-content-center">
<h6 class="fw-bold text-primary text-center mb-3 text-truncate" title="<?= qh_h(qh_name($row)) ?>"><?= qh_h(qh_name($row)) ?></h6>
<div class="card-body p-2 d-flex flex-column justify-content-center">
<h6 class="fw-bold text-primary text-center mb-2 text-truncate" title="<?= qh_h(qh_name($row)) ?>"><?= qh_h(qh_name($row)) ?></h6>
<div class="d-flex justify-content-between align-items-center mb-2">
<span class="small text-muted fw-semibold"><?= qh_h(qh_t('Vitals Wait', 'غرفة المعاينة الأولية')) ?></span>
<span class="badge bg-warning text-dark rounded-pill px-2 fs-6"><?= qh_h((string) $row['vitals_waiting']) ?></span>
<span class="text-muted fw-semibold lh-sm" style="font-size: 0.7rem;"><?= qh_h(qh_t('Vitals Wait', 'غرفة المعاينة الأولية')) ?></span>
<span class="badge bg-warning text-dark rounded-pill px-2"><?= qh_h((string) $row['vitals_waiting']) ?></span>
</div>
<div class="d-flex justify-content-between align-items-center">
<span class="small text-muted fw-semibold"><?= qh_h(qh_t('Doctor Wait', 'انتظار الطبيب')) ?></span>
<span class="badge bg-info text-dark rounded-pill px-2 fs-6"><?= qh_h((string) $row['doctor_waiting']) ?></span>
<span class="text-muted fw-semibold lh-sm" style="font-size: 0.7rem;"><?= qh_h(qh_t('Doctor Wait', 'انتظار الطبيب')) ?></span>
<span class="badge bg-info text-dark rounded-pill px-2"><?= qh_h((string) $row['doctor_waiting']) ?></span>
</div>
</div>
</div>