PluginProbe
VikBooking Hotel Booking Engine & PMS / trunk
VikBooking Hotel Booking Engine & PMS vtrunk
1.8.15 1.8.14 1.8.13 1.8.12 1.8.11 1.8.10 1.8.9 1.8.6 1.8.7 1.8.8 trunk 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7.0 1.7.1 1.7.2 1.7.3 All 36 releases
vikbooking / admin / layouts / sidepanel / widgets / crontab.php

crontab.php in VikBooking Hotel Booking Engine & PMS trunk, at admin/layouts/sidepanel/widgets/crontab.php

61 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package VikBooking
4 * @subpackage com_vikbooking
5 * @author Alessio Gaggii - E4J srl
6 * @copyright Copyright (C) 2024 E4J srl. All rights reserved.
7 * @license GNU General Public License version 2 or later; see LICENSE
8 * @link https://e4jconnect.com | https://vikwp.com
9 */
10
11 defined('ABSPATH') or die('No script kiddies please!');
12
13 extract($displayData);
14
15 $modal = json_encode([
16 'title' => 'Background Task Logs',
17 'body' => '<pre>' . $log . '</pre>',
18 'extra_class' => 'vbo-modal-rounded vbo-modal-tall vbo-modal-nofooter',
19 ]);
20
21 ?>
22
23 <div class="vbo-admin-widget-head">
24 <div class="vbo-admin-widget-head-inline">
25 <h4><?php VikBookingIcons::e('server'); ?> <span>Background Tasks</span></h4>
26 <div class="vbo-admin-widget-head-commands">
27 <div class="vbo-reportwidget-commands">
28 <button type="button" class="btn vbo-config-btn" onclick="displayBgTasksLogFile()">See Logs</button>
29 </div>
30 </div>
31 </div>
32 </div>
33
34 <div>
35
36 <?php foreach ($schedules as $schedule): ?>
37
38 <div style="padding: 10px 15px; border-bottom: 1px solid var(--vbo-basic-btn);">
39
40 <div><strong><?php echo $schedule['name']; ?></strong></div>
41
42 <div style="display: flex; justify-content: space-between; align-items: start; margin-top: 10px;">
43 <span class="badge badge-info vbo-tooltip vbo-tooltip-top" data-tooltiptext="Last execution"><?php echo $schedule['last_execution']; ?></span>
44 <span class="badge badge-success vbo-tooltip vbo-tooltip-top" data-tooltiptext="Next execution"><?php echo $schedule['next_execution']; ?></span>
45 </div>
46
47 </div>
48
49 <?php endforeach; ?>
50
51 </div>
52
53 <script>
54 (function(w) {
55 'use strict';
56
57 w.displayBgTasksLogFile = () => {
58 VBOCore.displayModal(<?php echo $modal; ?>);
59 }
60 })(window);
61 </script>