PluginProbe ʕ •ᴥ•ʔ
Appointment Booking Calendar / 1.4.03
Appointment Booking Calendar v1.4.03
1.4.04 1.4.03 1.4.02 trunk 1.3.51 1.3.52 1.3.53 1.3.54 1.3.55 1.3.56 1.3.57 1.3.58 1.3.59 1.3.60 1.3.61 1.3.62 1.3.63 1.3.64 1.3.65 1.3.66 1.3.67 1.3.68 1.3.69 1.3.70 1.3.71 1.3.72 1.3.73 1.3.74 1.3.75 1.3.76 1.3.77 1.3.78 1.3.79 1.3.80 1.3.81 1.3.82 1.3.83 1.3.84 1.3.85 1.3.86 1.3.87 1.3.88 1.3.89 1.3.90 1.3.91 1.3.92 1.3.93 1.3.94 1.3.95 1.3.96 1.3.97 1.3.98 1.3.99 1.4.01
appointment-booking-calendar / inc / cpabc_scheduler.inc.php
appointment-booking-calendar / inc Last commit date
banner.php 1 week ago cp-feedback.php 1 week ago cp_admin_int_edition.inc.php 1 week ago cpabc_appointments_admin_addbk.inc.php 1 week ago cpabc_appointments_admin_int.inc.php 1 week ago cpabc_appointments_admin_int_bookings_list.inc.php 1 week ago cpabc_appointments_admin_int_calendar_list.inc.php 1 week ago cpabc_appointments_admin_int_edit_booking.inc.php 1 week ago cpabc_apps_go.inc.php 1 week ago cpabc_apps_on.inc.php 1 week ago cpabc_publish_wizzard.inc.php 1 week ago cpabc_scheduler.inc.php 1 week ago index.html 1 week ago
cpabc_scheduler.inc.php
198 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 <style>
24 /* Core Overlay (dims the background) */
25 .ui-widget-overlay {
26 position: fixed;
27 top: 0;
28 left: 0;
29 width: 100%;
30 height: 100%;
31 background: rgba(0, 0, 0, 0.5);
32 z-index: 100;
33 }
34
35 /* Main Dialog Container */
36 .ui-dialog {
37 position: absolute;
38 top: 0;
39 left: 0;
40 padding: .2em;
41 outline: 0;
42 background: #fff;
43 border: 1px solid #ddd;
44 box-shadow: 0 4px 15px rgba(0,0,0,0.2);
45 z-index: 101;
46 }
47
48 /* Dialog Header */
49 .ui-dialog-titlebar {
50 padding: .4em 1em;
51 position: relative;
52 border-bottom: 1px solid #eee;
53 background: #f9f9f9;
54 font-weight: bold;
55 }
56
57 /* Close Button Position */
58 .ui-dialog-titlebar-close {
59 position: absolute;
60 right: .3em;
61 top: 50%;
62 width: 20px;
63 margin: -10px 0 0 0;
64 padding: 1px;
65 height: 20px;
66 cursor: pointer;
67 }
68
69 /* Content Area */
70 .ui-dialog-content {
71 position: relative;
72 border: 0;
73 padding: .5em 1em;
74 background: none;
75 overflow: auto;
76 }
77
78 /* Button Pane at bottom */
79 .ui-dialog-buttonpane {
80 text-align: left;
81 border-width: 1px 0 0 0;
82 background-image: none;
83 margin-top: .5em;
84 padding: .3em 1em .5em .4em;
85 border-top: 1px solid #eee;
86 }
87 </style>
88 <form class="cpp_form no-prefetch" id="cp_abcform_pform" name="FormEdit" action="<?php echo esc_attr($path); ?>" method="post" onsubmit="return doValidate(this);">
89 <input name="_wpnonce" type="hidden" value="<?php echo esc_attr($nonce_un); ?>" />
90 <input name="cpabc_appointments_post" type="hidden" value="1" /><input name="cpabc_appointments_utime" type="hidden" value="" />
91 <?php
92 echo $quant_buffer;
93 ?>
94 <div <?php if (count($myrows) < 2) echo 'style="display:none"'; ?>>
95 <?php _e("Calendar",'appointment-booking-calendar').":"; ?><br />
96 <select name="cpabc_item" id="cpabc_item" onchange="cpabc_updateItem()"><?php echo $calendar_items; ?></select><br /><br />
97 </div>
98 <?php
99 echo "<div class=\"abc_selectdate fields\">".__("Select date and time",'appointment-booking-calendar').":</div>";
100 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>';
101 foreach ($myrows as $item)
102 {
103 $atlang = cpabc_auto_language($item->calendar_language);
104 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>';
105 }
106 ?>
107 <?php if (is_admin() && !defined('ABC_ELEMENTOR_EDIT_MODE') && cpabc_get_get_param("action") != 'edit') { ?>
108 <fieldset style="border: 1px solid black; -webkit-border-radius: 8px; -moz-border-radius: 8px; border-radius: 8px; padding:15px;">
109 <legend>Administrator options</legend>
110 <input type="checkbox" name="sendemails_admin" value="1" vt="1" checked /> Send notification emails for this booking<br /><br />
111 <style type="text/css">
112 #repeat div { padding-top: 2px; }
113 #repeatList div { padding-top: 2px; padding-bottom: 2px; }
114 </style>
115 <div id="repeat" style="display:none">
116 <div>
117 <label id="rl1">Repeats:</label>
118 <select id="freq" name="freq">
119 <option id="opt0" value="10">No</option>
120 <option id="opt0" value="0">Daily</option>
121 <option id="opt1" value="1">Every weekday (Monday to Friday)</option>
122 <option id="opt2" value="2">Every Monday, Wednesday, and Friday</option>
123 <option id="opt3" value="3">Every Tuesday, and Thursday</option>
124 <option id="opt4" value="4">Weekly</option>
125 <option id="opt5" value="5">Monthly</option>
126 <option id="opt6" value="6">Yearly</option>
127 </select>
128 </div>
129 <div id="repeatOptions" style="display:none">
130 <div id="intervaldiv">
131 <label id="rl2">Repeat every:</label>
132 <select id="interval"></select> <span id="interval_label">weeks</span>
133 </div>
134 <div id="bydayweek">
135 <label id="rl3">Repeat on:</label>
136 <input id="bydaySU" class="bydayw" name="SU" type="checkbox"><span id="chk0">SU</span>
137 <input id="bydayMO" class="bydayw" name="MO" type="checkbox"><span id="chk1">MO</span>
138 <input id="bydayTU" class="bydayw" name="TU" type="checkbox"><span id="chk2">TU</span>
139 <input id="bydayWE" class="bydayw" name="WE" type="checkbox"><span id="chk3">WE</span>
140 <input id="bydayTH" class="bydayw" name="TH" type="checkbox"><span id="chk4">TH</span>
141 <input id="bydayFR" class="bydayw" name="FR" type="checkbox"><span id="chk5">FR</span>
142 <input id="bydaySA" class="bydayw" name="SA" type="checkbox"><span id="chk6">SA</span>
143 </div>
144 <div id="bydaymonth">
145 <label id="rl4">Repeat by:</label>
146 <input id="byday_m" class="bydaym" name="bydaym" type="radio" value="1" checked="checked"> <span id="bydaymonth1">day of the month</span>
147 <input id="byday_w" class="bydaym" name="bydaym" type="radio" value="2"> <span id="bydaymonth2">day of the week</span>
148 </div>
149 <div class="clear"></div>
150 <div>
151 <div class="fl">
152 <!--<div><input id="end_never" name="end" checked="" title="Ends never" type="radio"> <span id="end1">Never</span></div>-->
153 <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>
154 </div>
155 </div>
156 <div class="clear"></div>
157 <div style="display:none">
158 <label id="rl7">Summary:</label>
159 <span id="summary"></span>
160 </div>
161 <div>
162 <label id="rl5">Starts on</label>
163 <label id="starts" style="font-weight:bold;"></label>
164 <label id="rl5"> and repeated on:</label>
165 </div>
166 </div>
167 <input type="hidden" id="format" value="FREQ=DAILY" size=55 />
168 <div id="repeatList" style="margin-left:10px;"></div>
169 </div>
170 <br />
171 * Note: Repeat / recurrent options are displayed after selecting a time-slot in the calendar.
172 </fieldset>
173 <?php } ?>
174 <div style="clear:both;"></div>
175 <?php _e('Your phone number','appointment-booking-calendar'); ?>:<br />
176 <input type="text" name="phone" required="required" value=""><br />
177 <?php _e('Your name','appointment-booking-calendar'); ?>:<br />
178 <input type="text" name="name" required="required" value=""><br />
179 <?php _e('Your email','appointment-booking-calendar'); ?>:<br />
180 <input type="email" name="email" required="required" value=""><br />
181 <?php _e('Comments/Questions','appointment-booking-calendar'); ?>:<br />
182 <textarea name="question" style="width:100%"></textarea><br />
183 <?php if (!is_admin() && cpabc_get_option('dexcv_enable_captcha', CPABC_TDEAPP_DEFAULT_dexcv_enable_captcha) != 'false') { ?>
184 <?php _e('Please enter the security code:','appointment-booking-calendar'); ?><br />
185 <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" />
186 <br />
187 <?php _e('Security Code:','appointment-booking-calendar'); ?><br />
188 <div class="dfield">
189 <input type="text" size="20" name="hdcaptcha" required="required" id="hdcaptcha" value="" />
190 <div class="error message" id="hdcaptcha_error" generated="true" style="display:none;position: absolute; left: 0px; top: 25px;"></div>
191 </div>
192 <br />
193 <?php } ?>
194 <input type="submit" name="subbtn" class="cp_subbtn pbSubmit" value="<?php _e($button_label,'appointment-booking-calendar'); ?>">
195 </form>
196
197
198