banner.php
1 year ago
cp-feedback.php
1 year ago
cp_admin_int_edition.inc.php
1 year ago
cpabc_appointments_admin_addbk.inc.php
1 year ago
cpabc_appointments_admin_int.inc.php
1 year ago
cpabc_appointments_admin_int_bookings_list.inc.php
1 year ago
cpabc_appointments_admin_int_calendar_list.inc.php
1 year ago
cpabc_appointments_admin_int_edit_booking.inc.php
1 year ago
cpabc_apps_go.inc.php
1 year ago
cpabc_apps_on.inc.php
1 year ago
cpabc_publish_wizzard.inc.php
1 year ago
cpabc_scheduler.inc.php
1 year ago
index.html
1 year ago
cpabc_scheduler.inc.php
133 lines
| 1 | <?php if ( !defined('CPABC_AUTH_INCLUDE') ) { echo 'Direct access not allowed.'; exit; } ?> |
| 2 | <?php |
| 3 | $nonce_un = wp_create_nonce( 'cpabc_bkcontrol' ); |
| 4 | $custom_styles = sanitize_textarea_field(base64_decode(get_option('CP_ABC_CSS', ''))); |
| 5 | if ($custom_styles != '') |
| 6 | echo '<style type="text/css">'.$custom_styles.'</style>'; |
| 7 | |
| 8 | if (!is_admin()) { |
| 9 | $full_url = get_permalink(); |
| 10 | |
| 11 | // Parse the URL to get the path |
| 12 | $path = parse_url($full_url, PHP_URL_PATH); |
| 13 | if ($path == "") $path = $full_url; |
| 14 | |
| 15 | // Add a random GET parameter to the path to prevent cache |
| 16 | $cache_buster = rand(100000, 999999); |
| 17 | $path .= (strpos($path, '?') === false ? '?' : '&') . 'abcnocache=' . $cache_buster; |
| 18 | } |
| 19 | else $path = ""; |
| 20 | |
| 21 | |
| 22 | ?> |
| 23 | <form class="cpp_form" id="cp_abcform_pform" name="FormEdit" action="<?php echo esc_attr($path); ?>" method="post" onsubmit="return doValidate(this);"> |
| 24 | <input name="_wpnonce" type="hidden" value="<?php echo esc_attr($nonce_un); ?>" /> |
| 25 | <input name="cpabc_appointments_post" type="hidden" value="1" /><input name="cpabc_appointments_utime" type="hidden" value="" /> |
| 26 | <?php |
| 27 | echo $quant_buffer; |
| 28 | ?> |
| 29 | <div <?php if (count($myrows) < 2) echo 'style="display:none"'; ?>> |
| 30 | <?php _e("Calendar",'appointment-booking-calendar').":"; ?><br /> |
| 31 | <select name="cpabc_item" id="cpabc_item" onchange="cpabc_updateItem()"><?php echo $calendar_items; ?></select><br /><br /> |
| 32 | </div> |
| 33 | <?php |
| 34 | echo "<div class=\"abc_selectdate fields\">".__("Select date and time",'appointment-booking-calendar').":</div>"; |
| 35 | if (isset($_GET["fl_builder"]) ) echo '<div style="border:1px dotted black;background-color:#ffffbb;padding:7px;">NOTE: <strong>The Appointment Calendar will be rendered here</strong>. Calendar is disabled while this visual editor is in use. Will appear again after closing edition.</div>'; |
| 36 | foreach ($myrows as $item) |
| 37 | { |
| 38 | $atlang = cpabc_auto_language($item->calendar_language); |
| 39 | echo '<div id="calarea_'.intval($item->id).'" style="display:none'.(is_rtl()?';float:right;':'').'"><input name="selDaycal'.intval($item->id).'" type="hidden" id="selDaycal'.intval($item->id).'" /><input name="selMonthcal'.intval($item->id).'" type="hidden" id="selMonthcal'.intval($item->id).'" /><input name="selYearcal'.intval($item->id).'" type="hidden" id="selYearcal'.intval($item->id).'" /><input name="selHourcal'.intval($item->id).'" type="hidden" id="selHourcal'.intval($item->id).'" /><input name="selMinutecal'.intval($item->id).'" type="hidden" id="selMinutecal'.intval($item->id).'" /><div class="appContainer"><div style="z-index:1000;" class="appContainer2"><div id="cal'.intval($item->id).'Container"></div></div></div> <div style="clear:both;"></div><div id="listcal'.intval($item->id).'" class="listcal"></div></div>'; |
| 40 | } |
| 41 | ?> |
| 42 | <?php if (is_admin() && !defined('ABC_ELEMENTOR_EDIT_MODE') && cpabc_get_get_param("action") != 'edit') { ?> |
| 43 | <fieldset style="border: 1px solid black; -webkit-border-radius: 8px; -moz-border-radius: 8px; border-radius: 8px; padding:15px;"> |
| 44 | <legend>Administrator options</legend> |
| 45 | <input type="checkbox" name="sendemails_admin" value="1" vt="1" checked /> Send notification emails for this booking<br /><br /> |
| 46 | <style type="text/css"> |
| 47 | #repeat div { padding-top: 2px; } |
| 48 | #repeatList div { padding-top: 2px; padding-bottom: 2px; } |
| 49 | </style> |
| 50 | <div id="repeat" style="display:none"> |
| 51 | <div> |
| 52 | <label id="rl1">Repeats:</label> |
| 53 | <select id="freq" name="freq"> |
| 54 | <option id="opt0" value="10">No</option> |
| 55 | <option id="opt0" value="0">Daily</option> |
| 56 | <option id="opt1" value="1">Every weekday (Monday to Friday)</option> |
| 57 | <option id="opt2" value="2">Every Monday, Wednesday, and Friday</option> |
| 58 | <option id="opt3" value="3">Every Tuesday, and Thursday</option> |
| 59 | <option id="opt4" value="4">Weekly</option> |
| 60 | <option id="opt5" value="5">Monthly</option> |
| 61 | <option id="opt6" value="6">Yearly</option> |
| 62 | </select> |
| 63 | </div> |
| 64 | <div id="repeatOptions" style="display:none"> |
| 65 | <div id="intervaldiv"> |
| 66 | <label id="rl2">Repeat every:</label> |
| 67 | <select id="interval"></select> <span id="interval_label">weeks</span> |
| 68 | </div> |
| 69 | <div id="bydayweek"> |
| 70 | <label id="rl3">Repeat on:</label> |
| 71 | <input id="bydaySU" class="bydayw" name="SU" type="checkbox"><span id="chk0">SU</span> |
| 72 | <input id="bydayMO" class="bydayw" name="MO" type="checkbox"><span id="chk1">MO</span> |
| 73 | <input id="bydayTU" class="bydayw" name="TU" type="checkbox"><span id="chk2">TU</span> |
| 74 | <input id="bydayWE" class="bydayw" name="WE" type="checkbox"><span id="chk3">WE</span> |
| 75 | <input id="bydayTH" class="bydayw" name="TH" type="checkbox"><span id="chk4">TH</span> |
| 76 | <input id="bydayFR" class="bydayw" name="FR" type="checkbox"><span id="chk5">FR</span> |
| 77 | <input id="bydaySA" class="bydayw" name="SA" type="checkbox"><span id="chk6">SA</span> |
| 78 | </div> |
| 79 | <div id="bydaymonth"> |
| 80 | <label id="rl4">Repeat by:</label> |
| 81 | <input id="byday_m" class="bydaym" name="bydaym" type="radio" value="1" checked="checked"> <span id="bydaymonth1">day of the month</span> |
| 82 | <input id="byday_w" class="bydaym" name="bydaym" type="radio" value="2"> <span id="bydaymonth2">day of the week</span> |
| 83 | </div> |
| 84 | <div class="clear"></div> |
| 85 | <div> |
| 86 | <div class="fl"> |
| 87 | <!--<div><input id="end_never" name="end" checked="" title="Ends never" type="radio"> <span id="end1">Never</span></div>--> |
| 88 | <div>Ends <input style="display:none" id="end_count" name="end" checked="" title="Ends after a number of occurrences" type="radio"> <span id="end21">after</span> <select id="end_after" onchange="document.getElementById('end_count').checked=true;"></select> <span id="end22">occurrences</span> or <input style="display:none" id="end_until" name="end" title="Ends on a specified date" type="radio"> <span id="end3">on</span> <input size="10" id="end_until_input" value="" onchange="document.getElementById('end_until').checked=true;"></div> |
| 89 | </div> |
| 90 | </div> |
| 91 | <div class="clear"></div> |
| 92 | <div style="display:none"> |
| 93 | <label id="rl7">Summary:</label> |
| 94 | <span id="summary"></span> |
| 95 | </div> |
| 96 | <div> |
| 97 | <label id="rl5">Starts on</label> |
| 98 | <label id="starts" style="font-weight:bold;"></label> |
| 99 | <label id="rl5"> and repeated on:</label> |
| 100 | </div> |
| 101 | </div> |
| 102 | <input type="hidden" id="format" value="FREQ=DAILY" size=55 /> |
| 103 | <div id="repeatList" style="margin-left:10px;"></div> |
| 104 | </div> |
| 105 | <br /> |
| 106 | * Note: Repeat / recurrent options are displayed after selecting a time-slot in the calendar. |
| 107 | </fieldset> |
| 108 | <?php } ?> |
| 109 | <div style="clear:both;"></div> |
| 110 | <?php _e('Your phone number','appointment-booking-calendar'); ?>:<br /> |
| 111 | <input type="text" name="phone" value=""><br /> |
| 112 | <?php _e('Your name','appointment-booking-calendar'); ?>:<br /> |
| 113 | <input type="text" name="name" value=""><br /> |
| 114 | <?php _e('Your email','appointment-booking-calendar'); ?>:<br /> |
| 115 | <input type="email" name="email" value=""><br /> |
| 116 | <?php _e('Comments/Questions','appointment-booking-calendar'); ?>:<br /> |
| 117 | <textarea name="question" style="width:100%"></textarea><br /> |
| 118 | <?php if (!is_admin() && cpabc_get_option('dexcv_enable_captcha', CPABC_TDEAPP_DEFAULT_dexcv_enable_captcha) != 'false') { ?> |
| 119 | <?php _e('Please enter the security code:','appointment-booking-calendar'); ?><br /> |
| 120 | <img src="<?php echo esc_attr(cpabc_appointment_get_site_url().'/?cpabc_app=captcha'.cpabc_get_captcha_params()); ?>" id="captchaimg" alt="security code" border="0" class="skip-lazy" /> |
| 121 | <br /> |
| 122 | <?php _e('Security Code:','appointment-booking-calendar'); ?><br /> |
| 123 | <div class="dfield"> |
| 124 | <input type="text" size="20" name="hdcaptcha" id="hdcaptcha" value="" /> |
| 125 | <div class="error message" id="hdcaptcha_error" generated="true" style="display:none;position: absolute; left: 0px; top: 25px;"></div> |
| 126 | </div> |
| 127 | <br /> |
| 128 | <?php } ?> |
| 129 | <input type="submit" name="subbtn" class="cp_subbtn" value="<?php _e($button_label,'appointment-booking-calendar'); ?>"> |
| 130 | </form> |
| 131 | |
| 132 | |
| 133 |