PluginProbe ʕ •ᴥ•ʔ
Appointment Booking Plugin – LatePoint | Calendar & Scheduling for WordPress / 5.6.1
Appointment Booking Plugin – LatePoint | Calendar & Scheduling for WordPress v5.6.1
5.6.10 5.6.9 5.6.8 5.6.7 5.6.6 5.6.5 5.6.4 5.6.3 5.6.2 5.6.1 5.6.0 5.5.2 5.5.1 5.5.0 5.4.2 trunk 5.1.0 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5 5.1.6 5.1.7 5.1.8 5.1.9 5.1.91 5.1.92 5.1.93 5.1.94 5.2.0 5.2.1 5.2.10 5.2.11 5.2.2 5.2.3 5.2.4 5.2.5 5.2.6 5.2.7 5.2.8 5.2.9 5.3.0 5.3.1 5.3.2 5.4.0 5.4.1
latepoint / lib / views / bookings / index.php
latepoint / lib / views / bookings Last commit date
_booking_data.php 1 year ago _full_summary.php 1 year ago _table_body.php 2 months ago customize_table.php 3 months ago grouped_bookings_quick_view.php 1 year ago index.php 2 months ago pending_approval.php 1 year ago quick_availability.php 1 year ago view_booking_log.php 1 year ago
index.php
111 lines
1 <?php
2 /*
3 * Copyright (c) 2022 LatePoint LLC. All rights reserved.
4 */
5 ?>
6 <?php
7 /* @var $bookings OsBookingModel[] */
8 /* @var $showing_from int */
9 /* @var $showing_to int */
10 /* @var $total_records int */
11 /* @var $per_page int */
12 /* @var $total_pages int */
13 /* @var $current_page_number int */
14 /* @var $records_ordered_by_key string */
15 /* @var $records_ordered_by_direction string */
16 /* @var $agents_list array */
17 /* @var $services_list array */
18 /* @var $locations_list array */
19 /* @var $selected_columns array */
20 /* @var $ordered_columns array */
21
22 if ( ! defined( 'ABSPATH' ) ) {
23 exit; // Exit if accessed directly
24 }
25 ?>
26 <?php
27 $can_bulk_delete = OsRolesHelper::can_user_perform_model_action( 'OsBookingModel', 'delete' );
28 ?>
29 <?php if($bookings){ ?>
30 <div class="table-with-pagination-w has-scrollable-table">
31 <div class="os-pagination-w with-actions">
32 <div class="table-heading-w">
33 <h2 class="table-heading"><?php esc_html_e('Appointments', 'latepoint'); ?></h2>
34 <div class="pagination-info"><?php echo esc_html__('Showing', 'latepoint'). ' <span class="os-pagination-from">'. esc_html($showing_from) . '</span>-<span class="os-pagination-to">'. esc_html($showing_to) .'</span> '.esc_html__('of', 'latepoint').' <span class="os-pagination-total">'. esc_html($total_records). '</span>'; ?></div>
35 </div>
36 <div class="mobile-table-actions-trigger"><i class="latepoint-icon latepoint-icon-more-horizontal"></i></div>
37 <div class="table-actions">
38 <a data-os-lightbox-classes="width-700" data-os-after-call="latepoint_init_column_reordering" data-os-action="<?php echo esc_attr(OsRouterHelper::build_route_name('bookings', 'customize_table')); ?>" href="#" data-os-output-target="lightbox" class="latepoint-btn latepoint-btn-grey latepoint-btn-outline download-csv-with-filters"><i class="latepoint-icon latepoint-icon-sliders"></i><span><?php esc_html_e('Table Settings', 'latepoint'); ?></span></a>
39 <?php if (OsSettingsHelper::can_download_records_as_csv()) { ?>
40 <a href="<?php echo esc_url(OsRouterHelper::build_admin_post_link(['bookings', 'index'])); ?>" target="_blank" class="latepoint-btn latepoint-btn-grey latepoint-btn-outline download-csv-with-filters"><i class="latepoint-icon latepoint-icon-download"></i><span><?php esc_html_e('Download .csv', 'latepoint'); ?></span></a>
41 <?php } ?>
42 </div>
43 </div>
44 <?php if ( $can_bulk_delete ) { echo OsBookingHelper::render_bulk_actions_bar(); } ?>
45 <div class="os-bookings-list">
46 <div class="os-scrollable-table-w">
47 <div class="os-table-w os-table-compact">
48 <table class="os-table os-reload-on-booking-update os-scrollable-table" data-route="<?php echo esc_attr(OsRouterHelper::build_route_name('bookings', 'index')); ?>">
49 <?php echo OsFormHelper::hidden_field('filter[records_ordered_by_key]', $records_ordered_by_key, ['class' => 'records-ordered-by-key os-table-filter']); ?>
50 <?php echo OsFormHelper::hidden_field('filter[records_ordered_by_direction]', $records_ordered_by_direction, ['class' => 'records-ordered-by-direction os-table-filter']); ?>
51 <thead>
52 <tr>
53 <?php if ( $can_bulk_delete ) { echo OsBookingHelper::render_bulk_select_header_cell(); } ?>
54 <?php
55 foreach ( $ordered_columns as $col_key => $col_def ) {
56 if ( ! OsSettingsHelper::is_bookings_column_visible( $col_def, $selected_columns, count( $services_list ), count( $agents_list ), count( $locations_list ) ) ) continue;
57 echo OsBookingHelper::render_table_header_cell( $col_key, $col_def, $records_ordered_by_key, $records_ordered_by_direction );
58 }
59 ?>
60 </tr>
61 <tr>
62 <?php if ( $can_bulk_delete ) { echo OsBookingHelper::render_bulk_select_spacer_cell(); } ?>
63 <?php
64 foreach ( $ordered_columns as $col_key => $col_def ) {
65 if ( ! OsSettingsHelper::is_bookings_column_visible( $col_def, $selected_columns, count( $services_list ), count( $agents_list ), count( $locations_list ) ) ) continue;
66 echo OsBookingHelper::render_table_filter_cell( $col_key, $col_def, $services_list, $agents_list, $locations_list );
67 }
68 ?>
69 </tr>
70 </thead>
71 <tbody>
72 <?php include('_table_body.php'); ?>
73 </tbody>
74 <tfoot>
75 <tr>
76 <?php if ( $can_bulk_delete ) { echo OsBookingHelper::render_bulk_select_spacer_cell(); } ?>
77 <?php
78 foreach ( $ordered_columns as $col_key => $col_def ) {
79 if ( ! OsSettingsHelper::is_bookings_column_visible( $col_def, $selected_columns, count( $services_list ), count( $agents_list ), count( $locations_list ) ) ) continue;
80 echo '<th>' . esc_html( $col_def['label'] ) . '</th>';
81 }
82 ?>
83 </tr>
84 </tfoot>
85 </table>
86 </div>
87 </div>
88 </div>
89 <div class="os-pagination-w">
90 <div class="pagination-info"><?php echo esc_html('Showing', 'latepoint'). ' <span class="os-pagination-from">'. esc_html($showing_from) . '</span>-<span class="os-pagination-to">'. esc_html($showing_to) .'</span> '.esc_html__('of', 'latepoint').' <span class="os-pagination-total">'. esc_html($total_records). '</span>'; ?></div>
91 <div class="pagination-page-select-w">
92 <label for="tablePaginationPageSelector"><?php esc_html_e('Page:', 'latepoint'); ?></label>
93 <select id="tablePaginationPageSelector" name="page" class="pagination-page-select">
94 <?php
95 for($i = 1; $i <= $total_pages; $i++){
96 $selected = ($current_page_number == $i) ? 'selected' : '';
97 echo '<option '.$selected.'>'.esc_html($i).'</option>';
98 } ?>
99 </select>
100 </div>
101 </div>
102 </div>
103
104 <?php }else{ ?>
105 <div class="no-results-w">
106 <div class="icon-w"><i class="latepoint-icon latepoint-icon-book"></i></div>
107 <h2><?php esc_html_e('No Existing Appointments Found', 'latepoint'); ?></h2>
108 <a href="#" <?php echo OsOrdersHelper::quick_order_btn_html(); ?> class="latepoint-btn"><i class="latepoint-icon latepoint-icon-plus"></i><span><?php esc_html_e('Add First Appointment', 'latepoint'); ?></span></a>
109 </div>
110 <?php } ?>
111