Version Description
- Added: Invisibe reCAPTCHA.
- Improved: Compatibility with Contact Form Maker.
- Improved: Stripe add-on styles.
- Fixed: Some frontend styles.
- Fixed: Fields width in forms manage page.
- Changed: Field edit buttons place.
Download this release
Release Info
| Developer | webdorado |
| Plugin | |
| Version | 1.12.7 |
| Comparing to | |
| See all releases | |
Code changes from version 1.12.6 to 1.12.7
- admin/controllers/Manage_fm.php +30 -10
- admin/controllers/Themes_fm.php +2 -2
- admin/controllers/Uninstall_fm.php +4 -3
- admin/models/FMShortocde.php +1 -1
- admin/models/Manage_fm.php +54 -44
- admin/models/Submissions_fm.php +1 -1
- admin/models/Uninstall_fm.php +29 -29
- admin/views/Blocked_ips_fm.php +1 -1
- admin/views/FMCaptcha.php +1 -1
- admin/views/FMMathCaptcha.php +1 -1
- admin/views/FMSelectDataFromDb.php +2 -2
- admin/views/FMShortocde.php +4 -4
- admin/views/FMSqlMapping.php +4 -4
- admin/views/Licensing_fm.php +1 -1
- admin/views/Manage_fm.php +15 -13
- admin/views/Options_fm.php +6 -1
- admin/views/Submissions_fm.php +9 -9
- admin/views/Themes_fm.php +2 -2
- admin/views/Uninstall_fm.php +2 -2
- admin/views/view.php +3 -1
- css/form_maker_frontend.css +8 -0
- css/form_maker_tables.css +43 -2
- css/license.css +3 -0
- css/style.css +10 -14
- form-maker.php +91 -78
- form_maker_insert.php +28 -19
- form_maker_update.php +2 -4
- framework/WDW_FM_Library.php +4 -55
- frontend/controllers/form_maker.php +1 -1
- frontend/models/form_maker.php +113 -74
- frontend/views/form_maker.php +2023 -1864
- js/add_field.js +126 -76
- js/form_maker_submissions.js +1 -1
- js/formmaker_div.js +0 -669
- js/main_div_front_end.js +2086 -1
- languages/form_maker-ar.mo +0 -0
- languages/form_maker-ar.po +212 -209
- languages/form_maker-de_DE.mo +0 -0
- languages/form_maker-de_DE.po +212 -209
- languages/form_maker-en_US.mo +0 -0
- languages/form_maker-en_US.po +114 -113
admin/controllers/Manage_fm.php
CHANGED
|
@@ -124,7 +124,7 @@ class FMControllerManage_fm {
|
|
| 124 |
|
| 125 |
$params['actions'] = $this->actions;
|
| 126 |
$params['page'] = $this->page;
|
| 127 |
-
|
| 128 |
|
| 129 |
$this->view->display($params);
|
| 130 |
}
|
|
@@ -179,9 +179,16 @@ class FMControllerManage_fm {
|
|
| 179 |
$this->model->delete_rows(array( "table" => "formmaker_sessions", "where" => "form_id = " . $id ));
|
| 180 |
$this->model->delete_rows(array( "table" => "formmaker_backup", "where" => "id = " . $id ));
|
| 181 |
$this->model->delete_rows(array( "table" => "formmaker_display_options", "where" => "form_id = " . $id ));
|
| 182 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 183 |
// To delete DB rows with form ids from add-ons.
|
| 184 |
-
|
|
|
|
|
|
|
| 185 |
$message = 3;
|
| 186 |
}
|
| 187 |
else {
|
|
@@ -278,6 +285,10 @@ class FMControllerManage_fm {
|
|
| 278 |
$row = (array) $row;
|
| 279 |
unset($row['id']);
|
| 280 |
$inserted = $this->model->insert_data_to_db("formmaker", (array) $row);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 281 |
if ( $inserted !== FALSE ) {
|
| 282 |
$message = 11;
|
| 283 |
}
|
|
@@ -381,6 +392,7 @@ class FMControllerManage_fm {
|
|
| 381 |
$params['page_url'] = $this->page_url;
|
| 382 |
$params['themes'] = $this->model->get_theme_rows_data();
|
| 383 |
$params['default_theme'] = $this->model->get_default_theme_id();
|
|
|
|
| 384 |
$params['form_preview_link'] = $this->model->get_form_preview_post();
|
| 385 |
|
| 386 |
if ( $id ) {
|
|
@@ -449,7 +461,7 @@ class FMControllerManage_fm {
|
|
| 449 |
$params['page_url'] = $this->page_url;
|
| 450 |
|
| 451 |
$params['back_url'] = add_query_arg( array (
|
| 452 |
-
'page' => '
|
| 453 |
'task' => 'edit',
|
| 454 |
'current_id' => $id,
|
| 455 |
|
|
@@ -568,8 +580,11 @@ class FMControllerManage_fm {
|
|
| 568 |
* @return mixed|void
|
| 569 |
*/
|
| 570 |
private function get_addon_tabs( $params ) {
|
| 571 |
-
|
| 572 |
-
|
|
|
|
|
|
|
|
|
|
| 573 |
}
|
| 574 |
|
| 575 |
/**
|
|
@@ -755,8 +770,10 @@ function before_reset() {
|
|
| 755 |
$this->model->update_data("formmaker_backup", array(
|
| 756 |
'theme' => $theme,
|
| 757 |
), array( 'id' => $id )); //save theme in backup
|
| 758 |
-
$this->model->create_js($id);
|
| 759 |
-
|
|
|
|
|
|
|
| 760 |
$message_id = 8;
|
| 761 |
}
|
| 762 |
return $message_id;
|
|
@@ -794,7 +811,7 @@ function before_reset() {
|
|
| 794 |
$params['page'] = $this->page;
|
| 795 |
$params['page_url'] = $this->page_url;
|
| 796 |
$params['page_title'] = '"'. $row->title . '" ' . __('layout', WDFM()->prefix);
|
| 797 |
-
$params['back_url'] = add_query_arg( array ('page' => '
|
| 798 |
$params['ids'] = $ids;
|
| 799 |
$params['types'] = $types;
|
| 800 |
$params['labels'] = $labels;
|
|
@@ -847,7 +864,7 @@ function before_reset() {
|
|
| 847 |
$params['page'] = $this->page;
|
| 848 |
$params['page_url'] = $this->page_url;
|
| 849 |
$params['back_url'] = add_query_arg( array (
|
| 850 |
-
'page' => '
|
| 851 |
'task' => 'edit',
|
| 852 |
'current_id' => $id,
|
| 853 |
), admin_url('admin.php')
|
|
@@ -1120,6 +1137,9 @@ function before_reset() {
|
|
| 1120 |
'header_hide_image' => $header_hide_image,
|
| 1121 |
));
|
| 1122 |
$id = (int) $this->model->get_max_row('formmaker', 'id');
|
|
|
|
|
|
|
|
|
|
| 1123 |
$this->model->insert_data_to_db('formmaker_display_options', array(
|
| 1124 |
'form_id' => $id,
|
| 1125 |
'type' => $type,
|
| 124 |
|
| 125 |
$params['actions'] = $this->actions;
|
| 126 |
$params['page'] = $this->page;
|
| 127 |
+
$params['form_preview_link'] = $this->model->get_form_preview_post();
|
| 128 |
|
| 129 |
$this->view->display($params);
|
| 130 |
}
|
| 179 |
$this->model->delete_rows(array( "table" => "formmaker_sessions", "where" => "form_id = " . $id ));
|
| 180 |
$this->model->delete_rows(array( "table" => "formmaker_backup", "where" => "id = " . $id ));
|
| 181 |
$this->model->delete_rows(array( "table" => "formmaker_display_options", "where" => "form_id = " . $id ));
|
| 182 |
+
if (WDFM()->is_free == 2) {
|
| 183 |
+
$arr = explode(',', get_option('contact_form_forms'));
|
| 184 |
+
$arr = array_diff($arr, array($id));
|
| 185 |
+
$arr = implode(',', $arr);
|
| 186 |
+
update_option('contact_form_forms', $arr);
|
| 187 |
+
}
|
| 188 |
// To delete DB rows with form ids from add-ons.
|
| 189 |
+
if (WDFM()->is_free != 2) {
|
| 190 |
+
do_action('fm_delete_addon_init', $id);
|
| 191 |
+
}
|
| 192 |
$message = 3;
|
| 193 |
}
|
| 194 |
else {
|
| 285 |
$row = (array) $row;
|
| 286 |
unset($row['id']);
|
| 287 |
$inserted = $this->model->insert_data_to_db("formmaker", (array) $row);
|
| 288 |
+
$id = (int) $this->model->get_max_row('formmaker', 'id');
|
| 289 |
+
if (WDFM()->is_free == 2) {
|
| 290 |
+
update_option('contact_form_forms', ((get_option('contact_form_forms')) ? (get_option('contact_form_forms')) . ',' . $id : $id));
|
| 291 |
+
}
|
| 292 |
if ( $inserted !== FALSE ) {
|
| 293 |
$message = 11;
|
| 294 |
}
|
| 392 |
$params['page_url'] = $this->page_url;
|
| 393 |
$params['themes'] = $this->model->get_theme_rows_data();
|
| 394 |
$params['default_theme'] = $this->model->get_default_theme_id();
|
| 395 |
+
|
| 396 |
$params['form_preview_link'] = $this->model->get_form_preview_post();
|
| 397 |
|
| 398 |
if ( $id ) {
|
| 461 |
$params['page_url'] = $this->page_url;
|
| 462 |
|
| 463 |
$params['back_url'] = add_query_arg( array (
|
| 464 |
+
'page' => 'manage' . WDFM()->menu_postfix,
|
| 465 |
'task' => 'edit',
|
| 466 |
'current_id' => $id,
|
| 467 |
|
| 580 |
* @return mixed|void
|
| 581 |
*/
|
| 582 |
private function get_addon_tabs( $params ) {
|
| 583 |
+
$addons = array('tabs' => array(), 'html' => array());
|
| 584 |
+
if (WDFM()->is_free != 2) {
|
| 585 |
+
$addons = apply_filters('fm_get_addon_init', $addons, $params);
|
| 586 |
+
}
|
| 587 |
+
return $addons;
|
| 588 |
}
|
| 589 |
|
| 590 |
/**
|
| 770 |
$this->model->update_data("formmaker_backup", array(
|
| 771 |
'theme' => $theme,
|
| 772 |
), array( 'id' => $id )); //save theme in backup
|
| 773 |
+
$this->model->create_js($id);
|
| 774 |
+
if (WDFM()->is_free != 2) {
|
| 775 |
+
$save_addon = do_action('fm_save_addon_init', $id);
|
| 776 |
+
}
|
| 777 |
$message_id = 8;
|
| 778 |
}
|
| 779 |
return $message_id;
|
| 811 |
$params['page'] = $this->page;
|
| 812 |
$params['page_url'] = $this->page_url;
|
| 813 |
$params['page_title'] = '"'. $row->title . '" ' . __('layout', WDFM()->prefix);
|
| 814 |
+
$params['back_url'] = add_query_arg( array ('page' => 'manage' . WDFM()->menu_postfix,'task' => 'edit','current_id' => $id ), admin_url('admin.php'));
|
| 815 |
$params['ids'] = $ids;
|
| 816 |
$params['types'] = $types;
|
| 817 |
$params['labels'] = $labels;
|
| 864 |
$params['page'] = $this->page;
|
| 865 |
$params['page_url'] = $this->page_url;
|
| 866 |
$params['back_url'] = add_query_arg( array (
|
| 867 |
+
'page' => 'manage' . WDFM()->menu_postfix,
|
| 868 |
'task' => 'edit',
|
| 869 |
'current_id' => $id,
|
| 870 |
), admin_url('admin.php')
|
| 1137 |
'header_hide_image' => $header_hide_image,
|
| 1138 |
));
|
| 1139 |
$id = (int) $this->model->get_max_row('formmaker', 'id');
|
| 1140 |
+
if (WDFM()->is_free == 2) {
|
| 1141 |
+
update_option('contact_form_forms', ((get_option('contact_form_forms')) ? (get_option('contact_form_forms')) . ',' . $id : $id));
|
| 1142 |
+
}
|
| 1143 |
$this->model->insert_data_to_db('formmaker_display_options', array(
|
| 1144 |
'form_id' => $id,
|
| 1145 |
'type' => $type,
|
admin/controllers/Themes_fm.php
CHANGED
|
@@ -1897,7 +1897,7 @@ class FMControllerThemes_fm {
|
|
| 1897 |
'after' => 'px</div>',
|
| 1898 |
),
|
| 1899 |
array(
|
| 1900 |
-
'label' => __('
|
| 1901 |
'type' => 'panel',
|
| 1902 |
'class' => 'col-md-12',
|
| 1903 |
'label_class' => 'fm-mini-title',
|
|
@@ -2812,7 +2812,7 @@ class FMControllerThemes_fm {
|
|
| 2812 |
),
|
| 2813 |
'other' => array(
|
| 2814 |
array(
|
| 2815 |
-
'label' => __('
|
| 2816 |
'type' => 'panel',
|
| 2817 |
'class' => 'col-md-12',
|
| 2818 |
'label_class' => 'fm-mini-title',
|
| 1897 |
'after' => 'px</div>',
|
| 1898 |
),
|
| 1899 |
array(
|
| 1900 |
+
'label' => __('Inactive', WDFM()->prefix),
|
| 1901 |
'type' => 'panel',
|
| 1902 |
'class' => 'col-md-12',
|
| 1903 |
'label_class' => 'fm-mini-title',
|
| 2812 |
),
|
| 2813 |
'other' => array(
|
| 2814 |
array(
|
| 2815 |
+
'label' => __('Inactive Text', WDFM()->prefix),
|
| 2816 |
'type' => 'panel',
|
| 2817 |
'class' => 'col-md-12',
|
| 2818 |
'label_class' => 'fm-mini-title',
|
admin/controllers/Uninstall_fm.php
CHANGED
|
@@ -23,13 +23,14 @@ class FMControllerUninstall_fm {
|
|
| 23 |
require_once WDFM()->plugin_dir . "/admin/views/Uninstall_fm.php";
|
| 24 |
$this->view = new FMViewUninstall_fm();
|
| 25 |
|
| 26 |
-
if (
|
| 27 |
global $fm_options;
|
|
|
|
| 28 |
if (!class_exists("DoradoWebConfig")) {
|
| 29 |
-
include_once(
|
| 30 |
}
|
| 31 |
$config = new DoradoWebConfig();
|
| 32 |
-
$config->set_options($fm_options);
|
| 33 |
$deactivate_reasons = new DoradoWebDeactivate($config);
|
| 34 |
$deactivate_reasons->submit_and_deactivate();
|
| 35 |
}
|
| 23 |
require_once WDFM()->plugin_dir . "/admin/views/Uninstall_fm.php";
|
| 24 |
$this->view = new FMViewUninstall_fm();
|
| 25 |
|
| 26 |
+
if ( WDFM()->is_free ) {
|
| 27 |
global $fm_options;
|
| 28 |
+
global $cfm_options;
|
| 29 |
if (!class_exists("DoradoWebConfig")) {
|
| 30 |
+
include_once(WDFM()->plugin_dir . "/wd/config.php");
|
| 31 |
}
|
| 32 |
$config = new DoradoWebConfig();
|
| 33 |
+
$config->set_options(WDFM()->is_free == 1 ? $fm_options : $cfm_options);
|
| 34 |
$deactivate_reasons = new DoradoWebDeactivate($config);
|
| 35 |
$deactivate_reasons->submit_and_deactivate();
|
| 36 |
}
|
admin/models/FMShortocde.php
CHANGED
|
@@ -11,7 +11,7 @@ class FMModelFMShortocde {
|
|
| 11 |
*/
|
| 12 |
public function get_form_data() {
|
| 13 |
global $wpdb;
|
| 14 |
-
$rows = $wpdb->get_results("SELECT * FROM `" . $wpdb->prefix . "formmaker`
|
| 15 |
|
| 16 |
return $rows;
|
| 17 |
}
|
| 11 |
*/
|
| 12 |
public function get_form_data() {
|
| 13 |
global $wpdb;
|
| 14 |
+
$rows = $wpdb->get_results("SELECT * FROM `" . $wpdb->prefix . "formmaker`" . (!WDFM()->is_free ? '' : ' WHERE id' . (WDFM()->is_free == 1 ? ' NOT ' : ' ') . 'IN (' . (get_option('contact_form_forms', '') != '' ? get_option('contact_form_forms') : 0) . ') ORDER BY `title`'));
|
| 15 |
|
| 16 |
return $rows;
|
| 17 |
}
|
admin/models/Manage_fm.php
CHANGED
|
@@ -23,9 +23,9 @@ class FMModelManage_fm {
|
|
| 23 |
$query = "SELECT t1.*, count(DISTINCT t2.group_id) as submission_count, GROUP_CONCAT(t2.id SEPARATOR ',') FROM " . $wpdb->prefix . "formmaker as t1 ";
|
| 24 |
$query .= "LEFT JOIN " . $wpdb->prefix . "formmaker_submits as t2 ";
|
| 25 |
$query .= "on t1.id = t2.form_id ";
|
| 26 |
-
$query .= (WDFM()->
|
| 27 |
if ( $search ) {
|
| 28 |
-
$query .= (WDFM()->
|
| 29 |
}
|
| 30 |
$query .= " GROUP BY t1.id";
|
| 31 |
$query .= ' ORDER BY t1.`' . $orderby . '` ' . $order;
|
|
@@ -244,7 +244,16 @@ class FMModelManage_fm {
|
|
| 244 |
case 'type_arithmetic_captcha':
|
| 245 |
case 'type_recaptcha': {
|
| 246 |
$arrows = '<div id="wdform_arrows' . $id . '" class="wdform_arrows" style="display: none;">
|
| 247 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 248 |
<span id="left_' . $id . '" valign="middle" class="element_toolbar">
|
| 249 |
<span title="Move the field to the left" class="page_toolbar dashicons dashicons-arrow-left-alt" onclick="left_row("' . $id . '")"></span>
|
| 250 |
</span>
|
|
@@ -263,21 +272,23 @@ class FMModelManage_fm {
|
|
| 263 |
<span id="page_down_' . $id . '" valign="middle" class="element_toolbar">
|
| 264 |
<span title="Move the field to the lower page" class="page_toolbar dashicons dashicons-download" onclick="page_down("' . $id . '")"></span>
|
| 265 |
</span>
|
| 266 |
-
</
|
| 267 |
-
<span class="wdform_arrows_basic wdform_arrows_container"> <span id="edit_' . $id . '" valign="middle" class="element_toolbar">
|
| 268 |
-
<span title="Edit the field" class="page_toolbar dashicons dashicons-edit" onclick="edit("' . $id . '")"></span>
|
| 269 |
-
</span>
|
| 270 |
-
<span id="duplicate_' . $id . '" valign="middle" class="element_toolbar"></span>
|
| 271 |
-
<span id="X_' . $id . '" valign="middle" align="right" class="element_toolbar">
|
| 272 |
-
<span title="Remove the field" class="page_toolbar dashicons dashicons-no-alt" onclick="remove_row("' . $id . '")"></span>
|
| 273 |
-
</span>
|
| 274 |
-
</span>
|
| 275 |
</div>';
|
| 276 |
break;
|
| 277 |
}
|
| 278 |
default : {
|
| 279 |
$arrows = '<div id="wdform_arrows' . $id . '" class="wdform_arrows" style="display: none;">
|
| 280 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 281 |
<span id="left_' . $id . '" valign="middle" class="element_toolbar">
|
| 282 |
<span title="Move the field to the left" class="page_toolbar dashicons dashicons-arrow-left-alt" onclick="left_row("' . $id . '")"></span>
|
| 283 |
</span>
|
|
@@ -296,17 +307,7 @@ class FMModelManage_fm {
|
|
| 296 |
<span id="page_down_' . $id . '" valign="middle" class="element_toolbar">
|
| 297 |
<span title="Move the field to the lower page" class="page_toolbar dashicons dashicons-download" onclick="page_down("' . $id . '")"></span>
|
| 298 |
</span>
|
| 299 |
-
</
|
| 300 |
-
<span class="wdform_arrows_basic wdform_arrows_container"> <span id="edit_' . $id . '" valign="middle" class="element_toolbar">
|
| 301 |
-
<span title="Edit the field" class="page_toolbar dashicons dashicons-edit" onclick="edit("' . $id . '")"></span>
|
| 302 |
-
</span>
|
| 303 |
-
<span id="duplicate_' . $id . '" valign="middle" class="element_toolbar">
|
| 304 |
-
<span title="Duplicate the field" class="page_toolbar dashicons dashicons-admin-page" onclick="duplicate("' . $id . '")"></span>
|
| 305 |
-
</span>
|
| 306 |
-
<span id="X_' . $id . '" valign="middle" align="right" class="element_toolbar">
|
| 307 |
-
<span title="Remove the field" class="page_toolbar dashicons dashicons-no-alt" onclick="remove_row("' . $id . '")"></span>
|
| 308 |
-
</span>
|
| 309 |
-
</span>
|
| 310 |
</div>';
|
| 311 |
break;
|
| 312 |
}
|
|
@@ -320,7 +321,7 @@ class FMModelManage_fm {
|
|
| 320 |
$param[$params_name] = $temp[0];
|
| 321 |
$temp = $temp[1];
|
| 322 |
}
|
| 323 |
-
$rep = '<div id="wdform_field' . $id . '" type="type_section_break" class="wdform_field_section_break">' . $arrows . '<span id="' . $id . '_element_labelform_id_temp" style="display: none;">
|
| 324 |
break;
|
| 325 |
}
|
| 326 |
case 'type_editor': {
|
|
@@ -331,7 +332,7 @@ class FMModelManage_fm {
|
|
| 331 |
$param[$params_name] = $temp[0];
|
| 332 |
$temp = $temp[1];
|
| 333 |
}
|
| 334 |
-
$rep = '<div id="wdform_field' . $id . '" type="type_editor" class="wdform_field" >' . $param['w_editor'] . '</div>' . $arrows . '<div id="' . $id . '_element_labelform_id_temp" style="color: red;"
|
| 335 |
break;
|
| 336 |
}
|
| 337 |
case 'type_send_copy': {
|
|
@@ -603,7 +604,7 @@ class FMModelManage_fm {
|
|
| 603 |
$required_sym = ($param['w_required'] == "yes" ? " *" : "");
|
| 604 |
$param['w_hide_label'] = (isset($param['w_hide_label']) ? $param['w_hide_label'] : "no");
|
| 605 |
$display_label = $param['w_hide_label'] == "no" ? $param['w_field_label_pos'] : "none";
|
| 606 |
-
$rep = '<div id="wdform_field' . $id . '" type="type_textarea" 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;"><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:
|
| 607 |
break;
|
| 608 |
}
|
| 609 |
case 'type_phone': {
|
|
@@ -851,7 +852,12 @@ class FMModelManage_fm {
|
|
| 851 |
if ( $w_disabled_fields[3] == 'no' ) {
|
| 852 |
$g++;
|
| 853 |
if ( $w_disabled_fields[5] == 'yes' && $w_disabled_fields[6] == 'yes' ) {
|
| 854 |
-
$address_fields .= '<span style="float: ' . (($g % 2 == 0) ? 'right' : 'left') . '; width: 48%; padding-bottom: 8px;"><select type="text" id="' . $id . '_stateform_id_temp" name="' . ($id + 3) . '_stateform_id_temp" style="width: 100%;" ' . $param['attributes'] . ' disabled
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 855 |
}
|
| 856 |
else {
|
| 857 |
$address_fields .= '<span style="float: ' . (($g % 2 == 0) ? 'right' : 'left') . '; width: 48%; padding-bottom: 8px;"><input type="text" id="' . $id . '_stateform_id_temp" name="' . ($id + 3) . '_stateform_id_temp" style="width: 100%;" ' . $param['attributes'] . ' disabled><label class="mini_label" style="display: block;" id="' . $id . '_mini_label_state">' . $w_mini_labels[3] . '</label></span>';
|
|
@@ -2048,7 +2054,7 @@ class FMModelManage_fm {
|
|
| 2048 |
$param['w_hide_label'] = (isset($param['w_hide_label']) ? $param['w_hide_label'] : "no");
|
| 2049 |
$display_label = $param['w_hide_label'] == "no" ? $param['w_field_label_pos'] : "none";
|
| 2050 |
$rep = '<div id="wdform_field' . $id . '" type="type_captcha" 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;"><span id="' . $id . '_element_labelform_id_temp" class="label" style="vertical-align: top;">' . $label . '</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_captcha" name="' . $id . '_typeform_id_temp" id="' . $id . '_typeform_id_temp"><div style="display: table;"><div style="display: table-row;"><div valign="middle" style="display: table-cell;"><img type="captcha" digit="' . $param['w_digit'] . '" src="' . add_query_arg(array(
|
| 2051 |
-
'action' => 'formmakerwdcaptcha',
|
| 2052 |
'digit' => $param['w_digit'],
|
| 2053 |
'i' => 'form_id_temp',
|
| 2054 |
), admin_url('admin-ajax.php')) . '" id="_wd_captchaform_id_temp" class="captcha_img" onclick="captcha_refresh("_wd_captcha","form_id_temp")" ' . $param['attributes'] . '></div><div valign="middle" style="display: table-cell;"><div class="captcha_refresh" id="_element_refreshform_id_temp" onclick="captcha_refresh("_wd_captcha","form_id_temp")" ' . $param['attributes'] . '></div></div></div><div style="display: table-row;"><div style="display: table-cell;"><input type="text" class="captcha_input" id="_wd_captcha_inputform_id_temp" name="captcha_input" style="width: ' . ($param['w_digit'] * 10 + 15) . 'px;" ' . $param['attributes'] . ' disabled/><input type="hidden" value="' . $param['w_hide_label'] . '" name="' . $id . '_hide_labelform_id_temp" id="' . $id . '_hide_labelform_id_temp"/></div></div></div></div></div>';
|
|
@@ -2094,7 +2100,7 @@ class FMModelManage_fm {
|
|
| 2094 |
$param['w_operations'] = $param['w_operations'] ? $param['w_operations'] : '+, -, *, /';
|
| 2095 |
$param['w_input_size'] = $param['w_input_size'] ? $param['w_input_size'] : 60;
|
| 2096 |
$rep = '<div id="wdform_field' . $id . '" type="type_arithmetic_captcha" 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;"><span id="' . $id . '_element_labelform_id_temp" class="label" style="vertical-align: top;">' . $label . '</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_captcha" name="' . $id . '_typeform_id_temp" id="' . $id . '_typeform_id_temp"><div style="display: table;"><div style="display: table-row;"><div style="display: table-cell;"><img type="captcha" operations_count="' . $param['w_count'] . '" operations="' . $param['w_operations'] . '" input_size="' . $param['w_input_size'] . '" src="' . add_query_arg(array(
|
| 2097 |
-
'action' => 'formmakerwdmathcaptcha',
|
| 2098 |
'operations_count' => $param['w_count'],
|
| 2099 |
'operations' => urlencode($param['w_operations']),
|
| 2100 |
'i' => 'form_id_temp',
|
|
@@ -2122,22 +2128,26 @@ class FMModelManage_fm {
|
|
| 2122 |
'w_class',
|
| 2123 |
);
|
| 2124 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2125 |
foreach ( $params_names as $params_name ) {
|
| 2126 |
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 2127 |
$param[$params_name] = $temp[0];
|
| 2128 |
$temp = $temp[1];
|
| 2129 |
}
|
| 2130 |
-
if ( $temp ) {
|
| 2131 |
-
$temp = explode('*:*w_attr_name*:*', $temp);
|
| 2132 |
-
$attrs = array_slice($temp, 0, count($temp) - 1);
|
| 2133 |
-
foreach ( $attrs as $attr ) {
|
| 2134 |
-
$param['attributes'] = $param['attributes'] . ' add_' . $attr;
|
| 2135 |
-
}
|
| 2136 |
-
}
|
| 2137 |
$param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
|
| 2138 |
$param['w_hide_label'] = (isset($param['w_hide_label']) ? $param['w_hide_label'] : "no");
|
| 2139 |
$display_label = $param['w_hide_label'] == "no" ? $param['w_field_label_pos'] : "none";
|
| 2140 |
-
$rep = '<div id="wdform_field' . $id . '" type="type_recaptcha" class="wdform_field" style="display: table-cell;">' . $arrows . '<div align="left" id="' . $id . '_label_sectionform_id_temp"
|
| 2141 |
break;
|
| 2142 |
}
|
| 2143 |
case 'type_hidden': {
|
|
@@ -3802,19 +3812,18 @@ class FMModelManage_fm {
|
|
| 3802 |
* @return string $guid
|
| 3803 |
*/
|
| 3804 |
public function get_form_preview_post() {
|
| 3805 |
-
|
| 3806 |
-
$post_type = 'form-maker';
|
| 3807 |
$row = get_posts(array( 'post_type' => $post_type ));
|
| 3808 |
if ( !empty($row[0]) ) {
|
| 3809 |
-
return $row[0]->
|
| 3810 |
}
|
| 3811 |
else {
|
| 3812 |
$post_params = array(
|
| 3813 |
'post_author' => 1,
|
| 3814 |
'post_status' => 'publish',
|
| 3815 |
-
'post_content' => '[FormPreview]',
|
| 3816 |
'post_title' => 'Preview',
|
| 3817 |
-
'post_type' => 'form-maker',
|
| 3818 |
'comment_status' => 'closed',
|
| 3819 |
'ping_status' => 'closed',
|
| 3820 |
'post_parent' => 0,
|
|
@@ -3824,8 +3833,9 @@ class FMModelManage_fm {
|
|
| 3824 |
// Create new post by fmformpreview type.
|
| 3825 |
if ( wp_insert_post($post_params) ) {
|
| 3826 |
flush_rewrite_rules();
|
|
|
|
| 3827 |
|
| 3828 |
-
return
|
| 3829 |
}
|
| 3830 |
else {
|
| 3831 |
return "";
|
| 23 |
$query = "SELECT t1.*, count(DISTINCT t2.group_id) as submission_count, GROUP_CONCAT(t2.id SEPARATOR ',') FROM " . $wpdb->prefix . "formmaker as t1 ";
|
| 24 |
$query .= "LEFT JOIN " . $wpdb->prefix . "formmaker_submits as t2 ";
|
| 25 |
$query .= "on t1.id = t2.form_id ";
|
| 26 |
+
$query .= (!WDFM()->is_free ? '' : 'WHERE t1.id' . (WDFM()->is_free == 1 ? ' NOT ' : ' ') . 'IN (' . (get_option('contact_form_forms', '') != '' ? get_option('contact_form_forms') : 0) . ')');
|
| 27 |
if ( $search ) {
|
| 28 |
+
$query .= (!WDFM()->is_free ? 'WHERE' : ' AND') . ' t1.title LIKE "%' . $search . '%"';
|
| 29 |
}
|
| 30 |
$query .= " GROUP BY t1.id";
|
| 31 |
$query .= ' ORDER BY t1.`' . $orderby . '` ' . $order;
|
| 244 |
case 'type_arithmetic_captcha':
|
| 245 |
case 'type_recaptcha': {
|
| 246 |
$arrows = '<div id="wdform_arrows' . $id . '" class="wdform_arrows" style="display: none;">
|
| 247 |
+
<div class="wdform_arrows_basic wdform_arrows_container">
|
| 248 |
+
<span id="edit_' . $id . '" valign="middle" class="element_toolbar">
|
| 249 |
+
<span title="Edit the field" class="page_toolbar dashicons dashicons-edit" onclick="edit("' . $id . '")"></span>
|
| 250 |
+
</span>
|
| 251 |
+
<span id="duplicate_' . $id . '" valign="middle" class="element_toolbar"></span>
|
| 252 |
+
<span id="X_' . $id . '" valign="middle" align="right" class="element_toolbar">
|
| 253 |
+
<span title="Remove the field" class="page_toolbar dashicons dashicons-no-alt" onclick="remove_row("' . $id . '")"></span>
|
| 254 |
+
</span>
|
| 255 |
+
</div>
|
| 256 |
+
<div class="wdform_arrows_advanced wdform_arrows_container" style="display: none;">
|
| 257 |
<span id="left_' . $id . '" valign="middle" class="element_toolbar">
|
| 258 |
<span title="Move the field to the left" class="page_toolbar dashicons dashicons-arrow-left-alt" onclick="left_row("' . $id . '")"></span>
|
| 259 |
</span>
|
| 272 |
<span id="page_down_' . $id . '" valign="middle" class="element_toolbar">
|
| 273 |
<span title="Move the field to the lower page" class="page_toolbar dashicons dashicons-download" onclick="page_down("' . $id . '")"></span>
|
| 274 |
</span>
|
| 275 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 276 |
</div>';
|
| 277 |
break;
|
| 278 |
}
|
| 279 |
default : {
|
| 280 |
$arrows = '<div id="wdform_arrows' . $id . '" class="wdform_arrows" style="display: none;">
|
| 281 |
+
<div class="wdform_arrows_basic wdform_arrows_container"> <span id="edit_' . $id . '" valign="middle" class="element_toolbar">
|
| 282 |
+
<span title="Edit the field" class="page_toolbar dashicons dashicons-edit" onclick="edit("' . $id . '")"></span>
|
| 283 |
+
</span>
|
| 284 |
+
<span id="duplicate_' . $id . '" valign="middle" class="element_toolbar">
|
| 285 |
+
<span title="Duplicate the field" class="page_toolbar dashicons dashicons-admin-page" onclick="duplicate("' . $id . '")"></span>
|
| 286 |
+
</span>
|
| 287 |
+
<span id="X_' . $id . '" valign="middle" align="right" class="element_toolbar">
|
| 288 |
+
<span title="Remove the field" class="page_toolbar dashicons dashicons-no-alt" onclick="remove_row("' . $id . '")"></span>
|
| 289 |
+
</span>
|
| 290 |
+
</div>
|
| 291 |
+
<div class="wdform_arrows_advanced wdform_arrows_container" style="display: none;">
|
| 292 |
<span id="left_' . $id . '" valign="middle" class="element_toolbar">
|
| 293 |
<span title="Move the field to the left" class="page_toolbar dashicons dashicons-arrow-left-alt" onclick="left_row("' . $id . '")"></span>
|
| 294 |
</span>
|
| 307 |
<span id="page_down_' . $id . '" valign="middle" class="element_toolbar">
|
| 308 |
<span title="Move the field to the lower page" class="page_toolbar dashicons dashicons-download" onclick="page_down("' . $id . '")"></span>
|
| 309 |
</span>
|
| 310 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 311 |
</div>';
|
| 312 |
break;
|
| 313 |
}
|
| 321 |
$param[$params_name] = $temp[0];
|
| 322 |
$temp = $temp[1];
|
| 323 |
}
|
| 324 |
+
$rep = '<div id="wdform_field' . $id . '" type="type_section_break" class="wdform_field_section_break">' . $arrows . '<span id="' . $id . '_element_labelform_id_temp" style="display: none;">' . __('Section Break', WDFM()->prefix) . '</span><div id="' . $id . '_element_sectionform_id_temp" align="left" class="wdform_section_break">' . $param['w_editor'] . '</div></div><div id="' . $id . '_element_labelform_id_temp" style="color:red;">' . __('Section Break', WDFM()->prefix) . '</div>';
|
| 325 |
break;
|
| 326 |
}
|
| 327 |
case 'type_editor': {
|
| 332 |
$param[$params_name] = $temp[0];
|
| 333 |
$temp = $temp[1];
|
| 334 |
}
|
| 335 |
+
$rep = '<div id="wdform_field' . $id . '" type="type_editor" class="wdform_field" >' . $param['w_editor'] . '</div>' . $arrows . '<div id="' . $id . '_element_labelform_id_temp" style="color: red;"></div>';
|
| 336 |
break;
|
| 337 |
}
|
| 338 |
case 'type_send_copy': {
|
| 604 |
$required_sym = ($param['w_required'] == "yes" ? " *" : "");
|
| 605 |
$param['w_hide_label'] = (isset($param['w_hide_label']) ? $param['w_hide_label'] : "no");
|
| 606 |
$display_label = $param['w_hide_label'] == "no" ? $param['w_field_label_pos'] : "none";
|
| 607 |
+
$rep = '<div id="wdform_field' . $id . '" type="type_textarea" 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;"><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_textarea" 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" value="' . $param['w_unique'] . '" name="' . $id . '_uniqueform_id_temp" id="' . $id . '_uniqueform_id_temp"><textarea id="' . $id . '_elementform_id_temp" name="' . $id . '_elementform_id_temp" title="' . $param['w_title'] . '" placeholder="' . $param['w_title'] . '" style="width: ' . $param['w_size_w'] . 'px; height: ' . $param['w_size_h'] . 'px;" ' . $param['attributes'] . ' disabled>' . $param['w_first_val'] . '</textarea></div></div>';
|
| 608 |
break;
|
| 609 |
}
|
| 610 |
case 'type_phone': {
|
| 852 |
if ( $w_disabled_fields[3] == 'no' ) {
|
| 853 |
$g++;
|
| 854 |
if ( $w_disabled_fields[5] == 'yes' && $w_disabled_fields[6] == 'yes' ) {
|
| 855 |
+
$address_fields .= '<span style="float: ' . (($g % 2 == 0) ? 'right' : 'left') . '; width: 48%; padding-bottom: 8px;"><select type="text" id="' . $id . '_stateform_id_temp" name="' . ($id + 3) . '_stateform_id_temp" style="width: 100%;" ' . $param['attributes'] . ' disabled >';
|
| 856 |
+
$states = WDW_FM_Library::get_states();
|
| 857 |
+
foreach ($states as $st => $state) {
|
| 858 |
+
$address_fields .= '<option value="' . $st . '">' . $state . '</option>';
|
| 859 |
+
}
|
| 860 |
+
$address_fields .= '</select><label class="mini_label" style="display: block;" id="' . $id . '_mini_label_state">' . $w_mini_labels[3] . '</label></span>';
|
| 861 |
}
|
| 862 |
else {
|
| 863 |
$address_fields .= '<span style="float: ' . (($g % 2 == 0) ? 'right' : 'left') . '; width: 48%; padding-bottom: 8px;"><input type="text" id="' . $id . '_stateform_id_temp" name="' . ($id + 3) . '_stateform_id_temp" style="width: 100%;" ' . $param['attributes'] . ' disabled><label class="mini_label" style="display: block;" id="' . $id . '_mini_label_state">' . $w_mini_labels[3] . '</label></span>';
|
| 2054 |
$param['w_hide_label'] = (isset($param['w_hide_label']) ? $param['w_hide_label'] : "no");
|
| 2055 |
$display_label = $param['w_hide_label'] == "no" ? $param['w_field_label_pos'] : "none";
|
| 2056 |
$rep = '<div id="wdform_field' . $id . '" type="type_captcha" 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;"><span id="' . $id . '_element_labelform_id_temp" class="label" style="vertical-align: top;">' . $label . '</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_captcha" name="' . $id . '_typeform_id_temp" id="' . $id . '_typeform_id_temp"><div style="display: table;"><div style="display: table-row;"><div valign="middle" style="display: table-cell;"><img type="captcha" digit="' . $param['w_digit'] . '" src="' . add_query_arg(array(
|
| 2057 |
+
'action' => 'formmakerwdcaptcha' . WDFM()->plugin_postfix,
|
| 2058 |
'digit' => $param['w_digit'],
|
| 2059 |
'i' => 'form_id_temp',
|
| 2060 |
), admin_url('admin-ajax.php')) . '" id="_wd_captchaform_id_temp" class="captcha_img" onclick="captcha_refresh("_wd_captcha","form_id_temp")" ' . $param['attributes'] . '></div><div valign="middle" style="display: table-cell;"><div class="captcha_refresh" id="_element_refreshform_id_temp" onclick="captcha_refresh("_wd_captcha","form_id_temp")" ' . $param['attributes'] . '></div></div></div><div style="display: table-row;"><div style="display: table-cell;"><input type="text" class="captcha_input" id="_wd_captcha_inputform_id_temp" name="captcha_input" style="width: ' . ($param['w_digit'] * 10 + 15) . 'px;" ' . $param['attributes'] . ' disabled/><input type="hidden" value="' . $param['w_hide_label'] . '" name="' . $id . '_hide_labelform_id_temp" id="' . $id . '_hide_labelform_id_temp"/></div></div></div></div></div>';
|
| 2100 |
$param['w_operations'] = $param['w_operations'] ? $param['w_operations'] : '+, -, *, /';
|
| 2101 |
$param['w_input_size'] = $param['w_input_size'] ? $param['w_input_size'] : 60;
|
| 2102 |
$rep = '<div id="wdform_field' . $id . '" type="type_arithmetic_captcha" 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;"><span id="' . $id . '_element_labelform_id_temp" class="label" style="vertical-align: top;">' . $label . '</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_captcha" name="' . $id . '_typeform_id_temp" id="' . $id . '_typeform_id_temp"><div style="display: table;"><div style="display: table-row;"><div style="display: table-cell;"><img type="captcha" operations_count="' . $param['w_count'] . '" operations="' . $param['w_operations'] . '" input_size="' . $param['w_input_size'] . '" src="' . add_query_arg(array(
|
| 2103 |
+
'action' => 'formmakerwdmathcaptcha' . WDFM()->plugin_postfix,
|
| 2104 |
'operations_count' => $param['w_count'],
|
| 2105 |
'operations' => urlencode($param['w_operations']),
|
| 2106 |
'i' => 'form_id_temp',
|
| 2128 |
'w_class',
|
| 2129 |
);
|
| 2130 |
}
|
| 2131 |
+
if ( strpos($temp, 'w_type') > -1 ) {
|
| 2132 |
+
$params_names = array(
|
| 2133 |
+
'w_field_label_size',
|
| 2134 |
+
'w_field_label_pos',
|
| 2135 |
+
'w_hide_label',
|
| 2136 |
+
'w_type',
|
| 2137 |
+
'w_position',
|
| 2138 |
+
);
|
| 2139 |
+
}
|
| 2140 |
+
$param['w_type'] = 'v2';
|
| 2141 |
+
$param['w_position'] = 'hidden';
|
| 2142 |
foreach ( $params_names as $params_name ) {
|
| 2143 |
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 2144 |
$param[$params_name] = $temp[0];
|
| 2145 |
$temp = $temp[1];
|
| 2146 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2147 |
$param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
|
| 2148 |
$param['w_hide_label'] = (isset($param['w_hide_label']) ? $param['w_hide_label'] : "no");
|
| 2149 |
$display_label = $param['w_hide_label'] == "no" ? $param['w_field_label_pos'] : "none";
|
| 2150 |
+
$rep = '<div id="wdform_field' . $id . '" type="type_recaptcha" class="wdform_field" style="display: table-cell;">' . $arrows . '<div align="left" id="' . $id . '_label_sectionform_id_temp" style="display: ' . $display_label . '; width: ' . $param['w_field_label_size'] . 'px;"><span id="' . $id . '_element_labelform_id_temp" class="label" style="vertical-align: top;">' . $label . '</span></div><div align="left" id="' . $id . '_element_sectionform_id_temp" style="display: ' . $param['w_field_label_pos'] . ';"><input type="hidden" value="type_recaptcha" name="' . $id . '_typeform_id_temp" id="' . $id . '_typeform_id_temp"><input type="hidden" value="' . $param['w_hide_label'] . '" name="' . $id . '_hide_labelform_id_temp" id="' . $id . '_hide_labelform_id_temp"/><div id="wd_recaptchaform_id_temp" w_type="' . $param['w_type'] . '" position="' . $param['w_position'] . '"><span style="color: red; font-style: italic;">' . __('No preview available for reCAPTCHA.', WDFM()->prefix) . '</span></div></div></div>';
|
| 2151 |
break;
|
| 2152 |
}
|
| 2153 |
case 'type_hidden': {
|
| 3812 |
* @return string $guid
|
| 3813 |
*/
|
| 3814 |
public function get_form_preview_post() {
|
| 3815 |
+
$post_type = 'form-maker' . WDFM()->plugin_postfix;
|
|
|
|
| 3816 |
$row = get_posts(array( 'post_type' => $post_type ));
|
| 3817 |
if ( !empty($row[0]) ) {
|
| 3818 |
+
return get_post_permalink($row[0]->ID);
|
| 3819 |
}
|
| 3820 |
else {
|
| 3821 |
$post_params = array(
|
| 3822 |
'post_author' => 1,
|
| 3823 |
'post_status' => 'publish',
|
| 3824 |
+
'post_content' => '[FormPreview' . WDFM()->plugin_postfix . ']',
|
| 3825 |
'post_title' => 'Preview',
|
| 3826 |
+
'post_type' => 'form-maker' . WDFM()->plugin_postfix,
|
| 3827 |
'comment_status' => 'closed',
|
| 3828 |
'ping_status' => 'closed',
|
| 3829 |
'post_parent' => 0,
|
| 3833 |
// Create new post by fmformpreview type.
|
| 3834 |
if ( wp_insert_post($post_params) ) {
|
| 3835 |
flush_rewrite_rules();
|
| 3836 |
+
global $wpdb;
|
| 3837 |
|
| 3838 |
+
return get_post_permalink($wpdb->insert_id);
|
| 3839 |
}
|
| 3840 |
else {
|
| 3841 |
return "";
|
admin/models/Submissions_fm.php
CHANGED
|
@@ -18,7 +18,7 @@ class FMModelSubmissions_fm {
|
|
| 18 |
*/
|
| 19 |
public function get_forms() {
|
| 20 |
global $wpdb;
|
| 21 |
-
$query = "SELECT `id`, `title`, `published` FROM " . $wpdb->prefix . "formmaker " . (WDFM()->
|
| 22 |
$results = $wpdb->get_results($query);
|
| 23 |
$forms = array();
|
| 24 |
if( !empty($results) ) {
|
| 18 |
*/
|
| 19 |
public function get_forms() {
|
| 20 |
global $wpdb;
|
| 21 |
+
$query = "SELECT `id`, `title`, `published` FROM " . $wpdb->prefix . "formmaker " . (!WDFM()->is_free ? '' : ' WHERE id' . (WDFM()->is_free == 1 ? ' NOT ' : ' ') . 'IN (' . (get_option('contact_form_forms', '') != '' ? get_option('contact_form_forms') : 0) . ')') . " ORDER BY `title`";
|
| 22 |
$results = $wpdb->get_results($query);
|
| 23 |
$forms = array();
|
| 24 |
if( !empty($results) ) {
|
admin/models/Uninstall_fm.php
CHANGED
|
@@ -3,15 +3,15 @@
|
|
| 3 |
class FMModelUninstall_fm {
|
| 4 |
public function delete_db_tables() {
|
| 5 |
global $wpdb;
|
| 6 |
-
$true_or_false_forms = WDFM()->
|
| 7 |
if ($true_or_false_forms) {
|
| 8 |
-
$wpdb->query(
|
| 9 |
-
$wpdb->query(
|
| 10 |
-
$wpdb->query(
|
| 11 |
}
|
| 12 |
else {
|
| 13 |
-
$email_verification_post_id = $wpdb->get_var(
|
| 14 |
-
delete_option(
|
| 15 |
delete_option('formmaker_cureent_version');
|
| 16 |
delete_option('contact_form_themes');
|
| 17 |
delete_option('contact_form_forms');
|
|
@@ -51,29 +51,29 @@ class FMModelUninstall_fm {
|
|
| 51 |
}
|
| 52 |
}
|
| 53 |
}
|
| 54 |
-
$wpdb->query(
|
| 55 |
-
$wpdb->query(
|
| 56 |
-
$wpdb->query(
|
| 57 |
-
$wpdb->query(
|
| 58 |
-
$wpdb->query(
|
| 59 |
-
$wpdb->query(
|
| 60 |
-
$wpdb->query(
|
| 61 |
-
$wpdb->query(
|
| 62 |
-
$wpdb->query(
|
| 63 |
-
$wpdb->query(
|
| 64 |
-
$wpdb->query(
|
| 65 |
-
$wpdb->query(
|
| 66 |
-
$wpdb->query(
|
| 67 |
-
$wpdb->query(
|
| 68 |
-
$wpdb->query(
|
| 69 |
-
$wpdb->query(
|
| 70 |
-
$wpdb->query(
|
| 71 |
-
$wpdb->query(
|
| 72 |
-
$wpdb->query(
|
| 73 |
-
$wpdb->query(
|
| 74 |
-
$wpdb->query(
|
| 75 |
-
$wpdb->query(
|
| 76 |
-
$wpdb->query(
|
| 77 |
}
|
| 78 |
}
|
| 79 |
}
|
| 3 |
class FMModelUninstall_fm {
|
| 4 |
public function delete_db_tables() {
|
| 5 |
global $wpdb;
|
| 6 |
+
$true_or_false_forms = !WDFM()->is_free ? false : $wpdb->get_var('SELECT COUNT(*) FROM ' . $wpdb->prefix . 'formmaker WHERE `id`' . (WDFM()->is_free == 1 ? ' NOT ' : ' ') . 'IN (' . (get_option('contact_form_forms', '') != '' ? get_option('contact_form_forms') : 0) . ')');
|
| 7 |
if ($true_or_false_forms) {
|
| 8 |
+
$wpdb->query('DELETE FROM ' . $wpdb->prefix . 'formmaker WHERE `id`' . (WDFM()->is_free == 1 ? ' NOT ' : ' ') . 'IN (' . (get_option('contact_form_forms', '') != '' ? get_option('contact_form_forms') : 0) . ')');
|
| 9 |
+
$wpdb->query('DELETE FROM ' . $wpdb->prefix . 'formmaker_submits WHERE `form_id`' . (WDFM()->is_free == 1 ? ' NOT ' : ' ') . 'IN (' . (get_option('contact_form_forms', '') != '' ? get_option('contact_form_forms') : 0) . ')');
|
| 10 |
+
$wpdb->query('DELETE FROM ' . $wpdb->prefix . 'formmaker_views WHERE `form_id`' . (WDFM()->is_free == 1 ? ' NOT ' : ' ') . 'IN (' . (get_option('contact_form_forms', '') != '' ? get_option('contact_form_forms') : 0) . ')');
|
| 11 |
}
|
| 12 |
else {
|
| 13 |
+
$email_verification_post_id = $wpdb->get_var('SELECT mail_verification_post_id FROM ' . $wpdb->prefix . 'formmaker WHERE mail_verification_post_id != 0');
|
| 14 |
+
delete_option('wd_form_maker_version');
|
| 15 |
delete_option('formmaker_cureent_version');
|
| 16 |
delete_option('contact_form_themes');
|
| 17 |
delete_option('contact_form_forms');
|
| 51 |
}
|
| 52 |
}
|
| 53 |
}
|
| 54 |
+
$wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'formmaker');
|
| 55 |
+
$wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'formmaker_submits');
|
| 56 |
+
$wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'formmaker_views');
|
| 57 |
+
$wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'formmaker_themes');
|
| 58 |
+
$wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'formmaker_sessions');
|
| 59 |
+
$wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'formmaker_blocked');
|
| 60 |
+
$wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'formmaker_query');
|
| 61 |
+
$wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'formmaker_backup');
|
| 62 |
+
$wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'formmaker_mailchimp');
|
| 63 |
+
$wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'formmaker_reg');
|
| 64 |
+
$wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'formmaker_post_gen_options');
|
| 65 |
+
$wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'formmaker_email_conditions');
|
| 66 |
+
$wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'formmaker_dbox_int');
|
| 67 |
+
$wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'formmaker_pdf_options');
|
| 68 |
+
$wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'formmaker_pdf');
|
| 69 |
+
$wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'formmaker_pushover');
|
| 70 |
+
$wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'formmaker_stripe');
|
| 71 |
+
$wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'formmaker_save_options');
|
| 72 |
+
$wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'formmaker_saved_entries');
|
| 73 |
+
$wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'formmaker_saved_attributes');
|
| 74 |
+
$wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'formmaker_calculator');
|
| 75 |
+
$wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'formmaker_gdrive_int');
|
| 76 |
+
$wpdb->query('DROP TABLE IF EXISTS ' . $wpdb->prefix . 'formmaker_display_options');
|
| 77 |
}
|
| 78 |
}
|
| 79 |
}
|
admin/views/Blocked_ips_fm.php
CHANGED
|
@@ -26,7 +26,7 @@ class FMViewBlocked_ips_fm extends FMAdminView {
|
|
| 26 |
$form_attr = array(
|
| 27 |
'id' => 'blocked_ips',
|
| 28 |
'class' => 'wd-form',
|
| 29 |
-
'action' => add_query_arg(array('page' => '
|
| 30 |
);
|
| 31 |
echo $this->form(ob_get_clean(), $form_attr);
|
| 32 |
}
|
| 26 |
$form_attr = array(
|
| 27 |
'id' => 'blocked_ips',
|
| 28 |
'class' => 'wd-form',
|
| 29 |
+
'action' => add_query_arg(array('page' => 'blocked_ips' . WDFM()->menu_postfix), 'admin.php'),
|
| 30 |
);
|
| 31 |
echo $this->form(ob_get_clean(), $form_attr);
|
| 32 |
}
|
admin/views/FMCaptcha.php
CHANGED
|
@@ -8,7 +8,7 @@ class FMViewFormmakerwdcaptcha {
|
|
| 8 |
* @param array $params
|
| 9 |
*/
|
| 10 |
public function display( $params ) {
|
| 11 |
-
if (isset($_GET['action']) && esc_html($_GET['action']) == 'formmakerwdcaptcha') {
|
| 12 |
$i = (isset($_GET["i"]) ? esc_html($_GET["i"]) : '');
|
| 13 |
$r2 = (isset($_GET["r2"]) ? (int) $_GET["r2"] : 0);
|
| 14 |
$rrr = (isset($_GET["rrr"]) ? (int) $_GET["rrr"] : 0);
|
| 8 |
* @param array $params
|
| 9 |
*/
|
| 10 |
public function display( $params ) {
|
| 11 |
+
if (isset($_GET['action']) && esc_html($_GET['action']) == 'formmakerwdcaptcha' . WDFM()->plugin_postfix) {
|
| 12 |
$i = (isset($_GET["i"]) ? esc_html($_GET["i"]) : '');
|
| 13 |
$r2 = (isset($_GET["r2"]) ? (int) $_GET["r2"] : 0);
|
| 14 |
$rrr = (isset($_GET["rrr"]) ? (int) $_GET["rrr"] : 0);
|
admin/views/FMMathCaptcha.php
CHANGED
|
@@ -8,7 +8,7 @@ class FMViewFormmakerwdmathcaptcha {
|
|
| 8 |
* Display.
|
| 9 |
*/
|
| 10 |
public function display() {
|
| 11 |
-
if ( isset($_GET['action']) && esc_html($_GET['action']) == 'formmakerwdmathcaptcha' ) {
|
| 12 |
$i = (isset($_GET["i"]) ? esc_html($_GET["i"]) : '');
|
| 13 |
$r2 = (isset($_GET["r2"]) ? (int) $_GET["r2"] : 0);
|
| 14 |
$rrr = (isset($_GET["rrr"]) ? (int) $_GET["rrr"] : 0);
|
| 8 |
* Display.
|
| 9 |
*/
|
| 10 |
public function display() {
|
| 11 |
+
if ( isset($_GET['action']) && esc_html($_GET['action']) == 'formmakerwdmathcaptcha' . WDFM()->plugin_postfix ) {
|
| 12 |
$i = (isset($_GET["i"]) ? esc_html($_GET["i"]) : '');
|
| 13 |
$r2 = (isset($_GET["r2"]) ? (int) $_GET["r2"] : 0);
|
| 14 |
$rrr = (isset($_GET["rrr"]) ? (int) $_GET["rrr"] : 0);
|
admin/views/FMSelectDataFromDb.php
CHANGED
|
@@ -29,7 +29,7 @@ class FMViewSelect_data_from_db {
|
|
| 29 |
jQuery.ajax({
|
| 30 |
type: "POST",
|
| 31 |
url: "<?php echo add_query_arg(array(
|
| 32 |
-
'action' => 'select_data_from_db',
|
| 33 |
'form_id' => $form_id,
|
| 34 |
'field_type' => $field_type,
|
| 35 |
'task' => 'db_tables',
|
|
@@ -574,7 +574,7 @@ class FMViewSelect_data_from_db {
|
|
| 574 |
jQuery.ajax({
|
| 575 |
type: "POST",
|
| 576 |
url: "<?php echo add_query_arg(array(
|
| 577 |
-
'action' => 'select_data_from_db',
|
| 578 |
'form_id' => $form_id,
|
| 579 |
'field_type' => $field_type,
|
| 580 |
'task' => 'db_table_struct_select',
|
| 29 |
jQuery.ajax({
|
| 30 |
type: "POST",
|
| 31 |
url: "<?php echo add_query_arg(array(
|
| 32 |
+
'action' => 'select_data_from_db' . WDFM()->plugin_postfix,
|
| 33 |
'form_id' => $form_id,
|
| 34 |
'field_type' => $field_type,
|
| 35 |
'task' => 'db_tables',
|
| 574 |
jQuery.ajax({
|
| 575 |
type: "POST",
|
| 576 |
url: "<?php echo add_query_arg(array(
|
| 577 |
+
'action' => 'select_data_from_db' . WDFM()->plugin_postfix,
|
| 578 |
'form_id' => $form_id,
|
| 579 |
'field_type' => $field_type,
|
| 580 |
'task' => 'db_table_struct_select',
|
admin/views/FMShortocde.php
CHANGED
|
@@ -8,15 +8,15 @@ class FMViewFMShortocde {
|
|
| 8 |
* FMViewFMShortocde constructor.
|
| 9 |
*/
|
| 10 |
public function __construct() {
|
| 11 |
-
wp_print_scripts('fm-shortcode');
|
| 12 |
|
| 13 |
wp_print_styles('wp-admin');
|
| 14 |
wp_print_styles('buttons');
|
| 15 |
|
| 16 |
wp_print_styles('fm-tables');
|
|
|
|
| 17 |
|
| 18 |
-
if (WDFM()->
|
| 19 |
-
wp_print_scripts('jquery-ui-datepicker');
|
| 20 |
wp_print_styles('fm-jquery-ui');
|
| 21 |
wp_print_styles('fm-style');
|
| 22 |
}
|
|
@@ -67,7 +67,7 @@ class FMViewFMShortocde {
|
|
| 67 |
?>
|
| 68 |
<body class="wp-core-ui" data-width="500" data-height="570">
|
| 69 |
<?php
|
| 70 |
-
if (
|
| 71 |
?>
|
| 72 |
<div class="wd-fixed-message">
|
| 73 |
<?php echo WDW_FM_Library::message_id(0, __('Front end submissions are disabled in free version.', WDFM()->prefix), 'error'); ?>
|
| 8 |
* FMViewFMShortocde constructor.
|
| 9 |
*/
|
| 10 |
public function __construct() {
|
| 11 |
+
wp_print_scripts('fm-shortcode' . WDFM()->menu_postfix);
|
| 12 |
|
| 13 |
wp_print_styles('wp-admin');
|
| 14 |
wp_print_styles('buttons');
|
| 15 |
|
| 16 |
wp_print_styles('fm-tables');
|
| 17 |
+
wp_print_scripts('jquery-ui-datepicker');
|
| 18 |
|
| 19 |
+
if (!WDFM()->is_free) {
|
|
|
|
| 20 |
wp_print_styles('fm-jquery-ui');
|
| 21 |
wp_print_styles('fm-style');
|
| 22 |
}
|
| 67 |
?>
|
| 68 |
<body class="wp-core-ui" data-width="500" data-height="570">
|
| 69 |
<?php
|
| 70 |
+
if ( WDFM()->is_free ) {
|
| 71 |
?>
|
| 72 |
<div class="wd-fixed-message">
|
| 73 |
<?php echo WDW_FM_Library::message_id(0, __('Front end submissions are disabled in free version.', WDFM()->prefix), 'error'); ?>
|
admin/views/FMSqlMapping.php
CHANGED
|
@@ -188,7 +188,7 @@ class FMViewFormMakerSQLMapping {
|
|
| 188 |
jQuery.ajax({
|
| 189 |
type: "POST",
|
| 190 |
url: "<?php echo add_query_arg(array(
|
| 191 |
-
'action' => 'FormMakerSQLMapping',
|
| 192 |
'id' => $id,
|
| 193 |
'form_id' => $form_id,
|
| 194 |
'task' => 'update_query',
|
|
@@ -814,7 +814,7 @@ class FMViewFormMakerSQLMapping {
|
|
| 814 |
jQuery.ajax({
|
| 815 |
type: "POST",
|
| 816 |
url: "<?php echo add_query_arg(array(
|
| 817 |
-
'action' => 'FormMakerSQLMapping',
|
| 818 |
'id' => 0,
|
| 819 |
'form_id' => $form_id,
|
| 820 |
'task' => 'db_tables',
|
|
@@ -1035,7 +1035,7 @@ class FMViewFormMakerSQLMapping {
|
|
| 1035 |
jQuery.ajax({
|
| 1036 |
type: "POST",
|
| 1037 |
url: "<?php echo add_query_arg(array(
|
| 1038 |
-
'action' => 'FormMakerSQLMapping',
|
| 1039 |
'id' => 0,
|
| 1040 |
'form_id' => $form_id,
|
| 1041 |
'task' => 'db_table_struct',
|
|
@@ -1207,7 +1207,7 @@ class FMViewFormMakerSQLMapping {
|
|
| 1207 |
jQuery.ajax({
|
| 1208 |
type: "POST",
|
| 1209 |
url: "<?php echo add_query_arg(array(
|
| 1210 |
-
'action' => 'FormMakerSQLMapping',
|
| 1211 |
'id' => 0,
|
| 1212 |
'form_id' => $form_id,
|
| 1213 |
'task' => 'save_query',
|
| 188 |
jQuery.ajax({
|
| 189 |
type: "POST",
|
| 190 |
url: "<?php echo add_query_arg(array(
|
| 191 |
+
'action' => 'FormMakerSQLMapping' . WDFM()->plugin_postfix,
|
| 192 |
'id' => $id,
|
| 193 |
'form_id' => $form_id,
|
| 194 |
'task' => 'update_query',
|
| 814 |
jQuery.ajax({
|
| 815 |
type: "POST",
|
| 816 |
url: "<?php echo add_query_arg(array(
|
| 817 |
+
'action' => 'FormMakerSQLMapping' . WDFM()->plugin_postfix,
|
| 818 |
'id' => 0,
|
| 819 |
'form_id' => $form_id,
|
| 820 |
'task' => 'db_tables',
|
| 1035 |
jQuery.ajax({
|
| 1036 |
type: "POST",
|
| 1037 |
url: "<?php echo add_query_arg(array(
|
| 1038 |
+
'action' => 'FormMakerSQLMapping' . WDFM()->plugin_postfix,
|
| 1039 |
'id' => 0,
|
| 1040 |
'form_id' => $form_id,
|
| 1041 |
'task' => 'db_table_struct',
|
| 1207 |
jQuery.ajax({
|
| 1208 |
type: "POST",
|
| 1209 |
url: "<?php echo add_query_arg(array(
|
| 1210 |
+
'action' => 'FormMakerSQLMapping' . WDFM()->plugin_postfix,
|
| 1211 |
'id' => 0,
|
| 1212 |
'form_id' => $form_id,
|
| 1213 |
'task' => 'save_query',
|
admin/views/Licensing_fm.php
CHANGED
|
@@ -8,7 +8,7 @@ class FMViewLicensing_fm {
|
|
| 8 |
* FMViewLicensing_fm constructor.
|
| 9 |
*/
|
| 10 |
public function __construct() {
|
| 11 |
-
wp_enqueue_style('fm-license');
|
| 12 |
wp_enqueue_style('fm-style');
|
| 13 |
wp_enqueue_style('fm-tables');
|
| 14 |
wp_enqueue_script('fm-admin');
|
| 8 |
* FMViewLicensing_fm constructor.
|
| 9 |
*/
|
| 10 |
public function __construct() {
|
| 11 |
+
wp_enqueue_style('fm-license' . WDFM()->menu_postfix);
|
| 12 |
wp_enqueue_style('fm-style');
|
| 13 |
wp_enqueue_style('fm-tables');
|
| 14 |
wp_enqueue_script('fm-admin');
|
admin/views/Manage_fm.php
CHANGED
|
@@ -31,7 +31,7 @@ class FMViewManage_fm extends FMAdminView {
|
|
| 31 |
$form_attr = array(
|
| 32 |
'id' => 'manage_form',
|
| 33 |
'class' =>'wd-form',
|
| 34 |
-
'action' => add_query_arg(array('page' => '
|
| 35 |
);
|
| 36 |
echo $this->form(ob_get_clean(), $form_attr);
|
| 37 |
}
|
|
@@ -67,7 +67,9 @@ class FMViewManage_fm extends FMAdminView {
|
|
| 67 |
<div class="tablenav top">
|
| 68 |
<?php
|
| 69 |
echo $this->bulk_actions($actions);
|
| 70 |
-
|
|
|
|
|
|
|
| 71 |
echo $this->pagination($page_url, $total, $items_per_page);
|
| 72 |
?>
|
| 73 |
</div>
|
|
@@ -97,7 +99,6 @@ class FMViewManage_fm extends FMAdminView {
|
|
| 97 |
$duplicate_url = add_query_arg(array('task' => 'duplicate', 'current_id' => $row_data->id), $page_url);
|
| 98 |
$publish_url = add_query_arg(array('task' => ($row_data->published ? 'unpublish' : 'publish'), 'current_id' => $row_data->id), $page_url);
|
| 99 |
$delete_url = add_query_arg(array('task' => 'delete', 'current_id' => $row_data->id), $page_url);
|
| 100 |
-
|
| 101 |
$preview_url = add_query_arg( array('form_id' => $row_data->id), $form_preview_link );
|
| 102 |
?>
|
| 103 |
<tr id="tr_<?php echo $row_data->id; ?>" <?php echo $alternate; ?>>
|
|
@@ -171,7 +172,7 @@ class FMViewManage_fm extends FMAdminView {
|
|
| 171 |
if ($row_data->submission_count != 0) {
|
| 172 |
?>
|
| 173 |
<a title="<?php _e('View sumbissions', WDFM()->prefix); ?>" target="_blank" href="<?php echo add_query_arg(array(
|
| 174 |
-
'page' => '
|
| 175 |
'task' => 'display',
|
| 176 |
'current_id' => $row_data->id,
|
| 177 |
), admin_url('admin.php')); ?>">
|
|
@@ -282,12 +283,12 @@ class FMViewManage_fm extends FMAdminView {
|
|
| 282 |
form_fields_initial = decodeURIComponent(form_fields_initial);
|
| 283 |
|
| 284 |
default_theme = '<?php echo $default_theme; ?>';
|
| 285 |
-
theme_edit_url = '<?php echo add_query_arg( array('page' => '
|
| 286 |
jQuery(document).ready(function () {
|
| 287 |
set_theme();
|
| 288 |
});
|
| 289 |
</script>
|
| 290 |
-
<form class="wrap" id="manage_form" method="post" action="admin.php?page=
|
| 291 |
<?php
|
| 292 |
// Generate message container by message id or directly by message.
|
| 293 |
$message_id = WDW_FM_Library::get('message', 0);
|
|
@@ -359,7 +360,7 @@ class FMViewManage_fm extends FMAdminView {
|
|
| 359 |
?>
|
| 360 |
</optgroup>
|
| 361 |
</select>
|
| 362 |
-
<a id="edit_css" class="pointer" onclick="window.open('<?php echo add_query_arg(array('current_id' => ($row->theme ? $row->theme : $default_theme), WDFM()->nonce => wp_create_nonce(WDFM()->nonce)), admin_url('admin.php?page=
|
| 363 |
<?php _e('Edit', WDFM()->prefix); ?>
|
| 364 |
</a>
|
| 365 |
<br />
|
|
@@ -503,7 +504,8 @@ class FMViewManage_fm extends FMAdminView {
|
|
| 503 |
}
|
| 504 |
|
| 505 |
public function add_fields() {
|
| 506 |
-
$
|
|
|
|
| 507 |
$fields = array(
|
| 508 |
__('BASIC FIELDS', WDFM()->prefix) => array(
|
| 509 |
array('type' => 'text', 'subtype' => 'text', 'title' => __('Single Line Text', WDFM()->prefix)),
|
|
@@ -600,7 +602,7 @@ class FMViewManage_fm extends FMAdminView {
|
|
| 600 |
<?php
|
| 601 |
foreach ($field as $button) {
|
| 602 |
?>
|
| 603 |
-
<button class="<?php echo (
|
| 604 |
<span class="field-type-button wd<?php echo ($button['subtype'] == '' ? $button['type'] : $button['subtype']); ?>"></span>
|
| 605 |
<?php echo $button['title']; ?>
|
| 606 |
</button>
|
|
@@ -838,7 +840,7 @@ $stats_labels = $params['stats_labels'];
|
|
| 838 |
<a id="edit_css" class="options-edit-button" onclick="window.open('<?php echo add_query_arg(array(
|
| 839 |
'current_id' => ($row->theme && $row->theme != '0' ? $row->theme : $default_theme),
|
| 840 |
WDFM()->nonce => wp_create_nonce(WDFM()->nonce)
|
| 841 |
-
), admin_url('admin.php?page=
|
| 842 |
<div id="old_theme_notice" class="error inline" style="display: none;"><p><?php _e('The theme you have selected is outdated. Please choose one from New Themes section.', WDFM()->prefix); ?></p></div>
|
| 843 |
</span>
|
| 844 |
<span class="wd-group">
|
|
@@ -1886,7 +1888,7 @@ $stats_labels = $params['stats_labels'];
|
|
| 1886 |
<div class="wd-group">
|
| 1887 |
<div style="text-align: right; padding-bottom: 20px;">
|
| 1888 |
<button id="add_query" class="wd-button button-primary" onclick="tb_show('', '<?php echo add_query_arg(array(
|
| 1889 |
-
'action' => 'FormMakerSQLMapping',
|
| 1890 |
'id' => 0,
|
| 1891 |
'form_id' => $row->id,
|
| 1892 |
'width' => '1000',
|
|
@@ -1906,7 +1908,7 @@ $stats_labels = $params['stats_labels'];
|
|
| 1906 |
for ( $i = 0, $n = count($queries); $i < $n; $i++ ) {
|
| 1907 |
$query = $queries[$i];
|
| 1908 |
$link = add_query_arg(array(
|
| 1909 |
-
'action' => 'FormMakerSQLMapping',
|
| 1910 |
'id' => $query->id,
|
| 1911 |
'form_id' => $row->id,
|
| 1912 |
'width' => '1000',
|
|
@@ -1960,7 +1962,7 @@ $stats_labels = $params['stats_labels'];
|
|
| 1960 |
<script>
|
| 1961 |
default_theme = '<?php echo $default_theme; ?>';
|
| 1962 |
payment_method = '<?php echo $payment_method; ?>';
|
| 1963 |
-
theme_edit_url = '<?php echo add_query_arg( array('page' => '
|
| 1964 |
|
| 1965 |
jQuery(document).ready( function () {
|
| 1966 |
set_theme();
|
| 31 |
$form_attr = array(
|
| 32 |
'id' => 'manage_form',
|
| 33 |
'class' =>'wd-form',
|
| 34 |
+
'action' => add_query_arg(array('page' => 'manage' . WDFM()->menu_postfix), 'admin.php'),
|
| 35 |
);
|
| 36 |
echo $this->form(ob_get_clean(), $form_attr);
|
| 37 |
}
|
| 67 |
<div class="tablenav top">
|
| 68 |
<?php
|
| 69 |
echo $this->bulk_actions($actions);
|
| 70 |
+
if (WDFM()->is_free != 2) {
|
| 71 |
+
echo $this->exp_imp_buttons();
|
| 72 |
+
}
|
| 73 |
echo $this->pagination($page_url, $total, $items_per_page);
|
| 74 |
?>
|
| 75 |
</div>
|
| 99 |
$duplicate_url = add_query_arg(array('task' => 'duplicate', 'current_id' => $row_data->id), $page_url);
|
| 100 |
$publish_url = add_query_arg(array('task' => ($row_data->published ? 'unpublish' : 'publish'), 'current_id' => $row_data->id), $page_url);
|
| 101 |
$delete_url = add_query_arg(array('task' => 'delete', 'current_id' => $row_data->id), $page_url);
|
|
|
|
| 102 |
$preview_url = add_query_arg( array('form_id' => $row_data->id), $form_preview_link );
|
| 103 |
?>
|
| 104 |
<tr id="tr_<?php echo $row_data->id; ?>" <?php echo $alternate; ?>>
|
| 172 |
if ($row_data->submission_count != 0) {
|
| 173 |
?>
|
| 174 |
<a title="<?php _e('View sumbissions', WDFM()->prefix); ?>" target="_blank" href="<?php echo add_query_arg(array(
|
| 175 |
+
'page' => 'submissions' . WDFM()->menu_postfix,
|
| 176 |
'task' => 'display',
|
| 177 |
'current_id' => $row_data->id,
|
| 178 |
), admin_url('admin.php')); ?>">
|
| 283 |
form_fields_initial = decodeURIComponent(form_fields_initial);
|
| 284 |
|
| 285 |
default_theme = '<?php echo $default_theme; ?>';
|
| 286 |
+
theme_edit_url = '<?php echo add_query_arg( array('page' => 'themes' . WDFM()->menu_postfix, 'task' =>'edit'), $page_url); ?>';
|
| 287 |
jQuery(document).ready(function () {
|
| 288 |
set_theme();
|
| 289 |
});
|
| 290 |
</script>
|
| 291 |
+
<form class="wrap" id="manage_form" method="post" autocomplete="off" action="admin.php?page=manage<?php echo WDFM()->menu_postfix; ?>">
|
| 292 |
<?php
|
| 293 |
// Generate message container by message id or directly by message.
|
| 294 |
$message_id = WDW_FM_Library::get('message', 0);
|
| 360 |
?>
|
| 361 |
</optgroup>
|
| 362 |
</select>
|
| 363 |
+
<a id="edit_css" class="pointer" onclick="window.open('<?php echo add_query_arg(array('current_id' => ($row->theme ? $row->theme : $default_theme), WDFM()->nonce => wp_create_nonce(WDFM()->nonce)), admin_url('admin.php?page=themes' . WDFM()->menu_postfix . '&task=edit')); ?>'); return false;">
|
| 364 |
<?php _e('Edit', WDFM()->prefix); ?>
|
| 365 |
</a>
|
| 366 |
<br />
|
| 504 |
}
|
| 505 |
|
| 506 |
public function add_fields() {
|
| 507 |
+
$pro_fields1 = array('file_upload', 'map', 'paypal');
|
| 508 |
+
$pro_fields2 = array('file_upload', 'paypal', 'checkbox', 'radio', 'survey', 'time_and_date', 'select');
|
| 509 |
$fields = array(
|
| 510 |
__('BASIC FIELDS', WDFM()->prefix) => array(
|
| 511 |
array('type' => 'text', 'subtype' => 'text', 'title' => __('Single Line Text', WDFM()->prefix)),
|
| 602 |
<?php
|
| 603 |
foreach ($field as $button) {
|
| 604 |
?>
|
| 605 |
+
<button class="<?php echo ((WDFM()->is_free == 1 && in_array($button['type'], $pro_fields1)) || (WDFM()->is_free == 2 && in_array($button['type'], $pro_fields2))) ? 'wd-pro-fields ' : ''; ?>wd-button button-secondary" onclick="addRow(event, this, '<?php echo $button['type']; ?>', '<?php echo $button['subtype']; ?>'); return false;" data-type="type_<?php echo $button['subtype'] ? $button['subtype'] : $button['type']; ?>">
|
| 606 |
<span class="field-type-button wd<?php echo ($button['subtype'] == '' ? $button['type'] : $button['subtype']); ?>"></span>
|
| 607 |
<?php echo $button['title']; ?>
|
| 608 |
</button>
|
| 840 |
<a id="edit_css" class="options-edit-button" onclick="window.open('<?php echo add_query_arg(array(
|
| 841 |
'current_id' => ($row->theme && $row->theme != '0' ? $row->theme : $default_theme),
|
| 842 |
WDFM()->nonce => wp_create_nonce(WDFM()->nonce)
|
| 843 |
+
), admin_url('admin.php?page=themes' . WDFM()->menu_postfix . '&task=edit')); ?>'); return false;"><?php _e('Edit', WDFM()->prefix); ?></a>
|
| 844 |
<div id="old_theme_notice" class="error inline" style="display: none;"><p><?php _e('The theme you have selected is outdated. Please choose one from New Themes section.', WDFM()->prefix); ?></p></div>
|
| 845 |
</span>
|
| 846 |
<span class="wd-group">
|
| 1888 |
<div class="wd-group">
|
| 1889 |
<div style="text-align: right; padding-bottom: 20px;">
|
| 1890 |
<button id="add_query" class="wd-button button-primary" onclick="tb_show('', '<?php echo add_query_arg(array(
|
| 1891 |
+
'action' => 'FormMakerSQLMapping' . WDFM()->plugin_postfix,
|
| 1892 |
'id' => 0,
|
| 1893 |
'form_id' => $row->id,
|
| 1894 |
'width' => '1000',
|
| 1908 |
for ( $i = 0, $n = count($queries); $i < $n; $i++ ) {
|
| 1909 |
$query = $queries[$i];
|
| 1910 |
$link = add_query_arg(array(
|
| 1911 |
+
'action' => 'FormMakerSQLMapping' . WDFM()->plugin_postfix,
|
| 1912 |
'id' => $query->id,
|
| 1913 |
'form_id' => $row->id,
|
| 1914 |
'width' => '1000',
|
| 1962 |
<script>
|
| 1963 |
default_theme = '<?php echo $default_theme; ?>';
|
| 1964 |
payment_method = '<?php echo $payment_method; ?>';
|
| 1965 |
+
theme_edit_url = '<?php echo add_query_arg( array('page' => 'themes' . WDFM()->menu_postfix, 'task' =>'edit'), $page_url); ?>';
|
| 1966 |
|
| 1967 |
jQuery(document).ready( function () {
|
| 1968 |
set_theme();
|
admin/views/Options_fm.php
CHANGED
|
@@ -37,7 +37,7 @@ class FMViewOptions_fm extends FMAdminView {
|
|
| 37 |
// Pass the content to form.
|
| 38 |
$form_attr = array(
|
| 39 |
'id' => 'options_form',
|
| 40 |
-
'action' => add_query_arg(array('page' => '
|
| 41 |
);
|
| 42 |
echo $this->form(ob_get_clean(), $form_attr);
|
| 43 |
}
|
|
@@ -48,6 +48,7 @@ class FMViewOptions_fm extends FMAdminView {
|
|
| 48 |
$csv_delimiter = isset($fm_settings['csv_delimiter']) ? $fm_settings['csv_delimiter'] : ',';
|
| 49 |
$fm_advanced_layout = isset($fm_settings['fm_advanced_layout']) && $fm_settings['fm_advanced_layout'] == '1' ? '1' : '0';
|
| 50 |
$map_key = isset($fm_settings['map_key']) ? $fm_settings['map_key'] : '';
|
|
|
|
| 51 |
?>
|
| 52 |
<div class="wd-table">
|
| 53 |
<div class="wd-table-col wd-table-col-50 wd-table-col-left">
|
|
@@ -108,6 +109,10 @@ class FMViewOptions_fm extends FMAdminView {
|
|
| 108 |
<label class="wd-label-radio" for="fm_advanced_layout-0"><?php _e('No', WDFM()->prefix); ?></label>
|
| 109 |
<p class="description"><?php _e('If you wish to build your form with HTML, instead of using Form Maker’s user-friendly interface, you can enable Advanced Layout. It can be accessed from the form editor.', WDFM()->prefix); ?></p>
|
| 110 |
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
</div>
|
| 112 |
</div>
|
| 113 |
</div>
|
| 37 |
// Pass the content to form.
|
| 38 |
$form_attr = array(
|
| 39 |
'id' => 'options_form',
|
| 40 |
+
'action' => add_query_arg(array('page' => 'options' . WDFM()->menu_postfix), 'admin.php'),
|
| 41 |
);
|
| 42 |
echo $this->form(ob_get_clean(), $form_attr);
|
| 43 |
}
|
| 48 |
$csv_delimiter = isset($fm_settings['csv_delimiter']) ? $fm_settings['csv_delimiter'] : ',';
|
| 49 |
$fm_advanced_layout = isset($fm_settings['fm_advanced_layout']) && $fm_settings['fm_advanced_layout'] == '1' ? '1' : '0';
|
| 50 |
$map_key = isset($fm_settings['map_key']) ? $fm_settings['map_key'] : '';
|
| 51 |
+
$uninstall_href = add_query_arg( array( 'page' => 'uninstall' . WDFM()->menu_postfix), admin_url('admin.php') );
|
| 52 |
?>
|
| 53 |
<div class="wd-table">
|
| 54 |
<div class="wd-table-col wd-table-col-50 wd-table-col-left">
|
| 109 |
<label class="wd-label-radio" for="fm_advanced_layout-0"><?php _e('No', WDFM()->prefix); ?></label>
|
| 110 |
<p class="description"><?php _e('If you wish to build your form with HTML, instead of using Form Maker’s user-friendly interface, you can enable Advanced Layout. It can be accessed from the form editor.', WDFM()->prefix); ?></p>
|
| 111 |
</span>
|
| 112 |
+
<span class="wd-group">
|
| 113 |
+
<label class="wd-label"><?php echo sprintf(__('Uninstall %s', WDFM()->prefix), WDFM()->nicename); ?></label>
|
| 114 |
+
<a class="button" href="<?php echo $uninstall_href ?>"><?php _e('Uninstall', WDFM()->prefix); ?></a>
|
| 115 |
+
</span>
|
| 116 |
</div>
|
| 117 |
</div>
|
| 118 |
</div>
|
admin/views/Submissions_fm.php
CHANGED
|
@@ -52,7 +52,7 @@ class FMViewSubmissions_fm extends FMAdminView {
|
|
| 52 |
<?php echo $this->saelect_form( array('id' => $id, 'forms' => $forms, 'page' => $page, 'page_url' => $page_url) ); ?>
|
| 53 |
</div>
|
| 54 |
<div class="fm-export-tools">
|
| 55 |
-
<?php $blocked_ips_link = add_query_arg(array( 'page' => '
|
| 56 |
<a class="button" href="<?php echo $blocked_ips_link; ?>" target="_blank"><?php echo _e('Blocked IPs', WDFM()->prefix);?></a>
|
| 57 |
</div>
|
| 58 |
</div>
|
|
@@ -171,7 +171,7 @@ class FMViewSubmissions_fm extends FMAdminView {
|
|
| 171 |
</div>
|
| 172 |
</div>
|
| 173 |
<div class="fm-export-tools">
|
| 174 |
-
<?php $blocked_ips_link = add_query_arg(array( 'page' => '
|
| 175 |
<a class="button" href="<?php echo $blocked_ips_link; ?>" target="_blank"><?php echo _e('Blocked IPs', WDFM()->prefix);?></a>
|
| 176 |
<button class="button" onclick="export_submissions('csv', 0); return false;"><?php echo _e('Export to CSV', WDFM()->prefix);?></button>
|
| 177 |
<button class="button" onclick="export_submissions('xml', 0); return false;"><?php echo _e('Export to XML', WDFM()->prefix);?></button>
|
|
@@ -452,7 +452,7 @@ class FMViewSubmissions_fm extends FMAdminView {
|
|
| 452 |
<td class="column-primary col-submit-date" data-colname="<?php _e('Submit date', WDFM()->prefix);?>" <?php echo $style_date; ?>>
|
| 453 |
<?php
|
| 454 |
$view_url = add_query_arg( array(
|
| 455 |
-
'action' => 'FormMakerSubmits',
|
| 456 |
'group_id' => $data->group_id,
|
| 457 |
'form_id' => $form_id,
|
| 458 |
'width' => '600',
|
|
@@ -466,7 +466,7 @@ class FMViewSubmissions_fm extends FMAdminView {
|
|
| 466 |
$unblock_url = add_query_arg( array( 'task' => 'unblock_ip', 'current_id' => $data->group_id, 'form_id' => $form_id ), $page_url );
|
| 467 |
|
| 468 |
$ip_infoin_popup_url = add_query_arg( array(
|
| 469 |
-
'action' => 'FormMakerIpinfoinPopup',
|
| 470 |
'data_ip' => $data->ip,
|
| 471 |
'width' => '450',
|
| 472 |
'height' => '300',
|
|
@@ -521,7 +521,7 @@ class FMViewSubmissions_fm extends FMAdminView {
|
|
| 521 |
?>
|
| 522 |
<td class="table_large_col <?php echo $sorted_labels_id[$h]; ?>_fc sub-align" id="<?php echo $sorted_labels_id[$h]; ?>_fc" <?php echo $styleStr; ?> data-colname="<?php _e('Show on Map', WDFM()->prefix);?>">
|
| 523 |
<a class="thickbox-preview" href="<?php echo add_query_arg(array(
|
| 524 |
-
'action' => 'FormMakerMapEditinPopup',
|
| 525 |
'long' => $map_params[0],
|
| 526 |
'lat' => $map_params[1],
|
| 527 |
'width' => '620',
|
|
@@ -561,7 +561,7 @@ class FMViewSubmissions_fm extends FMAdminView {
|
|
| 561 |
?>
|
| 562 |
<td class="table_large_col <?php echo $sorted_labels_id[$h]; ?>_fc sub-align" id="<?php echo $sorted_labels_id[$h]; ?>_fc" <?php echo $styleStr; ?> data-colname="<?php _e('Matrix', WDFM()->prefix);?>">
|
| 563 |
<a class="thickbox-preview" href="<?php echo add_query_arg(array(
|
| 564 |
-
'action' => 'show_matrix',
|
| 565 |
'matrix_params' => str_replace('#', '%23', urlencode($temp[$g]->element_value)),
|
| 566 |
'width' => '620',
|
| 567 |
'height' => '550',
|
|
@@ -644,7 +644,7 @@ class FMViewSubmissions_fm extends FMAdminView {
|
|
| 644 |
?>
|
| 645 |
<td class="payment_info_fc sub-align" id="payment_info_fc" <?php echo $style_payment_info; ?> data-colname="<?php _e('Paypal information', WDFM()->prefix); ?>">
|
| 646 |
<a class="thickbox-preview" href="<?php echo add_query_arg(array(
|
| 647 |
-
'action' => 'paypal_info',
|
| 648 |
'id' => $i,
|
| 649 |
'width' => '600',
|
| 650 |
'height' => '500',
|
|
@@ -719,7 +719,7 @@ class FMViewSubmissions_fm extends FMAdminView {
|
|
| 719 |
<div id="div_stats"></div>
|
| 720 |
</div>
|
| 721 |
<script>
|
| 722 |
-
show_stats_url = "<?php echo add_query_arg( array('action' => 'get_stats', 'task' => 'show_stats', 'current_id' => $form_id ), $page_url); ?>";
|
| 723 |
</script>
|
| 724 |
<?php
|
| 725 |
}
|
|
@@ -1073,7 +1073,7 @@ class FMViewSubmissions_fm extends FMAdminView {
|
|
| 1073 |
$message = WDW_FM_Library::get('msg', '');
|
| 1074 |
echo WDW_FM_Library::message_id($message_id, $message);
|
| 1075 |
?>
|
| 1076 |
-
<form action="admin.php?page=
|
| 1077 |
<div class="wd-page-title wd-header">
|
| 1078 |
<h1 class="wp-heading-inline"><?php _e('Edit Submission', WDFM()->prefix); ?></h1>
|
| 1079 |
</div>
|
| 52 |
<?php echo $this->saelect_form( array('id' => $id, 'forms' => $forms, 'page' => $page, 'page_url' => $page_url) ); ?>
|
| 53 |
</div>
|
| 54 |
<div class="fm-export-tools">
|
| 55 |
+
<?php $blocked_ips_link = add_query_arg(array( 'page' => 'blocked_ips' . WDFM()->menu_postfix ), $page_url); ?>
|
| 56 |
<a class="button" href="<?php echo $blocked_ips_link; ?>" target="_blank"><?php echo _e('Blocked IPs', WDFM()->prefix);?></a>
|
| 57 |
</div>
|
| 58 |
</div>
|
| 171 |
</div>
|
| 172 |
</div>
|
| 173 |
<div class="fm-export-tools">
|
| 174 |
+
<?php $blocked_ips_link = add_query_arg(array( 'page' => 'blocked_ips' . WDFM()->menu_postfix ), $page_url); ?>
|
| 175 |
<a class="button" href="<?php echo $blocked_ips_link; ?>" target="_blank"><?php echo _e('Blocked IPs', WDFM()->prefix);?></a>
|
| 176 |
<button class="button" onclick="export_submissions('csv', 0); return false;"><?php echo _e('Export to CSV', WDFM()->prefix);?></button>
|
| 177 |
<button class="button" onclick="export_submissions('xml', 0); return false;"><?php echo _e('Export to XML', WDFM()->prefix);?></button>
|
| 452 |
<td class="column-primary col-submit-date" data-colname="<?php _e('Submit date', WDFM()->prefix);?>" <?php echo $style_date; ?>>
|
| 453 |
<?php
|
| 454 |
$view_url = add_query_arg( array(
|
| 455 |
+
'action' => 'FormMakerSubmits' . WDFM()->plugin_postfix,
|
| 456 |
'group_id' => $data->group_id,
|
| 457 |
'form_id' => $form_id,
|
| 458 |
'width' => '600',
|
| 466 |
$unblock_url = add_query_arg( array( 'task' => 'unblock_ip', 'current_id' => $data->group_id, 'form_id' => $form_id ), $page_url );
|
| 467 |
|
| 468 |
$ip_infoin_popup_url = add_query_arg( array(
|
| 469 |
+
'action' => 'FormMakerIpinfoinPopup' . WDFM()->plugin_postfix,
|
| 470 |
'data_ip' => $data->ip,
|
| 471 |
'width' => '450',
|
| 472 |
'height' => '300',
|
| 521 |
?>
|
| 522 |
<td class="table_large_col <?php echo $sorted_labels_id[$h]; ?>_fc sub-align" id="<?php echo $sorted_labels_id[$h]; ?>_fc" <?php echo $styleStr; ?> data-colname="<?php _e('Show on Map', WDFM()->prefix);?>">
|
| 523 |
<a class="thickbox-preview" href="<?php echo add_query_arg(array(
|
| 524 |
+
'action' => 'FormMakerMapEditinPopup' . WDFM()->plugin_postfix,
|
| 525 |
'long' => $map_params[0],
|
| 526 |
'lat' => $map_params[1],
|
| 527 |
'width' => '620',
|
| 561 |
?>
|
| 562 |
<td class="table_large_col <?php echo $sorted_labels_id[$h]; ?>_fc sub-align" id="<?php echo $sorted_labels_id[$h]; ?>_fc" <?php echo $styleStr; ?> data-colname="<?php _e('Matrix', WDFM()->prefix);?>">
|
| 563 |
<a class="thickbox-preview" href="<?php echo add_query_arg(array(
|
| 564 |
+
'action' => 'show_matrix' . WDFM()->plugin_postfix,
|
| 565 |
'matrix_params' => str_replace('#', '%23', urlencode($temp[$g]->element_value)),
|
| 566 |
'width' => '620',
|
| 567 |
'height' => '550',
|
| 644 |
?>
|
| 645 |
<td class="payment_info_fc sub-align" id="payment_info_fc" <?php echo $style_payment_info; ?> data-colname="<?php _e('Paypal information', WDFM()->prefix); ?>">
|
| 646 |
<a class="thickbox-preview" href="<?php echo add_query_arg(array(
|
| 647 |
+
'action' => 'paypal_info' . WDFM()->plugin_postfix,
|
| 648 |
'id' => $i,
|
| 649 |
'width' => '600',
|
| 650 |
'height' => '500',
|
| 719 |
<div id="div_stats"></div>
|
| 720 |
</div>
|
| 721 |
<script>
|
| 722 |
+
show_stats_url = "<?php echo add_query_arg( array('action' => 'get_stats' . WDFM()->plugin_postfix, 'task' => 'show_stats', 'current_id' => $form_id ), $page_url); ?>";
|
| 723 |
</script>
|
| 724 |
<?php
|
| 725 |
}
|
| 1073 |
$message = WDW_FM_Library::get('msg', '');
|
| 1074 |
echo WDW_FM_Library::message_id($message_id, $message);
|
| 1075 |
?>
|
| 1076 |
+
<form action="admin.php?page=submissions<?php echo WDFM()->menu_postfix; ?>" method="post" id="adminForm" name="adminForm" class="form_maker_submissions_edit wd-form">
|
| 1077 |
<div class="wd-page-title wd-header">
|
| 1078 |
<h1 class="wp-heading-inline"><?php _e('Edit Submission', WDFM()->prefix); ?></h1>
|
| 1079 |
</div>
|
admin/views/Themes_fm.php
CHANGED
|
@@ -23,7 +23,7 @@ class FMViewThemes_fm extends FMAdminView {
|
|
| 23 |
'id' => WDFM()->prefix . '_themes',
|
| 24 |
'name' => WDFM()->prefix . '_themes',
|
| 25 |
'class' => WDFM()->prefix . '_themes wd-form',
|
| 26 |
-
'action' => add_query_arg(array( 'page' => '
|
| 27 |
);
|
| 28 |
echo $this->form(ob_get_clean(), $form_attr);
|
| 29 |
}
|
|
@@ -162,7 +162,7 @@ class FMViewThemes_fm extends FMAdminView {
|
|
| 162 |
'current_id' => $params['id'],
|
| 163 |
'name' => WDFM()->prefix . '_themes',
|
| 164 |
'class' => WDFM()->prefix . '_themes wd-form',
|
| 165 |
-
'action' => add_query_arg(array( 'page' => '
|
| 166 |
);
|
| 167 |
echo $this->form(ob_get_clean(), $form_attr);
|
| 168 |
}
|
| 23 |
'id' => WDFM()->prefix . '_themes',
|
| 24 |
'name' => WDFM()->prefix . '_themes',
|
| 25 |
'class' => WDFM()->prefix . '_themes wd-form',
|
| 26 |
+
'action' => add_query_arg(array( 'page' => 'themes' . WDFM()->menu_postfix ), 'admin.php'),
|
| 27 |
);
|
| 28 |
echo $this->form(ob_get_clean(), $form_attr);
|
| 29 |
}
|
| 162 |
'current_id' => $params['id'],
|
| 163 |
'name' => WDFM()->prefix . '_themes',
|
| 164 |
'class' => WDFM()->prefix . '_themes wd-form',
|
| 165 |
+
'action' => add_query_arg(array( 'page' => 'themes' . WDFM()->menu_postfix ), 'admin.php'),
|
| 166 |
);
|
| 167 |
echo $this->form(ob_get_clean(), $form_attr);
|
| 168 |
}
|
admin/views/Uninstall_fm.php
CHANGED
|
@@ -7,7 +7,7 @@ class FMViewUninstall_fm {
|
|
| 7 |
public function __construct() {
|
| 8 |
wp_enqueue_style('fm-tables');
|
| 9 |
wp_enqueue_script('fm-admin');
|
| 10 |
-
if (
|
| 11 |
wp_enqueue_style('fm-deactivate-css');
|
| 12 |
wp_enqueue_script('fm-deactivate-popup');
|
| 13 |
}
|
|
@@ -18,7 +18,7 @@ class FMViewUninstall_fm {
|
|
| 18 |
$prefix = $wpdb->prefix;
|
| 19 |
$addons = $params['addons'];
|
| 20 |
?>
|
| 21 |
-
<form method="post" action="admin.php?page=
|
| 22 |
<?php wp_nonce_field(WDFM()->nonce, WDFM()->nonce); ?>
|
| 23 |
<div class="wrap">
|
| 24 |
<div class="uninstall-banner">
|
| 7 |
public function __construct() {
|
| 8 |
wp_enqueue_style('fm-tables');
|
| 9 |
wp_enqueue_script('fm-admin');
|
| 10 |
+
if (WDFM()->is_free) {
|
| 11 |
wp_enqueue_style('fm-deactivate-css');
|
| 12 |
wp_enqueue_script('fm-deactivate-popup');
|
| 13 |
}
|
| 18 |
$prefix = $wpdb->prefix;
|
| 19 |
$addons = $params['addons'];
|
| 20 |
?>
|
| 21 |
+
<form method="post" action="admin.php?page=uninstall<?php echo WDFM()->menu_postfix; ?>" style="width:95%;">
|
| 22 |
<?php wp_nonce_field(WDFM()->nonce, WDFM()->nonce); ?>
|
| 23 |
<div class="wrap">
|
| 24 |
<div class="uninstall-banner">
|
admin/views/view.php
CHANGED
|
@@ -277,6 +277,8 @@ class FMAdminView {
|
|
| 277 |
}
|
| 278 |
|
| 279 |
function import_popup_div() {
|
| 280 |
-
|
|
|
|
|
|
|
| 281 |
}
|
| 282 |
}
|
| 277 |
}
|
| 278 |
|
| 279 |
function import_popup_div() {
|
| 280 |
+
if (WDFM()->is_free != 2) {
|
| 281 |
+
do_action('fm_popup_import_content');
|
| 282 |
+
}
|
| 283 |
}
|
| 284 |
}
|
css/form_maker_frontend.css
CHANGED
|
@@ -200,6 +200,14 @@ div[type="type_captcha"] .wdform-element-section * {
|
|
| 200 |
.fm-form .wdform_column:first-child:nth-last-child(3) ~ .wdform_column {
|
| 201 |
width: 33.33%;
|
| 202 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 203 |
|
| 204 |
.fm-form .wdform-field:not([type="type_hidden"]) {
|
| 205 |
padding: 10px 10px;
|
| 200 |
.fm-form .wdform_column:first-child:nth-last-child(3) ~ .wdform_column {
|
| 201 |
width: 33.33%;
|
| 202 |
}
|
| 203 |
+
.fm-form .wdform_column:first-child:nth-last-child(4),
|
| 204 |
+
.fm-form .wdform_column:first-child:nth-last-child(4) ~ .wdform_column {
|
| 205 |
+
width: 25%;
|
| 206 |
+
}
|
| 207 |
+
.fm-form .wdform_column:first-child:nth-last-child(5),
|
| 208 |
+
.fm-form .wdform_column:first-child:nth-last-child(5) ~ .wdform_column {
|
| 209 |
+
width: 20%;
|
| 210 |
+
}
|
| 211 |
|
| 212 |
.fm-form .wdform-field:not([type="type_hidden"]) {
|
| 213 |
padding: 10px 10px;
|
css/form_maker_tables.css
CHANGED
|
@@ -193,7 +193,7 @@
|
|
| 193 |
height: auto;
|
| 194 |
padding: 5px;
|
| 195 |
right: 0;
|
| 196 |
-
width:
|
| 197 |
position: absolute;
|
| 198 |
bottom: 32px;
|
| 199 |
}
|
|
@@ -225,7 +225,7 @@
|
|
| 225 |
animation-fill-mode: both;
|
| 226 |
color: #0085ba;
|
| 227 |
position: absolute;
|
| 228 |
-
top:
|
| 229 |
right: 50px;
|
| 230 |
min-width: 50px;
|
| 231 |
height: auto;
|
|
@@ -2406,4 +2406,45 @@ button:focus {
|
|
| 2406 |
background-position-x: calc(100% - 8px) !important;
|
| 2407 |
background-position-y: 50% !important;
|
| 2408 |
background-size: 12px !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2409 |
}
|
| 193 |
height: auto;
|
| 194 |
padding: 5px;
|
| 195 |
right: 0;
|
| 196 |
+
width: 250px;
|
| 197 |
position: absolute;
|
| 198 |
bottom: 32px;
|
| 199 |
}
|
| 225 |
animation-fill-mode: both;
|
| 226 |
color: #0085ba;
|
| 227 |
position: absolute;
|
| 228 |
+
top: 15px;
|
| 229 |
right: 50px;
|
| 230 |
min-width: 50px;
|
| 231 |
height: auto;
|
| 2406 |
background-position-x: calc(100% - 8px) !important;
|
| 2407 |
background-position-y: 50% !important;
|
| 2408 |
background-size: 12px !important;
|
| 2409 |
+
}
|
| 2410 |
+
.fm-description {
|
| 2411 |
+
font-size: 12px;
|
| 2412 |
+
margin-left: 20px;
|
| 2413 |
+
}
|
| 2414 |
+
|
| 2415 |
+
.wdform_field {
|
| 2416 |
+
width: 100%;
|
| 2417 |
+
display: block !important;
|
| 2418 |
+
}
|
| 2419 |
+
|
| 2420 |
+
.wdform_field:not([type="type_grading"]) input[type="text"],
|
| 2421 |
+
.wdform_field input[type="password"],
|
| 2422 |
+
.wdform_field textarea,
|
| 2423 |
+
.wdform_field select {
|
| 2424 |
+
width: 100%;
|
| 2425 |
+
}
|
| 2426 |
+
|
| 2427 |
+
.wdform_field:not([type="type_submit_reset"]):not([type="type_button"]) div[id$='_label_sectionform_id_temp'][style^="display: table-cell"] {
|
| 2428 |
+
width: 30%;
|
| 2429 |
+
display: inline-block !important;
|
| 2430 |
+
vertical-align: top;
|
| 2431 |
+
}
|
| 2432 |
+
|
| 2433 |
+
.wdform_field div[id$='_table_name'],
|
| 2434 |
+
.intl-tel-input {
|
| 2435 |
+
width: 100%;
|
| 2436 |
+
}
|
| 2437 |
+
.wdform_field div[id$='_element_sectionform_id_temp'][style^="display: table-cell"] {
|
| 2438 |
+
width: 70%;
|
| 2439 |
+
display: inline-block !important;
|
| 2440 |
+
}
|
| 2441 |
+
|
| 2442 |
+
.wdform_field[type="type_date_range"] input[id$="_elementform_id_temp0"],
|
| 2443 |
+
.wdform_field[type="type_date_range"] input[id$="_elementform_id_temp1"] {
|
| 2444 |
+
width: 48% !important;
|
| 2445 |
+
}
|
| 2446 |
+
|
| 2447 |
+
.wdform_field[type="type_name"] div[id$='_td_name_input_first'] input,
|
| 2448 |
+
.wdform_field[type="type_name"] div[id$='_td_name_input_last'] input {
|
| 2449 |
+
width: 98%;
|
| 2450 |
}
|
css/license.css
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
| 1 |
div#featurs_tables {
|
| 2 |
display: inline-block;
|
| 3 |
font-size: 13px;
|
| 1 |
+
div#featurs_tables * {
|
| 2 |
+
box-sizing: content-box;
|
| 3 |
+
}
|
| 4 |
div#featurs_tables {
|
| 5 |
display: inline-block;
|
| 6 |
font-size: 13px;
|
css/style.css
CHANGED
|
@@ -176,13 +176,6 @@ textarea[readonly] {
|
|
| 176 |
.element_toolbar img {
|
| 177 |
margin: 2px;
|
| 178 |
}
|
| 179 |
-
|
| 180 |
-
.no_spacing {
|
| 181 |
-
//border-spacing: 0px;
|
| 182 |
-
//float: left;
|
| 183 |
-
//padding-right: 10px !important;
|
| 184 |
-
}
|
| 185 |
-
|
| 186 |
.wdform_arrows_section
|
| 187 |
{
|
| 188 |
padding-left: 10px;
|
|
@@ -191,9 +184,9 @@ textarea[readonly] {
|
|
| 191 |
min-width:77px;
|
| 192 |
}
|
| 193 |
.wdform_arrows {
|
| 194 |
-
background: rgba(
|
| 195 |
-
|
| 196 |
-
|
| 197 |
height: 100%;
|
| 198 |
left: 0;
|
| 199 |
position: absolute;
|
|
@@ -232,7 +225,7 @@ textarea[readonly] {
|
|
| 232 |
}
|
| 233 |
.page_toolbar {
|
| 234 |
cursor: pointer;
|
| 235 |
-
margin:
|
| 236 |
}
|
| 237 |
.page_toolbar.dashicons {
|
| 238 |
font-size: 25px;
|
|
@@ -300,11 +293,14 @@ textarea[readonly] {
|
|
| 300 |
}
|
| 301 |
.wdform_arrows_container {
|
| 302 |
display: inline-flex;
|
| 303 |
-
|
|
|
|
|
|
|
| 304 |
height: 100%;
|
| 305 |
-
justify-content: center;
|
| 306 |
}
|
| 307 |
-
|
|
|
|
|
|
|
| 308 |
#fm_admin_container .wdform_page .wdform_section .wdform_column.ui-sortable:empty:last-child {
|
| 309 |
border: 1px none #e5e5e5 !important;
|
| 310 |
color: #e5e5e5;
|
| 176 |
.element_toolbar img {
|
| 177 |
margin: 2px;
|
| 178 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 179 |
.wdform_arrows_section
|
| 180 |
{
|
| 181 |
padding-left: 10px;
|
| 184 |
min-width:77px;
|
| 185 |
}
|
| 186 |
.wdform_arrows {
|
| 187 |
+
background: rgba(242,242,242, 0.5);
|
| 188 |
+
display: inline-flex;
|
| 189 |
+
flex-direction: column;
|
| 190 |
height: 100%;
|
| 191 |
left: 0;
|
| 192 |
position: absolute;
|
| 225 |
}
|
| 226 |
.page_toolbar {
|
| 227 |
cursor: pointer;
|
| 228 |
+
margin: 0 5px 0 0;
|
| 229 |
}
|
| 230 |
.page_toolbar.dashicons {
|
| 231 |
font-size: 25px;
|
| 293 |
}
|
| 294 |
.wdform_arrows_container {
|
| 295 |
display: inline-flex;
|
| 296 |
+
position: absolute;
|
| 297 |
+
right: 0;
|
| 298 |
+
top: 3px;
|
| 299 |
height: 100%;
|
|
|
|
| 300 |
}
|
| 301 |
+
.wdform_column .wdform_arrows_advanced {
|
| 302 |
+
top: 30px;
|
| 303 |
+
}
|
| 304 |
#fm_admin_container .wdform_page .wdform_section .wdform_column.ui-sortable:empty:last-child {
|
| 305 |
border: 1px none #e5e5e5 !important;
|
| 306 |
color: #e5e5e5;
|
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.
|
| 7 |
* Author: WebDorado Form Builder Team
|
| 8 |
* Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
|
| 9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
|
@@ -49,7 +49,7 @@ final class WDFM {
|
|
| 49 |
|
| 50 |
public $nicename = '';
|
| 51 |
public $nonce = 'nonce_fm';
|
| 52 |
-
public $
|
| 53 |
public $is_demo = false;
|
| 54 |
|
| 55 |
/**
|
|
@@ -89,14 +89,15 @@ final class WDFM {
|
|
| 89 |
$this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
|
| 90 |
$this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
|
| 91 |
$this->main_file = plugin_basename(__FILE__);
|
| 92 |
-
$this->plugin_version = '1.12.
|
| 93 |
-
$this->db_version = '2.12.
|
| 94 |
$this->menu_slug = 'manage_fm';
|
| 95 |
$this->prefix = 'form_maker';
|
| 96 |
$this->css_prefix = 'fm_';
|
| 97 |
$this->js_prefix = 'fm_';
|
| 98 |
$this->nicename = __('Form Maker', $this->prefix);
|
| 99 |
-
$this->menu_postfix = ''
|
|
|
|
| 100 |
}
|
| 101 |
|
| 102 |
/**
|
|
@@ -106,28 +107,28 @@ final class WDFM {
|
|
| 106 |
add_action('init', array($this, 'init'), 9);
|
| 107 |
add_action('admin_menu', array( $this, 'form_maker_options_panel' ) );
|
| 108 |
|
| 109 |
-
add_action('wp_ajax_get_stats', array($this, 'form_maker')); //Show statistics
|
| 110 |
-
add_action('wp_ajax_generete_csv', array($this, 'form_maker_ajax')); // Export csv.
|
| 111 |
-
add_action('wp_ajax_generete_xml', array($this, 'form_maker_ajax')); // Export xml.
|
| 112 |
-
add_action('wp_ajax_formmakerwdcaptcha', array($this, 'form_maker_ajax')); // Generete captcha image and save it code in session.
|
| 113 |
-
add_action('wp_ajax_nopriv_formmakerwdcaptcha', array($this, 'form_maker_ajax')); // Generete captcha image and save it code in session for all users.
|
| 114 |
-
add_action('wp_ajax_formmakerwdmathcaptcha', array($this, 'form_maker_ajax')); // Generete math captcha image and save it code in session.
|
| 115 |
-
add_action('wp_ajax_nopriv_formmakerwdmathcaptcha', array($this, 'form_maker_ajax')); // Generete math captcha image and save it code in session for all users.
|
| 116 |
-
add_action('wp_ajax_product_option', array($this, 'form_maker_ajax')); // Open product options on add paypal field.
|
| 117 |
-
add_action('wp_ajax_FormMakerEditCountryinPopup', array($this, 'form_maker_ajax')); // Open country list.
|
| 118 |
-
add_action('wp_ajax_FormMakerMapEditinPopup', array($this, 'form_maker_ajax')); // Open map in submissions.
|
| 119 |
-
add_action('wp_ajax_FormMakerIpinfoinPopup', array($this, 'form_maker_ajax')); // Open ip in submissions.
|
| 120 |
-
add_action('wp_ajax_show_matrix', array($this, 'form_maker_ajax')); // Edit matrix in submissions.
|
| 121 |
-
add_action('wp_ajax_FormMakerSubmits', array($this, 'form_maker_ajax')); // Open submissions in submissions.
|
| 122 |
|
| 123 |
if ( !$this->is_demo ) {
|
| 124 |
-
add_action('wp_ajax_FormMakerSQLMapping', array($this, 'form_maker_ajax')); // Add/Edit SQLMaping from form options.
|
| 125 |
-
add_action('wp_ajax_select_data_from_db', array( $this, 'form_maker_ajax' )); // select data from db.
|
| 126 |
}
|
| 127 |
|
| 128 |
-
add_action('
|
| 129 |
|
| 130 |
-
if (
|
| 131 |
add_action('wp_ajax_paypal_info', array($this, 'form_maker_ajax')); // Paypal info in submissions page.
|
| 132 |
add_action('wp_ajax_checkpaypal', array($this, 'form_maker_ajax')); // Notify url from Paypal Sandbox.
|
| 133 |
add_action('wp_ajax_nopriv_checkpaypal', array($this, 'form_maker_ajax')); // Notify url from Paypal Sandbox for all users.
|
|
@@ -146,20 +147,22 @@ final class WDFM {
|
|
| 146 |
}
|
| 147 |
|
| 148 |
// Add media button to WP editor.
|
| 149 |
-
add_action('wp_ajax_FMShortocde', array($this, 'form_maker_ajax'));
|
| 150 |
add_filter('media_buttons_context', array($this, 'media_button'));
|
| 151 |
|
| 152 |
add_action('admin_head', array($this, 'form_maker_admin_ajax'));//js variables for admin.
|
| 153 |
|
| 154 |
// Form maker shortcodes.
|
| 155 |
if ( !is_admin() ) {
|
| 156 |
-
add_shortcode('FormPreview', array($this, 'fm_form_preview_shortcode'));
|
| 157 |
-
|
| 158 |
-
|
|
|
|
|
|
|
| 159 |
add_shortcode('contact_form', array($this, 'fm_shortcode'));
|
| 160 |
add_shortcode('wd_contact_form', array($this, 'fm_shortcode'));
|
| 161 |
}
|
| 162 |
-
add_shortcode('email_verification', array($this, 'fm_email_verification_shortcode'));
|
| 163 |
}
|
| 164 |
// Action to display not emedded type forms.
|
| 165 |
if (!is_admin() && !in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php'))) {
|
|
@@ -169,7 +172,7 @@ final class WDFM {
|
|
| 169 |
// Form Maker Widget.
|
| 170 |
if (class_exists('WP_Widget')) {
|
| 171 |
require_once($this->plugin_dir . '/admin/controllers/Widget.php');
|
| 172 |
-
add_action('widgets_init', create_function('', 'return register_widget("FMControllerWidget");'));
|
| 173 |
}
|
| 174 |
|
| 175 |
// Register fmemailverification post type
|
|
@@ -181,7 +184,7 @@ final class WDFM {
|
|
| 181 |
// Form maker activation.
|
| 182 |
register_activation_hook(__FILE__, array($this, 'form_maker_activate'));
|
| 183 |
if ( (!isset($_GET['action']) || $_GET['action'] != 'deactivate')
|
| 184 |
-
&& (!isset($_GET['page']) || $_GET['page'] != '
|
| 185 |
add_action('admin_init', array($this, 'form_maker_activate'));
|
| 186 |
}
|
| 187 |
add_action('admin_notices', array($this, 'fm_topic'), 11);
|
|
@@ -194,11 +197,13 @@ final class WDFM {
|
|
| 194 |
add_filter('set-screen-option', array($this, 'set_option_submissions'), 10, 3);
|
| 195 |
|
| 196 |
// Check add-ons versions.
|
| 197 |
-
|
|
|
|
|
|
|
| 198 |
|
| 199 |
add_action('plugins_loaded', array($this, 'plugins_loaded'));
|
| 200 |
|
| 201 |
-
|
| 202 |
}
|
| 203 |
|
| 204 |
/**
|
|
@@ -216,30 +221,32 @@ final class WDFM {
|
|
| 216 |
// Languages localization.
|
| 217 |
load_plugin_textdomain($this->prefix, FALSE, basename(dirname(__FILE__)) . '/languages');
|
| 218 |
// Initialize add-ons.
|
| 219 |
-
|
|
|
|
|
|
|
| 220 |
}
|
| 221 |
|
| 222 |
/**
|
| 223 |
* Plugin menu.
|
| 224 |
*/
|
| 225 |
public function form_maker_options_panel() {
|
| 226 |
-
$parent_slug =
|
| 227 |
-
if(
|
| 228 |
-
add_menu_page($this->nicename, $this->nicename, 'manage_options', $this->menu_slug, array( $this, 'form_maker' ), $this->plugin_url . '/images/FormMakerLogo-16.png'
|
| 229 |
$parent_slug = $this->menu_slug;
|
| 230 |
}
|
| 231 |
add_submenu_page($parent_slug, __('Forms', $this->prefix), __('Forms', $this->prefix), 'manage_options', $this->menu_slug, array($this, 'form_maker'));
|
| 232 |
-
$submissions_page = add_submenu_page($parent_slug, __('Submissions', $this->prefix), __('Submissions', $this->prefix), 'manage_options', '
|
| 233 |
add_action('load-' . $submissions_page, array($this, 'submissions_per_page'));
|
| 234 |
|
| 235 |
-
add_submenu_page(null, __('Blocked IPs', $this->prefix), __('Blocked IPs', $this->prefix), 'manage_options', '
|
| 236 |
-
add_submenu_page($parent_slug, __('Themes', $this->prefix), __('Themes', $this->prefix), 'manage_options', '
|
| 237 |
-
add_submenu_page($parent_slug, __('Options', $this->prefix), __('Options', $this->prefix), 'manage_options', '
|
| 238 |
-
if (
|
| 239 |
-
add_submenu_page($parent_slug, __('Pro Version', $this->prefix), __('Pro Version', $this->prefix), 'manage_options', '
|
| 240 |
}
|
| 241 |
-
add_submenu_page(
|
| 242 |
-
add_submenu_page($parent_slug, __('Add-ons', $this->prefix), __('Add-ons', $this->prefix), 'manage_options', '
|
| 243 |
}
|
| 244 |
|
| 245 |
/**
|
|
@@ -281,13 +288,14 @@ final class WDFM {
|
|
| 281 |
die('Access Denied');
|
| 282 |
}
|
| 283 |
$page = WDW_FM_Library::get('page');
|
| 284 |
-
if (($page != '') && (($page == '
|
|
|
|
| 285 |
// This ugly span is here to hide admin output while css files are not loaded. Temporary.
|
| 286 |
// todo: Remove span somehow.
|
| 287 |
echo '<div id="fm_loading"></div>';
|
| 288 |
echo '<span id="fm_admin_container" class="fm-form-container" style="display: none;">';
|
| 289 |
-
require_once ($this->plugin_dir . '/admin/controllers/' .
|
| 290 |
-
$controller_class = 'FMController' .
|
| 291 |
$controller = new $controller_class();
|
| 292 |
$controller->execute();
|
| 293 |
echo '</span>';
|
|
@@ -324,7 +332,7 @@ final class WDFM {
|
|
| 324 |
wp_register_style('fm-layout', $this->plugin_url . '/css/form_maker_layout.css', array(), $this->plugin_version);
|
| 325 |
wp_register_style('fm-bootstrap', $this->plugin_url . '/css/fm-bootstrap.css', array(), $this->plugin_version);
|
| 326 |
wp_register_style('fm-colorpicker', $this->plugin_url . '/css/spectrum.css', array(), $this->plugin_version);
|
| 327 |
-
if (
|
| 328 |
wp_register_style('jquery.fancybox', $this->plugin_url . '/js/fancybox/jquery.fancybox.css', array(), '2.1.5');
|
| 329 |
}
|
| 330 |
// Add-ons page
|
|
@@ -372,6 +380,8 @@ final class WDFM {
|
|
| 372 |
'leave_empty' => __('Leave empty to set the width to 100%.', $this->prefix),
|
| 373 |
'is_demo' => $this->is_demo,
|
| 374 |
'important_message' => __('The free version is limited up to 7 fields to add. If you need this functionality, you need to buy the commercial version.', $this->prefix),
|
|
|
|
|
|
|
| 375 |
));
|
| 376 |
|
| 377 |
wp_register_script('fm-codemirror', $this->plugin_url . '/js/layout/codemirror.js', array(), '2.3');
|
|
@@ -396,7 +406,7 @@ final class WDFM {
|
|
| 396 |
'delete_confirmation' => __('Do you want to delete selected items?', $this->prefix),
|
| 397 |
'select_at_least_one_item' => __('You must select at least one item.', $this->prefix),
|
| 398 |
));
|
| 399 |
-
if (
|
| 400 |
wp_register_script('jquery.fancybox.pack', $this->plugin_url . '/js/fancybox/jquery.fancybox.pack.js', array(), '2.1.5');
|
| 401 |
}
|
| 402 |
else {
|
|
@@ -409,7 +419,7 @@ final class WDFM {
|
|
| 409 |
"email" => $admin_data->data->user_email,
|
| 410 |
"plugin_wd_url" => "https://web-dorado.com/products/wordpress-form.html",
|
| 411 |
));
|
| 412 |
-
wp_register_style('fm-license', $this->plugin_url . '/css/license.css', array(), $this->plugin_version);
|
| 413 |
}
|
| 414 |
}
|
| 415 |
|
|
@@ -421,7 +431,7 @@ final class WDFM {
|
|
| 421 |
wp_register_style('fm-style', $this->plugin_url . '/css/style.css', array(), $this->plugin_version);
|
| 422 |
wp_register_style('fm-jquery-ui', $this->plugin_url . '/css/jquery-ui.custom.css', array(), $this->plugin_version);
|
| 423 |
|
| 424 |
-
wp_register_script('fm-shortcode', $this->plugin_url . '/js/shortcode.js', array('jquery'), $this->plugin_version);
|
| 425 |
|
| 426 |
$fm_settings = get_option('fm_settings');
|
| 427 |
$google_map_key = !empty($fm_settings['map_key']) ? '&key=' . $fm_settings['map_key'] : '';
|
|
@@ -429,7 +439,7 @@ final class WDFM {
|
|
| 429 |
wp_register_script('google-maps', 'https://maps.google.com/maps/api/js?v=3.exp' . $google_map_key);
|
| 430 |
wp_register_script('fm-gmap_form', $this->plugin_url . '/js/if_gmap_back_end.js', array(), $this->plugin_version);
|
| 431 |
|
| 432 |
-
wp_localize_script('fm-shortcode', 'form_maker', array(
|
| 433 |
'insert_form' => __('You must select a form', $this->prefix),
|
| 434 |
'update' => __('Update', $this->prefix),
|
| 435 |
));
|
|
@@ -440,7 +450,7 @@ final class WDFM {
|
|
| 440 |
*/
|
| 441 |
public function form_maker_ajax() {
|
| 442 |
$page = WDW_FM_Library::get('action');
|
| 443 |
-
if ( $page != 'formmakerwdcaptcha' && $page != 'formmakerwdmathcaptcha' && $page != 'checkpaypal' ) {
|
| 444 |
if ( function_exists('current_user_can') ) {
|
| 445 |
if ( !current_user_can('manage_options') ) {
|
| 446 |
die('Access Denied');
|
|
@@ -451,12 +461,13 @@ final class WDFM {
|
|
| 451 |
}
|
| 452 |
}
|
| 453 |
if ( $page != '' ) {
|
| 454 |
-
|
| 455 |
-
|
|
|
|
| 456 |
}
|
| 457 |
$this->register_admin_ajax_scripts();
|
| 458 |
-
require_once($this->plugin_dir . '/admin/controllers/' .
|
| 459 |
-
$controller_class = 'FMController' .
|
| 460 |
$controller = new $controller_class();
|
| 461 |
$controller->execute();
|
| 462 |
}
|
|
@@ -555,7 +566,7 @@ final class WDFM {
|
|
| 555 |
$form_id = isset($params['id']) ? (int) $params['id'] : 0;
|
| 556 |
wd_form_maker($form_id, $type);
|
| 557 |
}
|
| 558 |
-
else if (
|
| 559 |
$shortcode_deafults = array(
|
| 560 |
'id' => 0,
|
| 561 |
'startdate' => '',
|
|
@@ -595,7 +606,7 @@ final class WDFM {
|
|
| 595 |
public function register_fmemailverification_cpt() {
|
| 596 |
$args = array(
|
| 597 |
'public' => true,
|
| 598 |
-
|
| 599 |
'show_in_menu' => false,
|
| 600 |
'create_posts' => 'do_not_allow',
|
| 601 |
'capabilities' => array(
|
|
@@ -618,11 +629,11 @@ final class WDFM {
|
|
| 618 |
*/
|
| 619 |
public function register_form_preview_cpt() {
|
| 620 |
$args = array(
|
| 621 |
-
|
| 622 |
-
|
| 623 |
-
|
| 624 |
-
|
| 625 |
-
|
| 626 |
'create_posts' => FALSE,
|
| 627 |
'edit_post' => 'edit_posts',
|
| 628 |
'read_post' => 'edit_posts',
|
|
@@ -630,7 +641,7 @@ final class WDFM {
|
|
| 630 |
)
|
| 631 |
);
|
| 632 |
|
| 633 |
-
register_post_type('form-maker', $args);
|
| 634 |
}
|
| 635 |
|
| 636 |
/**
|
|
@@ -679,7 +690,7 @@ final class WDFM {
|
|
| 679 |
// Register admin styles to use in frontend submissions.
|
| 680 |
wp_register_script('gmap_form_back', $this->plugin_url . '/js/if_gmap_back_end.js', array(), $this->plugin_version);
|
| 681 |
|
| 682 |
-
if (
|
| 683 |
wp_register_script('fm-file-upload', $this->plugin_url . '/js/file-upload.js', array(), $this->plugin_version);
|
| 684 |
wp_register_style('fm-submissions_css', $this->plugin_url . '/css/style_submissions.css', array(), $this->plugin_version);
|
| 685 |
}
|
|
@@ -699,7 +710,7 @@ final class WDFM {
|
|
| 699 |
* Activate plugin.
|
| 700 |
*/
|
| 701 |
public function form_maker_activate() {
|
| 702 |
-
if (
|
| 703 |
deactivate_plugins("contact-form-maker/contact-form-maker.php");
|
| 704 |
delete_transient('fm_update_check');
|
| 705 |
}
|
|
@@ -755,6 +766,7 @@ final class WDFM {
|
|
| 755 |
add_option('fm_settings', array('public_key' => $public_key, 'private_key' => $private_key, 'csv_delimiter' => ',', 'map_key' => ''));
|
| 756 |
}
|
| 757 |
}
|
|
|
|
| 758 |
}
|
| 759 |
|
| 760 |
/**
|
|
@@ -762,6 +774,7 @@ final class WDFM {
|
|
| 762 |
*/
|
| 763 |
public function fm_topic() {
|
| 764 |
$page = isset($_GET['page']) ? $_GET['page'] : '';
|
|
|
|
| 765 |
$task = isset($_REQUEST['task']) ? $_REQUEST['task'] : '';
|
| 766 |
$user_guide_link = 'https://web-dorado.com/wordpress-form-maker/';
|
| 767 |
$support_forum_link = 'https://wordpress.org/support/plugin/form-maker';
|
|
@@ -770,22 +783,22 @@ final class WDFM {
|
|
| 770 |
$support_icon = $this->plugin_url . '/images/support.png';
|
| 771 |
$prefix = $this->prefix;
|
| 772 |
switch ($page) {
|
| 773 |
-
case '
|
| 774 |
$help_text = 'block IPs';
|
| 775 |
$user_guide_link .= 'blocking-ips.html';
|
| 776 |
break;
|
| 777 |
}
|
| 778 |
-
case '
|
| 779 |
$help_text = 'edit form settings';
|
| 780 |
$user_guide_link .= '';
|
| 781 |
break;
|
| 782 |
}
|
| 783 |
-
case '
|
| 784 |
$help_text = '';
|
| 785 |
$user_guide_link .= '';
|
| 786 |
break;
|
| 787 |
}
|
| 788 |
-
case '
|
| 789 |
switch ($task) {
|
| 790 |
case 'edit':
|
| 791 |
case 'edit_old': {
|
|
@@ -806,12 +819,12 @@ final class WDFM {
|
|
| 806 |
}
|
| 807 |
break;
|
| 808 |
}
|
| 809 |
-
case '
|
| 810 |
$help_text = 'view and manage form submissions';
|
| 811 |
$user_guide_link .= 'managing-submissions.html';
|
| 812 |
break;
|
| 813 |
}
|
| 814 |
-
case '
|
| 815 |
$help_text = 'create, edit form themes';
|
| 816 |
$user_guide_link .= '';
|
| 817 |
break;
|
|
@@ -896,7 +909,7 @@ final class WDFM {
|
|
| 896 |
</span>
|
| 897 |
<?php
|
| 898 |
}
|
| 899 |
-
if (
|
| 900 |
$text = strtoupper(__('Upgrade to paid version', $prefix));
|
| 901 |
?>
|
| 902 |
<div class="wd_pro">
|
|
@@ -1019,8 +1032,8 @@ final class WDFM {
|
|
| 1019 |
"plugin_wizard_link" => '',
|
| 1020 |
"plugin_menu_title" => "Form Maker",
|
| 1021 |
"plugin_menu_icon" => $this->plugin_url . '/images/FormMakerLogo-16.png',
|
| 1022 |
-
"deactivate" =>
|
| 1023 |
-
"subscribe" =>
|
| 1024 |
"custom_post" => 'manage_fm',
|
| 1025 |
"menu_position" => null,
|
| 1026 |
);
|
|
@@ -1038,14 +1051,14 @@ final class WDFM {
|
|
| 1038 |
*/
|
| 1039 |
function media_button($context) {
|
| 1040 |
ob_start();
|
| 1041 |
-
$url = add_query_arg(array('action' => 'FMShortocde', 'task' => 'form', 'TB_iframe' => '1'), admin_url('admin-ajax.php'));
|
| 1042 |
?>
|
| 1043 |
<a onclick="tb_click.call(this); fm_set_shortcode_popup_dimensions(400, 140); return false;" href="<?php echo $url; ?>" class="button" title="<?php _e('Insert Form', $this->prefix); ?>">
|
| 1044 |
<span class="wp-media-buttons-icon" style="background: url('<?php echo $this->plugin_url; ?>/images/fm-media-form-button.png') no-repeat scroll left top rgba(0, 0, 0, 0);"></span>
|
| 1045 |
<?php _e('Add Form', $this->prefix); ?>
|
| 1046 |
</a>
|
| 1047 |
<?php
|
| 1048 |
-
$url = add_query_arg(array('action' => 'FMShortocde', 'task' => 'submissions', 'TB_iframe' => '1'), admin_url('admin-ajax.php'));
|
| 1049 |
?>
|
| 1050 |
<a onclick="tb_click.call(this); fm_set_shortcode_popup_dimensions(500, 570); return false;" href="<?php echo $url; ?>" class="button" title="<?php _e('Insert submissions', $this->prefix); ?>">
|
| 1051 |
<span class="wp-media-buttons-icon" style="background: url('<?php echo $this->plugin_url; ?>/images/fm-media-submissions-button.png') no-repeat scroll left top rgba(0, 0, 0, 0);"></span>
|
|
@@ -1254,6 +1267,6 @@ function fm_add_plugin_meta_links($meta_fields, $file) {
|
|
| 1254 |
return $meta_fields;
|
| 1255 |
}
|
| 1256 |
|
| 1257 |
-
if (
|
| 1258 |
add_filter("plugin_row_meta", 'fm_add_plugin_meta_links', 10, 2);
|
| 1259 |
}
|
| 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.7
|
| 7 |
* Author: WebDorado Form Builder Team
|
| 8 |
* Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
|
| 9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
| 49 |
|
| 50 |
public $nicename = '';
|
| 51 |
public $nonce = 'nonce_fm';
|
| 52 |
+
public $is_free = 1;
|
| 53 |
public $is_demo = false;
|
| 54 |
|
| 55 |
/**
|
| 89 |
$this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
|
| 90 |
$this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
|
| 91 |
$this->main_file = plugin_basename(__FILE__);
|
| 92 |
+
$this->plugin_version = '1.12.7';
|
| 93 |
+
$this->db_version = '2.12.7';
|
| 94 |
$this->menu_slug = 'manage_fm';
|
| 95 |
$this->prefix = 'form_maker';
|
| 96 |
$this->css_prefix = 'fm_';
|
| 97 |
$this->js_prefix = 'fm_';
|
| 98 |
$this->nicename = __('Form Maker', $this->prefix);
|
| 99 |
+
$this->menu_postfix = '_fm';
|
| 100 |
+
$this->plugin_postfix = '';
|
| 101 |
}
|
| 102 |
|
| 103 |
/**
|
| 107 |
add_action('init', array($this, 'init'), 9);
|
| 108 |
add_action('admin_menu', array( $this, 'form_maker_options_panel' ) );
|
| 109 |
|
| 110 |
+
add_action('wp_ajax_get_stats' . $this->plugin_postfix, array($this, 'form_maker')); //Show statistics
|
| 111 |
+
add_action('wp_ajax_generete_csv' . $this->plugin_postfix, array($this, 'form_maker_ajax')); // Export csv.
|
| 112 |
+
add_action('wp_ajax_generete_xml' . $this->plugin_postfix, array($this, 'form_maker_ajax')); // Export xml.
|
| 113 |
+
add_action('wp_ajax_formmakerwdcaptcha' . $this->plugin_postfix, array($this, 'form_maker_ajax')); // Generete captcha image and save it code in session.
|
| 114 |
+
add_action('wp_ajax_nopriv_formmakerwdcaptcha' . $this->plugin_postfix, array($this, 'form_maker_ajax')); // Generete captcha image and save it code in session for all users.
|
| 115 |
+
add_action('wp_ajax_formmakerwdmathcaptcha' . $this->plugin_postfix, array($this, 'form_maker_ajax')); // Generete math captcha image and save it code in session.
|
| 116 |
+
add_action('wp_ajax_nopriv_formmakerwdmathcaptcha' . $this->plugin_postfix, array($this, 'form_maker_ajax')); // Generete math captcha image and save it code in session for all users.
|
| 117 |
+
add_action('wp_ajax_product_option' . $this->plugin_postfix, array($this, 'form_maker_ajax')); // Open product options on add paypal field.
|
| 118 |
+
add_action('wp_ajax_FormMakerEditCountryinPopup' . $this->plugin_postfix, array($this, 'form_maker_ajax')); // Open country list.
|
| 119 |
+
add_action('wp_ajax_FormMakerMapEditinPopup' . $this->plugin_postfix, array($this, 'form_maker_ajax')); // Open map in submissions.
|
| 120 |
+
add_action('wp_ajax_FormMakerIpinfoinPopup' . $this->plugin_postfix, array($this, 'form_maker_ajax')); // Open ip in submissions.
|
| 121 |
+
add_action('wp_ajax_show_matrix' . $this->plugin_postfix, array($this, 'form_maker_ajax')); // Edit matrix in submissions.
|
| 122 |
+
add_action('wp_ajax_FormMakerSubmits' . $this->plugin_postfix, array($this, 'form_maker_ajax')); // Open submissions in submissions.
|
| 123 |
|
| 124 |
if ( !$this->is_demo ) {
|
| 125 |
+
add_action('wp_ajax_FormMakerSQLMapping' . $this->plugin_postfix, array($this, 'form_maker_ajax')); // Add/Edit SQLMaping from form options.
|
| 126 |
+
add_action('wp_ajax_select_data_from_db' . $this->plugin_postfix, array( $this, 'form_maker_ajax' )); // select data from db.
|
| 127 |
}
|
| 128 |
|
| 129 |
+
add_action('wp_ajax_manage' . $this->plugin_postfix, array($this, 'form_maker_ajax')); //Show statistics
|
| 130 |
|
| 131 |
+
if ( !$this->is_free ) {
|
| 132 |
add_action('wp_ajax_paypal_info', array($this, 'form_maker_ajax')); // Paypal info in submissions page.
|
| 133 |
add_action('wp_ajax_checkpaypal', array($this, 'form_maker_ajax')); // Notify url from Paypal Sandbox.
|
| 134 |
add_action('wp_ajax_nopriv_checkpaypal', array($this, 'form_maker_ajax')); // Notify url from Paypal Sandbox for all users.
|
| 147 |
}
|
| 148 |
|
| 149 |
// Add media button to WP editor.
|
| 150 |
+
add_action('wp_ajax_FMShortocde' . $this->plugin_postfix, array($this, 'form_maker_ajax'));
|
| 151 |
add_filter('media_buttons_context', array($this, 'media_button'));
|
| 152 |
|
| 153 |
add_action('admin_head', array($this, 'form_maker_admin_ajax'));//js variables for admin.
|
| 154 |
|
| 155 |
// Form maker shortcodes.
|
| 156 |
if ( !is_admin() ) {
|
| 157 |
+
add_shortcode('FormPreview' . $this->plugin_postfix, array($this, 'fm_form_preview_shortcode'));
|
| 158 |
+
if ($this->is_free != 2) {
|
| 159 |
+
add_shortcode('Form', array($this, 'fm_shortcode'));
|
| 160 |
+
}
|
| 161 |
+
if (!($this->is_free == 1)) {
|
| 162 |
add_shortcode('contact_form', array($this, 'fm_shortcode'));
|
| 163 |
add_shortcode('wd_contact_form', array($this, 'fm_shortcode'));
|
| 164 |
}
|
| 165 |
+
add_shortcode('email_verification' . $this->plugin_postfix, array($this, 'fm_email_verification_shortcode'));
|
| 166 |
}
|
| 167 |
// Action to display not emedded type forms.
|
| 168 |
if (!is_admin() && !in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php'))) {
|
| 172 |
// Form Maker Widget.
|
| 173 |
if (class_exists('WP_Widget')) {
|
| 174 |
require_once($this->plugin_dir . '/admin/controllers/Widget.php');
|
| 175 |
+
add_action('widgets_init', create_function('', 'return register_widget("FMControllerWidget' . $this->plugin_postfix . '");'));
|
| 176 |
}
|
| 177 |
|
| 178 |
// Register fmemailverification post type
|
| 184 |
// Form maker activation.
|
| 185 |
register_activation_hook(__FILE__, array($this, 'form_maker_activate'));
|
| 186 |
if ( (!isset($_GET['action']) || $_GET['action'] != 'deactivate')
|
| 187 |
+
&& (!isset($_GET['page']) || $_GET['page'] != 'uninstall' . $this->menu_postfix) ) {
|
| 188 |
add_action('admin_init', array($this, 'form_maker_activate'));
|
| 189 |
}
|
| 190 |
add_action('admin_notices', array($this, 'fm_topic'), 11);
|
| 197 |
add_filter('set-screen-option', array($this, 'set_option_submissions'), 10, 3);
|
| 198 |
|
| 199 |
// Check add-ons versions.
|
| 200 |
+
if ($this->is_free != 2) {
|
| 201 |
+
add_action('admin_notices', array($this, 'fm_check_addons_compatibility'));
|
| 202 |
+
}
|
| 203 |
|
| 204 |
add_action('plugins_loaded', array($this, 'plugins_loaded'));
|
| 205 |
|
| 206 |
+
add_filter('wpseo_whitelist_permalink_vars', array($this, 'add_query_vars_seo'));
|
| 207 |
}
|
| 208 |
|
| 209 |
/**
|
| 221 |
// Languages localization.
|
| 222 |
load_plugin_textdomain($this->prefix, FALSE, basename(dirname(__FILE__)) . '/languages');
|
| 223 |
// Initialize add-ons.
|
| 224 |
+
if ($this->is_free != 2) {
|
| 225 |
+
do_action('fm_init_addons');
|
| 226 |
+
}
|
| 227 |
}
|
| 228 |
|
| 229 |
/**
|
| 230 |
* Plugin menu.
|
| 231 |
*/
|
| 232 |
public function form_maker_options_panel() {
|
| 233 |
+
$parent_slug = !$this->is_free ? $this->menu_slug : null;
|
| 234 |
+
if( !$this->is_free || get_option( "fm_subscribe_done" ) == 1 ) {
|
| 235 |
+
add_menu_page($this->nicename, $this->nicename, 'manage_options', $this->menu_slug, array( $this, 'form_maker' ), $this->plugin_url . '/images/FormMakerLogo-16.png');
|
| 236 |
$parent_slug = $this->menu_slug;
|
| 237 |
}
|
| 238 |
add_submenu_page($parent_slug, __('Forms', $this->prefix), __('Forms', $this->prefix), 'manage_options', $this->menu_slug, array($this, 'form_maker'));
|
| 239 |
+
$submissions_page = add_submenu_page($parent_slug, __('Submissions', $this->prefix), __('Submissions', $this->prefix), 'manage_options', 'submissions' . $this->menu_postfix, array($this, 'form_maker'));
|
| 240 |
add_action('load-' . $submissions_page, array($this, 'submissions_per_page'));
|
| 241 |
|
| 242 |
+
add_submenu_page(null, __('Blocked IPs', $this->prefix), __('Blocked IPs', $this->prefix), 'manage_options', 'blocked_ips' . $this->menu_postfix, array($this, 'form_maker'));
|
| 243 |
+
add_submenu_page($parent_slug, __('Themes', $this->prefix), __('Themes', $this->prefix), 'manage_options', 'themes' . $this->menu_postfix, array($this, 'form_maker'));
|
| 244 |
+
add_submenu_page($parent_slug, __('Options', $this->prefix), __('Options', $this->prefix), 'manage_options', 'options' . $this->menu_postfix, array($this, 'form_maker'));
|
| 245 |
+
if ($this->is_free) {
|
| 246 |
+
add_submenu_page($parent_slug, __('Pro Version', $this->prefix), __('Pro Version', $this->prefix), 'manage_options', 'licensing' . $this->menu_postfix, array($this, 'form_maker'));
|
| 247 |
}
|
| 248 |
+
add_submenu_page(null, __('Uninstall', $this->prefix), __('Uninstall', $this->prefix), 'manage_options', 'uninstall' . $this->menu_postfix, array($this, 'form_maker'));
|
| 249 |
+
add_submenu_page($parent_slug, __('Add-ons', $this->prefix), __('Add-ons', $this->prefix), 'manage_options', 'extensions' . $this->menu_postfix, array($this , 'fm_extensions'));
|
| 250 |
}
|
| 251 |
|
| 252 |
/**
|
| 288 |
die('Access Denied');
|
| 289 |
}
|
| 290 |
$page = WDW_FM_Library::get('page');
|
| 291 |
+
if (($page != '') && (($page == 'manage' . $this->menu_postfix) || ($page == 'options' . $this->menu_postfix) || ($page == 'submissions' . $this->menu_postfix) || ($page == 'blocked_ips' . $this->menu_postfix) || ($page == 'themes' . $this->menu_postfix) || ($page == 'uninstall' . $this->menu_postfix) || ($page == 'extensions' . $this->menu_postfix) || ($this->is_free && $page == 'licensing' . $this->menu_postfix))) {
|
| 292 |
+
$page = ucfirst(strtolower(substr($page, 0, strlen($page) - strlen($this->menu_postfix))));
|
| 293 |
// This ugly span is here to hide admin output while css files are not loaded. Temporary.
|
| 294 |
// todo: Remove span somehow.
|
| 295 |
echo '<div id="fm_loading"></div>';
|
| 296 |
echo '<span id="fm_admin_container" class="fm-form-container" style="display: none;">';
|
| 297 |
+
require_once ($this->plugin_dir . '/admin/controllers/' . $page . '_fm.php');
|
| 298 |
+
$controller_class = 'FMController' . $page . $this->menu_postfix;
|
| 299 |
$controller = new $controller_class();
|
| 300 |
$controller->execute();
|
| 301 |
echo '</span>';
|
| 332 |
wp_register_style('fm-layout', $this->plugin_url . '/css/form_maker_layout.css', array(), $this->plugin_version);
|
| 333 |
wp_register_style('fm-bootstrap', $this->plugin_url . '/css/fm-bootstrap.css', array(), $this->plugin_version);
|
| 334 |
wp_register_style('fm-colorpicker', $this->plugin_url . '/css/spectrum.css', array(), $this->plugin_version);
|
| 335 |
+
if (!$this->is_free) {
|
| 336 |
wp_register_style('jquery.fancybox', $this->plugin_url . '/js/fancybox/jquery.fancybox.css', array(), '2.1.5');
|
| 337 |
}
|
| 338 |
// Add-ons page
|
| 380 |
'leave_empty' => __('Leave empty to set the width to 100%.', $this->prefix),
|
| 381 |
'is_demo' => $this->is_demo,
|
| 382 |
'important_message' => __('The free version is limited up to 7 fields to add. If you need this functionality, you need to buy the commercial version.', $this->prefix),
|
| 383 |
+
'no_preview' => __('No preview available.', $this->prefix),
|
| 384 |
+
'invisible_recaptcha_error' => sprintf( __('%s Old reCAPTCHA keys will not work for %s. Please make sure to enable the API keys for Invisible reCAPTCHA.', $this->prefix), '<b>'. __('Note:', $this->prefix) .'</b>', '<b>'. __('Invisible reCAPTCHA', $this->prefix) .'</b>' )
|
| 385 |
));
|
| 386 |
|
| 387 |
wp_register_script('fm-codemirror', $this->plugin_url . '/js/layout/codemirror.js', array(), '2.3');
|
| 406 |
'delete_confirmation' => __('Do you want to delete selected items?', $this->prefix),
|
| 407 |
'select_at_least_one_item' => __('You must select at least one item.', $this->prefix),
|
| 408 |
));
|
| 409 |
+
if (!$this->is_free) {
|
| 410 |
wp_register_script('jquery.fancybox.pack', $this->plugin_url . '/js/fancybox/jquery.fancybox.pack.js', array(), '2.1.5');
|
| 411 |
}
|
| 412 |
else {
|
| 419 |
"email" => $admin_data->data->user_email,
|
| 420 |
"plugin_wd_url" => "https://web-dorado.com/products/wordpress-form.html",
|
| 421 |
));
|
| 422 |
+
wp_register_style('fm-license' . $this->menu_postfix, $this->plugin_url . '/css/license.css', array(), $this->plugin_version);
|
| 423 |
}
|
| 424 |
}
|
| 425 |
|
| 431 |
wp_register_style('fm-style', $this->plugin_url . '/css/style.css', array(), $this->plugin_version);
|
| 432 |
wp_register_style('fm-jquery-ui', $this->plugin_url . '/css/jquery-ui.custom.css', array(), $this->plugin_version);
|
| 433 |
|
| 434 |
+
wp_register_script('fm-shortcode' . $this->menu_postfix, $this->plugin_url . '/js/shortcode.js', array('jquery'), $this->plugin_version);
|
| 435 |
|
| 436 |
$fm_settings = get_option('fm_settings');
|
| 437 |
$google_map_key = !empty($fm_settings['map_key']) ? '&key=' . $fm_settings['map_key'] : '';
|
| 439 |
wp_register_script('google-maps', 'https://maps.google.com/maps/api/js?v=3.exp' . $google_map_key);
|
| 440 |
wp_register_script('fm-gmap_form', $this->plugin_url . '/js/if_gmap_back_end.js', array(), $this->plugin_version);
|
| 441 |
|
| 442 |
+
wp_localize_script('fm-shortcode' . $this->menu_postfix, 'form_maker', array(
|
| 443 |
'insert_form' => __('You must select a form', $this->prefix),
|
| 444 |
'update' => __('Update', $this->prefix),
|
| 445 |
));
|
| 450 |
*/
|
| 451 |
public function form_maker_ajax() {
|
| 452 |
$page = WDW_FM_Library::get('action');
|
| 453 |
+
if ( $page != 'formmakerwdcaptcha' . $this->plugin_postfix && $page != 'formmakerwdmathcaptcha' . $this->plugin_postfix && $page != 'checkpaypal' . $this->plugin_postfix ) {
|
| 454 |
if ( function_exists('current_user_can') ) {
|
| 455 |
if ( !current_user_can('manage_options') ) {
|
| 456 |
die('Access Denied');
|
| 461 |
}
|
| 462 |
}
|
| 463 |
if ( $page != '' ) {
|
| 464 |
+
$page = ucfirst(substr($page, 0, strlen($page) - strlen($this->plugin_postfix)));
|
| 465 |
+
if ( !is_file($this->plugin_dir . '/admin/controllers/' . $page . '.php') ) {
|
| 466 |
+
die('The file <b> ' . $page . ' </b> not found.');
|
| 467 |
}
|
| 468 |
$this->register_admin_ajax_scripts();
|
| 469 |
+
require_once($this->plugin_dir . '/admin/controllers/' . $page . '.php');
|
| 470 |
+
$controller_class = 'FMController' . $page . $this->plugin_postfix;
|
| 471 |
$controller = new $controller_class();
|
| 472 |
$controller->execute();
|
| 473 |
}
|
| 566 |
$form_id = isset($params['id']) ? (int) $params['id'] : 0;
|
| 567 |
wd_form_maker($form_id, $type);
|
| 568 |
}
|
| 569 |
+
else if (!$this->is_free) {
|
| 570 |
$shortcode_deafults = array(
|
| 571 |
'id' => 0,
|
| 572 |
'startdate' => '',
|
| 606 |
public function register_fmemailverification_cpt() {
|
| 607 |
$args = array(
|
| 608 |
'public' => true,
|
| 609 |
+
'exclude_from_search' => true,
|
| 610 |
'show_in_menu' => false,
|
| 611 |
'create_posts' => 'do_not_allow',
|
| 612 |
'capabilities' => array(
|
| 629 |
*/
|
| 630 |
public function register_form_preview_cpt() {
|
| 631 |
$args = array(
|
| 632 |
+
'public' => true,
|
| 633 |
+
'exclude_from_search' => true,
|
| 634 |
+
'show_in_menu' => false,
|
| 635 |
+
'create_posts' => 'do_not_allow',
|
| 636 |
+
'capabilities' => array(
|
| 637 |
'create_posts' => FALSE,
|
| 638 |
'edit_post' => 'edit_posts',
|
| 639 |
'read_post' => 'edit_posts',
|
| 641 |
)
|
| 642 |
);
|
| 643 |
|
| 644 |
+
register_post_type('form-maker' . $this->plugin_postfix, $args);
|
| 645 |
}
|
| 646 |
|
| 647 |
/**
|
| 690 |
// Register admin styles to use in frontend submissions.
|
| 691 |
wp_register_script('gmap_form_back', $this->plugin_url . '/js/if_gmap_back_end.js', array(), $this->plugin_version);
|
| 692 |
|
| 693 |
+
if (!$this->is_free) {
|
| 694 |
wp_register_script('fm-file-upload', $this->plugin_url . '/js/file-upload.js', array(), $this->plugin_version);
|
| 695 |
wp_register_style('fm-submissions_css', $this->plugin_url . '/css/style_submissions.css', array(), $this->plugin_version);
|
| 696 |
}
|
| 710 |
* Activate plugin.
|
| 711 |
*/
|
| 712 |
public function form_maker_activate() {
|
| 713 |
+
if (!$this->is_free) {
|
| 714 |
deactivate_plugins("contact-form-maker/contact-form-maker.php");
|
| 715 |
delete_transient('fm_update_check');
|
| 716 |
}
|
| 766 |
add_option('fm_settings', array('public_key' => $public_key, 'private_key' => $private_key, 'csv_delimiter' => ',', 'map_key' => ''));
|
| 767 |
}
|
| 768 |
}
|
| 769 |
+
flush_rewrite_rules();
|
| 770 |
}
|
| 771 |
|
| 772 |
/**
|
| 774 |
*/
|
| 775 |
public function fm_topic() {
|
| 776 |
$page = isset($_GET['page']) ? $_GET['page'] : '';
|
| 777 |
+
$page = substr($page, 0, strlen($page) - strlen($this->menu_postfix));
|
| 778 |
$task = isset($_REQUEST['task']) ? $_REQUEST['task'] : '';
|
| 779 |
$user_guide_link = 'https://web-dorado.com/wordpress-form-maker/';
|
| 780 |
$support_forum_link = 'https://wordpress.org/support/plugin/form-maker';
|
| 783 |
$support_icon = $this->plugin_url . '/images/support.png';
|
| 784 |
$prefix = $this->prefix;
|
| 785 |
switch ($page) {
|
| 786 |
+
case 'blocked_ips': {
|
| 787 |
$help_text = 'block IPs';
|
| 788 |
$user_guide_link .= 'blocking-ips.html';
|
| 789 |
break;
|
| 790 |
}
|
| 791 |
+
case 'options': {
|
| 792 |
$help_text = 'edit form settings';
|
| 793 |
$user_guide_link .= '';
|
| 794 |
break;
|
| 795 |
}
|
| 796 |
+
case 'licensing': {
|
| 797 |
$help_text = '';
|
| 798 |
$user_guide_link .= '';
|
| 799 |
break;
|
| 800 |
}
|
| 801 |
+
case 'manage': {
|
| 802 |
switch ($task) {
|
| 803 |
case 'edit':
|
| 804 |
case 'edit_old': {
|
| 819 |
}
|
| 820 |
break;
|
| 821 |
}
|
| 822 |
+
case 'submissions': {
|
| 823 |
$help_text = 'view and manage form submissions';
|
| 824 |
$user_guide_link .= 'managing-submissions.html';
|
| 825 |
break;
|
| 826 |
}
|
| 827 |
+
case 'themes': {
|
| 828 |
$help_text = 'create, edit form themes';
|
| 829 |
$user_guide_link .= '';
|
| 830 |
break;
|
| 909 |
</span>
|
| 910 |
<?php
|
| 911 |
}
|
| 912 |
+
if ($this->is_free) {
|
| 913 |
$text = strtoupper(__('Upgrade to paid version', $prefix));
|
| 914 |
?>
|
| 915 |
<div class="wd_pro">
|
| 1032 |
"plugin_wizard_link" => '',
|
| 1033 |
"plugin_menu_title" => "Form Maker",
|
| 1034 |
"plugin_menu_icon" => $this->plugin_url . '/images/FormMakerLogo-16.png',
|
| 1035 |
+
"deactivate" => ($this->is_free ? true : false),
|
| 1036 |
+
"subscribe" => ($this->is_free ? true : false),
|
| 1037 |
"custom_post" => 'manage_fm',
|
| 1038 |
"menu_position" => null,
|
| 1039 |
);
|
| 1051 |
*/
|
| 1052 |
function media_button($context) {
|
| 1053 |
ob_start();
|
| 1054 |
+
$url = add_query_arg(array('action' => 'FMShortocde' . $this->plugin_postfix, 'task' => 'form', 'TB_iframe' => '1'), admin_url('admin-ajax.php'));
|
| 1055 |
?>
|
| 1056 |
<a onclick="tb_click.call(this); fm_set_shortcode_popup_dimensions(400, 140); return false;" href="<?php echo $url; ?>" class="button" title="<?php _e('Insert Form', $this->prefix); ?>">
|
| 1057 |
<span class="wp-media-buttons-icon" style="background: url('<?php echo $this->plugin_url; ?>/images/fm-media-form-button.png') no-repeat scroll left top rgba(0, 0, 0, 0);"></span>
|
| 1058 |
<?php _e('Add Form', $this->prefix); ?>
|
| 1059 |
</a>
|
| 1060 |
<?php
|
| 1061 |
+
$url = add_query_arg(array('action' => 'FMShortocde' . $this->plugin_postfix, 'task' => 'submissions', 'TB_iframe' => '1'), admin_url('admin-ajax.php'));
|
| 1062 |
?>
|
| 1063 |
<a onclick="tb_click.call(this); fm_set_shortcode_popup_dimensions(500, 570); return false;" href="<?php echo $url; ?>" class="button" title="<?php _e('Insert submissions', $this->prefix); ?>">
|
| 1064 |
<span class="wp-media-buttons-icon" style="background: url('<?php echo $this->plugin_url; ?>/images/fm-media-submissions-button.png') no-repeat scroll left top rgba(0, 0, 0, 0);"></span>
|
| 1267 |
return $meta_fields;
|
| 1268 |
}
|
| 1269 |
|
| 1270 |
+
if ( WDFM()->is_free ) {
|
| 1271 |
add_filter("plugin_row_meta", 'fm_add_plugin_meta_links', 10, 2);
|
| 1272 |
}
|
form_maker_insert.php
CHANGED
|
@@ -143,20 +143,20 @@ class WDFMInsert {
|
|
| 143 |
if (!$form_maker_theme_row) {
|
| 144 |
$default = json_encode(array('AGPWidth' => '70', 'AGPSPWidth' => '30', 'HPAlign' => 'top', 'HTPWidth' => '40', 'HPTextAlign' => 'center', 'HTPFontSize' => '24', 'HDPFontSize' => '15', 'HIPAlign' => 'top', 'HIPWidth' => '80', 'GPWidth' => '100', 'GTPWidth' => '60', 'SPAlign' => 'left', 'PSAPAlign' => 'right', 'PPAPWidth' => '100%', 'CBPPosition' => 'absolute', 'CBPTop' => '10px', 'CBPRight' => '10px', 'PSAPBGColor' =>'#7f7f7f', 'PSAPPadding' => '8px', 'PSDPBGColor' => '#999999', 'PSDPPadding' => '4px 6px', 'PSDPMargin' => '0 0 10px 0', 'FPMargin' => '15px 0 0 0', 'IPHeight' =>'40', 'IPFontSize' => '16', 'IPPadding' => '6px 10px', 'IPBorderTop' => 'top', 'IPBorderRight' => 'right', 'IPBorderBottom' => 'bottom', 'IPBorderLeft' => 'left', 'IPBorderColor' => '#dfdfdf', 'IPBorderType' => 'solid', 'IPBorderWidth' => '1', 'IPBorderRadius' => '2', 'GPMLFontSize' => '12', 'GPMLFontWeight' => 'normal', 'OPRColor' => '#FF0000' ));
|
| 145 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Default Theme", \'' . $default .'\', 1, 2);');
|
| 146 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 1", \'{"GPFontFamily":"tahoma","AGPWidth":"100","AGPSPWidth":"30","AGPPadding":"","AGPMargin":"
|
| 147 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 2", \'{"GPFontFamily":"Roboto Condensed","AGPWidth":"100","AGPSPWidth":"30","AGPPadding":"","AGPMargin":"
|
| 148 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 3", \'{"GPFontFamily":"Droid Sans","AGPWidth":"80","AGPSPWidth":"30","AGPPadding":"","AGPMargin":"
|
| 149 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 4", \'{"GPFontFamily":"Patrick Hand","AGPWidth":"100","AGPSPWidth":"30","AGPPadding":"","AGPMargin":"
|
| 150 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 5", \'{"GPFontFamily":"cursive","AGPWidth":"100","AGPSPWidth":"40","AGPPadding":"","AGPMargin":"
|
| 151 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 6", \'{"GPFontFamily":"PT Sans","AGPWidth":"100","AGPSPWidth":"35","AGPPadding":"","AGPMargin":"
|
| 152 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 7", \'{"GPFontFamily":"PT Sans","AGPWidth":"100","AGPSPWidth":"35","AGPPadding":"","AGPMargin":"
|
| 153 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 8", \'{"GPFontFamily":"PT Sans","AGPWidth":"100","AGPSPWidth":"35","AGPPadding":"","AGPMargin":"
|
| 154 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 9", \'{"GPFontFamily":"Open Sans Condensed","AGPWidth":"100","AGPSPWidth":"35","AGPPadding":"","AGPMargin":"
|
| 155 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 10", \'{"GPFontFamily":"arial","AGPWidth":"100","AGPSPWidth":"35","AGPPadding":"","AGPMargin":"
|
| 156 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 11", \'{"GPFontFamily":"Roboto","AGPWidth":"100","AGPSPWidth":"40","AGPPadding":"","AGPMargin":"
|
| 157 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 12", \'{"GPFontFamily":"trebuchet ms","AGPWidth":"100","AGPSPWidth":"40","AGPPadding":"","AGPMargin":"
|
| 158 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 13", \'{"GPFontFamily":"tahoma","AGPWidth":"100","AGPSPWidth":"20","AGPPadding":"","AGPMargin":"
|
| 159 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 14", \'{"GPFontFamily":"tahoma","AGPWidth":"100","AGPSPWidth":"40","AGPPadding":"","AGPMargin":"
|
| 160 |
}
|
| 161 |
|
| 162 |
$formmaker_views = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix . "formmaker_views` (
|
|
@@ -282,11 +282,20 @@ class WDFMInsert {
|
|
| 282 |
global $wpdb;
|
| 283 |
$form_maker_row = $wpdb->get_var("SELECT * FROM " . $wpdb->prefix . "formmaker");
|
| 284 |
if ( !$form_maker_row ) {
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
| 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`, `jsversion`) VALUES (NULL, 'Business Demographic Survey', 'embedded', '', '<div class=\"wdform-page-and-images\"><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\"><div wdid=\"2\" class=\"wdform_row\">%2 - What is your employment status?%</div><div wdid=\"3\" class=\"wdform_row\">%3 - What is your level of education?%</div><div wdid=\"4\" class=\"wdform_row\">%4 - In which industry do you work?%</div><div wdid=\"6\" class=\"wdform_row\">%6 - What is the annual revenue of your company?%</div><div wdid=\"5\" class=\"wdform_row\">%5 - Enter characters for verification.%</div><div wdid=\"1\" class=\"wdform_row\">%1 - type_submit_reset_1%</div></div></div><div valign=\"top\" class=\"wdform_footer wd-width-100\"><div class=\"wd-width-100\"><div class=\"wd-width-100 wd-table\" style=\"padding-top:10px;\"><div class=\"wd-table-group\"><div id=\"form_id_temppage_nav1\" class=\"wd-table-row\"></div></div></div></div></div></div></div>', '4', '// 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%', '7', '1', '2#**id**#What is your employment status?#**label**#type_radio#****#3#**id**#What is your level of education?#**label**#type_radio#****#4#**id**#In which industry do you work?#**label**#type_own_select#****#6#**id**#What is the annual revenue of your company?#**label**#type_radio#****#5#**id**#Enter characters for verification.#**label**#type_captcha#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#6_elementform_id_temp0#**id**#What is your employment status?#**label**#type_radio#****#6_elementform_id_temp1#**id**#What is your level of education?#**label**#type_radio#****#6_elementform_id_temp2#**id**#In which industry do you work?#**label**#type_own_select#****#6_elementform_id_temp3#**id**#Enter characters for verification.#**label**#type_captcha#****#6_elementform_id_temp4#**id**#type_submit_reset_1#**label**#type_submit_reset#****#6_elementform_id_temp5#**id**#type_submit_reset_1#**label**#type_submit_reset#****#6_elementform_id_temp6#**id**##**label**##****#6_elementform_id_temp7#**id**#undefined#**label**#undefined#****#6_elementform_id_temp8#**id**#undefined#**label**#undefined#****#6_elementform_id_temp9#**id**#undefined#**label**#undefined#****#6_elementform_id_temp10#**id**#undefined#**label**#undefined#****#6_elementform_id_temp11#**id**#undefined#**label**#undefined#****#6_elementform_id_temp12#**id**#undefined#**label**#undefined#****#6_elementform_id_temp13#**id**#undefined#**label**#undefined#****#6_elementform_id_temp14#**id**#undefined#**label**#undefined#****#6_elementform_id_temp15#**id**#undefined#**label**#undefined#****#6_elementform_id_temp16#**id**#undefined#**label**#undefined#****#6_elementform_id_temp17#**id**#undefined#**label**#undefined#****#6_elementform_id_temp18#**id**#undefined#**label**#undefined#****#6_elementform_id_temp19#**id**#undefined#**label**#undefined#****#6_elementform_id_temp20#**id**#undefined#**label**#undefined#****#6_elementform_id_temp21#**id**#undefined#**label**#undefined#****#6_elementform_id_temp22#**id**#undefined#**label**#undefined#****#6_elementform_id_temp23#**id**#undefined#**label**#undefined#****#6_elementform_id_temp24#**id**#undefined#**label**#undefined#****#6_elementform_id_temp25#**id**#undefined#**label**#undefined#****#6_elementform_id_temp26#**id**#undefined#**label**#undefined#****#6_elementform_id_temp27#**id**#undefined#**label**#undefined#****#6_elementform_id_temp28#**id**#undefined#**label**#undefined#****#6_elementform_id_temp29#**id**#undefined#**label**#undefined#****#6_elementform_id_temp30#**id**#undefined#**label**#undefined#****#6_elementform_id_temp31#**id**#undefined#**label**#undefined#****#6_elementform_id_temp32#**id**#undefined#**label**#undefined#****#6_elementform_id_temp33#**id**#undefined#**label**#undefined#****#6_elementform_id_temp34#**id**#undefined#**label**#undefined#****#6_elementform_id_temp35#**id**#undefined#**label**#undefined#****#6_elementform_id_temp36#**id**#undefined#**label**#undefined#****#6_elementform_id_temp37#**id**#undefined#**label**#undefined#****#6_elementform_id_temp38#**id**#undefined#**label**#undefined#****#6_elementform_id_temp39#**id**#undefined#**label**#undefined#****#6_elementform_id_temp40#**id**#undefined#**label**#undefined#****#6_elementform_id_temp41#**id**#undefined#**label**#undefined#****#6_elementform_id_temp42#**id**#undefined#**label**#undefined#****#6_elementform_id_temp43#**id**#undefined#**label**#undefined#****#6_elementform_id_temp44#**id**#undefined#**label**#undefined#****#6_elementform_id_temp45#**id**#undefined#**label**#undefined#****#6_elementform_id_temp46#**id**#undefined#**label**#undefined#****#6_elementform_id_temp47#**id**#undefined#**label**#undefined#****#6_elementform_id_temp48#**id**#undefined#**label**#undefined#****#6_elementform_id_temp49#**id**#undefined#**label**#undefined#****#', '2#**id**#What is your employment status?#**label**#type_radio#****#3#**id**#What is your level of education?#**label**#type_radio#****#4#**id**#In which industry do you work?#**label**#type_own_select#****#6#**id**#What is the annual revenue of your company?#**label**#type_radio#****#5#**id**#Enter characters for verification.#**label**#type_captcha#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '0', 'none', '', '1', '', '', '', '0', 'testmode', '', '', '0', '2*:*id*:*type_radio*:*type*:*What is your employment status?*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*right*:*w_field_option_pos*:*no*:*w_hide_label*:*ver*:*w_flow*:*Employed full time***Trade or Vocational degree***Not employed, but looking for work***Not employed and not looking for work***Retired***Student***Homemaker***Prefer not to answer*:*w_choices*:*false***false***false***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*:*Employed full time***Trade or Vocational degree***Not employed, but looking for work***Not employed and not looking for work***Retired***Student***Homemaker***Prefer not to answer*:*w_choices_value*:***********************:*w_choices_params*:**:*w_class*:**:*new_field*:*3*:*id*:*type_radio*:*type*:*What is your level of education?*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*right*:*w_field_option_pos*:*no*:*w_hide_label*:*ver*:*w_flow*:*Some high school***High school graduate or equivalent***Trade or Vocational Degree***Some college***Associate degree***Bachelor\'s degree***Graduate or Professional degree***Prefer not to answer*:*w_choices*:*false***false***false***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*:*Some high school***High school graduate or equivalent***Trade or Vocational Degree***Some college***Associate degree***Bachelor\'s degree***Graduate or Professional degree***Prefer not to answer*:*w_choices_value*:***********************:*w_choices_params*:**:*w_class*:**:*new_field*:*4*:*id*:*type_own_select*:*type*:*In which industry do you work?*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:*Select industry***Agriculture***Engineering***Information Technologies***Media***Local Business*:*w_choices*:*true***false***false***false***false***false*:*w_choices_checked*:*true***false***false***false***false***false*:*w_choices_disabled*:*no*:*w_required*:*no*:*w_value_disabled*:****Agriculture***Engineering***Information Technologies***Media***Local Business*:*w_choices_value*:*****************:*w_choices_params*:*wdform_select*:*w_class*:**:*new_field*:*6*:*id*:*type_radio*:*type*:*What is the annual revenue of your company?*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*right*:*w_field_option_pos*:*no*:*w_hide_label*:*ver*:*w_flow*:*Under $10,000***$10,001 to $50,000***$50,001 to $100,000***$100,001 to $500,000***$500,001 to $1 Million***$1 Million to $10 Million***$10 Million to $50 Million***$50 Million to $100 Million***Over $100 Million*:*w_choices*:*false***false***false***false***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*:*Under $10,000***$10,001 to $50,000***$50,001 to $100,000***$100,001 to $500,000***$500,001 to $1 Million***$1 Million to $10 Million***$10 Million to $50 Million***$50 Million to $100 Million***Over $100 Million*:*w_choices_value*:**************************:*w_choices_params*:**:*w_class*:**:*new_field*:*5*:*id*:*type_captcha*:*type*:*Enter characters for verification.*:*w_field_label*:**:*w_field_label_size*:*left*:*w_field_label_pos*:*yes*:*w_hide_label*:*6*:*w_digit*:**:*w_class*:**:*new_field*:*1*:*id*:*type_submit_reset*:*type*:*type_submit_reset_1*:*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', '0', '1', 'Business Demographic Survey', 'Thank you for joining our business demographic survey. Please give us your feedback by filling in the information bellow.', '', 'none', '1', '0');");
|
| 289 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 290 |
}
|
| 291 |
}
|
| 292 |
}
|
| 143 |
if (!$form_maker_theme_row) {
|
| 144 |
$default = json_encode(array('AGPWidth' => '70', 'AGPSPWidth' => '30', 'HPAlign' => 'top', 'HTPWidth' => '40', 'HPTextAlign' => 'center', 'HTPFontSize' => '24', 'HDPFontSize' => '15', 'HIPAlign' => 'top', 'HIPWidth' => '80', 'GPWidth' => '100', 'GTPWidth' => '60', 'SPAlign' => 'left', 'PSAPAlign' => 'right', 'PPAPWidth' => '100%', 'CBPPosition' => 'absolute', 'CBPTop' => '10px', 'CBPRight' => '10px', 'PSAPBGColor' =>'#7f7f7f', 'PSAPPadding' => '8px', 'PSDPBGColor' => '#999999', 'PSDPPadding' => '4px 6px', 'PSDPMargin' => '0 0 10px 0', 'FPMargin' => '15px 0 0 0', 'IPHeight' =>'40', 'IPFontSize' => '16', 'IPPadding' => '6px 10px', 'IPBorderTop' => 'top', 'IPBorderRight' => 'right', 'IPBorderBottom' => 'bottom', 'IPBorderLeft' => 'left', 'IPBorderColor' => '#dfdfdf', 'IPBorderType' => 'solid', 'IPBorderWidth' => '1', 'IPBorderRadius' => '2', 'GPMLFontSize' => '12', 'GPMLFontWeight' => 'normal', 'OPRColor' => '#FF0000' ));
|
| 145 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Default Theme", \'' . $default .'\', 1, 2);');
|
| 146 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 1", \'{"GPFontFamily":"tahoma","AGPWidth":"100","AGPSPWidth":"30","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#96afab","HPWidth":"100","HTPWidth":"40","HPPadding":"10px 0","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"24","HTPWeight":"normal","HTPColor":"#ffffff","HDPFontSize":"15","HDPColor":"#607370","HIPAlign":"top","HIPWidth":"80","HIPHeight":"","GPBGColor":"","GPFontSize":"16","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#607370","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#868686","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"","SEPPadding":"","SEPMargin":"","COPPadding":"15px 20px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"40","IPFontSize":"14","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#868686","IPPadding":"6px 10px","IPMargin":"0","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#868686","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#868686","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#868686","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#e74c3c","SPWidth":"","SPHeight":"","SPFontSize":"16","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"5px 8px","SPMargin":"0 15px 0 0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#e74c3c","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#701e16","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#701e16","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#96afab","BPWidth":"","BPHeight":"","BPFontSize":"16","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"5px 8px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#8a8a8a","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#5a7784","BHPColor":"#ffffff","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#5a7784","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#e74c3c","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"6px","PSAPMargin":"0 1px 0 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#e74c3c","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"0","PSDPBGColor":"#ededed","PSDPFontSize":"14","PSDPFontWeight":"normal","PSDPColor":"#737373","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"3px 5px","PSDPMargin":"0 1px 0 0 ","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#ededed","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"0","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#607370","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#96afab","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#607370","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#96afab","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"20","CBPFontWeight":"normal","CBPColor":"#777777","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#e74c3c","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#96afab","MBPFontSize":"17","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#96afab","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#96afab","MBHPColor":"#607370","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#96afab","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ff1313","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
| 147 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 2", \'{"GPFontFamily":"Roboto Condensed","AGPWidth":"100","AGPSPWidth":"30","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#16afbf","HPWidth":"100","HTPWidth":"40","HPPadding":"10px 10px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"25","HTPWeight":"","HTPColor":"#ffffff","HDPFontSize":"16","HDPColor":"#387185","HIPAlign":"top","HIPWidth":"80","HIPHeight":"","GPBGColor":"#ededed","GPFontSize":"16","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#387185","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#777777","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#ededed","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"40","IPFontSize":"16","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#777777","IPPadding":"5px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#777777","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#777777","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#777777","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#a3aa44","SPWidth":"","SPHeight":"","SPFontSize":"16","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"8px 8px","SPMargin":"0 5px 0 0 ","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#a3aa44","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"1px 1px 2px #ccc","SHPBGColor":"#c2d852","SHPColor":"#445d71","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#c2d852","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#16afbf","BPWidth":"","BPHeight":"","BPFontSize":"16","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"8px 8px","BPMargin":"0 15px 0 0 ","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#16afbf","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"1px 1px 2px #ccc","BHPBGColor":"#435c71","BHPColor":"#ffffff","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#435c71","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#a3aa44","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#a3aa44","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#16afbf","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#16afbf","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#16afbf","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#387185","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#9c9c9c","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#2d4d5f","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"22","CBPFontWeight":"normal","CBPColor":"#387185","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#a3aa44","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#16afbf","MBPFontSize":"17","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#387185","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#16afbf","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#387185","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ff1313","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
| 148 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 3", \'{"GPFontFamily":"Droid Sans","AGPWidth":"80","AGPSPWidth":"30","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#b7b7b7","HPWidth":"100","HTPWidth":"35","HPPadding":"10px 13px 25px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"25","HTPWeight":"","HTPColor":"#ffffff","HDPFontSize":"16","HDPColor":"#354f5d","HIPAlign":"top","HIPWidth":"80","HIPHeight":"","GPBGColor":"#ededed","GPFontSize":"16","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"65","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#627781","GPPadding":"10px","GPMargin":"-25px 0 0 ","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#627781","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#f3f3f3","SEPPadding":"10px 15px","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"40","IPFontSize":"16","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#627781","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#627781","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#777777","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#627781","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#676767","SPWidth":"","SPHeight":"40","SPFontSize":"16","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"5px 8px","SPMargin":"0px","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#676767","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"1px 1px 2px #ccc","SHPBGColor":"#ededed","SHPColor":"#676767","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#676767","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#f3f3f3","BPWidth":"","BPHeight":"","BPFontSize":"14","BPFontWeight":"normal","BPColor":"#777777","BPPadding":"5px 8px","BPMargin":"0px","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#ededed","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"1px 1px 2px #ccc","BHPBGColor":"#ededed","BHPColor":"#777777","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#ededed","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#354f5d","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#354f5d","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#b7b7b7","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#b7b7b7","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#838383","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#387185","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#9c9c9c","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#2d4d5f","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"18","CBPFontWeight":"normal","CBPColor":"#838383","CBPPadding":"3px 5px","CBPMargin":"0px","CBPBorderColor":"","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"30","CBHPBGColor":"","CBHPColor":"#ffffff","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#f3f3f3","MBPFontSize":"17","MBPFontWeight":"normal","MBPColor":"#354f5d","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#354f5d","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#b7b7b7","MBHPColor":"#354f5d","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#354f5d","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ff1313","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
| 149 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 4", \'{"GPFontFamily":"Patrick Hand","AGPWidth":"100","AGPSPWidth":"30","AGPPadding":"","AGPMargin":"10px auto","AGPBorderTop":"top","AGPBorderRight":"right","AGPBorderBottom":"bottom","AGPBorderLeft":"left","AGPBorderColor":"#606060","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#ffffff","HPWidth":"100","HTPWidth":"30","HPPadding":"10px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"26","HTPWeight":"","HTPColor":"#930912","HDPFontSize":"17","HDPColor":"#666666","HIPAlign":"left","HIPWidth":"80","HIPHeight":"","GPBGColor":"#d8d8d8","GPFontSize":"16","GPFontWeight":"bold","GPWidth":"100","GTPWidth":"70","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#2d4d5f","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#2d4d5f","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#d8d8d8","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"30","IPFontSize":"14","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#9c9c9c","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#777777","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#777777","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#777777","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#930912","SPWidth":"","SPHeight":"","SPFontSize":"16","SPFontWeight":"normal","SPColor":"#e8e8e8","SPPadding":"5px 8px","SPMargin":"0 15px 0 0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#930912","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"1px 1px 2px #ccc","SHPBGColor":"#51030b","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#51030b","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#666666","BPWidth":"","BPHeight":"","BPFontSize":"16","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"5px 8px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#666666","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"1px 1px 2px #ccc","BHPBGColor":"#2d4d5f","BHPColor":"#ffffff","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#2d4d5f","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#930912","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#930912","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#2d4d5f","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#2d4d5f","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#666666","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#930912","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#666666","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#930912","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"-10px","CBPRight":"5px","CBPBottom":"","CBPLeft":"","CBPBGColor":"#ffffff","CBPFontSize":"12","CBPFontWeight":"normal","CBPColor":"#930912","CBPPadding":"5px 7px","CBPMargin":"0px","CBPBorderTop":"top","CBPBorderRight":"right","CBPBorderBottom":"bottom","CBPBorderLeft":"left","CBPBorderColor":"#606060","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"15","CBHPBGColor":"#ffffff","CBHPColor":"#2d4d5f","CBHPBorderTop":"top","CBHPBorderRight":"right","CBHPBorderBottom":"bottom","CBHPBorderLeft":"left","CBHPBorderColor":"#606060","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#ffffff","MBPFontSize":"17","MBPFontWeight":"normal","MBPColor":"#930912","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#606060","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#666666","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#930912","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ff1313","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
| 150 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 5", \'{"GPFontFamily":"cursive","AGPWidth":"100","AGPSPWidth":"40","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#aee2de","HPWidth":"100","HTPWidth":"40","HPPadding":"10px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"19","HTPWeight":"normal","HTPColor":"#042325","HDPFontSize":"13","HDPColor":"#518a88","HIPAlign":"left","HIPWidth":"80","HIPHeight":"","GPBGColor":"#214555","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#d4d4d4","GPPadding":"10px 20px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#d4d4d4","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#214555","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"40","IPFontSize":"16","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#518a88","IPPadding":"5px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#518a88","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#518a88","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#518a88","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#f46322","SPWidth":"130","SPHeight":"40","SPFontSize":"14","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"0px 5px","SPMargin":"0 15px 0 0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#f46322","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#f46322","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#f46322","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#bababa","BPWidth":"","BPHeight":"40","BPFontSize":"14","BPFontWeight":"normal","BPColor":"#454545","BPPadding":"0px 5px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#bababa","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#bababa","BHPColor":"#454545","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#bababa","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#f46322","PSAPFontSize":"14","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0","PSAPBorderColor":"","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#bababa","PSDPFontSize":"13","PSDPFontWeight":"normal","PSDPColor":"#518a88","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderColor":"#a3a3a3","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"left","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#f46322","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#d4d4d4","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#d4d4d4","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#f46322","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"6px","CBPRight":"6px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"18","CBPFontWeight":"normal","CBPColor":"#f46322","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#214555","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#aee2de","MBPFontSize":"15","MBPFontWeight":"normal","MBPColor":"#000000","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#518a88","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#518a88","MBHPColor":"#ffffff","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#518a88","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ff1313","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
| 151 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 6", \'{"GPFontFamily":"PT Sans","AGPWidth":"100","AGPSPWidth":"35","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#ffffff","HPWidth":"100","HTPWidth":"40","HPPadding":"10px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"27","HTPWeight":"bold","HTPColor":"#1d6d69","HDPFontSize":"15","HDPColor":"#808080","HIPAlign":"left","HIPWidth":"80","HIPHeight":"","GPBGColor":"#3a9391","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#ffffff","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#ffffff","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#3a9391","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"80","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#a0a0a0","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#d6d6d6","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#ffffff","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#ffffff","SCCPWidth":"8","SCCPHeight":"8","SCCPMargin":"3","SCCPBorderRadius":"10","MCPBGColor":"","MCPWidth":"14","MCPHeight":"14","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#ffffff","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"#ffffff","MCCPBackground":"","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"10","MCCPHeight":"10","MCCPMargin":"2","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#ffb33a","SPWidth":"","SPHeight":"","SPFontSize":"15","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"6px 10px","SPMargin":"0 15px 0 0","SPBorderColor":"#1d6d69","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"2px 2px 2px #1d6d69","SHPBGColor":"#f60c5b","SHPColor":"#ffffff","SHPBorderColor":"#ffffff","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#1d6d69","BPWidth":"","BPHeight":"","BPFontSize":"15","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"6px 10px","BPMargin":"0 15px 0 0","BPBorderColor":"#357773","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"2px 2px 2px #1d6d69","BHPBGColor":"#35a098","BHPColor":"#ffffff","BHPBorderColor":"#ffffff","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#ffb33a","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#ffb33a","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#1d6d69","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#1d6d69","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#ffffff","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#018c8b","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#ffffff","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#d82534","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"16","CBPFontWeight":"lighter","CBPColor":"#ffb33a","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#f60c5b","CBHPBorderColor":"#ffffff","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#1d6d69","MBPFontSize":"16","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#1d6d69","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#1d6d69","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#1d6d69","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ffffff","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
| 152 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 7", \'{"GPFontFamily":"PT Sans","AGPWidth":"100","AGPSPWidth":"35","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#ffffff","HPWidth":"100","HTPWidth":"40","HPPadding":"10px 0","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"27","HTPWeight":"bold","HTPColor":"#3596d4","HDPFontSize":"15","HDPColor":"#808080","HIPAlign":"left","HIPWidth":"80","HIPHeight":"","GPBGColor":"#2d4d5f","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#ffffff","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#ffffff","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#2d4d5f","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"80","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#a0a0a0","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#d6d6d6","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#ffffff","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#ffffff","SCCPWidth":"8","SCCPHeight":"8","SCCPMargin":"3","SCCPBorderRadius":"10","MCPBGColor":"","MCPWidth":"14","MCPHeight":"14","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#ffffff","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"#ffffff","MCCPBackground":"","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"10","MCCPHeight":"10","MCCPMargin":"2","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#ffb33a","SPWidth":"","SPHeight":"","SPFontSize":"15","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"6px 10px","SPMargin":"0 15px 0 0 ","SPBorderColor":"#ffffff","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"2px 2px 2px #1f3c4c","SHPBGColor":"#ba9911","SHPColor":"#ffffff","SHPBorderColor":"#ffffff","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#44acf0","BPWidth":"","BPHeight":"","BPFontSize":"15","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"6px 10px","BPMargin":"0 15px 0 0 ","BPBorderColor":"#ffffff","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"2px 2px 2px #1f3c4c","BHPBGColor":"#44acf0","BHPColor":"#ffffff","BHPBorderColor":"#ffffff","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#44acf0","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#44acf0","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#ffffff","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#808080","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#808080","PSDPBorderType":"solid","PSDPBorderWidth":"1","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#ffffff","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#ba9911","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#ffffff","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#ba9911","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"16","CBPFontWeight":"lighter","CBPColor":"#808080","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#ffb33a","CBHPBorderColor":"#ffffff","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#ffffff","MBPFontSize":"16","MBPFontWeight":"normal","MBPColor":"#3596d4","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#2d4d5f","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#3596d4","MBHPColor":"#ffffff","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#2d4d5f","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ffb33a","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
| 153 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 8", \'{"GPFontFamily":"PT Sans","AGPWidth":"100","AGPSPWidth":"35","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#435c71","HPWidth":"100","HTPWidth":"40","HPPadding":"20px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"30","HTPWeight":"bold","HTPColor":"#e6c41b","HDPFontSize":"15","HDPColor":"#ffffff","HIPAlign":"right","HIPWidth":"40","HIPHeight":"26","GPBGColor":"#f8f8f8","GPFontSize":"15","GPFontWeight":"bold","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#3b3b3b","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"11","GPMLFontWeight":"normal","GPMLColor":"#3b3b3b","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#f8f8f8","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"80","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"40","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#6e6e6e","IPPadding":"6px 10px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#989898","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/3.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#989898","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#989898","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"4","SCCPBorderRadius":"10","MCPBGColor":"","MCPWidth":"14","MCPHeight":"14","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#989898","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/3.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0 0 2px 0","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#f05e22","SPWidth":"","SPHeight":"","SPFontSize":"15","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"6px 10px","SPMargin":"0 15px 0 0 ","SPBorderColor":"#9eaab1","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"2px 2px 2px #9eaab1","SHPBGColor":"#d82534","SHPColor":"#ffffff","SHPBorderColor":"#ffffff","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#f1cb15","BPWidth":"","BPHeight":"","BPFontSize":"15","BPFontWeight":"normal","BPColor":"#424242","BPPadding":"6px 10px","BPMargin":"0 15px 0 0 ","BPBorderColor":"#ffffff","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"2px 2px 2px #9eaab1","BHPBGColor":"#435c71","BHPColor":"#e6c41b","BHPBorderColor":"#ffffff","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#f05e22","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#f05e22","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#ffffff","PSDPFontSize":"16","PSDPFontWeight":"bold","PSDPColor":"#435c71","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#435c71","PSDPBorderType":"solid","PSDPBorderWidth":"1","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#3b3b3b","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#d82534","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#3b3b3b","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#d82534","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"16","CBPFontWeight":"lighter","CBPColor":"#e6c41b","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#d82534","CBHPBorderColor":"#ffffff","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#435c71","MBPFontSize":"16","MBPFontWeight":"normal","MBPColor":"#e6c41b","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#435c71","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#e6c41b","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#435c71","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#f05e22","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
| 154 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 9", \'{"GPFontFamily":"Open Sans Condensed","AGPWidth":"100","AGPSPWidth":"35","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"left","HPBGColor":"#4d4d4d","HPWidth":"50","HTPWidth":"40","HPPadding":"10px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"26","HTPWeight":"bold","HTPColor":"#ffffff","HDPFontSize":"14","HDPColor":"#b95d3c","HIPAlign":"top","HIPWidth":"80","HIPHeight":"","GPBGColor":"#f8f8f8","GPFontSize":"15","GPFontWeight":"bold","GPWidth":"50","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#3b3b3b","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#3b3b3b","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#f8f8f8","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"80","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#6e6e6e","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#989898","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/3.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#989898","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#989898","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"4","SCCPBorderRadius":"10","MCPBGColor":"","MCPWidth":"14","MCPHeight":"14","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#989898","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/3.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0 0 2px 0","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#f05e22","SPWidth":"","SPHeight":"","SPFontSize":"15","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"6px 10px","SPMargin":"","SPBorderColor":"#9eaab1","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"2px 2px 2px #9eaab1","SHPBGColor":"#d82534","SHPColor":"#ffffff","SHPBorderColor":"#ffffff","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#f1cb15","BPWidth":"","BPHeight":"","BPFontSize":"15","BPFontWeight":"normal","BPColor":"#424242","BPPadding":"6px 10px","BPMargin":"0 15px 0 0 ","BPBorderColor":"#ffffff","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"2px 2px 2px #9eaab1","BHPBGColor":"#435c71","BHPColor":"#e6c41b","BHPBorderColor":"#ffffff","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#f05e22","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0","PSAPBorderColor":"","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#ffffff","PSDPFontSize":"16","PSDPFontWeight":"bold","PSDPColor":"#435c71","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#435c71","PSDPBorderType":"solid","PSDPBorderWidth":"1","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#3b3b3b","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#d82534","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#3b3b3b","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#d82534","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"16","CBPFontWeight":"lighter","CBPColor":"#e6c41b","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#d82534","CBHPBorderColor":"#ffffff","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#4d4d4d","MBPFontSize":"16","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#4d4d4d","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#f05e22","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#f05e22","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#f05e22","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
| 155 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 10", \'{"GPFontFamily":"arial","AGPWidth":"100","AGPSPWidth":"35","AGPPadding":"","AGPMargin":"10px auto","AGPBorderTop":"top","AGPBorderRight":"right","AGPBorderBottom":"bottom","AGPBorderLeft":"left","AGPBorderColor":"#00bff3","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#00bff3","HPWidth":"100","HTPWidth":"30","HPPadding":"10px","HPMargin":"","HPTextAlign":"left","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"25","HTPWeight":"bold","HTPColor":"#ffffff","HDPFontSize":"14","HDPColor":"#ffffff","HIPAlign":"left","HIPWidth":"41","HIPHeight":"31","GPBGColor":"#ffffff","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"100","GPAlign":"left","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#494949","GPPadding":"15px 15px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#494949","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#ffffff","SEPPadding":"","SEPMargin":"","COPPadding":"10px 20px 10px 10px","COPMargin":"0px","FPWidth":"80","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"30","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#6e6e6e","IPPadding":"6px 6px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#00bff3","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/3.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#00bff3","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#989898","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"4","SCCPBorderRadius":"10","MCPBGColor":"","MCPWidth":"14","MCPHeight":"14","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#00bff3","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/3.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0 0 2px 0","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#000000","SPWidth":"","SPHeight":"","SPFontSize":"15","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"5px 10px","SPMargin":"","SPBorderColor":"#b0b5b8","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"6","SPBoxShadow":"2px 2px 2px #b0b5b8","SHPBGColor":"#000000","SHPColor":"#ffffff","SHPBorderColor":"#ffffff","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#dfc97a","BPWidth":"","BPHeight":"","BPFontSize":"15","BPFontWeight":"normal","BPColor":"#272727","BPPadding":"15px 20px","BPMargin":"0 15px 0 0 ","BPBorderColor":"#ffffff","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"2px 2px 2px #b0b5b8","BHPBGColor":"#2d4d5f","BHPColor":"#ffffff","BHPBorderColor":"#ffffff","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#139e92","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0","PSAPBorderColor":"","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#f8f8f8","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#272727","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#dfc97a","PSDPBorderType":"solid","PSDPBorderWidth":"1","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#3b3b3b","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#137065","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#3b3b3b","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#137065","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"16","CBPFontWeight":"lighter","CBPColor":"#757575","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#139e92","CBHPBorderColor":"#ffffff","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#139e92","MBPFontSize":"16","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#139e92","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#137065","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#137065","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#f82c2c","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":"div[type=\\\\"type_section_break\\\\"] {\\\\r\\\\n display: none !important;\\\\r\\\\n}\\\\r\\\\ndiv[wdid=\\\\"12\\\\"] {\\\\r\\\\n border: 1px solid #00bff3;\\\\r\\\\n padding: 10px 30px 0px;\\\\r\\\\n}\\\\r\\\\ninput.time_box {\\\\r\\\\n width: 40px;\\\\r\\\\n}"}\', 0, 2);');
|
| 156 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 11", \'{"GPFontFamily":"Roboto","AGPWidth":"100","AGPSPWidth":"40","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#f2ecde","HPWidth":"100","HTPWidth":"40","HPPadding":"10px 15px","HPMargin":"","HPTextAlign":"left","HPBorderTop":"top","HPBorderColor":"#7a134b","HPBorderType":"solid","HPBorderWidth":"4","HPBorderRadius":"0","HTPFontSize":"19","HTPWeight":"bold","HTPColor":"#042325","HDPFontSize":"14","HDPColor":"#8a877f","HIPAlign":"right","HIPWidth":"80","HIPHeight":"","GPBGColor":"#d8d5c6","GPFontSize":"14","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#37352f","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#37352f","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#d8d5c6","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"28","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#b7b3a7","IPColor":"#ffffff","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#b7b3a7","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#7a134b","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#7a134b","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"4","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"12","MCPHeight":"12","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#7a134b","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"#7a134b","MCCPBackground":"","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"8","MCCPHeight":"8","MCCPMargin":"2","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#7a134b","SPWidth":"130","SPHeight":"28","SPFontSize":"14","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"0px 5px","SPMargin":"0 10px 0 0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#7a134b","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#630538","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#630538","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#f2ecde","BPWidth":"60","BPHeight":"28","BPFontSize":"14","BPFontWeight":"normal","BPColor":"#37352f","BPPadding":"0px 5px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#f2ecde","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#f2ecde","BHPColor":"#37352f","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#f2ecde","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#7a134b","PSAPFontSize":"14","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 -2px 0","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderLeft":"left","PSAPBorderColor":"#7a134b","PSAPBorderType":"solid","PSAPBorderWidth":"3","PSAPBorderRadius":"0","PSDPBGColor":"#f2ecde","PSDPFontSize":"14","PSDPFontWeight":"normal","PSDPColor":"#000000","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"8px","PSDPMargin":"0 0 0 -3px","PSDPBorderColor":"#a3a3a3","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"","PSAPAlign":"left","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#7a134b","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#630538","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#7a134b","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#630538","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"6px","CBPRight":"6px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"18","CBPFontWeight":"normal","CBPColor":"#7a134b","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#630538","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#f2ecde","MBPFontSize":"15","MBPFontWeight":"normal","MBPColor":"#000000","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderColor":"#7a134b","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#f2ecde","MBHPColor":"#7a134b","MBHPBorderTop":"top","MBHPBorderColor":"#7a134b","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#ffffff","OPFontStyle":"normal","OPRColor":"#ff1313","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
| 157 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 12", \'{"GPFontFamily":"trebuchet ms","AGPWidth":"100","AGPSPWidth":"40","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#5d98b1","HPWidth":"100","HTPWidth":"40","HPPadding":"10px 15px","HPMargin":"","HPTextAlign":"left","HPBorderTop":"top","HPBorderColor":"#ffffff","HPBorderType":"solid","HPBorderWidth":"5","HPBorderRadius":"0","HTPFontSize":"22","HTPWeight":"bold","HTPColor":"#ffffff","HDPFontSize":"14","HDPColor":"#ffffff","HIPAlign":"left","HIPWidth":"80","HIPHeight":"","GPBGColor":"#36748e","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#ffffff","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#ffffff","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#36748e","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"28","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#204a5c","IPColor":"#ffffff","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#204a5c","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#204a5c","SCPWidth":"14","SCPHeight":"14","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#204a5c","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#ffffff","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"4","SCCPBorderRadius":"10","MCPBGColor":"#204a5c","MCPWidth":"12","MCPHeight":"12","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#204a5c","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"#ffffff","MCCPBackground":"","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"8","MCCPHeight":"8","MCCPMargin":"2","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#1e6466","SPWidth":"130","SPHeight":"28","SPFontSize":"14","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"0px 5px","SPMargin":"0 10px 0 0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#1e6466","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#268285","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#268285","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#d4d4d4","BPWidth":"60","BPHeight":"28","BPFontSize":"15","BPFontWeight":"normal","BPColor":"#11393a","BPPadding":"0px 5px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#d4d4d4","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#f2ecde","BHPColor":"#37352f","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#f2ecde","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#268285","PSAPFontSize":"14","PSAPFontWeight":"bold","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"10px","PSAPMargin":"0","PSAPBorderColor":"","PSAPBorderType":"solid","PSAPBorderWidth":"4","PSAPBorderRadius":"0","PSDPBGColor":"#d4d4d4","PSDPFontSize":"14","PSDPFontWeight":"normal","PSDPColor":"#100e0e","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"8px","PSDPMargin":"0 0 0 -3px","PSDPBorderColor":"#a3a3a3","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"","PSAPAlign":"center","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#132d39","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#132d39","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#132d39","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#132d39","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"6px","CBPRight":"6px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"18","CBPFontWeight":"normal","CBPColor":"#1e6466","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#204a5c","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#204a5c","MBPFontSize":"15","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#204a5c","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#5d98b1","MBHPColor":"#ffffff","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#5d98b1","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#ffffff","OPFontStyle":"normal","OPRColor":"#ff1313","OPDPIcon":"images/themes/date-pickers/5.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
| 158 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 13", \'{"GPFontFamily":"tahoma","AGPWidth":"100","AGPSPWidth":"20","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#43aeab","HPWidth":"100","HTPWidth":"40","HPPadding":"20px 0","HPMargin":"0","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"20","HTPWeight":"normal","HTPColor":"#ffffff","HDPFontSize":"13","HDPColor":"#ffffff","HIPAlign":"top","HIPWidth":"80","HIPHeight":"","GPBGColor":"#ffffff","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#676767","GPPadding":"10px 0","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#9c9c9c","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#ffffff","SEPPadding":"","SEPMargin":"","COPPadding":"15px 20px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"28","IPFontSize":"14","IPFontWeight":"normal","IPBGColor":"#e4e4e4","IPColor":"#9a9a9a","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#e4e4e4","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#868686","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#868686","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#868686","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#f38989","SPWidth":"","SPHeight":"","SPFontSize":"16","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"5px 8px","SPMargin":"0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#f38989","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#c17777","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#c17777","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#ffffff","BPWidth":"","BPHeight":"","BPFontSize":"16","BPFontWeight":"normal","BPColor":"#8c8c8c","BPPadding":"5px 8px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#43aeab","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#43aeab","BHPColor":"#ffffff","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#787878","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#f38989","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"6px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#f38989","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"0","PSDPBGColor":"#a5a5a5","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"2px 4px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#a3a3a3","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"0","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#43aeab","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#777777","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#43aeab","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#777777","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"18","CBPFontWeight":"normal","CBPColor":"#ffffff","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#f38989","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#b7b7b7","MBPFontSize":"17","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#8f8f8f","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#8f8f8f","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#8f8f8f","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#aeaeae","OPFontStyle":"normal","OPRColor":"#cf1515","OPDPIcon":"images/themes/date-pickers/5.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":".mwd-header-text { padding: 15px 15px 0; }"}\', 0, 2);');
|
| 159 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `css`, `default`, `version`) VALUES ("Theme 14", \'{"GPFontFamily":"tahoma","AGPWidth":"100","AGPSPWidth":"40","AGPPadding":"","AGPMargin":"10px auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#386f74","HPWidth":"100","HTPWidth":"26","HPPadding":"0 20px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"19","HTPWeight":"normal","HTPColor":"#ffffff","HDPFontSize":"13","HDPColor":"#ffffff","HIPAlign":"left","HIPWidth":"40","HIPHeight":"","GPBGColor":"#5dbac2","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"74","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#ffffff","GPPadding":"0","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#ffffff","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#5dbac2","SEPPadding":"","SEPMargin":"","COPPadding":"15px 20px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"28","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#868686","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#ffffff","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#868686","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#868686","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#868686","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#f6c37a","SPWidth":"","SPHeight":"","SPFontSize":"14","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"5px 15px","SPMargin":"0 15px 0 0","SPBorderBottom":"bottom","SPBorderColor":"#ffffff","SPBorderType":"solid","SPBorderWidth":"3","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#f4b459","SHPColor":"#ffffff","SHPBorderBottom":"bottom","SHPBorderColor":"#ffffff","SHPBorderType":"solid","SHPBorderWidth":"3","BPBGColor":"#5dbac2","BPWidth":"","BPHeight":"","BPFontSize":"14","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"5px 8px","BPMargin":"0 15px 0 0","BPBorderColor":"#ffffff","BPBorderType":"solid","BPBorderWidth":"3","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#5dbac2","BHPColor":"#ffffff","BHPBorderColor":"#ffffff","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#e74c3c","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#e74c3c","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#a5a5a5","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#a3a3a3","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#e74c3c","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#2d4d5f","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#9c9c9c","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#2d4d5f","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"22px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"20","CBPFontWeight":"normal","CBPColor":"#ffffff","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#f6c37a","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#f6c37a","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#386f74","MBPFontSize":"15","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#386f74","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#5dbac2","MBHPColor":"#ffffff","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#5dbac2","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#386f74","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
| 160 |
}
|
| 161 |
|
| 162 |
$formmaker_views = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix . "formmaker_views` (
|
| 282 |
global $wpdb;
|
| 283 |
$form_maker_row = $wpdb->get_var("SELECT * FROM " . $wpdb->prefix . "formmaker");
|
| 284 |
if ( !$form_maker_row ) {
|
| 285 |
+
$insert_form_id = array();
|
| 286 |
+
$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`, `jsversion`) VALUES (NULL, 'Contact Us', 'embedded', '', '<div class=\"wdform-page-and-images\"><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\"><div wdid=\"2\" class=\"wdform_row\">%2 - Name%</div><div wdid=\"3\" class=\"wdform_row\">%3 - Email%</div><div wdid=\"4\" class=\"wdform_row\">%4 - Subject%</div><div wdid=\"5\" class=\"wdform_row\">%5 - Message%</div><div wdid=\"1\" class=\"wdform_row\">%1 - type_submit_reset_1%</div></div></div><div valign=\"top\" class=\"wdform_footer wd-width-100\"><div class=\"wd-width-100\"><div class=\"wd-width-100 wd-table\" style=\"padding-top:10px;\"><div class=\"wd-table-group\"><div id=\"form_id_temppage_nav1\" class=\"wd-table-row\"></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}', '', '', '1', '%all%', '%all%', '6', '1', '2#**id**#Name#**label**#type_text#****#3#**id**#Email#**label**#type_submitter_mail#****#4#**id**#Subject#**label**#type_text#****#5#**id**#Message#**label**#type_textarea#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#2_elementform_id_temp#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '2#**id**#Name#**label**#type_text#****#3#**id**#Email#**label**#type_submitter_mail#****#4#**id**#Subject#**label**#type_text#****#5#**id**#Message#**label**#type_textarea#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '0', 'none', '', '1', '', '', '', '0', 'testmode', '', '', '0', '2*:*id*:*type_text*:*type*:*Name*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*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*:*Email*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no*:*w_verification*:*Email confirmation*:*w_verification_label*:**:*w_verification_placeholder*:*no*:*w_autofill*:**:*new_field*:*4*:*id*:*type_text*:*type*:*Subject*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*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*:*5*:*id*:*type_textarea*:*type*:*Message*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size_w*:*100*:*w_size_h*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*1*:*id*:*type_submit_reset*:*type*:*type_submit_reset_1*:*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', '0', '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.', '', 'none', '0', '0');");
|
| 287 |
+
$insert_form_id[] = $wpdb->insert_id;
|
| 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`, `jsversion`) VALUES (NULL, 'Client List Form', 'embedded', '', '<div class=\"wdform-page-and-images\"><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\"><div wdid=\"2\" class=\"wdform_row\">%2 - First Name%</div><div wdid=\"3\" class=\"wdform_row\">%3 - Last Name%</div><div wdid=\"4\" class=\"wdform_row\">%4 - Email%</div><div wdid=\"5\" class=\"wdform_row\">%5 - Phone%</div><div wdid=\"6\" class=\"wdform_row\">%6 - Website%</div><div wdid=\"7\" class=\"wdform_row\">%7 - Address%</div><div wdid=\"1\" class=\"wdform_row\">%1 - type_submit_reset_1%</div></div></div><div valign=\"top\" class=\"wdform_footer wd-width-100\"><div class=\"wd-width-100\"><div class=\"wd-width-100 wd-table\" style=\"padding-top:10px;\"><div class=\"wd-table-group\"><div id=\"form_id_temppage_nav1\" class=\"wd-table-row\"></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}', '', '', '1', '%all%', '%all%', '13', '1', '2#**id**#First Name#**label**#type_text#****#3#**id**#Last Name#**label**#type_text#****#4#**id**#Email#**label**#type_submitter_mail#****#5#**id**#Phone#**label**#type_text#****#6#**id**#Website#**label**#type_text#****#7#**id**#Street Address#**label**#type_address#****#8#**id**#Street Address Line 2#**label**#type_address#****#9#**id**#City#**label**#type_address#****#10#**id**#State / Province / Region#**label**#type_address#****#11#**id**#Postal / Zip Code#**label**#type_address#****#12#**id**#Country#**label**#type_address#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#7_street1form_id_temp#**id**#type_submit_reset_1#**label**#type_submit_reset#****#7_street2form_id_temp#**id**##**label**##****#7_cityform_id_temp#**id**#undefined#**label**#undefined#****#7_stateform_id_temp#**id**#undefined#**label**#undefined#****#7_postalform_id_temp#**id**#undefined#**label**#undefined#****#7_countryform_id_temp#**id**#undefined#**label**#undefined#****#', '2#**id**#First Name#**label**#type_text#****#3#**id**#Last Name#**label**#type_text#****#4#**id**#Email#**label**#type_submitter_mail#****#5#**id**#Phone#**label**#type_text#****#6#**id**#Website#**label**#type_text#****#7#**id**#Street Address#**label**#type_address#****#8#**id**#Street Address Line 2#**label**#type_address#****#9#**id**#City#**label**#type_address#****#10#**id**#State / Province / Region#**label**#type_address#****#11#**id**#Postal / Zip Code#**label**#type_address#****#12#**id**#Country#**label**#type_address#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '0', 'none', '', '1', '', '', '', '0', 'testmode', '', '', '0', '2*:*id*:*type_text*:*type*:*First Name*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*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*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*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_submitter_mail*:*type*:*Email*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no*:*w_verification*:*Email confirmation*:*w_verification_label*:**:*w_verification_placeholder*:*no*:*w_autofill*:**:*new_field*:*5*:*id*:*type_text*:*type*:*Phone*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*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*:*6*:*id*:*type_text*:*type*:*Website*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*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*:*7*:*id*:*type_address*:*type*:*Address*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:*Street Address***Street Address Line 2***City***State / Province / 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*:*1*:*id*:*type_submit_reset*:*type*:*type_submit_reset_1*:*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', '0', '1', '', '', '', 'none', '0', '0');");
|
| 289 |
+
$insert_form_id[] = $wpdb->insert_id;
|
| 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`, `jsversion`) VALUES (NULL, 'Feedback Form', 'embedded', '', '<div class=\"wdform-page-and-images\"><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\"><div wdid=\"3\" class=\"wdform_row\">%3 - Name%</div><div wdid=\"4\" class=\"wdform_row\">%4 - Email%</div><div wdid=\"5\" class=\"wdform_row\" style=\"position: relative; left: 0px; top: 0px;\">%5 - CMS%</div><div wdid=\"6\" class=\"wdform_row\">%6 - Extension%</div><div wdid=\"7\" class=\"wdform_row\">%7 - Plugin%</div><div wdid=\"2\" class=\"wdform_row\" style=\"position: relative; left: 0px; top: 0px;\">%2 - Subject%</div><div wdid=\"8\" class=\"wdform_row\">%8 - Message%</div><div wdid=\"1\" class=\"wdform_row\">%1 - type_submit_reset_1%</div></div></div><div valign=\"top\" class=\"wdform_footer wd-width-100\"><div class=\"wd-width-100\"><div class=\"wd-width-100 wd-table\" style=\"padding-top:10px;\"><div class=\"wd-table-group\"><div id=\"form_id_temppage_nav1\" class=\"wd-table-row\"></div></div></div></div></div></div></div>', '3', '// 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', '3#**id**#Name#**label**#type_name#****#4#**id**#Email#**label**#type_submitter_mail#****#5#**id**#CMS#**label**#type_radio#****#6#**id**#Extension#**label**#type_own_select#****#7#**id**#Plugin#**label**#type_own_select#****#2#**id**#Subject#**label**#type_text#****#8#**id**#Message#**label**#type_textarea#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#2_elementform_id_temp#**id**#Text#**label**#type_text#****#', '3#**id**#Name#**label**#type_name#****#4#**id**#Email#**label**#type_submitter_mail#****#5#**id**#CMS#**label**#type_radio#****#6#**id**#Extension#**label**#type_own_select#****#7#**id**#Plugin#**label**#type_own_select#****#2#**id**#Subject#**label**#type_text#****#8#**id**#Message#**label**#type_textarea#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '0', 'none', '', '1', '', '', '', '0', '0', '', 'USD', '0', '3*:*id*:*type_name*:*type*:*Name*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:***********:*w_first_val*:*First***Last*******:*w_title*:*Title*********Middle*:*w_mini_labels*:**:*w_size*:*normal*:*w_name_format*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no***no*:*w_name_fields*:*no*:*w_autofill*:**:*new_field*:*4*:*id*:*type_submitter_mail*:*type*:*Email*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no*:*w_verification*:*Email confirmation*:*w_verification_label*:**:*w_verification_placeholder*:*no*:*w_autofill*:**:*new_field*:*5*:*id*:*type_radio*:*type*:*CMS*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*right*:*w_field_option_pos*:*no*:*w_hide_label*:*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*:*6*:*id*:*type_own_select*:*type*:*Extension*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:*Select extension***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*:*7*:*id*:*type_own_select*:*type*:*Plugin*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:*Select plugin***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*:*2*:*id*:*type_text*:*type*:*Subject*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*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_textarea*:*type*:*Message*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size_w*:*100*:*w_size_h*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*1*:*id*:*type_submit_reset*:*type*:*type_submit_reset_1*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*true*:*w_act*:**:*new_field*:*', '1', '1', '*', '', '', '', '', '1', '', '', '', '', '1*:*show_hide*:*6*:*field_label*:*and*:*all_any*:*5***==***Joomla!*:*next_condition*:**:*new_condition*:*1*:*show_hide*:*7*:*field_label*:*and*:*all_any*:*5***==***Wordpress*:*next_condition*:**:*new_condition*:*', '', '', '', '', '', '', '1', '1', '1', '1', 'administrator,', '1', '', '', '0', '0', '0', '110', '1', 'Feedback Form', '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', '0', '0');");
|
| 291 |
+
$insert_form_id[] = $wpdb->insert_id;
|
| 292 |
+
$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`, `jsversion`) VALUES (NULL, 'Business Demographic Survey', 'embedded', '', '<div class=\"wdform-page-and-images\"><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\"><div wdid=\"2\" class=\"wdform_row\">%2 - What is your employment status?%</div><div wdid=\"3\" class=\"wdform_row\">%3 - What is your level of education?%</div><div wdid=\"4\" class=\"wdform_row\">%4 - In which industry do you work?%</div><div wdid=\"6\" class=\"wdform_row\">%6 - What is the annual revenue of your company?%</div><div wdid=\"5\" class=\"wdform_row\">%5 - Enter characters for verification.%</div><div wdid=\"1\" class=\"wdform_row\">%1 - type_submit_reset_1%</div></div></div><div valign=\"top\" class=\"wdform_footer wd-width-100\"><div class=\"wd-width-100\"><div class=\"wd-width-100 wd-table\" style=\"padding-top:10px;\"><div class=\"wd-table-group\"><div id=\"form_id_temppage_nav1\" class=\"wd-table-row\"></div></div></div></div></div></div></div>', '4', '// 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%', '7', '1', '2#**id**#What is your employment status?#**label**#type_radio#****#3#**id**#What is your level of education?#**label**#type_radio#****#4#**id**#In which industry do you work?#**label**#type_own_select#****#6#**id**#What is the annual revenue of your company?#**label**#type_radio#****#5#**id**#Enter characters for verification.#**label**#type_captcha#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#6_elementform_id_temp0#**id**#What is your employment status?#**label**#type_radio#****#6_elementform_id_temp1#**id**#What is your level of education?#**label**#type_radio#****#6_elementform_id_temp2#**id**#In which industry do you work?#**label**#type_own_select#****#6_elementform_id_temp3#**id**#Enter characters for verification.#**label**#type_captcha#****#6_elementform_id_temp4#**id**#type_submit_reset_1#**label**#type_submit_reset#****#6_elementform_id_temp5#**id**#type_submit_reset_1#**label**#type_submit_reset#****#6_elementform_id_temp6#**id**##**label**##****#6_elementform_id_temp7#**id**#undefined#**label**#undefined#****#6_elementform_id_temp8#**id**#undefined#**label**#undefined#****#6_elementform_id_temp9#**id**#undefined#**label**#undefined#****#6_elementform_id_temp10#**id**#undefined#**label**#undefined#****#6_elementform_id_temp11#**id**#undefined#**label**#undefined#****#6_elementform_id_temp12#**id**#undefined#**label**#undefined#****#6_elementform_id_temp13#**id**#undefined#**label**#undefined#****#6_elementform_id_temp14#**id**#undefined#**label**#undefined#****#6_elementform_id_temp15#**id**#undefined#**label**#undefined#****#6_elementform_id_temp16#**id**#undefined#**label**#undefined#****#6_elementform_id_temp17#**id**#undefined#**label**#undefined#****#6_elementform_id_temp18#**id**#undefined#**label**#undefined#****#6_elementform_id_temp19#**id**#undefined#**label**#undefined#****#6_elementform_id_temp20#**id**#undefined#**label**#undefined#****#6_elementform_id_temp21#**id**#undefined#**label**#undefined#****#6_elementform_id_temp22#**id**#undefined#**label**#undefined#****#6_elementform_id_temp23#**id**#undefined#**label**#undefined#****#6_elementform_id_temp24#**id**#undefined#**label**#undefined#****#6_elementform_id_temp25#**id**#undefined#**label**#undefined#****#6_elementform_id_temp26#**id**#undefined#**label**#undefined#****#6_elementform_id_temp27#**id**#undefined#**label**#undefined#****#6_elementform_id_temp28#**id**#undefined#**label**#undefined#****#6_elementform_id_temp29#**id**#undefined#**label**#undefined#****#6_elementform_id_temp30#**id**#undefined#**label**#undefined#****#6_elementform_id_temp31#**id**#undefined#**label**#undefined#****#6_elementform_id_temp32#**id**#undefined#**label**#undefined#****#6_elementform_id_temp33#**id**#undefined#**label**#undefined#****#6_elementform_id_temp34#**id**#undefined#**label**#undefined#****#6_elementform_id_temp35#**id**#undefined#**label**#undefined#****#6_elementform_id_temp36#**id**#undefined#**label**#undefined#****#6_elementform_id_temp37#**id**#undefined#**label**#undefined#****#6_elementform_id_temp38#**id**#undefined#**label**#undefined#****#6_elementform_id_temp39#**id**#undefined#**label**#undefined#****#6_elementform_id_temp40#**id**#undefined#**label**#undefined#****#6_elementform_id_temp41#**id**#undefined#**label**#undefined#****#6_elementform_id_temp42#**id**#undefined#**label**#undefined#****#6_elementform_id_temp43#**id**#undefined#**label**#undefined#****#6_elementform_id_temp44#**id**#undefined#**label**#undefined#****#6_elementform_id_temp45#**id**#undefined#**label**#undefined#****#6_elementform_id_temp46#**id**#undefined#**label**#undefined#****#6_elementform_id_temp47#**id**#undefined#**label**#undefined#****#6_elementform_id_temp48#**id**#undefined#**label**#undefined#****#6_elementform_id_temp49#**id**#undefined#**label**#undefined#****#', '2#**id**#What is your employment status?#**label**#type_radio#****#3#**id**#What is your level of education?#**label**#type_radio#****#4#**id**#In which industry do you work?#**label**#type_own_select#****#6#**id**#What is the annual revenue of your company?#**label**#type_radio#****#5#**id**#Enter characters for verification.#**label**#type_captcha#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '0', 'none', '', '1', '', '', '', '0', 'testmode', '', '', '0', '2*:*id*:*type_radio*:*type*:*What is your employment status?*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*right*:*w_field_option_pos*:*no*:*w_hide_label*:*ver*:*w_flow*:*Employed full time***Trade or Vocational degree***Not employed, but looking for work***Not employed and not looking for work***Retired***Student***Homemaker***Prefer not to answer*:*w_choices*:*false***false***false***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*:*Employed full time***Trade or Vocational degree***Not employed, but looking for work***Not employed and not looking for work***Retired***Student***Homemaker***Prefer not to answer*:*w_choices_value*:***********************:*w_choices_params*:**:*w_class*:**:*new_field*:*3*:*id*:*type_radio*:*type*:*What is your level of education?*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*right*:*w_field_option_pos*:*no*:*w_hide_label*:*ver*:*w_flow*:*Some high school***High school graduate or equivalent***Trade or Vocational Degree***Some college***Associate degree***Bachelor\'s degree***Graduate or Professional degree***Prefer not to answer*:*w_choices*:*false***false***false***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*:*Some high school***High school graduate or equivalent***Trade or Vocational Degree***Some college***Associate degree***Bachelor\'s degree***Graduate or Professional degree***Prefer not to answer*:*w_choices_value*:***********************:*w_choices_params*:**:*w_class*:**:*new_field*:*4*:*id*:*type_own_select*:*type*:*In which industry do you work?*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:*Select industry***Agriculture***Engineering***Information Technologies***Media***Local Business*:*w_choices*:*true***false***false***false***false***false*:*w_choices_checked*:*true***false***false***false***false***false*:*w_choices_disabled*:*no*:*w_required*:*no*:*w_value_disabled*:****Agriculture***Engineering***Information Technologies***Media***Local Business*:*w_choices_value*:*****************:*w_choices_params*:*wdform_select*:*w_class*:**:*new_field*:*6*:*id*:*type_radio*:*type*:*What is the annual revenue of your company?*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*right*:*w_field_option_pos*:*no*:*w_hide_label*:*ver*:*w_flow*:*Under $10,000***$10,001 to $50,000***$50,001 to $100,000***$100,001 to $500,000***$500,001 to $1 Million***$1 Million to $10 Million***$10 Million to $50 Million***$50 Million to $100 Million***Over $100 Million*:*w_choices*:*false***false***false***false***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*:*Under $10,000***$10,001 to $50,000***$50,001 to $100,000***$100,001 to $500,000***$500,001 to $1 Million***$1 Million to $10 Million***$10 Million to $50 Million***$50 Million to $100 Million***Over $100 Million*:*w_choices_value*:**************************:*w_choices_params*:**:*w_class*:**:*new_field*:*5*:*id*:*type_captcha*:*type*:*Enter characters for verification.*:*w_field_label*:**:*w_field_label_size*:*left*:*w_field_label_pos*:*yes*:*w_hide_label*:*6*:*w_digit*:**:*w_class*:**:*new_field*:*1*:*id*:*type_submit_reset*:*type*:*type_submit_reset_1*:*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', '0', '1', 'Business Demographic Survey', 'Thank you for joining our business demographic survey. Please give us your feedback by filling in the information bellow.', '', 'none', '1', '0');");
|
| 293 |
+
$insert_form_id[] = $wpdb->insert_id;
|
| 294 |
+
$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`, `jsversion`) VALUES (NULL, 'Cupcake Order Form', 'embedded', '', '<div class=\"wdform-page-and-images\"><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\"><div wdid=\"2\" class=\"wdform_row\">%2 - Name%</div><div wdid=\"3\" class=\"wdform_row\">%3 - Email%</div><div wdid=\"4\" class=\"wdform_row\">%4 - Date%</div><div wdid=\"5\" class=\"wdform_row\">%5 - Cupcakes Flavors (1 doz. minimum)%</div><div wdid=\"6\" class=\"wdform_row\">%6 - Quantity%</div><div wdid=\"7\" class=\"wdform_row\">%7 - Details (if any)%</div><div wdid=\"1\" class=\"wdform_row\">%1 - type_submit_reset_1%</div></div></div><div valign=\"top\" class=\"wdform_footer wd-width-100\"><div class=\"wd-width-100\"><div class=\"wd-width-100 wd-table\" style=\"padding-top:10px;\"><div class=\"wd-table-group\"><div id=\"form_id_temppage_nav1\" class=\"wd-table-row\"></div></div></div></div></div></div></div>', '6', '// 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%', '8', '1', '2#**id**#Name#**label**#type_name#****#3#**id**#Email#**label**#type_submitter_mail#****#4#**id**#Date#**label**#type_date_new#****#5#**id**#Cupcakes Flavors (1 doz. minimum)#**label**#type_radio#****#6#**id**#Quantity#**label**#type_spinner#****#7#**id**#Details (if any)#**label**#type_textarea#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#5_elementform_id_temp0#**id**#Name#**label**#type_name#****#5_elementform_id_temp1#**id**#Email#**label**#type_submitter_mail#****#5_elementform_id_temp2#**id**#Date#**label**#type_date_new#****#5_elementform_id_temp3#**id**#Name:* Email:* Date* Cupcakes Flavors (1 doz. minimum)#**label**#type_radio#****#5_elementform_id_temp4#**id**#Quantity#**label**#type_spinner#****#5_elementform_id_temp5#**id**#Details (if any)#**label**#type_textarea#****#5_elementform_id_temp6#**id**#type_submit_reset_1#**label**#type_submit_reset#****#5_elementform_id_temp7#**id**#Name#**label**#type_name#****#5_elementform_id_temp8#**id**#Email#**label**#type_submitter_mail#****#5_elementform_id_temp9#**id**#Date#**label**#type_date_new#****#5_elementform_id_temp10#**id**#type_submit_reset_1#**label**#type_submit_reset#****#5_elementform_id_temp11#**id**#type_submit_reset_1#**label**#type_submit_reset#****#5_elementform_id_temp12#**id**#undefined#**label**#undefined#****#5_elementform_id_temp13#**id**#undefined#**label**#undefined#****#5_elementform_id_temp14#**id**#undefined#**label**#undefined#****#5_elementform_id_temp15#**id**#undefined#**label**#undefined#****#5_elementform_id_temp16#**id**#undefined#**label**#undefined#****#5_elementform_id_temp17#**id**#undefined#**label**#undefined#****#5_elementform_id_temp18#**id**#undefined#**label**#undefined#****#5_elementform_id_temp19#**id**#undefined#**label**#undefined#****#5_elementform_id_temp20#**id**#undefined#**label**#undefined#****#5_elementform_id_temp21#**id**#undefined#**label**#undefined#****#5_elementform_id_temp22#**id**#undefined#**label**#undefined#****#5_elementform_id_temp23#**id**#undefined#**label**#undefined#****#5_elementform_id_temp24#**id**#undefined#**label**#undefined#****#5_elementform_id_temp25#**id**#undefined#**label**#undefined#****#5_elementform_id_temp26#**id**#undefined#**label**#undefined#****#5_elementform_id_temp27#**id**#undefined#**label**#undefined#****#5_elementform_id_temp28#**id**#undefined#**label**#undefined#****#5_elementform_id_temp29#**id**#undefined#**label**#undefined#****#5_elementform_id_temp30#**id**#undefined#**label**#undefined#****#5_elementform_id_temp31#**id**#undefined#**label**#undefined#****#5_elementform_id_temp32#**id**#undefined#**label**#undefined#****#5_elementform_id_temp33#**id**#undefined#**label**#undefined#****#5_elementform_id_temp34#**id**#undefined#**label**#undefined#****#5_elementform_id_temp35#**id**#undefined#**label**#undefined#****#5_elementform_id_temp36#**id**#undefined#**label**#undefined#****#5_elementform_id_temp37#**id**#undefined#**label**#undefined#****#5_elementform_id_temp38#**id**#undefined#**label**#undefined#****#5_elementform_id_temp39#**id**#undefined#**label**#undefined#****#5_elementform_id_temp40#**id**#undefined#**label**#undefined#****#5_elementform_id_temp41#**id**#undefined#**label**#undefined#****#5_elementform_id_temp42#**id**#undefined#**label**#undefined#****#5_elementform_id_temp43#**id**#undefined#**label**#undefined#****#5_elementform_id_temp44#**id**#undefined#**label**#undefined#****#5_elementform_id_temp45#**id**#undefined#**label**#undefined#****#5_elementform_id_temp46#**id**#undefined#**label**#undefined#****#5_elementform_id_temp47#**id**#undefined#**label**#undefined#****#5_elementform_id_temp48#**id**#undefined#**label**#undefined#****#5_elementform_id_temp49#**id**#undefined#**label**#undefined#****#', '2#**id**#Name#**label**#type_name#****#3#**id**#Email#**label**#type_submitter_mail#****#4#**id**#Date#**label**#type_date_new#****#5#**id**#Cupcakes Flavors (1 doz. minimum)#**label**#type_radio#****#6#**id**#Quantity#**label**#type_spinner#****#7#**id**#Details (if any)#**label**#type_textarea#****#1#**id**#type_submit_reset_1#**label**#type_submit_reset#****#', '0', 'none', '', '1', '', '', '', '0', 'testmode', '', '', '0', '2*:*id*:*type_name*:*type*:*Name*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:***********:*w_first_val*:***********:*w_title*:*Title*********Middle*:*w_mini_labels*:**:*w_size*:*normal*:*w_name_format*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no***no*:*w_name_fields*:*no*:*w_autofill*:**:*new_field*:*3*:*id*:*type_submitter_mail*:*type*:*Email*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:*no*:*w_verification*:*Email confirmation*:*w_verification_label*:**:*w_verification_placeholder*:*no*:*w_autofill*:**:*new_field*:*4*:*id*:*type_date_new*:*type*:*Date*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*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*:*5*:*id*:*type_radio*:*type*:*Cupcakes Flavors (1 doz. minimum)*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*right*:*w_field_option_pos*:*no*:*w_hide_label*:*ver*:*w_flow*:*Red Velvet***Vanilla***Chocolate***Guinness***Coconut***Lemon***Chocolate Mint*:*w_choices*:*false***false***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*:*Red Velvet***Vanilla***Chocolate***Guinness***Coconut***Lemon***Chocolate Mint*:*w_choices_value*:********************:*w_choices_params*:**:*w_class*:**:*new_field*:*6*:*id*:*type_spinner*:*type*:*Quantity*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:*60*:*w_field_width*:**:*w_field_min_value*:**:*w_field_max_value*:*1*:*w_field_step*:*null*:*w_field_value*:*no*:*w_required*:**:*w_class*:**:*new_field*:*7*:*id*:*type_textarea*:*type*:*Details (if any)*:*w_field_label*:**:*w_field_label_size*:*top*:*w_field_label_pos*:*no*:*w_hide_label*:**:*w_size_w*:*100*:*w_size_h*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*1*:*id*:*type_submit_reset*:*type*:*type_submit_reset_1*:*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', '0', '1', 'Cupcake Order Form', '', '', 'none', '1', '0');");
|
| 295 |
+
$insert_form_id[] = $wpdb->insert_id;
|
| 296 |
+
if (WDFM()->is_free == 2) {
|
| 297 |
+
update_option('contact_form_forms', implode(',', $insert_form_id));
|
| 298 |
+
}
|
| 299 |
}
|
| 300 |
}
|
| 301 |
}
|
form_maker_update.php
CHANGED
|
@@ -175,15 +175,13 @@ class WDFMUpdate {
|
|
| 175 |
|
| 176 |
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "formmaker_themes` CHANGE `css` `params` text NOT NULL");
|
| 177 |
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "formmaker_themes` ADD `version` tinyint(4) NOT NULL DEFAULT 1");
|
| 178 |
-
|
| 179 |
-
mkdir(WDFM()->plugin_dir . '/css/frontend', 0777);
|
| 180 |
-
}
|
| 181 |
$wpdb->update($wpdb->prefix . 'formmaker_themes', array('default' => 0), array('default' => 1));
|
| 182 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 1", \'{"GPFontFamily":"tahoma","AGPWidth":"100","AGPSPWidth":"30","AGPPadding":"","AGPMargin":"0 auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#96afab","HPWidth":"100","HTPWidth":"40","HPPadding":"10px 0","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"24","HTPWeight":"normal","HTPColor":"#ffffff","HDPFontSize":"15","HDPColor":"#607370","HIPAlign":"top","HIPWidth":"80","HIPHeight":"","GPBGColor":"","GPFontSize":"16","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#607370","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#868686","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"","SEPPadding":"","SEPMargin":"","COPPadding":"15px 20px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"14","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#868686","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#868686","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#868686","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#868686","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#e74c3c","SPWidth":"","SPHeight":"","SPFontSize":"16","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"5px 8px","SPMargin":"0 15px 0 0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#e74c3c","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#701e16","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#701e16","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#96afab","BPWidth":"","BPHeight":"","BPFontSize":"16","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"5px 8px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#8a8a8a","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#5a7784","BHPColor":"#ffffff","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#5a7784","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#e74c3c","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"6px","PSAPMargin":"0 1px 0 0 ","PSAPBorderTop":"top","PSAPBorderRight":
|
| 183 |
"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#e74c3c","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"0","PSDPBGColor":"#ededed","PSDPFontSize":"14","PSDPFontWeight":"normal","PSDPColor":"#737373","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"3px 5px","PSDPMargin":"0 1px 0 0 ","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#ededed","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"0","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#607370","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#96afab","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#607370","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#96afab","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"20","CBPFontWeight":"normal","CBPColor":"#777777","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#e74c3c","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#96afab","MBPFontSize":"17","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#96afab","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#96afab","MBHPColor":"#607370","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#96afab","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ff1313","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 1, 2);');
|
| 184 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 2", \'{"GPFontFamily":"Roboto Condensed","AGPWidth":"100","AGPSPWidth":"30","AGPPadding":"","AGPMargin":"0 auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#16afbf","HPWidth":"100","HTPWidth":"40","HPPadding":"10px 0","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"25","HTPWeight":"? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string: ? ? ? ? ? ? ? ? ? ? ? ? ? ?","HTPColor":"#ffffff","HDPFontSize":"16","HDPColor":"#387185","HIPAlign":"top","HIPWidth":"80","HIPHeight":"","GPBGColor":"#ededed","GPFontSize":"16","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#387185","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#777777","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#ededed","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"14","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#777777","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#777777","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#777777","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#777777","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#a3aa44","SPWidth":"","SPHeight":"","SPFontSize":"16","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"5px 8px","SPMargin":"0 5px 0 0 ","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#a3aa44","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"1px 1px 2px #ccc","SHPBGColor":"#c2d852","SHPColor":"#445d71","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#c2d852","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#16afbf","BPWidth":"","BPHeight":"","BPFontSize":"16","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"5px 8px","BPMargin":"0 15px 0 0 ","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#16afbf","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"1px 1px 2px #ccc","BHPBGColor":"#435c71","BHPColor":"#ffffff","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#435c71","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor"
|
| 185 |
:"#a3aa44","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#a3aa44","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#16afbf","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#16afbf","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#16afbf","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#387185","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#9c9c9c","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#2d4d5f","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"22","CBPFontWeight":"normal","CBPColor":"#387185","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#a3aa44","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#16afbf","MBPFontSize":"17","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#387185","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#16afbf","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#387185","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ff1313","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
| 186 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 3", \'{"GPFontFamily":"Droid Sans","AGPWidth":"80","AGPSPWidth":"30","AGPPadding":"","AGPMargin":"0 auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#b7b7b7","HPWidth":"100","HTPWidth":"35","HPPadding":"10px 4px 25px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"25","HTPWeight":"? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string: ? ? ? ? ? ? ? ? ? ? ? ? ?","HTPColor":"#ffffff","HDPFontSize":"16","HDPColor":"#354f5d","HIPAlign":"top","HIPWidth":"80","HIPHeight":"","GPBGColor":"#ededed","GPFontSize":"16","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"65","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#627781","GPPadding":"10px","GPMargin":"-25px 0 0 ","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#
|
| 187 |
5d","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#354f5d","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#b7b7b7","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#b7b7b7","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#838383","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#387185","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#9c9c9c","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#2d4d5f","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"18","CBPFontWeight":"normal","CBPColor":"#838383","CBPPadding":"3px 5px","CBPMargin":"0px","CBPBorderColor":"","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"30","CBHPBGColor":"","CBHPColor":"#ffffff","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#f3f3f3","MBPFontSize":"17","MBPFontWeight":"normal","MBPColor":"#354f5d","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#354f5d","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#b7b7b7","MBHPColor":"#354f5d","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#354f5d","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ff1313","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
| 188 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 4", \'{"GPFontFamily":"Patrick Hand","AGPWidth":"100","AGPSPWidth":"30","AGPPadding":"","AGPMargin":"0 auto","AGPBorderTop":"top","AGPBorderRight":"right","AGPBorderBottom":"bottom","AGPBorderLeft":"left","AGPBorderColor":"#606060","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#ffffff","HPWidth":"100","HTPWidth":"30","HPPadding":"10px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"26","HTPWeight":"? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string: ? ? ? ? ? ? ? ? ? ? ? ? ?","HTPColor":"#930912","HDPFontSize":"17","HDPColor":"#666666","HIPAlign":"left","HIPWidth":"80","HIPHeight":"","GPBGColor":"#d8d8d8","GPFontSize":"16","GPFontWeight":"bold","GPWidth":"100","GTPWidth":"70","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#2d4d5f","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#2d4d5f","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#d8d8d8","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"14","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#9c9c9c","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#777777","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#777777","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#777777","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#930912","SPWidth":"","SPHeight":"","SPFontSize":"16","SPFontWeight":"normal","SPColor":"#e8e8e8","SPPadding":"5px 8px","SPMargin":"0 15px 0 0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#930912","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"1px 1px 2px #ccc","SHPBGColor":"#51030b","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#51030b","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#666666","BPWidth":"","BPHeight":"","BPFontSize":"16","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"5px 8px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#666666","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"1px 1px 2px #ccc","BHPBGColor":"#2d4d5f","BHPColor":"#ffffff","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#2d4d5f","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#930912","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#930912","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#2d4d5f","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#2d4d5f","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#666666","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#930912","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#666666","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#930912","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"-10px","CBPRight":"5px","CBPBottom":"","CBPLeft":"","CBPBGColor":"#ffffff","CBPFontSize":"12","CBPFontWeight":"normal","CBPColor":"#930912","CBPPadding":"5px 7px","CBPMargin":"0px","CBPBorderTop":"top","CBPBorderRight":"right","CBPBorderBottom":"bottom","CBPBorderLeft":"left","CBPBorderColor":"#606060","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"15","CBHPBGColor":"#ffffff","CBHPColor":"#2d4d5f","CBHPBorderTop":"top","CBHPBorderRight":"right","CBHPBorderBottom":"bottom","CBHPBorderLeft":"left","CBHPBorderColor":"#606060","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#ffffff","MBPFontSize":"17","MBPFontWeight":"normal","MBPColor":"#930912","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#606060","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#666666","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#930912","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ff1313","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
| 189 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 5", \'{"GPFontFamily":"cursive","AGPWidth":"100","AGPSPWidth":"40","AGPPadding":"","AGPMargin":"0 auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#aee2de","HPWidth":"100","HTPWidth":"40","HPPadding":"10px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"19","HTPWeight":"normal","HTPColor":"#042325","HDPFontSize":"13","HDPColor":"#518a88","HIPAlign":"left","HIPWidth":"80","HIPHeight":"","GPBGColor":"#214555","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#d4d4d4","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#d4d4d4","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#214555","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#518a88","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#518a88","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#518a88","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#518a88","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#f46322","SPWidth":"130","SPHeight":"26","SPFontSize":"14","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"0px 5px","SPMargin":"0 15px 0 0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#f46322","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#f46322","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#f46322","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#bababa","BPWidth":"","BPHeight":"26","BPFontSize":"14","BPFontWeight":"normal","BPColor":"#454545","BPPadding":"0px 5px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#bababa","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#bababa","BHPColor":"#454545","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#bababa","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#f46322","PSAPFontSize":"14","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0","PSAPBorderColor":"","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#bababa","PSDPFontSize":"13","PSDPFontWeight":"normal","PSDPColor":"#518a88","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderColor":"#a3a3a3","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"left","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#f46322","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#d4d4d4","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#d4d4d4","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#f46322","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"6px","CBPRight":"6px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"18","CBPFontWeight":"normal","CBPColor":"#f46322","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#214555","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#aee2de","MBPFontSize":"15","MBPFontWeight":"normal","MBPColor":"#000000","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#518a88","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#518a88","MBHPColor":"#ffffff","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#518a88","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ff1313","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
| 175 |
|
| 176 |
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "formmaker_themes` CHANGE `css` `params` text NOT NULL");
|
| 177 |
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "formmaker_themes` ADD `version` tinyint(4) NOT NULL DEFAULT 1");
|
| 178 |
+
|
|
|
|
|
|
|
| 179 |
$wpdb->update($wpdb->prefix . 'formmaker_themes', array('default' => 0), array('default' => 1));
|
| 180 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 1", \'{"GPFontFamily":"tahoma","AGPWidth":"100","AGPSPWidth":"30","AGPPadding":"","AGPMargin":"0 auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#96afab","HPWidth":"100","HTPWidth":"40","HPPadding":"10px 0","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"24","HTPWeight":"normal","HTPColor":"#ffffff","HDPFontSize":"15","HDPColor":"#607370","HIPAlign":"top","HIPWidth":"80","HIPHeight":"","GPBGColor":"","GPFontSize":"16","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#607370","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#868686","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"","SEPPadding":"","SEPMargin":"","COPPadding":"15px 20px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"14","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#868686","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#868686","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#868686","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#868686","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#e74c3c","SPWidth":"","SPHeight":"","SPFontSize":"16","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"5px 8px","SPMargin":"0 15px 0 0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#e74c3c","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#701e16","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#701e16","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#96afab","BPWidth":"","BPHeight":"","BPFontSize":"16","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"5px 8px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#8a8a8a","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#5a7784","BHPColor":"#ffffff","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#5a7784","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#e74c3c","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"6px","PSAPMargin":"0 1px 0 0 ","PSAPBorderTop":"top","PSAPBorderRight":
|
| 181 |
"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#e74c3c","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"0","PSDPBGColor":"#ededed","PSDPFontSize":"14","PSDPFontWeight":"normal","PSDPColor":"#737373","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"3px 5px","PSDPMargin":"0 1px 0 0 ","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#ededed","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"0","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#607370","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#96afab","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#607370","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#96afab","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"20","CBPFontWeight":"normal","CBPColor":"#777777","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#e74c3c","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#96afab","MBPFontSize":"17","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#96afab","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#96afab","MBHPColor":"#607370","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#96afab","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ff1313","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 1, 2);');
|
| 182 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 2", \'{"GPFontFamily":"Roboto Condensed","AGPWidth":"100","AGPSPWidth":"30","AGPPadding":"","AGPMargin":"0 auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#16afbf","HPWidth":"100","HTPWidth":"40","HPPadding":"10px 0","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"25","HTPWeight":"? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string: ? ? ? ? ? ? ? ? ? ? ? ? ? ?","HTPColor":"#ffffff","HDPFontSize":"16","HDPColor":"#387185","HIPAlign":"top","HIPWidth":"80","HIPHeight":"","GPBGColor":"#ededed","GPFontSize":"16","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#387185","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#777777","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#ededed","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"14","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#777777","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#777777","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#777777","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#777777","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#a3aa44","SPWidth":"","SPHeight":"","SPFontSize":"16","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"5px 8px","SPMargin":"0 5px 0 0 ","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#a3aa44","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"1px 1px 2px #ccc","SHPBGColor":"#c2d852","SHPColor":"#445d71","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#c2d852","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#16afbf","BPWidth":"","BPHeight":"","BPFontSize":"16","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"5px 8px","BPMargin":"0 15px 0 0 ","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#16afbf","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"1px 1px 2px #ccc","BHPBGColor":"#435c71","BHPColor":"#ffffff","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#435c71","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor"
|
| 183 |
:"#a3aa44","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#a3aa44","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#16afbf","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#16afbf","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#16afbf","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#387185","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#9c9c9c","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#2d4d5f","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"22","CBPFontWeight":"normal","CBPColor":"#387185","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#a3aa44","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#16afbf","MBPFontSize":"17","MBPFontWeight":"normal","MBPColor":"#ffffff","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#387185","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#16afbf","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#387185","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ff1313","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
| 184 |
+
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 3", \'{"GPFontFamily":"Droid Sans","AGPWidth":"80","AGPSPWidth":"30","AGPPadding":"","AGPMargin":"0 auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#b7b7b7","HPWidth":"100","HTPWidth":"35","HPPadding":"10px 4px 25px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"25","HTPWeight":"? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string: ? ? ? ? ? ? ? ? ? ? ? ? ?","HTPColor":"#ffffff","HDPFontSize":"16","HDPColor":"#354f5d","HIPAlign":"top","HIPWidth":"80","HIPHeight":"","GPBGColor":"#ededed","GPFontSize":"16","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"65","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#627781","GPPadding":"10px","GPMargin":"-25px 0 0 ","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#627781","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#f3f3f3","SEPPadding":"10px 15px","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"14","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#627781","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#627781","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#777777","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#627781","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#676767","SPWidth":"","SPHeight":"","SPFontSize":"16","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"5px 8px","SPMargin":"0px","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#676767","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"1px 1px 2px #ccc","SHPBGColor":"#ededed","SHPColor":"#676767","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#676767","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#f3f3f3","BPWidth":"","BPHeight":"","BPFontSize":"14","BPFontWeight":"normal","BPColor":"#777777","BPPadding":"5px 8px","BPMargin":"0px","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#ededed","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"1px 1px 2px #ccc","BHPBGColor":"#ededed","BHPColor":"#777777","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#ededed","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#354f
|
| 185 |
5d","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#354f5d","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#b7b7b7","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#b7b7b7","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#838383","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#387185","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#9c9c9c","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#2d4d5f","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"10px","CBPRight":"10px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"18","CBPFontWeight":"normal","CBPColor":"#838383","CBPPadding":"3px 5px","CBPMargin":"0px","CBPBorderColor":"","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"30","CBHPBGColor":"","CBHPColor":"#ffffff","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#f3f3f3","MBPFontSize":"17","MBPFontWeight":"normal","MBPColor":"#354f5d","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#354f5d","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#b7b7b7","MBHPColor":"#354f5d","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#354f5d","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ff1313","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
| 186 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 4", \'{"GPFontFamily":"Patrick Hand","AGPWidth":"100","AGPSPWidth":"30","AGPPadding":"","AGPMargin":"0 auto","AGPBorderTop":"top","AGPBorderRight":"right","AGPBorderBottom":"bottom","AGPBorderLeft":"left","AGPBorderColor":"#606060","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#ffffff","HPWidth":"100","HTPWidth":"30","HPPadding":"10px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"26","HTPWeight":"? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string:? string: ? ? ? ? ? ? ? ? ? ? ? ? ?","HTPColor":"#930912","HDPFontSize":"17","HDPColor":"#666666","HIPAlign":"left","HIPWidth":"80","HIPHeight":"","GPBGColor":"#d8d8d8","GPFontSize":"16","GPFontWeight":"bold","GPWidth":"100","GTPWidth":"70","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#2d4d5f","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#2d4d5f","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#d8d8d8","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"14","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#9c9c9c","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#777777","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#777777","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#777777","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"right","SPBGColor":"#930912","SPWidth":"","SPHeight":"","SPFontSize":"16","SPFontWeight":"normal","SPColor":"#e8e8e8","SPPadding":"5px 8px","SPMargin":"0 15px 0 0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#930912","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"1px 1px 2px #ccc","SHPBGColor":"#51030b","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#51030b","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#666666","BPWidth":"","BPHeight":"","BPFontSize":"16","BPFontWeight":"normal","BPColor":"#ffffff","BPPadding":"5px 8px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#666666","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"1px 1px 2px #ccc","BHPBGColor":"#2d4d5f","BHPColor":"#ffffff","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#2d4d5f","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#930912","PSAPFontSize":"16","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0 0 4px 0 ","PSAPBorderTop":"top","PSAPBorderRight":"right","PSAPBorderBottom":"bottom","PSAPBorderLeft":"left","PSAPBorderColor":"#930912","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#2d4d5f","PSDPFontSize":"16","PSDPFontWeight":"normal","PSDPColor":"#ffffff","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderTop":"top","PSDPBorderRight":"right","PSDPBorderBottom":"bottom","PSDPBorderLeft":"left","PSDPBorderColor":"#2d4d5f","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"right","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#666666","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#930912","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#666666","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#930912","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"-10px","CBPRight":"5px","CBPBottom":"","CBPLeft":"","CBPBGColor":"#ffffff","CBPFontSize":"12","CBPFontWeight":"normal","CBPColor":"#930912","CBPPadding":"5px 7px","CBPMargin":"0px","CBPBorderTop":"top","CBPBorderRight":"right","CBPBorderBottom":"bottom","CBPBorderLeft":"left","CBPBorderColor":"#606060","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"15","CBHPBGColor":"#ffffff","CBHPColor":"#2d4d5f","CBHPBorderTop":"top","CBHPBorderRight":"right","CBHPBorderBottom":"bottom","CBHPBorderLeft":"left","CBHPBorderColor":"#606060","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#ffffff","MBPFontSize":"17","MBPFontWeight":"normal","MBPColor":"#930912","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#606060","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#ffffff","MBHPColor":"#666666","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#930912","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ff1313","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
| 187 |
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'formmaker_themes` (`title`, `params`, `default`, `version`) VALUES ("Theme 5", \'{"GPFontFamily":"cursive","AGPWidth":"100","AGPSPWidth":"40","AGPPadding":"","AGPMargin":"0 auto","AGPBorderColor":"#ffffff","AGPBorderType":"solid","AGPBorderWidth":"1","AGPBorderRadius":"0","AGPBoxShadow":"","HPAlign":"top","HPBGColor":"#aee2de","HPWidth":"100","HTPWidth":"40","HPPadding":"10px","HPMargin":"","HPTextAlign":"center","HPBorderColor":"#b7b7b7","HPBorderType":"solid","HPBorderWidth":"1","HPBorderRadius":"0","HTPFontSize":"19","HTPWeight":"normal","HTPColor":"#042325","HDPFontSize":"13","HDPColor":"#518a88","HIPAlign":"left","HIPWidth":"80","HIPHeight":"","GPBGColor":"#214555","GPFontSize":"15","GPFontWeight":"normal","GPWidth":"100","GTPWidth":"60","GPAlign":"center","GPBackground":"","GPBackgroundRepeat":"no-repeat","GPBGPosition1":"","GPBGPosition2":"","GPBGSize1":"","GPBGSize2":"","GPColor":"#d4d4d4","GPPadding":"10px","GPMargin":"","GPBorderColor":"#ffffff","GPBorderType":"solid","GPBorderWidth":"1","GPBorderRadius":"0","GPMLFontSize":"14","GPMLFontWeight":"normal","GPMLColor":"#d4d4d4","GPMLPadding":"0px 5px 0px 0px","GPMLMargin":"0px","SEPBGColor":"#214555","SEPPadding":"","SEPMargin":"","COPPadding":"10px","COPMargin":"0px","FPWidth":"70","FPPadding":"15px 0 0 0","FPMargin":"0 auto","IPHeight":"26","IPFontSize":"13","IPFontWeight":"normal","IPBGColor":"#ffffff","IPColor":"#518a88","IPPadding":"0px 5px","IPMargin":"0px","IPBorderTop":"top","IPBorderRight":"right","IPBorderBottom":"bottom","IPBorderLeft":"left","IPBorderColor":"#dfdfdf","IPBorderType":"solid","IPBorderWidth":"1","IPBorderRadius":"0","IPBoxShadow":"","SBPAppearance":"none","SBPBackground":"images/themes/drop-downs/2.png","SBPBGRepeat":"no-repeat","SBPBGPos1":"95%","SBPBGPos2":"50%","SBPBGSize1":"8%","SBPBGSize2":"32%","SCPBGColor":"#ffffff","SCPWidth":"16","SCPHeight":"16","SCPBorderTop":"top","SCPBorderRight":"right","SCPBorderBottom":"bottom","SCPBorderLeft":"left","SCPBorderColor":"#518a88","SCPBorderType":"solid","SCPBorderWidth":"1","SCPMargin":"0px 3px","SCPBorderRadius":"15","SCPBoxShadow":"","SCCPBGColor":"#518a88","SCCPWidth":"6","SCCPHeight":"6","SCCPMargin":"5","SCCPBorderRadius":"10","MCPBGColor":"#ffffff","MCPWidth":"16","MCPHeight":"16","MCPBorderTop":"top","MCPBorderRight":"right","MCPBorderBottom":"bottom","MCPBorderLeft":"left","MCPBorderColor":"#518a88","MCPBorderType":"solid","MCPBorderWidth":"1","MCPMargin":"0px 3px","MCPBorderRadius":"0","MCPBoxShadow":"","MCCPBGColor":"","MCCPBackground":"images/themes/checkboxes/1.png","MCCPBGRepeat":"no-repeat","MCCPBGPos1":"","MCCPBGPos2":"","MCCPWidth":"16","MCCPHeight":"16","MCCPMargin":"0","MCCPBorderRadius":"0","SPAlign":"left","SPBGColor":"#f46322","SPWidth":"130","SPHeight":"26","SPFontSize":"14","SPFontWeight":"normal","SPColor":"#ffffff","SPPadding":"0px 5px","SPMargin":"0 15px 0 0","SPBorderTop":"top","SPBorderRight":"right","SPBorderBottom":"bottom","SPBorderLeft":"left","SPBorderColor":"#f46322","SPBorderType":"solid","SPBorderWidth":"1","SPBorderRadius":"0","SPBoxShadow":"","SHPBGColor":"#f46322","SHPColor":"#ffffff","SHPBorderTop":"top","SHPBorderRight":"right","SHPBorderBottom":"bottom","SHPBorderLeft":"left","SHPBorderColor":"#f46322","SHPBorderType":"solid","SHPBorderWidth":"1","BPBGColor":"#bababa","BPWidth":"","BPHeight":"26","BPFontSize":"14","BPFontWeight":"normal","BPColor":"#454545","BPPadding":"0px 5px","BPMargin":"0 15px 0 0","BPBorderTop":"top","BPBorderRight":"right","BPBorderBottom":"bottom","BPBorderLeft":"left","BPBorderColor":"#bababa","BPBorderType":"solid","BPBorderWidth":"1","BPBorderRadius":"0","BPBoxShadow":"","BHPBGColor":"#bababa","BHPColor":"#454545","BHPBorderTop":"top","BHPBorderRight":"right","BHPBorderBottom":"bottom","BHPBorderLeft":"left","BHPBorderColor":"#bababa","BHPBorderType":"solid","BHPBorderWidth":"1","PSAPBGColor":"#f46322","PSAPFontSize":"14","PSAPFontWeight":"normal","PSAPColor":"#ffffff","PSAPHeight":"","PSAPLineHeight":"","PSAPPadding":"8px","PSAPMargin":"0","PSAPBorderColor":"","PSAPBorderType":"solid","PSAPBorderWidth":"2","PSAPBorderRadius":"3","PSDPBGColor":"#bababa","PSDPFontSize":"13","PSDPFontWeight":"normal","PSDPColor":"#518a88","PSDPHeight":"","PSDPLineHeight":"","PSDPPadding":"4px 6px","PSDPMargin":"0 0 0 -3px","PSDPBorderColor":"#a3a3a3","PSDPBorderType":"solid","PSDPBorderWidth":"2","PSDPBorderRadius":"3","PSAPAlign":"left","PSAPWidth":"","PPAPWidth":"100%","NBPBGColor":"","NBPWidth":"","NBPHeight":"","NBPLineHeight":"","NBPColor":"#f46322","NBPPadding":"4px 10px","NBPMargin":"0px","NBPBorderColor":"#777777","NBPBorderType":"solid","NBPBorderWidth":"1","NBPBorderRadius":"0","NBPBoxShadow":"","NBHPBGColor":"","NBHPColor":"#d4d4d4","NBHPBorderColor":"#787878","NBHPBorderType":"solid","NBHPBorderWidth":"1","PBPBGColor":"","PBPWidth":"100","PBPHeight":"","PBPLineHeight":"","PBPColor":"#d4d4d4","PBPPadding":"","PBPMargin":"0px","PBPBorderColor":"#777777","PBPBorderType":"solid","PBPBorderWidth":"1","PBPBorderRadius":"0","PBPBoxShadow":"","PBHPBGColor":"","PBHPColor":"#f46322","PBHPBorderColor":"#787878","PBHPBorderType":"solid","PBHPBorderWidth":"1","CBPPosition":"absolute","CBPTop":"6px","CBPRight":"6px","CBPBottom":"","CBPLeft":"","CBPBGColor":"","CBPFontSize":"18","CBPFontWeight":"normal","CBPColor":"#f46322","CBPPadding":"0px","CBPMargin":"0px","CBPBorderColor":"#ffffff","CBPBorderType":"solid","CBPBorderWidth":"1","CBPBorderRadius":"0","CBHPBGColor":"","CBHPColor":"#214555","CBHPBorderColor":"#737373","CBHPBorderType":"solid","CBHPBorderWidth":"1","MBPBGColor":"#aee2de","MBPFontSize":"15","MBPFontWeight":"normal","MBPColor":"#000000","MBPTextAlign":"center","MBPPadding":"10px","MBPMargin":"","MBPBorderTop":"top","MBPBorderRight":"right","MBPBorderBottom":"bottom","MBPBorderLeft":"left","MBPBorderColor":"#518a88","MBPBorderType":"solid","MBPBorderWidth":"2","MBPBorderRadius":"0","MBHPBGColor":"#518a88","MBHPColor":"#ffffff","MBHPBorderTop":"top","MBHPBorderRight":"right","MBHPBorderBottom":"bottom","MBHPBorderLeft":"left","MBHPBorderColor":"#518a88","MBHPBorderType":"solid","MBHPBorderWidth":"2","OPDeInputColor":"#afafaf","OPFontStyle":"normal","OPRColor":"#ff1313","OPDPIcon":"images/themes/date-pickers/2.png","OPDPRepeat":"no-repeat","OPDPPos1":"0%","OPDPPos2":"10%","OPDPMargin":"3px 0 0 -23px","OPFBgUrl":"images/themes/file-uploads/2.png","OPFBGRepeat":"no-repeat","OPFPos1":"0%","OPFPos2":"10%","OPGWidth":"100","CUPCSS":""}\', 0, 2);');
|
framework/WDW_FM_Library.php
CHANGED
|
@@ -1779,60 +1779,7 @@ class WDW_FM_Library {
|
|
| 1779 |
break;
|
| 1780 |
}
|
| 1781 |
case 'type_address': {
|
| 1782 |
-
$w_states =
|
| 1783 |
-
"",
|
| 1784 |
-
"Alabama",
|
| 1785 |
-
"Alaska",
|
| 1786 |
-
"Arizona",
|
| 1787 |
-
"Arkansas",
|
| 1788 |
-
"California",
|
| 1789 |
-
"Colorado",
|
| 1790 |
-
"Connecticut",
|
| 1791 |
-
"Delaware",
|
| 1792 |
-
"District Of Columbia",
|
| 1793 |
-
"Florida",
|
| 1794 |
-
"Georgia",
|
| 1795 |
-
"Hawaii",
|
| 1796 |
-
"Idaho",
|
| 1797 |
-
"Illinois",
|
| 1798 |
-
"Indiana",
|
| 1799 |
-
"Iowa",
|
| 1800 |
-
"Kansas",
|
| 1801 |
-
"Kentucky",
|
| 1802 |
-
"Louisiana",
|
| 1803 |
-
"Maine",
|
| 1804 |
-
"Maryland",
|
| 1805 |
-
"Massachusetts",
|
| 1806 |
-
"Michigan",
|
| 1807 |
-
"Minnesota",
|
| 1808 |
-
"Mississippi",
|
| 1809 |
-
"Missouri",
|
| 1810 |
-
"Montana",
|
| 1811 |
-
"Nebraska",
|
| 1812 |
-
"Nevada",
|
| 1813 |
-
"New Hampshire",
|
| 1814 |
-
"New Jersey",
|
| 1815 |
-
"New Mexico",
|
| 1816 |
-
"New York",
|
| 1817 |
-
"North Carolina",
|
| 1818 |
-
"North Dakota",
|
| 1819 |
-
"Ohio",
|
| 1820 |
-
"Oklahoma",
|
| 1821 |
-
"Oregon",
|
| 1822 |
-
"Pennsylvania",
|
| 1823 |
-
"Rhode Island",
|
| 1824 |
-
"South Carolina",
|
| 1825 |
-
"South Dakota",
|
| 1826 |
-
"Tennessee",
|
| 1827 |
-
"Texas",
|
| 1828 |
-
"Utah",
|
| 1829 |
-
"Vermont",
|
| 1830 |
-
"Virginia",
|
| 1831 |
-
"Washington",
|
| 1832 |
-
"West Virginia",
|
| 1833 |
-
"Wisconsin",
|
| 1834 |
-
"Wyoming",
|
| 1835 |
-
);
|
| 1836 |
$w_state_options = '';
|
| 1837 |
foreach ( $w_states as $w_state ) {
|
| 1838 |
$w_state_options .= '<option value="' . $w_state . '">' . $w_state . '</option>';
|
|
@@ -2383,6 +2330,7 @@ class WDW_FM_Library {
|
|
| 2383 |
maxDate: "' . $param['w_max_date'] . '",
|
| 2384 |
changeMonth: true,
|
| 2385 |
changeYear: true,
|
|
|
|
| 2386 |
showOtherMonths: true,
|
| 2387 |
selectOtherMonths: true,
|
| 2388 |
firstDay: "' . $param['w_start_day'] . '",
|
|
@@ -2519,6 +2467,7 @@ class WDW_FM_Library {
|
|
| 2519 |
maxDate: "' . $param['w_max_date'] . '",
|
| 2520 |
changeMonth: true,
|
| 2521 |
changeYear: true,
|
|
|
|
| 2522 |
showOtherMonths: true,
|
| 2523 |
selectOtherMonths: true,
|
| 2524 |
firstDay: "' . $param['w_start_day'] . '",
|
|
@@ -3880,7 +3829,7 @@ class WDW_FM_Library {
|
|
| 3880 |
else {
|
| 3881 |
$val = strip_tags(htmlspecialchars_decode($element_value));
|
| 3882 |
$val = stripslashes(str_replace(''', "'", $val));
|
| 3883 |
-
$data_temp[stripslashes($label_titles[$h])] =
|
| 3884 |
}
|
| 3885 |
}
|
| 3886 |
else {
|
| 1779 |
break;
|
| 1780 |
}
|
| 1781 |
case 'type_address': {
|
| 1782 |
+
$w_states = self::get_states();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1783 |
$w_state_options = '';
|
| 1784 |
foreach ( $w_states as $w_state ) {
|
| 1785 |
$w_state_options .= '<option value="' . $w_state . '">' . $w_state . '</option>';
|
| 2330 |
maxDate: "' . $param['w_max_date'] . '",
|
| 2331 |
changeMonth: true,
|
| 2332 |
changeYear: true,
|
| 2333 |
+
yearRange: "-100:+50",
|
| 2334 |
showOtherMonths: true,
|
| 2335 |
selectOtherMonths: true,
|
| 2336 |
firstDay: "' . $param['w_start_day'] . '",
|
| 2467 |
maxDate: "' . $param['w_max_date'] . '",
|
| 2468 |
changeMonth: true,
|
| 2469 |
changeYear: true,
|
| 2470 |
+
yearRange: "-100:+50",
|
| 2471 |
showOtherMonths: true,
|
| 2472 |
selectOtherMonths: true,
|
| 2473 |
firstDay: "' . $param['w_start_day'] . '",
|
| 3829 |
else {
|
| 3830 |
$val = strip_tags(htmlspecialchars_decode($element_value));
|
| 3831 |
$val = stripslashes(str_replace(''', "'", $val));
|
| 3832 |
+
$data_temp[stripslashes($label_titles[$h])] = $val;
|
| 3833 |
}
|
| 3834 |
}
|
| 3835 |
else {
|
frontend/controllers/form_maker.php
CHANGED
|
@@ -14,7 +14,7 @@ class FMControllerForm_maker {
|
|
| 14 |
public function __construct() {
|
| 15 |
$queried_obj = get_queried_object();
|
| 16 |
// check is custom post type in review page.
|
| 17 |
-
if ($queried_obj && $queried_obj->post_type == 'form-maker' && $queried_obj->post_name == 'preview') {
|
| 18 |
$this->form_preview = true;
|
| 19 |
}
|
| 20 |
|
| 14 |
public function __construct() {
|
| 15 |
$queried_obj = get_queried_object();
|
| 16 |
// check is custom post type in review page.
|
| 17 |
+
if ($queried_obj && isset($queried_obj->post_type) && $queried_obj->post_type == 'form-maker' && $queried_obj->post_name == 'preview') {
|
| 18 |
$this->form_preview = true;
|
| 19 |
}
|
| 20 |
|
frontend/models/form_maker.php
CHANGED
|
@@ -12,7 +12,7 @@ class FMModelForm_maker {
|
|
| 12 |
*/
|
| 13 |
public function showform( $id, $type = 'embedded' ) {
|
| 14 |
global $wpdb;
|
| 15 |
-
$row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'formmaker WHERE id="%d"' . (WDFM()->
|
| 16 |
|
| 17 |
if ( !$row ) {
|
| 18 |
echo WDW_FM_Library::message(__('Something went wrong when trying to display this form.', WDFM()->prefix), 'fm-notice-error');
|
|
@@ -158,7 +158,7 @@ class FMModelForm_maker {
|
|
| 158 |
( !empty($form_theme['AGPWidth']) ? 'width:'. $form_theme['AGPWidth'] .'%;' : '' ).
|
| 159 |
( !empty($form_theme['AGPMargin']) ? 'margin:'. $form_theme['AGPMargin'] .';' : '' ).
|
| 160 |
( !empty($form_theme['AGPPadding']) ? 'padding:'. $form_theme['AGPPadding'] .' !important;' : '' ).
|
| 161 |
-
(
|
| 162 |
( !empty($form_theme['AGPBoxShadow']) ? 'box-shadow:'. $form_theme['AGPBoxShadow'] .';' : '' ).
|
| 163 |
'}';
|
| 164 |
if ( !empty($borders['AGP']) ) {
|
|
@@ -171,7 +171,7 @@ class FMModelForm_maker {
|
|
| 171 |
}
|
| 172 |
else {
|
| 173 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form {'.
|
| 174 |
-
(
|
| 175 |
( !empty($form_theme['AGPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['AGPBorderType'] . ' !important;' : '').
|
| 176 |
( !empty($form_theme['AGPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['AGPBorderColor'] . ' !important;' : '').
|
| 177 |
'}';
|
|
@@ -188,7 +188,7 @@ class FMModelForm_maker {
|
|
| 188 |
( !empty($form_theme['HPWidth']) ? 'width:' . $form_theme['HPWidth'] . '%;' : '').
|
| 189 |
( !empty($form_theme['HPMargin']) ? 'margin:' . $form_theme['HPMargin'] .';': '').
|
| 190 |
( !empty($form_theme['HPPadding']) ? 'padding:' . $form_theme['HPPadding'] .'!important;' : '').
|
| 191 |
-
(
|
| 192 |
( !empty($form_theme['HPTextAlign']) ? 'text-align:' . $form_theme['HPTextAlign'] .';' : '').
|
| 193 |
'}';
|
| 194 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form .image_left_right.fm-header {'.
|
|
@@ -207,7 +207,7 @@ class FMModelForm_maker {
|
|
| 207 |
}
|
| 208 |
else {
|
| 209 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form .fm-header {'.
|
| 210 |
-
(
|
| 211 |
( !empty($form_theme['HPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['HPBorderType'] . ' !important;' : '').
|
| 212 |
( !empty($form_theme['HPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['HPBorderColor'] . ' !important;' : '').
|
| 213 |
'}';
|
|
@@ -240,7 +240,7 @@ class FMModelForm_maker {
|
|
| 240 |
( !empty($form_theme['MBPTextAlign']) ? 'text-align:' . $form_theme['MBPTextAlign'] . ';' : '').
|
| 241 |
( !empty($form_theme['MBPFontSize']) ? 'font-size:' . $form_theme['MBPFontSize'] . 'px;' : '').
|
| 242 |
( !empty($form_theme['MBPFontWeight']) ? 'font-weight:' . $form_theme['MBPFontWeight'] . ';' : '').
|
| 243 |
-
(
|
| 244 |
'}';
|
| 245 |
if ( !empty($borders['MBP']) ) {
|
| 246 |
foreach ( $borders['MBP'] as $border ) {
|
|
@@ -252,7 +252,7 @@ class FMModelForm_maker {
|
|
| 252 |
}
|
| 253 |
else {
|
| 254 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-minimize-text div {'.
|
| 255 |
-
(
|
| 256 |
( !empty($form_theme['MBPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['MBPBorderType'] . ' !important;' : '').
|
| 257 |
( !empty($form_theme['MBPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['MBPBorderColor'] . ' !important;' : '').
|
| 258 |
'}';
|
|
@@ -273,7 +273,7 @@ class FMModelForm_maker {
|
|
| 273 |
}
|
| 274 |
else {
|
| 275 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-minimize-text div:hover { '.
|
| 276 |
-
(
|
| 277 |
( !empty($form_theme['MBHPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['MBHPBorderType'] . ' !important;' : '').
|
| 278 |
( !empty($form_theme['MBHPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['MBHPBorderColor'] . ' !important;' : '').
|
| 279 |
'}';
|
|
@@ -284,7 +284,7 @@ class FMModelForm_maker {
|
|
| 284 |
( !empty($form_theme['GPWidth']) ? 'width:' . $form_theme['GPWidth'] . '%;' : '').
|
| 285 |
( !empty($form_theme['GPMargin']) ? 'margin:' . $form_theme['GPMargin'] . ';' : '').
|
| 286 |
( !empty($form_theme['GPPadding']) ? 'padding:' . $form_theme['GPPadding'] . ';' : '').
|
| 287 |
-
(
|
| 288 |
( !empty($form_theme['GPFontWeight']) ? 'font-weight:' . $form_theme['GPFontWeight'] . ';' : '').
|
| 289 |
( !empty($form_theme['GPFontSize']) ? 'font-size:' . $form_theme['GPFontSize'] . 'px;' : '').
|
| 290 |
( !empty($form_theme['GPColor']) ? 'color:' . $form_theme['GPColor'] . ';' : '').
|
|
@@ -306,7 +306,7 @@ class FMModelForm_maker {
|
|
| 306 |
$css_content .= '
|
| 307 |
.fm-form-container.fm-theme' . $theme_id . ' .fm-form .wdform-page-and-images,
|
| 308 |
.fm-form-container.fm-theme' . $theme_id . ' .fm-minimize-text {'.
|
| 309 |
-
(
|
| 310 |
( !empty($form_theme['GPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['GPBorderType'] . ' !important;' : '').
|
| 311 |
( !empty($form_theme['GPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['GPBorderColor'] . ' !important;' : '').
|
| 312 |
'}';
|
|
@@ -374,7 +374,7 @@ class FMModelForm_maker {
|
|
| 374 |
( !empty($form_theme['PSAPFontWeight']) ? 'font-weight:' . $form_theme['PSAPFontWeight'] . ';' : '').
|
| 375 |
( !empty($form_theme['PSAPColor']) ? 'color:' . $form_theme['PSAPColor'] . ';' : '').
|
| 376 |
( !empty($form_theme['PSAPLineHeight']) ? 'line-height:' . $form_theme['PSAPLineHeight'] . 'px;' : '').
|
| 377 |
-
(
|
| 378 |
'}';
|
| 379 |
if ( $borders['PSAP'] ) {
|
| 380 |
foreach ( $borders['PSAP'] as $border ) {
|
|
@@ -386,7 +386,7 @@ class FMModelForm_maker {
|
|
| 386 |
}
|
| 387 |
else {
|
| 388 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-pages .page_active {'.
|
| 389 |
-
(
|
| 390 |
( !empty($form_theme['PSAPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['PSAPBorderType'] . ' !important;' : '').
|
| 391 |
( !empty($form_theme['PSAPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['PSAPBorderColor'] . ' !important;' : '').
|
| 392 |
'}';
|
|
@@ -400,7 +400,7 @@ class FMModelForm_maker {
|
|
| 400 |
( !empty($form_theme['PSDPMargin']) ? 'margin:' . $form_theme['PSDPMargin'] . ';' : '').
|
| 401 |
( !empty($form_theme['PSDPPadding']) ? 'padding:' . $form_theme['PSDPPadding'] . ';' : '').
|
| 402 |
( !empty($form_theme['PSDPLineHeight']) ? 'line-height:' . $form_theme['PSDPLineHeight'] . 'px;' : '').
|
| 403 |
-
(
|
| 404 |
( !empty($form_theme['PSDPFontWeight']) ? 'font-weight:' . $form_theme['PSDPFontWeight'] . ';' : '').
|
| 405 |
( !empty($form_theme['PSDPFontSize']) ? 'font-size:' . $form_theme['PSDPFontSize'] . 'px;' : '').
|
| 406 |
( !empty($form_theme['PSDPColor']) ? 'color:' . $form_theme['PSDPColor'] . ';' : '').
|
|
@@ -415,7 +415,7 @@ class FMModelForm_maker {
|
|
| 415 |
}
|
| 416 |
else {
|
| 417 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-pages .page_deactive {'.
|
| 418 |
-
(
|
| 419 |
( !empty($form_theme['PSDPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['PSDPBorderType'] . ' !important;' : '').
|
| 420 |
( !empty($form_theme['PSDPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['PSDPBorderColor'] . ' !important;' : '').
|
| 421 |
'}';
|
|
@@ -432,7 +432,7 @@ class FMModelForm_maker {
|
|
| 432 |
( !empty($form_theme['PSAPFontSize']) ? 'font-size:' . $form_theme['PSAPFontSize'] . 'px;' : '').
|
| 433 |
( !empty($form_theme['PSAPColor']) ? 'color:' . $form_theme['PSAPColor'] . ';' : '').
|
| 434 |
( !empty($form_theme['PSAPLineHeight']) ? 'line-height:' . $form_theme['PSAPLineHeight'] . 'px;' : '').
|
| 435 |
-
(
|
| 436 |
'}';
|
| 437 |
if ( $borders['PSAP'] ) {
|
| 438 |
foreach ( $borders['PSAP'] as $border ) {
|
|
@@ -444,7 +444,7 @@ class FMModelForm_maker {
|
|
| 444 |
}
|
| 445 |
else {
|
| 446 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-pages .page_percentage_active {'.
|
| 447 |
-
(
|
| 448 |
( !empty($form_theme['PSAPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['PSAPBorderType'] . ' !important;' : '').
|
| 449 |
( !empty($form_theme['PSAPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['PSAPBorderColor'] . ' !important;' : '').
|
| 450 |
'}';
|
|
@@ -461,7 +461,7 @@ class FMModelForm_maker {
|
|
| 461 |
( !empty($form_theme['PSDPFontSize']) ? 'font-size:' . $form_theme['PSDPFontSize'] . 'px;' : '').
|
| 462 |
( !empty($form_theme['PSDPColor']) ? 'color:' . $form_theme['PSDPColor'] . ';' : '').
|
| 463 |
( !empty($form_theme['PSDPLineHeight']) ? 'line-height:' . $form_theme['PSDPLineHeight'] . 'px;' : '').
|
| 464 |
-
(
|
| 465 |
'}';
|
| 466 |
if ( $borders['PSDP'] ) {
|
| 467 |
foreach ( $borders['PSDP'] as $border ) {
|
|
@@ -473,7 +473,7 @@ class FMModelForm_maker {
|
|
| 473 |
}
|
| 474 |
else {
|
| 475 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-pages .page_percentage_deactive {'.
|
| 476 |
-
(
|
| 477 |
( !empty($form_theme['PSDPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['PSDPBorderType'] . ' !important;' : '').
|
| 478 |
( !empty($form_theme['PSDPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['PSDPBorderColor'] . ' !important;' : '').
|
| 479 |
'}';
|
|
@@ -491,7 +491,7 @@ class FMModelForm_maker {
|
|
| 491 |
( !empty($form_theme['CBPPadding']) ? 'padding:' . $form_theme['CBPPadding'] . ';' : '').
|
| 492 |
( !empty($form_theme['CBPPosition']) ? 'position:' . $form_theme['CBPPosition'] . ';' : '').
|
| 493 |
( !empty($form_theme['CBPBGColor']) ? 'background-color:' . $form_theme['CBPBGColor'] . ';' : '').
|
| 494 |
-
(
|
| 495 |
'}';
|
| 496 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .closing-form {'.
|
| 497 |
( !empty($form_theme['CBPTop']) ? 'top:' . $form_theme['CBPTop'] . ';' : '').
|
|
@@ -519,7 +519,7 @@ class FMModelForm_maker {
|
|
| 519 |
else {
|
| 520 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .closing-form,
|
| 521 |
.fm-form-container.fm-theme' . $theme_id . ' .minimize-form {'.
|
| 522 |
-
(
|
| 523 |
( !empty($form_theme['CBPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['CBPBorderType'] . ' !important;' : '').
|
| 524 |
( !empty($form_theme['CBPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['CBPBorderColor'] . ' !important;' : '').
|
| 525 |
'}';
|
|
@@ -544,7 +544,7 @@ class FMModelForm_maker {
|
|
| 544 |
else {
|
| 545 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .closing-form:hover,
|
| 546 |
.fm-form-container.fm-theme' . $theme_id . ' .minimize-form:hover {'.
|
| 547 |
-
(
|
| 548 |
( !empty($form_theme['CBHPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['CBHPBorderType'] . ' !important;' : '').
|
| 549 |
( !empty($form_theme['CBHPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['CBHPBorderColor'] . ' !important;' : '').
|
| 550 |
'}';
|
|
@@ -571,6 +571,11 @@ class FMModelForm_maker {
|
|
| 571 |
( !empty($form_theme['OPFPos1']) ? 'background-position-x:' . $form_theme['OPFPos1'] . ';' : '').
|
| 572 |
( !empty($form_theme['OPFPos2']) ? 'background-position-y:' . $form_theme['OPFPos2'] . ';' : '').
|
| 573 |
'}';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 574 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form .file-upload input {' .
|
| 575 |
( !empty($form_theme['OPFBgUrl']) ? 'position: absolute; visibility: hidden;' : 'border: none;') .
|
| 576 |
'}';
|
|
@@ -621,7 +626,7 @@ class FMModelForm_maker {
|
|
| 621 |
( !empty($form_theme['IPFontWeight']) ? 'font-weight:' . $form_theme['IPFontWeight'] . ';' : '').
|
| 622 |
( !empty($form_theme['IPFontSize']) ? 'font-size:' . $form_theme['IPFontSize'] . 'px;' : '').
|
| 623 |
( !empty($form_theme['IPColor']) ? 'color:' . $form_theme['IPColor'] . ';' : '').
|
| 624 |
-
(
|
| 625 |
( !empty($form_theme['IPBoxShadow']) ? 'box-shadow:' . $form_theme['IPBoxShadow'] . ';' : '').
|
| 626 |
'}';
|
| 627 |
if ( $borders['IP'] ) {
|
|
@@ -657,13 +662,13 @@ class FMModelForm_maker {
|
|
| 657 |
.fm-form-container.fm-theme' . $theme_id . ' .fm-form .ui-slider,
|
| 658 |
.fm-form-container.fm-theme' . $theme_id . ' .fm-form .ui-slider-handle,
|
| 659 |
.fm-form-container.fm-theme' . $theme_id . ' .fm-form select {'.
|
| 660 |
-
(
|
| 661 |
( !empty($form_theme['IPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['IPBorderType'] . ' !important;' : '').
|
| 662 |
( !empty($form_theme['IPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['IPBorderColor'] . ' !important;' : '').
|
| 663 |
'}';
|
| 664 |
if ( $border == 'left' ) {
|
| 665 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form .ui-spinner-button {'.
|
| 666 |
-
(
|
| 667 |
( !empty($form_theme['IPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['IPBorderType'] . ' !important;' : '').
|
| 668 |
( !empty($form_theme['IPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['IPBorderColor'] . ' !important;' : '').
|
| 669 |
'}';
|
|
@@ -694,7 +699,7 @@ class FMModelForm_maker {
|
|
| 694 |
( !empty($form_theme['SCPMargin']) ? 'margin:' . $form_theme['SCPMargin'] . ';' : '').
|
| 695 |
( !empty($form_theme['SCPBGColor']) ? 'background-color:' . $form_theme['SCPBGColor'] . ';' : '').
|
| 696 |
( !empty($form_theme['SCPBoxShadow']) ? 'box-shadow:' . $form_theme['SCPBoxShadow'] . ';' : '').
|
| 697 |
-
(
|
| 698 |
'}';
|
| 699 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form .radio-div input[type="radio"]:checked + label span:after {'.
|
| 700 |
( !empty($form_theme['SCCPWidth']) ? 'content:""; display: block;' : '').
|
|
@@ -702,7 +707,7 @@ class FMModelForm_maker {
|
|
| 702 |
( !empty($form_theme['SCCPHeight']) ? 'height:' . $form_theme['SCCPHeight'] . 'px;' : '').
|
| 703 |
( !empty($form_theme['SCCPMargin']) ? 'margin:' . $form_theme['SCCPMargin'] . 'px;' : '').
|
| 704 |
( !empty($form_theme['SCCPBGColor']) ? 'background-color:' . $form_theme['SCCPBGColor'] . ';' : '').
|
| 705 |
-
(
|
| 706 |
'}';
|
| 707 |
if ( !empty($borders['SCP']) ) {
|
| 708 |
foreach ( $borders['SCP'] as $border ) {
|
|
@@ -714,7 +719,7 @@ class FMModelForm_maker {
|
|
| 714 |
}
|
| 715 |
else {
|
| 716 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form .radio-div label span {'.
|
| 717 |
-
(
|
| 718 |
( !empty($form_theme['SCPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['SCPBorderType'] . ' !important;' : '').
|
| 719 |
( !empty($form_theme['SCPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['SCPBorderColor'] . ' !important;' : '').
|
| 720 |
'}';
|
|
@@ -727,7 +732,7 @@ class FMModelForm_maker {
|
|
| 727 |
( !empty($form_theme['MCPMargin']) ? 'margin:' . $form_theme['MCPMargin'] . ';' : '').
|
| 728 |
( !empty($form_theme['MCPBGColor']) ? 'background-color:' . $form_theme['MCPBGColor'] . ';' : '').
|
| 729 |
( !empty($form_theme['MCPBoxShadow']) ? 'box-shadow:' . $form_theme['MCPBoxShadow'] . ';' : '').
|
| 730 |
-
(
|
| 731 |
'}';
|
| 732 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form .checkbox-div input[type="checkbox"]:checked + label span:after {'.
|
| 733 |
( (!empty($form_theme['MCCPBackground']) || !empty($form_theme['MCCPBGColor'])) ? 'content:""; display: block;' : '').
|
|
@@ -739,7 +744,7 @@ class FMModelForm_maker {
|
|
| 739 |
( !empty($form_theme['MCCPBGRepeat']) ? 'background-repeat:' . $form_theme['MCCPBGRepeat'] . ';' : '').
|
| 740 |
( !empty($form_theme['MCCPBGPos1']) ? 'background-position-x:' . $form_theme['MCCPBGPos1'] . ';' : '').
|
| 741 |
( !empty($form_theme['MCCPBGPos2']) ? 'background-position-y:' . $form_theme['MCCPBGPos2'] . ';' : '').
|
| 742 |
-
(
|
| 743 |
'}';
|
| 744 |
if ( !empty($borders['MCP']) ) {
|
| 745 |
foreach ( $borders['MCP'] as $border ) {
|
|
@@ -751,7 +756,7 @@ class FMModelForm_maker {
|
|
| 751 |
}
|
| 752 |
else {
|
| 753 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form .checkbox-div label span {'.
|
| 754 |
-
(
|
| 755 |
( !empty($form_theme['MCPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['MCPBorderType'] . ' !important;' : '').
|
| 756 |
( !empty($form_theme['MCPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['MCPBorderColor'] . ' !important;' : '').
|
| 757 |
'}';
|
|
@@ -773,7 +778,7 @@ class FMModelForm_maker {
|
|
| 773 |
( !empty($form_theme['SPFontSize']) ? 'font-size:' . $form_theme['SPFontSize'] . 'px !important;' : '').
|
| 774 |
( !empty($form_theme['SPColor']) ? 'color:' . $form_theme['SPColor'] . ' !important;' : '').
|
| 775 |
( !empty($form_theme['SPBoxShadow']) ? 'box-shadow:' . $form_theme['SPBoxShadow'] . ' !important;' : '').
|
| 776 |
-
(
|
| 777 |
'}';
|
| 778 |
if ( !empty($borders['SP']) ) {
|
| 779 |
foreach ( $borders['SP'] as $border ) {
|
|
@@ -785,7 +790,7 @@ class FMModelForm_maker {
|
|
| 785 |
}
|
| 786 |
else {
|
| 787 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form .button-submit {'.
|
| 788 |
-
(
|
| 789 |
( !empty($form_theme['SPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['SPBorderType'] . ' !important;' : '').
|
| 790 |
( !empty($form_theme['SPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['SPBorderColor'] . ' !important;' : '').
|
| 791 |
'}';
|
|
@@ -806,7 +811,7 @@ class FMModelForm_maker {
|
|
| 806 |
}
|
| 807 |
else {
|
| 808 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form .button-submit:hover {'.
|
| 809 |
-
(
|
| 810 |
( !empty($form_theme['SHPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['SHPBorderType'] . ' !important;' : '').
|
| 811 |
( !empty($form_theme['SHPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['SHPBorderColor'] . ' !important;' : '').
|
| 812 |
'}';
|
|
@@ -824,7 +829,7 @@ class FMModelForm_maker {
|
|
| 824 |
( !empty($form_theme['BPFontWeight']) ? 'font-weight:' . $form_theme['BPFontWeight'] . ' !important;' : '').
|
| 825 |
( !empty($form_theme['BPFontSize']) ? 'font-size:' . $form_theme['BPFontSize'] . 'px !important;' : '').
|
| 826 |
( !empty($form_theme['BPColor']) ? 'color:' . $form_theme['BPColor'] . ' !important;' : '').
|
| 827 |
-
(
|
| 828 |
( !empty($form_theme['BPBoxShadow']) ? 'box-shadow:' . $form_theme['BPBoxShadow'] . ' !important;' : '').
|
| 829 |
'}';
|
| 830 |
if ( !empty($borders['BP']) ) {
|
|
@@ -839,7 +844,7 @@ class FMModelForm_maker {
|
|
| 839 |
else {
|
| 840 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form .button-reset,
|
| 841 |
.fm-form-container.fm-theme' . $theme_id . ' .fm-form button {'.
|
| 842 |
-
(
|
| 843 |
( !empty($form_theme['BPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['BPBorderType'] . ' !important;' : '').
|
| 844 |
( !empty($form_theme['BPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['BPBorderColor'] . ' !important;' : '').
|
| 845 |
'}';
|
|
@@ -863,7 +868,7 @@ class FMModelForm_maker {
|
|
| 863 |
else {
|
| 864 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form .button-reset:hover,
|
| 865 |
.fm-form-container.fm-theme' . $theme_id . ' .fm-form button:hover {'.
|
| 866 |
-
(
|
| 867 |
( !empty($form_theme['BHPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['BHPBorderType'] . ' !important;' : '').
|
| 868 |
( !empty($form_theme['BHPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['BHPBorderColor'] . ' !important;' : '').
|
| 869 |
'}';
|
|
@@ -879,7 +884,7 @@ class FMModelForm_maker {
|
|
| 879 |
( !empty($form_theme['BPFontWeight']) ? 'font-weight:' . $form_theme['BPFontWeight'] . ' !important;' : '').
|
| 880 |
( !empty($form_theme['BPFontSize']) ? 'font-size:' . $form_theme['BPFontSize'] . 'px !important;' : '').
|
| 881 |
( !empty($form_theme['NBPColor']) ? 'color:' . $form_theme['NBPColor'] . ' !important;' : '').
|
| 882 |
-
(
|
| 883 |
( !empty($form_theme['NBPBoxShadow']) ? 'box-shadow:' . $form_theme['NBPBoxShadow'] . ' !important;' : '').
|
| 884 |
'}';
|
| 885 |
if ( !empty($borders['NBP']) ) {
|
|
@@ -892,7 +897,7 @@ class FMModelForm_maker {
|
|
| 892 |
}
|
| 893 |
else {
|
| 894 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form .next-page div.wdform-page-button {'.
|
| 895 |
-
(
|
| 896 |
( !empty($form_theme['NBPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['NBPBorderType'] . ' !important;' : '').
|
| 897 |
( !empty($form_theme['NBPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['NBPBorderColor'] . ' !important;' : '').
|
| 898 |
'}';
|
|
@@ -917,7 +922,7 @@ class FMModelForm_maker {
|
|
| 917 |
}
|
| 918 |
else {
|
| 919 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form .next-page div.wdform-page-button:hover {'.
|
| 920 |
-
(
|
| 921 |
( !empty($form_theme['NBHPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['NBHPBorderType'] . ' !important;' : '').
|
| 922 |
( !empty($form_theme['NBHPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['NBHPBorderColor'] . ' !important;' : '').
|
| 923 |
'}';
|
|
@@ -933,7 +938,7 @@ class FMModelForm_maker {
|
|
| 933 |
( !empty($form_theme['BPFontWeight']) ? 'font-weight:' . $form_theme['BPFontWeight'] . ' !important;' : '').
|
| 934 |
( !empty($form_theme['BPFontSize']) ? 'font-size:' . $form_theme['BPFontSize'] . 'px !important;' : '').
|
| 935 |
( !empty($form_theme['PBPColor']) ? 'color:' . $form_theme['PBPColor'] . ' !important;' : '').
|
| 936 |
-
(
|
| 937 |
( !empty($form_theme['PBPBoxShadow']) ? 'box-shadow:' . $form_theme['PBPBoxShadow'] . ' !important;' : '').
|
| 938 |
'}';
|
| 939 |
if ( !empty($borders['PBP']) ) {
|
|
@@ -946,7 +951,7 @@ class FMModelForm_maker {
|
|
| 946 |
}
|
| 947 |
else {
|
| 948 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form .previous-page div.wdform-page-button {'.
|
| 949 |
-
(
|
| 950 |
( !empty($form_theme['PBPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['PBPBorderType'] . ' !important;' : '').
|
| 951 |
( !empty($form_theme['PBPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['PBPBorderColor'] . ' !important;' : '').
|
| 952 |
'}';
|
|
@@ -967,7 +972,7 @@ class FMModelForm_maker {
|
|
| 967 |
}
|
| 968 |
else {
|
| 969 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form .previous-page div.wdform-page-button:hover {'.
|
| 970 |
-
(
|
| 971 |
( !empty($form_theme['PBHPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['PBHPBorderType'] . ' !important;' : '').
|
| 972 |
( !empty($form_theme['PBHPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['PBHPBorderColor'] . ' !important;' : '').
|
| 973 |
'}';
|
|
@@ -1105,25 +1110,44 @@ class FMModelForm_maker {
|
|
| 1105 |
'response' => $captcha,
|
| 1106 |
'remoteip' => $_SERVER['REMOTE_ADDR'],
|
| 1107 |
);
|
| 1108 |
-
$
|
| 1109 |
-
|
| 1110 |
-
|
| 1111 |
-
|
| 1112 |
-
|
| 1113 |
-
|
| 1114 |
-
|
| 1115 |
-
|
| 1116 |
-
|
| 1117 |
-
|
| 1118 |
-
|
| 1119 |
-
|
| 1120 |
-
|
| 1121 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1122 |
}
|
| 1123 |
else {
|
| 1124 |
-
$_SESSION['massage_after_submit' . $id] = addslashes(addslashes(__('
|
| 1125 |
$_SESSION['message_captcha'] = $_SESSION['massage_after_submit' . $id];
|
| 1126 |
$_SESSION['error_or_no' . $id] = 1;
|
|
|
|
| 1127 |
}
|
| 1128 |
}
|
| 1129 |
else {
|
|
@@ -1151,7 +1175,9 @@ class FMModelForm_maker {
|
|
| 1151 |
exit;
|
| 1152 |
}
|
| 1153 |
if ( isset($_POST["save_or_submit" . $id]) && $_POST["save_or_submit" . $id] == 'save' ) {
|
| 1154 |
-
|
|
|
|
|
|
|
| 1155 |
return $all_files;
|
| 1156 |
}
|
| 1157 |
else {
|
|
@@ -1163,8 +1189,9 @@ class FMModelForm_maker {
|
|
| 1163 |
$_SESSION['error_or_no' . $id] = 1;
|
| 1164 |
}
|
| 1165 |
else {
|
| 1166 |
-
|
| 1167 |
-
|
|
|
|
| 1168 |
if ( isset($counter) ) {
|
| 1169 |
$this->gen_mail($counter, $all_files, $id_for_old, $result_temp[1]);
|
| 1170 |
}
|
|
@@ -2227,7 +2254,9 @@ class FMModelForm_maker {
|
|
| 2227 |
$frontend_parmas['all_files'] = json_encode($all_files);
|
| 2228 |
$frontend_parmas['form_currency'] = $form_currency;
|
| 2229 |
|
| 2230 |
-
|
|
|
|
|
|
|
| 2231 |
return array( $all_files, $str );
|
| 2232 |
}
|
| 2233 |
|
|
@@ -2958,7 +2987,7 @@ class FMModelForm_maker {
|
|
| 2958 |
$replyto = $row->reply_to_user;
|
| 2959 |
}
|
| 2960 |
$attachment_user = array();
|
| 2961 |
-
if ( !WDFM()->is_demo
|
| 2962 |
for ( $k = 0; $k < count($all_files); $k++ ) {
|
| 2963 |
if ( isset($all_files[$k]['tmp_name']) ) {
|
| 2964 |
if ( !isset($attachment_user[$all_files[$k]['field_key']]) ) {
|
|
@@ -3048,9 +3077,9 @@ class FMModelForm_maker {
|
|
| 3048 |
$body = $new_script;
|
| 3049 |
$GLOBALS['attachment_user'] = '';
|
| 3050 |
$GLOBALS['attachment'] = '';
|
| 3051 |
-
|
| 3052 |
-
|
| 3053 |
-
|
| 3054 |
if ( $GLOBALS['attachment_user'] ) {
|
| 3055 |
array_push($attachment_user, $GLOBALS['attachment_user']);
|
| 3056 |
}
|
|
@@ -3079,8 +3108,13 @@ class FMModelForm_maker {
|
|
| 3079 |
$body = $row->mail_verify ? str_replace("%Verification link%", $ver_link, $new_script) : str_replace("%Verification link%", '', $new_script);
|
| 3080 |
}
|
| 3081 |
if ( $recipient ) {
|
| 3082 |
-
|
| 3083 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3084 |
$send = wp_mail(str_replace(' ', '', $recipient), $subject, stripslashes($body), $headers, $attachment_user);
|
| 3085 |
}
|
| 3086 |
}
|
|
@@ -3104,7 +3138,7 @@ class FMModelForm_maker {
|
|
| 3104 |
}
|
| 3105 |
$fromname = $row->from_name;
|
| 3106 |
$attachment = array();
|
| 3107 |
-
if ( !WDFM()->is_demo
|
| 3108 |
for ( $k = 0; $k < count($all_files); $k++ ) {
|
| 3109 |
if ( isset($all_files[$k]['tmp_name']) ) {
|
| 3110 |
if ( !isset($attachment[$all_files[$k]['field_key']]) ) {
|
|
@@ -3202,8 +3236,13 @@ class FMModelForm_maker {
|
|
| 3202 |
}
|
| 3203 |
}
|
| 3204 |
$admin_body = $new_script;
|
| 3205 |
-
|
| 3206 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3207 |
if ( $recipient ) {
|
| 3208 |
$send = wp_mail(str_replace(' ', '', $recipient), $subject, stripslashes($admin_body), $headers, $attachment);
|
| 3209 |
}
|
|
@@ -3243,8 +3282,9 @@ class FMModelForm_maker {
|
|
| 3243 |
'form_currency' => $form_currency,
|
| 3244 |
'custom_fields_value' => ( isset($custom_fields_value) ? $custom_fields_value : array() ),
|
| 3245 |
);
|
| 3246 |
-
|
| 3247 |
-
|
|
|
|
| 3248 |
// delete files from uploads (save_upload = 0)
|
| 3249 |
if ( $row->save_uploads == 0 ) {
|
| 3250 |
foreach ( $all_files as &$all_file ) {
|
|
@@ -3288,14 +3328,13 @@ class FMModelForm_maker {
|
|
| 3288 |
break;
|
| 3289 |
}
|
| 3290 |
}
|
| 3291 |
-
|
| 3292 |
if ( !$str ) {
|
| 3293 |
wp_redirect(html_entity_decode($redirect_url));
|
| 3294 |
exit;
|
| 3295 |
}
|
| 3296 |
else {
|
| 3297 |
$_SESSION['redirect_paypal' . $id] = 1;
|
| 3298 |
-
$str .= "&return=" . urlencode($redirect_url);
|
| 3299 |
wp_redirect($str);
|
| 3300 |
exit;
|
| 3301 |
}
|
| 12 |
*/
|
| 13 |
public function showform( $id, $type = 'embedded' ) {
|
| 14 |
global $wpdb;
|
| 15 |
+
$row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'formmaker WHERE id="%d"' . (!WDFM()->is_free ? '' : ' AND id' . (WDFM()->is_free == 1 ? ' NOT ' : ' ') . 'IN (' . (get_option('contact_form_forms', '') != '' ? get_option('contact_form_forms') : 0) . ')'), $id));
|
| 16 |
|
| 17 |
if ( !$row ) {
|
| 18 |
echo WDW_FM_Library::message(__('Something went wrong when trying to display this form.', WDFM()->prefix), 'fm-notice-error');
|
| 158 |
( !empty($form_theme['AGPWidth']) ? 'width:'. $form_theme['AGPWidth'] .'%;' : '' ).
|
| 159 |
( !empty($form_theme['AGPMargin']) ? 'margin:'. $form_theme['AGPMargin'] .';' : '' ).
|
| 160 |
( !empty($form_theme['AGPPadding']) ? 'padding:'. $form_theme['AGPPadding'] .' !important;' : '' ).
|
| 161 |
+
( (isset($form_theme['AGPBorderRadius']) && $form_theme['AGPBorderRadius'] !== '') ? 'border-radius:'. $form_theme['AGPBorderRadius'] .'px;' : '' ).
|
| 162 |
( !empty($form_theme['AGPBoxShadow']) ? 'box-shadow:'. $form_theme['AGPBoxShadow'] .';' : '' ).
|
| 163 |
'}';
|
| 164 |
if ( !empty($borders['AGP']) ) {
|
| 171 |
}
|
| 172 |
else {
|
| 173 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form {'.
|
| 174 |
+
( (isset($form_theme['AGPBorderWidth']) && $form_theme['AGPBorderWidth'] !== '') ? 'border-' . $border . ':' . $form_theme['AGPBorderWidth'] . 'px !important;' : '').
|
| 175 |
( !empty($form_theme['AGPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['AGPBorderType'] . ' !important;' : '').
|
| 176 |
( !empty($form_theme['AGPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['AGPBorderColor'] . ' !important;' : '').
|
| 177 |
'}';
|
| 188 |
( !empty($form_theme['HPWidth']) ? 'width:' . $form_theme['HPWidth'] . '%;' : '').
|
| 189 |
( !empty($form_theme['HPMargin']) ? 'margin:' . $form_theme['HPMargin'] .';': '').
|
| 190 |
( !empty($form_theme['HPPadding']) ? 'padding:' . $form_theme['HPPadding'] .'!important;' : '').
|
| 191 |
+
( (isset($form_theme['HPBorderRadius']) && $form_theme['HPBorderRadius'] !== '') ? 'border-radius:' . $form_theme['HPBorderRadius'] .'px;' : '').
|
| 192 |
( !empty($form_theme['HPTextAlign']) ? 'text-align:' . $form_theme['HPTextAlign'] .';' : '').
|
| 193 |
'}';
|
| 194 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form .image_left_right.fm-header {'.
|
| 207 |
}
|
| 208 |
else {
|
| 209 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form .fm-header {'.
|
| 210 |
+
( (isset($form_theme['HPBorderWidth']) && $form_theme['HPBorderWidth'] !== '') ? 'border-' . $border . ':' . $form_theme['HPBorderWidth'] . 'px !important;' : '').
|
| 211 |
( !empty($form_theme['HPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['HPBorderType'] . ' !important;' : '').
|
| 212 |
( !empty($form_theme['HPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['HPBorderColor'] . ' !important;' : '').
|
| 213 |
'}';
|
| 240 |
( !empty($form_theme['MBPTextAlign']) ? 'text-align:' . $form_theme['MBPTextAlign'] . ';' : '').
|
| 241 |
( !empty($form_theme['MBPFontSize']) ? 'font-size:' . $form_theme['MBPFontSize'] . 'px;' : '').
|
| 242 |
( !empty($form_theme['MBPFontWeight']) ? 'font-weight:' . $form_theme['MBPFontWeight'] . ';' : '').
|
| 243 |
+
( (isset($form_theme['MBPBorderRadius']) && $form_theme['MBPBorderRadius'] !== '') ? 'border-radius:' . $form_theme['MBPBorderRadius'] . 'px;' : '').
|
| 244 |
'}';
|
| 245 |
if ( !empty($borders['MBP']) ) {
|
| 246 |
foreach ( $borders['MBP'] as $border ) {
|
| 252 |
}
|
| 253 |
else {
|
| 254 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-minimize-text div {'.
|
| 255 |
+
( (isset($form_theme['MBPBorderWidth']) && $form_theme['MBPBorderWidth'] !== '') ? 'border-' . $border . ':' . $form_theme['MBPBorderWidth'] . 'px !important;' : '').
|
| 256 |
( !empty($form_theme['MBPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['MBPBorderType'] . ' !important;' : '').
|
| 257 |
( !empty($form_theme['MBPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['MBPBorderColor'] . ' !important;' : '').
|
| 258 |
'}';
|
| 273 |
}
|
| 274 |
else {
|
| 275 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-minimize-text div:hover { '.
|
| 276 |
+
( (isset($form_theme['MBHPBorderWidth']) && $form_theme['MBHPBorderWidth'] !== '') ? 'border-' . $border . ':' . $form_theme['MBHPBorderWidth'] . 'px !important;' : '').
|
| 277 |
( !empty($form_theme['MBHPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['MBHPBorderType'] . ' !important;' : '').
|
| 278 |
( !empty($form_theme['MBHPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['MBHPBorderColor'] . ' !important;' : '').
|
| 279 |
'}';
|
| 284 |
( !empty($form_theme['GPWidth']) ? 'width:' . $form_theme['GPWidth'] . '%;' : '').
|
| 285 |
( !empty($form_theme['GPMargin']) ? 'margin:' . $form_theme['GPMargin'] . ';' : '').
|
| 286 |
( !empty($form_theme['GPPadding']) ? 'padding:' . $form_theme['GPPadding'] . ';' : '').
|
| 287 |
+
( (isset($form_theme['GPBorderRadius']) && $form_theme['GPBorderRadius'] !== '') ? 'border-radius:' . $form_theme['GPBorderRadius'] . 'px;' : '').
|
| 288 |
( !empty($form_theme['GPFontWeight']) ? 'font-weight:' . $form_theme['GPFontWeight'] . ';' : '').
|
| 289 |
( !empty($form_theme['GPFontSize']) ? 'font-size:' . $form_theme['GPFontSize'] . 'px;' : '').
|
| 290 |
( !empty($form_theme['GPColor']) ? 'color:' . $form_theme['GPColor'] . ';' : '').
|
| 306 |
$css_content .= '
|
| 307 |
.fm-form-container.fm-theme' . $theme_id . ' .fm-form .wdform-page-and-images,
|
| 308 |
.fm-form-container.fm-theme' . $theme_id . ' .fm-minimize-text {'.
|
| 309 |
+
( (isset($form_theme['GPBorderWidth']) && $form_theme['GPBorderWidth'] !== '') ? 'border-' . $border . ':' . $form_theme['GPBorderWidth'] . 'px !important;' : '').
|
| 310 |
( !empty($form_theme['GPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['GPBorderType'] . ' !important;' : '').
|
| 311 |
( !empty($form_theme['GPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['GPBorderColor'] . ' !important;' : '').
|
| 312 |
'}';
|
| 374 |
( !empty($form_theme['PSAPFontWeight']) ? 'font-weight:' . $form_theme['PSAPFontWeight'] . ';' : '').
|
| 375 |
( !empty($form_theme['PSAPColor']) ? 'color:' . $form_theme['PSAPColor'] . ';' : '').
|
| 376 |
( !empty($form_theme['PSAPLineHeight']) ? 'line-height:' . $form_theme['PSAPLineHeight'] . 'px;' : '').
|
| 377 |
+
( (isset($form_theme['PSAPBorderRadius']) && $form_theme['PSAPBorderRadius'] !== '') ? 'border-radius:' . $form_theme['PSAPBorderRadius'] . 'px;' : '').
|
| 378 |
'}';
|
| 379 |
if ( $borders['PSAP'] ) {
|
| 380 |
foreach ( $borders['PSAP'] as $border ) {
|
| 386 |
}
|
| 387 |
else {
|
| 388 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-pages .page_active {'.
|
| 389 |
+
( (isset($form_theme['PSAPBorderWidth']) && $form_theme['PSAPBorderWidth'] !== '') ? 'border-' . $border . ':' . $form_theme['PSAPBorderWidth'] . 'px !important;' : '').
|
| 390 |
( !empty($form_theme['PSAPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['PSAPBorderType'] . ' !important;' : '').
|
| 391 |
( !empty($form_theme['PSAPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['PSAPBorderColor'] . ' !important;' : '').
|
| 392 |
'}';
|
| 400 |
( !empty($form_theme['PSDPMargin']) ? 'margin:' . $form_theme['PSDPMargin'] . ';' : '').
|
| 401 |
( !empty($form_theme['PSDPPadding']) ? 'padding:' . $form_theme['PSDPPadding'] . ';' : '').
|
| 402 |
( !empty($form_theme['PSDPLineHeight']) ? 'line-height:' . $form_theme['PSDPLineHeight'] . 'px;' : '').
|
| 403 |
+
( (isset($form_theme['PSAPBorderRadius']) && $form_theme['PSAPBorderRadius'] !== '') ? 'border-radius:' . $form_theme['PSAPBorderRadius'] . 'px;' : '').
|
| 404 |
( !empty($form_theme['PSDPFontWeight']) ? 'font-weight:' . $form_theme['PSDPFontWeight'] . ';' : '').
|
| 405 |
( !empty($form_theme['PSDPFontSize']) ? 'font-size:' . $form_theme['PSDPFontSize'] . 'px;' : '').
|
| 406 |
( !empty($form_theme['PSDPColor']) ? 'color:' . $form_theme['PSDPColor'] . ';' : '').
|
| 415 |
}
|
| 416 |
else {
|
| 417 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-pages .page_deactive {'.
|
| 418 |
+
( (isset($form_theme['PSDPBorderWidth']) && $form_theme['PSDPBorderWidth'] !== '') ? 'border-' . $border . ':' . $form_theme['PSDPBorderWidth'] . 'px !important;' : '').
|
| 419 |
( !empty($form_theme['PSDPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['PSDPBorderType'] . ' !important;' : '').
|
| 420 |
( !empty($form_theme['PSDPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['PSDPBorderColor'] . ' !important;' : '').
|
| 421 |
'}';
|
| 432 |
( !empty($form_theme['PSAPFontSize']) ? 'font-size:' . $form_theme['PSAPFontSize'] . 'px;' : '').
|
| 433 |
( !empty($form_theme['PSAPColor']) ? 'color:' . $form_theme['PSAPColor'] . ';' : '').
|
| 434 |
( !empty($form_theme['PSAPLineHeight']) ? 'line-height:' . $form_theme['PSAPLineHeight'] . 'px;' : '').
|
| 435 |
+
( (isset($form_theme['PSAPBorderRadius']) && $form_theme['PSAPBorderRadius'] !== '') ? 'border-radius:' . $form_theme['PSAPBorderRadius'] . 'px;' : '').
|
| 436 |
'}';
|
| 437 |
if ( $borders['PSAP'] ) {
|
| 438 |
foreach ( $borders['PSAP'] as $border ) {
|
| 444 |
}
|
| 445 |
else {
|
| 446 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-pages .page_percentage_active {'.
|
| 447 |
+
( (isset($form_theme['PSAPBorderWidth']) && $form_theme['PSAPBorderWidth'] !== '') ? 'border-' . $border . ':' . $form_theme['PSAPBorderWidth'] . 'px !important;' : '').
|
| 448 |
( !empty($form_theme['PSAPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['PSAPBorderType'] . ' !important;' : '').
|
| 449 |
( !empty($form_theme['PSAPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['PSAPBorderColor'] . ' !important;' : '').
|
| 450 |
'}';
|
| 461 |
( !empty($form_theme['PSDPFontSize']) ? 'font-size:' . $form_theme['PSDPFontSize'] . 'px;' : '').
|
| 462 |
( !empty($form_theme['PSDPColor']) ? 'color:' . $form_theme['PSDPColor'] . ';' : '').
|
| 463 |
( !empty($form_theme['PSDPLineHeight']) ? 'line-height:' . $form_theme['PSDPLineHeight'] . 'px;' : '').
|
| 464 |
+
( (isset($form_theme['PSDPBorderRadius']) && $form_theme['PSDPBorderRadius'] !== '') ? 'border-radius:' . $form_theme['PSDPBorderRadius'] . 'px;' : '').
|
| 465 |
'}';
|
| 466 |
if ( $borders['PSDP'] ) {
|
| 467 |
foreach ( $borders['PSDP'] as $border ) {
|
| 473 |
}
|
| 474 |
else {
|
| 475 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-pages .page_percentage_deactive {'.
|
| 476 |
+
( (isset($form_theme['PSDPBorderWidth']) && $form_theme['PSDPBorderWidth'] !== '') ? 'border-' . $border . ':' . $form_theme['PSDPBorderWidth'] . 'px !important;' : '').
|
| 477 |
( !empty($form_theme['PSDPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['PSDPBorderType'] . ' !important;' : '').
|
| 478 |
( !empty($form_theme['PSDPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['PSDPBorderColor'] . ' !important;' : '').
|
| 479 |
'}';
|
| 491 |
( !empty($form_theme['CBPPadding']) ? 'padding:' . $form_theme['CBPPadding'] . ';' : '').
|
| 492 |
( !empty($form_theme['CBPPosition']) ? 'position:' . $form_theme['CBPPosition'] . ';' : '').
|
| 493 |
( !empty($form_theme['CBPBGColor']) ? 'background-color:' . $form_theme['CBPBGColor'] . ';' : '').
|
| 494 |
+
( (isset($form_theme['CBPBorderRadius']) && $form_theme['CBPBorderRadius'] !== '') ? 'border-radius:' . $form_theme['CBPBorderRadius'] . 'px;' : '').
|
| 495 |
'}';
|
| 496 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .closing-form {'.
|
| 497 |
( !empty($form_theme['CBPTop']) ? 'top:' . $form_theme['CBPTop'] . ';' : '').
|
| 519 |
else {
|
| 520 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .closing-form,
|
| 521 |
.fm-form-container.fm-theme' . $theme_id . ' .minimize-form {'.
|
| 522 |
+
( (isset($form_theme['CBPBorderWidth']) && $form_theme['CBPBorderWidth'] !== '') ? 'border-' . $border . ':' . $form_theme['CBPBorderWidth'] . 'px !important;' : '').
|
| 523 |
( !empty($form_theme['CBPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['CBPBorderType'] . ' !important;' : '').
|
| 524 |
( !empty($form_theme['CBPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['CBPBorderColor'] . ' !important;' : '').
|
| 525 |
'}';
|
| 544 |
else {
|
| 545 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .closing-form:hover,
|
| 546 |
.fm-form-container.fm-theme' . $theme_id . ' .minimize-form:hover {'.
|
| 547 |
+
( (isset($form_theme['CBHPBorderWidth']) && $form_theme['CBHPBorderWidth'] !== '') ? 'border-' . $border . ':' . $form_theme['CBHPBorderWidth'] . 'px !important;' : '').
|
| 548 |
( !empty($form_theme['CBHPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['CBHPBorderType'] . ' !important;' : '').
|
| 549 |
( !empty($form_theme['CBHPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['CBHPBorderColor'] . ' !important;' : '').
|
| 550 |
'}';
|
| 571 |
( !empty($form_theme['OPFPos1']) ? 'background-position-x:' . $form_theme['OPFPos1'] . ';' : '').
|
| 572 |
( !empty($form_theme['OPFPos2']) ? 'background-position-y:' . $form_theme['OPFPos2'] . ';' : '').
|
| 573 |
'}';
|
| 574 |
+
if (empty($form_theme['OPFBgUrl'])) {
|
| 575 |
+
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form .file-upload-status {' .
|
| 576 |
+
'display: none;' .
|
| 577 |
+
'}';
|
| 578 |
+
}
|
| 579 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form .file-upload input {' .
|
| 580 |
( !empty($form_theme['OPFBgUrl']) ? 'position: absolute; visibility: hidden;' : 'border: none;') .
|
| 581 |
'}';
|
| 626 |
( !empty($form_theme['IPFontWeight']) ? 'font-weight:' . $form_theme['IPFontWeight'] . ';' : '').
|
| 627 |
( !empty($form_theme['IPFontSize']) ? 'font-size:' . $form_theme['IPFontSize'] . 'px;' : '').
|
| 628 |
( !empty($form_theme['IPColor']) ? 'color:' . $form_theme['IPColor'] . ';' : '').
|
| 629 |
+
( (isset($form_theme['IPBorderRadius']) && $form_theme['IPBorderRadius'] !== '') ? 'border-radius:' . $form_theme['IPBorderRadius'] . 'px !important;' : '').
|
| 630 |
( !empty($form_theme['IPBoxShadow']) ? 'box-shadow:' . $form_theme['IPBoxShadow'] . ';' : '').
|
| 631 |
'}';
|
| 632 |
if ( $borders['IP'] ) {
|
| 662 |
.fm-form-container.fm-theme' . $theme_id . ' .fm-form .ui-slider,
|
| 663 |
.fm-form-container.fm-theme' . $theme_id . ' .fm-form .ui-slider-handle,
|
| 664 |
.fm-form-container.fm-theme' . $theme_id . ' .fm-form select {'.
|
| 665 |
+
( (isset($form_theme['IPBorderWidth']) && $form_theme['IPBorderWidth'] !== '') ? 'border-' . $border . ':' . $form_theme['IPBorderWidth'] . 'px !important;' : '').
|
| 666 |
( !empty($form_theme['IPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['IPBorderType'] . ' !important;' : '').
|
| 667 |
( !empty($form_theme['IPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['IPBorderColor'] . ' !important;' : '').
|
| 668 |
'}';
|
| 669 |
if ( $border == 'left' ) {
|
| 670 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form .ui-spinner-button {'.
|
| 671 |
+
( (isset($form_theme['IPBorderWidth']) && $form_theme['IPBorderWidth'] !== '') ? 'border-' . $border . ':' . $form_theme['IPBorderWidth'] . 'px !important;' : '').
|
| 672 |
( !empty($form_theme['IPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['IPBorderType'] . ' !important;' : '').
|
| 673 |
( !empty($form_theme['IPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['IPBorderColor'] . ' !important;' : '').
|
| 674 |
'}';
|
| 699 |
( !empty($form_theme['SCPMargin']) ? 'margin:' . $form_theme['SCPMargin'] . ';' : '').
|
| 700 |
( !empty($form_theme['SCPBGColor']) ? 'background-color:' . $form_theme['SCPBGColor'] . ';' : '').
|
| 701 |
( !empty($form_theme['SCPBoxShadow']) ? 'box-shadow:' . $form_theme['SCPBoxShadow'] . ';' : '').
|
| 702 |
+
( (isset($form_theme['SCPBorderRadius']) && $form_theme['SCPBorderRadius'] !== '') ? 'border-radius:' . $form_theme['SCPBorderRadius'] . 'px;' : '').
|
| 703 |
'}';
|
| 704 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form .radio-div input[type="radio"]:checked + label span:after {'.
|
| 705 |
( !empty($form_theme['SCCPWidth']) ? 'content:""; display: block;' : '').
|
| 707 |
( !empty($form_theme['SCCPHeight']) ? 'height:' . $form_theme['SCCPHeight'] . 'px;' : '').
|
| 708 |
( !empty($form_theme['SCCPMargin']) ? 'margin:' . $form_theme['SCCPMargin'] . 'px;' : '').
|
| 709 |
( !empty($form_theme['SCCPBGColor']) ? 'background-color:' . $form_theme['SCCPBGColor'] . ';' : '').
|
| 710 |
+
( (isset($form_theme['SCCPBorderRadius']) && $form_theme['SCCPBorderRadius'] !== '') ? 'border-radius:' . $form_theme['SCCPBorderRadius'] . 'px;' : '').
|
| 711 |
'}';
|
| 712 |
if ( !empty($borders['SCP']) ) {
|
| 713 |
foreach ( $borders['SCP'] as $border ) {
|
| 719 |
}
|
| 720 |
else {
|
| 721 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form .radio-div label span {'.
|
| 722 |
+
( (isset($form_theme['SCPBorderWidth']) && $form_theme['SCPBorderWidth'] !== '') ? 'border-' . $border . ':' . $form_theme['SCPBorderWidth'] . 'px !important;' : '').
|
| 723 |
( !empty($form_theme['SCPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['SCPBorderType'] . ' !important;' : '').
|
| 724 |
( !empty($form_theme['SCPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['SCPBorderColor'] . ' !important;' : '').
|
| 725 |
'}';
|
| 732 |
( !empty($form_theme['MCPMargin']) ? 'margin:' . $form_theme['MCPMargin'] . ';' : '').
|
| 733 |
( !empty($form_theme['MCPBGColor']) ? 'background-color:' . $form_theme['MCPBGColor'] . ';' : '').
|
| 734 |
( !empty($form_theme['MCPBoxShadow']) ? 'box-shadow:' . $form_theme['MCPBoxShadow'] . ';' : '').
|
| 735 |
+
( (isset($form_theme['MCPBorderRadius']) && $form_theme['MCPBorderRadius'] !== '') ? 'border-radius:' . $form_theme['MCPBorderRadius'] . 'px;' : '').
|
| 736 |
'}';
|
| 737 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form .checkbox-div input[type="checkbox"]:checked + label span:after {'.
|
| 738 |
( (!empty($form_theme['MCCPBackground']) || !empty($form_theme['MCCPBGColor'])) ? 'content:""; display: block;' : '').
|
| 744 |
( !empty($form_theme['MCCPBGRepeat']) ? 'background-repeat:' . $form_theme['MCCPBGRepeat'] . ';' : '').
|
| 745 |
( !empty($form_theme['MCCPBGPos1']) ? 'background-position-x:' . $form_theme['MCCPBGPos1'] . ';' : '').
|
| 746 |
( !empty($form_theme['MCCPBGPos2']) ? 'background-position-y:' . $form_theme['MCCPBGPos2'] . ';' : '').
|
| 747 |
+
( (isset($form_theme['MCCPBorderRadius']) && $form_theme['MCCPBorderRadius'] !== '') ? 'border-radius:' . $form_theme['MCCPBorderRadius'] . 'px;' : '').
|
| 748 |
'}';
|
| 749 |
if ( !empty($borders['MCP']) ) {
|
| 750 |
foreach ( $borders['MCP'] as $border ) {
|
| 756 |
}
|
| 757 |
else {
|
| 758 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form .checkbox-div label span {'.
|
| 759 |
+
( (isset($form_theme['MCPBorderWidth']) && $form_theme['MCPBorderWidth'] !== '') ? 'border-' . $border . ':' . $form_theme['MCPBorderWidth'] . 'px !important;' : '').
|
| 760 |
( !empty($form_theme['MCPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['MCPBorderType'] . ' !important;' : '').
|
| 761 |
( !empty($form_theme['MCPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['MCPBorderColor'] . ' !important;' : '').
|
| 762 |
'}';
|
| 778 |
( !empty($form_theme['SPFontSize']) ? 'font-size:' . $form_theme['SPFontSize'] . 'px !important;' : '').
|
| 779 |
( !empty($form_theme['SPColor']) ? 'color:' . $form_theme['SPColor'] . ' !important;' : '').
|
| 780 |
( !empty($form_theme['SPBoxShadow']) ? 'box-shadow:' . $form_theme['SPBoxShadow'] . ' !important;' : '').
|
| 781 |
+
( (isset($form_theme['SPBorderRadius']) && $form_theme['SPBorderRadius'] !== '') ? 'border-radius:' . $form_theme['SPBorderRadius'] . 'px !important;' : '').
|
| 782 |
'}';
|
| 783 |
if ( !empty($borders['SP']) ) {
|
| 784 |
foreach ( $borders['SP'] as $border ) {
|
| 790 |
}
|
| 791 |
else {
|
| 792 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form .button-submit {'.
|
| 793 |
+
( (isset($form_theme['SPBorderWidth']) && $form_theme['SPBorderWidth'] !== '') ? 'border-' . $border . ':' . $form_theme['SPBorderWidth'] . 'px !important;' : '').
|
| 794 |
( !empty($form_theme['SPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['SPBorderType'] . ' !important;' : '').
|
| 795 |
( !empty($form_theme['SPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['SPBorderColor'] . ' !important;' : '').
|
| 796 |
'}';
|
| 811 |
}
|
| 812 |
else {
|
| 813 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form .button-submit:hover {'.
|
| 814 |
+
( (isset($form_theme['SHPBorderWidth']) && $form_theme['SHPBorderWidth'] !== '') ? 'border-' . $border . ':' . $form_theme['SHPBorderWidth'] . 'px !important;' : '').
|
| 815 |
( !empty($form_theme['SHPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['SHPBorderType'] . ' !important;' : '').
|
| 816 |
( !empty($form_theme['SHPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['SHPBorderColor'] . ' !important;' : '').
|
| 817 |
'}';
|
| 829 |
( !empty($form_theme['BPFontWeight']) ? 'font-weight:' . $form_theme['BPFontWeight'] . ' !important;' : '').
|
| 830 |
( !empty($form_theme['BPFontSize']) ? 'font-size:' . $form_theme['BPFontSize'] . 'px !important;' : '').
|
| 831 |
( !empty($form_theme['BPColor']) ? 'color:' . $form_theme['BPColor'] . ' !important;' : '').
|
| 832 |
+
( (isset($form_theme['BPBorderRadius']) && $form_theme['BPBorderRadius'] !== '') ? 'border-radius:' . $form_theme['BPBorderRadius'] . 'px;' : '').
|
| 833 |
( !empty($form_theme['BPBoxShadow']) ? 'box-shadow:' . $form_theme['BPBoxShadow'] . ' !important;' : '').
|
| 834 |
'}';
|
| 835 |
if ( !empty($borders['BP']) ) {
|
| 844 |
else {
|
| 845 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form .button-reset,
|
| 846 |
.fm-form-container.fm-theme' . $theme_id . ' .fm-form button {'.
|
| 847 |
+
( (isset($form_theme['BPBorderWidth']) && $form_theme['BPBorderWidth'] !== '') ? 'border-' . $border . ':' . $form_theme['BPBorderWidth'] . 'px !important;' : '').
|
| 848 |
( !empty($form_theme['BPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['BPBorderType'] . ' !important;' : '').
|
| 849 |
( !empty($form_theme['BPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['BPBorderColor'] . ' !important;' : '').
|
| 850 |
'}';
|
| 868 |
else {
|
| 869 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form .button-reset:hover,
|
| 870 |
.fm-form-container.fm-theme' . $theme_id . ' .fm-form button:hover {'.
|
| 871 |
+
( (isset($form_theme['BHPBorderWidth']) && $form_theme['BHPBorderWidth'] !== '') ? 'border-' . $border . ':' . $form_theme['BHPBorderWidth'] . 'px !important;' : '').
|
| 872 |
( !empty($form_theme['BHPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['BHPBorderType'] . ' !important;' : '').
|
| 873 |
( !empty($form_theme['BHPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['BHPBorderColor'] . ' !important;' : '').
|
| 874 |
'}';
|
| 884 |
( !empty($form_theme['BPFontWeight']) ? 'font-weight:' . $form_theme['BPFontWeight'] . ' !important;' : '').
|
| 885 |
( !empty($form_theme['BPFontSize']) ? 'font-size:' . $form_theme['BPFontSize'] . 'px !important;' : '').
|
| 886 |
( !empty($form_theme['NBPColor']) ? 'color:' . $form_theme['NBPColor'] . ' !important;' : '').
|
| 887 |
+
( (isset($form_theme['NBPBorderRadius']) && $form_theme['NBPBorderRadius'] !== '') ? 'border-radius:' . $form_theme['NBPBorderRadius'] . 'px;' : '').
|
| 888 |
( !empty($form_theme['NBPBoxShadow']) ? 'box-shadow:' . $form_theme['NBPBoxShadow'] . ' !important;' : '').
|
| 889 |
'}';
|
| 890 |
if ( !empty($borders['NBP']) ) {
|
| 897 |
}
|
| 898 |
else {
|
| 899 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form .next-page div.wdform-page-button {'.
|
| 900 |
+
( (isset($form_theme['NBPBorderWidth']) && $form_theme['NBPBorderWidth'] !== '') ? 'border-' . $border . ':' . $form_theme['NBPBorderWidth'] . 'px !important;' : '').
|
| 901 |
( !empty($form_theme['NBPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['NBPBorderType'] . ' !important;' : '').
|
| 902 |
( !empty($form_theme['NBPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['NBPBorderColor'] . ' !important;' : '').
|
| 903 |
'}';
|
| 922 |
}
|
| 923 |
else {
|
| 924 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form .next-page div.wdform-page-button:hover {'.
|
| 925 |
+
( (isset($form_theme['NBHPBorderWidth']) && $form_theme['NBHPBorderWidth'] !== '') ? 'border-' . $border . ':' . $form_theme['NBHPBorderWidth'] . 'px !important;' : '').
|
| 926 |
( !empty($form_theme['NBHPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['NBHPBorderType'] . ' !important;' : '').
|
| 927 |
( !empty($form_theme['NBHPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['NBHPBorderColor'] . ' !important;' : '').
|
| 928 |
'}';
|
| 938 |
( !empty($form_theme['BPFontWeight']) ? 'font-weight:' . $form_theme['BPFontWeight'] . ' !important;' : '').
|
| 939 |
( !empty($form_theme['BPFontSize']) ? 'font-size:' . $form_theme['BPFontSize'] . 'px !important;' : '').
|
| 940 |
( !empty($form_theme['PBPColor']) ? 'color:' . $form_theme['PBPColor'] . ' !important;' : '').
|
| 941 |
+
( (isset($form_theme['PBPBorderRadius']) && $form_theme['PBPBorderRadius'] !== '') ? 'border-radius:' . $form_theme['PBPBorderRadius'] . 'px;' : '').
|
| 942 |
( !empty($form_theme['PBPBoxShadow']) ? 'box-shadow:' . $form_theme['PBPBoxShadow'] . ' !important;' : '').
|
| 943 |
'}';
|
| 944 |
if ( !empty($borders['PBP']) ) {
|
| 951 |
}
|
| 952 |
else {
|
| 953 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form .previous-page div.wdform-page-button {'.
|
| 954 |
+
( (isset($form_theme['PBPBorderWidth']) && $form_theme['PBPBorderWidth'] !== '') ? 'border-' . $border . ':' . $form_theme['PBPBorderWidth'] . 'px !important;' : '').
|
| 955 |
( !empty($form_theme['PBPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['PBPBorderType'] . ' !important;' : '').
|
| 956 |
( !empty($form_theme['PBPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['PBPBorderColor'] . ' !important;' : '').
|
| 957 |
'}';
|
| 972 |
}
|
| 973 |
else {
|
| 974 |
$css_content .= '.fm-form-container.fm-theme' . $theme_id . ' .fm-form .previous-page div.wdform-page-button:hover {'.
|
| 975 |
+
( (isset($form_theme['PBHPBorderWidth']) && $form_theme['PBHPBorderWidth'] !== '') ? 'border-' . $border . ':' . $form_theme['PBHPBorderWidth'] . 'px !important;' : '').
|
| 976 |
( !empty($form_theme['PBHPBorderType']) ? 'border-' . $border . '-style:' . $form_theme['PBHPBorderType'] . ' !important;' : '').
|
| 977 |
( !empty($form_theme['PBHPBorderColor']) ? 'border-' . $border . '-color:' . $form_theme['PBHPBorderColor'] . ' !important;' : '').
|
| 978 |
'}';
|
| 1110 |
'response' => $captcha,
|
| 1111 |
'remoteip' => $_SERVER['REMOTE_ADDR'],
|
| 1112 |
);
|
| 1113 |
+
$response = wp_remote_post( $url, array('body' => $data) );
|
| 1114 |
+
if (!is_wp_error($response)) {
|
| 1115 |
+
$jsonResponse = json_decode(wp_remote_retrieve_body($response), true);
|
| 1116 |
+
if ($jsonResponse['success'] == "true") {
|
| 1117 |
+
$correct = TRUE;
|
| 1118 |
+
}
|
| 1119 |
+
else {
|
| 1120 |
+
if (isset($jsonResponse['error-codes'])) {
|
| 1121 |
+
foreach ($jsonResponse['error-codes'] as $errorcode) {
|
| 1122 |
+
switch ($errorcode) {
|
| 1123 |
+
case 'missing-input-secret' :
|
| 1124 |
+
case 'invalid-input-secret' : {
|
| 1125 |
+
$_SESSION['massage_after_submit' . $id] = addslashes(addslashes(__('Error, incorrect secret code.', WDFM()->prefix)));
|
| 1126 |
+
break;
|
| 1127 |
+
}
|
| 1128 |
+
case 'missing-input-response' :
|
| 1129 |
+
case 'invalid-input-response' :
|
| 1130 |
+
case 'bad-request' :
|
| 1131 |
+
default: {
|
| 1132 |
+
$_SESSION['massage_after_submit' . $id] = addslashes(addslashes(__('Verification failed.', WDFM()->prefix)));
|
| 1133 |
+
break;
|
| 1134 |
+
}
|
| 1135 |
+
}
|
| 1136 |
+
}
|
| 1137 |
+
}
|
| 1138 |
+
else {
|
| 1139 |
+
$_SESSION['massage_after_submit' . $id] = addslashes(addslashes(__('Verification failed.', WDFM()->prefix)));
|
| 1140 |
+
}
|
| 1141 |
+
$_SESSION['message_captcha'] = $_SESSION['massage_after_submit' . $id];
|
| 1142 |
+
$_SESSION['error_or_no' . $id] = 1;
|
| 1143 |
+
$correct = FALSE;
|
| 1144 |
+
}
|
| 1145 |
}
|
| 1146 |
else {
|
| 1147 |
+
$_SESSION['massage_after_submit' . $id] = addslashes(addslashes(__('Verification failed.', WDFM()->prefix)));
|
| 1148 |
$_SESSION['message_captcha'] = $_SESSION['massage_after_submit' . $id];
|
| 1149 |
$_SESSION['error_or_no' . $id] = 1;
|
| 1150 |
+
$correct = FALSE;
|
| 1151 |
}
|
| 1152 |
}
|
| 1153 |
else {
|
| 1175 |
exit;
|
| 1176 |
}
|
| 1177 |
if ( isset($_POST["save_or_submit" . $id]) && $_POST["save_or_submit" . $id] == 'save' ) {
|
| 1178 |
+
if (WDFM()->is_free != 2) {
|
| 1179 |
+
do_action('WD_FM_SAVE_PROG_save_progress_init', array('id' => $id, 'addon_task' => 'save_progress'));
|
| 1180 |
+
}
|
| 1181 |
return $all_files;
|
| 1182 |
}
|
| 1183 |
else {
|
| 1189 |
$_SESSION['error_or_no' . $id] = 1;
|
| 1190 |
}
|
| 1191 |
else {
|
| 1192 |
+
if (WDFM()->is_free != 2) {
|
| 1193 |
+
do_action('WD_FM_SAVE_PROG_save_progress_init', array('id' => $id, 'addon_task' => 'clear_data'));
|
| 1194 |
+
}
|
| 1195 |
if ( isset($counter) ) {
|
| 1196 |
$this->gen_mail($counter, $all_files, $id_for_old, $result_temp[1]);
|
| 1197 |
}
|
| 2254 |
$frontend_parmas['all_files'] = json_encode($all_files);
|
| 2255 |
$frontend_parmas['form_currency'] = $form_currency;
|
| 2256 |
|
| 2257 |
+
if (WDFM()->is_free != 2) {
|
| 2258 |
+
do_action('fm_addon_frontend_init', $frontend_parmas);
|
| 2259 |
+
}
|
| 2260 |
return array( $all_files, $str );
|
| 2261 |
}
|
| 2262 |
|
| 2987 |
$replyto = $row->reply_to_user;
|
| 2988 |
}
|
| 2989 |
$attachment_user = array();
|
| 2990 |
+
if ( !WDFM()->is_demo ) {
|
| 2991 |
for ( $k = 0; $k < count($all_files); $k++ ) {
|
| 2992 |
if ( isset($all_files[$k]['tmp_name']) ) {
|
| 2993 |
if ( !isset($attachment_user[$all_files[$k]['field_key']]) ) {
|
| 3077 |
$body = $new_script;
|
| 3078 |
$GLOBALS['attachment_user'] = '';
|
| 3079 |
$GLOBALS['attachment'] = '';
|
| 3080 |
+
if (WDFM()->is_free != 2) {
|
| 3081 |
+
do_action('WD_FM_PDF_init', array('custom_fields_value' => $custom_fields_value, 'form_id' => $id));
|
| 3082 |
+
}
|
| 3083 |
if ( $GLOBALS['attachment_user'] ) {
|
| 3084 |
array_push($attachment_user, $GLOBALS['attachment_user']);
|
| 3085 |
}
|
| 3108 |
$body = $row->mail_verify ? str_replace("%Verification link%", $ver_link, $new_script) : str_replace("%Verification link%", '', $new_script);
|
| 3109 |
}
|
| 3110 |
if ( $recipient ) {
|
| 3111 |
+
if ( $row->mail_attachment_user ) {
|
| 3112 |
+
$remove_parrent_array_user = new RecursiveIteratorIterator(new RecursiveArrayIterator($attachment_user));
|
| 3113 |
+
$attachment_user = iterator_to_array($remove_parrent_array_user, FALSE);
|
| 3114 |
+
}
|
| 3115 |
+
else {
|
| 3116 |
+
$attachment_user = array();
|
| 3117 |
+
}
|
| 3118 |
$send = wp_mail(str_replace(' ', '', $recipient), $subject, stripslashes($body), $headers, $attachment_user);
|
| 3119 |
}
|
| 3120 |
}
|
| 3138 |
}
|
| 3139 |
$fromname = $row->from_name;
|
| 3140 |
$attachment = array();
|
| 3141 |
+
if ( !WDFM()->is_demo ) {
|
| 3142 |
for ( $k = 0; $k < count($all_files); $k++ ) {
|
| 3143 |
if ( isset($all_files[$k]['tmp_name']) ) {
|
| 3144 |
if ( !isset($attachment[$all_files[$k]['field_key']]) ) {
|
| 3236 |
}
|
| 3237 |
}
|
| 3238 |
$admin_body = $new_script;
|
| 3239 |
+
if ( $row->mail_attachment ) {
|
| 3240 |
+
$remove_parrent_array = new RecursiveIteratorIterator(new RecursiveArrayIterator($attachment));
|
| 3241 |
+
$attachment = iterator_to_array($remove_parrent_array, FALSE);
|
| 3242 |
+
}
|
| 3243 |
+
else {
|
| 3244 |
+
$attachment = array();
|
| 3245 |
+
}
|
| 3246 |
if ( $recipient ) {
|
| 3247 |
$send = wp_mail(str_replace(' ', '', $recipient), $subject, stripslashes($admin_body), $headers, $attachment);
|
| 3248 |
}
|
| 3282 |
'form_currency' => $form_currency,
|
| 3283 |
'custom_fields_value' => ( isset($custom_fields_value) ? $custom_fields_value : array() ),
|
| 3284 |
);
|
| 3285 |
+
if (WDFM()->is_free != 2) {
|
| 3286 |
+
do_action('fm_set_params_frontend_init', $params);
|
| 3287 |
+
}
|
| 3288 |
// delete files from uploads (save_upload = 0)
|
| 3289 |
if ( $row->save_uploads == 0 ) {
|
| 3290 |
foreach ( $all_files as &$all_file ) {
|
| 3328 |
break;
|
| 3329 |
}
|
| 3330 |
}
|
|
|
|
| 3331 |
if ( !$str ) {
|
| 3332 |
wp_redirect(html_entity_decode($redirect_url));
|
| 3333 |
exit;
|
| 3334 |
}
|
| 3335 |
else {
|
| 3336 |
$_SESSION['redirect_paypal' . $id] = 1;
|
| 3337 |
+
$str .= "&return=" . urlencode($redirect_url . '&succes='. time());
|
| 3338 |
wp_redirect($str);
|
| 3339 |
exit;
|
| 3340 |
}
|
frontend/views/form_maker.php
CHANGED
|
@@ -235,7 +235,10 @@ class FMViewForm_maker {
|
|
| 235 |
$symbol_end = array();
|
| 236 |
|
| 237 |
// Get Add-on Calculator data.
|
| 238 |
-
$calculator_data =
|
|
|
|
|
|
|
|
|
|
| 239 |
if ( !empty($calculator_data) ) {
|
| 240 |
$symbol_end = json_decode($calculator_data->symbol_end, TRUE);
|
| 241 |
$symbol_begin = json_decode($calculator_data->symbol_begin, TRUE);
|
|
@@ -1090,57 +1093,49 @@ class FMViewForm_maker {
|
|
| 1090 |
break;
|
| 1091 |
}
|
| 1092 |
case 'type_checkbox': {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1093 |
$params_names = array(
|
| 1094 |
'w_field_label_size',
|
| 1095 |
'w_field_label_pos',
|
| 1096 |
-
'
|
| 1097 |
-
'w_choices',
|
| 1098 |
-
'w_choices_checked',
|
| 1099 |
-
'w_rowcol',
|
| 1100 |
'w_required',
|
| 1101 |
-
'w_randomize',
|
| 1102 |
-
'w_allow_other',
|
| 1103 |
-
'w_allow_other_num',
|
| 1104 |
'w_class',
|
|
|
|
|
|
|
| 1105 |
);
|
| 1106 |
$temp = $params;
|
| 1107 |
-
if ( strpos($temp, '
|
| 1108 |
-
$params_names = array(
|
| 1109 |
-
'w_field_label_size',
|
| 1110 |
-
'w_field_label_pos',
|
| 1111 |
-
'w_field_option_pos',
|
| 1112 |
-
'w_flow',
|
| 1113 |
-
'w_choices',
|
| 1114 |
-
'w_choices_checked',
|
| 1115 |
-
'w_rowcol',
|
| 1116 |
-
'w_required',
|
| 1117 |
-
'w_randomize',
|
| 1118 |
-
'w_allow_other',
|
| 1119 |
-
'w_allow_other_num',
|
| 1120 |
-
'w_value_disabled',
|
| 1121 |
-
'w_choices_value',
|
| 1122 |
-
'w_choices_params',
|
| 1123 |
-
'w_class',
|
| 1124 |
-
);
|
| 1125 |
-
}
|
| 1126 |
-
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
| 1127 |
$params_names = array(
|
| 1128 |
'w_field_label_size',
|
| 1129 |
'w_field_label_pos',
|
| 1130 |
-
'
|
| 1131 |
-
'w_hide_label',
|
| 1132 |
-
'w_flow',
|
| 1133 |
-
'w_choices',
|
| 1134 |
-
'w_choices_checked',
|
| 1135 |
-
'w_rowcol',
|
| 1136 |
'w_required',
|
| 1137 |
-
'w_randomize',
|
| 1138 |
-
'w_allow_other',
|
| 1139 |
-
'w_allow_other_num',
|
| 1140 |
-
'w_value_disabled',
|
| 1141 |
-
'w_choices_value',
|
| 1142 |
-
'w_choices_params',
|
| 1143 |
'w_class',
|
|
|
|
|
|
|
|
|
|
| 1144 |
);
|
| 1145 |
}
|
| 1146 |
foreach ( $params_names as $params_name ) {
|
|
@@ -1155,146 +1150,106 @@ class FMViewForm_maker {
|
|
| 1155 |
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 1156 |
}
|
| 1157 |
}
|
| 1158 |
-
|
| 1159 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1160 |
}
|
| 1161 |
-
if (
|
| 1162 |
-
$
|
| 1163 |
}
|
| 1164 |
|
| 1165 |
-
$
|
| 1166 |
-
$param['
|
| 1167 |
-
|
| 1168 |
-
|
| 1169 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1170 |
}
|
| 1171 |
-
|
| 1172 |
-
|
| 1173 |
-
|
| 1174 |
-
|
| 1175 |
-
|
| 1176 |
-
|
| 1177 |
-
|
| 1178 |
-
|
| 1179 |
-
$
|
| 1180 |
-
|
| 1181 |
-
$choices_labels = array();
|
| 1182 |
-
$choices_values = array();
|
| 1183 |
-
$w_choices_params = explode('[where_order_by]', $param['w_choices_params'][$key]);
|
| 1184 |
-
$where = (str_replace(array( '[', ']' ), '', $w_choices_params[0]) ? ' WHERE ' . str_replace(array('[', ']'), '', $w_choices_params[0]) : '');
|
| 1185 |
-
$w_choices_params = explode('[db_info]', $w_choices_params[1]);
|
| 1186 |
-
$order_by = str_replace(array( '[', ']' ), '', $w_choices_params[0]);
|
| 1187 |
-
$db_info = str_replace(array( '[', ']' ), '', $w_choices_params[1]);
|
| 1188 |
-
$label_table_and_column = explode(':', str_replace(array( '[', ']' ), '', $choice));
|
| 1189 |
-
$table = $label_table_and_column[0];
|
| 1190 |
-
$label_column = $label_table_and_column[1];
|
| 1191 |
-
if ( $label_column ) {
|
| 1192 |
-
$choices_labels = $this->model->select_data_from_db_for_labels($db_info, $label_column, $table, $where, $order_by);
|
| 1193 |
-
}
|
| 1194 |
-
$value_table_and_column = explode(':', str_replace(array('[', ']'), '', $param['w_choices_value'][$key]));
|
| 1195 |
-
$value_column = $value_table_and_column[1];
|
| 1196 |
-
if ( $value_column ) {
|
| 1197 |
-
$choices_values = $this->model->select_data_from_db_for_values($db_info, $value_column, $table, $where, $order_by);
|
| 1198 |
-
}
|
| 1199 |
-
$columns_count_checkbox = count($choices_labels) > 0 ? count($choices_labels) : count($choices_values);
|
| 1200 |
-
if ( array_filter($choices_labels) || array_filter($choices_values) ) {
|
| 1201 |
-
$total_queries = $total_queries + $columns_count_checkbox - 1;
|
| 1202 |
-
if ( !isset($post_value) ) {
|
| 1203 |
-
$param['w_choices_checked'][$key] = ($param['w_choices_checked'][$key] == 'true' ? 'checked="checked"' : '');
|
| 1204 |
-
}
|
| 1205 |
-
for ( $k = 0; $k < $columns_count_checkbox; $k++ ) {
|
| 1206 |
-
$choice_label = isset($choices_labels[$k]) ? $choices_labels[$k] : '';
|
| 1207 |
-
$choice_value = isset($choices_values[$k]) ? $choices_values[$k] : $choice_label;
|
| 1208 |
-
if ( $param['w_rowcol'] > 1 && ($key1 + $k) % $param['w_rowcol'] == 0 && ($key1 + $k) > 0 ) {
|
| 1209 |
-
$html .= '</div><div class="wd-flex ' . ($param['w_flow'] == 'hor' ? 'wd-flex-column' : 'wd-flex-row') . '">';
|
| 1210 |
-
}
|
| 1211 |
-
if ( isset($post_value) ) {
|
| 1212 |
-
$param['w_choices_checked'][$key] = (isset($_POST['wdform_' . $id1 . "_element" . $form_id . ($key1 + $k)]) ? 'checked="checked"' : '');
|
| 1213 |
-
}
|
| 1214 |
-
$html .= '<div class="checkbox-div wd-choice wd-flex ' . (($param['w_field_option_pos'] == "right") ? 'wd-flex-row' : 'wd-flex-row-reverse wd-justify-content' ) . '">';
|
| 1215 |
-
$html .= '<input type="checkbox" ' . (($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == $key) ? 'other="1"' : '') . ' id="wdform_' . $id1 . '_element' . $form_id . '' . ($key1 + $k) . '" name="wdform_' . $id1 . '_element' . $form_id . '' . ($key1 + $k) . '" value="' . htmlspecialchars($choice_value[0]) . '" ' . (($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == $key) ? 'onclick="if(set_checked("wdform_' . $id1 . '","' . ($key1 + $k) . '","' . $form_id . '")) show_other_input("wdform_' . $id1 . '","' . $form_id . '");"' : '') . ' ' . $param['w_choices_checked'][$key] . ' ' . $param['attributes'] . ' />';
|
| 1216 |
-
$html .= '<label class="wd-align-items-center wd-flex ' . ($param['w_field_option_pos'] == "right" ? "wd-flex-row" : "wd-flex-row-reverse wd-justify-content wd-width-100") . '" for="wdform_' . $id1 . '_element' . $form_id . '' . ($key1 + $k) . '"><span></span>' . $choice_label[0] . '</label>';
|
| 1217 |
-
$html .= '</div>';
|
| 1218 |
-
}
|
| 1219 |
-
}
|
| 1220 |
-
}
|
| 1221 |
-
else {
|
| 1222 |
-
if ( $param['w_rowcol'] > 1 && (($key1 % $param['w_rowcol']) == 0) && $key1 > 0 ) {
|
| 1223 |
-
$html .= '</div><div class="wd-flex ' . ($param['w_flow'] == 'hor' ? 'wd-flex-column' : 'wd-flex-row') . '">';
|
| 1224 |
-
}
|
| 1225 |
-
if ( !isset($post_value) ) {
|
| 1226 |
-
$param['w_choices_checked'][$key] = ($param['w_choices_checked'][$key] == 'true' ? 'checked="checked"' : '');
|
| 1227 |
-
}
|
| 1228 |
-
else {
|
| 1229 |
-
$param['w_choices_checked'][$key] = (isset($_POST['wdform_' . $id1 . "_element" . $form_id . $key]) ? 'checked="checked"' : '');
|
| 1230 |
-
}
|
| 1231 |
-
$choice_value = isset($param['w_choices_value']) ? $param['w_choices_value'][$key] : $choice;
|
| 1232 |
-
$html .= '<div class="checkbox-div wd-choice wd-flex ' . (($param['w_field_option_pos'] == "right") ? 'wd-flex-row' : 'wd-flex-row-reverse wd-justify-content' ) . '">';
|
| 1233 |
-
$html .= '<input type="checkbox" ' . (($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == $key) ? 'other="1"' : '') . ' id="wdform_' . $id1 . '_element' . $form_id . '' . $key1 . '" name="wdform_' . $id1 . '_element' . $form_id . '' . $key1 . '" value="' . htmlspecialchars($choice_value) . '" ' . (($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == $key) ? 'onclick="if(set_checked("wdform_' . $id1 . '","' . $key1 . '","' . $form_id . '")) show_other_input("wdform_' . $id1 . '","' . $form_id . '");"' : '') . ' ' . $param['w_choices_checked'][$key] . ' ' . $param['attributes'] . ' />';
|
| 1234 |
-
$html .= '<label class="wd-align-items-center wd-flex ' . ($param['w_field_option_pos'] == "right" ? "wd-flex-row" : "wd-flex-row-reverse wd-justify-content wd-width-100") . '" for="wdform_' . $id1 . '_element' . $form_id . '' . $key1 . '"><span></span>' . $choice . '</label>';
|
| 1235 |
-
$html .= '</div>';
|
| 1236 |
-
$param['w_allow_other_num'] = $param['w_allow_other_num'] == $key ? $key1 : $param['w_allow_other_num'];
|
| 1237 |
}
|
| 1238 |
}
|
| 1239 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1240 |
|
| 1241 |
// Generate field.
|
| 1242 |
$rep = $this->wdform_field($type, $param, $row, $html);
|
| 1243 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1244 |
break;
|
| 1245 |
}
|
| 1246 |
-
case '
|
| 1247 |
$params_names = array(
|
| 1248 |
'w_field_label_size',
|
| 1249 |
'w_field_label_pos',
|
| 1250 |
-
'
|
| 1251 |
-
'
|
| 1252 |
-
'w_choices_checked',
|
| 1253 |
-
'w_rowcol',
|
| 1254 |
-
'w_required',
|
| 1255 |
-
'w_randomize',
|
| 1256 |
-
'w_allow_other',
|
| 1257 |
-
'w_allow_other_num',
|
| 1258 |
'w_class',
|
|
|
|
| 1259 |
);
|
| 1260 |
$temp = $params;
|
| 1261 |
-
if ( strpos($temp, 'w_field_option_pos') > -1 ) {
|
| 1262 |
-
$params_names = array(
|
| 1263 |
-
'w_field_label_size',
|
| 1264 |
-
'w_field_label_pos',
|
| 1265 |
-
'w_field_option_pos',
|
| 1266 |
-
'w_flow',
|
| 1267 |
-
'w_choices',
|
| 1268 |
-
'w_choices_checked',
|
| 1269 |
-
'w_rowcol',
|
| 1270 |
-
'w_required',
|
| 1271 |
-
'w_randomize',
|
| 1272 |
-
'w_allow_other',
|
| 1273 |
-
'w_allow_other_num',
|
| 1274 |
-
'w_value_disabled',
|
| 1275 |
-
'w_choices_value',
|
| 1276 |
-
'w_choices_params',
|
| 1277 |
-
'w_class',
|
| 1278 |
-
);
|
| 1279 |
-
}
|
| 1280 |
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
| 1281 |
$params_names = array(
|
| 1282 |
'w_field_label_size',
|
| 1283 |
'w_field_label_pos',
|
| 1284 |
-
'w_field_option_pos',
|
| 1285 |
'w_hide_label',
|
| 1286 |
-
'
|
| 1287 |
-
'
|
| 1288 |
-
'w_choices_checked',
|
| 1289 |
-
'w_rowcol',
|
| 1290 |
-
'w_required',
|
| 1291 |
-
'w_randomize',
|
| 1292 |
-
'w_allow_other',
|
| 1293 |
-
'w_allow_other_num',
|
| 1294 |
-
'w_value_disabled',
|
| 1295 |
-
'w_choices_value',
|
| 1296 |
-
'w_choices_params',
|
| 1297 |
'w_class',
|
|
|
|
| 1298 |
);
|
| 1299 |
}
|
| 1300 |
foreach ( $params_names as $params_name ) {
|
|
@@ -1306,138 +1261,63 @@ class FMViewForm_maker {
|
|
| 1306 |
$temp = explode('*:*w_attr_name*:*', $temp);
|
| 1307 |
$attrs = array_slice($temp, 0, count($temp) - 1);
|
| 1308 |
foreach ( $attrs as $attr ) {
|
| 1309 |
-
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 1310 |
}
|
| 1311 |
}
|
| 1312 |
-
if ( !isset($param['w_value_disabled']) ) {
|
| 1313 |
-
$param['w_value_disabled'] = 'no';
|
| 1314 |
-
}
|
| 1315 |
-
if ( !isset($param['w_field_option_pos']) ) {
|
| 1316 |
-
$param['w_field_option_pos'] = 'left';
|
| 1317 |
-
}
|
| 1318 |
|
| 1319 |
-
$param['
|
| 1320 |
-
$param['
|
| 1321 |
-
|
| 1322 |
-
$param['w_choices_value'] = explode('***', $param['w_choices_value']);
|
| 1323 |
-
$param['w_choices_params'] = explode('***', $param['w_choices_params']);
|
| 1324 |
-
}
|
| 1325 |
-
$post_value = isset($_POST["counter" . $form_id]) ? esc_html($_POST["counter" . $form_id]) : NULL;
|
| 1326 |
|
| 1327 |
-
$param['id'] = '';
|
| 1328 |
-
$param['w_class'] .= ' wd-flex-
|
| 1329 |
-
|
| 1330 |
-
$html = '<
|
| 1331 |
-
|
| 1332 |
-
|
| 1333 |
-
|
| 1334 |
-
|
| 1335 |
-
|
| 1336 |
-
|
| 1337 |
-
|
| 1338 |
-
|
| 1339 |
-
|
| 1340 |
-
|
| 1341 |
-
|
| 1342 |
-
|
| 1343 |
-
|
| 1344 |
-
|
| 1345 |
-
if ( $label_column ) {
|
| 1346 |
-
$choices_labels = $this->model->select_data_from_db_for_labels($db_info, $label_column, $table, $where, $order_by);
|
| 1347 |
-
}
|
| 1348 |
-
$value_table_and_column = explode(':', str_replace(array('[', ']'), '', $param['w_choices_value'][$key]));
|
| 1349 |
-
$value_column = $value_table_and_column[1];
|
| 1350 |
-
if ( $value_column ) {
|
| 1351 |
-
$choices_values = $this->model->select_data_from_db_for_values($db_info, $value_column, $table, $where, $order_by);
|
| 1352 |
-
}
|
| 1353 |
-
$columns_count_radio = count($choices_labels) > 0 ? count($choices_labels) : count($choices_values);
|
| 1354 |
-
if ( array_filter($choices_labels) || array_filter($choices_values) ) {
|
| 1355 |
-
$total_queries = $total_queries + $columns_count_radio - 1;
|
| 1356 |
-
if ( !isset($post_value) ) {
|
| 1357 |
-
$param['w_choices_checked'][$key] = ($param['w_choices_checked'][$key] == 'true' ? 'checked="checked"' : '');
|
| 1358 |
-
}
|
| 1359 |
-
for ( $k = 0; $k < $columns_count_radio; $k++ ) {
|
| 1360 |
-
$choice_label = isset($choices_labels[$k]) ? $choices_labels[$k] : '';
|
| 1361 |
-
$choice_value = isset($choices_values[$k]) ? $choices_values[$k] : $choice_label;
|
| 1362 |
-
if ( $param['w_rowcol'] > 1 && ($key1 + $k) % $param['w_rowcol'] == 0 && ($key1 + $k) > 0 ) {
|
| 1363 |
-
$html .= '</div><div class="wd-flex ' . ($param['w_flow'] == 'hor' ? 'wd-flex-column' : 'wd-flex-row') . '">';
|
| 1364 |
-
}
|
| 1365 |
-
if ( isset($post_value) ) {
|
| 1366 |
-
$param['w_choices_checked'][$key] = (isset($_POST['wdform_' . $id1 . "_element" . $form_id]) ? 'checked="checked"' : '');
|
| 1367 |
-
}
|
| 1368 |
-
$html .= '<div class="radio-div wd-choice wd-flex ' . (($param['w_field_option_pos'] == "right") ? 'wd-flex-row' : 'wd-flex-row-reverse wd-justify-content' ) . '">';
|
| 1369 |
-
$html .= '<input type="radio" ' . (($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == $key) ? 'other="1"' : '') . ' id="wdform_' . $id1 . '_element' . $form_id . '' . ($key1 + $k) . '" name="wdform_' . $id1 . '_element' . $form_id . '" value="' . htmlspecialchars($choice_value[0]) . '" onclick="set_default("wdform_' . $id1 . '","' . ($key1 + $k) . '","' . $form_id . '"); ' . (($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == $key) ? 'show_other_input("wdform_' . $id1 . '","' . $form_id . '");' : '') . '" ' . $param['w_choices_checked'][$key] . ' ' . $param['attributes'] . ' />';
|
| 1370 |
-
$html .= '<label class="wd-align-items-center wd-flex ' . ($param['w_field_option_pos'] == "right" ? "wd-flex-row" : "wd-flex-row-reverse wd-justify-content wd-width-100") . '" for="wdform_' . $id1 . '_element' . $form_id . '' . ($key1 + $k) . '"><span></span>' . $choice_label[0] . '</label>';
|
| 1371 |
-
$html .= '</div>';
|
| 1372 |
-
}
|
| 1373 |
-
}
|
| 1374 |
-
}
|
| 1375 |
-
else {
|
| 1376 |
-
if ( $param['w_rowcol'] > 1 && (($key1 % $param['w_rowcol']) == 0) && $key1 > 0 ) {
|
| 1377 |
-
$html .= '</div><div class="wd-flex ' . ($param['w_flow'] == 'hor' ? 'wd-flex-column' : 'wd-flex-row') . '">';
|
| 1378 |
-
}
|
| 1379 |
-
if ( !isset($post_value) ) {
|
| 1380 |
-
$param['w_choices_checked'][$key] = ($param['w_choices_checked'][$key] == 'true' ? 'checked="checked"' : '');
|
| 1381 |
-
}
|
| 1382 |
-
else {
|
| 1383 |
-
$param['w_choices_checked'][$key] = (htmlspecialchars($choice) == htmlspecialchars(isset($_POST['wdform_' . $id1 . "_element" . $form_id]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . "_element" . $form_id])) : "") ? 'checked="checked"' : '');
|
| 1384 |
-
}
|
| 1385 |
-
$choice_value = isset($param['w_choices_value']) ? $param['w_choices_value'][$key] : $choice;
|
| 1386 |
-
$html .= '<div class="radio-div wd-choice wd-flex ' . (($param['w_field_option_pos'] == "right") ? 'wd-flex-row' : 'wd-flex-row-reverse wd-justify-content' ) . '">';
|
| 1387 |
-
$html .= '<input type="radio" ' . (($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == $key) ? 'other="1"' : '') . ' id="wdform_' . $id1 . '_element' . $form_id . '' . $key1 . '" name="wdform_' . $id1 . '_element' . $form_id . '" value="' . htmlspecialchars($choice_value) . '" onclick="set_default("wdform_' . $id1 . '","' . $key1 . '","' . $form_id . '"); ' . (($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == $key) ? 'show_other_input("wdform_' . $id1 . '","' . $form_id . '");' : '') . '" ' . $param['w_choices_checked'][$key] . ' ' . $param['attributes'] . ' />';
|
| 1388 |
-
$html .= '<label class="wd-align-items-center wd-flex ' . ($param['w_field_option_pos'] == "right" ? "wd-flex-row" : "wd-flex-row-reverse wd-justify-content wd-width-100") . '" for="wdform_' . $id1 . '_element' . $form_id . '' . $key1 . '"><span></span>' . $choice . '</label>';
|
| 1389 |
-
$html .= '</div>';
|
| 1390 |
-
$param['w_allow_other_num'] = $param['w_allow_other_num'] == $key ? $key1 : $param['w_allow_other_num'];
|
| 1391 |
-
}
|
| 1392 |
-
}
|
| 1393 |
-
$html .= '</div>';
|
| 1394 |
|
| 1395 |
// Generate field.
|
| 1396 |
$rep = $this->wdform_field($type, $param, $row, $html);
|
| 1397 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1398 |
break;
|
| 1399 |
}
|
| 1400 |
-
case '
|
| 1401 |
-
$params_names = array(
|
| 1402 |
-
'w_field_label_size',
|
| 1403 |
-
'w_field_label_pos',
|
| 1404 |
-
'w_size',
|
| 1405 |
-
'w_choices',
|
| 1406 |
-
'w_choices_checked',
|
| 1407 |
-
'w_choices_disabled',
|
| 1408 |
-
'w_required',
|
| 1409 |
-
'w_class',
|
| 1410 |
-
);
|
| 1411 |
$temp = $params;
|
| 1412 |
-
if ( strpos($temp, '
|
| 1413 |
$params_names = array(
|
| 1414 |
'w_field_label_size',
|
| 1415 |
'w_field_label_pos',
|
| 1416 |
-
'
|
| 1417 |
-
'
|
| 1418 |
-
'
|
| 1419 |
-
'w_choices_disabled',
|
| 1420 |
-
'w_required',
|
| 1421 |
-
'w_value_disabled',
|
| 1422 |
-
'w_choices_value',
|
| 1423 |
-
'w_choices_params',
|
| 1424 |
'w_class',
|
| 1425 |
);
|
| 1426 |
}
|
| 1427 |
-
if ( strpos($temp, '
|
| 1428 |
$params_names = array(
|
| 1429 |
'w_field_label_size',
|
| 1430 |
'w_field_label_pos',
|
| 1431 |
'w_hide_label',
|
| 1432 |
-
'
|
| 1433 |
-
'
|
| 1434 |
-
'w_choices_checked',
|
| 1435 |
-
'w_choices_disabled',
|
| 1436 |
-
'w_required',
|
| 1437 |
-
'w_value_disabled',
|
| 1438 |
-
'w_choices_value',
|
| 1439 |
-
'w_choices_params',
|
| 1440 |
-
'w_class',
|
| 1441 |
);
|
| 1442 |
}
|
| 1443 |
foreach ( $params_names as $params_name ) {
|
|
@@ -1445,103 +1325,41 @@ class FMViewForm_maker {
|
|
| 1445 |
$param[$params_name] = $temp[0];
|
| 1446 |
$temp = $temp[1];
|
| 1447 |
}
|
| 1448 |
-
|
| 1449 |
-
|
| 1450 |
-
|
| 1451 |
-
|
| 1452 |
-
|
| 1453 |
-
|
| 1454 |
}
|
| 1455 |
-
|
| 1456 |
-
|
| 1457 |
-
$param['w_choices_disabled'] = explode('***', $param['w_choices_disabled']);
|
| 1458 |
-
if ( isset($param['w_choices_value']) ) {
|
| 1459 |
-
$param['w_choices_value'] = explode('***', $param['w_choices_value']);
|
| 1460 |
-
$param['w_choices_params'] = explode('***', $param['w_choices_params']);
|
| 1461 |
}
|
| 1462 |
-
|
| 1463 |
-
|
|
|
|
|
|
|
| 1464 |
}
|
| 1465 |
-
|
| 1466 |
|
| 1467 |
-
$param['id'] =
|
| 1468 |
-
$param['w_class']
|
| 1469 |
|
| 1470 |
-
$html = '<
|
| 1471 |
-
foreach ( $param['w_choices'] as $key => $choice ) {
|
| 1472 |
-
if ( isset($param['w_choices_params']) && $param['w_choices_params'][$key] ) {
|
| 1473 |
-
$choices_labels = array();
|
| 1474 |
-
$choices_values = array();
|
| 1475 |
-
$w_choices_params = explode('[where_order_by]', $param['w_choices_params'][$key]);
|
| 1476 |
-
$where = (str_replace(array( '[', ']' ), '', $w_choices_params[0]) ? ' WHERE ' . str_replace(array('[', ']'), '', $w_choices_params[0]) : '');
|
| 1477 |
-
$w_choices_params = explode('[db_info]', $w_choices_params[1]);
|
| 1478 |
-
$order_by = str_replace(array( '[', ']' ), '', $w_choices_params[0]);
|
| 1479 |
-
$db_info = str_replace(array( '[', ']' ), '', $w_choices_params[1]);
|
| 1480 |
-
$label_table_and_column = explode(':', str_replace(array( '[', ']' ), '', $choice));
|
| 1481 |
-
$table = $label_table_and_column[0];
|
| 1482 |
-
$label_column = $label_table_and_column[1];
|
| 1483 |
-
if ( $label_column ) {
|
| 1484 |
-
$choices_labels = $this->model->select_data_from_db_for_labels($db_info, $label_column, $table, $where, $order_by);
|
| 1485 |
-
}
|
| 1486 |
-
$value_table_and_column = explode(':', str_replace(array('[', ']'), '', $param['w_choices_value'][$key]));
|
| 1487 |
-
$value_column = $param['w_choices_disabled'][$key] == "true" ? '' : $value_table_and_column[1];
|
| 1488 |
-
if ( $value_column ) {
|
| 1489 |
-
$choices_values = $this->model->select_data_from_db_for_values($db_info, $value_column, $table, $where, $order_by);
|
| 1490 |
-
}
|
| 1491 |
-
$columns_count = count($choices_labels) > 0 ? count($choices_labels) : count($choices_values);
|
| 1492 |
-
if ( array_filter($choices_labels) || array_filter($choices_values) ) {
|
| 1493 |
-
for ( $k = 0; $k < $columns_count; $k++ ) {
|
| 1494 |
-
$choice_label = isset($choices_labels[$k]) ? $choices_labels[$k] : '';
|
| 1495 |
-
$choice_value = isset($choices_values[$k]) ? $choices_values[$k] : ($param['w_choices_disabled'][$key] == "true" ? '' : $choice_label);
|
| 1496 |
-
if ( !isset($post_value) ) {
|
| 1497 |
-
$param['w_choices_checked'][$key] = (($param['w_choices_checked'][$key] == 'true' && $k == 0) ? 'selected="selected"' : '');
|
| 1498 |
-
}
|
| 1499 |
-
else {
|
| 1500 |
-
$param['w_choices_checked'][$key] = ((isset($_POST['wdform_' . $id1 . "_element" . $form_id]) && $choice_value == htmlspecialchars($_POST['wdform_' . $id1 . "_element" . $form_id])) ? 'selected="selected"' : '');
|
| 1501 |
-
}
|
| 1502 |
-
$html .= '<option value="' . htmlspecialchars($choice_value[0]) . '" ' . $param['w_choices_checked'][$key] . '>' . $choice_label[0] . '</option>';
|
| 1503 |
-
}
|
| 1504 |
-
}
|
| 1505 |
-
}
|
| 1506 |
-
else {
|
| 1507 |
-
if ( !isset($post_value) ) {
|
| 1508 |
-
$param['w_choices_checked'][$key] = ($param['w_choices_checked'][$key] == 'true' ? 'selected="selected"' : '');
|
| 1509 |
-
}
|
| 1510 |
-
else {
|
| 1511 |
-
$param['w_choices_checked'][$key] = ((isset($_POST['wdform_' . $id1 . "_element" . $form_id]) && htmlspecialchars($choice) == htmlspecialchars($_POST['wdform_' . $id1 . "_element" . $form_id])) ? 'selected="selected"' : '');
|
| 1512 |
-
}
|
| 1513 |
-
$choice_value = $param['w_choices_disabled'][$key] == "true" ? '' : (isset($param['w_choices_value']) ? $param['w_choices_value'][$key] : $choice);
|
| 1514 |
-
$html .= '<option value="' . htmlspecialchars($choice_value) . '" ' . $param['w_choices_checked'][$key] . '>' . $choice . '</option>';
|
| 1515 |
-
}
|
| 1516 |
-
}
|
| 1517 |
-
$html .= '</select>';
|
| 1518 |
|
| 1519 |
// Generate field.
|
| 1520 |
$rep = $this->wdform_field($type, $param, $row, $html);
|
| 1521 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1522 |
break;
|
| 1523 |
}
|
| 1524 |
-
case '
|
| 1525 |
-
$params_names = array(
|
| 1526 |
-
'w_field_label_size',
|
| 1527 |
-
'w_field_label_pos',
|
| 1528 |
-
'w_size',
|
| 1529 |
-
'w_countries',
|
| 1530 |
-
'w_required',
|
| 1531 |
-
'w_class',
|
| 1532 |
-
);
|
| 1533 |
$temp = $params;
|
| 1534 |
-
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
| 1535 |
-
$params_names = array(
|
| 1536 |
-
'w_field_label_size',
|
| 1537 |
-
'w_field_label_pos',
|
| 1538 |
-
'w_hide_label',
|
| 1539 |
-
'w_size',
|
| 1540 |
-
'w_countries',
|
| 1541 |
-
'w_required',
|
| 1542 |
-
'w_class',
|
| 1543 |
-
);
|
| 1544 |
-
}
|
| 1545 |
foreach ( $params_names as $params_name ) {
|
| 1546 |
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 1547 |
$param[$params_name] = $temp[0];
|
|
@@ -1554,41 +1372,33 @@ class FMViewForm_maker {
|
|
| 1554 |
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 1555 |
}
|
| 1556 |
}
|
| 1557 |
-
$param['w_countries'] = explode('***', $param['w_countries']);
|
| 1558 |
-
$post_value = isset($_POST["counter" . $form_id]) ? esc_html($_POST["counter" . $form_id]) : NULL;
|
| 1559 |
-
|
| 1560 |
-
$param['id'] = $id1;
|
| 1561 |
-
$param['w_class'] .= ' wd-flex-row';
|
| 1562 |
|
| 1563 |
-
$
|
| 1564 |
|
| 1565 |
-
|
| 1566 |
-
|
| 1567 |
-
|
| 1568 |
-
$selected = (htmlspecialchars($choice) == htmlspecialchars(isset($_POST['wdform_' . $id1 . "_element" . $form_id]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . "_element" . $form_id])) : "") ? 'selected="selected"' : '');
|
| 1569 |
-
}
|
| 1570 |
-
$choice_value = $choice;
|
| 1571 |
-
$html .= '<option value="' . $choice_value . '" ' . $selected . '>' . $choice . '</option>';
|
| 1572 |
-
}
|
| 1573 |
-
$html .= '</select>';
|
| 1574 |
|
| 1575 |
// Generate field.
|
| 1576 |
-
$rep = $this->wdform_field($type, $param, $row, $html);
|
| 1577 |
|
| 1578 |
break;
|
| 1579 |
}
|
| 1580 |
-
case '
|
|
|
|
|
|
|
|
|
|
| 1581 |
$params_names = array(
|
| 1582 |
'w_field_label_size',
|
| 1583 |
'w_field_label_pos',
|
| 1584 |
-
'
|
| 1585 |
-
'
|
| 1586 |
-
'
|
| 1587 |
-
'
|
| 1588 |
-
'
|
| 1589 |
-
'
|
| 1590 |
-
'
|
| 1591 |
-
'
|
| 1592 |
'w_class',
|
| 1593 |
);
|
| 1594 |
$temp = $params;
|
|
@@ -1597,14 +1407,14 @@ class FMViewForm_maker {
|
|
| 1597 |
'w_field_label_size',
|
| 1598 |
'w_field_label_pos',
|
| 1599 |
'w_hide_label',
|
| 1600 |
-
'
|
| 1601 |
-
'
|
| 1602 |
-
'
|
| 1603 |
-
'
|
| 1604 |
-
'
|
| 1605 |
-
'
|
| 1606 |
-
'
|
| 1607 |
-
'
|
| 1608 |
'w_class',
|
| 1609 |
);
|
| 1610 |
}
|
|
@@ -1620,107 +1430,38 @@ class FMViewForm_maker {
|
|
| 1620 |
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 1621 |
}
|
| 1622 |
}
|
| 1623 |
-
$w_mini_labels = explode('***', $param['w_mini_labels']);
|
| 1624 |
|
| 1625 |
-
$param['id'] = '
|
| 1626 |
$param['w_class'] .= ' wd-flex-row';
|
| 1627 |
|
| 1628 |
-
$html = '<
|
| 1629 |
-
$html .= '<input type="
|
| 1630 |
-
|
| 1631 |
-
id="wdform_' . $id1 . '_hh' . $form_id . '"
|
| 1632 |
-
name="wdform_' . $id1 . '_hh' . $form_id . '"
|
| 1633 |
-
onkeyup="wd_validate(this)"
|
| 1634 |
-
data-addiotional-fields=\'' . json_encode(array('wdform_' . $id1 . '_mm' . $form_id, 'wdform_' . $id1 . '_ss' . $form_id)) . '\'
|
| 1635 |
-
data-valid-type="' . ($param['w_time_type'] == '12' ? 'hour12' : 'hour24') . '"
|
| 1636 |
-
data-form-id="' . $form_id . '"
|
| 1637 |
-
data-wdid="' . $id1 . '"
|
| 1638 |
-
value="' . (isset($_POST['wdform_' . $id1 . "_hh" . $form_id]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . "_hh" . $form_id])) : $param['w_hh']) . '"
|
| 1639 |
-
' . $param['attributes'] . ' />';
|
| 1640 |
-
$html .= '<label for="wdform_' . $id1 . '_hh' . $form_id . '" class="mini_label">' . $w_mini_labels[0] . '</label>';
|
| 1641 |
-
$html .= '</div>';
|
| 1642 |
-
$html .= '<div class="wd-flex wd-flex-column"> : </div>';
|
| 1643 |
-
$html .= '<div class="wd-flex wd-flex-column">';
|
| 1644 |
-
$html .= '<input type="number"
|
| 1645 |
-
class="time_box wd-type-number"
|
| 1646 |
-
id="wdform_' . $id1 . '_mm' . $form_id . '"
|
| 1647 |
-
name="wdform_' . $id1 . '_mm' . $form_id . '"
|
| 1648 |
-
onkeyup="wd_validate(this)"
|
| 1649 |
-
data-addiotional-fields=\'' . json_encode(array('wdform_' . $id1 . '_hh' . $form_id, 'wdform_' . $id1 . '_ss' . $form_id)) . '\'
|
| 1650 |
-
data-valid-type="minute"
|
| 1651 |
-
data-form-id="' . $form_id . '"
|
| 1652 |
-
data-wdid="' . $id1 . '"
|
| 1653 |
-
value="' . (isset($_POST['wdform_' . $id1 . "_mm" . $form_id]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . "_mm" . $form_id])) : $param['w_mm']) . '"
|
| 1654 |
-
' . $param['attributes'] . ' />';
|
| 1655 |
-
$html .= '<label for="wdform_' . $id1 . '_mm' . $form_id . '" class="mini_label">' . $w_mini_labels[1] . '</label>';
|
| 1656 |
-
$html .= '</div>';
|
| 1657 |
-
if ( $param['w_sec'] == '1' ) {
|
| 1658 |
-
$html .= '<div class="wd-flex wd-flex-column"> : </div>';
|
| 1659 |
-
$html .= '<div class="wd-flex wd-flex-column">';
|
| 1660 |
-
$html .= '<input type="number"
|
| 1661 |
-
class="time_box wd-type-number"
|
| 1662 |
-
id="wdform_' . $id1 . '_ss' . $form_id . '"
|
| 1663 |
-
name="wdform_' . $id1 . '_ss' . $form_id . '"
|
| 1664 |
-
onkeyup="wd_validate(this)"
|
| 1665 |
-
data-addiotional-fields=\'' . json_encode(array('wdform_' . $id1 . '_mm' . $form_id, 'wdform_' . $id1 . '_hh' . $form_id)) . '\'
|
| 1666 |
-
data-valid-type="second"
|
| 1667 |
-
data-form-id="' . $form_id . '"
|
| 1668 |
-
data-wdid="' . $id1 . '"
|
| 1669 |
-
value="' . (isset($_POST['wdform_' . $id1 . "_ss" . $form_id]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . "_ss" . $form_id])) : $param['w_ss']) . '"
|
| 1670 |
-
' . $param['attributes'] . ' />';
|
| 1671 |
-
$html .= '<label for="wdform_' . $id1 . '_ss' . $form_id . '" class="mini_label">' . $w_mini_labels[2] . '</label>';
|
| 1672 |
-
$html .= '</div>';
|
| 1673 |
-
}
|
| 1674 |
-
if ( $param['w_time_type'] == '12' ) {
|
| 1675 |
-
if ( (isset($_POST['wdform_' . $id1 . "_am_pm" . $form_id]) ? esc_html($_POST['wdform_' . $id1 . "_am_pm" . $form_id]) : $param['w_am_pm']) == 'am' ) {
|
| 1676 |
-
$am_ = "selected=\"selected\"";
|
| 1677 |
-
$pm_ = "";
|
| 1678 |
-
}
|
| 1679 |
-
else {
|
| 1680 |
-
$am_ = "";
|
| 1681 |
-
$pm_ = "selected=\"selected\"";
|
| 1682 |
-
}
|
| 1683 |
-
$html .= '<div class="wd-flex wd-flex-column"> </div>';
|
| 1684 |
-
$html .= '<div class="wd-flex wd-flex-column">';
|
| 1685 |
-
$html .= '<select class="am_pm_select" name="wdform_' . $id1 . '_am_pm' . $form_id . '" id="wdform_' . $id1 . '_am_pm' . $form_id . '" ' . $param['attributes'] . '>';
|
| 1686 |
-
$html .= '<option value="am" ' . $am_ . '>' . __('AM', WDFM()->prefix) . '</option>';
|
| 1687 |
-
$html .= '<option value="pm" ' . $pm_ . '>' . __('PM', WDFM()->prefix) . '</option>';
|
| 1688 |
-
$html .= '</select>';
|
| 1689 |
-
$html .= '<label class="mini_label">' . $w_mini_labels[3] . '</label>';
|
| 1690 |
-
$html .= '</div>';
|
| 1691 |
-
}
|
| 1692 |
|
| 1693 |
// Generate field.
|
| 1694 |
$rep = $this->wdform_field($type, $param, $row, $html);
|
| 1695 |
|
| 1696 |
break;
|
| 1697 |
}
|
| 1698 |
-
case '
|
| 1699 |
-
|
| 1700 |
-
|
| 1701 |
-
|
|
|
|
| 1702 |
$params_names = array(
|
| 1703 |
'w_field_label_size',
|
| 1704 |
'w_field_label_pos',
|
| 1705 |
-
'
|
|
|
|
|
|
|
|
|
|
| 1706 |
'w_required',
|
|
|
|
| 1707 |
'w_class',
|
| 1708 |
-
'
|
| 1709 |
-
'
|
| 1710 |
);
|
| 1711 |
$temp = $params;
|
| 1712 |
-
if ( strpos($temp, 'w_disable_past_days') > -1 ) {
|
| 1713 |
-
$params_names = array(
|
| 1714 |
-
'w_field_label_size',
|
| 1715 |
-
'w_field_label_pos',
|
| 1716 |
-
'w_date',
|
| 1717 |
-
'w_required',
|
| 1718 |
-
'w_class',
|
| 1719 |
-
'w_format',
|
| 1720 |
-
'w_but_val',
|
| 1721 |
-
'w_disable_past_days',
|
| 1722 |
-
);
|
| 1723 |
-
}
|
| 1724 |
foreach ( $params_names as $params_name ) {
|
| 1725 |
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 1726 |
$param[$params_name] = $temp[0];
|
|
@@ -1733,12 +1474,16 @@ class FMViewForm_maker {
|
|
| 1733 |
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 1734 |
}
|
| 1735 |
}
|
| 1736 |
-
$
|
| 1737 |
-
$param['
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1738 |
|
| 1739 |
-
$rep = '<div type="
|
| 1740 |
|
| 1741 |
-
$rep .= $this->field_label($param, $row, $id1);
|
| 1742 |
|
| 1743 |
$classes = array('wdform-element-section');
|
| 1744 |
if ( isset($param['w_class']) ) {
|
|
@@ -1748,56 +1493,55 @@ class FMViewForm_maker {
|
|
| 1748 |
$classes[] = 'wd-block';
|
| 1749 |
}
|
| 1750 |
|
| 1751 |
-
$rep .= '<div class="' . implode(' ', $classes) . '">
|
| 1752 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1753 |
break;
|
| 1754 |
}
|
| 1755 |
-
case '
|
| 1756 |
-
|
| 1757 |
-
|
| 1758 |
-
|
| 1759 |
-
|
| 1760 |
-
|
| 1761 |
-
|
| 1762 |
-
|
| 1763 |
-
|
| 1764 |
-
|
| 1765 |
-
|
| 1766 |
-
|
| 1767 |
-
|
| 1768 |
-
|
| 1769 |
-
|
| 1770 |
-
|
| 1771 |
-
|
| 1772 |
-
|
| 1773 |
-
|
| 1774 |
-
|
| 1775 |
-
|
| 1776 |
-
|
| 1777 |
-
);
|
| 1778 |
$temp = $params;
|
| 1779 |
-
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
| 1780 |
-
$params_names = array(
|
| 1781 |
-
'w_field_label_size',
|
| 1782 |
-
'w_field_label_pos',
|
| 1783 |
-
'w_hide_label',
|
| 1784 |
-
'w_size',
|
| 1785 |
-
'w_date',
|
| 1786 |
-
'w_required',
|
| 1787 |
-
'w_show_image',
|
| 1788 |
-
'w_class',
|
| 1789 |
-
'w_format',
|
| 1790 |
-
'w_start_day',
|
| 1791 |
-
'w_default_date',
|
| 1792 |
-
'w_min_date',
|
| 1793 |
-
'w_max_date',
|
| 1794 |
-
'w_invalid_dates',
|
| 1795 |
-
'w_show_days',
|
| 1796 |
-
'w_hide_time',
|
| 1797 |
-
'w_but_val',
|
| 1798 |
-
'w_disable_past_days',
|
| 1799 |
-
);
|
| 1800 |
-
}
|
| 1801 |
foreach ( $params_names as $params_name ) {
|
| 1802 |
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 1803 |
$param[$params_name] = $temp[0];
|
|
@@ -1810,68 +1554,25 @@ class FMViewForm_maker {
|
|
| 1810 |
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 1811 |
}
|
| 1812 |
}
|
| 1813 |
-
$
|
| 1814 |
|
| 1815 |
$param['id'] = $id1;
|
| 1816 |
$param['w_class'] .= ' wd-flex-row';
|
|
|
|
|
|
|
|
|
|
| 1817 |
|
| 1818 |
-
$html = '<
|
| 1819 |
-
$html .= '<
|
| 1820 |
-
$html .= '<input type="hidden" format="' . $param['w_format'] . '" id="wdform_' . $id1 . '_button' . $form_id . '" value="' . $default_date . '" />';
|
| 1821 |
|
| 1822 |
// Generate field.
|
| 1823 |
-
$rep = $this->wdform_field($type, $param, $row, $html);
|
| 1824 |
|
| 1825 |
break;
|
| 1826 |
}
|
| 1827 |
-
case '
|
| 1828 |
-
|
| 1829 |
-
wp_add_inline_script('jquery-ui-datepicker', WDW_FM_Library::localize_ui_datepicker());
|
| 1830 |
-
|
| 1831 |
-
$params_names = array(
|
| 1832 |
-
'w_field_label_size',
|
| 1833 |
-
'w_field_label_pos',
|
| 1834 |
-
'w_size',
|
| 1835 |
-
'w_date',
|
| 1836 |
-
'w_required',
|
| 1837 |
-
'w_show_image',
|
| 1838 |
-
'w_class',
|
| 1839 |
-
'w_format',
|
| 1840 |
-
'w_start_day',
|
| 1841 |
-
'w_default_date_start',
|
| 1842 |
-
'w_default_date_end',
|
| 1843 |
-
'w_min_date',
|
| 1844 |
-
'w_max_date',
|
| 1845 |
-
'w_invalid_dates',
|
| 1846 |
-
'w_show_days',
|
| 1847 |
-
'w_hide_time',
|
| 1848 |
-
'w_but_val',
|
| 1849 |
-
'w_disable_past_days',
|
| 1850 |
-
);
|
| 1851 |
$temp = $params;
|
| 1852 |
-
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
| 1853 |
-
$params_names = array(
|
| 1854 |
-
'w_field_label_size',
|
| 1855 |
-
'w_field_label_pos',
|
| 1856 |
-
'w_hide_label',
|
| 1857 |
-
'w_size',
|
| 1858 |
-
'w_date',
|
| 1859 |
-
'w_required',
|
| 1860 |
-
'w_show_image',
|
| 1861 |
-
'w_class',
|
| 1862 |
-
'w_format',
|
| 1863 |
-
'w_start_day',
|
| 1864 |
-
'w_default_date_start',
|
| 1865 |
-
'w_default_date_end',
|
| 1866 |
-
'w_min_date',
|
| 1867 |
-
'w_max_date',
|
| 1868 |
-
'w_invalid_dates',
|
| 1869 |
-
'w_show_days',
|
| 1870 |
-
'w_hide_time',
|
| 1871 |
-
'w_but_val',
|
| 1872 |
-
'w_disable_past_days',
|
| 1873 |
-
);
|
| 1874 |
-
}
|
| 1875 |
foreach ( $params_names as $params_name ) {
|
| 1876 |
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 1877 |
$param[$params_name] = $temp[0];
|
|
@@ -1884,1404 +1585,1862 @@ class FMViewForm_maker {
|
|
| 1884 |
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 1885 |
}
|
| 1886 |
}
|
|
|
|
|
|
|
| 1887 |
|
| 1888 |
-
$param['id'] = '
|
| 1889 |
$param['w_class'] .= ' wd-flex-row';
|
| 1890 |
|
| 1891 |
-
|
| 1892 |
-
$
|
| 1893 |
-
$
|
| 1894 |
-
$
|
| 1895 |
-
$html
|
| 1896 |
-
|
| 1897 |
-
|
| 1898 |
-
|
| 1899 |
-
$html .= '</div>';
|
| 1900 |
|
| 1901 |
// Generate field.
|
| 1902 |
-
$rep = $this->wdform_field($type, $param, $row, $html);
|
| 1903 |
|
| 1904 |
break;
|
| 1905 |
}
|
| 1906 |
-
case '
|
| 1907 |
-
$
|
| 1908 |
-
'w_field_label_size',
|
| 1909 |
-
'w_field_label_pos',
|
| 1910 |
-
'w_day',
|
| 1911 |
-
'w_month',
|
| 1912 |
-
'w_year',
|
| 1913 |
-
'w_day_type',
|
| 1914 |
-
'w_month_type',
|
| 1915 |
-
'w_year_type',
|
| 1916 |
-
'w_day_label',
|
| 1917 |
-
'w_month_label',
|
| 1918 |
-
'w_year_label',
|
| 1919 |
-
'w_day_size',
|
| 1920 |
-
'w_month_size',
|
| 1921 |
-
'w_year_size',
|
| 1922 |
-
'w_required',
|
| 1923 |
-
'w_class',
|
| 1924 |
-
'w_from',
|
| 1925 |
-
'w_to',
|
| 1926 |
-
'w_divider',
|
| 1927 |
-
);
|
| 1928 |
-
$temp = $params;
|
| 1929 |
-
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
| 1930 |
-
$params_names = array(
|
| 1931 |
-
'w_field_label_size',
|
| 1932 |
-
'w_field_label_pos',
|
| 1933 |
-
'w_hide_label',
|
| 1934 |
-
'w_day',
|
| 1935 |
-
'w_month',
|
| 1936 |
-
'w_year',
|
| 1937 |
-
'w_day_type',
|
| 1938 |
-
'w_month_type',
|
| 1939 |
-
'w_year_type',
|
| 1940 |
-
'w_day_label',
|
| 1941 |
-
'w_month_label',
|
| 1942 |
-
'w_year_label',
|
| 1943 |
-
'w_day_size',
|
| 1944 |
-
'w_month_size',
|
| 1945 |
-
'w_year_size',
|
| 1946 |
-
'w_required',
|
| 1947 |
-
'w_class',
|
| 1948 |
-
'w_from',
|
| 1949 |
-
'w_to',
|
| 1950 |
-
'w_divider',
|
| 1951 |
-
);
|
| 1952 |
-
}
|
| 1953 |
-
foreach ( $params_names as $params_name ) {
|
| 1954 |
-
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 1955 |
-
$param[$params_name] = $temp[0];
|
| 1956 |
-
$temp = $temp[1];
|
| 1957 |
-
}
|
| 1958 |
-
if ( $temp ) {
|
| 1959 |
-
$temp = explode('*:*w_attr_name*:*', $temp);
|
| 1960 |
-
$attrs = array_slice($temp, 0, count($temp) - 1);
|
| 1961 |
-
foreach ( $attrs as $attr ) {
|
| 1962 |
-
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 1963 |
-
}
|
| 1964 |
-
}
|
| 1965 |
-
$param['w_day'] = (isset($_POST['wdform_' . $id1 . "_day" . $form_id]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . "_day" . $form_id])) : $param['w_day']);
|
| 1966 |
-
$param['w_month'] = (isset($_POST['wdform_' . $id1 . "_month" . $form_id]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . "_month" . $form_id])) : $param['w_month']);
|
| 1967 |
-
$param['w_year'] = (isset($_POST['wdform_' . $id1 . "_year" . $form_id]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . "_year" . $form_id])) : $param['w_year']);
|
| 1968 |
-
|
| 1969 |
-
if ( $param['w_day_type'] == "SELECT" ) {
|
| 1970 |
-
$w_day_type = '<select id="wdform_' . $id1 . '_day' . $form_id . '" name="wdform_' . $id1 . '_day' . $form_id . '" style="width: ' . $param['w_day_size'] . 'px;" ' . $param['attributes'] . '><option value=""></option>';
|
| 1971 |
-
for ( $k = 1; $k <= 31; $k++ ) {
|
| 1972 |
-
if ( $k < 10 ) {
|
| 1973 |
-
if ( $param['w_day'] == '0' . $k ) {
|
| 1974 |
-
$selected = "selected=\"selected\"";
|
| 1975 |
-
}
|
| 1976 |
-
else {
|
| 1977 |
-
$selected = "";
|
| 1978 |
-
}
|
| 1979 |
-
$w_day_type .= '<option value="0' . $k . '" ' . $selected . '>0' . $k . '</option>';
|
| 1980 |
-
}
|
| 1981 |
-
else {
|
| 1982 |
-
if ( $param['w_day'] == '' . $k ) {
|
| 1983 |
-
$selected = "selected=\"selected\"";
|
| 1984 |
-
}
|
| 1985 |
-
else {
|
| 1986 |
-
$selected = "";
|
| 1987 |
-
}
|
| 1988 |
-
$w_day_type .= '<option value="' . $k . '" ' . $selected . '>' . $k . '</option>';
|
| 1989 |
-
}
|
| 1990 |
-
}
|
| 1991 |
-
$w_day_type .= '</select>';
|
| 1992 |
-
}
|
| 1993 |
-
else {
|
| 1994 |
-
$w_day_type = '<input type="number"
|
| 1995 |
-
class="wd-type-number"
|
| 1996 |
-
id="wdform_' . $id1 . '_day' . $form_id . '"
|
| 1997 |
-
name="wdform_' . $id1 . '_day' . $form_id . '"
|
| 1998 |
-
onkeyup="wd_validate(this)"
|
| 1999 |
-
data-addiotional-fields=\'' . json_encode(array('wdform_' . $id1 . '_month' . $form_id, 'wdform_' . $id1 . '_year' . $form_id)) . '\'
|
| 2000 |
-
data-valid-type="day"
|
| 2001 |
-
data-form-id="' . $form_id . '"
|
| 2002 |
-
data-wdid="' . $id1 . '"
|
| 2003 |
-
style="width: ' . $param['w_day_size'] . 'px;"
|
| 2004 |
-
value="' . $param['w_day'] . '"
|
| 2005 |
-
' . $param['attributes'] . ' />';
|
| 2006 |
-
}
|
| 2007 |
-
$w_day_type .= '<label for="wdform_' . $id1 . '_day' . $form_id . '" class="mini_label">' . $param['w_day_label'] . '</label>';
|
| 2008 |
-
|
| 2009 |
-
if ( $param['w_month_type'] == "SELECT" ) {
|
| 2010 |
-
$w_month_type = '<select id="wdform_' . $id1 . '_month' . $form_id . '" name="wdform_' . $id1 . '_month' . $form_id . '" style="width: ' . $param['w_month_size'] . 'px;" ' . $param['attributes'] . '><option value=""></option><option value="01" ' . ($param['w_month'] == "01" ? "selected=\"selected\"" : "") . ' >' . (__("January", WDFM()->prefix)) . '</option><option value="02" ' . ($param['w_month'] == "02" ? "selected=\"selected\"" : "") . '>' . (__("February", WDFM()->prefix)) . '</option><option value="03" ' . ($param['w_month'] == "03" ? "selected=\"selected\"" : "") . '>' . (__("March", WDFM()->prefix)) . '</option><option value="04" ' . ($param['w_month'] == "04" ? "selected=\"selected\"" : "") . ' >' . (__("April", WDFM()->prefix)) . '</option><option value="05" ' . ($param['w_month'] == "05" ? "selected=\"selected\"" : "") . ' >' . (__("May", WDFM()->prefix)) . '</option><option value="06" ' . ($param['w_month'] == "06" ? "selected=\"selected\"" : "") . ' >' . (__("June", WDFM()->prefix)) . '</option><option value="07" ' . ($param['w_month'] == "07" ? "selected=\"selected\"" : "") . ' >' . (__("July", WDFM()->prefix)) . '</option><option value="08" ' . ($param['w_month'] == "08" ? "selected=\"selected\"" : "") . ' >' . (__("August", WDFM()->prefix)) . '</option><option value="09" ' . ($param['w_month'] == "09" ? "selected=\"selected\"" : "") . ' >' . (__("September", WDFM()->prefix)) . '</option><option value="10" ' . ($param['w_month'] == "10" ? "selected=\"selected\"" : "") . ' >' . (__("October", WDFM()->prefix)) . '</option><option value="11" ' . ($param['w_month'] == "11" ? "selected=\"selected\"" : "") . '>' . (__("November", WDFM()->prefix)) . '</option><option value="12" ' . ($param['w_month'] == "12" ? "selected=\"selected\"" : "") . ' >' . (__("December", WDFM()->prefix)) . '</option></select>';
|
| 2011 |
-
}
|
| 2012 |
-
else {
|
| 2013 |
-
$w_month_type = '<input type="number"
|
| 2014 |
-
class="wd-type-number"
|
| 2015 |
-
id="wdform_' . $id1 . '_month' . $form_id . '"
|
| 2016 |
-
name="wdform_' . $id1 . '_month' . $form_id . '"
|
| 2017 |
-
onkeyup="wd_validate(this)"
|
| 2018 |
-
data-addiotional-fields=\'' . json_encode(array('wdform_' . $id1 . '_day' . $form_id, 'wdform_' . $id1 . '_year' . $form_id)) . '\'
|
| 2019 |
-
data-valid-type="month"
|
| 2020 |
-
data-form-id="' . $form_id . '"
|
| 2021 |
-
data-wdid="' . $id1 . '"
|
| 2022 |
-
style="width: ' . $param['w_month_size'] . 'px;"
|
| 2023 |
-
value="' . $param['w_month'] . '"
|
| 2024 |
-
' . $param['attributes'] . ' />';
|
| 2025 |
-
}
|
| 2026 |
-
$w_month_type .= '<label for="wdform_' . $id1 . '_month' . $form_id . '" class="mini_label">' . $param['w_month_label'] . '</label>';
|
| 2027 |
-
|
| 2028 |
-
$param['w_to'] = isset($param['w_to']) && $param['w_to'] != "NaN" ? $param['w_to'] : date("Y");
|
| 2029 |
-
if ( $param['w_year_type'] == "SELECT" ) {
|
| 2030 |
-
$w_year_type = '<select id="wdform_' . $id1 . '_year' . $form_id . '" name="wdform_' . $id1 . '_year' . $form_id . '" from="' . $param['w_from'] . '" to="' . $param['w_to'] . '" style="width: ' . $param['w_year_size'] . 'px;" ' . $param['attributes'] . '><option value=""></option>';
|
| 2031 |
-
for ( $k = $param['w_to']; $k >= $param['w_from']; $k-- ) {
|
| 2032 |
-
if ( $param['w_year'] == $k ) {
|
| 2033 |
-
$selected = "selected=\"selected\"";
|
| 2034 |
-
}
|
| 2035 |
-
else {
|
| 2036 |
-
$selected = "";
|
| 2037 |
-
}
|
| 2038 |
-
$w_year_type .= '<option value="' . $k . '" ' . $selected . '>' . $k . '</option>';
|
| 2039 |
-
}
|
| 2040 |
-
$w_year_type .= '</select>';
|
| 2041 |
-
}
|
| 2042 |
-
else {
|
| 2043 |
-
$w_year_type = '<input type="number"
|
| 2044 |
-
class="wd-type-number"
|
| 2045 |
-
id="wdform_' . $id1 . '_year' . $form_id . '"
|
| 2046 |
-
name="wdform_' . $id1 . '_year' . $form_id . '"
|
| 2047 |
-
onkeyup="wd_validate(this)"
|
| 2048 |
-
onchange="wd_year_validation(this)"
|
| 2049 |
-
data-addiotional-fields=\'' . json_encode(array('wdform_' . $id1 . '_day' . $form_id, 'wdform_' . $id1 . '_month' . $form_id)) . '\'
|
| 2050 |
-
data-valid-type="year"
|
| 2051 |
-
data-form-id="' . $form_id . '"
|
| 2052 |
-
data-wdid="' . $id1 . '"
|
| 2053 |
-
value="' . $param['w_year'] . '"
|
| 2054 |
-
from="' . $param['w_from'] . '"
|
| 2055 |
-
to="' . $param['w_to'] . '"
|
| 2056 |
-
style="width: ' . $param['w_year_size'] . 'px;"
|
| 2057 |
-
' . $param['attributes'] . ' />';
|
| 2058 |
-
}
|
| 2059 |
-
$w_year_type .= '<label for="wdform_' . $id1 . '_year' . $form_id . '" class="mini_label">' . $param['w_year_label'] . '</label>';
|
| 2060 |
-
|
| 2061 |
-
$param['id'] = 'wdform_' . $id1 . '_day' . $form_id;
|
| 2062 |
-
$param['w_class'] .= ' wd-flex-row';
|
| 2063 |
-
|
| 2064 |
-
$html = '<div class="wd-flex wd-flex-row wd-width-100 wd-align-items">';
|
| 2065 |
-
$html .= '<div class="wd-flex wd-flex-column">';
|
| 2066 |
-
$html .= $w_day_type;
|
| 2067 |
-
$html .= '</div>';
|
| 2068 |
-
$html .= '<span class="wdform_separator">' . $param['w_divider'] . '</span>';
|
| 2069 |
-
$html .= '<div class="wd-flex wd-flex-column">';
|
| 2070 |
-
$html .= $w_month_type;
|
| 2071 |
-
$html .= '</div>';
|
| 2072 |
-
$html .= '<span class="wdform_separator">' . $param['w_divider'] . '</span>';
|
| 2073 |
-
$html .= '<div class="wd-flex wd-flex-column">';
|
| 2074 |
-
$html .= $w_year_type;
|
| 2075 |
-
$html .= '</div>';
|
| 2076 |
-
$html .= '</div>';
|
| 2077 |
-
|
| 2078 |
-
// Generate field.
|
| 2079 |
-
$rep = $this->wdform_field($type, $param, $row, $html);
|
| 2080 |
-
|
| 2081 |
-
break;
|
| 2082 |
-
}
|
| 2083 |
-
case 'type_file_upload': {
|
| 2084 |
-
$rep = $this->type_file_upload($params, $row, $id1, $form_id, $param);
|
| 2085 |
-
break;
|
| 2086 |
-
}
|
| 2087 |
-
case 'type_captcha': {
|
| 2088 |
-
$params_names = array( 'w_field_label_size', 'w_field_label_pos', 'w_digit', 'w_class' );
|
| 2089 |
-
$temp = $params;
|
| 2090 |
-
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
| 2091 |
-
$params_names = array( 'w_field_label_size', 'w_field_label_pos', 'w_hide_label', 'w_digit', 'w_class' );
|
| 2092 |
-
}
|
| 2093 |
-
foreach ( $params_names as $params_name ) {
|
| 2094 |
-
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 2095 |
-
$param[$params_name] = $temp[0];
|
| 2096 |
-
$temp = $temp[1];
|
| 2097 |
-
}
|
| 2098 |
-
if ( $temp ) {
|
| 2099 |
-
$temp = explode('*:*w_attr_name*:*', $temp);
|
| 2100 |
-
$attrs = array_slice($temp, 0, count($temp) - 1);
|
| 2101 |
-
foreach ( $attrs as $attr ) {
|
| 2102 |
-
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 2103 |
-
}
|
| 2104 |
-
}
|
| 2105 |
-
|
| 2106 |
-
$param['id'] = 'wd_captcha_input' . $form_id;
|
| 2107 |
-
$param['w_class'] .= ' wd-flex-row wd-align-items-center';
|
| 2108 |
-
|
| 2109 |
-
$html = '<img type="captcha"
|
| 2110 |
-
digit="' . $param['w_digit'] . '"
|
| 2111 |
-
src=" ' . add_query_arg(array('action' => 'formmakerwdcaptcha', 'digit' => $param['w_digit'], 'i' => $form_id), admin_url('admin-ajax.php')) . '"
|
| 2112 |
-
id="wd_captcha' . $form_id . '"
|
| 2113 |
-
class="captcha_img wd-hidden"
|
| 2114 |
-
' . $param['attributes'] . ' />';
|
| 2115 |
-
$html .= '<div class="captcha_refresh" id="_element_refresh' . $form_id . '" ' . $param['attributes'] . '></div>';
|
| 2116 |
-
$html .= '<input type="text"
|
| 2117 |
-
class="captcha_input"
|
| 2118 |
-
id="wd_captcha_input' . $form_id . '"
|
| 2119 |
-
name="captcha_input"
|
| 2120 |
-
style="width: ' . ($param['w_digit'] * 10 + 20) . 'px;"
|
| 2121 |
-
' . $param['attributes'] . ' />';
|
| 2122 |
-
|
| 2123 |
-
// Generate field.
|
| 2124 |
-
$rep = $this->wdform_field($type, $param, $row, $html);
|
| 2125 |
-
|
| 2126 |
-
if ( isset($_SESSION['message_captcha']) && $_SESSION['message_captcha'] != "" ) {
|
| 2127 |
-
$rep .= '<div class="fm-not-filled message_captcha">' . $_SESSION['message_captcha'] . '</div>';
|
| 2128 |
-
unset($_SESSION['message_captcha']);
|
| 2129 |
-
}
|
| 2130 |
-
|
| 2131 |
-
break;
|
| 2132 |
-
}
|
| 2133 |
-
case 'type_arithmetic_captcha': {
|
| 2134 |
-
$params_names = array(
|
| 2135 |
-
'w_field_label_size',
|
| 2136 |
-
'w_field_label_pos',
|
| 2137 |
-
'w_count',
|
| 2138 |
-
'w_operations',
|
| 2139 |
-
'w_class',
|
| 2140 |
-
'w_input_size',
|
| 2141 |
-
);
|
| 2142 |
-
$temp = $params;
|
| 2143 |
-
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
| 2144 |
-
$params_names = array(
|
| 2145 |
-
'w_field_label_size',
|
| 2146 |
-
'w_field_label_pos',
|
| 2147 |
-
'w_hide_label',
|
| 2148 |
-
'w_count',
|
| 2149 |
-
'w_operations',
|
| 2150 |
-
'w_class',
|
| 2151 |
-
'w_input_size',
|
| 2152 |
-
);
|
| 2153 |
-
}
|
| 2154 |
-
foreach ( $params_names as $params_name ) {
|
| 2155 |
-
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 2156 |
-
$param[$params_name] = $temp[0];
|
| 2157 |
-
$temp = $temp[1];
|
| 2158 |
-
}
|
| 2159 |
-
if ( $temp ) {
|
| 2160 |
-
$temp = explode('*:*w_attr_name*:*', $temp);
|
| 2161 |
-
$attrs = array_slice($temp, 0, count($temp) - 1);
|
| 2162 |
-
foreach ( $attrs as $attr ) {
|
| 2163 |
-
$param['attributes'] = $param['attributes'] . ' add_' . $attr;
|
| 2164 |
-
}
|
| 2165 |
-
}
|
| 2166 |
-
|
| 2167 |
-
$param['w_count'] = $param['w_count'] ? $param['w_count'] : 1;
|
| 2168 |
-
$param['w_operations'] = $param['w_operations'] ? $param['w_operations'] : '+, -, *, /';
|
| 2169 |
-
$param['w_input_size'] = $param['w_input_size'] ? $param['w_input_size'] : 60;
|
| 2170 |
-
|
| 2171 |
-
$param['id'] = 'wd_arithmetic_captcha_input' . $form_id;
|
| 2172 |
-
$param['w_class'] .= ' wd-flex-row wd-align-items-center';
|
| 2173 |
-
|
| 2174 |
-
$html = '<img type="captcha"
|
| 2175 |
-
operations_count="' . $param['w_count'] . '"
|
| 2176 |
-
operations="' . $param['w_operations'] . '"
|
| 2177 |
-
src="' . add_query_arg(array('action' => 'formmakerwdmathcaptcha', 'operations_count' => $param['w_count'], 'operations' => urlencode($param['w_operations']), 'i' => $form_id), admin_url('admin-ajax.php')) . '"
|
| 2178 |
-
id="wd_arithmetic_captcha' . $form_id . '"
|
| 2179 |
-
class="arithmetic_captcha_img"
|
| 2180 |
-
' . $param['attributes'] . ' />';
|
| 2181 |
-
$html .= '<div class="captcha_refresh" id="_element_refresh' . $form_id . '" ' . $param['attributes'] . '></div>';
|
| 2182 |
-
$html .= '<input type="text"
|
| 2183 |
-
class="arithmetic_captcha_input"
|
| 2184 |
-
id="wd_arithmetic_captcha_input' . $form_id . '"
|
| 2185 |
-
name="arithmetic_captcha_input"
|
| 2186 |
-
onkeypress="return check_isnum(event)"
|
| 2187 |
-
style="width: ' . $param['w_input_size'] . 'px;"
|
| 2188 |
-
' . $param['attributes'] . ' />';
|
| 2189 |
-
|
| 2190 |
-
// Generate field.
|
| 2191 |
-
$rep = $this->wdform_field($type, $param, $row, $html);
|
| 2192 |
-
|
| 2193 |
-
if ( isset($_SESSION['message_captcha']) && $_SESSION['message_captcha'] != "" ) {
|
| 2194 |
-
$rep .= '<div class="fm-not-filled message_captcha">' . $_SESSION['message_captcha'] . '</div>';
|
| 2195 |
-
unset($_SESSION['message_captcha']);
|
| 2196 |
-
}
|
| 2197 |
-
|
| 2198 |
-
break;
|
| 2199 |
-
}
|
| 2200 |
-
case 'type_recaptcha': {
|
| 2201 |
-
$params_names = array( 'w_field_label_size', 'w_field_label_pos', 'w_public', 'w_private', 'w_class' );
|
| 2202 |
-
$temp = $params;
|
| 2203 |
-
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
| 2204 |
-
$params_names = array(
|
| 2205 |
-
'w_field_label_size',
|
| 2206 |
-
'w_field_label_pos',
|
| 2207 |
-
'w_hide_label',
|
| 2208 |
-
'w_public',
|
| 2209 |
-
'w_private',
|
| 2210 |
-
'w_class',
|
| 2211 |
-
);
|
| 2212 |
-
}
|
| 2213 |
-
foreach ( $params_names as $params_name ) {
|
| 2214 |
-
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 2215 |
-
$param[$params_name] = $temp[0];
|
| 2216 |
-
$temp = $temp[1];
|
| 2217 |
-
}
|
| 2218 |
-
if ( $temp ) {
|
| 2219 |
-
$temp = explode('*:*w_attr_name*:*', $temp);
|
| 2220 |
-
$attrs = array_slice($temp, 0, count($temp) - 1);
|
| 2221 |
-
foreach ( $attrs as $attr ) {
|
| 2222 |
-
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 2223 |
-
}
|
| 2224 |
-
}
|
| 2225 |
-
$publickey = isset($fm_settings['public_key']) ? $fm_settings['public_key'] : '0';
|
| 2226 |
-
wp_enqueue_script('fm-g-recaptcha');
|
| 2227 |
-
|
| 2228 |
-
$param['id'] = '';
|
| 2229 |
-
$param['w_class'] .= ' wd-flex-row';
|
| 2230 |
-
|
| 2231 |
-
$html = '<div id="recaptcha' . $id1 . '" class="g-recaptcha" data-sitekey="' . $publickey . '"></div>';
|
| 2232 |
-
|
| 2233 |
-
// Generate field.
|
| 2234 |
-
$rep = $this->wdform_field($type, $param, $row, $html);
|
| 2235 |
-
|
| 2236 |
-
if ( isset($_SESSION['message_captcha']) && $_SESSION['message_captcha'] != "" ) {
|
| 2237 |
-
$rep .= '<div class="fm-not-filled message_captcha">' . $_SESSION['message_captcha'] . '</div>';
|
| 2238 |
-
unset($_SESSION['message_captcha']);
|
| 2239 |
-
}
|
| 2240 |
-
|
| 2241 |
-
break;
|
| 2242 |
-
}
|
| 2243 |
-
case 'type_hidden': {
|
| 2244 |
-
$params_names = array( 'w_name', 'w_value' );
|
| 2245 |
-
$temp = $params;
|
| 2246 |
-
foreach ( $params_names as $params_name ) {
|
| 2247 |
-
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 2248 |
-
$param[$params_name] = $temp[0];
|
| 2249 |
-
$temp = $temp[1];
|
| 2250 |
-
}
|
| 2251 |
-
if ( $temp ) {
|
| 2252 |
-
$temp = explode('*:*w_attr_name*:*', $temp);
|
| 2253 |
-
$attrs = array_slice($temp, 0, count($temp) - 1);
|
| 2254 |
-
foreach ( $attrs as $attr ) {
|
| 2255 |
-
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 2256 |
-
}
|
| 2257 |
-
}
|
| 2258 |
-
|
| 2259 |
-
$param['id'] = '';
|
| 2260 |
-
|
| 2261 |
-
// todo: remove hidden input label
|
| 2262 |
-
// $rep .= '<div class="wdform-label-section" class="wd-table-cell"></div>';
|
| 2263 |
-
$html = '<input type="hidden" value="' . $param['w_value'] . '" id="wdform_' . $id1 . '_element' . $form_id . '" name="' . $param['w_name'] . '" ' . $param['attributes'] . ' />';
|
| 2264 |
-
|
| 2265 |
-
// Generate field.
|
| 2266 |
-
$rep = $this->wdform_field($type, $param, $row, $html, FALSE);
|
| 2267 |
-
|
| 2268 |
-
break;
|
| 2269 |
-
}
|
| 2270 |
-
case 'type_mark_map': {
|
| 2271 |
-
wp_enqueue_script('google-maps');
|
| 2272 |
-
wp_enqueue_script('fm-gmap_form');
|
| 2273 |
-
|
| 2274 |
-
$params_names = array(
|
| 2275 |
-
'w_field_label_size',
|
| 2276 |
-
'w_field_label_pos',
|
| 2277 |
-
'w_center_x',
|
| 2278 |
-
'w_center_y',
|
| 2279 |
-
'w_long',
|
| 2280 |
-
'w_lat',
|
| 2281 |
-
'w_zoom',
|
| 2282 |
-
'w_width',
|
| 2283 |
-
'w_height',
|
| 2284 |
-
'w_info',
|
| 2285 |
-
'w_class',
|
| 2286 |
-
);
|
| 2287 |
-
$temp = $params;
|
| 2288 |
-
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
| 2289 |
-
$params_names = array(
|
| 2290 |
-
'w_field_label_size',
|
| 2291 |
-
'w_field_label_pos',
|
| 2292 |
-
'w_hide_label',
|
| 2293 |
-
'w_center_x',
|
| 2294 |
-
'w_center_y',
|
| 2295 |
-
'w_long',
|
| 2296 |
-
'w_lat',
|
| 2297 |
-
'w_zoom',
|
| 2298 |
-
'w_width',
|
| 2299 |
-
'w_height',
|
| 2300 |
-
'w_info',
|
| 2301 |
-
'w_class',
|
| 2302 |
-
);
|
| 2303 |
-
}
|
| 2304 |
-
foreach ( $params_names as $params_name ) {
|
| 2305 |
-
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 2306 |
-
$param[$params_name] = $temp[0];
|
| 2307 |
-
$temp = $temp[1];
|
| 2308 |
-
}
|
| 2309 |
-
if ( $temp ) {
|
| 2310 |
-
$temp = explode('*:*w_attr_name*:*', $temp);
|
| 2311 |
-
$attrs = array_slice($temp, 0, count($temp) - 1);
|
| 2312 |
-
foreach ( $attrs as $attr ) {
|
| 2313 |
-
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 2314 |
-
}
|
| 2315 |
-
}
|
| 2316 |
-
|
| 2317 |
-
$param['id'] = '';
|
| 2318 |
-
$param['w_class'] .= ' wd-flex-row';
|
| 2319 |
-
|
| 2320 |
-
$html = '<input type="hidden" id="wdform_' . $id1 . '_long' . $form_id . '" name="wdform_' . $id1 . '_long' . $form_id . '" value="' . $param['w_long'] . '" />';
|
| 2321 |
-
$html .= '<input type="hidden" id="wdform_' . $id1 . '_lat' . $form_id . '" name="wdform_' . $id1 . '_lat' . $form_id . '" value="' . $param['w_lat'] . '" />';
|
| 2322 |
-
$html .= '<div class="wd-width-100" id="wdform_' . $id1 . '_element' . $form_id . '" long0="' . $param['w_long'] . '" lat0="' . $param['w_lat'] . '" zoom="' . $param['w_zoom'] . '" info0="' . str_replace(array("\r\n", "\n", "\r"), '<br />', $param['w_info']) . '" center_x="' . $param['w_center_x'] . '" center_y="' . $param['w_center_y'] . '" style="' . ($param['w_width'] != '' ? 'max-width: ' . $param['w_width'] . 'px; ' : '') . 'height: ' . $param['w_height'] . 'px;" ' . $param['attributes'] . '></div>';
|
| 2323 |
-
|
| 2324 |
-
// Generate field.
|
| 2325 |
-
$rep = $this->wdform_field($type, $param, $row, $html);
|
| 2326 |
-
|
| 2327 |
-
break;
|
| 2328 |
-
}
|
| 2329 |
-
case 'type_map': {
|
| 2330 |
-
$rep = $this->type_map($params, $id1, $row, $param);
|
| 2331 |
-
break;
|
| 2332 |
-
}
|
| 2333 |
-
case 'type_paypal_price': { // Todo: Depricated.
|
| 2334 |
-
$params_names = array(
|
| 2335 |
-
'w_field_label_size',
|
| 2336 |
-
'w_field_label_pos',
|
| 2337 |
-
'w_first_val',
|
| 2338 |
-
'w_title',
|
| 2339 |
-
'w_mini_labels',
|
| 2340 |
-
'w_size',
|
| 2341 |
-
'w_required',
|
| 2342 |
-
'w_hide_cents',
|
| 2343 |
-
'w_class',
|
| 2344 |
-
'w_range_min',
|
| 2345 |
-
'w_range_max',
|
| 2346 |
-
);
|
| 2347 |
-
$temp = $params;
|
| 2348 |
-
foreach ( $params_names as $params_name ) {
|
| 2349 |
-
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 2350 |
-
$param[$params_name] = $temp[0];
|
| 2351 |
-
$temp = $temp[1];
|
| 2352 |
-
}
|
| 2353 |
-
if ( $temp ) {
|
| 2354 |
-
$temp = explode('*:*w_attr_name*:*', $temp);
|
| 2355 |
-
$attrs = array_slice($temp, 0, count($temp) - 1);
|
| 2356 |
-
foreach ( $attrs as $attr ) {
|
| 2357 |
-
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 2358 |
-
}
|
| 2359 |
-
}
|
| 2360 |
-
$w_first_val = explode('***', $param['w_first_val']);
|
| 2361 |
-
$param['w_first_val'] = (isset($_POST['wdform_' . $id1 . '_element_dollars' . $form_id]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . '_element_dollars' . $form_id])) : $w_first_val[0]) . '***' . (isset($_POST['wdform_' . $id1 . '_element_cents' . $form_id]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . '_element_cents' . $form_id])) : $w_first_val[1]);
|
| 2362 |
-
$hide_cents = ($param['w_hide_cents'] == "yes" ? "wd-hidden" : "wd-table-cell");
|
| 2363 |
-
$w_first_val = explode('***', $param['w_first_val']);
|
| 2364 |
-
$w_title = explode('***', $param['w_title']);
|
| 2365 |
-
$w_mini_labels = explode('***', $param['w_mini_labels']);
|
| 2366 |
-
|
| 2367 |
-
$rep = '<div type="type_paypal_price" class="wdform-field">';
|
| 2368 |
-
|
| 2369 |
-
$rep .= $this->field_label($param, $row, 'wdform_' . $id1 . '_element_dollars' . $form_id);
|
| 2370 |
-
|
| 2371 |
-
$classes = array('wdform-element-section');
|
| 2372 |
-
if ( isset($param['w_class']) ) {
|
| 2373 |
-
$classes[] = $param['w_class'];
|
| 2374 |
-
}
|
| 2375 |
-
if ( isset($param['w_field_label_pos']) && $param['w_field_label_pos'] != "left" ) {
|
| 2376 |
-
$classes[] = 'wd-block';
|
| 2377 |
-
}
|
| 2378 |
-
|
| 2379 |
-
$rep .= '<div class="' . implode(' ', $classes) . '">';
|
| 2380 |
-
|
| 2381 |
-
$rep .= '<input type="hidden" value="' . $param['w_range_min'] . '" name="wdform_' . $id1 . '_range_min' . $form_id . '" id="wdform_' . $id1 . '_range_min' . $form_id . '" />';
|
| 2382 |
-
$rep .= '<input type="hidden" value="' . $param['w_range_max'] . '" name="wdform_' . $id1 . '_range_max' . $form_id . '" id="wdform_' . $id1 . '_range_max' . $form_id . '" />';
|
| 2383 |
-
$rep .= '<div id="wdform_' . $id1 . '_table_price" class="wd-table">';
|
| 2384 |
-
$rep .= '<div id="wdform_' . $id1 . '_tr_price1" class="wd-table-row">';
|
| 2385 |
-
$rep .= '<div id="wdform_' . $id1 . '_td_name_currency" class="wd-table-cell">';
|
| 2386 |
-
$rep .= '<span class="wdform_colon wd-vertical-middle"> ' . $form_currency . ' </span>';
|
| 2387 |
-
$rep .= '</div>';
|
| 2388 |
-
$rep .= '<div id="wdform_' . $id1 . '_td_name_dollars" class="wd-table-cell">';
|
| 2389 |
-
$rep .= '<input type="text" id="wdform_' . $id1 . '_element_dollars' . $form_id . '" name="wdform_' . $id1 . '_element_dollars' . $form_id . '" value="' . $w_first_val[0] . '" title="' . $w_title[0] . '" onkeypress="return check_isnum(event)" style="width: ' . $param['w_size'] . 'px;" ' . $param['attributes'] . ' />';
|
| 2390 |
-
$rep .= '</div>';
|
| 2391 |
-
$rep .= '<div id="wdform_' . $id1 . '_td_name_divider" class="' . $hide_cents . '">';
|
| 2392 |
-
$rep .= '<span class="wdform_colon wd-vertical-middle"> . </span>';
|
| 2393 |
-
$rep .= '</div>';
|
| 2394 |
-
$rep .= '<div id="wdform_' . $id1 . '_td_name_cents" class="' . $hide_cents . '">';
|
| 2395 |
-
$rep .= '<input type="text" class="wd-paypal-cent" id="wdform_' . $id1 . '_element_cents' . $form_id . '" name="wdform_' . $id1 . '_element_cents' . $form_id . '" value="' . $w_first_val[1] . '" title="' . $w_title[1] . '" ' . $param['attributes'] . ' />';
|
| 2396 |
-
$rep .= '</div></div>';
|
| 2397 |
-
$rep .= '<div id="wdform_' . $id1 . '_tr_price2" class="wd-table-row">';
|
| 2398 |
-
$rep .= '<div class="wd-table-cell"><label class="mini_label"></label></div>';
|
| 2399 |
-
$rep .= '<div align="left" class="wd-table-cell"><label class="mini_label">' . $w_mini_labels[0] . '</label></div>';
|
| 2400 |
-
$rep .= '<div id="wdform_' . $id1 . '_td_name_label_divider" class="' . $hide_cents . '"><label class="mini_label"></label></div>';
|
| 2401 |
-
$rep .= '<div align="left" id="wdform_' . $id1 . '_td_name_label_cents" class="' . $hide_cents . '"><label class="mini_label">' . $w_mini_labels[1] . '</label></div>';
|
| 2402 |
-
$rep .= '</div></div></div></div>';
|
| 2403 |
break;
|
| 2404 |
}
|
| 2405 |
-
case '
|
| 2406 |
-
$rep = $this->
|
| 2407 |
break;
|
| 2408 |
}
|
| 2409 |
-
case '
|
| 2410 |
-
$rep = $this->
|
| 2411 |
break;
|
| 2412 |
}
|
| 2413 |
-
case '
|
| 2414 |
-
$rep = $this->
|
| 2415 |
break;
|
| 2416 |
}
|
| 2417 |
-
case '
|
| 2418 |
-
$rep = $this->
|
| 2419 |
break;
|
| 2420 |
}
|
| 2421 |
-
case '
|
| 2422 |
-
$rep = $this->
|
| 2423 |
break;
|
| 2424 |
}
|
| 2425 |
-
case '
|
| 2426 |
-
$
|
| 2427 |
-
$temp = $params;
|
| 2428 |
-
foreach ( $params_names as $params_name ) {
|
| 2429 |
-
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 2430 |
-
$param[$params_name] = $temp[0];
|
| 2431 |
-
$temp = $temp[1];
|
| 2432 |
-
}
|
| 2433 |
-
if ( $temp ) {
|
| 2434 |
-
$temp = explode('*:*w_attr_name*:*', $temp);
|
| 2435 |
-
$attrs = array_slice($temp, 0, count($temp) - 1);
|
| 2436 |
-
foreach ( $attrs as $attr ) {
|
| 2437 |
-
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 2438 |
-
}
|
| 2439 |
-
}
|
| 2440 |
-
$param['w_act'] = ($param['w_act'] == "false" ? 'wd-hidden' : "");
|
| 2441 |
-
|
| 2442 |
-
$param['id'] = $id1;
|
| 2443 |
-
$param['w_class'] .= ' wd-flex-row';
|
| 2444 |
-
if ( isset($form_theme['SPAlign']) && $form_theme['SPAlign'] != '' ) {
|
| 2445 |
-
$param['w_class'] .= ' wd-justify-content-' . $form_theme['SPAlign'];
|
| 2446 |
-
}
|
| 2447 |
-
|
| 2448 |
-
$html = '<button type="button" class="button-submit" onclick="fm_submit_form(\'' . $form_id . '\');" ' . $param['attributes'] . '>' . $param['w_submit_title'] . '</button>';
|
| 2449 |
-
$html .= '<button type="button" class="button-reset ' . $param['w_act'] . '" onclick="fm_reset_form(' . $form_id . ');" ' . $param['attributes'] . '>' . $param['w_reset_title'] . '</button>';
|
| 2450 |
-
|
| 2451 |
-
// Generate field.
|
| 2452 |
-
$rep = $this->wdform_field($type, $param, $row, $html, FALSE);
|
| 2453 |
-
|
| 2454 |
break;
|
| 2455 |
}
|
| 2456 |
-
case '
|
| 2457 |
-
$
|
| 2458 |
-
|
| 2459 |
-
|
| 2460 |
-
|
| 2461 |
-
|
| 2462 |
-
|
| 2463 |
-
|
| 2464 |
-
|
| 2465 |
-
$temp = explode('*:*w_attr_name*:*', $temp);
|
| 2466 |
-
$attrs = array_slice($temp, 0, count($temp) - 1);
|
| 2467 |
-
foreach ( $attrs as $attr ) {
|
| 2468 |
-
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 2469 |
-
}
|
| 2470 |
}
|
| 2471 |
-
$
|
| 2472 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2473 |
|
| 2474 |
-
|
| 2475 |
-
|
|
|
|
| 2476 |
|
| 2477 |
-
|
| 2478 |
-
|
| 2479 |
-
|
| 2480 |
-
|
| 2481 |
-
|
| 2482 |
-
|
| 2483 |
-
|
| 2484 |
-
}
|
| 2485 |
|
| 2486 |
-
|
| 2487 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2488 |
|
| 2489 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2490 |
}
|
| 2491 |
-
|
| 2492 |
-
|
| 2493 |
-
|
| 2494 |
-
|
| 2495 |
-
|
| 2496 |
-
|
| 2497 |
-
|
| 2498 |
-
|
| 2499 |
-
|
| 2500 |
-
|
| 2501 |
-
|
| 2502 |
-
|
| 2503 |
-
|
| 2504 |
-
|
| 2505 |
-
|
| 2506 |
-
|
| 2507 |
-
|
| 2508 |
-
|
| 2509 |
-
|
| 2510 |
-
)
|
| 2511 |
-
|
| 2512 |
-
|
| 2513 |
-
|
| 2514 |
-
|
| 2515 |
-
|
| 2516 |
-
|
| 2517 |
-
|
| 2518 |
-
|
| 2519 |
-
|
| 2520 |
-
|
| 2521 |
-
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 2522 |
}
|
| 2523 |
}
|
| 2524 |
-
$images = '';
|
| 2525 |
-
for ( $i = 0; $i < $param['w_star_amount']; $i++ ) {
|
| 2526 |
-
$images .= '<img id="wdform_' . $id1 . '_star_' . $i . '_' . $form_id . '" src="' . WDFM()->plugin_url . '/images/star.png" />';
|
| 2527 |
-
}
|
| 2528 |
-
|
| 2529 |
-
$param['id'] = '';
|
| 2530 |
-
$param['w_class'] .= ' wd-flex-row';
|
| 2531 |
-
|
| 2532 |
-
$html = '<div id="wdform_' . $id1 . '_element' . $form_id . '" ' . $param['attributes'] . '>';
|
| 2533 |
-
for ( $i = 0; $i < $param['w_star_amount']; $i++ ) {
|
| 2534 |
-
$html .= '<img id="wdform_' . $id1 . '_star_' . $i . '_' . $form_id . '" src="' . WDFM()->plugin_url . '/images/star.png" />';
|
| 2535 |
-
}
|
| 2536 |
-
$html .= '</div>';
|
| 2537 |
-
$html .= '<input type="hidden" value="" id="wdform_' . $id1 . '_selected_star_amount' . $form_id . '" name="wdform_' . $id1 . '_selected_star_amount' . $form_id . '" />';
|
| 2538 |
-
|
| 2539 |
-
// Generate field.
|
| 2540 |
-
$rep = $this->wdform_field($type, $param, $row, $html);
|
| 2541 |
-
|
| 2542 |
-
break;
|
| 2543 |
}
|
| 2544 |
-
|
| 2545 |
-
$
|
| 2546 |
-
'
|
| 2547 |
-
|
| 2548 |
-
|
| 2549 |
-
|
| 2550 |
-
|
| 2551 |
-
|
| 2552 |
-
|
| 2553 |
-
$temp = $params;
|
| 2554 |
-
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
| 2555 |
-
$params_names = array(
|
| 2556 |
-
'w_field_label_size',
|
| 2557 |
-
'w_field_label_pos',
|
| 2558 |
-
'w_hide_label',
|
| 2559 |
-
'w_mini_labels',
|
| 2560 |
-
'w_scale_amount',
|
| 2561 |
-
'w_required',
|
| 2562 |
-
'w_class',
|
| 2563 |
-
);
|
| 2564 |
-
}
|
| 2565 |
-
foreach ( $params_names as $params_name ) {
|
| 2566 |
-
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 2567 |
-
$param[$params_name] = $temp[0];
|
| 2568 |
-
$temp = $temp[1];
|
| 2569 |
-
}
|
| 2570 |
-
if ( $temp ) {
|
| 2571 |
-
$temp = explode('*:*w_attr_name*:*', $temp);
|
| 2572 |
-
$attrs = array_slice($temp, 0, count($temp) - 1);
|
| 2573 |
-
foreach ( $attrs as $attr ) {
|
| 2574 |
-
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 2575 |
}
|
| 2576 |
}
|
| 2577 |
-
|
| 2578 |
-
|
| 2579 |
-
|
| 2580 |
-
|
| 2581 |
-
|
| 2582 |
-
|
| 2583 |
-
$
|
| 2584 |
-
|
| 2585 |
-
|
| 2586 |
-
|
| 2587 |
-
|
| 2588 |
-
|
| 2589 |
-
|
| 2590 |
-
|
| 2591 |
-
|
| 2592 |
-
|
| 2593 |
-
|
| 2594 |
-
|
| 2595 |
-
|
| 2596 |
-
|
| 2597 |
-
$html .= '<span>' . $i . '</span>';
|
| 2598 |
-
$html .= '<div class="radio-div">';
|
| 2599 |
-
$html .= '<input id="wdform_' . $id1 . '_scale_radio' . $form_id . '_' . $i . '" name="wdform_' . $id1 . '_scale_radio' . $form_id . '" value="' . $i . '" type="radio" ' . ($to_check == $i ? 'checked="checked"' : '') . ' />';
|
| 2600 |
-
$html .= '<label for="wdform_' . $id1 . '_scale_radio' . $form_id . '_' . $i . '"><span></span></label>';
|
| 2601 |
-
$html .= '</div>';
|
| 2602 |
-
$html .= '</div>';
|
| 2603 |
}
|
| 2604 |
-
|
| 2605 |
-
|
| 2606 |
-
|
| 2607 |
-
|
| 2608 |
-
|
|
|
|
| 2609 |
|
| 2610 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2611 |
}
|
| 2612 |
-
|
| 2613 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2614 |
|
| 2615 |
-
|
| 2616 |
-
|
| 2617 |
-
|
| 2618 |
-
|
| 2619 |
-
|
| 2620 |
-
|
| 2621 |
-
|
| 2622 |
-
|
| 2623 |
-
|
| 2624 |
-
|
| 2625 |
-
|
| 2626 |
-
|
| 2627 |
-
|
| 2628 |
-
|
| 2629 |
-
'
|
| 2630 |
-
|
| 2631 |
-
|
| 2632 |
-
|
| 2633 |
-
|
| 2634 |
-
|
| 2635 |
-
|
| 2636 |
-
|
| 2637 |
-
|
| 2638 |
-
'w_class',
|
| 2639 |
-
);
|
| 2640 |
-
}
|
| 2641 |
-
foreach ( $params_names as $params_name ) {
|
| 2642 |
-
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 2643 |
-
$param[$params_name] = $temp[0];
|
| 2644 |
-
$temp = $temp[1];
|
| 2645 |
}
|
| 2646 |
-
|
| 2647 |
-
|
| 2648 |
-
|
| 2649 |
-
|
| 2650 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2651 |
}
|
| 2652 |
}
|
| 2653 |
-
|
| 2654 |
-
|
| 2655 |
-
|
| 2656 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2657 |
|
| 2658 |
-
|
| 2659 |
-
|
| 2660 |
-
|
| 2661 |
-
|
| 2662 |
-
|
| 2663 |
-
|
| 2664 |
-
|
| 2665 |
-
|
| 2666 |
-
style="width: ' . $param['w_field_width'] . 'px;"
|
| 2667 |
-
value="' . ($param['w_field_value'] != 'null' ? $param['w_field_value'] : '') . '"
|
| 2668 |
-
' . $param['attributes'] . ' />';
|
| 2669 |
|
| 2670 |
-
|
| 2671 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2672 |
|
| 2673 |
-
|
| 2674 |
-
|
| 2675 |
-
|
| 2676 |
-
|
|
|
|
|
|
|
| 2677 |
|
| 2678 |
-
|
| 2679 |
-
|
| 2680 |
-
'w_field_label_pos',
|
| 2681 |
-
'w_field_width',
|
| 2682 |
-
'w_field_min_value',
|
| 2683 |
-
'w_field_max_value',
|
| 2684 |
-
'w_field_value',
|
| 2685 |
-
'w_required',
|
| 2686 |
-
'w_class',
|
| 2687 |
-
);
|
| 2688 |
-
$temp = $params;
|
| 2689 |
-
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
| 2690 |
-
$params_names = array(
|
| 2691 |
-
'w_field_label_size',
|
| 2692 |
-
'w_field_label_pos',
|
| 2693 |
-
'w_hide_label',
|
| 2694 |
-
'w_field_width',
|
| 2695 |
-
'w_field_min_value',
|
| 2696 |
-
'w_field_max_value',
|
| 2697 |
-
'w_field_value',
|
| 2698 |
-
'w_required',
|
| 2699 |
-
'w_class',
|
| 2700 |
-
);
|
| 2701 |
-
}
|
| 2702 |
-
foreach ( $params_names as $params_name ) {
|
| 2703 |
-
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 2704 |
-
$param[$params_name] = $temp[0];
|
| 2705 |
-
$temp = $temp[1];
|
| 2706 |
-
}
|
| 2707 |
-
if ( $temp ) {
|
| 2708 |
-
$temp = explode('*:*w_attr_name*:*', $temp);
|
| 2709 |
-
$attrs = array_slice($temp, 0, count($temp) - 1);
|
| 2710 |
-
foreach ( $attrs as $attr ) {
|
| 2711 |
-
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 2712 |
-
}
|
| 2713 |
-
}
|
| 2714 |
-
$param['w_field_value'] = (isset($_POST['wdform_' . $id1 . '_slider_value' . $form_id]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . '_slider_value' . $form_id])) : $param['w_field_value']);
|
| 2715 |
|
| 2716 |
-
|
| 2717 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2718 |
|
| 2719 |
-
|
| 2720 |
-
|
| 2721 |
-
|
| 2722 |
-
|
| 2723 |
-
|
| 2724 |
-
|
| 2725 |
-
$html .= '<div class="wd-width-33 fm-align-center">';
|
| 2726 |
-
$html .= '<span id="wdform_' . $id1 . '_element_value' . $form_id . '" class="label">' . $param['w_field_value'] . '</span>';
|
| 2727 |
-
$html .= '</div>';
|
| 2728 |
-
$html .= '<div class="wd-width-33 fm-align-right">';
|
| 2729 |
-
$html .= '<span id="wdform_' . $id1 . '_element_max' . $form_id . '" class="label">' . $param['w_field_max_value'] . '</span>';
|
| 2730 |
-
$html .= '</div>';
|
| 2731 |
-
$html .= '</div>';
|
| 2732 |
|
| 2733 |
-
|
| 2734 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2735 |
|
| 2736 |
-
|
| 2737 |
-
|
| 2738 |
-
|
| 2739 |
-
|
|
|
|
|
|
|
| 2740 |
|
| 2741 |
-
|
| 2742 |
-
|
| 2743 |
-
|
| 2744 |
-
|
| 2745 |
-
|
| 2746 |
-
|
| 2747 |
-
'w_field_value2',
|
| 2748 |
-
'w_mini_labels',
|
| 2749 |
-
'w_required',
|
| 2750 |
-
'w_class',
|
| 2751 |
-
);
|
| 2752 |
-
$temp = $params;
|
| 2753 |
-
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
| 2754 |
-
$params_names = array(
|
| 2755 |
-
'w_field_label_size',
|
| 2756 |
-
'w_field_label_pos',
|
| 2757 |
-
'w_hide_label',
|
| 2758 |
-
'w_field_range_width',
|
| 2759 |
-
'w_field_range_step',
|
| 2760 |
-
'w_field_value1',
|
| 2761 |
-
'w_field_value2',
|
| 2762 |
-
'w_mini_labels',
|
| 2763 |
-
'w_required',
|
| 2764 |
-
'w_class',
|
| 2765 |
-
);
|
| 2766 |
-
}
|
| 2767 |
-
foreach ( $params_names as $params_name ) {
|
| 2768 |
-
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 2769 |
-
$param[$params_name] = $temp[0];
|
| 2770 |
-
$temp = $temp[1];
|
| 2771 |
-
}
|
| 2772 |
-
if ( $temp ) {
|
| 2773 |
-
$temp = explode('*:*w_attr_name*:*', $temp);
|
| 2774 |
-
$attrs = array_slice($temp, 0, count($temp) - 1);
|
| 2775 |
-
foreach ( $attrs as $attr ) {
|
| 2776 |
-
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 2777 |
-
}
|
| 2778 |
-
}
|
| 2779 |
-
$param['w_field_value1'] = (isset($_POST['wdform_' . $id1 . '_element' . $form_id . '0']) ? esc_html(stripslashes($_POST['wdform_' . $id1 . '_element' . $form_id . '0'])) : $param['w_field_value1']);
|
| 2780 |
-
$param['w_field_value2'] = (isset($_POST['wdform_' . $id1 . '_element' . $form_id . '1']) ? esc_html(stripslashes($_POST['wdform_' . $id1 . '_element' . $form_id . '1'])) : $param['w_field_value2']);
|
| 2781 |
-
$w_mini_labels = explode('***', $param['w_mini_labels']);
|
| 2782 |
|
| 2783 |
-
|
| 2784 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2785 |
|
| 2786 |
-
|
| 2787 |
-
|
| 2788 |
-
|
| 2789 |
-
|
| 2790 |
-
|
| 2791 |
-
|
| 2792 |
-
$html .= '<div class="wd-flex wd-flex-column">';
|
| 2793 |
-
$html .= '<input type="text" value="' . ($param['w_field_value2'] != 'null' ? $param['w_field_value2'] : '') . '" name="wdform_' . $id1 . '_element' . $form_id . '1" id="wdform_' . $id1 . '_element' . $form_id . '1" style="width: ' . $param['w_field_range_width'] . 'px;" ' . $param['attributes'] . ' />';
|
| 2794 |
-
$html .= '<label class="mini_label" id="wdform_' . $id1 . '_mini_label_to" for="wdform_' . $id1 . '_element' . $form_id . '1">' . $w_mini_labels[1] . '</label>';
|
| 2795 |
-
$html .= '</div>';
|
| 2796 |
-
$html .= '</div>';
|
| 2797 |
|
| 2798 |
-
|
| 2799 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2800 |
|
| 2801 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2802 |
}
|
| 2803 |
-
|
| 2804 |
-
$
|
| 2805 |
-
|
| 2806 |
-
|
| 2807 |
-
'
|
| 2808 |
-
'w_total',
|
| 2809 |
-
'w_required',
|
| 2810 |
-
'w_class',
|
| 2811 |
-
);
|
| 2812 |
-
$temp = $params;
|
| 2813 |
-
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
| 2814 |
-
$params_names = array(
|
| 2815 |
-
'w_field_label_size',
|
| 2816 |
-
'w_field_label_pos',
|
| 2817 |
-
'w_hide_label',
|
| 2818 |
-
'w_items',
|
| 2819 |
-
'w_total',
|
| 2820 |
-
'w_required',
|
| 2821 |
-
'w_class',
|
| 2822 |
-
);
|
| 2823 |
-
}
|
| 2824 |
-
foreach ( $params_names as $params_name ) {
|
| 2825 |
-
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 2826 |
-
$param[$params_name] = $temp[0];
|
| 2827 |
-
$temp = $temp[1];
|
| 2828 |
-
}
|
| 2829 |
-
if ( $temp ) {
|
| 2830 |
-
$temp = explode('*:*w_attr_name*:*', $temp);
|
| 2831 |
-
$attrs = array_slice($temp, 0, count($temp) - 1);
|
| 2832 |
-
foreach ( $attrs as $attr ) {
|
| 2833 |
-
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 2834 |
-
}
|
| 2835 |
}
|
| 2836 |
-
|
| 2837 |
-
|
| 2838 |
-
$param['id'] = 'wdform_' . $id1 . '_element' . $form_id . '_0';
|
| 2839 |
-
$param['w_class'] .= ' wd-flex-row';
|
| 2840 |
-
|
| 2841 |
-
$html = '<input type="hidden" value="' . $param['w_total'] . '" name="wdform_' . $id1 . '_grading_total' . $form_id . '" id="wdform_' . $id1 . '_grading_total' . $form_id . '" />';
|
| 2842 |
-
$html .= '<div id="wdform_' . $id1 . '_element' . $form_id . '">';
|
| 2843 |
-
for ( $i = 0; $i < count($w_items); $i++ ) {
|
| 2844 |
-
$value = (isset($_POST['wdform_' . $id1 . '_element' . $form_id . '_' . $i]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . '_element' . $form_id . '_' . $i])) : '');
|
| 2845 |
-
$html .= '<div class="wdform_grading">';
|
| 2846 |
-
$html .= '<input type="text" id="wdform_' . $id1 . '_element' . $form_id . '_' . $i . '" name="wdform_' . $id1 . '_element' . $form_id . '_' . $i . '" value="' . $value . '" ' . $param['attributes'] . ' />';
|
| 2847 |
-
$html .= '<label class="wdform-ch-rad-label" for="wdform_' . $id1 . '_element' . $form_id . '_' . $i . '">' . $w_items[$i] . '</label>';
|
| 2848 |
-
$html .= '</div>';
|
| 2849 |
}
|
| 2850 |
-
$html .= '<div
|
| 2851 |
-
$html .=
|
| 2852 |
-
$html .= '<
|
| 2853 |
-
$html .= '/';
|
| 2854 |
-
$html .= '<span id="wdform_' . $id1 . '_total_element' . $form_id . '">' . $param['w_total'] . '</span>';
|
| 2855 |
-
$html .= '<span id="wdform_' . $id1 . '_text_element' . $form_id . '"></span>';
|
| 2856 |
-
$html .= '</div>';
|
| 2857 |
$html .= '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2858 |
|
| 2859 |
-
|
| 2860 |
-
|
| 2861 |
|
| 2862 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2863 |
}
|
| 2864 |
-
|
| 2865 |
-
$
|
| 2866 |
-
|
| 2867 |
-
|
| 2868 |
-
'
|
| 2869 |
-
'w_rows',
|
| 2870 |
-
'w_columns',
|
| 2871 |
-
'w_required',
|
| 2872 |
-
'w_class',
|
| 2873 |
-
'w_textbox_size',
|
| 2874 |
-
);
|
| 2875 |
-
$temp = $params;
|
| 2876 |
-
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
| 2877 |
-
$params_names = array(
|
| 2878 |
-
'w_field_label_size',
|
| 2879 |
-
'w_field_label_pos',
|
| 2880 |
-
'w_hide_label',
|
| 2881 |
-
'w_field_input_type',
|
| 2882 |
-
'w_rows',
|
| 2883 |
-
'w_columns',
|
| 2884 |
-
'w_required',
|
| 2885 |
-
'w_class',
|
| 2886 |
-
'w_textbox_size',
|
| 2887 |
-
);
|
| 2888 |
-
}
|
| 2889 |
-
foreach ( $params_names as $params_name ) {
|
| 2890 |
-
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 2891 |
-
$param[$params_name] = $temp[0];
|
| 2892 |
-
$temp = $temp[1];
|
| 2893 |
-
}
|
| 2894 |
-
if ( $temp ) {
|
| 2895 |
-
$temp = explode('*:*w_attr_name*:*', $temp);
|
| 2896 |
-
$attrs = array_slice($temp, 0, count($temp) - 1);
|
| 2897 |
-
foreach ( $attrs as $attr ) {
|
| 2898 |
-
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 2899 |
-
}
|
| 2900 |
}
|
| 2901 |
-
|
| 2902 |
-
|
| 2903 |
-
$w_columns = explode('***', $param['w_columns']);
|
| 2904 |
-
$column_labels = '';
|
| 2905 |
-
for ( $i = 1; $i < count($w_columns); $i++ ) {
|
| 2906 |
-
$column_labels .= '<div><label class="wdform-ch-rad-label">' . $w_columns[$i] . '</label></div>';
|
| 2907 |
-
}
|
| 2908 |
-
$rows_columns = '';
|
| 2909 |
-
for ( $i = 1; $i < count($w_rows); $i++ ) {
|
| 2910 |
-
$rows_columns .= '<div class="wdform-matrix-row' . ($i % 2) . '" row="' . $i . '"><div class="wdform-matrix-column"><label class="wdform-ch-rad-label" >' . $w_rows[$i] . '</label></div>';
|
| 2911 |
-
for ( $k = 1; $k < count($w_columns); $k++ ) {
|
| 2912 |
-
$rows_columns .= '<div class="wdform-matrix-cell">';
|
| 2913 |
-
if ( $param['w_field_input_type'] == 'radio' ) {
|
| 2914 |
-
$to_check = 0;
|
| 2915 |
-
$post_value = isset($_POST['wdform_' . $id1 . '_input_element' . $form_id . '' . $i]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . '_input_element' . $form_id . '' . $i])) : NULL;
|
| 2916 |
-
if ( isset($post_value) ) {
|
| 2917 |
-
$to_check = $post_value;
|
| 2918 |
-
}
|
| 2919 |
-
$rows_columns .= '<div class="radio-div"><input id="wdform_' . $id1 . '_input_element' . $form_id . '' . $i . '_' . $k . '" type="radio" name="wdform_' . $id1 . '_input_element' . $form_id . '' . $i . '" value="' . $i . '_' . $k . '" ' . ($to_check == $i . '_' . $k ? 'checked="checked"' : '') . '><label for="wdform_' . $id1 . '_input_element' . $form_id . '' . $i . '_' . $k . '"><span></span></label></div>';
|
| 2920 |
-
}
|
| 2921 |
-
else {
|
| 2922 |
-
if ( $param['w_field_input_type'] == 'checkbox' ) {
|
| 2923 |
-
$to_check = 0;
|
| 2924 |
-
$post_value = isset($_POST['wdform_' . $id1 . '_input_element' . $form_id . '' . $i . '_' . $k]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . '_input_element' . $form_id . '' . $i . '_' . $k])) : NULL;
|
| 2925 |
-
if ( isset($post_value) ) {
|
| 2926 |
-
$to_check = $post_value;
|
| 2927 |
-
}
|
| 2928 |
-
$rows_columns .= '<div class="checkbox-div"><input id="wdform_' . $id1 . '_input_element' . $form_id . '' . $i . '_' . $k . '" type="checkbox" name="wdform_' . $id1 . '_input_element' . $form_id . '' . $i . '_' . $k . '" value="1" ' . ($to_check == "1" ? 'checked="checked"' : '') . '><label for="wdform_' . $id1 . '_input_element' . $form_id . '' . $i . '_' . $k . '"><span></span></label></div>';
|
| 2929 |
-
}
|
| 2930 |
-
else {
|
| 2931 |
-
if ( $param['w_field_input_type'] == 'text' ) {
|
| 2932 |
-
$rows_columns .= '<input id="wdform_' . $id1 . '_input_element' . $form_id . '' . $i . '_' . $k . '" type="text" name="wdform_' . $id1 . '_input_element' . $form_id . '' . $i . '_' . $k . '" value="' . (isset($_POST['wdform_' . $id1 . '_input_element' . $form_id . '' . $i . '_' . $k]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . '_input_element' . $form_id . '' . $i . '_' . $k])) : "") . '" style="width:' . $param['w_textbox_size'] . 'px">';
|
| 2933 |
-
}
|
| 2934 |
-
else {
|
| 2935 |
-
if ( $param['w_field_input_type'] == 'select' ) {
|
| 2936 |
-
$rows_columns .= '<select id="wdform_' . $id1 . '_select_yes_no' . $form_id . '' . $i . '_' . $k . '" name="wdform_' . $id1 . '_select_yes_no' . $form_id . '' . $i . '_' . $k . '" ><option value="" ' . (isset($_POST['wdform_' . $id1 . '_select_yes_no' . $form_id . '' . $i . '_' . $k]) && esc_html($_POST['wdform_' . $id1 . '_select_yes_no' . $form_id . '' . $i . '_' . $k]) == "" ? "selected=\"selected\"" : "") . '> </option><option value="yes" ' . (isset($_POST['wdform_' . $id1 . '_select_yes_no' . $form_id . '' . $i . '_' . $k]) && esc_html($_POST['wdform_' . $id1 . '_select_yes_no' . $form_id . '' . $i . '_' . $k]) == "yes" ? "selected=\"selected\"" : "") . '>Yes</option><option value="no" ' . (isset($_POST['wdform_' . $id1 . '_select_yes_no' . $form_id . '' . $i . '_' . $k]) && esc_html($_POST['wdform_' . $id1 . '_select_yes_no' . $form_id . '' . $i . '_' . $k]) == "no" ? "selected=\"selected\"" : "") . '>No</option></select>';
|
| 2937 |
-
}
|
| 2938 |
-
}
|
| 2939 |
-
}
|
| 2940 |
-
}
|
| 2941 |
-
$rows_columns .= '</div>';
|
| 2942 |
-
}
|
| 2943 |
-
$rows_columns .= '</div>';
|
| 2944 |
}
|
| 2945 |
-
|
| 2946 |
-
$param['id'] = '';
|
| 2947 |
-
$param['
|
| 2948 |
-
|
| 2949 |
-
$html = '<div id="wdform_' . $id1 . '_element' . $form_id . '" class="wd-width-100 wdform-matrix-table" ' . $param['attributes'] . '>';
|
| 2950 |
-
$html .= '<div class="wd-table-group">';
|
| 2951 |
-
$html .= '<div class="wdform-matrix-head">';
|
| 2952 |
-
$html .= '<div class="wd-table-cell"></div>';
|
| 2953 |
-
$html .= $column_labels;
|
| 2954 |
-
$html .= '</div>';
|
| 2955 |
-
$html .= $rows_columns;
|
| 2956 |
$html .= '</div>';
|
| 2957 |
-
$html .= '</div>';
|
| 2958 |
-
|
| 2959 |
-
// Generate field.
|
| 2960 |
-
$rep = $this->wdform_field($type, $param, $row, $html);
|
| 2961 |
-
|
| 2962 |
-
break;
|
| 2963 |
-
}
|
| 2964 |
-
case 'type_paypal_total': {
|
| 2965 |
-
$rep = $this->type_paypal_total($params, $row, $id1, $form_id, $param);
|
| 2966 |
-
break;
|
| 2967 |
-
}
|
| 2968 |
-
case 'type_stripe': {
|
| 2969 |
-
/* get stripe add-on form */
|
| 2970 |
-
$stripe_data = apply_filters('fm_addon_stripe_form_init', array('form_view' => $this, 'form' => $row, 'attributes' => $params, 'input_index' => $id1, 'form_id' => $form_id));
|
| 2971 |
-
$rep .= !empty($stripe_data['html']) ? $stripe_data['html'] : '';
|
| 2972 |
-
break;
|
| 2973 |
}
|
| 2974 |
}
|
| 2975 |
-
|
| 2976 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2977 |
}
|
| 2978 |
}
|
| 2979 |
-
$
|
| 2980 |
-
$
|
| 2981 |
-
$
|
| 2982 |
-
if (
|
| 2983 |
-
$
|
|
|
|
| 2984 |
}
|
| 2985 |
-
if ( isset($
|
| 2986 |
-
|
| 2987 |
-
|
| 2988 |
-
|
| 2989 |
-
|
| 2990 |
-
|
| 2991 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2992 |
}
|
| 2993 |
-
|
| 2994 |
-
|
| 2995 |
-
|
| 2996 |
-
|
| 2997 |
-
</div>
|
| 2998 |
-
<div class="fm-header-description">
|
| 2999 |
-
' . $row->header_description . '
|
| 3000 |
-
</div>
|
| 3001 |
-
</div>';
|
| 3002 |
}
|
| 3003 |
-
|
| 3004 |
-
|
| 3005 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3006 |
}
|
| 3007 |
}
|
| 3008 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3009 |
}
|
| 3010 |
}
|
| 3011 |
-
$
|
| 3012 |
-
$form_maker_front_end .= '</form>';
|
| 3013 |
-
$jsversion = $row->jsversion ? $row->jsversion : 1;
|
| 3014 |
-
$wp_upload_dir = wp_upload_dir();
|
| 3015 |
|
| 3016 |
-
|
| 3017 |
-
|
| 3018 |
-
|
|
|
|
| 3019 |
|
| 3020 |
-
|
| 3021 |
-
|
| 3022 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3023 |
|
| 3024 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3025 |
}
|
| 3026 |
|
| 3027 |
/**
|
| 3028 |
-
*
|
| 3029 |
-
*
|
| 3030 |
-
* @return string
|
| 3031 |
*/
|
| 3032 |
-
|
| 3033 |
-
$
|
| 3034 |
-
|
| 3035 |
-
|
| 3036 |
-
|
| 3037 |
-
|
| 3038 |
-
|
| 3039 |
-
|
| 3040 |
-
|
| 3041 |
-
|
| 3042 |
-
|
| 3043 |
-
|
| 3044 |
-
|
| 3045 |
-
|
| 3046 |
-
|
| 3047 |
-
|
| 3048 |
-
|
| 3049 |
-
|
| 3050 |
-
|
| 3051 |
-
|
| 3052 |
-
|
| 3053 |
-
|
| 3054 |
-
|
| 3055 |
-
|
| 3056 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3057 |
}
|
| 3058 |
else {
|
| 3059 |
-
$
|
| 3060 |
-
if (' . $hide_duration . ' == 0) {
|
| 3061 |
-
localStorage.removeItem("hide-"+' . $id . ');
|
| 3062 |
-
}
|
| 3063 |
-
var hide_topbar = localStorage.getItem("hide-"+' . $id . ');
|
| 3064 |
-
if(hide_topbar == null || fm_currentDate.getTime() >= hide_topbar || ' . $show_for_admin . '){
|
| 3065 |
-
jQuery("#fm-topbar' . $id . '").css("visibility", "");
|
| 3066 |
-
jQuery("#fm-topbar' . $id . ' .fm-header-img").addClass("fm-animated ' . ($form->header_image_animation) . '");
|
| 3067 |
-
}';
|
| 3068 |
-
}
|
| 3069 |
-
|
| 3070 |
-
$fm_form .= '<div id="fm-topbar' . $id . '" class="fm-topbar" style="position: ' . $fixed_relative . '; ' . $top_bottom . ': 0px; visibility:hidden;">';
|
| 3071 |
-
$fm_form .= $form_html;
|
| 3072 |
-
$fm_form .= '<div id="fm-action-buttons' . $id . '" class="fm-action-buttons">';
|
| 3073 |
-
if ($closing) {
|
| 3074 |
-
$fm_form .= '<span id="closing-form' . $id . '" class="closing-form dashicons dashicons-no" onclick="fm_hide_form(' . $id . ', ' . $hide_duration . ', function(){
|
| 3075 |
-
jQuery(\'#fm-topbar' . $id . '\').css(\'display\', \'none\');
|
| 3076 |
-
})">
|
| 3077 |
-
</span>';
|
| 3078 |
}
|
| 3079 |
-
$
|
| 3080 |
-
$fm_form .= '</div>';
|
| 3081 |
-
/* one more closing div for closing buttons */
|
| 3082 |
}
|
| 3083 |
-
|
| 3084 |
-
|
| 3085 |
-
|
| 3086 |
-
$left_right = $form->scrollbox_position ? 'right' : 'left';
|
| 3087 |
-
$trigger_point = (int)$form->scrollbox_trigger_point;
|
| 3088 |
-
$closing = $form->scrollbox_closing;
|
| 3089 |
-
$minimize = $form->scrollbox_minimize;
|
| 3090 |
-
$minimize_text = $form->scrollbox_minimize_text;
|
| 3091 |
-
$hide_duration = $form->scrollbox_hide_duration;
|
| 3092 |
-
$hide_mobile_class = wp_is_mobile() ? 'fm_mobile_full' : '';
|
| 3093 |
-
$hide_mobile = wp_is_mobile() && $form->hide_mobile ? FALSE : TRUE;
|
| 3094 |
-
$left_right_class = $form->scrollbox_position ? 'float-right' : 'float-left';
|
| 3095 |
-
if ($display_on_this && $hide_mobile) {
|
| 3096 |
-
if (isset($_SESSION['fm_hide_form_after_submit' . $id]) && $_SESSION['fm_hide_form_after_submit' . $id] == 1) {
|
| 3097 |
-
if ($error == 'success') {
|
| 3098 |
-
if ($message) {
|
| 3099 |
-
$onload_js .= '
|
| 3100 |
-
jQuery("#fm-form' . $id . ', #fm-pages' . $id . '").addClass("fm-hide");
|
| 3101 |
-
fm_hide_form(' . $id . ', ' . $hide_duration . ');
|
| 3102 |
-
jQuery("#fm-scrollbox' . $id . '").removeClass("fm-animated fadeOutDown").addClass("fm-animated fadeInUp");
|
| 3103 |
-
jQuery("#fm-scrollbox' . $id . '").css("visibility", "");
|
| 3104 |
-
jQuery("#minimize-form' . $id . '").css("visibility", "hidden");
|
| 3105 |
-
';
|
| 3106 |
-
}
|
| 3107 |
-
else {
|
| 3108 |
-
$onload_js .= 'fm_hide_form(' . $id . ', ' . $hide_duration . ');';
|
| 3109 |
-
}
|
| 3110 |
-
}
|
| 3111 |
}
|
| 3112 |
else {
|
| 3113 |
-
|
| 3114 |
-
$_SESSION['error_occurred' . $id] = 0;
|
| 3115 |
-
if ($message) {
|
| 3116 |
-
$onload_js .= '
|
| 3117 |
-
jQuery("#fm-scrollbox' . $id . '").removeClass("fm-animated fadeOutDown").addClass("fm-animated fadeInUp");
|
| 3118 |
-
jQuery("#fm-scrollbox' . $id . '").removeClass("fm-animated fadeOutDown").addClass("fm-animated fadeInUp");
|
| 3119 |
-
jQuery("#fm-scrollbox' . $id . '").css("visibility", "");
|
| 3120 |
-
';
|
| 3121 |
-
}
|
| 3122 |
-
}
|
| 3123 |
-
else {
|
| 3124 |
-
$onload_js .= '
|
| 3125 |
-
if(' . $hide_duration . ' == 0){
|
| 3126 |
-
localStorage.removeItem("hide-"+' . $id . ');
|
| 3127 |
-
}
|
| 3128 |
-
var hide_scrollbox = localStorage.getItem("hide-"+' . $id . ');';
|
| 3129 |
-
if ($trigger_point > 0) {
|
| 3130 |
-
$onload_js .= '
|
| 3131 |
-
if(hide_scrollbox == null || fm_currentDate.getTime() >= hide_scrollbox || ' . $show_for_admin . '){
|
| 3132 |
-
jQuery(window).scroll(function () {
|
| 3133 |
-
fmscrollHandler(' . $id . ');
|
| 3134 |
-
});
|
| 3135 |
-
}';
|
| 3136 |
-
}
|
| 3137 |
-
else {
|
| 3138 |
-
$onload_js .= '
|
| 3139 |
-
if(hide_scrollbox == null || fm_currentDate.getTime() >= hide_scrollbox || ' . $show_for_admin . '){
|
| 3140 |
-
fmscrollHandler(' . $id . ');
|
| 3141 |
-
}';
|
| 3142 |
-
}
|
| 3143 |
-
}
|
| 3144 |
-
}
|
| 3145 |
-
if ($minimize) {
|
| 3146 |
-
$fm_form .= '<div id="fm-minimize-text' . $id . '" class="fm-minimize-text ' . $hide_mobile_class . '" onclick="fm_show_scrollbox(' . $id . ');" style="' . $left_right . ': 0px; display:none;">
|
| 3147 |
-
<div>' . $minimize_text . '</div>
|
| 3148 |
-
</div>';
|
| 3149 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3150 |
|
| 3151 |
-
|
| 3152 |
-
|
| 3153 |
-
|
| 3154 |
-
|
| 3155 |
-
|
| 3156 |
-
|
| 3157 |
-
|
| 3158 |
-
|
| 3159 |
-
|
| 3160 |
-
|
| 3161 |
-
|
| 3162 |
-
|
| 3163 |
-
|
| 3164 |
-
|
| 3165 |
-
|
| 3166 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3167 |
}
|
| 3168 |
-
|
| 3169 |
-
$
|
| 3170 |
-
$
|
| 3171 |
-
|
| 3172 |
-
|
| 3173 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3174 |
|
| 3175 |
-
|
| 3176 |
-
|
| 3177 |
-
|
| 3178 |
-
|
| 3179 |
-
$onload_js .= '
|
| 3180 |
-
jQuery("#fm-form' . $id . '").addClass("fm-hide");
|
| 3181 |
-
jQuery("#fm-pages' . $id . '").addClass("fm-hide");
|
| 3182 |
-
jQuery("#fm-popover-background' . $id . '").css("display", "block");
|
| 3183 |
-
jQuery("#fm-popover' . $id . '").css("visibility", "");
|
| 3184 |
|
| 3185 |
-
|
| 3186 |
-
|
| 3187 |
-
|
| 3188 |
-
|
| 3189 |
-
|
| 3190 |
-
|
| 3191 |
-
|
| 3192 |
-
|
| 3193 |
-
|
| 3194 |
-
|
| 3195 |
-
|
| 3196 |
-
|
| 3197 |
-
|
| 3198 |
-
|
| 3199 |
-
|
| 3200 |
-
|
| 3201 |
-
|
| 3202 |
-
|
| 3203 |
-
|
| 3204 |
-
|
| 3205 |
-
|
| 3206 |
-
|
| 3207 |
-
|
| 3208 |
-
|
| 3209 |
-
|
| 3210 |
-
|
| 3211 |
-
|
| 3212 |
-
|
| 3213 |
-
|
| 3214 |
-
|
| 3215 |
-
|
| 3216 |
-
|
| 3217 |
-
|
| 3218 |
-
|
| 3219 |
-
|
| 3220 |
-
|
| 3221 |
-
|
| 3222 |
-
|
| 3223 |
-
}';
|
| 3224 |
-
}
|
| 3225 |
-
}
|
| 3226 |
|
| 3227 |
-
|
| 3228 |
-
|
| 3229 |
-
fm_hide_form(' . $id . ', ' . $frequency . ', function(){
|
| 3230 |
-
jQuery("#fm-popover-background' . $id . '").css("display", "none");
|
| 3231 |
-
jQuery("#fm-popover' . $id . '").css("display", "none");
|
| 3232 |
-
});
|
| 3233 |
-
});
|
| 3234 |
-
';
|
| 3235 |
|
| 3236 |
-
|
| 3237 |
-
<div id="fm-popover' . $id . '" class="fm-popover ' . $hide_mobile_class . '" style="visibility:hidden;">
|
| 3238 |
-
<div class="fm-popover-container" id="fm-popover-container' . $id . '">
|
| 3239 |
-
<div class="fm-popover-inner-background" id="fm-popover-inner-background' . $id . '"></div>
|
| 3240 |
-
<div class="fm-popover-content">';
|
| 3241 |
-
$fm_form .= $form_html;
|
| 3242 |
-
$fm_form .= '<div id="fm-action-buttons' . $id . '" class="fm-action-buttons">';
|
| 3243 |
-
$fm_form .= '<span id="closing-form' . $id . '" class="closing-form dashicons dashicons-no" onclick="fm_hide_form(' . $id . ', ' . $frequency . ', function(){
|
| 3244 |
-
jQuery(\'#fm-popover-background' . $id . '\').css(\'display\', \'none\');
|
| 3245 |
-
jQuery(\'#fm-popover' . $id . '\').css(\'display\', \'none\');
|
| 3246 |
-
});"></span>
|
| 3247 |
-
</div>
|
| 3248 |
-
</div>
|
| 3249 |
-
</div>';
|
| 3250 |
|
| 3251 |
-
|
| 3252 |
-
|
| 3253 |
-
|
|
|
|
| 3254 |
}
|
|
|
|
|
|
|
| 3255 |
}
|
| 3256 |
-
|
| 3257 |
|
| 3258 |
-
|
|
|
|
|
|
|
| 3259 |
}
|
| 3260 |
|
| 3261 |
-
|
| 3262 |
-
|
| 3263 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3264 |
|
| 3265 |
-
|
| 3266 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3267 |
}
|
| 3268 |
-
|
| 3269 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3270 |
}
|
| 3271 |
-
|
| 3272 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3273 |
}
|
| 3274 |
-
|
| 3275 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3276 |
}
|
| 3277 |
-
|
| 3278 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3279 |
}
|
| 3280 |
-
|
| 3281 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3282 |
}
|
| 3283 |
-
|
| 3284 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3285 |
}
|
| 3286 |
|
| 3287 |
/**
|
| 235 |
$symbol_end = array();
|
| 236 |
|
| 237 |
// Get Add-on Calculator data.
|
| 238 |
+
$calculator_data = array();
|
| 239 |
+
if (WDFM()->is_free != 2) {
|
| 240 |
+
$calculator_data = apply_filters('fm_calculator_get_data_init', $calculator_data, $form_id);
|
| 241 |
+
}
|
| 242 |
if ( !empty($calculator_data) ) {
|
| 243 |
$symbol_end = json_decode($calculator_data->symbol_end, TRUE);
|
| 244 |
$symbol_begin = json_decode($calculator_data->symbol_begin, TRUE);
|
| 1093 |
break;
|
| 1094 |
}
|
| 1095 |
case 'type_checkbox': {
|
| 1096 |
+
$rep = $this->type_checkbox($params, $row, $form_id, $id1, $type, $param);
|
| 1097 |
+
break;
|
| 1098 |
+
}
|
| 1099 |
+
case 'type_radio': {
|
| 1100 |
+
$rep = $this->type_radio($params, $row, $form_id, $id1, $type, $param);
|
| 1101 |
+
break;
|
| 1102 |
+
}
|
| 1103 |
+
case 'type_own_select': {
|
| 1104 |
+
$rep = $this->type_own_select($params, $row, $form_id, $id1, $type, $param);
|
| 1105 |
+
break;
|
| 1106 |
+
}
|
| 1107 |
+
case 'type_country': {
|
| 1108 |
+
$rep = $this->type_country($params, $row, $form_id, $id1, $type, $param);
|
| 1109 |
+
break;
|
| 1110 |
+
}
|
| 1111 |
+
case 'type_time': {
|
| 1112 |
+
$rep = $this->type_time($params, $row, $form_id, $id1, $type, $param);
|
| 1113 |
+
break;
|
| 1114 |
+
}
|
| 1115 |
+
case 'type_date': { //Todo: Depricated.
|
| 1116 |
+
wp_enqueue_script('jquery-ui-datepicker');
|
| 1117 |
+
wp_add_inline_script('jquery-ui-datepicker', WDW_FM_Library::localize_ui_datepicker());
|
| 1118 |
+
|
| 1119 |
$params_names = array(
|
| 1120 |
'w_field_label_size',
|
| 1121 |
'w_field_label_pos',
|
| 1122 |
+
'w_date',
|
|
|
|
|
|
|
|
|
|
| 1123 |
'w_required',
|
|
|
|
|
|
|
|
|
|
| 1124 |
'w_class',
|
| 1125 |
+
'w_format',
|
| 1126 |
+
'w_but_val',
|
| 1127 |
);
|
| 1128 |
$temp = $params;
|
| 1129 |
+
if ( strpos($temp, 'w_disable_past_days') > -1 ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1130 |
$params_names = array(
|
| 1131 |
'w_field_label_size',
|
| 1132 |
'w_field_label_pos',
|
| 1133 |
+
'w_date',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1134 |
'w_required',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1135 |
'w_class',
|
| 1136 |
+
'w_format',
|
| 1137 |
+
'w_but_val',
|
| 1138 |
+
'w_disable_past_days',
|
| 1139 |
);
|
| 1140 |
}
|
| 1141 |
foreach ( $params_names as $params_name ) {
|
| 1150 |
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 1151 |
}
|
| 1152 |
}
|
| 1153 |
+
$param['w_disable_past_days'] = isset($param['w_disable_past_days']) ? $param['w_disable_past_days'] : 'no';
|
| 1154 |
+
$param['w_date'] = (isset($_POST['wdform_' . $id1 . "_element" . $form_id]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . "_element" . $form_id])) : $param['w_date']);
|
| 1155 |
+
|
| 1156 |
+
$rep = '<div type="type_date" class="wdform-field">';
|
| 1157 |
+
|
| 1158 |
+
$rep .= $this->field_label($param, $row, $id1);
|
| 1159 |
+
|
| 1160 |
+
$classes = array('wdform-element-section');
|
| 1161 |
+
if ( isset($param['w_class']) ) {
|
| 1162 |
+
$classes[] = $param['w_class'];
|
| 1163 |
}
|
| 1164 |
+
if ( isset($param['w_field_label_pos']) && $param['w_field_label_pos'] != "left" ) {
|
| 1165 |
+
$classes[] = 'wd-block';
|
| 1166 |
}
|
| 1167 |
|
| 1168 |
+
$rep .= '<div class="' . implode(' ', $classes) . '">
|
| 1169 |
+
<input type="text" value="' . $param['w_date'] . '" class="wdform-date wd-datepicker" data-format="' . $param['w_format'] . '" id="wdform_' . $id1 . '_element' . $form_id . '" name="wdform_' . $id1 . '_element' . $form_id . '" maxlength="10" ' . $param['attributes'] . ' /></div></div>';
|
| 1170 |
+
break;
|
| 1171 |
+
}
|
| 1172 |
+
case 'type_date_new': {
|
| 1173 |
+
$rep = $this->type_date_new($params, $row, $form_id, $id1, $type, $param);
|
| 1174 |
+
break;
|
| 1175 |
+
}
|
| 1176 |
+
case 'type_date_range': {
|
| 1177 |
+
$rep = $this->type_date_range($params, $row, $form_id, $id1, $type, $param);
|
| 1178 |
+
break;
|
| 1179 |
+
}
|
| 1180 |
+
case 'type_date_fields': {
|
| 1181 |
+
$rep = $this->type_date_fields($params, $row, $form_id, $id1, $type, $param);
|
| 1182 |
+
break;
|
| 1183 |
+
}
|
| 1184 |
+
case 'type_file_upload': {
|
| 1185 |
+
$rep = $this->type_file_upload($params, $row, $id1, $form_id, $param);
|
| 1186 |
+
break;
|
| 1187 |
+
}
|
| 1188 |
+
case 'type_captcha': {
|
| 1189 |
+
$params_names = array( 'w_field_label_size', 'w_field_label_pos', 'w_digit', 'w_class' );
|
| 1190 |
+
$temp = $params;
|
| 1191 |
+
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
| 1192 |
+
$params_names = array( 'w_field_label_size', 'w_field_label_pos', 'w_hide_label', 'w_digit', 'w_class' );
|
| 1193 |
}
|
| 1194 |
+
foreach ( $params_names as $params_name ) {
|
| 1195 |
+
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 1196 |
+
$param[$params_name] = $temp[0];
|
| 1197 |
+
$temp = $temp[1];
|
| 1198 |
+
}
|
| 1199 |
+
if ( $temp ) {
|
| 1200 |
+
$temp = explode('*:*w_attr_name*:*', $temp);
|
| 1201 |
+
$attrs = array_slice($temp, 0, count($temp) - 1);
|
| 1202 |
+
foreach ( $attrs as $attr ) {
|
| 1203 |
+
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1204 |
}
|
| 1205 |
}
|
| 1206 |
+
|
| 1207 |
+
$param['id'] = 'wd_captcha_input' . $form_id;
|
| 1208 |
+
$param['w_class'] .= ' wd-flex-row wd-align-items-center';
|
| 1209 |
+
|
| 1210 |
+
$html = '<img type="captcha"
|
| 1211 |
+
digit="' . $param['w_digit'] . '"
|
| 1212 |
+
src=" ' . add_query_arg(array('action' => 'formmakerwdcaptcha' . WDFM()->plugin_postfix, 'digit' => $param['w_digit'], 'i' => $form_id), admin_url('admin-ajax.php')) . '"
|
| 1213 |
+
id="wd_captcha' . $form_id . '"
|
| 1214 |
+
class="captcha_img wd-hidden"
|
| 1215 |
+
' . $param['attributes'] . ' />';
|
| 1216 |
+
$html .= '<div class="captcha_refresh" id="_element_refresh' . $form_id . '" ' . $param['attributes'] . '></div>';
|
| 1217 |
+
$html .= '<input type="text"
|
| 1218 |
+
class="captcha_input"
|
| 1219 |
+
id="wd_captcha_input' . $form_id . '"
|
| 1220 |
+
name="captcha_input"
|
| 1221 |
+
style="width: ' . ($param['w_digit'] * 10 + 20) . 'px;"
|
| 1222 |
+
' . $param['attributes'] . ' />';
|
| 1223 |
|
| 1224 |
// Generate field.
|
| 1225 |
$rep = $this->wdform_field($type, $param, $row, $html);
|
| 1226 |
|
| 1227 |
+
if ( isset($_SESSION['message_captcha']) && $_SESSION['message_captcha'] != "" ) {
|
| 1228 |
+
$rep .= '<div class="fm-not-filled message_captcha">' . $_SESSION['message_captcha'] . '</div>';
|
| 1229 |
+
unset($_SESSION['message_captcha']);
|
| 1230 |
+
}
|
| 1231 |
+
|
| 1232 |
break;
|
| 1233 |
}
|
| 1234 |
+
case 'type_arithmetic_captcha': {
|
| 1235 |
$params_names = array(
|
| 1236 |
'w_field_label_size',
|
| 1237 |
'w_field_label_pos',
|
| 1238 |
+
'w_count',
|
| 1239 |
+
'w_operations',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1240 |
'w_class',
|
| 1241 |
+
'w_input_size',
|
| 1242 |
);
|
| 1243 |
$temp = $params;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1244 |
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
| 1245 |
$params_names = array(
|
| 1246 |
'w_field_label_size',
|
| 1247 |
'w_field_label_pos',
|
|
|
|
| 1248 |
'w_hide_label',
|
| 1249 |
+
'w_count',
|
| 1250 |
+
'w_operations',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1251 |
'w_class',
|
| 1252 |
+
'w_input_size',
|
| 1253 |
);
|
| 1254 |
}
|
| 1255 |
foreach ( $params_names as $params_name ) {
|
| 1261 |
$temp = explode('*:*w_attr_name*:*', $temp);
|
| 1262 |
$attrs = array_slice($temp, 0, count($temp) - 1);
|
| 1263 |
foreach ( $attrs as $attr ) {
|
| 1264 |
+
$param['attributes'] = $param['attributes'] . ' add_' . $attr;
|
| 1265 |
}
|
| 1266 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1267 |
|
| 1268 |
+
$param['w_count'] = $param['w_count'] ? $param['w_count'] : 1;
|
| 1269 |
+
$param['w_operations'] = $param['w_operations'] ? $param['w_operations'] : '+, -, *, /';
|
| 1270 |
+
$param['w_input_size'] = $param['w_input_size'] ? $param['w_input_size'] : 60;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1271 |
|
| 1272 |
+
$param['id'] = 'wd_arithmetic_captcha_input' . $form_id;
|
| 1273 |
+
$param['w_class'] .= ' wd-flex-row wd-align-items-center';
|
| 1274 |
+
|
| 1275 |
+
$html = '<img type="captcha"
|
| 1276 |
+
operations_count="' . $param['w_count'] . '"
|
| 1277 |
+
operations="' . $param['w_operations'] . '"
|
| 1278 |
+
src="' . add_query_arg(array('action' => 'formmakerwdmathcaptcha' . WDFM()->plugin_postfix, 'operations_count' => $param['w_count'], 'operations' => urlencode($param['w_operations']), 'i' => $form_id), admin_url('admin-ajax.php')) . '"
|
| 1279 |
+
id="wd_arithmetic_captcha' . $form_id . '"
|
| 1280 |
+
class="arithmetic_captcha_img"
|
| 1281 |
+
' . $param['attributes'] . ' />';
|
| 1282 |
+
$html .= '<div class="captcha_refresh" id="_element_refresh' . $form_id . '" ' . $param['attributes'] . '></div>';
|
| 1283 |
+
$html .= '<input type="text"
|
| 1284 |
+
class="arithmetic_captcha_input"
|
| 1285 |
+
id="wd_arithmetic_captcha_input' . $form_id . '"
|
| 1286 |
+
name="arithmetic_captcha_input"
|
| 1287 |
+
onkeypress="return check_isnum(event)"
|
| 1288 |
+
style="width: ' . $param['w_input_size'] . 'px;"
|
| 1289 |
+
' . $param['attributes'] . ' />';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1290 |
|
| 1291 |
// Generate field.
|
| 1292 |
$rep = $this->wdform_field($type, $param, $row, $html);
|
| 1293 |
|
| 1294 |
+
if ( isset($_SESSION['message_captcha']) && $_SESSION['message_captcha'] != "" ) {
|
| 1295 |
+
$rep .= '<div class="fm-not-filled message_captcha">' . $_SESSION['message_captcha'] . '</div>';
|
| 1296 |
+
unset($_SESSION['message_captcha']);
|
| 1297 |
+
}
|
| 1298 |
+
|
| 1299 |
break;
|
| 1300 |
}
|
| 1301 |
+
case 'type_recaptcha': {
|
| 1302 |
+
$params_names = array( 'w_field_label_size', 'w_field_label_pos', 'w_public', 'w_private', 'w_class' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1303 |
$temp = $params;
|
| 1304 |
+
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
| 1305 |
$params_names = array(
|
| 1306 |
'w_field_label_size',
|
| 1307 |
'w_field_label_pos',
|
| 1308 |
+
'w_hide_label',
|
| 1309 |
+
'w_public',
|
| 1310 |
+
'w_private',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1311 |
'w_class',
|
| 1312 |
);
|
| 1313 |
}
|
| 1314 |
+
if ( strpos($temp, 'w_type') > -1 ) {
|
| 1315 |
$params_names = array(
|
| 1316 |
'w_field_label_size',
|
| 1317 |
'w_field_label_pos',
|
| 1318 |
'w_hide_label',
|
| 1319 |
+
'w_type',
|
| 1320 |
+
'w_position',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1321 |
);
|
| 1322 |
}
|
| 1323 |
foreach ( $params_names as $params_name ) {
|
| 1325 |
$param[$params_name] = $temp[0];
|
| 1326 |
$temp = $temp[1];
|
| 1327 |
}
|
| 1328 |
+
$invisible = isset($param['w_type']) && $param['w_type'] == 'invisible' ? 1 : 0;
|
| 1329 |
+
$badge = isset($param['w_position']) ? $param['w_position'] : 0;
|
| 1330 |
+
$class = '';
|
| 1331 |
+
if ('hidden' == $badge && $invisible) {
|
| 1332 |
+
$badge = 'inline';
|
| 1333 |
+
$class = ' fm-hide';
|
| 1334 |
}
|
| 1335 |
+
if ($invisible) {
|
| 1336 |
+
$param['w_hide_label'] = 'yes';
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1337 |
}
|
| 1338 |
+
$publickey = isset($fm_settings['public_key']) && $fm_settings['public_key'] ? $fm_settings['public_key'] : 'invalid sitekey';
|
| 1339 |
+
if ('invalid sitekey' == $publickey) {
|
| 1340 |
+
$badge = 'inline';
|
| 1341 |
+
$class = '';
|
| 1342 |
}
|
| 1343 |
+
wp_enqueue_script('fm-g-recaptcha');
|
| 1344 |
|
| 1345 |
+
$param['id'] = '';
|
| 1346 |
+
$param['w_class'] = 'wd-flex-row';
|
| 1347 |
|
| 1348 |
+
$html = '<div id="recaptcha' . $form_id . $id1 . '" class="g-recaptcha' . $class . '" data-sitekey="' . $publickey . '" data-form_id="' . $form_id . '"' . ($invisible ? ' data-size="invisible"' : '') . ($badge ? ' data-badge="' . $badge . '"' : '') . '></div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1349 |
|
| 1350 |
// Generate field.
|
| 1351 |
$rep = $this->wdform_field($type, $param, $row, $html);
|
| 1352 |
|
| 1353 |
+
if ( isset($_SESSION['message_captcha']) && $_SESSION['message_captcha'] != "" ) {
|
| 1354 |
+
$rep .= '<div class="fm-not-filled message_captcha">' . $_SESSION['message_captcha'] . '</div>';
|
| 1355 |
+
unset($_SESSION['message_captcha']);
|
| 1356 |
+
}
|
| 1357 |
+
|
| 1358 |
break;
|
| 1359 |
}
|
| 1360 |
+
case 'type_hidden': {
|
| 1361 |
+
$params_names = array( 'w_name', 'w_value' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1362 |
$temp = $params;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1363 |
foreach ( $params_names as $params_name ) {
|
| 1364 |
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 1365 |
$param[$params_name] = $temp[0];
|
| 1372 |
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 1373 |
}
|
| 1374 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1375 |
|
| 1376 |
+
$param['id'] = '';
|
| 1377 |
|
| 1378 |
+
// todo: remove hidden input label
|
| 1379 |
+
// $rep .= '<div class="wdform-label-section" class="wd-table-cell"></div>';
|
| 1380 |
+
$html = '<input type="hidden" value="' . $param['w_value'] . '" id="wdform_' . $id1 . '_element' . $form_id . '" name="' . $param['w_name'] . '" ' . $param['attributes'] . ' />';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1381 |
|
| 1382 |
// Generate field.
|
| 1383 |
+
$rep = $this->wdform_field($type, $param, $row, $html, FALSE);
|
| 1384 |
|
| 1385 |
break;
|
| 1386 |
}
|
| 1387 |
+
case 'type_mark_map': {
|
| 1388 |
+
wp_enqueue_script('google-maps');
|
| 1389 |
+
wp_enqueue_script('fm-gmap_form');
|
| 1390 |
+
|
| 1391 |
$params_names = array(
|
| 1392 |
'w_field_label_size',
|
| 1393 |
'w_field_label_pos',
|
| 1394 |
+
'w_center_x',
|
| 1395 |
+
'w_center_y',
|
| 1396 |
+
'w_long',
|
| 1397 |
+
'w_lat',
|
| 1398 |
+
'w_zoom',
|
| 1399 |
+
'w_width',
|
| 1400 |
+
'w_height',
|
| 1401 |
+
'w_info',
|
| 1402 |
'w_class',
|
| 1403 |
);
|
| 1404 |
$temp = $params;
|
| 1407 |
'w_field_label_size',
|
| 1408 |
'w_field_label_pos',
|
| 1409 |
'w_hide_label',
|
| 1410 |
+
'w_center_x',
|
| 1411 |
+
'w_center_y',
|
| 1412 |
+
'w_long',
|
| 1413 |
+
'w_lat',
|
| 1414 |
+
'w_zoom',
|
| 1415 |
+
'w_width',
|
| 1416 |
+
'w_height',
|
| 1417 |
+
'w_info',
|
| 1418 |
'w_class',
|
| 1419 |
);
|
| 1420 |
}
|
| 1430 |
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 1431 |
}
|
| 1432 |
}
|
|
|
|
| 1433 |
|
| 1434 |
+
$param['id'] = '';
|
| 1435 |
$param['w_class'] .= ' wd-flex-row';
|
| 1436 |
|
| 1437 |
+
$html = '<input type="hidden" id="wdform_' . $id1 . '_long' . $form_id . '" name="wdform_' . $id1 . '_long' . $form_id . '" value="' . $param['w_long'] . '" />';
|
| 1438 |
+
$html .= '<input type="hidden" id="wdform_' . $id1 . '_lat' . $form_id . '" name="wdform_' . $id1 . '_lat' . $form_id . '" value="' . $param['w_lat'] . '" />';
|
| 1439 |
+
$html .= '<div class="wd-width-100" id="wdform_' . $id1 . '_element' . $form_id . '" long0="' . $param['w_long'] . '" lat0="' . $param['w_lat'] . '" zoom="' . $param['w_zoom'] . '" info0="' . str_replace(array("\r\n", "\n", "\r"), '<br />', $param['w_info']) . '" center_x="' . $param['w_center_x'] . '" center_y="' . $param['w_center_y'] . '" style="' . ($param['w_width'] != '' ? 'max-width: ' . $param['w_width'] . 'px; ' : '') . 'height: ' . $param['w_height'] . 'px;" ' . $param['attributes'] . '></div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1440 |
|
| 1441 |
// Generate field.
|
| 1442 |
$rep = $this->wdform_field($type, $param, $row, $html);
|
| 1443 |
|
| 1444 |
break;
|
| 1445 |
}
|
| 1446 |
+
case 'type_map': {
|
| 1447 |
+
$rep = $this->type_map($params, $id1, $row, $param);
|
| 1448 |
+
break;
|
| 1449 |
+
}
|
| 1450 |
+
case 'type_paypal_price': { // Todo: Depricated.
|
| 1451 |
$params_names = array(
|
| 1452 |
'w_field_label_size',
|
| 1453 |
'w_field_label_pos',
|
| 1454 |
+
'w_first_val',
|
| 1455 |
+
'w_title',
|
| 1456 |
+
'w_mini_labels',
|
| 1457 |
+
'w_size',
|
| 1458 |
'w_required',
|
| 1459 |
+
'w_hide_cents',
|
| 1460 |
'w_class',
|
| 1461 |
+
'w_range_min',
|
| 1462 |
+
'w_range_max',
|
| 1463 |
);
|
| 1464 |
$temp = $params;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1465 |
foreach ( $params_names as $params_name ) {
|
| 1466 |
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 1467 |
$param[$params_name] = $temp[0];
|
| 1474 |
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 1475 |
}
|
| 1476 |
}
|
| 1477 |
+
$w_first_val = explode('***', $param['w_first_val']);
|
| 1478 |
+
$param['w_first_val'] = (isset($_POST['wdform_' . $id1 . '_element_dollars' . $form_id]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . '_element_dollars' . $form_id])) : $w_first_val[0]) . '***' . (isset($_POST['wdform_' . $id1 . '_element_cents' . $form_id]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . '_element_cents' . $form_id])) : $w_first_val[1]);
|
| 1479 |
+
$hide_cents = ($param['w_hide_cents'] == "yes" ? "wd-hidden" : "wd-table-cell");
|
| 1480 |
+
$w_first_val = explode('***', $param['w_first_val']);
|
| 1481 |
+
$w_title = explode('***', $param['w_title']);
|
| 1482 |
+
$w_mini_labels = explode('***', $param['w_mini_labels']);
|
| 1483 |
|
| 1484 |
+
$rep = '<div type="type_paypal_price" class="wdform-field">';
|
| 1485 |
|
| 1486 |
+
$rep .= $this->field_label($param, $row, 'wdform_' . $id1 . '_element_dollars' . $form_id);
|
| 1487 |
|
| 1488 |
$classes = array('wdform-element-section');
|
| 1489 |
if ( isset($param['w_class']) ) {
|
| 1493 |
$classes[] = 'wd-block';
|
| 1494 |
}
|
| 1495 |
|
| 1496 |
+
$rep .= '<div class="' . implode(' ', $classes) . '">';
|
| 1497 |
+
|
| 1498 |
+
$rep .= '<input type="hidden" value="' . $param['w_range_min'] . '" name="wdform_' . $id1 . '_range_min' . $form_id . '" id="wdform_' . $id1 . '_range_min' . $form_id . '" />';
|
| 1499 |
+
$rep .= '<input type="hidden" value="' . $param['w_range_max'] . '" name="wdform_' . $id1 . '_range_max' . $form_id . '" id="wdform_' . $id1 . '_range_max' . $form_id . '" />';
|
| 1500 |
+
$rep .= '<div id="wdform_' . $id1 . '_table_price" class="wd-table">';
|
| 1501 |
+
$rep .= '<div id="wdform_' . $id1 . '_tr_price1" class="wd-table-row">';
|
| 1502 |
+
$rep .= '<div id="wdform_' . $id1 . '_td_name_currency" class="wd-table-cell">';
|
| 1503 |
+
$rep .= '<span class="wdform_colon wd-vertical-middle"> ' . $form_currency . ' </span>';
|
| 1504 |
+
$rep .= '</div>';
|
| 1505 |
+
$rep .= '<div id="wdform_' . $id1 . '_td_name_dollars" class="wd-table-cell">';
|
| 1506 |
+
$rep .= '<input type="text" id="wdform_' . $id1 . '_element_dollars' . $form_id . '" name="wdform_' . $id1 . '_element_dollars' . $form_id . '" value="' . $w_first_val[0] . '" title="' . $w_title[0] . '" onkeypress="return check_isnum(event)" style="width: ' . $param['w_size'] . 'px;" ' . $param['attributes'] . ' />';
|
| 1507 |
+
$rep .= '</div>';
|
| 1508 |
+
$rep .= '<div id="wdform_' . $id1 . '_td_name_divider" class="' . $hide_cents . '">';
|
| 1509 |
+
$rep .= '<span class="wdform_colon wd-vertical-middle"> . </span>';
|
| 1510 |
+
$rep .= '</div>';
|
| 1511 |
+
$rep .= '<div id="wdform_' . $id1 . '_td_name_cents" class="' . $hide_cents . '">';
|
| 1512 |
+
$rep .= '<input type="text" class="wd-paypal-cent" id="wdform_' . $id1 . '_element_cents' . $form_id . '" name="wdform_' . $id1 . '_element_cents' . $form_id . '" value="' . $w_first_val[1] . '" title="' . $w_title[1] . '" ' . $param['attributes'] . ' />';
|
| 1513 |
+
$rep .= '</div></div>';
|
| 1514 |
+
$rep .= '<div id="wdform_' . $id1 . '_tr_price2" class="wd-table-row">';
|
| 1515 |
+
$rep .= '<div class="wd-table-cell"><label class="mini_label"></label></div>';
|
| 1516 |
+
$rep .= '<div align="left" class="wd-table-cell"><label class="mini_label">' . $w_mini_labels[0] . '</label></div>';
|
| 1517 |
+
$rep .= '<div id="wdform_' . $id1 . '_td_name_label_divider" class="' . $hide_cents . '"><label class="mini_label"></label></div>';
|
| 1518 |
+
$rep .= '<div align="left" id="wdform_' . $id1 . '_td_name_label_cents" class="' . $hide_cents . '"><label class="mini_label">' . $w_mini_labels[1] . '</label></div>';
|
| 1519 |
+
$rep .= '</div></div></div></div>';
|
| 1520 |
break;
|
| 1521 |
}
|
| 1522 |
+
case 'type_paypal_price_new': {
|
| 1523 |
+
$rep = $this->type_paypal_price_new($params, $row, $id1, $form_id, $param, $form_currency, $symbol_begin, $symbol_end);
|
| 1524 |
+
break;
|
| 1525 |
+
}
|
| 1526 |
+
case 'type_paypal_select': {
|
| 1527 |
+
$rep = $this->type_paypal_select($params, $row, $id1, $form_id, $param);
|
| 1528 |
+
break;
|
| 1529 |
+
}
|
| 1530 |
+
case 'type_paypal_checkbox': {
|
| 1531 |
+
$rep = $this->type_paypal_checkbox($params, $row, $id1, $form_id, $param);
|
| 1532 |
+
break;
|
| 1533 |
+
}
|
| 1534 |
+
case 'type_paypal_radio': {
|
| 1535 |
+
$rep = $this->type_paypal_radio($params, $row, $id1, $form_id, $param);
|
| 1536 |
+
break;
|
| 1537 |
+
}
|
| 1538 |
+
case 'type_paypal_shipping': {
|
| 1539 |
+
$rep = $this->type_paypal_shipping($params, $row, $id1, $form_id, $param);
|
| 1540 |
+
break;
|
| 1541 |
+
}
|
| 1542 |
+
case 'type_submit_reset': {
|
| 1543 |
+
$params_names = array( 'w_submit_title', 'w_reset_title', 'w_class', 'w_act' );
|
|
|
|
| 1544 |
$temp = $params;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1545 |
foreach ( $params_names as $params_name ) {
|
| 1546 |
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 1547 |
$param[$params_name] = $temp[0];
|
| 1554 |
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 1555 |
}
|
| 1556 |
}
|
| 1557 |
+
$param['w_act'] = ($param['w_act'] == "false" ? 'wd-hidden' : "");
|
| 1558 |
|
| 1559 |
$param['id'] = $id1;
|
| 1560 |
$param['w_class'] .= ' wd-flex-row';
|
| 1561 |
+
if ( isset($form_theme['SPAlign']) && $form_theme['SPAlign'] != '' ) {
|
| 1562 |
+
$param['w_class'] .= ' wd-justify-content-' . $form_theme['SPAlign'];
|
| 1563 |
+
}
|
| 1564 |
|
| 1565 |
+
$html = '<button type="button" class="button-submit" onclick="fm_submit_form(\'' . $form_id . '\');" ' . $param['attributes'] . '>' . $param['w_submit_title'] . '</button>';
|
| 1566 |
+
$html .= '<button type="button" class="button-reset ' . $param['w_act'] . '" onclick="fm_reset_form(' . $form_id . ');" ' . $param['attributes'] . '>' . $param['w_reset_title'] . '</button>';
|
|
|
|
| 1567 |
|
| 1568 |
// Generate field.
|
| 1569 |
+
$rep = $this->wdform_field($type, $param, $row, $html, FALSE);
|
| 1570 |
|
| 1571 |
break;
|
| 1572 |
}
|
| 1573 |
+
case 'type_button': {
|
| 1574 |
+
$params_names = array( 'w_title', 'w_func', 'w_class' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1575 |
$temp = $params;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1576 |
foreach ( $params_names as $params_name ) {
|
| 1577 |
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 1578 |
$param[$params_name] = $temp[0];
|
| 1585 |
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 1586 |
}
|
| 1587 |
}
|
| 1588 |
+
$param['w_title'] = explode('***', $param['w_title']);
|
| 1589 |
+
$param['w_func'] = explode('***', $param['w_func']);
|
| 1590 |
|
| 1591 |
+
$param['id'] = '';
|
| 1592 |
$param['w_class'] .= ' wd-flex-row';
|
| 1593 |
|
| 1594 |
+
// Todo: Delete field label.
|
| 1595 |
+
// $rep .= '<div class="wdform-label-section wd-table-cell">';
|
| 1596 |
+
// $rep .= '<span class="wd-hidden">button_' . $id1 . '</span>';
|
| 1597 |
+
// $rep .= '</div>';
|
| 1598 |
+
$html = '';
|
| 1599 |
+
foreach ( $param['w_title'] as $key => $title ) {
|
| 1600 |
+
$html .= '<button type="button" name="wdform_' . $id1 . '_element' . $form_id . $key . '" onclick="' . $param['w_func'][$key] . '" ' . $param['attributes'] . '>' . $title . '</button>';
|
| 1601 |
+
}
|
|
|
|
| 1602 |
|
| 1603 |
// Generate field.
|
| 1604 |
+
$rep = $this->wdform_field($type, $param, $row, $html, FALSE);
|
| 1605 |
|
| 1606 |
break;
|
| 1607 |
}
|
| 1608 |
+
case 'type_star_rating': {
|
| 1609 |
+
$rep = $this->type_star_rating($params, $row, $form_id, $id1, $type, $param);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1610 |
break;
|
| 1611 |
}
|
| 1612 |
+
case 'type_scale_rating': {
|
| 1613 |
+
$rep = $this->type_scale_rating($params, $row, $form_id, $id1, $type, $param);
|
| 1614 |
break;
|
| 1615 |
}
|
| 1616 |
+
case 'type_spinner': {
|
| 1617 |
+
$rep = $this->type_spinner($params, $row, $form_id, $id1, $type, $param);
|
| 1618 |
break;
|
| 1619 |
}
|
| 1620 |
+
case 'type_slider': {
|
| 1621 |
+
$rep = $this->type_slider($params, $row, $form_id, $id1, $type, $param);
|
| 1622 |
break;
|
| 1623 |
}
|
| 1624 |
+
case 'type_range': {
|
| 1625 |
+
$rep = $this->type_range($params, $row, $form_id, $id1, $type, $param);
|
| 1626 |
break;
|
| 1627 |
}
|
| 1628 |
+
case 'type_grading': {
|
| 1629 |
+
$rep = $this->type_grading($params, $row, $form_id, $id1, $type, $param);
|
| 1630 |
break;
|
| 1631 |
}
|
| 1632 |
+
case 'type_matrix': {
|
| 1633 |
+
$rep = $this->type_matrix($params, $row, $form_id, $id1, $type, $param);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1634 |
break;
|
| 1635 |
}
|
| 1636 |
+
case 'type_paypal_total': {
|
| 1637 |
+
$rep = $this->type_paypal_total($params, $row, $id1, $form_id, $param);
|
| 1638 |
+
break;
|
| 1639 |
+
}
|
| 1640 |
+
case 'type_stripe': {
|
| 1641 |
+
/* get stripe add-on form */
|
| 1642 |
+
$stripe_data = array('form_view' => $this, 'form' => $row, 'attributes' => $params, 'input_index' => $id1, 'form_id' => $form_id, 'html' => '');
|
| 1643 |
+
if (WDFM()->is_free != 2) {
|
| 1644 |
+
$stripe_data = apply_filters('fm_addon_stripe_form_init', $stripe_data);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1645 |
}
|
| 1646 |
+
$rep .= !empty($stripe_data['html']) ? $stripe_data['html'] : '';
|
| 1647 |
+
break;
|
| 1648 |
+
}
|
| 1649 |
+
}
|
| 1650 |
+
$form = str_replace('%' . $id1 . ' - ' . $labels[$id1s_key] . '%', $rep, $form);
|
| 1651 |
+
$form = str_replace('%' . $id1 . ' -' . $labels[$id1s_key] . '%', $rep, $form);
|
| 1652 |
+
}
|
| 1653 |
+
}
|
| 1654 |
+
$rep1 = array( 'form_id_temp' );
|
| 1655 |
+
$rep2 = array( $form_id );
|
| 1656 |
+
$form = str_replace($rep1, $rep2, $form);
|
| 1657 |
+
if ( !$fm_hide_form_after_submit ) {
|
| 1658 |
+
$form_maker_front_end .= $form;
|
| 1659 |
+
}
|
| 1660 |
+
if ( isset($form_theme['HPAlign']) && ($form_theme['HPAlign'] == 'right' || $form_theme['HPAlign'] == 'bottom') ) {
|
| 1661 |
+
if ( $row->header_title || $row->header_description || $row->header_image_url ) {
|
| 1662 |
+
$form_maker_front_end .= '<div class="fm-header-bg"><div class="fm-header ' . $image_pos . '">';
|
| 1663 |
+
if ( $form_theme['HIPAlign'] == 'left' || $form_theme['HIPAlign'] == 'top' ) {
|
| 1664 |
+
if ( $row->header_image_url ) {
|
| 1665 |
+
$form_maker_front_end .= '<div class="fm-header-img ' . $hide_header_image_class . ' fm-animated ' . $header_image_animation . '"><img src="' . $row->header_image_url . '" ' . $image_width . ' ' . $image_height . '/></div>';
|
| 1666 |
+
}
|
| 1667 |
+
}
|
| 1668 |
+
if ( $row->header_title || $row->header_description ) {
|
| 1669 |
+
$form_maker_front_end .= '<div class="fm-header-text">
|
| 1670 |
+
<div class="fm-header-title">
|
| 1671 |
+
' . $row->header_title . '
|
| 1672 |
+
</div>
|
| 1673 |
+
<div class="fm-header-description">
|
| 1674 |
+
' . $row->header_description . '
|
| 1675 |
+
</div>
|
| 1676 |
+
</div>';
|
| 1677 |
+
}
|
| 1678 |
+
if ( $form_theme['HIPAlign'] == 'right' || $form_theme['HIPAlign'] == 'bottom' ) {
|
| 1679 |
+
if ( $row->header_image_url ) {
|
| 1680 |
+
$form_maker_front_end .= '<div class="fm-header-img"><img src="' . $row->header_image_url . '" ' . $image_width . ' ' . $image_height . '/></div>';
|
| 1681 |
+
}
|
| 1682 |
+
}
|
| 1683 |
+
$form_maker_front_end .= '</div></div>';
|
| 1684 |
+
}
|
| 1685 |
+
}
|
| 1686 |
+
$form_maker_front_end .= '<div class="wdform_preload"></div>';
|
| 1687 |
+
$form_maker_front_end .= '</form>';
|
| 1688 |
+
$jsversion = $row->jsversion ? $row->jsversion : 1;
|
| 1689 |
+
$wp_upload_dir = wp_upload_dir();
|
| 1690 |
|
| 1691 |
+
WDW_FM_Library::create_js($form_id);
|
| 1692 |
+
wp_register_script('fm-script-' . $form_id, $wp_upload_dir['baseurl'] . '/form-maker-frontend/js/fm-script-' . $form_id . '.js', array(), $jsversion);
|
| 1693 |
+
wp_enqueue_script('fm-script-' . $form_id);
|
| 1694 |
|
| 1695 |
+
$_GET['addon_view'] = 'frontend';
|
| 1696 |
+
$_GET['form_id'] = $form_id;
|
| 1697 |
+
if (WDFM()->is_free != 2) {
|
| 1698 |
+
do_action('WD_FM_SAVE_PROG_init');
|
| 1699 |
+
}
|
| 1700 |
+
return $formType == 'embedded' ? WDW_FM_Library::fm_container($theme_id, $form_maker_front_end) : $form_maker_front_end;
|
| 1701 |
+
}
|
|
|
|
| 1702 |
|
| 1703 |
+
/**
|
| 1704 |
+
* Autoload form.
|
| 1705 |
+
*
|
| 1706 |
+
* @return string
|
| 1707 |
+
*/
|
| 1708 |
+
public function autoload_form($id, $form, $type, $form_html, $display_on_this, $message, $error, $show_for_admin) {
|
| 1709 |
+
$onload_js = '';
|
| 1710 |
+
$fm_form = '';
|
| 1711 |
+
switch ($type) {
|
| 1712 |
+
case 'topbar': {
|
| 1713 |
+
$top_bottom = $form->topbar_position ? 'top' : 'bottom';
|
| 1714 |
+
$fixed_relative = !$form->topbar_remain_top && $form->topbar_position ? 'absolute' : 'fixed';
|
| 1715 |
+
$closing = $form->topbar_closing;
|
| 1716 |
+
$hide_duration = $form->topbar_hide_duration;
|
| 1717 |
+
$hide_mobile = wp_is_mobile() && $form->hide_mobile ? FALSE : TRUE;
|
| 1718 |
+
if ($display_on_this && $hide_mobile) {
|
| 1719 |
+
if (isset($_SESSION['fm_hide_form_after_submit' . $id]) && $_SESSION['fm_hide_form_after_submit' . $id] == 1) {
|
| 1720 |
+
if ($error == 'success') {
|
| 1721 |
+
if ($message) {
|
| 1722 |
+
$onload_js .= '
|
| 1723 |
+
jQuery("#fm-form' . $id . '").css("display", "none");
|
| 1724 |
+
jQuery("#fm-pages' . $id . '").css("display", "none");
|
| 1725 |
+
jQuery("#fm-topbar' . $id . '").css("visibility", "");
|
| 1726 |
+
fm_hide_form(' . $id . ', ' . $hide_duration . ');';
|
| 1727 |
+
}
|
| 1728 |
+
else {
|
| 1729 |
+
$onload_js .= '
|
| 1730 |
+
fm_hide_form(' . $id . ', ' . $hide_duration . ');';
|
| 1731 |
+
}
|
| 1732 |
+
}
|
| 1733 |
+
}
|
| 1734 |
+
else {
|
| 1735 |
+
$onload_js .= '
|
| 1736 |
+
if (' . $hide_duration . ' == 0) {
|
| 1737 |
+
localStorage.removeItem("hide-"+' . $id . ');
|
| 1738 |
+
}
|
| 1739 |
+
var hide_topbar = localStorage.getItem("hide-"+' . $id . ');
|
| 1740 |
+
if(hide_topbar == null || fm_currentDate.getTime() >= hide_topbar || ' . $show_for_admin . '){
|
| 1741 |
+
jQuery("#fm-topbar' . $id . '").css("visibility", "");
|
| 1742 |
+
jQuery("#fm-topbar' . $id . ' .fm-header-img").addClass("fm-animated ' . ($form->header_image_animation) . '");
|
| 1743 |
+
}';
|
| 1744 |
+
}
|
| 1745 |
|
| 1746 |
+
$fm_form .= '<div id="fm-topbar' . $id . '" class="fm-topbar" style="position: ' . $fixed_relative . '; ' . $top_bottom . ': 0px; visibility:hidden;">';
|
| 1747 |
+
$fm_form .= $form_html;
|
| 1748 |
+
$fm_form .= '<div id="fm-action-buttons' . $id . '" class="fm-action-buttons">';
|
| 1749 |
+
if ($closing) {
|
| 1750 |
+
$fm_form .= '<span id="closing-form' . $id . '" class="closing-form dashicons dashicons-no" onclick="fm_hide_form(' . $id . ', ' . $hide_duration . ', function(){
|
| 1751 |
+
jQuery(\'#fm-topbar' . $id . '\').css(\'display\', \'none\');
|
| 1752 |
+
})">
|
| 1753 |
+
</span>';
|
| 1754 |
}
|
| 1755 |
+
$fm_form .= '</div>';
|
| 1756 |
+
$fm_form .= '</div>';
|
| 1757 |
+
/* one more closing div for closing buttons */
|
| 1758 |
+
}
|
| 1759 |
+
break;
|
| 1760 |
+
}
|
| 1761 |
+
case 'scrollbox': {
|
| 1762 |
+
$left_right = $form->scrollbox_position ? 'right' : 'left';
|
| 1763 |
+
$trigger_point = (int)$form->scrollbox_trigger_point;
|
| 1764 |
+
$closing = $form->scrollbox_closing;
|
| 1765 |
+
$minimize = $form->scrollbox_minimize;
|
| 1766 |
+
$minimize_text = $form->scrollbox_minimize_text;
|
| 1767 |
+
$hide_duration = $form->scrollbox_hide_duration;
|
| 1768 |
+
$hide_mobile_class = wp_is_mobile() ? 'fm_mobile_full' : '';
|
| 1769 |
+
$hide_mobile = wp_is_mobile() && $form->hide_mobile ? FALSE : TRUE;
|
| 1770 |
+
$left_right_class = $form->scrollbox_position ? 'float-right' : 'float-left';
|
| 1771 |
+
if ($display_on_this && $hide_mobile) {
|
| 1772 |
+
if (isset($_SESSION['fm_hide_form_after_submit' . $id]) && $_SESSION['fm_hide_form_after_submit' . $id] == 1) {
|
| 1773 |
+
if ($error == 'success') {
|
| 1774 |
+
if ($message) {
|
| 1775 |
+
$onload_js .= '
|
| 1776 |
+
jQuery("#fm-form' . $id . ', #fm-pages' . $id . '").addClass("fm-hide");
|
| 1777 |
+
fm_hide_form(' . $id . ', ' . $hide_duration . ');
|
| 1778 |
+
jQuery("#fm-scrollbox' . $id . '").removeClass("fm-animated fadeOutDown").addClass("fm-animated fadeInUp");
|
| 1779 |
+
jQuery("#fm-scrollbox' . $id . '").css("visibility", "");
|
| 1780 |
+
jQuery("#minimize-form' . $id . '").css("visibility", "hidden");
|
| 1781 |
+
';
|
| 1782 |
+
}
|
| 1783 |
+
else {
|
| 1784 |
+
$onload_js .= 'fm_hide_form(' . $id . ', ' . $hide_duration . ');';
|
|
|
|
| 1785 |
}
|
| 1786 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1787 |
}
|
| 1788 |
+
else {
|
| 1789 |
+
if (isset($_SESSION['error_occurred' . $id]) && $_SESSION['error_occurred' . $id] == 1) {
|
| 1790 |
+
$_SESSION['error_occurred' . $id] = 0;
|
| 1791 |
+
if ($message) {
|
| 1792 |
+
$onload_js .= '
|
| 1793 |
+
jQuery("#fm-scrollbox' . $id . '").removeClass("fm-animated fadeOutDown").addClass("fm-animated fadeInUp");
|
| 1794 |
+
jQuery("#fm-scrollbox' . $id . '").removeClass("fm-animated fadeOutDown").addClass("fm-animated fadeInUp");
|
| 1795 |
+
jQuery("#fm-scrollbox' . $id . '").css("visibility", "");
|
| 1796 |
+
';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1797 |
}
|
| 1798 |
}
|
| 1799 |
+
else {
|
| 1800 |
+
$onload_js .= '
|
| 1801 |
+
if(' . $hide_duration . ' == 0){
|
| 1802 |
+
localStorage.removeItem("hide-"+' . $id . ');
|
| 1803 |
+
}
|
| 1804 |
+
var hide_scrollbox = localStorage.getItem("hide-"+' . $id . ');';
|
| 1805 |
+
if ($trigger_point > 0) {
|
| 1806 |
+
$onload_js .= '
|
| 1807 |
+
if(hide_scrollbox == null || fm_currentDate.getTime() >= hide_scrollbox || ' . $show_for_admin . '){
|
| 1808 |
+
jQuery(window).scroll(function () {
|
| 1809 |
+
fmscrollHandler(' . $id . ');
|
| 1810 |
+
});
|
| 1811 |
+
}';
|
| 1812 |
+
}
|
| 1813 |
+
else {
|
| 1814 |
+
$onload_js .= '
|
| 1815 |
+
if(hide_scrollbox == null || fm_currentDate.getTime() >= hide_scrollbox || ' . $show_for_admin . '){
|
| 1816 |
+
fmscrollHandler(' . $id . ');
|
| 1817 |
+
}';
|
| 1818 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1819 |
}
|
| 1820 |
+
}
|
| 1821 |
+
if ($minimize) {
|
| 1822 |
+
$fm_form .= '<div id="fm-minimize-text' . $id . '" class="fm-minimize-text ' . $hide_mobile_class . '" onclick="fm_show_scrollbox(' . $id . ');" style="' . $left_right . ': 0px; display:none;">
|
| 1823 |
+
<div>' . $minimize_text . '</div>
|
| 1824 |
+
</div>';
|
| 1825 |
+
}
|
| 1826 |
|
| 1827 |
+
$fm_form .= '<div id="fm-scrollbox' . $id . '" class="fm-scrollbox ' . $hide_mobile_class . '" style="' . $left_right . ': 0px; visibility:hidden;">';
|
| 1828 |
+
$fm_form .= '<div class="fm-scrollbox-form ' . $left_right_class . '">';
|
| 1829 |
+
$fm_form .= $form_html;
|
| 1830 |
+
$fm_form .= '<div id="fm-action-buttons' . $id . '" class="fm-action-buttons">';
|
| 1831 |
+
if ($minimize) {
|
| 1832 |
+
$fm_form .= '<span id="minimize-form' . $id . '" class="minimize-form dashicons dashicons-minus" onclick="minimize_form(' . $id . ')"></span>';
|
| 1833 |
}
|
| 1834 |
+
if ($closing) {
|
| 1835 |
+
$fm_form .= '<span id="closing-form' . $id . '" class="closing-form dashicons dashicons-no" onclick="fm_hide_form(' . $id . ', ' . $hide_duration . ', function(){ jQuery(\'#fm-scrollbox' . $id . '\').removeClass(\'fm-show\').addClass(\'fm-hide\'); });"></span>';
|
| 1836 |
+
}
|
| 1837 |
+
$fm_form .= '</div>';
|
| 1838 |
+
$fm_form .= '</div>';
|
| 1839 |
+
$fm_form .= '</div>';
|
| 1840 |
+
/* one more closing div for cloasing buttons */
|
| 1841 |
+
}
|
| 1842 |
+
break;
|
| 1843 |
+
}
|
| 1844 |
+
case 'popover': {
|
| 1845 |
+
$animate_effect = $form->popover_animate_effect;
|
| 1846 |
+
$loading_delay = (int)$form->popover_loading_delay;
|
| 1847 |
+
$frequency = $form->popover_frequency;
|
| 1848 |
+
$hide_mobile = wp_is_mobile() && $form->hide_mobile ? FALSE : TRUE;
|
| 1849 |
+
$hide_mobile_class = wp_is_mobile() ? 'fm_mobile_full' : '';
|
| 1850 |
|
| 1851 |
+
if ($display_on_this && $hide_mobile) {
|
| 1852 |
+
if (isset($_SESSION['fm_hide_form_after_submit' . $id]) && $_SESSION['fm_hide_form_after_submit' . $id] == 1) {
|
| 1853 |
+
if ($error == 'success') {
|
| 1854 |
+
if ($message) {
|
| 1855 |
+
$onload_js .= '
|
| 1856 |
+
jQuery("#fm-form' . $id . '").addClass("fm-hide");
|
| 1857 |
+
jQuery("#fm-pages' . $id . '").addClass("fm-hide");
|
| 1858 |
+
jQuery("#fm-popover-background' . $id . '").css("display", "block");
|
| 1859 |
+
jQuery("#fm-popover' . $id . '").css("visibility", "");
|
| 1860 |
+
|
| 1861 |
+
fm_hide_form(' . $id . ', ' . $frequency . ');
|
| 1862 |
+
';
|
| 1863 |
+
}
|
| 1864 |
+
else {
|
| 1865 |
+
$onload_js .= '
|
| 1866 |
+
jQuery("#fm-form' . $id . '").addClass("fm-hide");
|
| 1867 |
+
jQuery("#fm-pages' . $id . '").addClass("fm-hide");
|
| 1868 |
+
fm_hide_form(' . $id . ', ' . $frequency . ', function(){
|
| 1869 |
+
jQuery("#fm-popover-background' . $id . '").css("display", "none");
|
| 1870 |
+
jQuery("#fm-popover' . $id . '").css("display", "none");
|
| 1871 |
+
});
|
| 1872 |
+
';
|
| 1873 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1874 |
}
|
| 1875 |
+
}
|
| 1876 |
+
else {
|
| 1877 |
+
if (isset($_SESSION['error_occurred' . $id]) && $_SESSION['error_occurred' . $id] == 1) {
|
| 1878 |
+
$_SESSION['error_occurred' . $id] = 0;
|
| 1879 |
+
if ($message) {
|
| 1880 |
+
$onload_js .= '
|
| 1881 |
+
jQuery("#fm-popover-background' . $id . '").css("display", "block");
|
| 1882 |
+
jQuery("#fm-popover' . $id . '").css("visibility", "");
|
| 1883 |
+
';
|
| 1884 |
}
|
| 1885 |
}
|
| 1886 |
+
else {
|
| 1887 |
+
$onload_js .= '
|
| 1888 |
+
if(' . $frequency . ' == 0){
|
| 1889 |
+
localStorage.removeItem("hide-"+' . $id . ');
|
| 1890 |
+
}
|
| 1891 |
+
var hide_popover = localStorage.getItem("hide-"+' . $id . ');
|
| 1892 |
+
if(hide_popover == null || fm_currentDate.getTime() >= hide_popover || ' . $show_for_admin . '){
|
| 1893 |
+
setTimeout(function(){
|
| 1894 |
+
jQuery("#fm-popover-background' . $id . '").css("display", "block");
|
| 1895 |
+
jQuery("#fm-popover' . $id . '").css("visibility", "");
|
| 1896 |
+
jQuery(".fm-popover-content").addClass("fm-animated ' . ($animate_effect) . '");
|
| 1897 |
+
jQuery("#fm-popover' . $id . ' .fm-header-img").addClass("fm-animated ' . ($form->header_image_animation) . '");
|
| 1898 |
+
}, ' . ($loading_delay * 1000) . ');
|
| 1899 |
+
}';
|
| 1900 |
+
}
|
| 1901 |
+
}
|
| 1902 |
|
| 1903 |
+
$onload_js .= '
|
| 1904 |
+
jQuery("#fm-popover-inner-background' . $id . '").on("click", function(){
|
| 1905 |
+
fm_hide_form(' . $id . ', ' . $frequency . ', function(){
|
| 1906 |
+
jQuery("#fm-popover-background' . $id . '").css("display", "none");
|
| 1907 |
+
jQuery("#fm-popover' . $id . '").css("display", "none");
|
| 1908 |
+
});
|
| 1909 |
+
});
|
| 1910 |
+
';
|
|
|
|
|
|
|
|
|
|
| 1911 |
|
| 1912 |
+
$fm_form .= '<div class="fm-popover-background" id="fm-popover-background' . $id . '" style="display:none;"></div>
|
| 1913 |
+
<div id="fm-popover' . $id . '" class="fm-popover ' . $hide_mobile_class . '" style="visibility:hidden;">
|
| 1914 |
+
<div class="fm-popover-container" id="fm-popover-container' . $id . '">
|
| 1915 |
+
<div class="fm-popover-inner-background" id="fm-popover-inner-background' . $id . '"></div>
|
| 1916 |
+
<div class="fm-popover-content">';
|
| 1917 |
+
$fm_form .= $form_html;
|
| 1918 |
+
$fm_form .= '<div id="fm-action-buttons' . $id . '" class="fm-action-buttons">';
|
| 1919 |
+
$fm_form .= '<span id="closing-form' . $id . '" class="closing-form dashicons dashicons-no" onclick="fm_hide_form(' . $id . ', ' . $frequency . ', function(){
|
| 1920 |
+
jQuery(\'#fm-popover-background' . $id . '\').css(\'display\', \'none\');
|
| 1921 |
+
jQuery(\'#fm-popover' . $id . '\').css(\'display\', \'none\');
|
| 1922 |
+
});"></span>
|
| 1923 |
+
</div>
|
| 1924 |
+
</div>
|
| 1925 |
+
</div>';
|
| 1926 |
|
| 1927 |
+
/* one more closing div for cloasing buttons */
|
| 1928 |
+
}
|
| 1929 |
+
break;
|
| 1930 |
+
}
|
| 1931 |
+
}
|
| 1932 |
+
wp_add_inline_script('fm-script-' . $id, $onload_js);
|
| 1933 |
|
| 1934 |
+
return WDW_FM_Library::fm_container($form->theme, $fm_form);
|
| 1935 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1936 |
|
| 1937 |
+
/**
|
| 1938 |
+
* Free 1, 2
|
| 1939 |
+
*/
|
| 1940 |
+
private function type_file_upload($params, $row, $id1, $form_id, $param) {
|
| 1941 |
+
return '';
|
| 1942 |
+
}
|
| 1943 |
|
| 1944 |
+
/**
|
| 1945 |
+
* Free 1, 2
|
| 1946 |
+
*/
|
| 1947 |
+
private function type_paypal_price_new($params, $row, $id1, $form_id, $param, $form_currency, $symbol_begin, $symbol_end) {
|
| 1948 |
+
return '';
|
| 1949 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1950 |
|
| 1951 |
+
/**
|
| 1952 |
+
* Free 1, 2
|
| 1953 |
+
*/
|
| 1954 |
+
private function type_paypal_select($params, $row, $id1, $form_id, $param) {
|
| 1955 |
+
return '';
|
| 1956 |
+
}
|
| 1957 |
|
| 1958 |
+
/**
|
| 1959 |
+
* Free 1, 2
|
| 1960 |
+
*/
|
| 1961 |
+
private function type_paypal_radio($params, $row, $id1, $form_id, $param) {
|
| 1962 |
+
return '';
|
| 1963 |
+
}
|
| 1964 |
|
| 1965 |
+
/**
|
| 1966 |
+
* Free 1, 2
|
| 1967 |
+
*/
|
| 1968 |
+
private function type_paypal_checkbox($params, $row, $id1, $form_id, $param) {
|
| 1969 |
+
return '';
|
| 1970 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1971 |
|
| 1972 |
+
/**
|
| 1973 |
+
* Free 1, 2
|
| 1974 |
+
*/
|
| 1975 |
+
private function type_paypal_shipping($params, $row, $id1, $form_id, $param) {
|
| 1976 |
+
return '';
|
| 1977 |
+
}
|
| 1978 |
|
| 1979 |
+
/**
|
| 1980 |
+
* Free 1, 2
|
| 1981 |
+
*/
|
| 1982 |
+
private function type_paypal_total($params, $row, $id1, $form_id, $param) {
|
| 1983 |
+
return '';
|
| 1984 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1985 |
|
| 1986 |
+
/**
|
| 1987 |
+
* Free 1
|
| 1988 |
+
*/
|
| 1989 |
+
private function type_map($params, $id1, $row, $param) {
|
| 1990 |
+
return '';
|
| 1991 |
+
}
|
| 1992 |
|
| 1993 |
+
/**
|
| 1994 |
+
* Free 2
|
| 1995 |
+
*/
|
| 1996 |
+
private function type_checkbox($params, $row, $form_id, $id1, $type, $param) {
|
| 1997 |
+
$params_names = array(
|
| 1998 |
+
'w_field_label_size',
|
| 1999 |
+
'w_field_label_pos',
|
| 2000 |
+
'w_flow',
|
| 2001 |
+
'w_choices',
|
| 2002 |
+
'w_choices_checked',
|
| 2003 |
+
'w_rowcol',
|
| 2004 |
+
'w_required',
|
| 2005 |
+
'w_randomize',
|
| 2006 |
+
'w_allow_other',
|
| 2007 |
+
'w_allow_other_num',
|
| 2008 |
+
'w_class',
|
| 2009 |
+
);
|
| 2010 |
+
$temp = $params;
|
| 2011 |
+
if ( strpos($temp, 'w_field_option_pos') > -1 ) {
|
| 2012 |
+
$params_names = array(
|
| 2013 |
+
'w_field_label_size',
|
| 2014 |
+
'w_field_label_pos',
|
| 2015 |
+
'w_field_option_pos',
|
| 2016 |
+
'w_flow',
|
| 2017 |
+
'w_choices',
|
| 2018 |
+
'w_choices_checked',
|
| 2019 |
+
'w_rowcol',
|
| 2020 |
+
'w_required',
|
| 2021 |
+
'w_randomize',
|
| 2022 |
+
'w_allow_other',
|
| 2023 |
+
'w_allow_other_num',
|
| 2024 |
+
'w_value_disabled',
|
| 2025 |
+
'w_choices_value',
|
| 2026 |
+
'w_choices_params',
|
| 2027 |
+
'w_class',
|
| 2028 |
+
);
|
| 2029 |
+
}
|
| 2030 |
+
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
| 2031 |
+
$params_names = array(
|
| 2032 |
+
'w_field_label_size',
|
| 2033 |
+
'w_field_label_pos',
|
| 2034 |
+
'w_field_option_pos',
|
| 2035 |
+
'w_hide_label',
|
| 2036 |
+
'w_flow',
|
| 2037 |
+
'w_choices',
|
| 2038 |
+
'w_choices_checked',
|
| 2039 |
+
'w_rowcol',
|
| 2040 |
+
'w_required',
|
| 2041 |
+
'w_randomize',
|
| 2042 |
+
'w_allow_other',
|
| 2043 |
+
'w_allow_other_num',
|
| 2044 |
+
'w_value_disabled',
|
| 2045 |
+
'w_choices_value',
|
| 2046 |
+
'w_choices_params',
|
| 2047 |
+
'w_class',
|
| 2048 |
+
);
|
| 2049 |
+
}
|
| 2050 |
+
foreach ( $params_names as $params_name ) {
|
| 2051 |
+
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 2052 |
+
$param[$params_name] = $temp[0];
|
| 2053 |
+
$temp = $temp[1];
|
| 2054 |
+
}
|
| 2055 |
+
if ( $temp ) {
|
| 2056 |
+
$temp = explode('*:*w_attr_name*:*', $temp);
|
| 2057 |
+
$attrs = array_slice($temp, 0, count($temp) - 1);
|
| 2058 |
+
foreach ( $attrs as $attr ) {
|
| 2059 |
+
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 2060 |
+
}
|
| 2061 |
+
}
|
| 2062 |
+
if ( !isset($param['w_value_disabled']) ) {
|
| 2063 |
+
$param['w_value_disabled'] = 'no';
|
| 2064 |
+
}
|
| 2065 |
+
if ( !isset($param['w_field_option_pos']) ) {
|
| 2066 |
+
$param['w_field_option_pos'] = 'left';
|
| 2067 |
+
}
|
| 2068 |
+
$param['w_choices'] = explode('***', $param['w_choices']);
|
| 2069 |
+
$param['w_choices_checked'] = explode('***', $param['w_choices_checked']);
|
| 2070 |
+
if ( isset($param['w_choices_value']) ) {
|
| 2071 |
+
$param['w_choices_value'] = explode('***', $param['w_choices_value']);
|
| 2072 |
+
$param['w_choices_params'] = explode('***', $param['w_choices_params']);
|
| 2073 |
+
}
|
| 2074 |
+
$post_value = isset($_POST["counter" . $form_id]) ? esc_html($_POST["counter" . $form_id]) : NULL;
|
| 2075 |
+
$param['id'] = '';
|
| 2076 |
+
$param['w_class'] .= ' wd-flex-wrap' . ($param['w_flow'] != 'hor' ? ' wd-flex-column' : ' wd-flex-row');
|
| 2077 |
+
$html = '<div class="wd-flex ' . ($param['w_flow'] == 'hor' ? ($param['w_rowcol'] > 1 ? 'wd-flex-column' : 'wd-flex-row') : ($param['w_rowcol'] > 1 ? 'wd-flex-row' : 'wd-flex-column')) . '">';
|
| 2078 |
+
$total_queries = 0;
|
| 2079 |
+
foreach ( $param['w_choices'] as $key => $choice ) {
|
| 2080 |
+
$key1 = $key + $total_queries;
|
| 2081 |
+
if ( isset($param['w_choices_params']) && $param['w_choices_params'][$key] ) {
|
| 2082 |
+
$choices_labels = array();
|
| 2083 |
+
$choices_values = array();
|
| 2084 |
+
$w_choices_params = explode('[where_order_by]', $param['w_choices_params'][$key]);
|
| 2085 |
+
$where = (str_replace(array( '[', ']' ), '', $w_choices_params[0]) ? ' WHERE ' . str_replace(array(
|
| 2086 |
+
'[',
|
| 2087 |
+
']',
|
| 2088 |
+
), '', $w_choices_params[0]) : '');
|
| 2089 |
+
$w_choices_params = explode('[db_info]', $w_choices_params[1]);
|
| 2090 |
+
$order_by = str_replace(array( '[', ']' ), '', $w_choices_params[0]);
|
| 2091 |
+
$db_info = str_replace(array( '[', ']' ), '', $w_choices_params[1]);
|
| 2092 |
+
$label_table_and_column = explode(':', str_replace(array( '[', ']' ), '', $choice));
|
| 2093 |
+
$table = $label_table_and_column[0];
|
| 2094 |
+
$label_column = $label_table_and_column[1];
|
| 2095 |
+
if ( $label_column ) {
|
| 2096 |
+
$choices_labels = $this->model->select_data_from_db_for_labels($db_info, $label_column, $table, $where, $order_by);
|
| 2097 |
+
}
|
| 2098 |
+
$value_table_and_column = explode(':', str_replace(array( '[', ']' ), '', $param['w_choices_value'][$key]));
|
| 2099 |
+
$value_column = $value_table_and_column[1];
|
| 2100 |
+
if ( $value_column ) {
|
| 2101 |
+
$choices_values = $this->model->select_data_from_db_for_values($db_info, $value_column, $table, $where, $order_by);
|
| 2102 |
+
}
|
| 2103 |
+
$columns_count_checkbox = count($choices_labels) > 0 ? count($choices_labels) : count($choices_values);
|
| 2104 |
+
if ( array_filter($choices_labels) || array_filter($choices_values) ) {
|
| 2105 |
+
$total_queries = $total_queries + $columns_count_checkbox - 1;
|
| 2106 |
+
if ( !isset($post_value) ) {
|
| 2107 |
+
$param['w_choices_checked'][$key] = ($param['w_choices_checked'][$key] == 'true' ? 'checked="checked"' : '');
|
| 2108 |
}
|
| 2109 |
+
for ( $k = 0; $k < $columns_count_checkbox; $k++ ) {
|
| 2110 |
+
$choice_label = isset($choices_labels[$k]) ? $choices_labels[$k] : '';
|
| 2111 |
+
$choice_value = isset($choices_values[$k]) ? $choices_values[$k] : $choice_label;
|
| 2112 |
+
if ( $param['w_rowcol'] > 1 && ($key1 + $k) % $param['w_rowcol'] == 0 && ($key1 + $k) > 0 ) {
|
| 2113 |
+
$html .= '</div><div class="wd-flex ' . ($param['w_flow'] == 'hor' ? 'wd-flex-column' : 'wd-flex-row') . '">';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2114 |
}
|
| 2115 |
+
if ( isset($post_value) ) {
|
| 2116 |
+
$param['w_choices_checked'][$key] = (isset($_POST['wdform_' . $id1 . "_element" . $form_id . ($key1 + $k)]) ? 'checked="checked"' : '');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2117 |
}
|
| 2118 |
+
$html .= '<div class="checkbox-div wd-choice wd-flex ' . (($param['w_field_option_pos'] == "right") ? 'wd-flex-row' : 'wd-flex-row-reverse wd-justify-content') . '">';
|
| 2119 |
+
$html .= '<input type="checkbox" ' . (($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == $key) ? 'other="1"' : '') . ' id="wdform_' . $id1 . '_element' . $form_id . '' . ($key1 + $k) . '" name="wdform_' . $id1 . '_element' . $form_id . '' . ($key1 + $k) . '" value="' . htmlspecialchars($choice_value[0]) . '" ' . (($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == $key) ? 'onclick="if(set_checked("wdform_' . $id1 . '","' . ($key1 + $k) . '","' . $form_id . '")) show_other_input("wdform_' . $id1 . '","' . $form_id . '");"' : '') . ' ' . $param['w_choices_checked'][$key] . ' ' . $param['attributes'] . ' />';
|
| 2120 |
+
$html .= '<label class="wd-align-items-center wd-flex ' . ($param['w_field_option_pos'] == "right" ? "wd-flex-row" : "wd-flex-row-reverse wd-justify-content wd-width-100") . '" for="wdform_' . $id1 . '_element' . $form_id . '' . ($key1 + $k) . '"><span></span>' . $choice_label[0] . '</label>';
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2121 |
$html .= '</div>';
|
| 2122 |
+
}
|
| 2123 |
+
}
|
| 2124 |
+
}
|
| 2125 |
+
else {
|
| 2126 |
+
if ( $param['w_rowcol'] > 1 && (($key1 % $param['w_rowcol']) == 0) && $key1 > 0 ) {
|
| 2127 |
+
$html .= '</div><div class="wd-flex ' . ($param['w_flow'] == 'hor' ? 'wd-flex-column' : 'wd-flex-row') . '">';
|
| 2128 |
+
}
|
| 2129 |
+
if ( !isset($post_value) ) {
|
| 2130 |
+
$param['w_choices_checked'][$key] = ($param['w_choices_checked'][$key] == 'true' ? 'checked="checked"' : '');
|
| 2131 |
+
}
|
| 2132 |
+
else {
|
| 2133 |
+
$param['w_choices_checked'][$key] = (isset($_POST['wdform_' . $id1 . "_element" . $form_id . $key]) ? 'checked="checked"' : '');
|
| 2134 |
+
}
|
| 2135 |
+
$choice_value = isset($param['w_choices_value']) ? $param['w_choices_value'][$key] : $choice;
|
| 2136 |
+
$html .= '<div class="checkbox-div wd-choice wd-flex ' . (($param['w_field_option_pos'] == "right") ? 'wd-flex-row' : 'wd-flex-row-reverse wd-justify-content') . '">';
|
| 2137 |
+
$html .= '<input type="checkbox" ' . (($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == $key) ? 'other="1"' : '') . ' id="wdform_' . $id1 . '_element' . $form_id . '' . $key1 . '" name="wdform_' . $id1 . '_element' . $form_id . '' . $key1 . '" value="' . htmlspecialchars($choice_value) . '" ' . (($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == $key) ? 'onclick="if(set_checked("wdform_' . $id1 . '","' . $key1 . '","' . $form_id . '")) show_other_input("wdform_' . $id1 . '","' . $form_id . '");"' : '') . ' ' . $param['w_choices_checked'][$key] . ' ' . $param['attributes'] . ' />';
|
| 2138 |
+
$html .= '<label class="wd-align-items-center wd-flex ' . ($param['w_field_option_pos'] == "right" ? "wd-flex-row" : "wd-flex-row-reverse wd-justify-content wd-width-100") . '" for="wdform_' . $id1 . '_element' . $form_id . '' . $key1 . '"><span></span>' . $choice . '</label>';
|
| 2139 |
+
$html .= '</div>';
|
| 2140 |
+
$param['w_allow_other_num'] = $param['w_allow_other_num'] == $key ? $key1 : $param['w_allow_other_num'];
|
| 2141 |
+
}
|
| 2142 |
+
}
|
| 2143 |
+
$html .= '</div>';
|
| 2144 |
+
// Generate field.
|
| 2145 |
+
$rep = $this->wdform_field($type, $param, $row, $html);
|
| 2146 |
|
| 2147 |
+
return $rep;
|
| 2148 |
+
}
|
| 2149 |
|
| 2150 |
+
/**
|
| 2151 |
+
* Free 2
|
| 2152 |
+
*/
|
| 2153 |
+
private function type_radio($params, $row, $form_id, $id1, $type, $param) {
|
| 2154 |
+
$params_names = array(
|
| 2155 |
+
'w_field_label_size',
|
| 2156 |
+
'w_field_label_pos',
|
| 2157 |
+
'w_flow',
|
| 2158 |
+
'w_choices',
|
| 2159 |
+
'w_choices_checked',
|
| 2160 |
+
'w_rowcol',
|
| 2161 |
+
'w_required',
|
| 2162 |
+
'w_randomize',
|
| 2163 |
+
'w_allow_other',
|
| 2164 |
+
'w_allow_other_num',
|
| 2165 |
+
'w_class',
|
| 2166 |
+
);
|
| 2167 |
+
$temp = $params;
|
| 2168 |
+
if ( strpos($temp, 'w_field_option_pos') > -1 ) {
|
| 2169 |
+
$params_names = array(
|
| 2170 |
+
'w_field_label_size',
|
| 2171 |
+
'w_field_label_pos',
|
| 2172 |
+
'w_field_option_pos',
|
| 2173 |
+
'w_flow',
|
| 2174 |
+
'w_choices',
|
| 2175 |
+
'w_choices_checked',
|
| 2176 |
+
'w_rowcol',
|
| 2177 |
+
'w_required',
|
| 2178 |
+
'w_randomize',
|
| 2179 |
+
'w_allow_other',
|
| 2180 |
+
'w_allow_other_num',
|
| 2181 |
+
'w_value_disabled',
|
| 2182 |
+
'w_choices_value',
|
| 2183 |
+
'w_choices_params',
|
| 2184 |
+
'w_class',
|
| 2185 |
+
);
|
| 2186 |
+
}
|
| 2187 |
+
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
| 2188 |
+
$params_names = array(
|
| 2189 |
+
'w_field_label_size',
|
| 2190 |
+
'w_field_label_pos',
|
| 2191 |
+
'w_field_option_pos',
|
| 2192 |
+
'w_hide_label',
|
| 2193 |
+
'w_flow',
|
| 2194 |
+
'w_choices',
|
| 2195 |
+
'w_choices_checked',
|
| 2196 |
+
'w_rowcol',
|
| 2197 |
+
'w_required',
|
| 2198 |
+
'w_randomize',
|
| 2199 |
+
'w_allow_other',
|
| 2200 |
+
'w_allow_other_num',
|
| 2201 |
+
'w_value_disabled',
|
| 2202 |
+
'w_choices_value',
|
| 2203 |
+
'w_choices_params',
|
| 2204 |
+
'w_class',
|
| 2205 |
+
);
|
| 2206 |
+
}
|
| 2207 |
+
foreach ( $params_names as $params_name ) {
|
| 2208 |
+
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 2209 |
+
$param[$params_name] = $temp[0];
|
| 2210 |
+
$temp = $temp[1];
|
| 2211 |
+
}
|
| 2212 |
+
if ( $temp ) {
|
| 2213 |
+
$temp = explode('*:*w_attr_name*:*', $temp);
|
| 2214 |
+
$attrs = array_slice($temp, 0, count($temp) - 1);
|
| 2215 |
+
foreach ( $attrs as $attr ) {
|
| 2216 |
+
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 2217 |
+
}
|
| 2218 |
+
}
|
| 2219 |
+
if ( !isset($param['w_value_disabled']) ) {
|
| 2220 |
+
$param['w_value_disabled'] = 'no';
|
| 2221 |
+
}
|
| 2222 |
+
if ( !isset($param['w_field_option_pos']) ) {
|
| 2223 |
+
$param['w_field_option_pos'] = 'left';
|
| 2224 |
+
}
|
| 2225 |
+
|
| 2226 |
+
$param['w_choices'] = explode('***', $param['w_choices']);
|
| 2227 |
+
$param['w_choices_checked'] = explode('***', $param['w_choices_checked']);
|
| 2228 |
+
if ( isset($param['w_choices_value']) ) {
|
| 2229 |
+
$param['w_choices_value'] = explode('***', $param['w_choices_value']);
|
| 2230 |
+
$param['w_choices_params'] = explode('***', $param['w_choices_params']);
|
| 2231 |
+
}
|
| 2232 |
+
$post_value = isset($_POST["counter" . $form_id]) ? esc_html($_POST["counter" . $form_id]) : NULL;
|
| 2233 |
+
|
| 2234 |
+
$param['id'] = '';
|
| 2235 |
+
$param['w_class'] .= ' wd-flex-wrap' . ($param['w_flow'] != 'hor' ? ' wd-flex-column' : ' wd-flex-row');
|
| 2236 |
+
|
| 2237 |
+
$html = '<div class="wd-flex ' . ($param['w_flow'] == 'hor' ? ($param['w_rowcol'] > 1 ? 'wd-flex-column' : 'wd-flex-row') : ($param['w_rowcol'] > 1 ? 'wd-flex-row' : 'wd-flex-column')) . '">';
|
| 2238 |
+
$total_queries = 0;
|
| 2239 |
+
foreach ( $param['w_choices'] as $key => $choice ) {
|
| 2240 |
+
$key1 = $key + $total_queries;
|
| 2241 |
+
if ( isset($param['w_choices_params']) && $param['w_choices_params'][$key] ) {
|
| 2242 |
+
$choices_labels = array();
|
| 2243 |
+
$choices_values = array();
|
| 2244 |
+
$w_choices_params = explode('[where_order_by]', $param['w_choices_params'][$key]);
|
| 2245 |
+
$where = (str_replace(array( '[', ']' ), '', $w_choices_params[0]) ? ' WHERE ' . str_replace(array('[', ']'), '', $w_choices_params[0]) : '');
|
| 2246 |
+
$w_choices_params = explode('[db_info]', $w_choices_params[1]);
|
| 2247 |
+
$order_by = str_replace(array( '[', ']' ), '', $w_choices_params[0]);
|
| 2248 |
+
$db_info = str_replace(array( '[', ']' ), '', $w_choices_params[1]);
|
| 2249 |
+
$label_table_and_column = explode(':', str_replace(array( '[', ']' ), '', $choice));
|
| 2250 |
+
$table = $label_table_and_column[0];
|
| 2251 |
+
$label_column = $label_table_and_column[1];
|
| 2252 |
+
if ( $label_column ) {
|
| 2253 |
+
$choices_labels = $this->model->select_data_from_db_for_labels($db_info, $label_column, $table, $where, $order_by);
|
| 2254 |
+
}
|
| 2255 |
+
$value_table_and_column = explode(':', str_replace(array('[', ']'), '', $param['w_choices_value'][$key]));
|
| 2256 |
+
$value_column = $value_table_and_column[1];
|
| 2257 |
+
if ( $value_column ) {
|
| 2258 |
+
$choices_values = $this->model->select_data_from_db_for_values($db_info, $value_column, $table, $where, $order_by);
|
| 2259 |
+
}
|
| 2260 |
+
$columns_count_radio = count($choices_labels) > 0 ? count($choices_labels) : count($choices_values);
|
| 2261 |
+
if ( array_filter($choices_labels) || array_filter($choices_values) ) {
|
| 2262 |
+
$total_queries = $total_queries + $columns_count_radio - 1;
|
| 2263 |
+
if ( !isset($post_value) ) {
|
| 2264 |
+
$param['w_choices_checked'][$key] = ($param['w_choices_checked'][$key] == 'true' ? 'checked="checked"' : '');
|
| 2265 |
}
|
| 2266 |
+
for ( $k = 0; $k < $columns_count_radio; $k++ ) {
|
| 2267 |
+
$choice_label = isset($choices_labels[$k]) ? $choices_labels[$k] : '';
|
| 2268 |
+
$choice_value = isset($choices_values[$k]) ? $choices_values[$k] : $choice_label;
|
| 2269 |
+
if ( $param['w_rowcol'] > 1 && ($key1 + $k) % $param['w_rowcol'] == 0 && ($key1 + $k) > 0 ) {
|
| 2270 |
+
$html .= '</div><div class="wd-flex ' . ($param['w_flow'] == 'hor' ? 'wd-flex-column' : 'wd-flex-row') . '">';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2271 |
}
|
| 2272 |
+
if ( isset($post_value) ) {
|
| 2273 |
+
$param['w_choices_checked'][$key] = (isset($_POST['wdform_' . $id1 . "_element" . $form_id]) ? 'checked="checked"' : '');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2274 |
}
|
| 2275 |
+
$html .= '<div class="radio-div wd-choice wd-flex ' . (($param['w_field_option_pos'] == "right") ? 'wd-flex-row' : 'wd-flex-row-reverse wd-justify-content' ) . '">';
|
| 2276 |
+
$html .= '<input type="radio" ' . (($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == $key) ? 'other="1"' : '') . ' id="wdform_' . $id1 . '_element' . $form_id . '' . ($key1 + $k) . '" name="wdform_' . $id1 . '_element' . $form_id . '" value="' . htmlspecialchars($choice_value[0]) . '" onclick="set_default("wdform_' . $id1 . '","' . ($key1 + $k) . '","' . $form_id . '"); ' . (($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == $key) ? 'show_other_input("wdform_' . $id1 . '","' . $form_id . '");' : '') . '" ' . $param['w_choices_checked'][$key] . ' ' . $param['attributes'] . ' />';
|
| 2277 |
+
$html .= '<label class="wd-align-items-center wd-flex ' . ($param['w_field_option_pos'] == "right" ? "wd-flex-row" : "wd-flex-row-reverse wd-justify-content wd-width-100") . '" for="wdform_' . $id1 . '_element' . $form_id . '' . ($key1 + $k) . '"><span></span>' . $choice_label[0] . '</label>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2278 |
$html .= '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2279 |
}
|
| 2280 |
}
|
| 2281 |
+
}
|
| 2282 |
+
else {
|
| 2283 |
+
if ( $param['w_rowcol'] > 1 && (($key1 % $param['w_rowcol']) == 0) && $key1 > 0 ) {
|
| 2284 |
+
$html .= '</div><div class="wd-flex ' . ($param['w_flow'] == 'hor' ? 'wd-flex-column' : 'wd-flex-row') . '">';
|
| 2285 |
+
}
|
| 2286 |
+
if ( !isset($post_value) ) {
|
| 2287 |
+
$param['w_choices_checked'][$key] = ($param['w_choices_checked'][$key] == 'true' ? 'checked="checked"' : '');
|
| 2288 |
+
}
|
| 2289 |
+
else {
|
| 2290 |
+
$param['w_choices_checked'][$key] = (htmlspecialchars($choice) == htmlspecialchars(isset($_POST['wdform_' . $id1 . "_element" . $form_id]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . "_element" . $form_id])) : "") ? 'checked="checked"' : '');
|
| 2291 |
+
}
|
| 2292 |
+
$choice_value = isset($param['w_choices_value']) ? $param['w_choices_value'][$key] : $choice;
|
| 2293 |
+
$html .= '<div class="radio-div wd-choice wd-flex ' . (($param['w_field_option_pos'] == "right") ? 'wd-flex-row' : 'wd-flex-row-reverse wd-justify-content' ) . '">';
|
| 2294 |
+
$html .= '<input type="radio" ' . (($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == $key) ? 'other="1"' : '') . ' id="wdform_' . $id1 . '_element' . $form_id . '' . $key1 . '" name="wdform_' . $id1 . '_element' . $form_id . '" value="' . htmlspecialchars($choice_value) . '" onclick="set_default("wdform_' . $id1 . '","' . $key1 . '","' . $form_id . '"); ' . (($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == $key) ? 'show_other_input("wdform_' . $id1 . '","' . $form_id . '");' : '') . '" ' . $param['w_choices_checked'][$key] . ' ' . $param['attributes'] . ' />';
|
| 2295 |
+
$html .= '<label class="wd-align-items-center wd-flex ' . ($param['w_field_option_pos'] == "right" ? "wd-flex-row" : "wd-flex-row-reverse wd-justify-content wd-width-100") . '" for="wdform_' . $id1 . '_element' . $form_id . '' . $key1 . '"><span></span>' . $choice . '</label>';
|
| 2296 |
+
$html .= '</div>';
|
| 2297 |
+
$param['w_allow_other_num'] = $param['w_allow_other_num'] == $key ? $key1 : $param['w_allow_other_num'];
|
| 2298 |
+
}
|
| 2299 |
+
}
|
| 2300 |
+
$html .= '</div>';
|
| 2301 |
+
|
| 2302 |
+
// Generate field.
|
| 2303 |
+
$rep = $this->wdform_field($type, $param, $row, $html);
|
| 2304 |
+
|
| 2305 |
+
return $rep;
|
| 2306 |
+
}
|
| 2307 |
+
|
| 2308 |
+
/**
|
| 2309 |
+
* Free 2
|
| 2310 |
+
*/
|
| 2311 |
+
private function type_own_select($params, $row, $form_id, $id1, $type, $param) {
|
| 2312 |
+
$params_names = array(
|
| 2313 |
+
'w_field_label_size',
|
| 2314 |
+
'w_field_label_pos',
|
| 2315 |
+
'w_size',
|
| 2316 |
+
'w_choices',
|
| 2317 |
+
'w_choices_checked',
|
| 2318 |
+
'w_choices_disabled',
|
| 2319 |
+
'w_required',
|
| 2320 |
+
'w_class',
|
| 2321 |
+
);
|
| 2322 |
+
$temp = $params;
|
| 2323 |
+
if ( strpos($temp, 'w_choices_value') > -1 ) {
|
| 2324 |
+
$params_names = array(
|
| 2325 |
+
'w_field_label_size',
|
| 2326 |
+
'w_field_label_pos',
|
| 2327 |
+
'w_size',
|
| 2328 |
+
'w_choices',
|
| 2329 |
+
'w_choices_checked',
|
| 2330 |
+
'w_choices_disabled',
|
| 2331 |
+
'w_required',
|
| 2332 |
+
'w_value_disabled',
|
| 2333 |
+
'w_choices_value',
|
| 2334 |
+
'w_choices_params',
|
| 2335 |
+
'w_class',
|
| 2336 |
+
);
|
| 2337 |
+
}
|
| 2338 |
+
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
| 2339 |
+
$params_names = array(
|
| 2340 |
+
'w_field_label_size',
|
| 2341 |
+
'w_field_label_pos',
|
| 2342 |
+
'w_hide_label',
|
| 2343 |
+
'w_size',
|
| 2344 |
+
'w_choices',
|
| 2345 |
+
'w_choices_checked',
|
| 2346 |
+
'w_choices_disabled',
|
| 2347 |
+
'w_required',
|
| 2348 |
+
'w_value_disabled',
|
| 2349 |
+
'w_choices_value',
|
| 2350 |
+
'w_choices_params',
|
| 2351 |
+
'w_class',
|
| 2352 |
+
);
|
| 2353 |
+
}
|
| 2354 |
+
foreach ( $params_names as $params_name ) {
|
| 2355 |
+
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 2356 |
+
$param[$params_name] = $temp[0];
|
| 2357 |
+
$temp = $temp[1];
|
| 2358 |
+
}
|
| 2359 |
+
if ( $temp ) {
|
| 2360 |
+
$temp = explode('*:*w_attr_name*:*', $temp);
|
| 2361 |
+
$attrs = array_slice($temp, 0, count($temp) - 1);
|
| 2362 |
+
foreach ( $attrs as $attr ) {
|
| 2363 |
+
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 2364 |
}
|
| 2365 |
}
|
| 2366 |
+
$param['w_choices'] = explode('***', $param['w_choices']);
|
| 2367 |
+
$param['w_choices_checked'] = explode('***', $param['w_choices_checked']);
|
| 2368 |
+
$param['w_choices_disabled'] = explode('***', $param['w_choices_disabled']);
|
| 2369 |
+
if ( isset($param['w_choices_value']) ) {
|
| 2370 |
+
$param['w_choices_value'] = explode('***', $param['w_choices_value']);
|
| 2371 |
+
$param['w_choices_params'] = explode('***', $param['w_choices_params']);
|
| 2372 |
}
|
| 2373 |
+
if ( !isset($param['w_value_disabled']) ) {
|
| 2374 |
+
$param['w_value_disabled'] = 'no';
|
| 2375 |
+
}
|
| 2376 |
+
$post_value = isset($_POST["counter" . $form_id]) ? esc_html($_POST["counter" . $form_id]) : NULL;
|
| 2377 |
+
|
| 2378 |
+
$param['id'] = $id1;
|
| 2379 |
+
$param['w_class'] .= ' wd-flex-row';
|
| 2380 |
+
|
| 2381 |
+
$html = '<select class="wd-width-100" id="wdform_' . $id1 . '_element' . $form_id . '" name="wdform_' . $id1 . '_element' . $form_id . '" ' . $param['attributes'] . '>';
|
| 2382 |
+
foreach ( $param['w_choices'] as $key => $choice ) {
|
| 2383 |
+
if ( isset($param['w_choices_params']) && $param['w_choices_params'][$key] ) {
|
| 2384 |
+
$choices_labels = array();
|
| 2385 |
+
$choices_values = array();
|
| 2386 |
+
$w_choices_params = explode('[where_order_by]', $param['w_choices_params'][$key]);
|
| 2387 |
+
$where = (str_replace(array( '[', ']' ), '', $w_choices_params[0]) ? ' WHERE ' . str_replace(array('[', ']'), '', $w_choices_params[0]) : '');
|
| 2388 |
+
$w_choices_params = explode('[db_info]', $w_choices_params[1]);
|
| 2389 |
+
$order_by = str_replace(array( '[', ']' ), '', $w_choices_params[0]);
|
| 2390 |
+
$db_info = str_replace(array( '[', ']' ), '', $w_choices_params[1]);
|
| 2391 |
+
$label_table_and_column = explode(':', str_replace(array( '[', ']' ), '', $choice));
|
| 2392 |
+
$table = $label_table_and_column[0];
|
| 2393 |
+
$label_column = $label_table_and_column[1];
|
| 2394 |
+
if ( $label_column ) {
|
| 2395 |
+
$choices_labels = $this->model->select_data_from_db_for_labels($db_info, $label_column, $table, $where, $order_by);
|
| 2396 |
}
|
| 2397 |
+
$value_table_and_column = explode(':', str_replace(array('[', ']'), '', $param['w_choices_value'][$key]));
|
| 2398 |
+
$value_column = $param['w_choices_disabled'][$key] == "true" ? '' : $value_table_and_column[1];
|
| 2399 |
+
if ( $value_column ) {
|
| 2400 |
+
$choices_values = $this->model->select_data_from_db_for_values($db_info, $value_column, $table, $where, $order_by);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2401 |
}
|
| 2402 |
+
$columns_count = count($choices_labels) > 0 ? count($choices_labels) : count($choices_values);
|
| 2403 |
+
if ( array_filter($choices_labels) || array_filter($choices_values) ) {
|
| 2404 |
+
for ( $k = 0; $k < $columns_count; $k++ ) {
|
| 2405 |
+
$choice_label = isset($choices_labels[$k]) ? $choices_labels[$k] : '';
|
| 2406 |
+
$choice_value = isset($choices_values[$k]) ? $choices_values[$k] : ($param['w_choices_disabled'][$key] == "true" ? '' : $choice_label);
|
| 2407 |
+
if ( !isset($post_value) ) {
|
| 2408 |
+
$param['w_choices_checked'][$key] = (($param['w_choices_checked'][$key] == 'true' && $k == 0) ? 'selected="selected"' : '');
|
| 2409 |
+
}
|
| 2410 |
+
else {
|
| 2411 |
+
$param['w_choices_checked'][$key] = ((isset($_POST['wdform_' . $id1 . "_element" . $form_id]) && $choice_value == htmlspecialchars($_POST['wdform_' . $id1 . "_element" . $form_id])) ? 'selected="selected"' : '');
|
| 2412 |
+
}
|
| 2413 |
+
$html .= '<option value="' . htmlspecialchars($choice_value[0]) . '" ' . $param['w_choices_checked'][$key] . '>' . $choice_label[0] . '</option>';
|
| 2414 |
}
|
| 2415 |
}
|
| 2416 |
+
}
|
| 2417 |
+
else {
|
| 2418 |
+
if ( !isset($post_value) ) {
|
| 2419 |
+
$param['w_choices_checked'][$key] = ($param['w_choices_checked'][$key] == 'true' ? 'selected="selected"' : '');
|
| 2420 |
+
}
|
| 2421 |
+
else {
|
| 2422 |
+
$param['w_choices_checked'][$key] = ((isset($_POST['wdform_' . $id1 . "_element" . $form_id]) && htmlspecialchars($choice) == htmlspecialchars($_POST['wdform_' . $id1 . "_element" . $form_id])) ? 'selected="selected"' : '');
|
| 2423 |
+
}
|
| 2424 |
+
$choice_value = $param['w_choices_disabled'][$key] == "true" ? '' : (isset($param['w_choices_value']) ? $param['w_choices_value'][$key] : $choice);
|
| 2425 |
+
$html .= '<option value="' . htmlspecialchars($choice_value) . '" ' . $param['w_choices_checked'][$key] . '>' . $choice . '</option>';
|
| 2426 |
}
|
| 2427 |
}
|
| 2428 |
+
$html .= '</select>';
|
|
|
|
|
|
|
|
|
|
| 2429 |
|
| 2430 |
+
// Generate field.
|
| 2431 |
+
$rep = $this->wdform_field($type, $param, $row, $html);
|
| 2432 |
+
return $rep;
|
| 2433 |
+
}
|
| 2434 |
|
| 2435 |
+
/**
|
| 2436 |
+
* Free 2
|
| 2437 |
+
*/
|
| 2438 |
+
private function type_date_new($params, $row, $form_id, $id1, $type, $param) {
|
| 2439 |
+
wp_enqueue_script('jquery-ui-datepicker');
|
| 2440 |
+
wp_add_inline_script('jquery-ui-datepicker', WDW_FM_Library::localize_ui_datepicker());
|
| 2441 |
+
|
| 2442 |
+
$params_names = array(
|
| 2443 |
+
'w_field_label_size',
|
| 2444 |
+
'w_field_label_pos',
|
| 2445 |
+
'w_size',
|
| 2446 |
+
'w_date',
|
| 2447 |
+
'w_required',
|
| 2448 |
+
'w_show_image',
|
| 2449 |
+
'w_class',
|
| 2450 |
+
'w_format',
|
| 2451 |
+
'w_start_day',
|
| 2452 |
+
'w_default_date',
|
| 2453 |
+
'w_min_date',
|
| 2454 |
+
'w_max_date',
|
| 2455 |
+
'w_invalid_dates',
|
| 2456 |
+
'w_show_days',
|
| 2457 |
+
'w_hide_time',
|
| 2458 |
+
'w_but_val',
|
| 2459 |
+
'w_disable_past_days',
|
| 2460 |
+
);
|
| 2461 |
+
$temp = $params;
|
| 2462 |
+
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
| 2463 |
+
$params_names = array(
|
| 2464 |
+
'w_field_label_size',
|
| 2465 |
+
'w_field_label_pos',
|
| 2466 |
+
'w_hide_label',
|
| 2467 |
+
'w_size',
|
| 2468 |
+
'w_date',
|
| 2469 |
+
'w_required',
|
| 2470 |
+
'w_show_image',
|
| 2471 |
+
'w_class',
|
| 2472 |
+
'w_format',
|
| 2473 |
+
'w_start_day',
|
| 2474 |
+
'w_default_date',
|
| 2475 |
+
'w_min_date',
|
| 2476 |
+
'w_max_date',
|
| 2477 |
+
'w_invalid_dates',
|
| 2478 |
+
'w_show_days',
|
| 2479 |
+
'w_hide_time',
|
| 2480 |
+
'w_but_val',
|
| 2481 |
+
'w_disable_past_days',
|
| 2482 |
+
);
|
| 2483 |
+
}
|
| 2484 |
+
foreach ( $params_names as $params_name ) {
|
| 2485 |
+
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 2486 |
+
$param[$params_name] = $temp[0];
|
| 2487 |
+
$temp = $temp[1];
|
| 2488 |
+
}
|
| 2489 |
+
if ( $temp ) {
|
| 2490 |
+
$temp = explode('*:*w_attr_name*:*', $temp);
|
| 2491 |
+
$attrs = array_slice($temp, 0, count($temp) - 1);
|
| 2492 |
+
foreach ( $attrs as $attr ) {
|
| 2493 |
+
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 2494 |
+
}
|
| 2495 |
+
}
|
| 2496 |
+
$default_date = (isset($_POST['wdform_' . $id1 . "_element" . $form_id]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . "_element" . $form_id])) : $param['w_default_date']);
|
| 2497 |
|
| 2498 |
+
$param['id'] = $id1;
|
| 2499 |
+
$param['w_class'] .= ' wd-flex-row';
|
| 2500 |
+
|
| 2501 |
+
$html = '<input class="wd-width-100" type="text" id="wdform_' . $id1 . '_element' . $form_id . '" name="wdform_' . $id1 . '_element' . $form_id . '" ' . $param['attributes'] . ' />';
|
| 2502 |
+
$html .= '<span id="fm-calendar-' . $id1 . '" class="dashicons dashicons-calendar-alt wd-calendar-button ' . ($param['w_show_image'] == "yes" ? "wd-inline-block" : "wd-hidden") . '"></span>';
|
| 2503 |
+
$html .= '<input type="hidden" format="' . $param['w_format'] . '" id="wdform_' . $id1 . '_button' . $form_id . '" value="' . $default_date . '" />';
|
| 2504 |
+
|
| 2505 |
+
// Generate field.
|
| 2506 |
+
$rep = $this->wdform_field($type, $param, $row, $html);
|
| 2507 |
+
return $rep;
|
| 2508 |
}
|
| 2509 |
|
| 2510 |
/**
|
| 2511 |
+
* Free 2
|
|
|
|
|
|
|
| 2512 |
*/
|
| 2513 |
+
private function type_date_fields($params, $row, $form_id, $id1, $type, $param) {
|
| 2514 |
+
$params_names = array(
|
| 2515 |
+
'w_field_label_size',
|
| 2516 |
+
'w_field_label_pos',
|
| 2517 |
+
'w_day',
|
| 2518 |
+
'w_month',
|
| 2519 |
+
'w_year',
|
| 2520 |
+
'w_day_type',
|
| 2521 |
+
'w_month_type',
|
| 2522 |
+
'w_year_type',
|
| 2523 |
+
'w_day_label',
|
| 2524 |
+
'w_month_label',
|
| 2525 |
+
'w_year_label',
|
| 2526 |
+
'w_day_size',
|
| 2527 |
+
'w_month_size',
|
| 2528 |
+
'w_year_size',
|
| 2529 |
+
'w_required',
|
| 2530 |
+
'w_class',
|
| 2531 |
+
'w_from',
|
| 2532 |
+
'w_to',
|
| 2533 |
+
'w_divider',
|
| 2534 |
+
);
|
| 2535 |
+
$temp = $params;
|
| 2536 |
+
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
| 2537 |
+
$params_names = array(
|
| 2538 |
+
'w_field_label_size',
|
| 2539 |
+
'w_field_label_pos',
|
| 2540 |
+
'w_hide_label',
|
| 2541 |
+
'w_day',
|
| 2542 |
+
'w_month',
|
| 2543 |
+
'w_year',
|
| 2544 |
+
'w_day_type',
|
| 2545 |
+
'w_month_type',
|
| 2546 |
+
'w_year_type',
|
| 2547 |
+
'w_day_label',
|
| 2548 |
+
'w_month_label',
|
| 2549 |
+
'w_year_label',
|
| 2550 |
+
'w_day_size',
|
| 2551 |
+
'w_month_size',
|
| 2552 |
+
'w_year_size',
|
| 2553 |
+
'w_required',
|
| 2554 |
+
'w_class',
|
| 2555 |
+
'w_from',
|
| 2556 |
+
'w_to',
|
| 2557 |
+
'w_divider',
|
| 2558 |
+
);
|
| 2559 |
+
}
|
| 2560 |
+
foreach ( $params_names as $params_name ) {
|
| 2561 |
+
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 2562 |
+
$param[$params_name] = $temp[0];
|
| 2563 |
+
$temp = $temp[1];
|
| 2564 |
+
}
|
| 2565 |
+
if ( $temp ) {
|
| 2566 |
+
$temp = explode('*:*w_attr_name*:*', $temp);
|
| 2567 |
+
$attrs = array_slice($temp, 0, count($temp) - 1);
|
| 2568 |
+
foreach ( $attrs as $attr ) {
|
| 2569 |
+
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 2570 |
+
}
|
| 2571 |
+
}
|
| 2572 |
+
$param['w_day'] = (isset($_POST['wdform_' . $id1 . "_day" . $form_id]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . "_day" . $form_id])) : $param['w_day']);
|
| 2573 |
+
$param['w_month'] = (isset($_POST['wdform_' . $id1 . "_month" . $form_id]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . "_month" . $form_id])) : $param['w_month']);
|
| 2574 |
+
$param['w_year'] = (isset($_POST['wdform_' . $id1 . "_year" . $form_id]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . "_year" . $form_id])) : $param['w_year']);
|
| 2575 |
+
|
| 2576 |
+
if ( $param['w_day_type'] == "SELECT" ) {
|
| 2577 |
+
$w_day_type = '<select id="wdform_' . $id1 . '_day' . $form_id . '" name="wdform_' . $id1 . '_day' . $form_id . '" style="width: ' . $param['w_day_size'] . 'px;" ' . $param['attributes'] . '><option value=""></option>';
|
| 2578 |
+
for ( $k = 1; $k <= 31; $k++ ) {
|
| 2579 |
+
if ( $k < 10 ) {
|
| 2580 |
+
if ( $param['w_day'] == '0' . $k ) {
|
| 2581 |
+
$selected = "selected=\"selected\"";
|
| 2582 |
}
|
| 2583 |
else {
|
| 2584 |
+
$selected = "";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2585 |
}
|
| 2586 |
+
$w_day_type .= '<option value="0' . $k . '" ' . $selected . '>0' . $k . '</option>';
|
|
|
|
|
|
|
| 2587 |
}
|
| 2588 |
+
else {
|
| 2589 |
+
if ( $param['w_day'] == '' . $k ) {
|
| 2590 |
+
$selected = "selected=\"selected\"";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2591 |
}
|
| 2592 |
else {
|
| 2593 |
+
$selected = "";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2594 |
}
|
| 2595 |
+
$w_day_type .= '<option value="' . $k . '" ' . $selected . '>' . $k . '</option>';
|
| 2596 |
+
}
|
| 2597 |
+
}
|
| 2598 |
+
$w_day_type .= '</select>';
|
| 2599 |
+
}
|
| 2600 |
+
else {
|
| 2601 |
+
$w_day_type = '<input type="number"
|
| 2602 |
+
class="wd-type-number"
|
| 2603 |
+
id="wdform_' . $id1 . '_day' . $form_id . '"
|
| 2604 |
+
name="wdform_' . $id1 . '_day' . $form_id . '"
|
| 2605 |
+
onkeyup="wd_validate(this)"
|
| 2606 |
+
data-addiotional-fields=\'' . json_encode(array('wdform_' . $id1 . '_month' . $form_id, 'wdform_' . $id1 . '_year' . $form_id)) . '\'
|
| 2607 |
+
data-valid-type="day"
|
| 2608 |
+
data-form-id="' . $form_id . '"
|
| 2609 |
+
data-wdid="' . $id1 . '"
|
| 2610 |
+
style="width: ' . $param['w_day_size'] . 'px;"
|
| 2611 |
+
value="' . $param['w_day'] . '"
|
| 2612 |
+
' . $param['attributes'] . ' />';
|
| 2613 |
+
}
|
| 2614 |
+
$w_day_type .= '<label for="wdform_' . $id1 . '_day' . $form_id . '" class="mini_label">' . $param['w_day_label'] . '</label>';
|
| 2615 |
+
|
| 2616 |
+
if ( $param['w_month_type'] == "SELECT" ) {
|
| 2617 |
+
$w_month_type = '<select id="wdform_' . $id1 . '_month' . $form_id . '" name="wdform_' . $id1 . '_month' . $form_id . '" style="width: ' . $param['w_month_size'] . 'px;" ' . $param['attributes'] . '><option value=""></option><option value="01" ' . ($param['w_month'] == "01" ? "selected=\"selected\"" : "") . ' >' . (__("January", WDFM()->prefix)) . '</option><option value="02" ' . ($param['w_month'] == "02" ? "selected=\"selected\"" : "") . '>' . (__("February", WDFM()->prefix)) . '</option><option value="03" ' . ($param['w_month'] == "03" ? "selected=\"selected\"" : "") . '>' . (__("March", WDFM()->prefix)) . '</option><option value="04" ' . ($param['w_month'] == "04" ? "selected=\"selected\"" : "") . ' >' . (__("April", WDFM()->prefix)) . '</option><option value="05" ' . ($param['w_month'] == "05" ? "selected=\"selected\"" : "") . ' >' . (__("May", WDFM()->prefix)) . '</option><option value="06" ' . ($param['w_month'] == "06" ? "selected=\"selected\"" : "") . ' >' . (__("June", WDFM()->prefix)) . '</option><option value="07" ' . ($param['w_month'] == "07" ? "selected=\"selected\"" : "") . ' >' . (__("July", WDFM()->prefix)) . '</option><option value="08" ' . ($param['w_month'] == "08" ? "selected=\"selected\"" : "") . ' >' . (__("August", WDFM()->prefix)) . '</option><option value="09" ' . ($param['w_month'] == "09" ? "selected=\"selected\"" : "") . ' >' . (__("September", WDFM()->prefix)) . '</option><option value="10" ' . ($param['w_month'] == "10" ? "selected=\"selected\"" : "") . ' >' . (__("October", WDFM()->prefix)) . '</option><option value="11" ' . ($param['w_month'] == "11" ? "selected=\"selected\"" : "") . '>' . (__("November", WDFM()->prefix)) . '</option><option value="12" ' . ($param['w_month'] == "12" ? "selected=\"selected\"" : "") . ' >' . (__("December", WDFM()->prefix)) . '</option></select>';
|
| 2618 |
+
}
|
| 2619 |
+
else {
|
| 2620 |
+
$w_month_type = '<input type="number"
|
| 2621 |
+
class="wd-type-number"
|
| 2622 |
+
id="wdform_' . $id1 . '_month' . $form_id . '"
|
| 2623 |
+
name="wdform_' . $id1 . '_month' . $form_id . '"
|
| 2624 |
+
onkeyup="wd_validate(this)"
|
| 2625 |
+
data-addiotional-fields=\'' . json_encode(array('wdform_' . $id1 . '_day' . $form_id, 'wdform_' . $id1 . '_year' . $form_id)) . '\'
|
| 2626 |
+
data-valid-type="month"
|
| 2627 |
+
data-form-id="' . $form_id . '"
|
| 2628 |
+
data-wdid="' . $id1 . '"
|
| 2629 |
+
style="width: ' . $param['w_month_size'] . 'px;"
|
| 2630 |
+
value="' . $param['w_month'] . '"
|
| 2631 |
+
' . $param['attributes'] . ' />';
|
| 2632 |
+
}
|
| 2633 |
+
$w_month_type .= '<label for="wdform_' . $id1 . '_month' . $form_id . '" class="mini_label">' . $param['w_month_label'] . '</label>';
|
| 2634 |
+
|
| 2635 |
+
$param['w_to'] = isset($param['w_to']) && $param['w_to'] != "NaN" ? $param['w_to'] : date("Y");
|
| 2636 |
+
if ( $param['w_year_type'] == "SELECT" ) {
|
| 2637 |
+
$w_year_type = '<select id="wdform_' . $id1 . '_year' . $form_id . '" name="wdform_' . $id1 . '_year' . $form_id . '" from="' . $param['w_from'] . '" to="' . $param['w_to'] . '" style="width: ' . $param['w_year_size'] . 'px;" ' . $param['attributes'] . '><option value=""></option>';
|
| 2638 |
+
for ( $k = $param['w_to']; $k >= $param['w_from']; $k-- ) {
|
| 2639 |
+
if ( $param['w_year'] == $k ) {
|
| 2640 |
+
$selected = "selected=\"selected\"";
|
| 2641 |
+
}
|
| 2642 |
+
else {
|
| 2643 |
+
$selected = "";
|
| 2644 |
+
}
|
| 2645 |
+
$w_year_type .= '<option value="' . $k . '" ' . $selected . '>' . $k . '</option>';
|
| 2646 |
+
}
|
| 2647 |
+
$w_year_type .= '</select>';
|
| 2648 |
+
}
|
| 2649 |
+
else {
|
| 2650 |
+
$w_year_type = '<input type="number"
|
| 2651 |
+
class="wd-type-number"
|
| 2652 |
+
id="wdform_' . $id1 . '_year' . $form_id . '"
|
| 2653 |
+
name="wdform_' . $id1 . '_year' . $form_id . '"
|
| 2654 |
+
onkeyup="wd_validate(this)"
|
| 2655 |
+
onchange="wd_year_validation(this)"
|
| 2656 |
+
data-addiotional-fields=\'' . json_encode(array('wdform_' . $id1 . '_day' . $form_id, 'wdform_' . $id1 . '_month' . $form_id)) . '\'
|
| 2657 |
+
data-valid-type="year"
|
| 2658 |
+
data-form-id="' . $form_id . '"
|
| 2659 |
+
data-wdid="' . $id1 . '"
|
| 2660 |
+
value="' . $param['w_year'] . '"
|
| 2661 |
+
from="' . $param['w_from'] . '"
|
| 2662 |
+
to="' . $param['w_to'] . '"
|
| 2663 |
+
style="width: ' . $param['w_year_size'] . 'px;"
|
| 2664 |
+
' . $param['attributes'] . ' />';
|
| 2665 |
+
}
|
| 2666 |
+
$w_year_type .= '<label for="wdform_' . $id1 . '_year' . $form_id . '" class="mini_label">' . $param['w_year_label'] . '</label>';
|
| 2667 |
+
|
| 2668 |
+
$param['id'] = 'wdform_' . $id1 . '_day' . $form_id;
|
| 2669 |
+
$param['w_class'] .= ' wd-flex-row';
|
| 2670 |
+
|
| 2671 |
+
$html = '<div class="wd-flex wd-flex-row wd-width-100 wd-align-items">';
|
| 2672 |
+
$html .= '<div class="wd-flex wd-flex-column">';
|
| 2673 |
+
$html .= $w_day_type;
|
| 2674 |
+
$html .= '</div>';
|
| 2675 |
+
$html .= '<span class="wdform_separator">' . $param['w_divider'] . '</span>';
|
| 2676 |
+
$html .= '<div class="wd-flex wd-flex-column">';
|
| 2677 |
+
$html .= $w_month_type;
|
| 2678 |
+
$html .= '</div>';
|
| 2679 |
+
$html .= '<span class="wdform_separator">' . $param['w_divider'] . '</span>';
|
| 2680 |
+
$html .= '<div class="wd-flex wd-flex-column">';
|
| 2681 |
+
$html .= $w_year_type;
|
| 2682 |
+
$html .= '</div>';
|
| 2683 |
+
$html .= '</div>';
|
| 2684 |
+
|
| 2685 |
+
// Generate field.
|
| 2686 |
+
$rep = $this->wdform_field($type, $param, $row, $html);
|
| 2687 |
+
return $rep;
|
| 2688 |
+
}
|
| 2689 |
+
|
| 2690 |
+
/**
|
| 2691 |
+
* Free 2
|
| 2692 |
+
*/
|
| 2693 |
+
private function type_date_range($params, $row, $form_id, $id1, $type, $param) {
|
| 2694 |
+
wp_enqueue_script('jquery-ui-datepicker');
|
| 2695 |
+
wp_add_inline_script('jquery-ui-datepicker', WDW_FM_Library::localize_ui_datepicker());
|
| 2696 |
+
|
| 2697 |
+
$params_names = array(
|
| 2698 |
+
'w_field_label_size',
|
| 2699 |
+
'w_field_label_pos',
|
| 2700 |
+
'w_size',
|
| 2701 |
+
'w_date',
|
| 2702 |
+
'w_required',
|
| 2703 |
+
'w_show_image',
|
| 2704 |
+
'w_class',
|
| 2705 |
+
'w_format',
|
| 2706 |
+
'w_start_day',
|
| 2707 |
+
'w_default_date_start',
|
| 2708 |
+
'w_default_date_end',
|
| 2709 |
+
'w_min_date',
|
| 2710 |
+
'w_max_date',
|
| 2711 |
+
'w_invalid_dates',
|
| 2712 |
+
'w_show_days',
|
| 2713 |
+
'w_hide_time',
|
| 2714 |
+
'w_but_val',
|
| 2715 |
+
'w_disable_past_days',
|
| 2716 |
+
);
|
| 2717 |
+
$temp = $params;
|
| 2718 |
+
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
| 2719 |
+
$params_names = array(
|
| 2720 |
+
'w_field_label_size',
|
| 2721 |
+
'w_field_label_pos',
|
| 2722 |
+
'w_hide_label',
|
| 2723 |
+
'w_size',
|
| 2724 |
+
'w_date',
|
| 2725 |
+
'w_required',
|
| 2726 |
+
'w_show_image',
|
| 2727 |
+
'w_class',
|
| 2728 |
+
'w_format',
|
| 2729 |
+
'w_start_day',
|
| 2730 |
+
'w_default_date_start',
|
| 2731 |
+
'w_default_date_end',
|
| 2732 |
+
'w_min_date',
|
| 2733 |
+
'w_max_date',
|
| 2734 |
+
'w_invalid_dates',
|
| 2735 |
+
'w_show_days',
|
| 2736 |
+
'w_hide_time',
|
| 2737 |
+
'w_but_val',
|
| 2738 |
+
'w_disable_past_days',
|
| 2739 |
+
);
|
| 2740 |
+
}
|
| 2741 |
+
foreach ( $params_names as $params_name ) {
|
| 2742 |
+
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 2743 |
+
$param[$params_name] = $temp[0];
|
| 2744 |
+
$temp = $temp[1];
|
| 2745 |
+
}
|
| 2746 |
+
if ( $temp ) {
|
| 2747 |
+
$temp = explode('*:*w_attr_name*:*', $temp);
|
| 2748 |
+
$attrs = array_slice($temp, 0, count($temp) - 1);
|
| 2749 |
+
foreach ( $attrs as $attr ) {
|
| 2750 |
+
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 2751 |
+
}
|
| 2752 |
+
}
|
| 2753 |
+
|
| 2754 |
+
$param['id'] = 'wdform_' . $id1 . '_element' . $form_id . '0';
|
| 2755 |
+
$param['w_class'] .= ' wd-flex-row';
|
| 2756 |
+
|
| 2757 |
+
$html = '<div class="wd-flex wd-flex-column wd-width-50">';
|
| 2758 |
+
$html .= '<input class="wd-width-100" type="text" id="wdform_' . $id1 . '_element' . $form_id . '0" name="wdform_' . $id1 . '_element' . $form_id . '0" ' . $param['attributes'] . ' onchange="change_value_range(\'wdform_' . $id1 . '_element' . $form_id . '1\', \'minDate\', this.value, \'' . $param['w_min_date'] . '\', \'' . $param['w_format'] . '\')" />';
|
| 2759 |
+
$html .= '<span id="button_calendar_' . $id1 . '0" class="dashicons dashicons-calendar-alt wd-calendar-button ' . ($param['w_show_image'] == "yes" ? "wd-inline-block" : "wd-hidden") . '"></span>';
|
| 2760 |
+
$html .= '</div>';
|
| 2761 |
+
$html .= '<div class="wd-flex wd-flex-column wd-name-separator"></div>';
|
| 2762 |
+
$html .= '<div class="wd-flex wd-flex-column wd-width-50">';
|
| 2763 |
+
$html .= '<input class="wd-width-100" type="text" id="wdform_' . $id1 . '_element' . $form_id . '1" name="wdform_' . $id1 . '_element' . $form_id . '1" ' . $param['attributes'] . ' onchange="change_value_range(\'wdform_' . $id1 . '_element' . $form_id . '0\', \'maxDate\', this.value, \'' . $param['w_max_date'] . '\', \'' . $param['w_format'] . '\')" />';
|
| 2764 |
+
$html .= '<span id="button_calendar_' . $id1 . '1" class="dashicons dashicons-calendar-alt wd-calendar-button ' . ($param['w_show_image'] == "yes" ? "wd-inline-block" : "wd-hidden") . '"></span>';
|
| 2765 |
+
$html .= '</div>';
|
| 2766 |
+
|
| 2767 |
+
// Generate field.
|
| 2768 |
+
$rep = $this->wdform_field($type, $param, $row, $html);
|
| 2769 |
+
return $rep;
|
| 2770 |
+
}
|
| 2771 |
+
|
| 2772 |
+
/**
|
| 2773 |
+
* Free 2
|
| 2774 |
+
*/
|
| 2775 |
+
private function type_time($params, $row, $form_id, $id1, $type, $param) {
|
| 2776 |
+
$params_names = array(
|
| 2777 |
+
'w_field_label_size',
|
| 2778 |
+
'w_field_label_pos',
|
| 2779 |
+
'w_time_type',
|
| 2780 |
+
'w_am_pm',
|
| 2781 |
+
'w_sec',
|
| 2782 |
+
'w_hh',
|
| 2783 |
+
'w_mm',
|
| 2784 |
+
'w_ss',
|
| 2785 |
+
'w_mini_labels',
|
| 2786 |
+
'w_required',
|
| 2787 |
+
'w_class',
|
| 2788 |
+
);
|
| 2789 |
+
$temp = $params;
|
| 2790 |
+
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
| 2791 |
+
$params_names = array(
|
| 2792 |
+
'w_field_label_size',
|
| 2793 |
+
'w_field_label_pos',
|
| 2794 |
+
'w_hide_label',
|
| 2795 |
+
'w_time_type',
|
| 2796 |
+
'w_am_pm',
|
| 2797 |
+
'w_sec',
|
| 2798 |
+
'w_hh',
|
| 2799 |
+
'w_mm',
|
| 2800 |
+
'w_ss',
|
| 2801 |
+
'w_mini_labels',
|
| 2802 |
+
'w_required',
|
| 2803 |
+
'w_class',
|
| 2804 |
+
);
|
| 2805 |
+
}
|
| 2806 |
+
foreach ( $params_names as $params_name ) {
|
| 2807 |
+
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 2808 |
+
$param[$params_name] = $temp[0];
|
| 2809 |
+
$temp = $temp[1];
|
| 2810 |
+
}
|
| 2811 |
+
if ( $temp ) {
|
| 2812 |
+
$temp = explode('*:*w_attr_name*:*', $temp);
|
| 2813 |
+
$attrs = array_slice($temp, 0, count($temp) - 1);
|
| 2814 |
+
foreach ( $attrs as $attr ) {
|
| 2815 |
+
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 2816 |
+
}
|
| 2817 |
+
}
|
| 2818 |
+
$w_mini_labels = explode('***', $param['w_mini_labels']);
|
| 2819 |
|
| 2820 |
+
$param['id'] = 'wdform_' . $id1 . '_hh' . $form_id;
|
| 2821 |
+
$param['w_class'] .= ' wd-flex-row';
|
| 2822 |
+
|
| 2823 |
+
$html = '<div class="wd-flex wd-flex-column">';
|
| 2824 |
+
$html .= '<input type="number"
|
| 2825 |
+
class="time_box wd-type-number"
|
| 2826 |
+
id="wdform_' . $id1 . '_hh' . $form_id . '"
|
| 2827 |
+
name="wdform_' . $id1 . '_hh' . $form_id . '"
|
| 2828 |
+
onkeyup="wd_validate(this)"
|
| 2829 |
+
data-addiotional-fields=\'' . json_encode(array('wdform_' . $id1 . '_mm' . $form_id, 'wdform_' . $id1 . '_ss' . $form_id)) . '\'
|
| 2830 |
+
data-valid-type="' . ($param['w_time_type'] == '12' ? 'hour12' : 'hour24') . '"
|
| 2831 |
+
data-form-id="' . $form_id . '"
|
| 2832 |
+
data-wdid="' . $id1 . '"
|
| 2833 |
+
value="' . (isset($_POST['wdform_' . $id1 . "_hh" . $form_id]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . "_hh" . $form_id])) : $param['w_hh']) . '"
|
| 2834 |
+
' . $param['attributes'] . ' />';
|
| 2835 |
+
$html .= '<label for="wdform_' . $id1 . '_hh' . $form_id . '" class="mini_label">' . $w_mini_labels[0] . '</label>';
|
| 2836 |
+
$html .= '</div>';
|
| 2837 |
+
$html .= '<div class="wd-flex wd-flex-column"> : </div>';
|
| 2838 |
+
$html .= '<div class="wd-flex wd-flex-column">';
|
| 2839 |
+
$html .= '<input type="number"
|
| 2840 |
+
class="time_box wd-type-number"
|
| 2841 |
+
id="wdform_' . $id1 . '_mm' . $form_id . '"
|
| 2842 |
+
name="wdform_' . $id1 . '_mm' . $form_id . '"
|
| 2843 |
+
onkeyup="wd_validate(this)"
|
| 2844 |
+
data-addiotional-fields=\'' . json_encode(array('wdform_' . $id1 . '_hh' . $form_id, 'wdform_' . $id1 . '_ss' . $form_id)) . '\'
|
| 2845 |
+
data-valid-type="minute"
|
| 2846 |
+
data-form-id="' . $form_id . '"
|
| 2847 |
+
data-wdid="' . $id1 . '"
|
| 2848 |
+
value="' . (isset($_POST['wdform_' . $id1 . "_mm" . $form_id]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . "_mm" . $form_id])) : $param['w_mm']) . '"
|
| 2849 |
+
' . $param['attributes'] . ' />';
|
| 2850 |
+
$html .= '<label for="wdform_' . $id1 . '_mm' . $form_id . '" class="mini_label">' . $w_mini_labels[1] . '</label>';
|
| 2851 |
+
$html .= '</div>';
|
| 2852 |
+
if ( $param['w_sec'] == '1' ) {
|
| 2853 |
+
$html .= '<div class="wd-flex wd-flex-column"> : </div>';
|
| 2854 |
+
$html .= '<div class="wd-flex wd-flex-column">';
|
| 2855 |
+
$html .= '<input type="number"
|
| 2856 |
+
class="time_box wd-type-number"
|
| 2857 |
+
id="wdform_' . $id1 . '_ss' . $form_id . '"
|
| 2858 |
+
name="wdform_' . $id1 . '_ss' . $form_id . '"
|
| 2859 |
+
onkeyup="wd_validate(this)"
|
| 2860 |
+
data-addiotional-fields=\'' . json_encode(array('wdform_' . $id1 . '_mm' . $form_id, 'wdform_' . $id1 . '_hh' . $form_id)) . '\'
|
| 2861 |
+
data-valid-type="second"
|
| 2862 |
+
data-form-id="' . $form_id . '"
|
| 2863 |
+
data-wdid="' . $id1 . '"
|
| 2864 |
+
value="' . (isset($_POST['wdform_' . $id1 . "_ss" . $form_id]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . "_ss" . $form_id])) : $param['w_ss']) . '"
|
| 2865 |
+
' . $param['attributes'] . ' />';
|
| 2866 |
+
$html .= '<label for="wdform_' . $id1 . '_ss' . $form_id . '" class="mini_label">' . $w_mini_labels[2] . '</label>';
|
| 2867 |
+
$html .= '</div>';
|
| 2868 |
+
}
|
| 2869 |
+
if ( $param['w_time_type'] == '12' ) {
|
| 2870 |
+
if ( (isset($_POST['wdform_' . $id1 . "_am_pm" . $form_id]) ? esc_html($_POST['wdform_' . $id1 . "_am_pm" . $form_id]) : $param['w_am_pm']) == 'am' ) {
|
| 2871 |
+
$am_ = "selected=\"selected\"";
|
| 2872 |
+
$pm_ = "";
|
| 2873 |
}
|
| 2874 |
+
else {
|
| 2875 |
+
$am_ = "";
|
| 2876 |
+
$pm_ = "selected=\"selected\"";
|
| 2877 |
+
}
|
| 2878 |
+
$html .= '<div class="wd-flex wd-flex-column"> </div>';
|
| 2879 |
+
$html .= '<div class="wd-flex wd-flex-column">';
|
| 2880 |
+
$html .= '<select class="am_pm_select" name="wdform_' . $id1 . '_am_pm' . $form_id . '" id="wdform_' . $id1 . '_am_pm' . $form_id . '" ' . $param['attributes'] . '>';
|
| 2881 |
+
$html .= '<option value="am" ' . $am_ . '>' . __('AM', WDFM()->prefix) . '</option>';
|
| 2882 |
+
$html .= '<option value="pm" ' . $pm_ . '>' . __('PM', WDFM()->prefix) . '</option>';
|
| 2883 |
+
$html .= '</select>';
|
| 2884 |
+
$html .= '<label class="mini_label">' . $w_mini_labels[3] . '</label>';
|
| 2885 |
+
$html .= '</div>';
|
| 2886 |
+
}
|
| 2887 |
|
| 2888 |
+
// Generate field.
|
| 2889 |
+
$rep = $this->wdform_field($type, $param, $row, $html);
|
| 2890 |
+
return $rep;
|
| 2891 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2892 |
|
| 2893 |
+
/**
|
| 2894 |
+
* Free 2
|
| 2895 |
+
*/
|
| 2896 |
+
private function type_country($params, $row, $form_id, $id1, $type, $param) {
|
| 2897 |
+
$params_names = array(
|
| 2898 |
+
'w_field_label_size',
|
| 2899 |
+
'w_field_label_pos',
|
| 2900 |
+
'w_size',
|
| 2901 |
+
'w_countries',
|
| 2902 |
+
'w_required',
|
| 2903 |
+
'w_class',
|
| 2904 |
+
);
|
| 2905 |
+
$temp = $params;
|
| 2906 |
+
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
| 2907 |
+
$params_names = array(
|
| 2908 |
+
'w_field_label_size',
|
| 2909 |
+
'w_field_label_pos',
|
| 2910 |
+
'w_hide_label',
|
| 2911 |
+
'w_size',
|
| 2912 |
+
'w_countries',
|
| 2913 |
+
'w_required',
|
| 2914 |
+
'w_class',
|
| 2915 |
+
);
|
| 2916 |
+
}
|
| 2917 |
+
foreach ( $params_names as $params_name ) {
|
| 2918 |
+
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 2919 |
+
$param[$params_name] = $temp[0];
|
| 2920 |
+
$temp = $temp[1];
|
| 2921 |
+
}
|
| 2922 |
+
if ( $temp ) {
|
| 2923 |
+
$temp = explode('*:*w_attr_name*:*', $temp);
|
| 2924 |
+
$attrs = array_slice($temp, 0, count($temp) - 1);
|
| 2925 |
+
foreach ( $attrs as $attr ) {
|
| 2926 |
+
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 2927 |
+
}
|
| 2928 |
+
}
|
| 2929 |
+
$param['w_countries'] = explode('***', $param['w_countries']);
|
| 2930 |
+
$post_value = isset($_POST["counter" . $form_id]) ? esc_html($_POST["counter" . $form_id]) : NULL;
|
|
|
|
|
|
|
|
|
|
| 2931 |
|
| 2932 |
+
$param['id'] = $id1;
|
| 2933 |
+
$param['w_class'] .= ' wd-flex-row';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2934 |
|
| 2935 |
+
$selected = '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2936 |
|
| 2937 |
+
$html = '<select class="wd-width-100" id="wdform_' . $id1 . '_element' . $form_id . '" name="wdform_' . $id1 . '_element' . $form_id . '" ' . $param['attributes'] . '>';
|
| 2938 |
+
foreach ( $param['w_countries'] as $key => $choice ) {
|
| 2939 |
+
if ( isset($post_value) ) {
|
| 2940 |
+
$selected = (htmlspecialchars($choice) == htmlspecialchars(isset($_POST['wdform_' . $id1 . "_element" . $form_id]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . "_element" . $form_id])) : "") ? 'selected="selected"' : '');
|
| 2941 |
}
|
| 2942 |
+
$choice_value = $choice;
|
| 2943 |
+
$html .= '<option value="' . $choice_value . '" ' . $selected . '>' . $choice . '</option>';
|
| 2944 |
}
|
| 2945 |
+
$html .= '</select>';
|
| 2946 |
|
| 2947 |
+
// Generate field.
|
| 2948 |
+
$rep = $this->wdform_field($type, $param, $row, $html);
|
| 2949 |
+
return $rep;
|
| 2950 |
}
|
| 2951 |
|
| 2952 |
+
/**
|
| 2953 |
+
* Free 2
|
| 2954 |
+
*/
|
| 2955 |
+
private function type_spinner($params, $row, $form_id, $id1, $type, $param) {
|
| 2956 |
+
wp_enqueue_script('jquery-ui-spinner');
|
| 2957 |
+
|
| 2958 |
+
$params_names = array(
|
| 2959 |
+
'w_field_label_size',
|
| 2960 |
+
'w_field_label_pos',
|
| 2961 |
+
'w_field_width',
|
| 2962 |
+
'w_field_min_value',
|
| 2963 |
+
'w_field_max_value',
|
| 2964 |
+
'w_field_step',
|
| 2965 |
+
'w_field_value',
|
| 2966 |
+
'w_required',
|
| 2967 |
+
'w_class',
|
| 2968 |
+
);
|
| 2969 |
+
$temp = $params;
|
| 2970 |
+
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
| 2971 |
+
$params_names = array(
|
| 2972 |
+
'w_field_label_size',
|
| 2973 |
+
'w_field_label_pos',
|
| 2974 |
+
'w_hide_label',
|
| 2975 |
+
'w_field_width',
|
| 2976 |
+
'w_field_min_value',
|
| 2977 |
+
'w_field_max_value',
|
| 2978 |
+
'w_field_step',
|
| 2979 |
+
'w_field_value',
|
| 2980 |
+
'w_required',
|
| 2981 |
+
'w_class',
|
| 2982 |
+
);
|
| 2983 |
+
}
|
| 2984 |
+
foreach ( $params_names as $params_name ) {
|
| 2985 |
+
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 2986 |
+
$param[$params_name] = $temp[0];
|
| 2987 |
+
$temp = $temp[1];
|
| 2988 |
+
}
|
| 2989 |
+
if ( $temp ) {
|
| 2990 |
+
$temp = explode('*:*w_attr_name*:*', $temp);
|
| 2991 |
+
$attrs = array_slice($temp, 0, count($temp) - 1);
|
| 2992 |
+
foreach ( $attrs as $attr ) {
|
| 2993 |
+
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 2994 |
+
}
|
| 2995 |
+
}
|
| 2996 |
+
$param['w_field_value'] = (isset($_POST['wdform_' . $id1 . '_element' . $form_id]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . '_element' . $form_id])) : $param['w_field_value']);
|
| 2997 |
|
| 2998 |
+
$param['id'] = $id1;
|
| 2999 |
+
$param['w_class'] .= ' wd-flex-row';
|
| 3000 |
+
|
| 3001 |
+
$html = '<input type="number"
|
| 3002 |
+
name="wdform_' . $id1 . '_element' . $form_id . '"
|
| 3003 |
+
id="wdform_' . $id1 . '_element' . $form_id . '"
|
| 3004 |
+
class="wd-type-number"
|
| 3005 |
+
onkeyup="wd_validate(this)"
|
| 3006 |
+
data-valid-type="number"
|
| 3007 |
+
data-form-id="' . $form_id . '"
|
| 3008 |
+
data-wdid="' . $id1 . '"
|
| 3009 |
+
style="width: ' . $param['w_field_width'] . 'px;"
|
| 3010 |
+
value="' . ($param['w_field_value'] != 'null' ? $param['w_field_value'] : '') . '"
|
| 3011 |
+
' . $param['attributes'] . ' />';
|
| 3012 |
+
|
| 3013 |
+
// Generate field.
|
| 3014 |
+
$rep = $this->wdform_field($type, $param, $row, $html);
|
| 3015 |
+
return $rep;
|
| 3016 |
}
|
| 3017 |
+
|
| 3018 |
+
/**
|
| 3019 |
+
* Free 2
|
| 3020 |
+
*/
|
| 3021 |
+
private function type_star_rating($params, $row, $form_id, $id1, $type, $param) {
|
| 3022 |
+
$params_names = array(
|
| 3023 |
+
'w_field_label_size',
|
| 3024 |
+
'w_field_label_pos',
|
| 3025 |
+
'w_field_label_col',
|
| 3026 |
+
'w_star_amount',
|
| 3027 |
+
'w_required',
|
| 3028 |
+
'w_class',
|
| 3029 |
+
);
|
| 3030 |
+
$temp = $params;
|
| 3031 |
+
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
| 3032 |
+
$params_names = array(
|
| 3033 |
+
'w_field_label_size',
|
| 3034 |
+
'w_field_label_pos',
|
| 3035 |
+
'w_hide_label',
|
| 3036 |
+
'w_field_label_col',
|
| 3037 |
+
'w_star_amount',
|
| 3038 |
+
'w_required',
|
| 3039 |
+
'w_class',
|
| 3040 |
+
);
|
| 3041 |
+
}
|
| 3042 |
+
foreach ( $params_names as $params_name ) {
|
| 3043 |
+
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 3044 |
+
$param[$params_name] = $temp[0];
|
| 3045 |
+
$temp = $temp[1];
|
| 3046 |
+
}
|
| 3047 |
+
if ( $temp ) {
|
| 3048 |
+
$temp = explode('*:*w_attr_name*:*', $temp);
|
| 3049 |
+
$attrs = array_slice($temp, 0, count($temp) - 1);
|
| 3050 |
+
foreach ( $attrs as $attr ) {
|
| 3051 |
+
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 3052 |
+
}
|
| 3053 |
+
}
|
| 3054 |
+
$images = '';
|
| 3055 |
+
for ( $i = 0; $i < $param['w_star_amount']; $i++ ) {
|
| 3056 |
+
$images .= '<img id="wdform_' . $id1 . '_star_' . $i . '_' . $form_id . '" src="' . WDFM()->plugin_url . '/images/star.png" />';
|
| 3057 |
+
}
|
| 3058 |
+
|
| 3059 |
+
$param['id'] = '';
|
| 3060 |
+
$param['w_class'] .= ' wd-flex-row';
|
| 3061 |
+
|
| 3062 |
+
$html = '<div id="wdform_' . $id1 . '_element' . $form_id . '" ' . $param['attributes'] . '>';
|
| 3063 |
+
for ( $i = 0; $i < $param['w_star_amount']; $i++ ) {
|
| 3064 |
+
$html .= '<img id="wdform_' . $id1 . '_star_' . $i . '_' . $form_id . '" src="' . WDFM()->plugin_url . '/images/star.png" />';
|
| 3065 |
+
}
|
| 3066 |
+
$html .= '</div>';
|
| 3067 |
+
$html .= '<input type="hidden" value="" id="wdform_' . $id1 . '_selected_star_amount' . $form_id . '" name="wdform_' . $id1 . '_selected_star_amount' . $form_id . '" />';
|
| 3068 |
+
|
| 3069 |
+
// Generate field.
|
| 3070 |
+
$rep = $this->wdform_field($type, $param, $row, $html);
|
| 3071 |
+
return $rep;
|
| 3072 |
}
|
| 3073 |
+
|
| 3074 |
+
/**
|
| 3075 |
+
* Free 2
|
| 3076 |
+
*/
|
| 3077 |
+
private function type_scale_rating($params, $row, $form_id, $id1, $type, $param) {
|
| 3078 |
+
$params_names = array(
|
| 3079 |
+
'w_field_label_size',
|
| 3080 |
+
'w_field_label_pos',
|
| 3081 |
+
'w_mini_labels',
|
| 3082 |
+
'w_scale_amount',
|
| 3083 |
+
'w_required',
|
| 3084 |
+
'w_class',
|
| 3085 |
+
);
|
| 3086 |
+
$temp = $params;
|
| 3087 |
+
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
| 3088 |
+
$params_names = array(
|
| 3089 |
+
'w_field_label_size',
|
| 3090 |
+
'w_field_label_pos',
|
| 3091 |
+
'w_hide_label',
|
| 3092 |
+
'w_mini_labels',
|
| 3093 |
+
'w_scale_amount',
|
| 3094 |
+
'w_required',
|
| 3095 |
+
'w_class',
|
| 3096 |
+
);
|
| 3097 |
+
}
|
| 3098 |
+
foreach ( $params_names as $params_name ) {
|
| 3099 |
+
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 3100 |
+
$param[$params_name] = $temp[0];
|
| 3101 |
+
$temp = $temp[1];
|
| 3102 |
+
}
|
| 3103 |
+
if ( $temp ) {
|
| 3104 |
+
$temp = explode('*:*w_attr_name*:*', $temp);
|
| 3105 |
+
$attrs = array_slice($temp, 0, count($temp) - 1);
|
| 3106 |
+
foreach ( $attrs as $attr ) {
|
| 3107 |
+
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 3108 |
+
}
|
| 3109 |
+
}
|
| 3110 |
+
$w_mini_labels = explode('***', $param['w_mini_labels']);
|
| 3111 |
+
$numbers = '';
|
| 3112 |
+
$radio_buttons = '';
|
| 3113 |
+
$to_check = 0;
|
| 3114 |
+
$post_value = isset($_POST['wdform_' . $id1 . '_scale_radio' . $form_id]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . '_scale_radio' . $form_id])) : NULL;
|
| 3115 |
+
if ( isset($post_value) ) {
|
| 3116 |
+
$to_check = $post_value;
|
| 3117 |
+
}
|
| 3118 |
+
for ( $i = 1; $i <= $param['w_scale_amount']; $i++ ) {
|
| 3119 |
+
$numbers .= '<div class="wd-table-cell fm-align-center"><span>' . $i . '</span></div>';
|
| 3120 |
+
$radio_buttons .= '<div class="wd-table-cell fm-align-center"><div class="radio-div"><input id="wdform_' . $id1 . '_scale_radio' . $form_id . '_' . $i . '" name="wdform_' . $id1 . '_scale_radio' . $form_id . '" value="' . $i . '" type="radio" ' . ($to_check == $i ? 'checked="checked"' : '') . ' /><label for="wdform_' . $id1 . '_scale_radio' . $form_id . '_' . $i . '"><span></span></label></div></div>';
|
| 3121 |
+
}
|
| 3122 |
+
|
| 3123 |
+
$param['id'] = '';
|
| 3124 |
+
$param['w_class'] .= ' wd-flex-row';
|
| 3125 |
+
|
| 3126 |
+
$html = '<div id="wdform_' . $id1 . '_element' . $form_id . '" class="wd-flex wd-flex-row wd-align-items-center wd-flex-wrap" ' . $param['attributes'] . '>';
|
| 3127 |
+
$html .= '<label class="mini_label">' . $w_mini_labels[0] . '</label>';
|
| 3128 |
+
for ( $i = 1; $i <= $param['w_scale_amount']; $i++ ) {
|
| 3129 |
+
$html .= '<div class="wd-flex wd-flex-column wd-align-items-center">';
|
| 3130 |
+
$html .= '<span>' . $i . '</span>';
|
| 3131 |
+
$html .= '<div class="radio-div">';
|
| 3132 |
+
$html .= '<input id="wdform_' . $id1 . '_scale_radio' . $form_id . '_' . $i . '" name="wdform_' . $id1 . '_scale_radio' . $form_id . '" value="' . $i . '" type="radio" ' . ($to_check == $i ? 'checked="checked"' : '') . ' />';
|
| 3133 |
+
$html .= '<label for="wdform_' . $id1 . '_scale_radio' . $form_id . '_' . $i . '"><span></span></label>';
|
| 3134 |
+
$html .= '</div>';
|
| 3135 |
+
$html .= '</div>';
|
| 3136 |
+
}
|
| 3137 |
+
$html .= '<label class="mini_label">' . $w_mini_labels[1] . '</label>';
|
| 3138 |
+
$html .= '</div>';
|
| 3139 |
+
|
| 3140 |
+
// Generate field.
|
| 3141 |
+
$rep = $this->wdform_field($type, $param, $row, $html);
|
| 3142 |
+
return $rep;
|
| 3143 |
}
|
| 3144 |
+
|
| 3145 |
+
/**
|
| 3146 |
+
* Free 2
|
| 3147 |
+
*/
|
| 3148 |
+
private function type_slider($params, $row, $form_id, $id1, $type, $param) {
|
| 3149 |
+
wp_enqueue_script('jquery-ui-slider');
|
| 3150 |
+
|
| 3151 |
+
$params_names = array(
|
| 3152 |
+
'w_field_label_size',
|
| 3153 |
+
'w_field_label_pos',
|
| 3154 |
+
'w_field_width',
|
| 3155 |
+
'w_field_min_value',
|
| 3156 |
+
'w_field_max_value',
|
| 3157 |
+
'w_field_value',
|
| 3158 |
+
'w_required',
|
| 3159 |
+
'w_class',
|
| 3160 |
+
);
|
| 3161 |
+
$temp = $params;
|
| 3162 |
+
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
| 3163 |
+
$params_names = array(
|
| 3164 |
+
'w_field_label_size',
|
| 3165 |
+
'w_field_label_pos',
|
| 3166 |
+
'w_hide_label',
|
| 3167 |
+
'w_field_width',
|
| 3168 |
+
'w_field_min_value',
|
| 3169 |
+
'w_field_max_value',
|
| 3170 |
+
'w_field_value',
|
| 3171 |
+
'w_required',
|
| 3172 |
+
'w_class',
|
| 3173 |
+
);
|
| 3174 |
+
}
|
| 3175 |
+
foreach ( $params_names as $params_name ) {
|
| 3176 |
+
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 3177 |
+
$param[$params_name] = $temp[0];
|
| 3178 |
+
$temp = $temp[1];
|
| 3179 |
+
}
|
| 3180 |
+
if ( $temp ) {
|
| 3181 |
+
$temp = explode('*:*w_attr_name*:*', $temp);
|
| 3182 |
+
$attrs = array_slice($temp, 0, count($temp) - 1);
|
| 3183 |
+
foreach ( $attrs as $attr ) {
|
| 3184 |
+
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 3185 |
+
}
|
| 3186 |
+
}
|
| 3187 |
+
$param['w_field_value'] = (isset($_POST['wdform_' . $id1 . '_slider_value' . $form_id]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . '_slider_value' . $form_id])) : $param['w_field_value']);
|
| 3188 |
+
|
| 3189 |
+
$param['id'] = '';
|
| 3190 |
+
$param['w_class'] .= ' wd-flex-column';
|
| 3191 |
+
|
| 3192 |
+
$html = '<input type="hidden" value="' . $param['w_field_value'] . '" id="wdform_' . $id1 . '_slider_value' . $form_id . '" name="wdform_' . $id1 . '_slider_value' . $form_id . '" />';
|
| 3193 |
+
$html .= '<div class="wd-width-100" name="' . $id1 . '_element' . $form_id . '" id="wdform_' . $id1 . '_element' . $form_id . '" style="max-width: ' . $param['w_field_width'] . 'px;" ' . $param['attributes'] . '></div>';
|
| 3194 |
+
$html .= '<div class="wd-flex wd-flex-row wd-width-100" style="max-width: ' . $param['w_field_width'] . 'px;" >';
|
| 3195 |
+
$html .= '<div class="wd-width-33 fm-align-left">';
|
| 3196 |
+
$html .= '<span id="wdform_' . $id1 . '_element_min' . $form_id . '" class="label">' . $param['w_field_min_value'] . '</span>';
|
| 3197 |
+
$html .= '</div>';
|
| 3198 |
+
$html .= '<div class="wd-width-33 fm-align-center">';
|
| 3199 |
+
$html .= '<span id="wdform_' . $id1 . '_element_value' . $form_id . '" class="label">' . $param['w_field_value'] . '</span>';
|
| 3200 |
+
$html .= '</div>';
|
| 3201 |
+
$html .= '<div class="wd-width-33 fm-align-right">';
|
| 3202 |
+
$html .= '<span id="wdform_' . $id1 . '_element_max' . $form_id . '" class="label">' . $param['w_field_max_value'] . '</span>';
|
| 3203 |
+
$html .= '</div>';
|
| 3204 |
+
$html .= '</div>';
|
| 3205 |
+
|
| 3206 |
+
// Generate field.
|
| 3207 |
+
$rep = $this->wdform_field($type, $param, $row, $html);
|
| 3208 |
+
return $rep;
|
| 3209 |
}
|
| 3210 |
+
|
| 3211 |
+
/**
|
| 3212 |
+
* Free 2
|
| 3213 |
+
*/
|
| 3214 |
+
private function type_range($params, $row, $form_id, $id1, $type, $param) {
|
| 3215 |
+
wp_enqueue_script('jquery-ui-spinner');
|
| 3216 |
+
|
| 3217 |
+
$params_names = array(
|
| 3218 |
+
'w_field_label_size',
|
| 3219 |
+
'w_field_label_pos',
|
| 3220 |
+
'w_field_range_width',
|
| 3221 |
+
'w_field_range_step',
|
| 3222 |
+
'w_field_value1',
|
| 3223 |
+
'w_field_value2',
|
| 3224 |
+
'w_mini_labels',
|
| 3225 |
+
'w_required',
|
| 3226 |
+
'w_class',
|
| 3227 |
+
);
|
| 3228 |
+
$temp = $params;
|
| 3229 |
+
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
| 3230 |
+
$params_names = array(
|
| 3231 |
+
'w_field_label_size',
|
| 3232 |
+
'w_field_label_pos',
|
| 3233 |
+
'w_hide_label',
|
| 3234 |
+
'w_field_range_width',
|
| 3235 |
+
'w_field_range_step',
|
| 3236 |
+
'w_field_value1',
|
| 3237 |
+
'w_field_value2',
|
| 3238 |
+
'w_mini_labels',
|
| 3239 |
+
'w_required',
|
| 3240 |
+
'w_class',
|
| 3241 |
+
);
|
| 3242 |
+
}
|
| 3243 |
+
foreach ( $params_names as $params_name ) {
|
| 3244 |
+
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 3245 |
+
$param[$params_name] = $temp[0];
|
| 3246 |
+
$temp = $temp[1];
|
| 3247 |
+
}
|
| 3248 |
+
if ( $temp ) {
|
| 3249 |
+
$temp = explode('*:*w_attr_name*:*', $temp);
|
| 3250 |
+
$attrs = array_slice($temp, 0, count($temp) - 1);
|
| 3251 |
+
foreach ( $attrs as $attr ) {
|
| 3252 |
+
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 3253 |
+
}
|
| 3254 |
+
}
|
| 3255 |
+
$param['w_field_value1'] = (isset($_POST['wdform_' . $id1 . '_element' . $form_id . '0']) ? esc_html(stripslashes($_POST['wdform_' . $id1 . '_element' . $form_id . '0'])) : $param['w_field_value1']);
|
| 3256 |
+
$param['w_field_value2'] = (isset($_POST['wdform_' . $id1 . '_element' . $form_id . '1']) ? esc_html(stripslashes($_POST['wdform_' . $id1 . '_element' . $form_id . '1'])) : $param['w_field_value2']);
|
| 3257 |
+
$w_mini_labels = explode('***', $param['w_mini_labels']);
|
| 3258 |
+
|
| 3259 |
+
$param['id'] = 'wdform_' . $id1 . '_element' . $form_id . '0';
|
| 3260 |
+
$param['w_class'] .= ' wd-flex-row';
|
| 3261 |
+
|
| 3262 |
+
$html = '<div class="wd-flex wd-flex-row wd-flex-wrap">';
|
| 3263 |
+
$html .= '<div class="wd-flex wd-flex-column">';
|
| 3264 |
+
$html .= '<input type="text" value="' . ($param['w_field_value1'] != 'null' ? $param['w_field_value1'] : '') . '" name="wdform_' . $id1 . '_element' . $form_id . '0" id="wdform_' . $id1 . '_element' . $form_id . '0" style="width: ' . $param['w_field_range_width'] . 'px;" ' . $param['attributes'] . ' />';
|
| 3265 |
+
$html .= '<label class="mini_label" id="wdform_' . $id1 . '_mini_label_from0" for="wdform_' . $id1 . '_element' . $form_id . '0">' . $w_mini_labels[0] . '</label>';
|
| 3266 |
+
$html .= '</div>';
|
| 3267 |
+
$html .= '<div class="wd-name-separator"></div>';
|
| 3268 |
+
$html .= '<div class="wd-flex wd-flex-column">';
|
| 3269 |
+
$html .= '<input type="text" value="' . ($param['w_field_value2'] != 'null' ? $param['w_field_value2'] : '') . '" name="wdform_' . $id1 . '_element' . $form_id . '1" id="wdform_' . $id1 . '_element' . $form_id . '1" style="width: ' . $param['w_field_range_width'] . 'px;" ' . $param['attributes'] . ' />';
|
| 3270 |
+
$html .= '<label class="mini_label" id="wdform_' . $id1 . '_mini_label_to" for="wdform_' . $id1 . '_element' . $form_id . '1">' . $w_mini_labels[1] . '</label>';
|
| 3271 |
+
$html .= '</div>';
|
| 3272 |
+
$html .= '</div>';
|
| 3273 |
+
|
| 3274 |
+
// Generate field.
|
| 3275 |
+
$rep = $this->wdform_field($type, $param, $row, $html);
|
| 3276 |
+
return $rep;
|
| 3277 |
}
|
| 3278 |
+
|
| 3279 |
+
/**
|
| 3280 |
+
* Free 2
|
| 3281 |
+
*/
|
| 3282 |
+
private function type_grading($params, $row, $form_id, $id1, $type, $param) {
|
| 3283 |
+
$params_names = array(
|
| 3284 |
+
'w_field_label_size',
|
| 3285 |
+
'w_field_label_pos',
|
| 3286 |
+
'w_items',
|
| 3287 |
+
'w_total',
|
| 3288 |
+
'w_required',
|
| 3289 |
+
'w_class',
|
| 3290 |
+
);
|
| 3291 |
+
$temp = $params;
|
| 3292 |
+
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
| 3293 |
+
$params_names = array(
|
| 3294 |
+
'w_field_label_size',
|
| 3295 |
+
'w_field_label_pos',
|
| 3296 |
+
'w_hide_label',
|
| 3297 |
+
'w_items',
|
| 3298 |
+
'w_total',
|
| 3299 |
+
'w_required',
|
| 3300 |
+
'w_class',
|
| 3301 |
+
);
|
| 3302 |
+
}
|
| 3303 |
+
foreach ( $params_names as $params_name ) {
|
| 3304 |
+
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 3305 |
+
$param[$params_name] = $temp[0];
|
| 3306 |
+
$temp = $temp[1];
|
| 3307 |
+
}
|
| 3308 |
+
if ( $temp ) {
|
| 3309 |
+
$temp = explode('*:*w_attr_name*:*', $temp);
|
| 3310 |
+
$attrs = array_slice($temp, 0, count($temp) - 1);
|
| 3311 |
+
foreach ( $attrs as $attr ) {
|
| 3312 |
+
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 3313 |
+
}
|
| 3314 |
+
}
|
| 3315 |
+
$w_items = explode('***', $param['w_items']);
|
| 3316 |
+
|
| 3317 |
+
$param['id'] = 'wdform_' . $id1 . '_element' . $form_id . '_0';
|
| 3318 |
+
$param['w_class'] .= ' wd-flex-row';
|
| 3319 |
+
|
| 3320 |
+
$html = '<input type="hidden" value="' . $param['w_total'] . '" name="wdform_' . $id1 . '_grading_total' . $form_id . '" id="wdform_' . $id1 . '_grading_total' . $form_id . '" />';
|
| 3321 |
+
$html .= '<div id="wdform_' . $id1 . '_element' . $form_id . '">';
|
| 3322 |
+
for ( $i = 0; $i < count($w_items); $i++ ) {
|
| 3323 |
+
$value = (isset($_POST['wdform_' . $id1 . '_element' . $form_id . '_' . $i]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . '_element' . $form_id . '_' . $i])) : '');
|
| 3324 |
+
$html .= '<div class="wdform_grading">';
|
| 3325 |
+
$html .= '<input type="text" id="wdform_' . $id1 . '_element' . $form_id . '_' . $i . '" name="wdform_' . $id1 . '_element' . $form_id . '_' . $i . '" value="' . $value . '" ' . $param['attributes'] . ' />';
|
| 3326 |
+
$html .= '<label class="wdform-ch-rad-label" for="wdform_' . $id1 . '_element' . $form_id . '_' . $i . '">' . $w_items[$i] . '</label>';
|
| 3327 |
+
$html .= '</div>';
|
| 3328 |
+
}
|
| 3329 |
+
$html .= '<div id="wdform_' . $id1 . '_element_total_div' . $form_id . '" class="grading_div' . ($param['w_total'] == '0' ? ' wd-hidden' : '') . '">';
|
| 3330 |
+
$html .= __('Total', WDFM()->prefix) . ': ';
|
| 3331 |
+
$html .= '<span id="wdform_' . $id1 . '_sum_element' . $form_id . '">0</span>';
|
| 3332 |
+
$html .= '/';
|
| 3333 |
+
$html .= '<span id="wdform_' . $id1 . '_total_element' . $form_id . '">' . $param['w_total'] . '</span>';
|
| 3334 |
+
$html .= '<span id="wdform_' . $id1 . '_text_element' . $form_id . '"></span>';
|
| 3335 |
+
$html .= '</div>';
|
| 3336 |
+
$html .= '</div>';
|
| 3337 |
+
|
| 3338 |
+
// Generate field.
|
| 3339 |
+
$rep = $this->wdform_field($type, $param, $row, $html);
|
| 3340 |
+
return $rep;
|
| 3341 |
}
|
| 3342 |
+
|
| 3343 |
+
/**
|
| 3344 |
+
* Free 2
|
| 3345 |
+
*/
|
| 3346 |
+
private function type_matrix($params, $row, $form_id, $id1, $type, $param) {
|
| 3347 |
+
$params_names = array(
|
| 3348 |
+
'w_field_label_size',
|
| 3349 |
+
'w_field_label_pos',
|
| 3350 |
+
'w_field_input_type',
|
| 3351 |
+
'w_rows',
|
| 3352 |
+
'w_columns',
|
| 3353 |
+
'w_required',
|
| 3354 |
+
'w_class',
|
| 3355 |
+
'w_textbox_size',
|
| 3356 |
+
);
|
| 3357 |
+
$temp = $params;
|
| 3358 |
+
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
| 3359 |
+
$params_names = array(
|
| 3360 |
+
'w_field_label_size',
|
| 3361 |
+
'w_field_label_pos',
|
| 3362 |
+
'w_hide_label',
|
| 3363 |
+
'w_field_input_type',
|
| 3364 |
+
'w_rows',
|
| 3365 |
+
'w_columns',
|
| 3366 |
+
'w_required',
|
| 3367 |
+
'w_class',
|
| 3368 |
+
'w_textbox_size',
|
| 3369 |
+
);
|
| 3370 |
+
}
|
| 3371 |
+
foreach ( $params_names as $params_name ) {
|
| 3372 |
+
$temp = explode('*:*' . $params_name . '*:*', $temp);
|
| 3373 |
+
$param[$params_name] = $temp[0];
|
| 3374 |
+
$temp = $temp[1];
|
| 3375 |
+
}
|
| 3376 |
+
if ( $temp ) {
|
| 3377 |
+
$temp = explode('*:*w_attr_name*:*', $temp);
|
| 3378 |
+
$attrs = array_slice($temp, 0, count($temp) - 1);
|
| 3379 |
+
foreach ( $attrs as $attr ) {
|
| 3380 |
+
$param['attributes'] = $param['attributes'] . ' ' . $attr;
|
| 3381 |
+
}
|
| 3382 |
+
}
|
| 3383 |
+
$param['w_textbox_size'] = isset($param['w_textbox_size']) ? $param['w_textbox_size'] : '120';
|
| 3384 |
+
$w_rows = explode('***', $param['w_rows']);
|
| 3385 |
+
$w_columns = explode('***', $param['w_columns']);
|
| 3386 |
+
$column_labels = '';
|
| 3387 |
+
for ( $i = 1; $i < count($w_columns); $i++ ) {
|
| 3388 |
+
$column_labels .= '<div><label class="wdform-ch-rad-label">' . $w_columns[$i] . '</label></div>';
|
| 3389 |
+
}
|
| 3390 |
+
$rows_columns = '';
|
| 3391 |
+
for ( $i = 1; $i < count($w_rows); $i++ ) {
|
| 3392 |
+
$rows_columns .= '<div class="wdform-matrix-row' . ($i % 2) . '" row="' . $i . '"><div class="wdform-matrix-column"><label class="wdform-ch-rad-label" >' . $w_rows[$i] . '</label></div>';
|
| 3393 |
+
for ( $k = 1; $k < count($w_columns); $k++ ) {
|
| 3394 |
+
$rows_columns .= '<div class="wdform-matrix-cell">';
|
| 3395 |
+
if ( $param['w_field_input_type'] == 'radio' ) {
|
| 3396 |
+
$to_check = 0;
|
| 3397 |
+
$post_value = isset($_POST['wdform_' . $id1 . '_input_element' . $form_id . '' . $i]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . '_input_element' . $form_id . '' . $i])) : NULL;
|
| 3398 |
+
if ( isset($post_value) ) {
|
| 3399 |
+
$to_check = $post_value;
|
| 3400 |
+
}
|
| 3401 |
+
$rows_columns .= '<div class="radio-div"><input id="wdform_' . $id1 . '_input_element' . $form_id . '' . $i . '_' . $k . '" type="radio" name="wdform_' . $id1 . '_input_element' . $form_id . '' . $i . '" value="' . $i . '_' . $k . '" ' . ($to_check == $i . '_' . $k ? 'checked="checked"' : '') . '><label for="wdform_' . $id1 . '_input_element' . $form_id . '' . $i . '_' . $k . '"><span></span></label></div>';
|
| 3402 |
+
}
|
| 3403 |
+
else {
|
| 3404 |
+
if ( $param['w_field_input_type'] == 'checkbox' ) {
|
| 3405 |
+
$to_check = 0;
|
| 3406 |
+
$post_value = isset($_POST['wdform_' . $id1 . '_input_element' . $form_id . '' . $i . '_' . $k]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . '_input_element' . $form_id . '' . $i . '_' . $k])) : NULL;
|
| 3407 |
+
if ( isset($post_value) ) {
|
| 3408 |
+
$to_check = $post_value;
|
| 3409 |
+
}
|
| 3410 |
+
$rows_columns .= '<div class="checkbox-div"><input id="wdform_' . $id1 . '_input_element' . $form_id . '' . $i . '_' . $k . '" type="checkbox" name="wdform_' . $id1 . '_input_element' . $form_id . '' . $i . '_' . $k . '" value="1" ' . ($to_check == "1" ? 'checked="checked"' : '') . '><label for="wdform_' . $id1 . '_input_element' . $form_id . '' . $i . '_' . $k . '"><span></span></label></div>';
|
| 3411 |
+
}
|
| 3412 |
+
else {
|
| 3413 |
+
if ( $param['w_field_input_type'] == 'text' ) {
|
| 3414 |
+
$rows_columns .= '<input id="wdform_' . $id1 . '_input_element' . $form_id . '' . $i . '_' . $k . '" type="text" name="wdform_' . $id1 . '_input_element' . $form_id . '' . $i . '_' . $k . '" value="' . (isset($_POST['wdform_' . $id1 . '_input_element' . $form_id . '' . $i . '_' . $k]) ? esc_html(stripslashes($_POST['wdform_' . $id1 . '_input_element' . $form_id . '' . $i . '_' . $k])) : "") . '" style="width:' . $param['w_textbox_size'] . 'px">';
|
| 3415 |
+
}
|
| 3416 |
+
else {
|
| 3417 |
+
if ( $param['w_field_input_type'] == 'select' ) {
|
| 3418 |
+
$rows_columns .= '<select id="wdform_' . $id1 . '_select_yes_no' . $form_id . '' . $i . '_' . $k . '" name="wdform_' . $id1 . '_select_yes_no' . $form_id . '' . $i . '_' . $k . '" ><option value="" ' . (isset($_POST['wdform_' . $id1 . '_select_yes_no' . $form_id . '' . $i . '_' . $k]) && esc_html($_POST['wdform_' . $id1 . '_select_yes_no' . $form_id . '' . $i . '_' . $k]) == "" ? "selected=\"selected\"" : "") . '> </option><option value="yes" ' . (isset($_POST['wdform_' . $id1 . '_select_yes_no' . $form_id . '' . $i . '_' . $k]) && esc_html($_POST['wdform_' . $id1 . '_select_yes_no' . $form_id . '' . $i . '_' . $k]) == "yes" ? "selected=\"selected\"" : "") . '>Yes</option><option value="no" ' . (isset($_POST['wdform_' . $id1 . '_select_yes_no' . $form_id . '' . $i . '_' . $k]) && esc_html($_POST['wdform_' . $id1 . '_select_yes_no' . $form_id . '' . $i . '_' . $k]) == "no" ? "selected=\"selected\"" : "") . '>No</option></select>';
|
| 3419 |
+
}
|
| 3420 |
+
}
|
| 3421 |
+
}
|
| 3422 |
+
}
|
| 3423 |
+
$rows_columns .= '</div>';
|
| 3424 |
+
}
|
| 3425 |
+
$rows_columns .= '</div>';
|
| 3426 |
+
}
|
| 3427 |
+
|
| 3428 |
+
$param['id'] = '';
|
| 3429 |
+
$param['w_class'] .= ' wd-flex-row';
|
| 3430 |
+
|
| 3431 |
+
$html = '<div id="wdform_' . $id1 . '_element' . $form_id . '" class="wd-width-100 wdform-matrix-table" ' . $param['attributes'] . '>';
|
| 3432 |
+
$html .= '<div class="wd-table-group">';
|
| 3433 |
+
$html .= '<div class="wdform-matrix-head">';
|
| 3434 |
+
$html .= '<div class="wd-table-cell"></div>';
|
| 3435 |
+
$html .= $column_labels;
|
| 3436 |
+
$html .= '</div>';
|
| 3437 |
+
$html .= $rows_columns;
|
| 3438 |
+
$html .= '</div>';
|
| 3439 |
+
$html .= '</div>';
|
| 3440 |
+
|
| 3441 |
+
// Generate field.
|
| 3442 |
+
$rep = $this->wdform_field($type, $param, $row, $html);
|
| 3443 |
+
return $rep;
|
| 3444 |
}
|
| 3445 |
|
| 3446 |
/**
|
js/add_field.js
CHANGED
|
@@ -6,23 +6,18 @@ jQuery(window).load(function () {
|
|
| 6 |
jQuery(".first-time-use").show();
|
| 7 |
}
|
| 8 |
// Space between element and top of screen (when scrolling)
|
| 9 |
-
var marginTop = 50;
|
| 10 |
-
var scrollToTop = marginTop;
|
| 11 |
-
var contentHeight;
|
| 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(
|
| 15 |
var scrollTop = jQuery(window).scrollTop();
|
| 16 |
-
if ( scrollTop > edit_content_position) {
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
scrollToTop = marginTop;
|
| 23 |
}
|
| 24 |
-
|
| 25 |
-
jQuery('#add_field_cont').css( "top", scrollToTop);
|
| 26 |
}
|
| 27 |
});
|
| 28 |
});
|
|
@@ -1241,14 +1236,10 @@ function edit(id) {
|
|
| 1241 |
break;
|
| 1242 |
}
|
| 1243 |
case 'type_recaptcha': {
|
| 1244 |
-
w_public = '';
|
| 1245 |
-
w_private = '';
|
| 1246 |
-
w_theme = '';
|
| 1247 |
w_hide_label = document.getElementById(id + "_hide_labelform_id_temp").value;
|
| 1248 |
-
|
| 1249 |
-
|
| 1250 |
-
|
| 1251 |
-
type_recaptcha(id, w_field_label, w_field_label_size, w_field_label_pos, w_hide_label, w_public, w_private, w_theme, w_class, w_attr_name, w_attr_value);
|
| 1252 |
break;
|
| 1253 |
}
|
| 1254 |
case 'type_map': {
|
|
@@ -1469,7 +1460,7 @@ function add(key, after_edit, wdid) {
|
|
| 1469 |
var option = document.createElement('div');
|
| 1470 |
option.setAttribute("id", i + "_element_labelform_id_temp");
|
| 1471 |
option.style.color = 'red';
|
| 1472 |
-
option.innerHTML = "custom_" + i;
|
| 1473 |
wdform_row.appendChild(option);
|
| 1474 |
wdform_page = document.getElementById('form_id_tempform_view' + form_view);
|
| 1475 |
var arrows_body = '<span class="wdform_arrows_basic wdform_arrows_container">' +
|
|
@@ -1498,7 +1489,7 @@ function add(key, after_edit, wdid) {
|
|
| 1498 |
}
|
| 1499 |
var label = document.createElement('span');
|
| 1500 |
label.setAttribute("id", i + "_element_labelform_id_temp");
|
| 1501 |
-
label.innerHTML = "custom_" + i;
|
| 1502 |
label.style.cssText = 'display:none';
|
| 1503 |
wdform_field.appendChild(in_editor);
|
| 1504 |
beforeTr = wdform_page.lastChild;
|
|
@@ -1780,7 +1771,7 @@ function add(key, after_edit, wdid) {
|
|
| 1780 |
var option = document.createElement('option');
|
| 1781 |
option.setAttribute("id", i + "_sel_el_pos");
|
| 1782 |
option.setAttribute("value", i);
|
| 1783 |
-
option.innerHTML = "custom_" + i;
|
| 1784 |
l = document.getElementById('form_id_tempform_view' + form_view).childNodes.length;
|
| 1785 |
wdform_column = document.getElementById('form_id_tempform_view' + form_view).childNodes[l - 2].firstChild;
|
| 1786 |
var wdform_row = document.createElement('div');
|
|
@@ -1841,7 +1832,7 @@ function add(key, after_edit, wdid) {
|
|
| 1841 |
}
|
| 1842 |
var label = document.createElement('span');
|
| 1843 |
label.setAttribute("id", i + "_element_labelform_id_temp");
|
| 1844 |
-
label.innerHTML = "custom_" + i;
|
| 1845 |
label.style.color = 'red';
|
| 1846 |
wdform_row.appendChild(label);
|
| 1847 |
|
|
@@ -2387,8 +2378,8 @@ function create_option_container(label, input, id, visible) {
|
|
| 2387 |
return option_div;
|
| 2388 |
}
|
| 2389 |
|
| 2390 |
-
function create_advanced_options_container(advanced_options_container) {
|
| 2391 |
-
var element = jQuery('<div class="postbox closed"></div>');
|
| 2392 |
var content = jQuery('<button class="handlediv" type="button" aria-expanded="true" onclick="fm_toggle_postbox(this);"><span class="screen-reader-text">Toggle panel</span><span class="toggle-indicator" aria-hidden="true"></span></button><h2 class="hndle ui-sortable-handle" onclick="fm_toggle_postbox(this);"><span>Advanced options</span></h2>');
|
| 2393 |
element.append(content);
|
| 2394 |
element.append(advanced_options_container);
|
|
@@ -2580,7 +2571,7 @@ function create_field_size(i, w_size, first_field_id, second_field_id) {
|
|
| 2580 |
if (first_field_id == null) {
|
| 2581 |
first_field_id = '\'' + i + '_elementform_id_temp\'';
|
| 2582 |
}
|
| 2583 |
-
var label = jQuery('<label class="fm-field-label" for="edit_for_input_size">
|
| 2584 |
var input = jQuery('<input class="fm-width-100" type="text" id="edit_for_input_size" onKeyPress="return check_isnum(event)" onKeyUp="change_w_style(' + first_field_id + ', this.value, ' + second_field_id + ')" value="' + w_size + '" /><p class="description">' + form_maker.leave_empty + '</p>');
|
| 2585 |
return create_option_container(label, input);
|
| 2586 |
}
|
|
@@ -2589,7 +2580,7 @@ function create_field_label_size(i, w_field_label_size, first_field_id, second_f
|
|
| 2589 |
if (first_field_id == null) {
|
| 2590 |
first_field_id = '\'' + i + '_label_sectionform_id_temp\'';
|
| 2591 |
}
|
| 2592 |
-
var label = jQuery('<label class="fm-field-label" for="edit_for_label_size">Label
|
| 2593 |
var input = jQuery('<input class="fm-width-100" type="text" id="edit_for_label_size" onKeyPress="return check_isnum(event)" onKeyUp="change_w_style(' + first_field_id + ', this.value, ' + second_field_id + ')" value="' + w_field_label_size + '" /><p class="description">' + form_maker.leave_empty + '</p>');
|
| 2594 |
return create_option_container(label, input);
|
| 2595 |
}
|
|
@@ -3003,8 +2994,8 @@ function type_text(i, w_field_label, w_field_label_size, w_field_label_pos, w_hi
|
|
| 3003 |
advanced_options_container.append(create_readonly(i, w_readonly));
|
| 3004 |
advanced_options_container.append(create_unique_values(i, w_unique));
|
| 3005 |
advanced_options_container.append(create_regexp(i, w_regExp_status));
|
| 3006 |
-
advanced_options_container.append(create_custom_regexp(i, w_regExp_status, w_regExp_value));
|
| 3007 |
advanced_options_container.append(create_common_regexp(i, w_regExp_status, w_regExp_common));
|
|
|
|
| 3008 |
advanced_options_container.append(create_case_sensitive(i, w_regExp_status, w_regExp_arg));
|
| 3009 |
advanced_options_container.append(create_alert_message(i, w_regExp_status, w_regExp_alert));
|
| 3010 |
advanced_options_container.append(create_additional_attributes(i, w_attr_name));
|
|
@@ -3553,7 +3544,7 @@ function type_textarea(i, w_field_label, w_field_label_size, w_field_label_pos,
|
|
| 3553 |
}
|
| 3554 |
|
| 3555 |
function create_spinner_width(i, w_field_width) {
|
| 3556 |
-
var label = jQuery('<label class="fm-field-label" for="edit_for_spinner_width">
|
| 3557 |
var input = jQuery('<input class="fm-width-100" type="text" id="edit_for_spinner_width" onKeyPress="return check_isnum(event)" onKeyUp="change_spinner_width(this.value,' + i + ',\'form_id_temp\')" value="' + w_field_width + '" />');
|
| 3558 |
return create_option_container(label, input);
|
| 3559 |
}
|
|
@@ -4312,6 +4303,7 @@ function type_date_new(i, w_field_label, w_field_label_size, w_field_label_pos,
|
|
| 4312 |
firstDay: w_start_day,
|
| 4313 |
changeMonth: true,
|
| 4314 |
changeYear: true,
|
|
|
|
| 4315 |
showOtherMonths: true,
|
| 4316 |
selectOtherMonths: true,
|
| 4317 |
beforeShowDay: function (date) {
|
|
@@ -5501,13 +5493,69 @@ function create_keys(i, message) {
|
|
| 5501 |
return create_option_container(null, input);
|
| 5502 |
}
|
| 5503 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5504 |
function go_to_type_recaptcha(new_id) {
|
| 5505 |
-
|
| 5506 |
-
w_attr_value = [];
|
| 5507 |
-
type_recaptcha(new_id, 'Recaptcha Word Verification', '', 'top', 'yes', '', '', 'red', '', w_attr_name, w_attr_value);
|
| 5508 |
}
|
| 5509 |
|
| 5510 |
-
function type_recaptcha(i, w_field_label, w_field_label_size, w_field_label_pos, w_hide_label,
|
| 5511 |
jQuery("#element_type").val("type_recaptcha");
|
| 5512 |
delete_last_child();
|
| 5513 |
|
|
@@ -5517,16 +5565,16 @@ function type_recaptcha(i, w_field_label, w_field_label_size, w_field_label_pos,
|
|
| 5517 |
var edit_main_table = jQuery('<div id="edit_main_table"></div>');
|
| 5518 |
edit_div.append(edit_main_table);
|
| 5519 |
edit_main_table.append(create_field_type('type_recaptcha'));
|
| 5520 |
-
edit_main_table.append(
|
| 5521 |
-
edit_main_table.append(
|
| 5522 |
-
edit_main_table.append(create_hide_label(i, w_hide_label));
|
| 5523 |
edit_main_table.append(create_keys(i, 'To set up recaptcha keys click here'));
|
| 5524 |
|
| 5525 |
var advanced_options_container = jQuery('<div class="inside"></div>');
|
| 5526 |
-
edit_main_table.append(create_advanced_options_container(advanced_options_container));
|
|
|
|
|
|
|
|
|
|
| 5527 |
advanced_options_container.append(create_field_label_size(i, w_field_label_size));
|
| 5528 |
-
advanced_options_container.append(create_class(i, w_class));
|
| 5529 |
-
advanced_options_container.append(create_additional_attributes(i, w_attr_name));
|
| 5530 |
|
| 5531 |
// Preview.
|
| 5532 |
element = 'img';
|
|
@@ -5543,16 +5591,20 @@ function type_recaptcha(i, w_field_label, w_field_label_size, w_field_label_pos,
|
|
| 5543 |
adding_hide_label.setAttribute("name", i + "_hide_labelform_id_temp");
|
| 5544 |
adding_hide_label.setAttribute("id", i + "_hide_labelform_id_temp");
|
| 5545 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5546 |
var adding = document.createElement('div');
|
| 5547 |
adding.setAttribute("id", "wd_recaptchaform_id_temp");
|
| 5548 |
-
adding.setAttribute("
|
| 5549 |
-
adding.setAttribute("
|
| 5550 |
-
adding.setAttribute("theme", w_theme);
|
| 5551 |
|
| 5552 |
var adding_text = document.createElement('span');
|
| 5553 |
adding_text.style.color = "red";
|
| 5554 |
adding_text.style.fontStyle = "italic";
|
| 5555 |
-
adding_text.innerHTML =
|
| 5556 |
|
| 5557 |
adding.appendChild(adding_text);
|
| 5558 |
|
|
@@ -5591,16 +5643,19 @@ function type_recaptcha(i, w_field_label, w_field_label_size, w_field_label_pos,
|
|
| 5591 |
div_element.appendChild(adding_type);
|
| 5592 |
div_element.appendChild(adding_hide_label);
|
| 5593 |
div_element.appendChild(adding);
|
|
|
|
| 5594 |
div_field.appendChild(div_label);
|
| 5595 |
div_field.appendChild(div_element);
|
| 5596 |
|
| 5597 |
div.appendChild(div_field);
|
| 5598 |
div.appendChild(br3);
|
| 5599 |
main_td.appendChild(div);
|
| 5600 |
-
if (w_field_label_pos == "top")
|
| 5601 |
label_top(i);
|
| 5602 |
-
|
| 5603 |
-
|
|
|
|
|
|
|
| 5604 |
}
|
| 5605 |
|
| 5606 |
function create_submit_label(i, w_submit_title) {
|
|
@@ -6110,7 +6165,7 @@ function create_placeholder_name(i, w_title) {
|
|
| 6110 |
}
|
| 6111 |
|
| 6112 |
function create_field_size_name(i, w_size) {
|
| 6113 |
-
var label = jQuery('<label class="fm-field-label" for="edit_for_input_size">
|
| 6114 |
var input = jQuery('<input class="fm-width-100" type="text" id="edit_for_input_size" onKeyPress="return check_isnum(event)" onKeyUp="change_w_style(\'' + i + '_element_firstform_id_temp\', this.value); change_w_style(\'' + i + '_element_middleform_id_temp\', this.value); change_w_style(\'' + i + '_element_lastform_id_temp\', this.value)" value="' + w_size + '" /><p class="description">' + form_maker.leave_empty + '</p>');
|
| 6115 |
return create_option_container(label, input);
|
| 6116 |
}
|
|
@@ -6892,14 +6947,14 @@ function type_phone_new(i, w_field_label, w_field_label_size, w_field_label_pos,
|
|
| 6892 |
}
|
| 6893 |
|
| 6894 |
function create_address_size(i, w_size) {
|
| 6895 |
-
var label = jQuery('<label class="fm-field-label" for="edit_for_input_size">Overall
|
| 6896 |
var input = jQuery('<input class="fm-width-100" type="text" id="edit_for_input_size" onKeyPress="return check_isnum(event)" onKeyUp="change_w_style(\'' + i + '_div_address\', this.value)" value="' + w_size + '" /><p class="description">' + form_maker.leave_empty + '</p>');
|
| 6897 |
return create_option_container(label, input);
|
| 6898 |
}
|
| 6899 |
|
| 6900 |
function create_use_us_states_list(i, w_disabled_fields) {
|
| 6901 |
var label = jQuery('<label class="fm-field-label" for="el_us_states">Use list for US states</label>');
|
| 6902 |
-
var input = jQuery('<input type="checkbox" id="el_us_states" onclick="disable_fields(' + i + ',\'us_states\')"' + (w_disabled_fields[6] == 'yes' ? ' checked="checked"' : '') + ' />');
|
| 6903 |
return create_option_container(label, input);
|
| 6904 |
}
|
| 6905 |
|
|
@@ -7111,12 +7166,12 @@ function disable_fields(id, field) {
|
|
| 7111 |
function change_state_input(id, form_id) {
|
| 7112 |
if ( document.getElementById(id + "_country" + form_id)
|
| 7113 |
&& document.getElementById(id + "_state" + form_id)
|
| 7114 |
-
&& document.getElementById("el_us_states").checked
|
| 7115 |
&& !document.getElementById("el_state").checked
|
| 7116 |
&& !document.getElementById("el_us_states").disabled ) {
|
| 7117 |
var flag = false;
|
| 7118 |
var state_input = document.getElementById(id + "_state" + form_id);
|
| 7119 |
-
if ( document.getElementById(id + "_country" + form_id).value == "United States"
|
|
|
|
| 7120 |
var state = document.createElement('select');
|
| 7121 |
var states = form_maker.states;
|
| 7122 |
for (var r in states) {
|
|
@@ -7183,7 +7238,7 @@ function go_to_type_address(new_id) {
|
|
| 7183 |
w_attr_name = [];
|
| 7184 |
w_attr_value = [];
|
| 7185 |
w_mini_labels = ['Street Address', 'Street Address Line 2', 'City', 'State / Province / Region', 'Postal / Zip Code', 'Country',];
|
| 7186 |
-
w_disabled_fields = ['no', 'no', 'no', 'no', 'no', 'no', '
|
| 7187 |
type_address(new_id, 'Address', '', 'top', 'no', '', w_mini_labels, w_disabled_fields, 'no', 'wdform_address', w_attr_name, w_attr_value)
|
| 7188 |
}
|
| 7189 |
|
|
@@ -7202,11 +7257,11 @@ function type_address(i, w_field_label, w_field_label_size, w_field_label_pos, w
|
|
| 7202 |
edit_main_table.append(create_hide_label(i, w_hide_label));
|
| 7203 |
edit_main_table.append(create_required(i, w_required));
|
| 7204 |
edit_main_table.append(create_address_size(i, w_size));
|
|
|
|
| 7205 |
|
| 7206 |
var advanced_options_container = jQuery('<div class="inside"></div>');
|
| 7207 |
edit_main_table.append(create_advanced_options_container(advanced_options_container));
|
| 7208 |
advanced_options_container.append(create_disable_address_fields(i, w_disabled_fields, w_mini_labels));
|
| 7209 |
-
advanced_options_container.append(create_use_us_states_list(i, w_disabled_fields));
|
| 7210 |
advanced_options_container.append(create_field_label_size(i, w_field_label_size));
|
| 7211 |
advanced_options_container.append(create_class(i, w_class));
|
| 7212 |
advanced_options_container.append(create_additional_attributes(i, w_attr_name));
|
|
@@ -7832,7 +7887,7 @@ function create_datefield_day_type(i, w_day_type) {
|
|
| 7832 |
}
|
| 7833 |
|
| 7834 |
function create_datefields_day_size(i, w_day_size) {
|
| 7835 |
-
var label = jQuery('<label class="fm-field-label" for="edit_for_day_size">Day field
|
| 7836 |
var input = jQuery('<input type="text" class="fm-width-100" id="edit_for_day_size" onKeyPress="return check_isnum(event)" onKeyUp="change_w_style(\'' + i + '_dayform_id_temp\', this.value)" value="' + w_day_size + '" />');
|
| 7837 |
return create_option_container(label, input);
|
| 7838 |
}
|
|
@@ -7851,7 +7906,7 @@ function create_datefield_month_type(i, w_month_type) {
|
|
| 7851 |
}
|
| 7852 |
|
| 7853 |
function create_datefields_month_size(i, w_month_size) {
|
| 7854 |
-
var label = jQuery('<label class="fm-field-label" for="edit_for_month_size">Month field
|
| 7855 |
var input = jQuery('<input type="text" class="fm-width-100" id="edit_for_month_size" onKeyPress="return check_isnum(event)" onKeyUp="change_w_style(\'' + i + '_monthform_id_temp\', this.value)" value="' + w_month_size + '" />');
|
| 7856 |
return create_option_container(label, input);
|
| 7857 |
}
|
|
@@ -7870,7 +7925,7 @@ function create_datefield_year_type(i, w_year_type) {
|
|
| 7870 |
}
|
| 7871 |
|
| 7872 |
function create_datefields_year_size(i, w_year_size) {
|
| 7873 |
-
var label = jQuery('<label class="fm-field-label" for="edit_for_year_size">Year field
|
| 7874 |
var input = jQuery('<input type="text" class="fm-width-100" id="edit_for_year_size" onKeyPress="return check_isnum(event)" onKeyUp="change_w_style(\'' + i + '_yearform_id_temp\', this.value)" value="' + w_year_size + '" />');
|
| 7875 |
return create_option_container(label, input);
|
| 7876 |
}
|
|
@@ -11369,6 +11424,7 @@ function type_date_range(i, w_field_label, w_field_label_size, w_field_label_pos
|
|
| 11369 |
firstDay: w_start_day,
|
| 11370 |
changeMonth: true,
|
| 11371 |
changeYear: true,
|
|
|
|
| 11372 |
showOtherMonths: true,
|
| 11373 |
selectOtherMonths: true,
|
| 11374 |
beforeShowDay: function (date) {
|
|
@@ -11441,6 +11497,7 @@ function type_date_range(i, w_field_label, w_field_label_size, w_field_label_pos
|
|
| 11441 |
firstDay: w_start_day,
|
| 11442 |
changeMonth: true,
|
| 11443 |
changeYear: true,
|
|
|
|
| 11444 |
showOtherMonths: true,
|
| 11445 |
selectOtherMonths: true,
|
| 11446 |
beforeShowDay: function (date) {
|
|
@@ -12000,7 +12057,7 @@ function change_slider_max_value(a, id, form_id) {
|
|
| 12000 |
}
|
| 12001 |
|
| 12002 |
function create_slider_width(i, w_field_width) {
|
| 12003 |
-
var label = jQuery('<label class="fm-field-label" for="edit_for_slider_width">
|
| 12004 |
var input = jQuery('<input class="fm-width-100" type="text" id="edit_for_slider_width" onKeyPress="return check_isnum(event)" onKeyUp="change_slider_width(this.value,' + i + ',\'form_id_temp\')" value="' + w_field_width + '" /><p class="description">' + form_maker.leave_empty + '</p>');
|
| 12005 |
return create_option_container(label, input);
|
| 12006 |
}
|
|
@@ -12228,7 +12285,7 @@ function change_range_step(a, id, form_id) {
|
|
| 12228 |
}
|
| 12229 |
|
| 12230 |
function create_range_width(i, w_field_range_width) {
|
| 12231 |
-
var label = jQuery('<label class="fm-field-label" for="edit_for_spinner_width">
|
| 12232 |
var input = jQuery('<input class="fm-width-100" type="text" id="edit_for_spinner_width" onKeyPress="return check_isnum(event)" onKeyUp="change_range_width(this.value, ' + i + ', \'form_id_temp\')" value="' + w_field_range_width + '" />');
|
| 12233 |
return create_option_container(label, input);
|
| 12234 |
}
|
|
@@ -12816,7 +12873,7 @@ function check_isnum_less_then_5(e) {
|
|
| 12816 |
}
|
| 12817 |
|
| 12818 |
function create_arithmetic_width(i, w_input_size) {
|
| 12819 |
-
var label = jQuery('<label class="fm-field-label" for="el_captcha_input_size">Input
|
| 12820 |
var input = jQuery('<input class="fm-width-100" type="text" id="el_captcha_input_size" onKeyPress="return check_isnum(event)" onKeyUp="change_w_style(\'_wd_arithmetic_captcha_inputform_id_temp\', this.value); change_arithmetic_captcha();" value="' + w_input_size + '" />');
|
| 12821 |
return create_option_container(label, input);
|
| 12822 |
}
|
|
@@ -12959,7 +13016,7 @@ function type_arithmetic_captcha(i,w_field_label, w_field_label_size, w_field_la
|
|
| 12959 |
}
|
| 12960 |
|
| 12961 |
function create_field_size_phone(i, w_size, fields_count) {
|
| 12962 |
-
var label = jQuery('<label class="fm-field-label" for="edit_for_input_size">
|
| 12963 |
var input = jQuery('<input class="fm-width-100" type="text" id="edit_for_input_size" onKeyPress="return check_isnum(event)" onKeyUp="change_w_style(\'' + i + '_element_lastform_id_temp\', this.value)" value="' + w_size + '" /><p class="description">' + form_maker.leave_empty + '</p>');
|
| 12964 |
return create_option_container(label, input);
|
| 12965 |
}
|
|
@@ -13273,6 +13330,7 @@ function type_password(i, w_field_label, w_field_label_size, w_field_label_pos,
|
|
| 13273 |
|
| 13274 |
var adding = document.createElement(element);
|
| 13275 |
adding.setAttribute("type", type);
|
|
|
|
| 13276 |
adding.setAttribute("id", i + "_elementform_id_temp");
|
| 13277 |
adding.setAttribute("name", i + "_elementform_id_temp");
|
| 13278 |
adding.setAttribute("placeholder", w_placeholder_value);
|
|
@@ -13294,6 +13352,7 @@ function type_password(i, w_field_label, w_field_label_size, w_field_label_pos,
|
|
| 13294 |
|
| 13295 |
var adding_verification_input = document.createElement(element);
|
| 13296 |
adding_verification_input.setAttribute("type", type);
|
|
|
|
| 13297 |
adding_verification_input.style.cssText = "width:" + w_size + "px;";
|
| 13298 |
adding_verification_input.setAttribute("id", i + "_1_elementform_id_temp");
|
| 13299 |
adding_verification_input.setAttribute("name", i + "_1_elementform_id_temp");
|
|
@@ -14004,7 +14063,7 @@ function refresh_matrix(num) {
|
|
| 14004 |
}
|
| 14005 |
|
| 14006 |
function create_matrix_input_size(i, w_textbox_size, w_field_input_type) {
|
| 14007 |
-
var label = jQuery('<label class="fm-field-label" for="edit_for_label_textbox_size">Text Box
|
| 14008 |
var input = jQuery('<input class="fm-width-100" type="text" id="edit_for_label_textbox_size" onKeyPress="return check_isnum(event)" onKeyUp="refresh_matrix(' + i + ')" value="' + w_textbox_size + '" />');
|
| 14009 |
return create_option_container(label, input, 'el_textbox', w_field_input_type == "text");
|
| 14010 |
}
|
|
@@ -16213,26 +16272,17 @@ function gen_form_fields() {
|
|
| 16213 |
break;
|
| 16214 |
}
|
| 16215 |
case 'type_recaptcha': {
|
| 16216 |
-
w_public = '';
|
| 16217 |
-
w_private = '';
|
| 16218 |
-
w_theme = '';
|
| 16219 |
w_hide_label = document.getElementById(id + "_hide_labelform_id_temp").value;
|
| 16220 |
-
|
| 16221 |
-
|
| 16222 |
-
w_attr_value = atrs[1];
|
| 16223 |
|
| 16224 |
form_fields += w_field_label + "*:*w_field_label*:*";
|
| 16225 |
form_fields += w_field_label_size + "*:*w_field_label_size*:*";
|
| 16226 |
form_fields += w_field_label_pos + "*:*w_field_label_pos*:*";
|
| 16227 |
form_fields += w_hide_label + "*:*w_hide_label*:*";
|
| 16228 |
-
form_fields +=
|
| 16229 |
-
form_fields +=
|
| 16230 |
-
form_fields += w_theme + "*:*w_theme*:*";
|
| 16231 |
-
form_fields += w_class + "*:*w_class*:*";
|
| 16232 |
|
| 16233 |
-
for (j = 0; j < w_attr_name.length; j++) {
|
| 16234 |
-
form_fields += w_attr_name[j] + "=" + w_attr_value[j] + "*:*w_attr_name*:*";
|
| 16235 |
-
}
|
| 16236 |
form_fields += "*:*new_field*:*";
|
| 16237 |
document.getElementById("public_key").value = document.getElementById("wd_recaptchaform_id_temp").getAttribute("public_key");
|
| 16238 |
document.getElementById("private_key").value = document.getElementById("wd_recaptchaform_id_temp").getAttribute("private_key");
|
| 6 |
jQuery(".first-time-use").show();
|
| 7 |
}
|
| 8 |
// Space between element and top of screen (when scrolling)
|
|
|
|
|
|
|
|
|
|
| 9 |
jQuery(window).on('scroll', function (event) {
|
| 10 |
+
if ( ! jQuery("#add_field").hasClass("ui-sortable-helper") ) { // Check if not in draggable process.
|
| 11 |
+
var edit_content_position = jQuery(".fm-edit-content").offset().top;
|
| 12 |
var scrollTop = jQuery(window).scrollTop();
|
| 13 |
+
if ( scrollTop > (edit_content_position - 50) ) {
|
| 14 |
+
var scrollToTop = scrollTop - edit_content_position + 50;
|
| 15 |
+
}
|
| 16 |
+
else {
|
| 17 |
+
// Do not move.
|
| 18 |
+
var scrollToTop = 15;
|
|
|
|
| 19 |
}
|
| 20 |
+
jQuery("#add_field_cont").css("top", scrollToTop);
|
|
|
|
| 21 |
}
|
| 22 |
});
|
| 23 |
});
|
| 1236 |
break;
|
| 1237 |
}
|
| 1238 |
case 'type_recaptcha': {
|
|
|
|
|
|
|
|
|
|
| 1239 |
w_hide_label = document.getElementById(id + "_hide_labelform_id_temp").value;
|
| 1240 |
+
w_type = document.getElementById("wd_recaptchaform_id_temp").getAttribute("w_type");
|
| 1241 |
+
w_position = document.getElementById("wd_recaptchaform_id_temp").getAttribute("position");
|
| 1242 |
+
type_recaptcha(id, w_field_label, w_field_label_size, w_field_label_pos, w_hide_label, w_type, w_position);
|
|
|
|
| 1243 |
break;
|
| 1244 |
}
|
| 1245 |
case 'type_map': {
|
| 1460 |
var option = document.createElement('div');
|
| 1461 |
option.setAttribute("id", i + "_element_labelform_id_temp");
|
| 1462 |
option.style.color = 'red';
|
| 1463 |
+
option.innerHTML = "Section Break"; //"custom_" + i;
|
| 1464 |
wdform_row.appendChild(option);
|
| 1465 |
wdform_page = document.getElementById('form_id_tempform_view' + form_view);
|
| 1466 |
var arrows_body = '<span class="wdform_arrows_basic wdform_arrows_container">' +
|
| 1489 |
}
|
| 1490 |
var label = document.createElement('span');
|
| 1491 |
label.setAttribute("id", i + "_element_labelform_id_temp");
|
| 1492 |
+
label.innerHTML = ""; //"custom_" + i;
|
| 1493 |
label.style.cssText = 'display:none';
|
| 1494 |
wdform_field.appendChild(in_editor);
|
| 1495 |
beforeTr = wdform_page.lastChild;
|
| 1771 |
var option = document.createElement('option');
|
| 1772 |
option.setAttribute("id", i + "_sel_el_pos");
|
| 1773 |
option.setAttribute("value", i);
|
| 1774 |
+
option.innerHTML = ""; //"custom_" + i;
|
| 1775 |
l = document.getElementById('form_id_tempform_view' + form_view).childNodes.length;
|
| 1776 |
wdform_column = document.getElementById('form_id_tempform_view' + form_view).childNodes[l - 2].firstChild;
|
| 1777 |
var wdform_row = document.createElement('div');
|
| 1832 |
}
|
| 1833 |
var label = document.createElement('span');
|
| 1834 |
label.setAttribute("id", i + "_element_labelform_id_temp");
|
| 1835 |
+
label.innerHTML = ""; //"custom_" + i;
|
| 1836 |
label.style.color = 'red';
|
| 1837 |
wdform_row.appendChild(label);
|
| 1838 |
|
| 2378 |
return option_div;
|
| 2379 |
}
|
| 2380 |
|
| 2381 |
+
function create_advanced_options_container(advanced_options_container, id, visible) {
|
| 2382 |
+
var element = jQuery('<div' + (id != undefined ? ' id="' + id + '"' : '') + ' class="postbox closed"' + (visible == false ? ' style="display: none;"' : '') + '></div>');
|
| 2383 |
var content = jQuery('<button class="handlediv" type="button" aria-expanded="true" onclick="fm_toggle_postbox(this);"><span class="screen-reader-text">Toggle panel</span><span class="toggle-indicator" aria-hidden="true"></span></button><h2 class="hndle ui-sortable-handle" onclick="fm_toggle_postbox(this);"><span>Advanced options</span></h2>');
|
| 2384 |
element.append(content);
|
| 2385 |
element.append(advanced_options_container);
|
| 2571 |
if (first_field_id == null) {
|
| 2572 |
first_field_id = '\'' + i + '_elementform_id_temp\'';
|
| 2573 |
}
|
| 2574 |
+
var label = jQuery('<label class="fm-field-label" for="edit_for_input_size">Width(px)</label>');
|
| 2575 |
var input = jQuery('<input class="fm-width-100" type="text" id="edit_for_input_size" onKeyPress="return check_isnum(event)" onKeyUp="change_w_style(' + first_field_id + ', this.value, ' + second_field_id + ')" value="' + w_size + '" /><p class="description">' + form_maker.leave_empty + '</p>');
|
| 2576 |
return create_option_container(label, input);
|
| 2577 |
}
|
| 2580 |
if (first_field_id == null) {
|
| 2581 |
first_field_id = '\'' + i + '_label_sectionform_id_temp\'';
|
| 2582 |
}
|
| 2583 |
+
var label = jQuery('<label class="fm-field-label" for="edit_for_label_size">Label width(px)</label>');
|
| 2584 |
var input = jQuery('<input class="fm-width-100" type="text" id="edit_for_label_size" onKeyPress="return check_isnum(event)" onKeyUp="change_w_style(' + first_field_id + ', this.value, ' + second_field_id + ')" value="' + w_field_label_size + '" /><p class="description">' + form_maker.leave_empty + '</p>');
|
| 2585 |
return create_option_container(label, input);
|
| 2586 |
}
|
| 2994 |
advanced_options_container.append(create_readonly(i, w_readonly));
|
| 2995 |
advanced_options_container.append(create_unique_values(i, w_unique));
|
| 2996 |
advanced_options_container.append(create_regexp(i, w_regExp_status));
|
|
|
|
| 2997 |
advanced_options_container.append(create_common_regexp(i, w_regExp_status, w_regExp_common));
|
| 2998 |
+
advanced_options_container.append(create_custom_regexp(i, w_regExp_status, w_regExp_value));
|
| 2999 |
advanced_options_container.append(create_case_sensitive(i, w_regExp_status, w_regExp_arg));
|
| 3000 |
advanced_options_container.append(create_alert_message(i, w_regExp_status, w_regExp_alert));
|
| 3001 |
advanced_options_container.append(create_additional_attributes(i, w_attr_name));
|
| 3544 |
}
|
| 3545 |
|
| 3546 |
function create_spinner_width(i, w_field_width) {
|
| 3547 |
+
var label = jQuery('<label class="fm-field-label" for="edit_for_spinner_width">Width(px)</label>');
|
| 3548 |
var input = jQuery('<input class="fm-width-100" type="text" id="edit_for_spinner_width" onKeyPress="return check_isnum(event)" onKeyUp="change_spinner_width(this.value,' + i + ',\'form_id_temp\')" value="' + w_field_width + '" />');
|
| 3549 |
return create_option_container(label, input);
|
| 3550 |
}
|
| 4303 |
firstDay: w_start_day,
|
| 4304 |
changeMonth: true,
|
| 4305 |
changeYear: true,
|
| 4306 |
+
yearRange: "-100:+50",
|
| 4307 |
showOtherMonths: true,
|
| 4308 |
selectOtherMonths: true,
|
| 4309 |
beforeShowDay: function (date) {
|
| 5493 |
return create_option_container(null, input);
|
| 5494 |
}
|
| 5495 |
|
| 5496 |
+
function create_recaptcha_invisible(i, w_type) {
|
| 5497 |
+
var label = jQuery('<label class="fm-field-label">Type</label>');
|
| 5498 |
+
var input1 = jQuery('<input type="radio" id="edit_for_recaptcha_type_v2" name="edit_for_recaptcha_type" value="v2" onchange="fm_recaptcha_type(' + i + ', this.value)"' + (w_type == 'v2' ? ' checked="checked"' : '') + ' />');
|
| 5499 |
+
var label1 = jQuery('<label for="edit_for_recaptcha_type_v2">reCAPTCHA V2</label>');
|
| 5500 |
+
var input2 = jQuery('<input type="radio" id="edit_for_recaptcha_type_invisible" name="edit_for_recaptcha_type" value="invisible" onchange="fm_recaptcha_type(' + i + ', this.value)"' + (w_type == 'invisible' ? ' checked="checked"' : '') + ' />');
|
| 5501 |
+
var label2 = jQuery('<label for="edit_for_recaptcha_type_invisible">Invisible reCAPTCHA</label>');
|
| 5502 |
+
var input = input1;
|
| 5503 |
+
input = input.add(label1);
|
| 5504 |
+
input = input.add(jQuery('<br />'));
|
| 5505 |
+
input = input.add(jQuery('<span class="fm-description">Validate users with the "I\'m not a robot" checkbox.</span>'));
|
| 5506 |
+
input = input.add(jQuery('<br />'));
|
| 5507 |
+
input = input.add(input2);
|
| 5508 |
+
input = input.add(label2);
|
| 5509 |
+
input = input.add(jQuery('<br />'));
|
| 5510 |
+
input = input.add(jQuery('<span class="fm-description">Validate users in the background.</span>'));
|
| 5511 |
+
return create_option_container(label, input);
|
| 5512 |
+
}
|
| 5513 |
+
|
| 5514 |
+
function fm_recaptcha_type(id, value) {
|
| 5515 |
+
jQuery('#wd_recaptchaform_id_temp').attr('w_type', value);
|
| 5516 |
+
jQuery('#recaptcha_position').toggle(200);
|
| 5517 |
+
jQuery('#recaptcha_keys_message').toggle(200);
|
| 5518 |
+
jQuery('#recaptcha_advanced').toggle(200);
|
| 5519 |
+
if (value == 'invisible') {
|
| 5520 |
+
jQuery('#'+ id + '_hide_labelform_id_temp').val('no');
|
| 5521 |
+
jQuery('#el_hide_label').attr('checked', 'checked');
|
| 5522 |
+
hide_label(id);
|
| 5523 |
+
}
|
| 5524 |
+
}
|
| 5525 |
+
|
| 5526 |
+
function create_recaptcha_position(i, w_position, w_type) {
|
| 5527 |
+
var label = jQuery('<label class="fm-field-label">Display</label>');
|
| 5528 |
+
var input1 = jQuery('<input type="radio" id="edit_for_recaptcha_position_hidden" name="edit_for_recaptcha_position" value="hidden" onchange="fm_recaptcha_position(' + i + ', this.value)"' + (w_position == 'hidden' ? ' checked="checked"' : '') + ' />');
|
| 5529 |
+
var label1 = jQuery('<label for="edit_for_recaptcha_position_hidden">Hidden</label>');
|
| 5530 |
+
var input2 = jQuery('<input type="radio" id="edit_for_recaptcha_position_inline" name="edit_for_recaptcha_position" value="inline" onchange="fm_recaptcha_position(' + i + ', this.value)"' + (w_position == 'inline' ? ' checked="checked"' : '') + ' />');
|
| 5531 |
+
var label2 = jQuery('<label for="edit_for_recaptcha_position_inline">Inline</label>');
|
| 5532 |
+
var input3 = jQuery('<input type="radio" id="edit_for_recaptcha_position_bottomright" name="edit_for_recaptcha_position" value="bottomright" onchange="fm_recaptcha_position(' + i + ', this.value)"' + (w_position == 'bottomright' ? ' checked="checked"' : '') + ' />');
|
| 5533 |
+
var label3 = jQuery('<label for="edit_for_recaptcha_position_bottomright">Bottom-Right</label>');
|
| 5534 |
+
var input4 = jQuery('<input type="radio" id="edit_for_recaptcha_position_bottomleft" name="edit_for_recaptcha_position" value="bottomleft" onchange="fm_recaptcha_position(' + i + ', this.value)"' + (w_position == 'bottomleft' ? ' checked="checked"' : '') + ' />');
|
| 5535 |
+
var label4 = jQuery('<label for="edit_for_recaptcha_position_bottomleft">Bottom-Left</label>');
|
| 5536 |
+
var input = input1;
|
| 5537 |
+
input = input.add(label1);
|
| 5538 |
+
input = input.add(jQuery('<br />'));
|
| 5539 |
+
input = input.add(input2);
|
| 5540 |
+
input = input.add(label2);
|
| 5541 |
+
input = input.add(jQuery('<br />'));
|
| 5542 |
+
input = input.add(input3);
|
| 5543 |
+
input = input.add(label3);
|
| 5544 |
+
input = input.add(jQuery('<br />'));
|
| 5545 |
+
input = input.add(input4);
|
| 5546 |
+
input = input.add(label4);
|
| 5547 |
+
return create_option_container(label, input, 'recaptcha_position', w_type == 'invisible');
|
| 5548 |
+
}
|
| 5549 |
+
|
| 5550 |
+
function fm_recaptcha_position(id, value) {
|
| 5551 |
+
jQuery('#wd_recaptchaform_id_temp').attr('position', value);
|
| 5552 |
+
}
|
| 5553 |
+
|
| 5554 |
function go_to_type_recaptcha(new_id) {
|
| 5555 |
+
type_recaptcha(new_id, 'reCAPTCHA', '', 'top', 'yes', 'invisible', 'bottomright');
|
|
|
|
|
|
|
| 5556 |
}
|
| 5557 |
|
| 5558 |
+
function type_recaptcha(i, w_field_label, w_field_label_size, w_field_label_pos, w_hide_label, w_type, w_position) {
|
| 5559 |
jQuery("#element_type").val("type_recaptcha");
|
| 5560 |
delete_last_child();
|
| 5561 |
|
| 5565 |
var edit_main_table = jQuery('<div id="edit_main_table"></div>');
|
| 5566 |
edit_div.append(edit_main_table);
|
| 5567 |
edit_main_table.append(create_field_type('type_recaptcha'));
|
| 5568 |
+
edit_main_table.append(create_recaptcha_invisible(i, w_type));
|
| 5569 |
+
edit_main_table.append(create_recaptcha_position(i, w_position, w_type));
|
|
|
|
| 5570 |
edit_main_table.append(create_keys(i, 'To set up recaptcha keys click here'));
|
| 5571 |
|
| 5572 |
var advanced_options_container = jQuery('<div class="inside"></div>');
|
| 5573 |
+
edit_main_table.append(create_advanced_options_container(advanced_options_container, 'recaptcha_advanced', w_type != 'invisible'));
|
| 5574 |
+
advanced_options_container.append(create_label(i, w_field_label));
|
| 5575 |
+
advanced_options_container.append(create_label_position(i, w_field_label_pos));
|
| 5576 |
+
advanced_options_container.append(create_hide_label(i, w_hide_label));
|
| 5577 |
advanced_options_container.append(create_field_label_size(i, w_field_label_size));
|
|
|
|
|
|
|
| 5578 |
|
| 5579 |
// Preview.
|
| 5580 |
element = 'img';
|
| 5591 |
adding_hide_label.setAttribute("name", i + "_hide_labelform_id_temp");
|
| 5592 |
adding_hide_label.setAttribute("id", i + "_hide_labelform_id_temp");
|
| 5593 |
|
| 5594 |
+
var adding_error = document.createElement('div');
|
| 5595 |
+
adding_error.setAttribute("id", "recaptcha_keys_message");
|
| 5596 |
+
adding_error.setAttribute("class","error");
|
| 5597 |
+
adding_error.innerHTML = form_maker.invisible_recaptcha_error;
|
| 5598 |
+
|
| 5599 |
var adding = document.createElement('div');
|
| 5600 |
adding.setAttribute("id", "wd_recaptchaform_id_temp");
|
| 5601 |
+
adding.setAttribute("w_type", w_type);
|
| 5602 |
+
adding.setAttribute("position", w_position);
|
|
|
|
| 5603 |
|
| 5604 |
var adding_text = document.createElement('span');
|
| 5605 |
adding_text.style.color = "red";
|
| 5606 |
adding_text.style.fontStyle = "italic";
|
| 5607 |
+
adding_text.innerHTML = form_maker.no_preview;
|
| 5608 |
|
| 5609 |
adding.appendChild(adding_text);
|
| 5610 |
|
| 5643 |
div_element.appendChild(adding_type);
|
| 5644 |
div_element.appendChild(adding_hide_label);
|
| 5645 |
div_element.appendChild(adding);
|
| 5646 |
+
div_field.appendChild(adding_error);
|
| 5647 |
div_field.appendChild(div_label);
|
| 5648 |
div_field.appendChild(div_element);
|
| 5649 |
|
| 5650 |
div.appendChild(div_field);
|
| 5651 |
div.appendChild(br3);
|
| 5652 |
main_td.appendChild(div);
|
| 5653 |
+
if (w_field_label_pos == "top") {
|
| 5654 |
label_top(i);
|
| 5655 |
+
}
|
| 5656 |
+
if ( jQuery("input[name='edit_for_recaptcha_type']:checked").val() == 'v2' ) {
|
| 5657 |
+
jQuery("#recaptcha_keys_message").hide();
|
| 5658 |
+
}
|
| 5659 |
}
|
| 5660 |
|
| 5661 |
function create_submit_label(i, w_submit_title) {
|
| 6165 |
}
|
| 6166 |
|
| 6167 |
function create_field_size_name(i, w_size) {
|
| 6168 |
+
var label = jQuery('<label class="fm-field-label" for="edit_for_input_size">Width(px)</label>');
|
| 6169 |
var input = jQuery('<input class="fm-width-100" type="text" id="edit_for_input_size" onKeyPress="return check_isnum(event)" onKeyUp="change_w_style(\'' + i + '_element_firstform_id_temp\', this.value); change_w_style(\'' + i + '_element_middleform_id_temp\', this.value); change_w_style(\'' + i + '_element_lastform_id_temp\', this.value)" value="' + w_size + '" /><p class="description">' + form_maker.leave_empty + '</p>');
|
| 6170 |
return create_option_container(label, input);
|
| 6171 |
}
|
| 6947 |
}
|
| 6948 |
|
| 6949 |
function create_address_size(i, w_size) {
|
| 6950 |
+
var label = jQuery('<label class="fm-field-label" for="edit_for_input_size">Overall width(px)</label>');
|
| 6951 |
var input = jQuery('<input class="fm-width-100" type="text" id="edit_for_input_size" onKeyPress="return check_isnum(event)" onKeyUp="change_w_style(\'' + i + '_div_address\', this.value)" value="' + w_size + '" /><p class="description">' + form_maker.leave_empty + '</p>');
|
| 6952 |
return create_option_container(label, input);
|
| 6953 |
}
|
| 6954 |
|
| 6955 |
function create_use_us_states_list(i, w_disabled_fields) {
|
| 6956 |
var label = jQuery('<label class="fm-field-label" for="el_us_states">Use list for US states</label>');
|
| 6957 |
+
var input = jQuery('<input type="checkbox" id="el_us_states" onclick="disable_fields(' + i + ',\'us_states\');"' + (w_disabled_fields[6] == 'yes' ? ' checked="checked"' : '') + ' />');
|
| 6958 |
return create_option_container(label, input);
|
| 6959 |
}
|
| 6960 |
|
| 7166 |
function change_state_input(id, form_id) {
|
| 7167 |
if ( document.getElementById(id + "_country" + form_id)
|
| 7168 |
&& document.getElementById(id + "_state" + form_id)
|
|
|
|
| 7169 |
&& !document.getElementById("el_state").checked
|
| 7170 |
&& !document.getElementById("el_us_states").disabled ) {
|
| 7171 |
var flag = false;
|
| 7172 |
var state_input = document.getElementById(id + "_state" + form_id);
|
| 7173 |
+
if ( (document.getElementById(id + "_country" + form_id).value == "United States")
|
| 7174 |
+
&& document.getElementById("el_us_states").checked ) {
|
| 7175 |
var state = document.createElement('select');
|
| 7176 |
var states = form_maker.states;
|
| 7177 |
for (var r in states) {
|
| 7238 |
w_attr_name = [];
|
| 7239 |
w_attr_value = [];
|
| 7240 |
w_mini_labels = ['Street Address', 'Street Address Line 2', 'City', 'State / Province / Region', 'Postal / Zip Code', 'Country',];
|
| 7241 |
+
w_disabled_fields = ['no', 'no', 'no', 'no', 'no', 'no', 'yes'];
|
| 7242 |
type_address(new_id, 'Address', '', 'top', 'no', '', w_mini_labels, w_disabled_fields, 'no', 'wdform_address', w_attr_name, w_attr_value)
|
| 7243 |
}
|
| 7244 |
|
| 7257 |
edit_main_table.append(create_hide_label(i, w_hide_label));
|
| 7258 |
edit_main_table.append(create_required(i, w_required));
|
| 7259 |
edit_main_table.append(create_address_size(i, w_size));
|
| 7260 |
+
edit_main_table.append(create_use_us_states_list(i, w_disabled_fields));
|
| 7261 |
|
| 7262 |
var advanced_options_container = jQuery('<div class="inside"></div>');
|
| 7263 |
edit_main_table.append(create_advanced_options_container(advanced_options_container));
|
| 7264 |
advanced_options_container.append(create_disable_address_fields(i, w_disabled_fields, w_mini_labels));
|
|
|
|
| 7265 |
advanced_options_container.append(create_field_label_size(i, w_field_label_size));
|
| 7266 |
advanced_options_container.append(create_class(i, w_class));
|
| 7267 |
advanced_options_container.append(create_additional_attributes(i, w_attr_name));
|
| 7887 |
}
|
| 7888 |
|
| 7889 |
function create_datefields_day_size(i, w_day_size) {
|
| 7890 |
+
var label = jQuery('<label class="fm-field-label" for="edit_for_day_size">Day field width(px)</label>');
|
| 7891 |
var input = jQuery('<input type="text" class="fm-width-100" id="edit_for_day_size" onKeyPress="return check_isnum(event)" onKeyUp="change_w_style(\'' + i + '_dayform_id_temp\', this.value)" value="' + w_day_size + '" />');
|
| 7892 |
return create_option_container(label, input);
|
| 7893 |
}
|
| 7906 |
}
|
| 7907 |
|
| 7908 |
function create_datefields_month_size(i, w_month_size) {
|
| 7909 |
+
var label = jQuery('<label class="fm-field-label" for="edit_for_month_size">Month field width(px)</label>');
|
| 7910 |
var input = jQuery('<input type="text" class="fm-width-100" id="edit_for_month_size" onKeyPress="return check_isnum(event)" onKeyUp="change_w_style(\'' + i + '_monthform_id_temp\', this.value)" value="' + w_month_size + '" />');
|
| 7911 |
return create_option_container(label, input);
|
| 7912 |
}
|
| 7925 |
}
|
| 7926 |
|
| 7927 |
function create_datefields_year_size(i, w_year_size) {
|
| 7928 |
+
var label = jQuery('<label class="fm-field-label" for="edit_for_year_size">Year field width(px)</label>');
|
| 7929 |
var input = jQuery('<input type="text" class="fm-width-100" id="edit_for_year_size" onKeyPress="return check_isnum(event)" onKeyUp="change_w_style(\'' + i + '_yearform_id_temp\', this.value)" value="' + w_year_size + '" />');
|
| 7930 |
return create_option_container(label, input);
|
| 7931 |
}
|
| 11424 |
firstDay: w_start_day,
|
| 11425 |
changeMonth: true,
|
| 11426 |
changeYear: true,
|
| 11427 |
+
yearRange: "-100:+50",
|
| 11428 |
showOtherMonths: true,
|
| 11429 |
selectOtherMonths: true,
|
| 11430 |
beforeShowDay: function (date) {
|
| 11497 |
firstDay: w_start_day,
|
| 11498 |
changeMonth: true,
|
| 11499 |
changeYear: true,
|
| 11500 |
+
yearRange: "-100:+50",
|
| 11501 |
showOtherMonths: true,
|
| 11502 |
selectOtherMonths: true,
|
| 11503 |
beforeShowDay: function (date) {
|
| 12057 |
}
|
| 12058 |
|
| 12059 |
function create_slider_width(i, w_field_width) {
|
| 12060 |
+
var label = jQuery('<label class="fm-field-label" for="edit_for_slider_width">Width(px)</label>');
|
| 12061 |
var input = jQuery('<input class="fm-width-100" type="text" id="edit_for_slider_width" onKeyPress="return check_isnum(event)" onKeyUp="change_slider_width(this.value,' + i + ',\'form_id_temp\')" value="' + w_field_width + '" /><p class="description">' + form_maker.leave_empty + '</p>');
|
| 12062 |
return create_option_container(label, input);
|
| 12063 |
}
|
| 12285 |
}
|
| 12286 |
|
| 12287 |
function create_range_width(i, w_field_range_width) {
|
| 12288 |
+
var label = jQuery('<label class="fm-field-label" for="edit_for_spinner_width">Width(px)</label>');
|
| 12289 |
var input = jQuery('<input class="fm-width-100" type="text" id="edit_for_spinner_width" onKeyPress="return check_isnum(event)" onKeyUp="change_range_width(this.value, ' + i + ', \'form_id_temp\')" value="' + w_field_range_width + '" />');
|
| 12290 |
return create_option_container(label, input);
|
| 12291 |
}
|
| 12873 |
}
|
| 12874 |
|
| 12875 |
function create_arithmetic_width(i, w_input_size) {
|
| 12876 |
+
var label = jQuery('<label class="fm-field-label" for="el_captcha_input_size">Input width(px)</label>');
|
| 12877 |
var input = jQuery('<input class="fm-width-100" type="text" id="el_captcha_input_size" onKeyPress="return check_isnum(event)" onKeyUp="change_w_style(\'_wd_arithmetic_captcha_inputform_id_temp\', this.value); change_arithmetic_captcha();" value="' + w_input_size + '" />');
|
| 12878 |
return create_option_container(label, input);
|
| 12879 |
}
|
| 13016 |
}
|
| 13017 |
|
| 13018 |
function create_field_size_phone(i, w_size, fields_count) {
|
| 13019 |
+
var label = jQuery('<label class="fm-field-label" for="edit_for_input_size">Width(px)</label>');
|
| 13020 |
var input = jQuery('<input class="fm-width-100" type="text" id="edit_for_input_size" onKeyPress="return check_isnum(event)" onKeyUp="change_w_style(\'' + i + '_element_lastform_id_temp\', this.value)" value="' + w_size + '" /><p class="description">' + form_maker.leave_empty + '</p>');
|
| 13021 |
return create_option_container(label, input);
|
| 13022 |
}
|
| 13330 |
|
| 13331 |
var adding = document.createElement(element);
|
| 13332 |
adding.setAttribute("type", type);
|
| 13333 |
+
adding.setAttribute("autocomplete", "new-password");
|
| 13334 |
adding.setAttribute("id", i + "_elementform_id_temp");
|
| 13335 |
adding.setAttribute("name", i + "_elementform_id_temp");
|
| 13336 |
adding.setAttribute("placeholder", w_placeholder_value);
|
| 13352 |
|
| 13353 |
var adding_verification_input = document.createElement(element);
|
| 13354 |
adding_verification_input.setAttribute("type", type);
|
| 13355 |
+
adding_verification_input.setAttribute("autocomplete", "new-password");
|
| 13356 |
adding_verification_input.style.cssText = "width:" + w_size + "px;";
|
| 13357 |
adding_verification_input.setAttribute("id", i + "_1_elementform_id_temp");
|
| 13358 |
adding_verification_input.setAttribute("name", i + "_1_elementform_id_temp");
|
| 14063 |
}
|
| 14064 |
|
| 14065 |
function create_matrix_input_size(i, w_textbox_size, w_field_input_type) {
|
| 14066 |
+
var label = jQuery('<label class="fm-field-label" for="edit_for_label_textbox_size">Text Box width(px)</label>');
|
| 14067 |
var input = jQuery('<input class="fm-width-100" type="text" id="edit_for_label_textbox_size" onKeyPress="return check_isnum(event)" onKeyUp="refresh_matrix(' + i + ')" value="' + w_textbox_size + '" />');
|
| 14068 |
return create_option_container(label, input, 'el_textbox', w_field_input_type == "text");
|
| 14069 |
}
|
| 16272 |
break;
|
| 16273 |
}
|
| 16274 |
case 'type_recaptcha': {
|
|
|
|
|
|
|
|
|
|
| 16275 |
w_hide_label = document.getElementById(id + "_hide_labelform_id_temp").value;
|
| 16276 |
+
w_type = document.getElementById("wd_recaptchaform_id_temp").getAttribute("w_type");
|
| 16277 |
+
w_position = document.getElementById("wd_recaptchaform_id_temp").getAttribute("position");
|
|
|
|
| 16278 |
|
| 16279 |
form_fields += w_field_label + "*:*w_field_label*:*";
|
| 16280 |
form_fields += w_field_label_size + "*:*w_field_label_size*:*";
|
| 16281 |
form_fields += w_field_label_pos + "*:*w_field_label_pos*:*";
|
| 16282 |
form_fields += w_hide_label + "*:*w_hide_label*:*";
|
| 16283 |
+
form_fields += w_type + "*:*w_type*:*";
|
| 16284 |
+
form_fields += w_position + "*:*w_position*:*";
|
|
|
|
|
|
|
| 16285 |
|
|
|
|
|
|
|
|
|
|
| 16286 |
form_fields += "*:*new_field*:*";
|
| 16287 |
document.getElementById("public_key").value = document.getElementById("wd_recaptchaform_id_temp").getAttribute("public_key");
|
| 16288 |
document.getElementById("private_key").value = document.getElementById("wd_recaptchaform_id_temp").getAttribute("private_key");
|
js/form_maker_submissions.js
CHANGED
|
@@ -6,7 +6,7 @@ jQuery( document ).ready(function() {
|
|
| 6 |
function add_scroll_width() {
|
| 7 |
var wrapFullWidth = jQuery('.form_maker_submissions').width();
|
| 8 |
var scrollWidth = 0;
|
| 9 |
-
jQuery.each(jQuery("#fm-scroll table tr.fm_table_head th:visible"), function( index, value ) {
|
| 10 |
scrollWidth += jQuery(this).width();
|
| 11 |
});
|
| 12 |
jQuery(".table-scroll-1, .table-scroll-2").css({"width": scrollWidth + "px"});
|
| 6 |
function add_scroll_width() {
|
| 7 |
var wrapFullWidth = jQuery('.form_maker_submissions').width();
|
| 8 |
var scrollWidth = 0;
|
| 9 |
+
jQuery.each(jQuery("#fm-scroll table tr.fm_table_head td:visible, #fm-scroll table tr.fm_table_head th:visible"), function( index, value ) {
|
| 10 |
scrollWidth += jQuery(this).width();
|
| 11 |
});
|
| 12 |
jQuery(".table-scroll-1, .table-scroll-2").css({"width": scrollWidth + "px"});
|
js/formmaker_div.js
CHANGED
|
@@ -780,674 +780,6 @@ refresh_id_name(num, 'type_name');
|
|
| 780 |
|
| 781 |
}
|
| 782 |
|
| 783 |
-
function type_text(i, w_field_label, w_field_label_size, w_field_label_pos, w_hide_label, w_size, w_first_val, w_title, w_required, w_regExp_status, w_regExp_value, w_regExp_common, w_regExp_arg, w_regExp_alert, w_unique, w_attr_name, w_attr_value, w_readonly) {
|
| 784 |
-
|
| 785 |
-
document.getElementById("element_type").value="type_text";
|
| 786 |
-
delete_last_child();
|
| 787 |
-
|
| 788 |
-
|
| 789 |
-
var edit_div = document.createElement('div');
|
| 790 |
-
edit_div.setAttribute("id", "edit_div");
|
| 791 |
-
|
| 792 |
-
var edit_main_table = document.createElement('table');
|
| 793 |
-
edit_main_table.setAttribute("id", "edit_main_table");
|
| 794 |
-
edit_main_table.setAttribute("cellpadding", "3");
|
| 795 |
-
edit_main_table.setAttribute("cellspacing", "0");
|
| 796 |
-
|
| 797 |
-
|
| 798 |
-
|
| 799 |
-
var edit_main_tr1 = document.createElement('tr');
|
| 800 |
-
var edit_main_tr2 = document.createElement('tr');
|
| 801 |
-
var edit_main_tr3 = document.createElement('tr');
|
| 802 |
-
var edit_main_tr4 = document.createElement('tr');
|
| 803 |
-
var edit_main_tr5 = document.createElement('tr');
|
| 804 |
-
var edit_main_tr6 = document.createElement('tr');
|
| 805 |
-
var edit_main_tr7 = document.createElement('tr');
|
| 806 |
-
var edit_main_tr8 = document.createElement('tr');
|
| 807 |
-
var edit_main_tr9 = document.createElement('tr');
|
| 808 |
-
var edit_main_tr10 = document.createElement('tr');
|
| 809 |
-
var edit_main_tr11 = document.createElement('tr');
|
| 810 |
-
var edit_main_tr12 = document.createElement('tr');
|
| 811 |
-
edit_main_tr12.setAttribute("id", "edit_main_tr12");
|
| 812 |
-
var edit_main_tr13 = document.createElement('tr');
|
| 813 |
-
edit_main_tr13.setAttribute("id", "edit_main_tr13");
|
| 814 |
-
var edit_main_tr14 = document.createElement('tr');
|
| 815 |
-
edit_main_tr14.setAttribute("id", "edit_main_tr14");
|
| 816 |
-
var edit_main_tr15 = document.createElement('tr');
|
| 817 |
-
edit_main_tr15.setAttribute("id", "edit_main_tr15");
|
| 818 |
-
if(w_regExp_status == 'no' || w_regExp_status == "")
|
| 819 |
-
{
|
| 820 |
-
edit_main_tr12.style.cssText = 'display:none;';
|
| 821 |
-
edit_main_tr13.style.cssText = 'display:none;';
|
| 822 |
-
edit_main_tr14.style.cssText = 'display:none;';
|
| 823 |
-
edit_main_tr15.style.cssText = 'display:none;';
|
| 824 |
-
}
|
| 825 |
-
var edit_main_tr16 = document.createElement('tr');
|
| 826 |
-
var edit_main_tr17 = document.createElement('tr');
|
| 827 |
-
|
| 828 |
-
var edit_main_td1 = document.createElement('td');
|
| 829 |
-
var edit_main_td1_1 = document.createElement('td');
|
| 830 |
-
|
| 831 |
-
var edit_main_td2 = document.createElement('td');
|
| 832 |
-
var edit_main_td2_1 = document.createElement('td');
|
| 833 |
-
var edit_main_td3 = document.createElement('td');
|
| 834 |
-
var edit_main_td3_1 = document.createElement('td');
|
| 835 |
-
|
| 836 |
-
var edit_main_td4 = document.createElement('td');
|
| 837 |
-
var edit_main_td4_1 = document.createElement('td');
|
| 838 |
-
var edit_main_td5 = document.createElement('td');
|
| 839 |
-
var edit_main_td5_1 = document.createElement('td');
|
| 840 |
-
var edit_main_td6 = document.createElement('td');
|
| 841 |
-
var edit_main_td6_1 = document.createElement('td');
|
| 842 |
-
|
| 843 |
-
var edit_main_td7 = document.createElement('td');
|
| 844 |
-
var edit_main_td7_1 = document.createElement('td');
|
| 845 |
-
var edit_main_td8 = document.createElement('td');
|
| 846 |
-
var edit_main_td8_1 = document.createElement('td');
|
| 847 |
-
|
| 848 |
-
var edit_main_td9 = document.createElement('td');
|
| 849 |
-
var edit_main_td9_1 = document.createElement('td');
|
| 850 |
-
|
| 851 |
-
var edit_main_td10 = document.createElement('td');
|
| 852 |
-
var edit_main_td10_1 = document.createElement('td');
|
| 853 |
-
var edit_main_td11 = document.createElement('td');
|
| 854 |
-
var edit_main_td11_1 = document.createElement('td');
|
| 855 |
-
var edit_main_td12 = document.createElement('td');
|
| 856 |
-
var edit_main_td12_1 = document.createElement('td');
|
| 857 |
-
var edit_main_td13 = document.createElement('td');
|
| 858 |
-
var edit_main_td13_1 = document.createElement('td');
|
| 859 |
-
var edit_main_td14 = document.createElement('td');
|
| 860 |
-
var edit_main_td14_1 = document.createElement('td');
|
| 861 |
-
var edit_main_td15 = document.createElement('td');
|
| 862 |
-
var edit_main_td15_1 = document.createElement('td');
|
| 863 |
-
var edit_main_td16 = document.createElement('td');
|
| 864 |
-
var edit_main_td16_1 = document.createElement('td');
|
| 865 |
-
var edit_main_td17 = document.createElement('td');
|
| 866 |
-
var edit_main_td17_1 = document.createElement('td');
|
| 867 |
-
|
| 868 |
-
var el_label_label = document.createElement('label');
|
| 869 |
-
el_label_label.setAttribute("class", "fm-field-label");
|
| 870 |
-
el_label_label.setAttribute("for", "edit_for_label");
|
| 871 |
-
el_label_label.innerHTML = "Field label";
|
| 872 |
-
|
| 873 |
-
var el_label_textarea = document.createElement('textarea');
|
| 874 |
-
el_label_textarea.setAttribute("id", "edit_for_label");
|
| 875 |
-
el_label_textarea.setAttribute("rows", "4");
|
| 876 |
-
|
| 877 |
-
el_label_textarea.setAttribute("onKeyUp", "change_label('"+i+"_element_labelform_id_temp', this.value)");
|
| 878 |
-
el_label_textarea.innerHTML = w_field_label;
|
| 879 |
-
|
| 880 |
-
|
| 881 |
-
var el_label_size_label = document.createElement('label');
|
| 882 |
-
el_label_size_label.setAttribute("class", "fm-field-label");
|
| 883 |
-
el_label_size_label.setAttribute("for", "edit_for_label_size");
|
| 884 |
-
el_label_size_label.innerHTML = "Field label size(px) ";
|
| 885 |
-
|
| 886 |
-
var el_label_size = document.createElement('input');
|
| 887 |
-
el_label_size.setAttribute("id", "edit_for_label_size");
|
| 888 |
-
el_label_size.setAttribute("type", "text");
|
| 889 |
-
el_label_size.setAttribute("value", w_field_label_size);
|
| 890 |
-
el_label_size.setAttribute("onKeyPress", "return check_isnum(event)");
|
| 891 |
-
el_label_size.setAttribute("onKeyUp", "change_w_style('"+i+"_label_sectionform_id_temp', this.value)");
|
| 892 |
-
|
| 893 |
-
var el_label_position_label = document.createElement('label');
|
| 894 |
-
el_label_position_label.setAttribute("class", "fm-field-label");
|
| 895 |
-
el_label_position_label.innerHTML = "Field label position";
|
| 896 |
-
|
| 897 |
-
var el_label_position1 = document.createElement('input');
|
| 898 |
-
el_label_position1.setAttribute("id", "edit_for_label_position_top");
|
| 899 |
-
el_label_position1.setAttribute("type", "radio");
|
| 900 |
-
el_label_position1.setAttribute("name", "edit_for_label_position");
|
| 901 |
-
el_label_position1.setAttribute("onchange", "label_left("+i+")");
|
| 902 |
-
|
| 903 |
-
var el_label_left = document.createElement('label');
|
| 904 |
-
el_label_left.setAttribute("for", "edit_for_label_position_top");
|
| 905 |
-
el_label_left.innerHTML = "Left";
|
| 906 |
-
|
| 907 |
-
var el_label_position2 = document.createElement('input');
|
| 908 |
-
el_label_position2.setAttribute("id", "edit_for_label_position_left");
|
| 909 |
-
el_label_position2.setAttribute("type", "radio");
|
| 910 |
-
el_label_position2.setAttribute("name", "edit_for_label_position");
|
| 911 |
-
el_label_position2.setAttribute("onchange", "label_top("+i+")");
|
| 912 |
-
|
| 913 |
-
var el_label_top = document.createElement('label');
|
| 914 |
-
el_label_top.setAttribute("for", "edit_for_label_position_left");
|
| 915 |
-
el_label_top.innerHTML = "Top";
|
| 916 |
-
|
| 917 |
-
if(w_field_label_pos == "top")
|
| 918 |
-
el_label_position2.setAttribute("checked", "checked");
|
| 919 |
-
else
|
| 920 |
-
el_label_position1.setAttribute("checked", "checked");
|
| 921 |
-
|
| 922 |
-
var el_hide_label_label = document.createElement('label');
|
| 923 |
-
el_hide_label_label.setAttribute("class", "fm-field-label");
|
| 924 |
-
el_hide_label_label.setAttribute("for", "el_hide_label");
|
| 925 |
-
el_hide_label_label.innerHTML = "Hide label";
|
| 926 |
-
|
| 927 |
-
var el_hide_label = document.createElement('input');
|
| 928 |
-
el_hide_label.setAttribute("id", "el_hide_label");
|
| 929 |
-
el_hide_label.setAttribute("type", "checkbox");
|
| 930 |
-
el_hide_label.setAttribute("onclick", "hide_label('"+i+"')");
|
| 931 |
-
if(w_hide_label=="yes")
|
| 932 |
-
el_hide_label.setAttribute("checked", "checked");
|
| 933 |
-
|
| 934 |
-
var el_size_label = document.createElement('label');
|
| 935 |
-
el_size_label.setAttribute("class", "fm-field-label");
|
| 936 |
-
el_size_label.setAttribute("for", "edit_for_input_size");
|
| 937 |
-
el_size_label.innerHTML = "Field size(px) ";
|
| 938 |
-
|
| 939 |
-
var el_size = document.createElement('input');
|
| 940 |
-
el_size.setAttribute("id", "edit_for_input_size");
|
| 941 |
-
el_size.setAttribute("type", "text");
|
| 942 |
-
el_size.setAttribute("value", w_size);
|
| 943 |
-
el_size.setAttribute("onKeyPress", "return check_isnum(event)");
|
| 944 |
-
el_size.setAttribute("onKeyUp", "change_w_style('"+i+"_elementform_id_temp', this.value)");
|
| 945 |
-
|
| 946 |
-
var el_first_value_label = document.createElement('label');
|
| 947 |
-
el_first_value_label.setAttribute("class", "fm-field-label");
|
| 948 |
-
el_first_value_label.setAttribute("for", "el_first_value_input");
|
| 949 |
-
el_first_value_label.innerHTML = "Placeholder ";
|
| 950 |
-
|
| 951 |
-
var el_first_value_input = document.createElement('input');
|
| 952 |
-
el_first_value_input.setAttribute("id", "el_first_value_input");
|
| 953 |
-
el_first_value_input.setAttribute("type", "text");
|
| 954 |
-
el_first_value_input.setAttribute("value", w_title);
|
| 955 |
-
el_first_value_input.setAttribute("onKeyUp", "change_input_value(this.value,'"+i+"_elementform_id_temp')");
|
| 956 |
-
|
| 957 |
-
var el_required_label = document.createElement('label');
|
| 958 |
-
el_required_label.setAttribute("class", "fm-field-label");
|
| 959 |
-
el_required_label.setAttribute("for", "el_required");
|
| 960 |
-
el_required_label.innerHTML = "Required";
|
| 961 |
-
|
| 962 |
-
var el_required = document.createElement('input');
|
| 963 |
-
el_required.setAttribute("id", "el_required");
|
| 964 |
-
el_required.setAttribute("type", "checkbox");
|
| 965 |
-
el_required.setAttribute("onclick", "set_required('"+i+"_required')");
|
| 966 |
-
if(w_required=="yes")
|
| 967 |
-
el_required.setAttribute("checked", "checked");
|
| 968 |
-
|
| 969 |
-
|
| 970 |
-
var el_readonly_label = document.createElement('label');
|
| 971 |
-
el_readonly_label.setAttribute("class", "fm-field-label");
|
| 972 |
-
el_readonly_label.setAttribute("for", "el_readonly");
|
| 973 |
-
el_readonly_label.innerHTML = "Readonly";
|
| 974 |
-
|
| 975 |
-
var el_readonly = document.createElement('input');
|
| 976 |
-
el_readonly.setAttribute("id", "el_readonly");
|
| 977 |
-
el_readonly.setAttribute("type", "checkbox");
|
| 978 |
-
el_readonly.setAttribute("onclick", "set_readonly('"+i+"')");
|
| 979 |
-
if(w_readonly=="yes")
|
| 980 |
-
el_readonly.setAttribute("checked", "checked");
|
| 981 |
-
|
| 982 |
-
|
| 983 |
-
/********************** REGULAR EXPRESSION ************************/
|
| 984 |
-
var el_add_regExp_label = document.createElement('label');
|
| 985 |
-
el_add_regExp_label.setAttribute("class", "fm-field-label");
|
| 986 |
-
el_add_regExp_label.setAttribute("for", "el_regExp_"+i);
|
| 987 |
-
el_add_regExp_label.innerHTML = "Validation (Regular Exp.)";
|
| 988 |
-
|
| 989 |
-
var el_add_regExp = document.createElement('input');
|
| 990 |
-
el_add_regExp.setAttribute("id", "el_regExp_"+i);
|
| 991 |
-
el_add_regExp.setAttribute("type", "checkbox");
|
| 992 |
-
el_add_regExp.setAttribute("onclick", "set_regExpStatus('"+i+"_regExpStatus')");
|
| 993 |
-
if(w_regExp_status == "yes")
|
| 994 |
-
el_add_regExp.setAttribute("checked", "checked");
|
| 995 |
-
|
| 996 |
-
var el_reg_value_label = document.createElement('label');
|
| 997 |
-
el_reg_value_label.setAttribute("class", "regExp_cell fm-field-label");
|
| 998 |
-
el_reg_value_label.innerHTML = "Regular Expression";
|
| 999 |
-
|
| 1000 |
-
var el_reg_value = document.createElement('textarea');
|
| 1001 |
-
el_reg_value.setAttribute("id", "regExp_value"+i);
|
| 1002 |
-
el_reg_value.setAttribute("class","regExp_cell");
|
| 1003 |
-
el_reg_value.setAttribute("onKeyUp", "change_regExpValue('"+i+"', this.value ,'"+i+"_regExp_valueform_id_temp','')");
|
| 1004 |
-
el_reg_value.innerHTML = w_regExp_value;
|
| 1005 |
-
|
| 1006 |
-
var count = 0;
|
| 1007 |
-
var common_val_arr = [];
|
| 1008 |
-
common_val_arr["Select"] = "";
|
| 1009 |
-
common_val_arr["Name(Latin letters and some symbols)"] = "^[a-zA-Z'-'\\s]+$";
|
| 1010 |
-
common_val_arr["Phone Number(Digits and dashes)"] = "^(\\+)?[0-9]+(-[0-9]+)?(-[0-9]+)?(-[0-9]+)?$";
|
| 1011 |
-
common_val_arr["Integer Number"] = "^(-)?[0-9]+$";
|
| 1012 |
-
common_val_arr["Decimal Number"] = "^(-)?[0-9]+(\\.[0-9]+)?$";
|
| 1013 |
-
common_val_arr["Latin letters and Numbers"] = "^[a-z&A-Z0-9]*$";
|
| 1014 |
-
common_val_arr["Credit Card (16 Digits)"] = "^([0-9](\\.)?){15}[0-9]$";
|
| 1015 |
-
common_val_arr["Zip Code"] = "^(\\d{5}-\\d{4}|\\d{5}|\\d{9})$|^([a-zA-Z]\\d[a-zA-Z] \\d[a-zA-Z]\\d)$";
|
| 1016 |
-
common_val_arr["IP Address"] = "^((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\\.){3}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})$";
|
| 1017 |
-
common_val_arr["Date m/d/y (e.g. 12/21/2013)"] = "^([0-9]|1[0,1,2])/([0-9]|[0,1,2][0-9]|3[0,1])/[0-9]{4}$";
|
| 1018 |
-
common_val_arr["Date d.m.y (e.g. 21.12.2013)"] = "^([0-9]|[0,1,2][0-9]|3[0,1])\\.([0-9]|1[0,1,2])\\.[0-9]{4}$";
|
| 1019 |
-
common_val_arr["MySQL Date Format (2013-12-21)"] = "^\\d{4}-(0[0-9]|1[0,1,2])-([0,1,2][0-9]|3[0,1])$";
|
| 1020 |
-
|
| 1021 |
-
var el_reg_com_val_label = document.createElement('label');
|
| 1022 |
-
el_reg_com_val_label.setAttribute("class", "regExp_cell fm-field-label");
|
| 1023 |
-
el_reg_com_val_label.innerHTML = "Common Regular Expressions ";
|
| 1024 |
-
|
| 1025 |
-
var el_reg_com_val = document.createElement('select');
|
| 1026 |
-
el_reg_com_val.setAttribute("id", "common_RegExp"+i);
|
| 1027 |
-
el_reg_com_val.setAttribute("name", "common_RegExp"+i);
|
| 1028 |
-
el_reg_com_val.setAttribute("onChange", "change_regExpValue('"+i+"','"+w_regExp_value+"','"+i+"_regExp_valueform_id_temp', this.value)");
|
| 1029 |
-
el_reg_com_val.style.cssText ="width:200px; margin-bottom:9px;";
|
| 1030 |
-
|
| 1031 |
-
for (var keys in common_val_arr)
|
| 1032 |
-
{
|
| 1033 |
-
if (!common_val_arr.hasOwnProperty(keys))
|
| 1034 |
-
continue;
|
| 1035 |
-
|
| 1036 |
-
var el_option_common = "el_com_val"+count;
|
| 1037 |
-
el_option_common = document.createElement('option');
|
| 1038 |
-
el_option_common.setAttribute("id", "edit_for_label_common"+count);
|
| 1039 |
-
el_option_common.setAttribute("value",common_val_arr[keys]);
|
| 1040 |
-
if(w_regExp_common == count)
|
| 1041 |
-
el_option_common.setAttribute("selected", "selected");
|
| 1042 |
-
el_option_common.innerHTML = keys;
|
| 1043 |
-
|
| 1044 |
-
el_reg_com_val.appendChild(el_option_common);
|
| 1045 |
-
count++;
|
| 1046 |
-
}
|
| 1047 |
-
|
| 1048 |
-
var el_reg_arg_label = document.createElement('label');
|
| 1049 |
-
el_reg_arg_label.setAttribute("class", "regExp_cell fm-field-label");
|
| 1050 |
-
el_reg_arg_label.innerHTML = "Case Insensitive";
|
| 1051 |
-
|
| 1052 |
-
var el_reg_arg = document.createElement('input');
|
| 1053 |
-
el_reg_arg.setAttribute("id", "el_regArg_"+i+" ");
|
| 1054 |
-
el_reg_arg.setAttribute("type", "checkbox");
|
| 1055 |
-
el_reg_arg.setAttribute("onclick", "set_regExpArgument('"+i+"_regArgument')");
|
| 1056 |
-
if(w_regExp_arg == 'i')
|
| 1057 |
-
el_reg_arg.setAttribute("checked", "checked");
|
| 1058 |
-
|
| 1059 |
-
var el_reg_alert_label = document.createElement('label');
|
| 1060 |
-
el_reg_alert_label.setAttribute("class", "regExp_cell fm-field-label");
|
| 1061 |
-
el_reg_alert_label.innerHTML = "Alert Message";
|
| 1062 |
-
|
| 1063 |
-
var el_reg_alert = document.createElement('textarea');
|
| 1064 |
-
el_reg_alert.setAttribute("type", "text");
|
| 1065 |
-
el_reg_alert.setAttribute("id", "regExp_alert"+i);
|
| 1066 |
-
el_reg_alert.setAttribute("class","regExp_cell");
|
| 1067 |
-
el_reg_alert.setAttribute("onKeyUp", "change_regExpAlert(this.value,'"+i+"_regExp_alertform_id_temp')");
|
| 1068 |
-
el_reg_alert.innerHTML = w_regExp_alert;
|
| 1069 |
-
|
| 1070 |
-
/**************************************************************************/
|
| 1071 |
-
|
| 1072 |
-
var el_unique_label = document.createElement('label');
|
| 1073 |
-
el_unique_label.setAttribute("class", "fm-field-label");
|
| 1074 |
-
el_unique_label.setAttribute("for", "el_unique");
|
| 1075 |
-
el_unique_label.innerHTML = "Allow only unique values";
|
| 1076 |
-
|
| 1077 |
-
var el_unique = document.createElement('input');
|
| 1078 |
-
el_unique.setAttribute("id", "el_unique");
|
| 1079 |
-
el_unique.setAttribute("type", "checkbox");
|
| 1080 |
-
el_unique.setAttribute("onclick", "set_unique('"+i+"_uniqueform_id_temp')");
|
| 1081 |
-
if(w_unique=="yes")
|
| 1082 |
-
el_unique.setAttribute("checked", "checked");
|
| 1083 |
-
|
| 1084 |
-
var el_style_label = document.createElement('label');
|
| 1085 |
-
el_style_label.setAttribute("class", "fm-field-label");
|
| 1086 |
-
el_style_label.innerHTML = "Deactive Class name";
|
| 1087 |
-
|
| 1088 |
-
var el_style_textarea = document.createElement('input');
|
| 1089 |
-
el_style_textarea.setAttribute("type", "text");
|
| 1090 |
-
el_style_textarea.setAttribute("disabled", "disabled");
|
| 1091 |
-
el_style_textarea.setAttribute("onChange", "change_class(this.value,'"+i+"')");
|
| 1092 |
-
|
| 1093 |
-
var el_style_label2 = document.createElement('label');
|
| 1094 |
-
el_style_label2.setAttribute("class", "fm-field-label");
|
| 1095 |
-
el_style_label2.innerHTML = "Active Class name";
|
| 1096 |
-
|
| 1097 |
-
var el_style_textarea2 = document.createElement('input');
|
| 1098 |
-
el_style_textarea2.setAttribute("type", "text");
|
| 1099 |
-
el_style_textarea2.setAttribute("disabled", "disabled");
|
| 1100 |
-
el_style_textarea2.setAttribute("onChange", "change_class(this.value,'"+i+"')");
|
| 1101 |
-
|
| 1102 |
-
var el_attr_label = document.createElement('label');
|
| 1103 |
-
el_attr_label.setAttribute("class", "fm-field-label");
|
| 1104 |
-
el_attr_label.innerHTML = "Additional Attributes";
|
| 1105 |
-
|
| 1106 |
-
var el_attr_add = document.createElement('img');
|
| 1107 |
-
el_attr_add.setAttribute("src", plugin_url + '/images/add.png?ver=1.8.0');
|
| 1108 |
-
el_attr_add.style.cssText = 'cursor:pointer; margin-left:68px';
|
| 1109 |
-
el_attr_add.setAttribute("title", 'add');
|
| 1110 |
-
el_attr_add.setAttribute("onClick", "add_attr("+i+", 'type_text')");
|
| 1111 |
-
|
| 1112 |
-
var el_attr_table = document.createElement('table');
|
| 1113 |
-
el_attr_table.setAttribute("id", 'attributes');
|
| 1114 |
-
el_attr_table.setAttribute("border", '0');
|
| 1115 |
-
el_attr_table.style.cssText = 'margin-left:0px';
|
| 1116 |
-
var el_attr_tr_label = document.createElement('tr');
|
| 1117 |
-
el_attr_tr_label.setAttribute("idi", '0');
|
| 1118 |
-
var el_attr_td_name_label = document.createElement('th');
|
| 1119 |
-
el_attr_td_name_label.style.cssText = 'width:100px';
|
| 1120 |
-
var el_attr_td_value_label = document.createElement('th');
|
| 1121 |
-
el_attr_td_value_label.style.cssText = 'width:100px';
|
| 1122 |
-
var el_attr_td_X_label = document.createElement('th');
|
| 1123 |
-
el_attr_td_X_label.style.cssText = 'width:10px';
|
| 1124 |
-
var el_attr_name_label = document.createElement('label');
|
| 1125 |
-
el_attr_name_label.style.cssText ="color:#000; font-weight:bold; font-size: 11px";
|
| 1126 |
-
el_attr_name_label.innerHTML = "Name";
|
| 1127 |
-
|
| 1128 |
-
var el_attr_value_label = document.createElement('label');
|
| 1129 |
-
el_attr_value_label.style.cssText ="color:#000; font-weight:bold; font-size: 11px";
|
| 1130 |
-
el_attr_value_label.innerHTML = "Value";
|
| 1131 |
-
|
| 1132 |
-
el_attr_table.appendChild(el_attr_tr_label);
|
| 1133 |
-
el_attr_tr_label.appendChild(el_attr_td_name_label);
|
| 1134 |
-
el_attr_tr_label.appendChild(el_attr_td_value_label);
|
| 1135 |
-
el_attr_tr_label.appendChild(el_attr_td_X_label);
|
| 1136 |
-
el_attr_td_name_label.appendChild(el_attr_name_label);
|
| 1137 |
-
el_attr_td_value_label.appendChild(el_attr_value_label);
|
| 1138 |
-
|
| 1139 |
-
n=w_attr_name.length;
|
| 1140 |
-
for(j=1; j<=n; j++)
|
| 1141 |
-
{
|
| 1142 |
-
var el_attr_tr = document.createElement('tr');
|
| 1143 |
-
el_attr_tr.setAttribute("id", "attr_row_"+j);
|
| 1144 |
-
el_attr_tr.setAttribute("idi", j);
|
| 1145 |
-
var el_attr_td_name = document.createElement('td');
|
| 1146 |
-
el_attr_td_name.style.cssText = 'width:100px';
|
| 1147 |
-
var el_attr_td_value = document.createElement('td');
|
| 1148 |
-
el_attr_td_value.style.cssText = 'width:100px';
|
| 1149 |
-
|
| 1150 |
-
var el_attr_td_X = document.createElement('td');
|
| 1151 |
-
var el_attr_name = document.createElement('input');
|
| 1152 |
-
el_attr_name.setAttribute("type", "text");
|
| 1153 |
-
el_attr_name.setAttribute("class", "fm-field-choice");
|
| 1154 |
-
el_attr_name.setAttribute("value", w_attr_name[j-1]);
|
| 1155 |
-
el_attr_name.setAttribute("id", "attr_name"+j);
|
| 1156 |
-
el_attr_name.setAttribute("onChange", "change_attribute_name("+i+", this, 'type_text')");
|
| 1157 |
-
|
| 1158 |
-
var el_attr_value = document.createElement('input');
|
| 1159 |
-
el_attr_value.setAttribute("type", "text");
|
| 1160 |
-
el_attr_value.setAttribute("class", "fm-field-choice");
|
| 1161 |
-
el_attr_value.setAttribute("value", w_attr_value[j-1]);
|
| 1162 |
-
el_attr_value.setAttribute("id", "attr_value"+j);
|
| 1163 |
-
el_attr_value.setAttribute("onChange", "change_attribute_value("+i+", "+j+", 'type_text')");
|
| 1164 |
-
|
| 1165 |
-
var el_attr_remove = document.createElement('img');
|
| 1166 |
-
el_attr_remove.setAttribute("id", "el_choices"+j+"_remove");
|
| 1167 |
-
el_attr_remove.setAttribute("src", plugin_url + '/images/delete.png?ver=1.8.0');
|
| 1168 |
-
el_attr_remove.style.cssText = 'cursor:pointer; vertical-align:middle; margin:2px';
|
| 1169 |
-
el_attr_remove.setAttribute("onClick", "remove_attr("+j+", "+i+", 'type_text')");
|
| 1170 |
-
el_attr_table.appendChild(el_attr_tr);
|
| 1171 |
-
el_attr_tr.appendChild(el_attr_td_name);
|
| 1172 |
-
el_attr_tr.appendChild(el_attr_td_value);
|
| 1173 |
-
el_attr_tr.appendChild(el_attr_td_X);
|
| 1174 |
-
el_attr_td_name.appendChild(el_attr_name);
|
| 1175 |
-
el_attr_td_value.appendChild(el_attr_value);
|
| 1176 |
-
el_attr_td_X.appendChild(el_attr_remove);
|
| 1177 |
-
}
|
| 1178 |
-
|
| 1179 |
-
|
| 1180 |
-
var t = document.getElementById('edit_table');
|
| 1181 |
-
|
| 1182 |
-
var br = document.createElement('br');
|
| 1183 |
-
var br1 = document.createElement('br');
|
| 1184 |
-
var br2 = document.createElement('br');
|
| 1185 |
-
|
| 1186 |
-
edit_main_td1.appendChild(el_label_label);
|
| 1187 |
-
edit_main_td1_1.appendChild(el_label_textarea);
|
| 1188 |
-
|
| 1189 |
-
edit_main_td10.appendChild(el_label_size_label);
|
| 1190 |
-
edit_main_td10_1.appendChild(el_label_size);
|
| 1191 |
-
|
| 1192 |
-
edit_main_td11.appendChild(el_add_regExp_label);
|
| 1193 |
-
edit_main_td11_1.appendChild(el_add_regExp);
|
| 1194 |
-
|
| 1195 |
-
edit_main_td12.appendChild(el_reg_value_label);
|
| 1196 |
-
edit_main_td12_1.appendChild(el_reg_value);
|
| 1197 |
-
|
| 1198 |
-
edit_main_td13.appendChild(el_reg_com_val_label);
|
| 1199 |
-
edit_main_td13_1.appendChild(el_reg_com_val);
|
| 1200 |
-
|
| 1201 |
-
edit_main_td14.appendChild(el_reg_arg_label);
|
| 1202 |
-
edit_main_td14_1.appendChild(el_reg_arg);
|
| 1203 |
-
|
| 1204 |
-
edit_main_td15.appendChild(el_reg_alert_label);
|
| 1205 |
-
edit_main_td15_1.appendChild(el_reg_alert);
|
| 1206 |
-
edit_main_td2.appendChild(el_label_position_label);
|
| 1207 |
-
edit_main_td2_1.appendChild(el_label_position1);
|
| 1208 |
-
edit_main_td2_1.appendChild(el_label_left);
|
| 1209 |
-
edit_main_td2_1.appendChild(br);
|
| 1210 |
-
edit_main_td2_1.appendChild(el_label_position2);
|
| 1211 |
-
edit_main_td2_1.appendChild(el_label_top);
|
| 1212 |
-
|
| 1213 |
-
edit_main_td3.appendChild(el_size_label);
|
| 1214 |
-
edit_main_td3_1.appendChild(el_size);
|
| 1215 |
-
|
| 1216 |
-
edit_main_td4.appendChild(el_first_value_label);
|
| 1217 |
-
edit_main_td4_1.appendChild(el_first_value_input);
|
| 1218 |
-
|
| 1219 |
-
edit_main_td5.appendChild(el_style_label);
|
| 1220 |
-
edit_main_td5_1.appendChild(el_style_textarea);
|
| 1221 |
-
|
| 1222 |
-
edit_main_td9.appendChild(el_style_label2);
|
| 1223 |
-
edit_main_td9_1.appendChild(el_style_textarea2);
|
| 1224 |
-
|
| 1225 |
-
edit_main_td6.appendChild(el_required_label);
|
| 1226 |
-
edit_main_td6_1.appendChild(el_required);
|
| 1227 |
-
|
| 1228 |
-
edit_main_td16.appendChild(el_readonly_label);
|
| 1229 |
-
edit_main_td16_1.appendChild(el_readonly);
|
| 1230 |
-
|
| 1231 |
-
edit_main_td17.appendChild(el_hide_label_label);
|
| 1232 |
-
edit_main_td17_1.appendChild(el_hide_label);
|
| 1233 |
-
|
| 1234 |
-
edit_main_td8.appendChild(el_unique_label);
|
| 1235 |
-
edit_main_td8_1.appendChild(el_unique);
|
| 1236 |
-
|
| 1237 |
-
edit_main_td7.appendChild(el_attr_label);
|
| 1238 |
-
edit_main_td7.appendChild(el_attr_add);
|
| 1239 |
-
edit_main_td7.appendChild(br2);
|
| 1240 |
-
edit_main_td7.appendChild(el_attr_table);
|
| 1241 |
-
edit_main_td7.setAttribute("colspan", "2");
|
| 1242 |
-
|
| 1243 |
-
edit_main_tr1.appendChild(edit_main_td1);
|
| 1244 |
-
edit_main_tr1.appendChild(edit_main_td1_1);
|
| 1245 |
-
edit_main_tr10.appendChild(edit_main_td10);
|
| 1246 |
-
edit_main_tr10.appendChild(edit_main_td10_1);
|
| 1247 |
-
edit_main_tr11.appendChild(edit_main_td11);
|
| 1248 |
-
edit_main_tr11.appendChild(edit_main_td11_1);
|
| 1249 |
-
|
| 1250 |
-
edit_main_tr12.appendChild(edit_main_td12);
|
| 1251 |
-
edit_main_tr12.appendChild(edit_main_td12_1);
|
| 1252 |
-
|
| 1253 |
-
edit_main_tr13.appendChild(edit_main_td13);
|
| 1254 |
-
edit_main_tr13.appendChild(edit_main_td13_1);
|
| 1255 |
-
|
| 1256 |
-
edit_main_tr14.appendChild(edit_main_td14);
|
| 1257 |
-
edit_main_tr14.appendChild(edit_main_td14_1);
|
| 1258 |
-
|
| 1259 |
-
edit_main_tr15.appendChild(edit_main_td15);
|
| 1260 |
-
edit_main_tr15.appendChild(edit_main_td15_1);
|
| 1261 |
-
edit_main_tr16.appendChild(edit_main_td16);
|
| 1262 |
-
edit_main_tr16.appendChild(edit_main_td16_1);
|
| 1263 |
-
edit_main_tr17.appendChild(edit_main_td17);
|
| 1264 |
-
edit_main_tr17.appendChild(edit_main_td17_1);
|
| 1265 |
-
|
| 1266 |
-
edit_main_tr2.appendChild(edit_main_td2);
|
| 1267 |
-
edit_main_tr2.appendChild(edit_main_td2_1);
|
| 1268 |
-
edit_main_tr3.appendChild(edit_main_td3);
|
| 1269 |
-
edit_main_tr3.appendChild(edit_main_td3_1);
|
| 1270 |
-
edit_main_tr4.appendChild(edit_main_td4);
|
| 1271 |
-
edit_main_tr4.appendChild(edit_main_td4_1);
|
| 1272 |
-
edit_main_tr5.appendChild(edit_main_td5);
|
| 1273 |
-
edit_main_tr5.appendChild(edit_main_td5_1);
|
| 1274 |
-
edit_main_tr6.appendChild(edit_main_td6);
|
| 1275 |
-
edit_main_tr6.appendChild(edit_main_td6_1);
|
| 1276 |
-
edit_main_tr8.appendChild(edit_main_td8);
|
| 1277 |
-
edit_main_tr8.appendChild(edit_main_td8_1);
|
| 1278 |
-
edit_main_tr7.appendChild(edit_main_td7);
|
| 1279 |
-
edit_main_tr9.appendChild(edit_main_td9);
|
| 1280 |
-
edit_main_tr9.appendChild(edit_main_td9_1);
|
| 1281 |
-
edit_main_table.appendChild(edit_main_tr1);
|
| 1282 |
-
edit_main_table.appendChild(edit_main_tr10);
|
| 1283 |
-
edit_main_table.appendChild(edit_main_tr2);
|
| 1284 |
-
edit_main_table.appendChild(edit_main_tr17);
|
| 1285 |
-
edit_main_table.appendChild(edit_main_tr3);
|
| 1286 |
-
edit_main_table.appendChild(edit_main_tr4);
|
| 1287 |
-
edit_main_table.appendChild(edit_main_tr5);
|
| 1288 |
-
edit_main_table.appendChild(edit_main_tr9);
|
| 1289 |
-
edit_main_table.appendChild(edit_main_tr6);
|
| 1290 |
-
edit_main_table.appendChild(edit_main_tr16);
|
| 1291 |
-
edit_main_table.appendChild(edit_main_tr11);
|
| 1292 |
-
edit_main_table.appendChild(edit_main_tr12);
|
| 1293 |
-
edit_main_table.appendChild(edit_main_tr13);
|
| 1294 |
-
edit_main_table.appendChild(edit_main_tr14);
|
| 1295 |
-
edit_main_table.appendChild(edit_main_tr15);
|
| 1296 |
-
edit_main_table.appendChild(edit_main_tr8);
|
| 1297 |
-
edit_main_table.appendChild(edit_main_tr7);
|
| 1298 |
-
edit_div.appendChild(edit_main_table);
|
| 1299 |
-
|
| 1300 |
-
|
| 1301 |
-
t.appendChild(edit_div);
|
| 1302 |
-
|
| 1303 |
-
add_id_and_name(i, 'type_text');
|
| 1304 |
-
|
| 1305 |
-
//show table
|
| 1306 |
-
|
| 1307 |
-
element='input'; type='text';
|
| 1308 |
-
var adding_type = document.createElement("input");
|
| 1309 |
-
adding_type.setAttribute("type", "hidden");
|
| 1310 |
-
adding_type.setAttribute("value", "type_text");
|
| 1311 |
-
adding_type.setAttribute("name", i+"_typeform_id_temp");
|
| 1312 |
-
adding_type.setAttribute("id", i+"_typeform_id_temp");
|
| 1313 |
-
|
| 1314 |
-
var adding_required= document.createElement("input");
|
| 1315 |
-
adding_required.setAttribute("type", "hidden");
|
| 1316 |
-
adding_required.setAttribute("value", w_required);
|
| 1317 |
-
adding_required.setAttribute("name", i+"_requiredform_id_temp");
|
| 1318 |
-
adding_required.setAttribute("id", i+"_requiredform_id_temp");
|
| 1319 |
-
|
| 1320 |
-
var adding_readonly= document.createElement("input");
|
| 1321 |
-
adding_readonly.setAttribute("type", "hidden");
|
| 1322 |
-
adding_readonly.setAttribute("value", w_readonly);
|
| 1323 |
-
adding_readonly.setAttribute("name", i+"_readonlyform_id_temp");
|
| 1324 |
-
adding_readonly.setAttribute("id", i+"_readonlyform_id_temp");
|
| 1325 |
-
|
| 1326 |
-
var adding_hide_label= document.createElement("input");
|
| 1327 |
-
adding_hide_label.setAttribute("type", "hidden");
|
| 1328 |
-
adding_hide_label.setAttribute("value", w_hide_label);
|
| 1329 |
-
adding_hide_label.setAttribute("name", i+"_hide_labelform_id_temp");
|
| 1330 |
-
adding_hide_label.setAttribute("id", i+"_hide_labelform_id_temp");
|
| 1331 |
-
|
| 1332 |
-
|
| 1333 |
-
var adding_unique= document.createElement("input");
|
| 1334 |
-
adding_unique.setAttribute("type", "hidden");
|
| 1335 |
-
adding_unique.setAttribute("value", w_unique);
|
| 1336 |
-
adding_unique.setAttribute("name", i+"_uniqueform_id_temp");
|
| 1337 |
-
adding_unique.setAttribute("id", i+"_uniqueform_id_temp");
|
| 1338 |
-
|
| 1339 |
-
var adding = document.createElement(element);
|
| 1340 |
-
adding.setAttribute("type", type);
|
| 1341 |
-
|
| 1342 |
-
if(w_title==w_first_val)
|
| 1343 |
-
{
|
| 1344 |
-
adding.style.cssText = "width:"+w_size+"px;";
|
| 1345 |
-
}
|
| 1346 |
-
else
|
| 1347 |
-
{
|
| 1348 |
-
adding.style.cssText = "width:"+w_size+"px;";
|
| 1349 |
-
}
|
| 1350 |
-
adding.setAttribute("id", i+"_elementform_id_temp");
|
| 1351 |
-
adding.setAttribute("name", i+"_elementform_id_temp");
|
| 1352 |
-
adding.setAttribute("value", w_first_val);
|
| 1353 |
-
adding.setAttribute("title", w_title);
|
| 1354 |
-
adding.setAttribute("placeholder", w_title);
|
| 1355 |
-
if(w_readonly =='yes')
|
| 1356 |
-
adding.setAttribute("readonly", "readonly");
|
| 1357 |
-
|
| 1358 |
-
var adding_regExp_status = document.createElement("input");
|
| 1359 |
-
adding_regExp_status.setAttribute("type", "hidden");
|
| 1360 |
-
adding_regExp_status.setAttribute("value", w_regExp_status);
|
| 1361 |
-
adding_regExp_status.setAttribute("name", i+"_regExpStatusform_id_temp");
|
| 1362 |
-
adding_regExp_status.setAttribute("id", i+"_regExpStatusform_id_temp");
|
| 1363 |
-
|
| 1364 |
-
var adding_regArg = document.createElement("input");
|
| 1365 |
-
adding_regArg.setAttribute("type", "hidden");
|
| 1366 |
-
adding_regArg.setAttribute("value", w_regExp_arg);
|
| 1367 |
-
adding_regArg.setAttribute("name", i+"_regArgumentform_id_temp");
|
| 1368 |
-
adding_regArg.setAttribute("id", i+"_regArgumentform_id_temp");
|
| 1369 |
-
|
| 1370 |
-
var adding_regExp_common = document.createElement("input");
|
| 1371 |
-
adding_regExp_common.setAttribute("type", "hidden");
|
| 1372 |
-
adding_regExp_common.setAttribute("value", w_regExp_common);
|
| 1373 |
-
adding_regExp_common.setAttribute("name", i+"_regExp_commonform_id_temp");
|
| 1374 |
-
adding_regExp_common.setAttribute("id", i+"_regExp_commonform_id_temp");
|
| 1375 |
-
|
| 1376 |
-
var adding_regExp_value = document.createElement("input");
|
| 1377 |
-
adding_regExp_value.setAttribute("type", "hidden");
|
| 1378 |
-
adding_regExp_value.setAttribute("value", escape(w_regExp_value));
|
| 1379 |
-
adding_regExp_value.setAttribute("name", i+"_regExp_valueform_id_temp");
|
| 1380 |
-
adding_regExp_value.setAttribute("id", i+"_regExp_valueform_id_temp");
|
| 1381 |
-
|
| 1382 |
-
var adding_regExp_alert = document.createElement("input");
|
| 1383 |
-
adding_regExp_alert.setAttribute("type", "hidden");
|
| 1384 |
-
adding_regExp_alert.setAttribute("value", w_regExp_alert);
|
| 1385 |
-
adding_regExp_alert.setAttribute("name", i+"_regExp_alertform_id_temp");
|
| 1386 |
-
adding_regExp_alert.setAttribute("id", i+"_regExp_alertform_id_temp");
|
| 1387 |
-
|
| 1388 |
-
var div = document.createElement('div');
|
| 1389 |
-
div.setAttribute("id", "main_div");
|
| 1390 |
-
|
| 1391 |
-
var div_field = document.createElement('div');
|
| 1392 |
-
div_field.setAttribute("id", i+"_elemet_tableform_id_temp");
|
| 1393 |
-
|
| 1394 |
-
var display_label_div = (w_hide_label == "yes" ? "none" : "table-cell");
|
| 1395 |
-
var div_label = document.createElement('div');
|
| 1396 |
-
div_label.setAttribute("align", 'left');
|
| 1397 |
-
div_label.style.cssText = 'display:' + display_label_div;
|
| 1398 |
-
div_label.style.width= w_field_label_size+'px';
|
| 1399 |
-
div_label.setAttribute("id", i+"_label_sectionform_id_temp");
|
| 1400 |
-
|
| 1401 |
-
var div_element = document.createElement('div');
|
| 1402 |
-
div_element.setAttribute("align", 'left');
|
| 1403 |
-
div_element.style.display="table-cell";
|
| 1404 |
-
div_element.setAttribute("id", i+"_element_sectionform_id_temp");
|
| 1405 |
-
|
| 1406 |
-
var br = document.createElement('br');
|
| 1407 |
-
|
| 1408 |
-
var label = document.createElement('span');
|
| 1409 |
-
label.setAttribute("id", i+"_element_labelform_id_temp");
|
| 1410 |
-
label.innerHTML = w_field_label;
|
| 1411 |
-
label.setAttribute("class", "label");
|
| 1412 |
-
label.style.verticalAlign="top";
|
| 1413 |
-
|
| 1414 |
-
|
| 1415 |
-
var required = document.createElement('span');
|
| 1416 |
-
required.setAttribute("id", i+"_required_elementform_id_temp");
|
| 1417 |
-
required.innerHTML = "";
|
| 1418 |
-
required.setAttribute("class", "required");
|
| 1419 |
-
required.style.verticalAlign="top";
|
| 1420 |
-
if(w_required=="yes")
|
| 1421 |
-
required.innerHTML = " *";
|
| 1422 |
-
|
| 1423 |
-
var main_td = document.getElementById('show_table');
|
| 1424 |
-
|
| 1425 |
-
div_label.appendChild(label);
|
| 1426 |
-
div_label.appendChild(required);
|
| 1427 |
-
div_element.appendChild(adding_type);
|
| 1428 |
-
div_element.appendChild(adding_required);
|
| 1429 |
-
div_element.appendChild(adding_readonly);
|
| 1430 |
-
div_element.appendChild(adding_hide_label);
|
| 1431 |
-
div_element.appendChild(adding_regExp_status);
|
| 1432 |
-
div_element.appendChild(adding_regExp_value);
|
| 1433 |
-
div_element.appendChild(adding_regExp_common);
|
| 1434 |
-
div_element.appendChild(adding_regExp_alert);
|
| 1435 |
-
div_element.appendChild(adding_regArg);
|
| 1436 |
-
div_element.appendChild(adding_unique);
|
| 1437 |
-
div_element.appendChild(adding);
|
| 1438 |
-
div_field.appendChild(div_label);
|
| 1439 |
-
div_field.appendChild(div_element);
|
| 1440 |
-
|
| 1441 |
-
div.appendChild(div_field);
|
| 1442 |
-
div.appendChild(br);
|
| 1443 |
-
main_td.appendChild(div);
|
| 1444 |
-
|
| 1445 |
-
if(w_field_label_pos == "top")
|
| 1446 |
-
label_top(i);
|
| 1447 |
-
|
| 1448 |
-
refresh_attr(i, 'type_text');
|
| 1449 |
-
}
|
| 1450 |
-
|
| 1451 |
function type_number(i, w_field_label, w_field_label_size, w_field_label_pos, w_size, w_first_val, w_title, w_required, w_unique, w_class, w_attr_name, w_attr_value) {
|
| 1452 |
|
| 1453 |
document.getElementById("element_type").value="type_number";
|
|
@@ -1850,7 +1182,6 @@ function type_number(i, w_field_label, w_field_label_size, w_field_label_pos, w_
|
|
| 1850 |
}
|
| 1851 |
|
| 1852 |
function type_wdeditor(i, w_field_label, w_field_label_size, w_field_label_pos, w_size_w, w_size_h, w_title, w_required, w_class, w_attr_name, w_attr_value){
|
| 1853 |
-
|
| 1854 |
document.getElementById("element_type").value="type_wdeditor";
|
| 1855 |
|
| 1856 |
delete_last_child();
|
| 780 |
|
| 781 |
}
|
| 782 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 783 |
function type_number(i, w_field_label, w_field_label_size, w_field_label_pos, w_size, w_first_val, w_title, w_required, w_unique, w_class, w_attr_name, w_attr_value) {
|
| 784 |
|
| 785 |
document.getElementById("element_type").value="type_number";
|
| 1182 |
}
|
| 1183 |
|
| 1184 |
function type_wdeditor(i, w_field_label, w_field_label_size, w_field_label_pos, w_size_w, w_size_h, w_title, w_required, w_class, w_attr_name, w_attr_value){
|
|
|
|
| 1185 |
document.getElementById("element_type").value="type_wdeditor";
|
| 1186 |
|
| 1187 |
delete_last_child();
|
js/main_div_front_end.js
CHANGED
|
@@ -1 +1,2086 @@
|
|
| 1 |
-
var c;
|
| 2 |
jQuery(".wd-datepicker").each(function () {
|
| 3 |
jQuery(this).datepicker();
|
| 4 |
jQuery(this).datepicker("option", "dateFormat", jQuery(this).data("format"));
|
| 5 |
});
|
| 6 |
// Scroll to form notice.
|
| 7 |
if ( jQuery(".fm-form").find(".fm-message").length !== 0) {
|
| 8 |
jQuery(window).scrollTop(jQuery(".fm-message").offset().top - 100);
|
| 9 |
}
|
| 10 |
// Scroll to captcha field notice.
|
| 11 |
if ( jQuery(".fm-form").find(".message_captcha").length !== 0 ) {
|
| 12 |
var form_id = jQuery('.fm-form').attr('name').split("form")[1];
|
| 13 |
var element_offset = jQuery(jQuery("#form" + form_id + " .message_captcha")).offset().top;
|
| 14 |
jQuery(".fm-form").find(".message_captcha").parents('.wdform-field').find('.wdform-label').addClass('error_label');
|
| 15 |
jQuery('html').animate({scrollTop: element_offset-150 },500);
|
| 16 |
}
|
| 17 |
var FormCurrency = eval("FormCurrency_" + form_id);
|
| 18 |
if(jQuery('.paypal_total'+form_id).length==0) {
|
| 19 |
return;
|
| 20 |
}
|
| 21 |
var div_paypal_show = jQuery('.paypal_total'+form_id);
|
| 22 |
var div_paypal_products = jQuery('.paypal_products'+form_id);
|
| 23 |
var div_paypal_tax = jQuery('.paypal_tax'+form_id);
|
| 24 |
var input_paypal_total = jQuery('.input_paypal_total'+form_id);
|
| 25 |
var total=0;
|
| 26 |
var total_shipping=0;
|
| 27 |
div_paypal_products.html('');
|
| 28 |
div_paypal_tax.html('');
|
| 29 |
n = parseInt(jQuery('#counter'+form_id).val());
|
| 30 |
jQuery("#form" +form_id+ " div[type='type_paypal_checkbox'], #form" +form_id+ " div[type='type_paypal_radio']").each(function() {
|
| 31 |
id=jQuery(this).parent().attr('wdid');
|
| 32 |
jQuery(this).find('input:checked').each(
|
| 33 |
function() {
|
| 34 |
label= jQuery("label[for='"+jQuery(this).attr('id')+"']").html();
|
| 35 |
span_value = FormCurrency + jQuery(this).val()+(jQuery('#wdform_'+id+"_element_quantity"+form_id).length!=0 ? ' x'+jQuery('#wdform_'+id+"_element_quantity"+form_id).val() : '');
|
| 36 |
total =total + jQuery(this).val() * parseInt((jQuery('#wdform_'+id+"_element_quantity"+form_id).length!=0 ? jQuery('#wdform_'+id+"_element_quantity"+form_id).val() : 1));
|
| 37 |
div_paypal_products.html(div_paypal_products.html()+"<div>"+label+ ' - '+ span_value+"</div>");
|
| 38 |
}
|
| 39 |
);
|
| 40 |
});
|
| 41 |
jQuery("#form" +form_id+ " div[type='type_paypal_shipping']").each(function() {
|
| 42 |
id=jQuery(this).parent().attr('wdid');
|
| 43 |
jQuery(this).find('input:checked').each(
|
| 44 |
function() {
|
| 45 |
label= jQuery("label[for='"+jQuery(this).attr('id')+"']").html();
|
| 46 |
span_value = FormCurrency + jQuery(this).val()+(jQuery('#wdform_'+id+"_element_quantity"+form_id).length!=0 ? ' x'+jQuery('#wdform_'+id+"_element_quantity"+form_id).val() : '');
|
| 47 |
total_shipping =total_shipping + jQuery(this).val() * parseInt((jQuery('#wdform_'+id+"_element_quantity"+form_id).length!=0 ? jQuery('#wdform_'+id+"_element_quantity"+form_id).val() : 1));
|
| 48 |
div_paypal_products.html(div_paypal_products.html()+"<div>"+label+ ' - '+ span_value+"</div>");
|
| 49 |
}
|
| 50 |
);
|
| 51 |
});
|
| 52 |
jQuery("#form" +form_id+ " div[type='type_paypal_select']").each(function() {
|
| 53 |
id=jQuery(this).parent().attr('wdid');
|
| 54 |
if(jQuery(this).find('select').val()!='') {
|
| 55 |
label = jQuery(this).find('select option:selected').html();
|
| 56 |
span_value = FormCurrency + jQuery(this).find('select').val()+(jQuery('#wdform_'+id+"_element_quantity"+form_id).length!=0 ? ' x'+jQuery('#wdform_'+id+"_element_quantity"+form_id).val() : '');
|
| 57 |
total =total + jQuery(this).find('select').val() * parseInt((jQuery('#wdform_'+id+"_element_quantity"+form_id).length!=0 ? jQuery('#wdform_'+id+"_element_quantity"+form_id).val() : 1));
|
| 58 |
div_paypal_products.html(div_paypal_products.html()+"<div>"+label+ ' - '+ span_value+"</div>");
|
| 59 |
}
|
| 60 |
});
|
| 61 |
jQuery("#form" +form_id+ " div[type='type_paypal_price']").each(function() {
|
| 62 |
id = jQuery(this).parent().attr('wdid');
|
| 63 |
label = jQuery(this).find('.wdform-label').html();
|
| 64 |
cents = '00';
|
| 65 |
dollars = '0';
|
| 66 |
if (jQuery('#wdform_' + id + "_element_dollars" + form_id).val() != '') {
|
| 67 |
dollars = jQuery('#wdform_' + id + "_element_dollars" + form_id).val();
|
| 68 |
}
|
| 69 |
if (jQuery('#wdform_' + id + "_element_cents" + form_id).val() != '') {
|
| 70 |
if (jQuery('#wdform_' + id + "_element_cents" + form_id).val().length == 1) {
|
| 71 |
cents = '0' + jQuery('#wdform_' + id + "_element_cents" + form_id).val();
|
| 72 |
}
|
| 73 |
else {
|
| 74 |
cents = jQuery('#wdform_' + id + "_element_cents" + form_id).val();
|
| 75 |
}
|
| 76 |
span_value = FormCurrency + dollars + '.' + cents;
|
| 77 |
total = total + parseFloat(dollars + '.' + cents);
|
| 78 |
div_paypal_products.html(div_paypal_products.html() + "<div>" + label + ' - ' + span_value + "</div>");
|
| 79 |
}
|
| 80 |
});
|
| 81 |
jQuery("#form" +form_id+ " div[type='type_paypal_price_new']").each(function() {
|
| 82 |
id = jQuery(this).parent().attr('wdid');
|
| 83 |
label = jQuery(this).find('.wdform-label').html();
|
| 84 |
dollars = '0';
|
| 85 |
if (jQuery('#wdform_' + id + "_element" + form_id).val() != '') {
|
| 86 |
dollars = jQuery('#wdform_' + id + "_element" + form_id).val();
|
| 87 |
}
|
| 88 |
span_value = FormCurrency + dollars;
|
| 89 |
total = total + parseFloat(dollars);
|
| 90 |
div_paypal_products.html(div_paypal_products.html() + "<div>" + label + ' - ' + span_value + "</div>");
|
| 91 |
});
|
| 92 |
var FormPaypalTax = eval("FormPaypalTax_" + form_id);
|
| 93 |
if(FormPaypalTax != 0) {
|
| 94 |
div_paypal_tax.html('Tax: ' + FormCurrency + (((total)*FormPaypalTax) / 100).toFixed(2));
|
| 95 |
}
|
| 96 |
jQuery('.div_total'+form_id).html(FormCurrency + (parseFloat((total *(1+FormPaypalTax/100)).toFixed(2))+total_shipping).toFixed(2));
|
| 97 |
input_paypal_total.val(FormCurrency + (parseFloat((total *(1+FormPaypalTax/100)).toFixed(2))+total_shipping).toFixed(2));
|
| 98 |
var chCode1 = e.which || e.keyCode;
|
| 99 |
if (chCode1 != 45) {
|
| 100 |
if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57)) {
|
| 101 |
return false;
|
| 102 |
}
|
| 103 |
}
|
| 104 |
return true;
|
| 105 |
var sum = 0;
|
| 106 |
for(var k=0; k<100;k++) {
|
| 107 |
if(document.getElementById(num+'_element'+form_id+'_'+k)) {
|
| 108 |
if(document.getElementById(num+'_element'+form_id+'_'+k).value) {
|
| 109 |
sum = sum+parseInt(document.getElementById(num+'_element'+form_id+'_'+k).value);
|
| 110 |
}
|
| 111 |
}
|
| 112 |
if(document.getElementById(num+'_total_element'+form_id)) {
|
| 113 |
if(sum > document.getElementById(num+'_total_element'+form_id).innerHTML) {
|
| 114 |
document.getElementById(num+'_text_element'+form_id).innerHTML =" "+ fm_objectL10n.fm_grading_text + " " + document.getElementById(num+'_total_element'+form_id).innerHTML;
|
| 115 |
}
|
| 116 |
else {
|
| 117 |
document.getElementById(num+'_text_element'+form_id).innerHTML="";
|
| 118 |
}
|
| 119 |
}
|
| 120 |
}
|
| 121 |
if(document.getElementById(num+'_sum_element'+form_id)) {
|
| 122 |
document.getElementById(num+'_sum_element'+form_id).innerHTML = sum;
|
| 123 |
}
|
| 124 |
if(rated==false) {
|
| 125 |
for(var j=0;j<=id;j++) {
|
| 126 |
document.getElementById(el_id+'_star_'+j+'_'+form_id).src=fm_objectL10n.plugin_url+"/images/star_"+color+'.png';
|
| 127 |
}
|
| 128 |
}
|
| 129 |
if(rated==false) {
|
| 130 |
for(var j=0;j<=id;j++) {
|
| 131 |
document.getElementById(el_id+'_star_'+j+'_'+form_id).src=fm_objectL10n.plugin_url+"/images/star.png";
|
| 132 |
}
|
| 133 |
}
|
| 134 |
rated=true;
|
| 135 |
for(var j=0;j<=id;j++) {
|
| 136 |
document.getElementById(el_id+'_star_'+j+'_'+form_id).src=fm_objectL10n.plugin_url+"/images/star_"+color+".png";
|
| 137 |
}
|
| 138 |
for(var k=id+1;k<=star_amount-1;k++) {
|
| 139 |
document.getElementById(el_id+'_star_'+k+'_'+form_id).src=fm_objectL10n.plugin_url+"/images/star.png";
|
| 140 |
}
|
| 141 |
document.getElementById(el_id+'_selected_star_amount'+form_id).value=id+1;
|
| 142 |
var element_other = jQuery('.form' + form_id + ' [id^=' + num + '_element' + form_id + '][other="1"]');
|
| 143 |
var parent_ = element_other.parent();
|
| 144 |
var br = document.createElement('br');
|
| 145 |
br.setAttribute("id", num + "_other_br" + form_id);
|
| 146 |
var elem_id = num.split("_")[1];
|
| 147 |
var el_other = document.createElement('input');
|
| 148 |
el_other.setAttribute("id", num + "_other_input" + form_id);
|
| 149 |
el_other.setAttribute("name", num + "_other_input" + form_id);
|
| 150 |
el_other.setAttribute("type", "text");
|
| 151 |
el_other.setAttribute("class", "other_input");
|
| 152 |
el_other.setAttribute("onchange", "other_input_change(this, '" + form_id + "', '" + elem_id + "')");
|
| 153 |
parent_.append(br);
|
| 154 |
parent_.append(el_other);
|
| 155 |
if (jQuery(elem).val() == "") {
|
| 156 |
wd_is_filled(form_id, wdid);
|
| 157 |
}
|
| 158 |
else {
|
| 159 |
jQuery("#form" + form_id + " #wd_required_" + wdid).remove();
|
| 160 |
jQuery("#form" + form_id + " div[wdid='" + wdid + "'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 161 |
}
|
| 162 |
var chCode1 = e.which || e.keyCode;
|
| 163 |
if (jQuery.inArray(chCode1,[46,8,9,27,13,190]) != -1 || e.ctrlKey === true || (chCode1 >= 35 && chCode1 < 39) || chCode1 == 45) {
|
| 164 |
return true;
|
| 165 |
}
|
| 166 |
if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57)) {
|
| 167 |
return false;
|
| 168 |
}
|
| 169 |
return true;
|
| 170 |
srcArr=document.getElementById(id+genid).src.split("&r=");
|
| 171 |
document.getElementById(id+genid).src=srcArr[0]+'&r='+Math.floor(Math.random()*100);
|
| 172 |
document.getElementById(id+"_input"+genid).value='';
|
| 173 |
document.getElementById(id+genid).style.display="inline-block";
|
| 174 |
checking=document.getElementById(id+"_element"+form_id+j);
|
| 175 |
if(checking.getAttribute('other')) {
|
| 176 |
if(checking.getAttribute('other')==1) {
|
| 177 |
if(!checking.checked) {
|
| 178 |
if(document.getElementById(id+"_other_input"+form_id)) {
|
| 179 |
document.getElementById(id+"_other_input"+form_id).parentNode.removeChild(document.getElementById(id+"_other_br"+form_id));
|
| 180 |
document.getElementById(id+"_other_input"+form_id).parentNode.removeChild(document.getElementById(id+"_other_input"+form_id));
|
| 181 |
}
|
| 182 |
return false;
|
| 183 |
}
|
| 184 |
}
|
| 185 |
}
|
| 186 |
return true;
|
| 187 |
if(document.getElementById(id+"_other_input"+form_id)) {
|
| 188 |
document.getElementById(id+"_other_input"+form_id).parentNode.removeChild(document.getElementById(id+"_other_br"+form_id));
|
| 189 |
document.getElementById(id+"_other_input"+form_id).parentNode.removeChild(document.getElementById(id+"_other_input"+form_id));
|
| 190 |
}
|
| 191 |
if (jQuery(that).val().length == 1) {
|
| 192 |
jQuery(that).val('0' + jQuery(that).val());
|
| 193 |
}
|
| 194 |
* Check field validation.
|
| 195 |
*
|
| 196 |
* @param that
|
| 197 |
* @param ids
|
| 198 |
* @returns {boolean}
|
| 199 |
*/
|
| 200 |
if ( !jQuery(that).is("input") ) {
|
| 201 |
return true;
|
| 202 |
}
|
| 203 |
var error_message;
|
| 204 |
var reg_exp;
|
| 205 |
var value = jQuery(that).val();
|
| 206 |
var id = jQuery(that).attr("id");
|
| 207 |
var type = jQuery(that).data("valid-type");
|
| 208 |
var form_id = jQuery(that).data("form-id");
|
| 209 |
var wdid = jQuery(that).data("wdid");
|
| 210 |
if ( typeof ids == "undefined" ) {
|
| 211 |
var ids = jQuery(that).data("addiotional-fields");
|
| 212 |
}
|
| 213 |
var cont_id = "#form" + form_id + " div[wdid='" + wdid + "']";
|
| 214 |
var label_cont = jQuery(cont_id + " .wdform-label-section:first .wdform-label");
|
| 215 |
var section_cont = jQuery(cont_id + " .wdform-element-section");
|
| 216 |
switch (type) {
|
| 217 |
case "hour24": {
|
| 218 |
error_message = fm_objectL10n.time_validation;
|
| 219 |
reg_exp = /^(0?[0-1]?[0-9]|2[0-3])?$/;
|
| 220 |
break;
|
| 221 |
}
|
| 222 |
case "hour12": {
|
| 223 |
error_message = fm_objectL10n.time_validation;
|
| 224 |
reg_exp = /^(0?[0-9]|1[0-2])?$/;
|
| 225 |
break;
|
| 226 |
}
|
| 227 |
case "minute":
|
| 228 |
case "second": {
|
| 229 |
error_message = fm_objectL10n.time_validation;
|
| 230 |
reg_exp = /^([0-5]?[0-9])?$/;
|
| 231 |
break;
|
| 232 |
}
|
| 233 |
case "number": {
|
| 234 |
error_message = fm_objectL10n.number_validation;
|
| 235 |
reg_exp = /^$|^-?\d+$/;
|
| 236 |
break;
|
| 237 |
}
|
| 238 |
case "day": {
|
| 239 |
error_message = fm_objectL10n.date_validation;
|
| 240 |
reg_exp = /^(0?[0-2]?[0-9]|3[0-1])?$/;
|
| 241 |
break;
|
| 242 |
}
|
| 243 |
case "month": {
|
| 244 |
error_message = fm_objectL10n.date_validation;
|
| 245 |
reg_exp = /^(0?[0-9]|1[0-2])?$/;
|
| 246 |
break;
|
| 247 |
}
|
| 248 |
case "year": {
|
| 249 |
error_message = fm_objectL10n.date_validation;
|
| 250 |
reg_exp = /^([1-2]?[0-9]?[0-9]?[0-9])?$/;
|
| 251 |
break;
|
| 252 |
}
|
| 253 |
}
|
| 254 |
// To differ empty string value from invalid value.
|
| 255 |
var isValid = document.getElementById(id).validity.valid;
|
| 256 |
if ( isValid ) {
|
| 257 |
isValid = reg_exp.test(value);
|
| 258 |
}
|
| 259 |
if ( isValid ) {
|
| 260 |
for ( var i in ids ) {
|
| 261 |
isValid = wd_validate("#" + ids[i], '');
|
| 262 |
if ( !isValid ) {
|
| 263 |
break;
|
| 264 |
}
|
| 265 |
}
|
| 266 |
}
|
| 267 |
jQuery("#check_email_" + wdid + "_" + form_id).remove();
|
| 268 |
if ( !isValid ) {
|
| 269 |
// Add error message.
|
| 270 |
section_cont.parent().parent().append("<div id='check_email_" + wdid + "_" + form_id + "' class='fm-not-filled'>" + error_message + "</div>");
|
| 271 |
// Add error class to label.
|
| 272 |
label_cont.addClass("wd-error-label");
|
| 273 |
window["check_before_submit" + form_id][wdid + "_" + form_id] = false;
|
| 274 |
}
|
| 275 |
else {
|
| 276 |
// Remove error class from label.
|
| 277 |
label_cont.removeClass("wd-error-label");
|
| 278 |
delete window["check_before_submit" + form_id][wdid + "_" + form_id];
|
| 279 |
}
|
| 280 |
return isValid;
|
| 281 |
var chCode1 = e.which || e.keyCode;
|
| 282 |
if (jQuery.inArray(chCode1,[46,8,9,27,13,190]) != -1 || e.ctrlKey === true || (chCode1 >= 35 && chCode1 < 39)) {
|
| 283 |
return true;
|
| 284 |
}
|
| 285 |
if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57)) {
|
| 286 |
return false;
|
| 287 |
}
|
| 288 |
val1=""+jQuery(x).val()+String.fromCharCode(chCode1);
|
| 289 |
if (val1.length>2) {
|
| 290 |
return false;
|
| 291 |
}
|
| 292 |
if (val1=='00') {
|
| 293 |
return false;
|
| 294 |
}
|
| 295 |
if ((val1<from) || (val1>to)) {
|
| 296 |
return false;
|
| 297 |
}
|
| 298 |
return true;
|
| 299 |
* Year range validation.
|
| 300 |
*
|
| 301 |
* @param that
|
| 302 |
*/
|
| 303 |
var value = parseInt(jQuery(that).val());
|
| 304 |
var form_id = jQuery(that).data("form-id");
|
| 305 |
var wdid = jQuery(that).data("wdid");
|
| 306 |
var start_year = parseInt(jQuery(that).attr("from"));
|
| 307 |
var end_year = parseInt(jQuery(that).attr("to"));
|
| 308 |
var cont_id = "#form" + form_id + " div[wdid='" + wdid + "']";
|
| 309 |
var label_cont = jQuery(cont_id + " .wdform-label-section:first .wdform-label");
|
| 310 |
var section_cont = jQuery(cont_id + " .wdform-element-section");
|
| 311 |
if ( ( value < start_year ) || ( value > end_year ) ) {
|
| 312 |
var error_message = fm_objectL10n.year_validation.replace('%%start%%', start_year).replace('%%end%%', end_year);
|
| 313 |
jQuery("#check_email_" + wdid + "_" + form_id).remove();
|
| 314 |
// Add error message.
|
| 315 |
section_cont.parent().parent().append("<div id='check_email_" + wdid + "_" + form_id + "' class='fm-not-filled'>" + error_message + "</div>");
|
| 316 |
// Add error class to label.
|
| 317 |
label_cont.addClass("wd-error-label");
|
| 318 |
window["check_before_submit" + form_id][wdid + "_" + form_id] = false;
|
| 319 |
}
|
| 320 |
while (node.firstChild) {
|
| 321 |
node.removeChild(node.firstChild);
|
| 322 |
}
|
| 323 |
form_view=id;
|
| 324 |
page_nav=document.getElementById(form_id+'page_nav'+id);
|
| 325 |
destroyChildren(page_nav);
|
| 326 |
form_view_elemet=document.getElementById(form_id+'form_view'+id);
|
| 327 |
remove_whitespace(form_view_elemet.parentNode.parentNode);
|
| 328 |
display_none_form_views_all(form_id);
|
| 329 |
generate_page_bar(id, form_id, form_view_count, form_view_max);
|
| 330 |
form_view_elemet.parentNode.style.display="";
|
| 331 |
var td = document.createElement("div");
|
| 332 |
td.setAttribute("valign", "middle");
|
| 333 |
td.setAttribute("align", "left");
|
| 334 |
td.style.display="table-cell";
|
| 335 |
td.style.width="40%";
|
| 336 |
page_nav.appendChild(td);
|
| 337 |
if(form_view_elemet.parentNode.previousSibling && form_view_elemet.parentNode.previousSibling.previousSibling) {
|
| 338 |
if(form_view_elemet.parentNode.previousSibling.tagName=="DIV") {
|
| 339 |
table=form_view_elemet.parentNode.previousSibling;
|
| 340 |
}
|
| 341 |
else {
|
| 342 |
if(form_view_elemet.parentNode.previousSibling.previousSibling.tagName=="DIV") {
|
| 343 |
table=form_view_elemet.parentNode.previousSibling.previousSibling;
|
| 344 |
}
|
| 345 |
else {
|
| 346 |
table="none";
|
| 347 |
}
|
| 348 |
}
|
| 349 |
if(table!="none") {
|
| 350 |
if(!table.firstChild.tagName) {
|
| 351 |
table.removeChild(table.firstChild);
|
| 352 |
}
|
| 353 |
previous_title = form_view_elemet.getAttribute('previous_title');
|
| 354 |
previous_type = form_view_elemet.getAttribute('previous_type');
|
| 355 |
if(previous_type=="text") {
|
| 356 |
td.setAttribute("class", "previous-page");
|
| 357 |
}
|
| 358 |
previous_class = form_view_elemet.getAttribute('previous_class');
|
| 359 |
previous_checkable = form_view_elemet.getAttribute('previous_checkable');
|
| 360 |
next_or_previous="previous";
|
| 361 |
previous=make_pagebreak_button(next_or_previous, previous_title, previous_type, previous_class, previous_checkable, id, form_id, form_view_count, form_view_max);
|
| 362 |
td.appendChild(previous);
|
| 363 |
}
|
| 364 |
}
|
| 365 |
var td = document.createElement("div");
|
| 366 |
td.setAttribute("id", form_id+"page_numbers"+form_view);
|
| 367 |
td.setAttribute("valign", "middle");
|
| 368 |
td.setAttribute("class", "page-numbers");
|
| 369 |
td.setAttribute("align", "center");
|
| 370 |
td.style.display="table-cell";
|
| 371 |
if(document.getElementById('fm-pages' + form_id).getAttribute('show_numbers')=="true") {
|
| 372 |
k=0;
|
| 373 |
for(j=1; j<=form_view_max; j++) {
|
| 374 |
if(document.getElementById(form_id+'form_view'+j)) {
|
| 375 |
k++;
|
| 376 |
if(j==form_view) {
|
| 377 |
page_number=k;
|
| 378 |
}
|
| 379 |
}
|
| 380 |
}
|
| 381 |
var cur = document.createElement('span');
|
| 382 |
cur.setAttribute("class", "page_numbers");
|
| 383 |
cur.innerHTML=page_number+'/'+k;
|
| 384 |
td.appendChild(cur);
|
| 385 |
}
|
| 386 |
page_nav.appendChild(td);
|
| 387 |
var td = document.createElement("div");
|
| 388 |
td.setAttribute("valign", "middle");
|
| 389 |
td.setAttribute("align", "right");
|
| 390 |
td.style.cssText = "display:table-cell; width:40%; text-align:right;";
|
| 391 |
page_nav.appendChild(td);
|
| 392 |
not_next=false;
|
| 393 |
if(form_view_elemet.parentNode.nextSibling) {
|
| 394 |
if(form_view_elemet.parentNode.nextSibling.tagName=="DIV" && form_view_elemet.parentNode.nextSibling.className=="wdform-page-and-images") {
|
| 395 |
table=form_view_elemet.parentNode.nextSibling;
|
| 396 |
}
|
| 397 |
else {
|
| 398 |
if(form_view_elemet.parentNode.nextSibling.nextSibling) {
|
| 399 |
if(form_view_elemet.parentNode.nextSibling.nextSibling.tagName=="DIV") {
|
| 400 |
table=form_view_elemet.parentNode.nextSibling.nextSibling;
|
| 401 |
}
|
| 402 |
else {
|
| 403 |
table="none";
|
| 404 |
}
|
| 405 |
}
|
| 406 |
else {
|
| 407 |
table="none";
|
| 408 |
}
|
| 409 |
}
|
| 410 |
if(table!="none") {
|
| 411 |
next_title =form_view_elemet.getAttribute('next_title');
|
| 412 |
next_type =form_view_elemet.getAttribute('next_type');
|
| 413 |
if(next_type=="text") {
|
| 414 |
td.setAttribute("class", "next-page");
|
| 415 |
}
|
| 416 |
next_class = form_view_elemet.getAttribute('next_class');
|
| 417 |
next_checkable = form_view_elemet.getAttribute('next_checkable');
|
| 418 |
next_or_previous="next";
|
| 419 |
next=make_pagebreak_button(next_or_previous, next_title, next_type, next_class, next_checkable, id, form_id, form_view_count, form_view_max);
|
| 420 |
td.appendChild(next);
|
| 421 |
}
|
| 422 |
else {
|
| 423 |
not_next=true;
|
| 424 |
}
|
| 425 |
}
|
| 426 |
else {
|
| 427 |
not_next=true;
|
| 428 |
}
|
| 429 |
fm_initilize_form(form_id);
|
| 430 |
jQuery("#form" + form_id + " div[type='type_map']").each(function() {
|
| 431 |
id=jQuery(this).parent().attr('wdid');
|
| 432 |
if_gmap_init('wdform_'+id, form_id);
|
| 433 |
for(q=0; q<20; q++) {
|
| 434 |
if(jQuery("#wdform_"+id+"_element"+form_id)[0].getAttribute("long"+q)) {
|
| 435 |
w_long=parseFloat(document.getElementById('wdform_'+id+"_element"+form_id).getAttribute("long"+q));
|
| 436 |
w_lat=parseFloat(document.getElementById('wdform_'+id+"_element"+form_id).getAttribute("lat"+q));
|
| 437 |
w_info=parseFloat(document.getElementById('wdform_'+id+"_element"+form_id).getAttribute("info"+q));
|
| 438 |
add_marker_on_map('wdform_'+id, q, w_long, w_lat, w_info, form_id,false);
|
| 439 |
}
|
| 440 |
}
|
| 441 |
});
|
| 442 |
jQuery("#form" + form_id + " div[type='type_mark_map']").each(function() {
|
| 443 |
id=jQuery(this).parent().attr('wdid');
|
| 444 |
if_gmap_init('wdform_'+id, form_id);
|
| 445 |
q=0;
|
| 446 |
if(jQuery("#wdform_"+id+"_element"+form_id)[0].getAttribute("long"+q)) {
|
| 447 |
w_long=parseFloat(document.getElementById('wdform_'+id+"_element"+form_id).getAttribute("long"+q));
|
| 448 |
w_lat=parseFloat(document.getElementById('wdform_'+id+"_element"+form_id).getAttribute("lat"+q));
|
| 449 |
w_info=parseFloat(document.getElementById('wdform_'+id+"_element"+form_id).getAttribute("info"+q));
|
| 450 |
add_marker_on_map('wdform_'+id, q, w_long, w_lat, w_info, form_id,true);
|
| 451 |
}
|
| 452 |
});
|
| 453 |
jQuery('.wdform-element-section').each( function() {
|
| 454 |
if (jQuery(this).parent().parent().attr('type') == "type_stripe") {
|
| 455 |
return true;
|
| 456 |
}
|
| 457 |
if ( !jQuery(this).parent()[0].style.width
|
| 458 |
&& parseInt(jQuery(this).width()) != 0
|
| 459 |
&& jQuery(this).parent().find(jQuery(".wdform-label-section")).length != 0 ) {
|
| 460 |
if (jQuery(this).css('display') == "table-cell") {
|
| 461 |
if (jQuery(this).parent().attr('type') != "type_captcha") {
|
| 462 |
jQuery(this).parent().css('width', parseInt(jQuery(this).width()) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width) + 15);
|
| 463 |
}
|
| 464 |
else {
|
| 465 |
jQuery(this).parent().css('width', (parseInt(jQuery(this).parent().find(jQuery(".captcha_input"))[0].style.width) * 2 + 50) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width) + 15);
|
| 466 |
}
|
| 467 |
}
|
| 468 |
}
|
| 469 |
});
|
| 470 |
for(t=1; t<30; t++) {
|
| 471 |
if(document.getElementById(form_id+'form_view'+t)) {
|
| 472 |
document.getElementById(form_id+'form_view'+t).parentNode.style.display="none";
|
| 473 |
}
|
| 474 |
}
|
| 475 |
if(document.getElementById('fm-pages' + form_id).getAttribute('type')=='steps') {
|
| 476 |
make_page_steps_front(form_view, form_id, form_view_count, form_view_max);
|
| 477 |
}
|
| 478 |
else {
|
| 479 |
if(document.getElementById('fm-pages' + form_id).getAttribute('type')=='percentage') {
|
| 480 |
make_page_percentage_front(form_view, form_id, form_view_count, form_view_max);
|
| 481 |
}
|
| 482 |
else {
|
| 483 |
make_page_none_front(form_id);
|
| 484 |
}
|
| 485 |
}
|
| 486 |
if(document.getElementById('fm-pages' + form_id).getAttribute('type')=='show_numbers') {
|
| 487 |
td = document.getElementById(form_id+'page_numbers'+form_view);
|
| 488 |
if(td) {
|
| 489 |
destroyChildren(td);
|
| 490 |
k=0;
|
| 491 |
for(j=1; j<=form_view_max; j++) {
|
| 492 |
if(document.getElementById(form_id+'form_view'+j)) {
|
| 493 |
k++;
|
| 494 |
if(j==form_view) {
|
| 495 |
page_number=k;
|
| 496 |
}
|
| 497 |
}
|
| 498 |
}
|
| 499 |
var cur = document.createElement('span');
|
| 500 |
cur.setAttribute("class", "page_numbers");
|
| 501 |
cur.innerHTML=page_number+'/'+k;
|
| 502 |
td.appendChild(cur);
|
| 503 |
}
|
| 504 |
}
|
| 505 |
else {
|
| 506 |
td = document.getElementById(form_id+'page_numbers'+form_view);
|
| 507 |
if(td) {
|
| 508 |
destroyChildren(document.getElementById(form_id+'page_numbers'+form_view));
|
| 509 |
}
|
| 510 |
}
|
| 511 |
destroyChildren(document.getElementById('fm-pages' + form_id));
|
| 512 |
show_title =(document.getElementById('fm-pages' + form_id).getAttribute('show_title')=='true');
|
| 513 |
next_checkable =(document.getElementById(form_id+'form_view'+form_view).getAttribute('next_checkable')=='true');
|
| 514 |
previous_checkable =(document.getElementById(form_id+'form_view'+form_view).getAttribute('previous_checkable')=='true');
|
| 515 |
k=0;
|
| 516 |
for(j=1; j<=form_view_max; j++) {
|
| 517 |
if(document.getElementById(form_id+'form_view'+j)) {
|
| 518 |
if(document.getElementById(form_id+'form_view'+j).getAttribute('page_title')) {
|
| 519 |
w_pages=document.getElementById(form_id+'form_view'+j).getAttribute('page_title');
|
| 520 |
}
|
| 521 |
else {
|
| 522 |
w_pages="";
|
| 523 |
}
|
| 524 |
k++;
|
| 525 |
page_number = document.createElement('span');
|
| 526 |
page_number.setAttribute('id','page_'+j);
|
| 527 |
if(j<form_view) {
|
| 528 |
if(previous_checkable) {
|
| 529 |
page_number.setAttribute('onClick','if(fm_check('+form_view+', '+form_id+')) generate_page_nav("'+j+'", "'+form_id+'", "'+form_view_count+'", "'+form_view_max+'")');
|
| 530 |
}
|
| 531 |
else {
|
| 532 |
page_number.setAttribute('onClick','generate_page_nav("'+j+'", "'+form_id+'", "'+form_view_count+'", "'+form_view_max+'")');
|
| 533 |
}
|
| 534 |
}
|
| 535 |
if(j>form_view) {
|
| 536 |
if(next_checkable) {
|
| 537 |
page_number.setAttribute('onClick','if(fm_check('+form_view+', '+form_id+')) generate_page_nav("'+j+'", "'+form_id+'", "'+form_view_count+'", "'+form_view_max+'")');
|
| 538 |
}
|
| 539 |
else {
|
| 540 |
page_number.setAttribute('onClick','generate_page_nav("'+j+'", "'+form_id+'", "'+form_view_count+'", "'+form_view_max+'")');
|
| 541 |
}
|
| 542 |
}
|
| 543 |
if(j==form_view) {
|
| 544 |
page_number.setAttribute('class',"page_active");
|
| 545 |
}
|
| 546 |
else {
|
| 547 |
page_number.setAttribute('class',"page_deactive");
|
| 548 |
}
|
| 549 |
if(show_title) {
|
| 550 |
page_number.innerHTML=w_pages;
|
| 551 |
}
|
| 552 |
else {
|
| 553 |
page_number.innerHTML=k;
|
| 554 |
}
|
| 555 |
document.getElementById('fm-pages' + form_id).appendChild(page_number);
|
| 556 |
}
|
| 557 |
}
|
| 558 |
destroyChildren(document.getElementById('fm-pages' + form_id));
|
| 559 |
show_title=(document.getElementById('fm-pages' + form_id).getAttribute('show_title')=='true');
|
| 560 |
var div_parent = document.createElement('div');
|
| 561 |
div_parent.setAttribute("class", "page_percentage_deactive");
|
| 562 |
var div = document.createElement('div');
|
| 563 |
div.setAttribute("id", "div_percentage");
|
| 564 |
div.setAttribute("class", "page_percentage_active");
|
| 565 |
div.setAttribute("align", "right");
|
| 566 |
var div_arrow = document.createElement('div');
|
| 567 |
div_arrow.setAttribute("class", "wdform_percentage_arrow");
|
| 568 |
var b = document.createElement('b');
|
| 569 |
b.setAttribute("class", "wdform_percentage_text");
|
| 570 |
div.appendChild(b);
|
| 571 |
k=0;
|
| 572 |
cur_page_title='';
|
| 573 |
for(j=1; j<=form_view_max; j++) {
|
| 574 |
if(document.getElementById(form_id+'form_view'+j)) {
|
| 575 |
if(document.getElementById(form_id+'form_view'+j).getAttribute('page_title')) {
|
| 576 |
w_pages=document.getElementById(form_id+'form_view'+j).getAttribute('page_title');
|
| 577 |
}
|
| 578 |
else {
|
| 579 |
w_pages="";
|
| 580 |
}
|
| 581 |
k++;
|
| 582 |
if(j==form_view) {
|
| 583 |
if(show_title) {
|
| 584 |
var cur_page_title = document.createElement('div');
|
| 585 |
cur_page_title.innerHTML=w_pages;
|
| 586 |
cur_page_title.innerHTML=w_pages;
|
| 587 |
cur_page_title.setAttribute("class", "wdform_percentage_title");
|
| 588 |
}
|
| 589 |
page_number=k;
|
| 590 |
}
|
| 591 |
}
|
| 592 |
}
|
| 593 |
b.innerHTML=Math.round(((page_number-1)/k)*100)+'%';
|
| 594 |
div.style.width=((page_number-1)/k)*100+'%';
|
| 595 |
if(page_number==1) {
|
| 596 |
div_arrow.style.display='none';
|
| 597 |
}
|
| 598 |
div_parent.appendChild(div);
|
| 599 |
div_parent.appendChild(div_arrow);
|
| 600 |
if(cur_page_title) {
|
| 601 |
div_parent.appendChild(cur_page_title);
|
| 602 |
}
|
| 603 |
document.getElementById('fm-pages' + form_id).appendChild(div_parent);
|
| 604 |
destroyChildren(document.getElementById('fm-pages' + form_id));
|
| 605 |
switch(type) {
|
| 606 |
case 'text': {
|
| 607 |
var element = document.createElement('div');
|
| 608 |
element.setAttribute('id', "page_"+next_or_previous+"_"+id);
|
| 609 |
element.setAttribute('class', class_);
|
| 610 |
if(checkable=="true") {
|
| 611 |
element.setAttribute('onClick', "if(fm_check("+id+", "+form_id+")) page_"+next_or_previous+"("+id+","+form_id+","+form_view_count+","+form_view_max+")");
|
| 612 |
}
|
| 613 |
else {
|
| 614 |
element.setAttribute('onClick', "page_"+next_or_previous+"("+id+","+form_id+","+form_view_count+","+form_view_max+")");
|
| 615 |
}
|
| 616 |
element.innerHTML=title;
|
| 617 |
return element;
|
| 618 |
}
|
| 619 |
case 'img':{
|
| 620 |
var element = document.createElement('img');
|
| 621 |
element.setAttribute('id', "page_"+next_or_previous+"_"+id);
|
| 622 |
element.setAttribute('class', class_);
|
| 623 |
if(checkable=="true") {
|
| 624 |
element.setAttribute('onClick', "if(fm_check("+id+", "+form_id+")) page_"+next_or_previous+"("+id+","+form_id+","+form_view_count+","+form_view_max+")");
|
| 625 |
}
|
| 626 |
else {
|
| 627 |
element.setAttribute('onClick', "page_"+next_or_previous+"("+id+","+form_id+","+form_view_count+","+form_view_max+")");
|
| 628 |
}
|
| 629 |
if(title.indexOf("http")==0) {
|
| 630 |
element.src=title;
|
| 631 |
}
|
| 632 |
else {
|
| 633 |
element.src=fm_objectL10n.plugin_url+'/'+title;
|
| 634 |
}
|
| 635 |
return element;
|
| 636 |
}
|
| 637 |
}
|
| 638 |
var curtop = 0;
|
| 639 |
if (obj.offsetParent) {
|
| 640 |
do {
|
| 641 |
curtop += obj.offsetTop;
|
| 642 |
} while (obj = obj.offsetParent);
|
| 643 |
return [curtop];
|
| 644 |
}
|
| 645 |
form_view_elemet = document.getElementById(form_id + 'form_view' + id);
|
| 646 |
if (form_view_elemet.parentNode.previousSibling && form_view_elemet.parentNode.previousSibling.previousSibling) {
|
| 647 |
if (form_view_elemet.parentNode.previousSibling.tagName == "DIV") {
|
| 648 |
table = form_view_elemet.parentNode.previousSibling;
|
| 649 |
}
|
| 650 |
else {
|
| 651 |
table = form_view_elemet.parentNode.previousSibling.previousSibling;
|
| 652 |
}
|
| 653 |
}
|
| 654 |
if (!table.firstChild.tagName) {
|
| 655 |
table.removeChild(table.firstChild);
|
| 656 |
}
|
| 657 |
generate_page_nav(table.firstChild.id.replace(form_id + 'form_view', ""), form_id, form_view_count, form_view_max);
|
| 658 |
form = jQuery("#form" + form_id);
|
| 659 |
if (!form.parent().hasClass('fm-scrollbox-form')) {
|
| 660 |
jQuery('html').animate({
|
| 661 |
scrollTop: form.offset().top - 150
|
| 662 |
}, 500);
|
| 663 |
}
|
| 664 |
form_view_elemet = document.getElementById(form_id + 'form_view' + id);
|
| 665 |
if (form_view_elemet.parentNode.nextSibling) {
|
| 666 |
if (form_view_elemet.parentNode.nextSibling.tagName == "DIV") {
|
| 667 |
table = form_view_elemet.parentNode.nextSibling;
|
| 668 |
}
|
| 669 |
else {
|
| 670 |
table = form_view_elemet.parentNode.nextSibling.nextSibling;
|
| 671 |
}
|
| 672 |
}
|
| 673 |
if (!table.firstChild.tagName) {
|
| 674 |
table.removeChild(table.firstChild);
|
| 675 |
}
|
| 676 |
generate_page_nav(table.firstChild.id.replace(form_id + 'form_view', ""), form_id, form_view_count, form_view_max);
|
| 677 |
form = jQuery("#form" + form_id);
|
| 678 |
if (!form.parent().hasClass('fm-scrollbox-form')) {
|
| 679 |
jQuery('html').animate({
|
| 680 |
scrollTop: form.offset().top - 150
|
| 681 |
}, 500);
|
| 682 |
}
|
| 683 |
if(filename.length == 0) {
|
| 684 |
return true;
|
| 685 |
}
|
| 686 |
var dot = filename.lastIndexOf(".");
|
| 687 |
var extension = filename.substr(dot+1,filename.length);
|
| 688 |
exten=exten.split(',');
|
| 689 |
for(var j=0 ; j<exten.length; j++) {
|
| 690 |
exten[j]=exten[j].replace(/\./g,'');
|
| 691 |
exten[j]=exten[j].replace(/ /g,'');
|
| 692 |
if(extension.toLowerCase()==exten[j].toLowerCase())
|
| 693 |
return true;
|
| 694 |
}
|
| 695 |
return false;
|
| 696 |
addclass = typeof(addclass) != 'undefined' ? addclass : '';
|
| 697 |
jQuery(select).wrap('<div class="sel-wrap ' + addclass + '"/>');
|
| 698 |
var sel_options = '';
|
| 699 |
var selected_option = false;
|
| 700 |
jQuery(select).children('option').each(function() {
|
| 701 |
if(jQuery(this).is(':selected')){
|
| 702 |
selected_option = jQuery(this).index();
|
| 703 |
}
|
| 704 |
sel_options = sel_options + '<div class="sel-option" value="' + jQuery(this).val() + '">' + jQuery(this).html() + '</div>';
|
| 705 |
});
|
| 706 |
w=jQuery(select)[0].style.width;
|
| 707 |
if(w=='100%') {
|
| 708 |
w='100%';
|
| 709 |
}
|
| 710 |
else {
|
| 711 |
w=(jQuery(select).width()+32)+'px';
|
| 712 |
}
|
| 713 |
var sel_imul = '<div class="sel-imul" style="width:'+w+'">\
|
| 714 |
<div class="sel-selected">\
|
| 715 |
<div class="selected-text">' + jQuery(select).children('option').eq(selected_option).html() + '</div>\
|
| 716 |
<div class="sel-arraw"></div>\
|
| 717 |
</div>\
|
| 718 |
<div class="sel-options">' + sel_options + '</div>\
|
| 719 |
</div>';
|
| 720 |
jQuery(select).addClass('no-width');
|
| 721 |
jQuery(select).before(sel_imul);
|
| 722 |
var tektext = jQuery(this).children("option:selected").text();
|
| 723 |
jQuery(this).parent('.sel-wrap ').children('.sel-imul').children('.sel-selected').children('.selected-text').html(tektext);
|
| 724 |
jQuery(this).parent('.sel-wrap ').children('.sel-imul').children('.sel-options').children('.sel-option').removeClass('sel-ed');
|
| 725 |
jQuery(this).addClass('sel-ed');
|
| 726 |
jQuery(this).parent('.sel-wrap ').children('.sel-imul').children('.sel-options').each(function() {
|
| 727 |
if (jQuery(this).html() == tektext) {
|
| 728 |
jQuery(this).addClass('sel-ed');
|
| 729 |
}
|
| 730 |
});
|
| 731 |
jQuery('.sel-imul').removeClass('act');
|
| 732 |
jQuery(this).addClass('act');
|
| 733 |
if (jQuery(this).children('.sel-options').is(':visible')) {
|
| 734 |
jQuery('.sel-options').hide();
|
| 735 |
}
|
| 736 |
else {
|
| 737 |
jQuery('.sel-options').hide();
|
| 738 |
jQuery(this).children('.sel-options').show();
|
| 739 |
jQuery(this).children('.sel-options').css('width',jQuery(this).width());
|
| 740 |
}
|
| 741 |
var tektext = jQuery(this).html();
|
| 742 |
jQuery(this).parent('.sel-options').parent('.sel-imul').children('.sel-selected').children('.selected-text').html(tektext);
|
| 743 |
jQuery(this).parent('.sel-options').children('.sel-option').removeClass('sel-ed');
|
| 744 |
jQuery(this).addClass('sel-ed');
|
| 745 |
var tekval = jQuery(this).attr('value');
|
| 746 |
tekval = typeof(tekval) != 'undefined' ? tekval : tektext;
|
| 747 |
jQuery(this).parent('.sel-options').parent('.sel-imul').parent('.sel-wrap').children('select').children('option').removeAttr('selected').each(function() {
|
| 748 |
if (jQuery(this).html() == tektext) {
|
| 749 |
jQuery(this).attr('selected', 'select');
|
| 750 |
}
|
| 751 |
});
|
| 752 |
jQuery(this).parent('.sel-options').parent('.sel-imul').parent('.sel-wrap').children('select').change();
|
| 753 |
selenter = true;
|
| 754 |
selenter = false;
|
| 755 |
if (!selenter) {
|
| 756 |
jQuery('.sel-options').hide();
|
| 757 |
jQuery('.sel-imul').removeClass('act');
|
| 758 |
}
|
| 759 |
var ttt;
|
| 760 |
for (ttt=0; ttt < node.childNodes.length; ttt++) {
|
| 761 |
if( node.childNodes[ttt] && node.childNodes[ttt].nodeType == '3' && !/\S/.test( node.childNodes[ttt].nodeValue )) {
|
| 762 |
node.removeChild(node.childNodes[ttt]);
|
| 763 |
ttt--;
|
| 764 |
}
|
| 765 |
else {
|
| 766 |
if(node.childNodes[ttt].childNodes.length) {
|
| 767 |
remove_whitespace(node.childNodes[ttt]);
|
| 768 |
}
|
| 769 |
}
|
| 770 |
}
|
| 771 |
return;
|
| 772 |
if(element_value) {
|
| 773 |
jQuery("#"+id).datepicker('option', min_max, element_value);
|
| 774 |
}
|
| 775 |
else {
|
| 776 |
if(default_min_max == "today") {
|
| 777 |
jQuery("#"+id).datepicker('option', min_max, new Date());
|
| 778 |
}
|
| 779 |
else {
|
| 780 |
if (default_min_max.indexOf("d") == -1 && default_min_max.indexOf("m") == -1 && default_min_max.indexOf("y") == -1 && default_min_max.indexOf("w") == -1 && default_min_max != "") {
|
| 781 |
default_min_max = jQuery.datepicker.formatDate(format, new Date(default_min_max));
|
| 782 |
}
|
| 783 |
jQuery("#"+id).datepicker('option', min_max, default_min_max);
|
| 784 |
}
|
| 785 |
}
|
| 786 |
var element = jQuery("#wdform_" + wdid +"_element" + form_id);
|
| 787 |
var element_confirm = jQuery("#wdform_" + wdid +"_1_element" + form_id);
|
| 788 |
var condition_confirm_email = false;
|
| 789 |
if(!window["check_before_submit" + form_id][wdid + "_" + form_id]) {
|
| 790 |
condition_confirm_email = true;
|
| 791 |
}
|
| 792 |
else {
|
| 793 |
condition_confirm_email = jQuery(element).val() != jQuery(element_confirm).val() ? true : false;
|
| 794 |
}
|
| 795 |
if(condition_confirm_email) {
|
| 796 |
jQuery("#confirm_" + wdid + "_" + form_id).remove();
|
| 797 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:eq( 1 ) .error_label_confirm").removeClass("error_label_confirm");
|
| 798 |
if(jQuery(element).val() != jQuery(element_confirm).val()) {
|
| 799 |
jQuery(element_confirm).parent().parent().parent().append("<div id='confirm_" + wdid + "_" + form_id + "' class='fm-not-filled'>" + message + "</div>");
|
| 800 |
jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:eq( 1 ) .wdform-label").addClass("error_label_confirm");
|
| 801 |
}
|
| 802 |
window["check_before_submit" + form_id][wdid + "_" + form_id] = (wdid + "_" + form_id in window["check_before_submit" + form_id]) ? window["check_before_submit" + form_id][wdid + "_" + form_id] : true;
|
| 803 |
}
|
| 804 |
else {
|
| 805 |
jQuery("#confirm_" + wdid + "_" + form_id).remove();
|
| 806 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:eq( 1 ) .error_label_confirm").removeClass("error_label_confirm");
|
| 807 |
if(window["check_before_submit" + form_id][wdid + "_" + form_id] == true) {
|
| 808 |
delete window["check_before_submit" + form_id][wdid + "_" + form_id];
|
| 809 |
}
|
| 810 |
}
|
| 811 |
var element = jQuery("#wdform_" + wdid +"_element" + form_id);
|
| 812 |
var element_confirm = jQuery("#wdform_" + wdid +"_1_element" + form_id);
|
| 813 |
var re = /^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;
|
| 814 |
if(jQuery(element).val()!="" && !re.test(jQuery.trim(jQuery(element).val())) && jQuery(element).attr("title") != jQuery(element).val()){
|
| 815 |
jQuery("#check_email_" + wdid + "_" + form_id).remove();
|
| 816 |
jQuery(element).parent().parent().parent().append("<div id='check_email_" + wdid + "_" + form_id + "' class='fm-not-filled'>" + message_check + "</div>");
|
| 817 |
jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label_check_mail");
|
| 818 |
if(element.val() == element_confirm.val()) {
|
| 819 |
jQuery("#confirm_" + wdid + "_" + form_id).remove();
|
| 820 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:eq( 1 ) .error_label_confirm").removeClass("error_label_confirm");
|
| 821 |
}
|
| 822 |
delete window["check_before_submit" + form_id][wdid + "_" + form_id];
|
| 823 |
window["check_before_submit" + form_id][wdid + "_" + form_id] = false;
|
| 824 |
}
|
| 825 |
else {
|
| 826 |
jQuery("#check_email_" + wdid + "_" + form_id).remove();
|
| 827 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label_check_mail").removeClass("error_label_check_mail");
|
| 828 |
window["check_before_submit" + form_id][wdid + "_" + form_id] = true;
|
| 829 |
if(typeof element_confirm.val() ==="undefined") {
|
| 830 |
delete window["check_before_submit" + form_id][wdid + "_" + form_id];
|
| 831 |
}
|
| 832 |
}
|
| 833 |
var element = jQuery("#wdform_" + wdid +"_element" + form_id);
|
| 834 |
var element_confirm = jQuery("#wdform_" + wdid +"_1_element" + form_id);
|
| 835 |
var condition_confirm_pass = false;
|
| 836 |
condition_confirm_pass = element.val() !== element_confirm.val();
|
| 837 |
if(condition_confirm_pass) {
|
| 838 |
jQuery("#confirm_" + wdid + "_" + form_id).remove();
|
| 839 |
jQuery(element_confirm).parent().parent().parent().append("<div id='confirm_" + wdid + "_" + form_id + "' class='fm-not-filled'>" + message + "</div>");
|
| 840 |
jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:eq( 1 ) .wdform-label").addClass("error_label_check_pass");
|
| 841 |
window["check_before_submit" + form_id][wdid + "_" + form_id] = false;
|
| 842 |
}
|
| 843 |
else {
|
| 844 |
jQuery("#confirm_" + wdid + "_" + form_id).remove();
|
| 845 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:eq( 1 ) .error_label_check_pass").removeClass("error_label_check_pass");
|
| 846 |
delete window["check_before_submit" + form_id][wdid + "_" + form_id];
|
| 847 |
}
|
| 848 |
jQuery("#fm-scrollbox"+form_id).removeClass("fm-animated fadeInUp").addClass("fm-animated fadeOutDown fm-minimized");
|
| 849 |
jQuery("#fm-minimize-text"+form_id).removeClass("fm-animated fadeOutDown").addClass("fm-show fm-animated fadeInUp");
|
| 850 |
jQuery("#fm-minimize-text"+form_id).removeClass("fm-animated fadeInUp").addClass("fm-animated fadeOutDown");
|
| 851 |
jQuery("#fm-scrollbox"+form_id).removeClass("fm-animated fadeOutDown fm-minimized").addClass("fm-show fm-animated fadeInUp");
|
| 852 |
var hide_date = new Date();
|
| 853 |
hide_date.setDate(hide_date.getDate() + hide_interval);
|
| 854 |
if( hide_interval > 0 ) {
|
| 855 |
localStorage.setItem('hide-'+form_id, hide_date.getTime());
|
| 856 |
}
|
| 857 |
if(typeof close_callback === 'function') {
|
| 858 |
close_callback();
|
| 859 |
}
|
| 860 |
var x = jQuery("#form" + form_id);
|
| 861 |
var find_wrong_exp = false;
|
| 862 |
var check_regExp = regExpObj ? regExpObj : window['check_regExp_all'+form_id];
|
| 863 |
jQuery.each( check_regExp, function( wdid, exp ) {
|
| 864 |
var element = "#wdform_" + wdid + "_element" + form_id;
|
| 865 |
var RegExpression = "";
|
| 866 |
var rules = unescape(exp[0]);
|
| 867 |
(exp[1].length <= 0) ? RegExpression = new RegExp(rules) : RegExpression = new RegExp(rules, exp[1]);
|
| 868 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).length != 0 && x.find(jQuery("div[wdid='"+wdid+"']")).css("display") != "none") {
|
| 869 |
if(jQuery(element).val().length > 0 && jQuery(element).val() != jQuery(element).attr('title')) {
|
| 870 |
if (RegExpression.test(jQuery(element).val()) != true) {
|
| 871 |
jQuery("#form"+form_id+" #wd_exp_"+wdid).remove();
|
| 872 |
x.find(jQuery("div[wdid='"+wdid+"'] .wdform-element-section")).parent().parent().append("<div id='wd_exp_"+wdid+"' class='fm-not-filled'>" + exp[2] + "</div>");
|
| 873 |
jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label_exp");
|
| 874 |
find_wrong_exp = true;
|
| 875 |
if(!regExpObj){
|
| 876 |
scroll_on_element(form_id);
|
| 877 |
}
|
| 878 |
}
|
| 879 |
}
|
| 880 |
}
|
| 881 |
});
|
| 882 |
if(find_wrong_exp === false) {
|
| 883 |
return true;
|
| 884 |
}
|
| 885 |
return false;
|
| 886 |
if ( jQuery("#form" + form_id + " .fm-not-filled").length == 0 ) {
|
| 887 |
return true;
|
| 888 |
}
|
| 889 |
var parent_div = jQuery("#form" + form_id + " .fm-not-filled").closest(".wdform_row");
|
| 890 |
var body_hight = document.body.clientHeight;
|
| 891 |
var element_offset = jQuery("#form" + form_id + " .fm-not-filled").offset().top;
|
| 892 |
var scrollChecker = function() {
|
| 893 |
if(document.body.clientHeight !== body_hight ) {
|
| 894 |
body_hight = document.body.clientHeight;
|
| 895 |
element_offset = jQuery("#form" + form_id + " .fm-not-filled").offset().top;
|
| 896 |
jQuery('html').stop();
|
| 897 |
animateBodyToError();
|
| 898 |
}
|
| 899 |
};
|
| 900 |
jQuery(window).on("scroll",scrollChecker);
|
| 901 |
function animateBodyToError() {
|
| 902 |
jQuery('html').animate({
|
| 903 |
scrollTop: element_offset - 150
|
| 904 |
}, 500, function() {
|
| 905 |
jQuery(window).off("scroll", scrollChecker);
|
| 906 |
old_bg=jQuery(parent_div).css("background-color");
|
| 907 |
jQuery(parent_div).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
|
| 908 |
});
|
| 909 |
}
|
| 910 |
animateBodyToError();
|
| 911 |
var x = jQuery("#form" + form_id);
|
| 912 |
var find_wrong_type_upload = false;
|
| 913 |
var upload_check = upload_check_field ? upload_check_field : window['file_upload_check'+form_id];
|
| 914 |
jQuery.each( upload_check, function( wdid, upload_types ) {
|
| 915 |
var element = "#wdform_" + wdid + "_element" + form_id;
|
| 916 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).length != 0 && x.find(jQuery("div[wdid='"+wdid+"']")).css("display") != "none") {
|
| 917 |
ext_available=getfileextension(jQuery(element).val(), upload_types);
|
| 918 |
if(!ext_available) {
|
| 919 |
jQuery("#form"+form_id+" #wd_upload_type_"+wdid).remove();
|
| 920 |
x.find(jQuery("div[wdid='"+wdid+"'] .wdform-element-section")).parent().parent().append("<div id='wd_upload_type_"+wdid+"' class='fm-not-filled'>" + fm_objectL10n.fm_file_type_error + "</div>");
|
| 921 |
jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label_upload");
|
| 922 |
find_wrong_type_upload = true;
|
| 923 |
}
|
| 924 |
else {
|
| 925 |
jQuery("#form"+form_id+" #wd_upload_type_"+wdid).remove();
|
| 926 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label_upload").removeClass("error_label_upload")
|
| 927 |
}
|
| 928 |
}
|
| 929 |
});
|
| 930 |
if(!upload_check_field && find_wrong_type_upload === true){
|
| 931 |
scroll_on_element(form_id);
|
| 932 |
}
|
| 933 |
if(find_wrong_type_upload === false) {
|
| 934 |
return true;
|
| 935 |
}
|
| 936 |
return false;
|
| 937 |
var x = jQuery("#form" + form_id);
|
| 938 |
var req_fields = field_id ? field_id.split() : window['required_fields'+form_id];
|
| 939 |
var not_filled = {};
|
| 940 |
jQuery(req_fields).each(function(index, wdid) {
|
| 941 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).length != 0 && x.find(jQuery("div[wdid='"+wdid+"']")).css("display") != "none" ) {
|
| 942 |
switch(window['labels_and_ids'+form_id][wdid]) {
|
| 943 |
case 'type_text':
|
| 944 |
case 'type_textarea':
|
| 945 |
case 'type_paypal_price_new':
|
| 946 |
case 'type_spinner':
|
| 947 |
case 'type_number':
|
| 948 |
case 'type_phone_new':
|
| 949 |
case 'type_submitter_mail': {
|
| 950 |
var element = "#wdform_" + wdid + "_element" + form_id;
|
| 951 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 952 |
if(jQuery(element).val() == jQuery(element).attr('title') || jQuery(element).val() == ""){
|
| 953 |
not_filled[wdid] = element;
|
| 954 |
}
|
| 955 |
}
|
| 956 |
if(!field_id && !window['check_submit'+form_id]) {
|
| 957 |
jQuery(element).focus(function() {
|
| 958 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 959 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 960 |
}).blur(function() {
|
| 961 |
wd_is_filled(form_id, wdid);
|
| 962 |
});
|
| 963 |
}
|
| 964 |
break;
|
| 965 |
}
|
| 966 |
case 'type_own_select':
|
| 967 |
case 'type_country':
|
| 968 |
case 'type_paypal_select': {
|
| 969 |
var element = "#wdform_" + wdid + "_element" + form_id;
|
| 970 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 971 |
if(jQuery(element).val() == "") {
|
| 972 |
not_filled[wdid] = element;
|
| 973 |
}
|
| 974 |
}
|
| 975 |
if(!field_id && !window['check_submit'+form_id]) {
|
| 976 |
jQuery(element).focus(function() {
|
| 977 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 978 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 979 |
}).blur(function() {
|
| 980 |
wd_is_filled(form_id, wdid);
|
| 981 |
}).change(function() {
|
| 982 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 983 |
wd_is_filled(form_id, wdid);
|
| 984 |
});
|
| 985 |
}
|
| 986 |
break;
|
| 987 |
}
|
| 988 |
case 'type_phone': {
|
| 989 |
var element = ["#wdform_" + wdid + "_element_first" + form_id, "#wdform_" + wdid + "_element_last" + form_id];
|
| 990 |
jQuery.each(element, function(i, elem){
|
| 991 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 992 |
if(jQuery(elem).val() == "" || jQuery(elem).val() == jQuery(elem).attr('title')){
|
| 993 |
not_filled[wdid] = elem;
|
| 994 |
}
|
| 995 |
}
|
| 996 |
if(!field_id && !window['check_submit'+form_id]){
|
| 997 |
jQuery(elem).focus(function() {
|
| 998 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 999 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1000 |
}).blur(function() {
|
| 1001 |
wd_is_filled(form_id, wdid);
|
| 1002 |
});
|
| 1003 |
}
|
| 1004 |
});
|
| 1005 |
break;
|
| 1006 |
}
|
| 1007 |
case 'type_name': {
|
| 1008 |
var element = ["#wdform_" + wdid + "_element_title" + form_id, "#wdform_" + wdid + "_element_first" + form_id, "#wdform_" + wdid + "_element_last" + form_id, "#wdform_" + wdid + "_element_middle" + form_id];
|
| 1009 |
jQuery.each(element, function(i, elem){
|
| 1010 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1011 |
if((jQuery(elem).val() == "" || jQuery(elem).val() == jQuery(elem).attr('title')) && typeof jQuery(elem).val() != "undefined"){
|
| 1012 |
not_filled[wdid] = elem;
|
| 1013 |
}
|
| 1014 |
}
|
| 1015 |
if(!field_id && !window['check_submit'+form_id]){
|
| 1016 |
jQuery(elem).focus(function() {
|
| 1017 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1018 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1019 |
}).blur(function() {
|
| 1020 |
wd_is_filled(form_id, wdid);
|
| 1021 |
});
|
| 1022 |
}
|
| 1023 |
});
|
| 1024 |
break;
|
| 1025 |
}
|
| 1026 |
case 'type_address': {
|
| 1027 |
var element = ["#wdform_" + wdid + "_street1" + form_id, "#wdform_" + wdid + "_street2" + form_id, "#wdform_" + wdid + "_city" + form_id, "#wdform_" + wdid + "_state" + form_id, "#wdform_" + wdid + "_postal" + form_id, "#wdform_" + wdid + "_country" + form_id];
|
| 1028 |
jQuery.each(element, function(i, elem){
|
| 1029 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1030 |
if(jQuery(elem).val() == "" && typeof jQuery(elem).val() != "undefined"){
|
| 1031 |
not_filled[wdid] = elem;
|
| 1032 |
}
|
| 1033 |
}
|
| 1034 |
if(!field_id && !window['check_submit'+form_id]){
|
| 1035 |
jQuery(elem).focus(function() {
|
| 1036 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1037 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1038 |
}).blur(function() {
|
| 1039 |
wd_is_filled(form_id, wdid);
|
| 1040 |
});
|
| 1041 |
}
|
| 1042 |
});
|
| 1043 |
break;
|
| 1044 |
}
|
| 1045 |
case 'type_checkbox':
|
| 1046 |
case 'type_radio':
|
| 1047 |
case 'type_scale_rating':
|
| 1048 |
case 'type_paypal_checkbox':
|
| 1049 |
case 'type_paypal_radio':
|
| 1050 |
case 'type_paypal_shipping': {
|
| 1051 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none"){
|
| 1052 |
if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0 || jQuery("#wdform_"+ wdid +"_other_input" + form_id).val() == ""){
|
| 1053 |
not_filled[wdid] = true;
|
| 1054 |
}
|
| 1055 |
}
|
| 1056 |
if(!field_id && !window['check_submit'+form_id]){
|
| 1057 |
jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){
|
| 1058 |
jQuery(this).change(function() {
|
| 1059 |
if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0 || jQuery("#wdform_"+ wdid +"_other_input" + form_id).val() == ""){
|
| 1060 |
wd_is_filled(form_id, wdid);
|
| 1061 |
}
|
| 1062 |
else{
|
| 1063 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1064 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1065 |
}
|
| 1066 |
});
|
| 1067 |
});
|
| 1068 |
}
|
| 1069 |
break;
|
| 1070 |
}
|
| 1071 |
case 'type_star_rating': {
|
| 1072 |
var element = "#wdform_" + wdid + "_selected_star_amount" + form_id;
|
| 1073 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1074 |
if(jQuery(element).val() == ""){
|
| 1075 |
not_filled[wdid] = true;
|
| 1076 |
}
|
| 1077 |
}
|
| 1078 |
if(!field_id && !window['check_submit'+form_id]){
|
| 1079 |
jQuery("#wdform_" + wdid + "_element" + form_id).click(function(){
|
| 1080 |
if(jQuery(element).val() != ""){
|
| 1081 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1082 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1083 |
}
|
| 1084 |
});
|
| 1085 |
}
|
| 1086 |
break;
|
| 1087 |
}
|
| 1088 |
case 'type_range': {
|
| 1089 |
var element = ["#wdform_" + wdid + "_element" + form_id + "0", "#wdform_" + wdid + "_element" + form_id + "1"];
|
| 1090 |
jQuery.each(element, function(i, elem){
|
| 1091 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1092 |
if(jQuery(elem).val() == ""){
|
| 1093 |
not_filled[wdid] = elem;
|
| 1094 |
}
|
| 1095 |
}
|
| 1096 |
if(!field_id && !window['check_submit'+form_id]){
|
| 1097 |
jQuery(elem).focus(function() {
|
| 1098 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1099 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1100 |
}).blur(function() {
|
| 1101 |
wd_is_filled(form_id, wdid);
|
| 1102 |
});
|
| 1103 |
}
|
| 1104 |
});
|
| 1105 |
break;
|
| 1106 |
}
|
| 1107 |
case 'type_grading': {
|
| 1108 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1109 |
var count_grading = 0;
|
| 1110 |
jQuery.each(jQuery("#wdform_" + wdid + "_element" + form_id + " input"), function( i, val ){
|
| 1111 |
if(jQuery(this).val() != "")
|
| 1112 |
count_grading ++;
|
| 1113 |
});
|
| 1114 |
if(count_grading == 0)
|
| 1115 |
not_filled[wdid] = true;
|
| 1116 |
}
|
| 1117 |
if(!field_id && !window['check_submit'+form_id]){
|
| 1118 |
jQuery.each(jQuery("#wdform_" + wdid + "_element" + form_id + " input"), function( i, val ){
|
| 1119 |
jQuery(this).focus(function() {
|
| 1120 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1121 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1122 |
}).blur(function() {
|
| 1123 |
wd_is_filled(form_id, wdid);
|
| 1124 |
});
|
| 1125 |
});
|
| 1126 |
}
|
| 1127 |
break;
|
| 1128 |
}
|
| 1129 |
case 'type_slider': {
|
| 1130 |
var slider_element = "#wdform_" + wdid + "_element" + form_id;
|
| 1131 |
var element = "#wdform_" + wdid + "_slider_value" + form_id;
|
| 1132 |
var min_value = "#wdform_" + wdid + "_element_min" + form_id;
|
| 1133 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1134 |
if(jQuery(element).val() == jQuery(min_value).html()){
|
| 1135 |
not_filled[wdid] = true;
|
| 1136 |
}
|
| 1137 |
}
|
| 1138 |
if(!field_id && !window['check_submit'+form_id]){
|
| 1139 |
jQuery(slider_element).slider({
|
| 1140 |
change: function( event, ui ) {
|
| 1141 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1142 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1143 |
wd_is_filled(form_id, wdid);
|
| 1144 |
}
|
| 1145 |
});
|
| 1146 |
}
|
| 1147 |
break;
|
| 1148 |
}
|
| 1149 |
case 'type_date':
|
| 1150 |
case 'type_date_new': {
|
| 1151 |
var element = "#wdform_" + wdid + "_element" + form_id;
|
| 1152 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1153 |
if(jQuery(element).val() == ""){
|
| 1154 |
not_filled[wdid] = element;
|
| 1155 |
}
|
| 1156 |
}
|
| 1157 |
if(!field_id && !window['check_submit'+form_id]){
|
| 1158 |
jQuery(element).focus(function() {
|
| 1159 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1160 |
}).change(function() {
|
| 1161 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1162 |
wd_is_filled(form_id, wdid);
|
| 1163 |
});
|
| 1164 |
}
|
| 1165 |
break;
|
| 1166 |
}
|
| 1167 |
case 'type_date_range': {
|
| 1168 |
var element = ["#wdform_" + wdid + "_element" + form_id + "0", "#wdform_" + wdid + "_element" + form_id + "1"];
|
| 1169 |
jQuery.each(element, function(i, elem){
|
| 1170 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1171 |
if(jQuery(elem).val() == ""){
|
| 1172 |
not_filled[wdid] = elem;
|
| 1173 |
}
|
| 1174 |
}
|
| 1175 |
if(!field_id && !window['check_submit'+form_id]){
|
| 1176 |
jQuery(elem).focus(function() {
|
| 1177 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1178 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1179 |
}).change(function() {
|
| 1180 |
wd_is_filled(form_id, wdid);
|
| 1181 |
});
|
| 1182 |
}
|
| 1183 |
});
|
| 1184 |
break;
|
| 1185 |
}
|
| 1186 |
case 'type_date_fields': {
|
| 1187 |
var element = ["#wdform_" + wdid + "_day" + form_id, "#wdform_" + wdid + "_month" + form_id, "#wdform_" + wdid + "_year" + form_id];
|
| 1188 |
jQuery.each(element, function(i, elem) {
|
| 1189 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1190 |
if(jQuery(elem).val() == ""){
|
| 1191 |
not_filled[wdid] = elem;
|
| 1192 |
}
|
| 1193 |
}
|
| 1194 |
if(!field_id && !window['check_submit'+form_id]){
|
| 1195 |
jQuery(elem).focus(function() {
|
| 1196 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1197 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1198 |
}).blur(function() {
|
| 1199 |
wd_is_filled(form_id, wdid);
|
| 1200 |
}).change(function() {
|
| 1201 |
wd_is_filled(form_id, wdid);
|
| 1202 |
});
|
| 1203 |
}
|
| 1204 |
});
|
| 1205 |
break;
|
| 1206 |
}
|
| 1207 |
case 'type_time': {
|
| 1208 |
var element = ["#wdform_" + wdid + "_hh" + form_id, "#wdform_" + wdid + "_mm" + form_id, "#wdform_" + wdid + "_ss" + form_id];
|
| 1209 |
jQuery.each(element, function(i, elem){
|
| 1210 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1211 |
if(jQuery(elem).val() == "" && typeof jQuery(elem).val() != "undefined"){
|
| 1212 |
not_filled[wdid] = elem;
|
| 1213 |
}
|
| 1214 |
}
|
| 1215 |
if(!field_id && !window['check_submit'+form_id]){
|
| 1216 |
jQuery(elem).focus(function() {
|
| 1217 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1218 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1219 |
}).blur(function() {
|
| 1220 |
wd_is_filled(form_id, wdid);
|
| 1221 |
});
|
| 1222 |
}
|
| 1223 |
});
|
| 1224 |
break;
|
| 1225 |
}
|
| 1226 |
case 'type_password': {
|
| 1227 |
var element = "#wdform_" + wdid + "_element" + form_id;
|
| 1228 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1229 |
if(jQuery(element).val() == ""){
|
| 1230 |
not_filled[wdid] = element;
|
| 1231 |
}
|
| 1232 |
}
|
| 1233 |
if(!field_id && !window['check_submit'+form_id]){
|
| 1234 |
jQuery(element).focus(function() {
|
| 1235 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1236 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1237 |
}).blur(function() {
|
| 1238 |
wd_is_filled(form_id, wdid);
|
| 1239 |
});
|
| 1240 |
}
|
| 1241 |
break;
|
| 1242 |
}
|
| 1243 |
case 'type_file_upload': {
|
| 1244 |
var element = "#wdform_" + wdid + "_element" + form_id;
|
| 1245 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1246 |
if(jQuery(element).val() == jQuery(element).attr('title') || jQuery(element).val() == ""){
|
| 1247 |
not_filled[wdid] = element;
|
| 1248 |
}
|
| 1249 |
}
|
| 1250 |
if(!field_id && !window['check_submit'+form_id]) {
|
| 1251 |
jQuery(element).focus(function() {
|
| 1252 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1253 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1254 |
}).change(function() {
|
| 1255 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1256 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1257 |
wd_is_filled(form_id, wdid);
|
| 1258 |
});
|
| 1259 |
}
|
| 1260 |
break;
|
| 1261 |
}
|
| 1262 |
case 'type_matrix': {
|
| 1263 |
if(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') =="radio" || jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') =="checkbox"){
|
| 1264 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1265 |
if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0){
|
| 1266 |
not_filled[wdid] = true;
|
| 1267 |
}
|
| 1268 |
}
|
| 1269 |
if(!field_id && !window['check_submit'+form_id]) {
|
| 1270 |
jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){
|
| 1271 |
jQuery(this).change(function() {
|
| 1272 |
if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0){
|
| 1273 |
wd_is_filled(form_id, wdid);
|
| 1274 |
}
|
| 1275 |
else{
|
| 1276 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1277 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1278 |
}
|
| 1279 |
});
|
| 1280 |
});
|
| 1281 |
}
|
| 1282 |
}
|
| 1283 |
else if(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') =="text") {
|
| 1284 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1285 |
var count_input_matrix = 0;
|
| 1286 |
jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){
|
| 1287 |
if(jQuery(this).val() != "")
|
| 1288 |
count_input_matrix ++;
|
| 1289 |
});
|
| 1290 |
if(count_input_matrix == 0)
|
| 1291 |
not_filled[wdid] = true;
|
| 1292 |
}
|
| 1293 |
if(!field_id && !window['check_submit'+form_id]){
|
| 1294 |
jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){
|
| 1295 |
jQuery(this)
|
| 1296 |
.focus(function() {
|
| 1297 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1298 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1299 |
})
|
| 1300 |
.blur(function() {
|
| 1301 |
wd_is_filled(form_id, wdid);
|
| 1302 |
});
|
| 1303 |
});
|
| 1304 |
}
|
| 1305 |
}
|
| 1306 |
else {
|
| 1307 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1308 |
var count_select_matrix = 0;
|
| 1309 |
jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] select"), function( i, val ){
|
| 1310 |
if(jQuery(this).val() != "")
|
| 1311 |
count_select_matrix ++;
|
| 1312 |
});
|
| 1313 |
if(count_select_matrix == 0)
|
| 1314 |
not_filled[wdid] = true;
|
| 1315 |
}
|
| 1316 |
if(!field_id && !window['check_submit'+form_id]){
|
| 1317 |
jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] select"), function( i, val ){
|
| 1318 |
jQuery(this).focus(function() {
|
| 1319 |
if(jQuery(this).val() == ""){
|
| 1320 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1321 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1322 |
}
|
| 1323 |
}).change(function() {
|
| 1324 |
wd_is_filled(form_id, wdid);
|
| 1325 |
}).blur(function() {
|
| 1326 |
wd_is_filled(form_id, wdid);
|
| 1327 |
});
|
| 1328 |
});
|
| 1329 |
}
|
| 1330 |
}
|
| 1331 |
break;
|
| 1332 |
}
|
| 1333 |
case 'type_send_copy': {
|
| 1334 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1335 |
if(jQuery("div[wdid='"+ wdid +"'] input:checked").length == 0){
|
| 1336 |
not_filled[wdid] = true;
|
| 1337 |
}
|
| 1338 |
}
|
| 1339 |
if(!field_id && !window['check_submit'+form_id]){
|
| 1340 |
jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").change(function() {
|
| 1341 |
if(jQuery("div[wdid='"+ wdid +"'] input:checked").length == 0){
|
| 1342 |
wd_is_filled(form_id, wdid);
|
| 1343 |
}
|
| 1344 |
else {
|
| 1345 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1346 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1347 |
}
|
| 1348 |
});
|
| 1349 |
}
|
| 1350 |
break;
|
| 1351 |
}
|
| 1352 |
case 'type_captcha':
|
| 1353 |
case 'type_arithmetic_captcha': {
|
| 1354 |
var element = "";
|
| 1355 |
if(window['labels_and_ids'+form_id][wdid] == 'type_captcha') {
|
| 1356 |
element = '#wd_captcha_input' + form_id;
|
| 1357 |
}
|
| 1358 |
else {
|
| 1359 |
element = '#wd_arithmetic_captcha_input' + form_id;
|
| 1360 |
}
|
| 1361 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1362 |
if(jQuery(element).val() == ""){
|
| 1363 |
jQuery(".message_captcha").html("");
|
| 1364 |
not_filled[wdid] = element;
|
| 1365 |
}
|
| 1366 |
}
|
| 1367 |
if(!field_id && !window['check_submit'+form_id]){
|
| 1368 |
jQuery(element).focus(function() {
|
| 1369 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1370 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1371 |
}).blur(function() {
|
| 1372 |
wd_is_filled(form_id, wdid);
|
| 1373 |
});
|
| 1374 |
}
|
| 1375 |
break;
|
| 1376 |
}
|
| 1377 |
}
|
| 1378 |
}
|
| 1379 |
});
|
| 1380 |
if (Object.keys(not_filled).length === 0
|
| 1381 |
&& Object.keys(window["check_before_submit" + form_id]).length === 0) {
|
| 1382 |
return true;
|
| 1383 |
}
|
| 1384 |
else {
|
| 1385 |
if (Object.keys(not_filled).length !== 0) {
|
| 1386 |
jQuery.each( not_filled, function( wdid, elem ) {
|
| 1387 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1388 |
jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-element-section:first").parent().parent().append("<div id='wd_required_"+wdid+"' class='fm-not-filled'>" + fm_objectL10n.fm_field_is_required + "</div>");
|
| 1389 |
jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label");
|
| 1390 |
});
|
| 1391 |
}
|
| 1392 |
if(!field_id){
|
| 1393 |
scroll_on_element(form_id);
|
| 1394 |
}
|
| 1395 |
window['check_submit'+form_id] = 1;
|
| 1396 |
return false;
|
| 1397 |
}
|
| 1398 |
var x = jQuery("#form" + form_id);
|
| 1399 |
var check_price_min_max = price_nim_max ? price_nim_max : window['check_paypal_price_min_max'+form_id];
|
| 1400 |
var find_wrong_price = false;
|
| 1401 |
jQuery.each( check_price_min_max, function( wdid, min_max_option ) {
|
| 1402 |
var element = "#wdform_" + wdid + "_element" + form_id;
|
| 1403 |
var range_min = min_max_option[3] ? min_max_option[3] : 0;
|
| 1404 |
var range_max = min_max_option[4] ? min_max_option[4] : -1;
|
| 1405 |
if((min_max_option[2] ? true : false) || jQuery(element).val()!=min_max_option[1]) {
|
| 1406 |
if((range_max!=-1 && parseFloat(jQuery(element).val()) > range_max) || parseFloat(jQuery(element).val()) < range_min) {
|
| 1407 |
jQuery("#form"+form_id+" #wd_price_"+wdid).remove();
|
| 1408 |
x.find(jQuery("div[wdid='"+wdid+"'] .wdform-element-section")).parent().parent().append("<div id='wd_price_"+wdid+"' class='fm-not-filled'>" + fm_objectL10n.fm_min_max_check_1 + min_max_option[0] + fm_objectL10n.fm_min_max_check_2 + (min_max_option[3] ? min_max_option[3] : 0) + '-' + (min_max_option[4] ? min_max_option[4] : "any") + "</div>");
|
| 1409 |
jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label_price");
|
| 1410 |
find_wrong_price = true;
|
| 1411 |
if(!price_nim_max) {
|
| 1412 |
scroll_on_element(form_id);
|
| 1413 |
}
|
| 1414 |
}
|
| 1415 |
}
|
| 1416 |
});
|
| 1417 |
if(find_wrong_price === false) {
|
| 1418 |
return true;
|
| 1419 |
}
|
| 1420 |
return false;
|
| 1421 |
var x = jQuery("#form" + form_id);
|
| 1422 |
var find_wrong_values = false;
|
| 1423 |
var spinner_check = spinner_check_field ? spinner_check_field : window['spinner_check'+form_id];
|
| 1424 |
jQuery.each( spinner_check, function( wdid, spinner_values ) {
|
| 1425 |
var element = "#wdform_" + wdid + "_element" + form_id;
|
| 1426 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).length != 0 && x.find(jQuery("div[wdid='"+wdid+"']")).css("display") != "none") {
|
| 1427 |
if(parseInt(jQuery(element).val()) < parseInt(spinner_values[0]) || parseInt(jQuery(element).val()) > parseInt(spinner_values[1])) {
|
| 1428 |
jQuery("#form"+form_id+" #wd_price_"+wdid).remove();
|
| 1429 |
x.find(jQuery("div[wdid='"+wdid+"'] .wdform-element-section")).parent().parent().append("<div id='wd_price_"+wdid+"' class='fm-not-filled'>" + fm_objectL10n.fm_spinner_check + (spinner_values[0] ? spinner_values[0] : 0) + '-' + (spinner_values[1] ? spinner_values[1] : "any") + "</div>");
|
| 1430 |
jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label_price");
|
| 1431 |
find_wrong_values = true;
|
| 1432 |
if(!spinner_check_field) {
|
| 1433 |
scroll_on_element(form_id);
|
| 1434 |
}
|
| 1435 |
}
|
| 1436 |
}
|
| 1437 |
});
|
| 1438 |
if(find_wrong_values === false) {
|
| 1439 |
return true;
|
| 1440 |
}
|
| 1441 |
return false;
|
| 1442 |
var scrollPercent = 100 * jQuery(window).scrollTop() / (jQuery(document).height() - jQuery(window).height());
|
| 1443 |
if(!jQuery("#fm-scrollbox" + form_id).hasClass("fm-minimized") && scrollPercent >= window["scrollbox_trigger_point" + form_id]) {
|
| 1444 |
setTimeout(function() {
|
| 1445 |
jQuery("#fm-scrollbox" + form_id).removeClass("fm-animated fadeOutDown").addClass("fm-animated fadeInUp");
|
| 1446 |
jQuery("#fm-scrollbox" + form_id).css("visibility", "");
|
| 1447 |
jQuery("#fm-scrollbox" + form_id + " .fm-header-img").addClass("fm-animated " + window["header_image_animation" + form_id]);
|
| 1448 |
}, window["scrollbox_loading_delay" + form_id] * 1000);
|
| 1449 |
} else {
|
| 1450 |
if(window["scrollbox_auto_hide" + form_id]) {
|
| 1451 |
jQuery("#fm-scrollbox" + form_id + " .fm-header-img").removeClass("fm-animated " + window["header_image_animation" + form_id]);
|
| 1452 |
jQuery("#fm-scrollbox" + form_id).removeClass("fm-animated fadeInUp").addClass("fm-animated fadeOutDown");
|
| 1453 |
}
|
| 1454 |
}
|
| 1455 |
if (typeof window["before_submit" + form_id] == 'function') {
|
| 1456 |
if (window["before_submit" + form_id]()) {
|
| 1457 |
return false;
|
| 1458 |
}
|
| 1459 |
}
|
| 1460 |
if (!fm_check(0, form_id)) {
|
| 1461 |
return false;
|
| 1462 |
}
|
| 1463 |
jQuery("#form" + form_id + " button").each(function () {
|
| 1464 |
jQuery(this).attr('disabled', 'disabled');
|
| 1465 |
});
|
| 1466 |
jQuery("<input type=\"hidden\" name=\"save_or_submit"+form_id+"\" value =\"submit\" />").appendTo("#form"+form_id);
|
| 1467 |
window["onsubmit_js" + form_id]();
|
| 1468 |
if (window['checkStripe' + form_id] == 1) {
|
| 1469 |
var jq_mainForm = jQuery("form[id='form"+form_id+"']");
|
| 1470 |
if (jq_mainForm.find(".wdfm_stripe_elem").first().parent().parents(".wdform_row").is(":visible")) {
|
| 1471 |
wdfm_call_stripe();
|
| 1472 |
}
|
| 1473 |
else {
|
| 1474 |
jQuery("#form"+form_id).submit();
|
| 1475 |
}
|
| 1476 |
}
|
| 1477 |
else {
|
| 1478 |
jQuery("#form"+form_id).submit();
|
| 1479 |
}
|
| 1480 |
if ( typeof window["before_reset" + form_id] == 'function' ) {
|
| 1481 |
window["before_reset" + form_id]();
|
| 1482 |
}
|
| 1483 |
jQuery.each(window['labels_and_ids'+form_id], function (index, elem) {
|
| 1484 |
switch(elem) {
|
| 1485 |
case "type_text":
|
| 1486 |
case "type_textarea":
|
| 1487 |
case "type_number":
|
| 1488 |
case "type_spinner":
|
| 1489 |
case 'type_own_select':
|
| 1490 |
case 'type_country':
|
| 1491 |
case 'type_date':
|
| 1492 |
case 'type_date_new':
|
| 1493 |
case 'type_hidden':
|
| 1494 |
case 'type_paypal_price_new':
|
| 1495 |
case 'type_phone_new':
|
| 1496 |
jQuery("#wdform_"+index+"_element"+form_id).val('');
|
| 1497 |
break;
|
| 1498 |
case 'type_submitter_mail':
|
| 1499 |
case 'type_password':
|
| 1500 |
jQuery("#wdform_"+index+"_element"+form_id).val('');
|
| 1501 |
if(jQuery("#wdform_"+index+"_1_element"+form_id)){
|
| 1502 |
jQuery("#wdform_"+index+"_1_element"+form_id).val('');
|
| 1503 |
if(jQuery("#confirm_"+index+"_"+form_id))
|
| 1504 |
jQuery("#confirm_"+index+"_"+form_id).remove();
|
| 1505 |
if(elem == 'type_submitter_mail' && jQuery("#check_email_"+index+"_"+form_id))
|
| 1506 |
jQuery("#check_email_"+index+"_"+form_id).remove();
|
| 1507 |
}
|
| 1508 |
break;
|
| 1509 |
case 'type_date_range':
|
| 1510 |
jQuery("#wdform_"+index+"_element"+form_id+"0").val('');
|
| 1511 |
jQuery("#wdform_"+index+"_element"+form_id+"1").val('');
|
| 1512 |
break;
|
| 1513 |
case 'type_send_copy':
|
| 1514 |
jQuery("#wdform_"+index+"_element"+form_id).prop('checked', false);
|
| 1515 |
break;
|
| 1516 |
case 'type_phone':
|
| 1517 |
jQuery("#wdform_"+index+"_element_first"+form_id+", #wdform_"+index+"_element_last"+form_id).val('');
|
| 1518 |
break;
|
| 1519 |
case 'type_name':
|
| 1520 |
jQuery("#wdform_"+index+"_element_first"+form_id+", #wdform_"+index+"_element_last"+form_id+", #wdform_"+index+"_element_title"+form_id+", #wdform_"+index+"_element_middle"+form_id).val('');
|
| 1521 |
break;
|
| 1522 |
case 'type_address':
|
| 1523 |
jQuery("#wdform_"+index+"_street1"+form_id+", #wdform_"+index+"_street2"+form_id+", #wdform_"+index+"_city"+form_id+", #wdform_"+index+"_state"+form_id+", #wdform_"+index+"_postal"+form_id+", #wdform_"+index+"_country"+form_id).val('');
|
| 1524 |
break;
|
| 1525 |
case 'type_checkbox':
|
| 1526 |
jQuery("#form"+form_id+" div[wdid='"+index+"'] .checkbox-div input").prop('checked', false);
|
| 1527 |
jQuery("#wdform_"+index+"_other_br"+form_id).remove();
|
| 1528 |
jQuery("#wdform_"+index+"_other_input"+form_id).remove();
|
| 1529 |
break;
|
| 1530 |
case 'type_radio':
|
| 1531 |
jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop('checked', false);
|
| 1532 |
jQuery("#wdform_"+index+"_other_br"+form_id).remove();
|
| 1533 |
jQuery("#wdform_"+index+"_other_input"+form_id).remove();
|
| 1534 |
break;
|
| 1535 |
case 'type_time':
|
| 1536 |
jQuery("#wdform_"+index+"_hh"+form_id+", #wdform_"+index+"_mm"+form_id+", #wdform_"+index+"_ss"+form_id+", #wdform_"+index+"_am_pm"+form_id).val('');
|
| 1537 |
break;
|
| 1538 |
case 'type_date_fields':
|
| 1539 |
jQuery("#wdform_"+index+"_day"+form_id+", #wdform_"+index+"_month"+form_id+", #wdform_"+index+"_year"+form_id).val('');
|
| 1540 |
break;
|
| 1541 |
case 'type_file_upload':
|
| 1542 |
jQuery("#wdform_"+index+"_element"+form_id+"_save").remove();
|
| 1543 |
break;
|
| 1544 |
case 'type_paypal_price':
|
| 1545 |
jQuery("#wdform_"+index+"_element_dollars"+form_id+", #wdform_"+index+"_element_cents"+form_id).val('');
|
| 1546 |
break;
|
| 1547 |
case 'type_paypal_select':
|
| 1548 |
jQuery("#wdform_"+index+"_element"+form_id+", #wdform_"+index+"_element_quantity"+form_id+", #form"+form_id+" div[wdid='"+index+"'] .paypal-property select").val('');
|
| 1549 |
break;
|
| 1550 |
case 'type_paypal_radio':
|
| 1551 |
jQuery("#wdform_"+index+"_element_quantity"+form_id+",#form"+form_id+" div[wdid='"+index+"'] .paypal-property select").val('');
|
| 1552 |
jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop('checked', false);
|
| 1553 |
break;
|
| 1554 |
case 'type_paypal_shipping':
|
| 1555 |
jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop('checked', false);
|
| 1556 |
break;
|
| 1557 |
case 'type_paypal_checkbox':
|
| 1558 |
jQuery("#wdform_"+index+"_element_quantity"+form_id+",#form"+form_id+" div[wdid='"+index+"'] .paypal-property select").val('');
|
| 1559 |
jQuery("#form"+form_id+" div[wdid='"+index+"'] .checkbox-div input").prop('checked', false);
|
| 1560 |
break;
|
| 1561 |
case 'type_star_rating':
|
| 1562 |
jQuery("#wdform_"+index+"_selected_star_amount"+form_id).val('');
|
| 1563 |
jQuery("#wdform_"+index+"_element"+form_id+" img").attr('src', fm_objectL10n.plugin_url + '/images/star.png');
|
| 1564 |
break;
|
| 1565 |
case 'type_scale_rating':
|
| 1566 |
jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop('checked', false);
|
| 1567 |
break;
|
| 1568 |
case 'type_slider':
|
| 1569 |
jQuery("#wdform_"+index+"_element"+form_id).slider({
|
| 1570 |
value: eval(0),
|
| 1571 |
});
|
| 1572 |
jQuery("#wdform_"+index+"_element_value"+form_id).html('0');
|
| 1573 |
break;
|
| 1574 |
case 'type_range':
|
| 1575 |
jQuery("#wdform_"+index+"_element"+form_id+"0, #wdform_"+index+"_element"+form_id+"1").val('');
|
| 1576 |
break;
|
| 1577 |
case 'type_grading':
|
| 1578 |
jQuery("#wdform_"+index+"_element"+form_id+" input").val('');
|
| 1579 |
break;
|
| 1580 |
case 'type_matrix':
|
| 1581 |
jQuery("#wdform_"+index+"_element"+form_id+" .radio-div input").prop('checked', false);
|
| 1582 |
jQuery("#wdform_"+index+"_element"+form_id+" .checkbox-div input").prop('checked', false);
|
| 1583 |
jQuery("#wdform_"+index+"_element"+form_id+" input[type='text']").val('');
|
| 1584 |
jQuery("#wdform_"+index+"_element"+form_id+" select").val('');
|
| 1585 |
break;
|
| 1586 |
case 'type_paypal_total':
|
| 1587 |
jQuery("#wdform_"+index+"div_total"+form_id).html('$0');
|
| 1588 |
jQuery("#wdform_"+index+"paypal_products"+form_id).empty();
|
| 1589 |
break;
|
| 1590 |
default:
|
| 1591 |
break;
|
| 1592 |
}
|
| 1593 |
});
|
| 1594 |
jQuery("<input type=\"hidden\" name=\"save_or_submit"+form_id+"\" value =\"save\" />").appendTo("#form"+form_id);
|
| 1595 |
window["onsubmit_js" + form_id]();
|
| 1596 |
jQuery("#form" + form_id + " button").each(function () {
|
| 1597 |
jQuery(this).attr('disabled', 'disabled');
|
| 1598 |
});
|
| 1599 |
jQuery("#form"+form_id).submit();
|
| 1600 |
var clear_data = confirm(fm_objectL10n.fm_clear_data);
|
| 1601 |
if (clear_data == true) {
|
| 1602 |
jQuery("#form" + form_id + " button").each(function () {
|
| 1603 |
jQuery(this).attr('disabled', 'disabled');
|
| 1604 |
});
|
| 1605 |
jQuery.get(fm_objectL10n.form_maker_admin_ajax + '?action=FMClearProg&addon_task=clear_data&form_id=' + form_id).done(function() {
|
| 1606 |
window.location = jQuery('#form' + form_id).attr('action');
|
| 1607 |
});
|
| 1608 |
}
|
| 1609 |
if (navigator.userAgent.toLowerCase().indexOf('msie') != -1 && parseInt(navigator.userAgent.toLowerCase().split('msie')[1]) === 8) {
|
| 1610 |
jQuery("#form" + form_id).find(jQuery("input[type='radio']")).click(function() {
|
| 1611 |
jQuery("input[type='radio']+label").removeClass('if-ie-div-label');
|
| 1612 |
jQuery("input[type='radio']:checked+label").addClass('if-ie-div-label')
|
| 1613 |
});
|
| 1614 |
jQuery("#form" + form_id).find(jQuery("input[type='radio']:checked+label")).addClass('if-ie-div-label');
|
| 1615 |
jQuery("#form" + form_id).find(jQuery("input[type='checkbox']")).click(function() {
|
| 1616 |
jQuery("input[type='checkbox']+label").removeClass('if-ie-div-label');
|
| 1617 |
jQuery("input[type='checkbox']:checked+label").addClass('if-ie-div-label')
|
| 1618 |
});
|
| 1619 |
jQuery("#form" + form_id).find(jQuery("input[type='checkbox']:checked+label")).addClass('if-ie-div-label');
|
| 1620 |
}
|
| 1621 |
jQuery.each(window["check_regExp_all" + form_id], function( wdid, exp ) {
|
| 1622 |
var exp_array = {};
|
| 1623 |
exp_array[wdid] = exp;
|
| 1624 |
jQuery("div[wdid='" + wdid + "'] input").blur(function() {
|
| 1625 |
wd_check_regExp(form_id, exp_array);
|
| 1626 |
}).focus(function() {
|
| 1627 |
jQuery("#form" + form_id + " #wd_exp_"+wdid).remove();
|
| 1628 |
jQuery("#form" + form_id + " div[wdid='" + wdid + "'] .wdform-label-section:first .error_label_exp").removeClass("error_label_exp")
|
| 1629 |
});
|
| 1630 |
});
|
| 1631 |
jQuery.each(window["check_paypal_price_min_max" + form_id], function( wdid, price_min_max_option ) {
|
| 1632 |
var price_min_max_array = {};
|
| 1633 |
price_min_max_array[wdid] = price_min_max_option;
|
| 1634 |
jQuery("div[wdid='" + wdid + "'] input").blur(function() {
|
| 1635 |
wd_check_price_min_max(form_id, price_min_max_array)
|
| 1636 |
}).focus(function() {
|
| 1637 |
jQuery("#form" + form_id + " #wd_price_" + wdid).remove();
|
| 1638 |
jQuery("#form" + form_id + " div[wdid='" + wdid + "'] .wdform-label-section:first .error_label_price").removeClass("error_label_price")
|
| 1639 |
});
|
| 1640 |
});
|
| 1641 |
jQuery.each(window["spinner_check" + form_id], function( wdid, spinner_min_max ) {
|
| 1642 |
var spinner_min_max_array = {};
|
| 1643 |
spinner_min_max_array[wdid] = spinner_min_max;
|
| 1644 |
jQuery("div[wdid='" + wdid + "'] input").blur(function() {
|
| 1645 |
wd_spinner_check(form_id, spinner_min_max_array)
|
| 1646 |
}).focus(function() {
|
| 1647 |
jQuery("#form" + form_id + " #wd_price_" + wdid).remove();
|
| 1648 |
jQuery("#form" + form_id + " div[wdid='" + wdid + "'] .wdform-label-section:first .error_label_price").removeClass("error_label_price")
|
| 1649 |
});
|
| 1650 |
});
|
| 1651 |
jQuery.each(window["file_upload_check" + form_id], function( wdid, upload_types ) {
|
| 1652 |
var upload_types_array = {};
|
| 1653 |
upload_types_array[wdid] = upload_types;
|
| 1654 |
jQuery("div[wdid='" + wdid + "'] input").change(function() {
|
| 1655 |
wd_file_upload_check(form_id, upload_types_array);
|
| 1656 |
});
|
| 1657 |
});
|
| 1658 |
jQuery("div[type='type_number'] input, div[type='type_phone'] input, div[type='type_spinner'] input, div[type='type_range'] input, .wdform-quantity, div[type='type_paypal_price_new'] input").keypress(function(evt) {
|
| 1659 |
return check_isnum(evt);
|
| 1660 |
});
|
| 1661 |
jQuery("div[type='type_grading'] input").keypress(function(evt) {
|
| 1662 |
return check_isnum_or_minus(evt);
|
| 1663 |
});
|
| 1664 |
jQuery("div[type='type_paypal_checkbox'] input[type='checkbox'], div[type='type_paypal_radio'] input[type='radio'], div[type='type_paypal_shipping'] input[type='radio']").click(function() {
|
| 1665 |
set_total_value(form_id);
|
| 1666 |
});
|
| 1667 |
jQuery("div[type='type_paypal_select'] select, div[type='type_paypal_price'] input, div[type='type_paypal_price_new'] input").change(function() {
|
| 1668 |
set_total_value(form_id);
|
| 1669 |
});
|
| 1670 |
jQuery(".wdform-quantity").change(function() {
|
| 1671 |
set_total_value(form_id);
|
| 1672 |
});
|
| 1673 |
jQuery("div[type='type_address'] select").change(function() {
|
| 1674 |
set_total_value(form_id);
|
| 1675 |
});
|
| 1676 |
jQuery("div[type='type_time'] input").blur(function() {
|
| 1677 |
add_0(this);
|
| 1678 |
});
|
| 1679 |
jQuery('.wdform-element-section').each(function () {
|
| 1680 |
if (jQuery(this).parent().parent().attr('type') == "type_stripe") {
|
| 1681 |
return true;
|
| 1682 |
}
|
| 1683 |
if ( !jQuery(this).parent()[0].style.width
|
| 1684 |
&& parseInt(jQuery(this).width()) != 0
|
| 1685 |
&& jQuery(this).parent().find(jQuery(".wdform-label-section")).length != 0 ) {
|
| 1686 |
if (jQuery(this).css('display') == "table-cell") {
|
| 1687 |
if (jQuery(this).parent().attr('type') != "type_captcha") {
|
| 1688 |
jQuery(this).parent().css('width', parseInt(jQuery(this).width()) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width) + 15);
|
| 1689 |
}
|
| 1690 |
else {
|
| 1691 |
jQuery(this).parent().css('width', (parseInt(jQuery(this).parent().find(jQuery(".captcha_input"))[0].style.width) * 2 + 50) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width) + 15);
|
| 1692 |
}
|
| 1693 |
}
|
| 1694 |
}
|
| 1695 |
if (parseInt(jQuery(this)[0].style.width.replace('px', '')) < parseInt(jQuery(this).css('min-width').replace('px', ''))) {
|
| 1696 |
jQuery(this).css('min-width', parseInt(jQuery(this)[0].style.width.replace('px', '')) - 10);
|
| 1697 |
}
|
| 1698 |
});
|
| 1699 |
jQuery('.wdform-label').each(function() {
|
| 1700 |
if(parseInt(jQuery(this).height()) >= 2*parseInt(jQuery(this).css('line-height').replace('px', ''))) {
|
| 1701 |
jQuery(this).parent().css('max-width', jQuery(this).parent().width());
|
| 1702 |
jQuery(this).parent().css('width', '');
|
| 1703 |
}
|
| 1704 |
});
|
| 1705 |
(function(jQuery) {
|
| 1706 |
jQuery.fn.shuffle = function() {
|
| 1707 |
var allElems = this.get(),
|
| 1708 |
getRandom = function(max) {
|
| 1709 |
return Math.floor(Math.random() * max);
|
| 1710 |
},
|
| 1711 |
shuffled = jQuery.map(allElems, function() {
|
| 1712 |
var random = getRandom(allElems.length),
|
| 1713 |
randEl = jQuery(allElems[parseInt(random)]).clone(true)[0];
|
| 1714 |
allElems.splice(random, 1);
|
| 1715 |
return randEl;
|
| 1716 |
});
|
| 1717 |
this.each(function(i) {
|
| 1718 |
jQuery(this).replaceWith(jQuery(shuffled[i]));
|
| 1719 |
});
|
| 1720 |
return jQuery(shuffled);
|
| 1721 |
};
|
| 1722 |
})(jQuery);
|
| 1723 |
window["onload_js" + form_id]();
|
| 1724 |
window["condition_js" + form_id]();
|
| 1725 |
if (typeof window["before_load" + form_id] == 'function') {
|
| 1726 |
window["before_load" + form_id]();
|
| 1727 |
}
|
| 1728 |
for(i=1; i<=30; i++) {
|
| 1729 |
if (document.getElementById(form_id + 'form_view' + i)) {
|
| 1730 |
window['form_view_count' + form_id]++;
|
| 1731 |
window['form_view_max' + form_id] = i;
|
| 1732 |
}
|
| 1733 |
}
|
| 1734 |
if (window['form_view_count' + form_id] > 1) {
|
| 1735 |
for (i = 1; i <= window['form_view_max' + form_id]; i++) {
|
| 1736 |
if (document.getElementById(form_id + 'form_view' + i)) {
|
| 1737 |
window['first_form_view' + form_id] = i;
|
| 1738 |
break;
|
| 1739 |
}
|
| 1740 |
}
|
| 1741 |
generate_page_nav(window['first_form_view' + form_id], form_id, window['form_view_count' + form_id], window['form_view_max' + form_id]);
|
| 1742 |
}
|
| 1743 |
fm_initilize_form(form_id);
|
| 1744 |
if(!wd_is_filled(form_id)) {
|
| 1745 |
return false;
|
| 1746 |
}
|
| 1747 |
if(!wd_check_regExp(form_id)) {
|
| 1748 |
return false;
|
| 1749 |
}
|
| 1750 |
if(!wd_check_price_min_max(form_id)) {
|
| 1751 |
return false;
|
| 1752 |
}
|
| 1753 |
if(!wd_spinner_check(form_id)) {
|
| 1754 |
return false;
|
| 1755 |
}
|
| 1756 |
if(!wd_file_upload_check(form_id)) {
|
| 1757 |
return false;
|
| 1758 |
}
|
| 1759 |
if (false == window["check_js" + form_id](id, form_id)) {
|
| 1760 |
return false;
|
| 1761 |
}
|
| 1762 |
return true;
|
| 1763 |
jQuery(".g-recaptcha").each(function () {
|
| 1764 |
grecaptcha.render(jQuery(this).attr('id'), {
|
| 1765 |
'sitekey': jQuery(this).attr('data-sitekey'),
|
| 1766 |
'theme': 'light'
|
| 1767 |
});
|
| 1768 |
});
|
| 1769 |
* Chnage state input.
|
| 1770 |
*
|
| 1771 |
* @param id
|
| 1772 |
* @param form_id
|
| 1773 |
*/
|
| 1774 |
if ( document.getElementById(id + "_country" + form_id)
|
| 1775 |
&& document.getElementById(id + "_state" + form_id) ) {
|
| 1776 |
var flag = false;
|
| 1777 |
var state_input = document.getElementById(id + "_state" + form_id);
|
| 1778 |
if ( document.getElementById(id + "_country" + form_id).value == "United States" ) {
|
| 1779 |
var state = document.createElement('select');
|
| 1780 |
var states = fm_objectL10n.states;
|
| 1781 |
for (var r in states) {
|
| 1782 |
var option_ = document.createElement('option');
|
| 1783 |
option_.setAttribute("value", r);
|
| 1784 |
option_.innerHTML = states[r];
|
| 1785 |
state.appendChild(option_);
|
| 1786 |
}
|
| 1787 |
flag = true;
|
| 1788 |
}
|
| 1789 |
else {
|
| 1790 |
if ( document.getElementById(id + "_state" + form_id).tagName == 'SELECT' ) {
|
| 1791 |
var state = document.createElement('input');
|
| 1792 |
flag = true;
|
| 1793 |
}
|
| 1794 |
}
|
| 1795 |
if ( flag ) {
|
| 1796 |
state.setAttribute("type", 'text');
|
| 1797 |
state.setAttribute("id", id + "_state" + form_id);
|
| 1798 |
state.setAttribute("name", (parseInt(id.replace('wdform_', '')) + 3) + "_state" + form_id);
|
| 1799 |
state.setAttribute("class", "wd-width-100");
|
| 1800 |
var state_input_parent = state_input.parentNode;
|
| 1801 |
state_input_parent.removeChild(state_input);
|
| 1802 |
state_input_parent.insertBefore(state, state_input_parent.firstChild);
|
| 1803 |
}
|
| 1804 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
jQuery(".wd-datepicker").each(function () {
|
| 2 |
jQuery(this).datepicker();
|
| 3 |
jQuery(this).datepicker("option", "dateFormat", jQuery(this).data("format"));
|
| 4 |
});
|
| 5 |
// Scroll to form notice.
|
| 6 |
if ( jQuery(".fm-form").find(".fm-message").length !== 0) {
|
| 7 |
jQuery(window).scrollTop(jQuery(".fm-message").offset().top - 100);
|
| 8 |
}
|
| 9 |
// Scroll to captcha field notice.
|
| 10 |
if ( jQuery(".fm-form").find(".message_captcha").length !== 0 ) {
|
| 11 |
var form_id = jQuery('.fm-form').attr('name').split("form")[1];
|
| 12 |
var element_offset = jQuery(jQuery("#form" + form_id + " .message_captcha")).offset().top;
|
| 13 |
jQuery(".fm-form").find(".message_captcha").parents('.wdform-field').find('.wdform-label').addClass('error_label');
|
| 14 |
jQuery('html').animate({scrollTop: element_offset-150 },500);
|
| 15 |
}
|
| 16 |
var FormCurrency = eval("FormCurrency_" + form_id);
|
| 17 |
if(jQuery('.paypal_total'+form_id).length==0) {
|
| 18 |
return;
|
| 19 |
}
|
| 20 |
var div_paypal_show = jQuery('.paypal_total'+form_id);
|
| 21 |
var div_paypal_products = jQuery('.paypal_products'+form_id);
|
| 22 |
var div_paypal_tax = jQuery('.paypal_tax'+form_id);
|
| 23 |
var input_paypal_total = jQuery('.input_paypal_total'+form_id);
|
| 24 |
var total=0;
|
| 25 |
var total_shipping=0;
|
| 26 |
div_paypal_products.html('');
|
| 27 |
div_paypal_tax.html('');
|
| 28 |
n = parseInt(jQuery('#counter'+form_id).val());
|
| 29 |
jQuery("#form" +form_id+ " div[type='type_paypal_checkbox'], #form" +form_id+ " div[type='type_paypal_radio']").each(function() {
|
| 30 |
id=jQuery(this).parent().attr('wdid');
|
| 31 |
jQuery(this).find('input:checked').each(
|
| 32 |
function() {
|
| 33 |
label= jQuery("label[for='"+jQuery(this).attr('id')+"']").html();
|
| 34 |
span_value = FormCurrency + jQuery(this).val()+(jQuery('#wdform_'+id+"_element_quantity"+form_id).length!=0 ? ' x'+jQuery('#wdform_'+id+"_element_quantity"+form_id).val() : '');
|
| 35 |
total =total + jQuery(this).val() * parseInt((jQuery('#wdform_'+id+"_element_quantity"+form_id).length!=0 ? jQuery('#wdform_'+id+"_element_quantity"+form_id).val() : 1));
|
| 36 |
div_paypal_products.html(div_paypal_products.html()+"<div>"+label+ ' - '+ span_value+"</div>");
|
| 37 |
}
|
| 38 |
);
|
| 39 |
});
|
| 40 |
jQuery("#form" +form_id+ " div[type='type_paypal_shipping']").each(function() {
|
| 41 |
id=jQuery(this).parent().attr('wdid');
|
| 42 |
jQuery(this).find('input:checked').each(
|
| 43 |
function() {
|
| 44 |
label= jQuery("label[for='"+jQuery(this).attr('id')+"']").html();
|
| 45 |
span_value = FormCurrency + jQuery(this).val()+(jQuery('#wdform_'+id+"_element_quantity"+form_id).length!=0 ? ' x'+jQuery('#wdform_'+id+"_element_quantity"+form_id).val() : '');
|
| 46 |
total_shipping =total_shipping + jQuery(this).val() * parseInt((jQuery('#wdform_'+id+"_element_quantity"+form_id).length!=0 ? jQuery('#wdform_'+id+"_element_quantity"+form_id).val() : 1));
|
| 47 |
div_paypal_products.html(div_paypal_products.html()+"<div>"+label+ ' - '+ span_value+"</div>");
|
| 48 |
}
|
| 49 |
);
|
| 50 |
});
|
| 51 |
jQuery("#form" +form_id+ " div[type='type_paypal_select']").each(function() {
|
| 52 |
id=jQuery(this).parent().attr('wdid');
|
| 53 |
if(jQuery(this).find('select').val()!='') {
|
| 54 |
label = jQuery(this).find('select option:selected').html();
|
| 55 |
span_value = FormCurrency + jQuery(this).find('select').val()+(jQuery('#wdform_'+id+"_element_quantity"+form_id).length!=0 ? ' x'+jQuery('#wdform_'+id+"_element_quantity"+form_id).val() : '');
|
| 56 |
total =total + jQuery(this).find('select').val() * parseInt((jQuery('#wdform_'+id+"_element_quantity"+form_id).length!=0 ? jQuery('#wdform_'+id+"_element_quantity"+form_id).val() : 1));
|
| 57 |
div_paypal_products.html(div_paypal_products.html()+"<div>"+label+ ' - '+ span_value+"</div>");
|
| 58 |
}
|
| 59 |
});
|
| 60 |
jQuery("#form" +form_id+ " div[type='type_paypal_price']").each(function() {
|
| 61 |
id = jQuery(this).parent().attr('wdid');
|
| 62 |
label = jQuery(this).find('.wdform-label').html();
|
| 63 |
cents = '00';
|
| 64 |
dollars = '0';
|
| 65 |
if (jQuery('#wdform_' + id + "_element_dollars" + form_id).val() != '') {
|
| 66 |
dollars = jQuery('#wdform_' + id + "_element_dollars" + form_id).val();
|
| 67 |
}
|
| 68 |
if (jQuery('#wdform_' + id + "_element_cents" + form_id).val() != '') {
|
| 69 |
if (jQuery('#wdform_' + id + "_element_cents" + form_id).val().length == 1) {
|
| 70 |
cents = '0' + jQuery('#wdform_' + id + "_element_cents" + form_id).val();
|
| 71 |
}
|
| 72 |
else {
|
| 73 |
cents = jQuery('#wdform_' + id + "_element_cents" + form_id).val();
|
| 74 |
}
|
| 75 |
span_value = FormCurrency + dollars + '.' + cents;
|
| 76 |
total = total + parseFloat(dollars + '.' + cents);
|
| 77 |
div_paypal_products.html(div_paypal_products.html() + "<div>" + label + ' - ' + span_value + "</div>");
|
| 78 |
}
|
| 79 |
});
|
| 80 |
jQuery("#form" +form_id+ " div[type='type_paypal_price_new']").each(function() {
|
| 81 |
id = jQuery(this).parent().attr('wdid');
|
| 82 |
label = jQuery(this).find('.wdform-label').html();
|
| 83 |
dollars = '0';
|
| 84 |
if (jQuery('#wdform_' + id + "_element" + form_id).val() != '') {
|
| 85 |
dollars = jQuery('#wdform_' + id + "_element" + form_id).val();
|
| 86 |
}
|
| 87 |
span_value = FormCurrency + dollars;
|
| 88 |
total = total + parseFloat(dollars);
|
| 89 |
div_paypal_products.html(div_paypal_products.html() + "<div>" + label + ' - ' + span_value + "</div>");
|
| 90 |
});
|
| 91 |
var FormPaypalTax = eval("FormPaypalTax_" + form_id);
|
| 92 |
if(FormPaypalTax != 0) {
|
| 93 |
div_paypal_tax.html('Tax: ' + FormCurrency + (((total)*FormPaypalTax) / 100).toFixed(2));
|
| 94 |
}
|
| 95 |
jQuery('.div_total'+form_id).html(FormCurrency + (parseFloat((total *(1+FormPaypalTax/100)).toFixed(2))+total_shipping).toFixed(2));
|
| 96 |
input_paypal_total.val(FormCurrency + (parseFloat((total *(1+FormPaypalTax/100)).toFixed(2))+total_shipping).toFixed(2));
|
| 97 |
var chCode1 = e.which || e.keyCode;
|
| 98 |
if (chCode1 != 45) {
|
| 99 |
if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57)) {
|
| 100 |
return false;
|
| 101 |
}
|
| 102 |
}
|
| 103 |
return true;
|
| 104 |
var sum = 0;
|
| 105 |
for(var k=0; k<100;k++) {
|
| 106 |
if(document.getElementById(num+'_element'+form_id+'_'+k)) {
|
| 107 |
if(document.getElementById(num+'_element'+form_id+'_'+k).value) {
|
| 108 |
sum = sum+parseInt(document.getElementById(num+'_element'+form_id+'_'+k).value);
|
| 109 |
}
|
| 110 |
}
|
| 111 |
if(document.getElementById(num+'_total_element'+form_id)) {
|
| 112 |
if(sum > document.getElementById(num+'_total_element'+form_id).innerHTML) {
|
| 113 |
document.getElementById(num+'_text_element'+form_id).innerHTML =" "+ fm_objectL10n.fm_grading_text + " " + document.getElementById(num+'_total_element'+form_id).innerHTML;
|
| 114 |
}
|
| 115 |
else {
|
| 116 |
document.getElementById(num+'_text_element'+form_id).innerHTML="";
|
| 117 |
}
|
| 118 |
}
|
| 119 |
}
|
| 120 |
if(document.getElementById(num+'_sum_element'+form_id)) {
|
| 121 |
document.getElementById(num+'_sum_element'+form_id).innerHTML = sum;
|
| 122 |
}
|
| 123 |
if(rated==false) {
|
| 124 |
for(var j=0;j<=id;j++) {
|
| 125 |
document.getElementById(el_id+'_star_'+j+'_'+form_id).src=fm_objectL10n.plugin_url+"/images/star_"+color+'.png';
|
| 126 |
}
|
| 127 |
}
|
| 128 |
if(rated==false) {
|
| 129 |
for(var j=0;j<=id;j++) {
|
| 130 |
document.getElementById(el_id+'_star_'+j+'_'+form_id).src=fm_objectL10n.plugin_url+"/images/star.png";
|
| 131 |
}
|
| 132 |
}
|
| 133 |
rated=true;
|
| 134 |
for(var j=0;j<=id;j++) {
|
| 135 |
document.getElementById(el_id+'_star_'+j+'_'+form_id).src=fm_objectL10n.plugin_url+"/images/star_"+color+".png";
|
| 136 |
}
|
| 137 |
for(var k=id+1;k<=star_amount-1;k++) {
|
| 138 |
document.getElementById(el_id+'_star_'+k+'_'+form_id).src=fm_objectL10n.plugin_url+"/images/star.png";
|
| 139 |
}
|
| 140 |
document.getElementById(el_id+'_selected_star_amount'+form_id).value=id+1;
|
| 141 |
var element_other = jQuery('.form' + form_id + ' [id^=' + num + '_element' + form_id + '][other="1"]');
|
| 142 |
var parent_ = element_other.parent();
|
| 143 |
var br = document.createElement('br');
|
| 144 |
br.setAttribute("id", num + "_other_br" + form_id);
|
| 145 |
var elem_id = num.split("_")[1];
|
| 146 |
var el_other = document.createElement('input');
|
| 147 |
el_other.setAttribute("id", num + "_other_input" + form_id);
|
| 148 |
el_other.setAttribute("name", num + "_other_input" + form_id);
|
| 149 |
el_other.setAttribute("type", "text");
|
| 150 |
el_other.setAttribute("class", "other_input");
|
| 151 |
el_other.setAttribute("onchange", "other_input_change(this, '" + form_id + "', '" + elem_id + "')");
|
| 152 |
parent_.append(br);
|
| 153 |
parent_.append(el_other);
|
| 154 |
if (jQuery(elem).val() == "") {
|
| 155 |
wd_is_filled(form_id, wdid);
|
| 156 |
}
|
| 157 |
else {
|
| 158 |
jQuery("#form" + form_id + " #wd_required_" + wdid).remove();
|
| 159 |
jQuery("#form" + form_id + " div[wdid='" + wdid + "'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 160 |
}
|
| 161 |
var chCode1 = e.which || e.keyCode;
|
| 162 |
if (jQuery.inArray(chCode1,[46,8,9,27,13,190]) != -1 || e.ctrlKey === true || (chCode1 >= 35 && chCode1 < 39) || chCode1 == 45) {
|
| 163 |
return true;
|
| 164 |
}
|
| 165 |
if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57)) {
|
| 166 |
return false;
|
| 167 |
}
|
| 168 |
return true;
|
| 169 |
srcArr=document.getElementById(id+genid).src.split("&r=");
|
| 170 |
document.getElementById(id+genid).src=srcArr[0]+'&r='+Math.floor(Math.random()*100);
|
| 171 |
document.getElementById(id+"_input"+genid).value='';
|
| 172 |
document.getElementById(id+genid).style.display="inline-block";
|
| 173 |
checking=document.getElementById(id+"_element"+form_id+j);
|
| 174 |
if(checking.getAttribute('other')) {
|
| 175 |
if(checking.getAttribute('other')==1) {
|
| 176 |
if(!checking.checked) {
|
| 177 |
if(document.getElementById(id+"_other_input"+form_id)) {
|
| 178 |
document.getElementById(id+"_other_input"+form_id).parentNode.removeChild(document.getElementById(id+"_other_br"+form_id));
|
| 179 |
document.getElementById(id+"_other_input"+form_id).parentNode.removeChild(document.getElementById(id+"_other_input"+form_id));
|
| 180 |
}
|
| 181 |
return false;
|
| 182 |
}
|
| 183 |
}
|
| 184 |
}
|
| 185 |
return true;
|
| 186 |
if(document.getElementById(id+"_other_input"+form_id)) {
|
| 187 |
document.getElementById(id+"_other_input"+form_id).parentNode.removeChild(document.getElementById(id+"_other_br"+form_id));
|
| 188 |
document.getElementById(id+"_other_input"+form_id).parentNode.removeChild(document.getElementById(id+"_other_input"+form_id));
|
| 189 |
}
|
| 190 |
if (jQuery(that).val().length == 1) {
|
| 191 |
jQuery(that).val('0' + jQuery(that).val());
|
| 192 |
}
|
| 193 |
* Check field validation.
|
| 194 |
*
|
| 195 |
* @param that
|
| 196 |
* @param ids
|
| 197 |
* @returns {boolean}
|
| 198 |
*/
|
| 199 |
if ( !jQuery(that).is("input") ) {
|
| 200 |
return true;
|
| 201 |
}
|
| 202 |
var error_message;
|
| 203 |
var reg_exp;
|
| 204 |
var value = jQuery(that).val();
|
| 205 |
var id = jQuery(that).attr("id");
|
| 206 |
var type = jQuery(that).data("valid-type");
|
| 207 |
var form_id = jQuery(that).data("form-id");
|
| 208 |
var wdid = jQuery(that).data("wdid");
|
| 209 |
if ( typeof ids == "undefined" ) {
|
| 210 |
var ids = jQuery(that).data("addiotional-fields");
|
| 211 |
}
|
| 212 |
var cont_id = "#form" + form_id + " div[wdid='" + wdid + "']";
|
| 213 |
var label_cont = jQuery(cont_id + " .wdform-label-section:first .wdform-label");
|
| 214 |
var section_cont = jQuery(cont_id + " .wdform-element-section");
|
| 215 |
switch (type) {
|
| 216 |
case "hour24": {
|
| 217 |
error_message = fm_objectL10n.time_validation;
|
| 218 |
reg_exp = /^(0?[0-1]?[0-9]|2[0-3])?$/;
|
| 219 |
break;
|
| 220 |
}
|
| 221 |
case "hour12": {
|
| 222 |
error_message = fm_objectL10n.time_validation;
|
| 223 |
reg_exp = /^(0?[0-9]|1[0-2])?$/;
|
| 224 |
break;
|
| 225 |
}
|
| 226 |
case "minute":
|
| 227 |
case "second": {
|
| 228 |
error_message = fm_objectL10n.time_validation;
|
| 229 |
reg_exp = /^([0-5]?[0-9])?$/;
|
| 230 |
break;
|
| 231 |
}
|
| 232 |
case "number": {
|
| 233 |
error_message = fm_objectL10n.number_validation;
|
| 234 |
reg_exp = /^$|^-?\d+$/;
|
| 235 |
break;
|
| 236 |
}
|
| 237 |
case "day": {
|
| 238 |
error_message = fm_objectL10n.date_validation;
|
| 239 |
reg_exp = /^(0?[0-2]?[0-9]|3[0-1])?$/;
|
| 240 |
break;
|
| 241 |
}
|
| 242 |
case "month": {
|
| 243 |
error_message = fm_objectL10n.date_validation;
|
| 244 |
reg_exp = /^(0?[0-9]|1[0-2])?$/;
|
| 245 |
break;
|
| 246 |
}
|
| 247 |
case "year": {
|
| 248 |
error_message = fm_objectL10n.date_validation;
|
| 249 |
reg_exp = /^([1-2]?[0-9]?[0-9]?[0-9])?$/;
|
| 250 |
break;
|
| 251 |
}
|
| 252 |
}
|
| 253 |
// To differ empty string value from invalid value.
|
| 254 |
var isValid = document.getElementById(id).validity.valid;
|
| 255 |
if ( isValid ) {
|
| 256 |
isValid = reg_exp.test(value);
|
| 257 |
}
|
| 258 |
if ( isValid ) {
|
| 259 |
for ( var i in ids ) {
|
| 260 |
isValid = wd_validate("#" + ids[i], '');
|
| 261 |
if ( !isValid ) {
|
| 262 |
break;
|
| 263 |
}
|
| 264 |
}
|
| 265 |
}
|
| 266 |
jQuery("#check_email_" + wdid + "_" + form_id).remove();
|
| 267 |
if ( !isValid ) {
|
| 268 |
// Add error message.
|
| 269 |
section_cont.parent().parent().append("<div id='check_email_" + wdid + "_" + form_id + "' class='fm-not-filled'>" + error_message + "</div>");
|
| 270 |
// Add error class to label.
|
| 271 |
label_cont.addClass("wd-error-label");
|
| 272 |
window["check_before_submit" + form_id][wdid + "_" + form_id] = false;
|
| 273 |
}
|
| 274 |
else {
|
| 275 |
// Remove error class from label.
|
| 276 |
label_cont.removeClass("wd-error-label");
|
| 277 |
delete window["check_before_submit" + form_id][wdid + "_" + form_id];
|
| 278 |
}
|
| 279 |
return isValid;
|
| 280 |
var chCode1 = e.which || e.keyCode;
|
| 281 |
if (jQuery.inArray(chCode1,[46,8,9,27,13,190]) != -1 || e.ctrlKey === true || (chCode1 >= 35 && chCode1 < 39)) {
|
| 282 |
return true;
|
| 283 |
}
|
| 284 |
if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57)) {
|
| 285 |
return false;
|
| 286 |
}
|
| 287 |
val1=""+jQuery(x).val()+String.fromCharCode(chCode1);
|
| 288 |
if (val1.length>2) {
|
| 289 |
return false;
|
| 290 |
}
|
| 291 |
if (val1=='00') {
|
| 292 |
return false;
|
| 293 |
}
|
| 294 |
if ((val1<from) || (val1>to)) {
|
| 295 |
return false;
|
| 296 |
}
|
| 297 |
return true;
|
| 298 |
* Year range validation.
|
| 299 |
*
|
| 300 |
* @param that
|
| 301 |
*/
|
| 302 |
var value = parseInt(jQuery(that).val());
|
| 303 |
var form_id = jQuery(that).data("form-id");
|
| 304 |
var wdid = jQuery(that).data("wdid");
|
| 305 |
var start_year = parseInt(jQuery(that).attr("from"));
|
| 306 |
var end_year = parseInt(jQuery(that).attr("to"));
|
| 307 |
var cont_id = "#form" + form_id + " div[wdid='" + wdid + "']";
|
| 308 |
var label_cont = jQuery(cont_id + " .wdform-label-section:first .wdform-label");
|
| 309 |
var section_cont = jQuery(cont_id + " .wdform-element-section");
|
| 310 |
if ( ( value < start_year ) || ( value > end_year ) ) {
|
| 311 |
var error_message = fm_objectL10n.year_validation.replace('%%start%%', start_year).replace('%%end%%', end_year);
|
| 312 |
jQuery("#check_email_" + wdid + "_" + form_id).remove();
|
| 313 |
// Add error message.
|
| 314 |
section_cont.parent().parent().append("<div id='check_email_" + wdid + "_" + form_id + "' class='fm-not-filled'>" + error_message + "</div>");
|
| 315 |
// Add error class to label.
|
| 316 |
label_cont.addClass("wd-error-label");
|
| 317 |
window["check_before_submit" + form_id][wdid + "_" + form_id] = false;
|
| 318 |
}
|
| 319 |
while (node.firstChild) {
|
| 320 |
node.removeChild(node.firstChild);
|
| 321 |
}
|
| 322 |
form_view=id;
|
| 323 |
page_nav=document.getElementById(form_id+'page_nav'+id);
|
| 324 |
destroyChildren(page_nav);
|
| 325 |
form_view_elemet=document.getElementById(form_id+'form_view'+id);
|
| 326 |
remove_whitespace(form_view_elemet.parentNode.parentNode);
|
| 327 |
display_none_form_views_all(form_id);
|
| 328 |
generate_page_bar(id, form_id, form_view_count, form_view_max);
|
| 329 |
form_view_elemet.parentNode.style.display="";
|
| 330 |
var td = document.createElement("div");
|
| 331 |
td.setAttribute("valign", "middle");
|
| 332 |
td.setAttribute("align", "left");
|
| 333 |
td.style.display="table-cell";
|
| 334 |
td.style.width="40%";
|
| 335 |
page_nav.appendChild(td);
|
| 336 |
if(form_view_elemet.parentNode.previousSibling && form_view_elemet.parentNode.previousSibling.previousSibling) {
|
| 337 |
if(form_view_elemet.parentNode.previousSibling.tagName=="DIV") {
|
| 338 |
table=form_view_elemet.parentNode.previousSibling;
|
| 339 |
}
|
| 340 |
else {
|
| 341 |
if(form_view_elemet.parentNode.previousSibling.previousSibling.tagName=="DIV") {
|
| 342 |
table=form_view_elemet.parentNode.previousSibling.previousSibling;
|
| 343 |
}
|
| 344 |
else {
|
| 345 |
table="none";
|
| 346 |
}
|
| 347 |
}
|
| 348 |
if(table!="none") {
|
| 349 |
if(!table.firstChild.tagName) {
|
| 350 |
table.removeChild(table.firstChild);
|
| 351 |
}
|
| 352 |
previous_title = form_view_elemet.getAttribute('previous_title');
|
| 353 |
previous_type = form_view_elemet.getAttribute('previous_type');
|
| 354 |
if(previous_type=="text") {
|
| 355 |
td.setAttribute("class", "previous-page");
|
| 356 |
}
|
| 357 |
previous_class = form_view_elemet.getAttribute('previous_class');
|
| 358 |
previous_checkable = form_view_elemet.getAttribute('previous_checkable');
|
| 359 |
next_or_previous="previous";
|
| 360 |
previous=make_pagebreak_button(next_or_previous, previous_title, previous_type, previous_class, previous_checkable, id, form_id, form_view_count, form_view_max);
|
| 361 |
td.appendChild(previous);
|
| 362 |
}
|
| 363 |
}
|
| 364 |
var td = document.createElement("div");
|
| 365 |
td.setAttribute("id", form_id+"page_numbers"+form_view);
|
| 366 |
td.setAttribute("valign", "middle");
|
| 367 |
td.setAttribute("class", "page-numbers");
|
| 368 |
td.setAttribute("align", "center");
|
| 369 |
td.style.display="table-cell";
|
| 370 |
if(document.getElementById('fm-pages' + form_id).getAttribute('show_numbers')=="true") {
|
| 371 |
k=0;
|
| 372 |
for(j=1; j<=form_view_max; j++) {
|
| 373 |
if(document.getElementById(form_id+'form_view'+j)) {
|
| 374 |
k++;
|
| 375 |
if(j==form_view) {
|
| 376 |
page_number=k;
|
| 377 |
}
|
| 378 |
}
|
| 379 |
}
|
| 380 |
var cur = document.createElement('span');
|
| 381 |
cur.setAttribute("class", "page_numbers");
|
| 382 |
cur.innerHTML=page_number+'/'+k;
|
| 383 |
td.appendChild(cur);
|
| 384 |
}
|
| 385 |
page_nav.appendChild(td);
|
| 386 |
var td = document.createElement("div");
|
| 387 |
td.setAttribute("valign", "middle");
|
| 388 |
td.setAttribute("align", "right");
|
| 389 |
td.style.cssText = "display:table-cell; width:40%; text-align:right;";
|
| 390 |
page_nav.appendChild(td);
|
| 391 |
not_next=false;
|
| 392 |
if(form_view_elemet.parentNode.nextSibling) {
|
| 393 |
if(form_view_elemet.parentNode.nextSibling.tagName=="DIV" && form_view_elemet.parentNode.nextSibling.className=="wdform-page-and-images") {
|
| 394 |
table=form_view_elemet.parentNode.nextSibling;
|
| 395 |
}
|
| 396 |
else {
|
| 397 |
if(form_view_elemet.parentNode.nextSibling.nextSibling) {
|
| 398 |
if(form_view_elemet.parentNode.nextSibling.nextSibling.tagName=="DIV") {
|
| 399 |
table=form_view_elemet.parentNode.nextSibling.nextSibling;
|
| 400 |
}
|
| 401 |
else {
|
| 402 |
table="none";
|
| 403 |
}
|
| 404 |
}
|
| 405 |
else {
|
| 406 |
table="none";
|
| 407 |
}
|
| 408 |
}
|
| 409 |
if(table!="none") {
|
| 410 |
next_title =form_view_elemet.getAttribute('next_title');
|
| 411 |
next_type =form_view_elemet.getAttribute('next_type');
|
| 412 |
if(next_type=="text") {
|
| 413 |
td.setAttribute("class", "next-page");
|
| 414 |
}
|
| 415 |
next_class = form_view_elemet.getAttribute('next_class');
|
| 416 |
next_checkable = form_view_elemet.getAttribute('next_checkable');
|
| 417 |
next_or_previous="next";
|
| 418 |
next=make_pagebreak_button(next_or_previous, next_title, next_type, next_class, next_checkable, id, form_id, form_view_count, form_view_max);
|
| 419 |
td.appendChild(next);
|
| 420 |
}
|
| 421 |
else {
|
| 422 |
not_next=true;
|
| 423 |
}
|
| 424 |
}
|
| 425 |
else {
|
| 426 |
not_next=true;
|
| 427 |
}
|
| 428 |
fm_initilize_form(form_id);
|
| 429 |
jQuery("#form" + form_id + " div[type='type_map']").each(function() {
|
| 430 |
id=jQuery(this).parent().attr('wdid');
|
| 431 |
if_gmap_init('wdform_'+id, form_id);
|
| 432 |
for(q=0; q<20; q++) {
|
| 433 |
if(jQuery("#wdform_"+id+"_element"+form_id)[0].getAttribute("long"+q)) {
|
| 434 |
w_long=parseFloat(document.getElementById('wdform_'+id+"_element"+form_id).getAttribute("long"+q));
|
| 435 |
w_lat=parseFloat(document.getElementById('wdform_'+id+"_element"+form_id).getAttribute("lat"+q));
|
| 436 |
w_info=parseFloat(document.getElementById('wdform_'+id+"_element"+form_id).getAttribute("info"+q));
|
| 437 |
add_marker_on_map('wdform_'+id, q, w_long, w_lat, w_info, form_id,false);
|
| 438 |
}
|
| 439 |
}
|
| 440 |
});
|
| 441 |
jQuery("#form" + form_id + " div[type='type_mark_map']").each(function() {
|
| 442 |
id=jQuery(this).parent().attr('wdid');
|
| 443 |
if_gmap_init('wdform_'+id, form_id);
|
| 444 |
q=0;
|
| 445 |
if(jQuery("#wdform_"+id+"_element"+form_id)[0].getAttribute("long"+q)) {
|
| 446 |
w_long=parseFloat(document.getElementById('wdform_'+id+"_element"+form_id).getAttribute("long"+q));
|
| 447 |
w_lat=parseFloat(document.getElementById('wdform_'+id+"_element"+form_id).getAttribute("lat"+q));
|
| 448 |
w_info=parseFloat(document.getElementById('wdform_'+id+"_element"+form_id).getAttribute("info"+q));
|
| 449 |
add_marker_on_map('wdform_'+id, q, w_long, w_lat, w_info, form_id,true);
|
| 450 |
}
|
| 451 |
});
|
| 452 |
jQuery('.wdform-element-section').each( function() {
|
| 453 |
if (jQuery(this).parent().parent().attr('type') == "type_stripe") {
|
| 454 |
return true;
|
| 455 |
}
|
| 456 |
if ( !jQuery(this).parent()[0].style.width
|
| 457 |
&& parseInt(jQuery(this).width()) != 0
|
| 458 |
&& jQuery(this).parent().find(jQuery(".wdform-label-section")).length != 0 ) {
|
| 459 |
if (jQuery(this).css('display') == "table-cell") {
|
| 460 |
if (jQuery(this).parent().attr('type') != "type_captcha") {
|
| 461 |
jQuery(this).parent().css('width', parseInt(jQuery(this).width()) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width) + 15);
|
| 462 |
}
|
| 463 |
else {
|
| 464 |
jQuery(this).parent().css('width', (parseInt(jQuery(this).parent().find(jQuery(".captcha_input"))[0].style.width) * 2 + 50) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width) + 15);
|
| 465 |
}
|
| 466 |
}
|
| 467 |
}
|
| 468 |
});
|
| 469 |
for(t=1; t<30; t++) {
|
| 470 |
if(document.getElementById(form_id+'form_view'+t)) {
|
| 471 |
document.getElementById(form_id+'form_view'+t).parentNode.style.display="none";
|
| 472 |
}
|
| 473 |
}
|
| 474 |
if(document.getElementById('fm-pages' + form_id).getAttribute('type')=='steps') {
|
| 475 |
make_page_steps_front(form_view, form_id, form_view_count, form_view_max);
|
| 476 |
}
|
| 477 |
else {
|
| 478 |
if(document.getElementById('fm-pages' + form_id).getAttribute('type')=='percentage') {
|
| 479 |
make_page_percentage_front(form_view, form_id, form_view_count, form_view_max);
|
| 480 |
}
|
| 481 |
else {
|
| 482 |
make_page_none_front(form_id);
|
| 483 |
}
|
| 484 |
}
|
| 485 |
if(document.getElementById('fm-pages' + form_id).getAttribute('type')=='show_numbers') {
|
| 486 |
td = document.getElementById(form_id+'page_numbers'+form_view);
|
| 487 |
if(td) {
|
| 488 |
destroyChildren(td);
|
| 489 |
k=0;
|
| 490 |
for(j=1; j<=form_view_max; j++) {
|
| 491 |
if(document.getElementById(form_id+'form_view'+j)) {
|
| 492 |
k++;
|
| 493 |
if(j==form_view) {
|
| 494 |
page_number=k;
|
| 495 |
}
|
| 496 |
}
|
| 497 |
}
|
| 498 |
var cur = document.createElement('span');
|
| 499 |
cur.setAttribute("class", "page_numbers");
|
| 500 |
cur.innerHTML=page_number+'/'+k;
|
| 501 |
td.appendChild(cur);
|
| 502 |
}
|
| 503 |
}
|
| 504 |
else {
|
| 505 |
td = document.getElementById(form_id+'page_numbers'+form_view);
|
| 506 |
if(td) {
|
| 507 |
destroyChildren(document.getElementById(form_id+'page_numbers'+form_view));
|
| 508 |
}
|
| 509 |
}
|
| 510 |
destroyChildren(document.getElementById('fm-pages' + form_id));
|
| 511 |
show_title =(document.getElementById('fm-pages' + form_id).getAttribute('show_title')=='true');
|
| 512 |
next_checkable =(document.getElementById(form_id+'form_view'+form_view).getAttribute('next_checkable')=='true');
|
| 513 |
previous_checkable =(document.getElementById(form_id+'form_view'+form_view).getAttribute('previous_checkable')=='true');
|
| 514 |
k=0;
|
| 515 |
for(j=1; j<=form_view_max; j++) {
|
| 516 |
if(document.getElementById(form_id+'form_view'+j)) {
|
| 517 |
if(document.getElementById(form_id+'form_view'+j).getAttribute('page_title')) {
|
| 518 |
w_pages=document.getElementById(form_id+'form_view'+j).getAttribute('page_title');
|
| 519 |
}
|
| 520 |
else {
|
| 521 |
w_pages="";
|
| 522 |
}
|
| 523 |
k++;
|
| 524 |
page_number = document.createElement('span');
|
| 525 |
page_number.setAttribute('id','page_'+j);
|
| 526 |
if(j<form_view) {
|
| 527 |
if(previous_checkable) {
|
| 528 |
page_number.setAttribute('onClick','if(fm_check('+form_view+', '+form_id+')) generate_page_nav("'+j+'", "'+form_id+'", "'+form_view_count+'", "'+form_view_max+'")');
|
| 529 |
}
|
| 530 |
else {
|
| 531 |
page_number.setAttribute('onClick','generate_page_nav("'+j+'", "'+form_id+'", "'+form_view_count+'", "'+form_view_max+'")');
|
| 532 |
}
|
| 533 |
}
|
| 534 |
if(j>form_view) {
|
| 535 |
if(next_checkable) {
|
| 536 |
page_number.setAttribute('onClick','if(fm_check('+form_view+', '+form_id+')) generate_page_nav("'+j+'", "'+form_id+'", "'+form_view_count+'", "'+form_view_max+'")');
|
| 537 |
}
|
| 538 |
else {
|
| 539 |
page_number.setAttribute('onClick','generate_page_nav("'+j+'", "'+form_id+'", "'+form_view_count+'", "'+form_view_max+'")');
|
| 540 |
}
|
| 541 |
}
|
| 542 |
if(j==form_view) {
|
| 543 |
page_number.setAttribute('class',"page_active");
|
| 544 |
}
|
| 545 |
else {
|
| 546 |
page_number.setAttribute('class',"page_deactive");
|
| 547 |
}
|
| 548 |
if(show_title) {
|
| 549 |
page_number.innerHTML=w_pages;
|
| 550 |
}
|
| 551 |
else {
|
| 552 |
page_number.innerHTML=k;
|
| 553 |
}
|
| 554 |
document.getElementById('fm-pages' + form_id).appendChild(page_number);
|
| 555 |
}
|
| 556 |
}
|
| 557 |
destroyChildren(document.getElementById('fm-pages' + form_id));
|
| 558 |
show_title=(document.getElementById('fm-pages' + form_id).getAttribute('show_title')=='true');
|
| 559 |
var div_parent = document.createElement('div');
|
| 560 |
div_parent.setAttribute("class", "page_percentage_deactive");
|
| 561 |
var div = document.createElement('div');
|
| 562 |
div.setAttribute("id", "div_percentage");
|
| 563 |
div.setAttribute("class", "page_percentage_active");
|
| 564 |
div.setAttribute("align", "right");
|
| 565 |
var div_arrow = document.createElement('div');
|
| 566 |
div_arrow.setAttribute("class", "wdform_percentage_arrow");
|
| 567 |
var b = document.createElement('b');
|
| 568 |
b.setAttribute("class", "wdform_percentage_text");
|
| 569 |
div.appendChild(b);
|
| 570 |
k=0;
|
| 571 |
cur_page_title='';
|
| 572 |
for(j=1; j<=form_view_max; j++) {
|
| 573 |
if(document.getElementById(form_id+'form_view'+j)) {
|
| 574 |
if(document.getElementById(form_id+'form_view'+j).getAttribute('page_title')) {
|
| 575 |
w_pages=document.getElementById(form_id+'form_view'+j).getAttribute('page_title');
|
| 576 |
}
|
| 577 |
else {
|
| 578 |
w_pages="";
|
| 579 |
}
|
| 580 |
k++;
|
| 581 |
if(j==form_view) {
|
| 582 |
if(show_title) {
|
| 583 |
var cur_page_title = document.createElement('div');
|
| 584 |
cur_page_title.innerHTML=w_pages;
|
| 585 |
cur_page_title.innerHTML=w_pages;
|
| 586 |
cur_page_title.setAttribute("class", "wdform_percentage_title");
|
| 587 |
}
|
| 588 |
page_number=k;
|
| 589 |
}
|
| 590 |
}
|
| 591 |
}
|
| 592 |
b.innerHTML=Math.round(((page_number-1)/k)*100)+'%';
|
| 593 |
div.style.width=((page_number-1)/k)*100+'%';
|
| 594 |
if(page_number==1) {
|
| 595 |
div_arrow.style.display='none';
|
| 596 |
}
|
| 597 |
div_parent.appendChild(div);
|
| 598 |
div_parent.appendChild(div_arrow);
|
| 599 |
if(cur_page_title) {
|
| 600 |
div_parent.appendChild(cur_page_title);
|
| 601 |
}
|
| 602 |
document.getElementById('fm-pages' + form_id).appendChild(div_parent);
|
| 603 |
destroyChildren(document.getElementById('fm-pages' + form_id));
|
| 604 |
switch(type) {
|
| 605 |
case 'text': {
|
| 606 |
var element = document.createElement('div');
|
| 607 |
element.setAttribute('id', "page_"+next_or_previous+"_"+id);
|
| 608 |
element.setAttribute('class', class_);
|
| 609 |
if(checkable=="true") {
|
| 610 |
element.setAttribute('onClick', "if(fm_check("+id+", "+form_id+")) page_"+next_or_previous+"("+id+","+form_id+","+form_view_count+","+form_view_max+")");
|
| 611 |
}
|
| 612 |
else {
|
| 613 |
element.setAttribute('onClick', "page_"+next_or_previous+"("+id+","+form_id+","+form_view_count+","+form_view_max+")");
|
| 614 |
}
|
| 615 |
element.innerHTML=title;
|
| 616 |
return element;
|
| 617 |
}
|
| 618 |
case 'img':{
|
| 619 |
var element = document.createElement('img');
|
| 620 |
element.setAttribute('id', "page_"+next_or_previous+"_"+id);
|
| 621 |
element.setAttribute('class', class_);
|
| 622 |
if(checkable=="true") {
|
| 623 |
element.setAttribute('onClick', "if(fm_check("+id+", "+form_id+")) page_"+next_or_previous+"("+id+","+form_id+","+form_view_count+","+form_view_max+")");
|
| 624 |
}
|
| 625 |
else {
|
| 626 |
element.setAttribute('onClick', "page_"+next_or_previous+"("+id+","+form_id+","+form_view_count+","+form_view_max+")");
|
| 627 |
}
|
| 628 |
if(title.indexOf("http")==0) {
|
| 629 |
element.src=title;
|
| 630 |
}
|
| 631 |
else {
|
| 632 |
element.src=fm_objectL10n.plugin_url+'/'+title;
|
| 633 |
}
|
| 634 |
return element;
|
| 635 |
}
|
| 636 |
}
|
| 637 |
var curtop = 0;
|
| 638 |
if (obj.offsetParent) {
|
| 639 |
do {
|
| 640 |
curtop += obj.offsetTop;
|
| 641 |
} while (obj = obj.offsetParent);
|
| 642 |
return [curtop];
|
| 643 |
}
|
| 644 |
form_view_elemet = document.getElementById(form_id + 'form_view' + id);
|
| 645 |
if (form_view_elemet.parentNode.previousSibling && form_view_elemet.parentNode.previousSibling.previousSibling) {
|
| 646 |
if (form_view_elemet.parentNode.previousSibling.tagName == "DIV") {
|
| 647 |
table = form_view_elemet.parentNode.previousSibling;
|
| 648 |
}
|
| 649 |
else {
|
| 650 |
table = form_view_elemet.parentNode.previousSibling.previousSibling;
|
| 651 |
}
|
| 652 |
}
|
| 653 |
if (!table.firstChild.tagName) {
|
| 654 |
table.removeChild(table.firstChild);
|
| 655 |
}
|
| 656 |
generate_page_nav(table.firstChild.id.replace(form_id + 'form_view', ""), form_id, form_view_count, form_view_max);
|
| 657 |
form = jQuery("#form" + form_id);
|
| 658 |
if (!form.parent().hasClass('fm-scrollbox-form')) {
|
| 659 |
jQuery('html').animate({
|
| 660 |
scrollTop: form.offset().top - 150
|
| 661 |
}, 500);
|
| 662 |
}
|
| 663 |
form_view_elemet = document.getElementById(form_id + 'form_view' + id);
|
| 664 |
if (form_view_elemet.parentNode.nextSibling) {
|
| 665 |
if (form_view_elemet.parentNode.nextSibling.tagName == "DIV") {
|
| 666 |
table = form_view_elemet.parentNode.nextSibling;
|
| 667 |
}
|
| 668 |
else {
|
| 669 |
table = form_view_elemet.parentNode.nextSibling.nextSibling;
|
| 670 |
}
|
| 671 |
}
|
| 672 |
if (!table.firstChild.tagName) {
|
| 673 |
table.removeChild(table.firstChild);
|
| 674 |
}
|
| 675 |
generate_page_nav(table.firstChild.id.replace(form_id + 'form_view', ""), form_id, form_view_count, form_view_max);
|
| 676 |
form = jQuery("#form" + form_id);
|
| 677 |
if (!form.parent().hasClass('fm-scrollbox-form')) {
|
| 678 |
jQuery('html').animate({
|
| 679 |
scrollTop: form.offset().top - 150
|
| 680 |
}, 500);
|
| 681 |
}
|
| 682 |
if(filename.length == 0) {
|
| 683 |
return true;
|
| 684 |
}
|
| 685 |
var dot = filename.lastIndexOf(".");
|
| 686 |
var extension = filename.substr(dot+1,filename.length);
|
| 687 |
exten=exten.split(',');
|
| 688 |
for(var j=0 ; j<exten.length; j++) {
|
| 689 |
exten[j]=exten[j].replace(/\./g,'');
|
| 690 |
exten[j]=exten[j].replace(/ /g,'');
|
| 691 |
if(extension.toLowerCase()==exten[j].toLowerCase())
|
| 692 |
return true;
|
| 693 |
}
|
| 694 |
return false;
|
| 695 |
addclass = typeof(addclass) != 'undefined' ? addclass : '';
|
| 696 |
jQuery(select).wrap('<div class="sel-wrap ' + addclass + '"/>');
|
| 697 |
var sel_options = '';
|
| 698 |
var selected_option = false;
|
| 699 |
jQuery(select).children('option').each(function() {
|
| 700 |
if(jQuery(this).is(':selected')){
|
| 701 |
selected_option = jQuery(this).index();
|
| 702 |
}
|
| 703 |
sel_options = sel_options + '<div class="sel-option" value="' + jQuery(this).val() + '">' + jQuery(this).html() + '</div>';
|
| 704 |
});
|
| 705 |
w=jQuery(select)[0].style.width;
|
| 706 |
if(w=='100%') {
|
| 707 |
w='100%';
|
| 708 |
}
|
| 709 |
else {
|
| 710 |
w=(jQuery(select).width()+32)+'px';
|
| 711 |
}
|
| 712 |
var sel_imul = '<div class="sel-imul" style="width:'+w+'">\
|
| 713 |
<div class="sel-selected">\
|
| 714 |
<div class="selected-text">' + jQuery(select).children('option').eq(selected_option).html() + '</div>\
|
| 715 |
<div class="sel-arraw"></div>\
|
| 716 |
</div>\
|
| 717 |
<div class="sel-options">' + sel_options + '</div>\
|
| 718 |
</div>';
|
| 719 |
jQuery(select).addClass('no-width');
|
| 720 |
jQuery(select).before(sel_imul);
|
| 721 |
var tektext = jQuery(this).children("option:selected").text();
|
| 722 |
jQuery(this).parent('.sel-wrap ').children('.sel-imul').children('.sel-selected').children('.selected-text').html(tektext);
|
| 723 |
jQuery(this).parent('.sel-wrap ').children('.sel-imul').children('.sel-options').children('.sel-option').removeClass('sel-ed');
|
| 724 |
jQuery(this).addClass('sel-ed');
|
| 725 |
jQuery(this).parent('.sel-wrap ').children('.sel-imul').children('.sel-options').each(function() {
|
| 726 |
if (jQuery(this).html() == tektext) {
|
| 727 |
jQuery(this).addClass('sel-ed');
|
| 728 |
}
|
| 729 |
});
|
| 730 |
jQuery('.sel-imul').removeClass('act');
|
| 731 |
jQuery(this).addClass('act');
|
| 732 |
if (jQuery(this).children('.sel-options').is(':visible')) {
|
| 733 |
jQuery('.sel-options').hide();
|
| 734 |
}
|
| 735 |
else {
|
| 736 |
jQuery('.sel-options').hide();
|
| 737 |
jQuery(this).children('.sel-options').show();
|
| 738 |
jQuery(this).children('.sel-options').css('width',jQuery(this).width());
|
| 739 |
}
|
| 740 |
var tektext = jQuery(this).html();
|
| 741 |
jQuery(this).parent('.sel-options').parent('.sel-imul').children('.sel-selected').children('.selected-text').html(tektext);
|
| 742 |
jQuery(this).parent('.sel-options').children('.sel-option').removeClass('sel-ed');
|
| 743 |
jQuery(this).addClass('sel-ed');
|
| 744 |
var tekval = jQuery(this).attr('value');
|
| 745 |
tekval = typeof(tekval) != 'undefined' ? tekval : tektext;
|
| 746 |
jQuery(this).parent('.sel-options').parent('.sel-imul').parent('.sel-wrap').children('select').children('option').removeAttr('selected').each(function() {
|
| 747 |
if (jQuery(this).html() == tektext) {
|
| 748 |
jQuery(this).attr('selected', 'select');
|
| 749 |
}
|
| 750 |
});
|
| 751 |
jQuery(this).parent('.sel-options').parent('.sel-imul').parent('.sel-wrap').children('select').change();
|
| 752 |
selenter = true;
|
| 753 |
selenter = false;
|
| 754 |
if (!selenter) {
|
| 755 |
jQuery('.sel-options').hide();
|
| 756 |
jQuery('.sel-imul').removeClass('act');
|
| 757 |
}
|
| 758 |
var ttt;
|
| 759 |
for (ttt=0; ttt < node.childNodes.length; ttt++) {
|
| 760 |
if( node.childNodes[ttt] && node.childNodes[ttt].nodeType == '3' && !/\S/.test( node.childNodes[ttt].nodeValue )) {
|
| 761 |
node.removeChild(node.childNodes[ttt]);
|
| 762 |
ttt--;
|
| 763 |
}
|
| 764 |
else {
|
| 765 |
if(node.childNodes[ttt].childNodes.length) {
|
| 766 |
remove_whitespace(node.childNodes[ttt]);
|
| 767 |
}
|
| 768 |
}
|
| 769 |
}
|
| 770 |
return;
|
| 771 |
if(element_value) {
|
| 772 |
jQuery("#"+id).datepicker('option', min_max, element_value);
|
| 773 |
}
|
| 774 |
else {
|
| 775 |
if(default_min_max == "today") {
|
| 776 |
jQuery("#"+id).datepicker('option', min_max, new Date());
|
| 777 |
}
|
| 778 |
else {
|
| 779 |
if (default_min_max.indexOf("d") == -1 && default_min_max.indexOf("m") == -1 && default_min_max.indexOf("y") == -1 && default_min_max.indexOf("w") == -1 && default_min_max != "") {
|
| 780 |
default_min_max = jQuery.datepicker.formatDate(format, new Date(default_min_max));
|
| 781 |
}
|
| 782 |
jQuery("#"+id).datepicker('option', min_max, default_min_max);
|
| 783 |
}
|
| 784 |
}
|
| 785 |
var element = jQuery("#wdform_" + wdid +"_element" + form_id);
|
| 786 |
var element_confirm = jQuery("#wdform_" + wdid +"_1_element" + form_id);
|
| 787 |
var condition_confirm_email = false;
|
| 788 |
if(!window["check_before_submit" + form_id][wdid + "_" + form_id]) {
|
| 789 |
condition_confirm_email = true;
|
| 790 |
}
|
| 791 |
else {
|
| 792 |
condition_confirm_email = jQuery(element).val() != jQuery(element_confirm).val() ? true : false;
|
| 793 |
}
|
| 794 |
if(condition_confirm_email) {
|
| 795 |
jQuery("#confirm_" + wdid + "_" + form_id).remove();
|
| 796 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:eq( 1 ) .error_label_confirm").removeClass("error_label_confirm");
|
| 797 |
if(jQuery(element).val() != jQuery(element_confirm).val()) {
|
| 798 |
jQuery(element_confirm).parent().parent().parent().append("<div id='confirm_" + wdid + "_" + form_id + "' class='fm-not-filled'>" + message + "</div>");
|
| 799 |
jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:eq( 1 ) .wdform-label").addClass("error_label_confirm");
|
| 800 |
}
|
| 801 |
window["check_before_submit" + form_id][wdid + "_" + form_id] = (wdid + "_" + form_id in window["check_before_submit" + form_id]) ? window["check_before_submit" + form_id][wdid + "_" + form_id] : true;
|
| 802 |
}
|
| 803 |
else {
|
| 804 |
jQuery("#confirm_" + wdid + "_" + form_id).remove();
|
| 805 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:eq( 1 ) .error_label_confirm").removeClass("error_label_confirm");
|
| 806 |
if(window["check_before_submit" + form_id][wdid + "_" + form_id] == true) {
|
| 807 |
delete window["check_before_submit" + form_id][wdid + "_" + form_id];
|
| 808 |
}
|
| 809 |
}
|
| 810 |
var element = jQuery("#wdform_" + wdid +"_element" + form_id);
|
| 811 |
var element_confirm = jQuery("#wdform_" + wdid +"_1_element" + form_id);
|
| 812 |
var re = /^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;
|
| 813 |
if(jQuery(element).val()!="" && !re.test(jQuery.trim(jQuery(element).val())) && jQuery(element).attr("title") != jQuery(element).val()){
|
| 814 |
jQuery("#check_email_" + wdid + "_" + form_id).remove();
|
| 815 |
jQuery(element).parent().parent().parent().append("<div id='check_email_" + wdid + "_" + form_id + "' class='fm-not-filled'>" + message_check + "</div>");
|
| 816 |
jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label_check_mail");
|
| 817 |
if(element.val() == element_confirm.val()) {
|
| 818 |
jQuery("#confirm_" + wdid + "_" + form_id).remove();
|
| 819 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:eq( 1 ) .error_label_confirm").removeClass("error_label_confirm");
|
| 820 |
}
|
| 821 |
delete window["check_before_submit" + form_id][wdid + "_" + form_id];
|
| 822 |
window["check_before_submit" + form_id][wdid + "_" + form_id] = false;
|
| 823 |
}
|
| 824 |
else {
|
| 825 |
jQuery("#check_email_" + wdid + "_" + form_id).remove();
|
| 826 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label_check_mail").removeClass("error_label_check_mail");
|
| 827 |
window["check_before_submit" + form_id][wdid + "_" + form_id] = true;
|
| 828 |
if(typeof element_confirm.val() ==="undefined") {
|
| 829 |
delete window["check_before_submit" + form_id][wdid + "_" + form_id];
|
| 830 |
}
|
| 831 |
}
|
| 832 |
var element = jQuery("#wdform_" + wdid +"_element" + form_id);
|
| 833 |
var element_confirm = jQuery("#wdform_" + wdid +"_1_element" + form_id);
|
| 834 |
var condition_confirm_pass = false;
|
| 835 |
condition_confirm_pass = element.val() !== element_confirm.val();
|
| 836 |
if(condition_confirm_pass) {
|
| 837 |
jQuery("#confirm_" + wdid + "_" + form_id).remove();
|
| 838 |
jQuery(element_confirm).parent().parent().parent().append("<div id='confirm_" + wdid + "_" + form_id + "' class='fm-not-filled'>" + message + "</div>");
|
| 839 |
jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:eq( 1 ) .wdform-label").addClass("error_label_check_pass");
|
| 840 |
window["check_before_submit" + form_id][wdid + "_" + form_id] = false;
|
| 841 |
}
|
| 842 |
else {
|
| 843 |
jQuery("#confirm_" + wdid + "_" + form_id).remove();
|
| 844 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:eq( 1 ) .error_label_check_pass").removeClass("error_label_check_pass");
|
| 845 |
delete window["check_before_submit" + form_id][wdid + "_" + form_id];
|
| 846 |
}
|
| 847 |
jQuery("#fm-scrollbox"+form_id).removeClass("fm-animated fadeInUp").addClass("fm-animated fadeOutDown fm-minimized");
|
| 848 |
jQuery("#fm-minimize-text"+form_id).removeClass("fm-animated fadeOutDown").addClass("fm-show fm-animated fadeInUp");
|
| 849 |
jQuery("#fm-minimize-text"+form_id).removeClass("fm-animated fadeInUp").addClass("fm-animated fadeOutDown");
|
| 850 |
jQuery("#fm-scrollbox"+form_id).removeClass("fm-animated fadeOutDown fm-minimized").addClass("fm-show fm-animated fadeInUp");
|
| 851 |
var hide_date = new Date();
|
| 852 |
hide_date.setDate(hide_date.getDate() + hide_interval);
|
| 853 |
if( hide_interval > 0 ) {
|
| 854 |
localStorage.setItem('hide-'+form_id, hide_date.getTime());
|
| 855 |
}
|
| 856 |
if(typeof close_callback === 'function') {
|
| 857 |
close_callback();
|
| 858 |
}
|
| 859 |
var x = jQuery("#form" + form_id);
|
| 860 |
var find_wrong_exp = false;
|
| 861 |
var check_regExp = regExpObj ? regExpObj : window['check_regExp_all'+form_id];
|
| 862 |
jQuery.each( check_regExp, function( wdid, exp ) {
|
| 863 |
var element = "#wdform_" + wdid + "_element" + form_id;
|
| 864 |
var RegExpression = "";
|
| 865 |
var rules = unescape(exp[0]);
|
| 866 |
(exp[1].length <= 0) ? RegExpression = new RegExp(rules) : RegExpression = new RegExp(rules, exp[1]);
|
| 867 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).length != 0 && x.find(jQuery("div[wdid='"+wdid+"']")).css("display") != "none") {
|
| 868 |
if(jQuery(element).val().length > 0 && jQuery(element).val() != jQuery(element).attr('title')) {
|
| 869 |
if (RegExpression.test(jQuery(element).val()) != true) {
|
| 870 |
jQuery("#form"+form_id+" #wd_exp_"+wdid).remove();
|
| 871 |
x.find(jQuery("div[wdid='"+wdid+"'] .wdform-element-section")).parent().parent().append("<div id='wd_exp_"+wdid+"' class='fm-not-filled'>" + exp[2] + "</div>");
|
| 872 |
jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label_exp");
|
| 873 |
find_wrong_exp = true;
|
| 874 |
if(!regExpObj){
|
| 875 |
scroll_on_element(form_id);
|
| 876 |
}
|
| 877 |
}
|
| 878 |
}
|
| 879 |
}
|
| 880 |
});
|
| 881 |
if(find_wrong_exp === false) {
|
| 882 |
return true;
|
| 883 |
}
|
| 884 |
return false;
|
| 885 |
if ( jQuery("#form" + form_id + " .fm-not-filled").length == 0 ) {
|
| 886 |
return true;
|
| 887 |
}
|
| 888 |
var parent_div = jQuery("#form" + form_id + " .fm-not-filled").closest(".wdform_row");
|
| 889 |
var body_hight = document.body.clientHeight;
|
| 890 |
var element_offset = jQuery("#form" + form_id + " .fm-not-filled").offset().top;
|
| 891 |
var scrollChecker = function() {
|
| 892 |
if(document.body.clientHeight !== body_hight ) {
|
| 893 |
body_hight = document.body.clientHeight;
|
| 894 |
element_offset = jQuery("#form" + form_id + " .fm-not-filled").offset().top;
|
| 895 |
jQuery('html').stop();
|
| 896 |
animateBodyToError();
|
| 897 |
}
|
| 898 |
};
|
| 899 |
jQuery(window).on("scroll",scrollChecker);
|
| 900 |
function animateBodyToError() {
|
| 901 |
jQuery('html').animate({
|
| 902 |
scrollTop: element_offset - 150
|
| 903 |
}, 500, function() {
|
| 904 |
jQuery(window).off("scroll", scrollChecker);
|
| 905 |
old_bg=jQuery(parent_div).css("background-color");
|
| 906 |
jQuery(parent_div).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
|
| 907 |
});
|
| 908 |
}
|
| 909 |
animateBodyToError();
|
| 910 |
var x = jQuery("#form" + form_id);
|
| 911 |
var find_wrong_type_upload = false;
|
| 912 |
var upload_check = upload_check_field ? upload_check_field : window['file_upload_check'+form_id];
|
| 913 |
jQuery.each( upload_check, function( wdid, upload_types ) {
|
| 914 |
var element = "#wdform_" + wdid + "_element" + form_id;
|
| 915 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).length != 0 && x.find(jQuery("div[wdid='"+wdid+"']")).css("display") != "none") {
|
| 916 |
ext_available=getfileextension(jQuery(element).val(), upload_types);
|
| 917 |
if(!ext_available) {
|
| 918 |
jQuery("#form"+form_id+" #wd_upload_type_"+wdid).remove();
|
| 919 |
x.find(jQuery("div[wdid='"+wdid+"'] .wdform-element-section")).parent().parent().append("<div id='wd_upload_type_"+wdid+"' class='fm-not-filled'>" + fm_objectL10n.fm_file_type_error + "</div>");
|
| 920 |
jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label_upload");
|
| 921 |
find_wrong_type_upload = true;
|
| 922 |
}
|
| 923 |
else {
|
| 924 |
jQuery("#form"+form_id+" #wd_upload_type_"+wdid).remove();
|
| 925 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label_upload").removeClass("error_label_upload")
|
| 926 |
}
|
| 927 |
}
|
| 928 |
});
|
| 929 |
if(!upload_check_field && find_wrong_type_upload === true){
|
| 930 |
scroll_on_element(form_id);
|
| 931 |
}
|
| 932 |
if(find_wrong_type_upload === false) {
|
| 933 |
return true;
|
| 934 |
}
|
| 935 |
return false;
|
| 936 |
var x = jQuery("#form" + form_id);
|
| 937 |
var req_fields = field_id ? field_id.split() : window['required_fields'+form_id];
|
| 938 |
var not_filled = {};
|
| 939 |
jQuery(req_fields).each(function(index, wdid) {
|
| 940 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).length != 0 && x.find(jQuery("div[wdid='"+wdid+"']")).css("display") != "none" ) {
|
| 941 |
switch(window['labels_and_ids'+form_id][wdid]) {
|
| 942 |
case 'type_text':
|
| 943 |
case 'type_textarea':
|
| 944 |
case 'type_paypal_price_new':
|
| 945 |
case 'type_spinner':
|
| 946 |
case 'type_number':
|
| 947 |
case 'type_phone_new':
|
| 948 |
case 'type_submitter_mail': {
|
| 949 |
var element = "#wdform_" + wdid + "_element" + form_id;
|
| 950 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 951 |
if(jQuery(element).val() == jQuery(element).attr('title') || jQuery(element).val() == ""){
|
| 952 |
not_filled[wdid] = element;
|
| 953 |
}
|
| 954 |
}
|
| 955 |
if(!field_id && !window['check_submit'+form_id]) {
|
| 956 |
jQuery(element).focus(function() {
|
| 957 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 958 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 959 |
}).blur(function() {
|
| 960 |
wd_is_filled(form_id, wdid);
|
| 961 |
});
|
| 962 |
}
|
| 963 |
break;
|
| 964 |
}
|
| 965 |
case 'type_own_select':
|
| 966 |
case 'type_country':
|
| 967 |
case 'type_paypal_select': {
|
| 968 |
var element = "#wdform_" + wdid + "_element" + form_id;
|
| 969 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 970 |
if(jQuery(element).val() == "") {
|
| 971 |
not_filled[wdid] = element;
|
| 972 |
}
|
| 973 |
}
|
| 974 |
if(!field_id && !window['check_submit'+form_id]) {
|
| 975 |
jQuery(element).focus(function() {
|
| 976 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 977 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 978 |
}).blur(function() {
|
| 979 |
wd_is_filled(form_id, wdid);
|
| 980 |
}).change(function() {
|
| 981 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 982 |
wd_is_filled(form_id, wdid);
|
| 983 |
});
|
| 984 |
}
|
| 985 |
break;
|
| 986 |
}
|
| 987 |
case 'type_phone': {
|
| 988 |
var element = ["#wdform_" + wdid + "_element_first" + form_id, "#wdform_" + wdid + "_element_last" + form_id];
|
| 989 |
jQuery.each(element, function(i, elem){
|
| 990 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 991 |
if(jQuery(elem).val() == "" || jQuery(elem).val() == jQuery(elem).attr('title')){
|
| 992 |
not_filled[wdid] = elem;
|
| 993 |
}
|
| 994 |
}
|
| 995 |
if(!field_id && !window['check_submit'+form_id]){
|
| 996 |
jQuery(elem).focus(function() {
|
| 997 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 998 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 999 |
}).blur(function() {
|
| 1000 |
wd_is_filled(form_id, wdid);
|
| 1001 |
});
|
| 1002 |
}
|
| 1003 |
});
|
| 1004 |
break;
|
| 1005 |
}
|
| 1006 |
case 'type_name': {
|
| 1007 |
var element = ["#wdform_" + wdid + "_element_title" + form_id, "#wdform_" + wdid + "_element_first" + form_id, "#wdform_" + wdid + "_element_last" + form_id, "#wdform_" + wdid + "_element_middle" + form_id];
|
| 1008 |
jQuery.each(element, function(i, elem){
|
| 1009 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1010 |
if((jQuery(elem).val() == "" || jQuery(elem).val() == jQuery(elem).attr('title')) && typeof jQuery(elem).val() != "undefined"){
|
| 1011 |
not_filled[wdid] = elem;
|
| 1012 |
}
|
| 1013 |
}
|
| 1014 |
if(!field_id && !window['check_submit'+form_id]){
|
| 1015 |
jQuery(elem).focus(function() {
|
| 1016 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1017 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1018 |
}).blur(function() {
|
| 1019 |
wd_is_filled(form_id, wdid);
|
| 1020 |
});
|
| 1021 |
}
|
| 1022 |
});
|
| 1023 |
break;
|
| 1024 |
}
|
| 1025 |
case 'type_address': {
|
| 1026 |
var element = ["#wdform_" + wdid + "_street1" + form_id, "#wdform_" + wdid + "_street2" + form_id, "#wdform_" + wdid + "_city" + form_id, "#wdform_" + wdid + "_state" + form_id, "#wdform_" + wdid + "_postal" + form_id, "#wdform_" + wdid + "_country" + form_id];
|
| 1027 |
jQuery.each(element, function(i, elem){
|
| 1028 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1029 |
if(jQuery(elem).val() == "" && typeof jQuery(elem).val() != "undefined"){
|
| 1030 |
not_filled[wdid] = elem;
|
| 1031 |
}
|
| 1032 |
}
|
| 1033 |
if(!field_id && !window['check_submit'+form_id]){
|
| 1034 |
jQuery(elem).focus(function() {
|
| 1035 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1036 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1037 |
}).blur(function() {
|
| 1038 |
wd_is_filled(form_id, wdid);
|
| 1039 |
});
|
| 1040 |
}
|
| 1041 |
});
|
| 1042 |
break;
|
| 1043 |
}
|
| 1044 |
case 'type_checkbox':
|
| 1045 |
case 'type_radio':
|
| 1046 |
case 'type_scale_rating':
|
| 1047 |
case 'type_paypal_checkbox':
|
| 1048 |
case 'type_paypal_radio':
|
| 1049 |
case 'type_paypal_shipping': {
|
| 1050 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none"){
|
| 1051 |
if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0 || jQuery("#wdform_"+ wdid +"_other_input" + form_id).val() == ""){
|
| 1052 |
not_filled[wdid] = true;
|
| 1053 |
}
|
| 1054 |
}
|
| 1055 |
if(!field_id && !window['check_submit'+form_id]){
|
| 1056 |
jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){
|
| 1057 |
jQuery(this).change(function() {
|
| 1058 |
if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0 || jQuery("#wdform_"+ wdid +"_other_input" + form_id).val() == ""){
|
| 1059 |
wd_is_filled(form_id, wdid);
|
| 1060 |
}
|
| 1061 |
else{
|
| 1062 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1063 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1064 |
}
|
| 1065 |
});
|
| 1066 |
});
|
| 1067 |
}
|
| 1068 |
break;
|
| 1069 |
}
|
| 1070 |
case 'type_star_rating': {
|
| 1071 |
var element = "#wdform_" + wdid + "_selected_star_amount" + form_id;
|
| 1072 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1073 |
if(jQuery(element).val() == ""){
|
| 1074 |
not_filled[wdid] = true;
|
| 1075 |
}
|
| 1076 |
}
|
| 1077 |
if(!field_id && !window['check_submit'+form_id]){
|
| 1078 |
jQuery("#wdform_" + wdid + "_element" + form_id).click(function(){
|
| 1079 |
if(jQuery(element).val() != ""){
|
| 1080 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1081 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1082 |
}
|
| 1083 |
});
|
| 1084 |
}
|
| 1085 |
break;
|
| 1086 |
}
|
| 1087 |
case 'type_range': {
|
| 1088 |
var element = ["#wdform_" + wdid + "_element" + form_id + "0", "#wdform_" + wdid + "_element" + form_id + "1"];
|
| 1089 |
jQuery.each(element, function(i, elem){
|
| 1090 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1091 |
if(jQuery(elem).val() == ""){
|
| 1092 |
not_filled[wdid] = elem;
|
| 1093 |
}
|
| 1094 |
}
|
| 1095 |
if(!field_id && !window['check_submit'+form_id]){
|
| 1096 |
jQuery(elem).focus(function() {
|
| 1097 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1098 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1099 |
}).blur(function() {
|
| 1100 |
wd_is_filled(form_id, wdid);
|
| 1101 |
});
|
| 1102 |
}
|
| 1103 |
});
|
| 1104 |
break;
|
| 1105 |
}
|
| 1106 |
case 'type_grading': {
|
| 1107 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1108 |
var count_grading = 0;
|
| 1109 |
jQuery.each(jQuery("#wdform_" + wdid + "_element" + form_id + " input"), function( i, val ){
|
| 1110 |
if(jQuery(this).val() != "")
|
| 1111 |
count_grading ++;
|
| 1112 |
});
|
| 1113 |
if(count_grading == 0)
|
| 1114 |
not_filled[wdid] = true;
|
| 1115 |
}
|
| 1116 |
if(!field_id && !window['check_submit'+form_id]){
|
| 1117 |
jQuery.each(jQuery("#wdform_" + wdid + "_element" + form_id + " input"), function( i, val ){
|
| 1118 |
jQuery(this).focus(function() {
|
| 1119 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1120 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1121 |
}).blur(function() {
|
| 1122 |
wd_is_filled(form_id, wdid);
|
| 1123 |
});
|
| 1124 |
});
|
| 1125 |
}
|
| 1126 |
break;
|
| 1127 |
}
|
| 1128 |
case 'type_slider': {
|
| 1129 |
var slider_element = "#wdform_" + wdid + "_element" + form_id;
|
| 1130 |
var element = "#wdform_" + wdid + "_slider_value" + form_id;
|
| 1131 |
var min_value = "#wdform_" + wdid + "_element_min" + form_id;
|
| 1132 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1133 |
if(jQuery(element).val() == jQuery(min_value).html()){
|
| 1134 |
not_filled[wdid] = true;
|
| 1135 |
}
|
| 1136 |
}
|
| 1137 |
if(!field_id && !window['check_submit'+form_id]){
|
| 1138 |
jQuery(slider_element).slider({
|
| 1139 |
change: function( event, ui ) {
|
| 1140 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1141 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1142 |
wd_is_filled(form_id, wdid);
|
| 1143 |
}
|
| 1144 |
});
|
| 1145 |
}
|
| 1146 |
break;
|
| 1147 |
}
|
| 1148 |
case 'type_date':
|
| 1149 |
case 'type_date_new': {
|
| 1150 |
var element = "#wdform_" + wdid + "_element" + form_id;
|
| 1151 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1152 |
if(jQuery(element).val() == ""){
|
| 1153 |
not_filled[wdid] = element;
|
| 1154 |
}
|
| 1155 |
}
|
| 1156 |
if(!field_id && !window['check_submit'+form_id]){
|
| 1157 |
jQuery(element).focus(function() {
|
| 1158 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1159 |
}).change(function() {
|
| 1160 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1161 |
wd_is_filled(form_id, wdid);
|
| 1162 |
});
|
| 1163 |
}
|
| 1164 |
break;
|
| 1165 |
}
|
| 1166 |
case 'type_date_range': {
|
| 1167 |
var element = ["#wdform_" + wdid + "_element" + form_id + "0", "#wdform_" + wdid + "_element" + form_id + "1"];
|
| 1168 |
jQuery.each(element, function(i, elem){
|
| 1169 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1170 |
if(jQuery(elem).val() == ""){
|
| 1171 |
not_filled[wdid] = elem;
|
| 1172 |
}
|
| 1173 |
}
|
| 1174 |
if(!field_id && !window['check_submit'+form_id]){
|
| 1175 |
jQuery(elem).focus(function() {
|
| 1176 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1177 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1178 |
}).change(function() {
|
| 1179 |
wd_is_filled(form_id, wdid);
|
| 1180 |
});
|
| 1181 |
}
|
| 1182 |
});
|
| 1183 |
break;
|
| 1184 |
}
|
| 1185 |
case 'type_date_fields': {
|
| 1186 |
var element = ["#wdform_" + wdid + "_day" + form_id, "#wdform_" + wdid + "_month" + form_id, "#wdform_" + wdid + "_year" + form_id];
|
| 1187 |
jQuery.each(element, function(i, elem) {
|
| 1188 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1189 |
if(jQuery(elem).val() == ""){
|
| 1190 |
not_filled[wdid] = elem;
|
| 1191 |
}
|
| 1192 |
}
|
| 1193 |
if(!field_id && !window['check_submit'+form_id]){
|
| 1194 |
jQuery(elem).focus(function() {
|
| 1195 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1196 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1197 |
}).blur(function() {
|
| 1198 |
wd_is_filled(form_id, wdid);
|
| 1199 |
}).change(function() {
|
| 1200 |
wd_is_filled(form_id, wdid);
|
| 1201 |
});
|
| 1202 |
}
|
| 1203 |
});
|
| 1204 |
break;
|
| 1205 |
}
|
| 1206 |
case 'type_time': {
|
| 1207 |
var element = ["#wdform_" + wdid + "_hh" + form_id, "#wdform_" + wdid + "_mm" + form_id, "#wdform_" + wdid + "_ss" + form_id];
|
| 1208 |
jQuery.each(element, function(i, elem){
|
| 1209 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1210 |
if(jQuery(elem).val() == "" && typeof jQuery(elem).val() != "undefined"){
|
| 1211 |
not_filled[wdid] = elem;
|
| 1212 |
}
|
| 1213 |
}
|
| 1214 |
if(!field_id && !window['check_submit'+form_id]){
|
| 1215 |
jQuery(elem).focus(function() {
|
| 1216 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1217 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1218 |
}).blur(function() {
|
| 1219 |
wd_is_filled(form_id, wdid);
|
| 1220 |
});
|
| 1221 |
}
|
| 1222 |
});
|
| 1223 |
break;
|
| 1224 |
}
|
| 1225 |
case 'type_password': {
|
| 1226 |
var element = "#wdform_" + wdid + "_element" + form_id;
|
| 1227 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1228 |
if(jQuery(element).val() == ""){
|
| 1229 |
not_filled[wdid] = element;
|
| 1230 |
}
|
| 1231 |
}
|
| 1232 |
if(!field_id && !window['check_submit'+form_id]){
|
| 1233 |
jQuery(element).focus(function() {
|
| 1234 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1235 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1236 |
}).blur(function() {
|
| 1237 |
wd_is_filled(form_id, wdid);
|
| 1238 |
});
|
| 1239 |
}
|
| 1240 |
break;
|
| 1241 |
}
|
| 1242 |
case 'type_file_upload': {
|
| 1243 |
var element = "#wdform_" + wdid + "_element" + form_id;
|
| 1244 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1245 |
if(jQuery(element).val() == jQuery(element).attr('title') || jQuery(element).val() == ""){
|
| 1246 |
not_filled[wdid] = element;
|
| 1247 |
}
|
| 1248 |
}
|
| 1249 |
if(!field_id && !window['check_submit'+form_id]) {
|
| 1250 |
jQuery(element).focus(function() {
|
| 1251 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1252 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1253 |
}).change(function() {
|
| 1254 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1255 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1256 |
wd_is_filled(form_id, wdid);
|
| 1257 |
});
|
| 1258 |
}
|
| 1259 |
break;
|
| 1260 |
}
|
| 1261 |
case 'type_matrix': {
|
| 1262 |
if(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') =="radio" || jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') =="checkbox"){
|
| 1263 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1264 |
if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0){
|
| 1265 |
not_filled[wdid] = true;
|
| 1266 |
}
|
| 1267 |
}
|
| 1268 |
if(!field_id && !window['check_submit'+form_id]) {
|
| 1269 |
jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){
|
| 1270 |
jQuery(this).change(function() {
|
| 1271 |
if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0){
|
| 1272 |
wd_is_filled(form_id, wdid);
|
| 1273 |
}
|
| 1274 |
else{
|
| 1275 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1276 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1277 |
}
|
| 1278 |
});
|
| 1279 |
});
|
| 1280 |
}
|
| 1281 |
}
|
| 1282 |
else if(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') =="text") {
|
| 1283 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1284 |
var count_input_matrix = 0;
|
| 1285 |
jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){
|
| 1286 |
if(jQuery(this).val() != "")
|
| 1287 |
count_input_matrix ++;
|
| 1288 |
});
|
| 1289 |
if(count_input_matrix == 0)
|
| 1290 |
not_filled[wdid] = true;
|
| 1291 |
}
|
| 1292 |
if(!field_id && !window['check_submit'+form_id]){
|
| 1293 |
jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){
|
| 1294 |
jQuery(this)
|
| 1295 |
.focus(function() {
|
| 1296 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1297 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1298 |
})
|
| 1299 |
.blur(function() {
|
| 1300 |
wd_is_filled(form_id, wdid);
|
| 1301 |
});
|
| 1302 |
});
|
| 1303 |
}
|
| 1304 |
}
|
| 1305 |
else {
|
| 1306 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1307 |
var count_select_matrix = 0;
|
| 1308 |
jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] select"), function( i, val ){
|
| 1309 |
if(jQuery(this).val() != "")
|
| 1310 |
count_select_matrix ++;
|
| 1311 |
});
|
| 1312 |
if(count_select_matrix == 0)
|
| 1313 |
not_filled[wdid] = true;
|
| 1314 |
}
|
| 1315 |
if(!field_id && !window['check_submit'+form_id]){
|
| 1316 |
jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] select"), function( i, val ){
|
| 1317 |
jQuery(this).focus(function() {
|
| 1318 |
if(jQuery(this).val() == ""){
|
| 1319 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1320 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1321 |
}
|
| 1322 |
}).change(function() {
|
| 1323 |
wd_is_filled(form_id, wdid);
|
| 1324 |
}).blur(function() {
|
| 1325 |
wd_is_filled(form_id, wdid);
|
| 1326 |
});
|
| 1327 |
});
|
| 1328 |
}
|
| 1329 |
}
|
| 1330 |
break;
|
| 1331 |
}
|
| 1332 |
case 'type_send_copy': {
|
| 1333 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1334 |
if(jQuery("div[wdid='"+ wdid +"'] input:checked").length == 0){
|
| 1335 |
not_filled[wdid] = true;
|
| 1336 |
}
|
| 1337 |
}
|
| 1338 |
if(!field_id && !window['check_submit'+form_id]){
|
| 1339 |
jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").change(function() {
|
| 1340 |
if(jQuery("div[wdid='"+ wdid +"'] input:checked").length == 0){
|
| 1341 |
wd_is_filled(form_id, wdid);
|
| 1342 |
}
|
| 1343 |
else {
|
| 1344 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1345 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1346 |
}
|
| 1347 |
});
|
| 1348 |
}
|
| 1349 |
break;
|
| 1350 |
}
|
| 1351 |
case 'type_captcha':
|
| 1352 |
case 'type_arithmetic_captcha': {
|
| 1353 |
var element = "";
|
| 1354 |
if(window['labels_and_ids'+form_id][wdid] == 'type_captcha') {
|
| 1355 |
element = '#wd_captcha_input' + form_id;
|
| 1356 |
}
|
| 1357 |
else {
|
| 1358 |
element = '#wd_arithmetic_captcha_input' + form_id;
|
| 1359 |
}
|
| 1360 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 1361 |
if(jQuery(element).val() == ""){
|
| 1362 |
jQuery(".message_captcha").html("");
|
| 1363 |
not_filled[wdid] = element;
|
| 1364 |
}
|
| 1365 |
}
|
| 1366 |
if(!field_id && !window['check_submit'+form_id]){
|
| 1367 |
jQuery(element).focus(function() {
|
| 1368 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1369 |
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1370 |
}).blur(function() {
|
| 1371 |
wd_is_filled(form_id, wdid);
|
| 1372 |
});
|
| 1373 |
}
|
| 1374 |
break;
|
| 1375 |
}
|
| 1376 |
}
|
| 1377 |
}
|
| 1378 |
});
|
| 1379 |
if (Object.keys(not_filled).length === 0
|
| 1380 |
&& Object.keys(window["check_before_submit" + form_id]).length === 0) {
|
| 1381 |
return true;
|
| 1382 |
}
|
| 1383 |
else {
|
| 1384 |
if (Object.keys(not_filled).length !== 0) {
|
| 1385 |
jQuery.each( not_filled, function( wdid, elem ) {
|
| 1386 |
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 1387 |
jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-element-section:first").parent().parent().append("<div id='wd_required_"+wdid+"' class='fm-not-filled'>" + fm_objectL10n.fm_field_is_required + "</div>");
|
| 1388 |
jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label");
|
| 1389 |
});
|
| 1390 |
}
|
| 1391 |
if(!field_id){
|
| 1392 |
scroll_on_element(form_id);
|
| 1393 |
}
|
| 1394 |
window['check_submit'+form_id] = 1;
|
| 1395 |
return false;
|
| 1396 |
}
|
| 1397 |
var x = jQuery("#form" + form_id);
|
| 1398 |
var check_price_min_max = price_nim_max ? price_nim_max : window['check_paypal_price_min_max'+form_id];
|
| 1399 |
var find_wrong_price = false;
|
| 1400 |
jQuery.each( check_price_min_max, function( wdid, min_max_option ) {
|
| 1401 |
var element = "#wdform_" + wdid + "_element" + form_id;
|
| 1402 |
var range_min = min_max_option[3] ? min_max_option[3] : 0;
|
| 1403 |
var range_max = min_max_option[4] ? min_max_option[4] : -1;
|
| 1404 |
if((min_max_option[2] ? true : false) || jQuery(element).val()!=min_max_option[1]) {
|
| 1405 |
if((range_max!=-1 && parseFloat(jQuery(element).val()) > range_max) || parseFloat(jQuery(element).val()) < range_min) {
|
| 1406 |
jQuery("#form"+form_id+" #wd_price_"+wdid).remove();
|
| 1407 |
x.find(jQuery("div[wdid='"+wdid+"'] .wdform-element-section")).parent().parent().append("<div id='wd_price_"+wdid+"' class='fm-not-filled'>" + fm_objectL10n.fm_min_max_check_1 + min_max_option[0] + fm_objectL10n.fm_min_max_check_2 + (min_max_option[3] ? min_max_option[3] : 0) + '-' + (min_max_option[4] ? min_max_option[4] : "any") + "</div>");
|
| 1408 |
jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label_price");
|
| 1409 |
find_wrong_price = true;
|
| 1410 |
if(!price_nim_max) {
|
| 1411 |
scroll_on_element(form_id);
|
| 1412 |
}
|
| 1413 |
}
|
| 1414 |
}
|
| 1415 |
});
|
| 1416 |
if(find_wrong_price === false) {
|
| 1417 |
return true;
|
| 1418 |
}
|
| 1419 |
return false;
|
| 1420 |
var x = jQuery("#form" + form_id);
|
| 1421 |
var find_wrong_values = false;
|
| 1422 |
var spinner_check = spinner_check_field ? spinner_check_field : window['spinner_check'+form_id];
|
| 1423 |
jQuery.each( spinner_check, function( wdid, spinner_values ) {
|
| 1424 |
var element = "#wdform_" + wdid + "_element" + form_id;
|
| 1425 |
if(x.find(jQuery("div[wdid='"+wdid+"']")).length != 0 && x.find(jQuery("div[wdid='"+wdid+"']")).css("display") != "none") {
|
| 1426 |
if(parseInt(jQuery(element).val()) < parseInt(spinner_values[0]) || parseInt(jQuery(element).val()) > parseInt(spinner_values[1])) {
|
| 1427 |
jQuery("#form"+form_id+" #wd_price_"+wdid).remove();
|
| 1428 |
x.find(jQuery("div[wdid='"+wdid+"'] .wdform-element-section")).parent().parent().append("<div id='wd_price_"+wdid+"' class='fm-not-filled'>" + fm_objectL10n.fm_spinner_check + (spinner_values[0] ? spinner_values[0] : 0) + '-' + (spinner_values[1] ? spinner_values[1] : "any") + "</div>");
|
| 1429 |
jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label_price");
|
| 1430 |
find_wrong_values = true;
|
| 1431 |
if(!spinner_check_field) {
|
| 1432 |
scroll_on_element(form_id);
|
| 1433 |
}
|
| 1434 |
}
|
| 1435 |
}
|
| 1436 |
});
|
| 1437 |
if(find_wrong_values === false) {
|
| 1438 |
return true;
|
| 1439 |
}
|
| 1440 |
return false;
|
| 1441 |
var scrollPercent = 100 * jQuery(window).scrollTop() / (jQuery(document).height() - jQuery(window).height());
|
| 1442 |
if(!jQuery("#fm-scrollbox" + form_id).hasClass("fm-minimized") && scrollPercent >= window["scrollbox_trigger_point" + form_id]) {
|
| 1443 |
setTimeout(function() {
|
| 1444 |
jQuery("#fm-scrollbox" + form_id).removeClass("fm-animated fadeOutDown").addClass("fm-animated fadeInUp");
|
| 1445 |
jQuery("#fm-scrollbox" + form_id).css("visibility", "");
|
| 1446 |
jQuery("#fm-scrollbox" + form_id + " .fm-header-img").addClass("fm-animated " + window["header_image_animation" + form_id]);
|
| 1447 |
}, window["scrollbox_loading_delay" + form_id] * 1000);
|
| 1448 |
} else {
|
| 1449 |
if(window["scrollbox_auto_hide" + form_id]) {
|
| 1450 |
jQuery("#fm-scrollbox" + form_id + " .fm-header-img").removeClass("fm-animated " + window["header_image_animation" + form_id]);
|
| 1451 |
jQuery("#fm-scrollbox" + form_id).removeClass("fm-animated fadeInUp").addClass("fm-animated fadeOutDown");
|
| 1452 |
}
|
| 1453 |
}
|
| 1454 |
if (typeof window["before_submit" + form_id] == 'function') {
|
| 1455 |
if (window["before_submit" + form_id]()) {
|
| 1456 |
return false;
|
| 1457 |
}
|
| 1458 |
}
|
| 1459 |
if (!fm_check(0, form_id)) {
|
| 1460 |
return false;
|
| 1461 |
}
|
| 1462 |
jQuery("#form" + form_id + " button").each(function () {
|
| 1463 |
jQuery(this).attr('disabled', 'disabled');
|
| 1464 |
});
|
| 1465 |
jQuery("<input type=\"hidden\" name=\"save_or_submit"+form_id+"\" value =\"submit\" />").appendTo("#form"+form_id);
|
| 1466 |
window["onsubmit_js" + form_id]();
|
| 1467 |
if (window['checkStripe' + form_id] == 1) {
|
| 1468 |
var jq_mainForm = jQuery("form[id='form"+form_id+"']");
|
| 1469 |
if (jq_mainForm.find(".wdfm_stripe_elem").first().parent().parents(".wdform_row").is(":visible")) {
|
| 1470 |
wdfm_call_stripe();
|
| 1471 |
}
|
| 1472 |
else {
|
| 1473 |
jQuery("#form"+form_id).submit();
|
| 1474 |
}
|
| 1475 |
}
|
| 1476 |
else {
|
| 1477 |
jQuery("#form"+form_id).submit();
|
| 1478 |
}
|
| 1479 |
if ( typeof window["before_reset" + form_id] == 'function' ) {
|
| 1480 |
window["before_reset" + form_id]();
|
| 1481 |
}
|
| 1482 |
jQuery.each(window['labels_and_ids'+form_id], function (index, elem) {
|
| 1483 |
switch(elem) {
|
| 1484 |
case "type_text":
|
| 1485 |
case "type_textarea":
|
| 1486 |
case "type_number":
|
| 1487 |
case "type_spinner":
|
| 1488 |
case 'type_own_select':
|
| 1489 |
case 'type_country':
|
| 1490 |
case 'type_date':
|
| 1491 |
case 'type_date_new':
|
| 1492 |
case 'type_hidden':
|
| 1493 |
case 'type_paypal_price_new':
|
| 1494 |
case 'type_phone_new':
|
| 1495 |
jQuery("#wdform_"+index+"_element"+form_id).val('');
|
| 1496 |
break;
|
| 1497 |
case 'type_submitter_mail':
|
| 1498 |
case 'type_password':
|
| 1499 |
jQuery("#wdform_"+index+"_element"+form_id).val('');
|
| 1500 |
if(jQuery("#wdform_"+index+"_1_element"+form_id)){
|
| 1501 |
jQuery("#wdform_"+index+"_1_element"+form_id).val('');
|
| 1502 |
if(jQuery("#confirm_"+index+"_"+form_id))
|
| 1503 |
jQuery("#confirm_"+index+"_"+form_id).remove();
|
| 1504 |
if(elem == 'type_submitter_mail' && jQuery("#check_email_"+index+"_"+form_id))
|
| 1505 |
jQuery("#check_email_"+index+"_"+form_id).remove();
|
| 1506 |
}
|
| 1507 |
break;
|
| 1508 |
case 'type_date_range':
|
| 1509 |
jQuery("#wdform_"+index+"_element"+form_id+"0").val('');
|
| 1510 |
jQuery("#wdform_"+index+"_element"+form_id+"1").val('');
|
| 1511 |
break;
|
| 1512 |
case 'type_send_copy':
|
| 1513 |
jQuery("#wdform_"+index+"_element"+form_id).prop('checked', false);
|
| 1514 |
break;
|
| 1515 |
case 'type_phone':
|
| 1516 |
jQuery("#wdform_"+index+"_element_first"+form_id+", #wdform_"+index+"_element_last"+form_id).val('');
|
| 1517 |
break;
|
| 1518 |
case 'type_name':
|
| 1519 |
jQuery("#wdform_"+index+"_element_first"+form_id+", #wdform_"+index+"_element_last"+form_id+", #wdform_"+index+"_element_title"+form_id+", #wdform_"+index+"_element_middle"+form_id).val('');
|
| 1520 |
break;
|
| 1521 |
case 'type_address':
|
| 1522 |
jQuery("#wdform_"+index+"_street1"+form_id+", #wdform_"+index+"_street2"+form_id+", #wdform_"+index+"_city"+form_id+", #wdform_"+index+"_state"+form_id+", #wdform_"+index+"_postal"+form_id+", #wdform_"+index+"_country"+form_id).val('');
|
| 1523 |
break;
|
| 1524 |
case 'type_checkbox':
|
| 1525 |
jQuery("#form"+form_id+" div[wdid='"+index+"'] .checkbox-div input").prop('checked', false);
|
| 1526 |
jQuery("#wdform_"+index+"_other_br"+form_id).remove();
|
| 1527 |
jQuery("#wdform_"+index+"_other_input"+form_id).remove();
|
| 1528 |
break;
|
| 1529 |
case 'type_radio':
|
| 1530 |
jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop('checked', false);
|
| 1531 |
jQuery("#wdform_"+index+"_other_br"+form_id).remove();
|
| 1532 |
jQuery("#wdform_"+index+"_other_input"+form_id).remove();
|
| 1533 |
break;
|
| 1534 |
case 'type_time':
|
| 1535 |
jQuery("#wdform_"+index+"_hh"+form_id+", #wdform_"+index+"_mm"+form_id+", #wdform_"+index+"_ss"+form_id+", #wdform_"+index+"_am_pm"+form_id).val('');
|
| 1536 |
break;
|
| 1537 |
case 'type_date_fields':
|
| 1538 |
jQuery("#wdform_"+index+"_day"+form_id+", #wdform_"+index+"_month"+form_id+", #wdform_"+index+"_year"+form_id).val('');
|
| 1539 |
break;
|
| 1540 |
case 'type_file_upload':
|
| 1541 |
jQuery("#wdform_"+index+"_element"+form_id+"_save").remove();
|
| 1542 |
break;
|
| 1543 |
case 'type_paypal_price':
|
| 1544 |
jQuery("#wdform_"+index+"_element_dollars"+form_id+", #wdform_"+index+"_element_cents"+form_id).val('');
|
| 1545 |
break;
|
| 1546 |
case 'type_paypal_select':
|
| 1547 |
jQuery("#wdform_"+index+"_element"+form_id+", #wdform_"+index+"_element_quantity"+form_id+", #form"+form_id+" div[wdid='"+index+"'] .paypal-property select").val('');
|
| 1548 |
break;
|
| 1549 |
case 'type_paypal_radio':
|
| 1550 |
jQuery("#wdform_"+index+"_element_quantity"+form_id+",#form"+form_id+" div[wdid='"+index+"'] .paypal-property select").val('');
|
| 1551 |
jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop('checked', false);
|
| 1552 |
break;
|
| 1553 |
case 'type_paypal_shipping':
|
| 1554 |
jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop('checked', false);
|
| 1555 |
break;
|
| 1556 |
case 'type_paypal_checkbox':
|
| 1557 |
jQuery("#wdform_"+index+"_element_quantity"+form_id+",#form"+form_id+" div[wdid='"+index+"'] .paypal-property select").val('');
|
| 1558 |
jQuery("#form"+form_id+" div[wdid='"+index+"'] .checkbox-div input").prop('checked', false);
|
| 1559 |
break;
|
| 1560 |
case 'type_star_rating':
|
| 1561 |
jQuery("#wdform_"+index+"_selected_star_amount"+form_id).val('');
|
| 1562 |
jQuery("#wdform_"+index+"_element"+form_id+" img").attr('src', fm_objectL10n.plugin_url + '/images/star.png');
|
| 1563 |
break;
|
| 1564 |
case 'type_scale_rating':
|
| 1565 |
jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop('checked', false);
|
| 1566 |
break;
|
| 1567 |
case 'type_slider':
|
| 1568 |
jQuery("#wdform_"+index+"_element"+form_id).slider({
|
| 1569 |
value: eval(0),
|
| 1570 |
});
|
| 1571 |
jQuery("#wdform_"+index+"_element_value"+form_id).html('0');
|
| 1572 |
break;
|
| 1573 |
case 'type_range':
|
| 1574 |
jQuery("#wdform_"+index+"_element"+form_id+"0, #wdform_"+index+"_element"+form_id+"1").val('');
|
| 1575 |
break;
|
| 1576 |
case 'type_grading':
|
| 1577 |
jQuery("#wdform_"+index+"_element"+form_id+" input").val('');
|
| 1578 |
break;
|
| 1579 |
case 'type_matrix':
|
| 1580 |
jQuery("#wdform_"+index+"_element"+form_id+" .radio-div input").prop('checked', false);
|
| 1581 |
jQuery("#wdform_"+index+"_element"+form_id+" .checkbox-div input").prop('checked', false);
|
| 1582 |
jQuery("#wdform_"+index+"_element"+form_id+" input[type='text']").val('');
|
| 1583 |
jQuery("#wdform_"+index+"_element"+form_id+" select").val('');
|
| 1584 |
break;
|
| 1585 |
case 'type_paypal_total':
|
| 1586 |
jQuery("#wdform_"+index+"div_total"+form_id).html('$0');
|
| 1587 |
jQuery("#wdform_"+index+"paypal_products"+form_id).empty();
|
| 1588 |
break;
|
| 1589 |
default:
|
| 1590 |
break;
|
| 1591 |
}
|
| 1592 |
});
|
| 1593 |
jQuery("<input type=\"hidden\" name=\"save_or_submit"+form_id+"\" value =\"save\" />").appendTo("#form"+form_id);
|
| 1594 |
window["onsubmit_js" + form_id]();
|
| 1595 |
jQuery("#form" + form_id + " button").each(function () {
|
| 1596 |
jQuery(this).attr('disabled', 'disabled');
|
| 1597 |
});
|
| 1598 |
jQuery("#form"+form_id).submit();
|
| 1599 |
var clear_data = confirm(fm_objectL10n.fm_clear_data);
|
| 1600 |
if (clear_data == true) {
|
| 1601 |
jQuery("#form" + form_id + " button").each(function () {
|
| 1602 |
jQuery(this).attr('disabled', 'disabled');
|
| 1603 |
});
|
| 1604 |
jQuery.get(fm_objectL10n.form_maker_admin_ajax + '?action=FMClearProg&addon_task=clear_data&form_id=' + form_id).done(function() {
|
| 1605 |
window.location = jQuery('#form' + form_id).attr('action');
|
| 1606 |
});
|
| 1607 |
}
|
| 1608 |
if (navigator.userAgent.toLowerCase().indexOf('msie') != -1 && parseInt(navigator.userAgent.toLowerCase().split('msie')[1]) === 8) {
|
| 1609 |
jQuery("#form" + form_id).find(jQuery("input[type='radio']")).click(function() {
|
| 1610 |
jQuery("input[type='radio']+label").removeClass('if-ie-div-label');
|
| 1611 |
jQuery("input[type='radio']:checked+label").addClass('if-ie-div-label')
|
| 1612 |
});
|
| 1613 |
jQuery("#form" + form_id).find(jQuery("input[type='radio']:checked+label")).addClass('if-ie-div-label');
|
| 1614 |
jQuery("#form" + form_id).find(jQuery("input[type='checkbox']")).click(function() {
|
| 1615 |
jQuery("input[type='checkbox']+label").removeClass('if-ie-div-label');
|
| 1616 |
jQuery("input[type='checkbox']:checked+label").addClass('if-ie-div-label')
|
| 1617 |
});
|
| 1618 |
jQuery("#form" + form_id).find(jQuery("input[type='checkbox']:checked+label")).addClass('if-ie-div-label');
|
| 1619 |
}
|
| 1620 |
jQuery.each(window["check_regExp_all" + form_id], function( wdid, exp ) {
|
| 1621 |
var exp_array = {};
|
| 1622 |
exp_array[wdid] = exp;
|
| 1623 |
jQuery("div[wdid='" + wdid + "'] input").blur(function() {
|
| 1624 |
wd_check_regExp(form_id, exp_array);
|
| 1625 |
}).focus(function() {
|
| 1626 |
jQuery("#form" + form_id + " #wd_exp_"+wdid).remove();
|
| 1627 |
jQuery("#form" + form_id + " div[wdid='" + wdid + "'] .wdform-label-section:first .error_label_exp").removeClass("error_label_exp")
|
| 1628 |
});
|
| 1629 |
});
|
| 1630 |
jQuery.each(window["check_paypal_price_min_max" + form_id], function( wdid, price_min_max_option ) {
|
| 1631 |
var price_min_max_array = {};
|
| 1632 |
price_min_max_array[wdid] = price_min_max_option;
|
| 1633 |
jQuery("div[wdid='" + wdid + "'] input").blur(function() {
|
| 1634 |
wd_check_price_min_max(form_id, price_min_max_array)
|
| 1635 |
}).focus(function() {
|
| 1636 |
jQuery("#form" + form_id + " #wd_price_" + wdid).remove();
|
| 1637 |
jQuery("#form" + form_id + " div[wdid='" + wdid + "'] .wdform-label-section:first .error_label_price").removeClass("error_label_price")
|
| 1638 |
});
|
| 1639 |
});
|
| 1640 |
jQuery.each(window["spinner_check" + form_id], function( wdid, spinner_min_max ) {
|
| 1641 |
var spinner_min_max_array = {};
|
| 1642 |
spinner_min_max_array[wdid] = spinner_min_max;
|
| 1643 |
jQuery("div[wdid='" + wdid + "'] input").blur(function() {
|
| 1644 |
wd_spinner_check(form_id, spinner_min_max_array)
|
| 1645 |
}).focus(function() {
|
| 1646 |
jQuery("#form" + form_id + " #wd_price_" + wdid).remove();
|
| 1647 |
jQuery("#form" + form_id + " div[wdid='" + wdid + "'] .wdform-label-section:first .error_label_price").removeClass("error_label_price")
|
| 1648 |
});
|
| 1649 |
});
|
| 1650 |
jQuery.each(window["file_upload_check" + form_id], function( wdid, upload_types ) {
|
| 1651 |
var upload_types_array = {};
|
| 1652 |
upload_types_array[wdid] = upload_types;
|
| 1653 |
jQuery("div[wdid='" + wdid + "'] input").change(function() {
|
| 1654 |
wd_file_upload_check(form_id, upload_types_array);
|
| 1655 |
});
|
| 1656 |
});
|
| 1657 |
jQuery("div[type='type_number'] input, div[type='type_phone'] input, div[type='type_spinner'] input, div[type='type_range'] input, .wdform-quantity, div[type='type_paypal_price_new'] input").keypress(function(evt) {
|
| 1658 |
return check_isnum(evt);
|
| 1659 |
});
|
| 1660 |
jQuery("div[type='type_grading'] input").keypress(function(evt) {
|
| 1661 |
return check_isnum_or_minus(evt);
|
| 1662 |
});
|
| 1663 |
jQuery("div[type='type_paypal_checkbox'] input[type='checkbox'], div[type='type_paypal_radio'] input[type='radio'], div[type='type_paypal_shipping'] input[type='radio']").click(function() {
|
| 1664 |
set_total_value(form_id);
|
| 1665 |
});
|
| 1666 |
jQuery("div[type='type_paypal_select'] select, div[type='type_paypal_price'] input, div[type='type_paypal_price_new'] input").change(function() {
|
| 1667 |
set_total_value(form_id);
|
| 1668 |
});
|
| 1669 |
jQuery(".wdform-quantity").change(function() {
|
| 1670 |
set_total_value(form_id);
|
| 1671 |
});
|
| 1672 |
jQuery("div[type='type_address'] select").change(function() {
|
| 1673 |
set_total_value(form_id);
|
| 1674 |
});
|
| 1675 |
jQuery("div[type='type_time'] input").blur(function() {
|
| 1676 |
add_0(this);
|
| 1677 |
});
|
| 1678 |
jQuery('.wdform-element-section').each(function () {
|
| 1679 |
if (jQuery(this).parent().parent().attr('type') == "type_stripe") {
|
| 1680 |
return true;
|
| 1681 |
}
|
| 1682 |
if ( !jQuery(this).parent()[0].style.width
|
| 1683 |
&& parseInt(jQuery(this).width()) != 0
|
| 1684 |
&& jQuery(this).parent().find(jQuery(".wdform-label-section")).length != 0 ) {
|
| 1685 |
if (jQuery(this).css('display') == "table-cell") {
|
| 1686 |
if (jQuery(this).parent().attr('type') != "type_captcha") {
|
| 1687 |
jQuery(this).parent().css('width', parseInt(jQuery(this).width()) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width) + 15);
|
| 1688 |
}
|
| 1689 |
else {
|
| 1690 |
jQuery(this).parent().css('width', (parseInt(jQuery(this).parent().find(jQuery(".captcha_input"))[0].style.width) * 2 + 50) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width) + 15);
|
| 1691 |
}
|
| 1692 |
}
|
| 1693 |
}
|
| 1694 |
if (parseInt(jQuery(this)[0].style.width.replace('px', '')) < parseInt(jQuery(this).css('min-width').replace('px', ''))) {
|
| 1695 |
jQuery(this).css('min-width', parseInt(jQuery(this)[0].style.width.replace('px', '')) - 10);
|
| 1696 |
}
|
| 1697 |
});
|
| 1698 |
jQuery('.wdform-label').each(function() {
|
| 1699 |
if(parseInt(jQuery(this).height()) >= 2*parseInt(jQuery(this).css('line-height').replace('px', ''))) {
|
| 1700 |
jQuery(this).parent().css('max-width', jQuery(this).parent().width());
|
| 1701 |
jQuery(this).parent().css('width', '');
|
| 1702 |
}
|
| 1703 |
});
|
| 1704 |
(function(jQuery) {
|
| 1705 |
jQuery.fn.shuffle = function() {
|
| 1706 |
var allElems = this.get(),
|
| 1707 |
getRandom = function(max) {
|
| 1708 |
return Math.floor(Math.random() * max);
|
| 1709 |
},
|
| 1710 |
shuffled = jQuery.map(allElems, function() {
|
| 1711 |
var random = getRandom(allElems.length),
|
| 1712 |
randEl = jQuery(allElems[parseInt(random)]).clone(true)[0];
|
| 1713 |
allElems.splice(random, 1);
|
| 1714 |
return randEl;
|
| 1715 |
});
|
| 1716 |
this.each(function(i) {
|
| 1717 |
jQuery(this).replaceWith(jQuery(shuffled[i]));
|
| 1718 |
});
|
| 1719 |
return jQuery(shuffled);
|
| 1720 |
};
|
| 1721 |
})(jQuery);
|
| 1722 |
window["onload_js" + form_id]();
|
| 1723 |
window["condition_js" + form_id]();
|
| 1724 |
if (typeof window["before_load" + form_id] == 'function') {
|
| 1725 |
window["before_load" + form_id]();
|
| 1726 |
}
|
| 1727 |
for(i=1; i<=30; i++) {
|
| 1728 |
if (document.getElementById(form_id + 'form_view' + i)) {
|
| 1729 |
window['form_view_count' + form_id]++;
|
| 1730 |
window['form_view_max' + form_id] = i;
|
| 1731 |
}
|
| 1732 |
}
|
| 1733 |
if (window['form_view_count' + form_id] > 1) {
|
| 1734 |
for (i = 1; i <= window['form_view_max' + form_id]; i++) {
|
| 1735 |
if (document.getElementById(form_id + 'form_view' + i)) {
|
| 1736 |
window['first_form_view' + form_id] = i;
|
| 1737 |
break;
|
| 1738 |
}
|
| 1739 |
}
|
| 1740 |
generate_page_nav(window['first_form_view' + form_id], form_id, window['form_view_count' + form_id], window['form_view_max' + form_id]);
|
| 1741 |
}
|
| 1742 |
fm_initilize_form(form_id);
|
| 1743 |
if(!wd_is_filled(form_id)) {
|
| 1744 |
return false;
|
| 1745 |
}
|
| 1746 |
if(!wd_check_regExp(form_id)) {
|
| 1747 |
return false;
|
| 1748 |
}
|
| 1749 |
if(!wd_check_price_min_max(form_id)) {
|
| 1750 |
return false;
|
| 1751 |
}
|
| 1752 |
if(!wd_spinner_check(form_id)) {
|
| 1753 |
return false;
|
| 1754 |
}
|
| 1755 |
if(!wd_file_upload_check(form_id)) {
|
| 1756 |
return false;
|
| 1757 |
}
|
| 1758 |
if (false == window["check_js" + form_id](id, form_id)) {
|
| 1759 |
return false;
|
| 1760 |
}
|
| 1761 |
return true;
|
| 1762 |
jQuery(".g-recaptcha").each(function () {
|
| 1763 |
grecaptcha.render(jQuery(this).attr('id'), {
|
| 1764 |
'sitekey': jQuery(this).attr('data-sitekey'),
|
| 1765 |
'theme': 'light'
|
| 1766 |
});
|
| 1767 |
});
|
| 1768 |
* Chnage state input.
|
| 1769 |
*
|
| 1770 |
* @param id
|
| 1771 |
* @param form_id
|
| 1772 |
*/
|
| 1773 |
if ( document.getElementById(id + "_country" + form_id)
|
| 1774 |
&& document.getElementById(id + "_state" + form_id) ) {
|
| 1775 |
var flag = false;
|
| 1776 |
var state_input = document.getElementById(id + "_state" + form_id);
|
| 1777 |
if ( document.getElementById(id + "_country" + form_id).value == "United States" ) {
|
| 1778 |
var state = document.createElement('select');
|
| 1779 |
var states = fm_objectL10n.states;
|
| 1780 |
for (var r in states) {
|
| 1781 |
var option_ = document.createElement('option');
|
| 1782 |
option_.setAttribute("value", r);
|
| 1783 |
option_.innerHTML = states[r];
|
| 1784 |
state.appendChild(option_);
|
| 1785 |
}
|
| 1786 |
flag = true;
|
| 1787 |
}
|
| 1788 |
else {
|
| 1789 |
if ( document.getElementById(id + "_state" + form_id).tagName == 'SELECT' ) {
|
| 1790 |
var state = document.createElement('input');
|
| 1791 |
flag = true;
|
| 1792 |
}
|
| 1793 |
}
|
| 1794 |
if ( flag ) {
|
| 1795 |
state.setAttribute("type", 'text');
|
| 1796 |
state.setAttribute("id", id + "_state" + form_id);
|
| 1797 |
state.setAttribute("name", (parseInt(id.replace('wdform_', '')) + 3) + "_state" + form_id);
|
| 1798 |
state.setAttribute("class", "wd-width-100");
|
| 1799 |
var state_input_parent = state_input.parentNode;
|
| 1800 |
state_input_parent.removeChild(state_input);
|
| 1801 |
state_input_parent.insertBefore(state, state_input_parent.firstChild);
|
| 1802 |
}
|
| 1803 |
}
|
| 1804 |
+
var c;
|
| 1805 |
+
var a = new Array();
|
| 1806 |
+
var rated=false;
|
| 1807 |
+
|
| 1808 |
+
jQuery(document).ready(function () {
|
| 1809 |
+
jQuery(".wd-datepicker").each(function () {
|
| 1810 |
+
jQuery(this).datepicker();
|
| 1811 |
+
jQuery(this).datepicker("option", "dateFormat", jQuery(this).data("format"));
|
| 1812 |
+
});
|
| 1813 |
+
|
| 1814 |
+
// Scroll to form notice.
|
| 1815 |
+
if ( jQuery(".fm-form").find(".fm-message").length !== 0) {
|
| 1816 |
+
jQuery(window).scrollTop(jQuery(".fm-message").offset().top - 100);
|
| 1817 |
+
}
|
| 1818 |
+
|
| 1819 |
+
// Scroll to captcha field notice.
|
| 1820 |
+
if ( jQuery(".fm-form").find(".message_captcha").length !== 0 ) {
|
| 1821 |
+
var form_id = jQuery('.fm-form').attr('name').split("form")[1];
|
| 1822 |
+
var element_offset = jQuery(jQuery("#form" + form_id + " .message_captcha")).offset().top;
|
| 1823 |
+
jQuery(".fm-form").find(".message_captcha").parents('.wdform-field').find('.wdform-label').addClass('error_label');
|
| 1824 |
+
jQuery('html').animate({scrollTop: element_offset-150 },500);
|
| 1825 |
+
}
|
| 1826 |
+
});
|
| 1827 |
+
|
| 1828 |
+
function set_total_value(form_id) {
|
| 1829 |
+
var FormCurrency = eval("FormCurrency_" + form_id);
|
| 1830 |
+
if(jQuery('.paypal_total'+form_id).length==0) {
|
| 1831 |
+
return;
|
| 1832 |
+
}
|
| 1833 |
+
var div_paypal_show = jQuery('.paypal_total'+form_id);
|
| 1834 |
+
var div_paypal_products = jQuery('.paypal_products'+form_id);
|
| 1835 |
+
var div_paypal_tax = jQuery('.paypal_tax'+form_id);
|
| 1836 |
+
var input_paypal_total = jQuery('.input_paypal_total'+form_id);
|
| 1837 |
+
var total=0;
|
| 1838 |
+
var total_shipping=0;
|
| 1839 |
+
div_paypal_products.html('');
|
| 1840 |
+
div_paypal_tax.html('');
|
| 1841 |
+
n = parseInt(jQuery('#counter'+form_id).val());
|
| 1842 |
+
jQuery("#form" +form_id+ " div[type='type_paypal_checkbox'], #form" +form_id+ " div[type='type_paypal_radio']").each(function() {
|
| 1843 |
+
id=jQuery(this).parent().attr('wdid');
|
| 1844 |
+
jQuery(this).find('input:checked').each(
|
| 1845 |
+
function() {
|
| 1846 |
+
label= jQuery("label[for='"+jQuery(this).attr('id')+"']").html();
|
| 1847 |
+
span_value = FormCurrency + jQuery(this).val()+(jQuery('#wdform_'+id+"_element_quantity"+form_id).length!=0 ? ' x'+jQuery('#wdform_'+id+"_element_quantity"+form_id).val() : '');
|
| 1848 |
+
total =total + jQuery(this).val() * parseInt((jQuery('#wdform_'+id+"_element_quantity"+form_id).length!=0 ? jQuery('#wdform_'+id+"_element_quantity"+form_id).val() : 1));
|
| 1849 |
+
div_paypal_products.html(div_paypal_products.html()+"<div>"+label+ ' - '+ span_value+"</div>");
|
| 1850 |
+
}
|
| 1851 |
+
);
|
| 1852 |
+
});
|
| 1853 |
+
jQuery("#form" +form_id+ " div[type='type_paypal_shipping']").each(function() {
|
| 1854 |
+
id=jQuery(this).parent().attr('wdid');
|
| 1855 |
+
jQuery(this).find('input:checked').each(
|
| 1856 |
+
function() {
|
| 1857 |
+
label= jQuery("label[for='"+jQuery(this).attr('id')+"']").html();
|
| 1858 |
+
span_value = FormCurrency + jQuery(this).val()+(jQuery('#wdform_'+id+"_element_quantity"+form_id).length!=0 ? ' x'+jQuery('#wdform_'+id+"_element_quantity"+form_id).val() : '');
|
| 1859 |
+
total_shipping =total_shipping + jQuery(this).val() * parseInt((jQuery('#wdform_'+id+"_element_quantity"+form_id).length!=0 ? jQuery('#wdform_'+id+"_element_quantity"+form_id).val() : 1));
|
| 1860 |
+
div_paypal_products.html(div_paypal_products.html()+"<div>"+label+ ' - '+ span_value+"</div>");
|
| 1861 |
+
}
|
| 1862 |
+
);
|
| 1863 |
+
});
|
| 1864 |
+
jQuery("#form" +form_id+ " div[type='type_paypal_select']").each(function() {
|
| 1865 |
+
id=jQuery(this).parent().attr('wdid');
|
| 1866 |
+
if(jQuery(this).find('select').val()!='') {
|
| 1867 |
+
label = jQuery(this).find('select option:selected').html();
|
| 1868 |
+
span_value = FormCurrency + jQuery(this).find('select').val()+(jQuery('#wdform_'+id+"_element_quantity"+form_id).length!=0 ? ' x'+jQuery('#wdform_'+id+"_element_quantity"+form_id).val() : '');
|
| 1869 |
+
total =total + jQuery(this).find('select').val() * parseInt((jQuery('#wdform_'+id+"_element_quantity"+form_id).length!=0 ? jQuery('#wdform_'+id+"_element_quantity"+form_id).val() : 1));
|
| 1870 |
+
div_paypal_products.html(div_paypal_products.html()+"<div>"+label+ ' - '+ span_value+"</div>");
|
| 1871 |
+
}
|
| 1872 |
+
});
|
| 1873 |
+
jQuery("#form" +form_id+ " div[type='type_paypal_price']").each(function() {
|
| 1874 |
+
id = jQuery(this).parent().attr('wdid');
|
| 1875 |
+
label = jQuery(this).find('.wdform-label').html();
|
| 1876 |
+
cents = '00';
|
| 1877 |
+
dollars = '0';
|
| 1878 |
+
if (jQuery('#wdform_' + id + "_element_dollars" + form_id).val() != '') {
|
| 1879 |
+
dollars = jQuery('#wdform_' + id + "_element_dollars" + form_id).val();
|
| 1880 |
+
}
|
| 1881 |
+
if (jQuery('#wdform_' + id + "_element_cents" + form_id).val() != '') {
|
| 1882 |
+
if (jQuery('#wdform_' + id + "_element_cents" + form_id).val().length == 1) {
|
| 1883 |
+
cents = '0' + jQuery('#wdform_' + id + "_element_cents" + form_id).val();
|
| 1884 |
+
}
|
| 1885 |
+
else {
|
| 1886 |
+
cents = jQuery('#wdform_' + id + "_element_cents" + form_id).val();
|
| 1887 |
+
}
|
| 1888 |
+
span_value = FormCurrency + dollars + '.' + cents;
|
| 1889 |
+
total = total + parseFloat(dollars + '.' + cents);
|
| 1890 |
+
div_paypal_products.html(div_paypal_products.html() + "<div>" + label + ' - ' + span_value + "</div>");
|
| 1891 |
+
}
|
| 1892 |
+
});
|
| 1893 |
+
jQuery("#form" +form_id+ " div[type='type_paypal_price_new']").each(function() {
|
| 1894 |
+
id = jQuery(this).parent().attr('wdid');
|
| 1895 |
+
label = jQuery(this).find('.wdform-label').html();
|
| 1896 |
+
dollars = '0';
|
| 1897 |
+
if (jQuery('#wdform_' + id + "_element" + form_id).val() != '') {
|
| 1898 |
+
dollars = jQuery('#wdform_' + id + "_element" + form_id).val();
|
| 1899 |
+
}
|
| 1900 |
+
span_value = FormCurrency + dollars;
|
| 1901 |
+
total = total + parseFloat(dollars);
|
| 1902 |
+
div_paypal_products.html(div_paypal_products.html() + "<div>" + label + ' - ' + span_value + "</div>");
|
| 1903 |
+
});
|
| 1904 |
+
var FormPaypalTax = eval("FormPaypalTax_" + form_id);
|
| 1905 |
+
if(FormPaypalTax != 0) {
|
| 1906 |
+
div_paypal_tax.html('Tax: ' + FormCurrency + (((total)*FormPaypalTax) / 100).toFixed(2));
|
| 1907 |
+
}
|
| 1908 |
+
jQuery('.div_total'+form_id).html(FormCurrency + (parseFloat((total *(1+FormPaypalTax/100)).toFixed(2))+total_shipping).toFixed(2));
|
| 1909 |
+
input_paypal_total.val(FormCurrency + (parseFloat((total *(1+FormPaypalTax/100)).toFixed(2))+total_shipping).toFixed(2));
|
| 1910 |
+
}
|
| 1911 |
+
|
| 1912 |
+
function check_isnum_or_minus(e) {
|
| 1913 |
+
var chCode1 = e.which || e.keyCode;
|
| 1914 |
+
if (chCode1 != 45) {
|
| 1915 |
+
if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57)) {
|
| 1916 |
+
return false;
|
| 1917 |
+
}
|
| 1918 |
+
}
|
| 1919 |
+
return true;
|
| 1920 |
+
}
|
| 1921 |
+
|
| 1922 |
+
function sum_grading_values(num,form_id) {
|
| 1923 |
+
var sum = 0;
|
| 1924 |
+
for(var k=0; k<100;k++) {
|
| 1925 |
+
if(document.getElementById(num+'_element'+form_id+'_'+k)) {
|
| 1926 |
+
if(document.getElementById(num+'_element'+form_id+'_'+k).value) {
|
| 1927 |
+
sum = sum+parseInt(document.getElementById(num+'_element'+form_id+'_'+k).value);
|
| 1928 |
+
}
|
| 1929 |
+
}
|
| 1930 |
+
if(document.getElementById(num+'_total_element'+form_id)) {
|
| 1931 |
+
if(sum > document.getElementById(num+'_total_element'+form_id).innerHTML) {
|
| 1932 |
+
document.getElementById(num+'_text_element'+form_id).innerHTML =" "+ fm_objectL10n.fm_grading_text + " " + document.getElementById(num+'_total_element'+form_id).innerHTML;
|
| 1933 |
+
}
|
| 1934 |
+
else {
|
| 1935 |
+
document.getElementById(num+'_text_element'+form_id).innerHTML="";
|
| 1936 |
+
}
|
| 1937 |
+
}
|
| 1938 |
+
}
|
| 1939 |
+
if(document.getElementById(num+'_sum_element'+form_id)) {
|
| 1940 |
+
document.getElementById(num+'_sum_element'+form_id).innerHTML = sum;
|
| 1941 |
+
}
|
| 1942 |
+
}
|
| 1943 |
+
|
| 1944 |
+
function change_src(id,el_id,form_id,color) {
|
| 1945 |
+
if(rated==false) {
|
| 1946 |
+
for(var j=0;j<=id;j++) {
|
| 1947 |
+
document.getElementById(el_id+'_star_'+j+'_'+form_id).src=fm_objectL10n.plugin_url+"/images/star_"+color+'.png';
|
| 1948 |
+
}
|
| 1949 |
+
}
|
| 1950 |
+
}
|
| 1951 |
+
|
| 1952 |
+
function reset_src(id,el_id, form_id) {
|
| 1953 |
+
if(rated==false) {
|
| 1954 |
+
for(var j=0;j<=id;j++) {
|
| 1955 |
+
document.getElementById(el_id+'_star_'+j+'_'+form_id).src=fm_objectL10n.plugin_url+"/images/star.png";
|
| 1956 |
+
}
|
| 1957 |
+
}
|
| 1958 |
+
}
|
| 1959 |
+
|
| 1960 |
+
function select_star_rating(id,el_id,form_id, color,star_amount) {
|
| 1961 |
+
rated=true;
|
| 1962 |
+
for(var j=0;j<=id;j++) {
|
| 1963 |
+
document.getElementById(el_id+'_star_'+j+'_'+form_id).src=fm_objectL10n.plugin_url+"/images/star_"+color+".png";
|
| 1964 |
+
}
|
| 1965 |
+
for(var k=id+1;k<=star_amount-1;k++) {
|
| 1966 |
+
document.getElementById(el_id+'_star_'+k+'_'+form_id).src=fm_objectL10n.plugin_url+"/images/star.png";
|
| 1967 |
+
}
|
| 1968 |
+
document.getElementById(el_id+'_selected_star_amount'+form_id).value=id+1;
|
| 1969 |
+
}
|
| 1970 |
+
|
| 1971 |
+
function show_other_input(num, form_id) {
|
| 1972 |
+
var element_other = jQuery('.form' + form_id + ' [id^=' + num + '_element' + form_id + '][other="1"]');
|
| 1973 |
+
var parent_ = element_other.parent();
|
| 1974 |
+
var br = document.createElement('br');
|
| 1975 |
+
br.setAttribute("id", num + "_other_br" + form_id);
|
| 1976 |
+
var elem_id = num.split("_")[1];
|
| 1977 |
+
var el_other = document.createElement('input');
|
| 1978 |
+
el_other.setAttribute("id", num + "_other_input" + form_id);
|
| 1979 |
+
el_other.setAttribute("name", num + "_other_input" + form_id);
|
| 1980 |
+
el_other.setAttribute("type", "text");
|
| 1981 |
+
el_other.setAttribute("class", "other_input");
|
| 1982 |
+
el_other.setAttribute("onchange", "other_input_change(this, '" + form_id + "', '" + elem_id + "')");
|
| 1983 |
+
parent_.append(br);
|
| 1984 |
+
parent_.append(el_other);
|
| 1985 |
+
}
|
| 1986 |
+
|
| 1987 |
+
function other_input_change(elem, form_id, wdid) {
|
| 1988 |
+
if (jQuery(elem).val() == "") {
|
| 1989 |
+
wd_is_filled(form_id, wdid);
|
| 1990 |
+
}
|
| 1991 |
+
else {
|
| 1992 |
+
jQuery("#form" + form_id + " #wd_required_" + wdid).remove();
|
| 1993 |
+
jQuery("#form" + form_id + " div[wdid='" + wdid + "'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 1994 |
+
}
|
| 1995 |
+
}
|
| 1996 |
+
|
| 1997 |
+
function check_isnum(e) {
|
| 1998 |
+
var chCode1 = e.which || e.keyCode;
|
| 1999 |
+
if (jQuery.inArray(chCode1,[46,8,9,27,13,190]) != -1 || e.ctrlKey === true || (chCode1 >= 35 && chCode1 < 39) || chCode1 == 45) {
|
| 2000 |
+
return true;
|
| 2001 |
+
}
|
| 2002 |
+
if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57)) {
|
| 2003 |
+
return false;
|
| 2004 |
+
}
|
| 2005 |
+
return true;
|
| 2006 |
+
}
|
| 2007 |
+
|
| 2008 |
+
function captcha_refresh(id,genid) {
|
| 2009 |
+
srcArr=document.getElementById(id+genid).src.split("&r=");
|
| 2010 |
+
document.getElementById(id+genid).src=srcArr[0]+'&r='+Math.floor(Math.random()*100);
|
| 2011 |
+
document.getElementById(id+"_input"+genid).value='';
|
| 2012 |
+
document.getElementById(id+genid).style.display="inline-block";
|
| 2013 |
+
}
|
| 2014 |
+
|
| 2015 |
+
function set_checked(id,j,form_id) {
|
| 2016 |
+
checking=document.getElementById(id+"_element"+form_id+j);
|
| 2017 |
+
if(checking.getAttribute('other')) {
|
| 2018 |
+
if(checking.getAttribute('other')==1) {
|
| 2019 |
+
if(!checking.checked) {
|
| 2020 |
+
if(document.getElementById(id+"_other_input"+form_id)) {
|
| 2021 |
+
document.getElementById(id+"_other_input"+form_id).parentNode.removeChild(document.getElementById(id+"_other_br"+form_id));
|
| 2022 |
+
document.getElementById(id+"_other_input"+form_id).parentNode.removeChild(document.getElementById(id+"_other_input"+form_id));
|
| 2023 |
+
}
|
| 2024 |
+
return false;
|
| 2025 |
+
}
|
| 2026 |
+
}
|
| 2027 |
+
}
|
| 2028 |
+
return true;
|
| 2029 |
+
}
|
| 2030 |
+
|
| 2031 |
+
function set_default(id, j, form_id) {
|
| 2032 |
+
if(document.getElementById(id+"_other_input"+form_id)) {
|
| 2033 |
+
document.getElementById(id+"_other_input"+form_id).parentNode.removeChild(document.getElementById(id+"_other_br"+form_id));
|
| 2034 |
+
document.getElementById(id+"_other_input"+form_id).parentNode.removeChild(document.getElementById(id+"_other_input"+form_id));
|
| 2035 |
+
}
|
| 2036 |
+
}
|
| 2037 |
+
|
| 2038 |
+
function add_0(that) {
|
| 2039 |
+
if (jQuery(that).val().length == 1) {
|
| 2040 |
+
jQuery(that).val('0' + jQuery(that).val());
|
| 2041 |
+
}
|
| 2042 |
+
}
|
| 2043 |
+
|
| 2044 |
+
/**
|
| 2045 |
+
* Check field validation.
|
| 2046 |
+
*
|
| 2047 |
+
* @param that
|
| 2048 |
+
* @param ids
|
| 2049 |
+
* @returns {boolean}
|
| 2050 |
+
*/
|
| 2051 |
+
function wd_validate(that, ids) {
|
| 2052 |
+
//console.log();
|
| 2053 |
+
if ( !jQuery(that).is("input") ) {
|
| 2054 |
+
return true;
|
| 2055 |
+
}
|
| 2056 |
+
|
| 2057 |
+
var error_message;
|
| 2058 |
+
var reg_exp;
|
| 2059 |
+
var value = jQuery(that).val();
|
| 2060 |
+
var id = jQuery(that).attr("id");
|
| 2061 |
+
var type = jQuery(that).data("valid-type");
|
| 2062 |
+
var form_id = jQuery(that).data("form-id");
|
| 2063 |
+
var wdid = jQuery(that).data("wdid");
|
| 2064 |
+
if ( typeof ids == "undefined" ) {
|
| 2065 |
+
var ids = jQuery(that).data("addiotional-fields");
|
| 2066 |
+
}
|
| 2067 |
+
|
| 2068 |
+
var cont_id = "#form" + form_id + " div[wdid='" + wdid + "']";
|
| 2069 |
+
var label_cont = jQuery(cont_id + " .wdform-label-section:first .wdform-label");
|
| 2070 |
+
var section_cont = jQuery(cont_id + " .wdform-element-section");
|
| 2071 |
+
|
| 2072 |
+
switch (type) {
|
| 2073 |
+
case "hour24": {
|
| 2074 |
+
error_message = fm_objectL10n.time_validation;
|
| 2075 |
+
reg_exp = /^(0?[0-1]?[0-9]|2[0-3])?$/;
|
| 2076 |
+
break;
|
| 2077 |
+
}
|
| 2078 |
+
case "hour12": {
|
| 2079 |
+
error_message = fm_objectL10n.time_validation;
|
| 2080 |
+
reg_exp = /^(0?[0-9]|1[0-2])?$/;
|
| 2081 |
+
break;
|
| 2082 |
+
}
|
| 2083 |
+
case "minute":
|
| 2084 |
+
case "second": {
|
| 2085 |
+
error_message = fm_objectL10n.time_validation;
|
| 2086 |
+
reg_exp = /^([0-5]?[0-9])?$/;
|
| 2087 |
+
break;
|
| 2088 |
+
}
|
| 2089 |
+
case "number": {
|
| 2090 |
+
error_message = fm_objectL10n.number_validation;
|
| 2091 |
+
reg_exp = /^$|^-?\d+$/;
|
| 2092 |
+
break;
|
| 2093 |
+
}
|
| 2094 |
+
case "day": {
|
| 2095 |
+
error_message = fm_objectL10n.date_validation;
|
| 2096 |
+
reg_exp = /^(0?[0-2]?[0-9]|3[0-1])?$/;
|
| 2097 |
+
break;
|
| 2098 |
+
}
|
| 2099 |
+
case "month": {
|
| 2100 |
+
error_message = fm_objectL10n.date_validation;
|
| 2101 |
+
reg_exp = /^(0?[0-9]|1[0-2])?$/;
|
| 2102 |
+
break;
|
| 2103 |
+
}
|
| 2104 |
+
case "year": {
|
| 2105 |
+
error_message = fm_objectL10n.date_validation;
|
| 2106 |
+
reg_exp = /^([1-2]?[0-9]?[0-9]?[0-9])?$/;
|
| 2107 |
+
break;
|
| 2108 |
+
}
|
| 2109 |
+
}
|
| 2110 |
+
|
| 2111 |
+
// To differ empty string value from invalid value.
|
| 2112 |
+
var isValid = document.getElementById(id).validity.valid;
|
| 2113 |
+
|
| 2114 |
+
if ( isValid ) {
|
| 2115 |
+
isValid = reg_exp.test(value);
|
| 2116 |
+
}
|
| 2117 |
+
|
| 2118 |
+
if ( isValid ) {
|
| 2119 |
+
for ( var i in ids ) {
|
| 2120 |
+
isValid = wd_validate("#" + ids[i], '');
|
| 2121 |
+
if ( !isValid ) {
|
| 2122 |
+
break;
|
| 2123 |
+
}
|
| 2124 |
+
}
|
| 2125 |
+
}
|
| 2126 |
+
|
| 2127 |
+
jQuery("#check_email_" + wdid + "_" + form_id).remove();
|
| 2128 |
+
if ( !isValid ) {
|
| 2129 |
+
// Add error message.
|
| 2130 |
+
section_cont.parent().parent().append("<div id='check_email_" + wdid + "_" + form_id + "' class='fm-not-filled'>" + error_message + "</div>");
|
| 2131 |
+
// Add error class to label.
|
| 2132 |
+
label_cont.addClass("wd-error-label");
|
| 2133 |
+
window["check_before_submit" + form_id][wdid + "_" + form_id] = false;
|
| 2134 |
+
}
|
| 2135 |
+
else {
|
| 2136 |
+
// Remove error class from label.
|
| 2137 |
+
label_cont.removeClass("wd-error-label");
|
| 2138 |
+
delete window["check_before_submit" + form_id][wdid + "_" + form_id];
|
| 2139 |
+
}
|
| 2140 |
+
|
| 2141 |
+
return isValid;
|
| 2142 |
+
}
|
| 2143 |
+
|
| 2144 |
+
function check_isnum_interval(e, x, from, to) {
|
| 2145 |
+
var chCode1 = e.which || e.keyCode;
|
| 2146 |
+
if (jQuery.inArray(chCode1,[46,8,9,27,13,190]) != -1 || e.ctrlKey === true || (chCode1 >= 35 && chCode1 < 39)) {
|
| 2147 |
+
return true;
|
| 2148 |
+
}
|
| 2149 |
+
if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57)) {
|
| 2150 |
+
return false;
|
| 2151 |
+
}
|
| 2152 |
+
val1=""+jQuery(x).val()+String.fromCharCode(chCode1);
|
| 2153 |
+
if (val1.length>2) {
|
| 2154 |
+
return false;
|
| 2155 |
+
}
|
| 2156 |
+
if (val1=='00') {
|
| 2157 |
+
return false;
|
| 2158 |
+
}
|
| 2159 |
+
if ((val1<from) || (val1>to)) {
|
| 2160 |
+
return false;
|
| 2161 |
+
}
|
| 2162 |
+
return true;
|
| 2163 |
+
}
|
| 2164 |
+
|
| 2165 |
+
/**
|
| 2166 |
+
* Year range validation.
|
| 2167 |
+
*
|
| 2168 |
+
* @param that
|
| 2169 |
+
*/
|
| 2170 |
+
function wd_year_validation(that) {
|
| 2171 |
+
var value = parseInt(jQuery(that).val());
|
| 2172 |
+
var form_id = jQuery(that).data("form-id");
|
| 2173 |
+
var wdid = jQuery(that).data("wdid");
|
| 2174 |
+
var start_year = parseInt(jQuery(that).attr("from"));
|
| 2175 |
+
var end_year = parseInt(jQuery(that).attr("to"));
|
| 2176 |
+
|
| 2177 |
+
var cont_id = "#form" + form_id + " div[wdid='" + wdid + "']";
|
| 2178 |
+
var label_cont = jQuery(cont_id + " .wdform-label-section:first .wdform-label");
|
| 2179 |
+
var section_cont = jQuery(cont_id + " .wdform-element-section");
|
| 2180 |
+
|
| 2181 |
+
if ( ( value < start_year ) || ( value > end_year ) ) {
|
| 2182 |
+
var error_message = fm_objectL10n.year_validation.replace('%%start%%', start_year).replace('%%end%%', end_year);
|
| 2183 |
+
jQuery("#check_email_" + wdid + "_" + form_id).remove();
|
| 2184 |
+
// Add error message.
|
| 2185 |
+
section_cont.parent().parent().append("<div id='check_email_" + wdid + "_" + form_id + "' class='fm-not-filled'>" + error_message + "</div>");
|
| 2186 |
+
// Add error class to label.
|
| 2187 |
+
label_cont.addClass("wd-error-label");
|
| 2188 |
+
window["check_before_submit" + form_id][wdid + "_" + form_id] = false;
|
| 2189 |
+
}
|
| 2190 |
+
}
|
| 2191 |
+
|
| 2192 |
+
|
| 2193 |
+
function destroyChildren(node) {
|
| 2194 |
+
while (node.firstChild) {
|
| 2195 |
+
node.removeChild(node.firstChild);
|
| 2196 |
+
}
|
| 2197 |
+
}
|
| 2198 |
+
|
| 2199 |
+
function generate_page_nav(id, form_id, form_view_count, form_view_max) {
|
| 2200 |
+
form_view=id;
|
| 2201 |
+
page_nav=document.getElementById(form_id+'page_nav'+id);
|
| 2202 |
+
destroyChildren(page_nav);
|
| 2203 |
+
form_view_elemet=document.getElementById(form_id+'form_view'+id);
|
| 2204 |
+
remove_whitespace(form_view_elemet.parentNode.parentNode);
|
| 2205 |
+
display_none_form_views_all(form_id);
|
| 2206 |
+
generate_page_bar(id, form_id, form_view_count, form_view_max);
|
| 2207 |
+
form_view_elemet.parentNode.style.display="";
|
| 2208 |
+
var td = document.createElement("div");
|
| 2209 |
+
td.setAttribute("valign", "middle");
|
| 2210 |
+
td.setAttribute("align", "left");
|
| 2211 |
+
td.style.display="table-cell";
|
| 2212 |
+
td.style.width="40%";
|
| 2213 |
+
page_nav.appendChild(td);
|
| 2214 |
+
if(form_view_elemet.parentNode.previousSibling && form_view_elemet.parentNode.previousSibling.previousSibling) {
|
| 2215 |
+
if(form_view_elemet.parentNode.previousSibling.tagName=="DIV") {
|
| 2216 |
+
table=form_view_elemet.parentNode.previousSibling;
|
| 2217 |
+
}
|
| 2218 |
+
else {
|
| 2219 |
+
if(form_view_elemet.parentNode.previousSibling.previousSibling.tagName=="DIV") {
|
| 2220 |
+
table=form_view_elemet.parentNode.previousSibling.previousSibling;
|
| 2221 |
+
}
|
| 2222 |
+
else {
|
| 2223 |
+
table="none";
|
| 2224 |
+
}
|
| 2225 |
+
}
|
| 2226 |
+
if(table!="none") {
|
| 2227 |
+
if(!table.firstChild.tagName) {
|
| 2228 |
+
table.removeChild(table.firstChild);
|
| 2229 |
+
}
|
| 2230 |
+
previous_title = form_view_elemet.getAttribute('previous_title');
|
| 2231 |
+
previous_type = form_view_elemet.getAttribute('previous_type');
|
| 2232 |
+
if(previous_type=="text") {
|
| 2233 |
+
td.setAttribute("class", "previous-page");
|
| 2234 |
+
}
|
| 2235 |
+
previous_class = form_view_elemet.getAttribute('previous_class');
|
| 2236 |
+
previous_checkable = form_view_elemet.getAttribute('previous_checkable');
|
| 2237 |
+
next_or_previous="previous";
|
| 2238 |
+
previous=make_pagebreak_button(next_or_previous, previous_title, previous_type, previous_class, previous_checkable, id, form_id, form_view_count, form_view_max);
|
| 2239 |
+
td.appendChild(previous);
|
| 2240 |
+
}
|
| 2241 |
+
}
|
| 2242 |
+
var td = document.createElement("div");
|
| 2243 |
+
td.setAttribute("id", form_id+"page_numbers"+form_view);
|
| 2244 |
+
td.setAttribute("valign", "middle");
|
| 2245 |
+
td.setAttribute("class", "page-numbers");
|
| 2246 |
+
td.setAttribute("align", "center");
|
| 2247 |
+
td.style.display="table-cell";
|
| 2248 |
+
if(document.getElementById('fm-pages' + form_id).getAttribute('show_numbers')=="true") {
|
| 2249 |
+
k=0;
|
| 2250 |
+
for(j=1; j<=form_view_max; j++) {
|
| 2251 |
+
if(document.getElementById(form_id+'form_view'+j)) {
|
| 2252 |
+
k++;
|
| 2253 |
+
if(j==form_view) {
|
| 2254 |
+
page_number=k;
|
| 2255 |
+
}
|
| 2256 |
+
}
|
| 2257 |
+
}
|
| 2258 |
+
var cur = document.createElement('span');
|
| 2259 |
+
cur.setAttribute("class", "page_numbers");
|
| 2260 |
+
cur.innerHTML=page_number+'/'+k;
|
| 2261 |
+
td.appendChild(cur);
|
| 2262 |
+
}
|
| 2263 |
+
page_nav.appendChild(td);
|
| 2264 |
+
var td = document.createElement("div");
|
| 2265 |
+
td.setAttribute("valign", "middle");
|
| 2266 |
+
td.setAttribute("align", "right");
|
| 2267 |
+
td.style.cssText = "display:table-cell; width:40%; text-align:right;";
|
| 2268 |
+
page_nav.appendChild(td);
|
| 2269 |
+
not_next=false;
|
| 2270 |
+
if(form_view_elemet.parentNode.nextSibling) {
|
| 2271 |
+
if(form_view_elemet.parentNode.nextSibling.tagName=="DIV" && form_view_elemet.parentNode.nextSibling.className=="wdform-page-and-images") {
|
| 2272 |
+
table=form_view_elemet.parentNode.nextSibling;
|
| 2273 |
+
}
|
| 2274 |
+
else {
|
| 2275 |
+
if(form_view_elemet.parentNode.nextSibling.nextSibling) {
|
| 2276 |
+
if(form_view_elemet.parentNode.nextSibling.nextSibling.tagName=="DIV") {
|
| 2277 |
+
table=form_view_elemet.parentNode.nextSibling.nextSibling;
|
| 2278 |
+
}
|
| 2279 |
+
else {
|
| 2280 |
+
table="none";
|
| 2281 |
+
}
|
| 2282 |
+
}
|
| 2283 |
+
else {
|
| 2284 |
+
table="none";
|
| 2285 |
+
}
|
| 2286 |
+
}
|
| 2287 |
+
if(table!="none") {
|
| 2288 |
+
next_title =form_view_elemet.getAttribute('next_title');
|
| 2289 |
+
next_type =form_view_elemet.getAttribute('next_type');
|
| 2290 |
+
if(next_type=="text") {
|
| 2291 |
+
td.setAttribute("class", "next-page");
|
| 2292 |
+
}
|
| 2293 |
+
next_class = form_view_elemet.getAttribute('next_class');
|
| 2294 |
+
next_checkable = form_view_elemet.getAttribute('next_checkable');
|
| 2295 |
+
next_or_previous="next";
|
| 2296 |
+
next=make_pagebreak_button(next_or_previous, next_title, next_type, next_class, next_checkable, id, form_id, form_view_count, form_view_max);
|
| 2297 |
+
td.appendChild(next);
|
| 2298 |
+
}
|
| 2299 |
+
else {
|
| 2300 |
+
not_next=true;
|
| 2301 |
+
}
|
| 2302 |
+
}
|
| 2303 |
+
else {
|
| 2304 |
+
not_next=true;
|
| 2305 |
+
}
|
| 2306 |
+
fm_initilize_form(form_id);
|
| 2307 |
+
}
|
| 2308 |
+
|
| 2309 |
+
function fm_initilize_form(form_id) {
|
| 2310 |
+
jQuery("#form" + form_id + " div[type='type_map']").each(function() {
|
| 2311 |
+
id=jQuery(this).parent().attr('wdid');
|
| 2312 |
+
if_gmap_init('wdform_'+id, form_id);
|
| 2313 |
+
for(q=0; q<20; q++) {
|
| 2314 |
+
if(jQuery("#wdform_"+id+"_element"+form_id)[0].getAttribute("long"+q)) {
|
| 2315 |
+
w_long=parseFloat(document.getElementById('wdform_'+id+"_element"+form_id).getAttribute("long"+q));
|
| 2316 |
+
w_lat=parseFloat(document.getElementById('wdform_'+id+"_element"+form_id).getAttribute("lat"+q));
|
| 2317 |
+
w_info=parseFloat(document.getElementById('wdform_'+id+"_element"+form_id).getAttribute("info"+q));
|
| 2318 |
+
add_marker_on_map('wdform_'+id, q, w_long, w_lat, w_info, form_id,false);
|
| 2319 |
+
}
|
| 2320 |
+
}
|
| 2321 |
+
});
|
| 2322 |
+
jQuery("#form" + form_id + " div[type='type_mark_map']").each(function() {
|
| 2323 |
+
id=jQuery(this).parent().attr('wdid');
|
| 2324 |
+
if_gmap_init('wdform_'+id, form_id);
|
| 2325 |
+
q=0;
|
| 2326 |
+
if(jQuery("#wdform_"+id+"_element"+form_id)[0].getAttribute("long"+q)) {
|
| 2327 |
+
w_long=parseFloat(document.getElementById('wdform_'+id+"_element"+form_id).getAttribute("long"+q));
|
| 2328 |
+
w_lat=parseFloat(document.getElementById('wdform_'+id+"_element"+form_id).getAttribute("lat"+q));
|
| 2329 |
+
w_info=parseFloat(document.getElementById('wdform_'+id+"_element"+form_id).getAttribute("info"+q));
|
| 2330 |
+
add_marker_on_map('wdform_'+id, q, w_long, w_lat, w_info, form_id,true);
|
| 2331 |
+
}
|
| 2332 |
+
});
|
| 2333 |
+
jQuery('.wdform-element-section').each( function() {
|
| 2334 |
+
if (jQuery(this).parent().parent().attr('type') == "type_stripe") {
|
| 2335 |
+
return true;
|
| 2336 |
+
}
|
| 2337 |
+
|
| 2338 |
+
if ( !jQuery(this).parent()[0].style.width
|
| 2339 |
+
&& parseInt(jQuery(this).width()) != 0
|
| 2340 |
+
&& jQuery(this).parent().find(jQuery(".wdform-label-section")).length != 0 ) {
|
| 2341 |
+
if (jQuery(this).css('display') == "table-cell") {
|
| 2342 |
+
if (jQuery(this).parent().attr('type') != "type_captcha") {
|
| 2343 |
+
jQuery(this).parent().css('width', parseInt(jQuery(this).width()) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width) + 15);
|
| 2344 |
+
}
|
| 2345 |
+
else {
|
| 2346 |
+
jQuery(this).parent().css('width', (parseInt(jQuery(this).parent().find(jQuery(".captcha_input"))[0].style.width) * 2 + 50) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width) + 15);
|
| 2347 |
+
}
|
| 2348 |
+
}
|
| 2349 |
+
}
|
| 2350 |
+
});
|
| 2351 |
+
}
|
| 2352 |
+
|
| 2353 |
+
function display_none_form_views_all(form_id) {
|
| 2354 |
+
for(t=1; t<30; t++) {
|
| 2355 |
+
if(document.getElementById(form_id+'form_view'+t)) {
|
| 2356 |
+
document.getElementById(form_id+'form_view'+t).parentNode.style.display="none";
|
| 2357 |
+
}
|
| 2358 |
+
}
|
| 2359 |
+
}
|
| 2360 |
+
|
| 2361 |
+
function generate_page_bar(form_view, form_id, form_view_count, form_view_max) {
|
| 2362 |
+
if(document.getElementById('fm-pages' + form_id).getAttribute('type')=='steps') {
|
| 2363 |
+
make_page_steps_front(form_view, form_id, form_view_count, form_view_max);
|
| 2364 |
+
}
|
| 2365 |
+
else {
|
| 2366 |
+
if(document.getElementById('fm-pages' + form_id).getAttribute('type')=='percentage') {
|
| 2367 |
+
make_page_percentage_front(form_view, form_id, form_view_count, form_view_max);
|
| 2368 |
+
}
|
| 2369 |
+
else {
|
| 2370 |
+
make_page_none_front(form_id);
|
| 2371 |
+
}
|
| 2372 |
+
}
|
| 2373 |
+
if(document.getElementById('fm-pages' + form_id).getAttribute('type')=='show_numbers') {
|
| 2374 |
+
td = document.getElementById(form_id+'page_numbers'+form_view);
|
| 2375 |
+
if(td) {
|
| 2376 |
+
destroyChildren(td);
|
| 2377 |
+
k=0;
|
| 2378 |
+
for(j=1; j<=form_view_max; j++) {
|
| 2379 |
+
if(document.getElementById(form_id+'form_view'+j)) {
|
| 2380 |
+
k++;
|
| 2381 |
+
if(j==form_view) {
|
| 2382 |
+
page_number=k;
|
| 2383 |
+
}
|
| 2384 |
+
}
|
| 2385 |
+
}
|
| 2386 |
+
var cur = document.createElement('span');
|
| 2387 |
+
cur.setAttribute("class", "page_numbers");
|
| 2388 |
+
cur.innerHTML=page_number+'/'+k;
|
| 2389 |
+
td.appendChild(cur);
|
| 2390 |
+
}
|
| 2391 |
+
}
|
| 2392 |
+
else {
|
| 2393 |
+
td = document.getElementById(form_id+'page_numbers'+form_view);
|
| 2394 |
+
if(td) {
|
| 2395 |
+
destroyChildren(document.getElementById(form_id+'page_numbers'+form_view));
|
| 2396 |
+
}
|
| 2397 |
+
}
|
| 2398 |
+
}
|
| 2399 |
+
|
| 2400 |
+
function make_page_steps_front(form_view, form_id, form_view_count, form_view_max) {
|
| 2401 |
+
destroyChildren(document.getElementById('fm-pages' + form_id));
|
| 2402 |
+
show_title =(document.getElementById('fm-pages' + form_id).getAttribute('show_title')=='true');
|
| 2403 |
+
next_checkable =(document.getElementById(form_id+'form_view'+form_view).getAttribute('next_checkable')=='true');
|
| 2404 |
+
previous_checkable =(document.getElementById(form_id+'form_view'+form_view).getAttribute('previous_checkable')=='true');
|
| 2405 |
+
k=0;
|
| 2406 |
+
for(j=1; j<=form_view_max; j++) {
|
| 2407 |
+
if(document.getElementById(form_id+'form_view'+j)) {
|
| 2408 |
+
if(document.getElementById(form_id+'form_view'+j).getAttribute('page_title')) {
|
| 2409 |
+
w_pages=document.getElementById(form_id+'form_view'+j).getAttribute('page_title');
|
| 2410 |
+
}
|
| 2411 |
+
else {
|
| 2412 |
+
w_pages="";
|
| 2413 |
+
}
|
| 2414 |
+
k++;
|
| 2415 |
+
page_number = document.createElement('span');
|
| 2416 |
+
page_number.setAttribute('id','page_'+j);
|
| 2417 |
+
if(j<form_view) {
|
| 2418 |
+
if(previous_checkable) {
|
| 2419 |
+
page_number.setAttribute('onClick','if(fm_check('+form_view+', '+form_id+')) generate_page_nav("'+j+'", "'+form_id+'", "'+form_view_count+'", "'+form_view_max+'")');
|
| 2420 |
+
}
|
| 2421 |
+
else {
|
| 2422 |
+
page_number.setAttribute('onClick','generate_page_nav("'+j+'", "'+form_id+'", "'+form_view_count+'", "'+form_view_max+'")');
|
| 2423 |
+
}
|
| 2424 |
+
}
|
| 2425 |
+
if(j>form_view) {
|
| 2426 |
+
if(next_checkable) {
|
| 2427 |
+
page_number.setAttribute('onClick','if(fm_check('+form_view+', '+form_id+')) generate_page_nav("'+j+'", "'+form_id+'", "'+form_view_count+'", "'+form_view_max+'")');
|
| 2428 |
+
}
|
| 2429 |
+
else {
|
| 2430 |
+
page_number.setAttribute('onClick','generate_page_nav("'+j+'", "'+form_id+'", "'+form_view_count+'", "'+form_view_max+'")');
|
| 2431 |
+
}
|
| 2432 |
+
}
|
| 2433 |
+
if(j==form_view) {
|
| 2434 |
+
page_number.setAttribute('class',"page_active");
|
| 2435 |
+
}
|
| 2436 |
+
else {
|
| 2437 |
+
page_number.setAttribute('class',"page_deactive");
|
| 2438 |
+
}
|
| 2439 |
+
if(show_title) {
|
| 2440 |
+
page_number.innerHTML=w_pages;
|
| 2441 |
+
}
|
| 2442 |
+
else {
|
| 2443 |
+
page_number.innerHTML=k;
|
| 2444 |
+
}
|
| 2445 |
+
document.getElementById('fm-pages' + form_id).appendChild(page_number);
|
| 2446 |
+
}
|
| 2447 |
+
}
|
| 2448 |
+
}
|
| 2449 |
+
|
| 2450 |
+
function make_page_percentage_front(form_view, form_id, form_view_count, form_view_max) {
|
| 2451 |
+
destroyChildren(document.getElementById('fm-pages' + form_id));
|
| 2452 |
+
show_title=(document.getElementById('fm-pages' + form_id).getAttribute('show_title')=='true');
|
| 2453 |
+
var div_parent = document.createElement('div');
|
| 2454 |
+
div_parent.setAttribute("class", "page_percentage_deactive");
|
| 2455 |
+
var div = document.createElement('div');
|
| 2456 |
+
div.setAttribute("id", "div_percentage");
|
| 2457 |
+
div.setAttribute("class", "page_percentage_active");
|
| 2458 |
+
div.setAttribute("align", "right");
|
| 2459 |
+
var div_arrow = document.createElement('div');
|
| 2460 |
+
div_arrow.setAttribute("class", "wdform_percentage_arrow");
|
| 2461 |
+
var b = document.createElement('b');
|
| 2462 |
+
b.setAttribute("class", "wdform_percentage_text");
|
| 2463 |
+
div.appendChild(b);
|
| 2464 |
+
k=0;
|
| 2465 |
+
cur_page_title='';
|
| 2466 |
+
for(j=1; j<=form_view_max; j++) {
|
| 2467 |
+
if(document.getElementById(form_id+'form_view'+j)) {
|
| 2468 |
+
if(document.getElementById(form_id+'form_view'+j).getAttribute('page_title')) {
|
| 2469 |
+
w_pages=document.getElementById(form_id+'form_view'+j).getAttribute('page_title');
|
| 2470 |
+
}
|
| 2471 |
+
else {
|
| 2472 |
+
w_pages="";
|
| 2473 |
+
}
|
| 2474 |
+
k++;
|
| 2475 |
+
if(j==form_view) {
|
| 2476 |
+
if(show_title) {
|
| 2477 |
+
var cur_page_title = document.createElement('div');
|
| 2478 |
+
cur_page_title.innerHTML=w_pages;
|
| 2479 |
+
cur_page_title.innerHTML=w_pages;
|
| 2480 |
+
cur_page_title.setAttribute("class", "wdform_percentage_title");
|
| 2481 |
+
}
|
| 2482 |
+
page_number=k;
|
| 2483 |
+
}
|
| 2484 |
+
}
|
| 2485 |
+
}
|
| 2486 |
+
b.innerHTML=Math.round(((page_number-1)/k)*100)+'%';
|
| 2487 |
+
div.style.width=((page_number-1)/k)*100+'%';
|
| 2488 |
+
if(page_number==1) {
|
| 2489 |
+
div_arrow.style.display='none';
|
| 2490 |
+
}
|
| 2491 |
+
div_parent.appendChild(div);
|
| 2492 |
+
div_parent.appendChild(div_arrow);
|
| 2493 |
+
if(cur_page_title) {
|
| 2494 |
+
div_parent.appendChild(cur_page_title);
|
| 2495 |
+
}
|
| 2496 |
+
document.getElementById('fm-pages' + form_id).appendChild(div_parent);
|
| 2497 |
+
}
|
| 2498 |
+
|
| 2499 |
+
function make_page_none_front(form_id) {
|
| 2500 |
+
destroyChildren(document.getElementById('fm-pages' + form_id));
|
| 2501 |
+
}
|
| 2502 |
+
|
| 2503 |
+
function make_pagebreak_button(next_or_previous,title,type, class_, checkable, id, form_id, form_view_count, form_view_max) {
|
| 2504 |
+
switch(type) {
|
| 2505 |
+
case 'text': {
|
| 2506 |
+
var element = document.createElement('div');
|
| 2507 |
+
element.setAttribute('id', "page_"+next_or_previous+"_"+id);
|
| 2508 |
+
element.setAttribute('class', class_);
|
| 2509 |
+
if(checkable=="true") {
|
| 2510 |
+
element.setAttribute('onClick', "if(fm_check("+id+", "+form_id+")) page_"+next_or_previous+"("+id+","+form_id+","+form_view_count+","+form_view_max+")");
|
| 2511 |
+
}
|
| 2512 |
+
else {
|
| 2513 |
+
element.setAttribute('onClick', "page_"+next_or_previous+"("+id+","+form_id+","+form_view_count+","+form_view_max+")");
|
| 2514 |
+
}
|
| 2515 |
+
element.innerHTML=title;
|
| 2516 |
+
return element;
|
| 2517 |
+
}
|
| 2518 |
+
case 'img':{
|
| 2519 |
+
var element = document.createElement('img');
|
| 2520 |
+
element.setAttribute('id', "page_"+next_or_previous+"_"+id);
|
| 2521 |
+
element.setAttribute('class', class_);
|
| 2522 |
+
if(checkable=="true") {
|
| 2523 |
+
element.setAttribute('onClick', "if(fm_check("+id+", "+form_id+")) page_"+next_or_previous+"("+id+","+form_id+","+form_view_count+","+form_view_max+")");
|
| 2524 |
+
}
|
| 2525 |
+
else {
|
| 2526 |
+
element.setAttribute('onClick', "page_"+next_or_previous+"("+id+","+form_id+","+form_view_count+","+form_view_max+")");
|
| 2527 |
+
}
|
| 2528 |
+
if(title.indexOf("http")==0) {
|
| 2529 |
+
element.src=title;
|
| 2530 |
+
}
|
| 2531 |
+
else {
|
| 2532 |
+
element.src=fm_objectL10n.plugin_url+'/'+title;
|
| 2533 |
+
}
|
| 2534 |
+
return element;
|
| 2535 |
+
}
|
| 2536 |
+
}
|
| 2537 |
+
}
|
| 2538 |
+
|
| 2539 |
+
function form_maker_findPos(obj) {
|
| 2540 |
+
var curtop = 0;
|
| 2541 |
+
if (obj.offsetParent) {
|
| 2542 |
+
do {
|
| 2543 |
+
curtop += obj.offsetTop;
|
| 2544 |
+
} while (obj = obj.offsetParent);
|
| 2545 |
+
return [curtop];
|
| 2546 |
+
}
|
| 2547 |
+
}
|
| 2548 |
+
|
| 2549 |
+
function page_previous(id, form_id, form_view_count, form_view_max) {
|
| 2550 |
+
form_view_elemet = document.getElementById(form_id + 'form_view' + id);
|
| 2551 |
+
if (form_view_elemet.parentNode.previousSibling && form_view_elemet.parentNode.previousSibling.previousSibling) {
|
| 2552 |
+
if (form_view_elemet.parentNode.previousSibling.tagName == "DIV") {
|
| 2553 |
+
table = form_view_elemet.parentNode.previousSibling;
|
| 2554 |
+
}
|
| 2555 |
+
else {
|
| 2556 |
+
table = form_view_elemet.parentNode.previousSibling.previousSibling;
|
| 2557 |
+
}
|
| 2558 |
+
}
|
| 2559 |
+
if (!table.firstChild.tagName) {
|
| 2560 |
+
table.removeChild(table.firstChild);
|
| 2561 |
+
}
|
| 2562 |
+
generate_page_nav(table.firstChild.id.replace(form_id + 'form_view', ""), form_id, form_view_count, form_view_max);
|
| 2563 |
+
form = jQuery("#form" + form_id);
|
| 2564 |
+
if (!form.parent().hasClass('fm-scrollbox-form')) {
|
| 2565 |
+
jQuery('html').animate({
|
| 2566 |
+
scrollTop: form.offset().top - 150
|
| 2567 |
+
}, 500);
|
| 2568 |
+
}
|
| 2569 |
+
}
|
| 2570 |
+
|
| 2571 |
+
function page_next(id, form_id, form_view_count, form_view_max) {
|
| 2572 |
+
form_view_elemet = document.getElementById(form_id + 'form_view' + id);
|
| 2573 |
+
if (form_view_elemet.parentNode.nextSibling) {
|
| 2574 |
+
if (form_view_elemet.parentNode.nextSibling.tagName == "DIV") {
|
| 2575 |
+
table = form_view_elemet.parentNode.nextSibling;
|
| 2576 |
+
}
|
| 2577 |
+
else {
|
| 2578 |
+
table = form_view_elemet.parentNode.nextSibling.nextSibling;
|
| 2579 |
+
}
|
| 2580 |
+
}
|
| 2581 |
+
|
| 2582 |
+
if (!table.firstChild.tagName) {
|
| 2583 |
+
table.removeChild(table.firstChild);
|
| 2584 |
+
}
|
| 2585 |
+
generate_page_nav(table.firstChild.id.replace(form_id + 'form_view', ""), form_id, form_view_count, form_view_max);
|
| 2586 |
+
form = jQuery("#form" + form_id);
|
| 2587 |
+
if (!form.parent().hasClass('fm-scrollbox-form')) {
|
| 2588 |
+
jQuery('html').animate({
|
| 2589 |
+
scrollTop: form.offset().top - 150
|
| 2590 |
+
}, 500);
|
| 2591 |
+
}
|
| 2592 |
+
}
|
| 2593 |
+
|
| 2594 |
+
function getfileextension(filename, exten) {
|
| 2595 |
+
if(filename.length == 0) {
|
| 2596 |
+
return true;
|
| 2597 |
+
}
|
| 2598 |
+
var dot = filename.lastIndexOf(".");
|
| 2599 |
+
var extension = filename.substr(dot+1,filename.length);
|
| 2600 |
+
exten=exten.split(',');
|
| 2601 |
+
for(var j=0 ; j<exten.length; j++) {
|
| 2602 |
+
exten[j]=exten[j].replace(/\./g,'');
|
| 2603 |
+
exten[j]=exten[j].replace(/ /g,'');
|
| 2604 |
+
if(extension.toLowerCase()==exten[j].toLowerCase())
|
| 2605 |
+
return true;
|
| 2606 |
+
}
|
| 2607 |
+
return false;
|
| 2608 |
+
}
|
| 2609 |
+
|
| 2610 |
+
function reselect(select, addclass) {
|
| 2611 |
+
addclass = typeof(addclass) != 'undefined' ? addclass : '';
|
| 2612 |
+
jQuery(select).wrap('<div class="sel-wrap ' + addclass + '"/>');
|
| 2613 |
+
var sel_options = '';
|
| 2614 |
+
var selected_option = false;
|
| 2615 |
+
jQuery(select).children('option').each(function() {
|
| 2616 |
+
if(jQuery(this).is(':selected')){
|
| 2617 |
+
selected_option = jQuery(this).index();
|
| 2618 |
+
}
|
| 2619 |
+
sel_options = sel_options + '<div class="sel-option" value="' + jQuery(this).val() + '">' + jQuery(this).html() + '</div>';
|
| 2620 |
+
});
|
| 2621 |
+
w=jQuery(select)[0].style.width;
|
| 2622 |
+
if(w=='100%') {
|
| 2623 |
+
w='100%';
|
| 2624 |
+
}
|
| 2625 |
+
else {
|
| 2626 |
+
w=(jQuery(select).width()+32)+'px';
|
| 2627 |
+
}
|
| 2628 |
+
var sel_imul = '<div class="sel-imul" style="width:'+w+'">\
|
| 2629 |
+
<div class="sel-selected">\
|
| 2630 |
+
<div class="selected-text">' + jQuery(select).children('option').eq(selected_option).html() + '</div>\
|
| 2631 |
+
<div class="sel-arraw"></div>\
|
| 2632 |
+
</div>\
|
| 2633 |
+
<div class="sel-options">' + sel_options + '</div>\
|
| 2634 |
+
</div>';
|
| 2635 |
+
jQuery(select).addClass('no-width');
|
| 2636 |
+
jQuery(select).before(sel_imul);
|
| 2637 |
+
}
|
| 2638 |
+
|
| 2639 |
+
jQuery(document).on('change','.wdform-element-section select', function() {
|
| 2640 |
+
var tektext = jQuery(this).children("option:selected").text();
|
| 2641 |
+
jQuery(this).parent('.sel-wrap ').children('.sel-imul').children('.sel-selected').children('.selected-text').html(tektext);
|
| 2642 |
+
jQuery(this).parent('.sel-wrap ').children('.sel-imul').children('.sel-options').children('.sel-option').removeClass('sel-ed');
|
| 2643 |
+
jQuery(this).addClass('sel-ed');
|
| 2644 |
+
jQuery(this).parent('.sel-wrap ').children('.sel-imul').children('.sel-options').each(function() {
|
| 2645 |
+
if (jQuery(this).html() == tektext) {
|
| 2646 |
+
jQuery(this).addClass('sel-ed');
|
| 2647 |
+
}
|
| 2648 |
+
});
|
| 2649 |
+
});
|
| 2650 |
+
|
| 2651 |
+
jQuery(document).on('click','.sel-imul', function() {
|
| 2652 |
+
jQuery('.sel-imul').removeClass('act');
|
| 2653 |
+
jQuery(this).addClass('act');
|
| 2654 |
+
if (jQuery(this).children('.sel-options').is(':visible')) {
|
| 2655 |
+
jQuery('.sel-options').hide();
|
| 2656 |
+
}
|
| 2657 |
+
else {
|
| 2658 |
+
jQuery('.sel-options').hide();
|
| 2659 |
+
jQuery(this).children('.sel-options').show();
|
| 2660 |
+
jQuery(this).children('.sel-options').css('width',jQuery(this).width());
|
| 2661 |
+
}
|
| 2662 |
+
});
|
| 2663 |
+
|
| 2664 |
+
jQuery(document).on('click','.sel-option', function() {
|
| 2665 |
+
var tektext = jQuery(this).html();
|
| 2666 |
+
jQuery(this).parent('.sel-options').parent('.sel-imul').children('.sel-selected').children('.selected-text').html(tektext);
|
| 2667 |
+
jQuery(this).parent('.sel-options').children('.sel-option').removeClass('sel-ed');
|
| 2668 |
+
jQuery(this).addClass('sel-ed');
|
| 2669 |
+
var tekval = jQuery(this).attr('value');
|
| 2670 |
+
tekval = typeof(tekval) != 'undefined' ? tekval : tektext;
|
| 2671 |
+
jQuery(this).parent('.sel-options').parent('.sel-imul').parent('.sel-wrap').children('select').children('option').removeAttr('selected').each(function() {
|
| 2672 |
+
if (jQuery(this).html() == tektext) {
|
| 2673 |
+
jQuery(this).attr('selected', 'select');
|
| 2674 |
+
}
|
| 2675 |
+
});
|
| 2676 |
+
jQuery(this).parent('.sel-options').parent('.sel-imul').parent('.sel-wrap').children('select').change();
|
| 2677 |
+
});
|
| 2678 |
+
|
| 2679 |
+
var selenter = false;
|
| 2680 |
+
jQuery(document).on('mouseenter','.sel-imul', function() {
|
| 2681 |
+
selenter = true;
|
| 2682 |
+
});
|
| 2683 |
+
|
| 2684 |
+
jQuery(document).on('mouseleave','.sel-imul', function() {
|
| 2685 |
+
selenter = false;
|
| 2686 |
+
});
|
| 2687 |
+
|
| 2688 |
+
jQuery(document).click(function() {
|
| 2689 |
+
if (!selenter) {
|
| 2690 |
+
jQuery('.sel-options').hide();
|
| 2691 |
+
jQuery('.sel-imul').removeClass('act');
|
| 2692 |
+
}
|
| 2693 |
+
});
|
| 2694 |
+
|
| 2695 |
+
function remove_whitespace(node) {
|
| 2696 |
+
var ttt;
|
| 2697 |
+
for (ttt=0; ttt < node.childNodes.length; ttt++) {
|
| 2698 |
+
if( node.childNodes[ttt] && node.childNodes[ttt].nodeType == '3' && !/\S/.test( node.childNodes[ttt].nodeValue )) {
|
| 2699 |
+
node.removeChild(node.childNodes[ttt]);
|
| 2700 |
+
ttt--;
|
| 2701 |
+
}
|
| 2702 |
+
else {
|
| 2703 |
+
if(node.childNodes[ttt].childNodes.length) {
|
| 2704 |
+
remove_whitespace(node.childNodes[ttt]);
|
| 2705 |
+
}
|
| 2706 |
+
}
|
| 2707 |
+
}
|
| 2708 |
+
return;
|
| 2709 |
+
}
|
| 2710 |
+
function change_value_range(id, min_max, element_value, default_min_max, format) {
|
| 2711 |
+
if(element_value) {
|
| 2712 |
+
jQuery("#"+id).datepicker('option', min_max, element_value);
|
| 2713 |
+
}
|
| 2714 |
+
else {
|
| 2715 |
+
if(default_min_max == "today") {
|
| 2716 |
+
jQuery("#"+id).datepicker('option', min_max, new Date());
|
| 2717 |
+
}
|
| 2718 |
+
else {
|
| 2719 |
+
if (default_min_max.indexOf("d") == -1 && default_min_max.indexOf("m") == -1 && default_min_max.indexOf("y") == -1 && default_min_max.indexOf("w") == -1 && default_min_max != "") {
|
| 2720 |
+
default_min_max = jQuery.datepicker.formatDate(format, new Date(default_min_max));
|
| 2721 |
+
}
|
| 2722 |
+
jQuery("#"+id).datepicker('option', min_max, default_min_max);
|
| 2723 |
+
}
|
| 2724 |
+
}
|
| 2725 |
+
}
|
| 2726 |
+
|
| 2727 |
+
function wd_check_confirmation_email(wdid, form_id, message, type) {
|
| 2728 |
+
var element = jQuery("#wdform_" + wdid +"_element" + form_id);
|
| 2729 |
+
var element_confirm = jQuery("#wdform_" + wdid +"_1_element" + form_id);
|
| 2730 |
+
var condition_confirm_email = false;
|
| 2731 |
+
if(!window["check_before_submit" + form_id][wdid + "_" + form_id]) {
|
| 2732 |
+
condition_confirm_email = true;
|
| 2733 |
+
}
|
| 2734 |
+
else {
|
| 2735 |
+
condition_confirm_email = jQuery(element).val() != jQuery(element_confirm).val() ? true : false;
|
| 2736 |
+
}
|
| 2737 |
+
if(condition_confirm_email) {
|
| 2738 |
+
jQuery("#confirm_" + wdid + "_" + form_id).remove();
|
| 2739 |
+
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:eq( 1 ) .error_label_confirm").removeClass("error_label_confirm");
|
| 2740 |
+
if(jQuery(element).val() != jQuery(element_confirm).val()) {
|
| 2741 |
+
jQuery(element_confirm).parent().parent().parent().append("<div id='confirm_" + wdid + "_" + form_id + "' class='fm-not-filled'>" + message + "</div>");
|
| 2742 |
+
jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:eq( 1 ) .wdform-label").addClass("error_label_confirm");
|
| 2743 |
+
}
|
| 2744 |
+
window["check_before_submit" + form_id][wdid + "_" + form_id] = (wdid + "_" + form_id in window["check_before_submit" + form_id]) ? window["check_before_submit" + form_id][wdid + "_" + form_id] : true;
|
| 2745 |
+
}
|
| 2746 |
+
else {
|
| 2747 |
+
jQuery("#confirm_" + wdid + "_" + form_id).remove();
|
| 2748 |
+
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:eq( 1 ) .error_label_confirm").removeClass("error_label_confirm");
|
| 2749 |
+
if(window["check_before_submit" + form_id][wdid + "_" + form_id] == true) {
|
| 2750 |
+
delete window["check_before_submit" + form_id][wdid + "_" + form_id];
|
| 2751 |
+
}
|
| 2752 |
+
}
|
| 2753 |
+
}
|
| 2754 |
+
|
| 2755 |
+
function wd_check_email(wdid, form_id, message_check) {
|
| 2756 |
+
var element = jQuery("#wdform_" + wdid +"_element" + form_id);
|
| 2757 |
+
var element_confirm = jQuery("#wdform_" + wdid +"_1_element" + form_id);
|
| 2758 |
+
var re = /^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;
|
| 2759 |
+
if(jQuery(element).val()!="" && !re.test(jQuery.trim(jQuery(element).val())) && jQuery(element).attr("title") != jQuery(element).val()){
|
| 2760 |
+
jQuery("#check_email_" + wdid + "_" + form_id).remove();
|
| 2761 |
+
jQuery(element).parent().parent().parent().append("<div id='check_email_" + wdid + "_" + form_id + "' class='fm-not-filled'>" + message_check + "</div>");
|
| 2762 |
+
jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label_check_mail");
|
| 2763 |
+
if(element.val() == element_confirm.val()) {
|
| 2764 |
+
jQuery("#confirm_" + wdid + "_" + form_id).remove();
|
| 2765 |
+
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:eq( 1 ) .error_label_confirm").removeClass("error_label_confirm");
|
| 2766 |
+
}
|
| 2767 |
+
delete window["check_before_submit" + form_id][wdid + "_" + form_id];
|
| 2768 |
+
window["check_before_submit" + form_id][wdid + "_" + form_id] = false;
|
| 2769 |
+
}
|
| 2770 |
+
else {
|
| 2771 |
+
jQuery("#check_email_" + wdid + "_" + form_id).remove();
|
| 2772 |
+
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label_check_mail").removeClass("error_label_check_mail");
|
| 2773 |
+
window["check_before_submit" + form_id][wdid + "_" + form_id] = true;
|
| 2774 |
+
if(typeof element_confirm.val() ==="undefined") {
|
| 2775 |
+
delete window["check_before_submit" + form_id][wdid + "_" + form_id];
|
| 2776 |
+
}
|
| 2777 |
+
}
|
| 2778 |
+
}
|
| 2779 |
+
|
| 2780 |
+
function wd_check_confirmation_pass(wdid, form_id, message) {
|
| 2781 |
+
var element = jQuery("#wdform_" + wdid +"_element" + form_id);
|
| 2782 |
+
var element_confirm = jQuery("#wdform_" + wdid +"_1_element" + form_id);
|
| 2783 |
+
var condition_confirm_pass = false;
|
| 2784 |
+
condition_confirm_pass = element.val() !== element_confirm.val();
|
| 2785 |
+
if(condition_confirm_pass) {
|
| 2786 |
+
jQuery("#confirm_" + wdid + "_" + form_id).remove();
|
| 2787 |
+
jQuery(element_confirm).parent().parent().parent().append("<div id='confirm_" + wdid + "_" + form_id + "' class='fm-not-filled'>" + message + "</div>");
|
| 2788 |
+
jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:eq( 1 ) .wdform-label").addClass("error_label_check_pass");
|
| 2789 |
+
window["check_before_submit" + form_id][wdid + "_" + form_id] = false;
|
| 2790 |
+
}
|
| 2791 |
+
else {
|
| 2792 |
+
jQuery("#confirm_" + wdid + "_" + form_id).remove();
|
| 2793 |
+
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:eq( 1 ) .error_label_check_pass").removeClass("error_label_check_pass");
|
| 2794 |
+
delete window["check_before_submit" + form_id][wdid + "_" + form_id];
|
| 2795 |
+
}
|
| 2796 |
+
}
|
| 2797 |
+
|
| 2798 |
+
function minimize_form(form_id) {
|
| 2799 |
+
jQuery("#fm-scrollbox"+form_id).removeClass("fm-animated fadeInUp").addClass("fm-animated fadeOutDown fm-minimized");
|
| 2800 |
+
jQuery("#fm-minimize-text"+form_id).removeClass("fm-animated fadeOutDown").addClass("fm-show fm-animated fadeInUp");
|
| 2801 |
+
}
|
| 2802 |
+
|
| 2803 |
+
function fm_show_scrollbox(form_id) {
|
| 2804 |
+
jQuery("#fm-minimize-text"+form_id).removeClass("fm-animated fadeInUp").addClass("fm-animated fadeOutDown");
|
| 2805 |
+
jQuery("#fm-scrollbox"+form_id).removeClass("fm-animated fadeOutDown fm-minimized").addClass("fm-show fm-animated fadeInUp");
|
| 2806 |
+
}
|
| 2807 |
+
|
| 2808 |
+
function fm_hide_form(form_id, hide_interval, close_callback) {
|
| 2809 |
+
var hide_date = new Date();
|
| 2810 |
+
hide_date.setDate(hide_date.getDate() + hide_interval);
|
| 2811 |
+
if( hide_interval > 0 ) {
|
| 2812 |
+
localStorage.setItem('hide-'+form_id, hide_date.getTime());
|
| 2813 |
+
}
|
| 2814 |
+
if(typeof close_callback === 'function') {
|
| 2815 |
+
close_callback();
|
| 2816 |
+
}
|
| 2817 |
+
}
|
| 2818 |
+
|
| 2819 |
+
function wd_check_regExp(form_id, regExpObj) {
|
| 2820 |
+
var x = jQuery("#form" + form_id);
|
| 2821 |
+
var find_wrong_exp = false;
|
| 2822 |
+
var check_regExp = regExpObj ? regExpObj : window['check_regExp_all'+form_id];
|
| 2823 |
+
jQuery.each( check_regExp, function( wdid, exp ) {
|
| 2824 |
+
var element = "#wdform_" + wdid + "_element" + form_id;
|
| 2825 |
+
var RegExpression = "";
|
| 2826 |
+
var rules = unescape(exp[0]);
|
| 2827 |
+
(exp[1].length <= 0) ? RegExpression = new RegExp(rules) : RegExpression = new RegExp(rules, exp[1]);
|
| 2828 |
+
if(x.find(jQuery("div[wdid='"+wdid+"']")).length != 0 && x.find(jQuery("div[wdid='"+wdid+"']")).css("display") != "none") {
|
| 2829 |
+
if(jQuery(element).val().length > 0 && jQuery(element).val() != jQuery(element).attr('title')) {
|
| 2830 |
+
if (RegExpression.test(jQuery(element).val()) != true) {
|
| 2831 |
+
jQuery("#form"+form_id+" #wd_exp_"+wdid).remove();
|
| 2832 |
+
x.find(jQuery("div[wdid='"+wdid+"'] .wdform-element-section")).parent().parent().append("<div id='wd_exp_"+wdid+"' class='fm-not-filled'>" + exp[2] + "</div>");
|
| 2833 |
+
jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label_exp");
|
| 2834 |
+
find_wrong_exp = true;
|
| 2835 |
+
if(!regExpObj){
|
| 2836 |
+
scroll_on_element(form_id);
|
| 2837 |
+
}
|
| 2838 |
+
}
|
| 2839 |
+
}
|
| 2840 |
+
}
|
| 2841 |
+
});
|
| 2842 |
+
if(find_wrong_exp === false) {
|
| 2843 |
+
return true;
|
| 2844 |
+
}
|
| 2845 |
+
return false;
|
| 2846 |
+
}
|
| 2847 |
+
|
| 2848 |
+
function scroll_on_element(form_id) {
|
| 2849 |
+
if ( jQuery("#form" + form_id + " .fm-not-filled").length == 0 ) {
|
| 2850 |
+
return true;
|
| 2851 |
+
}
|
| 2852 |
+
var parent_div = jQuery("#form" + form_id + " .fm-not-filled").closest(".wdform_row");
|
| 2853 |
+
var body_hight = document.body.clientHeight;
|
| 2854 |
+
var element_offset = jQuery("#form" + form_id + " .fm-not-filled").offset().top;
|
| 2855 |
+
|
| 2856 |
+
var scrollChecker = function() {
|
| 2857 |
+
if(document.body.clientHeight !== body_hight ) {
|
| 2858 |
+
body_hight = document.body.clientHeight;
|
| 2859 |
+
element_offset = jQuery("#form" + form_id + " .fm-not-filled").offset().top;
|
| 2860 |
+
jQuery('html').stop();
|
| 2861 |
+
animateBodyToError();
|
| 2862 |
+
}
|
| 2863 |
+
};
|
| 2864 |
+
jQuery(window).on("scroll",scrollChecker);
|
| 2865 |
+
function animateBodyToError() {
|
| 2866 |
+
jQuery('html').animate({
|
| 2867 |
+
scrollTop: element_offset - 150
|
| 2868 |
+
}, 500, function() {
|
| 2869 |
+
jQuery(window).off("scroll", scrollChecker);
|
| 2870 |
+
old_bg=jQuery(parent_div).css("background-color");
|
| 2871 |
+
jQuery(parent_div).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
|
| 2872 |
+
});
|
| 2873 |
+
}
|
| 2874 |
+
animateBodyToError();
|
| 2875 |
+
}
|
| 2876 |
+
|
| 2877 |
+
function wd_file_upload_check(form_id, upload_check_field){
|
| 2878 |
+
var x = jQuery("#form" + form_id);
|
| 2879 |
+
var find_wrong_type_upload = false;
|
| 2880 |
+
var upload_check = upload_check_field ? upload_check_field : window['file_upload_check'+form_id];
|
| 2881 |
+
jQuery.each( upload_check, function( wdid, upload_types ) {
|
| 2882 |
+
var element = "#wdform_" + wdid + "_element" + form_id;
|
| 2883 |
+
if(x.find(jQuery("div[wdid='"+wdid+"']")).length != 0 && x.find(jQuery("div[wdid='"+wdid+"']")).css("display") != "none") {
|
| 2884 |
+
ext_available=getfileextension(jQuery(element).val(), upload_types);
|
| 2885 |
+
if(!ext_available) {
|
| 2886 |
+
jQuery("#form"+form_id+" #wd_upload_type_"+wdid).remove();
|
| 2887 |
+
x.find(jQuery("div[wdid='"+wdid+"'] .wdform-element-section")).parent().parent().append("<div id='wd_upload_type_"+wdid+"' class='fm-not-filled'>" + fm_objectL10n.fm_file_type_error + "</div>");
|
| 2888 |
+
jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label_upload");
|
| 2889 |
+
find_wrong_type_upload = true;
|
| 2890 |
+
}
|
| 2891 |
+
else {
|
| 2892 |
+
jQuery("#form"+form_id+" #wd_upload_type_"+wdid).remove();
|
| 2893 |
+
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label_upload").removeClass("error_label_upload")
|
| 2894 |
+
}
|
| 2895 |
+
}
|
| 2896 |
+
});
|
| 2897 |
+
if(!upload_check_field && find_wrong_type_upload === true){
|
| 2898 |
+
scroll_on_element(form_id);
|
| 2899 |
+
}
|
| 2900 |
+
if(find_wrong_type_upload === false) {
|
| 2901 |
+
return true;
|
| 2902 |
+
}
|
| 2903 |
+
return false;
|
| 2904 |
+
}
|
| 2905 |
+
|
| 2906 |
+
function wd_is_filled(form_id, field_id) {
|
| 2907 |
+
var x = jQuery("#form" + form_id);
|
| 2908 |
+
var req_fields = field_id ? field_id.split() : window['required_fields'+form_id];
|
| 2909 |
+
var not_filled = {};
|
| 2910 |
+
jQuery(req_fields).each(function(index, wdid) {
|
| 2911 |
+
if(x.find(jQuery("div[wdid='"+wdid+"']")).length != 0 && x.find(jQuery("div[wdid='"+wdid+"']")).css("display") != "none" ) {
|
| 2912 |
+
switch(window['labels_and_ids'+form_id][wdid]) {
|
| 2913 |
+
case 'type_text':
|
| 2914 |
+
case 'type_textarea':
|
| 2915 |
+
case 'type_paypal_price_new':
|
| 2916 |
+
case 'type_spinner':
|
| 2917 |
+
case 'type_number':
|
| 2918 |
+
case 'type_phone_new':
|
| 2919 |
+
case 'type_submitter_mail': {
|
| 2920 |
+
var element = "#wdform_" + wdid + "_element" + form_id;
|
| 2921 |
+
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 2922 |
+
if(jQuery(element).val() == jQuery(element).attr('title') || jQuery(element).val() == ""){
|
| 2923 |
+
not_filled[wdid] = element;
|
| 2924 |
+
}
|
| 2925 |
+
}
|
| 2926 |
+
if(!field_id && !window['check_submit'+form_id]) {
|
| 2927 |
+
jQuery(element).focus(function() {
|
| 2928 |
+
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 2929 |
+
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 2930 |
+
}).blur(function() {
|
| 2931 |
+
wd_is_filled(form_id, wdid);
|
| 2932 |
+
});
|
| 2933 |
+
}
|
| 2934 |
+
break;
|
| 2935 |
+
}
|
| 2936 |
+
case 'type_own_select':
|
| 2937 |
+
case 'type_country':
|
| 2938 |
+
case 'type_paypal_select': {
|
| 2939 |
+
var element = "#wdform_" + wdid + "_element" + form_id;
|
| 2940 |
+
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 2941 |
+
if(jQuery(element).val() == "") {
|
| 2942 |
+
not_filled[wdid] = element;
|
| 2943 |
+
}
|
| 2944 |
+
}
|
| 2945 |
+
if(!field_id && !window['check_submit'+form_id]) {
|
| 2946 |
+
jQuery(element).focus(function() {
|
| 2947 |
+
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 2948 |
+
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 2949 |
+
}).blur(function() {
|
| 2950 |
+
wd_is_filled(form_id, wdid);
|
| 2951 |
+
}).change(function() {
|
| 2952 |
+
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 2953 |
+
wd_is_filled(form_id, wdid);
|
| 2954 |
+
});
|
| 2955 |
+
}
|
| 2956 |
+
break;
|
| 2957 |
+
}
|
| 2958 |
+
case 'type_phone': {
|
| 2959 |
+
var element = ["#wdform_" + wdid + "_element_first" + form_id, "#wdform_" + wdid + "_element_last" + form_id];
|
| 2960 |
+
jQuery.each(element, function(i, elem){
|
| 2961 |
+
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 2962 |
+
if(jQuery(elem).val() == "" || jQuery(elem).val() == jQuery(elem).attr('title')){
|
| 2963 |
+
not_filled[wdid] = elem;
|
| 2964 |
+
}
|
| 2965 |
+
}
|
| 2966 |
+
if(!field_id && !window['check_submit'+form_id]){
|
| 2967 |
+
jQuery(elem).focus(function() {
|
| 2968 |
+
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 2969 |
+
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 2970 |
+
}).blur(function() {
|
| 2971 |
+
wd_is_filled(form_id, wdid);
|
| 2972 |
+
});
|
| 2973 |
+
}
|
| 2974 |
+
});
|
| 2975 |
+
break;
|
| 2976 |
+
}
|
| 2977 |
+
case 'type_name': {
|
| 2978 |
+
var element = ["#wdform_" + wdid + "_element_title" + form_id, "#wdform_" + wdid + "_element_first" + form_id, "#wdform_" + wdid + "_element_last" + form_id, "#wdform_" + wdid + "_element_middle" + form_id];
|
| 2979 |
+
jQuery.each(element, function(i, elem){
|
| 2980 |
+
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 2981 |
+
if((jQuery(elem).val() == "" || jQuery(elem).val() == jQuery(elem).attr('title')) && typeof jQuery(elem).val() != "undefined"){
|
| 2982 |
+
not_filled[wdid] = elem;
|
| 2983 |
+
}
|
| 2984 |
+
}
|
| 2985 |
+
if(!field_id && !window['check_submit'+form_id]){
|
| 2986 |
+
jQuery(elem).focus(function() {
|
| 2987 |
+
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 2988 |
+
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 2989 |
+
}).blur(function() {
|
| 2990 |
+
wd_is_filled(form_id, wdid);
|
| 2991 |
+
});
|
| 2992 |
+
}
|
| 2993 |
+
});
|
| 2994 |
+
break;
|
| 2995 |
+
}
|
| 2996 |
+
case 'type_address': {
|
| 2997 |
+
var element = ["#wdform_" + wdid + "_street1" + form_id, "#wdform_" + wdid + "_street2" + form_id, "#wdform_" + wdid + "_city" + form_id, "#wdform_" + wdid + "_state" + form_id, "#wdform_" + wdid + "_postal" + form_id, "#wdform_" + wdid + "_country" + form_id];
|
| 2998 |
+
jQuery.each(element, function(i, elem){
|
| 2999 |
+
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 3000 |
+
if(jQuery(elem).val() == "" && typeof jQuery(elem).val() != "undefined"){
|
| 3001 |
+
not_filled[wdid] = elem;
|
| 3002 |
+
}
|
| 3003 |
+
}
|
| 3004 |
+
if(!field_id && !window['check_submit'+form_id]){
|
| 3005 |
+
jQuery(elem).focus(function() {
|
| 3006 |
+
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 3007 |
+
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 3008 |
+
}).blur(function() {
|
| 3009 |
+
wd_is_filled(form_id, wdid);
|
| 3010 |
+
});
|
| 3011 |
+
}
|
| 3012 |
+
});
|
| 3013 |
+
break;
|
| 3014 |
+
}
|
| 3015 |
+
case 'type_checkbox':
|
| 3016 |
+
case 'type_radio':
|
| 3017 |
+
case 'type_scale_rating':
|
| 3018 |
+
case 'type_paypal_checkbox':
|
| 3019 |
+
case 'type_paypal_radio':
|
| 3020 |
+
case 'type_paypal_shipping': {
|
| 3021 |
+
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none"){
|
| 3022 |
+
if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0 || jQuery("#wdform_"+ wdid +"_other_input" + form_id).val() == ""){
|
| 3023 |
+
not_filled[wdid] = true;
|
| 3024 |
+
}
|
| 3025 |
+
}
|
| 3026 |
+
if(!field_id && !window['check_submit'+form_id]){
|
| 3027 |
+
jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){
|
| 3028 |
+
jQuery(this).change(function() {
|
| 3029 |
+
if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0 || jQuery("#wdform_"+ wdid +"_other_input" + form_id).val() == ""){
|
| 3030 |
+
wd_is_filled(form_id, wdid);
|
| 3031 |
+
}
|
| 3032 |
+
else{
|
| 3033 |
+
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 3034 |
+
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 3035 |
+
}
|
| 3036 |
+
});
|
| 3037 |
+
});
|
| 3038 |
+
}
|
| 3039 |
+
break;
|
| 3040 |
+
}
|
| 3041 |
+
case 'type_star_rating': {
|
| 3042 |
+
var element = "#wdform_" + wdid + "_selected_star_amount" + form_id;
|
| 3043 |
+
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 3044 |
+
if(jQuery(element).val() == ""){
|
| 3045 |
+
not_filled[wdid] = true;
|
| 3046 |
+
}
|
| 3047 |
+
}
|
| 3048 |
+
if(!field_id && !window['check_submit'+form_id]){
|
| 3049 |
+
jQuery("#wdform_" + wdid + "_element" + form_id).click(function(){
|
| 3050 |
+
if(jQuery(element).val() != ""){
|
| 3051 |
+
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 3052 |
+
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 3053 |
+
}
|
| 3054 |
+
});
|
| 3055 |
+
}
|
| 3056 |
+
break;
|
| 3057 |
+
}
|
| 3058 |
+
case 'type_range': {
|
| 3059 |
+
var element = ["#wdform_" + wdid + "_element" + form_id + "0", "#wdform_" + wdid + "_element" + form_id + "1"];
|
| 3060 |
+
jQuery.each(element, function(i, elem){
|
| 3061 |
+
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 3062 |
+
if(jQuery(elem).val() == ""){
|
| 3063 |
+
not_filled[wdid] = elem;
|
| 3064 |
+
}
|
| 3065 |
+
}
|
| 3066 |
+
if(!field_id && !window['check_submit'+form_id]){
|
| 3067 |
+
jQuery(elem).focus(function() {
|
| 3068 |
+
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 3069 |
+
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 3070 |
+
}).blur(function() {
|
| 3071 |
+
wd_is_filled(form_id, wdid);
|
| 3072 |
+
});
|
| 3073 |
+
}
|
| 3074 |
+
});
|
| 3075 |
+
break;
|
| 3076 |
+
}
|
| 3077 |
+
case 'type_grading': {
|
| 3078 |
+
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 3079 |
+
var count_grading = 0;
|
| 3080 |
+
jQuery.each(jQuery("#wdform_" + wdid + "_element" + form_id + " input"), function( i, val ){
|
| 3081 |
+
if(jQuery(this).val() != "")
|
| 3082 |
+
count_grading ++;
|
| 3083 |
+
|
| 3084 |
+
});
|
| 3085 |
+
if(count_grading == 0)
|
| 3086 |
+
not_filled[wdid] = true;
|
| 3087 |
+
}
|
| 3088 |
+
if(!field_id && !window['check_submit'+form_id]){
|
| 3089 |
+
jQuery.each(jQuery("#wdform_" + wdid + "_element" + form_id + " input"), function( i, val ){
|
| 3090 |
+
jQuery(this).focus(function() {
|
| 3091 |
+
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 3092 |
+
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 3093 |
+
}).blur(function() {
|
| 3094 |
+
wd_is_filled(form_id, wdid);
|
| 3095 |
+
});
|
| 3096 |
+
});
|
| 3097 |
+
}
|
| 3098 |
+
break;
|
| 3099 |
+
}
|
| 3100 |
+
case 'type_slider': {
|
| 3101 |
+
var slider_element = "#wdform_" + wdid + "_element" + form_id;
|
| 3102 |
+
var element = "#wdform_" + wdid + "_slider_value" + form_id;
|
| 3103 |
+
var min_value = "#wdform_" + wdid + "_element_min" + form_id;
|
| 3104 |
+
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 3105 |
+
if(jQuery(element).val() == jQuery(min_value).html()){
|
| 3106 |
+
not_filled[wdid] = true;
|
| 3107 |
+
}
|
| 3108 |
+
}
|
| 3109 |
+
if(!field_id && !window['check_submit'+form_id]){
|
| 3110 |
+
jQuery(slider_element).slider({
|
| 3111 |
+
change: function( event, ui ) {
|
| 3112 |
+
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 3113 |
+
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 3114 |
+
wd_is_filled(form_id, wdid);
|
| 3115 |
+
}
|
| 3116 |
+
});
|
| 3117 |
+
}
|
| 3118 |
+
break;
|
| 3119 |
+
}
|
| 3120 |
+
case 'type_date':
|
| 3121 |
+
case 'type_date_new': {
|
| 3122 |
+
var element = "#wdform_" + wdid + "_element" + form_id;
|
| 3123 |
+
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 3124 |
+
if(jQuery(element).val() == ""){
|
| 3125 |
+
not_filled[wdid] = element;
|
| 3126 |
+
}
|
| 3127 |
+
}
|
| 3128 |
+
if(!field_id && !window['check_submit'+form_id]){
|
| 3129 |
+
jQuery(element).focus(function() {
|
| 3130 |
+
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 3131 |
+
}).change(function() {
|
| 3132 |
+
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 3133 |
+
wd_is_filled(form_id, wdid);
|
| 3134 |
+
});
|
| 3135 |
+
}
|
| 3136 |
+
break;
|
| 3137 |
+
}
|
| 3138 |
+
case 'type_date_range': {
|
| 3139 |
+
var element = ["#wdform_" + wdid + "_element" + form_id + "0", "#wdform_" + wdid + "_element" + form_id + "1"];
|
| 3140 |
+
jQuery.each(element, function(i, elem){
|
| 3141 |
+
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 3142 |
+
if(jQuery(elem).val() == ""){
|
| 3143 |
+
not_filled[wdid] = elem;
|
| 3144 |
+
}
|
| 3145 |
+
}
|
| 3146 |
+
if(!field_id && !window['check_submit'+form_id]){
|
| 3147 |
+
jQuery(elem).focus(function() {
|
| 3148 |
+
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 3149 |
+
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 3150 |
+
}).change(function() {
|
| 3151 |
+
wd_is_filled(form_id, wdid);
|
| 3152 |
+
});
|
| 3153 |
+
}
|
| 3154 |
+
});
|
| 3155 |
+
break;
|
| 3156 |
+
}
|
| 3157 |
+
case 'type_date_fields': {
|
| 3158 |
+
var element = ["#wdform_" + wdid + "_day" + form_id, "#wdform_" + wdid + "_month" + form_id, "#wdform_" + wdid + "_year" + form_id];
|
| 3159 |
+
jQuery.each(element, function(i, elem) {
|
| 3160 |
+
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 3161 |
+
if(jQuery(elem).val() == ""){
|
| 3162 |
+
not_filled[wdid] = elem;
|
| 3163 |
+
}
|
| 3164 |
+
}
|
| 3165 |
+
if(!field_id && !window['check_submit'+form_id]){
|
| 3166 |
+
jQuery(elem).focus(function() {
|
| 3167 |
+
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 3168 |
+
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 3169 |
+
}).blur(function() {
|
| 3170 |
+
wd_is_filled(form_id, wdid);
|
| 3171 |
+
}).change(function() {
|
| 3172 |
+
wd_is_filled(form_id, wdid);
|
| 3173 |
+
});
|
| 3174 |
+
}
|
| 3175 |
+
});
|
| 3176 |
+
break;
|
| 3177 |
+
}
|
| 3178 |
+
case 'type_time': {
|
| 3179 |
+
var element = ["#wdform_" + wdid + "_hh" + form_id, "#wdform_" + wdid + "_mm" + form_id, "#wdform_" + wdid + "_ss" + form_id];
|
| 3180 |
+
jQuery.each(element, function(i, elem){
|
| 3181 |
+
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 3182 |
+
if(jQuery(elem).val() == "" && typeof jQuery(elem).val() != "undefined"){
|
| 3183 |
+
not_filled[wdid] = elem;
|
| 3184 |
+
}
|
| 3185 |
+
}
|
| 3186 |
+
if(!field_id && !window['check_submit'+form_id]){
|
| 3187 |
+
jQuery(elem).focus(function() {
|
| 3188 |
+
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 3189 |
+
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 3190 |
+
}).blur(function() {
|
| 3191 |
+
wd_is_filled(form_id, wdid);
|
| 3192 |
+
});
|
| 3193 |
+
}
|
| 3194 |
+
});
|
| 3195 |
+
break;
|
| 3196 |
+
}
|
| 3197 |
+
case 'type_password': {
|
| 3198 |
+
var element = "#wdform_" + wdid + "_element" + form_id;
|
| 3199 |
+
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 3200 |
+
if(jQuery(element).val() == ""){
|
| 3201 |
+
not_filled[wdid] = element;
|
| 3202 |
+
}
|
| 3203 |
+
}
|
| 3204 |
+
if(!field_id && !window['check_submit'+form_id]){
|
| 3205 |
+
jQuery(element).focus(function() {
|
| 3206 |
+
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 3207 |
+
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 3208 |
+
}).blur(function() {
|
| 3209 |
+
wd_is_filled(form_id, wdid);
|
| 3210 |
+
});
|
| 3211 |
+
}
|
| 3212 |
+
break;
|
| 3213 |
+
}
|
| 3214 |
+
case 'type_file_upload': {
|
| 3215 |
+
var element = "#wdform_" + wdid + "_element" + form_id;
|
| 3216 |
+
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 3217 |
+
if(jQuery(element).val() == jQuery(element).attr('title') || jQuery(element).val() == ""){
|
| 3218 |
+
not_filled[wdid] = element;
|
| 3219 |
+
}
|
| 3220 |
+
}
|
| 3221 |
+
if(!field_id && !window['check_submit'+form_id]) {
|
| 3222 |
+
jQuery(element).focus(function() {
|
| 3223 |
+
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 3224 |
+
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 3225 |
+
}).change(function() {
|
| 3226 |
+
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 3227 |
+
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 3228 |
+
wd_is_filled(form_id, wdid);
|
| 3229 |
+
});
|
| 3230 |
+
}
|
| 3231 |
+
break;
|
| 3232 |
+
}
|
| 3233 |
+
case 'type_matrix': {
|
| 3234 |
+
if(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') =="radio" || jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') =="checkbox"){
|
| 3235 |
+
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 3236 |
+
if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0){
|
| 3237 |
+
not_filled[wdid] = true;
|
| 3238 |
+
}
|
| 3239 |
+
}
|
| 3240 |
+
if(!field_id && !window['check_submit'+form_id]) {
|
| 3241 |
+
jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){
|
| 3242 |
+
jQuery(this).change(function() {
|
| 3243 |
+
if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0){
|
| 3244 |
+
wd_is_filled(form_id, wdid);
|
| 3245 |
+
}
|
| 3246 |
+
else{
|
| 3247 |
+
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 3248 |
+
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 3249 |
+
}
|
| 3250 |
+
});
|
| 3251 |
+
});
|
| 3252 |
+
}
|
| 3253 |
+
}
|
| 3254 |
+
else if(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') =="text") {
|
| 3255 |
+
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 3256 |
+
var count_input_matrix = 0;
|
| 3257 |
+
jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){
|
| 3258 |
+
if(jQuery(this).val() != "")
|
| 3259 |
+
count_input_matrix ++;
|
| 3260 |
+
});
|
| 3261 |
+
if(count_input_matrix == 0)
|
| 3262 |
+
not_filled[wdid] = true;
|
| 3263 |
+
}
|
| 3264 |
+
if(!field_id && !window['check_submit'+form_id]){
|
| 3265 |
+
jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){
|
| 3266 |
+
jQuery(this)
|
| 3267 |
+
.focus(function() {
|
| 3268 |
+
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 3269 |
+
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 3270 |
+
})
|
| 3271 |
+
.blur(function() {
|
| 3272 |
+
wd_is_filled(form_id, wdid);
|
| 3273 |
+
});
|
| 3274 |
+
});
|
| 3275 |
+
}
|
| 3276 |
+
}
|
| 3277 |
+
else {
|
| 3278 |
+
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 3279 |
+
var count_select_matrix = 0;
|
| 3280 |
+
jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] select"), function( i, val ){
|
| 3281 |
+
if(jQuery(this).val() != "")
|
| 3282 |
+
count_select_matrix ++;
|
| 3283 |
+
});
|
| 3284 |
+
if(count_select_matrix == 0)
|
| 3285 |
+
not_filled[wdid] = true;
|
| 3286 |
+
}
|
| 3287 |
+
if(!field_id && !window['check_submit'+form_id]){
|
| 3288 |
+
jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] select"), function( i, val ){
|
| 3289 |
+
jQuery(this).focus(function() {
|
| 3290 |
+
if(jQuery(this).val() == ""){
|
| 3291 |
+
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 3292 |
+
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 3293 |
+
}
|
| 3294 |
+
}).change(function() {
|
| 3295 |
+
wd_is_filled(form_id, wdid);
|
| 3296 |
+
}).blur(function() {
|
| 3297 |
+
wd_is_filled(form_id, wdid);
|
| 3298 |
+
});
|
| 3299 |
+
});
|
| 3300 |
+
}
|
| 3301 |
+
}
|
| 3302 |
+
break;
|
| 3303 |
+
}
|
| 3304 |
+
case 'type_send_copy': {
|
| 3305 |
+
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 3306 |
+
if(jQuery("div[wdid='"+ wdid +"'] input:checked").length == 0){
|
| 3307 |
+
not_filled[wdid] = true;
|
| 3308 |
+
}
|
| 3309 |
+
}
|
| 3310 |
+
if(!field_id && !window['check_submit'+form_id]){
|
| 3311 |
+
jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").change(function() {
|
| 3312 |
+
if(jQuery("div[wdid='"+ wdid +"'] input:checked").length == 0){
|
| 3313 |
+
wd_is_filled(form_id, wdid);
|
| 3314 |
+
}
|
| 3315 |
+
else {
|
| 3316 |
+
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 3317 |
+
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 3318 |
+
}
|
| 3319 |
+
});
|
| 3320 |
+
}
|
| 3321 |
+
break;
|
| 3322 |
+
}
|
| 3323 |
+
case 'type_captcha':
|
| 3324 |
+
case 'type_arithmetic_captcha': {
|
| 3325 |
+
var element = "";
|
| 3326 |
+
if(window['labels_and_ids'+form_id][wdid] == 'type_captcha') {
|
| 3327 |
+
element = '#wd_captcha_input' + form_id;
|
| 3328 |
+
}
|
| 3329 |
+
else {
|
| 3330 |
+
element = '#wd_arithmetic_captcha_input' + form_id;
|
| 3331 |
+
}
|
| 3332 |
+
if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") {
|
| 3333 |
+
if(jQuery(element).val() == ""){
|
| 3334 |
+
jQuery(".message_captcha").html("");
|
| 3335 |
+
not_filled[wdid] = element;
|
| 3336 |
+
}
|
| 3337 |
+
}
|
| 3338 |
+
if(!field_id && !window['check_submit'+form_id]){
|
| 3339 |
+
jQuery(element).focus(function() {
|
| 3340 |
+
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 3341 |
+
jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label");
|
| 3342 |
+
}).blur(function() {
|
| 3343 |
+
wd_is_filled(form_id, wdid);
|
| 3344 |
+
});
|
| 3345 |
+
}
|
| 3346 |
+
break;
|
| 3347 |
+
}
|
| 3348 |
+
}
|
| 3349 |
+
}
|
| 3350 |
+
});
|
| 3351 |
+
if (Object.keys(not_filled).length === 0
|
| 3352 |
+
&& Object.keys(window["check_before_submit" + form_id]).length === 0) {
|
| 3353 |
+
return true;
|
| 3354 |
+
}
|
| 3355 |
+
else {
|
| 3356 |
+
if (Object.keys(not_filled).length !== 0) {
|
| 3357 |
+
jQuery.each( not_filled, function( wdid, elem ) {
|
| 3358 |
+
jQuery("#form"+form_id+" #wd_required_"+wdid).remove();
|
| 3359 |
+
jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-element-section:first").parent().parent().append("<div id='wd_required_"+wdid+"' class='fm-not-filled'>" + fm_objectL10n.fm_field_is_required + "</div>");
|
| 3360 |
+
jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label");
|
| 3361 |
+
});
|
| 3362 |
+
}
|
| 3363 |
+
if(!field_id){
|
| 3364 |
+
scroll_on_element(form_id);
|
| 3365 |
+
}
|
| 3366 |
+
window['check_submit'+form_id] = 1;
|
| 3367 |
+
return false;
|
| 3368 |
+
}
|
| 3369 |
+
}
|
| 3370 |
+
|
| 3371 |
+
function wd_check_price_min_max(form_id, price_nim_max) {
|
| 3372 |
+
var x = jQuery("#form" + form_id);
|
| 3373 |
+
var check_price_min_max = price_nim_max ? price_nim_max : window['check_paypal_price_min_max'+form_id];
|
| 3374 |
+
var find_wrong_price = false;
|
| 3375 |
+
jQuery.each( check_price_min_max, function( wdid, min_max_option ) {
|
| 3376 |
+
var element = "#wdform_" + wdid + "_element" + form_id;
|
| 3377 |
+
var range_min = min_max_option[3] ? min_max_option[3] : 0;
|
| 3378 |
+
var range_max = min_max_option[4] ? min_max_option[4] : -1;
|
| 3379 |
+
if((min_max_option[2] ? true : false) || jQuery(element).val()!=min_max_option[1]) {
|
| 3380 |
+
if((range_max!=-1 && parseFloat(jQuery(element).val()) > range_max) || parseFloat(jQuery(element).val()) < range_min) {
|
| 3381 |
+
jQuery("#form"+form_id+" #wd_price_"+wdid).remove();
|
| 3382 |
+
x.find(jQuery("div[wdid='"+wdid+"'] .wdform-element-section")).parent().parent().append("<div id='wd_price_"+wdid+"' class='fm-not-filled'>" + fm_objectL10n.fm_min_max_check_1 + min_max_option[0] + fm_objectL10n.fm_min_max_check_2 + (min_max_option[3] ? min_max_option[3] : 0) + '-' + (min_max_option[4] ? min_max_option[4] : "any") + "</div>");
|
| 3383 |
+
jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label_price");
|
| 3384 |
+
find_wrong_price = true;
|
| 3385 |
+
if(!price_nim_max) {
|
| 3386 |
+
scroll_on_element(form_id);
|
| 3387 |
+
}
|
| 3388 |
+
}
|
| 3389 |
+
}
|
| 3390 |
+
});
|
| 3391 |
+
if(find_wrong_price === false) {
|
| 3392 |
+
return true;
|
| 3393 |
+
}
|
| 3394 |
+
return false;
|
| 3395 |
+
}
|
| 3396 |
+
|
| 3397 |
+
function wd_spinner_check(form_id, spinner_check_field) {
|
| 3398 |
+
var x = jQuery("#form" + form_id);
|
| 3399 |
+
var find_wrong_values = false;
|
| 3400 |
+
var spinner_check = spinner_check_field ? spinner_check_field : window['spinner_check'+form_id];
|
| 3401 |
+
jQuery.each( spinner_check, function( wdid, spinner_values ) {
|
| 3402 |
+
var element = "#wdform_" + wdid + "_element" + form_id;
|
| 3403 |
+
if(x.find(jQuery("div[wdid='"+wdid+"']")).length != 0 && x.find(jQuery("div[wdid='"+wdid+"']")).css("display") != "none") {
|
| 3404 |
+
if(parseInt(jQuery(element).val()) < parseInt(spinner_values[0]) || parseInt(jQuery(element).val()) > parseInt(spinner_values[1])) {
|
| 3405 |
+
jQuery("#form"+form_id+" #wd_price_"+wdid).remove();
|
| 3406 |
+
x.find(jQuery("div[wdid='"+wdid+"'] .wdform-element-section")).parent().parent().append("<div id='wd_price_"+wdid+"' class='fm-not-filled'>" + fm_objectL10n.fm_spinner_check + (spinner_values[0] ? spinner_values[0] : 0) + '-' + (spinner_values[1] ? spinner_values[1] : "any") + "</div>");
|
| 3407 |
+
jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label_price");
|
| 3408 |
+
find_wrong_values = true;
|
| 3409 |
+
if(!spinner_check_field) {
|
| 3410 |
+
scroll_on_element(form_id);
|
| 3411 |
+
}
|
| 3412 |
+
}
|
| 3413 |
+
}
|
| 3414 |
+
});
|
| 3415 |
+
if(find_wrong_values === false) {
|
| 3416 |
+
return true;
|
| 3417 |
+
}
|
| 3418 |
+
return false;
|
| 3419 |
+
}
|
| 3420 |
+
|
| 3421 |
+
function fmscrollHandler(form_id) {
|
| 3422 |
+
var scrollPercent = 100 * jQuery(window).scrollTop() / (jQuery(document).height() - jQuery(window).height());
|
| 3423 |
+
if(!jQuery("#fm-scrollbox" + form_id).hasClass("fm-minimized") && scrollPercent >= window["scrollbox_trigger_point" + form_id]) {
|
| 3424 |
+
setTimeout(function() {
|
| 3425 |
+
jQuery("#fm-scrollbox" + form_id).removeClass("fm-animated fadeOutDown").addClass("fm-animated fadeInUp");
|
| 3426 |
+
jQuery("#fm-scrollbox" + form_id).css("visibility", "");
|
| 3427 |
+
jQuery("#fm-scrollbox" + form_id + " .fm-header-img").addClass("fm-animated " + window["header_image_animation" + form_id]);
|
| 3428 |
+
}, window["scrollbox_loading_delay" + form_id] * 1000);
|
| 3429 |
+
} else {
|
| 3430 |
+
if(window["scrollbox_auto_hide" + form_id]) {
|
| 3431 |
+
jQuery("#fm-scrollbox" + form_id + " .fm-header-img").removeClass("fm-animated " + window["header_image_animation" + form_id]);
|
| 3432 |
+
jQuery("#fm-scrollbox" + form_id).removeClass("fm-animated fadeInUp").addClass("fm-animated fadeOutDown");
|
| 3433 |
+
}
|
| 3434 |
+
}
|
| 3435 |
+
}
|
| 3436 |
+
|
| 3437 |
+
function fm_submit_form(form_id) {
|
| 3438 |
+
if (typeof window["before_submit" + form_id] == 'function') {
|
| 3439 |
+
if (window["before_submit" + form_id]()) {
|
| 3440 |
+
return false;
|
| 3441 |
+
}
|
| 3442 |
+
}
|
| 3443 |
+
|
| 3444 |
+
if (!fm_check(0, form_id)) {
|
| 3445 |
+
return false;
|
| 3446 |
+
}
|
| 3447 |
+
|
| 3448 |
+
jQuery("#form" + form_id + " button").each(function () {
|
| 3449 |
+
jQuery(this).attr('disabled', 'disabled');
|
| 3450 |
+
});
|
| 3451 |
+
|
| 3452 |
+
jQuery("<input type=\"hidden\" name=\"save_or_submit"+form_id+"\" value =\"submit\" />").appendTo("#form"+form_id);
|
| 3453 |
+
window["onsubmit_js" + form_id]();
|
| 3454 |
+
|
| 3455 |
+
if (window['checkStripe' + form_id] == 1) {
|
| 3456 |
+
var jq_mainForm = jQuery("form[id='form"+form_id+"']");
|
| 3457 |
+
if (jq_mainForm.find(".wdfm_stripe_elem").first().parent().parents(".wdform_row").is(":visible")) {
|
| 3458 |
+
wdfm_call_stripe();
|
| 3459 |
+
}
|
| 3460 |
+
else {
|
| 3461 |
+
if (jQuery("#form"+form_id).find('.g-recaptcha[data-size=invisible]').length > 0) {
|
| 3462 |
+
grecaptcha.execute();
|
| 3463 |
+
}
|
| 3464 |
+
else {
|
| 3465 |
+
fm_submit(form_id);
|
| 3466 |
+
}
|
| 3467 |
+
}
|
| 3468 |
+
}
|
| 3469 |
+
else {
|
| 3470 |
+
if (jQuery("#form"+form_id).find('.g-recaptcha[data-size=invisible]').length > 0) {
|
| 3471 |
+
grecaptcha.execute();
|
| 3472 |
+
}
|
| 3473 |
+
else {
|
| 3474 |
+
fm_submit(form_id);
|
| 3475 |
+
}
|
| 3476 |
+
}
|
| 3477 |
+
}
|
| 3478 |
+
|
| 3479 |
+
function fm_submit(form_id) {
|
| 3480 |
+
jQuery("#form"+form_id).submit();
|
| 3481 |
+
}
|
| 3482 |
+
|
| 3483 |
+
function fm_reset_form(form_id) {
|
| 3484 |
+
if ( typeof window["before_reset" + form_id] == 'function' ) {
|
| 3485 |
+
window["before_reset" + form_id]();
|
| 3486 |
+
}
|
| 3487 |
+
jQuery.each(window['labels_and_ids'+form_id], function (index, elem) {
|
| 3488 |
+
switch(elem) {
|
| 3489 |
+
case "type_text":
|
| 3490 |
+
case "type_textarea":
|
| 3491 |
+
case "type_number":
|
| 3492 |
+
case "type_spinner":
|
| 3493 |
+
case 'type_own_select':
|
| 3494 |
+
case 'type_country':
|
| 3495 |
+
case 'type_date':
|
| 3496 |
+
case 'type_date_new':
|
| 3497 |
+
case 'type_hidden':
|
| 3498 |
+
case 'type_paypal_price_new':
|
| 3499 |
+
case 'type_phone_new':
|
| 3500 |
+
jQuery("#wdform_"+index+"_element"+form_id).val('');
|
| 3501 |
+
break;
|
| 3502 |
+
case 'type_submitter_mail':
|
| 3503 |
+
case 'type_password':
|
| 3504 |
+
jQuery("#wdform_"+index+"_element"+form_id).val('');
|
| 3505 |
+
if(jQuery("#wdform_"+index+"_1_element"+form_id)){
|
| 3506 |
+
jQuery("#wdform_"+index+"_1_element"+form_id).val('');
|
| 3507 |
+
|
| 3508 |
+
if(jQuery("#confirm_"+index+"_"+form_id))
|
| 3509 |
+
jQuery("#confirm_"+index+"_"+form_id).remove();
|
| 3510 |
+
|
| 3511 |
+
if(elem == 'type_submitter_mail' && jQuery("#check_email_"+index+"_"+form_id))
|
| 3512 |
+
jQuery("#check_email_"+index+"_"+form_id).remove();
|
| 3513 |
+
}
|
| 3514 |
+
break;
|
| 3515 |
+
case 'type_date_range':
|
| 3516 |
+
jQuery("#wdform_"+index+"_element"+form_id+"0").val('');
|
| 3517 |
+
jQuery("#wdform_"+index+"_element"+form_id+"1").val('');
|
| 3518 |
+
break;
|
| 3519 |
+
|
| 3520 |
+
case 'type_send_copy':
|
| 3521 |
+
jQuery("#wdform_"+index+"_element"+form_id).prop('checked', false);
|
| 3522 |
+
break;
|
| 3523 |
+
case 'type_phone':
|
| 3524 |
+
jQuery("#wdform_"+index+"_element_first"+form_id+", #wdform_"+index+"_element_last"+form_id).val('');
|
| 3525 |
+
break;
|
| 3526 |
+
|
| 3527 |
+
case 'type_name':
|
| 3528 |
+
jQuery("#wdform_"+index+"_element_first"+form_id+", #wdform_"+index+"_element_last"+form_id+", #wdform_"+index+"_element_title"+form_id+", #wdform_"+index+"_element_middle"+form_id).val('');
|
| 3529 |
+
break;
|
| 3530 |
+
|
| 3531 |
+
case 'type_address':
|
| 3532 |
+
jQuery("#wdform_"+index+"_street1"+form_id+", #wdform_"+index+"_street2"+form_id+", #wdform_"+index+"_city"+form_id+", #wdform_"+index+"_state"+form_id+", #wdform_"+index+"_postal"+form_id+", #wdform_"+index+"_country"+form_id).val('');
|
| 3533 |
+
break;
|
| 3534 |
+
|
| 3535 |
+
case 'type_checkbox':
|
| 3536 |
+
jQuery("#form"+form_id+" div[wdid='"+index+"'] .checkbox-div input").prop('checked', false);
|
| 3537 |
+
jQuery("#wdform_"+index+"_other_br"+form_id).remove();
|
| 3538 |
+
jQuery("#wdform_"+index+"_other_input"+form_id).remove();
|
| 3539 |
+
break;
|
| 3540 |
+
|
| 3541 |
+
case 'type_radio':
|
| 3542 |
+
jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop('checked', false);
|
| 3543 |
+
jQuery("#wdform_"+index+"_other_br"+form_id).remove();
|
| 3544 |
+
jQuery("#wdform_"+index+"_other_input"+form_id).remove();
|
| 3545 |
+
break;
|
| 3546 |
+
|
| 3547 |
+
case 'type_time':
|
| 3548 |
+
jQuery("#wdform_"+index+"_hh"+form_id+", #wdform_"+index+"_mm"+form_id+", #wdform_"+index+"_ss"+form_id+", #wdform_"+index+"_am_pm"+form_id).val('');
|
| 3549 |
+
break;
|
| 3550 |
+
|
| 3551 |
+
case 'type_date_fields':
|
| 3552 |
+
jQuery("#wdform_"+index+"_day"+form_id+", #wdform_"+index+"_month"+form_id+", #wdform_"+index+"_year"+form_id).val('');
|
| 3553 |
+
break;
|
| 3554 |
+
|
| 3555 |
+
case 'type_file_upload':
|
| 3556 |
+
jQuery("#wdform_"+index+"_element"+form_id+"_save").remove();
|
| 3557 |
+
break;
|
| 3558 |
+
|
| 3559 |
+
case 'type_paypal_price':
|
| 3560 |
+
jQuery("#wdform_"+index+"_element_dollars"+form_id+", #wdform_"+index+"_element_cents"+form_id).val('');
|
| 3561 |
+
break;
|
| 3562 |
+
|
| 3563 |
+
case 'type_paypal_select':
|
| 3564 |
+
jQuery("#wdform_"+index+"_element"+form_id+", #wdform_"+index+"_element_quantity"+form_id+", #form"+form_id+" div[wdid='"+index+"'] .paypal-property select").val('');
|
| 3565 |
+
break;
|
| 3566 |
+
|
| 3567 |
+
case 'type_paypal_radio':
|
| 3568 |
+
jQuery("#wdform_"+index+"_element_quantity"+form_id+",#form"+form_id+" div[wdid='"+index+"'] .paypal-property select").val('');
|
| 3569 |
+
jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop('checked', false);
|
| 3570 |
+
break;
|
| 3571 |
+
|
| 3572 |
+
case 'type_paypal_shipping':
|
| 3573 |
+
jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop('checked', false);
|
| 3574 |
+
break;
|
| 3575 |
+
|
| 3576 |
+
case 'type_paypal_checkbox':
|
| 3577 |
+
jQuery("#wdform_"+index+"_element_quantity"+form_id+",#form"+form_id+" div[wdid='"+index+"'] .paypal-property select").val('');
|
| 3578 |
+
jQuery("#form"+form_id+" div[wdid='"+index+"'] .checkbox-div input").prop('checked', false);
|
| 3579 |
+
break;
|
| 3580 |
+
|
| 3581 |
+
case 'type_star_rating':
|
| 3582 |
+
jQuery("#wdform_"+index+"_selected_star_amount"+form_id).val('');
|
| 3583 |
+
jQuery("#wdform_"+index+"_element"+form_id+" img").attr('src', fm_objectL10n.plugin_url + '/images/star.png');
|
| 3584 |
+
break;
|
| 3585 |
+
|
| 3586 |
+
case 'type_scale_rating':
|
| 3587 |
+
jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop('checked', false);
|
| 3588 |
+
break;
|
| 3589 |
+
|
| 3590 |
+
case 'type_slider':
|
| 3591 |
+
jQuery("#wdform_"+index+"_element"+form_id).slider({
|
| 3592 |
+
value: eval(0),
|
| 3593 |
+
});
|
| 3594 |
+
jQuery("#wdform_"+index+"_element_value"+form_id).html('0');
|
| 3595 |
+
break;
|
| 3596 |
+
|
| 3597 |
+
case 'type_range':
|
| 3598 |
+
jQuery("#wdform_"+index+"_element"+form_id+"0, #wdform_"+index+"_element"+form_id+"1").val('');
|
| 3599 |
+
break;
|
| 3600 |
+
|
| 3601 |
+
case 'type_grading':
|
| 3602 |
+
jQuery("#wdform_"+index+"_element"+form_id+" input").val('');
|
| 3603 |
+
break;
|
| 3604 |
+
|
| 3605 |
+
case 'type_matrix':
|
| 3606 |
+
jQuery("#wdform_"+index+"_element"+form_id+" .radio-div input").prop('checked', false);
|
| 3607 |
+
jQuery("#wdform_"+index+"_element"+form_id+" .checkbox-div input").prop('checked', false);
|
| 3608 |
+
jQuery("#wdform_"+index+"_element"+form_id+" input[type='text']").val('');
|
| 3609 |
+
jQuery("#wdform_"+index+"_element"+form_id+" select").val('');
|
| 3610 |
+
break;
|
| 3611 |
+
|
| 3612 |
+
case 'type_paypal_total':
|
| 3613 |
+
jQuery("#wdform_"+index+"div_total"+form_id).html('$0');
|
| 3614 |
+
jQuery("#wdform_"+index+"paypal_products"+form_id).empty();
|
| 3615 |
+
break;
|
| 3616 |
+
default:
|
| 3617 |
+
break;
|
| 3618 |
+
}
|
| 3619 |
+
});
|
| 3620 |
+
}
|
| 3621 |
+
|
| 3622 |
+
function fm_save_form(form_id) {
|
| 3623 |
+
jQuery("<input type=\"hidden\" name=\"save_or_submit"+form_id+"\" value =\"save\" />").appendTo("#form"+form_id);
|
| 3624 |
+
window["onsubmit_js" + form_id]();
|
| 3625 |
+
jQuery("#form" + form_id + " button").each(function () {
|
| 3626 |
+
jQuery(this).attr('disabled', 'disabled');
|
| 3627 |
+
});
|
| 3628 |
+
jQuery("#form"+form_id).submit();
|
| 3629 |
+
}
|
| 3630 |
+
|
| 3631 |
+
function fm_clear_form(form_id) {
|
| 3632 |
+
var clear_data = confirm(fm_objectL10n.fm_clear_data);
|
| 3633 |
+
if (clear_data == true) {
|
| 3634 |
+
jQuery("#form" + form_id + " button").each(function () {
|
| 3635 |
+
jQuery(this).attr('disabled', 'disabled');
|
| 3636 |
+
});
|
| 3637 |
+
jQuery.get(fm_objectL10n.form_maker_admin_ajax + '?action=FMClearProg&addon_task=clear_data&form_id=' + form_id).done(function() {
|
| 3638 |
+
window.location = jQuery('#form' + form_id).attr('action');
|
| 3639 |
+
});
|
| 3640 |
+
}
|
| 3641 |
+
}
|
| 3642 |
+
|
| 3643 |
+
function formOnload(form_id) {
|
| 3644 |
+
if (navigator.userAgent.toLowerCase().indexOf('msie') != -1 && parseInt(navigator.userAgent.toLowerCase().split('msie')[1]) === 8) {
|
| 3645 |
+
jQuery("#form" + form_id).find(jQuery("input[type='radio']")).click(function() {
|
| 3646 |
+
jQuery("input[type='radio']+label").removeClass('if-ie-div-label');
|
| 3647 |
+
jQuery("input[type='radio']:checked+label").addClass('if-ie-div-label')
|
| 3648 |
+
});
|
| 3649 |
+
jQuery("#form" + form_id).find(jQuery("input[type='radio']:checked+label")).addClass('if-ie-div-label');
|
| 3650 |
+
jQuery("#form" + form_id).find(jQuery("input[type='checkbox']")).click(function() {
|
| 3651 |
+
jQuery("input[type='checkbox']+label").removeClass('if-ie-div-label');
|
| 3652 |
+
jQuery("input[type='checkbox']:checked+label").addClass('if-ie-div-label')
|
| 3653 |
+
});
|
| 3654 |
+
jQuery("#form" + form_id).find(jQuery("input[type='checkbox']:checked+label")).addClass('if-ie-div-label');
|
| 3655 |
+
}
|
| 3656 |
+
|
| 3657 |
+
jQuery.each(window["check_regExp_all" + form_id], function( wdid, exp ) {
|
| 3658 |
+
var exp_array = {};
|
| 3659 |
+
exp_array[wdid] = exp;
|
| 3660 |
+
jQuery("div[wdid='" + wdid + "'] input").blur(function() {
|
| 3661 |
+
wd_check_regExp(form_id, exp_array);
|
| 3662 |
+
}).focus(function() {
|
| 3663 |
+
jQuery("#form" + form_id + " #wd_exp_"+wdid).remove();
|
| 3664 |
+
jQuery("#form" + form_id + " div[wdid='" + wdid + "'] .wdform-label-section:first .error_label_exp").removeClass("error_label_exp")
|
| 3665 |
+
});
|
| 3666 |
+
});
|
| 3667 |
+
|
| 3668 |
+
jQuery.each(window["check_paypal_price_min_max" + form_id], function( wdid, price_min_max_option ) {
|
| 3669 |
+
var price_min_max_array = {};
|
| 3670 |
+
price_min_max_array[wdid] = price_min_max_option;
|
| 3671 |
+
jQuery("div[wdid='" + wdid + "'] input").blur(function() {
|
| 3672 |
+
wd_check_price_min_max(form_id, price_min_max_array)
|
| 3673 |
+
}).focus(function() {
|
| 3674 |
+
jQuery("#form" + form_id + " #wd_price_" + wdid).remove();
|
| 3675 |
+
jQuery("#form" + form_id + " div[wdid='" + wdid + "'] .wdform-label-section:first .error_label_price").removeClass("error_label_price")
|
| 3676 |
+
});
|
| 3677 |
+
});
|
| 3678 |
+
|
| 3679 |
+
jQuery.each(window["spinner_check" + form_id], function( wdid, spinner_min_max ) {
|
| 3680 |
+
var spinner_min_max_array = {};
|
| 3681 |
+
spinner_min_max_array[wdid] = spinner_min_max;
|
| 3682 |
+
jQuery("div[wdid='" + wdid + "'] input").blur(function() {
|
| 3683 |
+
wd_spinner_check(form_id, spinner_min_max_array)
|
| 3684 |
+
}).focus(function() {
|
| 3685 |
+
jQuery("#form" + form_id + " #wd_price_" + wdid).remove();
|
| 3686 |
+
jQuery("#form" + form_id + " div[wdid='" + wdid + "'] .wdform-label-section:first .error_label_price").removeClass("error_label_price")
|
| 3687 |
+
});
|
| 3688 |
+
});
|
| 3689 |
+
|
| 3690 |
+
jQuery.each(window["file_upload_check" + form_id], function( wdid, upload_types ) {
|
| 3691 |
+
var upload_types_array = {};
|
| 3692 |
+
upload_types_array[wdid] = upload_types;
|
| 3693 |
+
jQuery("div[wdid='" + wdid + "'] input").change(function() {
|
| 3694 |
+
wd_file_upload_check(form_id, upload_types_array);
|
| 3695 |
+
});
|
| 3696 |
+
});
|
| 3697 |
+
|
| 3698 |
+
/* Prevent form from being submitted by hitting enter key on inputs. */
|
| 3699 |
+
jQuery('#form' + form_id + ' input').on('keypress', function (e) {
|
| 3700 |
+
var key_code = (e.keyCode ? e.keyCode : e.which);
|
| 3701 |
+
if (key_code == 13) { /*Enter keycode*/
|
| 3702 |
+
fm_submit_form(form_id);
|
| 3703 |
+
return false;
|
| 3704 |
+
}
|
| 3705 |
+
});
|
| 3706 |
+
|
| 3707 |
+
jQuery("div[type='type_number'] input, div[type='type_phone'] input, div[type='type_spinner'] input, div[type='type_range'] input, .wdform-quantity, div[type='type_paypal_price_new'] input").keypress(function(evt) {
|
| 3708 |
+
return check_isnum(evt);
|
| 3709 |
+
});
|
| 3710 |
+
|
| 3711 |
+
jQuery("div[type='type_grading'] input").keypress(function(evt) {
|
| 3712 |
+
return check_isnum_or_minus(evt);
|
| 3713 |
+
});
|
| 3714 |
+
|
| 3715 |
+
jQuery("div[type='type_paypal_checkbox'] input[type='checkbox'], div[type='type_paypal_radio'] input[type='radio'], div[type='type_paypal_shipping'] input[type='radio']").click(function() {
|
| 3716 |
+
set_total_value(form_id);
|
| 3717 |
+
});
|
| 3718 |
+
jQuery("div[type='type_paypal_select'] select, div[type='type_paypal_price'] input, div[type='type_paypal_price_new'] input").change(function() {
|
| 3719 |
+
set_total_value(form_id);
|
| 3720 |
+
});
|
| 3721 |
+
jQuery(".wdform-quantity").change(function() {
|
| 3722 |
+
set_total_value(form_id);
|
| 3723 |
+
});
|
| 3724 |
+
|
| 3725 |
+
jQuery("div[type='type_address'] select").change(function() {
|
| 3726 |
+
set_total_value(form_id);
|
| 3727 |
+
});
|
| 3728 |
+
|
| 3729 |
+
jQuery("div[type='type_time'] input").blur(function() {
|
| 3730 |
+
add_0(this);
|
| 3731 |
+
});
|
| 3732 |
+
|
| 3733 |
+
jQuery('.wdform-element-section').each(function () {
|
| 3734 |
+
if (jQuery(this).parent().parent().attr('type') == "type_stripe") {
|
| 3735 |
+
return true;
|
| 3736 |
+
}
|
| 3737 |
+
if ( !jQuery(this).parent()[0].style.width
|
| 3738 |
+
&& parseInt(jQuery(this).width()) != 0
|
| 3739 |
+
&& jQuery(this).parent().find(jQuery(".wdform-label-section")).length != 0 ) {
|
| 3740 |
+
if (jQuery(this).css('display') == "table-cell") {
|
| 3741 |
+
if (jQuery(this).parent().attr('type') != "type_captcha") {
|
| 3742 |
+
jQuery(this).parent().css('width', parseInt(jQuery(this).width()) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width) + 15);
|
| 3743 |
+
}
|
| 3744 |
+
else {
|
| 3745 |
+
jQuery(this).parent().css('width', (parseInt(jQuery(this).parent().find(jQuery(".captcha_input"))[0].style.width) * 2 + 50) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width) + 15);
|
| 3746 |
+
}
|
| 3747 |
+
}
|
| 3748 |
+
}
|
| 3749 |
+
if (parseInt(jQuery(this)[0].style.width.replace('px', '')) < parseInt(jQuery(this).css('min-width').replace('px', ''))) {
|
| 3750 |
+
jQuery(this).css('min-width', parseInt(jQuery(this)[0].style.width.replace('px', '')) - 10);
|
| 3751 |
+
}
|
| 3752 |
+
});
|
| 3753 |
+
|
| 3754 |
+
jQuery('.wdform-label').each(function() {
|
| 3755 |
+
if(parseInt(jQuery(this).height()) >= 2*parseInt(jQuery(this).css('line-height').replace('px', ''))) {
|
| 3756 |
+
jQuery(this).parent().css('max-width', jQuery(this).parent().width());
|
| 3757 |
+
jQuery(this).parent().css('width', '');
|
| 3758 |
+
}
|
| 3759 |
+
});
|
| 3760 |
+
|
| 3761 |
+
(function(jQuery) {
|
| 3762 |
+
jQuery.fn.shuffle = function() {
|
| 3763 |
+
var allElems = this.get(),
|
| 3764 |
+
getRandom = function(max) {
|
| 3765 |
+
return Math.floor(Math.random() * max);
|
| 3766 |
+
},
|
| 3767 |
+
shuffled = jQuery.map(allElems, function() {
|
| 3768 |
+
var random = getRandom(allElems.length),
|
| 3769 |
+
randEl = jQuery(allElems[parseInt(random)]).clone(true)[0];
|
| 3770 |
+
allElems.splice(random, 1);
|
| 3771 |
+
return randEl;
|
| 3772 |
+
});
|
| 3773 |
+
this.each(function(i) {
|
| 3774 |
+
jQuery(this).replaceWith(jQuery(shuffled[i]));
|
| 3775 |
+
});
|
| 3776 |
+
return jQuery(shuffled);
|
| 3777 |
+
};
|
| 3778 |
+
})(jQuery);
|
| 3779 |
+
|
| 3780 |
+
window["onload_js" + form_id]();
|
| 3781 |
+
window["condition_js" + form_id]();
|
| 3782 |
+
|
| 3783 |
+
if (typeof window["before_load" + form_id] == 'function') {
|
| 3784 |
+
window["before_load" + form_id]();
|
| 3785 |
+
}
|
| 3786 |
+
}
|
| 3787 |
+
|
| 3788 |
+
function fm_document_ready(form_id) {
|
| 3789 |
+
for(i=1; i<=30; i++) {
|
| 3790 |
+
if (document.getElementById(form_id + 'form_view' + i)) {
|
| 3791 |
+
window['form_view_count' + form_id]++;
|
| 3792 |
+
window['form_view_max' + form_id] = i;
|
| 3793 |
+
}
|
| 3794 |
+
}
|
| 3795 |
+
if (window['form_view_count' + form_id] > 1) {
|
| 3796 |
+
for (i = 1; i <= window['form_view_max' + form_id]; i++) {
|
| 3797 |
+
if (document.getElementById(form_id + 'form_view' + i)) {
|
| 3798 |
+
window['first_form_view' + form_id] = i;
|
| 3799 |
+
break;
|
| 3800 |
+
}
|
| 3801 |
+
}
|
| 3802 |
+
generate_page_nav(window['first_form_view' + form_id], form_id, window['form_view_count' + form_id], window['form_view_max' + form_id]);
|
| 3803 |
+
}
|
| 3804 |
+
fm_initilize_form(form_id);
|
| 3805 |
+
}
|
| 3806 |
+
|
| 3807 |
+
function fm_check(id, form_id) {
|
| 3808 |
+
if(!wd_is_filled(form_id)) {
|
| 3809 |
+
return false;
|
| 3810 |
+
}
|
| 3811 |
+
if(!wd_check_regExp(form_id)) {
|
| 3812 |
+
return false;
|
| 3813 |
+
}
|
| 3814 |
+
if(!wd_check_price_min_max(form_id)) {
|
| 3815 |
+
return false;
|
| 3816 |
+
}
|
| 3817 |
+
if(!wd_spinner_check(form_id)) {
|
| 3818 |
+
return false;
|
| 3819 |
+
}
|
| 3820 |
+
if(!wd_file_upload_check(form_id)) {
|
| 3821 |
+
return false;
|
| 3822 |
+
}
|
| 3823 |
+
if (false == window["check_js" + form_id](id, form_id)) {
|
| 3824 |
+
return false;
|
| 3825 |
+
}
|
| 3826 |
+
return true;
|
| 3827 |
+
}
|
| 3828 |
+
|
| 3829 |
+
function fmRecaptchaInit() {
|
| 3830 |
+
jQuery(".g-recaptcha").each(function () {
|
| 3831 |
+
type = jQuery(this).attr('data-size');
|
| 3832 |
+
if (type == 'invisible') {
|
| 3833 |
+
form_id = jQuery(this).attr('data-form_id');
|
| 3834 |
+
grecaptcha.render(jQuery(this).attr('id'), {
|
| 3835 |
+
'sitekey': jQuery(this).attr('data-sitekey'),
|
| 3836 |
+
'badge' : jQuery(this).attr('data-badge'),
|
| 3837 |
+
'callback': function () {
|
| 3838 |
+
fm_submit(form_id);
|
| 3839 |
+
}
|
| 3840 |
+
});
|
| 3841 |
+
}
|
| 3842 |
+
else {
|
| 3843 |
+
grecaptcha.render(jQuery(this).attr('id'), {
|
| 3844 |
+
'sitekey': jQuery(this).attr('data-sitekey'),
|
| 3845 |
+
'theme': 'light'
|
| 3846 |
+
})
|
| 3847 |
+
}
|
| 3848 |
+
});
|
| 3849 |
+
}
|
| 3850 |
+
|
| 3851 |
+
/**
|
| 3852 |
+
* Chnage state input.
|
| 3853 |
+
*
|
| 3854 |
+
* @param id
|
| 3855 |
+
* @param form_id
|
| 3856 |
+
*/
|
| 3857 |
+
function wd_change_state_input(id, form_id) {
|
| 3858 |
+
if ( document.getElementById(id + "_country" + form_id)
|
| 3859 |
+
&& document.getElementById(id + "_state" + form_id) ) {
|
| 3860 |
+
var flag = false;
|
| 3861 |
+
var state_input = document.getElementById(id + "_state" + form_id);
|
| 3862 |
+
if ( document.getElementById(id + "_country" + form_id).value == "United States" ) {
|
| 3863 |
+
var state = document.createElement('select');
|
| 3864 |
+
var states = fm_objectL10n.states;
|
| 3865 |
+
for (var r in states) {
|
| 3866 |
+
var option_ = document.createElement('option');
|
| 3867 |
+
option_.setAttribute("value", r);
|
| 3868 |
+
option_.innerHTML = states[r];
|
| 3869 |
+
state.appendChild(option_);
|
| 3870 |
+
}
|
| 3871 |
+
flag = true;
|
| 3872 |
+
}
|
| 3873 |
+
else {
|
| 3874 |
+
if ( document.getElementById(id + "_state" + form_id).tagName == 'SELECT' ) {
|
| 3875 |
+
var state = document.createElement('input');
|
| 3876 |
+
flag = true;
|
| 3877 |
+
}
|
| 3878 |
+
}
|
| 3879 |
+
if ( flag ) {
|
| 3880 |
+
state.setAttribute("type", 'text');
|
| 3881 |
+
state.setAttribute("id", id + "_state" + form_id);
|
| 3882 |
+
state.setAttribute("name", 'wdform_' + (parseInt(id.replace('wdform_', '')) + 3) + "_state" + form_id);
|
| 3883 |
+
state.setAttribute("class", "wd-width-100");
|
| 3884 |
+
var state_input_parent = state_input.parentNode;
|
| 3885 |
+
state_input_parent.removeChild(state_input);
|
| 3886 |
+
state_input_parent.insertBefore(state, state_input_parent.firstChild);
|
| 3887 |
+
}
|
| 3888 |
+
}
|
| 3889 |
+
}
|
languages/form_maker-ar.mo
CHANGED
|
Binary file
|
languages/form_maker-ar.po
CHANGED
|
@@ -2,8 +2,8 @@ msgid ""
|
|
| 2 |
msgstr ""
|
| 3 |
"Project-Id-Version: form_maker\n"
|
| 4 |
"Report-Msgid-Bugs-To: \n"
|
| 5 |
-
"POT-Creation-Date: 2017-11-
|
| 6 |
-
"PO-Revision-Date: 2017-11-
|
| 7 |
"Last-Translator: \n"
|
| 8 |
"Language-Team: \n"
|
| 9 |
"Language: ar\n"
|
|
@@ -22,215 +22,215 @@ msgstr ""
|
|
| 22 |
msgid "Form Maker"
|
| 23 |
msgstr ""
|
| 24 |
|
| 25 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 26 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:59
|
| 27 |
msgid "Forms"
|
| 28 |
msgstr ""
|
| 29 |
|
| 30 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 31 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 32 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Submissions_fm.php:141
|
| 33 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Submissions_fm.php:157
|
| 34 |
#, fuzzy
|
| 35 |
msgid "Submissions"
|
| 36 |
msgstr "مشاهدة تقديمها"
|
| 37 |
|
| 38 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 39 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Blocked_ips_fm.php:55
|
| 40 |
msgid "Blocked IPs"
|
| 41 |
msgstr ""
|
| 42 |
|
| 43 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 44 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 45 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Themes_fm.php:83
|
| 46 |
msgid "Themes"
|
| 47 |
msgstr ""
|
| 48 |
|
| 49 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 50 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Options_fm.php:23
|
| 51 |
msgid "Options"
|
| 52 |
msgstr ""
|
| 53 |
|
| 54 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 55 |
msgid "Pro Version"
|
| 56 |
msgstr ""
|
| 57 |
|
| 58 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 59 |
msgid "Uninstall"
|
| 60 |
msgstr ""
|
| 61 |
|
| 62 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 63 |
msgid "Add-ons"
|
| 64 |
msgstr ""
|
| 65 |
|
| 66 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 67 |
msgid "Number of items per page:"
|
| 68 |
msgstr ""
|
| 69 |
|
| 70 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 71 |
#, fuzzy
|
| 72 |
msgid "Nothing found."
|
| 73 |
msgstr "وقدم شيئا."
|
| 74 |
|
| 75 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 76 |
msgid "The captcha already has been created."
|
| 77 |
msgstr ""
|
| 78 |
|
| 79 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 80 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 81 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 82 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 83 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 84 |
msgid "Update"
|
| 85 |
msgstr ""
|
| 86 |
|
| 87 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 88 |
#, fuzzy
|
| 89 |
msgid "Add"
|
| 90 |
msgstr "عنوان"
|
| 91 |
|
| 92 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 93 |
msgid "Add Field"
|
| 94 |
msgstr ""
|
| 95 |
|
| 96 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 97 |
msgid "Edit Field"
|
| 98 |
msgstr ""
|
| 99 |
|
| 100 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 101 |
msgid "This field type is disabled in free version."
|
| 102 |
msgstr ""
|
| 103 |
|
| 104 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 105 |
msgid "Please upgrade to Paid version."
|
| 106 |
msgstr ""
|
| 107 |
|
| 108 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 109 |
msgid "Please install "
|
| 110 |
msgstr ""
|
| 111 |
|
| 112 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 113 |
msgid " add-on to use this feature."
|
| 114 |
msgstr ""
|
| 115 |
|
| 116 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 117 |
msgid ""
|
| 118 |
"To use this feature, please go to Form Options > Payment Options and select "
|
| 119 |
"\"Stripe\" as the Payment Method."
|
| 120 |
msgstr ""
|
| 121 |
|
| 122 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 123 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 124 |
msgid "Sunday"
|
| 125 |
msgstr ""
|
| 126 |
|
| 127 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 128 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 129 |
msgid "Monday"
|
| 130 |
msgstr ""
|
| 131 |
|
| 132 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 133 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 134 |
msgid "Tuesday"
|
| 135 |
msgstr ""
|
| 136 |
|
| 137 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 138 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 139 |
msgid "Wednesday"
|
| 140 |
msgstr ""
|
| 141 |
|
| 142 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 143 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 144 |
msgid "Thursday"
|
| 145 |
msgstr ""
|
| 146 |
|
| 147 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 148 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 149 |
msgid "Friday"
|
| 150 |
msgstr ""
|
| 151 |
|
| 152 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 153 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 154 |
msgid "Saturday"
|
| 155 |
msgstr ""
|
| 156 |
|
| 157 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 158 |
msgid "Leave empty to set the width to 100%."
|
| 159 |
msgstr ""
|
| 160 |
|
| 161 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 162 |
msgid ""
|
| 163 |
"The free version is limited up to 7 fields to add. If you need this "
|
| 164 |
"functionality, you need to buy the commercial version."
|
| 165 |
msgstr ""
|
| 166 |
|
| 167 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 168 |
msgid "Do you want to delete selected items?"
|
| 169 |
msgstr ""
|
| 170 |
|
| 171 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 172 |
msgid "You must select at least one item."
|
| 173 |
msgstr ""
|
| 174 |
|
| 175 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 176 |
msgid "You must select a form"
|
| 177 |
msgstr ""
|
| 178 |
|
| 179 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 180 |
msgid "Sorry, you are not allowed to access this page."
|
| 181 |
msgstr ""
|
| 182 |
|
| 183 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 184 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:
|
| 185 |
msgid "Can not upload this type of file"
|
| 186 |
msgstr "لا يمكن تحميل هذا النوع من الملفات"
|
| 187 |
|
| 188 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 189 |
msgid "Field is required"
|
| 190 |
msgstr "الحقل مطلوب"
|
| 191 |
|
| 192 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 193 |
msgid "The "
|
| 194 |
msgstr "ال"
|
| 195 |
|
| 196 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 197 |
msgid " value must be between "
|
| 198 |
msgstr "يجب أن تكون قيمة بين"
|
| 199 |
|
| 200 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 201 |
msgid "Value must be between "
|
| 202 |
msgstr "يجب أن تكون القيمة بين"
|
| 203 |
|
| 204 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 205 |
msgid "Are you sure you want to clear saved data?"
|
| 206 |
msgstr "هل أنت متأكد أنك تريد مسح البيانات المحفوظة؟"
|
| 207 |
|
| 208 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 209 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:3538
|
| 210 |
msgid "Your score should be less than"
|
| 211 |
msgstr "يجب أن تكون درجاتك أقل من "
|
| 212 |
|
| 213 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 214 |
#, fuzzy
|
| 215 |
msgid "This is not a valid time value."
|
| 216 |
msgstr "هذه ليست صيغة تاريخ صالحة."
|
| 217 |
|
| 218 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 219 |
#, fuzzy
|
| 220 |
msgid "This is not a valid number value."
|
| 221 |
msgstr "هذا ليس عنوان بريد إلكتروني صالح."
|
| 222 |
|
| 223 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 224 |
#, fuzzy
|
| 225 |
msgid "This is not a valid date value."
|
| 226 |
msgstr "هذه ليست صيغة تاريخ صالحة."
|
| 227 |
|
| 228 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 229 |
#, fuzzy, php-format
|
| 230 |
msgid "The year must be between %s and %s"
|
| 231 |
msgstr "يجب أن تكون قيمة بين"
|
| 232 |
|
| 233 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 234 |
msgid ""
|
| 235 |
"Oops! Seems like you installed the update over a quite old version of Form "
|
| 236 |
"Maker. Unfortunately, this version is deprecated.<br />Please contact Web-"
|
|
@@ -238,16 +238,16 @@ msgid ""
|
|
| 238 |
"issue as soon as possible."
|
| 239 |
msgstr ""
|
| 240 |
|
| 241 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 242 |
#, php-format
|
| 243 |
msgid "This section allows you to %s."
|
| 244 |
msgstr ""
|
| 245 |
|
| 246 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 247 |
msgid "Upgrade to paid version"
|
| 248 |
msgstr ""
|
| 249 |
|
| 250 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 251 |
msgid ""
|
| 252 |
"Form Maker plugin is a modern and advanced tool for easy and fast creating "
|
| 253 |
"of a WordPress Form. The backend interface is intuitive and user friendly "
|
|
@@ -255,118 +255,118 @@ msgid ""
|
|
| 255 |
"Forms."
|
| 256 |
msgstr ""
|
| 257 |
|
| 258 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 259 |
msgid "Easy to Use"
|
| 260 |
msgstr ""
|
| 261 |
|
| 262 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 263 |
msgid ""
|
| 264 |
"This responsive form maker plugin is one of the most easy-to-use form "
|
| 265 |
"builder solutions available on the market. Simple, yet powerful plugin "
|
| 266 |
"allows you to quickly and easily build any complex forms."
|
| 267 |
msgstr ""
|
| 268 |
|
| 269 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 270 |
msgid "Customizable Fields"
|
| 271 |
msgstr ""
|
| 272 |
|
| 273 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 274 |
msgid ""
|
| 275 |
"All the fields of Form Maker plugin are highly customizable, which allows "
|
| 276 |
"you to change almost every detail in the form and make it look exactly like "
|
| 277 |
"you want it to be."
|
| 278 |
msgstr ""
|
| 279 |
|
| 280 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 281 |
msgid ""
|
| 282 |
"You can view the submissions for each form you have. The plugin allows to "
|
| 283 |
"view submissions statistics, filter submission data and export in csv or xml "
|
| 284 |
"formats."
|
| 285 |
msgstr ""
|
| 286 |
|
| 287 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 288 |
msgid "Multi-Page Forms"
|
| 289 |
msgstr ""
|
| 290 |
|
| 291 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 292 |
msgid ""
|
| 293 |
"With the form builder plugin you can create muilti-page forms. Simply use "
|
| 294 |
"the page break field to separate the pages in your forms."
|
| 295 |
msgstr ""
|
| 296 |
|
| 297 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 298 |
msgid ""
|
| 299 |
"The WordPress Form Maker plugin comes with a wide range of customizable "
|
| 300 |
"themes. You can choose from a list of existing themes or simply create the "
|
| 301 |
"one that better fits your brand and website."
|
| 302 |
msgstr ""
|
| 303 |
|
| 304 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 305 |
msgid "Installing"
|
| 306 |
msgstr ""
|
| 307 |
|
| 308 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 309 |
msgid "Creating a new Form"
|
| 310 |
msgstr ""
|
| 311 |
|
| 312 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 313 |
msgid "Configuring Form Options"
|
| 314 |
msgstr ""
|
| 315 |
|
| 316 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 317 |
msgid "Description of The Form Fields"
|
| 318 |
msgstr ""
|
| 319 |
|
| 320 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 321 |
msgid "Selecting Options from Database"
|
| 322 |
msgstr ""
|
| 323 |
|
| 324 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 325 |
msgid "Publishing the Created Form"
|
| 326 |
msgstr ""
|
| 327 |
|
| 328 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 329 |
msgid "Blocking IPs"
|
| 330 |
msgstr ""
|
| 331 |
|
| 332 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 333 |
msgid "Managing Submissions"
|
| 334 |
msgstr ""
|
| 335 |
|
| 336 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 337 |
msgid "Publishing Submissions"
|
| 338 |
msgstr ""
|
| 339 |
|
| 340 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 341 |
#, php-format
|
| 342 |
msgid "Please update the %s add-on to start using."
|
| 343 |
msgstr ""
|
| 344 |
|
| 345 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 346 |
#, php-format
|
| 347 |
msgid "Please update the %s add-ons to start using."
|
| 348 |
msgstr ""
|
| 349 |
|
| 350 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 351 |
#, php-format
|
| 352 |
msgid ""
|
| 353 |
"%s advises: Install brand new FREE %s plugin to keep your forms and website "
|
| 354 |
"safe."
|
| 355 |
msgstr ""
|
| 356 |
|
| 357 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 358 |
msgid "More details"
|
| 359 |
msgstr ""
|
| 360 |
|
| 361 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 362 |
msgid "Backup WD"
|
| 363 |
msgstr ""
|
| 364 |
|
| 365 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 366 |
msgid "Support Forum"
|
| 367 |
msgstr ""
|
| 368 |
|
| 369 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 370 |
msgid "Rate"
|
| 371 |
msgstr ""
|
| 372 |
|
|
@@ -385,7 +385,7 @@ msgid "deleted"
|
|
| 385 |
msgstr "منجز"
|
| 386 |
|
| 387 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:28
|
| 388 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 389 |
msgid "Publish"
|
| 390 |
msgstr ""
|
| 391 |
|
|
@@ -394,7 +394,7 @@ msgid "published"
|
|
| 394 |
msgstr ""
|
| 395 |
|
| 396 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:32
|
| 397 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 398 |
msgid "Unpublish"
|
| 399 |
msgstr ""
|
| 400 |
|
|
@@ -412,19 +412,19 @@ msgstr ""
|
|
| 412 |
msgid "duplicated"
|
| 413 |
msgstr ""
|
| 414 |
|
| 415 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:
|
| 416 |
msgid "Create new form"
|
| 417 |
msgstr ""
|
| 418 |
|
| 419 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:
|
| 420 |
msgid "options"
|
| 421 |
msgstr ""
|
| 422 |
|
| 423 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:
|
| 424 |
msgid "layout"
|
| 425 |
msgstr ""
|
| 426 |
|
| 427 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:
|
| 428 |
msgid "display options"
|
| 429 |
msgstr ""
|
| 430 |
|
|
@@ -1017,7 +1017,7 @@ msgid "Appearance"
|
|
| 1017 |
msgstr ""
|
| 1018 |
|
| 1019 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Themes_fm.php:1080
|
| 1020 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1021 |
#, fuzzy
|
| 1022 |
msgid "Single Choice"
|
| 1023 |
msgstr "اختيارات"
|
|
@@ -1028,12 +1028,12 @@ msgid "Checked Parameters"
|
|
| 1028 |
msgstr ""
|
| 1029 |
|
| 1030 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Themes_fm.php:1220
|
| 1031 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1032 |
msgid "Multiple Choice"
|
| 1033 |
msgstr ""
|
| 1034 |
|
| 1035 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Themes_fm.php:1410
|
| 1036 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1037 |
msgid "Submit"
|
| 1038 |
msgstr ""
|
| 1039 |
|
|
@@ -1098,7 +1098,7 @@ msgid "Required"
|
|
| 1098 |
msgstr ""
|
| 1099 |
|
| 1100 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Themes_fm.php:2853
|
| 1101 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1102 |
msgid "File Upload"
|
| 1103 |
msgstr ""
|
| 1104 |
|
|
@@ -1119,8 +1119,8 @@ msgid "Street Address Line 2"
|
|
| 1119 |
msgstr "الشارع سطر العنوان 2"
|
| 1120 |
|
| 1121 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/models/Submissions_fm.php:357
|
| 1122 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 1123 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 1124 |
msgid "City"
|
| 1125 |
msgstr "مدينة"
|
| 1126 |
|
|
@@ -1133,8 +1133,8 @@ msgid "Postal / Zip Code"
|
|
| 1133 |
msgstr "البريدي / الرمز البريدي"
|
| 1134 |
|
| 1135 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/models/Submissions_fm.php:366
|
| 1136 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 1137 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 1138 |
msgid "Country"
|
| 1139 |
msgstr "بلد"
|
| 1140 |
|
|
@@ -1143,7 +1143,7 @@ msgid "IP"
|
|
| 1143 |
msgstr ""
|
| 1144 |
|
| 1145 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Blocked_ips_fm.php:116
|
| 1146 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1147 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Submissions_fm.php:484
|
| 1148 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Themes_fm.php:96
|
| 1149 |
msgid "Do you want to delete selected item?"
|
|
@@ -1163,222 +1163,223 @@ msgid "Front end submissions are disabled in free version."
|
|
| 1163 |
msgstr ""
|
| 1164 |
|
| 1165 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/FormMakerSubmits.php:43
|
| 1166 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1167 |
msgid "Date"
|
| 1168 |
msgstr "تاريخ"
|
| 1169 |
|
| 1170 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1171 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Themes_fm.php:70
|
| 1172 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Themes_fm.php:145
|
| 1173 |
msgid "Title"
|
| 1174 |
msgstr "لقب"
|
| 1175 |
|
| 1176 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1177 |
msgid "Type"
|
| 1178 |
msgstr ""
|
| 1179 |
|
| 1180 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1181 |
msgid "Shortcode"
|
| 1182 |
msgstr ""
|
| 1183 |
|
| 1184 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1185 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1186 |
msgid "BASIC FIELDS"
|
| 1187 |
msgstr ""
|
| 1188 |
|
| 1189 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1190 |
msgid "Single Line Text"
|
| 1191 |
msgstr ""
|
| 1192 |
|
| 1193 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1194 |
msgid "Paragraph Text"
|
| 1195 |
msgstr ""
|
| 1196 |
|
| 1197 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1198 |
#, fuzzy
|
| 1199 |
msgid "Number"
|
| 1200 |
msgstr "نوفمبر"
|
| 1201 |
|
| 1202 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1203 |
#, fuzzy
|
| 1204 |
msgid "Select"
|
| 1205 |
msgstr "تحديد تاريخ"
|
| 1206 |
|
| 1207 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1208 |
msgid "Recaptcha"
|
| 1209 |
msgstr ""
|
| 1210 |
|
| 1211 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1212 |
msgid "Simple Captcha"
|
| 1213 |
msgstr ""
|
| 1214 |
|
| 1215 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1216 |
msgid "USER INFO FIELDS"
|
| 1217 |
msgstr ""
|
| 1218 |
|
| 1219 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1220 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
|
|
|
| 1221 |
msgid "Name"
|
| 1222 |
msgstr ""
|
| 1223 |
|
| 1224 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1225 |
msgid "Email"
|
| 1226 |
msgstr ""
|
| 1227 |
|
| 1228 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1229 |
msgid "Phone"
|
| 1230 |
msgstr ""
|
| 1231 |
|
| 1232 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1233 |
msgid "Address"
|
| 1234 |
msgstr "عنوان"
|
| 1235 |
|
| 1236 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1237 |
#, fuzzy
|
| 1238 |
msgid "Mark on Map"
|
| 1239 |
msgstr "عرض على الخريطة"
|
| 1240 |
|
| 1241 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1242 |
#, fuzzy
|
| 1243 |
msgid "Country List"
|
| 1244 |
msgstr "بلد"
|
| 1245 |
|
| 1246 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1247 |
msgid "Date of Birth"
|
| 1248 |
msgstr ""
|
| 1249 |
|
| 1250 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1251 |
msgid "LAYOUT FIELDS"
|
| 1252 |
msgstr ""
|
| 1253 |
|
| 1254 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1255 |
msgid "HTML"
|
| 1256 |
msgstr ""
|
| 1257 |
|
| 1258 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1259 |
msgid "Section"
|
| 1260 |
msgstr ""
|
| 1261 |
|
| 1262 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1263 |
msgid "Page"
|
| 1264 |
msgstr ""
|
| 1265 |
|
| 1266 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1267 |
msgid "ADVANCED"
|
| 1268 |
msgstr ""
|
| 1269 |
|
| 1270 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1271 |
#, fuzzy
|
| 1272 |
msgid "Map"
|
| 1273 |
msgstr "قد"
|
| 1274 |
|
| 1275 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1276 |
msgid "Time"
|
| 1277 |
msgstr ""
|
| 1278 |
|
| 1279 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1280 |
msgid "Receive Copy"
|
| 1281 |
msgstr ""
|
| 1282 |
|
| 1283 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1284 |
msgid "Date Range"
|
| 1285 |
msgstr ""
|
| 1286 |
|
| 1287 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1288 |
msgid "Stars"
|
| 1289 |
msgstr ""
|
| 1290 |
|
| 1291 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1292 |
msgid "Rating"
|
| 1293 |
msgstr ""
|
| 1294 |
|
| 1295 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1296 |
msgid "Slider"
|
| 1297 |
msgstr ""
|
| 1298 |
|
| 1299 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1300 |
msgid "Range"
|
| 1301 |
msgstr ""
|
| 1302 |
|
| 1303 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1304 |
msgid "Grades"
|
| 1305 |
msgstr ""
|
| 1306 |
|
| 1307 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1308 |
#, fuzzy
|
| 1309 |
msgid "Table of Fields"
|
| 1310 |
msgstr "حدد حقل "
|
| 1311 |
|
| 1312 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1313 |
msgid "Hidden Input"
|
| 1314 |
msgstr ""
|
| 1315 |
|
| 1316 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1317 |
msgid "Custom Button"
|
| 1318 |
msgstr ""
|
| 1319 |
|
| 1320 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1321 |
msgid "Password"
|
| 1322 |
msgstr ""
|
| 1323 |
|
| 1324 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1325 |
#, fuzzy
|
| 1326 |
msgid "Phone-Area Code"
|
| 1327 |
msgstr "كود المنطقة"
|
| 1328 |
|
| 1329 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1330 |
msgid "Arithmetic Captcha"
|
| 1331 |
msgstr ""
|
| 1332 |
|
| 1333 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1334 |
msgid "PAYMENT"
|
| 1335 |
msgstr ""
|
| 1336 |
|
| 1337 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1338 |
msgid "Price"
|
| 1339 |
msgstr ""
|
| 1340 |
|
| 1341 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1342 |
msgid "Payment Select"
|
| 1343 |
msgstr ""
|
| 1344 |
|
| 1345 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1346 |
msgid "Payment Single Choice"
|
| 1347 |
msgstr ""
|
| 1348 |
|
| 1349 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1350 |
msgid "Payment Multiple Choice"
|
| 1351 |
msgstr ""
|
| 1352 |
|
| 1353 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1354 |
msgid "Shipping"
|
| 1355 |
msgstr ""
|
| 1356 |
|
| 1357 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1358 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 1359 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_submissions.php:635
|
| 1360 |
msgid "Total"
|
| 1361 |
msgstr "مجموع"
|
| 1362 |
|
| 1363 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1364 |
msgid "Stripe"
|
| 1365 |
msgstr ""
|
| 1366 |
|
| 1367 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1368 |
msgid "Toggle panel:"
|
| 1369 |
msgstr ""
|
| 1370 |
|
| 1371 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1372 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1373 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1374 |
msgid "Back to Form"
|
| 1375 |
msgstr ""
|
| 1376 |
|
| 1377 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1378 |
msgid "Form Maker Stripe Integration"
|
| 1379 |
msgstr ""
|
| 1380 |
|
| 1381 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1382 |
#, php-format
|
| 1383 |
msgid "Please install %s add-on to use this feature."
|
| 1384 |
msgstr ""
|
|
@@ -1388,15 +1389,20 @@ msgstr ""
|
|
| 1388 |
msgid "Save"
|
| 1389 |
msgstr ""
|
| 1390 |
|
| 1391 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Options_fm.php:
|
| 1392 |
#, php-format
|
| 1393 |
msgid "%s for your site from ReCaptcha website."
|
| 1394 |
msgstr ""
|
| 1395 |
|
| 1396 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Options_fm.php:
|
| 1397 |
msgid "Get ReCaptcha Site and Secret Keys"
|
| 1398 |
msgstr ""
|
| 1399 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1400 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Submissions_fm.php:187
|
| 1401 |
#, fuzzy
|
| 1402 |
msgid "Show Filters"
|
|
@@ -1442,9 +1448,9 @@ msgstr "يجب أن تكون القيمة بين "
|
|
| 1442 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:3038
|
| 1443 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:3120
|
| 1444 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:3202
|
| 1445 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 1446 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 1447 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 1448 |
msgid "Quantity"
|
| 1449 |
msgstr "كمية "
|
| 1450 |
|
|
@@ -2452,63 +2458,63 @@ msgid "Today"
|
|
| 2452 |
msgstr ""
|
| 2453 |
|
| 2454 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2455 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2456 |
msgid "January"
|
| 2457 |
msgstr "يناير"
|
| 2458 |
|
| 2459 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2460 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2461 |
msgid "February"
|
| 2462 |
msgstr "فبراير"
|
| 2463 |
|
| 2464 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2465 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2466 |
msgid "March"
|
| 2467 |
msgstr "مسيرة"
|
| 2468 |
|
| 2469 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2470 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2471 |
msgid "April"
|
| 2472 |
msgstr "أبريل"
|
| 2473 |
|
| 2474 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2475 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4289
|
| 2476 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2477 |
msgid "May"
|
| 2478 |
msgstr "قد"
|
| 2479 |
|
| 2480 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2481 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2482 |
msgid "June"
|
| 2483 |
msgstr "يونيو"
|
| 2484 |
|
| 2485 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2486 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2487 |
msgid "July"
|
| 2488 |
msgstr "يوليو"
|
| 2489 |
|
| 2490 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2491 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2492 |
msgid "August"
|
| 2493 |
msgstr "أغسطس"
|
| 2494 |
|
| 2495 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2496 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2497 |
msgid "September"
|
| 2498 |
msgstr "سبتمبر"
|
| 2499 |
|
| 2500 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2501 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2502 |
msgid "October"
|
| 2503 |
msgstr "أكتوبر"
|
| 2504 |
|
| 2505 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2506 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2507 |
msgid "November"
|
| 2508 |
msgstr "نوفمبر"
|
| 2509 |
|
| 2510 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2511 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2512 |
msgid "December"
|
| 2513 |
msgstr "ديسمبر"
|
| 2514 |
|
|
@@ -2647,35 +2653,35 @@ msgid "Your ip is blacklisted. Please contact the website administrator."
|
|
| 2647 |
msgstr ""
|
| 2648 |
"والقائمة السوداء الملكية الفكرية الخاصة بك. يرجى الاتصال بمسؤول الموقع. "
|
| 2649 |
|
| 2650 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:
|
| 2651 |
msgid "This is not a valid date format."
|
| 2652 |
msgstr "هذه ليست صيغة تاريخ صالحة."
|
| 2653 |
|
| 2654 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:
|
| 2655 |
msgid "The file exceeds the allowed size of"
|
| 2656 |
msgstr "ملف يتجاوز حجم المسموح به من"
|
| 2657 |
|
| 2658 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:
|
| 2659 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:
|
| 2660 |
msgid "Error, file cannot be moved."
|
| 2661 |
msgstr "خطأ، لا يمكن أن يتم نقل ملف."
|
| 2662 |
|
| 2663 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:
|
| 2664 |
#, fuzzy, php-format
|
| 2665 |
msgid "This field %s requires a unique entry."
|
| 2666 |
msgstr "هذا الحقل يتطلب٪ %s إدخال فريدة من نوعها، وقدم بالفعل هذه القيمة."
|
| 2667 |
|
| 2668 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:
|
| 2669 |
msgid "Nothing was submitted."
|
| 2670 |
msgstr "وقدم شيئا."
|
| 2671 |
|
| 2672 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:
|
| 2673 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:
|
| 2674 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:141
|
| 2675 |
msgid "Your form was successfully submitted."
|
| 2676 |
msgstr "وقدم النموذج الخاص بك بنجاح."
|
| 2677 |
|
| 2678 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:
|
| 2679 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:138
|
| 2680 |
msgid "Error, email was not sent."
|
| 2681 |
msgstr "خطأ، لم يتم إرسال البريد الإلكتروني."
|
|
@@ -2701,23 +2707,23 @@ msgstr "تم التحقق من بريدك الإلكتروني بنجاح."
|
|
| 2701 |
msgid "Verification link is invalid."
|
| 2702 |
msgstr "رابط التحقق غير صالح."
|
| 2703 |
|
| 2704 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2705 |
msgid "Password values don't match"
|
| 2706 |
msgstr "قيم كلمة المرور لا تتطابق"
|
| 2707 |
|
| 2708 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2709 |
msgid "The email addresses don't match"
|
| 2710 |
msgstr "عناوين البريد الإلكتروني لا تتطابق"
|
| 2711 |
|
| 2712 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2713 |
msgid "This is not a valid email address."
|
| 2714 |
msgstr "هذا ليس عنوان بريد إلكتروني صالح."
|
| 2715 |
|
| 2716 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2717 |
msgid "AM"
|
| 2718 |
msgstr ""
|
| 2719 |
|
| 2720 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2721 |
msgid "PM"
|
| 2722 |
msgstr ""
|
| 2723 |
|
|
@@ -3104,42 +3110,38 @@ msgid ""
|
|
| 3104 |
"this step, %s will still work just fine."
|
| 3105 |
msgstr ""
|
| 3106 |
|
| 3107 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 3108 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 3109 |
#, fuzzy
|
| 3110 |
msgid "Address line 1"
|
| 3111 |
msgstr "الشارع سطر العنوان 2"
|
| 3112 |
|
| 3113 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 3114 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 3115 |
#, fuzzy
|
| 3116 |
msgid "Address line 2"
|
| 3117 |
msgstr "الشارع سطر العنوان 2"
|
| 3118 |
|
| 3119 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 3120 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 3121 |
msgid "State"
|
| 3122 |
msgstr ""
|
| 3123 |
|
| 3124 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 3125 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 3126 |
msgid "Zip code"
|
| 3127 |
msgstr ""
|
| 3128 |
|
| 3129 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 3130 |
msgid "Card number"
|
| 3131 |
msgstr ""
|
| 3132 |
|
| 3133 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 3134 |
-
msgid "
|
| 3135 |
-
msgstr ""
|
| 3136 |
-
|
| 3137 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:194
|
| 3138 |
-
msgid "Expiration month"
|
| 3139 |
msgstr ""
|
| 3140 |
|
| 3141 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 3142 |
-
msgid "
|
| 3143 |
msgstr ""
|
| 3144 |
|
| 3145 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/fm_stripe.php:166
|
|
@@ -3147,20 +3149,13 @@ msgstr ""
|
|
| 3147 |
msgid "Field is required."
|
| 3148 |
msgstr "الحقل مطلوب"
|
| 3149 |
|
| 3150 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/fm_stripe.php:
|
| 3151 |
#, php-format
|
| 3152 |
msgid ""
|
| 3153 |
-
"Please install Form Maker plugin version
|
| 3154 |
"add-on."
|
| 3155 |
msgstr ""
|
| 3156 |
|
| 3157 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/fm_stripe.php:194
|
| 3158 |
-
#, php-format
|
| 3159 |
-
msgid ""
|
| 3160 |
-
"Please install Form Maker plugin version 2.12.0 and higher to start using %s "
|
| 3161 |
-
"add-ons."
|
| 3162 |
-
msgstr ""
|
| 3163 |
-
|
| 3164 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/view.php:20
|
| 3165 |
#, php-format
|
| 3166 |
msgid "%s for your site."
|
|
@@ -3170,6 +3165,14 @@ msgstr ""
|
|
| 3170 |
msgid "Get Stripe Publishable and Secret Keys"
|
| 3171 |
msgstr ""
|
| 3172 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3173 |
#~ msgid "Hey! How's It Going?"
|
| 3174 |
#~ msgstr "مهلا! كيف تجري الامور؟"
|
| 3175 |
|
| 2 |
msgstr ""
|
| 3 |
"Project-Id-Version: form_maker\n"
|
| 4 |
"Report-Msgid-Bugs-To: \n"
|
| 5 |
+
"POT-Creation-Date: 2017-11-21 14:48+0400\n"
|
| 6 |
+
"PO-Revision-Date: 2017-11-21 14:48+0400\n"
|
| 7 |
"Last-Translator: \n"
|
| 8 |
"Language-Team: \n"
|
| 9 |
"Language: ar\n"
|
| 22 |
msgid "Form Maker"
|
| 23 |
msgstr ""
|
| 24 |
|
| 25 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:238
|
| 26 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:59
|
| 27 |
msgid "Forms"
|
| 28 |
msgstr ""
|
| 29 |
|
| 30 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:239
|
| 31 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:964
|
| 32 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Submissions_fm.php:141
|
| 33 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Submissions_fm.php:157
|
| 34 |
#, fuzzy
|
| 35 |
msgid "Submissions"
|
| 36 |
msgstr "مشاهدة تقديمها"
|
| 37 |
|
| 38 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:242
|
| 39 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Blocked_ips_fm.php:55
|
| 40 |
msgid "Blocked IPs"
|
| 41 |
msgstr ""
|
| 42 |
|
| 43 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:243
|
| 44 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:972
|
| 45 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Themes_fm.php:83
|
| 46 |
msgid "Themes"
|
| 47 |
msgstr ""
|
| 48 |
|
| 49 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:244
|
| 50 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Options_fm.php:23
|
| 51 |
msgid "Options"
|
| 52 |
msgstr ""
|
| 53 |
|
| 54 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:246
|
| 55 |
msgid "Pro Version"
|
| 56 |
msgstr ""
|
| 57 |
|
| 58 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:248
|
| 59 |
msgid "Uninstall"
|
| 60 |
msgstr ""
|
| 61 |
|
| 62 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:249
|
| 63 |
msgid "Add-ons"
|
| 64 |
msgstr ""
|
| 65 |
|
| 66 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:258
|
| 67 |
msgid "Number of items per page:"
|
| 68 |
msgstr ""
|
| 69 |
|
| 70 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:362
|
| 71 |
#, fuzzy
|
| 72 |
msgid "Nothing found."
|
| 73 |
msgstr "وقدم شيئا."
|
| 74 |
|
| 75 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:363
|
| 76 |
msgid "The captcha already has been created."
|
| 77 |
msgstr ""
|
| 78 |
|
| 79 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:364
|
| 80 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:442
|
| 81 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:737
|
| 82 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:2011
|
| 83 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:2137
|
| 84 |
msgid "Update"
|
| 85 |
msgstr ""
|
| 86 |
|
| 87 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:365
|
| 88 |
#, fuzzy
|
| 89 |
msgid "Add"
|
| 90 |
msgstr "عنوان"
|
| 91 |
|
| 92 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:366
|
| 93 |
msgid "Add Field"
|
| 94 |
msgstr ""
|
| 95 |
|
| 96 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:367
|
| 97 |
msgid "Edit Field"
|
| 98 |
msgstr ""
|
| 99 |
|
| 100 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:368
|
| 101 |
msgid "This field type is disabled in free version."
|
| 102 |
msgstr ""
|
| 103 |
|
| 104 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:369
|
| 105 |
msgid "Please upgrade to Paid version."
|
| 106 |
msgstr ""
|
| 107 |
|
| 108 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:370
|
| 109 |
msgid "Please install "
|
| 110 |
msgstr ""
|
| 111 |
|
| 112 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:371
|
| 113 |
msgid " add-on to use this feature."
|
| 114 |
msgstr ""
|
| 115 |
|
| 116 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:372
|
| 117 |
msgid ""
|
| 118 |
"To use this feature, please go to Form Options > Payment Options and select "
|
| 119 |
"\"Stripe\" as the Payment Method."
|
| 120 |
msgstr ""
|
| 121 |
|
| 122 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:373
|
| 123 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 124 |
msgid "Sunday"
|
| 125 |
msgstr ""
|
| 126 |
|
| 127 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:374
|
| 128 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 129 |
msgid "Monday"
|
| 130 |
msgstr ""
|
| 131 |
|
| 132 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:375
|
| 133 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 134 |
msgid "Tuesday"
|
| 135 |
msgstr ""
|
| 136 |
|
| 137 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:376
|
| 138 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 139 |
msgid "Wednesday"
|
| 140 |
msgstr ""
|
| 141 |
|
| 142 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:377
|
| 143 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 144 |
msgid "Thursday"
|
| 145 |
msgstr ""
|
| 146 |
|
| 147 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:378
|
| 148 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 149 |
msgid "Friday"
|
| 150 |
msgstr ""
|
| 151 |
|
| 152 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:379
|
| 153 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 154 |
msgid "Saturday"
|
| 155 |
msgstr ""
|
| 156 |
|
| 157 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:380
|
| 158 |
msgid "Leave empty to set the width to 100%."
|
| 159 |
msgstr ""
|
| 160 |
|
| 161 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:382
|
| 162 |
msgid ""
|
| 163 |
"The free version is limited up to 7 fields to add. If you need this "
|
| 164 |
"functionality, you need to buy the commercial version."
|
| 165 |
msgstr ""
|
| 166 |
|
| 167 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:404
|
| 168 |
msgid "Do you want to delete selected items?"
|
| 169 |
msgstr ""
|
| 170 |
|
| 171 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:405
|
| 172 |
msgid "You must select at least one item."
|
| 173 |
msgstr ""
|
| 174 |
|
| 175 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:441
|
| 176 |
msgid "You must select a form"
|
| 177 |
msgstr ""
|
| 178 |
|
| 179 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:527
|
| 180 |
msgid "Sorry, you are not allowed to access this page."
|
| 181 |
msgstr ""
|
| 182 |
|
| 183 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:667
|
| 184 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:1489
|
| 185 |
msgid "Can not upload this type of file"
|
| 186 |
msgstr "لا يمكن تحميل هذا النوع من الملفات"
|
| 187 |
|
| 188 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:668
|
| 189 |
msgid "Field is required"
|
| 190 |
msgstr "الحقل مطلوب"
|
| 191 |
|
| 192 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:669
|
| 193 |
msgid "The "
|
| 194 |
msgstr "ال"
|
| 195 |
|
| 196 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:670
|
| 197 |
msgid " value must be between "
|
| 198 |
msgstr "يجب أن تكون قيمة بين"
|
| 199 |
|
| 200 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:671
|
| 201 |
msgid "Value must be between "
|
| 202 |
msgstr "يجب أن تكون القيمة بين"
|
| 203 |
|
| 204 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:672
|
| 205 |
msgid "Are you sure you want to clear saved data?"
|
| 206 |
msgstr "هل أنت متأكد أنك تريد مسح البيانات المحفوظة؟"
|
| 207 |
|
| 208 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:673
|
| 209 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:3538
|
| 210 |
msgid "Your score should be less than"
|
| 211 |
msgstr "يجب أن تكون درجاتك أقل من "
|
| 212 |
|
| 213 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:674
|
| 214 |
#, fuzzy
|
| 215 |
msgid "This is not a valid time value."
|
| 216 |
msgstr "هذه ليست صيغة تاريخ صالحة."
|
| 217 |
|
| 218 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:675
|
| 219 |
#, fuzzy
|
| 220 |
msgid "This is not a valid number value."
|
| 221 |
msgstr "هذا ليس عنوان بريد إلكتروني صالح."
|
| 222 |
|
| 223 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:676
|
| 224 |
#, fuzzy
|
| 225 |
msgid "This is not a valid date value."
|
| 226 |
msgstr "هذه ليست صيغة تاريخ صالحة."
|
| 227 |
|
| 228 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:677
|
| 229 |
#, fuzzy, php-format
|
| 230 |
msgid "The year must be between %s and %s"
|
| 231 |
msgstr "يجب أن تكون قيمة بين"
|
| 232 |
|
| 233 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:722
|
| 234 |
msgid ""
|
| 235 |
"Oops! Seems like you installed the update over a quite old version of Form "
|
| 236 |
"Maker. Unfortunately, this version is deprecated.<br />Please contact Web-"
|
| 238 |
"issue as soon as possible."
|
| 239 |
msgstr ""
|
| 240 |
|
| 241 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:902
|
| 242 |
#, php-format
|
| 243 |
msgid "This section allows you to %s."
|
| 244 |
msgstr ""
|
| 245 |
|
| 246 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:910
|
| 247 |
msgid "Upgrade to paid version"
|
| 248 |
msgstr ""
|
| 249 |
|
| 250 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:952
|
| 251 |
msgid ""
|
| 252 |
"Form Maker plugin is a modern and advanced tool for easy and fast creating "
|
| 253 |
"of a WordPress Form. The backend interface is intuitive and user friendly "
|
| 255 |
"Forms."
|
| 256 |
msgstr ""
|
| 257 |
|
| 258 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:956
|
| 259 |
msgid "Easy to Use"
|
| 260 |
msgstr ""
|
| 261 |
|
| 262 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:957
|
| 263 |
msgid ""
|
| 264 |
"This responsive form maker plugin is one of the most easy-to-use form "
|
| 265 |
"builder solutions available on the market. Simple, yet powerful plugin "
|
| 266 |
"allows you to quickly and easily build any complex forms."
|
| 267 |
msgstr ""
|
| 268 |
|
| 269 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:960
|
| 270 |
msgid "Customizable Fields"
|
| 271 |
msgstr ""
|
| 272 |
|
| 273 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:961
|
| 274 |
msgid ""
|
| 275 |
"All the fields of Form Maker plugin are highly customizable, which allows "
|
| 276 |
"you to change almost every detail in the form and make it look exactly like "
|
| 277 |
"you want it to be."
|
| 278 |
msgstr ""
|
| 279 |
|
| 280 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:965
|
| 281 |
msgid ""
|
| 282 |
"You can view the submissions for each form you have. The plugin allows to "
|
| 283 |
"view submissions statistics, filter submission data and export in csv or xml "
|
| 284 |
"formats."
|
| 285 |
msgstr ""
|
| 286 |
|
| 287 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:968
|
| 288 |
msgid "Multi-Page Forms"
|
| 289 |
msgstr ""
|
| 290 |
|
| 291 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:969
|
| 292 |
msgid ""
|
| 293 |
"With the form builder plugin you can create muilti-page forms. Simply use "
|
| 294 |
"the page break field to separate the pages in your forms."
|
| 295 |
msgstr ""
|
| 296 |
|
| 297 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:973
|
| 298 |
msgid ""
|
| 299 |
"The WordPress Form Maker plugin comes with a wide range of customizable "
|
| 300 |
"themes. You can choose from a list of existing themes or simply create the "
|
| 301 |
"one that better fits your brand and website."
|
| 302 |
msgstr ""
|
| 303 |
|
| 304 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:979
|
| 305 |
msgid "Installing"
|
| 306 |
msgstr ""
|
| 307 |
|
| 308 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:984
|
| 309 |
msgid "Creating a new Form"
|
| 310 |
msgstr ""
|
| 311 |
|
| 312 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:989
|
| 313 |
msgid "Configuring Form Options"
|
| 314 |
msgstr ""
|
| 315 |
|
| 316 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:994
|
| 317 |
msgid "Description of The Form Fields"
|
| 318 |
msgstr ""
|
| 319 |
|
| 320 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:998
|
| 321 |
msgid "Selecting Options from Database"
|
| 322 |
msgstr ""
|
| 323 |
|
| 324 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:1004
|
| 325 |
msgid "Publishing the Created Form"
|
| 326 |
msgstr ""
|
| 327 |
|
| 328 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:1009
|
| 329 |
msgid "Blocking IPs"
|
| 330 |
msgstr ""
|
| 331 |
|
| 332 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:1014
|
| 333 |
msgid "Managing Submissions"
|
| 334 |
msgstr ""
|
| 335 |
|
| 336 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:1019
|
| 337 |
msgid "Publishing Submissions"
|
| 338 |
msgstr ""
|
| 339 |
|
| 340 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:1118
|
| 341 |
#, php-format
|
| 342 |
msgid "Please update the %s add-on to start using."
|
| 343 |
msgstr ""
|
| 344 |
|
| 345 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:1119
|
| 346 |
#, php-format
|
| 347 |
msgid "Please update the %s add-ons to start using."
|
| 348 |
msgstr ""
|
| 349 |
|
| 350 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:1179
|
| 351 |
#, php-format
|
| 352 |
msgid ""
|
| 353 |
"%s advises: Install brand new FREE %s plugin to keep your forms and website "
|
| 354 |
"safe."
|
| 355 |
msgstr ""
|
| 356 |
|
| 357 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:1179
|
| 358 |
msgid "More details"
|
| 359 |
msgstr ""
|
| 360 |
|
| 361 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:1179
|
| 362 |
msgid "Backup WD"
|
| 363 |
msgstr ""
|
| 364 |
|
| 365 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:1244
|
| 366 |
msgid "Support Forum"
|
| 367 |
msgstr ""
|
| 368 |
|
| 369 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:1245
|
| 370 |
msgid "Rate"
|
| 371 |
msgstr ""
|
| 372 |
|
| 385 |
msgstr "منجز"
|
| 386 |
|
| 387 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:28
|
| 388 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:148
|
| 389 |
msgid "Publish"
|
| 390 |
msgstr ""
|
| 391 |
|
| 394 |
msgstr ""
|
| 395 |
|
| 396 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:32
|
| 397 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:148
|
| 398 |
msgid "Unpublish"
|
| 399 |
msgstr ""
|
| 400 |
|
| 412 |
msgid "duplicated"
|
| 413 |
msgstr ""
|
| 414 |
|
| 415 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:347
|
| 416 |
msgid "Create new form"
|
| 417 |
msgstr ""
|
| 418 |
|
| 419 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:481
|
| 420 |
msgid "options"
|
| 421 |
msgstr ""
|
| 422 |
|
| 423 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:812
|
| 424 |
msgid "layout"
|
| 425 |
msgstr ""
|
| 426 |
|
| 427 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:856
|
| 428 |
msgid "display options"
|
| 429 |
msgstr ""
|
| 430 |
|
| 1017 |
msgstr ""
|
| 1018 |
|
| 1019 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Themes_fm.php:1080
|
| 1020 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:517
|
| 1021 |
#, fuzzy
|
| 1022 |
msgid "Single Choice"
|
| 1023 |
msgstr "اختيارات"
|
| 1028 |
msgstr ""
|
| 1029 |
|
| 1030 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Themes_fm.php:1220
|
| 1031 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:518
|
| 1032 |
msgid "Multiple Choice"
|
| 1033 |
msgstr ""
|
| 1034 |
|
| 1035 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Themes_fm.php:1410
|
| 1036 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:520
|
| 1037 |
msgid "Submit"
|
| 1038 |
msgstr ""
|
| 1039 |
|
| 1098 |
msgstr ""
|
| 1099 |
|
| 1100 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Themes_fm.php:2853
|
| 1101 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:538
|
| 1102 |
msgid "File Upload"
|
| 1103 |
msgstr ""
|
| 1104 |
|
| 1119 |
msgstr "الشارع سطر العنوان 2"
|
| 1120 |
|
| 1121 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/models/Submissions_fm.php:357
|
| 1122 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:42
|
| 1123 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:201
|
| 1124 |
msgid "City"
|
| 1125 |
msgstr "مدينة"
|
| 1126 |
|
| 1133 |
msgstr "البريدي / الرمز البريدي"
|
| 1134 |
|
| 1135 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/models/Submissions_fm.php:366
|
| 1136 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:44
|
| 1137 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:211
|
| 1138 |
msgid "Country"
|
| 1139 |
msgstr "بلد"
|
| 1140 |
|
| 1143 |
msgstr ""
|
| 1144 |
|
| 1145 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Blocked_ips_fm.php:116
|
| 1146 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:152
|
| 1147 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Submissions_fm.php:484
|
| 1148 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Themes_fm.php:96
|
| 1149 |
msgid "Do you want to delete selected item?"
|
| 1163 |
msgstr ""
|
| 1164 |
|
| 1165 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/FormMakerSubmits.php:43
|
| 1166 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:515
|
| 1167 |
msgid "Date"
|
| 1168 |
msgstr "تاريخ"
|
| 1169 |
|
| 1170 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:84
|
| 1171 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Themes_fm.php:70
|
| 1172 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Themes_fm.php:145
|
| 1173 |
msgid "Title"
|
| 1174 |
msgstr "لقب"
|
| 1175 |
|
| 1176 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:85
|
| 1177 |
msgid "Type"
|
| 1178 |
msgstr ""
|
| 1179 |
|
| 1180 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:87
|
| 1181 |
msgid "Shortcode"
|
| 1182 |
msgstr ""
|
| 1183 |
|
| 1184 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:511
|
| 1185 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:594
|
| 1186 |
msgid "BASIC FIELDS"
|
| 1187 |
msgstr ""
|
| 1188 |
|
| 1189 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:512
|
| 1190 |
msgid "Single Line Text"
|
| 1191 |
msgstr ""
|
| 1192 |
|
| 1193 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:513
|
| 1194 |
msgid "Paragraph Text"
|
| 1195 |
msgstr ""
|
| 1196 |
|
| 1197 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:514
|
| 1198 |
#, fuzzy
|
| 1199 |
msgid "Number"
|
| 1200 |
msgstr "نوفمبر"
|
| 1201 |
|
| 1202 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:516
|
| 1203 |
#, fuzzy
|
| 1204 |
msgid "Select"
|
| 1205 |
msgstr "تحديد تاريخ"
|
| 1206 |
|
| 1207 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:519
|
| 1208 |
msgid "Recaptcha"
|
| 1209 |
msgstr ""
|
| 1210 |
|
| 1211 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:521
|
| 1212 |
msgid "Simple Captcha"
|
| 1213 |
msgstr ""
|
| 1214 |
|
| 1215 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:523
|
| 1216 |
msgid "USER INFO FIELDS"
|
| 1217 |
msgstr ""
|
| 1218 |
|
| 1219 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:524
|
| 1220 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:39
|
| 1221 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:186
|
| 1222 |
msgid "Name"
|
| 1223 |
msgstr ""
|
| 1224 |
|
| 1225 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:525
|
| 1226 |
msgid "Email"
|
| 1227 |
msgstr ""
|
| 1228 |
|
| 1229 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:526
|
| 1230 |
msgid "Phone"
|
| 1231 |
msgstr ""
|
| 1232 |
|
| 1233 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:527
|
| 1234 |
msgid "Address"
|
| 1235 |
msgstr "عنوان"
|
| 1236 |
|
| 1237 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:528
|
| 1238 |
#, fuzzy
|
| 1239 |
msgid "Mark on Map"
|
| 1240 |
msgstr "عرض على الخريطة"
|
| 1241 |
|
| 1242 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:529
|
| 1243 |
#, fuzzy
|
| 1244 |
msgid "Country List"
|
| 1245 |
msgstr "بلد"
|
| 1246 |
|
| 1247 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:530
|
| 1248 |
msgid "Date of Birth"
|
| 1249 |
msgstr ""
|
| 1250 |
|
| 1251 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:532
|
| 1252 |
msgid "LAYOUT FIELDS"
|
| 1253 |
msgstr ""
|
| 1254 |
|
| 1255 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:533
|
| 1256 |
msgid "HTML"
|
| 1257 |
msgstr ""
|
| 1258 |
|
| 1259 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:534
|
| 1260 |
msgid "Section"
|
| 1261 |
msgstr ""
|
| 1262 |
|
| 1263 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:535
|
| 1264 |
msgid "Page"
|
| 1265 |
msgstr ""
|
| 1266 |
|
| 1267 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:537
|
| 1268 |
msgid "ADVANCED"
|
| 1269 |
msgstr ""
|
| 1270 |
|
| 1271 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:539
|
| 1272 |
#, fuzzy
|
| 1273 |
msgid "Map"
|
| 1274 |
msgstr "قد"
|
| 1275 |
|
| 1276 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:540
|
| 1277 |
msgid "Time"
|
| 1278 |
msgstr ""
|
| 1279 |
|
| 1280 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:541
|
| 1281 |
msgid "Receive Copy"
|
| 1282 |
msgstr ""
|
| 1283 |
|
| 1284 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:542
|
| 1285 |
msgid "Date Range"
|
| 1286 |
msgstr ""
|
| 1287 |
|
| 1288 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:543
|
| 1289 |
msgid "Stars"
|
| 1290 |
msgstr ""
|
| 1291 |
|
| 1292 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:544
|
| 1293 |
msgid "Rating"
|
| 1294 |
msgstr ""
|
| 1295 |
|
| 1296 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:545
|
| 1297 |
msgid "Slider"
|
| 1298 |
msgstr ""
|
| 1299 |
|
| 1300 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:546
|
| 1301 |
msgid "Range"
|
| 1302 |
msgstr ""
|
| 1303 |
|
| 1304 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:547
|
| 1305 |
msgid "Grades"
|
| 1306 |
msgstr ""
|
| 1307 |
|
| 1308 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:548
|
| 1309 |
#, fuzzy
|
| 1310 |
msgid "Table of Fields"
|
| 1311 |
msgstr "حدد حقل "
|
| 1312 |
|
| 1313 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:549
|
| 1314 |
msgid "Hidden Input"
|
| 1315 |
msgstr ""
|
| 1316 |
|
| 1317 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:550
|
| 1318 |
msgid "Custom Button"
|
| 1319 |
msgstr ""
|
| 1320 |
|
| 1321 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:551
|
| 1322 |
msgid "Password"
|
| 1323 |
msgstr ""
|
| 1324 |
|
| 1325 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:552
|
| 1326 |
#, fuzzy
|
| 1327 |
msgid "Phone-Area Code"
|
| 1328 |
msgstr "كود المنطقة"
|
| 1329 |
|
| 1330 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:553
|
| 1331 |
msgid "Arithmetic Captcha"
|
| 1332 |
msgstr ""
|
| 1333 |
|
| 1334 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:555
|
| 1335 |
msgid "PAYMENT"
|
| 1336 |
msgstr ""
|
| 1337 |
|
| 1338 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:556
|
| 1339 |
msgid "Price"
|
| 1340 |
msgstr ""
|
| 1341 |
|
| 1342 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:557
|
| 1343 |
msgid "Payment Select"
|
| 1344 |
msgstr ""
|
| 1345 |
|
| 1346 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:558
|
| 1347 |
msgid "Payment Single Choice"
|
| 1348 |
msgstr ""
|
| 1349 |
|
| 1350 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:559
|
| 1351 |
msgid "Payment Multiple Choice"
|
| 1352 |
msgstr ""
|
| 1353 |
|
| 1354 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:560
|
| 1355 |
msgid "Shipping"
|
| 1356 |
msgstr ""
|
| 1357 |
|
| 1358 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:561
|
| 1359 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:4192
|
| 1360 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_submissions.php:635
|
| 1361 |
msgid "Total"
|
| 1362 |
msgstr "مجموع"
|
| 1363 |
|
| 1364 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:562
|
| 1365 |
msgid "Stripe"
|
| 1366 |
msgstr ""
|
| 1367 |
|
| 1368 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:596
|
| 1369 |
msgid "Toggle panel:"
|
| 1370 |
msgstr ""
|
| 1371 |
|
| 1372 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:743
|
| 1373 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:2017
|
| 1374 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:2143
|
| 1375 |
msgid "Back to Form"
|
| 1376 |
msgstr ""
|
| 1377 |
|
| 1378 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:1544
|
| 1379 |
msgid "Form Maker Stripe Integration"
|
| 1380 |
msgstr ""
|
| 1381 |
|
| 1382 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:1545
|
| 1383 |
#, php-format
|
| 1384 |
msgid "Please install %s add-on to use this feature."
|
| 1385 |
msgstr ""
|
| 1389 |
msgid "Save"
|
| 1390 |
msgstr ""
|
| 1391 |
|
| 1392 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Options_fm.php:68
|
| 1393 |
#, php-format
|
| 1394 |
msgid "%s for your site from ReCaptcha website."
|
| 1395 |
msgstr ""
|
| 1396 |
|
| 1397 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Options_fm.php:68
|
| 1398 |
msgid "Get ReCaptcha Site and Secret Keys"
|
| 1399 |
msgstr ""
|
| 1400 |
|
| 1401 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Options_fm.php:113
|
| 1402 |
+
#, php-format
|
| 1403 |
+
msgid "Uninstall %s"
|
| 1404 |
+
msgstr ""
|
| 1405 |
+
|
| 1406 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Submissions_fm.php:187
|
| 1407 |
#, fuzzy
|
| 1408 |
msgid "Show Filters"
|
| 1448 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:3038
|
| 1449 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:3120
|
| 1450 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:3202
|
| 1451 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:2209
|
| 1452 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:2396
|
| 1453 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:2589
|
| 1454 |
msgid "Quantity"
|
| 1455 |
msgstr "كمية "
|
| 1456 |
|
| 2458 |
msgstr ""
|
| 2459 |
|
| 2460 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2461 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:3479
|
| 2462 |
msgid "January"
|
| 2463 |
msgstr "يناير"
|
| 2464 |
|
| 2465 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2466 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:3479
|
| 2467 |
msgid "February"
|
| 2468 |
msgstr "فبراير"
|
| 2469 |
|
| 2470 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2471 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:3479
|
| 2472 |
msgid "March"
|
| 2473 |
msgstr "مسيرة"
|
| 2474 |
|
| 2475 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2476 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:3479
|
| 2477 |
msgid "April"
|
| 2478 |
msgstr "أبريل"
|
| 2479 |
|
| 2480 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2481 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4289
|
| 2482 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:3479
|
| 2483 |
msgid "May"
|
| 2484 |
msgstr "قد"
|
| 2485 |
|
| 2486 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2487 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:3479
|
| 2488 |
msgid "June"
|
| 2489 |
msgstr "يونيو"
|
| 2490 |
|
| 2491 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2492 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:3479
|
| 2493 |
msgid "July"
|
| 2494 |
msgstr "يوليو"
|
| 2495 |
|
| 2496 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2497 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:3479
|
| 2498 |
msgid "August"
|
| 2499 |
msgstr "أغسطس"
|
| 2500 |
|
| 2501 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2502 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:3479
|
| 2503 |
msgid "September"
|
| 2504 |
msgstr "سبتمبر"
|
| 2505 |
|
| 2506 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2507 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:3479
|
| 2508 |
msgid "October"
|
| 2509 |
msgstr "أكتوبر"
|
| 2510 |
|
| 2511 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2512 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:3479
|
| 2513 |
msgid "November"
|
| 2514 |
msgstr "نوفمبر"
|
| 2515 |
|
| 2516 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2517 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:3479
|
| 2518 |
msgid "December"
|
| 2519 |
msgstr "ديسمبر"
|
| 2520 |
|
| 2653 |
msgstr ""
|
| 2654 |
"والقائمة السوداء الملكية الفكرية الخاصة بك. يرجى الاتصال بمسؤول الموقع. "
|
| 2655 |
|
| 2656 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:1374
|
| 2657 |
msgid "This is not a valid date format."
|
| 2658 |
msgstr "هذه ليست صيغة تاريخ صالحة."
|
| 2659 |
|
| 2660 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:1474
|
| 2661 |
msgid "The file exceeds the allowed size of"
|
| 2662 |
msgstr "ملف يتجاوز حجم المسموح به من"
|
| 2663 |
|
| 2664 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:1599
|
| 2665 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:2362
|
| 2666 |
msgid "Error, file cannot be moved."
|
| 2667 |
msgstr "خطأ، لا يمكن أن يتم نقل ملف."
|
| 2668 |
|
| 2669 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:1961
|
| 2670 |
#, fuzzy, php-format
|
| 2671 |
msgid "This field %s requires a unique entry."
|
| 2672 |
msgstr "هذا الحقل يتطلب٪ %s إدخال فريدة من نوعها، وقدم بالفعل هذه القيمة."
|
| 2673 |
|
| 2674 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:2221
|
| 2675 |
msgid "Nothing was submitted."
|
| 2676 |
msgstr "وقدم شيئا."
|
| 2677 |
|
| 2678 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:3217
|
| 2679 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:3229
|
| 2680 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:141
|
| 2681 |
msgid "Your form was successfully submitted."
|
| 2682 |
msgstr "وقدم النموذج الخاص بك بنجاح."
|
| 2683 |
|
| 2684 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:3224
|
| 2685 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:138
|
| 2686 |
msgid "Error, email was not sent."
|
| 2687 |
msgstr "خطأ، لم يتم إرسال البريد الإلكتروني."
|
| 2707 |
msgid "Verification link is invalid."
|
| 2708 |
msgstr "رابط التحقق غير صالح."
|
| 2709 |
|
| 2710 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:554
|
| 2711 |
msgid "Password values don't match"
|
| 2712 |
msgstr "قيم كلمة المرور لا تتطابق"
|
| 2713 |
|
| 2714 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:1074
|
| 2715 |
msgid "The email addresses don't match"
|
| 2716 |
msgstr "عناوين البريد الإلكتروني لا تتطابق"
|
| 2717 |
|
| 2718 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:1075
|
| 2719 |
msgid "This is not a valid email address."
|
| 2720 |
msgstr "هذا ليس عنوان بريد إلكتروني صالح."
|
| 2721 |
|
| 2722 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:3743
|
| 2723 |
msgid "AM"
|
| 2724 |
msgstr ""
|
| 2725 |
|
| 2726 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:3744
|
| 2727 |
msgid "PM"
|
| 2728 |
msgstr ""
|
| 2729 |
|
| 3110 |
"this step, %s will still work just fine."
|
| 3111 |
msgstr ""
|
| 3112 |
|
| 3113 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:40
|
| 3114 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:191
|
| 3115 |
#, fuzzy
|
| 3116 |
msgid "Address line 1"
|
| 3117 |
msgstr "الشارع سطر العنوان 2"
|
| 3118 |
|
| 3119 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:41
|
| 3120 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:196
|
| 3121 |
#, fuzzy
|
| 3122 |
msgid "Address line 2"
|
| 3123 |
msgstr "الشارع سطر العنوان 2"
|
| 3124 |
|
| 3125 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:43
|
| 3126 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:206
|
| 3127 |
msgid "State"
|
| 3128 |
msgstr ""
|
| 3129 |
|
| 3130 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:45
|
| 3131 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:216
|
| 3132 |
msgid "Zip code"
|
| 3133 |
msgstr ""
|
| 3134 |
|
| 3135 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:171
|
| 3136 |
msgid "Card number"
|
| 3137 |
msgstr ""
|
| 3138 |
|
| 3139 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:176
|
| 3140 |
+
msgid "Expiration date"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3141 |
msgstr ""
|
| 3142 |
|
| 3143 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:181
|
| 3144 |
+
msgid "CVC"
|
| 3145 |
msgstr ""
|
| 3146 |
|
| 3147 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/fm_stripe.php:166
|
| 3149 |
msgid "Field is required."
|
| 3150 |
msgstr "الحقل مطلوب"
|
| 3151 |
|
| 3152 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/fm_stripe.php:181
|
| 3153 |
#, php-format
|
| 3154 |
msgid ""
|
| 3155 |
+
"Please install Form Maker plugin version %s and higher to start using Stripe "
|
| 3156 |
"add-on."
|
| 3157 |
msgstr ""
|
| 3158 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3159 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/view.php:20
|
| 3160 |
#, php-format
|
| 3161 |
msgid "%s for your site."
|
| 3165 |
msgid "Get Stripe Publishable and Secret Keys"
|
| 3166 |
msgstr ""
|
| 3167 |
|
| 3168 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/view.php:131
|
| 3169 |
+
msgid "Month"
|
| 3170 |
+
msgstr ""
|
| 3171 |
+
|
| 3172 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/view.php:144
|
| 3173 |
+
msgid "Year"
|
| 3174 |
+
msgstr ""
|
| 3175 |
+
|
| 3176 |
#~ msgid "Hey! How's It Going?"
|
| 3177 |
#~ msgstr "مهلا! كيف تجري الامور؟"
|
| 3178 |
|
languages/form_maker-de_DE.mo
CHANGED
|
Binary file
|
languages/form_maker-de_DE.po
CHANGED
|
@@ -2,8 +2,8 @@ msgid ""
|
|
| 2 |
msgstr ""
|
| 3 |
"Project-Id-Version: form_maker\n"
|
| 4 |
"Report-Msgid-Bugs-To: \n"
|
| 5 |
-
"POT-Creation-Date: 2017-11-
|
| 6 |
-
"PO-Revision-Date: 2017-11-
|
| 7 |
"Last-Translator: \n"
|
| 8 |
"Language-Team: \n"
|
| 9 |
"Language: de\n"
|
|
@@ -22,215 +22,215 @@ msgstr ""
|
|
| 22 |
msgid "Form Maker"
|
| 23 |
msgstr ""
|
| 24 |
|
| 25 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 26 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:59
|
| 27 |
msgid "Forms"
|
| 28 |
msgstr ""
|
| 29 |
|
| 30 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 31 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 32 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Submissions_fm.php:141
|
| 33 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Submissions_fm.php:157
|
| 34 |
#, fuzzy
|
| 35 |
msgid "Submissions"
|
| 36 |
msgstr "Show Vorlage"
|
| 37 |
|
| 38 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 39 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Blocked_ips_fm.php:55
|
| 40 |
msgid "Blocked IPs"
|
| 41 |
msgstr ""
|
| 42 |
|
| 43 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 44 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 45 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Themes_fm.php:83
|
| 46 |
msgid "Themes"
|
| 47 |
msgstr ""
|
| 48 |
|
| 49 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 50 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Options_fm.php:23
|
| 51 |
msgid "Options"
|
| 52 |
msgstr ""
|
| 53 |
|
| 54 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 55 |
msgid "Pro Version"
|
| 56 |
msgstr ""
|
| 57 |
|
| 58 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 59 |
msgid "Uninstall"
|
| 60 |
msgstr ""
|
| 61 |
|
| 62 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 63 |
msgid "Add-ons"
|
| 64 |
msgstr ""
|
| 65 |
|
| 66 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 67 |
msgid "Number of items per page:"
|
| 68 |
msgstr ""
|
| 69 |
|
| 70 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 71 |
#, fuzzy
|
| 72 |
msgid "Nothing found."
|
| 73 |
msgstr "Nichts wurde eingereicht."
|
| 74 |
|
| 75 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 76 |
msgid "The captcha already has been created."
|
| 77 |
msgstr ""
|
| 78 |
|
| 79 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 80 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 81 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 82 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 83 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 84 |
msgid "Update"
|
| 85 |
msgstr ""
|
| 86 |
|
| 87 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 88 |
#, fuzzy
|
| 89 |
msgid "Add"
|
| 90 |
msgstr "Adresse"
|
| 91 |
|
| 92 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 93 |
msgid "Add Field"
|
| 94 |
msgstr ""
|
| 95 |
|
| 96 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 97 |
msgid "Edit Field"
|
| 98 |
msgstr ""
|
| 99 |
|
| 100 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 101 |
msgid "This field type is disabled in free version."
|
| 102 |
msgstr ""
|
| 103 |
|
| 104 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 105 |
msgid "Please upgrade to Paid version."
|
| 106 |
msgstr ""
|
| 107 |
|
| 108 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 109 |
msgid "Please install "
|
| 110 |
msgstr ""
|
| 111 |
|
| 112 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 113 |
msgid " add-on to use this feature."
|
| 114 |
msgstr ""
|
| 115 |
|
| 116 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 117 |
msgid ""
|
| 118 |
"To use this feature, please go to Form Options > Payment Options and select "
|
| 119 |
"\"Stripe\" as the Payment Method."
|
| 120 |
msgstr ""
|
| 121 |
|
| 122 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 123 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 124 |
msgid "Sunday"
|
| 125 |
msgstr ""
|
| 126 |
|
| 127 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 128 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 129 |
msgid "Monday"
|
| 130 |
msgstr ""
|
| 131 |
|
| 132 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 133 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 134 |
msgid "Tuesday"
|
| 135 |
msgstr ""
|
| 136 |
|
| 137 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 138 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 139 |
msgid "Wednesday"
|
| 140 |
msgstr ""
|
| 141 |
|
| 142 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 143 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 144 |
msgid "Thursday"
|
| 145 |
msgstr ""
|
| 146 |
|
| 147 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 148 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 149 |
msgid "Friday"
|
| 150 |
msgstr ""
|
| 151 |
|
| 152 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 153 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 154 |
msgid "Saturday"
|
| 155 |
msgstr ""
|
| 156 |
|
| 157 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 158 |
msgid "Leave empty to set the width to 100%."
|
| 159 |
msgstr ""
|
| 160 |
|
| 161 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 162 |
msgid ""
|
| 163 |
"The free version is limited up to 7 fields to add. If you need this "
|
| 164 |
"functionality, you need to buy the commercial version."
|
| 165 |
msgstr ""
|
| 166 |
|
| 167 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 168 |
msgid "Do you want to delete selected items?"
|
| 169 |
msgstr ""
|
| 170 |
|
| 171 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 172 |
msgid "You must select at least one item."
|
| 173 |
msgstr ""
|
| 174 |
|
| 175 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 176 |
msgid "You must select a form"
|
| 177 |
msgstr ""
|
| 178 |
|
| 179 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 180 |
msgid "Sorry, you are not allowed to access this page."
|
| 181 |
msgstr ""
|
| 182 |
|
| 183 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 184 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:
|
| 185 |
msgid "Can not upload this type of file"
|
| 186 |
msgstr "Kann diese Art von Datei nicht hochladen"
|
| 187 |
|
| 188 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 189 |
msgid "Field is required"
|
| 190 |
msgstr "Feld ist erforderlich"
|
| 191 |
|
| 192 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 193 |
msgid "The "
|
| 194 |
msgstr "Das"
|
| 195 |
|
| 196 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 197 |
msgid " value must be between "
|
| 198 |
msgstr "Wert muss zwischen sein"
|
| 199 |
|
| 200 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 201 |
msgid "Value must be between "
|
| 202 |
msgstr "Wert muss zwischen sein"
|
| 203 |
|
| 204 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 205 |
msgid "Are you sure you want to clear saved data?"
|
| 206 |
msgstr "Sind Sie sicher, dass Sie gespeicherte Daten löschen möchten?"
|
| 207 |
|
| 208 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 209 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:3538
|
| 210 |
msgid "Your score should be less than"
|
| 211 |
msgstr "Ihr Ergebnis sollte kleiner sein als "
|
| 212 |
|
| 213 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 214 |
#, fuzzy
|
| 215 |
msgid "This is not a valid time value."
|
| 216 |
msgstr "Dies ist keine gültige E-Mail-Adresse."
|
| 217 |
|
| 218 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 219 |
#, fuzzy
|
| 220 |
msgid "This is not a valid number value."
|
| 221 |
msgstr "Dies ist keine gültige E-Mail-Adresse."
|
| 222 |
|
| 223 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 224 |
#, fuzzy
|
| 225 |
msgid "This is not a valid date value."
|
| 226 |
msgstr "Dies ist keine gültige E-Mail-Adresse."
|
| 227 |
|
| 228 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 229 |
#, fuzzy, php-format
|
| 230 |
msgid "The year must be between %s and %s"
|
| 231 |
msgstr "Wert muss zwischen sein"
|
| 232 |
|
| 233 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 234 |
msgid ""
|
| 235 |
"Oops! Seems like you installed the update over a quite old version of Form "
|
| 236 |
"Maker. Unfortunately, this version is deprecated.<br />Please contact Web-"
|
|
@@ -238,16 +238,16 @@ msgid ""
|
|
| 238 |
"issue as soon as possible."
|
| 239 |
msgstr ""
|
| 240 |
|
| 241 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 242 |
#, php-format
|
| 243 |
msgid "This section allows you to %s."
|
| 244 |
msgstr ""
|
| 245 |
|
| 246 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 247 |
msgid "Upgrade to paid version"
|
| 248 |
msgstr ""
|
| 249 |
|
| 250 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 251 |
msgid ""
|
| 252 |
"Form Maker plugin is a modern and advanced tool for easy and fast creating "
|
| 253 |
"of a WordPress Form. The backend interface is intuitive and user friendly "
|
|
@@ -255,118 +255,118 @@ msgid ""
|
|
| 255 |
"Forms."
|
| 256 |
msgstr ""
|
| 257 |
|
| 258 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 259 |
msgid "Easy to Use"
|
| 260 |
msgstr ""
|
| 261 |
|
| 262 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 263 |
msgid ""
|
| 264 |
"This responsive form maker plugin is one of the most easy-to-use form "
|
| 265 |
"builder solutions available on the market. Simple, yet powerful plugin "
|
| 266 |
"allows you to quickly and easily build any complex forms."
|
| 267 |
msgstr ""
|
| 268 |
|
| 269 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 270 |
msgid "Customizable Fields"
|
| 271 |
msgstr ""
|
| 272 |
|
| 273 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 274 |
msgid ""
|
| 275 |
"All the fields of Form Maker plugin are highly customizable, which allows "
|
| 276 |
"you to change almost every detail in the form and make it look exactly like "
|
| 277 |
"you want it to be."
|
| 278 |
msgstr ""
|
| 279 |
|
| 280 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 281 |
msgid ""
|
| 282 |
"You can view the submissions for each form you have. The plugin allows to "
|
| 283 |
"view submissions statistics, filter submission data and export in csv or xml "
|
| 284 |
"formats."
|
| 285 |
msgstr ""
|
| 286 |
|
| 287 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 288 |
msgid "Multi-Page Forms"
|
| 289 |
msgstr ""
|
| 290 |
|
| 291 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 292 |
msgid ""
|
| 293 |
"With the form builder plugin you can create muilti-page forms. Simply use "
|
| 294 |
"the page break field to separate the pages in your forms."
|
| 295 |
msgstr ""
|
| 296 |
|
| 297 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 298 |
msgid ""
|
| 299 |
"The WordPress Form Maker plugin comes with a wide range of customizable "
|
| 300 |
"themes. You can choose from a list of existing themes or simply create the "
|
| 301 |
"one that better fits your brand and website."
|
| 302 |
msgstr ""
|
| 303 |
|
| 304 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 305 |
msgid "Installing"
|
| 306 |
msgstr ""
|
| 307 |
|
| 308 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 309 |
msgid "Creating a new Form"
|
| 310 |
msgstr ""
|
| 311 |
|
| 312 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 313 |
msgid "Configuring Form Options"
|
| 314 |
msgstr ""
|
| 315 |
|
| 316 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 317 |
msgid "Description of The Form Fields"
|
| 318 |
msgstr ""
|
| 319 |
|
| 320 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 321 |
msgid "Selecting Options from Database"
|
| 322 |
msgstr ""
|
| 323 |
|
| 324 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 325 |
msgid "Publishing the Created Form"
|
| 326 |
msgstr ""
|
| 327 |
|
| 328 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 329 |
msgid "Blocking IPs"
|
| 330 |
msgstr ""
|
| 331 |
|
| 332 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 333 |
msgid "Managing Submissions"
|
| 334 |
msgstr ""
|
| 335 |
|
| 336 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 337 |
msgid "Publishing Submissions"
|
| 338 |
msgstr ""
|
| 339 |
|
| 340 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 341 |
#, php-format
|
| 342 |
msgid "Please update the %s add-on to start using."
|
| 343 |
msgstr ""
|
| 344 |
|
| 345 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 346 |
#, php-format
|
| 347 |
msgid "Please update the %s add-ons to start using."
|
| 348 |
msgstr ""
|
| 349 |
|
| 350 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 351 |
#, php-format
|
| 352 |
msgid ""
|
| 353 |
"%s advises: Install brand new FREE %s plugin to keep your forms and website "
|
| 354 |
"safe."
|
| 355 |
msgstr ""
|
| 356 |
|
| 357 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 358 |
msgid "More details"
|
| 359 |
msgstr ""
|
| 360 |
|
| 361 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 362 |
msgid "Backup WD"
|
| 363 |
msgstr ""
|
| 364 |
|
| 365 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 366 |
msgid "Support Forum"
|
| 367 |
msgstr ""
|
| 368 |
|
| 369 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 370 |
msgid "Rate"
|
| 371 |
msgstr ""
|
| 372 |
|
|
@@ -385,7 +385,7 @@ msgid "deleted"
|
|
| 385 |
msgstr "Abgeschlossen"
|
| 386 |
|
| 387 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:28
|
| 388 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 389 |
msgid "Publish"
|
| 390 |
msgstr ""
|
| 391 |
|
|
@@ -394,7 +394,7 @@ msgid "published"
|
|
| 394 |
msgstr ""
|
| 395 |
|
| 396 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:32
|
| 397 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 398 |
msgid "Unpublish"
|
| 399 |
msgstr ""
|
| 400 |
|
|
@@ -412,19 +412,19 @@ msgstr ""
|
|
| 412 |
msgid "duplicated"
|
| 413 |
msgstr ""
|
| 414 |
|
| 415 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:
|
| 416 |
msgid "Create new form"
|
| 417 |
msgstr ""
|
| 418 |
|
| 419 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:
|
| 420 |
msgid "options"
|
| 421 |
msgstr ""
|
| 422 |
|
| 423 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:
|
| 424 |
msgid "layout"
|
| 425 |
msgstr ""
|
| 426 |
|
| 427 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:
|
| 428 |
msgid "display options"
|
| 429 |
msgstr ""
|
| 430 |
|
|
@@ -1017,7 +1017,7 @@ msgid "Appearance"
|
|
| 1017 |
msgstr ""
|
| 1018 |
|
| 1019 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Themes_fm.php:1080
|
| 1020 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1021 |
#, fuzzy
|
| 1022 |
msgid "Single Choice"
|
| 1023 |
msgstr "Wahlen"
|
|
@@ -1028,12 +1028,12 @@ msgid "Checked Parameters"
|
|
| 1028 |
msgstr ""
|
| 1029 |
|
| 1030 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Themes_fm.php:1220
|
| 1031 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1032 |
msgid "Multiple Choice"
|
| 1033 |
msgstr ""
|
| 1034 |
|
| 1035 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Themes_fm.php:1410
|
| 1036 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1037 |
msgid "Submit"
|
| 1038 |
msgstr ""
|
| 1039 |
|
|
@@ -1098,7 +1098,7 @@ msgid "Required"
|
|
| 1098 |
msgstr ""
|
| 1099 |
|
| 1100 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Themes_fm.php:2853
|
| 1101 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1102 |
msgid "File Upload"
|
| 1103 |
msgstr ""
|
| 1104 |
|
|
@@ -1119,8 +1119,8 @@ msgid "Street Address Line 2"
|
|
| 1119 |
msgstr "Zusatz"
|
| 1120 |
|
| 1121 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/models/Submissions_fm.php:357
|
| 1122 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 1123 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 1124 |
msgid "City"
|
| 1125 |
msgstr "Stadt"
|
| 1126 |
|
|
@@ -1133,8 +1133,8 @@ msgid "Postal / Zip Code"
|
|
| 1133 |
msgstr "Postleitzahl"
|
| 1134 |
|
| 1135 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/models/Submissions_fm.php:366
|
| 1136 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 1137 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 1138 |
msgid "Country"
|
| 1139 |
msgstr "Land"
|
| 1140 |
|
|
@@ -1143,7 +1143,7 @@ msgid "IP"
|
|
| 1143 |
msgstr ""
|
| 1144 |
|
| 1145 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Blocked_ips_fm.php:116
|
| 1146 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1147 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Submissions_fm.php:484
|
| 1148 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Themes_fm.php:96
|
| 1149 |
msgid "Do you want to delete selected item?"
|
|
@@ -1163,222 +1163,223 @@ msgid "Front end submissions are disabled in free version."
|
|
| 1163 |
msgstr ""
|
| 1164 |
|
| 1165 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/FormMakerSubmits.php:43
|
| 1166 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1167 |
msgid "Date"
|
| 1168 |
msgstr "Datum"
|
| 1169 |
|
| 1170 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1171 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Themes_fm.php:70
|
| 1172 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Themes_fm.php:145
|
| 1173 |
msgid "Title"
|
| 1174 |
msgstr "Titel"
|
| 1175 |
|
| 1176 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1177 |
msgid "Type"
|
| 1178 |
msgstr ""
|
| 1179 |
|
| 1180 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1181 |
msgid "Shortcode"
|
| 1182 |
msgstr ""
|
| 1183 |
|
| 1184 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1185 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1186 |
msgid "BASIC FIELDS"
|
| 1187 |
msgstr ""
|
| 1188 |
|
| 1189 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1190 |
msgid "Single Line Text"
|
| 1191 |
msgstr ""
|
| 1192 |
|
| 1193 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1194 |
msgid "Paragraph Text"
|
| 1195 |
msgstr ""
|
| 1196 |
|
| 1197 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1198 |
#, fuzzy
|
| 1199 |
msgid "Number"
|
| 1200 |
msgstr "November"
|
| 1201 |
|
| 1202 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1203 |
#, fuzzy
|
| 1204 |
msgid "Select"
|
| 1205 |
msgstr "Wählen Sie ein Datum"
|
| 1206 |
|
| 1207 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1208 |
msgid "Recaptcha"
|
| 1209 |
msgstr ""
|
| 1210 |
|
| 1211 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1212 |
msgid "Simple Captcha"
|
| 1213 |
msgstr ""
|
| 1214 |
|
| 1215 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1216 |
msgid "USER INFO FIELDS"
|
| 1217 |
msgstr ""
|
| 1218 |
|
| 1219 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1220 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
|
|
|
| 1221 |
msgid "Name"
|
| 1222 |
msgstr ""
|
| 1223 |
|
| 1224 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1225 |
msgid "Email"
|
| 1226 |
msgstr ""
|
| 1227 |
|
| 1228 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1229 |
msgid "Phone"
|
| 1230 |
msgstr ""
|
| 1231 |
|
| 1232 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1233 |
msgid "Address"
|
| 1234 |
msgstr "Adresse"
|
| 1235 |
|
| 1236 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1237 |
#, fuzzy
|
| 1238 |
msgid "Mark on Map"
|
| 1239 |
msgstr "Auf Karte anzeigen"
|
| 1240 |
|
| 1241 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1242 |
#, fuzzy
|
| 1243 |
msgid "Country List"
|
| 1244 |
msgstr "Land"
|
| 1245 |
|
| 1246 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1247 |
msgid "Date of Birth"
|
| 1248 |
msgstr ""
|
| 1249 |
|
| 1250 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1251 |
msgid "LAYOUT FIELDS"
|
| 1252 |
msgstr ""
|
| 1253 |
|
| 1254 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1255 |
msgid "HTML"
|
| 1256 |
msgstr ""
|
| 1257 |
|
| 1258 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1259 |
msgid "Section"
|
| 1260 |
msgstr ""
|
| 1261 |
|
| 1262 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1263 |
msgid "Page"
|
| 1264 |
msgstr ""
|
| 1265 |
|
| 1266 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1267 |
msgid "ADVANCED"
|
| 1268 |
msgstr ""
|
| 1269 |
|
| 1270 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1271 |
#, fuzzy
|
| 1272 |
msgid "Map"
|
| 1273 |
msgstr "Mai"
|
| 1274 |
|
| 1275 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1276 |
msgid "Time"
|
| 1277 |
msgstr ""
|
| 1278 |
|
| 1279 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1280 |
msgid "Receive Copy"
|
| 1281 |
msgstr ""
|
| 1282 |
|
| 1283 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1284 |
msgid "Date Range"
|
| 1285 |
msgstr ""
|
| 1286 |
|
| 1287 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1288 |
msgid "Stars"
|
| 1289 |
msgstr ""
|
| 1290 |
|
| 1291 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1292 |
msgid "Rating"
|
| 1293 |
msgstr ""
|
| 1294 |
|
| 1295 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1296 |
msgid "Slider"
|
| 1297 |
msgstr ""
|
| 1298 |
|
| 1299 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1300 |
msgid "Range"
|
| 1301 |
msgstr ""
|
| 1302 |
|
| 1303 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1304 |
msgid "Grades"
|
| 1305 |
msgstr ""
|
| 1306 |
|
| 1307 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1308 |
#, fuzzy
|
| 1309 |
msgid "Table of Fields"
|
| 1310 |
msgstr "Wählen Sie ein Feld "
|
| 1311 |
|
| 1312 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1313 |
msgid "Hidden Input"
|
| 1314 |
msgstr ""
|
| 1315 |
|
| 1316 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1317 |
msgid "Custom Button"
|
| 1318 |
msgstr ""
|
| 1319 |
|
| 1320 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1321 |
msgid "Password"
|
| 1322 |
msgstr ""
|
| 1323 |
|
| 1324 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1325 |
#, fuzzy
|
| 1326 |
msgid "Phone-Area Code"
|
| 1327 |
msgstr "Vorwahl"
|
| 1328 |
|
| 1329 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1330 |
msgid "Arithmetic Captcha"
|
| 1331 |
msgstr ""
|
| 1332 |
|
| 1333 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1334 |
msgid "PAYMENT"
|
| 1335 |
msgstr ""
|
| 1336 |
|
| 1337 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1338 |
msgid "Price"
|
| 1339 |
msgstr ""
|
| 1340 |
|
| 1341 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1342 |
msgid "Payment Select"
|
| 1343 |
msgstr ""
|
| 1344 |
|
| 1345 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1346 |
msgid "Payment Single Choice"
|
| 1347 |
msgstr ""
|
| 1348 |
|
| 1349 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1350 |
msgid "Payment Multiple Choice"
|
| 1351 |
msgstr ""
|
| 1352 |
|
| 1353 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1354 |
msgid "Shipping"
|
| 1355 |
msgstr ""
|
| 1356 |
|
| 1357 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1358 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 1359 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_submissions.php:635
|
| 1360 |
msgid "Total"
|
| 1361 |
msgstr "Gesamt"
|
| 1362 |
|
| 1363 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1364 |
msgid "Stripe"
|
| 1365 |
msgstr ""
|
| 1366 |
|
| 1367 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1368 |
msgid "Toggle panel:"
|
| 1369 |
msgstr ""
|
| 1370 |
|
| 1371 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1372 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1373 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1374 |
msgid "Back to Form"
|
| 1375 |
msgstr ""
|
| 1376 |
|
| 1377 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1378 |
msgid "Form Maker Stripe Integration"
|
| 1379 |
msgstr ""
|
| 1380 |
|
| 1381 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1382 |
#, php-format
|
| 1383 |
msgid "Please install %s add-on to use this feature."
|
| 1384 |
msgstr ""
|
|
@@ -1388,15 +1389,20 @@ msgstr ""
|
|
| 1388 |
msgid "Save"
|
| 1389 |
msgstr ""
|
| 1390 |
|
| 1391 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Options_fm.php:
|
| 1392 |
#, php-format
|
| 1393 |
msgid "%s for your site from ReCaptcha website."
|
| 1394 |
msgstr ""
|
| 1395 |
|
| 1396 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Options_fm.php:
|
| 1397 |
msgid "Get ReCaptcha Site and Secret Keys"
|
| 1398 |
msgstr ""
|
| 1399 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1400 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Submissions_fm.php:187
|
| 1401 |
#, fuzzy
|
| 1402 |
msgid "Show Filters"
|
|
@@ -1444,9 +1450,9 @@ msgstr "Wert muss zwischen "
|
|
| 1444 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:3038
|
| 1445 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:3120
|
| 1446 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:3202
|
| 1447 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 1448 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 1449 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 1450 |
msgid "Quantity"
|
| 1451 |
msgstr "Menge "
|
| 1452 |
|
|
@@ -2454,63 +2460,63 @@ msgid "Today"
|
|
| 2454 |
msgstr ""
|
| 2455 |
|
| 2456 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2457 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2458 |
msgid "January"
|
| 2459 |
msgstr "Januar"
|
| 2460 |
|
| 2461 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2462 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2463 |
msgid "February"
|
| 2464 |
msgstr "Februar"
|
| 2465 |
|
| 2466 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2467 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2468 |
msgid "March"
|
| 2469 |
msgstr "März"
|
| 2470 |
|
| 2471 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2472 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2473 |
msgid "April"
|
| 2474 |
msgstr "April"
|
| 2475 |
|
| 2476 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2477 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4289
|
| 2478 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2479 |
msgid "May"
|
| 2480 |
msgstr "Mai"
|
| 2481 |
|
| 2482 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2483 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2484 |
msgid "June"
|
| 2485 |
msgstr "Juni"
|
| 2486 |
|
| 2487 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2488 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2489 |
msgid "July"
|
| 2490 |
msgstr "Juli"
|
| 2491 |
|
| 2492 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2493 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2494 |
msgid "August"
|
| 2495 |
msgstr "August"
|
| 2496 |
|
| 2497 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2498 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2499 |
msgid "September"
|
| 2500 |
msgstr "September"
|
| 2501 |
|
| 2502 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2503 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2504 |
msgid "October"
|
| 2505 |
msgstr "Oktober"
|
| 2506 |
|
| 2507 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2508 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2509 |
msgid "November"
|
| 2510 |
msgstr "November"
|
| 2511 |
|
| 2512 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2513 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2514 |
msgid "December"
|
| 2515 |
msgstr "Dezember"
|
| 2516 |
|
|
@@ -2650,37 +2656,37 @@ msgstr ""
|
|
| 2650 |
"Ihre IP wird die schwarze Liste gesetzt. Bitte kontaktieren Sie die Website-"
|
| 2651 |
"Administrator. "
|
| 2652 |
|
| 2653 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:
|
| 2654 |
msgid "This is not a valid date format."
|
| 2655 |
msgstr "Dies ist keine gültige E-Mail-Adresse."
|
| 2656 |
|
| 2657 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:
|
| 2658 |
msgid "The file exceeds the allowed size of"
|
| 2659 |
msgstr "Die Datei überschreitet die zulässige Größe von"
|
| 2660 |
|
| 2661 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:
|
| 2662 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:
|
| 2663 |
msgid "Error, file cannot be moved."
|
| 2664 |
msgstr "Fehler, kann Datei nicht verschoben werden."
|
| 2665 |
|
| 2666 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:
|
| 2667 |
#, fuzzy, php-format
|
| 2668 |
msgid "This field %s requires a unique entry."
|
| 2669 |
msgstr ""
|
| 2670 |
"Dieses Feld %s benötigt einen eindeutigen Eintrag und dieser Wert wurde "
|
| 2671 |
"bereits eingereicht."
|
| 2672 |
|
| 2673 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:
|
| 2674 |
msgid "Nothing was submitted."
|
| 2675 |
msgstr "Nichts wurde eingereicht."
|
| 2676 |
|
| 2677 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:
|
| 2678 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:
|
| 2679 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:141
|
| 2680 |
msgid "Your form was successfully submitted."
|
| 2681 |
msgstr "Das Formular wurde erfolgreich übermittelt."
|
| 2682 |
|
| 2683 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:
|
| 2684 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:138
|
| 2685 |
msgid "Error, email was not sent."
|
| 2686 |
msgstr "Fehler, E-Mail wurde nicht gesendet."
|
|
@@ -2706,23 +2712,23 @@ msgstr "Ihre E-Mail wurde erfolgreich überprüft."
|
|
| 2706 |
msgid "Verification link is invalid."
|
| 2707 |
msgstr "Bestätigungs-Link ist ungültig."
|
| 2708 |
|
| 2709 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2710 |
msgid "Password values don't match"
|
| 2711 |
msgstr "Kennwortwerte stimmen nicht überein"
|
| 2712 |
|
| 2713 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2714 |
msgid "The email addresses don't match"
|
| 2715 |
msgstr "Die E-Mail-Adressen stimmen nicht überein"
|
| 2716 |
|
| 2717 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2718 |
msgid "This is not a valid email address."
|
| 2719 |
msgstr "Dies ist keine gültige E-Mail-Adresse."
|
| 2720 |
|
| 2721 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2722 |
msgid "AM"
|
| 2723 |
msgstr ""
|
| 2724 |
|
| 2725 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:
|
| 2726 |
msgid "PM"
|
| 2727 |
msgstr ""
|
| 2728 |
|
|
@@ -3111,42 +3117,38 @@ msgid ""
|
|
| 3111 |
"this step, %s will still work just fine."
|
| 3112 |
msgstr ""
|
| 3113 |
|
| 3114 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 3115 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 3116 |
#, fuzzy
|
| 3117 |
msgid "Address line 1"
|
| 3118 |
msgstr "Zusatz"
|
| 3119 |
|
| 3120 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 3121 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 3122 |
#, fuzzy
|
| 3123 |
msgid "Address line 2"
|
| 3124 |
msgstr "Zusatz"
|
| 3125 |
|
| 3126 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 3127 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 3128 |
msgid "State"
|
| 3129 |
msgstr ""
|
| 3130 |
|
| 3131 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 3132 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 3133 |
msgid "Zip code"
|
| 3134 |
msgstr ""
|
| 3135 |
|
| 3136 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 3137 |
msgid "Card number"
|
| 3138 |
msgstr ""
|
| 3139 |
|
| 3140 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 3141 |
-
msgid "
|
| 3142 |
-
msgstr ""
|
| 3143 |
-
|
| 3144 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:194
|
| 3145 |
-
msgid "Expiration month"
|
| 3146 |
msgstr ""
|
| 3147 |
|
| 3148 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 3149 |
-
msgid "
|
| 3150 |
msgstr ""
|
| 3151 |
|
| 3152 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/fm_stripe.php:166
|
|
@@ -3154,20 +3156,13 @@ msgstr ""
|
|
| 3154 |
msgid "Field is required."
|
| 3155 |
msgstr "Feld ist erforderlich"
|
| 3156 |
|
| 3157 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/fm_stripe.php:
|
| 3158 |
#, php-format
|
| 3159 |
msgid ""
|
| 3160 |
-
"Please install Form Maker plugin version
|
| 3161 |
"add-on."
|
| 3162 |
msgstr ""
|
| 3163 |
|
| 3164 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/fm_stripe.php:194
|
| 3165 |
-
#, php-format
|
| 3166 |
-
msgid ""
|
| 3167 |
-
"Please install Form Maker plugin version 2.12.0 and higher to start using %s "
|
| 3168 |
-
"add-ons."
|
| 3169 |
-
msgstr ""
|
| 3170 |
-
|
| 3171 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/view.php:20
|
| 3172 |
#, php-format
|
| 3173 |
msgid "%s for your site."
|
|
@@ -3177,6 +3172,14 @@ msgstr ""
|
|
| 3177 |
msgid "Get Stripe Publishable and Secret Keys"
|
| 3178 |
msgstr ""
|
| 3179 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3180 |
#~ msgid "Hey! How's It Going?"
|
| 3181 |
#~ msgstr "Hallo! Wie geht's?"
|
| 3182 |
|
| 2 |
msgstr ""
|
| 3 |
"Project-Id-Version: form_maker\n"
|
| 4 |
"Report-Msgid-Bugs-To: \n"
|
| 5 |
+
"POT-Creation-Date: 2017-11-21 14:49+0400\n"
|
| 6 |
+
"PO-Revision-Date: 2017-11-21 14:49+0400\n"
|
| 7 |
"Last-Translator: \n"
|
| 8 |
"Language-Team: \n"
|
| 9 |
"Language: de\n"
|
| 22 |
msgid "Form Maker"
|
| 23 |
msgstr ""
|
| 24 |
|
| 25 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:238
|
| 26 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:59
|
| 27 |
msgid "Forms"
|
| 28 |
msgstr ""
|
| 29 |
|
| 30 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:239
|
| 31 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:964
|
| 32 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Submissions_fm.php:141
|
| 33 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Submissions_fm.php:157
|
| 34 |
#, fuzzy
|
| 35 |
msgid "Submissions"
|
| 36 |
msgstr "Show Vorlage"
|
| 37 |
|
| 38 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:242
|
| 39 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Blocked_ips_fm.php:55
|
| 40 |
msgid "Blocked IPs"
|
| 41 |
msgstr ""
|
| 42 |
|
| 43 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:243
|
| 44 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:972
|
| 45 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Themes_fm.php:83
|
| 46 |
msgid "Themes"
|
| 47 |
msgstr ""
|
| 48 |
|
| 49 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:244
|
| 50 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Options_fm.php:23
|
| 51 |
msgid "Options"
|
| 52 |
msgstr ""
|
| 53 |
|
| 54 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:246
|
| 55 |
msgid "Pro Version"
|
| 56 |
msgstr ""
|
| 57 |
|
| 58 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:248
|
| 59 |
msgid "Uninstall"
|
| 60 |
msgstr ""
|
| 61 |
|
| 62 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:249
|
| 63 |
msgid "Add-ons"
|
| 64 |
msgstr ""
|
| 65 |
|
| 66 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:258
|
| 67 |
msgid "Number of items per page:"
|
| 68 |
msgstr ""
|
| 69 |
|
| 70 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:362
|
| 71 |
#, fuzzy
|
| 72 |
msgid "Nothing found."
|
| 73 |
msgstr "Nichts wurde eingereicht."
|
| 74 |
|
| 75 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:363
|
| 76 |
msgid "The captcha already has been created."
|
| 77 |
msgstr ""
|
| 78 |
|
| 79 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:364
|
| 80 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:442
|
| 81 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:737
|
| 82 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:2011
|
| 83 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:2137
|
| 84 |
msgid "Update"
|
| 85 |
msgstr ""
|
| 86 |
|
| 87 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:365
|
| 88 |
#, fuzzy
|
| 89 |
msgid "Add"
|
| 90 |
msgstr "Adresse"
|
| 91 |
|
| 92 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:366
|
| 93 |
msgid "Add Field"
|
| 94 |
msgstr ""
|
| 95 |
|
| 96 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:367
|
| 97 |
msgid "Edit Field"
|
| 98 |
msgstr ""
|
| 99 |
|
| 100 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:368
|
| 101 |
msgid "This field type is disabled in free version."
|
| 102 |
msgstr ""
|
| 103 |
|
| 104 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:369
|
| 105 |
msgid "Please upgrade to Paid version."
|
| 106 |
msgstr ""
|
| 107 |
|
| 108 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:370
|
| 109 |
msgid "Please install "
|
| 110 |
msgstr ""
|
| 111 |
|
| 112 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:371
|
| 113 |
msgid " add-on to use this feature."
|
| 114 |
msgstr ""
|
| 115 |
|
| 116 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:372
|
| 117 |
msgid ""
|
| 118 |
"To use this feature, please go to Form Options > Payment Options and select "
|
| 119 |
"\"Stripe\" as the Payment Method."
|
| 120 |
msgstr ""
|
| 121 |
|
| 122 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:373
|
| 123 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 124 |
msgid "Sunday"
|
| 125 |
msgstr ""
|
| 126 |
|
| 127 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:374
|
| 128 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 129 |
msgid "Monday"
|
| 130 |
msgstr ""
|
| 131 |
|
| 132 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:375
|
| 133 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 134 |
msgid "Tuesday"
|
| 135 |
msgstr ""
|
| 136 |
|
| 137 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:376
|
| 138 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 139 |
msgid "Wednesday"
|
| 140 |
msgstr ""
|
| 141 |
|
| 142 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:377
|
| 143 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 144 |
msgid "Thursday"
|
| 145 |
msgstr ""
|
| 146 |
|
| 147 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:378
|
| 148 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 149 |
msgid "Friday"
|
| 150 |
msgstr ""
|
| 151 |
|
| 152 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:379
|
| 153 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 154 |
msgid "Saturday"
|
| 155 |
msgstr ""
|
| 156 |
|
| 157 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:380
|
| 158 |
msgid "Leave empty to set the width to 100%."
|
| 159 |
msgstr ""
|
| 160 |
|
| 161 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:382
|
| 162 |
msgid ""
|
| 163 |
"The free version is limited up to 7 fields to add. If you need this "
|
| 164 |
"functionality, you need to buy the commercial version."
|
| 165 |
msgstr ""
|
| 166 |
|
| 167 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:404
|
| 168 |
msgid "Do you want to delete selected items?"
|
| 169 |
msgstr ""
|
| 170 |
|
| 171 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:405
|
| 172 |
msgid "You must select at least one item."
|
| 173 |
msgstr ""
|
| 174 |
|
| 175 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:441
|
| 176 |
msgid "You must select a form"
|
| 177 |
msgstr ""
|
| 178 |
|
| 179 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:527
|
| 180 |
msgid "Sorry, you are not allowed to access this page."
|
| 181 |
msgstr ""
|
| 182 |
|
| 183 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:667
|
| 184 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:1489
|
| 185 |
msgid "Can not upload this type of file"
|
| 186 |
msgstr "Kann diese Art von Datei nicht hochladen"
|
| 187 |
|
| 188 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:668
|
| 189 |
msgid "Field is required"
|
| 190 |
msgstr "Feld ist erforderlich"
|
| 191 |
|
| 192 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:669
|
| 193 |
msgid "The "
|
| 194 |
msgstr "Das"
|
| 195 |
|
| 196 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:670
|
| 197 |
msgid " value must be between "
|
| 198 |
msgstr "Wert muss zwischen sein"
|
| 199 |
|
| 200 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:671
|
| 201 |
msgid "Value must be between "
|
| 202 |
msgstr "Wert muss zwischen sein"
|
| 203 |
|
| 204 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:672
|
| 205 |
msgid "Are you sure you want to clear saved data?"
|
| 206 |
msgstr "Sind Sie sicher, dass Sie gespeicherte Daten löschen möchten?"
|
| 207 |
|
| 208 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:673
|
| 209 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:3538
|
| 210 |
msgid "Your score should be less than"
|
| 211 |
msgstr "Ihr Ergebnis sollte kleiner sein als "
|
| 212 |
|
| 213 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:674
|
| 214 |
#, fuzzy
|
| 215 |
msgid "This is not a valid time value."
|
| 216 |
msgstr "Dies ist keine gültige E-Mail-Adresse."
|
| 217 |
|
| 218 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:675
|
| 219 |
#, fuzzy
|
| 220 |
msgid "This is not a valid number value."
|
| 221 |
msgstr "Dies ist keine gültige E-Mail-Adresse."
|
| 222 |
|
| 223 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:676
|
| 224 |
#, fuzzy
|
| 225 |
msgid "This is not a valid date value."
|
| 226 |
msgstr "Dies ist keine gültige E-Mail-Adresse."
|
| 227 |
|
| 228 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:677
|
| 229 |
#, fuzzy, php-format
|
| 230 |
msgid "The year must be between %s and %s"
|
| 231 |
msgstr "Wert muss zwischen sein"
|
| 232 |
|
| 233 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:722
|
| 234 |
msgid ""
|
| 235 |
"Oops! Seems like you installed the update over a quite old version of Form "
|
| 236 |
"Maker. Unfortunately, this version is deprecated.<br />Please contact Web-"
|
| 238 |
"issue as soon as possible."
|
| 239 |
msgstr ""
|
| 240 |
|
| 241 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:902
|
| 242 |
#, php-format
|
| 243 |
msgid "This section allows you to %s."
|
| 244 |
msgstr ""
|
| 245 |
|
| 246 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:910
|
| 247 |
msgid "Upgrade to paid version"
|
| 248 |
msgstr ""
|
| 249 |
|
| 250 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:952
|
| 251 |
msgid ""
|
| 252 |
"Form Maker plugin is a modern and advanced tool for easy and fast creating "
|
| 253 |
"of a WordPress Form. The backend interface is intuitive and user friendly "
|
| 255 |
"Forms."
|
| 256 |
msgstr ""
|
| 257 |
|
| 258 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:956
|
| 259 |
msgid "Easy to Use"
|
| 260 |
msgstr ""
|
| 261 |
|
| 262 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:957
|
| 263 |
msgid ""
|
| 264 |
"This responsive form maker plugin is one of the most easy-to-use form "
|
| 265 |
"builder solutions available on the market. Simple, yet powerful plugin "
|
| 266 |
"allows you to quickly and easily build any complex forms."
|
| 267 |
msgstr ""
|
| 268 |
|
| 269 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:960
|
| 270 |
msgid "Customizable Fields"
|
| 271 |
msgstr ""
|
| 272 |
|
| 273 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:961
|
| 274 |
msgid ""
|
| 275 |
"All the fields of Form Maker plugin are highly customizable, which allows "
|
| 276 |
"you to change almost every detail in the form and make it look exactly like "
|
| 277 |
"you want it to be."
|
| 278 |
msgstr ""
|
| 279 |
|
| 280 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:965
|
| 281 |
msgid ""
|
| 282 |
"You can view the submissions for each form you have. The plugin allows to "
|
| 283 |
"view submissions statistics, filter submission data and export in csv or xml "
|
| 284 |
"formats."
|
| 285 |
msgstr ""
|
| 286 |
|
| 287 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:968
|
| 288 |
msgid "Multi-Page Forms"
|
| 289 |
msgstr ""
|
| 290 |
|
| 291 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:969
|
| 292 |
msgid ""
|
| 293 |
"With the form builder plugin you can create muilti-page forms. Simply use "
|
| 294 |
"the page break field to separate the pages in your forms."
|
| 295 |
msgstr ""
|
| 296 |
|
| 297 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:973
|
| 298 |
msgid ""
|
| 299 |
"The WordPress Form Maker plugin comes with a wide range of customizable "
|
| 300 |
"themes. You can choose from a list of existing themes or simply create the "
|
| 301 |
"one that better fits your brand and website."
|
| 302 |
msgstr ""
|
| 303 |
|
| 304 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:979
|
| 305 |
msgid "Installing"
|
| 306 |
msgstr ""
|
| 307 |
|
| 308 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:984
|
| 309 |
msgid "Creating a new Form"
|
| 310 |
msgstr ""
|
| 311 |
|
| 312 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:989
|
| 313 |
msgid "Configuring Form Options"
|
| 314 |
msgstr ""
|
| 315 |
|
| 316 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:994
|
| 317 |
msgid "Description of The Form Fields"
|
| 318 |
msgstr ""
|
| 319 |
|
| 320 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:998
|
| 321 |
msgid "Selecting Options from Database"
|
| 322 |
msgstr ""
|
| 323 |
|
| 324 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:1004
|
| 325 |
msgid "Publishing the Created Form"
|
| 326 |
msgstr ""
|
| 327 |
|
| 328 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:1009
|
| 329 |
msgid "Blocking IPs"
|
| 330 |
msgstr ""
|
| 331 |
|
| 332 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:1014
|
| 333 |
msgid "Managing Submissions"
|
| 334 |
msgstr ""
|
| 335 |
|
| 336 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:1019
|
| 337 |
msgid "Publishing Submissions"
|
| 338 |
msgstr ""
|
| 339 |
|
| 340 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:1118
|
| 341 |
#, php-format
|
| 342 |
msgid "Please update the %s add-on to start using."
|
| 343 |
msgstr ""
|
| 344 |
|
| 345 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:1119
|
| 346 |
#, php-format
|
| 347 |
msgid "Please update the %s add-ons to start using."
|
| 348 |
msgstr ""
|
| 349 |
|
| 350 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:1179
|
| 351 |
#, php-format
|
| 352 |
msgid ""
|
| 353 |
"%s advises: Install brand new FREE %s plugin to keep your forms and website "
|
| 354 |
"safe."
|
| 355 |
msgstr ""
|
| 356 |
|
| 357 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:1179
|
| 358 |
msgid "More details"
|
| 359 |
msgstr ""
|
| 360 |
|
| 361 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:1179
|
| 362 |
msgid "Backup WD"
|
| 363 |
msgstr ""
|
| 364 |
|
| 365 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:1244
|
| 366 |
msgid "Support Forum"
|
| 367 |
msgstr ""
|
| 368 |
|
| 369 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:1245
|
| 370 |
msgid "Rate"
|
| 371 |
msgstr ""
|
| 372 |
|
| 385 |
msgstr "Abgeschlossen"
|
| 386 |
|
| 387 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:28
|
| 388 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:148
|
| 389 |
msgid "Publish"
|
| 390 |
msgstr ""
|
| 391 |
|
| 394 |
msgstr ""
|
| 395 |
|
| 396 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:32
|
| 397 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:148
|
| 398 |
msgid "Unpublish"
|
| 399 |
msgstr ""
|
| 400 |
|
| 412 |
msgid "duplicated"
|
| 413 |
msgstr ""
|
| 414 |
|
| 415 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:347
|
| 416 |
msgid "Create new form"
|
| 417 |
msgstr ""
|
| 418 |
|
| 419 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:481
|
| 420 |
msgid "options"
|
| 421 |
msgstr ""
|
| 422 |
|
| 423 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:812
|
| 424 |
msgid "layout"
|
| 425 |
msgstr ""
|
| 426 |
|
| 427 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:856
|
| 428 |
msgid "display options"
|
| 429 |
msgstr ""
|
| 430 |
|
| 1017 |
msgstr ""
|
| 1018 |
|
| 1019 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Themes_fm.php:1080
|
| 1020 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:517
|
| 1021 |
#, fuzzy
|
| 1022 |
msgid "Single Choice"
|
| 1023 |
msgstr "Wahlen"
|
| 1028 |
msgstr ""
|
| 1029 |
|
| 1030 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Themes_fm.php:1220
|
| 1031 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:518
|
| 1032 |
msgid "Multiple Choice"
|
| 1033 |
msgstr ""
|
| 1034 |
|
| 1035 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Themes_fm.php:1410
|
| 1036 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:520
|
| 1037 |
msgid "Submit"
|
| 1038 |
msgstr ""
|
| 1039 |
|
| 1098 |
msgstr ""
|
| 1099 |
|
| 1100 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Themes_fm.php:2853
|
| 1101 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:538
|
| 1102 |
msgid "File Upload"
|
| 1103 |
msgstr ""
|
| 1104 |
|
| 1119 |
msgstr "Zusatz"
|
| 1120 |
|
| 1121 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/models/Submissions_fm.php:357
|
| 1122 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:42
|
| 1123 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:201
|
| 1124 |
msgid "City"
|
| 1125 |
msgstr "Stadt"
|
| 1126 |
|
| 1133 |
msgstr "Postleitzahl"
|
| 1134 |
|
| 1135 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/models/Submissions_fm.php:366
|
| 1136 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:44
|
| 1137 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:211
|
| 1138 |
msgid "Country"
|
| 1139 |
msgstr "Land"
|
| 1140 |
|
| 1143 |
msgstr ""
|
| 1144 |
|
| 1145 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Blocked_ips_fm.php:116
|
| 1146 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:152
|
| 1147 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Submissions_fm.php:484
|
| 1148 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Themes_fm.php:96
|
| 1149 |
msgid "Do you want to delete selected item?"
|
| 1163 |
msgstr ""
|
| 1164 |
|
| 1165 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/FormMakerSubmits.php:43
|
| 1166 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:515
|
| 1167 |
msgid "Date"
|
| 1168 |
msgstr "Datum"
|
| 1169 |
|
| 1170 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:84
|
| 1171 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Themes_fm.php:70
|
| 1172 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Themes_fm.php:145
|
| 1173 |
msgid "Title"
|
| 1174 |
msgstr "Titel"
|
| 1175 |
|
| 1176 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:85
|
| 1177 |
msgid "Type"
|
| 1178 |
msgstr ""
|
| 1179 |
|
| 1180 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:87
|
| 1181 |
msgid "Shortcode"
|
| 1182 |
msgstr ""
|
| 1183 |
|
| 1184 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:511
|
| 1185 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:594
|
| 1186 |
msgid "BASIC FIELDS"
|
| 1187 |
msgstr ""
|
| 1188 |
|
| 1189 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:512
|
| 1190 |
msgid "Single Line Text"
|
| 1191 |
msgstr ""
|
| 1192 |
|
| 1193 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:513
|
| 1194 |
msgid "Paragraph Text"
|
| 1195 |
msgstr ""
|
| 1196 |
|
| 1197 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:514
|
| 1198 |
#, fuzzy
|
| 1199 |
msgid "Number"
|
| 1200 |
msgstr "November"
|
| 1201 |
|
| 1202 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:516
|
| 1203 |
#, fuzzy
|
| 1204 |
msgid "Select"
|
| 1205 |
msgstr "Wählen Sie ein Datum"
|
| 1206 |
|
| 1207 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:519
|
| 1208 |
msgid "Recaptcha"
|
| 1209 |
msgstr ""
|
| 1210 |
|
| 1211 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:521
|
| 1212 |
msgid "Simple Captcha"
|
| 1213 |
msgstr ""
|
| 1214 |
|
| 1215 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:523
|
| 1216 |
msgid "USER INFO FIELDS"
|
| 1217 |
msgstr ""
|
| 1218 |
|
| 1219 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:524
|
| 1220 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:39
|
| 1221 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:186
|
| 1222 |
msgid "Name"
|
| 1223 |
msgstr ""
|
| 1224 |
|
| 1225 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:525
|
| 1226 |
msgid "Email"
|
| 1227 |
msgstr ""
|
| 1228 |
|
| 1229 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:526
|
| 1230 |
msgid "Phone"
|
| 1231 |
msgstr ""
|
| 1232 |
|
| 1233 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:527
|
| 1234 |
msgid "Address"
|
| 1235 |
msgstr "Adresse"
|
| 1236 |
|
| 1237 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:528
|
| 1238 |
#, fuzzy
|
| 1239 |
msgid "Mark on Map"
|
| 1240 |
msgstr "Auf Karte anzeigen"
|
| 1241 |
|
| 1242 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:529
|
| 1243 |
#, fuzzy
|
| 1244 |
msgid "Country List"
|
| 1245 |
msgstr "Land"
|
| 1246 |
|
| 1247 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:530
|
| 1248 |
msgid "Date of Birth"
|
| 1249 |
msgstr ""
|
| 1250 |
|
| 1251 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:532
|
| 1252 |
msgid "LAYOUT FIELDS"
|
| 1253 |
msgstr ""
|
| 1254 |
|
| 1255 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:533
|
| 1256 |
msgid "HTML"
|
| 1257 |
msgstr ""
|
| 1258 |
|
| 1259 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:534
|
| 1260 |
msgid "Section"
|
| 1261 |
msgstr ""
|
| 1262 |
|
| 1263 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:535
|
| 1264 |
msgid "Page"
|
| 1265 |
msgstr ""
|
| 1266 |
|
| 1267 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:537
|
| 1268 |
msgid "ADVANCED"
|
| 1269 |
msgstr ""
|
| 1270 |
|
| 1271 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:539
|
| 1272 |
#, fuzzy
|
| 1273 |
msgid "Map"
|
| 1274 |
msgstr "Mai"
|
| 1275 |
|
| 1276 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:540
|
| 1277 |
msgid "Time"
|
| 1278 |
msgstr ""
|
| 1279 |
|
| 1280 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:541
|
| 1281 |
msgid "Receive Copy"
|
| 1282 |
msgstr ""
|
| 1283 |
|
| 1284 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:542
|
| 1285 |
msgid "Date Range"
|
| 1286 |
msgstr ""
|
| 1287 |
|
| 1288 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:543
|
| 1289 |
msgid "Stars"
|
| 1290 |
msgstr ""
|
| 1291 |
|
| 1292 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:544
|
| 1293 |
msgid "Rating"
|
| 1294 |
msgstr ""
|
| 1295 |
|
| 1296 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:545
|
| 1297 |
msgid "Slider"
|
| 1298 |
msgstr ""
|
| 1299 |
|
| 1300 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:546
|
| 1301 |
msgid "Range"
|
| 1302 |
msgstr ""
|
| 1303 |
|
| 1304 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:547
|
| 1305 |
msgid "Grades"
|
| 1306 |
msgstr ""
|
| 1307 |
|
| 1308 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:548
|
| 1309 |
#, fuzzy
|
| 1310 |
msgid "Table of Fields"
|
| 1311 |
msgstr "Wählen Sie ein Feld "
|
| 1312 |
|
| 1313 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:549
|
| 1314 |
msgid "Hidden Input"
|
| 1315 |
msgstr ""
|
| 1316 |
|
| 1317 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:550
|
| 1318 |
msgid "Custom Button"
|
| 1319 |
msgstr ""
|
| 1320 |
|
| 1321 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:551
|
| 1322 |
msgid "Password"
|
| 1323 |
msgstr ""
|
| 1324 |
|
| 1325 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:552
|
| 1326 |
#, fuzzy
|
| 1327 |
msgid "Phone-Area Code"
|
| 1328 |
msgstr "Vorwahl"
|
| 1329 |
|
| 1330 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:553
|
| 1331 |
msgid "Arithmetic Captcha"
|
| 1332 |
msgstr ""
|
| 1333 |
|
| 1334 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:555
|
| 1335 |
msgid "PAYMENT"
|
| 1336 |
msgstr ""
|
| 1337 |
|
| 1338 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:556
|
| 1339 |
msgid "Price"
|
| 1340 |
msgstr ""
|
| 1341 |
|
| 1342 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:557
|
| 1343 |
msgid "Payment Select"
|
| 1344 |
msgstr ""
|
| 1345 |
|
| 1346 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:558
|
| 1347 |
msgid "Payment Single Choice"
|
| 1348 |
msgstr ""
|
| 1349 |
|
| 1350 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:559
|
| 1351 |
msgid "Payment Multiple Choice"
|
| 1352 |
msgstr ""
|
| 1353 |
|
| 1354 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:560
|
| 1355 |
msgid "Shipping"
|
| 1356 |
msgstr ""
|
| 1357 |
|
| 1358 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:561
|
| 1359 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:4192
|
| 1360 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_submissions.php:635
|
| 1361 |
msgid "Total"
|
| 1362 |
msgstr "Gesamt"
|
| 1363 |
|
| 1364 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:562
|
| 1365 |
msgid "Stripe"
|
| 1366 |
msgstr ""
|
| 1367 |
|
| 1368 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:596
|
| 1369 |
msgid "Toggle panel:"
|
| 1370 |
msgstr ""
|
| 1371 |
|
| 1372 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:743
|
| 1373 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:2017
|
| 1374 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:2143
|
| 1375 |
msgid "Back to Form"
|
| 1376 |
msgstr ""
|
| 1377 |
|
| 1378 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:1544
|
| 1379 |
msgid "Form Maker Stripe Integration"
|
| 1380 |
msgstr ""
|
| 1381 |
|
| 1382 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:1545
|
| 1383 |
#, php-format
|
| 1384 |
msgid "Please install %s add-on to use this feature."
|
| 1385 |
msgstr ""
|
| 1389 |
msgid "Save"
|
| 1390 |
msgstr ""
|
| 1391 |
|
| 1392 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Options_fm.php:68
|
| 1393 |
#, php-format
|
| 1394 |
msgid "%s for your site from ReCaptcha website."
|
| 1395 |
msgstr ""
|
| 1396 |
|
| 1397 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Options_fm.php:68
|
| 1398 |
msgid "Get ReCaptcha Site and Secret Keys"
|
| 1399 |
msgstr ""
|
| 1400 |
|
| 1401 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Options_fm.php:113
|
| 1402 |
+
#, php-format
|
| 1403 |
+
msgid "Uninstall %s"
|
| 1404 |
+
msgstr ""
|
| 1405 |
+
|
| 1406 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Submissions_fm.php:187
|
| 1407 |
#, fuzzy
|
| 1408 |
msgid "Show Filters"
|
| 1450 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:3038
|
| 1451 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:3120
|
| 1452 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:3202
|
| 1453 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:2209
|
| 1454 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:2396
|
| 1455 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:2589
|
| 1456 |
msgid "Quantity"
|
| 1457 |
msgstr "Menge "
|
| 1458 |
|
| 2460 |
msgstr ""
|
| 2461 |
|
| 2462 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2463 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:3479
|
| 2464 |
msgid "January"
|
| 2465 |
msgstr "Januar"
|
| 2466 |
|
| 2467 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2468 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:3479
|
| 2469 |
msgid "February"
|
| 2470 |
msgstr "Februar"
|
| 2471 |
|
| 2472 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2473 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:3479
|
| 2474 |
msgid "March"
|
| 2475 |
msgstr "März"
|
| 2476 |
|
| 2477 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2478 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:3479
|
| 2479 |
msgid "April"
|
| 2480 |
msgstr "April"
|
| 2481 |
|
| 2482 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2483 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4289
|
| 2484 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:3479
|
| 2485 |
msgid "May"
|
| 2486 |
msgstr "Mai"
|
| 2487 |
|
| 2488 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2489 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:3479
|
| 2490 |
msgid "June"
|
| 2491 |
msgstr "Juni"
|
| 2492 |
|
| 2493 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2494 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:3479
|
| 2495 |
msgid "July"
|
| 2496 |
msgstr "Juli"
|
| 2497 |
|
| 2498 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2499 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:3479
|
| 2500 |
msgid "August"
|
| 2501 |
msgstr "August"
|
| 2502 |
|
| 2503 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2504 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:3479
|
| 2505 |
msgid "September"
|
| 2506 |
msgstr "September"
|
| 2507 |
|
| 2508 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2509 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:3479
|
| 2510 |
msgid "October"
|
| 2511 |
msgstr "Oktober"
|
| 2512 |
|
| 2513 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2514 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:3479
|
| 2515 |
msgid "November"
|
| 2516 |
msgstr "November"
|
| 2517 |
|
| 2518 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4288
|
| 2519 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:3479
|
| 2520 |
msgid "December"
|
| 2521 |
msgstr "Dezember"
|
| 2522 |
|
| 2656 |
"Ihre IP wird die schwarze Liste gesetzt. Bitte kontaktieren Sie die Website-"
|
| 2657 |
"Administrator. "
|
| 2658 |
|
| 2659 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:1374
|
| 2660 |
msgid "This is not a valid date format."
|
| 2661 |
msgstr "Dies ist keine gültige E-Mail-Adresse."
|
| 2662 |
|
| 2663 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:1474
|
| 2664 |
msgid "The file exceeds the allowed size of"
|
| 2665 |
msgstr "Die Datei überschreitet die zulässige Größe von"
|
| 2666 |
|
| 2667 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:1599
|
| 2668 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:2362
|
| 2669 |
msgid "Error, file cannot be moved."
|
| 2670 |
msgstr "Fehler, kann Datei nicht verschoben werden."
|
| 2671 |
|
| 2672 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:1961
|
| 2673 |
#, fuzzy, php-format
|
| 2674 |
msgid "This field %s requires a unique entry."
|
| 2675 |
msgstr ""
|
| 2676 |
"Dieses Feld %s benötigt einen eindeutigen Eintrag und dieser Wert wurde "
|
| 2677 |
"bereits eingereicht."
|
| 2678 |
|
| 2679 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:2221
|
| 2680 |
msgid "Nothing was submitted."
|
| 2681 |
msgstr "Nichts wurde eingereicht."
|
| 2682 |
|
| 2683 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:3217
|
| 2684 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:3229
|
| 2685 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:141
|
| 2686 |
msgid "Your form was successfully submitted."
|
| 2687 |
msgstr "Das Formular wurde erfolgreich übermittelt."
|
| 2688 |
|
| 2689 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:3224
|
| 2690 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:138
|
| 2691 |
msgid "Error, email was not sent."
|
| 2692 |
msgstr "Fehler, E-Mail wurde nicht gesendet."
|
| 2712 |
msgid "Verification link is invalid."
|
| 2713 |
msgstr "Bestätigungs-Link ist ungültig."
|
| 2714 |
|
| 2715 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:554
|
| 2716 |
msgid "Password values don't match"
|
| 2717 |
msgstr "Kennwortwerte stimmen nicht überein"
|
| 2718 |
|
| 2719 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:1074
|
| 2720 |
msgid "The email addresses don't match"
|
| 2721 |
msgstr "Die E-Mail-Adressen stimmen nicht überein"
|
| 2722 |
|
| 2723 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:1075
|
| 2724 |
msgid "This is not a valid email address."
|
| 2725 |
msgstr "Dies ist keine gültige E-Mail-Adresse."
|
| 2726 |
|
| 2727 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:3743
|
| 2728 |
msgid "AM"
|
| 2729 |
msgstr ""
|
| 2730 |
|
| 2731 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/views/form_maker.php:3744
|
| 2732 |
msgid "PM"
|
| 2733 |
msgstr ""
|
| 2734 |
|
| 3117 |
"this step, %s will still work just fine."
|
| 3118 |
msgstr ""
|
| 3119 |
|
| 3120 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:40
|
| 3121 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:191
|
| 3122 |
#, fuzzy
|
| 3123 |
msgid "Address line 1"
|
| 3124 |
msgstr "Zusatz"
|
| 3125 |
|
| 3126 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:41
|
| 3127 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:196
|
| 3128 |
#, fuzzy
|
| 3129 |
msgid "Address line 2"
|
| 3130 |
msgstr "Zusatz"
|
| 3131 |
|
| 3132 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:43
|
| 3133 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:206
|
| 3134 |
msgid "State"
|
| 3135 |
msgstr ""
|
| 3136 |
|
| 3137 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:45
|
| 3138 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:216
|
| 3139 |
msgid "Zip code"
|
| 3140 |
msgstr ""
|
| 3141 |
|
| 3142 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:171
|
| 3143 |
msgid "Card number"
|
| 3144 |
msgstr ""
|
| 3145 |
|
| 3146 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:176
|
| 3147 |
+
msgid "Expiration date"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3148 |
msgstr ""
|
| 3149 |
|
| 3150 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:181
|
| 3151 |
+
msgid "CVC"
|
| 3152 |
msgstr ""
|
| 3153 |
|
| 3154 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/fm_stripe.php:166
|
| 3156 |
msgid "Field is required."
|
| 3157 |
msgstr "Feld ist erforderlich"
|
| 3158 |
|
| 3159 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/fm_stripe.php:181
|
| 3160 |
#, php-format
|
| 3161 |
msgid ""
|
| 3162 |
+
"Please install Form Maker plugin version %s and higher to start using Stripe "
|
| 3163 |
"add-on."
|
| 3164 |
msgstr ""
|
| 3165 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3166 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/view.php:20
|
| 3167 |
#, php-format
|
| 3168 |
msgid "%s for your site."
|
| 3172 |
msgid "Get Stripe Publishable and Secret Keys"
|
| 3173 |
msgstr ""
|
| 3174 |
|
| 3175 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/view.php:131
|
| 3176 |
+
msgid "Month"
|
| 3177 |
+
msgstr ""
|
| 3178 |
+
|
| 3179 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/view.php:144
|
| 3180 |
+
msgid "Year"
|
| 3181 |
+
msgstr ""
|
| 3182 |
+
|
| 3183 |
#~ msgid "Hey! How's It Going?"
|
| 3184 |
#~ msgstr "Hallo! Wie geht's?"
|
| 3185 |
|
languages/form_maker-en_US.mo
CHANGED
|
Binary file
|
languages/form_maker-en_US.po
CHANGED
|
@@ -2,8 +2,8 @@ msgid ""
|
|
| 2 |
msgstr ""
|
| 3 |
"Project-Id-Version: form_maker\n"
|
| 4 |
"Report-Msgid-Bugs-To: \n"
|
| 5 |
-
"POT-Creation-Date: 2017-11-
|
| 6 |
-
"PO-Revision-Date: 2017-11-
|
| 7 |
"Last-Translator: \n"
|
| 8 |
"Language-Team: \n"
|
| 9 |
"Language: el\n"
|
|
@@ -22,218 +22,218 @@ msgstr ""
|
|
| 22 |
msgid "Form Maker"
|
| 23 |
msgstr ""
|
| 24 |
|
| 25 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 26 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:59
|
| 27 |
msgid "Forms"
|
| 28 |
msgstr ""
|
| 29 |
|
| 30 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 31 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 32 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Submissions_fm.php:141
|
| 33 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Submissions_fm.php:157
|
| 34 |
#, fuzzy
|
| 35 |
msgid "Submissions"
|
| 36 |
msgstr "Show submission"
|
| 37 |
|
| 38 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 39 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Blocked_ips_fm.php:55
|
| 40 |
msgid "Blocked IPs"
|
| 41 |
msgstr ""
|
| 42 |
|
| 43 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 44 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 45 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Themes_fm.php:83
|
| 46 |
msgid "Themes"
|
| 47 |
msgstr ""
|
| 48 |
|
| 49 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 50 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Options_fm.php:23
|
| 51 |
msgid "Options"
|
| 52 |
msgstr ""
|
| 53 |
|
| 54 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 55 |
msgid "Pro Version"
|
| 56 |
msgstr ""
|
| 57 |
|
| 58 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 59 |
msgid "Uninstall"
|
| 60 |
msgstr ""
|
| 61 |
|
| 62 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 63 |
msgid "Add-ons"
|
| 64 |
msgstr ""
|
| 65 |
|
| 66 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 67 |
msgid "Number of items per page:"
|
| 68 |
msgstr ""
|
| 69 |
|
| 70 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 71 |
#, fuzzy
|
| 72 |
msgid "Nothing found."
|
| 73 |
msgstr "Nothing was submitted."
|
| 74 |
|
| 75 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 76 |
msgid "The captcha already has been created."
|
| 77 |
msgstr ""
|
| 78 |
|
| 79 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 80 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 81 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 82 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 83 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 84 |
msgid "Update"
|
| 85 |
msgstr ""
|
| 86 |
|
| 87 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 88 |
#, fuzzy
|
| 89 |
msgid "Add"
|
| 90 |
msgstr "Address"
|
| 91 |
|
| 92 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 93 |
msgid "Add Field"
|
| 94 |
msgstr ""
|
| 95 |
|
| 96 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 97 |
msgid "Edit Field"
|
| 98 |
msgstr ""
|
| 99 |
|
| 100 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 101 |
msgid "This field type is disabled in free version."
|
| 102 |
msgstr ""
|
| 103 |
|
| 104 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 105 |
msgid "Please upgrade to Paid version."
|
| 106 |
msgstr ""
|
| 107 |
|
| 108 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 109 |
msgid "Please install "
|
| 110 |
msgstr ""
|
| 111 |
|
| 112 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 113 |
msgid " add-on to use this feature."
|
| 114 |
msgstr ""
|
| 115 |
|
| 116 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 117 |
msgid ""
|
| 118 |
"To use this feature, please go to Form Options > Payment Options and select "
|
| 119 |
"\"Stripe\" as the Payment Method."
|
| 120 |
msgstr ""
|
| 121 |
|
| 122 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 123 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 124 |
msgid "Sunday"
|
| 125 |
msgstr ""
|
| 126 |
|
| 127 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 128 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 129 |
msgid "Monday"
|
| 130 |
msgstr ""
|
| 131 |
|
| 132 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 133 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 134 |
msgid "Tuesday"
|
| 135 |
msgstr ""
|
| 136 |
|
| 137 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 138 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 139 |
msgid "Wednesday"
|
| 140 |
msgstr ""
|
| 141 |
|
| 142 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 143 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 144 |
msgid "Thursday"
|
| 145 |
msgstr ""
|
| 146 |
|
| 147 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 148 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 149 |
msgid "Friday"
|
| 150 |
msgstr ""
|
| 151 |
|
| 152 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 153 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 154 |
msgid "Saturday"
|
| 155 |
msgstr ""
|
| 156 |
|
| 157 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 158 |
msgid "Leave empty to set the width to 100%."
|
| 159 |
msgstr ""
|
| 160 |
|
| 161 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 162 |
msgid ""
|
| 163 |
"The free version is limited up to 7 fields to add. If you need this "
|
| 164 |
"functionality, you need to buy the commercial version."
|
| 165 |
msgstr ""
|
| 166 |
|
| 167 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 168 |
msgid "Do you want to delete selected items?"
|
| 169 |
msgstr ""
|
| 170 |
|
| 171 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 172 |
msgid "You must select at least one item."
|
| 173 |
msgstr ""
|
| 174 |
|
| 175 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 176 |
msgid "You must select a form"
|
| 177 |
msgstr ""
|
| 178 |
|
| 179 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 180 |
msgid "Sorry, you are not allowed to access this page."
|
| 181 |
msgstr ""
|
| 182 |
|
| 183 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 184 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:
|
| 185 |
#, fuzzy
|
| 186 |
msgid "Can not upload this type of file"
|
| 187 |
msgstr "Sorry, you are not allowed to upload this type of file."
|
| 188 |
|
| 189 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 190 |
msgid "Field is required"
|
| 191 |
msgstr "Field is required."
|
| 192 |
|
| 193 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 194 |
msgid "The "
|
| 195 |
msgstr "The "
|
| 196 |
|
| 197 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 198 |
#, fuzzy
|
| 199 |
msgid " value must be between "
|
| 200 |
msgstr "value must be between"
|
| 201 |
|
| 202 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 203 |
#, fuzzy
|
| 204 |
msgid "Value must be between "
|
| 205 |
msgstr "value must be between"
|
| 206 |
|
| 207 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 208 |
msgid "Are you sure you want to clear saved data?"
|
| 209 |
msgstr "Are you sure you want to clear saved data?"
|
| 210 |
|
| 211 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 212 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:3538
|
| 213 |
msgid "Your score should be less than"
|
| 214 |
msgstr "Your score should be less than"
|
| 215 |
|
| 216 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 217 |
#, fuzzy
|
| 218 |
msgid "This is not a valid time value."
|
| 219 |
msgstr "This is not a valid email address."
|
| 220 |
|
| 221 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 222 |
#, fuzzy
|
| 223 |
msgid "This is not a valid number value."
|
| 224 |
msgstr "This is not a valid email address."
|
| 225 |
|
| 226 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 227 |
#, fuzzy
|
| 228 |
msgid "This is not a valid date value."
|
| 229 |
msgstr "This is not a valid email address."
|
| 230 |
|
| 231 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 232 |
#, fuzzy, php-format
|
| 233 |
msgid "The year must be between %s and %s"
|
| 234 |
msgstr "value must be between"
|
| 235 |
|
| 236 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 237 |
msgid ""
|
| 238 |
"Oops! Seems like you installed the update over a quite old version of Form "
|
| 239 |
"Maker. Unfortunately, this version is deprecated.<br />Please contact Web-"
|
|
@@ -241,16 +241,16 @@ msgid ""
|
|
| 241 |
"issue as soon as possible."
|
| 242 |
msgstr ""
|
| 243 |
|
| 244 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 245 |
#, php-format
|
| 246 |
msgid "This section allows you to %s."
|
| 247 |
msgstr ""
|
| 248 |
|
| 249 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 250 |
msgid "Upgrade to paid version"
|
| 251 |
msgstr ""
|
| 252 |
|
| 253 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 254 |
msgid ""
|
| 255 |
"Form Maker plugin is a modern and advanced tool for easy and fast creating "
|
| 256 |
"of a WordPress Form. The backend interface is intuitive and user friendly "
|
|
@@ -258,118 +258,118 @@ msgid ""
|
|
| 258 |
"Forms."
|
| 259 |
msgstr ""
|
| 260 |
|
| 261 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 262 |
msgid "Easy to Use"
|
| 263 |
msgstr ""
|
| 264 |
|
| 265 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 266 |
msgid ""
|
| 267 |
"This responsive form maker plugin is one of the most easy-to-use form "
|
| 268 |
"builder solutions available on the market. Simple, yet powerful plugin "
|
| 269 |
"allows you to quickly and easily build any complex forms."
|
| 270 |
msgstr ""
|
| 271 |
|
| 272 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 273 |
msgid "Customizable Fields"
|
| 274 |
msgstr ""
|
| 275 |
|
| 276 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 277 |
msgid ""
|
| 278 |
"All the fields of Form Maker plugin are highly customizable, which allows "
|
| 279 |
"you to change almost every detail in the form and make it look exactly like "
|
| 280 |
"you want it to be."
|
| 281 |
msgstr ""
|
| 282 |
|
| 283 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 284 |
msgid ""
|
| 285 |
"You can view the submissions for each form you have. The plugin allows to "
|
| 286 |
"view submissions statistics, filter submission data and export in csv or xml "
|
| 287 |
"formats."
|
| 288 |
msgstr ""
|
| 289 |
|
| 290 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 291 |
msgid "Multi-Page Forms"
|
| 292 |
msgstr ""
|
| 293 |
|
| 294 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 295 |
msgid ""
|
| 296 |
"With the form builder plugin you can create muilti-page forms. Simply use "
|
| 297 |
"the page break field to separate the pages in your forms."
|
| 298 |
msgstr ""
|
| 299 |
|
| 300 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 301 |
msgid ""
|
| 302 |
"The WordPress Form Maker plugin comes with a wide range of customizable "
|
| 303 |
"themes. You can choose from a list of existing themes or simply create the "
|
| 304 |
"one that better fits your brand and website."
|
| 305 |
msgstr ""
|
| 306 |
|
| 307 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 308 |
msgid "Installing"
|
| 309 |
msgstr ""
|
| 310 |
|
| 311 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 312 |
msgid "Creating a new Form"
|
| 313 |
msgstr ""
|
| 314 |
|
| 315 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 316 |
msgid "Configuring Form Options"
|
| 317 |
msgstr ""
|
| 318 |
|
| 319 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 320 |
msgid "Description of The Form Fields"
|
| 321 |
msgstr ""
|
| 322 |
|
| 323 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 324 |
msgid "Selecting Options from Database"
|
| 325 |
msgstr ""
|
| 326 |
|
| 327 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 328 |
msgid "Publishing the Created Form"
|
| 329 |
msgstr ""
|
| 330 |
|
| 331 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 332 |
msgid "Blocking IPs"
|
| 333 |
msgstr ""
|
| 334 |
|
| 335 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 336 |
msgid "Managing Submissions"
|
| 337 |
msgstr ""
|
| 338 |
|
| 339 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 340 |
msgid "Publishing Submissions"
|
| 341 |
msgstr ""
|
| 342 |
|
| 343 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 344 |
#, php-format
|
| 345 |
msgid "Please update the %s add-on to start using."
|
| 346 |
msgstr ""
|
| 347 |
|
| 348 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 349 |
#, php-format
|
| 350 |
msgid "Please update the %s add-ons to start using."
|
| 351 |
msgstr ""
|
| 352 |
|
| 353 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 354 |
#, php-format
|
| 355 |
msgid ""
|
| 356 |
"%s advises: Install brand new FREE %s plugin to keep your forms and website "
|
| 357 |
"safe."
|
| 358 |
msgstr ""
|
| 359 |
|
| 360 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 361 |
msgid "More details"
|
| 362 |
msgstr ""
|
| 363 |
|
| 364 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 365 |
msgid "Backup WD"
|
| 366 |
msgstr ""
|
| 367 |
|
| 368 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 369 |
msgid "Support Forum"
|
| 370 |
msgstr ""
|
| 371 |
|
| 372 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:
|
| 373 |
msgid "Rate"
|
| 374 |
msgstr ""
|
| 375 |
|
|
@@ -388,7 +388,7 @@ msgid "deleted"
|
|
| 388 |
msgstr "Completed"
|
| 389 |
|
| 390 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:28
|
| 391 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 392 |
msgid "Publish"
|
| 393 |
msgstr ""
|
| 394 |
|
|
@@ -397,7 +397,7 @@ msgid "published"
|
|
| 397 |
msgstr ""
|
| 398 |
|
| 399 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:32
|
| 400 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 401 |
msgid "Unpublish"
|
| 402 |
msgstr ""
|
| 403 |
|
|
@@ -415,19 +415,19 @@ msgstr ""
|
|
| 415 |
msgid "duplicated"
|
| 416 |
msgstr ""
|
| 417 |
|
| 418 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:
|
| 419 |
msgid "Create new form"
|
| 420 |
msgstr ""
|
| 421 |
|
| 422 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:
|
| 423 |
msgid "options"
|
| 424 |
msgstr ""
|
| 425 |
|
| 426 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:
|
| 427 |
msgid "layout"
|
| 428 |
msgstr ""
|
| 429 |
|
| 430 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:
|
| 431 |
msgid "display options"
|
| 432 |
msgstr ""
|
| 433 |
|
|
@@ -1020,7 +1020,7 @@ msgid "Appearance"
|
|
| 1020 |
msgstr ""
|
| 1021 |
|
| 1022 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Themes_fm.php:1080
|
| 1023 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1024 |
#, fuzzy
|
| 1025 |
msgid "Single Choice"
|
| 1026 |
msgstr "Choices"
|
|
@@ -1031,12 +1031,12 @@ msgid "Checked Parameters"
|
|
| 1031 |
msgstr ""
|
| 1032 |
|
| 1033 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Themes_fm.php:1220
|
| 1034 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1035 |
msgid "Multiple Choice"
|
| 1036 |
msgstr ""
|
| 1037 |
|
| 1038 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Themes_fm.php:1410
|
| 1039 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1040 |
msgid "Submit"
|
| 1041 |
msgstr ""
|
| 1042 |
|
|
@@ -1101,7 +1101,7 @@ msgid "Required"
|
|
| 1101 |
msgstr ""
|
| 1102 |
|
| 1103 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Themes_fm.php:2853
|
| 1104 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1105 |
msgid "File Upload"
|
| 1106 |
msgstr ""
|
| 1107 |
|
|
@@ -1122,8 +1122,8 @@ msgid "Street Address Line 2"
|
|
| 1122 |
msgstr "Street Address Line 2"
|
| 1123 |
|
| 1124 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/models/Submissions_fm.php:357
|
| 1125 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 1126 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 1127 |
msgid "City"
|
| 1128 |
msgstr "City"
|
| 1129 |
|
|
@@ -1136,8 +1136,8 @@ msgid "Postal / Zip Code"
|
|
| 1136 |
msgstr "Postal / Zip Code"
|
| 1137 |
|
| 1138 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/models/Submissions_fm.php:366
|
| 1139 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 1140 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
| 1141 |
msgid "Country"
|
| 1142 |
msgstr "Country"
|
| 1143 |
|
|
@@ -1146,7 +1146,7 @@ msgid "IP"
|
|
| 1146 |
msgstr ""
|
| 1147 |
|
| 1148 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Blocked_ips_fm.php:116
|
| 1149 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1150 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Submissions_fm.php:484
|
| 1151 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Themes_fm.php:96
|
| 1152 |
msgid "Do you want to delete selected item?"
|
|
@@ -1166,222 +1166,223 @@ msgid "Front end submissions are disabled in free version."
|
|
| 1166 |
msgstr ""
|
| 1167 |
|
| 1168 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/FormMakerSubmits.php:43
|
| 1169 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1170 |
msgid "Date"
|
| 1171 |
msgstr "Date"
|
| 1172 |
|
| 1173 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1174 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Themes_fm.php:70
|
| 1175 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Themes_fm.php:145
|
| 1176 |
msgid "Title"
|
| 1177 |
msgstr "Title"
|
| 1178 |
|
| 1179 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1180 |
msgid "Type"
|
| 1181 |
msgstr ""
|
| 1182 |
|
| 1183 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1184 |
msgid "Shortcode"
|
| 1185 |
msgstr ""
|
| 1186 |
|
| 1187 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1188 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1189 |
msgid "BASIC FIELDS"
|
| 1190 |
msgstr ""
|
| 1191 |
|
| 1192 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1193 |
msgid "Single Line Text"
|
| 1194 |
msgstr ""
|
| 1195 |
|
| 1196 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1197 |
msgid "Paragraph Text"
|
| 1198 |
msgstr ""
|
| 1199 |
|
| 1200 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1201 |
#, fuzzy
|
| 1202 |
msgid "Number"
|
| 1203 |
msgstr "November"
|
| 1204 |
|
| 1205 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1206 |
#, fuzzy
|
| 1207 |
msgid "Select"
|
| 1208 |
msgstr "Select a Date"
|
| 1209 |
|
| 1210 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1211 |
msgid "Recaptcha"
|
| 1212 |
msgstr ""
|
| 1213 |
|
| 1214 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1215 |
msgid "Simple Captcha"
|
| 1216 |
msgstr ""
|
| 1217 |
|
| 1218 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1219 |
msgid "USER INFO FIELDS"
|
| 1220 |
msgstr ""
|
| 1221 |
|
| 1222 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1223 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:
|
|
|
|
| 1224 |
msgid "Name"
|
| 1225 |
msgstr ""
|
| 1226 |
|
| 1227 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:
|
| 1228 |
msgid "Email"
|
| 1229 |
msgstr ""
|
| 1230 |
|
| 1231 |
-
#: C:\wamp\www\wordpress\wp-content\plugins\form-
|
| 2 |
msgstr ""
|
| 3 |
"Project-Id-Version: form_maker\n"
|
| 4 |
"Report-Msgid-Bugs-To: \n"
|
| 5 |
+
"POT-Creation-Date: 2017-11-21 14:49+0400\n"
|
| 6 |
+
"PO-Revision-Date: 2017-11-21 14:50+0400\n"
|
| 7 |
"Last-Translator: \n"
|
| 8 |
"Language-Team: \n"
|
| 9 |
"Language: el\n"
|
| 22 |
msgid "Form Maker"
|
| 23 |
msgstr ""
|
| 24 |
|
| 25 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:238
|
| 26 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:59
|
| 27 |
msgid "Forms"
|
| 28 |
msgstr ""
|
| 29 |
|
| 30 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:239
|
| 31 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:964
|
| 32 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Submissions_fm.php:141
|
| 33 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Submissions_fm.php:157
|
| 34 |
#, fuzzy
|
| 35 |
msgid "Submissions"
|
| 36 |
msgstr "Show submission"
|
| 37 |
|
| 38 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:242
|
| 39 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Blocked_ips_fm.php:55
|
| 40 |
msgid "Blocked IPs"
|
| 41 |
msgstr ""
|
| 42 |
|
| 43 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:243
|
| 44 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:972
|
| 45 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Themes_fm.php:83
|
| 46 |
msgid "Themes"
|
| 47 |
msgstr ""
|
| 48 |
|
| 49 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:244
|
| 50 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Options_fm.php:23
|
| 51 |
msgid "Options"
|
| 52 |
msgstr ""
|
| 53 |
|
| 54 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:246
|
| 55 |
msgid "Pro Version"
|
| 56 |
msgstr ""
|
| 57 |
|
| 58 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:248
|
| 59 |
msgid "Uninstall"
|
| 60 |
msgstr ""
|
| 61 |
|
| 62 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:249
|
| 63 |
msgid "Add-ons"
|
| 64 |
msgstr ""
|
| 65 |
|
| 66 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:258
|
| 67 |
msgid "Number of items per page:"
|
| 68 |
msgstr ""
|
| 69 |
|
| 70 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:362
|
| 71 |
#, fuzzy
|
| 72 |
msgid "Nothing found."
|
| 73 |
msgstr "Nothing was submitted."
|
| 74 |
|
| 75 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:363
|
| 76 |
msgid "The captcha already has been created."
|
| 77 |
msgstr ""
|
| 78 |
|
| 79 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:364
|
| 80 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:442
|
| 81 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:737
|
| 82 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:2011
|
| 83 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:2137
|
| 84 |
msgid "Update"
|
| 85 |
msgstr ""
|
| 86 |
|
| 87 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:365
|
| 88 |
#, fuzzy
|
| 89 |
msgid "Add"
|
| 90 |
msgstr "Address"
|
| 91 |
|
| 92 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:366
|
| 93 |
msgid "Add Field"
|
| 94 |
msgstr ""
|
| 95 |
|
| 96 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:367
|
| 97 |
msgid "Edit Field"
|
| 98 |
msgstr ""
|
| 99 |
|
| 100 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:368
|
| 101 |
msgid "This field type is disabled in free version."
|
| 102 |
msgstr ""
|
| 103 |
|
| 104 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:369
|
| 105 |
msgid "Please upgrade to Paid version."
|
| 106 |
msgstr ""
|
| 107 |
|
| 108 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:370
|
| 109 |
msgid "Please install "
|
| 110 |
msgstr ""
|
| 111 |
|
| 112 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:371
|
| 113 |
msgid " add-on to use this feature."
|
| 114 |
msgstr ""
|
| 115 |
|
| 116 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:372
|
| 117 |
msgid ""
|
| 118 |
"To use this feature, please go to Form Options > Payment Options and select "
|
| 119 |
"\"Stripe\" as the Payment Method."
|
| 120 |
msgstr ""
|
| 121 |
|
| 122 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:373
|
| 123 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 124 |
msgid "Sunday"
|
| 125 |
msgstr ""
|
| 126 |
|
| 127 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:374
|
| 128 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 129 |
msgid "Monday"
|
| 130 |
msgstr ""
|
| 131 |
|
| 132 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:375
|
| 133 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 134 |
msgid "Tuesday"
|
| 135 |
msgstr ""
|
| 136 |
|
| 137 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:376
|
| 138 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 139 |
msgid "Wednesday"
|
| 140 |
msgstr ""
|
| 141 |
|
| 142 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:377
|
| 143 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 144 |
msgid "Thursday"
|
| 145 |
msgstr ""
|
| 146 |
|
| 147 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:378
|
| 148 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 149 |
msgid "Friday"
|
| 150 |
msgstr ""
|
| 151 |
|
| 152 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:379
|
| 153 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:4290
|
| 154 |
msgid "Saturday"
|
| 155 |
msgstr ""
|
| 156 |
|
| 157 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:380
|
| 158 |
msgid "Leave empty to set the width to 100%."
|
| 159 |
msgstr ""
|
| 160 |
|
| 161 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:382
|
| 162 |
msgid ""
|
| 163 |
"The free version is limited up to 7 fields to add. If you need this "
|
| 164 |
"functionality, you need to buy the commercial version."
|
| 165 |
msgstr ""
|
| 166 |
|
| 167 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:404
|
| 168 |
msgid "Do you want to delete selected items?"
|
| 169 |
msgstr ""
|
| 170 |
|
| 171 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:405
|
| 172 |
msgid "You must select at least one item."
|
| 173 |
msgstr ""
|
| 174 |
|
| 175 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:441
|
| 176 |
msgid "You must select a form"
|
| 177 |
msgstr ""
|
| 178 |
|
| 179 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:527
|
| 180 |
msgid "Sorry, you are not allowed to access this page."
|
| 181 |
msgstr ""
|
| 182 |
|
| 183 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:667
|
| 184 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/frontend/models/form_maker.php:1489
|
| 185 |
#, fuzzy
|
| 186 |
msgid "Can not upload this type of file"
|
| 187 |
msgstr "Sorry, you are not allowed to upload this type of file."
|
| 188 |
|
| 189 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:668
|
| 190 |
msgid "Field is required"
|
| 191 |
msgstr "Field is required."
|
| 192 |
|
| 193 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:669
|
| 194 |
msgid "The "
|
| 195 |
msgstr "The "
|
| 196 |
|
| 197 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:670
|
| 198 |
#, fuzzy
|
| 199 |
msgid " value must be between "
|
| 200 |
msgstr "value must be between"
|
| 201 |
|
| 202 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:671
|
| 203 |
#, fuzzy
|
| 204 |
msgid "Value must be between "
|
| 205 |
msgstr "value must be between"
|
| 206 |
|
| 207 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:672
|
| 208 |
msgid "Are you sure you want to clear saved data?"
|
| 209 |
msgstr "Are you sure you want to clear saved data?"
|
| 210 |
|
| 211 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:673
|
| 212 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/framework/WDW_FM_Library.php:3538
|
| 213 |
msgid "Your score should be less than"
|
| 214 |
msgstr "Your score should be less than"
|
| 215 |
|
| 216 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:674
|
| 217 |
#, fuzzy
|
| 218 |
msgid "This is not a valid time value."
|
| 219 |
msgstr "This is not a valid email address."
|
| 220 |
|
| 221 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:675
|
| 222 |
#, fuzzy
|
| 223 |
msgid "This is not a valid number value."
|
| 224 |
msgstr "This is not a valid email address."
|
| 225 |
|
| 226 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:676
|
| 227 |
#, fuzzy
|
| 228 |
msgid "This is not a valid date value."
|
| 229 |
msgstr "This is not a valid email address."
|
| 230 |
|
| 231 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:677
|
| 232 |
#, fuzzy, php-format
|
| 233 |
msgid "The year must be between %s and %s"
|
| 234 |
msgstr "value must be between"
|
| 235 |
|
| 236 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:722
|
| 237 |
msgid ""
|
| 238 |
"Oops! Seems like you installed the update over a quite old version of Form "
|
| 239 |
"Maker. Unfortunately, this version is deprecated.<br />Please contact Web-"
|
| 241 |
"issue as soon as possible."
|
| 242 |
msgstr ""
|
| 243 |
|
| 244 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:902
|
| 245 |
#, php-format
|
| 246 |
msgid "This section allows you to %s."
|
| 247 |
msgstr ""
|
| 248 |
|
| 249 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:910
|
| 250 |
msgid "Upgrade to paid version"
|
| 251 |
msgstr ""
|
| 252 |
|
| 253 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:952
|
| 254 |
msgid ""
|
| 255 |
"Form Maker plugin is a modern and advanced tool for easy and fast creating "
|
| 256 |
"of a WordPress Form. The backend interface is intuitive and user friendly "
|
| 258 |
"Forms."
|
| 259 |
msgstr ""
|
| 260 |
|
| 261 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:956
|
| 262 |
msgid "Easy to Use"
|
| 263 |
msgstr ""
|
| 264 |
|
| 265 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:957
|
| 266 |
msgid ""
|
| 267 |
"This responsive form maker plugin is one of the most easy-to-use form "
|
| 268 |
"builder solutions available on the market. Simple, yet powerful plugin "
|
| 269 |
"allows you to quickly and easily build any complex forms."
|
| 270 |
msgstr ""
|
| 271 |
|
| 272 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:960
|
| 273 |
msgid "Customizable Fields"
|
| 274 |
msgstr ""
|
| 275 |
|
| 276 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:961
|
| 277 |
msgid ""
|
| 278 |
"All the fields of Form Maker plugin are highly customizable, which allows "
|
| 279 |
"you to change almost every detail in the form and make it look exactly like "
|
| 280 |
"you want it to be."
|
| 281 |
msgstr ""
|
| 282 |
|
| 283 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:965
|
| 284 |
msgid ""
|
| 285 |
"You can view the submissions for each form you have. The plugin allows to "
|
| 286 |
"view submissions statistics, filter submission data and export in csv or xml "
|
| 287 |
"formats."
|
| 288 |
msgstr ""
|
| 289 |
|
| 290 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:968
|
| 291 |
msgid "Multi-Page Forms"
|
| 292 |
msgstr ""
|
| 293 |
|
| 294 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:969
|
| 295 |
msgid ""
|
| 296 |
"With the form builder plugin you can create muilti-page forms. Simply use "
|
| 297 |
"the page break field to separate the pages in your forms."
|
| 298 |
msgstr ""
|
| 299 |
|
| 300 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:973
|
| 301 |
msgid ""
|
| 302 |
"The WordPress Form Maker plugin comes with a wide range of customizable "
|
| 303 |
"themes. You can choose from a list of existing themes or simply create the "
|
| 304 |
"one that better fits your brand and website."
|
| 305 |
msgstr ""
|
| 306 |
|
| 307 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:979
|
| 308 |
msgid "Installing"
|
| 309 |
msgstr ""
|
| 310 |
|
| 311 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:984
|
| 312 |
msgid "Creating a new Form"
|
| 313 |
msgstr ""
|
| 314 |
|
| 315 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:989
|
| 316 |
msgid "Configuring Form Options"
|
| 317 |
msgstr ""
|
| 318 |
|
| 319 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:994
|
| 320 |
msgid "Description of The Form Fields"
|
| 321 |
msgstr ""
|
| 322 |
|
| 323 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:998
|
| 324 |
msgid "Selecting Options from Database"
|
| 325 |
msgstr ""
|
| 326 |
|
| 327 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:1004
|
| 328 |
msgid "Publishing the Created Form"
|
| 329 |
msgstr ""
|
| 330 |
|
| 331 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:1009
|
| 332 |
msgid "Blocking IPs"
|
| 333 |
msgstr ""
|
| 334 |
|
| 335 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:1014
|
| 336 |
msgid "Managing Submissions"
|
| 337 |
msgstr ""
|
| 338 |
|
| 339 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:1019
|
| 340 |
msgid "Publishing Submissions"
|
| 341 |
msgstr ""
|
| 342 |
|
| 343 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:1118
|
| 344 |
#, php-format
|
| 345 |
msgid "Please update the %s add-on to start using."
|
| 346 |
msgstr ""
|
| 347 |
|
| 348 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:1119
|
| 349 |
#, php-format
|
| 350 |
msgid "Please update the %s add-ons to start using."
|
| 351 |
msgstr ""
|
| 352 |
|
| 353 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:1179
|
| 354 |
#, php-format
|
| 355 |
msgid ""
|
| 356 |
"%s advises: Install brand new FREE %s plugin to keep your forms and website "
|
| 357 |
"safe."
|
| 358 |
msgstr ""
|
| 359 |
|
| 360 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:1179
|
| 361 |
msgid "More details"
|
| 362 |
msgstr ""
|
| 363 |
|
| 364 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:1179
|
| 365 |
msgid "Backup WD"
|
| 366 |
msgstr ""
|
| 367 |
|
| 368 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:1244
|
| 369 |
msgid "Support Forum"
|
| 370 |
msgstr ""
|
| 371 |
|
| 372 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/form-maker.php:1245
|
| 373 |
msgid "Rate"
|
| 374 |
msgstr ""
|
| 375 |
|
| 388 |
msgstr "Completed"
|
| 389 |
|
| 390 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:28
|
| 391 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:148
|
| 392 |
msgid "Publish"
|
| 393 |
msgstr ""
|
| 394 |
|
| 397 |
msgstr ""
|
| 398 |
|
| 399 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:32
|
| 400 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:148
|
| 401 |
msgid "Unpublish"
|
| 402 |
msgstr ""
|
| 403 |
|
| 415 |
msgid "duplicated"
|
| 416 |
msgstr ""
|
| 417 |
|
| 418 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:347
|
| 419 |
msgid "Create new form"
|
| 420 |
msgstr ""
|
| 421 |
|
| 422 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:481
|
| 423 |
msgid "options"
|
| 424 |
msgstr ""
|
| 425 |
|
| 426 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:812
|
| 427 |
msgid "layout"
|
| 428 |
msgstr ""
|
| 429 |
|
| 430 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Manage_fm.php:856
|
| 431 |
msgid "display options"
|
| 432 |
msgstr ""
|
| 433 |
|
| 1020 |
msgstr ""
|
| 1021 |
|
| 1022 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Themes_fm.php:1080
|
| 1023 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:517
|
| 1024 |
#, fuzzy
|
| 1025 |
msgid "Single Choice"
|
| 1026 |
msgstr "Choices"
|
| 1031 |
msgstr ""
|
| 1032 |
|
| 1033 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Themes_fm.php:1220
|
| 1034 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:518
|
| 1035 |
msgid "Multiple Choice"
|
| 1036 |
msgstr ""
|
| 1037 |
|
| 1038 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Themes_fm.php:1410
|
| 1039 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:520
|
| 1040 |
msgid "Submit"
|
| 1041 |
msgstr ""
|
| 1042 |
|
| 1101 |
msgstr ""
|
| 1102 |
|
| 1103 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/controllers/Themes_fm.php:2853
|
| 1104 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:538
|
| 1105 |
msgid "File Upload"
|
| 1106 |
msgstr ""
|
| 1107 |
|
| 1122 |
msgstr "Street Address Line 2"
|
| 1123 |
|
| 1124 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/models/Submissions_fm.php:357
|
| 1125 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:42
|
| 1126 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:201
|
| 1127 |
msgid "City"
|
| 1128 |
msgstr "City"
|
| 1129 |
|
| 1136 |
msgstr "Postal / Zip Code"
|
| 1137 |
|
| 1138 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/models/Submissions_fm.php:366
|
| 1139 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:44
|
| 1140 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:211
|
| 1141 |
msgid "Country"
|
| 1142 |
msgstr "Country"
|
| 1143 |
|
| 1146 |
msgstr ""
|
| 1147 |
|
| 1148 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Blocked_ips_fm.php:116
|
| 1149 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:152
|
| 1150 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Submissions_fm.php:484
|
| 1151 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Themes_fm.php:96
|
| 1152 |
msgid "Do you want to delete selected item?"
|
| 1166 |
msgstr ""
|
| 1167 |
|
| 1168 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/FormMakerSubmits.php:43
|
| 1169 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:515
|
| 1170 |
msgid "Date"
|
| 1171 |
msgstr "Date"
|
| 1172 |
|
| 1173 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:84
|
| 1174 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Themes_fm.php:70
|
| 1175 |
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Themes_fm.php:145
|
| 1176 |
msgid "Title"
|
| 1177 |
msgstr "Title"
|
| 1178 |
|
| 1179 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:85
|
| 1180 |
msgid "Type"
|
| 1181 |
msgstr ""
|
| 1182 |
|
| 1183 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:87
|
| 1184 |
msgid "Shortcode"
|
| 1185 |
msgstr ""
|
| 1186 |
|
| 1187 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:511
|
| 1188 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:594
|
| 1189 |
msgid "BASIC FIELDS"
|
| 1190 |
msgstr ""
|
| 1191 |
|
| 1192 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:512
|
| 1193 |
msgid "Single Line Text"
|
| 1194 |
msgstr ""
|
| 1195 |
|
| 1196 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:513
|
| 1197 |
msgid "Paragraph Text"
|
| 1198 |
msgstr ""
|
| 1199 |
|
| 1200 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:514
|
| 1201 |
#, fuzzy
|
| 1202 |
msgid "Number"
|
| 1203 |
msgstr "November"
|
| 1204 |
|
| 1205 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:516
|
| 1206 |
#, fuzzy
|
| 1207 |
msgid "Select"
|
| 1208 |
msgstr "Select a Date"
|
| 1209 |
|
| 1210 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:519
|
| 1211 |
msgid "Recaptcha"
|
| 1212 |
msgstr ""
|
| 1213 |
|
| 1214 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:521
|
| 1215 |
msgid "Simple Captcha"
|
| 1216 |
msgstr ""
|
| 1217 |
|
| 1218 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:523
|
| 1219 |
msgid "USER INFO FIELDS"
|
| 1220 |
msgstr ""
|
| 1221 |
|
| 1222 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:524
|
| 1223 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:39
|
| 1224 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker-stripe/controller.php:186
|
| 1225 |
msgid "Name"
|
| 1226 |
msgstr ""
|
| 1227 |
|
| 1228 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-maker/admin/views/Manage_fm.php:525
|
| 1229 |
msgid "Email"
|
| 1230 |
msgstr ""
|
| 1231 |
|
| 1232 |
+
#: C:\wamp\www\wordpress\wp-content\plugins\form-
|
