Version Description
Download this release
Release Info
Developer | webdorado |
Plugin | Form Maker by WD – user-friendly drag & drop Form Builder plugin |
Version | 1.7.5 |
Comparing to | |
See all releases |
Code changes from version 1.7.4 to 1.7.5
- admin/controllers/FMControllerManage_fm.php +2 -2
- admin/models/FMModelSubmissions_fm.php +0 -1
- admin/views/FMViewFormmakerwdcaptcha.php +3 -1
- admin/views/FMViewManage_fm.php +8 -2
- css/form_maker_tables.css +7 -1
- form-maker.php +4 -2
- frontend/models/FMModelForm_maker.php +14 -8
- frontend/views/FMViewForm_maker.php +5 -2
- js/form_maker_manage.js +10 -0
- js/formmaker_div_free.js +7 -7
- js/formmaker_free.js +7 -7
- js/main_div_front_end.js +1 -1
- readme.txt +1 -1
admin/controllers/FMControllerManage_fm.php
CHANGED
@@ -135,7 +135,7 @@ function before_reset() {
|
|
135 |
$script2 = (isset($_POST['script2']) ? esc_html(stripslashes($_POST['script2'])) : '');
|
136 |
$script_user1 = (isset($_POST['script_user1']) ? esc_html(stripslashes($_POST['script_user1'])) : '');
|
137 |
$script_user2 = (isset($_POST['script_user2']) ? esc_html(stripslashes($_POST['script_user2'])) : '');
|
138 |
-
$submit_text = (isset($_POST['submit_text']) ?
|
139 |
$url = (isset($_POST['url']) ? esc_html(stripslashes($_POST['url'])) : '');
|
140 |
$script_mail = (isset($_POST['script_mail']) ? stripslashes($_POST['script_mail']) : '%all%');
|
141 |
$script_mail_user = (isset($_POST['script_mail_user']) ? stripslashes($_POST['script_mail_user']) : '%all%');
|
@@ -323,7 +323,7 @@ function before_reset() {
|
|
323 |
$mail_from_name_user = (isset($_POST['mail_from_name_user']) ? esc_html(stripslashes($_POST['mail_from_name_user'])) : '');
|
324 |
$reply_to_user = (isset($_POST['reply_to_user']) ? esc_html(stripslashes($_POST['reply_to_user'])) : '');
|
325 |
$script_mail_user = (isset($_POST['script_mail_user']) ? stripslashes($_POST['script_mail_user']) : '%all%');
|
326 |
-
$submit_text = (isset($_POST['submit_text']) ?
|
327 |
$url = (isset($_POST['url']) ? esc_html(stripslashes($_POST['url'])) : '');
|
328 |
$tax = (isset($_POST['tax']) ? esc_html(stripslashes($_POST['tax'])) : 0);
|
329 |
$payment_currency = (isset($_POST['payment_currency']) ? stripslashes($_POST['payment_currency']) : '');
|
135 |
$script2 = (isset($_POST['script2']) ? esc_html(stripslashes($_POST['script2'])) : '');
|
136 |
$script_user1 = (isset($_POST['script_user1']) ? esc_html(stripslashes($_POST['script_user1'])) : '');
|
137 |
$script_user2 = (isset($_POST['script_user2']) ? esc_html(stripslashes($_POST['script_user2'])) : '');
|
138 |
+
$submit_text = (isset($_POST['submit_text']) ? stripslashes($_POST['submit_text']) : '');
|
139 |
$url = (isset($_POST['url']) ? esc_html(stripslashes($_POST['url'])) : '');
|
140 |
$script_mail = (isset($_POST['script_mail']) ? stripslashes($_POST['script_mail']) : '%all%');
|
141 |
$script_mail_user = (isset($_POST['script_mail_user']) ? stripslashes($_POST['script_mail_user']) : '%all%');
|
323 |
$mail_from_name_user = (isset($_POST['mail_from_name_user']) ? esc_html(stripslashes($_POST['mail_from_name_user'])) : '');
|
324 |
$reply_to_user = (isset($_POST['reply_to_user']) ? esc_html(stripslashes($_POST['reply_to_user'])) : '');
|
325 |
$script_mail_user = (isset($_POST['script_mail_user']) ? stripslashes($_POST['script_mail_user']) : '%all%');
|
326 |
+
$submit_text = (isset($_POST['submit_text']) ? stripslashes($_POST['submit_text']) : '');
|
327 |
$url = (isset($_POST['url']) ? esc_html(stripslashes($_POST['url'])) : '');
|
328 |
$tax = (isset($_POST['tax']) ? esc_html(stripslashes($_POST['tax'])) : 0);
|
329 |
$payment_currency = (isset($_POST['payment_currency']) ? stripslashes($_POST['payment_currency']) : '');
|
admin/models/FMModelSubmissions_fm.php
CHANGED
@@ -19,7 +19,6 @@ class FMModelSubmissions_fm {
|
|
19 |
////////////////////////////////////////////////////////////////////////////////////////
|
20 |
public function check_ip($ip) {
|
21 |
global $wpdb;
|
22 |
-
$query = "SELECT id, title FROM " . $wpdb->prefix . "formmaker order by title";
|
23 |
$ip = $wpdb->get_var($wpdb->prepare('SELECT ip FROM ' . $wpdb->prefix . 'formmaker_blocked WHERE ip="%s"', $ip));
|
24 |
return $ip;
|
25 |
}
|
19 |
////////////////////////////////////////////////////////////////////////////////////////
|
20 |
public function check_ip($ip) {
|
21 |
global $wpdb;
|
|
|
22 |
$ip = $wpdb->get_var($wpdb->prepare('SELECT ip FROM ' . $wpdb->prefix . 'formmaker_blocked WHERE ip="%s"', $ip));
|
23 |
return $ip;
|
24 |
}
|
admin/views/FMViewFormmakerwdcaptcha.php
CHANGED
@@ -52,7 +52,9 @@ class FMViewFormmakerwdcaptcha {
|
|
52 |
}
|
53 |
$l = rand($cap_length_min, $cap_length_max);
|
54 |
$code = code_generic($l, $cap_digital, $cap_latin_char);
|
55 |
-
|
|
|
|
|
56 |
$_SESSION[$i . '_wd_captcha_code'] = $code;
|
57 |
$canvas = imagecreatetruecolor($cap_width, $cap_height);
|
58 |
$c = imagecolorallocate($canvas, rand(150, 255), rand(150, 255), rand(150, 255));
|
52 |
}
|
53 |
$l = rand($cap_length_min, $cap_length_max);
|
54 |
$code = code_generic($l, $cap_digital, $cap_latin_char);
|
55 |
+
if (session_id() == '' || (function_exists('session_status') && (session_status() == PHP_SESSION_NONE))) {
|
56 |
+
@session_start();
|
57 |
+
}
|
58 |
$_SESSION[$i . '_wd_captcha_code'] = $code;
|
59 |
$canvas = imagecreatetruecolor($cap_width, $cap_height);
|
60 |
$c = imagecolorallocate($canvas, rand(150, 255), rand(150, 255), rand(150, 255));
|
admin/views/FMViewManage_fm.php
CHANGED
@@ -361,6 +361,9 @@ class FMViewManage_fm {
|
|
361 |
if (document.getElementsByTagName("iframe")[iiiii].id == 'form_maker_editor_ifr') {
|
362 |
id_ifr_editor = iiiii;
|
363 |
break;
|
|
|
|
|
|
|
364 |
}
|
365 |
}
|
366 |
}
|
@@ -454,7 +457,7 @@ class FMViewManage_fm {
|
|
454 |
<br />
|
455 |
<img src="<?php echo WD_FM_URL . '/images/formoptions.png'; ?>" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'form_options'); spider_form_submit(event, 'manage_form');" style="cursor: pointer; margin: 10px 0 10px 10px; float: right;"/>
|
456 |
<br /><br /><br />
|
457 |
-
<img src="<?php echo WD_FM_URL . '/images/addanewfield.png'; ?>" onclick="enable(); Enable()" style="cursor: pointer; margin:10px 0 10px 10px; float: right;"/>
|
458 |
</div>
|
459 |
</div>
|
460 |
|
@@ -1310,6 +1313,9 @@ class FMViewManage_fm {
|
|
1310 |
id_ifr_editor = iiiii;
|
1311 |
break;
|
1312 |
}
|
|
|
|
|
|
|
1313 |
}
|
1314 |
}
|
1315 |
alltypes = Array('customHTML', 'text', 'checkbox', 'radio', 'time_and_date', 'select', 'file_upload', 'captcha', 'map', 'button', 'page_break', 'section_break', 'paypal', 'survey');
|
@@ -1404,7 +1410,7 @@ class FMViewManage_fm {
|
|
1404 |
<br />
|
1405 |
<img src="<?php echo WD_FM_URL . '/images/formoptions.png'; ?>" onclick="if (spider_check_required('title', 'Form title')) {return false;}; submitbutton(); spider_set_input_value('task', 'form_options_old'); spider_form_submit(event, 'manage_form');" style="cursor: pointer; margin: 10px 0 10px 10px; float: right;"/>
|
1406 |
<br /><br /><br />
|
1407 |
-
<img src="<?php echo WD_FM_URL . '/images/addanewfield.png'; ?>" onclick="enable(); Enable()" style="cursor: pointer; margin:10px 0 10px 10px; float: right;"/>
|
1408 |
</div>
|
1409 |
</div>
|
1410 |
|
361 |
if (document.getElementsByTagName("iframe")[iiiii].id == 'form_maker_editor_ifr') {
|
362 |
id_ifr_editor = iiiii;
|
363 |
break;
|
364 |
+
}
|
365 |
+
else {
|
366 |
+
id_ifr_editor = -1;
|
367 |
}
|
368 |
}
|
369 |
}
|
457 |
<br />
|
458 |
<img src="<?php echo WD_FM_URL . '/images/formoptions.png'; ?>" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'form_options'); spider_form_submit(event, 'manage_form');" style="cursor: pointer; margin: 10px 0 10px 10px; float: right;"/>
|
459 |
<br /><br /><br />
|
460 |
+
<img src="<?php echo WD_FM_URL . '/images/addanewfield.png'; ?>" onclick="if (fm_check_page_load()) { enable(); Enable(); }" style="cursor: pointer; margin:10px 0 10px 10px; float: right;"/>
|
461 |
</div>
|
462 |
</div>
|
463 |
|
1313 |
id_ifr_editor = iiiii;
|
1314 |
break;
|
1315 |
}
|
1316 |
+
else {
|
1317 |
+
id_ifr_editor = -1;
|
1318 |
+
}
|
1319 |
}
|
1320 |
}
|
1321 |
alltypes = Array('customHTML', 'text', 'checkbox', 'radio', 'time_and_date', 'select', 'file_upload', 'captcha', 'map', 'button', 'page_break', 'section_break', 'paypal', 'survey');
|
1410 |
<br />
|
1411 |
<img src="<?php echo WD_FM_URL . '/images/formoptions.png'; ?>" onclick="if (spider_check_required('title', 'Form title')) {return false;}; submitbutton(); spider_set_input_value('task', 'form_options_old'); spider_form_submit(event, 'manage_form');" style="cursor: pointer; margin: 10px 0 10px 10px; float: right;"/>
|
1412 |
<br /><br /><br />
|
1413 |
+
<img src="<?php echo WD_FM_URL . '/images/addanewfield.png'; ?>" onclick="if (fm_check_page_load()) { enable(); Enable(); }" style="cursor: pointer; margin:10px 0 10px 10px; float: right;"/>
|
1414 |
</div>
|
1415 |
</div>
|
1416 |
|
css/form_maker_tables.css
CHANGED
@@ -1,3 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
.form_maker_title {
|
2 |
border: none;
|
3 |
font-size: 11px;
|
@@ -37,7 +43,7 @@
|
|
37 |
#formMakerDiv1 {
|
38 |
padding-top: 20px;
|
39 |
position: fixed;
|
40 |
-
z-index:
|
41 |
background-color: transparent;
|
42 |
top: 0;
|
43 |
left: 0;
|
1 |
+
#manage_form fieldset {
|
2 |
+
clear: both;
|
3 |
+
float: left;
|
4 |
+
width: 99%;
|
5 |
+
}
|
6 |
+
|
7 |
.form_maker_title {
|
8 |
border: none;
|
9 |
font-size: 11px;
|
43 |
#formMakerDiv1 {
|
44 |
padding-top: 20px;
|
45 |
position: fixed;
|
46 |
+
z-index: 10000;
|
47 |
background-color: transparent;
|
48 |
top: 0;
|
49 |
left: 0;
|
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 |
*/
|
@@ -413,7 +413,9 @@ function form_maker_language_load() {
|
|
413 |
add_action('init', 'form_maker_language_load');
|
414 |
|
415 |
function form_maker_sesseion_path() {
|
416 |
-
|
|
|
|
|
417 |
session_save_path(WD_FM_DIR . '/session');
|
418 |
}
|
419 |
add_action('init', 'form_maker_sesseion_path');
|
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.5
|
7 |
* Author: http://web-dorado.com/
|
8 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
*/
|
413 |
add_action('init', 'form_maker_language_load');
|
414 |
|
415 |
function form_maker_sesseion_path() {
|
416 |
+
if (session_id() == '' || (function_exists('session_status') && (session_status() == PHP_SESSION_NONE))) {
|
417 |
+
@session_start();
|
418 |
+
}
|
419 |
session_save_path(WD_FM_DIR . '/session');
|
420 |
}
|
421 |
add_action('init', 'form_maker_sesseion_path');
|
frontend/models/FMModelForm_maker.php
CHANGED
@@ -58,7 +58,9 @@ class FMModelForm_maker {
|
|
58 |
}
|
59 |
|
60 |
public function savedata($form, $id) {
|
61 |
-
|
|
|
|
|
62 |
$all_files = array();
|
63 |
$correct = FALSE;
|
64 |
$id_for_old = $id;
|
@@ -125,7 +127,9 @@ class FMModelForm_maker {
|
|
125 |
|
126 |
public function save_db($counter, $id) {
|
127 |
global $wpdb;
|
128 |
-
|
|
|
|
|
129 |
$chgnac = TRUE;
|
130 |
$all_files = array();
|
131 |
$paypal = array();
|
@@ -287,9 +291,9 @@ class FMModelForm_maker {
|
|
287 |
|
288 |
$value.= site_url() . '/' . $destination . '/' . $fileName . '*@@url@@*';
|
289 |
|
290 |
-
$files['tmp_name'][$file_key]
|
291 |
-
$temp_file = array(
|
292 |
-
array_push($all_files
|
293 |
}
|
294 |
}
|
295 |
break;
|
@@ -805,8 +809,8 @@ class FMModelForm_maker {
|
|
805 |
$value = site_url() . '/' . $destination . '/' . $fileName . '*@@url@@*';
|
806 |
$file['tmp_name'] = $destination . "/" . $fileName;
|
807 |
$file['name'] = ABSPATH . $destination . "/" . $fileName;
|
808 |
-
$temp_file = array( "name" => $files['name'][$file_key], "type" => $files['type'][$file_key], "tmp_name" => $files['tmp_name'][$file_key]);
|
809 |
-
array_push($all_files, $
|
810 |
}
|
811 |
break;
|
812 |
}
|
@@ -1294,7 +1298,9 @@ class FMModelForm_maker {
|
|
1294 |
}
|
1295 |
|
1296 |
public function gen_mail($counter, $all_files, $id, $str) {
|
1297 |
-
|
|
|
|
|
1298 |
global $wpdb;
|
1299 |
$row = $wpdb->get_row($wpdb->prepare("SELECT * FROM " . $wpdb->prefix . "formmaker WHERE id=%d", $id));
|
1300 |
if (!$row->form_front) {
|
58 |
}
|
59 |
|
60 |
public function savedata($form, $id) {
|
61 |
+
if (session_id() == '' || (function_exists('session_status') && (session_status() == PHP_SESSION_NONE))) {
|
62 |
+
@session_start();
|
63 |
+
}
|
64 |
$all_files = array();
|
65 |
$correct = FALSE;
|
66 |
$id_for_old = $id;
|
127 |
|
128 |
public function save_db($counter, $id) {
|
129 |
global $wpdb;
|
130 |
+
if (session_id() == '' || (function_exists('session_status') && (session_status() == PHP_SESSION_NONE))) {
|
131 |
+
@session_start();
|
132 |
+
}
|
133 |
$chgnac = TRUE;
|
134 |
$all_files = array();
|
135 |
$paypal = array();
|
291 |
|
292 |
$value.= site_url() . '/' . $destination . '/' . $fileName . '*@@url@@*';
|
293 |
|
294 |
+
$files['tmp_name'][$file_key] = $destination . "/" . $fileName;
|
295 |
+
$temp_file = array("name" => $files['name'][$file_key], "type" => $files['type'][$file_key], "tmp_name" => $files['tmp_name'][$file_key]);
|
296 |
+
array_push($all_files, $temp_file);
|
297 |
}
|
298 |
}
|
299 |
break;
|
809 |
$value = site_url() . '/' . $destination . '/' . $fileName . '*@@url@@*';
|
810 |
$file['tmp_name'] = $destination . "/" . $fileName;
|
811 |
$file['name'] = ABSPATH . $destination . "/" . $fileName;
|
812 |
+
// $temp_file = array( "name" => $files['name'][$file_key], "type" => $files['type'][$file_key], "tmp_name" => $files['tmp_name'][$file_key]);
|
813 |
+
array_push($all_files, $file);
|
814 |
}
|
815 |
break;
|
816 |
}
|
1298 |
}
|
1299 |
|
1300 |
public function gen_mail($counter, $all_files, $id, $str) {
|
1301 |
+
if (session_id() == '' || (function_exists('session_status') && (session_status() == PHP_SESSION_NONE))) {
|
1302 |
+
@session_start();
|
1303 |
+
}
|
1304 |
global $wpdb;
|
1305 |
$row = $wpdb->get_row($wpdb->prepare("SELECT * FROM " . $wpdb->prefix . "formmaker WHERE id=%d", $id));
|
1306 |
if (!$row->form_front) {
|
frontend/views/FMViewForm_maker.php
CHANGED
@@ -23,7 +23,9 @@ class FMViewForm_maker {
|
|
23 |
// Public Methods //
|
24 |
////////////////////////////////////////////////////////////////////////////////////////
|
25 |
public function display($id) {
|
26 |
-
|
|
|
|
|
27 |
$form_maker_front_end = "";
|
28 |
$result = $this->model->showform($id);
|
29 |
if (!$result) {
|
@@ -2768,7 +2770,8 @@ class FMViewForm_maker {
|
|
2768 |
}
|
2769 |
x = jQuery("#form<?php echo $form_id; ?>");
|
2770 |
<?php echo $check_js; ?>;
|
2771 |
-
|
|
|
2772 |
return;
|
2773 |
}
|
2774 |
<?php echo $onsubmit_js; ?>;
|
23 |
// Public Methods //
|
24 |
////////////////////////////////////////////////////////////////////////////////////////
|
25 |
public function display($id) {
|
26 |
+
if (session_id() == '' || (function_exists('session_status') && (session_status() == PHP_SESSION_NONE))) {
|
27 |
+
@session_start();
|
28 |
+
}
|
29 |
$form_maker_front_end = "";
|
30 |
$result = $this->model->showform($id);
|
31 |
if (!$result) {
|
2770 |
}
|
2771 |
x = jQuery("#form<?php echo $form_id; ?>");
|
2772 |
<?php echo $check_js; ?>;
|
2773 |
+
var a = [];
|
2774 |
+
if (typeof a[<?php echo $form_id ?>] !== 'undefined' && a[<?php echo $form_id ?>] == 1) {
|
2775 |
return;
|
2776 |
}
|
2777 |
<?php echo $onsubmit_js; ?>;
|
js/form_maker_manage.js
CHANGED
@@ -1,3 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
function remove_whitespace(node) {
|
2 |
var ttt;
|
3 |
for (ttt = 0; ttt < node.childNodes.length; ttt++) {
|
1 |
+
function fm_check_page_load() {
|
2 |
+
if (!document.getElementById('araqel') || (document.getElementById('araqel').value == '0')) {
|
3 |
+
alert('Please wait while page loading.');
|
4 |
+
return false;
|
5 |
+
}
|
6 |
+
else {
|
7 |
+
return true;
|
8 |
+
}
|
9 |
+
}
|
10 |
+
|
11 |
function remove_whitespace(node) {
|
12 |
var ttt;
|
13 |
for (ttt = 0; ttt < node.childNodes.length; ttt++) {
|
js/formmaker_div_free.js
CHANGED
@@ -3,7 +3,7 @@ var c;
|
|
3 |
var need_enable=true;;
|
4 |
var a = new Array();
|
5 |
//var plugin_url = "";
|
6 |
-
var id_ifr_editor =
|
7 |
var count_of_fields_form = 7;
|
8 |
if (ajaxurl.indexOf("://") != -1) {
|
9 |
var url_for_ajax = ajaxurl;
|
@@ -4078,7 +4078,7 @@ function type_section_break(i, w_editor) {
|
|
4078 |
document.getElementById('main_editor').style.left=iReturnLeft+195+"px";
|
4079 |
document.getElementById('main_editor').style.top=iReturnTop+70+"px";
|
4080 |
|
4081 |
-
if (document.getElementById('form_maker_editor').style.display == "none") {
|
4082 |
ifr_id = document.getElementsByTagName("iframe")[id_ifr_editor].id;
|
4083 |
ifr = getIFrameDocument(ifr_id);
|
4084 |
ifr.body.innerHTML = w_editor;
|
@@ -4114,7 +4114,7 @@ function type_editor(i, w_editor) {
|
|
4114 |
document.getElementById('main_editor').style.left=iReturnLeft+195+"px";
|
4115 |
document.getElementById('main_editor').style.top=iReturnTop+70+"px";
|
4116 |
|
4117 |
-
if (document.getElementById('form_maker_editor').style.display=="none") {
|
4118 |
ifr_id=document.getElementsByTagName("iframe")[id_ifr_editor].id;
|
4119 |
ifr=getIFrameDocument(ifr_id);
|
4120 |
ifr.body.innerHTML=w_editor;
|
@@ -26300,7 +26300,7 @@ function add(key) {
|
|
26300 |
|
26301 |
|
26302 |
|
26303 |
-
ifr_id=document.getElementsByTagName("iframe")[
|
26304 |
ifr=getIFrameDocument(ifr_id);
|
26305 |
if(document.getElementById('form_maker_editor').style.display=="none")
|
26306 |
wdform_field_in_editor.innerHTML=ifr.body.innerHTML;
|
@@ -26380,7 +26380,7 @@ function add(key) {
|
|
26380 |
in_editor.setAttribute("class", 'wdform_section_break');
|
26381 |
|
26382 |
|
26383 |
-
ifr_id=document.getElementsByTagName("iframe")[
|
26384 |
ifr=getIFrameDocument(ifr_id)
|
26385 |
|
26386 |
if(document.getElementById('form_maker_editor').style.display=="none")
|
@@ -26710,7 +26710,7 @@ function add(key) {
|
|
26710 |
destroyChildren(wdform_field);
|
26711 |
|
26712 |
|
26713 |
-
ifr_id=document.getElementsByTagName("iframe")[
|
26714 |
ifr=getIFrameDocument(ifr_id);
|
26715 |
if(document.getElementById('form_maker_editor').style.display=="none")
|
26716 |
{
|
@@ -26876,7 +26876,7 @@ function add(key) {
|
|
26876 |
td_PAGEDOWN.appendChild(img_PAGEDOWN);
|
26877 |
|
26878 |
|
26879 |
-
ifr_id=document.getElementsByTagName("iframe")[
|
26880 |
ifr=getIFrameDocument(ifr_id)
|
26881 |
|
26882 |
if(document.getElementById('form_maker_editor').style.display=="none")
|
3 |
var need_enable=true;;
|
4 |
var a = new Array();
|
5 |
//var plugin_url = "";
|
6 |
+
var id_ifr_editor = -1;
|
7 |
var count_of_fields_form = 7;
|
8 |
if (ajaxurl.indexOf("://") != -1) {
|
9 |
var url_for_ajax = ajaxurl;
|
4078 |
document.getElementById('main_editor').style.left=iReturnLeft+195+"px";
|
4079 |
document.getElementById('main_editor').style.top=iReturnTop+70+"px";
|
4080 |
|
4081 |
+
if (document.getElementsByTagName("iframe")[id_ifr_editor] && document.getElementById('form_maker_editor').style.display == "none") {
|
4082 |
ifr_id = document.getElementsByTagName("iframe")[id_ifr_editor].id;
|
4083 |
ifr = getIFrameDocument(ifr_id);
|
4084 |
ifr.body.innerHTML = w_editor;
|
4114 |
document.getElementById('main_editor').style.left=iReturnLeft+195+"px";
|
4115 |
document.getElementById('main_editor').style.top=iReturnTop+70+"px";
|
4116 |
|
4117 |
+
if (document.getElementsByTagName("iframe")[id_ifr_editor] && document.getElementById('form_maker_editor').style.display=="none") {
|
4118 |
ifr_id=document.getElementsByTagName("iframe")[id_ifr_editor].id;
|
4119 |
ifr=getIFrameDocument(ifr_id);
|
4120 |
ifr.body.innerHTML=w_editor;
|
26300 |
|
26301 |
|
26302 |
|
26303 |
+
ifr_id=document.getElementsByTagName("iframe")[id_ifr_editor].id;
|
26304 |
ifr=getIFrameDocument(ifr_id);
|
26305 |
if(document.getElementById('form_maker_editor').style.display=="none")
|
26306 |
wdform_field_in_editor.innerHTML=ifr.body.innerHTML;
|
26380 |
in_editor.setAttribute("class", 'wdform_section_break');
|
26381 |
|
26382 |
|
26383 |
+
ifr_id=document.getElementsByTagName("iframe")[id_ifr_editor].id;
|
26384 |
ifr=getIFrameDocument(ifr_id)
|
26385 |
|
26386 |
if(document.getElementById('form_maker_editor').style.display=="none")
|
26710 |
destroyChildren(wdform_field);
|
26711 |
|
26712 |
|
26713 |
+
ifr_id=document.getElementsByTagName("iframe")[id_ifr_editor].id;
|
26714 |
ifr=getIFrameDocument(ifr_id);
|
26715 |
if(document.getElementById('form_maker_editor').style.display=="none")
|
26716 |
{
|
26876 |
td_PAGEDOWN.appendChild(img_PAGEDOWN);
|
26877 |
|
26878 |
|
26879 |
+
ifr_id=document.getElementsByTagName("iframe")[id_ifr_editor].id;
|
26880 |
ifr=getIFrameDocument(ifr_id)
|
26881 |
|
26882 |
if(document.getElementById('form_maker_editor').style.display=="none")
|
js/formmaker_free.js
CHANGED
@@ -3,7 +3,7 @@ j = 2;
|
|
3 |
var c;
|
4 |
var need_enable = true;
|
5 |
var a = new Array();
|
6 |
-
var id_ifr_editor =
|
7 |
var count_of_fields_form = 7;
|
8 |
if (ajaxurl.indexOf("://") != -1) {
|
9 |
var url_for_ajax = ajaxurl;
|
@@ -3644,7 +3644,7 @@ function type_section_break(i, w_editor) {
|
|
3644 |
document.getElementById('main_editor').style.display="block";
|
3645 |
document.getElementById('main_editor').style.left=iReturnLeft + 195 + "px";
|
3646 |
document.getElementById('main_editor').style.top=iReturnTop + 70 + "px";
|
3647 |
-
if (document.getElementById('form_maker_editor').style.display == "none") {
|
3648 |
ifr_id = document.getElementsByTagName("iframe")[id_ifr_editor].id;
|
3649 |
ifr = getIFrameDocument(ifr_id);
|
3650 |
ifr.body.innerHTML = w_editor;
|
@@ -3683,7 +3683,7 @@ function type_editor(i, w_editor){
|
|
3683 |
|
3684 |
|
3685 |
|
3686 |
-
if (document.getElementById('form_maker_editor').style.display=="none") {
|
3687 |
ifr_id=document.getElementsByTagName("iframe")[id_ifr_editor].id;
|
3688 |
ifr=getIFrameDocument(ifr_id);
|
3689 |
ifr.body.innerHTML=w_editor;
|
@@ -25195,7 +25195,7 @@ function add(key) {
|
|
25195 |
in_editor.setAttribute('class', 'toolbar_padding');
|
25196 |
|
25197 |
|
25198 |
-
if(document.getElementById('form_maker_editor').style.display=="none")
|
25199 |
{
|
25200 |
ifr_id=document.getElementsByTagName("iframe")[id_ifr_editor].id;
|
25201 |
ifr=getIFrameDocument(ifr_id);
|
@@ -25350,7 +25350,7 @@ function add(key) {
|
|
25350 |
|
25351 |
|
25352 |
|
25353 |
-
if(document.getElementById('form_maker_editor').style.display=="none")
|
25354 |
{
|
25355 |
ifr_id=document.getElementsByTagName("iframe")[id_ifr_editor].id;
|
25356 |
ifr=getIFrameDocument(ifr_id)
|
@@ -25858,7 +25858,7 @@ function add(key) {
|
|
25858 |
in_editor.setAttribute('class', 'toolbar_padding');
|
25859 |
|
25860 |
|
25861 |
-
if(document.getElementById('form_maker_editor').style.display=="none")
|
25862 |
{
|
25863 |
ifr_id=document.getElementsByTagName("iframe")[id_ifr_editor].id;
|
25864 |
ifr=getIFrameDocument(ifr_id);
|
@@ -26056,7 +26056,7 @@ function add(key) {
|
|
26056 |
|
26057 |
|
26058 |
|
26059 |
-
if(document.getElementById('form_maker_editor').style.display=="none")
|
26060 |
{
|
26061 |
ifr_id=document.getElementsByTagName("iframe")[id_ifr_editor].id;
|
26062 |
ifr=getIFrameDocument(ifr_id)
|
3 |
var c;
|
4 |
var need_enable = true;
|
5 |
var a = new Array();
|
6 |
+
var id_ifr_editor = -1;
|
7 |
var count_of_fields_form = 7;
|
8 |
if (ajaxurl.indexOf("://") != -1) {
|
9 |
var url_for_ajax = ajaxurl;
|
3644 |
document.getElementById('main_editor').style.display="block";
|
3645 |
document.getElementById('main_editor').style.left=iReturnLeft + 195 + "px";
|
3646 |
document.getElementById('main_editor').style.top=iReturnTop + 70 + "px";
|
3647 |
+
if (document.getElementsByTagName("iframe")[id_ifr_editor] && document.getElementById('form_maker_editor').style.display == "none") {
|
3648 |
ifr_id = document.getElementsByTagName("iframe")[id_ifr_editor].id;
|
3649 |
ifr = getIFrameDocument(ifr_id);
|
3650 |
ifr.body.innerHTML = w_editor;
|
3683 |
|
3684 |
|
3685 |
|
3686 |
+
if (document.getElementsByTagName("iframe")[id_ifr_editor] && document.getElementById('form_maker_editor').style.display=="none") {
|
3687 |
ifr_id=document.getElementsByTagName("iframe")[id_ifr_editor].id;
|
3688 |
ifr=getIFrameDocument(ifr_id);
|
3689 |
ifr.body.innerHTML=w_editor;
|
25195 |
in_editor.setAttribute('class', 'toolbar_padding');
|
25196 |
|
25197 |
|
25198 |
+
if(document.getElementsByTagName("iframe")[id_ifr_editor] && document.getElementById('form_maker_editor').style.display=="none")
|
25199 |
{
|
25200 |
ifr_id=document.getElementsByTagName("iframe")[id_ifr_editor].id;
|
25201 |
ifr=getIFrameDocument(ifr_id);
|
25350 |
|
25351 |
|
25352 |
|
25353 |
+
if(document.getElementsByTagName("iframe")[id_ifr_editor] && document.getElementById('form_maker_editor').style.display=="none")
|
25354 |
{
|
25355 |
ifr_id=document.getElementsByTagName("iframe")[id_ifr_editor].id;
|
25356 |
ifr=getIFrameDocument(ifr_id)
|
25858 |
in_editor.setAttribute('class', 'toolbar_padding');
|
25859 |
|
25860 |
|
25861 |
+
if(document.getElementsByTagName("iframe")[id_ifr_editor] && document.getElementById('form_maker_editor').style.display=="none")
|
25862 |
{
|
25863 |
ifr_id=document.getElementsByTagName("iframe")[id_ifr_editor].id;
|
25864 |
ifr=getIFrameDocument(ifr_id);
|
26056 |
|
26057 |
|
26058 |
|
26059 |
+
if(document.getElementsByTagName("iframe")[id_ifr_editor] && document.getElementById('form_maker_editor').style.display=="none")
|
26060 |
{
|
26061 |
ifr_id=document.getElementsByTagName("iframe")[id_ifr_editor].id;
|
26062 |
ifr=getIFrameDocument(ifr_id)
|
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-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.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|