banner.php
5 years ago
cp-feedback.php
5 years ago
cp_admin_int_edition.inc.php
5 years ago
cpabc_appointments_admin_addbk.inc.php
5 years ago
cpabc_appointments_admin_int.inc.php
5 years ago
cpabc_appointments_admin_int_bookings_list.inc.php
5 years ago
cpabc_appointments_admin_int_calendar_list.inc.php
5 years ago
cpabc_apps_go.inc.php
5 years ago
cpabc_apps_on.inc.php
5 years ago
cpabc_publish_wizzard.inc.php
5 years ago
cpabc_scheduler.inc.php
5 years ago
index.html
5 years ago
cpabc_appointments_admin_addbk.inc.php
45 lines
| 1 | <?php |
| 2 | |
| 3 | if ( !is_admin() && !defined('CPABC_CALENDAR_ON_PUBLIC_WEBSITE')) |
| 4 | { |
| 5 | echo 'Direct access not allowed.'; |
| 6 | exit; |
| 7 | } |
| 8 | |
| 9 | $plugslug = 'cpabc_appointments.php'; |
| 10 | |
| 11 | if (!defined('CP_CALENDAR_ID')) |
| 12 | define ('CP_CALENDAR_ID',1); |
| 13 | |
| 14 | global $wpdb; |
| 15 | |
| 16 | $message = ''; |
| 17 | |
| 18 | if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST['cpabc_appointments_post'] ) ) |
| 19 | $message = 'Booking added. It appears now in the <a href="?page='.$plugslug.'&cal='.CP_CALENDAR_ID.'&list=1">bookings list</a>.'; |
| 20 | |
| 21 | if ($message) echo "<div id='setting-error-settings_updated' class='updated settings-error'><p><strong>".$message."</strong></p></div>"; |
| 22 | |
| 23 | |
| 24 | ?> |
| 25 | <style> |
| 26 | .clear{clear:both;} |
| 27 | .ahb-first-button{margin-right:10px !important;} |
| 28 | .ahb-buttons-container{margin:1em 1em 1em 0;} |
| 29 | .ahb-return-link{float:right;} |
| 30 | </style> |
| 31 | <div class="wrap"> |
| 32 | |
| 33 | <h1>Add Booking</h1> |
| 34 | |
| 35 | <div class="ahb-buttons-container"> |
| 36 | <a href="<?php print esc_attr(admin_url('admin.php?page='.$plugslug));?>" class="ahb-return-link">←Return to the calendars list</a> |
| 37 | <div class="clear"></div> |
| 38 | </div> |
| 39 | |
| 40 | <p>This page is for adding bookings from the administration area. The captcha and payment process are disabled in order to allow the website manager easily adding bookings.</p> |
| 41 | |
| 42 | <?php echo cpabc_appointments_filter_content(array('calendar' => CP_CALENDAR_ID)); ?> |
| 43 | |
| 44 | </div> |
| 45 |