PluginProbe
SupportCandy – AI Customer Support Ticket System & Live Chatbot Agent / 2.3.1
SupportCandy – AI Customer Support Ticket System & Live Chatbot Agent v2.3.1
3.5.4 3.5.3 3.5.2 3.5.1 3.4.9 3.5.0 3.4.8 3.4.7 trunk 2.3.1 3.3.6 3.3.7 3.3.8 3.3.9 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6
supportcandy / includes / admin / settings / get_advanced_settings.php

get_advanced_settings.php in SupportCandy – AI Customer Support Ticket System & Live Chatbot Agent 2.3.1, at includes/admin/settings/get_advanced_settings.php

409 lines 22.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 exit; // Exit if accessed directly
4 }
5
6 global $current_user, $wpdb;
7 if (!($current_user->ID && $current_user->has_cap('manage_options'))) {
8 exit;
9 }
10
11 $wpsc_custom_ticket_count = get_option('wpsc_custom_ticket_count');
12 $wpsc_thread_limit = get_option('wpsc_thread_limit');
13 ?>
14
15 <form id="wpsc_frm_advanced_settings" method="post" action="javascript:wpsc_set_advanced_settings();">
16 <div class="form-group">
17 <label for="wpsc_ticket_url_permission"><?php _e('Ticket URL Permissions','supportcandy');?></label>
18 <select class="form-control" name="wpsc_ticket_url_permission" id="wpsc_ticket_url_permission">
19 <?php
20 $wpsc_ticket_url_permission = get_option('wpsc_ticket_url_permission');
21 $selected = $wpsc_ticket_url_permission == '1' ? 'selected="selected"' : '';
22 echo '<option '.esc_attr($selected).' value="1">'.__('Anyone can see','supportcandy').'</option>';
23 $selected = $wpsc_ticket_url_permission == '0' ? 'selected="selected"' : '';
24 echo '<option '.esc_attr($selected).' value="0">'.__('Login required','supportcandy').'</option>';
25 ?>
26 </select>
27 </div>
28
29 <div class="form-group">
30 <label for="wpsc_sign_out"><?php _e('Logout button','supportcandy');?></label>
31 <p class="help-block"><?php _e("Enable/Disable logout button on ticket list action bar.","supportcandy");?></p>
32 <select class="form-control" name="wpsc_sign_out" id="wpsc_sign_out">
33 <?php
34 $wpsc_allow_sign_out = get_option('wpsc_sign_out');
35 $selected = $wpsc_allow_sign_out == '1' ? 'selected="selected"' : '';
36 echo '<option '.esc_attr($selected).' value="1">'.__('Enable','supportcandy').'</option>';
37 $selected = $wpsc_allow_sign_out == '0' ? 'selected="selected"' : '';
38 echo '<option '.esc_attr($selected).' value="0">'.__('Disable','supportcandy').'</option>';
39 ?>
40 </select>
41 </div>
42
43 <div class="form-group">
44 <label for="wpsc_ticket_public_mode"><?php _e('Public Mode','supportcandy');?></label>
45 <p class="help-block"><?php _e("If you enable this setting then all tickets will be visible to all users and they can reply to each others tickets.","supportcandy");?></p>
46 <select class="form-control" name="wpsc_ticket_public_mode" id="wpsc_ticket_public_mode">
47 <?php
48 $wpsc_ticket_public_mode = get_option('wpsc_ticket_public_mode');
49 $selected = $wpsc_ticket_public_mode == '1' ? 'selected="selected"' : '';
50 echo '<option '.esc_attr($selected).' value="1">'.__('Enable','supportcandy').'</option>';
51 $selected = $wpsc_ticket_public_mode == '0' ? 'selected="selected"' : '';
52 echo '<option '.esc_attr($selected).' value="0">'.__('Disable','supportcandy').'</option>';
53 ?>
54 </select >
55 </div>
56
57 <?php $display = !$wpsc_ticket_public_mode ?'display:none;':'';?>
58 <div class="form-group" id="wpsc_allow_reply_to_public_tickets" style="<?php echo esc_attr($display);?>">
59 <label for="wpsc_allow_reply_to_public_tickets"><?php _e('Allow others to reply to public tickets','supportcandy');?></label>
60 <p class="help-block"><?php _e("Set whether or not users other than raised by can reply to public tickets.","supportcandy");?></p>
61 <select class="form-control" name="wpsc_allow_reply_to_public_tickets" id="wpsc_allow_reply_to_public_tickets">
62 <?php
63 $wpsc_allow_reply_to_public_tickets = get_option('wpsc_allow_reply_to_public_tickets');
64 $selected = $wpsc_allow_reply_to_public_tickets == '1' ? 'selected="selected"' : '';
65 echo '<option '.esc_attr($selected).' value="1">'.__('Enable','supportcandy').'</option>';
66 $selected = $wpsc_allow_reply_to_public_tickets == '0' ? 'selected="selected"' : '';
67 echo '<option '.esc_attr($selected).' value="0">'.__('Disable','supportcandy').'</option>';
68 ?>
69 </select>
70 </div>
71 <div class="form-group">
72 <label for="wpsc_show_and_hide_filters"><?php _e('Ticket list filters default visibility','supportcandy');?></label>
73 <p class="help-block"><?php _e("Default show/hide filters on ticket list on page load.","supportcandy");?></p>
74 <select class="form-control" name="wpsc_show_and_hide_filters" id="wpsc_show_and_hide_filters">
75 <?php
76 $wpsc_show_and_hide_filters = get_option('wpsc_show_and_hide_filters');
77 $selected = $wpsc_show_and_hide_filters == '1' ? 'selected="selected"' : '';
78 echo '<option '.esc_attr($selected).' value="1">'.__('Show','supportcandy').'</option>';
79 $selected = $wpsc_show_and_hide_filters == '0' ? 'selected="selected"' : '';
80 echo '<option '.esc_attr($selected).' value="0">'.__('Hide','supportcandy').'</option>';
81 ?>
82 </select>
83 </div>
84
85 <div class="form-group">
86 <label for="wpsc_allow_reply_confirmation"><?php _e('Allow Reply Confirmation','supportcandy');?></label>
87 <p class="help-block"><?php _e("If you enable this setting, it will ask confirmation before submitting reply.","supportcandy");?></p>
88 <select class="form-control" name="wpsc_allow_reply_confirmation" id="wpsc_allow_reply_confirmation">
89 <?php
90 $wpsc_allow_reply_confirmation = get_option('wpsc_allow_reply_confirmation');
91 $selected = $wpsc_allow_reply_confirmation == '1' ? 'selected="selected"' : '';
92 echo '<option '.esc_attr($selected).' value="1">'.__('Enable','supportcandy').'</option>';
93 $selected = $wpsc_allow_reply_confirmation == '0' ? 'selected="selected"' : '';
94 echo '<option '.esc_attr($selected).' value="0">'.__('Disable','supportcandy').'</option>';
95 ?>
96 </select>
97 </div>
98
99 <div class="form-group">
100 <label for="wpsc_thread_date_format"><?php _e('Thread Date Format','supportcandy');?></label>
101 <p class="help-block"><?php _e("This format will be applicable for thread log time.","supportcandy");?></p>
102 <select class="form-control" name="wpsc_thread_date_format" id="wpsc_thread_date_format">
103 <?php
104 $wpsc_thread_date_format = get_option('wpsc_thread_date_format');
105 $selected = $wpsc_thread_date_format == 'string' ? 'selected="selected"' : '';
106 echo '<option '.esc_attr($selected).' value="string">'.__('In words (eg. 1 min ago)','supportcandy').'</option>';
107 $selected = $wpsc_thread_date_format == 'timestamp' ? 'selected="selected"' : '';
108 echo '<option '.esc_attr($selected).' value="timestamp">'.__('Timestamp','supportcandy').'</option>';
109 ?>
110 </select>
111 <?php $wpsc_thread_dt_format = get_option('wpsc_thread_date_time_format'); ?>
112 <div id="date_time_format" style="<?php echo esc_attr($wpsc_thread_date_format)=='timestamp'?'display:block;':'display:none;' ?>">
113 <label for="wpsc_thread_date_time_format" style="margin-top:10px"><?php _e('Timestamp Format','supportcandy');?></label>
114 <?php $wpsc_thread_date_time_format = get_option('wpsc_thread_date_time_format');?>
115 <input type="text" class="form-control" id="wpsc_thread_date_time_format" name="wpsc_thread_date_time_format" value="<?php echo esc_attr($wpsc_thread_date_time_format) ?>">
116 </div>
117 </div>
118
119 <div class="form-group">
120 <label for="wpsc_notify"><?php _e('Do Not Notify Owner','supportcandy');?></label>
121 <p class="help-block"><?php _e("Enable or Disable Do Not Notify Owner checkbox in create ticket.","supportcandy");?></p>
122 <select class="form-control" name="wpsc_notify" id="wpsc_notify">
123 <?php
124 $wpsc_notify = get_option('wpsc_do_not_notify_setting');
125 $selected = $wpsc_notify == '1' ? 'selected="selected"' : '';
126 echo '<option '.esc_attr($selected).' value="1">'.__('Enable','supportcandy').'</option>';
127 $selected = $wpsc_notify == '0' ? 'selected="selected"' : '';
128 echo '<option '.esc_attr($selected).' value="0">'.__('Disable','supportcandy').'</option>';
129 ?>
130 </select>
131 </div>
132 <?php $wpsc_notify = get_option('wpsc_do_not_notify_setting'); ?>
133 <div class="form-group" id="wpsc_do_not_notify_option" style= <?php echo esc_attr($wpsc_notify)=='1'?'display:block;':'display:none;'?>>
134 <label for="wpsc_notify_checkbox"><?php _e("Don't Notify Owner Checkbox",'supportcandy');?></label>
135 <p class="help-block"><?php _e("Checked or Unchecked Don't Notify Owner checkbox in create ticket.","supportcandy");?></p>
136 <select class="form-control" name="wpsc_notify_checkbox" id="wpsc_notify_checkbox">
137 <?php
138 $wpsc_notify_checkbox = get_option('wpsc_default_do_not_notify_option');
139 $selected = $wpsc_notify_checkbox == '1' ? 'selected="selected"' : '';
140 echo '<option '.esc_attr($selected).' value="1">'.__('Checked','supportcandy').'</option>';
141 $selected = $wpsc_notify_checkbox == '0' ? 'selected="selected"' : '';
142 echo '<option '.esc_attr($selected).' value="0">'.__('Unchecked','supportcandy').'</option>';
143 ?>
144 </select>
145 </div>
146
147 <div class="form-group">
148 <label for="wpsc_hide_show_priority"><?php _e('Priority Visibility','supportcandy');?></label>
149 <p class="help-block"><?php _e("Show/Hide priority in individual ticket for customers.","supportcandy");?></p>
150 <select class="form-control" name="wpsc_hide_show_priority" id="wpsc_hide_show_priority">
151 <?php
152 $wpsc_hide_show_priority = get_option('wpsc_hide_show_priority');
153 $selected = $wpsc_hide_show_priority == '1' ? 'selected="selected"' : '';
154 echo '<option '.esc_attr($selected).' value="1">'.__('Show','supportcandy').'</option>';
155 $selected = $wpsc_hide_show_priority == '0' ? 'selected="selected"' : '';
156 echo '<option '.esc_attr($selected).' value="0">'.__('Hide','supportcandy').'</option>';
157 ?>
158 </select>
159 </div>
160
161 <div class="form-group">
162 <label for="wpsc_view_more"><?php _e('Ticket Thread View More','supportcandy');?></label>
163 <p class="help-block"><?php _e("Enable/Disable View More button in individual ticket thread. This will show full content of the thread if disabled.","supportcandy");?></p>
164 <select class="form-control" name="wpsc_view_more" id="wpsc_view_more">
165 <?php
166 $wpsc_view_more = get_option('wpsc_view_more');
167 $selected = $wpsc_view_more == '1' ? 'selected="selected"' : '';
168 echo '<option '.esc_attr($selected).' value="1">'.__('Enable','supportcandy').'</option>';
169 $selected = $wpsc_view_more == '0' ? 'selected="selected"' : '';
170 echo '<option '.esc_attr($selected).' value="0">'.__('Disable','supportcandy').'</option>';
171 ?>
172 </select>
173 </div>
174
175 <div class="form-group">
176 <label for="wpsc_on_and_off_auto_refresh"><?php _e('Auto Refresh Default Status','supportcandy');?></label>
177 <p class="help-block"><?php _e("Default status of auto-refresh on ticket list on page load.","supportcandy");?></p>
178 <select class="form-control" name="wpsc_on_and_off_auto_refresh" id="wpsc_on_and_off_auto_refresh">
179 <?php
180 $wpsc_on_and_off_auto_refresh = get_option('wpsc_on_and_off_auto_refresh');
181 $selected = $wpsc_on_and_off_auto_refresh == '1' ? 'selected="selected"' : '';
182 echo '<option '.esc_attr($selected).' value="1">'.__('On','supportcandy').'</option>';
183 $selected = $wpsc_on_and_off_auto_refresh == '0' ? 'selected="selected"' : '';
184 echo '<option '.esc_attr($selected).' value="0">'.__('Off','supportcandy').'</option>';
185 ?>
186 </select>
187 </div>
188
189
190 <div class="form-group">
191 <label for="wpsc_sign_out"><?php _e('Ticket ID','supportcandy');?></label>
192 <p class="help-block"><?php _e("This is applicable for Ticket id being created for new ticket.","supportcandy");?></p>
193 <select class="form-control" name="wpsc_ticket_id_type" id="wpsc_ticket_id_type">
194 <?php
195 $wpsc_ticket_id_type = get_option('wpsc_ticket_id_type');
196 $selected = $wpsc_ticket_id_type == '1' ? 'selected="selected"' : '';
197 echo '<option '.esc_attr($selected).' value="1">'.__('Sequential','supportcandy').'</option>';
198 $selected = $wpsc_ticket_id_type == '0' ? 'selected="selected"' : '';
199 echo '<option '.esc_attr($selected).' value="0">'.__('Random','supportcandy').'</option>';
200 ?>
201 </select>
202 </div>
203
204 <div class="form-group" id="wpsc_custom_ticket_number_start" style="<?php echo esc_attr($wpsc_ticket_id_type) =='1'? 'display:block': 'display:none'?>">
205 <label for="wpsc_custom_ticket_number"><?php _e('Starting Ticket ID','supportcandy');?></label>
206 <p class="help-block"><?php _e("This is applicable only for Sequential ticket id type.","supportcandy");?></p>
207 <div class="row">
208 <div class="col-sm-6" style="padding-left:0px;" id="wpsc_custom_ticket_start_number">
209 <input type="number" class="form-control" name="wpsc_custom_ticket_count" id="wpsc_custom_ticket_count" value="<?php echo esc_attr($wpsc_custom_ticket_count)?>" />
210 </div>
211 <div class="col-sm-6">
212 <button id="wpsc_ticket_count_btn" type="button" class="btn btn-success" onclick="wpsc_custom_ticket_number('<?php echo wp_create_nonce('custom_start_ticket_number')?>');"><?php _e('Save','supportcandy');?></button>
213 <img class="wpsc_submit_wait_1" style="display:none;" src="<?php echo esc_url(WPSC_PLUGIN_URL.'asset/images/[email protected]');?>">
214 <input type="hidden" name="action" value="wpsc_settings" />
215 <input type="hidden" name="setting_action" value="custom_start_ticket_number" />
216 <input type="hidden" name="_ajax_nonce" value="<?php echo wp_create_nonce('custom_start_ticket_number')?>">
217 </div>
218 </div>
219 </div>
220
221 <?php $wpsc_rt_id_length = get_option('wpsc_rt_id_length'); ?>
222 <div class="form-group" id="wpsc_rt_id_length_set" style="<?php echo esc_attr($wpsc_ticket_id_type) == '0'? 'display:block':'display:none'?>">
223 <label for="wpsc_rt_id_length"><?php _e('Random id length','supportcandy');?></label>
224 <p class="help-block"><?php _e("Number of digits for random ticket id.","supportcandy");?></p>
225 <div class="row">
226 <input type="number" min="1" class="form-control" name="wpsc_rt_id_length" id="wpsc_rt_id_length" value="<?php echo esc_attr($wpsc_rt_id_length) ?>"/>
227 </div>
228 </div>
229
230 <div class="form-group">
231 <label for="wpsc_thread_limit"><?php _e('Ticket History Limit','supportcandy');?></label>
232 <p class="help-block"><?php _e("Number of threads for ticket history macro.","supportcandy");?></p>
233 <div class="row">
234 <input type="number" min="1" class="form-control" name="wpsc_thread_limit" id="wpsc_thread_limit" value = "<?php echo esc_attr($wpsc_thread_limit) ?>"/>
235 </div>
236 </div>
237
238 <div class="form-group">
239 <label for="wpsc_redirect_to_ticket_list"><?php _e('Ticket reply redirect','supportcandy');?></label>
240 <p class="help-block"><?php _e("Set screen to which user should be redirected after successful ticket reply.","supportcandy");?></p>
241 <select class="form-control" name="wpsc_redirect_to_ticket_list" id="wpsc_redirect_to_ticket_list">
242 <?php
243 $wpsc_redirect_to_ticket_list = get_option('wpsc_redirect_to_ticket_list');
244 $selected = $wpsc_redirect_to_ticket_list == '1' ? 'selected="selected"' : '';
245 echo '<option '.esc_attr($selected).' value="1">'.__('Ticket List','supportcandy').'</option>';
246 $selected = $wpsc_redirect_to_ticket_list == '0' ? 'selected="selected"' : '';
247 echo '<option '.esc_attr($selected).' value="0">'.__('Ticket Itself','supportcandy').'</option>';
248 ?>
249 </select>
250 </div>
251
252 <div class="form-group">
253 <label for="wpsc_reg_guest_user_after_create_ticket"><?php _e('Register user on creating ticket','supportcandy');?></label>
254 <p class="help-block"><?php _e("Register user upon create ticket if not exists (Guest User) ","supportcandy");?></p>
255 <select class="form-control" name="wpsc_reg_guest_user_after_create_ticket" id="wpsc_reg_guest_user_after_create_ticket">
256 <?php
257 $wpsc_reg_guest_user_after_create_ticket = get_option('wpsc_reg_guest_user_after_create_ticket');
258 $selected = $wpsc_reg_guest_user_after_create_ticket == '1' ? 'selected="selected"' : '';
259 echo '<option '.esc_attr($selected).' value="1">'.__('Enable','supportcandy').'</option>';
260 $selected = $wpsc_reg_guest_user_after_create_ticket == '0' ? 'selected="selected"' : '';
261 echo '<option '.esc_attr($selected).' value="0">'.__('Disable','supportcandy').'</option>';
262 ?>
263 </select>
264 </div>
265
266 <div class="form-group">
267 <label for="wpsc_auto_delete"><?php _e('Auto delete closed tickets','supportcandy');?></label>
268 <p class="help-block"><?php _e("If enabled, closed tickets will get deleted after given time interval.","supportcandy");?></p>
269 <select class="form-control" name="wpsc_auto_delete_ticket" id="wpsc_auto_delete_ticket">
270 <?php
271 $wpsc_auto_delete_ticket = get_option('wpsc_auto_delete_ticket');
272 $selected = $wpsc_auto_delete_ticket == '1' ? 'selected="selected"' : '';
273 echo '<option '.esc_attr($selected).' value="1">'.__('Enable','supportcandy').'</option>';
274 $selected = $wpsc_auto_delete_ticket == '0' ? 'selected="selected"' : '';
275 echo '<option '.esc_attr($selected).' value="0">'.__('Disable','supportcandy').'</option>';
276 ?>
277 </select>
278
279 <div id="auto_delete_time" style="<?php echo esc_attr($wpsc_auto_delete_ticket)=='1'?'display:block;':'display:none;' ?>">
280 <label for="wpsc_auto_delete_ticket_time" style="margin-top:10px"><?php _e('Age','supportcandy');?></label>
281 <p class="help-block"><?php _e("Set time interval.","supportcandy");?></p>
282 <div class="row">
283 <div class="col-sm-6" style="padding-left:0px !important;">
284 <?php $wpsc_auto_delete_ticket_time = get_option('wpsc_auto_delete_ticket_time');?>
285 <input type="number" min="1" class="form-control" id="wpsc_auto_delete_ticket_time" name="wpsc_auto_delete_ticket_time" value="<?php echo esc_attr($wpsc_auto_delete_ticket_time) ?>">
286 </div>
287
288 <div class="col-sm-6" style="padding-left:0px !important;">
289 <select class="form-control" name="wpsc_auto_delete_ticket_time_period_unit">
290 <?php
291 $wpsc_auto_delete_ticket_time_period_unit = get_option('wpsc_auto_delete_ticket_time_period_unit');
292 $selected = $wpsc_auto_delete_ticket_time_period_unit == 'days' ? 'selected="selected"' : '';
293 echo '<option '.esc_attr($selected).' value="days">Days</option>';
294 $selected = $wpsc_auto_delete_ticket_time_period_unit == 'months' ? 'selected="selected"' : '';
295 echo '<option '.esc_attr($selected).' value="months">Months</option>';
296 $selected = $wpsc_auto_delete_ticket_time_period_unit == 'years' ? 'selected="selected"' : '';
297 echo '<option '.esc_attr($selected).' value="years">Years</option>';
298 ?>
299 </select>
300 </div>
301 </div>
302 </div>
303 </div>
304
305 <div class="form-group">
306 <label for="wpsc_reply_bcc"><?php _e('BCC','supportcandy');?></label>
307 <p class="help-block"><?php _e("Enable/Disable Bcc field in reply ticket form.","supportcandy");?></p>
308 <select class="form-control" name="wpsc_reply_bcc" id="wpsc_reply_bcc">
309 <?php
310 $wpsc_reply_bcc = get_option('wpsc_reply_bcc_visibility');
311 $selected = $wpsc_reply_bcc == '1' ? 'selected="selected"' : '';
312 echo '<option '.esc_attr($selected).' value="1">'.__('Enable','supportcandy').'</option>';
313 $selected = $wpsc_reply_bcc== '0' ? 'selected="selected"' : '';
314 echo '<option '.esc_attr($selected).' value="0">'.__('Disable','supportcandy').'</option>';
315 ?>
316 </select>
317 </div>
318
319 <div class="form-group">
320 <label for="wpsc_new_ticket_btn_url"><?php _e('New ticket button url','supportcandy');?></label>
321 <p class="help-block"><?php _e("Add create ticket page url if you do not want to use SupportCandy create ticket form.","supportcandy");?></p>
322 <input class="form-control" type="text" id="wpsc_new_ticket_btn_url" name="wpsc_new_ticket_btn_url" value="<?php echo esc_attr(get_option('wpsc_new_ticket_btn_url'))?>">
323 </div>
324
325 <div class="form-group">
326 <label for="wpsc_raised_by_user"><?php _e('Raised By User','supportcandy');?></label>
327 <p class="help-block"><?php _e("When an agent creates a ticket on behalf of user the selected user will be shown as ticket creator.","supportcandy");?></p>
328 <select class="form-control" name="wpsc_raised_by_user" id="wpsc_raised_by_user">
329 <?php
330 $wpsc_raised_by_user = get_option('wpsc_report_raised_by_user');
331 $selected = $wpsc_raised_by_user == 'customer' ? 'selected="selected"' : '';
332 echo '<option '.esc_attr($selected).' value="customer">'.__('Customer','supportcandy').'</option>';
333 $selected = $wpsc_raised_by_user== 'agent' ? 'selected="selected"' : '';
334 echo '<option '.esc_attr($selected).' value="agent">'.__('Agent','supportcandy').'</option>';
335 ?>
336 </select>
337 </div>
338
339 <div class = "form-group">
340 <label for="wpsc_allow_datepickerjs_files"><?php _e('Exclude Scripts','supportcandy');?></label>
341 <p class="help-block"><?php _e("It will get excluded from frontend.","supportcandy");?></p>
342 <div class = "row">
343 <?php
344 $wpsc_allow_datepickerjs_files = get_option('wpsc_allow_datepickerjs_files');
345 $checked = $wpsc_allow_datepickerjs_files == '1' ? 'checked="checked"' : '';
346 ?>
347 <div class="col-sm-12" style="margin-bottom:10px; display:flex;padding-left:0;">
348 <div style="width:25px;"><input <?php echo esc_attr($checked) ?> type="checkbox" name="wpsc_allow_datepickerjs_files" value="1" /></div>
349 <div style="padding-top:3px;"><?php _e('DateTimePicker','supportcandy') ?></div>
350 </div>
351 </div>
352 </div>
353
354
355 <button type="submit" class="btn btn-success"><?php _e('Save Changes','supportcandy');?></button>
356 <img class="wpsc_submit_wait" style="display:none;" src="<?php echo esc_url(WPSC_PLUGIN_URL.'asset/images/[email protected]');?>">
357 <input type="hidden" name="action" value="wpsc_settings" />
358 <input type="hidden" name="setting_action" value="set_advanced_settings" />
359 <input type="hidden" name="_ajax_nonce" value="<?php echo wp_create_nonce('set_advanced_settings')?>">
360 </form>
361
362 <script type="text/javascript">
363 jQuery(document).ready(function() {
364 jQuery('#wpsc_thread_date_format').change(function() {
365 if(this.value=='timestamp'){
366 jQuery('#date_time_format').show();
367 }else {
368 jQuery('#date_time_format').hide();
369 }
370 });
371
372 jQuery('#wpsc_auto_delete_ticket').change(function() {
373 if(this.value=='1'){
374 jQuery('#auto_delete_time').show();
375 }else {
376 jQuery('#auto_delete_time').hide();
377 }
378 });
379 jQuery('#wpsc_notify').change(function() {
380 if(this.value=='1'){
381 jQuery('#wpsc_do_not_notify_option').show();
382 }else {
383 jQuery('#wpsc_do_not_notify_option').hide();
384 }
385 });
386 });
387 </script>
388
389 <script>
390 jQuery(document).ready(function() {
391 jQuery('#wpsc_ticket_public_mode').change(function() {
392 if(this.value=='1'){
393 jQuery('#wpsc_allow_reply_to_public_tickets').show();
394 }else {
395 jQuery('#wpsc_allow_reply_to_public_tickets').hide();
396 }
397 });
398
399 jQuery('#wpsc_ticket_id_type').change(function() {
400 if(this.value=='1'){
401 jQuery('#wpsc_custom_ticket_number_start').show();
402 jQuery('#wpsc_rt_id_length_set').hide();
403 }else {
404 jQuery('#wpsc_custom_ticket_number_start').hide();
405 jQuery('#wpsc_rt_id_length_set').show();
406 }
407 });
408 });
409 </script>