Contact Form by WD – responsive drag & drop contact form builder tool - Version 1.7.13

Version Description

Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 Contact Form by WD – responsive drag & drop contact form builder tool
Version 1.7.13
Comparing to
See all releases

Code changes from version 1.7.10 to 1.7.13

admin/models/FMModelManage_fmc.php CHANGED
@@ -132,7 +132,7 @@ class FMModelManage_fmc {
132
  $label = $labels[$ids_key];
133
  $type = $types[$ids_key];
134
  $params = $paramss[$ids_key];
135
- if (strpos($form, '%'.$id.' - '.$label.'%')) {
136
  $rep = '';
137
  $param = array();
138
  $param['attributes'] = '';
@@ -1728,6 +1728,7 @@ class FMModelManage_fmc {
1728
  }
1729
  }
1730
  $form = str_replace('%' . $id . ' - ' . $labels[$ids_key] . '%', $rep, $form);
 
1731
  $row->form_front = $form;
1732
  }
1733
  }
132
  $label = $labels[$ids_key];
133
  $type = $types[$ids_key];
134
  $params = $paramss[$ids_key];
135
+ if (strpos($form, '%'.$id.' - '.$label.'%') || strpos($form, '%'.$id.' -'.$label.'%')) {
136
  $rep = '';
137
  $param = array();
138
  $param['attributes'] = '';
1728
  }
1729
  }
1730
  $form = str_replace('%' . $id . ' - ' . $labels[$ids_key] . '%', $rep, $form);
1731
+ $form = str_replace('%' . $id . ' -' . $labels[$ids_key] . '%', $rep, $form);
1732
  $row->form_front = $form;
1733
  }
1734
  }
admin/models/FMModelThemes_fmc.php CHANGED
@@ -53,6 +53,7 @@ class FMModelThemes_fmc {
53
  }
54
  }
55
  else {
 
56
  $row->id = 0;
57
  $row->title = '';
58
  $row->css = '';
53
  }
54
  }
55
  else {
56
+ $row = new stdClass();
57
  $row->id = 0;
58
  $row->title = '';
59
  $row->css = '';
admin/models/FMModelUninstall_fmc.php CHANGED
@@ -34,6 +34,7 @@ class FMModelUninstall_fmc {
34
  $wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "formmaker_themes");
35
  $wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "formmaker_sessions");
36
  $wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "formmaker_blocked");
 
37
  delete_option('contact_form_forms');
38
  delete_option("wd_form_maker_version");
39
  delete_option('formmaker_cureent_version');
34
  $wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "formmaker_themes");
35
  $wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "formmaker_sessions");
36
  $wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "formmaker_blocked");
37
+ $wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "formmaker_query");
38
  delete_option('contact_form_forms');
39
  delete_option("wd_form_maker_version");
40
  delete_option('formmaker_cureent_version');
admin/views/FMViewFormMakerEditCSS_fmc.php CHANGED
@@ -32,6 +32,24 @@ class FMViewFormMakerEditCSS_fmc {
32
  <link media="all" type="text/css" href="<?php echo get_admin_url(); ?>css/colors<?php echo ((get_bloginfo('version') < '3.8') ? '-fresh' : ''); ?>.min.css" id="colors-css" rel="stylesheet">
33
  <link media="all" type="text/css" href="<?php echo WD_FMC_URL . '/css/form_maker_tables.css'; ?>" rel="stylesheet">
34
  <script src="<?php echo WD_FMC_URL . '/js/form_maker_admin.js'; ?>" type="text/javascript"></script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
 
36
  <form id="fm_theme" class="wrap wp-core-ui" method="post" action="#" style="width: 99%; margin: 5px 0 0 5px;">
37
  <div style="float: right; margin: 0 5px 0 0;">
@@ -67,6 +85,18 @@ class FMViewFormMakerEditCSS_fmc {
67
  <input type="hidden" id="default" name="default" value="<?php echo $row->default; ?>" />
68
  <input type="hidden" name="form_id" id="form_id" value="<?php echo $form_id; ?>" />
69
  </form>
 
 
 
 
 
 
 
 
 
 
 
 
70
  <?php
71
  die();
72
  }
32
  <link media="all" type="text/css" href="<?php echo get_admin_url(); ?>css/colors<?php echo ((get_bloginfo('version') < '3.8') ? '-fresh' : ''); ?>.min.css" id="colors-css" rel="stylesheet">
33
  <link media="all" type="text/css" href="<?php echo WD_FMC_URL . '/css/form_maker_tables.css'; ?>" rel="stylesheet">
34
  <script src="<?php echo WD_FMC_URL . '/js/form_maker_admin.js'; ?>" type="text/javascript"></script>
35
+ <script src="<?php echo WD_FMC_URL . '/js/layout/codemirror.js'; ?>" type="text/javascript"></script>
36
+ <script src="<?php echo WD_FMC_URL . '/js/layout/formatting.js'; ?>" type="text/javascript"></script>
37
+ <script src="<?php echo WD_FMC_URL . '/js/layout/css.js'; ?>" type="text/javascript"></script>
38
+ <script src="<?php echo WD_FMC_URL . '/js/layout/clike.js'; ?>" type="text/javascript"></script>
39
+ <script src="<?php echo WD_FMC_URL . '/js/layout/javascript.js'; ?>" type="text/javascript"></script>
40
+ <script src="<?php echo WD_FMC_URL . '/js/layout/htmlmixed.js'; ?>" type="text/javascript"></script>
41
+ <script src="<?php echo WD_FMC_URL . '/js/layout/xml.js'; ?>" type="text/javascript"></script>
42
+ <script src="<?php echo WD_FMC_URL . '/js/layout/php.js'; ?>" type="text/javascript"></script>
43
+ <link media="all" type="text/css" href="<?php echo WD_FM_URL . '/css/codemirror.css'; ?>" rel="stylesheet">
44
+
45
+ <style>
46
+ .CodeMirror {
47
+ border: 1px solid #ccc;
48
+ font-size: 12px;
49
+ margin-bottom: 6px;
50
+ background: white;
51
+ }
52
+ </style>
53
 
54
  <form id="fm_theme" class="wrap wp-core-ui" method="post" action="#" style="width: 99%; margin: 5px 0 0 5px;">
55
  <div style="float: right; margin: 0 5px 0 0;">
85
  <input type="hidden" id="default" name="default" value="<?php echo $row->default; ?>" />
86
  <input type="hidden" name="form_id" id="form_id" value="<?php echo $form_id; ?>" />
87
  </form>
88
+ <script>
89
+ var editor = CodeMirror.fromTextArea(
90
+ document.getElementById("css"), {
91
+ lineNumbers: true,
92
+ lineWrapping: true,
93
+ mode: "css"
94
+ });
95
+
96
+ CodeMirror.commands["selectAll"](editor);
97
+ editor.autoFormatRange(editor.getCursor(true), editor.getCursor(false));
98
+ editor.scrollTo(0,0);
99
+ </script>
100
  <?php
101
  die();
102
  }
admin/views/FMViewManage_fmc.php CHANGED
@@ -291,6 +291,9 @@ class FMViewManage_fmc {
291
  if (document.getElementById(id+'_element_labelform_id_temp').innerHTML) {
292
  w_field_label = document.getElementById(id + '_element_labelform_id_temp').innerHTML.replace(/(\r\n|\n|\r)/gm," ");
293
  }
 
 
 
294
  if (document.getElementById(id + '_label_sectionform_id_temp')) {
295
  if (document.getElementById(id + '_label_sectionform_id_temp').style.display == "block") {
296
  w_field_label_pos = "top";
@@ -1140,18 +1143,9 @@ class FMViewManage_fmc {
1140
  }
1141
  document.getElementById('araqel').value = 1;
1142
  }
1143
- function formAddToOnload() {
1144
- if (formOldFunctionOnLoad) {
1145
- formOldFunctionOnLoad();
1146
- }
1147
  formOnload();
1148
- }
1149
- function formLoadBody() {
1150
- formOldFunctionOnLoad = window.onload;
1151
- window.onload = formOnload;
1152
- }
1153
- var formOldFunctionOnLoad = null;
1154
- formLoadBody();
1155
  </script>
1156
  <?php
1157
  }
@@ -2182,18 +2176,9 @@ class FMViewManage_fmc {
2182
  document.getElementById('form').value=document.getElementById('take').innerHTML;
2183
  document.getElementById('araqel').value = 1;
2184
  }
2185
- function formAddToOnload() {
2186
- if (formOldFunctionOnLoad) {
2187
- formOldFunctionOnLoad();
2188
- }
2189
  formOnload();
2190
- }
2191
- function formLoadBody() {
2192
- formOldFunctionOnLoad = window.onload;
2193
- window.onload = formAddToOnload;
2194
- }
2195
- var formOldFunctionOnLoad = null;
2196
- formLoadBody();
2197
  </script>
2198
 
2199
  <input type="hidden" name="option" value="com_formmaker" />
@@ -2670,6 +2655,14 @@ class FMViewManage_fmc {
2670
  document.getElementById('condition').value = field_condition;
2671
  }
2672
  </script>
 
 
 
 
 
 
 
 
2673
  <div style="clear: both; float: left; width: 99%;">
2674
  <div style="float:left; font-size: 14px; font-weight: bold;">
2675
  This section allows you to edit form options.
@@ -2718,7 +2711,7 @@ class FMViewManage_fmc {
2718
  <a id="payment" class="fm_fieldset_tab" onclick="form_maker_options_tabs('payment')" href="#">Payment Options</a>
2719
  </li>
2720
  <li>
2721
- <a id="javascript" class="fm_fieldset_tab" onclick="form_maker_options_tabs('javascript')" href="#">JavaScript</a>
2722
  </li>
2723
  <li>
2724
  <a id="conditions" class="fm_fieldset_tab" onclick="form_maker_options_tabs('conditions')" href="#">Conditional Fields</a>
@@ -3561,7 +3554,7 @@ class FMViewManage_fmc {
3561
  else
3562
  $w_choice = $w_choices_array[$m];
3563
 
3564
- if(in_array($w_choice,$multiselect))
3565
  {
3566
  $selected = 'selected="selected"';
3567
  }
@@ -3644,6 +3637,11 @@ class FMViewManage_fmc {
3644
  document.getElementById('mail_subject_user_labels').addEventListener('mouseout',hide_email_labels,true);
3645
  }
3646
  });
 
 
 
 
 
3647
  </script>
3648
  <?php
3649
  }
291
  if (document.getElementById(id+'_element_labelform_id_temp').innerHTML) {
292
  w_field_label = document.getElementById(id + '_element_labelform_id_temp').innerHTML.replace(/(\r\n|\n|\r)/gm," ");
293
  }
294
+ else {
295
+ w_field_label = " ";
296
+ }
297
  if (document.getElementById(id + '_label_sectionform_id_temp')) {
298
  if (document.getElementById(id + '_label_sectionform_id_temp').style.display == "block") {
299
  w_field_label_pos = "top";
1143
  }
1144
  document.getElementById('araqel').value = 1;
1145
  }
1146
+ jQuery(window).load(function () {
 
 
 
1147
  formOnload();
1148
+ });
 
 
 
 
 
 
1149
  </script>
1150
  <?php
1151
  }
2176
  document.getElementById('form').value=document.getElementById('take').innerHTML;
2177
  document.getElementById('araqel').value = 1;
2178
  }
2179
+ jQuery(window).load(function () {
 
 
 
2180
  formOnload();
2181
+ });
 
 
 
 
 
 
2182
  </script>
2183
 
2184
  <input type="hidden" name="option" value="com_formmaker" />
2655
  document.getElementById('condition').value = field_condition;
2656
  }
2657
  </script>
2658
+ <style>
2659
+ .CodeMirror {
2660
+ border: 1px solid #ccc;
2661
+ font-size: 12px;
2662
+ margin-bottom: 6px;
2663
+ background: white;
2664
+ }
2665
+ </style>
2666
  <div style="clear: both; float: left; width: 99%;">
2667
  <div style="float:left; font-size: 14px; font-weight: bold;">
2668
  This section allows you to edit form options.
2711
  <a id="payment" class="fm_fieldset_tab" onclick="form_maker_options_tabs('payment')" href="#">Payment Options</a>
2712
  </li>
2713
  <li>
2714
+ <a id="javascript" class="fm_fieldset_tab" onclick="form_maker_options_tabs('javascript'); codemirror_for_javascript();" href="#">JavaScript</a>
2715
  </li>
2716
  <li>
2717
  <a id="conditions" class="fm_fieldset_tab" onclick="form_maker_options_tabs('conditions')" href="#">Conditional Fields</a>
3554
  else
3555
  $w_choice = $w_choices_array[$m];
3556
 
3557
+ if(in_array(esc_html($w_choice),$multiselect))
3558
  {
3559
  $selected = 'selected="selected"';
3560
  }
3637
  document.getElementById('mail_subject_user_labels').addEventListener('mouseout',hide_email_labels,true);
3638
  }
3639
  });
3640
+ function wd_fm_apply_options() {
3641
+ set_condition();
3642
+ spider_set_input_value('task', 'apply_options');
3643
+ document.getElementById('adminForm').submit();
3644
+ }
3645
  </script>
3646
  <?php
3647
  }
admin/views/FMViewSubmissions_fmc.php CHANGED
@@ -1921,9 +1921,7 @@ class FMViewSubmissions_fmc {
1921
  $param['attributes'] = $param['attributes'].' '.$attr;
1922
  }
1923
 
1924
- $rep ='<div type="type_hidden" class="wdform-field">
1925
- <div class="wdform-label-section" style="float:left; width: 150px;"><span class="wdform-label">' . $label . '</span></div>
1926
- <div class="wdform-label-section" style="display: table-cell;"></div><div class="wdform-element-section" style="display: table-cell;"><input type="text" value="'.$element_value.'" id="wdform_'.$id1.'_element'.$form_id.'" name="'.$param['w_name'].'" '.$param['attributes'].'></div></div>';
1927
 
1928
  break;
1929
  }
1921
  $param['attributes'] = $param['attributes'].' '.$attr;
1922
  }
1923
 
1924
+ $rep ='<div type="type_hidden" class="wdform-field"><div class="wdform-label-section" style="float:left; width: 150px;"><span class="wdform-label">' . $label . '</span></div><div class="wdform-element-section" style="display: table-cell;"><input type="text" value="'.$element_value.'" id="wdform_'.$id1.'_element'.$form_id.'" name="'.$param['w_name'].'" '.$param['attributes'].'></div></div>';
 
 
1925
 
1926
  break;
1927
  }
admin/views/FMViewThemes_fmc.php CHANGED
@@ -158,6 +158,14 @@ class FMViewThemes_fmc {
158
  $row = $this->model->get_row_data($id, $reset);
159
  $page_title = (($id != 0) ? 'Edit theme ' . $row->title : 'Create new theme');
160
  ?>
 
 
 
 
 
 
 
 
161
  <div style="clear: both; float: left; width: 99%;">
162
  <div style="float:left; font-size: 14px; font-weight: bold;">
163
  This section allows you to edit form themes.
@@ -193,6 +201,17 @@ class FMViewThemes_fmc {
193
  <input type="hidden" id="current_id" name="current_id" value="<?php echo $row->id; ?>"/>
194
  <input type="hidden" id="default" name="default" value="<?php echo $row->default; ?>"/>
195
  </form>
 
 
 
 
 
 
 
 
 
 
 
196
  <?php
197
  }
198
 
158
  $row = $this->model->get_row_data($id, $reset);
159
  $page_title = (($id != 0) ? 'Edit theme ' . $row->title : 'Create new theme');
160
  ?>
161
+ <style>
162
+ .CodeMirror {
163
+ border: 1px solid #ccc;
164
+ font-size: 12px;
165
+ margin-bottom: 6px;
166
+ background: white;
167
+ }
168
+ </style>
169
  <div style="clear: both; float: left; width: 99%;">
170
  <div style="float:left; font-size: 14px; font-weight: bold;">
171
  This section allows you to edit form themes.
201
  <input type="hidden" id="current_id" name="current_id" value="<?php echo $row->id; ?>"/>
202
  <input type="hidden" id="default" name="default" value="<?php echo $row->default; ?>"/>
203
  </form>
204
+ <script>
205
+ var editor = CodeMirror.fromTextArea(document.getElementById("css"), {
206
+ lineNumbers: true,
207
+ lineWrapping: true,
208
+ mode: "css"
209
+ });
210
+
211
+ CodeMirror.commands["selectAll"](editor);
212
+ editor.autoFormatRange(editor.getCursor(true), editor.getCursor(false));
213
+ editor.scrollTo(0,0);
214
+ </script>
215
  <?php
216
  }
217
 
admin/views/FMViewUninstall_fmc.php CHANGED
@@ -56,6 +56,7 @@ class FMViewUninstall_fmc {
56
  <li><?php echo $prefix; ?>formmaker_views</li>
57
  <li><?php echo $prefix; ?>formmaker_themes</li>
58
  <li><?php echo $prefix; ?>formmaker_sessions</li>
 
59
  </ol>
60
  </td>
61
  </tr>
@@ -98,6 +99,7 @@ class FMViewUninstall_fmc {
98
  <p><?php echo $prefix; ?>formmaker_submits,</p>
99
  <p><?php echo $prefix; ?>formmaker_themes,</p>
100
  <p><?php echo $prefix; ?>formmaker_views.</p>
 
101
  </div>
102
  <div class="wrap">
103
  <h2>Uninstall Contact Form Maker</h2>
56
  <li><?php echo $prefix; ?>formmaker_views</li>
57
  <li><?php echo $prefix; ?>formmaker_themes</li>
58
  <li><?php echo $prefix; ?>formmaker_sessions</li>
59
+ <li><?php echo $prefix; ?>formmaker_query</li>
60
  </ol>
61
  </td>
62
  </tr>
99
  <p><?php echo $prefix; ?>formmaker_submits,</p>
100
  <p><?php echo $prefix; ?>formmaker_themes,</p>
101
  <p><?php echo $prefix; ?>formmaker_views.</p>
102
+ <p><?php echo $prefix; ?>formmaker_query.</p>
103
  </div>
104
  <div class="wrap">
105
  <h2>Uninstall Contact Form Maker</h2>
contact-form-maker.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Contact Form Maker
4
  * Plugin URI: http://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.7.10
7
  * Author: http://web-dorado.com/
8
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
9
  */
@@ -28,8 +28,8 @@ function form_maker_options_panel_cfm() {
28
  add_action('admin_print_scripts-' . $blocked_ips_page, 'form_maker_manage_scripts_cfm');
29
 
30
  $themes_page = add_submenu_page('manage_fmc', 'Themes', 'Themes', 'manage_options', 'themes_fmc', 'form_maker_cfm');
31
- add_action('admin_print_styles-' . $themes_page, 'form_maker_styles_cfm');
32
- add_action('admin_print_scripts-' . $themes_page, 'form_maker_scripts_cfm');
33
 
34
  $licensing_plugins_page = add_submenu_page('manage_fmc', 'Licensing/Donation', 'Licensing/Donation', 'manage_options', 'licensing_fmc', 'form_maker_cfm');
35
 
@@ -156,34 +156,7 @@ function Contact_Form_maker_fornt_end_main($content) {
156
  }
157
  add_filter('the_content', 'Contact_Form_maker_fornt_end_main', 5000);
158
 
159
- function xapel_shortcode_1_fmc($content) {
160
- $pattern = '[\[contact_form id="([0-9]*)"\]]';
161
- $count_forms_in_post = preg_match_all($pattern, $content, $matches_form);
162
- if ($count_forms_in_post) {
163
- require_once (WD_FMC_DIR . '/frontend/controllers/FMControllerForm_maker_fmc.php');
164
- $controller = new FMControllerForm_maker_fmc();
165
- for ($jj = 0; $jj < $count_forms_in_post; $jj++) {
166
- $padron = $matches_form[0][$jj];
167
- $replacment = $controller->execute($matches_form[1][$jj]);
168
- $replacment = '[contact_form_for_repace id="' . $matches_form[1][$jj] . '"]';
169
- $content = str_replace($padron, $replacment, $content);
170
- }
171
- }
172
- $pattern = '[\[wd_contact_form id="([0-9]*)"\]]';
173
- $count_forms_in_post = preg_match_all($pattern, $content, $matches_form);
174
- if ($count_forms_in_post) {
175
- require_once (WD_FMC_DIR . '/frontend/controllers/FMControllerForm_maker_fmc.php');
176
- $controller = new FMControllerForm_maker_fmc();
177
- for ($jj = 0; $jj < $count_forms_in_post; $jj++) {
178
- $padron = $matches_form[0][$jj];
179
- $replacment = $controller->execute($matches_form[1][$jj]);
180
- $replacment = '[contact_form_for_repace id="' . $matches_form[1][$jj] . '"]';
181
- $content = str_replace($padron, $replacment, $content);
182
- }
183
- }
184
- return $content;
185
- }
186
- //add_filter('the_content', 'xapel_shortcode_1_fmc', 1);
187
 
188
  // Add the Contact Form Maker button to editor.
189
  add_action('wp_ajax_formcontactwindow', 'form_maker_ajax_cfm');
@@ -207,7 +180,7 @@ if (class_exists('WP_Widget')) {
207
  // Activate plugin.
208
  function form_maker_activate_cfm() {
209
  $version = get_option("wd_form_maker_version");
210
- $new_version = '1.7.6';
211
  if (!$version) {
212
  add_option("wd_form_maker_version", $new_version, '', 'no');
213
  global $wpdb;
3
  * Plugin Name: Contact Form Maker
4
  * Plugin URI: http://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.7.13
7
  * Author: http://web-dorado.com/
8
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
9
  */
28
  add_action('admin_print_scripts-' . $blocked_ips_page, 'form_maker_manage_scripts_cfm');
29
 
30
  $themes_page = add_submenu_page('manage_fmc', 'Themes', 'Themes', 'manage_options', 'themes_fmc', 'form_maker_cfm');
31
+ add_action('admin_print_styles-' . $themes_page, 'form_maker_manage_styles_cfm');
32
+ add_action('admin_print_scripts-' . $themes_page, 'form_maker_manage_scripts_cfm');
33
 
34
  $licensing_plugins_page = add_submenu_page('manage_fmc', 'Licensing/Donation', 'Licensing/Donation', 'manage_options', 'licensing_fmc', 'form_maker_cfm');
35
 
156
  }
157
  add_filter('the_content', 'Contact_Form_maker_fornt_end_main', 5000);
158
 
159
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
160
 
161
  // Add the Contact Form Maker button to editor.
162
  add_action('wp_ajax_formcontactwindow', 'form_maker_ajax_cfm');
180
  // Activate plugin.
181
  function form_maker_activate_cfm() {
182
  $version = get_option("wd_form_maker_version");
183
+ $new_version = '1.7.13';
184
  if (!$version) {
185
  add_option("wd_form_maker_version", $new_version, '', 'no');
186
  global $wpdb;
contact_form_maker_insert.php CHANGED
@@ -162,6 +162,15 @@ function contact_from_maker_insert() {
162
  PRIMARY KEY (`id`)
163
  ) ENGINE=MyISAM DEFAULT CHARSET=utf8;";
164
  $wpdb->query($formmaker_sessions);
 
 
 
 
 
 
 
 
 
165
  return;
166
  }
167
 
162
  PRIMARY KEY (`id`)
163
  ) ENGINE=MyISAM DEFAULT CHARSET=utf8;";
164
  $wpdb->query($formmaker_sessions);
165
+
166
+ $formmaker_query = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix . "formmaker_query` (
167
+ `id` int(11) NOT NULL AUTO_INCREMENT,
168
+ `form_id` int(11) NOT NULL,
169
+ `query` text NOT NULL,
170
+ `details` text NOT NULL,
171
+ PRIMARY KEY (`id`)
172
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;";
173
+ $wpdb->query($formmaker_query);
174
  return;
175
  }
176
 
contact_form_maker_update.php CHANGED
@@ -78,6 +78,16 @@ function contact_form_maker_update($version) {
78
 
79
  $wpdb->query('UPDATE ' . $wpdb->prefix . 'formmaker SET `mail_mode` = 1, `mail_mode_user` = 1, `mail_attachment` = 1, `mail_attachment_user` = 1');
80
  }
 
 
 
 
 
 
 
 
 
 
81
  return;
82
  }
83
 
78
 
79
  $wpdb->query('UPDATE ' . $wpdb->prefix . 'formmaker SET `mail_mode` = 1, `mail_mode_user` = 1, `mail_attachment` = 1, `mail_attachment_user` = 1');
80
  }
81
+ if (version_compare($version, '1.7.13') == -1) {
82
+ $formmaker_query = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix . "formmaker_query` (
83
+ `id` int(11) NOT NULL AUTO_INCREMENT,
84
+ `form_id` int(11) NOT NULL,
85
+ `query` text NOT NULL,
86
+ `details` text NOT NULL,
87
+ PRIMARY KEY (`id`)
88
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;";
89
+ $wpdb->query($formmaker_query);
90
+ }
91
  return;
92
  }
93
 
frontend/models/FMModelForm_maker_fmc.php CHANGED
@@ -170,6 +170,7 @@ class FMModelForm_maker_fmc {
170
  array_push($label_type, $label_order_each[1]);
171
  }
172
  $max = $wpdb->get_var("SELECT MAX( group_id ) FROM " . $wpdb->prefix . "formmaker_submits");
 
173
  if ($old == FALSE || ($old == TRUE && $form->form == '')) {
174
  foreach ($label_type as $key => $type) {
175
  $value = '';
@@ -669,6 +670,7 @@ class FMModelForm_maker_fmc {
669
  }
670
  }
671
  $save_or_no = TRUE;
 
672
  if ($form->savedb) {
673
  $save_or_no = $wpdb->insert($wpdb->prefix . "formmaker_submits", array(
674
  'form_id' => $id,
@@ -1145,6 +1147,40 @@ class FMModelForm_maker_fmc {
1145
  }
1146
  }
1147
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1148
  $str = '';
1149
 
1150
  if ($form->paypal_mode) {
170
  array_push($label_type, $label_order_each[1]);
171
  }
172
  $max = $wpdb->get_var("SELECT MAX( group_id ) FROM " . $wpdb->prefix . "formmaker_submits");
173
+ $fvals=array();
174
  if ($old == FALSE || ($old == TRUE && $form->form == '')) {
175
  foreach ($label_type as $key => $type) {
176
  $value = '';
670
  }
671
  }
672
  $save_or_no = TRUE;
673
+ $fvals['{'.$i.'}']=str_replace(array("***map***", "*@@url@@*", "@@@@@@@@@", "@@@", "***grading***", "***br***"), array(" ", "", " ", " ", " ", ", "), addslashes($value));
674
  if ($form->savedb) {
675
  $save_or_no = $wpdb->insert($wpdb->prefix . "formmaker_submits", array(
676
  'form_id' => $id,
1147
  }
1148
  }
1149
 
1150
+ $queries = $wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "formmaker_query WHERE form_id=".$id);
1151
+ if($queries)
1152
+ {
1153
+ foreach($queries as $query)
1154
+ {
1155
+ $temp = explode('***wdfcon_typewdf***',$query->details);
1156
+ $con_type = $temp[0];
1157
+ $temp = explode('***wdfcon_methodwdf***',$temp[1]);
1158
+ $con_method = $temp[0];
1159
+ $temp = explode('***wdftablewdf***',$temp[1]);
1160
+ $table_cur = $temp[0];
1161
+ $temp = explode('***wdfhostwdf***',$temp[1]);
1162
+ $host = $temp[0];
1163
+ $temp = explode('***wdfportwdf***',$temp[1]);
1164
+ $port = $temp[0];
1165
+ $temp = explode('***wdfusernamewdf***',$temp[1]);
1166
+ $username = $temp[0];
1167
+ $temp = explode('***wdfpasswordwdf***',$temp[1]);
1168
+ $password = $temp[0];
1169
+ $temp = explode('***wdfdatabasewdf***',$temp[1]);
1170
+ $database = $temp[0];
1171
+
1172
+ $query=str_replace(array_keys($fvals), $fvals ,$query->query);
1173
+ if($con_type == 'remote')
1174
+ {
1175
+ $wpdb_temp = new wpdb($username, $password, $database, $host);
1176
+ $wpdb_temp->query($query);
1177
+ }
1178
+ else {
1179
+ $wpdb->query($query);
1180
+ }
1181
+ }
1182
+ // $wpdb= new wpdb(DB_USER, DB_PASSWORD, DB_NAME, DB_HOST);
1183
+ }
1184
  $str = '';
1185
 
1186
  if ($form->paypal_mode) {
frontend/views/FMViewForm_maker_fmc.php CHANGED
@@ -207,8 +207,8 @@ class FMViewForm_maker_fmc {
207
 
208
  foreach($cond_params as $key=>$param)
209
  {
210
- $params_value = explode('***',html_entity_decode($param));
211
-
212
  switch($type_and_id[$params_value[0]])
213
  {
214
  case "type_text":
@@ -1361,6 +1361,11 @@ class FMViewForm_maker_fmc {
1361
  if($is_other) {
1362
  $onload_js .='show_other_input("wdform_'.$id1.'","'.$form_id.'"); jQuery("#wdform_'.$id1.'_other_input'.$form_id.'").val("'.(isset($_POST['wdform_'.$id1."_other_input".$form_id]) ? $_POST['wdform_'.$id1."_other_input".$form_id] : '').'");';
1363
  }
 
 
 
 
 
1364
  $onsubmit_js.='
1365
  jQuery("<input type=\"hidden\" name=\"wdform_'.$id1.'_allow_other'.$form_id.'\" value = \"'.$param['w_allow_other'].'\" />").appendTo("#form'.$form_id.'");
1366
  jQuery("<input type=\"hidden\" name=\"wdform_'.$id1.'_allow_other_num'.$form_id.'\" value = \"'.$param['w_allow_other_num'].'\" />").appendTo("#form'.$form_id.'");
@@ -1446,7 +1451,11 @@ class FMViewForm_maker_fmc {
1446
  if($is_other) {
1447
  $onload_js .='show_other_input("wdform_'.$id1.'","'.$form_id.'"); jQuery("#wdform_'.$id1.'_other_input'.$form_id.'").val("'.(isset($_POST['wdform_'.$id1."_other_input".$form_id]) ? $_POST['wdform_'.$id1."_other_input".$form_id] : '').'");';
1448
  }
1449
-
 
 
 
 
1450
  $onsubmit_js.='
1451
  jQuery("<input type=\"hidden\" name=\"wdform_'.$id1.'_allow_other'.$form_id.'\" value = \"'.$param['w_allow_other'].'\" />").appendTo("#form'.$form_id.'");
1452
  jQuery("<input type=\"hidden\" name=\"wdform_'.$id1.'_allow_other_num'.$form_id.'\" value = \"'.$param['w_allow_other_num'].'\" />").appendTo("#form'.$form_id.'");
@@ -1782,7 +1791,6 @@ class FMViewForm_maker_fmc {
1782
  }
1783
  else {
1784
  $w_year_type = '<input type="text" value="'.$param['w_year'].'" id="wdform_'.$id1.'_year'.$form_id.'" name="wdform_'.$id1.'_year'.$form_id.'" from="'.$param['w_from'].'" to="'.$param['w_to'].'" style="width: '.$param['w_day_size'].'px;" '.$param['attributes'].'>';
1785
- $onload_js .='jQuery("#wdform_'.$id1.'_year'.$form_id.'").blur(function() {check_year2(this)});';
1786
  $onload_js .='jQuery("#wdform_'.$id1.'_year'.$form_id.'").keypress(function() {return check_year1(event, this)});';
1787
  $onload_js .='jQuery("#wdform_'.$id1.'_year'.$form_id.'").change(function() {change_year(this)});';
1788
  }
@@ -3157,6 +3165,25 @@ class FMViewForm_maker_fmc {
3157
  }
3158
  });
3159
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3160
  <?php echo $onload_js; ?>
3161
  <?php echo $condition_js; ?>
3162
 
207
 
208
  foreach($cond_params as $key=>$param)
209
  {
210
+ $params_value = explode('***',wp_specialchars_decode($param, 'single'));
211
+ if(isset($type_and_id[$params_value[0]]))
212
  switch($type_and_id[$params_value[0]])
213
  {
214
  case "type_text":
1361
  if($is_other) {
1362
  $onload_js .='show_other_input("wdform_'.$id1.'","'.$form_id.'"); jQuery("#wdform_'.$id1.'_other_input'.$form_id.'").val("'.(isset($_POST['wdform_'.$id1."_other_input".$form_id]) ? $_POST['wdform_'.$id1."_other_input".$form_id] : '').'");';
1363
  }
1364
+ if($param['w_randomize']=='yes')
1365
+ {
1366
+ $onload_js .='jQuery("#form'.$form_id.' div[wdid='.$id1.'] .wdform-element-section> div").shuffle();
1367
+ ';
1368
+ }
1369
  $onsubmit_js.='
1370
  jQuery("<input type=\"hidden\" name=\"wdform_'.$id1.'_allow_other'.$form_id.'\" value = \"'.$param['w_allow_other'].'\" />").appendTo("#form'.$form_id.'");
1371
  jQuery("<input type=\"hidden\" name=\"wdform_'.$id1.'_allow_other_num'.$form_id.'\" value = \"'.$param['w_allow_other_num'].'\" />").appendTo("#form'.$form_id.'");
1451
  if($is_other) {
1452
  $onload_js .='show_other_input("wdform_'.$id1.'","'.$form_id.'"); jQuery("#wdform_'.$id1.'_other_input'.$form_id.'").val("'.(isset($_POST['wdform_'.$id1."_other_input".$form_id]) ? $_POST['wdform_'.$id1."_other_input".$form_id] : '').'");';
1453
  }
1454
+ if($param['w_randomize']=='yes')
1455
+ {
1456
+ $onload_js .='jQuery("#form'.$form_id.' div[wdid='.$id1.'] .wdform-element-section> div").shuffle();
1457
+ ';
1458
+ }
1459
  $onsubmit_js.='
1460
  jQuery("<input type=\"hidden\" name=\"wdform_'.$id1.'_allow_other'.$form_id.'\" value = \"'.$param['w_allow_other'].'\" />").appendTo("#form'.$form_id.'");
1461
  jQuery("<input type=\"hidden\" name=\"wdform_'.$id1.'_allow_other_num'.$form_id.'\" value = \"'.$param['w_allow_other_num'].'\" />").appendTo("#form'.$form_id.'");
1791
  }
1792
  else {
1793
  $w_year_type = '<input type="text" value="'.$param['w_year'].'" id="wdform_'.$id1.'_year'.$form_id.'" name="wdform_'.$id1.'_year'.$form_id.'" from="'.$param['w_from'].'" to="'.$param['w_to'].'" style="width: '.$param['w_day_size'].'px;" '.$param['attributes'].'>';
 
1794
  $onload_js .='jQuery("#wdform_'.$id1.'_year'.$form_id.'").keypress(function() {return check_year1(event, this)});';
1795
  $onload_js .='jQuery("#wdform_'.$id1.'_year'.$form_id.'").change(function() {change_year(this)});';
1796
  }
3165
  }
3166
  });
3167
 
3168
+ (function(jQuery){
3169
+ jQuery.fn.shuffle = function() {
3170
+ var allElems = this.get(),
3171
+ getRandom = function(max) {
3172
+ return Math.floor(Math.random() * max);
3173
+ },
3174
+ shuffled = jQuery.map(allElems, function(){
3175
+ var random = getRandom(allElems.length),
3176
+ randEl = jQuery(allElems[random]).clone(true)[0];
3177
+ allElems.splice(random, 1);
3178
+ return randEl;
3179
+ });
3180
+ this.each(function(i){
3181
+ jQuery(this).replaceWith(jQuery(shuffled[i]));
3182
+ });
3183
+ return jQuery(shuffled);
3184
+ };
3185
+ })(jQuery);
3186
+
3187
  <?php echo $onload_js; ?>
3188
  <?php echo $condition_js; ?>
3189
 
js/form_maker_manage.js CHANGED
@@ -347,6 +347,9 @@ function refresh_old() {
347
  }
348
 
349
  function form_maker_options_tabs(id) {
 
 
 
350
  jQuery("#fieldset_id").val(id);
351
  jQuery(".fm_fieldset_active").removeClass("fm_fieldset_active").addClass("fm_fieldset_deactive");
352
  jQuery("#" + id + "_fieldset").removeClass("fm_fieldset_deactive").addClass("fm_fieldset_active");
@@ -355,6 +358,18 @@ function form_maker_options_tabs(id) {
355
  return false;
356
  }
357
 
 
 
 
 
 
 
 
 
 
 
 
 
358
  function set_type(type) {
359
  switch(type) {
360
  case 'post':
@@ -641,7 +656,7 @@ function add_condition_fields(num, ids1, labels1, types1, params1)
641
 
642
  var labels_select = document.createElement('select');
643
  labels_select.setAttribute("id", "field_labels"+num+'_'+m);
644
- labels_select.setAttribute("onchange", "change_choices(options[selectedIndex].id+'_"+m+"','"+ids1+"','"+types1+"','"+params1+"')");
645
  labels_select.style.cssText="width:350px; vertical-align:top;";
646
 
647
  for(k=0; k<labels.length; k++)
@@ -875,7 +890,7 @@ function add_condition(ids1, labels1, types1, params1, all_ids, all_labels)
875
 
876
  var add_img = document.createElement('img');
877
  add_img.setAttribute('src',fmc_plugin_url + '/images/add.png');
878
- add_img.setAttribute('onClick','add_condition_fields("'+num+'", "'+ids1+'", "'+labels1+'", "'+types1+'", "'+params1+'")');
879
  add_img.style.cssText = "cursor: pointer; vertical-align: middle;";
880
 
881
  var delete_img = document.createElement('img');
347
  }
348
 
349
  function form_maker_options_tabs(id) {
350
+ if (spider_check_email('mail') || spider_check_email('from_mail') || spider_check_email('reply_to') || spider_check_email('mail_from_user') || spider_check_email('reply_to_user') || spider_check_email('mail_from_other') || spider_check_email('reply_to_other') || spider_check_email('paypal_email')) {
351
+ return false;
352
+ }
353
  jQuery("#fieldset_id").val(id);
354
  jQuery(".fm_fieldset_active").removeClass("fm_fieldset_active").addClass("fm_fieldset_deactive");
355
  jQuery("#" + id + "_fieldset").removeClass("fm_fieldset_deactive").addClass("fm_fieldset_active");
358
  return false;
359
  }
360
 
361
+ function codemirror_for_javascript() {
362
+ var editor = CodeMirror.fromTextArea(document.getElementById("form_javascript"), {
363
+ lineNumbers: true,
364
+ lineWrapping: true,
365
+ mode: "javascript"
366
+ });
367
+
368
+ CodeMirror.commands["selectAll"](editor);
369
+ editor.autoFormatRange(editor.getCursor(true), editor.getCursor(false));
370
+ editor.scrollTo(0,0);
371
+ }
372
+
373
  function set_type(type) {
374
  switch(type) {
375
  case 'post':
656
 
657
  var labels_select = document.createElement('select');
658
  labels_select.setAttribute("id", "field_labels"+num+'_'+m);
659
+ labels_select.setAttribute("onchange", "change_choices(options[selectedIndex].id+'_"+m+"','"+ids1+"','"+types1+"','"+params1.replace(/\'/g,"\\'")+"')");
660
  labels_select.style.cssText="width:350px; vertical-align:top;";
661
 
662
  for(k=0; k<labels.length; k++)
890
 
891
  var add_img = document.createElement('img');
892
  add_img.setAttribute('src',fmc_plugin_url + '/images/add.png');
893
+ add_img.setAttribute('onClick','add_condition_fields("'+num+'", "'+ids1+'", "'+labels1+'", "'+types1.replace(/\'/g,"\\'")+'", "'+params1.replace(/\'/g,"\\'")+'")');
894
  add_img.style.cssText = "cursor: pointer; vertical-align: middle;";
895
 
896
  var delete_img = document.createElement('img');
js/formmaker_div_free.js CHANGED
@@ -2560,8 +2560,8 @@ function close_window() {
2560
  document.getElementById('edit_table').innerHTML = "";
2561
  document.getElementById('show_table').innerHTML = "";
2562
  document.getElementById('main_editor').style.display = "none";
2563
- if (document.getElementById('form_maker_editor_ifr')) {
2564
- ifr_id = 'form_maker_editor_ifr';
2565
  ifr = getIFrameDocument(ifr_id);
2566
  ifr.body.innerHTML = "";
2567
  }
@@ -3767,8 +3767,8 @@ return rv;
3767
  }
3768
 
3769
  function delete_last_child() {
3770
- if (document.getElementById('form_maker_editor_ifr')) {
3771
- ifr_id = 'form_maker_editor_ifr';
3772
  ifr = getIFrameDocument(ifr_id);
3773
  ifr.body.innerHTML = "";
3774
  }
@@ -4077,8 +4077,8 @@ function type_section_break(i, w_editor) {
4077
  document.getElementById('main_editor').style.left=iReturnLeft+195+"px";
4078
  document.getElementById('main_editor').style.top=iReturnTop+70+"px";
4079
 
4080
- if (document.getElementById('form_maker_editor_ifr') && document.getElementById('form_maker_editor').style.display == "none") {
4081
- ifr_id = 'form_maker_editor_ifr';
4082
  ifr = getIFrameDocument(ifr_id);
4083
  ifr.body.innerHTML = w_editor;
4084
  }
@@ -4113,8 +4113,8 @@ function type_editor(i, w_editor) {
4113
  document.getElementById('main_editor').style.left=iReturnLeft+195+"px";
4114
  document.getElementById('main_editor').style.top=iReturnTop+70+"px";
4115
 
4116
- if (document.getElementById('form_maker_editor_ifr') && document.getElementById('form_maker_editor').style.display=="none") {
4117
- ifr_id='form_maker_editor_ifr';
4118
  ifr=getIFrameDocument(ifr_id);
4119
  ifr.body.innerHTML=w_editor;
4120
  }
@@ -26523,7 +26523,7 @@ function add(key) {
26523
  td_PAGEDOWN.appendChild(img_PAGEDOWN);
26524
 
26525
 
26526
- ifr_id='form_maker_editor_ifr';
26527
  ifr=getIFrameDocument(ifr_id)
26528
 
26529
  if(document.getElementById('form_maker_editor').style.display=="none")
@@ -26987,6 +26987,8 @@ function edit(id)
26987
 
26988
  if(document.getElementById(id+'_element_labelform_id_temp').innerHTML)
26989
  w_field_label=document.getElementById(id+'_element_labelform_id_temp').innerHTML;
 
 
26990
 
26991
  if(document.getElementById(id+'_label_sectionform_id_temp'))
26992
  if(document.getElementById(id+'_label_sectionform_id_temp').style.display=="block")
2560
  document.getElementById('edit_table').innerHTML = "";
2561
  document.getElementById('show_table').innerHTML = "";
2562
  document.getElementById('main_editor').style.display = "none";
2563
+ if (document.getElementById("form_maker_editor_ifr")) {
2564
+ ifr_id = "form_maker_editor_ifr";
2565
  ifr = getIFrameDocument(ifr_id);
2566
  ifr.body.innerHTML = "";
2567
  }
3767
  }
3768
 
3769
  function delete_last_child() {
3770
+ if (document.getElementById("form_maker_editor_ifr")) {
3771
+ ifr_id = "form_maker_editor_ifr";
3772
  ifr = getIFrameDocument(ifr_id);
3773
  ifr.body.innerHTML = "";
3774
  }
4077
  document.getElementById('main_editor').style.left=iReturnLeft+195+"px";
4078
  document.getElementById('main_editor').style.top=iReturnTop+70+"px";
4079
 
4080
+ if (document.getElementById("form_maker_editor_ifr") && document.getElementById('form_maker_editor').style.display == "none") {
4081
+ ifr_id = "form_maker_editor_ifr";
4082
  ifr = getIFrameDocument(ifr_id);
4083
  ifr.body.innerHTML = w_editor;
4084
  }
4113
  document.getElementById('main_editor').style.left=iReturnLeft+195+"px";
4114
  document.getElementById('main_editor').style.top=iReturnTop+70+"px";
4115
 
4116
+ if (document.getElementById("form_maker_editor_ifr") && document.getElementById('form_maker_editor').style.display == "none") {
4117
+ ifr_id = "form_maker_editor_ifr";
4118
  ifr=getIFrameDocument(ifr_id);
4119
  ifr.body.innerHTML=w_editor;
4120
  }
26523
  td_PAGEDOWN.appendChild(img_PAGEDOWN);
26524
 
26525
 
26526
+ ifr_id = "form_maker_editor_ifr";
26527
  ifr=getIFrameDocument(ifr_id)
26528
 
26529
  if(document.getElementById('form_maker_editor').style.display=="none")
26987
 
26988
  if(document.getElementById(id+'_element_labelform_id_temp').innerHTML)
26989
  w_field_label=document.getElementById(id+'_element_labelform_id_temp').innerHTML;
26990
+ else
26991
+ w_field_label=" ";
26992
 
26993
  if(document.getElementById(id+'_label_sectionform_id_temp'))
26994
  if(document.getElementById(id+'_label_sectionform_id_temp').style.display=="block")
js/formmaker_free.js CHANGED
@@ -2364,8 +2364,8 @@ function close_window() {
2364
  document.getElementById('edit_table').innerHTML = "";
2365
  document.getElementById('show_table').innerHTML = "";
2366
  document.getElementById('main_editor').style.display = "none";
2367
- if (document.getElementById('form_maker_editor_ifr')) {
2368
- ifr_id = 'form_maker_editor_ifr';
2369
  ifr = getIFrameDocument(ifr_id);
2370
  ifr.body.innerHTML = "";
2371
  }
@@ -3396,22 +3396,21 @@ function remove_option(id, num) {
3396
  choices_td.removeChild(br);
3397
  }
3398
 
3399
- function getIFrameDocument(aID) {
3400
- var rv = null;
3401
- // If contentDocument exists, W3C compliant (Mozilla).
3402
- if (document.getElementById(aID).contentDocument) {
3403
- rv = document.getElementById(aID).contentDocument;
3404
- }
3405
- else {
3406
- // IE.
3407
- rv = document.frames[aID].document;
3408
- }
3409
- return rv;
3410
  }
3411
 
3412
  function delete_last_child() {
3413
- if (document.getElementById('form_maker_editor_ifr')) {
3414
- ifr_id = 'form_maker_editor_ifr';
3415
  ifr = getIFrameDocument(ifr_id);
3416
  ifr.body.innerHTML = "";
3417
  }
@@ -3643,8 +3642,8 @@ function type_section_break(i, w_editor) {
3643
  document.getElementById('main_editor').style.display="block";
3644
  document.getElementById('main_editor').style.left=iReturnLeft + 195 + "px";
3645
  document.getElementById('main_editor').style.top=iReturnTop + 70 + "px";
3646
- if (document.getElementById('form_maker_editor_ifr') && document.getElementById('form_maker_editor').style.display == "none") {
3647
- ifr_id = 'form_maker_editor_ifr';
3648
  ifr = getIFrameDocument(ifr_id);
3649
  ifr.body.innerHTML = w_editor;
3650
  }
@@ -3682,8 +3681,8 @@ function type_editor(i, w_editor){
3682
 
3683
 
3684
 
3685
- if (document.getElementById('form_maker_editor_ifr') && document.getElementById('form_maker_editor').style.display=="none") {
3686
- ifr_id='form_maker_editor_ifr';
3687
  ifr=getIFrameDocument(ifr_id);
3688
  ifr.body.innerHTML=w_editor;
3689
  }
@@ -25026,9 +25025,8 @@ function add(key) {
25026
 
25027
 
25028
 
25029
- if(document.getElementById('form_maker_editor_ifr') && document.getElementById('form_maker_editor').style.display=="none")
25030
- {
25031
- ifr_id='form_maker_editor_ifr';
25032
  ifr=getIFrameDocument(ifr_id)
25033
  in_editor.innerHTML=ifr.body.innerHTML;
25034
  }
@@ -25534,9 +25532,8 @@ function add(key) {
25534
  in_editor.setAttribute('class', 'toolbar_padding');
25535
 
25536
 
25537
- if(document.getElementById('form_maker_editor_ifr') && document.getElementById('form_maker_editor').style.display=="none")
25538
- {
25539
- ifr_id='form_maker_editor_ifr';
25540
  ifr=getIFrameDocument(ifr_id);
25541
  in_editor.innerHTML=ifr.body.innerHTML;
25542
  }
@@ -25732,9 +25729,8 @@ function add(key) {
25732
 
25733
 
25734
 
25735
- if(document.getElementById('form_maker_editor_ifr') && document.getElementById('form_maker_editor').style.display=="none")
25736
- {
25737
- ifr_id='form_maker_editor_ifr';
25738
  ifr=getIFrameDocument(ifr_id)
25739
  in_editor.innerHTML=ifr.body.innerHTML;
25740
  }
2364
  document.getElementById('edit_table').innerHTML = "";
2365
  document.getElementById('show_table').innerHTML = "";
2366
  document.getElementById('main_editor').style.display = "none";
2367
+ if (document.getElementById("form_maker_editor_ifr")) {
2368
+ ifr_id = "form_maker_editor_ifr";
2369
  ifr = getIFrameDocument(ifr_id);
2370
  ifr.body.innerHTML = "";
2371
  }
3396
  choices_td.removeChild(br);
3397
  }
3398
 
3399
+ function getIFrameDocument(aID){
3400
+ var rv = null;
3401
+ // if contentDocument exists, W3C compliant (Mozilla)
3402
+ if (document.getElementById(aID) && document.getElementById(aID).contentDocument){
3403
+ rv = document.getElementById(aID).contentDocument;
3404
+ } else if (document.getElementById(aID)) {
3405
+ // IE
3406
+ rv = document.frames[aID].document;
3407
+ }
3408
+ return rv;
 
3409
  }
3410
 
3411
  function delete_last_child() {
3412
+ if (document.getElementById("form_maker_editor_ifr")) {
3413
+ ifr_id = "form_maker_editor_ifr";
3414
  ifr = getIFrameDocument(ifr_id);
3415
  ifr.body.innerHTML = "";
3416
  }
3642
  document.getElementById('main_editor').style.display="block";
3643
  document.getElementById('main_editor').style.left=iReturnLeft + 195 + "px";
3644
  document.getElementById('main_editor').style.top=iReturnTop + 70 + "px";
3645
+ if (document.getElementById("form_maker_editor_ifr") && document.getElementById('form_maker_editor').style.display == "none") {
3646
+ ifr_id = "form_maker_editor_ifr";
3647
  ifr = getIFrameDocument(ifr_id);
3648
  ifr.body.innerHTML = w_editor;
3649
  }
3681
 
3682
 
3683
 
3684
+ if (document.getElementById("form_maker_editor_ifr") && document.getElementById('form_maker_editor').style.display == "none") {
3685
+ ifr_id = "form_maker_editor_ifr";
3686
  ifr=getIFrameDocument(ifr_id);
3687
  ifr.body.innerHTML=w_editor;
3688
  }
25025
 
25026
 
25027
 
25028
+ if (document.getElementById("form_maker_editor_ifr") && document.getElementById('form_maker_editor').style.display == "none") {
25029
+ ifr_id = "form_maker_editor_ifr";
 
25030
  ifr=getIFrameDocument(ifr_id)
25031
  in_editor.innerHTML=ifr.body.innerHTML;
25032
  }
25532
  in_editor.setAttribute('class', 'toolbar_padding');
25533
 
25534
 
25535
+ if (document.getElementById("form_maker_editor_ifr") && document.getElementById('form_maker_editor').style.display == "none") {
25536
+ ifr_id = "form_maker_editor_ifr";
 
25537
  ifr=getIFrameDocument(ifr_id);
25538
  in_editor.innerHTML=ifr.body.innerHTML;
25539
  }
25729
 
25730
 
25731
 
25732
+ if (document.getElementById("form_maker_editor_ifr") && document.getElementById('form_maker_editor').style.display == "none") {
25733
+ ifr_id = "form_maker_editor_ifr";
 
25734
  ifr=getIFrameDocument(ifr_id)
25735
  in_editor.innerHTML=ifr.body.innerHTML;
25736
  }
js/main_div_front_end.js CHANGED
@@ -1 +1 @@
1
- F=2;
2
  var chCode1 = e.which || e.keyCode;
3
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57))
4
  return false;
5
  if(document.getElementById(num+'_total_element'+form_id)){
6
  var chCode1 = e.which || e.keyCode;
7
  if ( jQuery.inArray(chCode1,[46,8,9,27,13,190]) != -1 || e.ctrlKey === true || (chCode1 >= 35 && chCode1 < 39))
8
  return true;
9
  return false;
10
  var chCode1 = e.which || e.keyCode;
11
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57))
12
  return false;
13
  return false;
14
  var chCode1 = e.which || e.keyCode;
15
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57))
16
  return false;
17
  return false;
18
  var chCode1 = e.which || e.keyCode;
19
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57))
20
  return false;
21
  return false;
22
  var chCode1 = e.which || e.keyCode;
23
  if (jQuery.inArray(chCode1,[46,8,9,27,13,190]) != -1 || e.ctrlKey === true || (chCode1 >= 35 && chCode1 < 39)) {
24
  return true;
25
  }
26
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57)) {
27
  return false;
28
  }
29
  return false;
30
  return false;
31
  return false;
32
  var chCode1 = e.which || e.keyCode;
33
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57))
34
  return false;
35
  return false;
36
  return false;
37
  return false;
38
  var chCode1 = e.which || e.keyCode;
39
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57))
40
  return false;
41
  return false;
42
  return false;
43
  return false;
44
  var chCode1 = e.which || e.keyCode;
45
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57))
46
  return false;
47
  return false;
48
  while (node.firstChild)
49
  node.removeChild(node.firstChild);
50
 
51
  }
52
 
53
  }
54
  jQuery('.wdform-element-section').each(function() {
55
  var div_parent = document.createElement('div');
56
  div_parent.setAttribute("class", "page_percentage_deactive");
57
  var div = document.createElement('div');
58
  div.setAttribute("id", "div_percentage");
59
  div.setAttribute("class", "page_percentage_active");
60
  div.setAttribute("align", "right");
61
  var div_arrow = document.createElement('div');
62
  div_arrow.setAttribute("class", "wdform_percentage_arrow");
63
  b.setAttribute("class", "wdform_percentage_text");
64
  var curtop = 0;
65
  if (obj.offsetParent) {
66
  do {
67
  curtop += obj.offsetTop;
68
  } while (obj = obj.offsetParent);
69
  return [curtop];
70
  }
71
  addclass = typeof(addclass) != 'undefined' ? addclass : '';
72
  jQuery(select).wrap('<div class="sel-wrap ' + addclass + '"/>');
73
  var sel_options = '';
74
  var selected_option = false;
75
  jQuery(select).children('option').each(function() {
76
  if(jQuery(this).is(':selected')){
77
  selected_option = jQuery(this).index();
78
  }
79
  sel_options = sel_options + '<div class="sel-option" value="' + jQuery(this).val() + '">' + jQuery(this).html() + '</div>';
80
  });
81
  <div class="sel-selected">\
82
  <div class="selected-text">' + jQuery(select).children('option').eq(selected_option).html() + '</div>\
83
  <div class="sel-arraw"></div>\
84
  </div>\
85
  <div class="sel-options">' + sel_options + '</div>\
86
  </div>';
87
  jQuery(select).before(sel_imul);
88
  jQuery('.sel-imul').removeClass('act');
89
  jQuery(this).addClass('act');
90
  if (jQuery(this).children('.sel-options').is(':visible')) {
91
  jQuery('.sel-options').hide();
92
  }
93
  else {
94
  jQuery('.sel-options').hide();
95
  jQuery(this).children('.sel-options').show();
96
  }
97
  var tektext = jQuery(this).html();
98
  jQuery(this).parent('.sel-options').parent('.sel-imul').children('.sel-selected').children('.selected-text').html(tektext);
99
  jQuery(this).parent('.sel-options').children('.sel-option').removeClass('sel-ed');
100
  jQuery(this).addClass('sel-ed');
101
  var tekval = jQuery(this).attr('value');
102
  tekval = typeof(tekval) != 'undefined' ? tekval : tektext;
103
  jQuery(this).parent('.sel-options').parent('.sel-imul').parent('.sel-wrap').children('select').children('option').removeAttr('selected').each(function() {
104
  if (jQuery(this).html() == tektext) {
105
 
106
  jQuery(this).attr('selected', 'select');
107
  }
108
  });
109
  selenter = true;
110
  selenter = false;
111
  if (!selenter) {
112
  jQuery('.sel-options').hide();
113
  jQuery('.sel-imul').removeClass('act');
114
  }
115
  if( node.childNodes[ttt] && node.childNodes[ttt].nodeType == '3' && !/\S/.test( node.childNodes[ttt].nodeValue ))
 
116
  var chCode1 = e.which || e.keyCode;
117
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57))
118
  return false;
119
  if(document.getElementById(num+'_total_element'+form_id)){
120
  var chCode1 = e.which || e.keyCode;
121
  if ( jQuery.inArray(chCode1,[46,8,9,27,13,190]) != -1 || e.ctrlKey === true || (chCode1 >= 35 && chCode1 < 39))
122
  return true;
123
  return false;
124
  var chCode1 = e.which || e.keyCode;
125
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57))
126
  return false;
127
  return false;
128
  var chCode1 = e.which || e.keyCode;
129
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57))
130
  return false;
131
  return false;
132
  var chCode1 = e.which || e.keyCode;
133
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57))
134
  return false;
135
  return false;
136
  var chCode1 = e.which || e.keyCode;
137
  if (jQuery.inArray(chCode1,[46,8,9,27,13,190]) != -1 || e.ctrlKey === true || (chCode1 >= 35 && chCode1 < 39)) {
138
  return true;
139
  }
140
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57)) {
141
  return false;
142
  }
143
  return false;
144
  return false;
145
  return false;
146
  var chCode1 = e.which || e.keyCode;
147
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57))
148
  return false;
149
  return false;
150
  return false;
151
  return false;
152
  var chCode1 = e.which || e.keyCode;
153
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57))
154
  return false;
155
  return false;
156
  return false;
157
  return false;
158
  var chCode1 = e.which || e.keyCode;
159
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57))
160
  return false;
161
  return false;
162
  while (node.firstChild)
163
  node.removeChild(node.firstChild);
164
 
165
  }
166
 
167
  }
168
  jQuery('.wdform-element-section').each(function() {
169
  var div_parent = document.createElement('div');
170
  div_parent.setAttribute("class", "page_percentage_deactive");
171
  var div = document.createElement('div');
172
  div.setAttribute("id", "div_percentage");
173
  div.setAttribute("class", "page_percentage_active");
174
  div.setAttribute("align", "right");
175
  var div_arrow = document.createElement('div');
176
  div_arrow.setAttribute("class", "wdform_percentage_arrow");
177
  b.setAttribute("class", "wdform_percentage_text");
178
  var curtop = 0;
179
  if (obj.offsetParent) {
180
  do {
181
  curtop += obj.offsetTop;
182
  } while (obj = obj.offsetParent);
183
  return [curtop];
184
  }
185
  addclass = typeof(addclass) != 'undefined' ? addclass : '';
186
  jQuery(select).wrap('<div class="sel-wrap ' + addclass + '"/>');
187
  var sel_options = '';
188
  var selected_option = false;
189
  jQuery(select).children('option').each(function() {
190
  if(jQuery(this).is(':selected')){
191
  selected_option = jQuery(this).index();
192
  }
193
  sel_options = sel_options + '<div class="sel-option" value="' + jQuery(this).val() + '">' + jQuery(this).html() + '</div>';
194
  });
195
  <div class="sel-selected">\
196
  <div class="selected-text">' + jQuery(select).children('option').eq(selected_option).html() + '</div>\
197
  <div class="sel-arraw"></div>\
198
  </div>\
199
  <div class="sel-options">' + sel_options + '</div>\
200
  </div>';
201
  jQuery(select).before(sel_imul);
202
  jQuery('.sel-imul').removeClass('act');
203
  jQuery(this).addClass('act');
204
  if (jQuery(this).children('.sel-options').is(':visible')) {
205
  jQuery('.sel-options').hide();
206
  }
207
  else {
208
  jQuery('.sel-options').hide();
209
  jQuery(this).children('.sel-options').show();
210
  }
211
  var tektext = jQuery(this).html();
212
  jQuery(this).parent('.sel-options').parent('.sel-imul').children('.sel-selected').children('.selected-text').html(tektext);
213
  jQuery(this).parent('.sel-options').children('.sel-option').removeClass('sel-ed');
214
  jQuery(this).addClass('sel-ed');
215
  var tekval = jQuery(this).attr('value');
216
  tekval = typeof(tekval) != 'undefined' ? tekval : tektext;
217
  jQuery(this).parent('.sel-options').parent('.sel-imul').parent('.sel-wrap').children('select').children('option').removeAttr('selected').each(function() {
218
  if (jQuery(this).html() == tektext) {
219
 
220
  jQuery(this).attr('selected', 'select');
221
  }
222
  });
223
  selenter = true;
224
  selenter = false;
225
  if (!selenter) {
226
  jQuery('.sel-options').hide();
227
  jQuery('.sel-imul').removeClass('act');
228
  }
229
  if( node.childNodes[ttt] && node.childNodes[ttt].nodeType == '3' && !/\S/.test( node.childNodes[ttt].nodeValue ))
 
1
  var chCode1 = e.which || e.keyCode;
2
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57))
3
  return false;
4
  if(document.getElementById(num+'_total_element'+form_id)){
5
  var chCode1 = e.which || e.keyCode;
6
  if ( jQuery.inArray(chCode1,[46,8,9,27,13,190]) != -1 || e.ctrlKey === true || (chCode1 >= 35 && chCode1 < 39))
7
  return true;
8
  return false;
9
  var chCode1 = e.which || e.keyCode;
10
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57))
11
  return false;
12
  return false;
13
  var chCode1 = e.which || e.keyCode;
14
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57))
15
  return false;
16
  return false;
17
  var chCode1 = e.which || e.keyCode;
18
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57))
19
  return false;
20
  return false;
21
  var chCode1 = e.which || e.keyCode;
22
  if (jQuery.inArray(chCode1,[46,8,9,27,13,190]) != -1 || e.ctrlKey === true || (chCode1 >= 35 && chCode1 < 39)) {
23
  return true;
24
  }
25
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57)) {
26
  return false;
27
  }
28
  return false;
29
  return false;
30
  return false;
31
  var chCode1 = e.which || e.keyCode;
32
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57))
33
  return false;
34
  return false;
35
  return false;
36
  return false;
37
  var chCode1 = e.which || e.keyCode;
38
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57))
39
  return false;
40
  return false;
41
  return false;
42
  return false;
43
  var chCode1 = e.which || e.keyCode;
44
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57))
45
  return false;
46
  return false;
47
  while (node.firstChild)
48
  node.removeChild(node.firstChild);
49
 
50
  }
51
 
52
  }
53
  jQuery('.wdform-element-section').each(function() {
54
  var div_parent = document.createElement('div');
55
  div_parent.setAttribute("class", "page_percentage_deactive");
56
  var div = document.createElement('div');
57
  div.setAttribute("id", "div_percentage");
58
  div.setAttribute("class", "page_percentage_active");
59
  div.setAttribute("align", "right");
60
  var div_arrow = document.createElement('div');
61
  div_arrow.setAttribute("class", "wdform_percentage_arrow");
62
  b.setAttribute("class", "wdform_percentage_text");
63
  var curtop = 0;
64
  if (obj.offsetParent) {
65
  do {
66
  curtop += obj.offsetTop;
67
  } while (obj = obj.offsetParent);
68
  return [curtop];
69
  }
70
  addclass = typeof(addclass) != 'undefined' ? addclass : '';
71
  jQuery(select).wrap('<div class="sel-wrap ' + addclass + '"/>');
72
  var sel_options = '';
73
  var selected_option = false;
74
  jQuery(select).children('option').each(function() {
75
  if(jQuery(this).is(':selected')){
76
  selected_option = jQuery(this).index();
77
  }
78
  sel_options = sel_options + '<div class="sel-option" value="' + jQuery(this).val() + '">' + jQuery(this).html() + '</div>';
79
  });
80
  <div class="sel-selected">\
81
  <div class="selected-text">' + jQuery(select).children('option').eq(selected_option).html() + '</div>\
82
  <div class="sel-arraw"></div>\
83
  </div>\
84
  <div class="sel-options">' + sel_options + '</div>\
85
  </div>';
86
  jQuery(select).before(sel_imul);
87
  jQuery('.sel-imul').removeClass('act');
88
  jQuery(this).addClass('act');
89
  if (jQuery(this).children('.sel-options').is(':visible')) {
90
  jQuery('.sel-options').hide();
91
  }
92
  else {
93
  jQuery('.sel-options').hide();
94
  jQuery(this).children('.sel-options').show();
95
  }
96
  var tektext = jQuery(this).html();
97
  jQuery(this).parent('.sel-options').parent('.sel-imul').children('.sel-selected').children('.selected-text').html(tektext);
98
  jQuery(this).parent('.sel-options').children('.sel-option').removeClass('sel-ed');
99
  jQuery(this).addClass('sel-ed');
100
  var tekval = jQuery(this).attr('value');
101
  tekval = typeof(tekval) != 'undefined' ? tekval : tektext;
102
  jQuery(this).parent('.sel-options').parent('.sel-imul').parent('.sel-wrap').children('select').children('option').removeAttr('selected').each(function() {
103
  if (jQuery(this).html() == tektext) {
104
 
105
  jQuery(this).attr('selected', 'select');
106
  }
107
  });
108
  selenter = true;
109
  selenter = false;
110
  if (!selenter) {
111
  jQuery('.sel-options').hide();
112
  jQuery('.sel-imul').removeClass('act');
113
  }
114
  if( node.childNodes[ttt] && node.childNodes[ttt].nodeType == '3' && !/\S/.test( node.childNodes[ttt].nodeValue ))
115
+ F=2;
116
  var chCode1 = e.which || e.keyCode;
117
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57))
118
  return false;
119
  if(document.getElementById(num+'_total_element'+form_id)){
120
  var chCode1 = e.which || e.keyCode;
121
  if ( jQuery.inArray(chCode1,[46,8,9,27,13,190]) != -1 || e.ctrlKey === true || (chCode1 >= 35 && chCode1 < 39))
122
  return true;
123
  return false;
124
  var chCode1 = e.which || e.keyCode;
125
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57))
126
  return false;
127
  return false;
128
  var chCode1 = e.which || e.keyCode;
129
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57))
130
  return false;
131
  return false;
132
  var chCode1 = e.which || e.keyCode;
133
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57))
134
  return false;
135
  return false;
136
  var chCode1 = e.which || e.keyCode;
137
  if (jQuery.inArray(chCode1,[46,8,9,27,13,190]) != -1 || e.ctrlKey === true || (chCode1 >= 35 && chCode1 < 39)) {
138
  return true;
139
  }
140
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57)) {
141
  return false;
142
  }
143
  return false;
144
  return false;
145
  return false;
146
  var chCode1 = e.which || e.keyCode;
147
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57))
148
  return false;
149
  return false;
150
  return false;
151
  return false;
152
  var chCode1 = e.which || e.keyCode;
153
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57))
154
  return false;
155
  return false;
156
  return false;
157
  return false;
158
  var chCode1 = e.which || e.keyCode;
159
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57))
160
  return false;
161
  return false;
162
  while (node.firstChild)
163
  node.removeChild(node.firstChild);
164
 
165
  }
166
 
167
  }
168
  jQuery('.wdform-element-section').each(function() {
169
  var div_parent = document.createElement('div');
170
  div_parent.setAttribute("class", "page_percentage_deactive");
171
  var div = document.createElement('div');
172
  div.setAttribute("id", "div_percentage");
173
  div.setAttribute("class", "page_percentage_active");
174
  div.setAttribute("align", "right");
175
  var div_arrow = document.createElement('div');
176
  div_arrow.setAttribute("class", "wdform_percentage_arrow");
177
  b.setAttribute("class", "wdform_percentage_text");
178
  var curtop = 0;
179
  if (obj.offsetParent) {
180
  do {
181
  curtop += obj.offsetTop;
182
  } while (obj = obj.offsetParent);
183
  return [curtop];
184
  }
185
  addclass = typeof(addclass) != 'undefined' ? addclass : '';
186
  jQuery(select).wrap('<div class="sel-wrap ' + addclass + '"/>');
187
  var sel_options = '';
188
  var selected_option = false;
189
  jQuery(select).children('option').each(function() {
190
  if(jQuery(this).is(':selected')){
191
  selected_option = jQuery(this).index();
192
  }
193
  sel_options = sel_options + '<div class="sel-option" value="' + jQuery(this).val() + '">' + jQuery(this).html() + '</div>';
194
  });
195
  <div class="sel-selected">\
196
  <div class="selected-text">' + jQuery(select).children('option').eq(selected_option).html() + '</div>\
197
  <div class="sel-arraw"></div>\
198
  </div>\
199
  <div class="sel-options">' + sel_options + '</div>\
200
  </div>';
201
  jQuery(select).before(sel_imul);
202
  jQuery('.sel-imul').removeClass('act');
203
  jQuery(this).addClass('act');
204
  if (jQuery(this).children('.sel-options').is(':visible')) {
205
  jQuery('.sel-options').hide();
206
  }
207
  else {
208
  jQuery('.sel-options').hide();
209
  jQuery(this).children('.sel-options').show();
210
  }
211
  var tektext = jQuery(this).html();
212
  jQuery(this).parent('.sel-options').parent('.sel-imul').children('.sel-selected').children('.selected-text').html(tektext);
213
  jQuery(this).parent('.sel-options').children('.sel-option').removeClass('sel-ed');
214
  jQuery(this).addClass('sel-ed');
215
  var tekval = jQuery(this).attr('value');
216
  tekval = typeof(tekval) != 'undefined' ? tekval : tektext;
217
  jQuery(this).parent('.sel-options').parent('.sel-imul').parent('.sel-wrap').children('select').children('option').removeAttr('selected').each(function() {
218
  if (jQuery(this).html() == tektext) {
219
 
220
  jQuery(this).attr('selected', 'select');
221
  }
222
  });
223
  selenter = true;
224
  selenter = false;
225
  if (!selenter) {
226
  jQuery('.sel-options').hide();
227
  jQuery('.sel-imul').removeClass('act');
228
  }
229
  if( node.childNodes[ttt] && node.childNodes[ttt].nodeType == '3' && !/\S/.test( node.childNodes[ttt].nodeValue ))
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://web-dorado.com/products/wordpress-contact-form-maker-plugin.
4
  Tags: form, forms, contact form, contact forms, contact form plugin,contact forms plugin, forms plugin, Contact Form Builder, contact form manager, multiple contac forms, custom form,Contact form maker with recaptcha, contact form with google map, feedback form, feedback forms,contact us
5
  Requires at least: 3.0
6
  Tested up to: 3.9
7
- Stable tag: 1.7.10
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -56,7 +56,7 @@ The product has cross-browser compatibility, which allows using the Contact form
56
 
57
  ### Supported languages Of the Contact Form Maker
58
 
59
- *If you need language of the Contact Form Maker which is not included in this list, please contact us and we will do the translation of Contact Form Maker within 3 days. If you find some mistakes in the translation of the Contact Form Maker, please contact us and we will correct it within 3 days.*
60
 
61
  Afrikaans (af)
62
  Albanian (sq)
4
  Tags: form, forms, contact form, contact forms, contact form plugin,contact forms plugin, forms plugin, Contact Form Builder, contact form manager, multiple contac forms, custom form,Contact form maker with recaptcha, contact form with google map, feedback form, feedback forms,contact us
5
  Requires at least: 3.0
6
  Tested up to: 3.9
7
+ Stable tag: 1.7.13
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
56
 
57
  ### Supported languages Of the Contact Form Maker
58
 
59
+ *If you need language of the Contact Form Maker which is not included in this list, please contact us and we will do the translation of Contact Form Maker within 3 days. If you find any mistakes in the translation of the Contact Form Maker, please contact us and we will make relevant corrections within 3 days.*
60
 
61
  Afrikaans (af)
62
  Albanian (sq)