Version Description
Download this release
Release Info
Developer | webdorado |
Plugin | Form Maker by WD – user-friendly drag & drop Form Builder plugin |
Version | 1.7.3 |
Comparing to | |
See all releases |
Code changes from version 1.7.2 to 1.7.3
- form-maker.php +29 -26
- js/main.js +1 -11
- js/main_div_front_end.js +1 -1
- js/main_front_end.js +2 -15
- readme.txt +1 -1
form-maker.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: 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.
|
7 |
* Author: http://web-dorado.com/
|
8 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
*/
|
@@ -119,28 +119,29 @@ function do_output_buffer() {
|
|
119 |
add_action('init', 'do_output_buffer');
|
120 |
|
121 |
function Form_maker_fornt_end_main($content) {
|
122 |
-
$
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
$
|
129 |
-
$
|
130 |
-
|
131 |
-
|
132 |
-
|
|
|
133 |
}
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
}
|
145 |
}
|
146 |
return $content;
|
@@ -356,10 +357,12 @@ function form_maker_scripts() {
|
|
356 |
wp_enqueue_script('form_maker_admin', WD_FM_URL . '/js/form_maker_admin.js', array(), get_option("wd_form_maker_version"));
|
357 |
}
|
358 |
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
|
|
|
|
363 |
|
364 |
function form_maker_front_end_scripts() {
|
365 |
// global $wp_scripts;
|
3 |
* Plugin Name: 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.3
|
7 |
* Author: http://web-dorado.com/
|
8 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
*/
|
119 |
add_action('init', 'do_output_buffer');
|
120 |
|
121 |
function Form_maker_fornt_end_main($content) {
|
122 |
+
global $form_maker_generate_action;
|
123 |
+
if ($form_maker_generate_action) {
|
124 |
+
$pattern = '[\[Form id="([0-9]*)"\]]';
|
125 |
+
$count_forms_in_post = preg_match_all($pattern, $content, $matches_form);
|
126 |
+
if ($count_forms_in_post) {
|
127 |
+
require_once (WD_FM_DIR . '/frontend/controllers/FMControllerForm_maker.php');
|
128 |
+
$controller = new FMControllerForm_maker();
|
129 |
+
for ($jj = 0; $jj < $count_forms_in_post; $jj++) {
|
130 |
+
$padron = $matches_form[0][$jj];
|
131 |
+
$replacment = $controller->execute($matches_form[1][$jj]);
|
132 |
+
$content = str_replace($padron, $replacment, $content);
|
133 |
+
}
|
134 |
}
|
135 |
+
$pattern = '[\[contact_form_for_repace id="([0-9]*)"\]]';
|
136 |
+
$count_forms_in_post = preg_match_all($pattern, $content, $matches_form);
|
137 |
+
if ($count_forms_in_post) {
|
138 |
+
require_once (WD_FM_DIR . '/frontend/controllers/FMControllerForm_maker.php');
|
139 |
+
$controller = new FMControllerForm_maker();
|
140 |
+
for ($jj = 0; $jj < $count_forms_in_post; $jj++) {
|
141 |
+
$padron = $matches_form[0][$jj];
|
142 |
+
$replacment = $controller->execute($matches_form[1][$jj]);
|
143 |
+
$content = str_replace($padron, $replacment, $content);
|
144 |
+
}
|
145 |
}
|
146 |
}
|
147 |
return $content;
|
357 |
wp_enqueue_script('form_maker_admin', WD_FM_URL . '/js/form_maker_admin.js', array(), get_option("wd_form_maker_version"));
|
358 |
}
|
359 |
|
360 |
+
$form_maker_generate_action = 0;
|
361 |
+
function form_maker_generate_action() {
|
362 |
+
global $form_maker_generate_action;
|
363 |
+
$form_maker_generate_action = 1;
|
364 |
+
}
|
365 |
+
add_filter('wp_head', 'form_maker_generate_action', 10000);
|
366 |
|
367 |
function form_maker_front_end_scripts() {
|
368 |
// global $wp_scripts;
|
js/main.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
F=2
|
2 |
var c;
|
3 |
var a=new Array();
|
4 |
function show_other_input(num, form_id)
|
@@ -325,8 +325,6 @@ function change_value(id)
|
|
325 |
tag=input.tagName;
|
326 |
if(tag=="TEXTAREA")
|
327 |
{
|
328 |
-
// destroyChildren(input)
|
329 |
-
|
330 |
input.innerHTML=input.value;
|
331 |
}
|
332 |
else
|
@@ -383,12 +381,9 @@ function destroyChildren(node)
|
|
383 |
node.removeChild(node.firstChild);
|
384 |
}
|
385 |
|
386 |
-
////////////////////////////////////////////
|
387 |
function generate_page_nav(id, form_id, form_view_count, form_view_max)
|
388 |
{
|
389 |
form_view=id;
|
390 |
-
////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
391 |
-
////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
392 |
page_nav=document.getElementById(form_id+'page_nav'+id);
|
393 |
destroyChildren(page_nav);
|
394 |
form_view_elemet=document.getElementById(form_id+'form_view'+id);
|
@@ -509,10 +504,6 @@ else
|
|
509 |
if(document.getElementById(x+'_type'+form_id))
|
510 |
if(document.getElementById(x+'_type'+form_id).value=="type_map")
|
511 |
if_gmap_init(x+"_element"+form_id, false);
|
512 |
-
|
513 |
-
|
514 |
-
////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
515 |
-
////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
516 |
}
|
517 |
|
518 |
function display_none_form_views_all(form_id)
|
@@ -521,7 +512,6 @@ function display_none_form_views_all(form_id)
|
|
521 |
if(document.getElementById(form_id+'form_view'+t))
|
522 |
document.getElementById(form_id+'form_view'+t).parentNode.style.display="none";
|
523 |
}
|
524 |
-
//
|
525 |
function generate_page_bar(form_view, form_id, form_view_count, form_view_max)
|
526 |
{
|
527 |
if(document.getElementById(form_id+'pages').getAttribute('type')=='steps')
|
1 |
+
F=2;
|
2 |
var c;
|
3 |
var a=new Array();
|
4 |
function show_other_input(num, form_id)
|
325 |
tag=input.tagName;
|
326 |
if(tag=="TEXTAREA")
|
327 |
{
|
|
|
|
|
328 |
input.innerHTML=input.value;
|
329 |
}
|
330 |
else
|
381 |
node.removeChild(node.firstChild);
|
382 |
}
|
383 |
|
|
|
384 |
function generate_page_nav(id, form_id, form_view_count, form_view_max)
|
385 |
{
|
386 |
form_view=id;
|
|
|
|
|
387 |
page_nav=document.getElementById(form_id+'page_nav'+id);
|
388 |
destroyChildren(page_nav);
|
389 |
form_view_elemet=document.getElementById(form_id+'form_view'+id);
|
504 |
if(document.getElementById(x+'_type'+form_id))
|
505 |
if(document.getElementById(x+'_type'+form_id).value=="type_map")
|
506 |
if_gmap_init(x+"_element"+form_id, false);
|
|
|
|
|
|
|
|
|
507 |
}
|
508 |
|
509 |
function display_none_form_views_all(form_id)
|
512 |
if(document.getElementById(form_id+'form_view'+t))
|
513 |
document.getElementById(form_id+'form_view'+t).parentNode.style.display="none";
|
514 |
}
|
|
|
515 |
function generate_page_bar(form_view, form_id, form_view_count, form_view_max)
|
516 |
{
|
517 |
if(document.getElementById(form_id+'pages').getAttribute('type')=='steps')
|
js/main_div_front_end.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
F=2;//choices id
|
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 ))
|
js/main_front_end.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
F=2
|
2 |
var c;
|
3 |
var a = new Array();
|
4 |
function show_other_input(num, form_id) {
|
@@ -333,7 +333,6 @@ function change_value(id) {
|
|
333 |
input=document.getElementById(id);
|
334 |
tag=input.tagName;
|
335 |
if (tag == "TEXTAREA") {
|
336 |
-
// destroyChildren(input)
|
337 |
input.innerHTML=input.value;
|
338 |
}
|
339 |
else {
|
@@ -391,12 +390,9 @@ function destroyChildren(node)
|
|
391 |
node.removeChild(node.firstChild);
|
392 |
}
|
393 |
|
394 |
-
////////////////////////////////////////////
|
395 |
function generate_page_nav(id, form_id, form_view_count, form_view_max)
|
396 |
{
|
397 |
form_view=id;
|
398 |
-
////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
399 |
-
////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
400 |
page_nav=document.getElementById(form_id+'page_nav'+id);
|
401 |
destroyChildren(page_nav);
|
402 |
form_view_elemet=document.getElementById(form_id+'form_view'+id);
|
@@ -576,9 +572,6 @@ else
|
|
576 |
|
577 |
|
578 |
}
|
579 |
-
|
580 |
-
////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
581 |
-
////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
582 |
}
|
583 |
|
584 |
function display_none_form_views_all(form_id)
|
@@ -587,7 +580,7 @@ function display_none_form_views_all(form_id)
|
|
587 |
if(document.getElementById(form_id+'form_view'+t))
|
588 |
document.getElementById(form_id+'form_view'+t).parentNode.style.display="none";
|
589 |
}
|
590 |
-
|
591 |
function generate_page_bar(form_view, form_id, form_view_count, form_view_max)
|
592 |
{
|
593 |
if(document.getElementById(form_id+'pages').getAttribute('type')=='steps')
|
@@ -700,9 +693,7 @@ function make_page_percentage_front(form_view, form_id, form_view_count, form_vi
|
|
700 |
div.setAttribute("align", "right");
|
701 |
|
702 |
var b = document.createElement('span');
|
703 |
-
// b.style.margin='3px 7px 3px 3px';
|
704 |
b.setAttribute("class", "wdform_percentage_text");
|
705 |
-
//b.style.vertical-align='middle';
|
706 |
div.appendChild(b);
|
707 |
|
708 |
k=0;
|
@@ -1235,7 +1226,6 @@ function check_required(but_type, form_id) {
|
|
1235 |
if (document.getElementById(i+"_type"+form_id).value=="type_grading") {
|
1236 |
if (parseInt(document.getElementById(i+"_sum_element"+form_id).innerHTML) > parseInt(document.getElementById(i+"_total_element"+form_id).innerHTML)) {
|
1237 |
alert(WDF_INVALID_GRADING + ' ' + document.getElementById(i+'_total_element'+form_id).innerHTML);
|
1238 |
-
// alert("Your score should be less than "+document.getElementById(i+'_total_element'+form_id).innerHTML);
|
1239 |
return;
|
1240 |
}
|
1241 |
}
|
@@ -1306,7 +1296,6 @@ function check(id, form_id)
|
|
1306 |
{
|
1307 |
if(seted)
|
1308 |
{
|
1309 |
-
// if(form_view_curren.getElementById(i+"_type"+form_id))
|
1310 |
if (form_maker_getElementsByAttribute(form_view_curren, "*", "id", "" + i + "_type" + form_id + "") != '')
|
1311 |
if(document.getElementById(i+"_required"+form_id))
|
1312 |
if(document.getElementById(i+"_required"+form_id).value=="yes")
|
@@ -1779,7 +1768,6 @@ function sum_grading_values(num,form_id){
|
|
1779 |
if(document.getElementById(num+'_total_element'+form_id)){
|
1780 |
if(sum > document.getElementById(num+'_total_element'+form_id).innerHTML){
|
1781 |
document.getElementById(num+'_text_element'+form_id).innerHTML = WDF_GRADING_TEXT + ' ' + document.getElementById(num+'_total_element'+form_id).innerHTML;
|
1782 |
-
// document.getElementById(num+'_text_element'+form_id).innerHTML = " Your score should be less than "+document.getElementById(num+'_total_element'+form_id).innerHTML;
|
1783 |
}
|
1784 |
else{
|
1785 |
document.getElementById(num+'_text_element'+form_id).innerHTML="";
|
@@ -1912,7 +1900,6 @@ var FormPaypalTax = eval("FormPaypalTax_" + form_id);
|
|
1912 |
div.appendChild(span_label);
|
1913 |
div.appendChild(span_value);
|
1914 |
var div_shipping_total = div;
|
1915 |
-
// div_paypal_products.append(div);
|
1916 |
}
|
1917 |
break;
|
1918 |
|
1 |
+
F=2;
|
2 |
var c;
|
3 |
var a = new Array();
|
4 |
function show_other_input(num, form_id) {
|
333 |
input=document.getElementById(id);
|
334 |
tag=input.tagName;
|
335 |
if (tag == "TEXTAREA") {
|
|
|
336 |
input.innerHTML=input.value;
|
337 |
}
|
338 |
else {
|
390 |
node.removeChild(node.firstChild);
|
391 |
}
|
392 |
|
|
|
393 |
function generate_page_nav(id, form_id, form_view_count, form_view_max)
|
394 |
{
|
395 |
form_view=id;
|
|
|
|
|
396 |
page_nav=document.getElementById(form_id+'page_nav'+id);
|
397 |
destroyChildren(page_nav);
|
398 |
form_view_elemet=document.getElementById(form_id+'form_view'+id);
|
572 |
|
573 |
|
574 |
}
|
|
|
|
|
|
|
575 |
}
|
576 |
|
577 |
function display_none_form_views_all(form_id)
|
580 |
if(document.getElementById(form_id+'form_view'+t))
|
581 |
document.getElementById(form_id+'form_view'+t).parentNode.style.display="none";
|
582 |
}
|
583 |
+
|
584 |
function generate_page_bar(form_view, form_id, form_view_count, form_view_max)
|
585 |
{
|
586 |
if(document.getElementById(form_id+'pages').getAttribute('type')=='steps')
|
693 |
div.setAttribute("align", "right");
|
694 |
|
695 |
var b = document.createElement('span');
|
|
|
696 |
b.setAttribute("class", "wdform_percentage_text");
|
|
|
697 |
div.appendChild(b);
|
698 |
|
699 |
k=0;
|
1226 |
if (document.getElementById(i+"_type"+form_id).value=="type_grading") {
|
1227 |
if (parseInt(document.getElementById(i+"_sum_element"+form_id).innerHTML) > parseInt(document.getElementById(i+"_total_element"+form_id).innerHTML)) {
|
1228 |
alert(WDF_INVALID_GRADING + ' ' + document.getElementById(i+'_total_element'+form_id).innerHTML);
|
|
|
1229 |
return;
|
1230 |
}
|
1231 |
}
|
1296 |
{
|
1297 |
if(seted)
|
1298 |
{
|
|
|
1299 |
if (form_maker_getElementsByAttribute(form_view_curren, "*", "id", "" + i + "_type" + form_id + "") != '')
|
1300 |
if(document.getElementById(i+"_required"+form_id))
|
1301 |
if(document.getElementById(i+"_required"+form_id).value=="yes")
|
1768 |
if(document.getElementById(num+'_total_element'+form_id)){
|
1769 |
if(sum > document.getElementById(num+'_total_element'+form_id).innerHTML){
|
1770 |
document.getElementById(num+'_text_element'+form_id).innerHTML = WDF_GRADING_TEXT + ' ' + document.getElementById(num+'_total_element'+form_id).innerHTML;
|
|
|
1771 |
}
|
1772 |
else{
|
1773 |
document.getElementById(num+'_text_element'+form_id).innerHTML="";
|
1900 |
div.appendChild(span_label);
|
1901 |
div.appendChild(span_value);
|
1902 |
var div_shipping_total = div;
|
|
|
1903 |
}
|
1904 |
break;
|
1905 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://web-dorado.com/products/wordpress-form.html
|
|
4 |
Tags: form, forms, form builder, form maker, form manager, form plugin, form with recaptcha, forms plugin, multiple forms, paypal form, survey form, feedback form, feedback forms, contact form,contact form plugin, contact form builder, form creator, email form, secure form, web form, form to email, contact forms, custom forms, form widget, captcha form, wordpress contact form ,recaptcha contact form, form creation, contact form with auto reply, widget contact form, builder, feedback, contacts form plugin , custom contact form, contact us form, Formular, formulario
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.9
|
7 |
-
Stable tag: 1.7.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
4 |
Tags: form, forms, form builder, form maker, form manager, form plugin, form with recaptcha, forms plugin, multiple forms, paypal form, survey form, feedback form, feedback forms, contact form,contact form plugin, contact form builder, form creator, email form, secure form, web form, form to email, contact forms, custom forms, form widget, captcha form, wordpress contact form ,recaptcha contact form, form creation, contact form with auto reply, widget contact form, builder, feedback, contacts form plugin , custom contact form, contact us form, Formular, formulario
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.9
|
7 |
+
Stable tag: 1.7.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|