PluginProbe ʕ •ᴥ•ʔ
LatePoint – Calendar Booking Plugin for Appointments and Events / trunk
LatePoint – Calendar Booking Plugin for Appointments and Events vtrunk
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 3 weeks ago customize_table.php 2 months ago grouped_bookings_quick_view.php 1 year ago index.php 3 weeks ago pending_approval.php 1 year ago quick_availability.php 1 year ago view_booking_log.php 1 year ago
index.php
109 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 /* @var $can_bulk_delete bool */
22
23 if ( ! defined( 'ABSPATH' ) ) {
24 exit; // Exit if accessed directly
25 }
26 ?>
27 <?php if($bookings){ ?>
28 <div class="table-with-pagination-w has-scrollable-table">
29 <div class="os-pagination-w with-actions">
30 <div class="table-heading-w">
31 <h2 class="table-heading"><?php esc_html_e('Appointments', 'latepoint'); ?></h2>
32 <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>
33 </div>
34 <div class="mobile-table-actions-trigger"><i class="latepoint-icon latepoint-icon-more-horizontal"></i></div>
35 <div class="table-actions">
36 <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>
37 <?php if (OsSettingsHelper::can_download_records_as_csv()) { ?>
38 <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>
39 <?php } ?>
40 </div>
41 </div>
42 <?php if ( $can_bulk_delete ) { echo OsBookingHelper::render_bulk_actions_bar(); } ?>
43 <div class="os-bookings-list">
44 <div class="os-scrollable-table-w">
45 <div class="os-table-w os-table-compact">
46 <table class="os-table os-reload-on-booking-update os-scrollable-table" data-route="<?php echo esc_attr(OsRouterHelper::build_route_name('bookings', 'index')); ?>">
47 <?php echo OsFormHelper::hidden_field('filter[records_ordered_by_key]', $records_ordered_by_key, ['class' => 'records-ordered-by-key os-table-filter']); ?>
48 <?php echo OsFormHelper::hidden_field('filter[records_ordered_by_direction]', $records_ordered_by_direction, ['class' => 'records-ordered-by-direction os-table-filter']); ?>
49 <thead>
50 <tr>
51 <?php if ( $can_bulk_delete ) { echo OsBookingHelper::render_bulk_select_header_cell(); } ?>
52 <?php
53 foreach ( $ordered_columns as $col_key => $col_def ) {
54 if ( ! OsSettingsHelper::is_bookings_column_visible( $col_def, $selected_columns, count( $services_list ), count( $agents_list ), count( $locations_list ) ) ) continue;
55 echo OsBookingHelper::render_table_header_cell( $col_key, $col_def, $records_ordered_by_key, $records_ordered_by_direction );
56 }
57 ?>
58 </tr>
59 <tr>
60 <?php if ( $can_bulk_delete ) { echo OsBookingHelper::render_bulk_select_spacer_cell(); } ?>
61 <?php
62 foreach ( $ordered_columns as $col_key => $col_def ) {
63 if ( ! OsSettingsHelper::is_bookings_column_visible( $col_def, $selected_columns, count( $services_list ), count( $agents_list ), count( $locations_list ) ) ) continue;
64 echo OsBookingHelper::render_table_filter_cell( $col_key, $col_def, $services_list, $agents_list, $locations_list );
65 }
66 ?>
67 </tr>
68 </thead>
69 <tbody>
70 <?php include('_table_body.php'); ?>
71 </tbody>
72 <tfoot>
73 <tr>
74 <?php if ( $can_bulk_delete ) { echo OsBookingHelper::render_bulk_select_spacer_cell(); } ?>
75 <?php
76 foreach ( $ordered_columns as $col_key => $col_def ) {
77 if ( ! OsSettingsHelper::is_bookings_column_visible( $col_def, $selected_columns, count( $services_list ), count( $agents_list ), count( $locations_list ) ) ) continue;
78 echo '<th>' . esc_html( $col_def['label'] ) . '</th>';
79 }
80 ?>
81 </tr>
82 </tfoot>
83 </table>
84 </div>
85 </div>
86 </div>
87 <div class="os-pagination-w">
88 <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>
89 <div class="pagination-page-select-w">
90 <label for="tablePaginationPageSelector"><?php esc_html_e('Page:', 'latepoint'); ?></label>
91 <select id="tablePaginationPageSelector" name="page" class="pagination-page-select">
92 <?php
93 for($i = 1; $i <= $total_pages; $i++){
94 $selected = ($current_page_number == $i) ? 'selected' : '';
95 echo '<option '.$selected.'>'.esc_html($i).'</option>';
96 } ?>
97 </select>
98 </div>
99 </div>
100 </div>
101
102 <?php }else{ ?>
103 <div class="no-results-w">
104 <div class="icon-w"><i class="latepoint-icon latepoint-icon-book"></i></div>
105 <h2><?php esc_html_e('No Existing Appointments Found', 'latepoint'); ?></h2>
106 <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>
107 </div>
108 <?php } ?>
109