support service for verification and solution. Thank you.'; exit; } } if (isset($_GET['delmark']) && $_GET['delmark'] != '') { cpabc_bklist_verify_nonce(); for ($i=0; $i<=$records_per_page; $i++) if (isset($_GET['c'.$i]) && $_GET['c'.$i] != '') $wpdb->query( $wpdb->prepare('DELETE FROM `'.CPABC_APPOINTMENTS_CALENDARS_TABLE_NAME.'` WHERE id=%d', $_GET['c'.$i]) ); $message = "Marked items deleted"; } else if (isset($_GET['ld']) && $_GET['ld'] != '') { cpabc_bklist_verify_nonce(); $wpdb->query( $wpdb->prepare('DELETE FROM `'.CPABC_APPOINTMENTS_CALENDARS_TABLE_NAME.'` WHERE id=%d', $_GET['ld']) ); $message = "Item deleted"; } else if (isset($_GET['del']) && $_GET['del'] == 'all') { cpabc_bklist_verify_nonce(); $wpdb->query( $wpdb->prepare( 'DELETE FROM `'.CPABC_APPOINTMENTS_CALENDARS_TABLE_NAME.'` WHERE appointment_calendar_id=%d', CP_CALENDAR_ID ) ); $message = "All items deleted"; } $mycalendarrows = $wpdb->get_results( 'SELECT * FROM '.CPABC_APPOINTMENTS_CONFIG_TABLE_NAME .' WHERE `'.CPABC_TDEAPP_CONFIG_ID.'`='.CP_CALENDAR_ID); if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST['cpabc_appointments_post_options'] ) ) echo "

Settings saved.

"; $current_user = wp_get_current_user(); if (cpabc_appointment_is_administrator() || $mycalendarrows[0]->conwer == $current_user->ID) { $current_page = intval($_GET["p"]); if (!$current_page) $current_page = 1; $cond = ''; if ($_GET["search"] != '') $cond .= " AND (title like '%".esc_sql($_GET["search"])."%' OR description LIKE '%".esc_sql($_GET["search"])."%')"; if ($_GET["dfrom"] != '') $cond .= " AND (datatime >= '".esc_sql($_GET["dfrom"])."')"; if ($_GET["dto"] != '') $cond .= " AND (datatime <= '".esc_sql($_GET["dto"])." 23:59:59')"; $events = $wpdb->get_results( "SELECT * FROM ".CPABC_APPOINTMENTS_CALENDARS_TABLE_NAME." WHERE appointment_calendar_id=".CP_CALENDAR_ID.$cond." ORDER BY datatime DESC" ); $total_pages = ceil(count($events) / $records_per_page); if ($message) echo "

".$message."

"; $nonce_un = wp_create_nonce( 'uname_abc_bklist' ); ?>

Appointment Booking Calendar - Bookings List


This booking list applies only to: uname; ?>

Search for: " />       From: " />       To: " />            

'admin.php?page=cpabc_appointments.php&cal='.CP_CALENDAR_ID.'&list=1%_%&dfrom='.urlencode($_GET["dfrom"]).'&dto='.urlencode($_GET["dto"]).'&search='.urlencode($_GET["search"]), 'format' => '&p=%#%', 'total' => $total_pages, 'current' => $current_page, 'show_all' => False, 'end_size' => 1, 'mid_size' => 2, 'prev_next' => True, 'prev_text' => '« '.__('Previous','appointment-booking-calendar'), 'next_text' => __('Next','appointment-booking-calendar').' »', 'type' => 'plain', 'add_args' => False ) ); ?>
" />
Date Title Description Quantity Options
datatime,0,16); ?> title); ?> ','
',str_replace('<','<',str_replace('
','--br />',$events[$i]->description))); ?>
quantity; ?>

     


The current user logged in doesn't have enough permissions to edit this calendar. This user can edit only his/her own calendars. Please log in as administrator to get access to all calendars.