Form Maker by WD – user-friendly drag & drop Form Builder plugin - Version 1.12.2

Version Description

  • Fixed: Border types bug
  • Fixed: Bug with PayPal IPN
  • Fixed: Date format syncronization with Save Progress add-on
Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 Form Maker by WD – user-friendly drag & drop Form Builder plugin
Version 1.12.2
Comparing to
See all releases

Code changes from version 1.12.0 to 1.12.2

admin/controllers/Checkpaypal.php CHANGED
@@ -18,10 +18,10 @@ class FMControllerCheckpaypal {
18
  */
19
  public function __construct() {
20
  // Load FMModelCheckpaypal class.
21
- require_once WDFM()->plugin_dir . "/admin/models/checkpaypal.php";
22
  $this->model = new FMModelCheckpaypal();
23
  // Load FMViewCheckpaypal class.
24
- require_once WDFM()->plugin_dir . "/admin/view/checkpaypal.php";
25
  $this->view = new FMViewCheckpaypal();
26
  }
27
 
18
  */
19
  public function __construct() {
20
  // Load FMModelCheckpaypal class.
21
+ require_once WDFM()->plugin_dir . "/admin/models/Checkpaypal.php";
22
  $this->model = new FMModelCheckpaypal();
23
  // Load FMViewCheckpaypal class.
24
+ require_once WDFM()->plugin_dir . "/admin/views/Checkpaypal.php";
25
  $this->view = new FMViewCheckpaypal();
26
  }
27
 
admin/controllers/FormMakerPreview.php DELETED
@@ -1,47 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Class FMControllerFormMakerPreview
5
- */
6
- class FMControllerFormMakerPreview {
7
- /**
8
- * @var $model
9
- */
10
- private $model;
11
- /**
12
- * @var $view
13
- */
14
- private $view;
15
-
16
- /**
17
- * Execute.
18
- */
19
- public function execute() {
20
- WDFM()->register_frontend_scripts();
21
- $this->display();
22
- }
23
-
24
- /**
25
- * Display.
26
- */
27
- public function display() {
28
- // Load FMModelFormMakerPreview class.
29
- require_once WDFM()->plugin_dir . "/admin/models/FMPreview.php";
30
- $this->model = new FMModelFormMakerPreview();
31
- // Load FMViewFormMakerPreview class.
32
- require_once WDFM()->plugin_dir . "/admin/views/FMPreview.php";
33
- $this->view = new FMViewFormMakerPreview();
34
- // Get form by id.
35
- $form_id = WDW_FM_Library::get('form_id', '');
36
- $form = $this->model->get_form($form_id);
37
- $error_message = '';
38
- if ( !$form ) {
39
- $error_message = __('Form not found, please try again.', WDFM()->prefix);
40
- }
41
- // Set params for view.
42
- $params = array();
43
- $params['form_id'] = $form_id;
44
- $params['error_message'] = $error_message;
45
- $this->view->display($params);
46
- }
47
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/controllers/Manage_fm.php CHANGED
@@ -1,5 +1,4 @@
1
  <?php
2
-
3
  class FMControllerManage_fm {
4
  private $model;
5
  private $view;
@@ -302,8 +301,12 @@ class FMControllerManage_fm {
302
  $params['id'] = $backup_id;
303
  $params['row'] = $this->model->get_row_data_new($backup_id);
304
  $params['page_url'] = $this->page_url;
305
- // Check if Stripe add-on is active.
306
- $stripe_addon = array('enable' => 0);
 
 
 
 
307
  $params['stripe_addon'] = $stripe_addon;
308
 
309
  $params['themes'] = $this->model->get_theme_rows_data();
@@ -363,7 +366,7 @@ class FMControllerManage_fm {
363
 
364
  $params = array();
365
  $params['id'] = $id;
366
- $params['row'] = $this->model->get_row_data_new($backup_id);
367
 
368
  // Check stripe add-on is active.
369
  $stripe_addon = array( 'enable' => 0 );
@@ -623,7 +626,7 @@ function before_reset() {
623
  if ( $reply_to == "other" ) {
624
  $reply_to = stripslashes(WDW_FM_Library::get('reply_to_other', ''));
625
  }
626
- $script_mail = WDW_FM_Library::get('script_mail', '%all%');
627
  $mail_from_user = WDW_FM_Library::get('mail_from_user', '');
628
  $mail_from_name_user = WDW_FM_Library::get('mail_from_name_user', '');
629
  $reply_to_user = WDW_FM_Library::get('reply_to_user', '');
@@ -638,24 +641,24 @@ function before_reset() {
638
  $mail_mode_user = WDW_FM_Library::get('mail_mode_user', '');
639
  $mail_attachment = WDW_FM_Library::get('mail_attachment', '');
640
  $mail_attachment_user = WDW_FM_Library::get('mail_attachment_user', '');
641
- $script_mail_user = WDW_FM_Library::get('script_mail_user', '%all%');
642
- $submit_text = WDW_FM_Library::get('submit_text', '');
643
  $url = WDW_FM_Library::get('url', '');
644
  $tax = WDW_FM_Library::get('tax', 0);
645
  $payment_currency = WDW_FM_Library::get('payment_currency', '');
646
  $paypal_email = WDW_FM_Library::get('paypal_email', '');
647
  $checkout_mode = WDW_FM_Library::get('checkout_mode', 'testmode');
648
  $paypal_mode = WDW_FM_Library::get('paypal_mode', 0);
649
-
650
- // TODO Seclude payment method and payment status.
651
- if($paypal_mode == 'paypal'){
652
- $paypal_mode = 1;
653
- }
654
- if($paypal_mode == 'stripe'){
655
- $paypal_mode = 2;
656
- }
657
 
658
- $javascript = stripslashes(WDW_FM_Library::get('javascript', $javascript));
 
 
 
 
 
 
 
 
659
  $user_id_wd = stripslashes(WDW_FM_Library::get('user_id_wd', 'administrator,'));
660
  $frontend_submit_fields = stripslashes(WDW_FM_Library::get('frontend_submit_fields', ''));
661
  $frontend_submit_stat_fields = stripslashes(WDW_FM_Library::get('frontend_submit_stat_fields', ''));
@@ -1017,7 +1020,7 @@ function before_reset() {
1017
  $label_order_current = WDW_FM_Library::get('label_order_current', '');
1018
  $form_fields = WDW_FM_Library::get('form_fields', '', false);
1019
  $header_title = WDW_FM_Library::get('header_title', '');
1020
- $header_description = htmlspecialchars_decode(WDW_FM_Library::get('header_description', ''));
1021
  $header_image_url = WDW_FM_Library::get('header_image_url', '');
1022
  $header_image_animation = WDW_FM_Library::get('header_image_animation', '');
1023
  $header_hide_image = WDW_FM_Library::get('header_hide_image', 0);
1
  <?php
 
2
  class FMControllerManage_fm {
3
  private $model;
4
  private $view;
301
  $params['id'] = $backup_id;
302
  $params['row'] = $this->model->get_row_data_new($backup_id);
303
  $params['page_url'] = $this->page_url;
304
+ // Check if Stripe add-on is active.
305
+ $stripe_addon = array('enable' => 0);
306
+ $addon_stripe = $this->get_stripe_addon(0);
307
+ if( !empty($addon_stripe['html']) ) {
308
+ $stripe_addon = $addon_stripe;
309
+ }
310
  $params['stripe_addon'] = $stripe_addon;
311
 
312
  $params['themes'] = $this->model->get_theme_rows_data();
366
 
367
  $params = array();
368
  $params['id'] = $id;
369
+ $params['row'] = $this->model->get_row_data_new($backup_id);
370
 
371
  // Check stripe add-on is active.
372
  $stripe_addon = array( 'enable' => 0 );
626
  if ( $reply_to == "other" ) {
627
  $reply_to = stripslashes(WDW_FM_Library::get('reply_to_other', ''));
628
  }
629
+ $script_mail = WDW_FM_Library::get('script_mail', '%all%', FALSE);
630
  $mail_from_user = WDW_FM_Library::get('mail_from_user', '');
631
  $mail_from_name_user = WDW_FM_Library::get('mail_from_name_user', '');
632
  $reply_to_user = WDW_FM_Library::get('reply_to_user', '');
641
  $mail_mode_user = WDW_FM_Library::get('mail_mode_user', '');
642
  $mail_attachment = WDW_FM_Library::get('mail_attachment', '');
643
  $mail_attachment_user = WDW_FM_Library::get('mail_attachment_user', '');
644
+ $script_mail_user = WDW_FM_Library::get('script_mail_user', '%all%', FALSE);
645
+ $submit_text = WDW_FM_Library::get('submit_text', '', FALSE);
646
  $url = WDW_FM_Library::get('url', '');
647
  $tax = WDW_FM_Library::get('tax', 0);
648
  $payment_currency = WDW_FM_Library::get('payment_currency', '');
649
  $paypal_email = WDW_FM_Library::get('paypal_email', '');
650
  $checkout_mode = WDW_FM_Library::get('checkout_mode', 'testmode');
651
  $paypal_mode = WDW_FM_Library::get('paypal_mode', 0);
 
 
 
 
 
 
 
 
652
 
653
+ // TODO Seclude payment method and payment status.
654
+ if ( $paypal_mode == 'paypal' ) {
655
+ $paypal_mode = 1;
656
+ }
657
+ if ( $paypal_mode == 'stripe' ) {
658
+ $paypal_mode = 2;
659
+ }
660
+
661
+ $javascript = stripslashes(WDW_FM_Library::get('javascript', $javascript, false));
662
  $user_id_wd = stripslashes(WDW_FM_Library::get('user_id_wd', 'administrator,'));
663
  $frontend_submit_fields = stripslashes(WDW_FM_Library::get('frontend_submit_fields', ''));
664
  $frontend_submit_stat_fields = stripslashes(WDW_FM_Library::get('frontend_submit_stat_fields', ''));
1020
  $label_order_current = WDW_FM_Library::get('label_order_current', '');
1021
  $form_fields = WDW_FM_Library::get('form_fields', '', false);
1022
  $header_title = WDW_FM_Library::get('header_title', '');
1023
+ $header_description = WDW_FM_Library::get('header_description', '', FALSE);
1024
  $header_image_url = WDW_FM_Library::get('header_image_url', '');
1025
  $header_image_animation = WDW_FM_Library::get('header_image_animation', '');
1026
  $header_hide_image = WDW_FM_Library::get('header_hide_image', 0);
admin/controllers/Submissions_fm.php CHANGED
@@ -171,22 +171,20 @@ class FMControllerSubmissions_fm {
171
  $page_num = $page ? ($page - 1) * $params['page_per_num'] : 0;
172
 
173
  $params['forms'] = $this->model->get_forms();
174
- $params['statistics'] = $this->model->get_statistics( $id );
175
  $params['blocked_ips'] = $this->model->blocked_ips();
176
 
177
  $labels_parameters = $this->model->get_labels_parameters( $id , $page_num, $params['page_per_num'] );
178
-
179
  $params['sorted_labels_id'] = $labels_parameters[0];
180
  $params['sorted_label_types'] = $labels_parameters[1];
181
  $params['sorted_label_names'] = $labels_parameters[3];
182
- $params['sorted_label_names_original'] = $labels_parameters[4];
183
 
184
  $label_name_ids = array();
185
  foreach($labels_parameters[0] as $key => $label_id) {
186
  $label_name_ids[$label_id] = $labels_parameters[4][$key];
187
  }
188
- $params['label_name_ids'] = $label_name_ids;
189
-
190
  $group_ids = ((isset($labels_parameters[6])) ? $labels_parameters[6] : NULL);
191
  $params['group_id_s'] = $this->model->sort_group_ids(count($params['sorted_label_names']), $group_ids);
192
  $params['where_choices'] = $labels_parameters[7];
@@ -205,10 +203,9 @@ class FMControllerSubmissions_fm {
205
  $params['style_payment_info'] = $this->model->hide_or_not($lists['hide_label_list'], '@payment_info@');
206
 
207
  $params['oder_class_default'] = "manage-column column-autor sortable desc";
208
- $params['oder_class'] = "manage-column column-title sorted " . $params['asc_or_desc'];
 
209
 
210
- $params['m'] = count($params['sorted_label_names']);
211
-
212
  $is_search = false;
213
  foreach($lists as $list_key => $list_val){
214
  if(!empty($_POST[$list_key])) {
171
  $page_num = $page ? ($page - 1) * $params['page_per_num'] : 0;
172
 
173
  $params['forms'] = $this->model->get_forms();
174
+ $params['statistics'] = $this->model->get_statistics( $id );
175
  $params['blocked_ips'] = $this->model->blocked_ips();
176
 
177
  $labels_parameters = $this->model->get_labels_parameters( $id , $page_num, $params['page_per_num'] );
 
178
  $params['sorted_labels_id'] = $labels_parameters[0];
179
  $params['sorted_label_types'] = $labels_parameters[1];
180
  $params['sorted_label_names'] = $labels_parameters[3];
181
+ $params['sorted_label_names_original'] = $labels_parameters[4];
182
 
183
  $label_name_ids = array();
184
  foreach($labels_parameters[0] as $key => $label_id) {
185
  $label_name_ids[$label_id] = $labels_parameters[4][$key];
186
  }
187
+ $params['label_name_ids'] = $label_name_ids;
 
188
  $group_ids = ((isset($labels_parameters[6])) ? $labels_parameters[6] : NULL);
189
  $params['group_id_s'] = $this->model->sort_group_ids(count($params['sorted_label_names']), $group_ids);
190
  $params['where_choices'] = $labels_parameters[7];
203
  $params['style_payment_info'] = $this->model->hide_or_not($lists['hide_label_list'], '@payment_info@');
204
 
205
  $params['oder_class_default'] = "manage-column column-autor sortable desc";
206
+ $params['oder_class'] = "manage-column column-autor column-title sorted " . $params['asc_or_desc'];
207
+ $params['m'] = count($params['sorted_label_names']);
208
 
 
 
209
  $is_search = false;
210
  foreach($lists as $list_key => $list_val){
211
  if(!empty($_POST[$list_key])) {
admin/controllers/Themes_fm.php CHANGED
@@ -218,7 +218,7 @@ class FMControllerThemes_fm {
218
  $params['row'] = $this->model->get_row_data($params['id'], FALSE);
219
  $params['page_title'] = $params['row']->title;
220
  $params['param_values'] = $params['row']->css;
221
- $params['border_types'] = array(
222
  'solid' => 'Solid',
223
  'dotted' => 'Dotted',
224
  'dashed' => 'Dashed',
@@ -291,7 +291,7 @@ class FMControllerThemes_fm {
291
  'other' => 'Other',
292
  'custom_css' => 'Custom CSS',
293
  );
294
- $params['all_params'] = $this->all_params($params['param_values'], $borders, $font_weights, $border_values, $position_types, $aligns_no_center, $aligns, $bg_repeats, $font_families);
295
  $this->view->edit($params);
296
  }
297
 
218
  $params['row'] = $this->model->get_row_data($params['id'], FALSE);
219
  $params['page_title'] = $params['row']->title;
220
  $params['param_values'] = $params['row']->css;
221
+ $border_types = array(
222
  'solid' => 'Solid',
223
  'dotted' => 'Dotted',
224
  'dashed' => 'Dashed',
291
  'other' => 'Other',
292
  'custom_css' => 'Custom CSS',
293
  );
294
+ $params['all_params'] = $this->all_params($params['param_values'], $borders, $border_types, $font_weights, $position_types, $aligns_no_center, $aligns, $bg_repeats, $font_families);
295
  $this->view->edit($params);
296
  }
297
 
admin/models/{FMCheckpaypal.php → Checkpaypal.php} RENAMED
File without changes
admin/models/FMPreview.php DELETED
@@ -1,20 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Class FMModelFormMakerPreview
5
- */
6
- class FMModelFormMakerPreview {
7
- /**
8
- * Get form by id.
9
- *
10
- * @param $id
11
- *
12
- * @return null|string
13
- */
14
- public function get_form( $id ) {
15
- global $wpdb;
16
- $row = $wpdb->get_var($wpdb->prepare('SELECT form_front FROM ' . $wpdb->prefix . 'formmaker WHERE id="%d"', $id));
17
-
18
- return $row;
19
- }
20
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/models/Manage_fm.php CHANGED
@@ -799,7 +799,7 @@ class FMModelManage_fm {
799
  }
800
  if ( $w_disabled_fields[5] == 'no' ) {
801
  $g++;
802
- $address_fields .= '<span style="float: ' . (($g % 2 == 0) ? 'right' : 'left') . '; width: 48%; padding-bottom: 8px;"><select type="text" id="' . $id . '_countryform_id_temp" name="' . ($id + 5) . '_countryform_id_temp" onchange="change_value(&quot;' . $id . '_countryform_id_temp&quot;)" style="width: 100%;" ' . $param['attributes'] . ' disabled><option value=""></option><option value="Afghanistan">Afghanistan</option><option value="Albania">Albania</option><option value="Algeria">Algeria</option><option value="Andorra">Andorra</option><option value="Angola">Angola</option><option value="Antigua and Barbuda">Antigua and Barbuda</option><option value="Argentina">Argentina</option><option value="Armenia">Armenia</option><option value="Australia">Australia</option><option value="Austria">Austria</option><option value="Azerbaijan">Azerbaijan</option><option value="Bahamas">Bahamas</option><option value="Bahrain">Bahrain</option><option value="Bangladesh">Bangladesh</option><option value="Barbados">Barbados</option><option value="Belarus">Belarus</option><option value="Belgium">Belgium</option><option value="Belize">Belize</option><option value="Benin">Benin</option><option value="Bhutan">Bhutan</option><option value="Bolivia">Bolivia</option><option value="Bosnia and Herzegovina">Bosnia and Herzegovina</option><option value="Botswana">Botswana</option><option value="Brazil">Brazil</option><option value="Brunei">Brunei</option><option value="Bulgaria">Bulgaria</option><option value="Burkina Faso">Burkina Faso</option><option value="Burundi">Burundi</option><option value="Cambodia">Cambodia</option><option value="Cameroon">Cameroon</option><option value="Canada">Canada</option><option value="Cape Verde">Cape Verde</option><option value="Central African Republic">Central African Republic</option><option value="Chad">Chad</option><option value="Chile">Chile</option><option value="China">China</option><option value="Colombia">Colombia</option><option value="Comoros">Comoros</option><option value="Congo (Brazzaville)">Congo (Brazzaville)</option><option value="Congo">Congo</option><option value="Costa Rica">Costa Rica</option><option value="Cote d\'Ivoire">Cote d\'Ivoire</option><option value="Croatia">Croatia</option><option value="Cuba">Cuba</option><option value="Cyprus">Cyprus</option><option value="Czech Republic">Czech Republic</option><option value="Denmark">Denmark</option><option value="Djibouti">Djibouti</option><option value="Dominica">Dominica</option><option value="Dominican Republic">Dominican Republic</option><option value="East Timor (Timor Timur)">East Timor (Timor Timur)</option><option value="Ecuador">Ecuador</option><option value="Egypt">Egypt</option><option value="El Salvador">El Salvador</option><option value="Equatorial Guinea">Equatorial Guinea</option><option value="Eritrea">Eritrea</option><option value="Estonia">Estonia</option><option value="Ethiopia">Ethiopia</option><option value="Fiji">Fiji</option><option value="Finland">Finland</option><option value="France">France</option><option value="Gabon">Gabon</option><option value="Gambia, The">Gambia, The</option><option value="Georgia">Georgia</option><option value="Germany">Germany</option><option value="Ghana">Ghana</option><option value="Greece">Greece</option><option value="Grenada">Grenada</option><option value="Guatemala">Guatemala</option><option value="Guinea">Guinea</option><option value="Guinea-Bissau">Guinea-Bissau</option><option value="Guyana">Guyana</option><option value="Haiti">Haiti</option><option value="Honduras">Honduras</option><option value="Hungary">Hungary</option><option value="Iceland">Iceland</option><option value="India">India</option><option value="Indonesia">Indonesia</option><option value="Iran">Iran</option><option value="Iraq">Iraq</option><option value="Ireland">Ireland</option><option value="Israel">Israel</option><option value="Italy">Italy</option><option value="Jamaica">Jamaica</option><option value="Japan">Japan</option><option value="Jordan">Jordan</option><option value="Kazakhstan">Kazakhstan</option><option value="Kenya">Kenya</option><option value="Kiribati">Kiribati</option><option value="Korea, North">Korea, North</option><option value="Korea, South">Korea, South</option><option value="Kuwait">Kuwait</option><option value="Kyrgyzstan">Kyrgyzstan</option><option value="Laos">Laos</option><option value="Latvia">Latvia</option><option value="Lebanon">Lebanon</option><option value="Lesotho">Lesotho</option><option value="Liberia">Liberia</option><option value="Libya">Libya</option><option value="Liechtenstein">Liechtenstein</option><option value="Lithuania">Lithuania</option><option value="Luxembourg">Luxembourg</option><option value="Macedonia">Macedonia</option><option value="Madagascar">Madagascar</option><option value="Malawi">Malawi</option><option value="Malaysia">Malaysia</option><option value="Maldives">Maldives</option><option value="Mali">Mali</option><option value="Malta">Malta</option><option value="Marshall Islands">Marshall Islands</option><option value="Mauritania">Mauritania</option><option value="Mauritius">Mauritius</option><option value="Mexico">Mexico</option><option value="Micronesia">Micronesia</option><option value="Moldova">Moldova</option><option value="Monaco">Monaco</option><option value="Mongolia">Mongolia</option><option value="Morocco">Morocco</option><option value="Mozambique">Mozambique</option><option value="Myanmar">Myanmar</option><option value="Namibia">Namibia</option><option value="Nauru">Nauru</option><option value="Nepal">Nepal</option><option value="Netherlands">Netherlands</option><option value="New Zealand">New Zealand</option><option value="Nicaragua">Nicaragua</option><option value="Niger">Niger</option><option value="Nigeria">Nigeria</option><option value="Norway">Norway</option><option value="Oman">Oman</option><option value="Pakistan">Pakistan</option><option value="Palau">Palau</option><option value="Panama">Panama</option><option value="Papua New Guinea">Papua New Guinea</option><option value="Paraguay">Paraguay</option><option value="Peru">Peru</option><option value="Philippines">Philippines</option><option value="Poland">Poland</option><option value="Portugal">Portugal</option><option value="Qatar">Qatar</option><option value="Romania">Romania</option><option value="Russia">Russia</option><option value="Rwanda">Rwanda</option><option value="Saint Kitts and Nevis">Saint Kitts and Nevis</option><option value="Saint Lucia">Saint Lucia</option><option value="Saint Vincent">Saint Vincent</option><option value="Samoa">Samoa</option><option value="San Marino">San Marino</option><option value="Sao Tome and Principe">Sao Tome and Principe</option><option value="Saudi Arabia">Saudi Arabia</option><option value="Senegal">Senegal</option><option value="Serbia and Montenegro">Serbia and Montenegro</option><option value="Seychelles">Seychelles</option><option value="Sierra Leone">Sierra Leone</option><option value="Singapore">Singapore</option><option value="Slovakia">Slovakia</option><option value="Slovenia">Slovenia</option><option value="Solomon Islands">Solomon Islands</option><option value="Somalia">Somalia</option><option value="South Africa">South Africa</option><option value="Spain">Spain</option><option value="Sri Lanka">Sri Lanka</option><option value="Sudan">Sudan</option><option value="Suriname">Suriname</option><option value="Swaziland">Swaziland</option><option value="Sweden">Sweden</option><option value="Switzerland">Switzerland</option><option value="Syria">Syria</option><option value="Taiwan">Taiwan</option><option value="Tajikistan">Tajikistan</option><option value="Tanzania">Tanzania</option><option value="Thailand">Thailand</option><option value="Togo">Togo</option><option value="Tonga">Tonga</option><option value="Trinidad and Tobago">Trinidad and Tobago</option><option value="Tunisia">Tunisia</option><option value="Turkey">Turkey</option><option value="Turkmenistan">Turkmenistan</option><option value="Tuvalu">Tuvalu</option><option value="Uganda">Uganda</option><option value="Ukraine">Ukraine</option><option value="United Arab Emirates">United Arab Emirates</option><option value="United Kingdom">United Kingdom</option><option value="United States">United States</option><option value="Uruguay">Uruguay</option><option value="Uzbekistan">Uzbekistan</option><option value="Vanuatu">Vanuatu</option><option value="Vatican City">Vatican City</option><option value="Venezuela">Venezuela</option><option value="Vietnam">Vietnam</option><option value="Yemen">Yemen</option><option value="Zambia">Zambia</option><option value="Zimbabwe">Zimbabwe</option></select><label class="mini_label" style="display: block;" id="' . $id . '_mini_label_country">' . $w_mini_labels[5] . '</span>';
803
  }
804
  $rep = '<div id="wdform_field' . $id . '" type="type_address" class="wdform_field" style="display: table-cell;">' . $arrows . '<div align="left" id="' . $id . '_label_sectionform_id_temp" class="' . $param['w_class'] . '" style="display: ' . $display_label . '; width: ' . $param['w_field_label_size'] . 'px; vertical-align:top;"><span id="' . $id . '_element_labelform_id_temp" class="label" style="vertical-align: top;">' . $label . '</span><span id="' . $id . '_required_elementform_id_temp" class="required" style="vertical-align: top;">' . $required_sym . '</span></div><div align="left" id="' . $id . '_element_sectionform_id_temp" class="' . $param['w_class'] . '" style="display: ' . $param['w_field_label_pos'] . ';"><input type="hidden" value="type_address" name="' . $id . '_typeform_id_temp" id="' . $id . '_typeform_id_temp"><input type="hidden" value="' . $param['w_required'] . '" name="' . $id . '_requiredform_id_temp" id="' . $id . '_requiredform_id_temp"><input type="hidden" value="' . $param['w_hide_label'] . '" name="' . $id . '_hide_labelform_id_temp" id="' . $id . '_hide_labelform_id_temp"/><input type="hidden" name="' . $id . '_disable_fieldsform_id_temp" id="' . $id . '_disable_fieldsform_id_temp" street1="' . $w_disabled_fields[0] . '" street2="' . $w_disabled_fields[1] . '" city="' . $w_disabled_fields[2] . '" state="' . $w_disabled_fields[3] . '" postal="' . $w_disabled_fields[4] . '" country="' . $w_disabled_fields[5] . '" us_states="' . $w_disabled_fields[6] . '"><div id="' . $id . '_div_address" style="width: ' . $param['w_size'] . 'px;">' . $address_fields . $hidden_inputs . '</div></div></div>';
805
  break;
799
  }
800
  if ( $w_disabled_fields[5] == 'no' ) {
801
  $g++;
802
+ $address_fields .= '<span style="float: ' . (($g % 2 == 0) ? 'right' : 'left') . '; width: 48%; padding-bottom: 8px;"><select type="text" id="' . $id . '_countryform_id_temp" name="' . ($id + 5) . '_countryform_id_temp" onchange="change_value(&quot;' . $id . '_countryform_id_temp&quot;)" style="width: 100%;" ' . $param['attributes'] . ' disabled><option value=""></option><option value="Afghanistan">Afghanistan</option><option value="Albania">Albania</option><option value="Algeria">Algeria</option><option value="Andorra">Andorra</option><option value="Angola">Angola</option><option value="Antigua and Barbuda">Antigua and Barbuda</option><option value="Argentina">Argentina</option><option value="Armenia">Armenia</option><option value="Australia">Australia</option><option value="Austria">Austria</option><option value="Azerbaijan">Azerbaijan</option><option value="Bahamas">Bahamas</option><option value="Bahrain">Bahrain</option><option value="Bangladesh">Bangladesh</option><option value="Barbados">Barbados</option><option value="Belarus">Belarus</option><option value="Belgium">Belgium</option><option value="Belize">Belize</option><option value="Benin">Benin</option><option value="Bhutan">Bhutan</option><option value="Bolivia">Bolivia</option><option value="Bosnia and Herzegovina">Bosnia and Herzegovina</option><option value="Botswana">Botswana</option><option value="Brazil">Brazil</option><option value="Brunei">Brunei</option><option value="Bulgaria">Bulgaria</option><option value="Burkina Faso">Burkina Faso</option><option value="Burundi">Burundi</option><option value="Cambodia">Cambodia</option><option value="Cameroon">Cameroon</option><option value="Canada">Canada</option><option value="Cape Verde">Cape Verde</option><option value="Central African Republic">Central African Republic</option><option value="Chad">Chad</option><option value="Chile">Chile</option><option value="China">China</option><option value="Colombia">Colombia</option><option value="Comoros">Comoros</option><option value="Congo (Brazzaville)">Congo (Brazzaville)</option><option value="Congo">Congo</option><option value="Costa Rica">Costa Rica</option><option value="Cote d\'Ivoire">Cote d\'Ivoire</option><option value="Croatia">Croatia</option><option value="Cuba">Cuba</option><option value="Curacao">Curacao</option><option value="Cyprus">Cyprus</option><option value="Czech Republic">Czech Republic</option><option value="Denmark">Denmark</option><option value="Djibouti">Djibouti</option><option value="Dominica">Dominica</option><option value="Dominican Republic">Dominican Republic</option><option value="East Timor (Timor Timur)">East Timor (Timor Timur)</option><option value="Ecuador">Ecuador</option><option value="Egypt">Egypt</option><option value="El Salvador">El Salvador</option><option value="Equatorial Guinea">Equatorial Guinea</option><option value="Eritrea">Eritrea</option><option value="Estonia">Estonia</option><option value="Ethiopia">Ethiopia</option><option value="Fiji">Fiji</option><option value="Finland">Finland</option><option value="France">France</option><option value="Gabon">Gabon</option><option value="Gambia, The">Gambia, The</option><option value="Georgia">Georgia</option><option value="Germany">Germany</option><option value="Ghana">Ghana</option><option value="Greece">Greece</option><option value="Grenada">Grenada</option><option value="Guatemala">Guatemala</option><option value="Guinea">Guinea</option><option value="Guinea-Bissau">Guinea-Bissau</option><option value="Guyana">Guyana</option><option value="Haiti">Haiti</option><option value="Honduras">Honduras</option><option value="Hungary">Hungary</option><option value="Iceland">Iceland</option><option value="India">India</option><option value="Indonesia">Indonesia</option><option value="Iran">Iran</option><option value="Iraq">Iraq</option><option value="Ireland">Ireland</option><option value="Israel">Israel</option><option value="Italy">Italy</option><option value="Jamaica">Jamaica</option><option value="Japan">Japan</option><option value="Jordan">Jordan</option><option value="Kazakhstan">Kazakhstan</option><option value="Kenya">Kenya</option><option value="Kiribati">Kiribati</option><option value="Korea, North">Korea, North</option><option value="Korea, South">Korea, South</option><option value="Kuwait">Kuwait</option><option value="Kyrgyzstan">Kyrgyzstan</option><option value="Laos">Laos</option><option value="Latvia">Latvia</option><option value="Lebanon">Lebanon</option><option value="Lesotho">Lesotho</option><option value="Liberia">Liberia</option><option value="Libya">Libya</option><option value="Liechtenstein">Liechtenstein</option><option value="Lithuania">Lithuania</option><option value="Luxembourg">Luxembourg</option><option value="Macedonia">Macedonia</option><option value="Madagascar">Madagascar</option><option value="Malawi">Malawi</option><option value="Malaysia">Malaysia</option><option value="Maldives">Maldives</option><option value="Mali">Mali</option><option value="Malta">Malta</option><option value="Marshall Islands">Marshall Islands</option><option value="Mauritania">Mauritania</option><option value="Mauritius">Mauritius</option><option value="Mexico">Mexico</option><option value="Micronesia">Micronesia</option><option value="Moldova">Moldova</option><option value="Monaco">Monaco</option><option value="Mongolia">Mongolia</option><option value="Morocco">Morocco</option><option value="Mozambique">Mozambique</option><option value="Myanmar">Myanmar</option><option value="Namibia">Namibia</option><option value="Nauru">Nauru</option><option value="Nepal">Nepal</option><option value="Netherlands">Netherlands</option><option value="New Zealand">New Zealand</option><option value="Nicaragua">Nicaragua</option><option value="Niger">Niger</option><option value="Nigeria">Nigeria</option><option value="Norway">Norway</option><option value="Oman">Oman</option><option value="Pakistan">Pakistan</option><option value="Palau">Palau</option><option value="Panama">Panama</option><option value="Papua New Guinea">Papua New Guinea</option><option value="Paraguay">Paraguay</option><option value="Peru">Peru</option><option value="Philippines">Philippines</option><option value="Poland">Poland</option><option value="Portugal">Portugal</option><option value="Qatar">Qatar</option><option value="Romania">Romania</option><option value="Russia">Russia</option><option value="Rwanda">Rwanda</option><option value="Saint Kitts and Nevis">Saint Kitts and Nevis</option><option value="Saint Lucia">Saint Lucia</option><option value="Saint Vincent">Saint Vincent</option><option value="Samoa">Samoa</option><option value="San Marino">San Marino</option><option value="Sao Tome and Principe">Sao Tome and Principe</option><option value="Saudi Arabia">Saudi Arabia</option><option value="Senegal">Senegal</option><option value="Serbia and Montenegro">Serbia and Montenegro</option><option value="Seychelles">Seychelles</option><option value="Sierra Leone">Sierra Leone</option><option value="Singapore">Singapore</option><option value="Slovakia">Slovakia</option><option value="Slovenia">Slovenia</option><option value="Solomon Islands">Solomon Islands</option><option value="Somalia">Somalia</option><option value="South Africa">South Africa</option><option value="Spain">Spain</option><option value="Sri Lanka">Sri Lanka</option><option value="Sudan">Sudan</option><option value="Suriname">Suriname</option><option value="Swaziland">Swaziland</option><option value="Sweden">Sweden</option><option value="Switzerland">Switzerland</option><option value="Syria">Syria</option><option value="Taiwan">Taiwan</option><option value="Tajikistan">Tajikistan</option><option value="Tanzania">Tanzania</option><option value="Thailand">Thailand</option><option value="Togo">Togo</option><option value="Tonga">Tonga</option><option value="Trinidad and Tobago">Trinidad and Tobago</option><option value="Tunisia">Tunisia</option><option value="Turkey">Turkey</option><option value="Turkmenistan">Turkmenistan</option><option value="Tuvalu">Tuvalu</option><option value="Uganda">Uganda</option><option value="Ukraine">Ukraine</option><option value="United Arab Emirates">United Arab Emirates</option><option value="United Kingdom">United Kingdom</option><option value="United States">United States</option><option value="Uruguay">Uruguay</option><option value="Uzbekistan">Uzbekistan</option><option value="Vanuatu">Vanuatu</option><option value="Vatican City">Vatican City</option><option value="Venezuela">Venezuela</option><option value="Vietnam">Vietnam</option><option value="Yemen">Yemen</option><option value="Zambia">Zambia</option><option value="Zimbabwe">Zimbabwe</option></select><label class="mini_label" style="display: block;" id="' . $id . '_mini_label_country">' . $w_mini_labels[5] . '</span>';
803
  }
804
  $rep = '<div id="wdform_field' . $id . '" type="type_address" class="wdform_field" style="display: table-cell;">' . $arrows . '<div align="left" id="' . $id . '_label_sectionform_id_temp" class="' . $param['w_class'] . '" style="display: ' . $display_label . '; width: ' . $param['w_field_label_size'] . 'px; vertical-align:top;"><span id="' . $id . '_element_labelform_id_temp" class="label" style="vertical-align: top;">' . $label . '</span><span id="' . $id . '_required_elementform_id_temp" class="required" style="vertical-align: top;">' . $required_sym . '</span></div><div align="left" id="' . $id . '_element_sectionform_id_temp" class="' . $param['w_class'] . '" style="display: ' . $param['w_field_label_pos'] . ';"><input type="hidden" value="type_address" name="' . $id . '_typeform_id_temp" id="' . $id . '_typeform_id_temp"><input type="hidden" value="' . $param['w_required'] . '" name="' . $id . '_requiredform_id_temp" id="' . $id . '_requiredform_id_temp"><input type="hidden" value="' . $param['w_hide_label'] . '" name="' . $id . '_hide_labelform_id_temp" id="' . $id . '_hide_labelform_id_temp"/><input type="hidden" name="' . $id . '_disable_fieldsform_id_temp" id="' . $id . '_disable_fieldsform_id_temp" street1="' . $w_disabled_fields[0] . '" street2="' . $w_disabled_fields[1] . '" city="' . $w_disabled_fields[2] . '" state="' . $w_disabled_fields[3] . '" postal="' . $w_disabled_fields[4] . '" country="' . $w_disabled_fields[5] . '" us_states="' . $w_disabled_fields[6] . '"><div id="' . $id . '_div_address" style="width: ' . $param['w_size'] . 'px;">' . $address_fields . $hidden_inputs . '</div></div></div>';
805
  break;
admin/views/{FMCheckpaypal.php → Checkpaypal.php} RENAMED
File without changes
admin/views/FMEditCountryinPopup.php CHANGED
@@ -71,7 +71,7 @@ class FMViewFromeditcountryinpopup {
71
  </div>
72
  <script>
73
  selec_coutries = [];
74
- coutries = ["", "Afghanistan", "Albania", "Algeria", "Andorra", "Angola", "Antigua and Barbuda", "Argentina", "Armenia", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bhutan", "Bolivia", "Bosnia and Herzegovina", "Botswana", "Brazil", "Brunei", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Central African Republic", "Chad", "Chile", "China", "Colombia", "Comoros", "Congo (Brazzaville)", "Congo", "Costa Rica", "Cote d'Ivoire", "Croatia", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "East Timor (Timor Timur)", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Fiji", "Finland", "France", "Gabon", "Gambia, The", "Georgia", "Germany", "Ghana", "Greece", "Grenada", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Honduras", "Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea, North", "Korea, South", "Kuwait", "Kyrgyzstan", "Laos", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania", "Luxembourg", "Macedonia", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Mauritania", "Mauritius", "Mexico", "Micronesia", "Moldova", "Monaco", "Mongolia", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Netherlands", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Norway", "Oman", "Pakistan", "Palau", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Poland", "Portugal", "Qatar", "Romania", "Russia", "Rwanda", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Serbia and Montenegro", "Seychelles", "Sierra Leone", "Singapore", "Slovakia", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "Spain", "Sri Lanka", "Sudan", "Suriname", "Swaziland", "Sweden", "Switzerland", "Syria", "Taiwan", "Tajikistan", "Tanzania", "Thailand", "Togo", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States", "Uruguay", "Uzbekistan", "Vanuatu", "Vatican City", "Venezuela", "Vietnam", "Yemen", "Zambia", "Zimbabwe"];
75
  select_ = window.parent.document.getElementById('<?php echo $field_id ?>_elementform_id_temp');
76
  n = select_.childNodes.length;
77
  for (i = 0; i < n; i++) {
71
  </div>
72
  <script>
73
  selec_coutries = [];
74
+ coutries = ["", "Afghanistan", "Albania", "Algeria", "Andorra", "Angola", "Antigua and Barbuda", "Argentina", "Armenia", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bhutan", "Bolivia", "Bosnia and Herzegovina", "Botswana", "Brazil", "Brunei", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Central African Republic", "Chad", "Chile", "China", "Colombia", "Comoros", "Congo (Brazzaville)", "Congo", "Costa Rica", "Cote d'Ivoire", "Croatia", "Cuba", "Curacao", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "East Timor (Timor Timur)", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Fiji", "Finland", "France", "Gabon", "Gambia, The", "Georgia", "Germany", "Ghana", "Greece", "Grenada", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Honduras", "Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea, North", "Korea, South", "Kuwait", "Kyrgyzstan", "Laos", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania", "Luxembourg", "Macedonia", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Mauritania", "Mauritius", "Mexico", "Micronesia", "Moldova", "Monaco", "Mongolia", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Netherlands", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Norway", "Oman", "Pakistan", "Palau", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Poland", "Portugal", "Qatar", "Romania", "Russia", "Rwanda", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Serbia and Montenegro", "Seychelles", "Sierra Leone", "Singapore", "Slovakia", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "Spain", "Sri Lanka", "Sudan", "Suriname", "Swaziland", "Sweden", "Switzerland", "Syria", "Taiwan", "Tajikistan", "Tanzania", "Thailand", "Togo", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States", "Uruguay", "Uzbekistan", "Vanuatu", "Vatican City", "Venezuela", "Vietnam", "Yemen", "Zambia", "Zimbabwe"];
75
  select_ = window.parent.document.getElementById('<?php echo $field_id ?>_elementform_id_temp');
76
  n = select_.childNodes.length;
77
  for (i = 0; i < n; i++) {
admin/views/FMPreview.php DELETED
@@ -1,25 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Class FMViewFormMakerPreview
5
- */
6
- class FMViewFormMakerPreview {
7
- /**
8
- * Display.
9
- *
10
- * @param array $params
11
- */
12
- public function display( $params ) {
13
- $form_id = $params['form_id'];
14
- $error_message = $params['error_message'];
15
- if ( !empty($form_id) && empty($error_message) ) {
16
- require_once WDFM()->plugin_dir . '/frontend/controllers/form_maker.php';
17
- $controller = new FMControllerForm_maker();
18
- echo $controller->execute($form_id);
19
- }
20
- else {
21
- echo $error_message;
22
- }
23
- die();
24
- }
25
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/views/Manage_fm.php CHANGED
@@ -275,8 +275,10 @@ class FMViewManage_fm extends FMAdminView {
275
  form_view = 1;
276
  form_view_count = 1;
277
  form_view_max = 1;
278
- form_fields_initial = '<?php echo addslashes($row->form_fields); ?>';
 
279
 
 
280
  theme_edit_url = '<?php echo add_query_arg( array('page' => 'themes_fm', 'task' =>'edit'), $page_url); ?>';
281
  jQuery(document).ready(function () {
282
  set_theme();
@@ -382,8 +384,8 @@ class FMViewManage_fm extends FMAdminView {
382
  <?php } ?>
383
  <div class="meta-box-sortables" style="margin-top:30px;">
384
  <div id="postexcerpt" class="postbox closed" >
385
- <button type="button" class="handlediv" aria-expanded="true">
386
- <span class="screen-reader-text"><?php _e('Toggle panel: Excerpt', WDFM()->prefix); ?></span>
387
  <span class="toggle-indicator" aria-hidden="true"></span>
388
  </button>
389
  <h2 class="hndle"><span><?php _e('Form Header', WDFM()->prefix); ?></span></h2>
@@ -462,22 +464,27 @@ class FMViewManage_fm extends FMAdminView {
462
  <div align="left" id="edit_page_navigation"></div>
463
  </div>
464
  </div>
465
- <div id="take" class="main">
466
  <?php echo $row->form_front; ?>
467
  <div class="wdform_column ui-sortable" id="add_field_cont">
468
- <div id="add_field" class="wdform_row ui-sortable-handle">
469
- <div type="type_text" class="wdform_field">
470
- <span class="dashicons dashicons-plus-alt add-new-button" onclick="popup_ready(); Enable(); return false;"></span>
471
- </div>
 
 
 
 
 
 
 
 
 
472
  </div>
473
  </div>
474
  </div>
475
  </fieldset>
476
  </div>
477
- <div class="first-time-use">
478
- <span class="first-time-use-close dashicons dashicons-no-alt"></span>
479
- <?php _e('Drag icon to the form to add a field.', WDFM()->prefix); ?>
480
- </div>
481
  <input type="hidden" name="form_front" id="form_front" />
482
  <input type="hidden" name="form_fields" id="form_fields" />
483
  <input type="hidden" name="pagination" id="pagination" />
@@ -512,6 +519,7 @@ class FMViewManage_fm extends FMAdminView {
512
  array('type' => 'checkbox', 'subtype' => '', 'title' => __('Multiple Choice', WDFM()->prefix)),
513
  array('type' => 'captcha', 'subtype' => 'recaptcha', 'title' => __('Recaptcha', WDFM()->prefix)),
514
  array('type' => 'button', 'subtype' => 'submit_reset', 'title' => __('Submit', WDFM()->prefix)),
 
515
  ),
516
  __('USER INFO FIELDS', WDFM()->prefix) => array(
517
  array('type' => 'text', 'subtype' => 'name', 'title' => __('Name', WDFM()->prefix)),
@@ -543,7 +551,6 @@ class FMViewManage_fm extends FMAdminView {
543
  array('type' => 'button', 'subtype' => 'button', 'title' => __('Custom Button', WDFM()->prefix)),
544
  array('type' => 'text', 'subtype' => 'password', 'title' => __('Password', WDFM()->prefix)),
545
  array('type' => 'text', 'subtype' => 'phone', 'title' => __('Phone-Area Code', WDFM()->prefix)),
546
- array('type' => 'captcha', 'subtype' => 'captcha', 'title' => __('Simple Captcha', WDFM()->prefix)),
547
  array('type' => 'captcha', 'subtype' => 'arithmetic_captcha', 'title' => __('Arithmetic Captcha', WDFM()->prefix)),
548
  ),
549
  __('PAYMENT', WDFM()->prefix) => array(
@@ -572,7 +579,7 @@ class FMViewManage_fm extends FMAdminView {
572
  <input class="field-types-filter" value="" placeholder="<?php _e('Filter', WDFM()->prefix); ?>" tabindex="-1" type="search" />
573
  </span>
574
  <div class="postbox filtered-fields hide">
575
- <button class="handlediv" type="button" aria-expanded="true">
576
  <span class="screen-reader-text">Toggle panel</span>
577
  <span class="toggle-indicator" aria-hidden="true"></span>
578
  </button>
@@ -585,7 +592,7 @@ class FMViewManage_fm extends FMAdminView {
585
  foreach ($fields as $section => $field) {
586
  ?>
587
  <div class="postbox<?php echo $section != __('BASIC FIELDS', WDFM()->prefix) ? " closed" : ""; ?>">
588
- <button class="handlediv" type="button" aria-expanded="true">
589
  <span class="screen-reader-text"><?php echo __('Toggle panel:', WDFM()->prefix) , $section; ?></span>
590
  <span class="toggle-indicator" aria-hidden="false"></span>
591
  </button>
@@ -1033,7 +1040,7 @@ class FMViewManage_fm extends FMAdminView {
1033
  ?>
1034
  </div>
1035
  <div class="postbox closed">
1036
- <button class="handlediv" type="button" aria-expanded="true">
1037
  <span class="screen-reader-text"><?php _e('Toggle panel:', WDFM()->prefix); ?></span>
1038
  <span class="toggle-indicator" aria-hidden="false"></span>
1039
  </button>
@@ -1258,7 +1265,7 @@ class FMViewManage_fm extends FMAdminView {
1258
  ?>
1259
  </div>
1260
  <div class="postbox closed">
1261
- <button class="handlediv" type="button" aria-expanded="true">
1262
  <span class="screen-reader-text"><?php _e('Toggle panel:', WDFM()->prefix); ?></span>
1263
  <span class="toggle-indicator" aria-hidden="false"></span>
1264
  </button>
@@ -1505,14 +1512,14 @@ class FMViewManage_fm extends FMAdminView {
1505
  <input type="text" name="paypal_email" id="paypal_email" value="<?php echo $row->paypal_email; ?>" class="text_area">
1506
  </div>
1507
  </div>
1508
- <div class="fm_payment_option_stripe error inline">
1509
  <?php
1510
  if ($stripe_addon['enable'] && !empty($stripe_addon['html']) ) {
1511
  echo $stripe_addon['html'];
1512
  }
1513
  else {
1514
  $stripe_add_on_link = '<a href="https://web-dorado.com/products/wordpress-form/add-ons/stripe.html" target="_blank">' . __('Form Maker Stripe Integration', WDFM()->prefix) . '</a>';
1515
- echo '<p>'. sprintf( __( "Please install %s add-on to use this feature.", WDFM()->prefix ), $stripe_add_on_link ) .'</p>';
1516
  }
1517
  ?>
1518
  </div>
@@ -1758,7 +1765,7 @@ class FMViewManage_fm extends FMAdminView {
1758
 
1759
  if($types[$key_select_or_input]=="type_address")
1760
  {
1761
- $w_countries = array("","Afghanistan","Albania","Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cambodia","Cameroon","Canada","Cape Verde","Central African Republic","Chad","Chile","China","Colombia","Comoros","Congo (Brazzaville)","Congo","Costa Rica","Cote d'Ivoire","Croatia","Cuba","Cyprus","Czech Republic","Denmark","Djibouti","Dominica","Dominican Republic","East Timor (Timor Timur)","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Ethiopia","Fiji","Finland","France","Gabon","Gambia, The","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Korea, North","Korea, South","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Macedonia","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","Norway","Oman","Pakistan","Palau","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia and Montenegro","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","Spain","Sri Lanka","Sudan","Suriname","Swaziland","Sweden","Switzerland","Syria","Taiwan","Tajikistan","Tanzania","Thailand","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States","Uruguay","Uzbekistan","Vanuatu","Vatican City","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe");
1762
  $w_options = '';
1763
  foreach($w_countries as $w_country)
1764
  {
@@ -2252,7 +2259,7 @@ class FMViewManage_fm extends FMAdminView {
2252
  </ul>
2253
  </span>
2254
  <span class="wd-group fm-popover fm-topbar fm-scrollbox fm-cat-show <?php echo $row->type != 'embedded' && $show_cats ? 'fm-show' : 'fm-hide' ?>">
2255
- <label class="wd-label"><?php _e("Display on these category's posts", WDFM()->prefix); ?></label>
2256
  <ul class="pp_display pp_display_on_categories"><?php
2257
  $categories = $params['categories'];
2258
  $selected_categories = $params['selected_categories'];
275
  form_view = 1;
276
  form_view_count = 1;
277
  form_view_max = 1;
278
+ form_fields_initial = '<?php echo rawurlencode(addslashes($row->form_fields)); ?>';
279
+ form_fields_initial = decodeURIComponent(form_fields_initial);
280
 
281
+ default_theme = '<?php echo $default_theme; ?>';
282
  theme_edit_url = '<?php echo add_query_arg( array('page' => 'themes_fm', 'task' =>'edit'), $page_url); ?>';
283
  jQuery(document).ready(function () {
284
  set_theme();
384
  <?php } ?>
385
  <div class="meta-box-sortables" style="margin-top:30px;">
386
  <div id="postexcerpt" class="postbox closed" >
387
+ <button type="button" class="button-link handlediv" aria-expanded="true">
388
+ <span class="screen-reader-text"><?php _e('Toggle panel: Form Header', WDFM()->prefix); ?></span>
389
  <span class="toggle-indicator" aria-hidden="true"></span>
390
  </button>
391
  <h2 class="hndle"><span><?php _e('Form Header', WDFM()->prefix); ?></span></h2>
464
  <div align="left" id="edit_page_navigation"></div>
465
  </div>
466
  </div>
467
+ <div id="take" class="main">
468
  <?php echo $row->form_front; ?>
469
  <div class="wdform_column ui-sortable" id="add_field_cont">
470
+
471
+ <div id="add_field" class="wdform_row ui-sortable-handle">
472
+ <div class="first-time-use">
473
+ <span class="first-time-use-close dashicons dashicons-no-alt"></span>
474
+ <?php _e('Drag icon to the form to add a field.', WDFM()->prefix); ?>
475
+ </div>
476
+
477
+ <div type="type_text" class="wdform_field">
478
+ <div class="add-new-button button-primary" onclick="popup_ready(); Enable(); return false;">
479
+ <span class="dashicons dashicons-move"></span>
480
+ <?php _e('New Field', WDFM()->prefix); ?>
481
+ </div>
482
+ </div>
483
  </div>
484
  </div>
485
  </div>
486
  </fieldset>
487
  </div>
 
 
 
 
488
  <input type="hidden" name="form_front" id="form_front" />
489
  <input type="hidden" name="form_fields" id="form_fields" />
490
  <input type="hidden" name="pagination" id="pagination" />
519
  array('type' => 'checkbox', 'subtype' => '', 'title' => __('Multiple Choice', WDFM()->prefix)),
520
  array('type' => 'captcha', 'subtype' => 'recaptcha', 'title' => __('Recaptcha', WDFM()->prefix)),
521
  array('type' => 'button', 'subtype' => 'submit_reset', 'title' => __('Submit', WDFM()->prefix)),
522
+ array('type' => 'captcha', 'subtype' => 'captcha', 'title' => __('Simple Captcha', WDFM()->prefix)),
523
  ),
524
  __('USER INFO FIELDS', WDFM()->prefix) => array(
525
  array('type' => 'text', 'subtype' => 'name', 'title' => __('Name', WDFM()->prefix)),
551
  array('type' => 'button', 'subtype' => 'button', 'title' => __('Custom Button', WDFM()->prefix)),
552
  array('type' => 'text', 'subtype' => 'password', 'title' => __('Password', WDFM()->prefix)),
553
  array('type' => 'text', 'subtype' => 'phone', 'title' => __('Phone-Area Code', WDFM()->prefix)),
 
554
  array('type' => 'captcha', 'subtype' => 'arithmetic_captcha', 'title' => __('Arithmetic Captcha', WDFM()->prefix)),
555
  ),
556
  __('PAYMENT', WDFM()->prefix) => array(
579
  <input class="field-types-filter" value="" placeholder="<?php _e('Filter', WDFM()->prefix); ?>" tabindex="-1" type="search" />
580
  </span>
581
  <div class="postbox filtered-fields hide">
582
+ <button class="button-link handlediv" type="button" aria-expanded="true">
583
  <span class="screen-reader-text">Toggle panel</span>
584
  <span class="toggle-indicator" aria-hidden="true"></span>
585
  </button>
592
  foreach ($fields as $section => $field) {
593
  ?>
594
  <div class="postbox<?php echo $section != __('BASIC FIELDS', WDFM()->prefix) ? " closed" : ""; ?>">
595
+ <button class="button-link handlediv" type="button" aria-expanded="true">
596
  <span class="screen-reader-text"><?php echo __('Toggle panel:', WDFM()->prefix) , $section; ?></span>
597
  <span class="toggle-indicator" aria-hidden="false"></span>
598
  </button>
1040
  ?>
1041
  </div>
1042
  <div class="postbox closed">
1043
+ <button class="button-link handlediv" type="button" aria-expanded="true">
1044
  <span class="screen-reader-text"><?php _e('Toggle panel:', WDFM()->prefix); ?></span>
1045
  <span class="toggle-indicator" aria-hidden="false"></span>
1046
  </button>
1265
  ?>
1266
  </div>
1267
  <div class="postbox closed">
1268
+ <button class="button-link handlediv" type="button" aria-expanded="true">
1269
  <span class="screen-reader-text"><?php _e('Toggle panel:', WDFM()->prefix); ?></span>
1270
  <span class="toggle-indicator" aria-hidden="false"></span>
1271
  </button>
1512
  <input type="text" name="paypal_email" id="paypal_email" value="<?php echo $row->paypal_email; ?>" class="text_area">
1513
  </div>
1514
  </div>
1515
+ <div class="fm_payment_option_stripe">
1516
  <?php
1517
  if ($stripe_addon['enable'] && !empty($stripe_addon['html']) ) {
1518
  echo $stripe_addon['html'];
1519
  }
1520
  else {
1521
  $stripe_add_on_link = '<a href="https://web-dorado.com/products/wordpress-form/add-ons/stripe.html" target="_blank">' . __('Form Maker Stripe Integration', WDFM()->prefix) . '</a>';
1522
+ echo '<div class="error inline"><p>'. sprintf( __( "Please install %s add-on to use this feature.", WDFM()->prefix ), $stripe_add_on_link ) .'</p></div>';
1523
  }
1524
  ?>
1525
  </div>
1765
 
1766
  if($types[$key_select_or_input]=="type_address")
1767
  {
1768
+ $w_countries = array("","Afghanistan","Albania","Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cambodia","Cameroon","Canada","Cape Verde","Central African Republic","Chad","Chile","China","Colombia","Comoros","Congo (Brazzaville)","Congo","Costa Rica","Cote d'Ivoire","Croatia","Cuba","Curacao","Cyprus","Czech Republic","Denmark","Djibouti","Dominica","Dominican Republic","East Timor (Timor Timur)","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Ethiopia","Fiji","Finland","France","Gabon","Gambia, The","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Korea, North","Korea, South","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Macedonia","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","Norway","Oman","Pakistan","Palau","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia and Montenegro","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","Spain","Sri Lanka","Sudan","Suriname","Swaziland","Sweden","Switzerland","Syria","Taiwan","Tajikistan","Tanzania","Thailand","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States","Uruguay","Uzbekistan","Vanuatu","Vatican City","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe");
1769
  $w_options = '';
1770
  foreach($w_countries as $w_country)
1771
  {
2259
  </ul>
2260
  </span>
2261
  <span class="wd-group fm-popover fm-topbar fm-scrollbox fm-cat-show <?php echo $row->type != 'embedded' && $show_cats ? 'fm-show' : 'fm-hide' ?>">
2262
+ <label class="wd-label"><?php _e("Display on these categories' posts", WDFM()->prefix); ?></label>
2263
  <ul class="pp_display pp_display_on_categories"><?php
2264
  $categories = $params['categories'];
2265
  $selected_categories = $params['selected_categories'];
admin/views/Submissions_fm.php CHANGED
@@ -217,12 +217,12 @@ class FMViewSubmissions_fm extends FMAdminView {
217
  <span class="sorting-indicator"></span>
218
  </a>
219
  </th>
220
- <th class="column-primary <?php if ( $order_by == "date" ) {
221
  echo $oder_class;
222
  }
223
  else {
224
  echo $oder_class_default;
225
- } ?> col-submit-date " <?php echo $style_date; ?> data-colname="<?php _e('Submit date', WDFM()->prefix);?>">
226
  <a href="" onclick="fm_set_input_value('order_by', 'date');
227
  fm_set_input_value('asc_or_desc', '<?php echo(($order_by == 'date' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>');
228
  fm_form_submit(event, 'admin_form')">
@@ -269,20 +269,21 @@ class FMViewSubmissions_fm extends FMAdminView {
269
  <span class="sorting-indicator"></span>
270
  </a>
271
  </th>
272
- <?php
 
273
  for ( $i = 0; $i < count($sorted_label_names); $i++ ) {
274
  $styleStr = $this->model->hide_or_not($lists['hide_label_list'], $sorted_labels_id[$i]);
275
  $field_title = $this->model->get_type_address($sorted_label_types[$i], $sorted_label_names_original[$i]);
276
-
277
  if ( $sorted_label_types[$i] == 'type_paypal_payment_status' || $sorted_label_types[$i] == 'type_stripe' ) {
278
- if ( $sorted_label_types[$i] != 'type_stripe' ) {
 
279
  ?>
280
  <th <?php echo $styleStr; ?> id="<?php echo $sorted_labels_id[$i] . '_fc'; ?>" class="table_large_col <?php echo $sorted_labels_id[$i] . '_fc ';
281
  if ( $order_by == $sorted_labels_id[$i] . "_field" ) {
282
  echo $oder_class . '"';
283
  }
284
  else {
285
- echo $oder_class_default . '"';
286
  } ?>" data-colname="<?php echo $field_title; ?>">
287
  <a href="" onclick="fm_set_input_value('order_by', '<?php echo $sorted_labels_id[$i] . '_field'; ?>'); fm_set_input_value('asc_or_desc', '<?php echo(($order_by == $sorted_labels_id[$i] . '_field' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>'); fm_form_submit(event, 'admin_form')">
288
  <span><?php echo $field_title; ?></span>
@@ -290,10 +291,7 @@ class FMViewSubmissions_fm extends FMAdminView {
290
  </a>
291
  </th>
292
  <?php
293
- }
294
- ?>
295
- <th class="table_large_col payment_info_fc" <?php echo $style_payment_info; ?>><?php _e('Payment Info', WDFM()->prefix); ?></th>
296
- <?php
297
  }
298
  else {
299
  ?>
@@ -312,8 +310,10 @@ class FMViewSubmissions_fm extends FMAdminView {
312
  </th>
313
  <?php
314
  }
315
- }
316
- ?>
 
 
317
  </tr>
318
  <tr id="fm-fields-filter" style="display: none;">
319
  <th></th>
@@ -498,7 +498,7 @@ class FMViewSubmissions_fm extends FMAdminView {
498
  <td class="table_large_col submitteremail_fc sub-align" id="submitteremail_fc" <?php echo $style_useremail; ?> data-colname="<?php _e('Submitter\'s Email Address', WDFM()->prefix);?>">
499
  <p><?php echo $useremail; ?></p>
500
  </td>
501
- <?php
502
  for ( $h = 0; $h < $m; $h++ ) {
503
  if ( $sorted_label_types[$h] == 'type_stripe' ) {
504
  continue;
@@ -507,7 +507,7 @@ class FMViewSubmissions_fm extends FMAdminView {
507
  for ( $g = 0; $g < count($temp); $g++ ) {
508
  if ( !isset($sorted_label_types[$g]) ) {
509
  continue;
510
- }
511
  $styleStr = $this->model->hide_or_not($lists['hide_label_list'], $sorted_labels_id[$h]);
512
  $temp[$g]->element_value = $sorted_label_types[$g] != 'type_file_upload' ? esc_html($temp[$g]->element_value) : $temp[$g]->element_value;
513
  if ( $temp[$g]->element_label == $sorted_labels_id[$h] ) {
@@ -582,8 +582,8 @@ class FMViewSubmissions_fm extends FMAdminView {
582
  <?php
583
  }
584
  else {
585
- // check is paypal status
586
  $ispaypal = false;
 
587
  if($sorted_labels_id[$h] == 0 && !empty($temp[$g]->element_value) ) {
588
  $ispaypal = true;
589
  }
@@ -932,6 +932,7 @@ class FMViewSubmissions_fm extends FMAdminView {
932
  document.getElementById('fm-fields-filter').style.display = "none";
933
  jQuery('.fm-bulk-actions .button.hide').hide();
934
  }
 
935
  return false;
936
  }
937
 
217
  <span class="sorting-indicator"></span>
218
  </a>
219
  </th>
220
+ <th id="submitsubmitdate_fc" class="column-primary col-submit-date <?php if ( $order_by == "date" ) {
221
  echo $oder_class;
222
  }
223
  else {
224
  echo $oder_class_default;
225
+ } ?>" <?php echo $style_date; ?> data-colname="<?php _e('Submit date', WDFM()->prefix);?>">
226
  <a href="" onclick="fm_set_input_value('order_by', 'date');
227
  fm_set_input_value('asc_or_desc', '<?php echo(($order_by == 'date' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>');
228
  fm_form_submit(event, 'admin_form')">
269
  <span class="sorting-indicator"></span>
270
  </a>
271
  </th>
272
+ <?php
273
+ $stripe_paypal = false;
274
  for ( $i = 0; $i < count($sorted_label_names); $i++ ) {
275
  $styleStr = $this->model->hide_or_not($lists['hide_label_list'], $sorted_labels_id[$i]);
276
  $field_title = $this->model->get_type_address($sorted_label_types[$i], $sorted_label_names_original[$i]);
 
277
  if ( $sorted_label_types[$i] == 'type_paypal_payment_status' || $sorted_label_types[$i] == 'type_stripe' ) {
278
+ $stripe_paypal = true;
279
+ if ( $sorted_label_types[$i] != 'type_stripe' ) {
280
  ?>
281
  <th <?php echo $styleStr; ?> id="<?php echo $sorted_labels_id[$i] . '_fc'; ?>" class="table_large_col <?php echo $sorted_labels_id[$i] . '_fc ';
282
  if ( $order_by == $sorted_labels_id[$i] . "_field" ) {
283
  echo $oder_class . '"';
284
  }
285
  else {
286
+ echo $oder_class_default . '"';
287
  } ?>" data-colname="<?php echo $field_title; ?>">
288
  <a href="" onclick="fm_set_input_value('order_by', '<?php echo $sorted_labels_id[$i] . '_field'; ?>'); fm_set_input_value('asc_or_desc', '<?php echo(($order_by == $sorted_labels_id[$i] . '_field' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>'); fm_form_submit(event, 'admin_form')">
289
  <span><?php echo $field_title; ?></span>
291
  </a>
292
  </th>
293
  <?php
294
+ }
 
 
 
295
  }
296
  else {
297
  ?>
310
  </th>
311
  <?php
312
  }
313
+ }
314
+ if( $stripe_paypal ) { ?>
315
+ <th id="payment_info_fc" class="column-autor payment_info_fc" <?php echo $style_payment_info; ?> data-colname="<?php _e('Payment Info', WDFM()->prefix); ?>"><?php _e('Payment Info', WDFM()->prefix); ?></th>
316
+ <?php } ?>
317
  </tr>
318
  <tr id="fm-fields-filter" style="display: none;">
319
  <th></th>
498
  <td class="table_large_col submitteremail_fc sub-align" id="submitteremail_fc" <?php echo $style_useremail; ?> data-colname="<?php _e('Submitter\'s Email Address', WDFM()->prefix);?>">
499
  <p><?php echo $useremail; ?></p>
500
  </td>
501
+ <?php
502
  for ( $h = 0; $h < $m; $h++ ) {
503
  if ( $sorted_label_types[$h] == 'type_stripe' ) {
504
  continue;
507
  for ( $g = 0; $g < count($temp); $g++ ) {
508
  if ( !isset($sorted_label_types[$g]) ) {
509
  continue;
510
+ }
511
  $styleStr = $this->model->hide_or_not($lists['hide_label_list'], $sorted_labels_id[$h]);
512
  $temp[$g]->element_value = $sorted_label_types[$g] != 'type_file_upload' ? esc_html($temp[$g]->element_value) : $temp[$g]->element_value;
513
  if ( $temp[$g]->element_label == $sorted_labels_id[$h] ) {
582
  <?php
583
  }
584
  else {
 
585
  $ispaypal = false;
586
+ // check is paypal status
587
  if($sorted_labels_id[$h] == 0 && !empty($temp[$g]->element_value) ) {
588
  $ispaypal = true;
589
  }
932
  document.getElementById('fm-fields-filter').style.display = "none";
933
  jQuery('.fm-bulk-actions .button.hide').hide();
934
  }
935
+ add_scroll_width();
936
  return false;
937
  }
938
 
css/form_maker_frontend.css CHANGED
@@ -318,13 +318,20 @@ div[type="type_file_upload"] .wdform-element-section {
318
  background-image: url(../images/refresh_black.png);
319
  }
320
 
321
- .fm-form .fm-right label span{
322
  float: right;
 
 
 
 
 
 
 
323
  }
324
 
325
  .fm-form .radio-div,
326
  .fm-form .checkbox-div {
327
- margin-right: 2px !important;
328
  }
329
 
330
  .fm-form .if-ie-div-label {
318
  background-image: url(../images/refresh_black.png);
319
  }
320
 
321
+ .fm-form .fm-right label span {
322
  float: right;
323
+ left: 5px;
324
+ position: relative;
325
+ top: 5px;
326
+ }
327
+
328
+ .forlabs label {
329
+ cursor: pointer;
330
  }
331
 
332
  .fm-form .radio-div,
333
  .fm-form .checkbox-div {
334
+ margin-right: 8px !important;
335
  }
336
 
337
  .fm-form .if-ie-div-label {
css/form_maker_tables.css CHANGED
@@ -175,12 +175,13 @@
175
  bottom: 115px;
176
  color: #0085ba;
177
  display: none;
178
- font-size: 15px;
179
  height: auto;
180
  padding: 5px;
181
- position: fixed;
182
- right: 95px;
183
- width: 200px;
 
184
  }
185
 
186
  #manage_form .first-time-use-close {
@@ -200,14 +201,17 @@
200
  width: 15px;
201
  }
202
 
 
 
 
 
203
  .fm-edit-content #add_field_cont {
204
  animation-duration: 1.5s;
205
  animation-iteration-count: 1;
206
  animation-fill-mode: both;
207
  color: #0085ba;
208
- display: none;
209
- position: fixed;
210
- bottom: 70px;
211
  right: 50px;
212
  min-width: 50px;
213
  padding: 0 !important;
@@ -222,8 +226,19 @@
222
  padding: 0;
223
  }
224
 
225
- #add_field_cont .add-new-button {
226
- font-size: 50px;
 
 
 
 
 
 
 
 
 
 
 
227
  }
228
 
229
  @-webkit-keyframes bounceInUp {
@@ -335,13 +350,14 @@
335
  }
336
 
337
  .field_types .postbox button.wd-button {
338
- margin: 2px 0px;
339
  white-space: normal;
340
  width: 48%;
341
  word-wrap: break-word;
342
  word-break: break-all;
343
  overflow: hidden;
344
- padding: 1px;
 
345
  }
346
 
347
  .add-popup .field-types-filter {
@@ -710,7 +726,7 @@ div.error_fm {
710
 
711
  .popup-body-col {
712
  height: 100%;
713
- width: 35%;
714
  display: inline-block;
715
  vertical-align: top;
716
  background-color: #ffffff;
@@ -729,7 +745,7 @@ div.error_fm {
729
  }
730
 
731
  .field_options-large {
732
- width: calc(65% - 30px);
733
  }
734
 
735
  .add-button-cont {
@@ -744,7 +760,7 @@ div.error_fm {
744
  }
745
 
746
  .popup-body-col:first-child {
747
- width: calc(30% - 30px);
748
  }
749
 
750
  @media screen and (max-width: 360px) {
@@ -1393,15 +1409,20 @@ table.admintable {
1393
  .submit_content tbody td {
1394
  min-height:30px;
1395
  }
1396
- .submit_content .col_id {
1397
- width: 55px;
1398
- max-width: 55px;
1399
- }
1400
 
1401
  .submit_content .column-autor {
1402
- min-width: 120px;
1403
  max-width: 200px;
1404
  }
 
 
 
 
 
 
 
 
 
1405
 
1406
  .submitid_fc {
1407
  min-width: 10px !important;
175
  bottom: 115px;
176
  color: #0085ba;
177
  display: none;
178
+ font-size: 14px;
179
  height: auto;
180
  padding: 5px;
181
+ right: 0;
182
+ width: 230px;
183
+ position: absolute;
184
+ bottom: 32px;
185
  }
186
 
187
  #manage_form .first-time-use-close {
201
  width: 15px;
202
  }
203
 
204
+ #add_field {
205
+ position: relative;
206
+ }
207
+
208
  .fm-edit-content #add_field_cont {
209
  animation-duration: 1.5s;
210
  animation-iteration-count: 1;
211
  animation-fill-mode: both;
212
  color: #0085ba;
213
+ position: absolute;
214
+ top: 80px;
 
215
  right: 50px;
216
  min-width: 50px;
217
  padding: 0 !important;
226
  padding: 0;
227
  }
228
 
229
+ #add_field_cont .add-new-button{
230
+ padding: 5px 15px 5px 5px;
231
+ color:#fff;
232
+ font-size: 16px;
233
+ line-height: 16px;
234
+ vertical-align: middle;
235
+ font-weight: 400;
236
+ height: 30px;
237
+ }
238
+
239
+ .add-new-button .dashicons-move:before {
240
+ content: "\f545";
241
+ font-size: 18px;
242
  }
243
 
244
  @-webkit-keyframes bounceInUp {
350
  }
351
 
352
  .field_types .postbox button.wd-button {
353
+ margin: 5px 0px;
354
  white-space: normal;
355
  width: 48%;
356
  word-wrap: break-word;
357
  word-break: break-all;
358
  overflow: hidden;
359
+ padding: 8px;
360
+ height: auto;
361
  }
362
 
363
  .add-popup .field-types-filter {
726
 
727
  .popup-body-col {
728
  height: 100%;
729
+ width: 30%;
730
  display: inline-block;
731
  vertical-align: top;
732
  background-color: #ffffff;
745
  }
746
 
747
  .field_options-large {
748
+ width: calc(70% - 15px);
749
  }
750
 
751
  .add-button-cont {
760
  }
761
 
762
  .popup-body-col:first-child {
763
+ width: calc(40% - 30px);
764
  }
765
 
766
  @media screen and (max-width: 360px) {
1409
  .submit_content tbody td {
1410
  min-height:30px;
1411
  }
 
 
 
 
1412
 
1413
  .submit_content .column-autor {
1414
+ min-width: 130px;
1415
  max-width: 200px;
1416
  }
1417
+ .submit_content #submitid_fc {
1418
+ width: 55px;
1419
+ max-width: 55px;
1420
+ }
1421
+ .submit_content #submitsubmitdate_fc,
1422
+ .submit_content #submitterusername_fc,
1423
+ .submit_content #submitteremail_fc {
1424
+ min-width: 165px;
1425
+ }
1426
 
1427
  .submitid_fc {
1428
  min-width: 10px !important;
css/style.css CHANGED
@@ -470,6 +470,7 @@ input:focus{
470
  }
471
 
472
  .fm-edit-content {
 
473
  background:#fff;
474
  margin: 20px 0;
475
  padding: 15px 10px;
470
  }
471
 
472
  .fm-edit-content {
473
+ position: relative;
474
  background:#fff;
475
  margin: 20px 0;
476
  padding: 15px 10px;
form-maker.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Form Maker
4
  * Plugin URI: https://web-dorado.com/products/form-maker-wordpress.html
5
  * Description: This plugin is a modern and advanced tool for easy and fast creating of a WordPress Form. The backend interface is intuitive and user friendly which allows users far from scripting and programming to create WordPress Forms.
6
- * Version: 1.12.0
7
  * Author: WebDorado Form Builder Team
8
  * Author URI: https://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -88,8 +88,8 @@ final class WDFM {
88
  $this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
89
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
90
  $this->main_file = plugin_basename(__FILE__);
91
- $this->plugin_version = '1.12.0';
92
- $this->db_version = '2.12.0';
93
  $this->menu_slug = 'manage_fm';
94
  $this->prefix = 'form_maker';
95
  $this->css_prefix = 'fm_';
@@ -149,13 +149,15 @@ final class WDFM {
149
  add_action('admin_head', array($this, 'form_maker_admin_ajax'));//js variables for admin.
150
 
151
  // Form maker shortcodes.
152
- add_shortcode('FormPreview', array($this, 'fm_form_preview_shortcode'));
153
- add_shortcode('Form', array($this, 'fm_shortcode'));
154
- if ($this->is_pro) {
155
- add_shortcode('contact_form', array($this, 'fm_shortcode'));
156
- add_shortcode('wd_contact_form', array($this, 'fm_shortcode'));
 
 
 
157
  }
158
- add_shortcode('email_verification', array($this, 'fm_email_verification_shortcode'));
159
  // Action to display not emedded type forms.
160
  if (!is_admin() && !in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php'))) {
161
  add_action('wp_footer', array($this, 'FM_front_end_main'));
@@ -1110,3 +1112,90 @@ function wd_form_maker($id, $type = 'embedded') {
1110
  $form = $controller->execute($id, $type);
1111
  echo $form;
1112
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  * Plugin Name: Form Maker
4
  * Plugin URI: https://web-dorado.com/products/form-maker-wordpress.html
5
  * Description: This plugin is a modern and advanced tool for easy and fast creating of a WordPress Form. The backend interface is intuitive and user friendly which allows users far from scripting and programming to create WordPress Forms.
6
+ * Version: 1.12.2
7
  * Author: WebDorado Form Builder Team
8
  * Author URI: https://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
88
  $this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
89
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
90
  $this->main_file = plugin_basename(__FILE__);
91
+ $this->plugin_version = '1.12.2';
92
+ $this->db_version = '2.12.2';
93
  $this->menu_slug = 'manage_fm';
94
  $this->prefix = 'form_maker';
95
  $this->css_prefix = 'fm_';
149
  add_action('admin_head', array($this, 'form_maker_admin_ajax'));//js variables for admin.
150
 
151
  // Form maker shortcodes.
152
+ if ( !is_admin() ) {
153
+ add_shortcode('FormPreview', array($this, 'fm_form_preview_shortcode'));
154
+ add_shortcode('Form', array($this, 'fm_shortcode'));
155
+ if ($this->is_pro) {
156
+ add_shortcode('contact_form', array($this, 'fm_shortcode'));
157
+ add_shortcode('wd_contact_form', array($this, 'fm_shortcode'));
158
+ }
159
+ add_shortcode('email_verification', array($this, 'fm_email_verification_shortcode'));
160
  }
 
161
  // Action to display not emedded type forms.
162
  if (!is_admin() && !in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php'))) {
163
  add_action('wp_footer', array($this, 'FM_front_end_main'));
1112
  $form = $controller->execute($id, $type);
1113
  echo $form;
1114
  }
1115
+
1116
+ /**
1117
+ * Show notice to install backup plugin
1118
+ */
1119
+ function fm_bp_install_notice() {
1120
+ // Remove old notice.
1121
+ if ( get_option('wds_bk_notice_status') !== FALSE ) {
1122
+ update_option('wds_bk_notice_status', '1', 'no');
1123
+ }
1124
+
1125
+ // Show notice only on plugin pages.
1126
+ if ( !isset($_GET['page']) || strpos(esc_html($_GET['page']), '_fm') === FALSE ) {
1127
+ return '';
1128
+ }
1129
+
1130
+ $meta_value = get_option('wd_bk_notice_status');
1131
+ if ( $meta_value === '' || $meta_value === FALSE ) {
1132
+ ob_start();
1133
+ $prefix = WDFM()->prefix;
1134
+ $nicename = WDFM()->nicename;
1135
+ $url = WDFM()->plugin_url;
1136
+ $dismiss_url = add_query_arg(array( 'action' => 'wd_bp_dismiss' ), admin_url('admin-ajax.php'));
1137
+ $install_url = esc_url(wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=backup-wd'), 'install-plugin_backup-wd'));
1138
+ ?>
1139
+ <div class="notice notice-info" id="wd_bp_notice_cont">
1140
+ <p>
1141
+ <img id="wd_bp_logo_notice" src="<?php echo $url . '/images/logo.png'; ?>" />
1142
+ <?php echo sprintf(__("%s advises: Install brand new FREE %s plugin to keep your forms and website safe.", $prefix), $nicename, '<a href="https://wordpress.org/plugins/backup-wd/" title="' . __("More details", $prefix) . '" target="_blank">' . __("Backup WD", $prefix) . '</a>'); ?>
1143
+ <a class="button button-primary" href="<?php echo $install_url; ?>">
1144
+ <span onclick="jQuery.post('<?php echo $dismiss_url; ?>');"><?php _e("Install", $prefix); ?></span>
1145
+ </a>
1146
+ </p>
1147
+ <button type="button" class="wd_bp_notice_dissmiss notice-dismiss" onclick="jQuery('#wd_bp_notice_cont').hide(); jQuery.post('<?php echo $dismiss_url; ?>');"><span class="screen-reader-text"></span></button>
1148
+ </div>
1149
+ <style>
1150
+ @media only screen and (max-width: 500px) {
1151
+ body #wd_backup_logo {
1152
+ max-width: 100%;
1153
+ }
1154
+ body #wd_bp_notice_cont p {
1155
+ padding-right: 25px !important;
1156
+ }
1157
+ }
1158
+ #wd_bp_logo_notice {
1159
+ width: 40px;
1160
+ float: left;
1161
+ margin-right: 10px;
1162
+ }
1163
+ #wd_bp_notice_cont {
1164
+ position: relative;
1165
+ }
1166
+ #wd_bp_notice_cont a {
1167
+ margin: 0 5px;
1168
+ }
1169
+ #wd_bp_notice_cont .dashicons-dismiss:before {
1170
+ content: "\f153";
1171
+ background: 0 0;
1172
+ color: #72777c;
1173
+ display: block;
1174
+ font: 400 16px/20px dashicons;
1175
+ speak: none;
1176
+ height: 20px;
1177
+ text-align: center;
1178
+ width: 20px;
1179
+ -webkit-font-smoothing: antialiased;
1180
+ -moz-osx-font-smoothing: grayscale;
1181
+ }
1182
+ .wd_bp_notice_dissmiss {
1183
+ margin-top: 5px;
1184
+ }
1185
+ </style>
1186
+ <?php
1187
+ echo ob_get_clean();
1188
+ }
1189
+ }
1190
+
1191
+ if ( !is_dir(plugin_dir_path(__DIR__) . 'backup-wd') ) {
1192
+ add_action('admin_notices', 'fm_bp_install_notice');
1193
+ }
1194
+
1195
+ if ( !function_exists('wd_bps_install_notice_status') ) {
1196
+ // Add usermeta to db.
1197
+ function wd_bps_install_notice_status() {
1198
+ update_option('wd_bk_notice_status', '1', 'no');
1199
+ }
1200
+ add_action('wp_ajax_wd_bp_dismiss', 'wd_bps_install_notice_status');
1201
+ }
form_maker_insert.php CHANGED
@@ -287,7 +287,7 @@ class WDFMInsert {
287
  $wpdb->query("INSERT INTO `" . $wpdb->prefix . "formmaker` (`id`, `title`, `type`, `mail`, `form_front`, `theme`, `javascript`, `submit_text`, `url`, `submit_text_type`, `script_mail`, `script_mail_user`, `counter`, `published`, `label_order`, `label_order_current`, `article_id`, `pagination`, `show_title`, `show_numbers`, `public_key`, `private_key`, `recaptcha_theme`, `paypal_mode`, `checkout_mode`, `paypal_email`, `payment_currency`, `tax`, `form_fields`, `savedb`, `sendemail`, `requiredmark`, `from_mail`, `from_name`, `reply_to`, `send_to`, `autogen_layout`, `custom_front`, `mail_from_user`, `mail_from_name_user`, `reply_to_user`, `condition`, `mail_cc`, `mail_cc_user`, `mail_bcc`, `mail_bcc_user`, `mail_subject`, `mail_subject_user`, `mail_mode`, `mail_mode_user`, `mail_attachment`, `mail_attachment_user`, `user_id_wd`, `sortable`, `frontend_submit_fields`, `frontend_submit_stat_fields`, `mail_emptyfields`, `mail_verify`, `mail_verify_expiretime`, `mail_verification_post_id`, `save_uploads`, `header_title`, `header_description`, `header_image_url`, `header_image_animation`, `header_hide_image`) VALUES (2, 'Contact Us', 'embedded', '', '<div class=\"wdform-page-and-images\" style=\"display:table; border-top:0px solid black;\"><div id=\"form_id_tempform_view1\" class=\"wdform_page\" page_title=\"Untitled page\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"false\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"1\" class=\"wdform_row ui-sortable-handle\">%1 - Name:%</div><div wdid=\"2\" class=\"wdform_row ui-sortable-handle\">%2 - Enter your E-mail:%</div><div wdid=\"4\" class=\"wdform_row ui-sortable-handle\">%4 - CMS%</div><div wdid=\"5\" class=\"wdform_row ui-sortable-handle\">%5 - Extension%</div><div wdid=\"6\" class=\"wdform_row ui-sortable-handle\">%6 - Plugin%</div><div wdid=\"7\" class=\"wdform_row ui-sortable-handle\">%7 - Message%</div><div wdid=\"8\" class=\"wdform_row ui-sortable-handle\">%8 - type_submit_reset_8%</div></div></div><div valign=\"top\" class=\"wdform_footer\" style=\"width: 100%;\"><div style=\"width: 100%;\"><div style=\"width: 100%; display: table; padding-top:10px;\"><div style=\"display: table-row-group;\"><div id=\"form_id_temppage_nav1\" style=\"display: table-row;\"></div></div></div></div></div></div></div>', '2', '// Occurs before the form is loaded\r\nfunction before_load() { \r\n} \r\n// Occurs just before submitting the form\r\nfunction before_submit() {\r\n // IMPORTANT! If you want to interrupt (stop) the submitting of the form, this function should return true. You don''t need to return any value if you don''t want to stop the submission.\r\n} \r\n// Occurs just before resetting the form\r\nfunction before_reset() { \r\n}', '', '', '1', '%all%', '%all%', '9', '1', '1#**id**#Name:#**label**#type_name#****#2#**id**#Enter your E-mail:#**label**#type_submitter_mail#****#4#**id**#CMS#**label**#type_radio#****#5#**id**#Extension#**label**#type_own_select#****#6#**id**#Plugin#**label**#type_own_select#****#7#**id**#Message#**label**#type_textarea#****#8#**id**#type_submit_reset_8#**label**#type_submit_reset#****#3#**id**#Message subject#**label**#type_text#****##**id**##**label**##****#', '1#**id**#Name:#**label**#type_name#****#2#**id**#Enter your E-mail:#**label**#type_submitter_mail#****#4#**id**#CMS#**label**#type_radio#****#5#**id**#Extension#**label**#type_own_select#****#6#**id**#Plugin#**label**#type_own_select#****#7#**id**#Message#**label**#type_textarea#****#8#**id**#type_submit_reset_8#**label**#type_submit_reset#****#', '0', 'none', 'false', 'true', '', '', '', '1', 'testmode', '', '', '0', '1*:*id*:*type_name*:*type*:*Name:*:*w_field_label*:*500*:*w_field_label_size*:*top*:*w_field_label_pos*:*First***Last*******:*w_first_val*:*First***Last*******:*w_title*:*Title*********Middle*:*w_mini_labels*:*250*:*w_size*:*normal*:*w_name_format*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no***no*:*w_name_fields*:*no*:*w_autofill*:**:*new_field*:*2*:*id*:*type_submitter_mail*:*type*:*Enter your E-mail:*:*w_field_label*:*500*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*500*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no*:*w_verification*:*E-mail confirmation:*:*w_verification_label*:**:*w_verification_placeholder*:*no*:*w_autofill*:**:*new_field*:*4*:*id*:*type_radio*:*type*:*CMS*:*w_field_label*:*500*:*w_field_label_size*:*top*:*w_field_label_pos*:*left*:*w_field_option_pos*:*hor*:*w_flow*:*Joomla!***Wordpress*:*w_choices*:*false***false*:*w_choices_checked*:*1*:*w_rowcol*:*yes*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*no*:*w_value_disabled*:*Joomla!***Wordpress*:*w_choices_value*:*****:*w_choices_params*:**:*w_class*:**:*new_field*:*5*:*id*:*type_own_select*:*type*:*Extension*:*w_field_label*:*500*:*w_field_label_size*:*top*:*w_field_label_pos*:*500*:*w_size*:*Select value***Form Maker***Gallery WD***Spider Calendar*:*w_choices*:*true***false***false***false*:*w_choices_checked*:*true***false***false***false*:*w_choices_disabled*:*yes*:*w_required*:*no*:*w_value_disabled*:****Form Maker***Gallery WD***Spider Calendar*:*w_choices_value*:***********:*w_choices_params*:*wdform_select*:*w_class*:**:*new_field*:*6*:*id*:*type_own_select*:*type*:*Plugin*:*w_field_label*:*500*:*w_field_label_size*:*top*:*w_field_label_pos*:*500*:*w_size*:*Select value***Form Maker***Photo Gallery***Ecommerce WD*:*w_choices*:*true***false***false***false*:*w_choices_checked*:*true***false***false***false*:*w_choices_disabled*:*yes*:*w_required*:*no*:*w_value_disabled*:****Form Maker***Photo Gallery***Ecommerce WD*:*w_choices_value*:***********:*w_choices_params*:*wdform_select*:*w_class*:**:*new_field*:*7*:*id*:*type_textarea*:*type*:*Message*:*w_field_label*:*500*:*w_field_label_size*:*top*:*w_field_label_pos*:*500*:*w_size_w*:*120*:*w_size_h*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*8*:*id*:*type_submit_reset*:*type*:*type_submit_reset_8*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*true*:*w_act*:**:*new_field*:*', '1', '1', '*', '', '', '', '', '1', '', '', '', '', '1*:*show_hide*:*5*:*field_label*:*and*:*all_any*:*4***==***Joomla!*:*next_condition*:**:*new_condition*:*1*:*show_hide*:*6*:*field_label*:*and*:*all_any*:*4***==***Wordpress*:*next_condition*:**:*new_condition*:*', '', '', '', '', '', '', '1', '1', '1', '1', 'administrator,', '1', '', '', '0', '0', '0', '4501', '1', 'Contact Us', 'You may contact us by filling in this form any time you need professional support or have any questions. You can also fill in the form to leave your comments or feedback.', '" . WDFM()->plugin_url . "/images/demo/2.png', 'flash', '1');");
288
  $wpdb->query("INSERT INTO `" . $wpdb->prefix . "formmaker` (`id`, `title`, `type`, `mail`, `form_front`, `theme`, `javascript`, `submit_text`, `url`, `submit_text_type`, `script_mail`, `script_mail_user`, `counter`, `published`, `label_order`, `label_order_current`, `article_id`, `pagination`, `show_title`, `show_numbers`, `public_key`, `private_key`, `recaptcha_theme`, `paypal_mode`, `checkout_mode`, `paypal_email`, `payment_currency`, `tax`, `form_fields`, `savedb`, `sendemail`, `requiredmark`, `from_mail`, `from_name`, `reply_to`, `send_to`, `autogen_layout`, `custom_front`, `mail_from_user`, `mail_from_name_user`, `reply_to_user`, `condition`, `mail_cc`, `mail_cc_user`, `mail_bcc`, `mail_bcc_user`, `mail_subject`, `mail_subject_user`, `mail_mode`, `mail_mode_user`, `mail_attachment`, `mail_attachment_user`, `user_id_wd`, `sortable`, `frontend_submit_fields`, `frontend_submit_stat_fields`, `mail_emptyfields`, `mail_verify`, `mail_verify_expiretime`, `mail_verification_post_id`, `save_uploads`, `header_title`, `header_description`, `header_image_url`, `header_image_animation`, `header_hide_image`) VALUES ('0', 'Cupcake Order Form', 'embedded', '', '<div class=\"wdform-page-and-images\" style=\"display:table; border-top:0px solid black;\"><div id=\"form_id_tempform_view1\" class=\"wdform_page\" page_title=\"Untitled page\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"false\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"1\" class=\"wdform_row ui-sortable-handle\">%1 - Choose your date for pick up:%</div></div><div class=\"wdform_column ui-sortable\"><div wdid=\"2\" class=\"wdform_row ui-sortable-handle\">%2 - Time:%</div></div></div><div wdid=\"6\" type=\"type_section_break\" class=\"wdform_tr_section_break\">%6 - custom_6%</div><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"3\" class=\"wdform_row ui-sortable-handle\">%3 - Full Name:%</div></div></div><div wdid=\"7\" type=\"type_section_break\" class=\"wdform_tr_section_break\">%7 - custom_7%</div><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"4\" class=\"wdform_row ui-sortable-handle\">%4 - E-mail:%</div><div wdid=\"8\" class=\"wdform_row ui-sortable-handle\">%8 - Cupcakes Flavors (1 doz. minimum)%</div></div><div class=\"wdform_column ui-sortable\"><div wdid=\"5\" class=\"wdform_row ui-sortable-handle\">%5 - Mobile/Phone Number:%</div><div wdid=\"9\" class=\"wdform_row ui-sortable-handle\">%9 - Choose your butter cream frosting%</div></div></div><div wdid=\"11\" type=\"type_section_break\" class=\"wdform_tr_section_break\">%11 - custom_11%</div><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"10\" class=\"wdform_row ui-sortable-handle\">%10 - Total:%</div><div wdid=\"15\" class=\"wdform_row ui-sortable-handle\">%15 - Upload an image of cupcakes you like so that I can have an idea of what you want.%</div><div wdid=\"14\" class=\"wdform_row ui-sortable-handle\">%14 - Details (if any):%</div></div></div><div wdid=\"16\" type=\"type_section_break\" class=\"wdform_tr_section_break\">%16 - custom_16%</div><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"12\" class=\"wdform_row ui-sortable-handle\">%12 - custom_12%</div><div wdid=\"13\" class=\"wdform_row ui-sortable-handle\">%13 - type_submit_reset_13%</div></div></div><div valign=\"top\" class=\"wdform_footer\" style=\"width: 100%;\"><div style=\"width: 100%;\"><div style=\"width: 100%; display: table; padding-top:10px;\"><div style=\"display: table-row-group;\"><div id=\"form_id_temppage_nav1\" style=\"display: table-row;\"></div></div></div></div></div></div></div>', '10', '// Occurs before the form is loaded\r\nfunction before_load() { \r\n} \r\n// Occurs just before submitting the form\r\nfunction before_submit() {\r\n // IMPORTANT! If you want to interrupt (stop) the submitting of the form, this function should return true. You don''t need to return any value if you don''t want to stop the submission.\r\n} \r\n// Occurs just before resetting the form\r\nfunction before_reset() { \r\n}', '', '', '1', '%all%', '%all%', '17', '1', '1#**id**#Choose your date for pick up:#**label**#type_date_new#****#2#**id**#Time:#**label**#type_time#****#3#**id**#Full Name:#**label**#type_name#****#4#**id**#E-mail:#**label**#type_submitter_mail#****#8#**id**#Cupcakes Flavors (1 doz. minimum)#**label**#type_paypal_checkbox#****#5#**id**#Mobile/Phone Number:#**label**#type_phone#****#9#**id**#Choose your butter cream frosting#**label**#type_paypal_checkbox#****#10#**id**#Total:#**label**#type_paypal_total#****#15#**id**#Upload an image of cupcakes you like so that I can have an idea of what you want.#**label**#type_file_upload#****#14#**id**#Details (if any):#**label**#type_textarea#****#12#**id**#custom_12#**label**#type_editor#****#13#**id**#type_submit_reset_13#**label**#type_submit_reset#****##**id**##**label**##****#', '1#**id**#Choose your date for pick up:#**label**#type_date_new#****#2#**id**#Time:#**label**#type_time#****#3#**id**#Full Name:#**label**#type_name#****#4#**id**#E-mail:#**label**#type_submitter_mail#****#8#**id**#Cupcakes Flavors (1 doz. minimum)#**label**#type_paypal_checkbox#****#5#**id**#Mobile/Phone Number:#**label**#type_phone#****#9#**id**#Choose your butter cream frosting#**label**#type_paypal_checkbox#****#10#**id**#Total:#**label**#type_paypal_total#****#15#**id**#Upload an image of cupcakes you like so that I can have an idea of what you want.#**label**#type_file_upload#****#14#**id**#Details (if any):#**label**#type_textarea#****#12#**id**#custom_12#**label**#type_editor#****#13#**id**#type_submit_reset_13#**label**#type_submit_reset#****#', '0', 'none', 'false', 'true', '', '', '', '0', 'testmode', '', 'USD', '0', '1*:*id*:*type_date_new*:*type*:*Choose your date for pick up:*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_date*:*no*:*w_required*:*no*:*w_show_image*:**:*w_class*:*mm/dd/yy*:*w_format*:*0*:*w_start_day*:**:*w_default_date*:**:*w_min_date*:**:*w_max_date*:**:*w_invalid_dates*:*yes***yes***yes***yes***yes***yes***yes*:*w_show_days*:*yes*:*w_hide_time*:*...*:*w_but_val*:*no*:*w_disable_past_days*:**:*new_field*:*2*:*id*:*type_time*:*type*:*Time:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*24*:*w_time_type*:*0*:*w_am_pm*:*0*:*w_sec*:**:*w_hh*:**:*w_mm*:**:*w_ss*:*HH***MM***SS***AM/PM*:*w_mini_labels*:*no*:*w_required*:**:*w_class*:**:*new_field*:*6*:*id*:*type_section_break*:*type*:*custom_6*:*w_field_label*:*<div class=\"wdform-section-break-div\" style=\"min-width: 300px; border-top: 1px solid;\" data-mce-style=\"min-width: 300px; border-top: 1px solid;\"><br></div>*:*w_editor*:**:*new_field*:*3*:*id*:*type_name*:*type*:*Full Name:*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*First***Last*******:*w_first_val*:*First***Last*******:*w_title*:*Title*********Middle*:*w_mini_labels*:*200*:*w_size*:*normal*:*w_name_format*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no***no*:*w_name_fields*:*no*:*w_autofill*:**:*new_field*:*7*:*id*:*type_section_break*:*type*:*custom_7*:*w_field_label*:*<div class=\"wdform-section-break-div\" style=\"min-width: 300px; border-top:1px solid\"></div>*:*w_editor*:**:*new_field*:*4*:*id*:*type_submitter_mail*:*type*:*E-mail:*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no*:*w_verification*:*E-mail confirmation:*:*w_verification_label*:**:*w_verification_placeholder*:*no*:*w_autofill*:**:*new_field*:*8*:*id*:*type_paypal_checkbox*:*type*:*Cupcakes Flavors (1 doz. minimum)*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*left*:*w_field_option_pos*:*no*:*w_hide_label*:*ver*:*w_flow*:*Red Velvet ($15.00)***Vanilla ($10.00)***Chocolate ($12.00)***Guinness ($15.00)***Coconut ($12.00)***Lemon ($10.00)***Chocolate Mint ($12.00)*:*w_choices*:*15***10***12***15***12***10***12*:*w_choices_price*:*false***false***false***false***false***false***false*:*w_choices_checked*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:********************:*w_choices_params*:**:*w_class*:**:*w_property*:**:*w_property_values*:*yes*:*w_quantity*:*1*:*w_quantity_value*:**:*new_field*:*5*:*id*:*type_phone*:*type*:*Mobile/Phone Number:*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*150*:*w_size*:*****:*w_first_val*:*****:*w_title*:*Area Code***Phone Number*:*w_mini_labels*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*9*:*id*:*type_paypal_checkbox*:*type*:*Choose your butter cream frosting*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*left*:*w_field_option_pos*:*no*:*w_hide_label*:*ver*:*w_flow*:*Vanilla***Chocolate***Cream Cheese - add $3.00***Salted Caramel***Guinness***Almond***Coconut*:*w_choices*:*0***0***3***0***0***0***0*:*w_choices_price*:*false***false***false***false***false***false***false*:*w_choices_checked*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:********************:*w_choices_params*:**:*w_class*:**:*w_property*:**:*w_property_values*:*no*:*w_quantity*:*1*:*w_quantity_value*:**:*new_field*:*11*:*id*:*type_section_break*:*type*:*custom_11*:*w_field_label*:*<div class=\"wdform-section-break-div\" style=\"min-width: 300px; border-top:1px solid\"></div>*:*w_editor*:**:*new_field*:*10*:*id*:*type_paypal_total*:*type*:*Total:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_class*:*300*:*w_size*:**:*new_field*:*15*:*id*:*type_file_upload*:*type*:*Upload an image of cupcakes you like so that I can have an idea of what you want.*:*w_field_label*:*400*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*$wp_upload_dir/form-maker*:*w_destination*:*jpg, jpeg, png, gif, doc, docx, xls, xlsx*:*w_extension*:*2000*:*w_max_size*:*no*:*w_required*:*no*:*w_multiple*:**:*w_class*:**:*new_field*:*14*:*id*:*type_textarea*:*type*:*Details (if any):*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*420*:*w_size_w*:*85*:*w_size_h*:*for example: pink frosting with silver pearls*:*w_first_val*:*for example: pink frosting with silver pearls*:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*16*:*id*:*type_section_break*:*type*:*custom_16*:*w_field_label*:*<div class=\"wdform-section-break-div\" style=\"min-width: 300px; border-top:1px solid\"></div>*:*w_editor*:**:*new_field*:*12*:*id*:*type_editor*:*type*:*custom_12*:*w_field_label*:*<p>Your order total and order number will be communicated via email. Orders outside of Trinidad will be cancelled.</p><p>Themed orders will incur an additional cost...</p>*:*w_editor*:**:*new_field*:*13*:*id*:*type_submit_reset*:*type*:*type_submit_reset_13*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*false*:*w_act*:**:*new_field*:*', '1', '1', '*', '', '', '', '', '1', '', '', '', '', '', '', '', '', '', '', '', '1', '1', '1', '1', 'administrator,', '1', '', '', '0', '0', '0', '4597', '1', 'CUPACAKE ORDER FORM', 'This form is an order form, which includes PayPal fields. After filling out the form, the user gets redirected to PayPal website for finalizing the payment.', '', 'none', '0');");
289
  $wpdb->query("INSERT INTO `" . $wpdb->prefix . "formmaker` (`id`, `title`, `type`, `mail`, `form_front`, `theme`, `javascript`, `submit_text`, `url`, `submit_text_type`, `script_mail`, `script_mail_user`, `counter`, `published`, `label_order`, `label_order_current`, `article_id`, `pagination`, `show_title`, `show_numbers`, `public_key`, `private_key`, `recaptcha_theme`, `paypal_mode`, `checkout_mode`, `paypal_email`, `payment_currency`, `tax`, `form_fields`, `savedb`, `sendemail`, `requiredmark`, `from_mail`, `from_name`, `reply_to`, `send_to`, `autogen_layout`, `custom_front`, `mail_from_user`, `mail_from_name_user`, `reply_to_user`, `condition`, `mail_cc`, `mail_cc_user`, `mail_bcc`, `mail_bcc_user`, `mail_subject`, `mail_subject_user`, `mail_mode`, `mail_mode_user`, `mail_attachment`, `mail_attachment_user`, `user_id_wd`, `sortable`, `frontend_submit_fields`, `frontend_submit_stat_fields`, `mail_emptyfields`, `mail_verify`, `mail_verify_expiretime`, `mail_verification_post_id`, `save_uploads`, `header_title`, `header_description`, `header_image_url`, `header_image_animation`, `header_hide_image`) VALUES ('0', 'Sign Up Form With Payment', 'embedded', '', '<div class=\"wdform-page-and-images\" style=\"display: table; border-width: 1px; border-top-style: solid; border-top-color: black;\"><div id=\"form_id_tempform_view1\" class=\"wdform_page\" page_title=\"Step 1\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"true\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"1\" class=\"wdform_row ui-sortable-handle\">%1 - custom_1%</div></div></div><div wdid=\"6\" type=\"type_section_break\" class=\"wdform_tr_section_break\">%6 - custom_6%</div><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"2\" class=\"wdform_row ui-sortable-handle\">%2 - First Name%</div><div wdid=\"3\" class=\"wdform_row ui-sortable-handle\">%3 - Last Name%</div><div wdid=\"4\" class=\"wdform_row ui-sortable-handle\">%4 - Date%</div></div><div class=\"wdform_column ui-sortable\"><div wdid=\"5\" class=\"wdform_row ui-sortable-handle\">%5 - E-mail%</div><div wdid=\"7\" class=\"wdform_row ui-sortable-handle\">%7 - Phone%</div><div wdid=\"8\" class=\"wdform_row ui-sortable-handle\">%8 - Company%</div></div></div><div valign=\"top\" class=\"wdform_footer\" style=\"width: 100%;\"><div style=\"width: 100%;\"><div style=\"width: 100%; display: table; padding-top:10px;\"><div style=\"display: table-row-group;\"><div id=\"form_id_temppage_nav1\" style=\"display: table-row;\"><div valign=\"middle\" align=\"left\" style=\"display: table-cell; width: 40%;\"></div><div id=\"page_numbersform_id_temp1\" valign=\"middle\" align=\"center\" style=\"display: table-cell;\"><span class=\"page_numbersform_id_temp\">1/3</span></div><div valign=\"middle\" align=\"right\" style=\"display: table-cell; width: 40%;\"><span id=\"page_next_1\" class=\"wdform-page-button\" style=\"cursor: pointer;\">Next</span></div></div></div></div></div></div></div></div><div class=\"wdform-page-and-images\" style=\"display: table; border-width: 1px; border-top-style: solid; border-top-color: black;\"><div id=\"form_id_tempform_view2\" page_title=\"Step 2\" class=\"wdform_page\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"true\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"9\" class=\"wdform_row ui-sortable-handle\">%9 - custom_9%</div></div></div><div wdid=\"10\" type=\"type_section_break\" class=\"wdform_tr_section_break\">%10 - custom_10%</div><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"11\" class=\"wdform_row ui-sortable-handle\">%11 - Address:%</div></div><div class=\"wdform_column ui-sortable\"><div wdid=\"17\" class=\"wdform_row ui-sortable-handle\">%17 - Website%</div><div wdid=\"18\" class=\"wdform_row ui-sortable-handle\">%18 - Marital Status%</div><div wdid=\"19\" class=\"wdform_row ui-sortable-handle\">%19 - Field of Business%</div></div></div><div valign=\"top\" class=\"wdform_footer\" style=\"width: 100%;\"><div style=\"width: 100%;\"><div style=\"width: 100%; display: table;\"><div style=\"display: table-row-group;\"><div id=\"form_id_temppage_nav2\" style=\"display: table-row;\"><div valign=\"middle\" align=\"left\" style=\"display: table-cell; width: 40%;\"><span id=\"page_previous_2\" class=\"wdform-page-button\" style=\"cursor: pointer;\">Previous</span></div><div id=\"page_numbersform_id_temp2\" valign=\"middle\" align=\"center\" style=\"display: table-cell;\"><span class=\"page_numbersform_id_temp\">2/3</span></div><div valign=\"middle\" align=\"right\" style=\"display: table-cell; width: 40%;\"><span id=\"page_next_2\" class=\"wdform-page-button\" style=\"cursor: pointer;\">Next</span></div></div></div></div></div></div></div></div><div class=\"wdform-page-and-images\" style=\"display: table; border-width: 1px; border-top-style: solid; border-top-color: black;\"><div id=\"form_id_tempform_view3\" page_title=\"Step 3\" class=\"wdform_page\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"true\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"20\" class=\"wdform_row ui-sortable-handle\">%20 - custom_20%</div></div></div><div wdid=\"21\" type=\"type_section_break\" class=\"wdform_tr_section_break\">%21 - custom_21%</div><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"22\" class=\"wdform_row ui-sortable-handle\">%22 - Do you require delivery?%</div></div><div class=\"wdform_column ui-sortable\"><div wdid=\"23\" class=\"wdform_row ui-sortable-handle\">%23 - Radio:%</div></div></div><div wdid=\"25\" type=\"type_section_break\" class=\"wdform_tr_section_break\">%25 - custom_25%</div><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"24\" class=\"wdform_row ui-sortable-handle\">%24 - type_submit_reset_24%</div></div></div><div valign=\"top\" class=\"wdform_footer\" style=\"width: 100%;\"><div style=\"width: 100%;\"><div style=\"width: 100%; display: table;\"><div style=\"display: table-row-group;\"><div id=\"form_id_temppage_nav3\" style=\"display: table-row;\"><div valign=\"middle\" align=\"left\" style=\"display: table-cell; width: 40%;\"><span id=\"page_previous_3\" class=\"wdform-page-button\" style=\"cursor: pointer;\">Previous</span></div><div id=\"page_numbersform_id_temp3\" valign=\"middle\" align=\"center\" style=\"display: table-cell;\"><span class=\"page_numbersform_id_temp\">3/3</span></div><div valign=\"middle\" align=\"right\" style=\"display: table-cell; width: 40%;\"></div></div></div></div></div></div></div></div>', '1', '// Occurs before the form is loaded\r\nfunction before_load() { \r\n} \r\n// Occurs just before submitting the form\r\nfunction before_submit() {\r\n // IMPORTANT! If you want to interrupt (stop) the submitting of the form, this function should return true. You don''t need to return any value if you don''t want to stop the submission.\r\n} \r\n// Occurs just before resetting the form\r\nfunction before_reset() { \r\n}', '', '', '0', '%all%', '%all%', '26', '1', '1#**id**#custom_1#**label**#type_editor#****#2#**id**#First Name#**label**#type_text#****#3#**id**#Last Name#**label**#type_text#****#4#**id**#Date#**label**#type_date_new#****#5#**id**#E-mail#**label**#type_submitter_mail#****#7#**id**#Phone#**label**#type_phone_new#****#8#**id**#Company#**label**#type_text#****#9#**id**#custom_9#**label**#type_editor#****#11#**id**#Street Address#**label**#type_address#****#12#**id**#Street Address Line 2#**label**#type_address#****#13#**id**#City#**label**#type_address#****#14#**id**#State / Region#**label**#type_address#****#15#**id**#Postal / Zip Code#**label**#type_address#****#16#**id**#Country#**label**#type_address#****#17#**id**#Website#**label**#type_text#****#18#**id**#Marital Status#**label**#type_radio#****#19#**id**#Field of Business#**label**#type_checkbox#****#20#**id**#custom_20#**label**#type_editor#****#22#**id**#Do you require delivery?#**label**#type_radio#****#23#**id**#Radio:#**label**#type_paypal_radio#****#24#**id**#type_submit_reset_24#**label**#type_submit_reset#****##**id**##**label**##****#', '1#**id**#custom_1#**label**#type_editor#****#2#**id**#First Name#**label**#type_text#****#3#**id**#Last Name#**label**#type_text#****#4#**id**#Date#**label**#type_date_new#****#5#**id**#E-mail#**label**#type_submitter_mail#****#7#**id**#Phone#**label**#type_phone_new#****#8#**id**#Company#**label**#type_text#****#9#**id**#custom_9#**label**#type_editor#****#11#**id**#Street Address#**label**#type_address#****#12#**id**#Street Address Line 2#**label**#type_address#****#13#**id**#City#**label**#type_address#****#14#**id**#State / Region#**label**#type_address#****#15#**id**#Postal / Zip Code#**label**#type_address#****#16#**id**#Country#**label**#type_address#****#17#**id**#Website#**label**#type_text#****#18#**id**#Marital Status#**label**#type_radio#****#19#**id**#Field of Business#**label**#type_checkbox#****#20#**id**#custom_20#**label**#type_editor#****#22#**id**#Do you require delivery?#**label**#type_radio#****#23#**id**#Radio:#**label**#type_paypal_radio#****#24#**id**#type_submit_reset_24#**label**#type_submit_reset#****#', '0', 'steps', 'true', 'true', '', '', '', '0', 'testmode', '', '', '0', '1*:*id*:*type_editor*:*type*:*custom_1*:*w_field_label*:*<div style=\"font-size: 22px; color: #828282; text-align: center;\">Step 1: Fill in basic information about yourself.</div>*:*w_editor*:**:*new_field*:*6*:*id*:*type_section_break*:*type*:*custom_6*:*w_field_label*:*<div class=\"wdform-section-break-div\" style=\"min-width: 300px;\"></div>*:*w_editor*:**:*new_field*:*2*:*id*:*type_text*:*type*:*First Name*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*new_field*:*3*:*id*:*type_text*:*type*:*Last Name*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*new_field*:*4*:*id*:*type_date_new*:*type*:*Date*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_date*:*no*:*w_required*:*no*:*w_show_image*:**:*w_class*:*mm/dd/yy*:*w_format*:*0*:*w_start_day*:**:*w_default_date*:**:*w_min_date*:**:*w_max_date*:**:*w_invalid_dates*:*yes***yes***yes***yes***yes***yes***yes*:*w_show_days*:*yes*:*w_hide_time*:*...*:*w_but_val*:*no*:*w_disable_past_days*:**:*new_field*:*5*:*id*:*type_submitter_mail*:*type*:*E-mail*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no*:*w_verification*:*E-mail confirmation:*:*w_verification_label*:**:*w_verification_placeholder*:*no*:*w_autofill*:**:*new_field*:*7*:*id*:*type_phone_new*:*type*:*Phone*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:*us*:*w_top_country*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*8*:*id*:*type_text*:*type*:*Company*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*new_field*:*9*:*id*:*type_editor*:*type*:*custom_9*:*w_field_label*:*<div style=\"font-size: 22px; color: #828282;;text-align: center;\">Step 2: Additional information.</div>*:*w_editor*:**:*new_field*:*10*:*id*:*type_section_break*:*type*:*custom_10*:*w_field_label*:*<div class=\"wdform-section-break-div\" style=\"min-width: 300px;\"></div>*:*w_editor*:**:*new_field*:*11*:*id*:*type_address*:*type*:*Address:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*250*:*w_size*:*Street Address***Street Address Line 2***City***State / Region***Postal / Zip Code***Country*:*w_mini_labels*:*no***no***no***no***no***no***no*:*w_disabled_fields*:*no*:*w_required*:*wdform_address*:*w_class*:**:*new_field*:*17*:*id*:*type_text*:*type*:*Website*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:*http://example.com*:*w_first_val*:*http://example.com*:*w_title*:*no*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*new_field*:*18*:*id*:*type_radio*:*type*:*Marital Status*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*left*:*w_field_option_pos*:*no*:*w_hide_label*:*hor*:*w_flow*:*Married***Single*:*w_choices*:*false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*no*:*w_value_disabled*:*Married***Single*:*w_choices_value*:*****:*w_choices_params*:**:*w_class*:**:*new_field*:*19*:*id*:*type_checkbox*:*type*:*Field of Business*:*w_field_label*:*150*:*w_field_label_size*:*top*:*w_field_label_pos*:*right*:*w_field_option_pos*:*no*:*w_hide_label*:*ver*:*w_flow*:*Information Technologies***Health and Medicine***Local Business***Fashion***Automobiles*:*w_choices*:*false***false***false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*no*:*w_value_disabled*:*Information Technologies***Health and Medicine***Local Business***Fashion***Automobiles*:*w_choices_value*:**************:*w_choices_params*:**:*w_class*:**:*new_field*:*20*:*id*:*type_editor*:*type*:*custom_20*:*w_field_label*:*<div style=\"font-size: 22px; color: #828282; text-align: center;\">Step 3: Choose a service pack to purchase.</div>*:*w_editor*:**:*new_field*:*21*:*id*:*type_section_break*:*type*:*custom_21*:*w_field_label*:*<div class=\"wdform-section-break-div\" style=\"min-width: 300px;\"></div>*:*w_editor*:**:*new_field*:*22*:*id*:*type_radio*:*type*:*Do you require delivery?*:*w_field_label*:*180*:*w_field_label_size*:*top*:*w_field_label_pos*:*left*:*w_field_option_pos*:*no*:*w_hide_label*:*hor*:*w_flow*:*Yes***No*:*w_choices*:*false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*no*:*w_value_disabled*:*Yes***No*:*w_choices_value*:*****:*w_choices_params*:**:*w_class*:**:*new_field*:*23*:*id*:*type_paypal_radio*:*type*:*Radio:*:*w_field_label*:*200*:*w_field_label_size*:*left*:*w_field_label_pos*:*left*:*w_field_option_pos*:*yes*:*w_hide_label*:*ver*:*w_flow*:*Service Pack 1 - 100 USD***Service Pack 2 - 200 USD*:*w_choices*:*100***200*:*w_choices_price*:*false***false*:*w_choices_checked*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*****:*w_choices_params*:**:*w_class*:**:*w_property*:**:*w_property_values*:*no*:*w_quantity*:*1*:*w_quantity_value*:**:*new_field*:*25*:*id*:*type_section_break*:*type*:*custom_25*:*w_field_label*:*<div class=\"wdform-section-break-div\" style=\"min-width: 300px;\"></div>*:*w_editor*:**:*new_field*:*24*:*id*:*type_submit_reset*:*type*:*type_submit_reset_24*:*w_field_label*:*Purchase*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*false*:*w_act*:**:*new_field*:*', '1', '1', '*', '', '', '', '', '1', '', '', '', '', '', '', '', '', '', '', '', '1', '1', '1', '1', 'administrator,', '1', '', '', '0', '0', '0', '0', '1', '', '', '" . WDFM()->plugin_url . "/images/demo/4.png', 'none', '1');");
290
- $wpdb->query("INSERT INTO `" . $wpdb->prefix . "formmaker` (`id`, `title`, `type`, `mail`, `form_front`, `theme`, `javascript`, `submit_text`, `url`, `submit_text_type`, `script_mail`, `script_mail_user`, `counter`, `published`, `label_order`, `label_order_current`, `article_id`, `pagination`, `show_title`, `show_numbers`, `public_key`, `private_key`, `recaptcha_theme`, `paypal_mode`, `checkout_mode`, `paypal_email`, `payment_currency`, `tax`, `form_fields`, `savedb`, `sendemail`, `requiredmark`, `from_mail`, `from_name`, `reply_to`, `send_to`, `autogen_layout`, `custom_front`, `mail_from_user`, `mail_from_name_user`, `reply_to_user`, `condition`, `mail_cc`, `mail_cc_user`, `mail_bcc`, `mail_bcc_user`, `mail_subject`, `mail_subject_user`, `mail_mode`, `mail_mode_user`, `mail_attachment`, `mail_attachment_user`, `user_id_wd`, `sortable`, `frontend_submit_fields`, `frontend_submit_stat_fields`, `mail_emptyfields`, `mail_verify`, `mail_verify_expiretime`, `mail_verification_post_id`, `save_uploads`, `header_title`, `header_description`, `header_image_url`, `header_image_animation`, `header_hide_image`) VALUES ('0', 'Hotel Reservation Form', 'embedded', '', '<div class=\"wdform-page-and-images\" style=\"display:table; border-top:0px solid black;\"><div id=\"form_id_tempform_view1\" class=\"wdform_page\" page_title=\"Untitled page\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"false\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"1\" class=\"wdform_row ui-sortable-handle\">%1 - First Name%</div><div wdid=\"3\" class=\"wdform_row ui-sortable-handle\">%3 - E-mail:%</div><div wdid=\"5\" class=\"wdform_row ui-sortable-handle\">%5 - Country:%</div><div wdid=\"7\" class=\"wdform_row ui-sortable-handle\">%7 - Address%</div><div wdid=\"9\" class=\"wdform_row ui-sortable-handle\">%9 - Check-in Date%</div><div wdid=\"11\" class=\"wdform_row ui-sortable-handle\">%11 - Accomodation type%</div><div wdid=\"13\" class=\"wdform_row ui-sortable-handle\">%13 - Meal plan%</div></div><div class=\"wdform_column ui-sortable\"><div wdid=\"2\" class=\"wdform_row ui-sortable-handle\">%2 - Last Name%</div><div wdid=\"4\" class=\"wdform_row ui-sortable-handle\">%4 - Phone Number%</div><div wdid=\"6\" class=\"wdform_row ui-sortable-handle\">%6 - City%</div><div wdid=\"8\" class=\"wdform_row ui-sortable-handle\">%8 - Postal / Zip Code%</div><div wdid=\"10\" class=\"wdform_row ui-sortable-handle\">%10 - Check-out Date%</div><div wdid=\"12\" class=\"wdform_row ui-sortable-handle\">%12 - Number of rooms%</div><div wdid=\"14\" class=\"wdform_row ui-sortable-handle\">%14 - Room type%</div></div></div><div wdid=\"15\" type=\"type_section_break\" class=\"wdform_tr_section_break\">%15 - custom_15%</div><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"16\" class=\"wdform_row ui-sortable-handle\">%16 - Additional Requests%</div><div wdid=\"17\" class=\"wdform_row ui-sortable-handle\">%17 - Pick up from Airport?%</div><div wdid=\"18\" class=\"wdform_row ui-sortable-handle\">%18 - type_submit_reset_18%</div></div></div><div valign=\"top\" class=\"wdform_footer\" style=\"width: 100%;\"><div style=\"width: 100%;\"><div style=\"width: 100%; display: table; padding-top:10px;\"><div style=\"display: table-row-group;\"><div id=\"form_id_temppage_nav1\" style=\"display: table-row;\"></div></div></div></div></div></div></div>', '8', '// Occurs before the form is loaded\r\nfunction before_load() { \r\n} \r\n// Occurs just before submitting the form\r\nfunction before_submit() {\r\n // IMPORTANT! If you want to interrupt (stop) the submitting of the form, this function should return true. You don''t need to return any value if you don''t want to stop the submission.\r\n} \r\n// Occurs just before resetting the form\r\nfunction before_reset() { \r\n}', '', '0', '0', '%all%', '%all%', '19', '1', '1#**id**#First Name#**label**#type_text#****#3#**id**#E-mail:#**label**#type_submitter_mail#****#5#**id**#Country:#**label**#type_country#****#7#**id**#Address#**label**#type_text#****#9#**id**#Check-in Date#**label**#type_date_new#****#11#**id**#Accomodation type#**label**#type_own_select#****#13#**id**#Meal plan#**label**#type_own_select#****#2#**id**#Last Name#**label**#type_text#****#4#**id**#Phone Number#**label**#type_phone_new#****#6#**id**#City#**label**#type_text#****#8#**id**#Postal / Zip Code#**label**#type_text#****#10#**id**#Check-out Date#**label**#type_date_new#****#12#**id**#Number of rooms#**label**#type_text#****#14#**id**#Room type#**label**#type_own_select#****#16#**id**#Additional Requests#**label**#type_textarea#****#17#**id**#Pick up from Airport?#**label**#type_radio#****#18#**id**#type_submit_reset_18#**label**#type_submit_reset#****##**id**##**label**##****#', '1#**id**#First Name#**label**#type_text#****#3#**id**#E-mail:#**label**#type_submitter_mail#****#5#**id**#Country:#**label**#type_country#****#7#**id**#Address#**label**#type_text#****#9#**id**#Check-in Date#**label**#type_date_new#****#11#**id**#Accomodation type#**label**#type_own_select#****#13#**id**#Meal plan#**label**#type_own_select#****#2#**id**#Last Name#**label**#type_text#****#4#**id**#Phone Number#**label**#type_phone_new#****#6#**id**#City#**label**#type_text#****#8#**id**#Postal / Zip Code#**label**#type_text#****#10#**id**#Check-out Date#**label**#type_date_new#****#12#**id**#Number of rooms#**label**#type_text#****#14#**id**#Room type#**label**#type_own_select#****#16#**id**#Additional Requests#**label**#type_textarea#****#17#**id**#Pick up from Airport?#**label**#type_radio#****#18#**id**#type_submit_reset_18#**label**#type_submit_reset#****#', '0', 'none', 'false', 'true', '', '', '', '0', '0', '', '', '0', '1*:*id*:*type_text*:*type*:*First Name*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*new_field*:*3*:*id*:*type_submitter_mail*:*type*:*E-mail:*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no*:*w_verification*:*E-mail confirmation:*:*w_verification_label*:**:*w_verification_placeholder*:*no*:*w_autofill*:**:*new_field*:*5*:*id*:*type_country*:*type*:*Country:*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:****Afghanistan***Albania***Algeria***Andorra***Angola***Antigua and Barbuda***Argentina***Armenia***Australia***Austria***Azerbaijan***Bahamas***Bahrain***Bangladesh***Barbados***Belarus***Belgium***Belize***Benin***Bhutan***Bolivia***Bosnia and Herzegovina***Botswana***Brazil***Brunei***Bulgaria***Burkina Faso***Burundi***Cambodia***Cameroon***Canada***Cape Verde***Central African Republic***Chad***Chile***China***Colombia***Comoros***Congo (Brazzaville)***Congo***Costa Rica***Cote d''Ivoire***Croatia***Cuba***Cyprus***Czech Republic***Denmark***Djibouti***Dominica***Dominican Republic***East Timor (Timor Timur)***Ecuador***Egypt***El Salvador***Equatorial Guinea***Eritrea***Estonia***Ethiopia***Fiji***Finland***France***Gabon***Gambia, The***Georgia***Germany***Ghana***Greece***Grenada***Guatemala***Guinea***Guinea-Bissau***Guyana***Haiti***Honduras***Hungary***Iceland***India***Indonesia***Iran***Iraq***Ireland***Israel***Italy***Jamaica***Japan***Jordan***Kazakhstan***Kenya***Kiribati***Korea, North***Korea, South***Kuwait***Kyrgyzstan***Laos***Latvia***Lebanon***Lesotho***Liberia***Libya***Liechtenstein***Lithuania***Luxembourg***Macedonia***Madagascar***Malawi***Malaysia***Maldives***Mali***Malta***Marshall Islands***Mauritania***Mauritius***Mexico***Micronesia***Moldova***Monaco***Mongolia***Morocco***Mozambique***Myanmar***Namibia***Nauru***Nepal***Netherlands***New Zealand***Nicaragua***Niger***Nigeria***Norway***Oman***Pakistan***Palau***Panama***Papua New Guinea***Paraguay***Peru***Philippines***Poland***Portugal***Qatar***Romania***Russia***Rwanda***Saint Kitts and Nevis***Saint Lucia***Saint Vincent***Samoa***San Marino***Sao Tome and Principe***Saudi Arabia***Senegal***Serbia and Montenegro***Seychelles***Sierra Leone***Singapore***Slovakia***Slovenia***Solomon Islands***Somalia***South Africa***Spain***Sri Lanka***Sudan***Suriname***Swaziland***Sweden***Switzerland***Syria***Taiwan***Tajikistan***Tanzania***Thailand***Togo***Tonga***Trinidad and Tobago***Tunisia***Turkey***Turkmenistan***Tuvalu***Uganda***Ukraine***United Arab Emirates***United Kingdom***United States***Uruguay***Uzbekistan***Vanuatu***Vatican City***Venezuela***Vietnam***Yemen***Zambia***Zimbabwe*:*w_countries*:*yes*:*w_required*:*wdform_select*:*w_class*:**:*new_field*:*7*:*id*:*type_text*:*type*:*Address*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*new_field*:*9*:*id*:*type_date_new*:*type*:*Check-in Date*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_date*:*yes*:*w_required*:*yes*:*w_show_image*:**:*w_class*:*mm/dd/yy*:*w_format*:*0*:*w_start_day*:**:*w_default_date*:**:*w_min_date*:**:*w_max_date*:**:*w_invalid_dates*:*yes***yes***yes***yes***yes***yes***yes*:*w_show_days*:*yes*:*w_hide_time*:*...*:*w_but_val*:*no*:*w_disable_past_days*:**:*new_field*:*11*:*id*:*type_own_select*:*type*:*Accomodation type*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:*Select***Hotel***Hostel***Motel***Cottage*:*w_choices*:*true***false***false***false***false*:*w_choices_checked*:*false***false***false***false***false*:*w_choices_disabled*:*yes*:*w_required*:*no*:*w_value_disabled*:*Select***Hotel***Hostel***Motel***Cottage*:*w_choices_value*:**************:*w_choices_params*:*wdform_select*:*w_class*:**:*new_field*:*13*:*id*:*type_own_select*:*type*:*Meal plan*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:*Select***MAP***CP***EP*:*w_choices*:*true***false***false***false*:*w_choices_checked*:*false***false***false***false*:*w_choices_disabled*:*yes*:*w_required*:*no*:*w_value_disabled*:****MAP***CP***EP*:*w_choices_value*:***********:*w_choices_params*:*wdform_select*:*w_class*:**:*new_field*:*2*:*id*:*type_text*:*type*:*Last Name*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*new_field*:*4*:*id*:*type_phone_new*:*type*:*Phone Number*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:*us*:*w_top_country*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*6*:*id*:*type_text*:*type*:*City*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*new_field*:*8*:*id*:*type_text*:*type*:*Postal / Zip Code*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*new_field*:*10*:*id*:*type_date_new*:*type*:*Check-out Date*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_date*:*yes*:*w_required*:*yes*:*w_show_image*:**:*w_class*:*mm/dd/yy*:*w_format*:*0*:*w_start_day*:**:*w_default_date*:**:*w_min_date*:**:*w_max_date*:**:*w_invalid_dates*:*yes***yes***yes***yes***yes***yes***yes*:*w_show_days*:*yes*:*w_hide_time*:*...*:*w_but_val*:*no*:*w_disable_past_days*:**:*new_field*:*12*:*id*:*type_text*:*type*:*Number of rooms*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*yes*:*w_regExp_status*:*%5E%5B0-9%5D+%24*:*w_regExp_value*:*^[0-9]+$*:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*new_field*:*14*:*id*:*type_own_select*:*type*:*Room type*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:*Select***Single***Double***Triple***Quad***Queen***King***Twin***Double-double***Studio*:*w_choices*:*true***false***false***false***false***false***false***false***false***false*:*w_choices_checked*:*false***false***false***false***false***false***false***false***false***false*:*w_choices_disabled*:*yes*:*w_required*:*no*:*w_value_disabled*:****Single***Double***Triple***Quad***Queen***King***Twin***Double-double***Studio*:*w_choices_value*:*****************************:*w_choices_params*:*wdform_select*:*w_class*:**:*new_field*:*15*:*id*:*type_section_break*:*type*:*custom_15*:*w_field_label*:*<div class=\"wdform-section-break-div\" style=\"min-width: 300px;\"></div>*:*w_editor*:**:*new_field*:*16*:*id*:*type_textarea*:*type*:*Additional Requests*:*w_field_label*:*400*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*400*:*w_size_w*:*200*:*w_size_h*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*17*:*id*:*type_radio*:*type*:*Pick up from Airport?*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*left*:*w_field_option_pos*:*no*:*w_hide_label*:*hor*:*w_flow*:*Yes***No*:*w_choices*:*false***false*:*w_choices_checked*:*1*:*w_rowcol*:*yes*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*no*:*w_value_disabled*:*Yes***No*:*w_choices_value*:*****:*w_choices_params*:**:*w_class*:**:*new_field*:*18*:*id*:*type_submit_reset*:*type*:*type_submit_reset_18*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*false*:*w_act*:**:*new_field*:*', '1', '1', '*', '', '', '', '0', '1', '', '', '', '', '', '', '', '', '', '', '0', '1', '1', '1', '1', 'administrator,', '1', '', '0', '0', '0', '0', '0', '1', 'HOTEL RESERVATION FORM', 'An online hotel booking form to track your bookings easily and manage further reservations more accurate.', '', 'none', '0');");
291
  $wpdb->query("INSERT INTO `" . $wpdb->prefix . "formmaker` (`id`, `title`, `type`, `mail`, `form_front`, `theme`, `javascript`, `submit_text`, `url`, `submit_text_type`, `script_mail`, `script_mail_user`, `counter`, `published`, `label_order`, `label_order_current`, `article_id`, `pagination`, `show_title`, `show_numbers`, `public_key`, `private_key`, `recaptcha_theme`, `paypal_mode`, `checkout_mode`, `paypal_email`, `payment_currency`, `tax`, `form_fields`, `savedb`, `sendemail`, `requiredmark`, `from_mail`, `from_name`, `reply_to`, `send_to`, `autogen_layout`, `custom_front`, `mail_from_user`, `mail_from_name_user`, `reply_to_user`, `condition`, `mail_cc`, `mail_cc_user`, `mail_bcc`, `mail_bcc_user`, `mail_subject`, `mail_subject_user`, `mail_mode`, `mail_mode_user`, `mail_attachment`, `mail_attachment_user`, `user_id_wd`, `sortable`, `frontend_submit_fields`, `frontend_submit_stat_fields`, `mail_emptyfields`, `mail_verify`, `mail_verify_expiretime`, `mail_verification_post_id`, `save_uploads`, `header_title`, `header_description`, `header_image_url`, `header_image_animation`, `header_hide_image`) VALUES ('0', 'Customer Survey', 'embedded', '', '<div class=\"wdform-page-and-images\" style=\"display:table; border-top:0px solid black;\"><div id=\"form_id_tempform_view1\" class=\"wdform_page\" page_title=\"Untitled page\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"false\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"1\" class=\"wdform_row ui-sortable-handle\">%1 - custom_1%</div><div wdid=\"2\" class=\"wdform_row ui-sortable-handle\">%2 - custom_2%</div><div wdid=\"3\" class=\"wdform_row ui-sortable-handle\">%3 - Your name%</div><div wdid=\"4\" class=\"wdform_row ui-sortable-handle\">%4 - Age%</div><div wdid=\"5\" class=\"wdform_row ui-sortable-handle\">%5 - Address%</div><div wdid=\"6\" class=\"wdform_row ui-sortable-handle\">%6 - Zip%</div><div wdid=\"7\" class=\"wdform_row ui-sortable-handle\">%7 - City%</div></div><div class=\"wdform_column ui-sortable\"><div wdid=\"8\" class=\"wdform_row ui-sortable-handle\">%8 - custom_8%</div><div wdid=\"9\" class=\"wdform_row ui-sortable-handle\">%9 - custom_9%</div><div wdid=\"10\" class=\"wdform_row ui-sortable-handle\">%10 - Select a job%</div><div wdid=\"11\" class=\"wdform_row ui-sortable-handle\">%11 - Job type%</div><div wdid=\"12\" class=\"wdform_row ui-sortable-handle\">%12 - Employment date%</div><div wdid=\"13\" class=\"wdform_row ui-sortable-handle\">%13 - A photo of you%</div></div></div><div wdid=\"14\" type=\"type_section_break\" class=\"wdform_tr_section_break\">%14 - custom_14%</div><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"15\" class=\"wdform_row ui-sortable-handle\">%15 - custom_15%</div><div wdid=\"16\" class=\"wdform_row ui-sortable-handle\">%16 - Phone%</div><div wdid=\"17\" class=\"wdform_row ui-sortable-handle\">%17 - Email%</div><div wdid=\"18\" class=\"wdform_row ui-sortable-handle\">%18 - custom_18%</div><div wdid=\"21\" class=\"wdform_row ui-sortable-handle\">%21 - Word Verification:%</div><div wdid=\"20\" class=\"wdform_row ui-sortable-handle\">%20 - type_submit_reset_20%</div></div></div><div valign=\"top\" class=\"wdform_footer\" style=\"width: 100%;\"><div style=\"width: 100%;\"><div style=\"width: 100%; display: table; padding-top:10px;\"><div style=\"display: table-row-group;\"><div id=\"form_id_temppage_nav1\" style=\"display: table-row;\"></div></div></div></div></div></div></div>', '2', '// Occurs before the form is loaded\r\nfunction before_load() { \r\n} \r\n// Occurs just before submitting the form\r\nfunction before_submit() {\r\n // IMPORTANT! If you want to interrupt (stop) the submitting of the form, this function should return true. You don''t need to return any value if you don''t want to stop the submission.\r\n} \r\n// Occurs just before resetting the form\r\nfunction before_reset() { \r\n}', '', '0', '0', '%all%', '%all%', '22', '1', '1#**id**#custom_1#**label**#type_editor#****#2#**id**#custom_2#**label**#type_editor#****#3#**id**#Your name#**label**#type_text#****#4#**id**#Age#**label**#type_text#****#5#**id**#Address#**label**#type_text#****#6#**id**#Zip#**label**#type_text#****#7#**id**#City#**label**#type_text#****#8#**id**#custom_8#**label**#type_editor#****#9#**id**#custom_9#**label**#type_editor#****#10#**id**#Select a job#**label**#type_own_select#****#11#**id**#Job type#**label**#type_radio#****#12#**id**#Employment date#**label**#type_date_new#****#13#**id**#A photo of you#**label**#type_file_upload#****#15#**id**#custom_15#**label**#type_editor#****#16#**id**#Phone#**label**#type_phone#****#17#**id**#Email#**label**#type_submitter_mail#****#18#**id**#custom_18#**label**#type_editor#****#21#**id**#Word Verification:#**label**#type_arithmetic_captcha#****#20#**id**#type_submit_reset_20#**label**#type_submit_reset#****#19#**id**#Recaptcha Word Verification:#**label**#type_recaptcha#****##**id**##**label**##****#', '1#**id**#custom_1#**label**#type_editor#****#2#**id**#custom_2#**label**#type_editor#****#3#**id**#Your name#**label**#type_text#****#4#**id**#Age#**label**#type_text#****#5#**id**#Address#**label**#type_text#****#6#**id**#Zip#**label**#type_text#****#7#**id**#City#**label**#type_text#****#8#**id**#custom_8#**label**#type_editor#****#9#**id**#custom_9#**label**#type_editor#****#10#**id**#Select a job#**label**#type_own_select#****#11#**id**#Job type#**label**#type_radio#****#12#**id**#Employment date#**label**#type_date_new#****#13#**id**#A photo of you#**label**#type_file_upload#****#15#**id**#custom_15#**label**#type_editor#****#16#**id**#Phone#**label**#type_phone#****#17#**id**#Email#**label**#type_submitter_mail#****#18#**id**#custom_18#**label**#type_editor#****#21#**id**#Word Verification:#**label**#type_arithmetic_captcha#****#20#**id**#type_submit_reset_20#**label**#type_submit_reset#****#', '0', 'none', 'false', 'true', '', '', '', '0', '0', '', '', '0', '1*:*id*:*type_editor*:*type*:*custom_1*:*w_field_label*:*<h3 style=\"font-weight: 400; border-bottom: 3px solid #1CBBB4; padding: 4px;\" data-mce-style=\"font-weight: 400; border-bottom: 3px solid #1CBBB4; padding: 4px;\">Personal Information</h3>*:*w_editor*:**:*new_field*:*2*:*id*:*type_editor*:*type*:*custom_2*:*w_field_label*:*<p style=\"border: 1px solid #96DFDC; padding: 5px 16px; font-size: 12px;\" data-mce-style=\"border: 1px solid #96DFDC; padding: 5px 16px; font-size: 12px;\">Please fill in your personal data here!</p>*:*w_editor*:**:*new_field*:*3*:*id*:*type_text*:*type*:*Your name*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*new_field*:*4*:*id*:*type_text*:*type*:*Age*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*yes*:*w_regExp_status*:*%5E%5B0-9%5D+%24*:*w_regExp_value*:*^[0-9]+$*:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*new_field*:*5*:*id*:*type_text*:*type*:*Address*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*new_field*:*6*:*id*:*type_text*:*type*:*Zip*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*new_field*:*7*:*id*:*type_text*:*type*:*City*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*new_field*:*8*:*id*:*type_editor*:*type*:*custom_8*:*w_field_label*:*<h3 style=\"font-weight: 400; border-bottom: 3px solid #1CBBB4; padding: 4px;\" data-mce-style=\"font-weight: 400; border-bottom: 3px solid #1CBBB4; padding: 4px;\">Your application</h3>*:*w_editor*:**:*new_field*:*9*:*id*:*type_editor*:*type*:*custom_9*:*w_field_label*:*<p style=\"border: 1px solid #96DFDC; padding: 5px 16px; font-size: 12px;\" data-mce-style=\"border: 1px solid #96DFDC; padding: 5px 16px; font-size: 12px;\">Please enter your application data here!</p>*:*w_editor*:**:*new_field*:*10*:*id*:*type_own_select*:*type*:*Select a job*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:*Please choose***Sales Manager***CEO***Support*:*w_choices*:*false***false***false***false*:*w_choices_checked*:*false***false***false***false*:*w_choices_disabled*:*yes*:*w_required*:*no*:*w_value_disabled*:****Sales Manager***CEO***Support*:*w_choices_value*:***********:*w_choices_params*:*wdform_select*:*w_class*:**:*new_field*:*11*:*id*:*type_radio*:*type*:*Job type*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*left*:*w_field_option_pos*:*no*:*w_hide_label*:*ver*:*w_flow*:*Full time***Part time***Less than 3 days***1 day a week*:*w_choices*:*false***false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*yes*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*no*:*w_value_disabled*:*Full time***Part time***Less than 3 days***1 day a week*:*w_choices_value*:***********:*w_choices_params*:**:*w_class*:**:*new_field*:*12*:*id*:*type_date_new*:*type*:*Employment date*:*w_field_label*:*150*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_date*:*yes*:*w_required*:*yes*:*w_show_image*:**:*w_class*:*mm/dd/yy*:*w_format*:*0*:*w_start_day*:**:*w_default_date*:**:*w_min_date*:**:*w_max_date*:**:*w_invalid_dates*:*yes***yes***yes***yes***yes***yes***yes*:*w_show_days*:*yes*:*w_hide_time*:*...*:*w_but_val*:*no*:*w_disable_past_days*:**:*new_field*:*13*:*id*:*type_file_upload*:*type*:*A photo of you*:*w_field_label*:*150*:*w_field_label_size*:*left*:*w_field_label_pos*:*no*:*w_hide_label*:*$wp_upload_dir/form-maker*:*w_destination*:*jpg, jpeg, png, gif*:*w_extension*:*2000*:*w_max_size*:*no*:*w_required*:*no*:*w_multiple*:**:*w_class*:**:*new_field*:*14*:*id*:*type_section_break*:*type*:*custom_14*:*w_field_label*:*<div class=\"wdform-section-break-div\" style=\"min-width: 300px;\"></div>*:*w_editor*:**:*new_field*:*15*:*id*:*type_editor*:*type*:*custom_15*:*w_field_label*:*<p style=\"color: #5fcfca; border-bottom: 1px solid #5FCFCA; font-size: 17px; padding: 6px;\" data-mce-style=\"color: #5fcfca; border-bottom: 1px solid #5FCFCA; font-size: 17px; padding: 6px;\">Contact Data</p>*:*w_editor*:**:*new_field*:*16*:*id*:*type_phone*:*type*:*Phone*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*no*:*w_hide_label*:*335*:*w_size*:*****:*w_first_val*:*****:*w_title*:*Area Code***Phone Number*:*w_mini_labels*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*17*:*id*:*type_submitter_mail*:*type*:*Email*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*no*:*w_hide_label*:*400*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no*:*w_verification*:*E-mail confirmation:*:*w_verification_label*:**:*w_verification_placeholder*:*no*:*w_autofill*:**:*new_field*:*18*:*id*:*type_editor*:*type*:*custom_18*:*w_field_label*:*<p style=\"color: #5fcfca; border-bottom: 1px solid #5FCFCA; font-size: 17px; padding: 6px;\" data-mce-style=\"color: #5fcfca; border-bottom: 1px solid #5FCFCA; font-size: 17px; padding: 6px;\">Security</p>*:*w_editor*:**:*new_field*:*21*:*id*:*type_arithmetic_captcha*:*type*:*Word Verification:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*yes*:*w_hide_label*:*1*:*w_count*:*+, -, *, /*:*w_operations*:**:*w_class*:*60*:*w_input_size*:**:*new_field*:*20*:*id*:*type_submit_reset*:*type*:*type_submit_reset_20*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*false*:*w_act*:**:*new_field*:*', '1', '1', '*', '', '', '', '0', '1', '', '', '', '', '', '', '', '', '', '', '0', '1', '1', '1', '1', 'administrator,', '1', '', '0', '0', '0', '0', '0', '1', '', '', '', 'none', '0');");
292
  }
293
  }
287
  $wpdb->query("INSERT INTO `" . $wpdb->prefix . "formmaker` (`id`, `title`, `type`, `mail`, `form_front`, `theme`, `javascript`, `submit_text`, `url`, `submit_text_type`, `script_mail`, `script_mail_user`, `counter`, `published`, `label_order`, `label_order_current`, `article_id`, `pagination`, `show_title`, `show_numbers`, `public_key`, `private_key`, `recaptcha_theme`, `paypal_mode`, `checkout_mode`, `paypal_email`, `payment_currency`, `tax`, `form_fields`, `savedb`, `sendemail`, `requiredmark`, `from_mail`, `from_name`, `reply_to`, `send_to`, `autogen_layout`, `custom_front`, `mail_from_user`, `mail_from_name_user`, `reply_to_user`, `condition`, `mail_cc`, `mail_cc_user`, `mail_bcc`, `mail_bcc_user`, `mail_subject`, `mail_subject_user`, `mail_mode`, `mail_mode_user`, `mail_attachment`, `mail_attachment_user`, `user_id_wd`, `sortable`, `frontend_submit_fields`, `frontend_submit_stat_fields`, `mail_emptyfields`, `mail_verify`, `mail_verify_expiretime`, `mail_verification_post_id`, `save_uploads`, `header_title`, `header_description`, `header_image_url`, `header_image_animation`, `header_hide_image`) VALUES (2, 'Contact Us', 'embedded', '', '<div class=\"wdform-page-and-images\" style=\"display:table; border-top:0px solid black;\"><div id=\"form_id_tempform_view1\" class=\"wdform_page\" page_title=\"Untitled page\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"false\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"1\" class=\"wdform_row ui-sortable-handle\">%1 - Name:%</div><div wdid=\"2\" class=\"wdform_row ui-sortable-handle\">%2 - Enter your E-mail:%</div><div wdid=\"4\" class=\"wdform_row ui-sortable-handle\">%4 - CMS%</div><div wdid=\"5\" class=\"wdform_row ui-sortable-handle\">%5 - Extension%</div><div wdid=\"6\" class=\"wdform_row ui-sortable-handle\">%6 - Plugin%</div><div wdid=\"7\" class=\"wdform_row ui-sortable-handle\">%7 - Message%</div><div wdid=\"8\" class=\"wdform_row ui-sortable-handle\">%8 - type_submit_reset_8%</div></div></div><div valign=\"top\" class=\"wdform_footer\" style=\"width: 100%;\"><div style=\"width: 100%;\"><div style=\"width: 100%; display: table; padding-top:10px;\"><div style=\"display: table-row-group;\"><div id=\"form_id_temppage_nav1\" style=\"display: table-row;\"></div></div></div></div></div></div></div>', '2', '// Occurs before the form is loaded\r\nfunction before_load() { \r\n} \r\n// Occurs just before submitting the form\r\nfunction before_submit() {\r\n // IMPORTANT! If you want to interrupt (stop) the submitting of the form, this function should return true. You don''t need to return any value if you don''t want to stop the submission.\r\n} \r\n// Occurs just before resetting the form\r\nfunction before_reset() { \r\n}', '', '', '1', '%all%', '%all%', '9', '1', '1#**id**#Name:#**label**#type_name#****#2#**id**#Enter your E-mail:#**label**#type_submitter_mail#****#4#**id**#CMS#**label**#type_radio#****#5#**id**#Extension#**label**#type_own_select#****#6#**id**#Plugin#**label**#type_own_select#****#7#**id**#Message#**label**#type_textarea#****#8#**id**#type_submit_reset_8#**label**#type_submit_reset#****#3#**id**#Message subject#**label**#type_text#****##**id**##**label**##****#', '1#**id**#Name:#**label**#type_name#****#2#**id**#Enter your E-mail:#**label**#type_submitter_mail#****#4#**id**#CMS#**label**#type_radio#****#5#**id**#Extension#**label**#type_own_select#****#6#**id**#Plugin#**label**#type_own_select#****#7#**id**#Message#**label**#type_textarea#****#8#**id**#type_submit_reset_8#**label**#type_submit_reset#****#', '0', 'none', 'false', 'true', '', '', '', '1', 'testmode', '', '', '0', '1*:*id*:*type_name*:*type*:*Name:*:*w_field_label*:*500*:*w_field_label_size*:*top*:*w_field_label_pos*:*First***Last*******:*w_first_val*:*First***Last*******:*w_title*:*Title*********Middle*:*w_mini_labels*:*250*:*w_size*:*normal*:*w_name_format*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no***no*:*w_name_fields*:*no*:*w_autofill*:**:*new_field*:*2*:*id*:*type_submitter_mail*:*type*:*Enter your E-mail:*:*w_field_label*:*500*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*500*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no*:*w_verification*:*E-mail confirmation:*:*w_verification_label*:**:*w_verification_placeholder*:*no*:*w_autofill*:**:*new_field*:*4*:*id*:*type_radio*:*type*:*CMS*:*w_field_label*:*500*:*w_field_label_size*:*top*:*w_field_label_pos*:*left*:*w_field_option_pos*:*hor*:*w_flow*:*Joomla!***Wordpress*:*w_choices*:*false***false*:*w_choices_checked*:*1*:*w_rowcol*:*yes*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*no*:*w_value_disabled*:*Joomla!***Wordpress*:*w_choices_value*:*****:*w_choices_params*:**:*w_class*:**:*new_field*:*5*:*id*:*type_own_select*:*type*:*Extension*:*w_field_label*:*500*:*w_field_label_size*:*top*:*w_field_label_pos*:*500*:*w_size*:*Select value***Form Maker***Gallery WD***Spider Calendar*:*w_choices*:*true***false***false***false*:*w_choices_checked*:*true***false***false***false*:*w_choices_disabled*:*yes*:*w_required*:*no*:*w_value_disabled*:****Form Maker***Gallery WD***Spider Calendar*:*w_choices_value*:***********:*w_choices_params*:*wdform_select*:*w_class*:**:*new_field*:*6*:*id*:*type_own_select*:*type*:*Plugin*:*w_field_label*:*500*:*w_field_label_size*:*top*:*w_field_label_pos*:*500*:*w_size*:*Select value***Form Maker***Photo Gallery***Ecommerce WD*:*w_choices*:*true***false***false***false*:*w_choices_checked*:*true***false***false***false*:*w_choices_disabled*:*yes*:*w_required*:*no*:*w_value_disabled*:****Form Maker***Photo Gallery***Ecommerce WD*:*w_choices_value*:***********:*w_choices_params*:*wdform_select*:*w_class*:**:*new_field*:*7*:*id*:*type_textarea*:*type*:*Message*:*w_field_label*:*500*:*w_field_label_size*:*top*:*w_field_label_pos*:*500*:*w_size_w*:*120*:*w_size_h*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*8*:*id*:*type_submit_reset*:*type*:*type_submit_reset_8*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*true*:*w_act*:**:*new_field*:*', '1', '1', '*', '', '', '', '', '1', '', '', '', '', '1*:*show_hide*:*5*:*field_label*:*and*:*all_any*:*4***==***Joomla!*:*next_condition*:**:*new_condition*:*1*:*show_hide*:*6*:*field_label*:*and*:*all_any*:*4***==***Wordpress*:*next_condition*:**:*new_condition*:*', '', '', '', '', '', '', '1', '1', '1', '1', 'administrator,', '1', '', '', '0', '0', '0', '4501', '1', 'Contact Us', 'You may contact us by filling in this form any time you need professional support or have any questions. You can also fill in the form to leave your comments or feedback.', '" . WDFM()->plugin_url . "/images/demo/2.png', 'flash', '1');");
288
  $wpdb->query("INSERT INTO `" . $wpdb->prefix . "formmaker` (`id`, `title`, `type`, `mail`, `form_front`, `theme`, `javascript`, `submit_text`, `url`, `submit_text_type`, `script_mail`, `script_mail_user`, `counter`, `published`, `label_order`, `label_order_current`, `article_id`, `pagination`, `show_title`, `show_numbers`, `public_key`, `private_key`, `recaptcha_theme`, `paypal_mode`, `checkout_mode`, `paypal_email`, `payment_currency`, `tax`, `form_fields`, `savedb`, `sendemail`, `requiredmark`, `from_mail`, `from_name`, `reply_to`, `send_to`, `autogen_layout`, `custom_front`, `mail_from_user`, `mail_from_name_user`, `reply_to_user`, `condition`, `mail_cc`, `mail_cc_user`, `mail_bcc`, `mail_bcc_user`, `mail_subject`, `mail_subject_user`, `mail_mode`, `mail_mode_user`, `mail_attachment`, `mail_attachment_user`, `user_id_wd`, `sortable`, `frontend_submit_fields`, `frontend_submit_stat_fields`, `mail_emptyfields`, `mail_verify`, `mail_verify_expiretime`, `mail_verification_post_id`, `save_uploads`, `header_title`, `header_description`, `header_image_url`, `header_image_animation`, `header_hide_image`) VALUES ('0', 'Cupcake Order Form', 'embedded', '', '<div class=\"wdform-page-and-images\" style=\"display:table; border-top:0px solid black;\"><div id=\"form_id_tempform_view1\" class=\"wdform_page\" page_title=\"Untitled page\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"false\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"1\" class=\"wdform_row ui-sortable-handle\">%1 - Choose your date for pick up:%</div></div><div class=\"wdform_column ui-sortable\"><div wdid=\"2\" class=\"wdform_row ui-sortable-handle\">%2 - Time:%</div></div></div><div wdid=\"6\" type=\"type_section_break\" class=\"wdform_tr_section_break\">%6 - custom_6%</div><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"3\" class=\"wdform_row ui-sortable-handle\">%3 - Full Name:%</div></div></div><div wdid=\"7\" type=\"type_section_break\" class=\"wdform_tr_section_break\">%7 - custom_7%</div><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"4\" class=\"wdform_row ui-sortable-handle\">%4 - E-mail:%</div><div wdid=\"8\" class=\"wdform_row ui-sortable-handle\">%8 - Cupcakes Flavors (1 doz. minimum)%</div></div><div class=\"wdform_column ui-sortable\"><div wdid=\"5\" class=\"wdform_row ui-sortable-handle\">%5 - Mobile/Phone Number:%</div><div wdid=\"9\" class=\"wdform_row ui-sortable-handle\">%9 - Choose your butter cream frosting%</div></div></div><div wdid=\"11\" type=\"type_section_break\" class=\"wdform_tr_section_break\">%11 - custom_11%</div><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"10\" class=\"wdform_row ui-sortable-handle\">%10 - Total:%</div><div wdid=\"15\" class=\"wdform_row ui-sortable-handle\">%15 - Upload an image of cupcakes you like so that I can have an idea of what you want.%</div><div wdid=\"14\" class=\"wdform_row ui-sortable-handle\">%14 - Details (if any):%</div></div></div><div wdid=\"16\" type=\"type_section_break\" class=\"wdform_tr_section_break\">%16 - custom_16%</div><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"12\" class=\"wdform_row ui-sortable-handle\">%12 - custom_12%</div><div wdid=\"13\" class=\"wdform_row ui-sortable-handle\">%13 - type_submit_reset_13%</div></div></div><div valign=\"top\" class=\"wdform_footer\" style=\"width: 100%;\"><div style=\"width: 100%;\"><div style=\"width: 100%; display: table; padding-top:10px;\"><div style=\"display: table-row-group;\"><div id=\"form_id_temppage_nav1\" style=\"display: table-row;\"></div></div></div></div></div></div></div>', '10', '// Occurs before the form is loaded\r\nfunction before_load() { \r\n} \r\n// Occurs just before submitting the form\r\nfunction before_submit() {\r\n // IMPORTANT! If you want to interrupt (stop) the submitting of the form, this function should return true. You don''t need to return any value if you don''t want to stop the submission.\r\n} \r\n// Occurs just before resetting the form\r\nfunction before_reset() { \r\n}', '', '', '1', '%all%', '%all%', '17', '1', '1#**id**#Choose your date for pick up:#**label**#type_date_new#****#2#**id**#Time:#**label**#type_time#****#3#**id**#Full Name:#**label**#type_name#****#4#**id**#E-mail:#**label**#type_submitter_mail#****#8#**id**#Cupcakes Flavors (1 doz. minimum)#**label**#type_paypal_checkbox#****#5#**id**#Mobile/Phone Number:#**label**#type_phone#****#9#**id**#Choose your butter cream frosting#**label**#type_paypal_checkbox#****#10#**id**#Total:#**label**#type_paypal_total#****#15#**id**#Upload an image of cupcakes you like so that I can have an idea of what you want.#**label**#type_file_upload#****#14#**id**#Details (if any):#**label**#type_textarea#****#12#**id**#custom_12#**label**#type_editor#****#13#**id**#type_submit_reset_13#**label**#type_submit_reset#****##**id**##**label**##****#', '1#**id**#Choose your date for pick up:#**label**#type_date_new#****#2#**id**#Time:#**label**#type_time#****#3#**id**#Full Name:#**label**#type_name#****#4#**id**#E-mail:#**label**#type_submitter_mail#****#8#**id**#Cupcakes Flavors (1 doz. minimum)#**label**#type_paypal_checkbox#****#5#**id**#Mobile/Phone Number:#**label**#type_phone#****#9#**id**#Choose your butter cream frosting#**label**#type_paypal_checkbox#****#10#**id**#Total:#**label**#type_paypal_total#****#15#**id**#Upload an image of cupcakes you like so that I can have an idea of what you want.#**label**#type_file_upload#****#14#**id**#Details (if any):#**label**#type_textarea#****#12#**id**#custom_12#**label**#type_editor#****#13#**id**#type_submit_reset_13#**label**#type_submit_reset#****#', '0', 'none', 'false', 'true', '', '', '', '0', 'testmode', '', 'USD', '0', '1*:*id*:*type_date_new*:*type*:*Choose your date for pick up:*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_date*:*no*:*w_required*:*no*:*w_show_image*:**:*w_class*:*mm/dd/yy*:*w_format*:*0*:*w_start_day*:**:*w_default_date*:**:*w_min_date*:**:*w_max_date*:**:*w_invalid_dates*:*yes***yes***yes***yes***yes***yes***yes*:*w_show_days*:*yes*:*w_hide_time*:*...*:*w_but_val*:*no*:*w_disable_past_days*:**:*new_field*:*2*:*id*:*type_time*:*type*:*Time:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*24*:*w_time_type*:*0*:*w_am_pm*:*0*:*w_sec*:**:*w_hh*:**:*w_mm*:**:*w_ss*:*HH***MM***SS***AM/PM*:*w_mini_labels*:*no*:*w_required*:**:*w_class*:**:*new_field*:*6*:*id*:*type_section_break*:*type*:*custom_6*:*w_field_label*:*<div class=\"wdform-section-break-div\" style=\"min-width: 300px; border-top: 1px solid;\" data-mce-style=\"min-width: 300px; border-top: 1px solid;\"><br></div>*:*w_editor*:**:*new_field*:*3*:*id*:*type_name*:*type*:*Full Name:*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*First***Last*******:*w_first_val*:*First***Last*******:*w_title*:*Title*********Middle*:*w_mini_labels*:*200*:*w_size*:*normal*:*w_name_format*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no***no*:*w_name_fields*:*no*:*w_autofill*:**:*new_field*:*7*:*id*:*type_section_break*:*type*:*custom_7*:*w_field_label*:*<div class=\"wdform-section-break-div\" style=\"min-width: 300px; border-top:1px solid\"></div>*:*w_editor*:**:*new_field*:*4*:*id*:*type_submitter_mail*:*type*:*E-mail:*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no*:*w_verification*:*E-mail confirmation:*:*w_verification_label*:**:*w_verification_placeholder*:*no*:*w_autofill*:**:*new_field*:*8*:*id*:*type_paypal_checkbox*:*type*:*Cupcakes Flavors (1 doz. minimum)*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*left*:*w_field_option_pos*:*no*:*w_hide_label*:*ver*:*w_flow*:*Red Velvet ($15.00)***Vanilla ($10.00)***Chocolate ($12.00)***Guinness ($15.00)***Coconut ($12.00)***Lemon ($10.00)***Chocolate Mint ($12.00)*:*w_choices*:*15***10***12***15***12***10***12*:*w_choices_price*:*false***false***false***false***false***false***false*:*w_choices_checked*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:********************:*w_choices_params*:**:*w_class*:**:*w_property*:**:*w_property_values*:*yes*:*w_quantity*:*1*:*w_quantity_value*:**:*new_field*:*5*:*id*:*type_phone*:*type*:*Mobile/Phone Number:*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*150*:*w_size*:*****:*w_first_val*:*****:*w_title*:*Area Code***Phone Number*:*w_mini_labels*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*9*:*id*:*type_paypal_checkbox*:*type*:*Choose your butter cream frosting*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*left*:*w_field_option_pos*:*no*:*w_hide_label*:*ver*:*w_flow*:*Vanilla***Chocolate***Cream Cheese - add $3.00***Salted Caramel***Guinness***Almond***Coconut*:*w_choices*:*0***0***3***0***0***0***0*:*w_choices_price*:*false***false***false***false***false***false***false*:*w_choices_checked*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:********************:*w_choices_params*:**:*w_class*:**:*w_property*:**:*w_property_values*:*no*:*w_quantity*:*1*:*w_quantity_value*:**:*new_field*:*11*:*id*:*type_section_break*:*type*:*custom_11*:*w_field_label*:*<div class=\"wdform-section-break-div\" style=\"min-width: 300px; border-top:1px solid\"></div>*:*w_editor*:**:*new_field*:*10*:*id*:*type_paypal_total*:*type*:*Total:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_class*:*300*:*w_size*:**:*new_field*:*15*:*id*:*type_file_upload*:*type*:*Upload an image of cupcakes you like so that I can have an idea of what you want.*:*w_field_label*:*400*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*$wp_upload_dir/form-maker*:*w_destination*:*jpg, jpeg, png, gif, doc, docx, xls, xlsx*:*w_extension*:*2000*:*w_max_size*:*no*:*w_required*:*no*:*w_multiple*:**:*w_class*:**:*new_field*:*14*:*id*:*type_textarea*:*type*:*Details (if any):*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*420*:*w_size_w*:*85*:*w_size_h*:*for example: pink frosting with silver pearls*:*w_first_val*:*for example: pink frosting with silver pearls*:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*16*:*id*:*type_section_break*:*type*:*custom_16*:*w_field_label*:*<div class=\"wdform-section-break-div\" style=\"min-width: 300px; border-top:1px solid\"></div>*:*w_editor*:**:*new_field*:*12*:*id*:*type_editor*:*type*:*custom_12*:*w_field_label*:*<p>Your order total and order number will be communicated via email. Orders outside of Trinidad will be cancelled.</p><p>Themed orders will incur an additional cost...</p>*:*w_editor*:**:*new_field*:*13*:*id*:*type_submit_reset*:*type*:*type_submit_reset_13*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*false*:*w_act*:**:*new_field*:*', '1', '1', '*', '', '', '', '', '1', '', '', '', '', '', '', '', '', '', '', '', '1', '1', '1', '1', 'administrator,', '1', '', '', '0', '0', '0', '4597', '1', 'CUPACAKE ORDER FORM', 'This form is an order form, which includes PayPal fields. After filling out the form, the user gets redirected to PayPal website for finalizing the payment.', '', 'none', '0');");
289
  $wpdb->query("INSERT INTO `" . $wpdb->prefix . "formmaker` (`id`, `title`, `type`, `mail`, `form_front`, `theme`, `javascript`, `submit_text`, `url`, `submit_text_type`, `script_mail`, `script_mail_user`, `counter`, `published`, `label_order`, `label_order_current`, `article_id`, `pagination`, `show_title`, `show_numbers`, `public_key`, `private_key`, `recaptcha_theme`, `paypal_mode`, `checkout_mode`, `paypal_email`, `payment_currency`, `tax`, `form_fields`, `savedb`, `sendemail`, `requiredmark`, `from_mail`, `from_name`, `reply_to`, `send_to`, `autogen_layout`, `custom_front`, `mail_from_user`, `mail_from_name_user`, `reply_to_user`, `condition`, `mail_cc`, `mail_cc_user`, `mail_bcc`, `mail_bcc_user`, `mail_subject`, `mail_subject_user`, `mail_mode`, `mail_mode_user`, `mail_attachment`, `mail_attachment_user`, `user_id_wd`, `sortable`, `frontend_submit_fields`, `frontend_submit_stat_fields`, `mail_emptyfields`, `mail_verify`, `mail_verify_expiretime`, `mail_verification_post_id`, `save_uploads`, `header_title`, `header_description`, `header_image_url`, `header_image_animation`, `header_hide_image`) VALUES ('0', 'Sign Up Form With Payment', 'embedded', '', '<div class=\"wdform-page-and-images\" style=\"display: table; border-width: 1px; border-top-style: solid; border-top-color: black;\"><div id=\"form_id_tempform_view1\" class=\"wdform_page\" page_title=\"Step 1\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"true\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"1\" class=\"wdform_row ui-sortable-handle\">%1 - custom_1%</div></div></div><div wdid=\"6\" type=\"type_section_break\" class=\"wdform_tr_section_break\">%6 - custom_6%</div><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"2\" class=\"wdform_row ui-sortable-handle\">%2 - First Name%</div><div wdid=\"3\" class=\"wdform_row ui-sortable-handle\">%3 - Last Name%</div><div wdid=\"4\" class=\"wdform_row ui-sortable-handle\">%4 - Date%</div></div><div class=\"wdform_column ui-sortable\"><div wdid=\"5\" class=\"wdform_row ui-sortable-handle\">%5 - E-mail%</div><div wdid=\"7\" class=\"wdform_row ui-sortable-handle\">%7 - Phone%</div><div wdid=\"8\" class=\"wdform_row ui-sortable-handle\">%8 - Company%</div></div></div><div valign=\"top\" class=\"wdform_footer\" style=\"width: 100%;\"><div style=\"width: 100%;\"><div style=\"width: 100%; display: table; padding-top:10px;\"><div style=\"display: table-row-group;\"><div id=\"form_id_temppage_nav1\" style=\"display: table-row;\"><div valign=\"middle\" align=\"left\" style=\"display: table-cell; width: 40%;\"></div><div id=\"page_numbersform_id_temp1\" valign=\"middle\" align=\"center\" style=\"display: table-cell;\"><span class=\"page_numbersform_id_temp\">1/3</span></div><div valign=\"middle\" align=\"right\" style=\"display: table-cell; width: 40%;\"><span id=\"page_next_1\" class=\"wdform-page-button\" style=\"cursor: pointer;\">Next</span></div></div></div></div></div></div></div></div><div class=\"wdform-page-and-images\" style=\"display: table; border-width: 1px; border-top-style: solid; border-top-color: black;\"><div id=\"form_id_tempform_view2\" page_title=\"Step 2\" class=\"wdform_page\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"true\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"9\" class=\"wdform_row ui-sortable-handle\">%9 - custom_9%</div></div></div><div wdid=\"10\" type=\"type_section_break\" class=\"wdform_tr_section_break\">%10 - custom_10%</div><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"11\" class=\"wdform_row ui-sortable-handle\">%11 - Address:%</div></div><div class=\"wdform_column ui-sortable\"><div wdid=\"17\" class=\"wdform_row ui-sortable-handle\">%17 - Website%</div><div wdid=\"18\" class=\"wdform_row ui-sortable-handle\">%18 - Marital Status%</div><div wdid=\"19\" class=\"wdform_row ui-sortable-handle\">%19 - Field of Business%</div></div></div><div valign=\"top\" class=\"wdform_footer\" style=\"width: 100%;\"><div style=\"width: 100%;\"><div style=\"width: 100%; display: table;\"><div style=\"display: table-row-group;\"><div id=\"form_id_temppage_nav2\" style=\"display: table-row;\"><div valign=\"middle\" align=\"left\" style=\"display: table-cell; width: 40%;\"><span id=\"page_previous_2\" class=\"wdform-page-button\" style=\"cursor: pointer;\">Previous</span></div><div id=\"page_numbersform_id_temp2\" valign=\"middle\" align=\"center\" style=\"display: table-cell;\"><span class=\"page_numbersform_id_temp\">2/3</span></div><div valign=\"middle\" align=\"right\" style=\"display: table-cell; width: 40%;\"><span id=\"page_next_2\" class=\"wdform-page-button\" style=\"cursor: pointer;\">Next</span></div></div></div></div></div></div></div></div><div class=\"wdform-page-and-images\" style=\"display: table; border-width: 1px; border-top-style: solid; border-top-color: black;\"><div id=\"form_id_tempform_view3\" page_title=\"Step 3\" class=\"wdform_page\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"true\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"20\" class=\"wdform_row ui-sortable-handle\">%20 - custom_20%</div></div></div><div wdid=\"21\" type=\"type_section_break\" class=\"wdform_tr_section_break\">%21 - custom_21%</div><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"22\" class=\"wdform_row ui-sortable-handle\">%22 - Do you require delivery?%</div></div><div class=\"wdform_column ui-sortable\"><div wdid=\"23\" class=\"wdform_row ui-sortable-handle\">%23 - Radio:%</div></div></div><div wdid=\"25\" type=\"type_section_break\" class=\"wdform_tr_section_break\">%25 - custom_25%</div><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"24\" class=\"wdform_row ui-sortable-handle\">%24 - type_submit_reset_24%</div></div></div><div valign=\"top\" class=\"wdform_footer\" style=\"width: 100%;\"><div style=\"width: 100%;\"><div style=\"width: 100%; display: table;\"><div style=\"display: table-row-group;\"><div id=\"form_id_temppage_nav3\" style=\"display: table-row;\"><div valign=\"middle\" align=\"left\" style=\"display: table-cell; width: 40%;\"><span id=\"page_previous_3\" class=\"wdform-page-button\" style=\"cursor: pointer;\">Previous</span></div><div id=\"page_numbersform_id_temp3\" valign=\"middle\" align=\"center\" style=\"display: table-cell;\"><span class=\"page_numbersform_id_temp\">3/3</span></div><div valign=\"middle\" align=\"right\" style=\"display: table-cell; width: 40%;\"></div></div></div></div></div></div></div></div>', '1', '// Occurs before the form is loaded\r\nfunction before_load() { \r\n} \r\n// Occurs just before submitting the form\r\nfunction before_submit() {\r\n // IMPORTANT! If you want to interrupt (stop) the submitting of the form, this function should return true. You don''t need to return any value if you don''t want to stop the submission.\r\n} \r\n// Occurs just before resetting the form\r\nfunction before_reset() { \r\n}', '', '', '0', '%all%', '%all%', '26', '1', '1#**id**#custom_1#**label**#type_editor#****#2#**id**#First Name#**label**#type_text#****#3#**id**#Last Name#**label**#type_text#****#4#**id**#Date#**label**#type_date_new#****#5#**id**#E-mail#**label**#type_submitter_mail#****#7#**id**#Phone#**label**#type_phone_new#****#8#**id**#Company#**label**#type_text#****#9#**id**#custom_9#**label**#type_editor#****#11#**id**#Street Address#**label**#type_address#****#12#**id**#Street Address Line 2#**label**#type_address#****#13#**id**#City#**label**#type_address#****#14#**id**#State / Region#**label**#type_address#****#15#**id**#Postal / Zip Code#**label**#type_address#****#16#**id**#Country#**label**#type_address#****#17#**id**#Website#**label**#type_text#****#18#**id**#Marital Status#**label**#type_radio#****#19#**id**#Field of Business#**label**#type_checkbox#****#20#**id**#custom_20#**label**#type_editor#****#22#**id**#Do you require delivery?#**label**#type_radio#****#23#**id**#Radio:#**label**#type_paypal_radio#****#24#**id**#type_submit_reset_24#**label**#type_submit_reset#****##**id**##**label**##****#', '1#**id**#custom_1#**label**#type_editor#****#2#**id**#First Name#**label**#type_text#****#3#**id**#Last Name#**label**#type_text#****#4#**id**#Date#**label**#type_date_new#****#5#**id**#E-mail#**label**#type_submitter_mail#****#7#**id**#Phone#**label**#type_phone_new#****#8#**id**#Company#**label**#type_text#****#9#**id**#custom_9#**label**#type_editor#****#11#**id**#Street Address#**label**#type_address#****#12#**id**#Street Address Line 2#**label**#type_address#****#13#**id**#City#**label**#type_address#****#14#**id**#State / Region#**label**#type_address#****#15#**id**#Postal / Zip Code#**label**#type_address#****#16#**id**#Country#**label**#type_address#****#17#**id**#Website#**label**#type_text#****#18#**id**#Marital Status#**label**#type_radio#****#19#**id**#Field of Business#**label**#type_checkbox#****#20#**id**#custom_20#**label**#type_editor#****#22#**id**#Do you require delivery?#**label**#type_radio#****#23#**id**#Radio:#**label**#type_paypal_radio#****#24#**id**#type_submit_reset_24#**label**#type_submit_reset#****#', '0', 'steps', 'true', 'true', '', '', '', '0', 'testmode', '', '', '0', '1*:*id*:*type_editor*:*type*:*custom_1*:*w_field_label*:*<div style=\"font-size: 22px; color: #828282; text-align: center;\">Step 1: Fill in basic information about yourself.</div>*:*w_editor*:**:*new_field*:*6*:*id*:*type_section_break*:*type*:*custom_6*:*w_field_label*:*<div class=\"wdform-section-break-div\" style=\"min-width: 300px;\"></div>*:*w_editor*:**:*new_field*:*2*:*id*:*type_text*:*type*:*First Name*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*new_field*:*3*:*id*:*type_text*:*type*:*Last Name*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*new_field*:*4*:*id*:*type_date_new*:*type*:*Date*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_date*:*no*:*w_required*:*no*:*w_show_image*:**:*w_class*:*mm/dd/yy*:*w_format*:*0*:*w_start_day*:**:*w_default_date*:**:*w_min_date*:**:*w_max_date*:**:*w_invalid_dates*:*yes***yes***yes***yes***yes***yes***yes*:*w_show_days*:*yes*:*w_hide_time*:*...*:*w_but_val*:*no*:*w_disable_past_days*:**:*new_field*:*5*:*id*:*type_submitter_mail*:*type*:*E-mail*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no*:*w_verification*:*E-mail confirmation:*:*w_verification_label*:**:*w_verification_placeholder*:*no*:*w_autofill*:**:*new_field*:*7*:*id*:*type_phone_new*:*type*:*Phone*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:*us*:*w_top_country*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*8*:*id*:*type_text*:*type*:*Company*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*new_field*:*9*:*id*:*type_editor*:*type*:*custom_9*:*w_field_label*:*<div style=\"font-size: 22px; color: #828282;;text-align: center;\">Step 2: Additional information.</div>*:*w_editor*:**:*new_field*:*10*:*id*:*type_section_break*:*type*:*custom_10*:*w_field_label*:*<div class=\"wdform-section-break-div\" style=\"min-width: 300px;\"></div>*:*w_editor*:**:*new_field*:*11*:*id*:*type_address*:*type*:*Address:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*250*:*w_size*:*Street Address***Street Address Line 2***City***State / Region***Postal / Zip Code***Country*:*w_mini_labels*:*no***no***no***no***no***no***no*:*w_disabled_fields*:*no*:*w_required*:*wdform_address*:*w_class*:**:*new_field*:*17*:*id*:*type_text*:*type*:*Website*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:*http://example.com*:*w_first_val*:*http://example.com*:*w_title*:*no*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*new_field*:*18*:*id*:*type_radio*:*type*:*Marital Status*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*left*:*w_field_option_pos*:*no*:*w_hide_label*:*hor*:*w_flow*:*Married***Single*:*w_choices*:*false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*no*:*w_value_disabled*:*Married***Single*:*w_choices_value*:*****:*w_choices_params*:**:*w_class*:**:*new_field*:*19*:*id*:*type_checkbox*:*type*:*Field of Business*:*w_field_label*:*150*:*w_field_label_size*:*top*:*w_field_label_pos*:*right*:*w_field_option_pos*:*no*:*w_hide_label*:*ver*:*w_flow*:*Information Technologies***Health and Medicine***Local Business***Fashion***Automobiles*:*w_choices*:*false***false***false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*no*:*w_value_disabled*:*Information Technologies***Health and Medicine***Local Business***Fashion***Automobiles*:*w_choices_value*:**************:*w_choices_params*:**:*w_class*:**:*new_field*:*20*:*id*:*type_editor*:*type*:*custom_20*:*w_field_label*:*<div style=\"font-size: 22px; color: #828282; text-align: center;\">Step 3: Choose a service pack to purchase.</div>*:*w_editor*:**:*new_field*:*21*:*id*:*type_section_break*:*type*:*custom_21*:*w_field_label*:*<div class=\"wdform-section-break-div\" style=\"min-width: 300px;\"></div>*:*w_editor*:**:*new_field*:*22*:*id*:*type_radio*:*type*:*Do you require delivery?*:*w_field_label*:*180*:*w_field_label_size*:*top*:*w_field_label_pos*:*left*:*w_field_option_pos*:*no*:*w_hide_label*:*hor*:*w_flow*:*Yes***No*:*w_choices*:*false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*no*:*w_value_disabled*:*Yes***No*:*w_choices_value*:*****:*w_choices_params*:**:*w_class*:**:*new_field*:*23*:*id*:*type_paypal_radio*:*type*:*Radio:*:*w_field_label*:*200*:*w_field_label_size*:*left*:*w_field_label_pos*:*left*:*w_field_option_pos*:*yes*:*w_hide_label*:*ver*:*w_flow*:*Service Pack 1 - 100 USD***Service Pack 2 - 200 USD*:*w_choices*:*100***200*:*w_choices_price*:*false***false*:*w_choices_checked*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*****:*w_choices_params*:**:*w_class*:**:*w_property*:**:*w_property_values*:*no*:*w_quantity*:*1*:*w_quantity_value*:**:*new_field*:*25*:*id*:*type_section_break*:*type*:*custom_25*:*w_field_label*:*<div class=\"wdform-section-break-div\" style=\"min-width: 300px;\"></div>*:*w_editor*:**:*new_field*:*24*:*id*:*type_submit_reset*:*type*:*type_submit_reset_24*:*w_field_label*:*Purchase*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*false*:*w_act*:**:*new_field*:*', '1', '1', '*', '', '', '', '', '1', '', '', '', '', '', '', '', '', '', '', '', '1', '1', '1', '1', 'administrator,', '1', '', '', '0', '0', '0', '0', '1', '', '', '" . WDFM()->plugin_url . "/images/demo/4.png', 'none', '1');");
290
+ $wpdb->query("INSERT INTO `" . $wpdb->prefix . "formmaker` (`id`, `title`, `type`, `mail`, `form_front`, `theme`, `javascript`, `submit_text`, `url`, `submit_text_type`, `script_mail`, `script_mail_user`, `counter`, `published`, `label_order`, `label_order_current`, `article_id`, `pagination`, `show_title`, `show_numbers`, `public_key`, `private_key`, `recaptcha_theme`, `paypal_mode`, `checkout_mode`, `paypal_email`, `payment_currency`, `tax`, `form_fields`, `savedb`, `sendemail`, `requiredmark`, `from_mail`, `from_name`, `reply_to`, `send_to`, `autogen_layout`, `custom_front`, `mail_from_user`, `mail_from_name_user`, `reply_to_user`, `condition`, `mail_cc`, `mail_cc_user`, `mail_bcc`, `mail_bcc_user`, `mail_subject`, `mail_subject_user`, `mail_mode`, `mail_mode_user`, `mail_attachment`, `mail_attachment_user`, `user_id_wd`, `sortable`, `frontend_submit_fields`, `frontend_submit_stat_fields`, `mail_emptyfields`, `mail_verify`, `mail_verify_expiretime`, `mail_verification_post_id`, `save_uploads`, `header_title`, `header_description`, `header_image_url`, `header_image_animation`, `header_hide_image`) VALUES ('0', 'Hotel Reservation Form', 'embedded', '', '<div class=\"wdform-page-and-images\" style=\"display:table; border-top:0px solid black;\"><div id=\"form_id_tempform_view1\" class=\"wdform_page\" page_title=\"Untitled page\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"false\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"1\" class=\"wdform_row ui-sortable-handle\">%1 - First Name%</div><div wdid=\"3\" class=\"wdform_row ui-sortable-handle\">%3 - E-mail:%</div><div wdid=\"5\" class=\"wdform_row ui-sortable-handle\">%5 - Country:%</div><div wdid=\"7\" class=\"wdform_row ui-sortable-handle\">%7 - Address%</div><div wdid=\"9\" class=\"wdform_row ui-sortable-handle\">%9 - Check-in Date%</div><div wdid=\"11\" class=\"wdform_row ui-sortable-handle\">%11 - Accomodation type%</div><div wdid=\"13\" class=\"wdform_row ui-sortable-handle\">%13 - Meal plan%</div></div><div class=\"wdform_column ui-sortable\"><div wdid=\"2\" class=\"wdform_row ui-sortable-handle\">%2 - Last Name%</div><div wdid=\"4\" class=\"wdform_row ui-sortable-handle\">%4 - Phone Number%</div><div wdid=\"6\" class=\"wdform_row ui-sortable-handle\">%6 - City%</div><div wdid=\"8\" class=\"wdform_row ui-sortable-handle\">%8 - Postal / Zip Code%</div><div wdid=\"10\" class=\"wdform_row ui-sortable-handle\">%10 - Check-out Date%</div><div wdid=\"12\" class=\"wdform_row ui-sortable-handle\">%12 - Number of rooms%</div><div wdid=\"14\" class=\"wdform_row ui-sortable-handle\">%14 - Room type%</div></div></div><div wdid=\"15\" type=\"type_section_break\" class=\"wdform_tr_section_break\">%15 - custom_15%</div><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"16\" class=\"wdform_row ui-sortable-handle\">%16 - Additional Requests%</div><div wdid=\"17\" class=\"wdform_row ui-sortable-handle\">%17 - Pick up from Airport?%</div><div wdid=\"18\" class=\"wdform_row ui-sortable-handle\">%18 - type_submit_reset_18%</div></div></div><div valign=\"top\" class=\"wdform_footer\" style=\"width: 100%;\"><div style=\"width: 100%;\"><div style=\"width: 100%; display: table; padding-top:10px;\"><div style=\"display: table-row-group;\"><div id=\"form_id_temppage_nav1\" style=\"display: table-row;\"></div></div></div></div></div></div></div>', '8', '// Occurs before the form is loaded\r\nfunction before_load() { \r\n} \r\n// Occurs just before submitting the form\r\nfunction before_submit() {\r\n // IMPORTANT! If you want to interrupt (stop) the submitting of the form, this function should return true. You don''t need to return any value if you don''t want to stop the submission.\r\n} \r\n// Occurs just before resetting the form\r\nfunction before_reset() { \r\n}', '', '0', '0', '%all%', '%all%', '19', '1', '1#**id**#First Name#**label**#type_text#****#3#**id**#E-mail:#**label**#type_submitter_mail#****#5#**id**#Country:#**label**#type_country#****#7#**id**#Address#**label**#type_text#****#9#**id**#Check-in Date#**label**#type_date_new#****#11#**id**#Accomodation type#**label**#type_own_select#****#13#**id**#Meal plan#**label**#type_own_select#****#2#**id**#Last Name#**label**#type_text#****#4#**id**#Phone Number#**label**#type_phone_new#****#6#**id**#City#**label**#type_text#****#8#**id**#Postal / Zip Code#**label**#type_text#****#10#**id**#Check-out Date#**label**#type_date_new#****#12#**id**#Number of rooms#**label**#type_text#****#14#**id**#Room type#**label**#type_own_select#****#16#**id**#Additional Requests#**label**#type_textarea#****#17#**id**#Pick up from Airport?#**label**#type_radio#****#18#**id**#type_submit_reset_18#**label**#type_submit_reset#****##**id**##**label**##****#', '1#**id**#First Name#**label**#type_text#****#3#**id**#E-mail:#**label**#type_submitter_mail#****#5#**id**#Country:#**label**#type_country#****#7#**id**#Address#**label**#type_text#****#9#**id**#Check-in Date#**label**#type_date_new#****#11#**id**#Accomodation type#**label**#type_own_select#****#13#**id**#Meal plan#**label**#type_own_select#****#2#**id**#Last Name#**label**#type_text#****#4#**id**#Phone Number#**label**#type_phone_new#****#6#**id**#City#**label**#type_text#****#8#**id**#Postal / Zip Code#**label**#type_text#****#10#**id**#Check-out Date#**label**#type_date_new#****#12#**id**#Number of rooms#**label**#type_text#****#14#**id**#Room type#**label**#type_own_select#****#16#**id**#Additional Requests#**label**#type_textarea#****#17#**id**#Pick up from Airport?#**label**#type_radio#****#18#**id**#type_submit_reset_18#**label**#type_submit_reset#****#', '0', 'none', 'false', 'true', '', '', '', '0', '0', '', '', '0', '1*:*id*:*type_text*:*type*:*First Name*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*new_field*:*3*:*id*:*type_submitter_mail*:*type*:*E-mail:*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no*:*w_verification*:*E-mail confirmation:*:*w_verification_label*:**:*w_verification_placeholder*:*no*:*w_autofill*:**:*new_field*:*5*:*id*:*type_country*:*type*:*Country:*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:****Afghanistan***Albania***Algeria***Andorra***Angola***Antigua and Barbuda***Argentina***Armenia***Australia***Austria***Azerbaijan***Bahamas***Bahrain***Bangladesh***Barbados***Belarus***Belgium***Belize***Benin***Bhutan***Bolivia***Bosnia and Herzegovina***Botswana***Brazil***Brunei***Bulgaria***Burkina Faso***Burundi***Cambodia***Cameroon***Canada***Cape Verde***Central African Republic***Chad***Chile***China***Colombia***Comoros***Congo (Brazzaville)***Congo***Costa Rica***Cote d''Ivoire***Croatia***Cuba***Curacao***Cyprus***Czech Republic***Denmark***Djibouti***Dominica***Dominican Republic***East Timor (Timor Timur)***Ecuador***Egypt***El Salvador***Equatorial Guinea***Eritrea***Estonia***Ethiopia***Fiji***Finland***France***Gabon***Gambia, The***Georgia***Germany***Ghana***Greece***Grenada***Guatemala***Guinea***Guinea-Bissau***Guyana***Haiti***Honduras***Hungary***Iceland***India***Indonesia***Iran***Iraq***Ireland***Israel***Italy***Jamaica***Japan***Jordan***Kazakhstan***Kenya***Kiribati***Korea, North***Korea, South***Kuwait***Kyrgyzstan***Laos***Latvia***Lebanon***Lesotho***Liberia***Libya***Liechtenstein***Lithuania***Luxembourg***Macedonia***Madagascar***Malawi***Malaysia***Maldives***Mali***Malta***Marshall Islands***Mauritania***Mauritius***Mexico***Micronesia***Moldova***Monaco***Mongolia***Morocco***Mozambique***Myanmar***Namibia***Nauru***Nepal***Netherlands***New Zealand***Nicaragua***Niger***Nigeria***Norway***Oman***Pakistan***Palau***Panama***Papua New Guinea***Paraguay***Peru***Philippines***Poland***Portugal***Qatar***Romania***Russia***Rwanda***Saint Kitts and Nevis***Saint Lucia***Saint Vincent***Samoa***San Marino***Sao Tome and Principe***Saudi Arabia***Senegal***Serbia and Montenegro***Seychelles***Sierra Leone***Singapore***Slovakia***Slovenia***Solomon Islands***Somalia***South Africa***Spain***Sri Lanka***Sudan***Suriname***Swaziland***Sweden***Switzerland***Syria***Taiwan***Tajikistan***Tanzania***Thailand***Togo***Tonga***Trinidad and Tobago***Tunisia***Turkey***Turkmenistan***Tuvalu***Uganda***Ukraine***United Arab Emirates***United Kingdom***United States***Uruguay***Uzbekistan***Vanuatu***Vatican City***Venezuela***Vietnam***Yemen***Zambia***Zimbabwe*:*w_countries*:*yes*:*w_required*:*wdform_select*:*w_class*:**:*new_field*:*7*:*id*:*type_text*:*type*:*Address*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*new_field*:*9*:*id*:*type_date_new*:*type*:*Check-in Date*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_date*:*yes*:*w_required*:*yes*:*w_show_image*:**:*w_class*:*mm/dd/yy*:*w_format*:*0*:*w_start_day*:**:*w_default_date*:**:*w_min_date*:**:*w_max_date*:**:*w_invalid_dates*:*yes***yes***yes***yes***yes***yes***yes*:*w_show_days*:*yes*:*w_hide_time*:*...*:*w_but_val*:*no*:*w_disable_past_days*:**:*new_field*:*11*:*id*:*type_own_select*:*type*:*Accomodation type*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:*Select***Hotel***Hostel***Motel***Cottage*:*w_choices*:*true***false***false***false***false*:*w_choices_checked*:*false***false***false***false***false*:*w_choices_disabled*:*yes*:*w_required*:*no*:*w_value_disabled*:*Select***Hotel***Hostel***Motel***Cottage*:*w_choices_value*:**************:*w_choices_params*:*wdform_select*:*w_class*:**:*new_field*:*13*:*id*:*type_own_select*:*type*:*Meal plan*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:*Select***MAP***CP***EP*:*w_choices*:*true***false***false***false*:*w_choices_checked*:*false***false***false***false*:*w_choices_disabled*:*yes*:*w_required*:*no*:*w_value_disabled*:****MAP***CP***EP*:*w_choices_value*:***********:*w_choices_params*:*wdform_select*:*w_class*:**:*new_field*:*2*:*id*:*type_text*:*type*:*Last Name*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*new_field*:*4*:*id*:*type_phone_new*:*type*:*Phone Number*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:*us*:*w_top_country*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*6*:*id*:*type_text*:*type*:*City*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*new_field*:*8*:*id*:*type_text*:*type*:*Postal / Zip Code*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*new_field*:*10*:*id*:*type_date_new*:*type*:*Check-out Date*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_date*:*yes*:*w_required*:*yes*:*w_show_image*:**:*w_class*:*mm/dd/yy*:*w_format*:*0*:*w_start_day*:**:*w_default_date*:**:*w_min_date*:**:*w_max_date*:**:*w_invalid_dates*:*yes***yes***yes***yes***yes***yes***yes*:*w_show_days*:*yes*:*w_hide_time*:*...*:*w_but_val*:*no*:*w_disable_past_days*:**:*new_field*:*12*:*id*:*type_text*:*type*:*Number of rooms*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*yes*:*w_regExp_status*:*%5E%5B0-9%5D+%24*:*w_regExp_value*:*^[0-9]+$*:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*new_field*:*14*:*id*:*type_own_select*:*type*:*Room type*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:*Select***Single***Double***Triple***Quad***Queen***King***Twin***Double-double***Studio*:*w_choices*:*true***false***false***false***false***false***false***false***false***false*:*w_choices_checked*:*false***false***false***false***false***false***false***false***false***false*:*w_choices_disabled*:*yes*:*w_required*:*no*:*w_value_disabled*:****Single***Double***Triple***Quad***Queen***King***Twin***Double-double***Studio*:*w_choices_value*:*****************************:*w_choices_params*:*wdform_select*:*w_class*:**:*new_field*:*15*:*id*:*type_section_break*:*type*:*custom_15*:*w_field_label*:*<div class=\"wdform-section-break-div\" style=\"min-width: 300px;\"></div>*:*w_editor*:**:*new_field*:*16*:*id*:*type_textarea*:*type*:*Additional Requests*:*w_field_label*:*400*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*400*:*w_size_w*:*200*:*w_size_h*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*17*:*id*:*type_radio*:*type*:*Pick up from Airport?*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*left*:*w_field_option_pos*:*no*:*w_hide_label*:*hor*:*w_flow*:*Yes***No*:*w_choices*:*false***false*:*w_choices_checked*:*1*:*w_rowcol*:*yes*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*no*:*w_value_disabled*:*Yes***No*:*w_choices_value*:*****:*w_choices_params*:**:*w_class*:**:*new_field*:*18*:*id*:*type_submit_reset*:*type*:*type_submit_reset_18*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*false*:*w_act*:**:*new_field*:*', '1', '1', '*', '', '', '', '0', '1', '', '', '', '', '', '', '', '', '', '', '0', '1', '1', '1', '1', 'administrator,', '1', '', '0', '0', '0', '0', '0', '1', 'HOTEL RESERVATION FORM', 'An online hotel booking form to track your bookings easily and manage further reservations more accurate.', '', 'none', '0');");
291
  $wpdb->query("INSERT INTO `" . $wpdb->prefix . "formmaker` (`id`, `title`, `type`, `mail`, `form_front`, `theme`, `javascript`, `submit_text`, `url`, `submit_text_type`, `script_mail`, `script_mail_user`, `counter`, `published`, `label_order`, `label_order_current`, `article_id`, `pagination`, `show_title`, `show_numbers`, `public_key`, `private_key`, `recaptcha_theme`, `paypal_mode`, `checkout_mode`, `paypal_email`, `payment_currency`, `tax`, `form_fields`, `savedb`, `sendemail`, `requiredmark`, `from_mail`, `from_name`, `reply_to`, `send_to`, `autogen_layout`, `custom_front`, `mail_from_user`, `mail_from_name_user`, `reply_to_user`, `condition`, `mail_cc`, `mail_cc_user`, `mail_bcc`, `mail_bcc_user`, `mail_subject`, `mail_subject_user`, `mail_mode`, `mail_mode_user`, `mail_attachment`, `mail_attachment_user`, `user_id_wd`, `sortable`, `frontend_submit_fields`, `frontend_submit_stat_fields`, `mail_emptyfields`, `mail_verify`, `mail_verify_expiretime`, `mail_verification_post_id`, `save_uploads`, `header_title`, `header_description`, `header_image_url`, `header_image_animation`, `header_hide_image`) VALUES ('0', 'Customer Survey', 'embedded', '', '<div class=\"wdform-page-and-images\" style=\"display:table; border-top:0px solid black;\"><div id=\"form_id_tempform_view1\" class=\"wdform_page\" page_title=\"Untitled page\" next_title=\"Next\" next_type=\"text\" next_class=\"wdform-page-button\" next_checkable=\"false\" previous_title=\"Previous\" previous_type=\"text\" previous_class=\"wdform-page-button\" previous_checkable=\"false\"><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"1\" class=\"wdform_row ui-sortable-handle\">%1 - custom_1%</div><div wdid=\"2\" class=\"wdform_row ui-sortable-handle\">%2 - custom_2%</div><div wdid=\"3\" class=\"wdform_row ui-sortable-handle\">%3 - Your name%</div><div wdid=\"4\" class=\"wdform_row ui-sortable-handle\">%4 - Age%</div><div wdid=\"5\" class=\"wdform_row ui-sortable-handle\">%5 - Address%</div><div wdid=\"6\" class=\"wdform_row ui-sortable-handle\">%6 - Zip%</div><div wdid=\"7\" class=\"wdform_row ui-sortable-handle\">%7 - City%</div></div><div class=\"wdform_column ui-sortable\"><div wdid=\"8\" class=\"wdform_row ui-sortable-handle\">%8 - custom_8%</div><div wdid=\"9\" class=\"wdform_row ui-sortable-handle\">%9 - custom_9%</div><div wdid=\"10\" class=\"wdform_row ui-sortable-handle\">%10 - Select a job%</div><div wdid=\"11\" class=\"wdform_row ui-sortable-handle\">%11 - Job type%</div><div wdid=\"12\" class=\"wdform_row ui-sortable-handle\">%12 - Employment date%</div><div wdid=\"13\" class=\"wdform_row ui-sortable-handle\">%13 - A photo of you%</div></div></div><div wdid=\"14\" type=\"type_section_break\" class=\"wdform_tr_section_break\">%14 - custom_14%</div><div class=\"wdform_section\"><div class=\"wdform_column ui-sortable\"><div wdid=\"15\" class=\"wdform_row ui-sortable-handle\">%15 - custom_15%</div><div wdid=\"16\" class=\"wdform_row ui-sortable-handle\">%16 - Phone%</div><div wdid=\"17\" class=\"wdform_row ui-sortable-handle\">%17 - Email%</div><div wdid=\"18\" class=\"wdform_row ui-sortable-handle\">%18 - custom_18%</div><div wdid=\"21\" class=\"wdform_row ui-sortable-handle\">%21 - Word Verification:%</div><div wdid=\"20\" class=\"wdform_row ui-sortable-handle\">%20 - type_submit_reset_20%</div></div></div><div valign=\"top\" class=\"wdform_footer\" style=\"width: 100%;\"><div style=\"width: 100%;\"><div style=\"width: 100%; display: table; padding-top:10px;\"><div style=\"display: table-row-group;\"><div id=\"form_id_temppage_nav1\" style=\"display: table-row;\"></div></div></div></div></div></div></div>', '2', '// Occurs before the form is loaded\r\nfunction before_load() { \r\n} \r\n// Occurs just before submitting the form\r\nfunction before_submit() {\r\n // IMPORTANT! If you want to interrupt (stop) the submitting of the form, this function should return true. You don''t need to return any value if you don''t want to stop the submission.\r\n} \r\n// Occurs just before resetting the form\r\nfunction before_reset() { \r\n}', '', '0', '0', '%all%', '%all%', '22', '1', '1#**id**#custom_1#**label**#type_editor#****#2#**id**#custom_2#**label**#type_editor#****#3#**id**#Your name#**label**#type_text#****#4#**id**#Age#**label**#type_text#****#5#**id**#Address#**label**#type_text#****#6#**id**#Zip#**label**#type_text#****#7#**id**#City#**label**#type_text#****#8#**id**#custom_8#**label**#type_editor#****#9#**id**#custom_9#**label**#type_editor#****#10#**id**#Select a job#**label**#type_own_select#****#11#**id**#Job type#**label**#type_radio#****#12#**id**#Employment date#**label**#type_date_new#****#13#**id**#A photo of you#**label**#type_file_upload#****#15#**id**#custom_15#**label**#type_editor#****#16#**id**#Phone#**label**#type_phone#****#17#**id**#Email#**label**#type_submitter_mail#****#18#**id**#custom_18#**label**#type_editor#****#21#**id**#Word Verification:#**label**#type_arithmetic_captcha#****#20#**id**#type_submit_reset_20#**label**#type_submit_reset#****#19#**id**#Recaptcha Word Verification:#**label**#type_recaptcha#****##**id**##**label**##****#', '1#**id**#custom_1#**label**#type_editor#****#2#**id**#custom_2#**label**#type_editor#****#3#**id**#Your name#**label**#type_text#****#4#**id**#Age#**label**#type_text#****#5#**id**#Address#**label**#type_text#****#6#**id**#Zip#**label**#type_text#****#7#**id**#City#**label**#type_text#****#8#**id**#custom_8#**label**#type_editor#****#9#**id**#custom_9#**label**#type_editor#****#10#**id**#Select a job#**label**#type_own_select#****#11#**id**#Job type#**label**#type_radio#****#12#**id**#Employment date#**label**#type_date_new#****#13#**id**#A photo of you#**label**#type_file_upload#****#15#**id**#custom_15#**label**#type_editor#****#16#**id**#Phone#**label**#type_phone#****#17#**id**#Email#**label**#type_submitter_mail#****#18#**id**#custom_18#**label**#type_editor#****#21#**id**#Word Verification:#**label**#type_arithmetic_captcha#****#20#**id**#type_submit_reset_20#**label**#type_submit_reset#****#', '0', 'none', 'false', 'true', '', '', '', '0', '0', '', '', '0', '1*:*id*:*type_editor*:*type*:*custom_1*:*w_field_label*:*<h3 style=\"font-weight: 400; border-bottom: 3px solid #1CBBB4; padding: 4px;\" data-mce-style=\"font-weight: 400; border-bottom: 3px solid #1CBBB4; padding: 4px;\">Personal Information</h3>*:*w_editor*:**:*new_field*:*2*:*id*:*type_editor*:*type*:*custom_2*:*w_field_label*:*<p style=\"border: 1px solid #96DFDC; padding: 5px 16px; font-size: 12px;\" data-mce-style=\"border: 1px solid #96DFDC; padding: 5px 16px; font-size: 12px;\">Please fill in your personal data here!</p>*:*w_editor*:**:*new_field*:*3*:*id*:*type_text*:*type*:*Your name*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*new_field*:*4*:*id*:*type_text*:*type*:*Age*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*yes*:*w_regExp_status*:*%5E%5B0-9%5D+%24*:*w_regExp_value*:*^[0-9]+$*:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*new_field*:*5*:*id*:*type_text*:*type*:*Address*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*new_field*:*6*:*id*:*type_text*:*type*:*Zip*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*new_field*:*7*:*id*:*type_text*:*type*:*City*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_regExp_status*:**:*w_regExp_value*:**:*w_regExp_common*:**:*w_regExp_arg*:*Incorrect Value*:*w_regExp_alert*:*no*:*w_unique*:*no*:*w_readonly*:**:*new_field*:*8*:*id*:*type_editor*:*type*:*custom_8*:*w_field_label*:*<h3 style=\"font-weight: 400; border-bottom: 3px solid #1CBBB4; padding: 4px;\" data-mce-style=\"font-weight: 400; border-bottom: 3px solid #1CBBB4; padding: 4px;\">Your application</h3>*:*w_editor*:**:*new_field*:*9*:*id*:*type_editor*:*type*:*custom_9*:*w_field_label*:*<p style=\"border: 1px solid #96DFDC; padding: 5px 16px; font-size: 12px;\" data-mce-style=\"border: 1px solid #96DFDC; padding: 5px 16px; font-size: 12px;\">Please enter your application data here!</p>*:*w_editor*:**:*new_field*:*10*:*id*:*type_own_select*:*type*:*Select a job*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:*Please choose***Sales Manager***CEO***Support*:*w_choices*:*false***false***false***false*:*w_choices_checked*:*false***false***false***false*:*w_choices_disabled*:*yes*:*w_required*:*no*:*w_value_disabled*:****Sales Manager***CEO***Support*:*w_choices_value*:***********:*w_choices_params*:*wdform_select*:*w_class*:**:*new_field*:*11*:*id*:*type_radio*:*type*:*Job type*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*left*:*w_field_option_pos*:*no*:*w_hide_label*:*ver*:*w_flow*:*Full time***Part time***Less than 3 days***1 day a week*:*w_choices*:*false***false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*yes*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*no*:*w_value_disabled*:*Full time***Part time***Less than 3 days***1 day a week*:*w_choices_value*:***********:*w_choices_params*:**:*w_class*:**:*new_field*:*12*:*id*:*type_date_new*:*type*:*Employment date*:*w_field_label*:*150*:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*200*:*w_size*:**:*w_date*:*yes*:*w_required*:*yes*:*w_show_image*:**:*w_class*:*mm/dd/yy*:*w_format*:*0*:*w_start_day*:**:*w_default_date*:**:*w_min_date*:**:*w_max_date*:**:*w_invalid_dates*:*yes***yes***yes***yes***yes***yes***yes*:*w_show_days*:*yes*:*w_hide_time*:*...*:*w_but_val*:*no*:*w_disable_past_days*:**:*new_field*:*13*:*id*:*type_file_upload*:*type*:*A photo of you*:*w_field_label*:*150*:*w_field_label_size*:*left*:*w_field_label_pos*:*no*:*w_hide_label*:*$wp_upload_dir/form-maker*:*w_destination*:*jpg, jpeg, png, gif*:*w_extension*:*2000*:*w_max_size*:*no*:*w_required*:*no*:*w_multiple*:**:*w_class*:**:*new_field*:*14*:*id*:*type_section_break*:*type*:*custom_14*:*w_field_label*:*<div class=\"wdform-section-break-div\" style=\"min-width: 300px;\"></div>*:*w_editor*:**:*new_field*:*15*:*id*:*type_editor*:*type*:*custom_15*:*w_field_label*:*<p style=\"color: #5fcfca; border-bottom: 1px solid #5FCFCA; font-size: 17px; padding: 6px;\" data-mce-style=\"color: #5fcfca; border-bottom: 1px solid #5FCFCA; font-size: 17px; padding: 6px;\">Contact Data</p>*:*w_editor*:**:*new_field*:*16*:*id*:*type_phone*:*type*:*Phone*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*no*:*w_hide_label*:*335*:*w_size*:*****:*w_first_val*:*****:*w_title*:*Area Code***Phone Number*:*w_mini_labels*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*17*:*id*:*type_submitter_mail*:*type*:*Email*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*no*:*w_hide_label*:*400*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no*:*w_verification*:*E-mail confirmation:*:*w_verification_label*:**:*w_verification_placeholder*:*no*:*w_autofill*:**:*new_field*:*18*:*id*:*type_editor*:*type*:*custom_18*:*w_field_label*:*<p style=\"color: #5fcfca; border-bottom: 1px solid #5FCFCA; font-size: 17px; padding: 6px;\" data-mce-style=\"color: #5fcfca; border-bottom: 1px solid #5FCFCA; font-size: 17px; padding: 6px;\">Security</p>*:*w_editor*:**:*new_field*:*21*:*id*:*type_arithmetic_captcha*:*type*:*Word Verification:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*yes*:*w_hide_label*:*1*:*w_count*:*+, -, *, /*:*w_operations*:**:*w_class*:*60*:*w_input_size*:**:*new_field*:*20*:*id*:*type_submit_reset*:*type*:*type_submit_reset_20*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*false*:*w_act*:**:*new_field*:*', '1', '1', '*', '', '', '', '0', '1', '', '', '', '', '', '', '', '', '', '', '0', '1', '1', '1', '1', 'administrator,', '1', '', '0', '0', '0', '0', '0', '1', '', '', '', 'none', '0');");
292
  }
293
  }
framework/WDW_FM_Library.php CHANGED
@@ -1376,7 +1376,8 @@ class WDW_FM_Library {
1376
  }
1377
  else {
1378
  jQuery("#form' . $form_id . ' div[wdid=' . $field_label[$k] . ']").' . $display_none . ';
1379
- }';
 
1380
  }
1381
  if ( $blur ) {
1382
  $condition_js .= '
@@ -2370,7 +2371,7 @@ class WDW_FM_Library {
2370
  jQuery("#wdform_' . $id1 . '_element' . $form_id . '").datepicker("show");
2371
  });
2372
  jQuery("#wdform_' . $id1 . '_element' . $form_id . '").datepicker({
2373
- dateFormat: "mm/dd/yy",
2374
  minDate: "' . $param['w_min_date'] . '",
2375
  maxDate: "' . $param['w_max_date'] . '",
2376
  changeMonth: true,
@@ -2402,10 +2403,10 @@ class WDW_FM_Library {
2402
  }
2403
  jQuery.each(invalid_date_range, function( index, value ) {
2404
  for(var d = new Date(value[0]); d <= new Date(value[1]); d.setDate(d.getDate() + 1)) {
2405
- invalid_dates_finish.push(jQuery.datepicker.formatDate("mm/dd/yy", d));
2406
  }
2407
  });
2408
- var string_days = jQuery.datepicker.formatDate("mm/dd/yy", date);
2409
  var day = date.getDay();
2410
  return [ invalid_dates_finish.indexOf(string_days) == -1 ' . $w_hide_sunday . $w_hide_monday . $w_hide_tuesday . $w_hide_wednesday . $w_hide_thursday . $w_hide_friday . $w_hide_saturday . '];
2411
  }
@@ -2419,9 +2420,6 @@ class WDW_FM_Library {
2419
  jQuery("#wdform_' . $id1 . '_element' . $form_id . '").datepicker("setDate", new Date());
2420
  }
2421
  else if (default_date.indexOf("d") == -1 && default_date.indexOf("m") == -1 && default_date.indexOf("y") == -1 && default_date.indexOf("w") == -1) {
2422
- if(default_date !== "") {
2423
- default_date = jQuery.datepicker.formatDate(format_date, new Date(default_date));
2424
- }
2425
  jQuery("#wdform_' . $id1 . '_element' . $form_id . '").datepicker("setDate", default_date);
2426
  }
2427
  else {
1376
  }
1377
  else {
1378
  jQuery("#form' . $form_id . ' div[wdid=' . $field_label[$k] . ']").' . $display_none . ';
1379
+ }
1380
+ });';
1381
  }
1382
  if ( $blur ) {
1383
  $condition_js .= '
2371
  jQuery("#wdform_' . $id1 . '_element' . $form_id . '").datepicker("show");
2372
  });
2373
  jQuery("#wdform_' . $id1 . '_element' . $form_id . '").datepicker({
2374
+ dateFormat: format_date,
2375
  minDate: "' . $param['w_min_date'] . '",
2376
  maxDate: "' . $param['w_max_date'] . '",
2377
  changeMonth: true,
2403
  }
2404
  jQuery.each(invalid_date_range, function( index, value ) {
2405
  for(var d = new Date(value[0]); d <= new Date(value[1]); d.setDate(d.getDate() + 1)) {
2406
+ invalid_dates_finish.push(jQuery.datepicker.formatDate(format_date, d));
2407
  }
2408
  });
2409
+ var string_days = jQuery.datepicker.formatDate(format_date, date);
2410
  var day = date.getDay();
2411
  return [ invalid_dates_finish.indexOf(string_days) == -1 ' . $w_hide_sunday . $w_hide_monday . $w_hide_tuesday . $w_hide_wednesday . $w_hide_thursday . $w_hide_friday . $w_hide_saturday . '];
2412
  }
2420
  jQuery("#wdform_' . $id1 . '_element' . $form_id . '").datepicker("setDate", new Date());
2421
  }
2422
  else if (default_date.indexOf("d") == -1 && default_date.indexOf("m") == -1 && default_date.indexOf("y") == -1 && default_date.indexOf("w") == -1) {
 
 
 
2423
  jQuery("#wdform_' . $id1 . '_element' . $form_id . '").datepicker("setDate", default_date);
2424
  }
2425
  else {
frontend/models/form_maker.php CHANGED
@@ -1051,6 +1051,9 @@ class FMModelForm_maker {
1051
  .fm-form-container.fm-theme" . $theme_id . " .fm-form .radio-div.fm-right input[type='radio'] {
1052
  float: right;
1053
  margin: 5px;
 
 
 
1054
  }
1055
 
1056
  .fm-form-container.fm-theme" . $theme_id . " .fm-form .file-picker{
@@ -3026,7 +3029,12 @@ class FMModelForm_maker {
3026
  if ( !isset($attachment_user[$all_files[$k]['field_key']]) ) {
3027
  $attachment_user[$all_files[$k]['field_key']] = array();
3028
  }
3029
- array_push($attachment_user[$all_files[$k]['field_key']], $all_files[$k]['tmp_name']);
 
 
 
 
 
3030
  }
3031
  }
3032
  }
@@ -3146,6 +3154,7 @@ class FMModelForm_maker {
3146
  }
3147
  }
3148
  }
 
3149
  if ( $row->sendemail ) {
3150
  if ( $row->reply_to ) {
3151
  $replyto = isset($_POST['wdform_' . $row->reply_to . "_element" . $id]) ? $_POST['wdform_' . $row->reply_to . "_element" . $id] : NULL;
@@ -3168,13 +3177,18 @@ class FMModelForm_maker {
3168
  if ( !isset($attachment[$all_files[$k]['field_key']]) ) {
3169
  $attachment[$all_files[$k]['field_key']] = array();
3170
  }
3171
- array_push($attachment[$all_files[$k]['field_key']], $all_files[$k]['tmp_name']);
 
 
 
 
 
3172
  }
3173
  }
3174
  }
3175
  if ( $GLOBALS['attachment'] ) {
3176
  array_push($attachment, $GLOBALS['attachment']);
3177
- }
3178
  if ( $row->mail_mode ) {
3179
  $content_type = "text/html";
3180
  $list = wordwrap($list, 100, "\n", TRUE);
@@ -3343,6 +3357,7 @@ class FMModelForm_maker {
3343
  break;
3344
  }
3345
  }
 
3346
  if ( !$str ) {
3347
  wp_redirect(html_entity_decode($redirect_url));
3348
  exit;
@@ -3391,11 +3406,13 @@ class FMModelForm_maker {
3391
  }
3392
  case "type_file_upload": {
3393
  if ( isset($attachment[$key]) ) {
3394
- foreach ( $attachment[$key] as $attach ) {
3395
  $uploadedFileNameParts = explode('.', $attach);
3396
  $uploadedFileExtension = array_pop($uploadedFileNameParts);
 
 
3397
  if ( $file_upload_link == 1 ) {
3398
- $new_value .= '<a href="' . site_url() . '/' . $attach . '"/>' . site_url() . '/' . $attach . '</a><br />';
3399
  }
3400
  else {
3401
  $invalidFileExts = array(
@@ -3423,7 +3440,7 @@ class FMModelForm_maker {
3423
  }
3424
  }
3425
  if ( $extOk == TRUE ) {
3426
- $new_value .= '<img src="' . site_url() . '/' . $attach . '" alt="' . $attach . '"/>';
3427
  }
3428
  }
3429
  }
1051
  .fm-form-container.fm-theme" . $theme_id . " .fm-form .radio-div.fm-right input[type='radio'] {
1052
  float: right;
1053
  margin: 5px;
1054
+ left: 5px;
1055
+ position: relative;
1056
+ top: 5px;
1057
  }
1058
 
1059
  .fm-form-container.fm-theme" . $theme_id . " .fm-form .file-picker{
3029
  if ( !isset($attachment_user[$all_files[$k]['field_key']]) ) {
3030
  $attachment_user[$all_files[$k]['field_key']] = array();
3031
  }
3032
+ $fields = explode('*:*w_hide_label*:*', $row->form_fields);
3033
+ $destination = explode('*:*w_destination*:*', end($fields));
3034
+ $destination = str_replace(site_url() . '/', '', $destination[0]);
3035
+ $file_name = str_replace('/form-maker', '', $all_files[$k]['tmp_name']);
3036
+ $file = $destination . $file_name;
3037
+ array_push($attachment_user[$all_files[$k]['field_key']], $file);
3038
  }
3039
  }
3040
  }
3154
  }
3155
  }
3156
  }
3157
+
3158
  if ( $row->sendemail ) {
3159
  if ( $row->reply_to ) {
3160
  $replyto = isset($_POST['wdform_' . $row->reply_to . "_element" . $id]) ? $_POST['wdform_' . $row->reply_to . "_element" . $id] : NULL;
3177
  if ( !isset($attachment[$all_files[$k]['field_key']]) ) {
3178
  $attachment[$all_files[$k]['field_key']] = array();
3179
  }
3180
+ $fields = explode('*:*w_hide_label*:*', $row->form_fields);
3181
+ $destination = explode('*:*w_destination*:*', end($fields));
3182
+ $destination = str_replace(site_url() . '/', '', $destination[0]);
3183
+ $file_name = str_replace('/form-maker', '', $all_files[$k]['tmp_name']);
3184
+ $file = $destination . $file_name;
3185
+ array_push($attachment[$all_files[$k]['field_key']], $file);
3186
  }
3187
  }
3188
  }
3189
  if ( $GLOBALS['attachment'] ) {
3190
  array_push($attachment, $GLOBALS['attachment']);
3191
+ }
3192
  if ( $row->mail_mode ) {
3193
  $content_type = "text/html";
3194
  $list = wordwrap($list, 100, "\n", TRUE);
3357
  break;
3358
  }
3359
  }
3360
+
3361
  if ( !$str ) {
3362
  wp_redirect(html_entity_decode($redirect_url));
3363
  exit;
3406
  }
3407
  case "type_file_upload": {
3408
  if ( isset($attachment[$key]) ) {
3409
+ foreach ( $attachment[$key] as $attach ) {
3410
  $uploadedFileNameParts = explode('.', $attach);
3411
  $uploadedFileExtension = array_pop($uploadedFileNameParts);
3412
+ $file_name = explode('/', $attach);
3413
+ $file_name = end($file_name);
3414
  if ( $file_upload_link == 1 ) {
3415
+ $new_value .= '<a href="' . site_url() . '/' . $attach . '"/>' . $file_name . '</a><br />';
3416
  }
3417
  else {
3418
  $invalidFileExts = array(
3440
  }
3441
  }
3442
  if ( $extOk == TRUE ) {
3443
+ $new_value .= '<img src="' . site_url() . '/' . $attach . '" alt="' . $file_name . '"/>';
3444
  }
3445
  }
3446
  }
frontend/views/form_maker.php CHANGED
@@ -436,7 +436,7 @@ class FMViewForm_maker {
436
  <div style="display:table-row;">
437
  <div style="' . $display_begin . ';"><span style="vertical-align:middle;">' . $symbol_begin_text . '</span></div>
438
  <div style="display:table-cell;">
439
- <input type="text" class="' . $input_active . '" id="wdform_' . $id1 . '_element' . $form_id . '" name="wdform_' . $id1 . '_element' . $form_id . '" value="' . $param['w_first_val'] . '" title="' . (!empty($param['w_first_val']) ? $param['w_first_val'] : $param['w_title']) . '" placeholder="' . $param['w_title'] . '" ' . $readonly . ' ' . $param['attributes'] . ' style="' . $input_width . '"></div><div style="' . $display_end . ';"><span style="vertical-align:middle;">' . $symbol_end_text . '</span></div>
440
  </div>
441
  </div>
442
  </div></div>';
@@ -682,14 +682,14 @@ class FMViewForm_maker {
682
  </div>
683
  <div class="wdform-element-section ' . $param['w_class'] . '" style="' . $param['w_field_label_pos2'] . ' width: ' . ($param['w_size'] + 65) . 'px;">
684
  <div style="display: table-cell;">
685
- <div><input type="text" class="' . $input_active . '" id="wdform_' . $id1 . '_element_first' . $form_id . '" name="wdform_' . $id1 . '_element_first' . $form_id . '" value="' . $w_first_val[0] . '" title="' . (!empty($w_first_val[0]) ? $w_first_val[0] : $w_title[0]) . '" placeholder="' . $w_title[0] . '" style="width: 52px;" ' . $param['attributes'] . '></div>
686
  <div><label class="mini_label">' . $w_mini_labels[0] . '</label></div>
687
  </div>
688
  <div style="display: table-cell;">
689
  <div class="wdform_line" style="margin: 0px 4px 10px 4px; padding: 0px;">-</div>
690
  </div>
691
  <div style="display: table-cell; width:100%;">
692
- <div><input type="text" class="' . $input_active . '" id="wdform_' . $id1 . '_element_last' . $form_id . '" name="wdform_' . $id1 . '_element_last' . $form_id . '" value="' . $w_first_val[1] . '" title="' . (!empty($w_first_val[1]) ? $w_first_val[1] : $w_title[1]) . '" placeholder="' . $w_title[1] . '" style="width: 100%;" ' . $param['attributes'] . '></div>
693
  <div><label class="mini_label">' . $w_mini_labels[1] . '</label></div>
694
  </div>
695
  </div>
@@ -846,12 +846,12 @@ class FMViewForm_maker {
846
  if ( $w_name_fields[0] == 'no' && $w_name_fields[1] == 'no' ) {
847
  $w_name_format = '
848
  <div style="display: table-cell; width:50%">
849
- <div><input type="text" class="' . ($w_first_val[0] == $w_title[0] ? "input_deactive" : "input_active") . '" id="wdform_' . $id1 . '_element_first' . $form_id . '" name="wdform_' . $id1 . '_element_first' . $form_id . '" value="' . $w_first_val[0] . '" title="' . (!empty($w_first_val[0]) ? $w_first_val[0] : $w_title[0]) . '" placeholder="' . $w_title[0] . '" style="width: 100%;"' . $param['attributes'] . '></div>
850
  <div><label class="mini_label">' . $w_mini_labels[1] . '</label></div>
851
  </div>
852
  <div style="display:table-cell;"><div style="margin: 0px 8px; padding: 0px;"></div></div>
853
  <div style="display: table-cell; width:50%">
854
- <div><input type="text" class="' . ($w_first_val[1] == $w_title[1] ? "input_deactive" : "input_active") . '" id="wdform_' . $id1 . '_element_last' . $form_id . '" name="wdform_' . $id1 . '_element_last' . $form_id . '" value="' . $w_first_val[1] . '" title="' . (!empty($w_first_val[1]) ? $w_first_val[1] : $w_title[1]) . '" placeholder="' . $w_title[1] . '" style="width: 100%;" ' . $param['attributes'] . '></div>
855
  <div><label class="mini_label">' . $w_mini_labels[2] . '</label></div>
856
  </div>
857
  ';
@@ -861,19 +861,19 @@ class FMViewForm_maker {
861
  $first_last_size = $w_name_fields[0] == 'yes' && $w_name_fields[1] == 'no' ? 45 : 30;
862
  $w_name_format = '
863
  <div style="display: table-cell; width:' . $first_last_size . '%">
864
- <div><input type="text" class="' . ($w_first_val[0] == $w_title[0] ? "input_deactive" : "input_active") . '" id="wdform_' . $id1 . '_element_first' . $form_id . '" name="wdform_' . $id1 . '_element_first' . $form_id . '" value="' . $w_first_val[0] . '" title="' . (!empty($w_first_val[0]) ? $w_first_val[0] : $w_title[0]) . '" placeholder="' . $w_title[0] . '" style="width:100%;"></div>
865
  <div><label class="mini_label">' . $w_mini_labels[1] . '</label></div>
866
  </div>
867
  <div style="display:table-cell;"><div style="margin: 0px 4px; padding: 0px;"></div></div>
868
  <div style="display: table-cell; width:' . $first_last_size . '%">
869
- <div><input type="text" class="' . ($w_first_val[1] == $w_title[1] ? "input_deactive" : "input_active") . '" id="wdform_' . $id1 . '_element_last' . $form_id . '" name="wdform_' . $id1 . '_element_last' . $form_id . '" value="' . $w_first_val[1] . '" title="' . (!empty($w_first_val[1]) ? $w_first_val[1] : $w_title[1]) . '" placeholder="' . $w_title[1] . '" style="width: 100%;"></div>
870
  <div><label class="mini_label">' . $w_mini_labels[2] . '</label></div>
871
  </div>';
872
  $w_size = 2 * $param['w_size'];
873
  if ( $w_name_fields[0] == 'yes' ) {
874
  $w_name_format = '
875
  <div style="display: table-cell;">
876
- <div><input type="text" class="' . ($w_first_val[2] == $w_title[2] ? "input_deactive" : "input_active") . '" id="wdform_' . $id1 . '_element_title' . $form_id . '" name="wdform_' . $id1 . '_element_title' . $form_id . '" value="' . $w_first_val[2] . '" title="' . (!empty($w_first_val[2]) ? $w_first_val[2] : $w_title[2]) . '" placeholder="' . $w_title[2] . '" style="width: 40px;"></div>
877
  <div><label class="mini_label">' . $w_mini_labels[0] . '</label></div>
878
  </div>
879
  <div style="display:table-cell;"><div style="margin: 0px 1px; padding: 0px;"></div></div>' . $w_name_format;
@@ -883,7 +883,7 @@ class FMViewForm_maker {
883
  $w_name_format = $w_name_format . '
884
  <div style="display:table-cell;"><div style="margin: 0px 4px; padding: 0px;"></div></div>
885
  <div style="display: table-cell; width:30%">
886
- <div><input type="text" class="' . ($w_first_val[3] == $w_title[3] ? "input_deactive" : "input_active") . '" id="wdform_' . $id1 . '_element_middle' . $form_id . '" name="wdform_' . $id1 . '_element_middle' . $form_id . '" value="' . $w_first_val[3] . '" title="' . (!empty($w_first_val[3]) ? $w_first_val[3] : $w_title[3]) . '" placeholder="' . $w_title[3] . '" style="width: 100%;"></div>
887
  <div><label class="mini_label">' . $w_mini_labels[3] . '</label></div>
888
  </div>
889
  ';
@@ -1092,6 +1092,7 @@ class FMViewForm_maker {
1092
  "Cote d'Ivoire",
1093
  "Croatia",
1094
  "Cuba",
 
1095
  "Cyprus",
1096
  "Czech Republic",
1097
  "Denmark",
@@ -1353,7 +1354,7 @@ class FMViewForm_maker {
1353
  $message_confirm = addslashes(__("The email addresses don't match", WDFM()->prefix));
1354
  $message_check_email = addslashes(__('This is not a valid email address.', WDFM()->prefix));
1355
  $onchange = (isset($param['w_verification']) && $param['w_verification'] == "yes") ? '; wd_check_confirmation_email(\'' . $id1 . '\', \'' . $form_id . '\', \'' . $message_confirm . '\')' : '';
1356
- $rep .= '</div><div class="wdform-element-section ' . $param['w_class'] . '" style="' . $param['w_field_label_pos2'] . ' width: ' . $param['w_size'] . 'px;"><input type="text" class="' . $input_active . '" id="wdform_' . $id1 . '_element' . $form_id . '" name="wdform_' . $id1 . '_element' . $form_id . '" value="' . $param['w_first_val'] . '" title="' . (!empty($param['w_first_val']) ? $param['w_first_val'] : $param['w_title']) . '" placeholder="' . $param['w_title'] . '" style="width: 100%;" ' . $param['attributes'] . ' onchange="wd_check_email(\'' . $id1 . '\', \'' . $form_id . '\', \'' . $message_check_email . '\', \'' . $message_confirm . '\')' . $onchange . '"></div></div>';
1357
  if ( isset($param['w_verification']) && $param['w_verification'] == "yes" ) {
1358
  $param['w_verification_placeholder'] = (isset($_POST['wdform_' . $id1 . '_1_element' . $form_id]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . '_1_element' . $form_id])) : $param['w_verification_placeholder']);
1359
  $rep .= '<div><div type="type_submitter_mail_confirmation" class="wdform-field" style="width:' . $wdformfieldsize . 'px"><div class="wdform-label-section" style="' . $param['w_field_label_pos1'] . '; width: ' . $param['w_field_label_size'] . 'px;"><span class="wdform-label">' . $param['w_verification_label'] . '</span>';
@@ -3127,17 +3128,10 @@ class FMViewForm_maker {
3127
  WDW_FM_Library::create_js($form_id);
3128
  wp_register_script('fm-script-' . $form_id, WDFM()->plugin_url . '/js/frontend/fm-script-' . $form_id . '.js', array(), $jsversion);
3129
  wp_enqueue_script('fm-script-' . $form_id);
3130
-
3131
- $addons = array( 'WD_FM_SAVE_PROG'); // 'WD_FM_CALCULATOR'
3132
- $addon_data = array();
3133
- foreach ( $addons as $addon ) {
3134
- if ( defined($addon) && is_plugin_active(constant($addon)) ) {
3135
- $_GET['addon_view'] = 'frontend';
3136
- $_GET['form_id'] = $form_id;
3137
- do_action($addon . '_init');
3138
- }
3139
- }
3140
 
 
 
 
3141
  return $formType == 'embedded' ? WDW_FM_Library::fm_container($theme_id, $form_maker_front_end) : $form_maker_front_end;
3142
  }
3143
 
436
  <div style="display:table-row;">
437
  <div style="' . $display_begin . ';"><span style="vertical-align:middle;">' . $symbol_begin_text . '</span></div>
438
  <div style="display:table-cell;">
439
+ <input type="text" class="' . $input_active . '" id="wdform_' . $id1 . '_element' . $form_id . '" name="wdform_' . $id1 . '_element' . $form_id . '" value="' . $param['w_first_val'] . '" title="' . $param['w_title'] . '" placeholder="' . $param['w_title'] . '" ' . $readonly . ' ' . $param['attributes'] . ' style="' . $input_width . '"></div><div style="' . $display_end . ';"><span style="vertical-align:middle;">' . $symbol_end_text . '</span></div>
440
  </div>
441
  </div>
442
  </div></div>';
682
  </div>
683
  <div class="wdform-element-section ' . $param['w_class'] . '" style="' . $param['w_field_label_pos2'] . ' width: ' . ($param['w_size'] + 65) . 'px;">
684
  <div style="display: table-cell;">
685
+ <div><input type="text" class="' . $input_active . '" id="wdform_' . $id1 . '_element_first' . $form_id . '" name="wdform_' . $id1 . '_element_first' . $form_id . '" value="' . $w_first_val[0] . '" title="' . $w_title[0] . '" placeholder="' . $w_title[0] . '" style="width: 52px;" ' . $param['attributes'] . '></div>
686
  <div><label class="mini_label">' . $w_mini_labels[0] . '</label></div>
687
  </div>
688
  <div style="display: table-cell;">
689
  <div class="wdform_line" style="margin: 0px 4px 10px 4px; padding: 0px;">-</div>
690
  </div>
691
  <div style="display: table-cell; width:100%;">
692
+ <div><input type="text" class="' . $input_active . '" id="wdform_' . $id1 . '_element_last' . $form_id . '" name="wdform_' . $id1 . '_element_last' . $form_id . '" value="' . $w_first_val[1] . '" title="' . $w_title[1] . '" placeholder="' . $w_title[1] . '" style="width: 100%;" ' . $param['attributes'] . '></div>
693
  <div><label class="mini_label">' . $w_mini_labels[1] . '</label></div>
694
  </div>
695
  </div>
846
  if ( $w_name_fields[0] == 'no' && $w_name_fields[1] == 'no' ) {
847
  $w_name_format = '
848
  <div style="display: table-cell; width:50%">
849
+ <div><input type="text" class="' . ($w_first_val[0] == $w_title[0] ? "input_deactive" : "input_active") . '" id="wdform_' . $id1 . '_element_first' . $form_id . '" name="wdform_' . $id1 . '_element_first' . $form_id . '" value="' . $w_first_val[0] . '" title="' . $w_title[0] . '" placeholder="' . $w_title[0] . '" style="width: 100%;"' . $param['attributes'] . '></div>
850
  <div><label class="mini_label">' . $w_mini_labels[1] . '</label></div>
851
  </div>
852
  <div style="display:table-cell;"><div style="margin: 0px 8px; padding: 0px;"></div></div>
853
  <div style="display: table-cell; width:50%">
854
+ <div><input type="text" class="' . ($w_first_val[1] == $w_title[1] ? "input_deactive" : "input_active") . '" id="wdform_' . $id1 . '_element_last' . $form_id . '" name="wdform_' . $id1 . '_element_last' . $form_id . '" value="' . $w_first_val[1] . '" title="' . $w_title[1] . '" placeholder="' . $w_title[1] . '" style="width: 100%;" ' . $param['attributes'] . '></div>
855
  <div><label class="mini_label">' . $w_mini_labels[2] . '</label></div>
856
  </div>
857
  ';
861
  $first_last_size = $w_name_fields[0] == 'yes' && $w_name_fields[1] == 'no' ? 45 : 30;
862
  $w_name_format = '
863
  <div style="display: table-cell; width:' . $first_last_size . '%">
864
+ <div><input type="text" class="' . ($w_first_val[0] == $w_title[0] ? "input_deactive" : "input_active") . '" id="wdform_' . $id1 . '_element_first' . $form_id . '" name="wdform_' . $id1 . '_element_first' . $form_id . '" value="' . $w_first_val[0] . '" title="' . $w_title[0] . '" placeholder="' . $w_title[0] . '" style="width:100%;"></div>
865
  <div><label class="mini_label">' . $w_mini_labels[1] . '</label></div>
866
  </div>
867
  <div style="display:table-cell;"><div style="margin: 0px 4px; padding: 0px;"></div></div>
868
  <div style="display: table-cell; width:' . $first_last_size . '%">
869
+ <div><input type="text" class="' . ($w_first_val[1] == $w_title[1] ? "input_deactive" : "input_active") . '" id="wdform_' . $id1 . '_element_last' . $form_id . '" name="wdform_' . $id1 . '_element_last' . $form_id . '" value="' . $w_first_val[1] . '" title="' . $w_title[1] . '" placeholder="' . $w_title[1] . '" style="width: 100%;"></div>
870
  <div><label class="mini_label">' . $w_mini_labels[2] . '</label></div>
871
  </div>';
872
  $w_size = 2 * $param['w_size'];
873
  if ( $w_name_fields[0] == 'yes' ) {
874
  $w_name_format = '
875
  <div style="display: table-cell;">
876
+ <div><input type="text" class="' . ($w_first_val[2] == $w_title[2] ? "input_deactive" : "input_active") . '" id="wdform_' . $id1 . '_element_title' . $form_id . '" name="wdform_' . $id1 . '_element_title' . $form_id . '" value="' . $w_first_val[2] . '" title="' . $w_title[2] . '" placeholder="' . $w_title[2] . '" style="width: 40px;"></div>
877
  <div><label class="mini_label">' . $w_mini_labels[0] . '</label></div>
878
  </div>
879
  <div style="display:table-cell;"><div style="margin: 0px 1px; padding: 0px;"></div></div>' . $w_name_format;
883
  $w_name_format = $w_name_format . '
884
  <div style="display:table-cell;"><div style="margin: 0px 4px; padding: 0px;"></div></div>
885
  <div style="display: table-cell; width:30%">
886
+ <div><input type="text" class="' . ($w_first_val[3] == $w_title[3] ? "input_deactive" : "input_active") . '" id="wdform_' . $id1 . '_element_middle' . $form_id . '" name="wdform_' . $id1 . '_element_middle' . $form_id . '" value="' . $w_first_val[3] . '" title="' . $w_title[3] . '" placeholder="' . $w_title[3] . '" style="width: 100%;"></div>
887
  <div><label class="mini_label">' . $w_mini_labels[3] . '</label></div>
888
  </div>
889
  ';
1092
  "Cote d'Ivoire",
1093
  "Croatia",
1094
  "Cuba",
1095
+ "Curacao",
1096
  "Cyprus",
1097
  "Czech Republic",
1098
  "Denmark",
1354
  $message_confirm = addslashes(__("The email addresses don't match", WDFM()->prefix));
1355
  $message_check_email = addslashes(__('This is not a valid email address.', WDFM()->prefix));
1356
  $onchange = (isset($param['w_verification']) && $param['w_verification'] == "yes") ? '; wd_check_confirmation_email(\'' . $id1 . '\', \'' . $form_id . '\', \'' . $message_confirm . '\')' : '';
1357
+ $rep .= '</div><div class="wdform-element-section ' . $param['w_class'] . '" style="' . $param['w_field_label_pos2'] . ' width: ' . $param['w_size'] . 'px;"><input type="text" class="' . $input_active . '" id="wdform_' . $id1 . '_element' . $form_id . '" name="wdform_' . $id1 . '_element' . $form_id . '" value="' . $param['w_first_val'] . '" title="' . $param['w_title'] . '" placeholder="' . $param['w_title'] . '" style="width: 100%;" ' . $param['attributes'] . ' onchange="wd_check_email(\'' . $id1 . '\', \'' . $form_id . '\', \'' . $message_check_email . '\', \'' . $message_confirm . '\')' . $onchange . '"></div></div>';
1358
  if ( isset($param['w_verification']) && $param['w_verification'] == "yes" ) {
1359
  $param['w_verification_placeholder'] = (isset($_POST['wdform_' . $id1 . '_1_element' . $form_id]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . '_1_element' . $form_id])) : $param['w_verification_placeholder']);
1360
  $rep .= '<div><div type="type_submitter_mail_confirmation" class="wdform-field" style="width:' . $wdformfieldsize . 'px"><div class="wdform-label-section" style="' . $param['w_field_label_pos1'] . '; width: ' . $param['w_field_label_size'] . 'px;"><span class="wdform-label">' . $param['w_verification_label'] . '</span>';
3128
  WDW_FM_Library::create_js($form_id);
3129
  wp_register_script('fm-script-' . $form_id, WDFM()->plugin_url . '/js/frontend/fm-script-' . $form_id . '.js', array(), $jsversion);
3130
  wp_enqueue_script('fm-script-' . $form_id);
 
 
 
 
 
 
 
 
 
 
3131
 
3132
+ $_GET['addon_view'] = 'frontend';
3133
+ $_GET['form_id'] = $form_id;
3134
+ do_action('WD_FM_SAVE_PROG_init');
3135
  return $formType == 'embedded' ? WDW_FM_Library::fm_container($theme_id, $form_maker_front_end) : $form_maker_front_end;
3136
  }
3137
 
images/logo.png ADDED
Binary file
js/add_field.js CHANGED
@@ -1,16 +1,29 @@
1
  var nextID; // next field id
2
 
3
  jQuery(window).load(function () {
4
- // Field add button animation.
5
- jQuery("#add_field_cont").addClass("animated");
6
- jQuery("#add_field_cont").show();
7
- // Show first time use message, if it doesn't disabled.
8
  if (!storageAvailable("localStorage")
9
- || !localStorage.getItem("wd-form-first-time-use")) {
10
- setTimeout(function () {
11
- jQuery(".first-time-use").show();
12
- }, 1500);
13
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  });
15
 
16
  jQuery(document).ready(function () {
@@ -25,7 +38,7 @@ jQuery(document).ready(function () {
25
  // Hide first time use message on add field button drag.
26
  jQuery(".wdform_column").on( "sortstart", function( event, ui ) {
27
  jQuery(".first-time-use").hide();
28
- });
29
  // Bind filter action on entering search key and when the user cancel the input.
30
  jQuery(".field-types-filter").on("keyup input", function() { filter(this); });
31
  });
@@ -2168,6 +2181,20 @@ function add(key, after_edit, wdid) {
2168
  }
2169
 
2170
  jQuery(".wdform_page input[type='text'], .wdform_page input[type='password'], .wdform_page input[type='file'], .wdform_page textarea, .wdform_page input[type='checkbox'], .wdform_page input[type='radio'], .wdform_page select").prop("disabled", true);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2171
  }
2172
 
2173
  /**
@@ -2177,14 +2204,18 @@ function add(key, after_edit, wdid) {
2177
  * @param wdform_row
2178
  */
2179
  function add_field_in_position( nextID, wdform_row ) {
2180
- if( typeof nextID === 'undefined' || nextID === null || nextID == "") {
2181
  var wdform_col = document.getElementById('cur_column'); // getting current column for insert
2182
 
2183
- if( typeof wdform_col === 'undefined' || wdform_col === null ) { // when add field button submitted not moved
2184
- wdform_column.appendChild(wdform_row);
 
 
 
 
2185
  }
2186
  else {
2187
- wdform_col.appendChild(wdform_row);
2188
  }
2189
  }
2190
  else {
@@ -2659,7 +2690,7 @@ function set_required(id, type) {
2659
  }
2660
  }
2661
  else {
2662
- document.getElementById(id + "form_id_temp").setAttribute("value", "yes")
2663
  document.getElementById(id + "_elementform_id_temp").innerHTML = " *";
2664
  if (typeof(type) != 'undefined') {
2665
  document.getElementById(type + "_elementform_id_temp").innerHTML = " *";
@@ -7094,7 +7125,7 @@ function disable_fields(id, field) {
7094
  option_.innerHTML = "";
7095
  field.appendChild(option_);
7096
 
7097
- coutries = ["Afghanistan", "Albania", "Algeria", "Andorra", "Angola", "Antigua and Barbuda", "Argentina", "Armenia", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bhutan", "Bolivia", "Bosnia and Herzegovina", "Botswana", "Brazil", "Brunei", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Central African Republic", "Chad", "Chile", "China", "Colombi", "Comoros", "Congo (Brazzaville)", "Congo", "Costa Rica", "Cote d'Ivoire", "Croatia", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "East Timor (Timor Timur)", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Fiji", "Finland", "France", "Gabon", "Gambia, The", "Georgia", "Germany", "Ghana", "Greece", "Grenada", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Honduras", "Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea, North", "Korea, South", "Kuwait", "Kyrgyzstan", "Laos", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania", "Luxembourg", "Macedonia", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Mauritania", "Mauritius", "Mexico", "Micronesia", "Moldova", "Monaco", "Mongolia", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepa", "Netherlands", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Norway", "Oman", "Pakistan", "Palau", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Poland", "Portugal", "Qatar", "Romania", "Russia", "Rwanda", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Serbia and Montenegro", "Seychelles", "Sierra Leone", "Singapore", "Slovakia", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "Spain", "Sri Lanka", "Sudan", "Suriname", "Swaziland", "Sweden", "Switzerland", "Syria", "Taiwan", "Tajikistan", "Tanzania", "Thailand", "Togo", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States", "Uruguay", "Uzbekistan", "Vanuatu", "Vatican City", "Venezuela", "Vietnam", "Yemen", "Zambia", "Zimbabwe"];
7098
 
7099
  for (r = 0; r < coutries.length; r++) {
7100
  var option_ = document.createElement('option');
@@ -7504,7 +7535,7 @@ function type_address(i, w_field_label, w_field_label_size, w_field_label_pos, w
7504
  option_.innerHTML = "";
7505
 
7506
  country.appendChild(option_);
7507
- coutries = ["Afghanistan", "Albania", "Algeria", "Andorra", "Angola", "Antigua and Barbuda", "Argentina", "Armenia", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bhutan", "Bolivia", "Bosnia and Herzegovina", "Botswana", "Brazil", "Brunei", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Central African Republic", "Chad", "Chile", "China", "Colombi", "Comoros", "Congo (Brazzaville)", "Congo", "Costa Rica", "Cote d'Ivoire", "Croatia", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "East Timor (Timor Timur)", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Fiji", "Finland", "France", "Gabon", "Gambia, The", "Georgia", "Germany", "Ghana", "Greece", "Grenada", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Honduras", "Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea, North", "Korea, South", "Kuwait", "Kyrgyzstan", "Laos", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania", "Luxembourg", "Macedonia", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Mauritania", "Mauritius", "Mexico", "Micronesia", "Moldova", "Monaco", "Mongolia", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepa", "Netherlands", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Norway", "Oman", "Pakistan", "Palau", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Poland", "Portugal", "Qatar", "Romania", "Russia", "Rwanda", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Serbia and Montenegro", "Seychelles", "Sierra Leone", "Singapore", "Slovakia", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "Spain", "Sri Lanka", "Sudan", "Suriname", "Swaziland", "Sweden", "Switzerland", "Syria", "Taiwan", "Tajikistan", "Tanzania", "Thailand", "Togo", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States", "Uruguay", "Uzbekistan", "Vanuatu", "Vatican City", "Venezuela", "Vietnam", "Yemen", "Zambia", "Zimbabwe"];
7508
 
7509
  for (r = 0; r < coutries.length; r++) {
7510
  var option_ = document.createElement('option');
@@ -7798,7 +7829,7 @@ function create_edit_country_list(i) {
7798
  }
7799
 
7800
  function go_to_type_country(new_id) {
7801
- w_countries = ["", "Afghanistan", "Albania", "Algeria", "Andorra", "Angola", "Antigua and Barbuda", "Argentina", "Armenia", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bhutan", "Bolivia", "Bosnia and Herzegovina", "Botswana", "Brazil", "Brunei", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Central African Republic", "Chad", "Chile", "China", "Colombia", "Comoros", "Congo (Brazzaville)", "Congo", "Costa Rica", "Cote d'Ivoire", "Croatia", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "East Timor (Timor Timur)", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Fiji", "Finland", "France", "Gabon", "Gambia, The", "Georgia", "Germany", "Ghana", "Greece", "Grenada", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Honduras", "Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea, North", "Korea, South", "Kuwait", "Kyrgyzstan", "Laos", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania", "Luxembourg", "Macedonia", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Mauritania", "Mauritius", "Mexico", "Micronesia", "Moldova", "Monaco", "Mongolia", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Netherlands", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Norway", "Oman", "Pakistan", "Palau", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Poland", "Portugal", "Qatar", "Romania", "Russia", "Rwanda", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Serbia and Montenegro", "Seychelles", "Sierra Leone", "Singapore", "Slovakia", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "Spain", "Sri Lanka", "Sudan", "Suriname", "Swaziland", "Sweden", "Switzerland", "Syria", "Taiwan", "Tajikistan", "Tanzania", "Thailand", "Togo", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States", "Uruguay", "Uzbekistan", "Vanuatu", "Vatican City", "Venezuela", "Vietnam", "Yemen", "Zambia", "Zimbabwe"];
7802
  w_attr_name = [];
7803
  w_attr_value = [];
7804
  type_country(new_id, 'Country:', '100', 'no', w_countries, 'left', '200', 'no', 'wdform_select', w_attr_name, w_attr_value);
1
  var nextID; // next field id
2
 
3
  jQuery(window).load(function () {
 
 
 
 
4
  if (!storageAvailable("localStorage")
5
+ || !localStorage.getItem("wd-form-first-time-use")) {
6
+ jQuery(".first-time-use").show();
7
+ }
8
+ // Space between element and top of screen (when scrolling)
9
+ var marginTop = 80;
10
+ var scrollToTop = marginTop;
11
+ var contentHeight = jQuery( '.fm-edit-content' ).height();
12
+ jQuery(window).on('scroll', function (event) {
13
+ if ( ! jQuery("#add_field").hasClass("ui-sortable-helper") ) { // Check if not in draggable process
14
+ var edit_content_position = jQuery('.fm-edit-content').offset().top;
15
+ var scrollTop = jQuery(window).scrollTop();
16
+ if ( scrollTop > edit_content_position) {
17
+ if ( scrollTop < ( edit_content_position + contentHeight - 100 ) ) {
18
+ scrollToTop = scrollTop - edit_content_position + marginTop;
19
+ }
20
+ } else {
21
+ scrollToTop = marginTop;
22
+ }
23
+ //jQuery('#add_field_cont').stop().animate({ top: scrollToTop }, 500);
24
+ jQuery('#add_field_cont').css( "top", scrollToTop);
25
+ }
26
+ });
27
  });
28
 
29
  jQuery(document).ready(function () {
38
  // Hide first time use message on add field button drag.
39
  jQuery(".wdform_column").on( "sortstart", function( event, ui ) {
40
  jQuery(".first-time-use").hide();
41
+ });
42
  // Bind filter action on entering search key and when the user cancel the input.
43
  jQuery(".field-types-filter").on("keyup input", function() { filter(this); });
44
  });
2181
  }
2182
 
2183
  jQuery(".wdform_page input[type='text'], .wdform_page input[type='password'], .wdform_page input[type='file'], .wdform_page textarea, .wdform_page input[type='checkbox'], .wdform_page input[type='radio'], .wdform_page select").prop("disabled", true);
2184
+ all_sortable_events();
2185
+ }
2186
+
2187
+ /**
2188
+ * Add new field before submit button.
2189
+ */
2190
+ function move_submit_to_end() {
2191
+ var child_count = jQuery('.wdform_column').find('[type=type_submit_reset]').parent().parent().children().length;
2192
+ var submit_field = jQuery('.wdform_column').find('[type=type_submit_reset]').parent();
2193
+ var submit_field_index = submit_field.index();
2194
+ if ( child_count - submit_field_index == 1 ) {
2195
+ return submit_field;
2196
+ }
2197
+ return false;
2198
  }
2199
 
2200
  /**
2204
  * @param wdform_row
2205
  */
2206
  function add_field_in_position( nextID, wdform_row ) {
2207
+ if( typeof nextID === 'undefined' || nextID === null || nextID == "" ) {
2208
  var wdform_col = document.getElementById('cur_column'); // getting current column for insert
2209
 
2210
+ if ( typeof wdform_col === 'undefined' || wdform_col === null ) { // when add field button submitted not moved
2211
+ if ( move_submit_to_end() !== false ) {
2212
+ jQuery( wdform_row ).insertBefore( move_submit_to_end() );
2213
+ } else {
2214
+ wdform_column.appendChild(wdform_row);
2215
+ }
2216
  }
2217
  else {
2218
+ wdform_col.appendChild(wdform_row);
2219
  }
2220
  }
2221
  else {
2690
  }
2691
  }
2692
  else {
2693
+ document.getElementById(id + "form_id_temp").setAttribute("value", "yes");
2694
  document.getElementById(id + "_elementform_id_temp").innerHTML = " *";
2695
  if (typeof(type) != 'undefined') {
2696
  document.getElementById(type + "_elementform_id_temp").innerHTML = " *";
7125
  option_.innerHTML = "";
7126
  field.appendChild(option_);
7127
 
7128
+ coutries = ["Afghanistan", "Albania", "Algeria", "Andorra", "Angola", "Antigua and Barbuda", "Argentina", "Armenia", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bhutan", "Bolivia", "Bosnia and Herzegovina", "Botswana", "Brazil", "Brunei", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Central African Republic", "Chad", "Chile", "China", "Colombi", "Comoros", "Congo (Brazzaville)", "Congo", "Costa Rica", "Cote d'Ivoire", "Croatia", "Cuba", "Curacao", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "East Timor (Timor Timur)", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Fiji", "Finland", "France", "Gabon", "Gambia, The", "Georgia", "Germany", "Ghana", "Greece", "Grenada", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Honduras", "Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea, North", "Korea, South", "Kuwait", "Kyrgyzstan", "Laos", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania", "Luxembourg", "Macedonia", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Mauritania", "Mauritius", "Mexico", "Micronesia", "Moldova", "Monaco", "Mongolia", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepa", "Netherlands", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Norway", "Oman", "Pakistan", "Palau", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Poland", "Portugal", "Qatar", "Romania", "Russia", "Rwanda", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Serbia and Montenegro", "Seychelles", "Sierra Leone", "Singapore", "Slovakia", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "Spain", "Sri Lanka", "Sudan", "Suriname", "Swaziland", "Sweden", "Switzerland", "Syria", "Taiwan", "Tajikistan", "Tanzania", "Thailand", "Togo", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States", "Uruguay", "Uzbekistan", "Vanuatu", "Vatican City", "Venezuela", "Vietnam", "Yemen", "Zambia", "Zimbabwe"];
7129
 
7130
  for (r = 0; r < coutries.length; r++) {
7131
  var option_ = document.createElement('option');
7535
  option_.innerHTML = "";
7536
 
7537
  country.appendChild(option_);
7538
+ coutries = ["Afghanistan", "Albania", "Algeria", "Andorra", "Angola", "Antigua and Barbuda", "Argentina", "Armenia", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bhutan", "Bolivia", "Bosnia and Herzegovina", "Botswana", "Brazil", "Brunei", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Central African Republic", "Chad", "Chile", "China", "Colombi", "Comoros", "Congo (Brazzaville)", "Congo", "Costa Rica", "Cote d'Ivoire", "Croatia", "Cuba", "Curacao", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "East Timor (Timor Timur)", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Fiji", "Finland", "France", "Gabon", "Gambia, The", "Georgia", "Germany", "Ghana", "Greece", "Grenada", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Honduras", "Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea, North", "Korea, South", "Kuwait", "Kyrgyzstan", "Laos", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania", "Luxembourg", "Macedonia", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Mauritania", "Mauritius", "Mexico", "Micronesia", "Moldova", "Monaco", "Mongolia", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepa", "Netherlands", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Norway", "Oman", "Pakistan", "Palau", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Poland", "Portugal", "Qatar", "Romania", "Russia", "Rwanda", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Serbia and Montenegro", "Seychelles", "Sierra Leone", "Singapore", "Slovakia", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "Spain", "Sri Lanka", "Sudan", "Suriname", "Swaziland", "Sweden", "Switzerland", "Syria", "Taiwan", "Tajikistan", "Tanzania", "Thailand", "Togo", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States", "Uruguay", "Uzbekistan", "Vanuatu", "Vatican City", "Venezuela", "Vietnam", "Yemen", "Zambia", "Zimbabwe"];
7539
 
7540
  for (r = 0; r < coutries.length; r++) {
7541
  var option_ = document.createElement('option');
7829
  }
7830
 
7831
  function go_to_type_country(new_id) {
7832
+ w_countries = ["", "Afghanistan", "Albania", "Algeria", "Andorra", "Angola", "Antigua and Barbuda", "Argentina", "Armenia", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bhutan", "Bolivia", "Bosnia and Herzegovina", "Botswana", "Brazil", "Brunei", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Central African Republic", "Chad", "Chile", "China", "Colombia", "Comoros", "Congo (Brazzaville)", "Congo", "Costa Rica", "Cote d'Ivoire", "Croatia", "Cuba", "Curacao", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "East Timor (Timor Timur)", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Fiji", "Finland", "France", "Gabon", "Gambia, The", "Georgia", "Germany", "Ghana", "Greece", "Grenada", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Honduras", "Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea, North", "Korea, South", "Kuwait", "Kyrgyzstan", "Laos", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania", "Luxembourg", "Macedonia", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Mauritania", "Mauritius", "Mexico", "Micronesia", "Moldova", "Monaco", "Mongolia", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Netherlands", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Norway", "Oman", "Pakistan", "Palau", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Poland", "Portugal", "Qatar", "Romania", "Russia", "Rwanda", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Serbia and Montenegro", "Seychelles", "Sierra Leone", "Singapore", "Slovakia", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "Spain", "Sri Lanka", "Sudan", "Suriname", "Swaziland", "Sweden", "Switzerland", "Syria", "Taiwan", "Tajikistan", "Tanzania", "Thailand", "Togo", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States", "Uruguay", "Uzbekistan", "Vanuatu", "Vatican City", "Venezuela", "Vietnam", "Yemen", "Zambia", "Zimbabwe"];
7833
  w_attr_name = [];
7834
  w_attr_value = [];
7835
  type_country(new_id, 'Country:', '100', 'no', w_countries, 'left', '200', 'no', 'wdform_select', w_attr_name, w_attr_value);
js/form_maker_manage.js CHANGED
@@ -25,96 +25,116 @@ function remove_empty_columns() {
25
  });
26
  }
27
 
28
-
29
  function sortable_columns() {
30
  jQuery( ".wdform_column" ).sortable({
31
  connectWith: ".wdform_column",
32
  cursor: 'move',
33
  placeholder: "highlight",
34
- start: function(e,ui){
 
35
  jQuery('.wdform_column').each(function() {
36
- if(jQuery(this).html()) {
37
  jQuery(this).append(jQuery('<div class="wdform_empty_row" style="height:80px;"></div>'));
38
  jQuery( ".wdform_column" ).sortable( "refresh" );
39
  }
40
- });
41
  },
42
  update: function(event, ui) {
43
  jQuery('.wdform_section .wdform_column:last-child').each(function() {
44
- if(jQuery(this).html()) {
45
- jQuery(this).parent().append(jQuery('<div></div>').addClass("wdform_column"));
46
- sortable_columns();
47
  }
48
  });
49
  },
50
  stop: function(event, ui) {
51
- jQuery('.wdform_empty_row').remove();
52
- if( ui.item.attr("id") == "add_field" && ui.item.parent().attr("id") != "add_field_cont" ) {
53
- nextID = jQuery("#add_field").next(".wdform_row").attr("wdid"); //find next row id for position
54
  jQuery("#add_field").parent().attr("id", "cur_column"); // add id cur_column to this column
55
 
56
  popup_ready();
57
  Enable();
58
  return false;
59
  }
60
- remove_empty_columns();
61
  }
62
  });
63
  }
64
 
65
  function all_sortable_events() {
66
- jQuery(document).on("click", ".wdform_row, .wdform_tr_section_break", function () {
67
- var this2 = this;
68
- setTimeout(function () {
69
- if (jQuery("#wdform_arrows" + jQuery(this2).attr("wdid")).attr("class") == "wdform_arrows_show") {
70
- jQuery("#wdform_field" + jQuery(this2).attr("wdid")).css({
71
- "background-color": "#fff",
72
- "border": "none",
73
- "margin-top": ""
74
- });
75
- jQuery("#wdform_arrows" + jQuery(this2).attr("wdid")).removeClass("wdform_arrows_show");
76
- jQuery("#wdform_arrows" + jQuery(this2).attr("wdid")).addClass("wdform_arrows");
77
- jQuery("#wdform_arrows" + jQuery(this2).attr("wdid")).hide();
78
- }
79
- else {
80
- jQuery(".wdform_arrows_show").addClass("wdform_arrows");
81
- jQuery(".wdform_arrows").hide();
82
- jQuery(".wdform_arrows_show").removeClass("wdform_arrows_show");
83
- jQuery(".wdform_field, .wdform_field_section_break").css("background-color", "#fff");
84
- jQuery(".wdform_field").css("margin-top", "");
85
- if (jQuery("#wdform_field" + jQuery(this2).attr("wdid")).attr("type") == 'type_editor') {
86
- jQuery("#wdform_field" + jQuery(this2).attr("wdid")).css("margin-top", "-5px");
87
- }
88
- jQuery("#wdform_field" + jQuery(this2).attr("wdid")).css({"background-color": "#fff"});
89
- jQuery("#wdform_field" + jQuery(this2).attr("wdid")).css({"border": "none"});
90
- jQuery("#wdform_arrows" + jQuery(this2).attr("wdid")).removeClass("wdform_arrows");
91
- jQuery("#wdform_arrows" + jQuery(this2).attr("wdid")).addClass("wdform_arrows_show");
92
- jQuery("#wdform_arrows" + jQuery(this2).attr("wdid")).show();
93
- }
94
- }, 300)
95
- });
 
 
 
96
 
97
- jQuery(document).on("hover", ".wdform_tr_section_break", function () {
98
- jQuery("#wdform_field" + jQuery(this).attr("wdid")).css({"background-color": "#F5F5F5"});
99
- });
100
 
101
- jQuery(document).on("hover", ".wdform_row", function () {
102
- jQuery("#wdform_field" + jQuery(this).attr("wdid")).css({"cursor": "move", "background-color": "#F5F5F5"});
103
- });
 
 
104
 
105
- jQuery(document).on("mouseleave", ".wdform_row, .wdform_tr_section_break", function () {
106
- jQuery("#wdform_field" + jQuery(this).attr("wdid")).css({"background-color": "#fff", "border": "none"});
107
- if (jQuery("#wdform_arrows" + jQuery(this).attr("wdid")).attr("class") != "wdform_arrows_show") {
108
- jQuery("#wdform_arrows" + jQuery(this).attr("wdid")).addClass("wdform_arrows");
109
- }
110
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
111
  }
112
 
113
  jQuery(document).on( "dblclick", ".wdform_row, .wdform_tr_section_break", function() {
114
- edit(jQuery(this).attr("wdid"));
 
 
115
  });
116
 
117
-
118
  function fm_change_radio(elem) {
119
  if(jQuery( elem ).hasClass( "fm-yes" )) {
120
  jQuery( elem ).val('0');
@@ -140,7 +160,8 @@ function fm_change_radio(elem) {
140
  }
141
 
142
  function enable_drag(elem) {
143
- if(jQuery('#enable_sortable').val() != 1) {
 
144
  jQuery('.wdform_column').sortable( "enable" );
145
  jQuery( ".wdform_arrows" ).slideUp(700);
146
  all_sortable_events();
@@ -156,8 +177,8 @@ function enable_drag(elem) {
156
  jQuery( ".wdform_arrows_show" ).addClass("wdform_arrows");
157
  jQuery( ".wdform_arrows_show" ).removeClass("wdform_arrows_show");
158
  jQuery( ".wdform_arrows" ).slideDown(600);
 
159
  }
160
- fm_change_radio(elem);
161
  }
162
 
163
  function refresh_() {
@@ -435,7 +456,7 @@ function change_choices(value, ids, types, params) {
435
  break;
436
  case "type_address":
437
 
438
- coutries=["Afghanistan","Albania", "Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cambodia","Cameroon","Canada","Cape Verde","Central African Republic","Chad","Chile","China","Colombi","Comoros","Congo (Brazzaville)","Congo","Costa Rica","Cote d'Ivoire","Croatia","Cuba","Cyprus","Czech Republic","Denmark","Djibouti","Dominica","Dominican Republic","East Timor (Timor Timur)","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Ethiopia","Fiji","Finland","France","Gabon","Gambia, The","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Korea, North","Korea, South","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Macedonia","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepa","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","Norway","Oman","Pakistan","Palau","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia and Montenegro","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","Spain","Sri Lanka","Sudan","Suriname","Swaziland","Sweden","Switzerland","Syria","Taiwan","Tajikistan","Tanzania","Thailand","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States","Uruguay","Uzbekistan","Vanuatu","Vatican City","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"];
439
 
440
  var choise_select = document.createElement('select');
441
  choise_select.setAttribute("id", "field_value"+global_index+'_'+m);
@@ -655,7 +676,7 @@ function add_condition_fields(num, ids1, labels1, types1, params1) {
655
  break;
656
 
657
  case "type_address":
658
- coutries=["Afghanistan","Albania", "Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cambodia","Cameroon","Canada","Cape Verde","Central African Republic","Chad","Chile","China","Colombi","Comoros","Congo (Brazzaville)","Congo","Costa Rica","Cote d'Ivoire","Croatia","Cuba","Cyprus","Czech Republic","Denmark","Djibouti","Dominica","Dominican Republic","East Timor (Timor Timur)","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Ethiopia","Fiji","Finland","France","Gabon","Gambia, The","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Korea, North","Korea, South","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Macedonia","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepa","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","Norway","Oman","Pakistan","Palau","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia and Montenegro","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","Spain","Sri Lanka","Sudan","Suriname","Swaziland","Sweden","Switzerland","Syria","Taiwan","Tajikistan","Tanzania","Thailand","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States","Uruguay","Uzbekistan","Vanuatu","Vatican City","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"];
659
 
660
  var choise_select = document.createElement('select');
661
  choise_select.setAttribute("id", "field_value"+num+'_'+m);
25
  });
26
  }
27
 
 
28
  function sortable_columns() {
29
  jQuery( ".wdform_column" ).sortable({
30
  connectWith: ".wdform_column",
31
  cursor: 'move',
32
  placeholder: "highlight",
33
+ start: function(e, ui) {
34
+ jQuery(".add-new-button").off("click");
35
  jQuery('.wdform_column').each(function() {
36
+ if (jQuery(this).html()) {
37
  jQuery(this).append(jQuery('<div class="wdform_empty_row" style="height:80px;"></div>'));
38
  jQuery( ".wdform_column" ).sortable( "refresh" );
39
  }
40
+ });
41
  },
42
  update: function(event, ui) {
43
  jQuery('.wdform_section .wdform_column:last-child').each(function() {
44
+ if (jQuery(this).html()) {
45
+ jQuery(this).parent().append(jQuery('<div></div>').addClass("wdform_column"));
46
+ sortable_columns();
47
  }
48
  });
49
  },
50
  stop: function(event, ui) {
51
+ jQuery('.wdform_empty_row').remove();
52
+ if (ui.item.attr("id") == "add_field" && ui.item.parent().attr("id") != "add_field_cont") {
53
+ nextID = jQuery("#add_field").next(".wdform_row").attr("wdid"); //find next row id for position
54
  jQuery("#add_field").parent().attr("id", "cur_column"); // add id cur_column to this column
55
 
56
  popup_ready();
57
  Enable();
58
  return false;
59
  }
60
+ remove_empty_columns();
61
  }
62
  });
63
  }
64
 
65
  function all_sortable_events() {
66
+ if(jQuery("#enable_sortable").val() == 1) {
67
+ jQuery(".wdform_row, .wdform_tr_section_break").off().on("click", function () {
68
+ if(jQuery("#enable_sortable").val() == 1) { // disable click event when sortable is disabled
69
+ var this2 = this;
70
+ setTimeout( function(){
71
+ if (jQuery("#wdform_arrows" + jQuery(this2).attr("wdid")).attr("class") == "wdform_arrows_show") {
72
+ jQuery("#wdform_field" + jQuery(this2).attr("wdid")).css({
73
+ "background-color": "#fff",
74
+ "border": "none",
75
+ "margin-top": ""
76
+ });
77
+ jQuery("#wdform_arrows" + jQuery(this2).attr("wdid")).removeClass("wdform_arrows_show");
78
+ jQuery("#wdform_arrows" + jQuery(this2).attr("wdid")).addClass("wdform_arrows");
79
+ jQuery("#wdform_arrows" + jQuery(this2).attr("wdid")).hide();
80
+ }
81
+ else {
82
+ jQuery(".wdform_arrows_show").addClass("wdform_arrows");
83
+ jQuery(".wdform_arrows").hide();
84
+ jQuery(".wdform_arrows_show").removeClass("wdform_arrows_show");
85
+ jQuery(".wdform_field, .wdform_field_section_break").css("background-color", "#fff");
86
+ jQuery(".wdform_field").css("margin-top", "");
87
+ if (jQuery("#wdform_field" + jQuery(this2).attr("wdid")).attr("type") == 'type_editor') {
88
+ jQuery("#wdform_field" + jQuery(this2).attr("wdid")).css("margin-top", "-5px");
89
+ }
90
+ jQuery("#wdform_field" + jQuery(this2).attr("wdid")).css({"background-color": "#fff"});
91
+ jQuery("#wdform_field" + jQuery(this2).attr("wdid")).css({"border": "none"});
92
+ jQuery("#wdform_arrows" + jQuery(this2).attr("wdid")).removeClass("wdform_arrows");
93
+ jQuery("#wdform_arrows" + jQuery(this2).attr("wdid")).addClass("wdform_arrows_show");
94
+ jQuery("#wdform_arrows" + jQuery(this2).attr("wdid")).show();
95
+ }
96
+ },300);
97
+ }
98
+ });
99
 
100
+ jQuery(document).on("hover", ".wdform_tr_section_break", function () {
101
+ jQuery("#wdform_field" + jQuery(this).attr("wdid")).css({"background-color": "#F5F5F5"});
102
+ });
103
 
104
+ jQuery(document).on("hover", ".wdform_row", function () {
105
+ jQuery("#wdform_field" + jQuery(this).attr("wdid")).css({
106
+ "cursor": "move",
107
+ "background-color": "#F5F5F5"
108
+ });
109
 
110
+ });
111
+
112
+ jQuery(document).on("mouseleave", ".wdform_row, .wdform_tr_section_break", function () {
113
+ jQuery("#wdform_field" + jQuery(this).attr("wdid")).css({"background-color": "#fff", "border": "none"});
114
+ if (jQuery("#wdform_arrows" + jQuery(this).attr("wdid")).attr("class") != "wdform_arrows_show") {
115
+ jQuery("#wdform_arrows" + jQuery(this).attr("wdid")).addClass("wdform_arrows");
116
+ }
117
+ });
118
+ } else {
119
+ jQuery(document).on("hover", ".wdform_tr_section_break", function () {
120
+ jQuery("#wdform_field" + jQuery(this).attr("wdid")).css({"background-color": "none"});
121
+ });
122
+
123
+ jQuery(document).on("hover", ".wdform_row", function () {
124
+ jQuery("#wdform_field" + jQuery(this).attr("wdid")).css({
125
+ "cursor": "default",
126
+ "background-color": "transparent"
127
+ });
128
+ });
129
+ }
130
  }
131
 
132
  jQuery(document).on( "dblclick", ".wdform_row, .wdform_tr_section_break", function() {
133
+ if(jQuery("#enable_sortable").val() == 1) { // disable double click event when sortable is disabled
134
+ edit(jQuery(this).attr("wdid"));
135
+ }
136
  });
137
 
 
138
  function fm_change_radio(elem) {
139
  if(jQuery( elem ).hasClass( "fm-yes" )) {
140
  jQuery( elem ).val('0');
160
  }
161
 
162
  function enable_drag(elem) {
163
+ fm_change_radio(elem);
164
+ if(jQuery('#enable_sortable').val() == 1) {
165
  jQuery('.wdform_column').sortable( "enable" );
166
  jQuery( ".wdform_arrows" ).slideUp(700);
167
  all_sortable_events();
177
  jQuery( ".wdform_arrows_show" ).addClass("wdform_arrows");
178
  jQuery( ".wdform_arrows_show" ).removeClass("wdform_arrows_show");
179
  jQuery( ".wdform_arrows" ).slideDown(600);
180
+ all_sortable_events();
181
  }
 
182
  }
183
 
184
  function refresh_() {
456
  break;
457
  case "type_address":
458
 
459
+ coutries=["Afghanistan","Albania", "Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cambodia","Cameroon","Canada","Cape Verde","Central African Republic","Chad","Chile","China","Colombi","Comoros","Congo (Brazzaville)","Congo","Costa Rica","Cote d'Ivoire","Croatia","Cuba","Curacao","Cyprus","Czech Republic","Denmark","Djibouti","Dominica","Dominican Republic","East Timor (Timor Timur)","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Ethiopia","Fiji","Finland","France","Gabon","Gambia, The","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Korea, North","Korea, South","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Macedonia","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepa","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","Norway","Oman","Pakistan","Palau","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia and Montenegro","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","Spain","Sri Lanka","Sudan","Suriname","Swaziland","Sweden","Switzerland","Syria","Taiwan","Tajikistan","Tanzania","Thailand","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States","Uruguay","Uzbekistan","Vanuatu","Vatican City","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"];
460
 
461
  var choise_select = document.createElement('select');
462
  choise_select.setAttribute("id", "field_value"+global_index+'_'+m);
676
  break;
677
 
678
  case "type_address":
679
+ coutries=["Afghanistan","Albania", "Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cambodia","Cameroon","Canada","Cape Verde","Central African Republic","Chad","Chile","China","Colombi","Comoros","Congo (Brazzaville)","Congo","Costa Rica","Cote d'Ivoire","Croatia","Cuba","Curacao","Cyprus","Czech Republic","Denmark","Djibouti","Dominica","Dominican Republic","East Timor (Timor Timur)","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Ethiopia","Fiji","Finland","France","Gabon","Gambia, The","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Korea, North","Korea, South","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Macedonia","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepa","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","Norway","Oman","Pakistan","Palau","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia and Montenegro","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","Spain","Sri Lanka","Sudan","Suriname","Swaziland","Sweden","Switzerland","Syria","Taiwan","Tajikistan","Tanzania","Thailand","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States","Uruguay","Uzbekistan","Vanuatu","Vatican City","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"];
680
 
681
  var choise_select = document.createElement('select');
682
  choise_select.setAttribute("id", "field_value"+num+'_'+m);
js/form_maker_manage_edit.js CHANGED
@@ -24,6 +24,7 @@ jQuery( document ).ready(function() {
24
  }
25
  else {
26
  jQuery('.wdform_column').sortable( "disable" );
 
27
  }
28
  });
29
 
24
  }
25
  else {
26
  jQuery('.wdform_column').sortable( "disable" );
27
+ jQuery( ".wdform_arrows" ).show();
28
  }
29
  });
30
 
js/form_maker_submissions.js CHANGED
@@ -8,7 +8,7 @@ function add_scroll_width() {
8
  jQuery(".table-wrapper-1, .table-wrapper-2").css({"overflow-x": 'scroll'});
9
  if( scrollWidth < wrapFullWidth ){
10
  remove_scroll_width();
11
- }
12
  }
13
 
14
  function remove_scroll_width() {
8
  jQuery(".table-wrapper-1, .table-wrapper-2").css({"overflow-x": 'scroll'});
9
  if( scrollWidth < wrapFullWidth ){
10
  remove_scroll_width();
11
+ }
12
  }
13
 
14
  function remove_scroll_width() {
js/formmaker_div.js CHANGED
@@ -285,7 +285,6 @@ function down_row(id) {
285
  wdform_page=wdform_section.parentNode;
286
 
287
  l=wdform_column.childNodes.length;
288
-
289
  /*
290
  form=wdform_column
291
  */
@@ -336,7 +335,6 @@ function right_row(id) {
336
  {
337
  wdform_column_next=wdform_column.nextSibling;
338
  wdform_column_next.appendChild(wdform_row);
339
-
340
  }
341
  else
342
  {
@@ -435,15 +433,13 @@ function page_down(id) {
435
  while(wdform_page_and_images)
436
  {
437
  wdform_page_and_images=wdform_page_and_images.nextSibling;
438
-
439
-
440
- if(!wdform_page_and_images)
441
- {
442
  alert('Unable to move');
443
  return;
444
  }
445
 
446
- if(jQuery(wdform_page_and_images.firstChild).is(":visible"))
447
  break;
448
  }
449
 
285
  wdform_page=wdform_section.parentNode;
286
 
287
  l=wdform_column.childNodes.length;
 
288
  /*
289
  form=wdform_column
290
  */
335
  {
336
  wdform_column_next=wdform_column.nextSibling;
337
  wdform_column_next.appendChild(wdform_row);
 
338
  }
339
  else
340
  {
433
  while(wdform_page_and_images)
434
  {
435
  wdform_page_and_images=wdform_page_and_images.nextSibling;
436
+
437
+ if ( !wdform_page_and_images || wdform_page_and_images.id == 'add_field_cont' ) {
 
 
438
  alert('Unable to move');
439
  return;
440
  }
441
 
442
+ if ( jQuery(wdform_page_and_images.firstChild).is(":visible") )
443
  break;
444
  }
445
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-form.html
4
  Tags: form, form builder, contact form, custom form, feedback, contact, contact forms, captcha, email, form manager, forms, survey
5
  Requires at least: 3.4
6
  Tested up to: 4.8
7
- Stable tag: 1.12.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -52,12 +52,12 @@ This form creator is developed to build unlimited number of simple forms, survey
52
  * Time and Date
53
  * Select Box
54
  * Survey Tools (Star Rating, Matrix, Spinner and more)
55
- * Custom HTML
56
  * Section Break and Page Break
57
  * Simple and Arithmetic Captcha
58
  * Google ReCaptcha
59
  * Submit and Reset Buttons
60
  * Custom Buttons
 
61
 
62
  This WordPress form creator plugin provides a number of classy themes and display options to apply to your contact forms. Besides the drag and drop easy forms builder, Form Maker themes come with various user-friendly settings, as well as custom CSS editor, to let you fully personalize the display of your form.
63
 
@@ -290,6 +290,15 @@ MailChimp form add-on of Form Maker lets you build up a customer database on you
290
 
291
  == Changelog ==
292
 
 
 
 
 
 
 
 
 
 
293
  = 1.12.0 =
294
  * Changed: Improved user interface of forms, submissions and options.
295
  * Changed: Separated field types into Basic, User Info, Layout, Advanced and Payment sections.
4
  Tags: form, form builder, contact form, custom form, feedback, contact, contact forms, captcha, email, form manager, forms, survey
5
  Requires at least: 3.4
6
  Tested up to: 4.8
7
+ Stable tag: 1.12.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
52
  * Time and Date
53
  * Select Box
54
  * Survey Tools (Star Rating, Matrix, Spinner and more)
 
55
  * Section Break and Page Break
56
  * Simple and Arithmetic Captcha
57
  * Google ReCaptcha
58
  * Submit and Reset Buttons
59
  * Custom Buttons
60
+ * Custom HTML
61
 
62
  This WordPress form creator plugin provides a number of classy themes and display options to apply to your contact forms. Besides the drag and drop easy forms builder, Form Maker themes come with various user-friendly settings, as well as custom CSS editor, to let you fully personalize the display of your form.
63
 
290
 
291
  == Changelog ==
292
 
293
+ = 1.12.2 =
294
+ * Fixed: Border types bug
295
+ * Fixed: Bug with PayPal IPN
296
+ * Fixed: Date format syncronization with Save Progress add-on
297
+
298
+ = 1.12.1 =
299
+ * Changed: Add field button design.
300
+ * Added: Show popup notice to install Backup WD plugin.
301
+
302
  = 1.12.0 =
303
  * Changed: Improved user interface of forms, submissions and options.
304
  * Changed: Separated field types into Basic, User Info, Layout, Advanced and Payment sections.