PluginProbe ʕ •ᴥ•ʔ
Appointment Booking Calendar / 1.3.57
Appointment Booking Calendar v1.3.57
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 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_scheduler.inc.php
116 lines
1 <?php if ( !defined('CPABC_AUTH_INCLUDE') ) { echo 'Direct access not allowed.'; exit; } ?>
2 <?php
3 $custom_styles = sanitize_textarea_field(base64_decode(get_option('CP_ABC_CSS', '')));
4 if ($custom_styles != '')
5 echo '<style type="text/css">'.$custom_styles.'</style>';
6 ?>
7 <form class="cpp_form" id="cp_abcform_pform" name="FormEdit" action="<?php get_site_url(); ?>" method="post" onsubmit="return doValidate(this);">
8 <input name="cpabc_appointments_post" type="hidden" value="1" /><input name="cpabc_appointments_utime" type="hidden" value="" />
9 <?php
10 echo $quant_buffer;
11 ?>
12 <div <?php if (count($myrows) < 2) echo 'style="display:none"'; ?>>
13 <?php _e("Calendar",'appointment-booking-calendar').":"; ?><br />
14 <select name="cpabc_item" id="cpabc_item" onchange="cpabc_updateItem()"><?php echo $calendar_items; ?></select><br /><br />
15 </div>
16 <?php
17 echo "<div class=\"abc_selectdate fields\">".__("Select date and time",'appointment-booking-calendar').":</div>";
18 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>';
19 foreach ($myrows as $item)
20 {
21 $atlang = cpabc_auto_language($item->calendar_language);
22 echo '<div id="calarea_'.$item->id.'" style="display:none'.(is_rtl()?';float:right;':'').'"><input name="selDaycal'.$item->id.'" type="hidden" id="selDaycal'.$item->id.'" /><input name="selMonthcal'.$item->id.'" type="hidden" id="selMonthcal'.$item->id.'" /><input name="selYearcal'.$item->id.'" type="hidden" id="selYearcal'.$item->id.'" /><input name="selHourcal'.$item->id.'" type="hidden" id="selHourcal'.$item->id.'" /><input name="selMinutecal'.$item->id.'" type="hidden" id="selMinutecal'.$item->id.'" /><div class="appContainer"><div style="z-index:1000;" class="appContainer2"><div id="cal'.$item->id.'Container"></div></div></div> <div style="clear:both;"></div><div id="listcal'.$item->id.'" class="listcal"></div></div>';
23 }
24 ?>
25 <?php if (is_admin() && !defined('ABC_ELEMENTOR_EDIT_MODE') && cpabc_get_get_param("action") != 'edit') { ?>
26 <fieldset style="border: 1px solid black; -webkit-border-radius: 8px; -moz-border-radius: 8px; border-radius: 8px; padding:15px;">
27 <legend>Administrator options</legend>
28 <input type="checkbox" name="sendemails_admin" value="1" vt="1" checked /> Send notification emails for this booking<br /><br />
29 <style type="text/css">
30 #repeat div { padding-top: 2px; }
31 #repeatList div { padding-top: 2px; padding-bottom: 2px; }
32 </style>
33 <div id="repeat" style="display:none">
34 <div>
35 <label id="rl1">Repeats:</label>
36 <select id="freq" name="freq">
37 <option id="opt0" value="10">No</option>
38 <option id="opt0" value="0">Daily</option>
39 <option id="opt1" value="1">Every weekday (Monday to Friday)</option>
40 <option id="opt2" value="2">Every Monday, Wednesday, and Friday</option>
41 <option id="opt3" value="3">Every Tuesday, and Thursday</option>
42 <option id="opt4" value="4">Weekly</option>
43 <option id="opt5" value="5">Monthly</option>
44 <option id="opt6" value="6">Yearly</option>
45 </select>
46 </div>
47 <div id="repeatOptions" style="display:none">
48 <div id="intervaldiv">
49 <label id="rl2">Repeat every:</label>
50 <select id="interval"></select> <span id="interval_label">weeks</span>
51 </div>
52 <div id="bydayweek">
53 <label id="rl3">Repeat on:</label>
54 <input id="bydaySU" class="bydayw" name="SU" type="checkbox"><span id="chk0">SU</span>
55 <input id="bydayMO" class="bydayw" name="MO" type="checkbox"><span id="chk1">MO</span>
56 <input id="bydayTU" class="bydayw" name="TU" type="checkbox"><span id="chk2">TU</span>
57 <input id="bydayWE" class="bydayw" name="WE" type="checkbox"><span id="chk3">WE</span>
58 <input id="bydayTH" class="bydayw" name="TH" type="checkbox"><span id="chk4">TH</span>
59 <input id="bydayFR" class="bydayw" name="FR" type="checkbox"><span id="chk5">FR</span>
60 <input id="bydaySA" class="bydayw" name="SA" type="checkbox"><span id="chk6">SA</span>
61 </div>
62 <div id="bydaymonth">
63 <label id="rl4">Repeat by:</label>
64 <input id="byday_m" class="bydaym" name="bydaym" type="radio" value="1" checked="checked"> <span id="bydaymonth1">day of the month</span>
65 <input id="byday_w" class="bydaym" name="bydaym" type="radio" value="2"> <span id="bydaymonth2">day of the week</span>
66 </div>
67 <div class="clear"></div>
68 <div>
69 <div class="fl">
70 <!--<div><input id="end_never" name="end" checked="" title="Ends never" type="radio"> <span id="end1">Never</span></div>-->
71 <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>
72 </div>
73 </div>
74 <div class="clear"></div>
75 <div style="display:none">
76 <label id="rl7">Summary:</label>
77 <span id="summary"></span>
78 </div>
79 <div>
80 <label id="rl5">Starts on</label>
81 <label id="starts" style="font-weight:bold;"></label>
82 <label id="rl5"> and repeated on:</label>
83 </div>
84 </div>
85 <input type="hidden" id="format" value="FREQ=DAILY" size=55 />
86 <div id="repeatList" style="margin-left:10px;"></div>
87 </div>
88 <br />
89 * Note: Repeat / recurrent options are displayed after selecting a time-slot in the calendar.
90 </fieldset>
91 <?php } ?>
92 <div style="clear:both;"></div>
93 <?php _e('Your phone number','appointment-booking-calendar'); ?>:<br />
94 <input type="text" name="phone" value=""><br />
95 <?php _e('Your name','appointment-booking-calendar'); ?>:<br />
96 <input type="text" name="name" value="<?php /** if (isset($current_user->user_firstname)) echo $current_user->user_firstname." ".$current_user->user_lastname; */ ?>"><br />
97 <?php _e('Your email','appointment-booking-calendar'); ?>:<br />
98 <input type="email" name="email" value="<?php /** if (isset($current_user->user_email)) echo $current_user->user_email; */ ?>"><br />
99 <?php _e('Comments/Questions','appointment-booking-calendar'); ?>:<br />
100 <textarea name="question" style="width:100%"></textarea><br />
101 <?php if (!is_admin() && cpabc_get_option('dexcv_enable_captcha', CPABC_TDEAPP_DEFAULT_dexcv_enable_captcha) != 'false') { ?>
102 <?php _e('Please enter the security code:','appointment-booking-calendar'); ?><br />
103 <img src="<?php echo cpabc_appointment_get_site_url().'/?cpabc_app=captcha'.cpabc_get_captcha_params(); ?>" id="captchaimg" alt="security code" border="0" class="skip-lazy" />
104 <br />
105 <?php _e('Security Code:','appointment-booking-calendar'); ?><br />
106 <div class="dfield">
107 <input type="text" size="20" name="hdcaptcha" id="hdcaptcha" value="" />
108 <div class="error message" id="hdcaptcha_error" generated="true" style="display:none;position: absolute; left: 0px; top: 25px;"></div>
109 </div>
110 <br />
111 <?php } ?>
112 <input type="submit" name="subbtn" class="cp_subbtn" value="<?php _e($button_label,'appointment-booking-calendar'); ?>">
113 </form>
114
115
116