Version Description
security issue fixed
Download this release
Release Info
| Developer | webdorado |
| Plugin | |
| Version | 1.7.44 |
| Comparing to | |
| See all releases | |
Code changes from version 1.7.43 to 1.7.44
- admin/models/FMModelManage_fm.php +6 -5
- form-maker.php +2 -2
- frontend/views/FMViewForm_maker.php +134 -136
- js/formmaker_div_free.js +244 -279
- readme.txt +4 -1
admin/models/FMModelManage_fm.php
CHANGED
|
@@ -1941,8 +1941,8 @@ ngdom</option><option value="United States">United States</option><option value=
|
|
| 1941 |
|
| 1942 |
break;
|
| 1943 |
}
|
| 1944 |
-
|
| 1945 |
-
$params_names=array('w_field_label_size','w_field_label_pos', 'w_field_input_type', 'w_rows', 'w_columns', 'w_required','w_class');
|
| 1946 |
$temp = $params;
|
| 1947 |
foreach ($params_names as $params_name) {
|
| 1948 |
$temp = explode('*:*'.$params_name.'*:*',$temp);
|
|
@@ -1958,6 +1958,7 @@ ngdom</option><option value="United States">United States</option><option value=
|
|
| 1958 |
}
|
| 1959 |
$param['w_field_label_pos'] = ($param['w_field_label_pos']=="left" ? "table-cell" : "block");
|
| 1960 |
$required_sym = ($param['w_required']=="yes" ? " *" : "");
|
|
|
|
| 1961 |
$w_rows = explode('***',$param['w_rows']);
|
| 1962 |
$w_columns = explode('***',$param['w_columns']);
|
| 1963 |
$column_labels = '';
|
|
@@ -1980,7 +1981,7 @@ ngdom</option><option value="United States">United States</option><option value=
|
|
| 1980 |
$rows_columns .= '<div id="'.$id.'_element_td'.$i.'_'.$k.'" style="text-align: center; display: table-cell; padding: 5px 0 0 5px;"><input id="'.$id.'_input_elementform_id_temp'.$i.'_'.$k.'" align="center" size="14" type="checkbox" name="'.$id.'_input_elementform_id_temp'.$i.'_'.$k.'" value="1" disabled/></div>';
|
| 1981 |
else
|
| 1982 |
if($param['w_field_input_type']=='text')
|
| 1983 |
-
$rows_columns .= '<div id="'.$id.'_element_td'.$i.'_'.$k.'" style="text-align: center; display: table-cell; padding: 5px 0 0 5px;"><input id="'.$id.'_input_elementform_id_temp'.$i.'_'.$k.'" align="center"
|
| 1984 |
else
|
| 1985 |
if($param['w_field_input_type']=='select')
|
| 1986 |
$rows_columns .= '<div id="'.$id.'_element_td'.$i.'_'.$k.'" style="text-align: center; display: table-cell; padding: 5px 0 0 5px;"><select id="'.$id.'_select_yes_noform_id_temp'.$i.'_'.$k.'" name="'.$id.'_select_yes_noform_id_temp'.$i.'_'.$k.'" disabled><option value=""> </option><option value="yes">Yes</option><option value="no">No</option></select></div>';
|
|
@@ -1992,11 +1993,11 @@ ngdom</option><option value="United States">United States</option><option value=
|
|
| 1992 |
|
| 1993 |
|
| 1994 |
|
| 1995 |
-
$rep ='<div id="wdform_field'.$id.'" type="type_matrix" class="wdform_field" style="display: table-cell;">'.$arrows.'<div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].'; width: '.$param['w_field_label_size'].'px;"><span id="'.$id.'_element_labelform_id_temp" class="label">'.$label.'</span><span id="'.$id.'_required_elementform_id_temp" class="required">'.$required_sym.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].';"><input type="hidden" value="type_matrix" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><input type="hidden" value="'.$param['w_required'].'" name="'.$id.'_requiredform_id_temp" id="'.$id.'_requiredform_id_temp"><input type="hidden" value="'.$param['w_field_input_type'].'" name="'.$id.'_input_typeform_id_temp" id="'.$id.'_input_typeform_id_temp"><div id="'.$id.'_elementform_id_temp" style="display: table;" '.$param['attributes'].'><div id="'.$id.'_table_little" style="display: table-row-group;"><div id="'.$id.'_element_tr0" style="display: table-row;"><div id="'.$id.'_element_td0_0" style="display: table-cell;"></div>'.$column_labels.'</div>'.$rows_columns.'</div></div></div></div>';
|
| 1996 |
|
| 1997 |
break;
|
| 1998 |
}
|
| 1999 |
-
|
| 2000 |
$params_names=array('w_submit_title','w_reset_title','w_class','w_act');
|
| 2001 |
$temp=$params;
|
| 2002 |
foreach ($params_names as $params_name) {
|
| 1941 |
|
| 1942 |
break;
|
| 1943 |
}
|
| 1944 |
+
case 'type_matrix': {
|
| 1945 |
+
$params_names=array('w_field_label_size','w_field_label_pos', 'w_field_input_type', 'w_rows', 'w_columns', 'w_required','w_class','w_textbox_size');
|
| 1946 |
$temp = $params;
|
| 1947 |
foreach ($params_names as $params_name) {
|
| 1948 |
$temp = explode('*:*'.$params_name.'*:*',$temp);
|
| 1958 |
}
|
| 1959 |
$param['w_field_label_pos'] = ($param['w_field_label_pos']=="left" ? "table-cell" : "block");
|
| 1960 |
$required_sym = ($param['w_required']=="yes" ? " *" : "");
|
| 1961 |
+
$param['w_textbox_size'] = isset($param['w_textbox_size']) ? $param['w_textbox_size'] : '100';
|
| 1962 |
$w_rows = explode('***',$param['w_rows']);
|
| 1963 |
$w_columns = explode('***',$param['w_columns']);
|
| 1964 |
$column_labels = '';
|
| 1981 |
$rows_columns .= '<div id="'.$id.'_element_td'.$i.'_'.$k.'" style="text-align: center; display: table-cell; padding: 5px 0 0 5px;"><input id="'.$id.'_input_elementform_id_temp'.$i.'_'.$k.'" align="center" size="14" type="checkbox" name="'.$id.'_input_elementform_id_temp'.$i.'_'.$k.'" value="1" disabled/></div>';
|
| 1982 |
else
|
| 1983 |
if($param['w_field_input_type']=='text')
|
| 1984 |
+
$rows_columns .= '<div id="'.$id.'_element_td'.$i.'_'.$k.'" style="text-align: center; display: table-cell; padding: 5px 0 0 5px;"><input id="'.$id.'_input_elementform_id_temp'.$i.'_'.$k.'" align="center" type="text" name="'.$id.'_input_elementform_id_temp'.$i.'_'.$k.'" value="" style="width:'.$param['w_textbox_size'].'px" disabled/></div>';
|
| 1985 |
else
|
| 1986 |
if($param['w_field_input_type']=='select')
|
| 1987 |
$rows_columns .= '<div id="'.$id.'_element_td'.$i.'_'.$k.'" style="text-align: center; display: table-cell; padding: 5px 0 0 5px;"><select id="'.$id.'_select_yes_noform_id_temp'.$i.'_'.$k.'" name="'.$id.'_select_yes_noform_id_temp'.$i.'_'.$k.'" disabled><option value=""> </option><option value="yes">Yes</option><option value="no">No</option></select></div>';
|
| 1993 |
|
| 1994 |
|
| 1995 |
|
| 1996 |
+
$rep ='<div id="wdform_field'.$id.'" type="type_matrix" class="wdform_field" style="display: table-cell;">'.$arrows.'<div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].'; width: '.$param['w_field_label_size'].'px;"><span id="'.$id.'_element_labelform_id_temp" class="label">'.$label.'</span><span id="'.$id.'_required_elementform_id_temp" class="required">'.$required_sym.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].';"><input type="hidden" value="type_matrix" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><input type="hidden" value="'.$param['w_required'].'" name="'.$id.'_requiredform_id_temp" id="'.$id.'_requiredform_id_temp"><input type="hidden" value="'.$param['w_field_input_type'].'" name="'.$id.'_input_typeform_id_temp" id="'.$id.'_input_typeform_id_temp"><input type="hidden" value="'.$param['w_textbox_size'].'" name="'.$id.'_textbox_sizeform_id_temp" id="'.$id.'_textbox_sizeform_id_temp"><div id="'.$id.'_elementform_id_temp" style="display: table;" '.$param['attributes'].'><div id="'.$id.'_table_little" style="display: table-row-group;"><div id="'.$id.'_element_tr0" style="display: table-row;"><div id="'.$id.'_element_td0_0" style="display: table-cell;"></div>'.$column_labels.'</div>'.$rows_columns.'</div></div></div></div>';
|
| 1997 |
|
| 1998 |
break;
|
| 1999 |
}
|
| 2000 |
+
case 'type_submit_reset': {
|
| 2001 |
$params_names=array('w_submit_title','w_reset_title','w_class','w_act');
|
| 2002 |
$temp=$params;
|
| 2003 |
foreach ($params_names as $params_name) {
|
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: WebDorado
|
| 8 |
* Author URI: http://web-dorado.com/
|
| 9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
|
@@ -216,7 +216,7 @@ if (class_exists('WP_Widget')) {
|
|
| 216 |
// Activate plugin.
|
| 217 |
function form_maker_activate() {
|
| 218 |
$version = get_option("wd_form_maker_version");
|
| 219 |
-
$new_version = '1.7.
|
| 220 |
if (!$version) {
|
| 221 |
add_option("wd_form_maker_version", $new_version, '', 'no');
|
| 222 |
global $wpdb;
|
| 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.44
|
| 7 |
* Author: WebDorado
|
| 8 |
* Author URI: http://web-dorado.com/
|
| 9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
| 216 |
// Activate plugin.
|
| 217 |
function form_maker_activate() {
|
| 218 |
$version = get_option("wd_form_maker_version");
|
| 219 |
+
$new_version = '1.7.44';
|
| 220 |
if (!$version) {
|
| 221 |
add_option("wd_form_maker_version", $new_version, '', 'no');
|
| 222 |
global $wpdb;
|
frontend/views/FMViewForm_maker.php
CHANGED
|
@@ -23,9 +23,7 @@ class FMViewForm_maker {
|
|
| 23 |
// Public Methods //
|
| 24 |
////////////////////////////////////////////////////////////////////////////////////////
|
| 25 |
public function display($id) {
|
| 26 |
-
|
| 27 |
$current_url=htmlentities($_SERVER['REQUEST_URI']);
|
| 28 |
-
|
| 29 |
$form_maker_front_end = "";
|
| 30 |
$result = $this->model->showform($id);
|
| 31 |
if (!$result) {
|
|
@@ -1004,9 +1002,9 @@ class FMViewForm_maker {
|
|
| 1004 |
}
|
| 1005 |
}
|
| 1006 |
$input_active = ($param['w_first_val']=='true' ? "checked='checked'" : "");
|
| 1007 |
-
$post_value = isset($_POST["counter".$form_id]) ? $_POST["counter".$form_id] : NULL;
|
| 1008 |
if(isset($post_value)) {
|
| 1009 |
-
$post_temp = isset($_POST['wdform_'.$id1.'_element'.$form_id]) ? $_POST['wdform_'.$id1.'_element'.$form_id] : "";
|
| 1010 |
$input_active = (isset($post_temp) ? "checked='checked'" : "");
|
| 1011 |
}
|
| 1012 |
$param['w_field_label_pos1'] = ($param['w_field_label_pos']=="left" ? "float: left;" : "");
|
|
@@ -1044,7 +1042,7 @@ class FMViewForm_maker {
|
|
| 1044 |
}
|
| 1045 |
break;
|
| 1046 |
}
|
| 1047 |
-
|
| 1048 |
$params_names=array('w_field_label_size','w_field_label_pos','w_size','w_first_val','w_title','w_required','w_unique');
|
| 1049 |
$temp=$params;
|
| 1050 |
if(strpos($temp, 'w_regExp_status') > -1)
|
|
@@ -1061,7 +1059,7 @@ class FMViewForm_maker {
|
|
| 1061 |
$param['attributes'] = $param['attributes'].' '.$attr;
|
| 1062 |
}
|
| 1063 |
|
| 1064 |
-
$param['w_first_val'] = (isset($_POST['wdform_'.$id1.'_element'.$form_id]) ? $_POST['wdform_'.$id1.'_element'.$form_id] : $param['w_first_val']);
|
| 1065 |
|
| 1066 |
$wdformfieldsize = ($param['w_field_label_pos']=="left" ? $param['w_field_label_size']+$param['w_size'] + 10 : max($param['w_field_label_size'],$param['w_size']));
|
| 1067 |
$param['w_field_label_pos1'] = ($param['w_field_label_pos']=="left" ? "float: left;" : "");
|
|
@@ -1116,7 +1114,7 @@ class FMViewForm_maker {
|
|
| 1116 |
}';
|
| 1117 |
}
|
| 1118 |
|
| 1119 |
-
break;
|
| 1120 |
}
|
| 1121 |
|
| 1122 |
case 'type_number': {
|
|
@@ -1135,7 +1133,7 @@ class FMViewForm_maker {
|
|
| 1135 |
}
|
| 1136 |
}
|
| 1137 |
|
| 1138 |
-
$param['w_first_val']=(isset($_POST['wdform_'.$id1.'_element'.$form_id]) ? $_POST['wdform_'.$id1.'_element'.$form_id] : $param['w_first_val']);
|
| 1139 |
|
| 1140 |
$wdformfieldsize = ($param['w_field_label_pos']=="left" ? $param['w_field_label_size']+$param['w_size'] + 10 : max($param['w_field_label_size'],$param['w_size']));
|
| 1141 |
$param['w_field_label_pos1'] = ($param['w_field_label_pos']=="left" ? "float: left;" : "");
|
|
@@ -1231,7 +1229,7 @@ class FMViewForm_maker {
|
|
| 1231 |
$param['attributes'] = $param['attributes'].' '.$attr;
|
| 1232 |
}
|
| 1233 |
|
| 1234 |
-
$param['w_first_val']=(isset($_POST['wdform_'.$id1.'_element'.$form_id]) ? $_POST['wdform_'.$id1.'_element'.$form_id] : $param['w_first_val']);
|
| 1235 |
|
| 1236 |
$wdformfieldsize = ($param['w_field_label_pos']=="left" ? $param['w_field_label_size']+$param['w_size_w'] + 10 : max($param['w_field_label_size'],$param['w_size_w']));
|
| 1237 |
$param['w_field_label_pos1'] = ($param['w_field_label_pos']=="left" ? "float: left;" : "");
|
|
@@ -1338,7 +1336,7 @@ class FMViewForm_maker {
|
|
| 1338 |
$w_first_val = explode('***',$param['w_first_val']);
|
| 1339 |
$w_title = explode('***',$param['w_title']);
|
| 1340 |
|
| 1341 |
-
$param['w_first_val']=(isset($_POST['wdform_'.$id1.'_element_first'.$form_id]) ? $_POST['wdform_'.$id1.'_element_first'.$form_id] : $w_first_val[0]).'***'.(isset($_POST['wdform_'.$id1.'_element_last'.$form_id]) ? $_POST['wdform_'.$id1.'_element_last'.$form_id] : $w_first_val[1]);
|
| 1342 |
|
| 1343 |
$wdformfieldsize = ($param['w_field_label_pos']=="left" ? ($param['w_field_label_size']+$param['w_size']+65) : max($param['w_field_label_size'],($param['w_size']+65)));
|
| 1344 |
$param['w_field_label_pos1'] = ($param['w_field_label_pos']=="left" ? "float: left;" : "");
|
|
@@ -1411,14 +1409,14 @@ class FMViewForm_maker {
|
|
| 1411 |
$w_title = explode('***',$param['w_title']);
|
| 1412 |
$w_mini_labels = explode('***',$param['w_mini_labels']);
|
| 1413 |
|
| 1414 |
-
$element_title = isset($_POST['wdform_'.$id1.'_element_title'.$form_id]) ? $_POST['wdform_'.$id1.'_element_title'.$form_id] : NULL;
|
| 1415 |
-
$element_first = isset($_POST['wdform_'.$id1.'_element_first'.$form_id]) ? $_POST['wdform_'.$id1.'_element_first'.$form_id] : NULL;
|
| 1416 |
if(isset($element_title)) {
|
| 1417 |
-
$param['w_first_val']=(isset($_POST['wdform_'.$id1.'_element_title'.$form_id]) ? $_POST['wdform_'.$id1.'_element_title'.$form_id] : $w_first_val[0]).'***'.(isset($_POST['wdform_'.$id1.'_element_first'.$form_id]) ? $_POST['wdform_'.$id1.'_element_first'.$form_id] : $w_first_val[1]).'***'.(isset($_POST['wdform_'.$id1.'_element_last'.$form_id]) ? $_POST['wdform_'.$id1.'_element_last'.$form_id] : $w_first_val[2]).'***'.(isset($_POST['wdform_'.$id1.'_element_middle'.$form_id]) ? $_POST['wdform_'.$id1.'_element_middle'.$form_id] : $w_first_val[3]);
|
| 1418 |
}
|
| 1419 |
else {
|
| 1420 |
if(isset($element_first)) {
|
| 1421 |
-
$param['w_first_val']=(isset($_POST['wdform_'.$id1.'_element_first'.$form_id]) ? $_POST['wdform_'.$id1.'_element_first'.$form_id] : $w_first_val[0]).'***'.(isset($_POST['wdform_'.$id1.'_element_last'.$form_id]) ? $_POST['wdform_'.$id1.'_element_last'.$form_id] : $w_first_val[1]);
|
| 1422 |
}
|
| 1423 |
}
|
| 1424 |
$input_active = ($param['w_first_val']==$param['w_title'] ? "input_deactive" : "input_active");
|
|
@@ -1540,21 +1538,21 @@ class FMViewForm_maker {
|
|
| 1540 |
$g = 0;
|
| 1541 |
if (isset($w_disabled_fields[0]) && $w_disabled_fields[0] == 'no') {
|
| 1542 |
$g+=2;
|
| 1543 |
-
$address_fields .= '<span style="float: left; width: 100%; padding-bottom: 8px; display: block;"><input type="text" id="wdform_'.$id1.'_street1'.$form_id.'" name="wdform_'.$id1.'_street1'.$form_id.'" value="'.(isset($_POST['wdform_'.$id1.'_street1'.$form_id]) ? $_POST['wdform_'.$id1.'_street1'.$form_id] : "").'" style="width: 100%;" '.$param['attributes'].'><label class="mini_label" >'.$w_mini_labels[0].'</label></span>';
|
| 1544 |
}
|
| 1545 |
if (isset($w_disabled_fields[1]) && $w_disabled_fields[1]=='no') {
|
| 1546 |
$g+=2;
|
| 1547 |
-
$address_fields .= '<span style="float: left; width: 100%; padding-bottom: 8px; display: block;"><input type="text" id="wdform_'.$id1.'_street2'.$form_id.'" name="wdform_'.($id1+1).'_street2'.$form_id.'" value="'.(isset($_POST['wdform_'.($id1+1).'_street2'.$form_id]) ? $_POST['wdform_'.($id1+1).'_street2'.$form_id] : "").'" style="width: 100%;" '.$param['attributes'].'><label class="mini_label" >'.$w_mini_labels[1].'</label></span>';
|
| 1548 |
}
|
| 1549 |
if (isset($w_disabled_fields[2]) && $w_disabled_fields[2]=='no') {
|
| 1550 |
$g++;
|
| 1551 |
-
$address_fields .= '<span style="float: left; width: 48%; padding-bottom: 8px;"><input type="text" id="wdform_'.$id1.'_city'.$form_id.'" name="wdform_'.($id1+2).'_city'.$form_id.'" value="'.(isset($_POST['wdform_'.($id1+2).'_city'.$form_id]) ? $_POST['wdform_'.($id1+2).'_city'.$form_id] : "").'" style="width: 100%;" '.$param['attributes'].'><label class="mini_label" >'.$w_mini_labels[2].'</label></span>';
|
| 1552 |
}
|
| 1553 |
if (isset($w_disabled_fields[3]) && $w_disabled_fields[3]=='no') {
|
| 1554 |
$g++;
|
| 1555 |
$w_states = array("","Alabama","Alaska", "Arizona","Arkansas","California","Colorado","Connecticut","Delaware","District Of Columbia","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Carolina","North Dakota","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming");
|
| 1556 |
$w_state_options = '';
|
| 1557 |
-
$post_state = isset($_POST['wdform_'.($id1+3).'_state'.$form_id]) ? $_POST['wdform_'.($id1+3).'_state'.$form_id] : "";
|
| 1558 |
foreach($w_states as $w_state) {
|
| 1559 |
if($w_state == $post_state) {
|
| 1560 |
$selected = 'selected="selected"';
|
|
@@ -1568,16 +1566,16 @@ class FMViewForm_maker {
|
|
| 1568 |
$address_fields .= '<span style="float: '.(($g%2==0) ? 'right' : 'left').'; width: 48%; padding-bottom: 8px;"><select type="text" id="wdform_'.$id1.'_state'.$form_id.'" name="wdform_'.($id1+3).'_state'.$form_id.'" style="width: 100%;" '.$param['attributes'].'>'.$w_state_options.'</select><label class="mini_label" style="display: block;" id="'.$id1.'_mini_label_state">'.$w_mini_labels[3].'</label></span>';
|
| 1569 |
}
|
| 1570 |
else {
|
| 1571 |
-
$address_fields .= '<span style="float: '.(($g%2==0) ? 'right' : 'left').'; width: 48%; padding-bottom: 8px;"><input type="text" id="wdform_'.$id1.'_state'.$form_id.'" name="wdform_'.($id1+3).'_state'.$form_id.'" value="'.(isset($_POST['wdform_'.($id1+3).'_state'.$form_id]) ? $_POST['wdform_'.($id1+3).'_state'.$form_id] : "").'" style="width: 100%;" '.$param['attributes'].'><label class="mini_label">'.$w_mini_labels[3].'</label></span>';
|
| 1572 |
}
|
| 1573 |
}
|
| 1574 |
if (isset($w_disabled_fields[4]) && $w_disabled_fields[4]=='no') {
|
| 1575 |
$g++;
|
| 1576 |
-
$address_fields .= '<span style="float: '.(($g%2==0) ? 'right' : 'left').'; width: 48%; padding-bottom: 8px;"><input type="text" id="wdform_'.$id1.'_postal'.$form_id.'" name="wdform_'.($id1+4).'_postal'.$form_id.'" value="'.(isset($_POST['wdform_'.($id1+4).'_postal'.$form_id]) ? $_POST['wdform_'.($id1+4).'_postal'.$form_id] : "").'" style="width: 100%;" '.$param['attributes'].'><label class="mini_label">'.$w_mini_labels[4].'</label></span>';
|
| 1577 |
}
|
| 1578 |
$w_countries = array("","Afghanistan","Albania","Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cambodia","Cameroon","Canada","Cape Verde","Central African Republic","Chad","Chile","China","Colombia","Comoros","Congo (Brazzaville)","Congo","Costa Rica","Cote d'Ivoire","Croatia","Cuba","Cyprus","Czech Republic","Denmark","Djibouti","Dominica","Dominican Republic","East Timor (Timor Timur)","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Ethiopia","Fiji","Finland","France","Gabon","Gambia, The","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Korea, North","Korea, South","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Macedonia","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","Norway","Oman","Pakistan","Palau","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia and Montenegro","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","Spain","Sri Lanka","Sudan","Suriname","Swaziland","Sweden","Switzerland","Syria","Taiwan","Tajikistan","Tanzania","Thailand","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States","Uruguay","Uzbekistan","Vanuatu","Vatican City","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe");
|
| 1579 |
$w_options = '';
|
| 1580 |
-
$post_country = isset($_POST['wdform_'.($id1+5).'_country'.$form_id]) ? $_POST['wdform_'.($id1+5).'_country'.$form_id] : "";
|
| 1581 |
foreach($w_countries as $w_country) {
|
| 1582 |
if($w_country == $post_country) {
|
| 1583 |
$selected = 'selected="selected"';
|
|
@@ -1610,9 +1608,9 @@ class FMViewForm_maker {
|
|
| 1610 |
}
|
| 1611 |
';
|
| 1612 |
}
|
| 1613 |
-
$post = isset($_POST['wdform_'.($id1+5).'_country'.$form_id]) ? $_POST['wdform_'.($id1+5).'_country'.$form_id] : NULL;
|
| 1614 |
if(isset($post)) {
|
| 1615 |
-
$onload_js .=' jQuery("#wdform_'.$id1.'_country'.$form_id.'").val("'.(isset($_POST['wdform_'.($id1+5)."_country".$form_id]) ? $_POST['wdform_'.($id1+5)."_country".$form_id] : '').'");';
|
| 1616 |
}
|
| 1617 |
if (isset($w_disabled_fields[6]) && $w_disabled_fields[6]=='yes') {
|
| 1618 |
$onload_js .=' jQuery("#wdform_'.$id1.'_country'.$form_id.'").change(function() {
|
|
@@ -1626,7 +1624,7 @@ class FMViewForm_maker {
|
|
| 1626 |
if(jQuery("#wdform_'.$id1.'_state'.$form_id.'").attr("tagName")=="SELECT")
|
| 1627 |
{
|
| 1628 |
|
| 1629 |
-
jQuery("#wdform_'.$id1.'_state'.$form_id.'").parent().append("<input type=\"text\" id=\"wdform_'.$id1.'_state'.$form_id.'\" name=\"wdform_'.($id1+3).'_state'.$form_id.'\" value=\"'.(isset($_POST['wdform_'.($id1+3).'_state'.$form_id]) ? $_POST['wdform_'.($id1+3).'_state'.$form_id] : "").'\" style=\"width: 100%;\" '.$param['attributes'].'><label class=\"mini_label\">'.$w_mini_labels[3].'</label>");
|
| 1630 |
jQuery("#wdform_'.$id1.'_state'.$form_id.'").parent().children("select:first, label:first").remove();
|
| 1631 |
}
|
| 1632 |
}
|
|
@@ -1652,7 +1650,7 @@ class FMViewForm_maker {
|
|
| 1652 |
}
|
| 1653 |
}
|
| 1654 |
|
| 1655 |
-
$param['w_first_val']=(isset($_POST['wdform_'.$id1.'_element'.$form_id]) ? $_POST['wdform_'.$id1.'_element'.$form_id] : $param['w_first_val']);
|
| 1656 |
|
| 1657 |
$wdformfieldsize = ($param['w_field_label_pos']=="left" ? ($param['w_field_label_size']+$param['w_size']) : max($param['w_field_label_size'], $param['w_size']));
|
| 1658 |
$param['w_field_label_pos1'] = ($param['w_field_label_pos']=="left" ? "float: left;" : "");
|
|
@@ -1742,13 +1740,13 @@ class FMViewForm_maker {
|
|
| 1742 |
$param['w_choices_value'] = explode('***',$param['w_choices_value']);
|
| 1743 |
$param['w_choices_params'] = explode('***',$param['w_choices_params']);
|
| 1744 |
}
|
| 1745 |
-
$post_value = isset($_POST["counter".$form_id]) ? $_POST["counter".$form_id] : NULL;
|
| 1746 |
$is_other=false;
|
| 1747 |
|
| 1748 |
if (isset($post_value)) {
|
| 1749 |
if($param['w_allow_other']=="yes") {
|
| 1750 |
$is_other = FALSE;
|
| 1751 |
-
$other_element = isset($_POST['wdform_'.$id1."_other_input".$form_id]) ? $_POST['wdform_'.$id1."_other_input".$form_id] : NULL;
|
| 1752 |
if (isset($other_element)) {
|
| 1753 |
$is_other = TRUE;
|
| 1754 |
}
|
|
@@ -1834,7 +1832,7 @@ class FMViewForm_maker {
|
|
| 1834 |
$param['w_choices_checked'][$key]=($param['w_choices_checked'][$key]=='true' ? 'checked="checked"' : '');
|
| 1835 |
}
|
| 1836 |
else {
|
| 1837 |
-
$post_valuetemp = isset($_POST['wdform_'.$id1."_element".$form_id.$key]) ? $_POST['wdform_'.$id1."_element".$form_id.$key] : NULL;
|
| 1838 |
$param['w_choices_checked'][$key]=(isset($post_valuetemp) ? 'checked="checked"' : '');
|
| 1839 |
}
|
| 1840 |
$choice_value = isset($param['w_choices_value']) ? $param['w_choices_value'][$key] : $choice;
|
|
@@ -1864,7 +1862,7 @@ class FMViewForm_maker {
|
|
| 1864 |
';
|
| 1865 |
}
|
| 1866 |
if($is_other) {
|
| 1867 |
-
$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] : '').'");';
|
| 1868 |
}
|
| 1869 |
if($param['w_randomize']=='yes')
|
| 1870 |
{
|
|
@@ -1915,13 +1913,13 @@ class FMViewForm_maker {
|
|
| 1915 |
$param['w_choices_value'] = explode('***',$param['w_choices_value']);
|
| 1916 |
$param['w_choices_params'] = explode('***',$param['w_choices_params']);
|
| 1917 |
}
|
| 1918 |
-
$post_value = isset($_POST["counter".$form_id]) ? $_POST["counter".$form_id] : NULL;
|
| 1919 |
$is_other=false;
|
| 1920 |
|
| 1921 |
if(isset($post_value)) {
|
| 1922 |
if($param['w_allow_other']=="yes") {
|
| 1923 |
$is_other=false;
|
| 1924 |
-
$other_element = isset($_POST['wdform_'.$id1."_other_input".$form_id]) ? $_POST['wdform_'.$id1."_other_input".$form_id] : "";
|
| 1925 |
if(isset($other_element)) {
|
| 1926 |
$is_other=true;
|
| 1927 |
}
|
|
@@ -2006,7 +2004,7 @@ class FMViewForm_maker {
|
|
| 2006 |
$param['w_choices_checked'][$key]=($param['w_choices_checked'][$key]=='true' ? 'checked="checked"' : '');
|
| 2007 |
}
|
| 2008 |
else {
|
| 2009 |
-
$param['w_choices_checked'][$key] = (htmlspecialchars($choice) == htmlspecialchars(isset($_POST['wdform_'.$id1."_element".$form_id]) ? $_POST['wdform_'.$id1."_element".$form_id] : "") ? 'checked="checked"' : '');
|
| 2010 |
}
|
| 2011 |
$choice_value = isset($param['w_choices_value']) ? $param['w_choices_value'][$key] : $choice;
|
| 2012 |
$rep.='<div style="display: '.($param['w_flow']!='hor' ? 'table-cell' : 'table-row' ).';"><label class="wdform-ch-rad-label" for="wdform_'.$id1.'_element'.$form_id.''.$key1.'" '.$param['w_field_option_pos1'].'>'.$choice.'</label><div class="radio-div forlabs" '.$param['w_field_option_pos2'].'><input type="radio" '.(($param['w_allow_other']=="yes" && $param['w_allow_other_num']==$key) ? 'other="1"' : '' ).' id="wdform_'.$id1.'_element'.$form_id.''.$key1.'" name="wdform_'.$id1.'_element'.$form_id.'" value="'.htmlspecialchars($choice_value).'" onclick="set_default("wdform_'.$id1.'","'.$key1.'","'.$form_id.'"); '.(($param['w_allow_other']=="yes" && $param['w_allow_other_num']==$key) ? 'show_other_input("wdform_'.$id1.'","'.$form_id.'");' : '').'" '.$param['w_choices_checked'][$key].' '.$param['attributes'].'><label for="wdform_'.$id1.'_element'.$form_id.''.$key1.'"></label></div></div>';
|
|
@@ -2030,7 +2028,7 @@ class FMViewForm_maker {
|
|
| 2030 |
}';
|
| 2031 |
}
|
| 2032 |
if($is_other) {
|
| 2033 |
-
$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] : '').'");';
|
| 2034 |
}
|
| 2035 |
if($param['w_randomize']=='yes')
|
| 2036 |
{
|
|
@@ -2080,7 +2078,7 @@ class FMViewForm_maker {
|
|
| 2080 |
if(!isset($param['w_value_disabled']))
|
| 2081 |
$param['w_value_disabled'] = 'no';
|
| 2082 |
|
| 2083 |
-
$post_value = isset($_POST["counter".$form_id]) ? $_POST["counter".$form_id] : NULL;
|
| 2084 |
|
| 2085 |
$rep='<div type="type_own_select" class="wdform-field" style="width:'.$wdformfieldsize.'px"><div class="wdform-label-section" style="'.$param['w_field_label_pos1'].'; width: '.$param['w_field_label_size'].'px;"><span class="wdform-label">'.$label.'</span>';
|
| 2086 |
if($required) {
|
|
@@ -2190,7 +2188,7 @@ class FMViewForm_maker {
|
|
| 2190 |
$required = ($param['w_required']=="yes" ? true : false);
|
| 2191 |
$param['w_countries'] = explode('***',$param['w_countries']);
|
| 2192 |
|
| 2193 |
-
$post_value = isset($_POST["counter".$form_id]) ? $_POST["counter".$form_id] : NULL;
|
| 2194 |
$selected='';
|
| 2195 |
|
| 2196 |
$rep='<div type="type_country" class="wdform-field" style="width:'.$wdformfieldsize.'px"><div class="wdform-label-section" style="'.$param['w_field_label_pos1'].'; width: '.$param['w_field_label_size'].'px;"><span class="wdform-label">'.$label.'</span>';
|
|
@@ -2200,7 +2198,7 @@ class FMViewForm_maker {
|
|
| 2200 |
$rep.='</div><div class="wdform-element-section '.$param['w_class'].'" style="'.$param['w_field_label_pos2'].' width: '.$param['w_size'].'px;"><select id="wdform_'.$id1.'_element'.$form_id.'" name="wdform_'.$id1.'_element'.$form_id.'" style="width: 100%;" '.$param['attributes'].'>';
|
| 2201 |
foreach($param['w_countries'] as $key => $choice) {
|
| 2202 |
if(isset($post_value)) {
|
| 2203 |
-
$selected = (htmlspecialchars($choice) == htmlspecialchars(isset($_POST['wdform_'.$id1."_element".$form_id]) ? $_POST['wdform_'.$id1."_element".$form_id] : "") ? 'selected="selected"' : '');
|
| 2204 |
}
|
| 2205 |
$choice_value=$choice;
|
| 2206 |
$rep.='<option value="'.$choice_value.'" '.$selected.'>'.$choice.'</option>';
|
|
@@ -2254,13 +2252,13 @@ class FMViewForm_maker {
|
|
| 2254 |
$w_sec_label='';
|
| 2255 |
|
| 2256 |
if($param['w_sec']=='1') {
|
| 2257 |
-
$w_sec = '<div align="center" style="display: table-cell;"><span class="wdform_colon" style="vertical-align: middle;"> : </span></div><div style="display: table-cell;"><input type="text" value="'.(isset($_POST['wdform_'.$id1."_ss".$form_id]) ? $_POST['wdform_'.$id1."_ss".$form_id] : $param['w_ss']).'" class="time_box" id="wdform_'.$id1.'_ss'.$form_id.'" name="wdform_'.$id1.'_ss'.$form_id.'" onkeypress="return check_second(event, "wdform_'.$id1.'_ss'.$form_id.'")" '.$param['attributes'].'></div>';
|
| 2258 |
|
| 2259 |
$w_sec_label='<div style="display: table-cell;"></div><div style="display: table-cell;"><label class="mini_label">'.$w_mini_labels[2].'</label></div>';
|
| 2260 |
}
|
| 2261 |
|
| 2262 |
if($param['w_time_type']=='12') {
|
| 2263 |
-
if((isset($_POST['wdform_'.$id1."_am_pm".$form_id]) ? $_POST['wdform_'.$id1."_am_pm".$form_id] : $param['w_am_pm'])=='am') {
|
| 2264 |
$am_ = "selected=\"selected\"";
|
| 2265 |
$pm_ = "";
|
| 2266 |
}
|
|
@@ -2281,7 +2279,7 @@ class FMViewForm_maker {
|
|
| 2281 |
if($required) {
|
| 2282 |
$rep.='<span class="wdform-required">'.$required_sym.'</span>';
|
| 2283 |
}
|
| 2284 |
-
$rep.='</div><div class="wdform-element-section '.$param['w_class'].'" style="'.$param['w_field_label_pos2'].';"><div style="display: table;"><div style="display: table-row;"><div style="display: table-cell;"><input type="text" value="'.(isset($_POST['wdform_'.$id1."_hh".$form_id]) ? $_POST['wdform_'.$id1."_hh".$form_id] : $param['w_hh']).'" class="time_box" id="wdform_'.$id1.'_hh'.$form_id.'" name="wdform_'.$id1.'_hh'.$form_id.'" onkeypress="return check_hour(event, "wdform_'.$id1.'_hh'.$form_id.'", "23")" '.$param['attributes'].'></div><div align="center" style="display: table-cell;"><span class="wdform_colon" style="vertical-align: middle;"> : </span></div><div style="display: table-cell;"><input type="text" value="'.(isset($_POST['wdform_'.$id1."_mm".$form_id]) ? $_POST['wdform_'.$id1."_mm".$form_id] : $param['w_mm']).'" class="time_box" id="wdform_'.$id1.'_mm'.$form_id.'" name="wdform_'.$id1.'_mm'.$form_id.'" onkeypress="return check_minute(event, "wdform_'.$id1.'_mm'.$form_id.'")" '.$param['attributes'].'></div>'.$w_sec.$w_time_type.'</div><div style="display: table-row;"><div style="display: table-cell;"><label class="mini_label">'.$w_mini_labels[0].'</label></div><div style="display: table-cell;"></div><div style="display: table-cell;"><label class="mini_label">'.$w_mini_labels[1].'</label></div>'.$w_sec_label.$w_time_type_label.'</div></div></div></div>';
|
| 2285 |
|
| 2286 |
if($required) {
|
| 2287 |
$check_js.='
|
|
@@ -2322,7 +2320,7 @@ class FMViewForm_maker {
|
|
| 2322 |
$param['w_field_label_pos2'] = ($param['w_field_label_pos']=="left" ? "" : "display:block;");
|
| 2323 |
$required = ($param['w_required']=="yes" ? true : false);
|
| 2324 |
|
| 2325 |
-
$param['w_date']=(isset($_POST['wdform_'.$id1."_element".$form_id]) ? $_POST['wdform_'.$id1."_element".$form_id] : $param['w_date']);
|
| 2326 |
|
| 2327 |
$rep ='<div type="type_date" class="wdform-field"><div class="wdform-label-section" style="'.$param['w_field_label_pos1'].'; width: '.$param['w_field_label_size'].'px;"><span class="wdform-label">'.$label.'</span>';
|
| 2328 |
if($required) {
|
|
@@ -2367,9 +2365,9 @@ class FMViewForm_maker {
|
|
| 2367 |
}
|
| 2368 |
}
|
| 2369 |
|
| 2370 |
-
$param['w_day']=(isset($_POST['wdform_'.$id1."_day".$form_id]) ? $_POST['wdform_'.$id1."_day".$form_id] : $param['w_day']);
|
| 2371 |
-
$param['w_month']=(isset($_POST['wdform_'.$id1."_month".$form_id]) ? $_POST['wdform_'.$id1."_month".$form_id] : $param['w_month']);
|
| 2372 |
-
$param['w_year']=(isset($_POST['wdform_'.$id1."_year".$form_id]) ? $_POST['wdform_'.$id1."_year".$form_id] : $param['w_year']);
|
| 2373 |
|
| 2374 |
$param['w_field_label_pos1'] = ($param['w_field_label_pos']=="left" ? "float: left;" : "");
|
| 2375 |
$param['w_field_label_pos2'] = ($param['w_field_label_pos']=="left" ? "" : "display:block;");
|
|
@@ -2687,7 +2685,7 @@ class FMViewForm_maker {
|
|
| 2687 |
$w_first_val = explode('***',$param['w_first_val']);
|
| 2688 |
$w_title = explode('***',$param['w_title']);
|
| 2689 |
|
| 2690 |
-
$param['w_first_val']=(isset($_POST['wdform_'.$id1.'_element_dollars'.$form_id]) ? $_POST['wdform_'.$id1.'_element_dollars'.$form_id] : $w_first_val[0]).'***'.(isset($_POST['wdform_'.$id1.'_element_cents'.$form_id]) ? $_POST['wdform_'.$id1.'_element_cents'.$form_id] : $w_first_val[1]);
|
| 2691 |
|
| 2692 |
$param['w_field_label_pos1'] = ($param['w_field_label_pos']=="left" ? "float: left;" : "");
|
| 2693 |
$param['w_field_label_pos2'] = ($param['w_field_label_pos']=="left" ? "" : "display:block;");
|
|
@@ -2798,7 +2796,7 @@ class FMViewForm_maker {
|
|
| 2798 |
if(isset($param['w_choices_params']))
|
| 2799 |
$param['w_choices_params'] = explode('***',$param['w_choices_params']);
|
| 2800 |
|
| 2801 |
-
$post_value = isset($_POST['wdform_'.$id1."_element".$form_id]) ? $_POST['wdform_'.$id1."_element".$form_id] : NULL;
|
| 2802 |
$rep='<div type="type_paypal_select" class="wdform-field" style="width:'.$wdformfieldsize.'px"><div class="wdform-label-section" style="'.$param['w_field_label_pos1'].'; width: '.$param['w_field_label_size'].'px;"><span class="wdform-label">'.$label.'</span>';
|
| 2803 |
if($required)
|
| 2804 |
$rep.='<span class="wdform-required">'.$required_sym.'</span>';
|
|
@@ -2879,7 +2877,7 @@ class FMViewForm_maker {
|
|
| 2879 |
}
|
| 2880 |
$rep.='</select><div id="wdform_'.$id1.'_div'.$form_id.'">';
|
| 2881 |
if($param['w_quantity']=="yes") {
|
| 2882 |
-
$rep.='<div class="paypal-property"><label class="mini_label" style="margin: 0px 5px;">'.(__("Quantity", 'form_maker')).'</label><input type="text" value="'.(isset($_POST['wdform_'.$id1."_element_quantity".$form_id]) ? $_POST['wdform_'.$id1."_element_quantity".$form_id] : $param['w_quantity_value']).'" id="wdform_'.$id1.'_element_quantity'.$form_id.'" name="wdform_'.$id1.'_element_quantity'.$form_id.'" class="wdform-quantity"></div>';
|
| 2883 |
}
|
| 2884 |
if($param['w_property'][0]) {
|
| 2885 |
foreach($param['w_property'] as $key => $property) {
|
|
@@ -2891,7 +2889,7 @@ class FMViewForm_maker {
|
|
| 2891 |
$param['w_property_values'][$key] = explode('###',$param['w_property_values'][$key]);
|
| 2892 |
$param['w_property_values'][$key] = array_slice($param['w_property_values'][$key],1, count($param['w_property_values'][$key]));
|
| 2893 |
foreach($param['w_property_values'][$key] as $subkey => $property_value) {
|
| 2894 |
-
$rep.='<option id="wdform_'.$id1.'_'.$key.'_option'.$subkey.'" value="'.$property_value.'" '.(isset($_POST['wdform_'.$id1.'_property'.$form_id.''.$key]) && $_POST['wdform_'.$id1.'_property'.$form_id.''.$key] == $property_value ? 'selected="selected"' : "").'>'.$property_value.'</option>';
|
| 2895 |
}
|
| 2896 |
$rep.='</select></div></div>';
|
| 2897 |
}
|
|
@@ -3050,7 +3048,7 @@ class FMViewForm_maker {
|
|
| 3050 |
|
| 3051 |
$rep.='<div id="wdform_'.$id1.'_div'.$form_id.'">';
|
| 3052 |
if($param['w_quantity']=="yes") {
|
| 3053 |
-
$rep.='<div class="paypal-property"><label class="mini_label" style="margin: 0px 5px;">'.(__("Quantity", 'form_maker')).'</label><input type="text" value="'.(isset($_POST['wdform_'.$id1."_element_quantity".$form_id]) ? $_POST['wdform_'.$id1."_element_quantity".$form_id] : $param['w_quantity_value']).'" id="wdform_'.$id1.'_element_quantity'.$form_id.'" name="wdform_'.$id1.'_element_quantity'.$form_id.'" class="wdform-quantity"></div>';
|
| 3054 |
}
|
| 3055 |
if($param['w_property'][0]) {
|
| 3056 |
foreach($param['w_property'] as $key => $property) {
|
|
@@ -3062,7 +3060,7 @@ class FMViewForm_maker {
|
|
| 3062 |
$param['w_property_values'][$key] = explode('###',$param['w_property_values'][$key]);
|
| 3063 |
$param['w_property_values'][$key] = array_slice($param['w_property_values'][$key],1, count($param['w_property_values'][$key]));
|
| 3064 |
foreach($param['w_property_values'][$key] as $subkey => $property_value) {
|
| 3065 |
-
$rep.='<option id="wdform_'.$id1.'_'.$key.'_option'.$subkey.'" value="'.$property_value.'" '.(isset($_POST['wdform_'.$id1.'_property'.$form_id.''.$key]) && $_POST['wdform_'.$id1.'_property'.$form_id.''.$key] == $property_value ? 'selected="selected"' : "").'>'.$property_value.'</option>';
|
| 3066 |
}
|
| 3067 |
$rep.='</select></div></div>';
|
| 3068 |
}
|
|
@@ -3206,7 +3204,7 @@ class FMViewForm_maker {
|
|
| 3206 |
}
|
| 3207 |
$rep.='<div id="wdform_'.$id1.'_div'.$form_id.'">';
|
| 3208 |
if($param['w_quantity']=="yes") {
|
| 3209 |
-
$rep.='<div class="paypal-property"><label class="mini_label" style="margin: 0px 5px;">'.(__("Quantity", 'form_maker')).'</label><input type="text" value="'.(isset($_POST['wdform_'.$id1."_element_quantity".$form_id]) ? $_POST['wdform_'.$id1."_element_quantity".$form_id] : $param['w_quantity_value']).'" id="wdform_'.$id1.'_element_quantity'.$form_id.'" name="wdform_'.$id1.'_element_quantity'.$form_id.'" class="wdform-quantity"></div>';
|
| 3210 |
}
|
| 3211 |
if($param['w_property'][0]) {
|
| 3212 |
foreach($param['w_property'] as $key => $property) {
|
|
@@ -3218,7 +3216,7 @@ class FMViewForm_maker {
|
|
| 3218 |
$param['w_property_values'][$key] = explode('###',$param['w_property_values'][$key]);
|
| 3219 |
$param['w_property_values'][$key] = array_slice($param['w_property_values'][$key],1, count($param['w_property_values'][$key]));
|
| 3220 |
foreach($param['w_property_values'][$key] as $subkey => $property_value) {
|
| 3221 |
-
$rep.='<option id="wdform_'.$id1.'_'.$key.'_option'.$subkey.'" value="'.$property_value.'" '.(isset($_POST['wdform_'.$id1.'_property'.$form_id.''.$key]) && $_POST['wdform_'.$id1.'_property'.$form_id.''.$key] == $property_value ? 'selected="selected"' : "").'>'.$property_value.'</option>';
|
| 3222 |
}
|
| 3223 |
$rep.='</select></div></div>';
|
| 3224 |
}
|
|
@@ -3481,7 +3479,7 @@ class FMViewForm_maker {
|
|
| 3481 |
}
|
| 3482 |
';
|
| 3483 |
}
|
| 3484 |
-
$post = isset($_POST['wdform_'.$id1.'_selected_star_amount'.$form_id]) ? $_POST['wdform_'.$id1.'_selected_star_amount'.$form_id] : NULL;
|
| 3485 |
if(isset($post)) {
|
| 3486 |
$onload_js .=' select_star_rating('.($post-1).',"wdform_'.$id1.'", '.$form_id.',"'.$param['w_field_label_col'].'", "'.$param['w_star_amount'].'");';
|
| 3487 |
}
|
|
@@ -3512,7 +3510,7 @@ class FMViewForm_maker {
|
|
| 3512 |
$numbers = '';
|
| 3513 |
$radio_buttons = '';
|
| 3514 |
$to_check=0;
|
| 3515 |
-
$post_value = isset($_POST['wdform_'.$id1.'_scale_radio'.$form_id]) ? $_POST['wdform_'.$id1.'_scale_radio'.$form_id] : NULL;
|
| 3516 |
if(isset($post_value)) {
|
| 3517 |
$to_check=$post_value;
|
| 3518 |
}
|
|
@@ -3565,7 +3563,7 @@ class FMViewForm_maker {
|
|
| 3565 |
$param['w_field_label_pos1'] = ($param['w_field_label_pos']=="left" ? "float: left;" : "");
|
| 3566 |
$param['w_field_label_pos2'] = ($param['w_field_label_pos']=="left" ? "" : "display:block;");
|
| 3567 |
$required = ($param['w_required']=="yes" ? true : false);
|
| 3568 |
-
$param['w_field_value']=(isset($_POST['wdform_'.$id1.'_element'.$form_id]) ? $_POST['wdform_'.$id1.'_element'.$form_id] : $param['w_field_value']);
|
| 3569 |
|
| 3570 |
$rep ='<div type="type_spinner" class="wdform-field"><div class="wdform-label-section '.$param['w_class'].'" style="'.$param['w_field_label_pos1'].' width: '.$param['w_field_label_size'].'px;"><span class="wdform-label">'.$label.'</span>';
|
| 3571 |
if($required) {
|
|
@@ -3619,7 +3617,7 @@ class FMViewForm_maker {
|
|
| 3619 |
$param['w_field_label_pos1'] = ($param['w_field_label_pos']=="left" ? "float: left;" : "");
|
| 3620 |
$param['w_field_label_pos2'] = ($param['w_field_label_pos']=="left" ? "" : "display:block;");
|
| 3621 |
$required = ($param['w_required']=="yes" ? true : false);
|
| 3622 |
-
$param['w_field_value']=(isset($_POST['wdform_'.$id1.'_slider_value'.$form_id]) ? $_POST['wdform_'.$id1.'_slider_value'.$form_id] : $param['w_field_value']);
|
| 3623 |
|
| 3624 |
$rep ='<div type="type_slider" class="wdform-field"><div class="wdform-label-section '.$param['w_class'].'" style="'.$param['w_field_label_pos1'].' width: '.$param['w_field_label_size'].'px;"><span class="wdform-label">'.$label.'</span>';
|
| 3625 |
if($required) {
|
|
@@ -3676,8 +3674,8 @@ class FMViewForm_maker {
|
|
| 3676 |
$param['w_field_label_pos1'] = ($param['w_field_label_pos']=="left" ? "float: left;" : "");
|
| 3677 |
$param['w_field_label_pos2'] = ($param['w_field_label_pos']=="left" ? "" : "display:block;");
|
| 3678 |
$required = ($param['w_required']=="yes" ? true : false);
|
| 3679 |
-
$param['w_field_value1']=(isset($_POST['wdform_'.$id1.'_element'.$form_id.'0']) ? $_POST['wdform_'.$id1.'_element'.$form_id.'0'] : $param['w_field_value1']);
|
| 3680 |
-
$param['w_field_value2']=(isset($_POST['wdform_'.$id1.'_element'.$form_id.'1']) ? $_POST['wdform_'.$id1.'_element'.$form_id.'1'] : $param['w_field_value2']);
|
| 3681 |
|
| 3682 |
$w_mini_labels = explode('***',$param['w_mini_labels']);
|
| 3683 |
$rep ='<div type="type_range" class="wdform-field"><div class="wdform-label-section '.$param['w_class'].'" style="'.$param['w_field_label_pos1'].' width: '.$param['w_field_label_size'].'px;"><span class="wdform-label">'.$label.'</span>';
|
|
@@ -3741,7 +3739,7 @@ class FMViewForm_maker {
|
|
| 3741 |
$grading_items ='';
|
| 3742 |
|
| 3743 |
for($i=0; $i<count($w_items); $i++) {
|
| 3744 |
-
$value=(isset($_POST['wdform_'.$id1.'_element'.$form_id.'_'.$i]) ? $_POST['wdform_'.$id1.'_element'.$form_id.'_'.$i] : '');
|
| 3745 |
$grading_items .= '<div class="wdform_grading"><input type="text" id="wdform_'.$id1.'_element'.$form_id.'_'.$i.'" name="wdform_'.$id1.'_element'.$form_id.'_'.$i.'" value="'.$value.'" '.$param['attributes'].'><label class="wdform-ch-rad-label" for="wdform_'.$id1.'_element'.$form_id.'_'.$i.'">'.$w_items[$i].'</label></div>';
|
| 3746 |
$required_check.=' && jQuery("#wdform_'.$id1.'_element'.$form_id.'_'.$i.'").val()==""';
|
| 3747 |
}
|
|
@@ -3790,7 +3788,7 @@ class FMViewForm_maker {
|
|
| 3790 |
break;
|
| 3791 |
}
|
| 3792 |
case 'type_matrix': {
|
| 3793 |
-
$params_names=array('w_field_label_size','w_field_label_pos', 'w_field_input_type', 'w_rows', 'w_columns', 'w_required','w_class');
|
| 3794 |
$temp=$params;
|
| 3795 |
foreach($params_names as $params_name ) {
|
| 3796 |
$temp=explode('*:*'.$params_name.'*:*',$temp);
|
|
@@ -3807,7 +3805,7 @@ class FMViewForm_maker {
|
|
| 3807 |
$param['w_field_label_pos1'] = ($param['w_field_label_pos']=="left" ? "float: left;" : "");
|
| 3808 |
$param['w_field_label_pos2'] = ($param['w_field_label_pos']=="left" ? "" : "display:block;");
|
| 3809 |
$required = ($param['w_required']=="yes" ? true : false);
|
| 3810 |
-
|
| 3811 |
$w_rows = explode('***',$param['w_rows']);
|
| 3812 |
$w_columns = explode('***',$param['w_columns']);
|
| 3813 |
$column_labels ='';
|
|
@@ -3822,7 +3820,7 @@ class FMViewForm_maker {
|
|
| 3822 |
$rows_columns .= '<div class="wdform-matrix-cell">';
|
| 3823 |
if($param['w_field_input_type']=='radio') {
|
| 3824 |
$to_check=0;
|
| 3825 |
-
$post_value = isset($_POST['wdform_'.$id1.'_input_element'.$form_id.''.$i]) ? $_POST['wdform_'.$id1.'_input_element'.$form_id.''.$i] : NULL;
|
| 3826 |
if(isset($post_value)) {
|
| 3827 |
$to_check=$post_value;
|
| 3828 |
}
|
|
@@ -3831,7 +3829,7 @@ class FMViewForm_maker {
|
|
| 3831 |
else {
|
| 3832 |
if($param['w_field_input_type']=='checkbox') {
|
| 3833 |
$to_check=0;
|
| 3834 |
-
$post_value = isset($_POST['wdform_'.$id1.'_input_element'.$form_id.''.$i.'_'.$k]) ? $_POST['wdform_'.$id1.'_input_element'.$form_id.''.$i.'_'.$k] : NULL;
|
| 3835 |
if(isset($post_value)) {
|
| 3836 |
$to_check=$post_value;
|
| 3837 |
}
|
|
@@ -3839,11 +3837,11 @@ class FMViewForm_maker {
|
|
| 3839 |
}
|
| 3840 |
else {
|
| 3841 |
if($param['w_field_input_type']=='text') {
|
| 3842 |
-
$rows_columns .= '<input id="wdform_'.$id1.'_input_element'.$form_id.''.$i.'_'.$k.'" type="text" name="wdform_'.$id1.'_input_element'.$form_id.''.$i.'_'.$k.'" value="'.(isset($_POST['wdform_'.$id1.'_input_element'.$form_id.''.$i.'_'.$k]) ? $_POST['wdform_'.$id1.'_input_element'.$form_id.''.$i.'_'.$k] : "").'">';
|
| 3843 |
}
|
| 3844 |
else {
|
| 3845 |
if($param['w_field_input_type']=='select') {
|
| 3846 |
-
$rows_columns .= '<select id="wdform_'.$id1.'_select_yes_no'.$form_id.''.$i.'_'.$k.'" name="wdform_'.$id1.'_select_yes_no'.$form_id.''.$i.'_'.$k.'" ><option value="" '.(isset($_POST['wdform_'.$id1.'_select_yes_no'.$form_id.''.$i.'_'.$k]) && $_POST['wdform_'.$id1.'_select_yes_no'.$form_id.''.$i.'_'.$k] == "" ? "selected=\"selected\"": "").'> </option><option value="yes" '.(isset($_POST['wdform_'.$id1.'_select_yes_no'.$form_id.''.$i.'_'.$k]) && $_POST['wdform_'.$id1.'_select_yes_no'.$form_id.''.$i.'_'.$k] == "yes" ? "selected=\"selected\"": "").'>Yes</option><option value="no" '.(isset($_POST['wdform_'.$id1.'_select_yes_no'.$form_id.''.$i.'_'.$k]) && $_POST['wdform_'.$id1.'_select_yes_no'.$form_id.''.$i.'_'.$k] == "no" ? "selected=\"selected\"": "").'>No</option></select>';
|
| 3847 |
}
|
| 3848 |
}
|
| 3849 |
}
|
|
@@ -4416,8 +4414,8 @@ class FMViewForm_maker {
|
|
| 4416 |
case "type_submitter_mail":
|
| 4417 |
{
|
| 4418 |
$form_maker_front_end .= "if(document.getElementById('" . $label_id[$key] . "_element" . $id . "'))
|
| 4419 |
-
if(document.getElementById('" . $label_id[$key] . "_element" . $id . "').title!='" . addslashes((isset($_POST[$label_id[$key] . "_element" . $id]) ? $_POST[$label_id[$key] . "_element" . $id] : "")) . "')
|
| 4420 |
-
{ document.getElementById('" . $label_id[$key] . "_element" . $id . "').value='" . addslashes(isset($_POST[$label_id[$key] . "_element" . $id]) ? $_POST[$label_id[$key] . "_element" . $id] : "") . "';
|
| 4421 |
document.getElementById('" . $label_id[$key] . "_element" . $id . "').className='input_active';
|
| 4422 |
}
|
| 4423 |
";
|
|
@@ -4431,8 +4429,8 @@ class FMViewForm_maker {
|
|
| 4431 |
"\r"
|
| 4432 |
);
|
| 4433 |
$form_maker_front_end .= "if(document.getElementById('" . $label_id[$key] . "_element" . $id . "'))
|
| 4434 |
-
if(document.getElementById('" . $label_id[$key] . "_element" . $id . "').title!='" . str_replace($order, '\n', addslashes(isset($_POST[$label_id[$key] . "_element" . $id]) ? $_POST[$label_id[$key] . "_element" . $id] : "")) . "')
|
| 4435 |
-
{ document.getElementById('" . $label_id[$key] . "_element" . $id . "').innerHTML='" . str_replace($order, '\n', addslashes(isset($_POST[$label_id[$key] . "_element" . $id]) ? $_POST[$label_id[$key] . "_element" . $id] : "")) . "';
|
| 4436 |
document.getElementById('" . $label_id[$key] . "_element" . $id . "').className='input_active';
|
| 4437 |
}
|
| 4438 |
";
|
|
@@ -4440,27 +4438,27 @@ class FMViewForm_maker {
|
|
| 4440 |
}
|
| 4441 |
case "type_name":
|
| 4442 |
{
|
| 4443 |
-
$element_title = isset($_POST[$label_id[$key] . "_element_title" . $id]) ? $_POST[$label_id[$key] . "_element_title" . $id] : "";
|
| 4444 |
if (isset($_POST[$label_id[$key] . "_element_title" . $id])) {
|
| 4445 |
$form_maker_front_end .= "if(document.getElementById('" . $label_id[$key] . "_element_first" . $id . "'))
|
| 4446 |
{
|
| 4447 |
-
if(document.getElementById('" . $label_id[$key] . "_element_title" . $id . "').title!='" . addslashes(isset($_POST[$label_id[$key] . "_element_title" . $id]) ? $_POST[$label_id[$key] . "_element_title" . $id] : "") . "')
|
| 4448 |
-
{ document.getElementById('" . $label_id[$key] . "_element_title" . $id . "').value='" . addslashes(isset($_POST[$label_id[$key] . "_element_title" . $id]) ? $_POST[$label_id[$key] . "_element_title" . $id] : "") . "';
|
| 4449 |
document.getElementById('" . $label_id[$key] . "_element_title" . $id . "').className='input_active';
|
| 4450 |
}
|
| 4451 |
|
| 4452 |
-
if(document.getElementById('" . $label_id[$key] . "_element_first" . $id . "').title!='" . addslashes(isset($_POST[$label_id[$key] . "_element_first" . $id]) ? $_POST[$label_id[$key] . "_element_first" . $id] : "") . "')
|
| 4453 |
-
{ document.getElementById('" . $label_id[$key] . "_element_first" . $id . "').value='" . addslashes(isset($_POST[$label_id[$key] . "_element_first" . $id]) ? $_POST[$label_id[$key] . "_element_first" . $id] : "") . "';
|
| 4454 |
document.getElementById('" . $label_id[$key] . "_element_first" . $id . "').className='input_active';
|
| 4455 |
}
|
| 4456 |
|
| 4457 |
-
if(document.getElementById('" . $label_id[$key] . "_element_last" . $id . "').title!='" . addslashes(isset($_POST[$label_id[$key] . "_element_last" . $id]) ? $_POST[$label_id[$key] . "_element_last" . $id] : "") . "')
|
| 4458 |
-
{ document.getElementById('" . $label_id[$key] . "_element_last" . $id . "').value='" . addslashes(isset($_POST[$label_id[$key] . "_element_last" . $id]) ? $_POST[$label_id[$key] . "_element_last" . $id] : "") . "';
|
| 4459 |
document.getElementById('" . $label_id[$key] . "_element_last" . $id . "').className='input_active';
|
| 4460 |
}
|
| 4461 |
|
| 4462 |
-
if(document.getElementById('" . $label_id[$key] . "_element_middle" . $id . "').title!='" . addslashes(isset($_POST[$label_id[$key] . "_element_middle" . $id]) ? $_POST[$label_id[$key] . "_element_middle" . $id] : "") . "')
|
| 4463 |
-
{ document.getElementById('" . $label_id[$key] . "_element_middle" . $id . "').value='" . addslashes(isset($_POST[$label_id[$key] . "_element_middle" . $id]) ? $_POST[$label_id[$key] . "_element_middle" . $id] : "") . "';
|
| 4464 |
document.getElementById('" . $label_id[$key] . "_element_middle" . $id . "').className='input_active';
|
| 4465 |
}
|
| 4466 |
|
|
@@ -4470,13 +4468,13 @@ class FMViewForm_maker {
|
|
| 4470 |
$form_maker_front_end .= "if(document.getElementById('" . $label_id[$key] . "_element_first" . $id . "'))
|
| 4471 |
{
|
| 4472 |
|
| 4473 |
-
if(document.getElementById('" . $label_id[$key] . "_element_first" . $id . "').title!='" . addslashes(isset($_POST[$label_id[$key] . "_element_first" . $id]) ? $_POST[$label_id[$key] . "_element_first" . $id] : "") . "')
|
| 4474 |
-
{ document.getElementById('" . $label_id[$key] . "_element_first" . $id . "').value='" . addslashes(isset($_POST[$label_id[$key] . "_element_first" . $id]) ? $_POST[$label_id[$key] . "_element_first" . $id] : "") . "';
|
| 4475 |
document.getElementById('" . $label_id[$key] . "_element_first" . $id . "').className='input_active';
|
| 4476 |
}
|
| 4477 |
|
| 4478 |
-
if(document.getElementById('" . $label_id[$key] . "_element_last" . $id . "').title!='" . addslashes(isset($_POST[$label_id[$key] . "_element_last" . $id]) ? $_POST[$label_id[$key] . "_element_last" . $id] : "") . "')
|
| 4479 |
-
{ document.getElementById('" . $label_id[$key] . "_element_last" . $id . "').value='" . addslashes(isset($_POST[$label_id[$key] . "_element_last" . $id]) ? $_POST[$label_id[$key] . "_element_last" . $id] : "") . "';
|
| 4480 |
document.getElementById('" . $label_id[$key] . "_element_last" . $id . "').className='input_active';
|
| 4481 |
}
|
| 4482 |
|
|
@@ -4488,13 +4486,13 @@ class FMViewForm_maker {
|
|
| 4488 |
{
|
| 4489 |
$form_maker_front_end .= "if(document.getElementById('" . $label_id[$key] . "_element_first" . $id . "'))
|
| 4490 |
{
|
| 4491 |
-
if(document.getElementById('" . $label_id[$key] . "_element_first" . $id . "').title!='" . addslashes(isset($_POST[$label_id[$key] . "_element_first" . $id]) ? $_POST[$label_id[$key] . "_element_first" . $id] : "") . "')
|
| 4492 |
-
{ document.getElementById('" . $label_id[$key] . "_element_first" . $id . "').value='" . addslashes(isset($_POST[$label_id[$key] . "_element_first" . $id]) ? $_POST[$label_id[$key] . "_element_first" . $id] : "") . "';
|
| 4493 |
document.getElementById('" . $label_id[$key] . "_element_first" . $id . "').className='input_active';
|
| 4494 |
}
|
| 4495 |
|
| 4496 |
-
if(document.getElementById('" . $label_id[$key] . "_element_last" . $id . "').title!='" . addslashes(isset($_POST[$label_id[$key] . "_element_last" . $id]) ? $_POST[$label_id[$key] . "_element_last" . $id] : "") . "')
|
| 4497 |
-
{ document.getElementById('" . $label_id[$key] . "_element_last" . $id . "').value='" . addslashes(isset($_POST[$label_id[$key] . "_element_last" . $id]) ? $_POST[$label_id[$key] . "_element_last" . $id] : "") . "';
|
| 4498 |
document.getElementById('" . $label_id[$key] . "_element_last" . $id . "').className='input_active';
|
| 4499 |
}
|
| 4500 |
}";
|
|
@@ -4504,13 +4502,13 @@ class FMViewForm_maker {
|
|
| 4504 |
case "type_paypal_price": {
|
| 4505 |
$form_maker_front_end .= "if(document.getElementById('".$label_id[$key]."_element_dollars".$id."'))
|
| 4506 |
{
|
| 4507 |
-
if(document.getElementById('".$label_id[$key]."_element_dollars".$id."').title!='".addslashes(isset($_POST[$label_id[$key]."_element_dollars".$id]) ? $_POST[$label_id[$key]."_element_dollars".$id] : "")."')
|
| 4508 |
-
{ document.getElementById('".$label_id[$key]."_element_dollars".$id."').value='".addslashes(isset($_POST[$label_id[$key]."_element_dollars".$id]) ? $_POST[$label_id[$key]."_element_dollars".$id] : "")."';
|
| 4509 |
document.getElementById('".$label_id[$key]."_element_dollars".$id."').className='input_active';
|
| 4510 |
}
|
| 4511 |
|
| 4512 |
-
if(document.getElementById('".$label_id[$key]."_element_cents".$id."').title!='".addslashes(isset($_POST[$label_id[$key]."_element_cents".$id]) ? $_POST[$label_id[$key]."_element_cents".$id] : "")."')
|
| 4513 |
-
{ document.getElementById('".$label_id[$key]."_element_cents".$id."').value='".addslashes(isset($_POST[$label_id[$key]."_element_cents".$id]) ? $_POST[$label_id[$key]."_element_cents".$id] : "")."';
|
| 4514 |
document.getElementById('".$label_id[$key]."_element_cents".$id."').className='input_active';
|
| 4515 |
}
|
| 4516 |
}";
|
|
@@ -4522,14 +4520,14 @@ class FMViewForm_maker {
|
|
| 4522 |
|
| 4523 |
$form_maker_front_end .=
|
| 4524 |
"if(document.getElementById('".$label_id[$key]."_element".$id."')){
|
| 4525 |
-
document.getElementById('".$label_id[$key]."_element".$id."').value='".addslashes(isset($_POST[$label_id[$key]."_element".$id]) ? $_POST[$label_id[$key]."_element".$id] : "")."';
|
| 4526 |
|
| 4527 |
if(document.getElementById('".$label_id[$key]."_element_quantity".$id."'))
|
| 4528 |
document.getElementById('".$label_id[$key]."_element_quantity".$id."').value='".((isset($_POST[$label_id[$key]."_element_quantity".$id]) && ((int) $_POST[$label_id[$key]."_element_quantity".$id] >= 1)) ? addslashes($_POST[$label_id[$key]."_element_quantity".$id]) : 1)."';
|
| 4529 |
";
|
| 4530 |
for($j=0; $j<100; $j++)
|
| 4531 |
{
|
| 4532 |
-
$element = isset($_POST[$label_id[$key]."_property".$id.$j]) ? $_POST[$label_id[$key]."_property".$id.$j] : NULL;
|
| 4533 |
if(isset($element))
|
| 4534 |
{
|
| 4535 |
$form_maker_front_end .=
|
|
@@ -4554,7 +4552,7 @@ class FMViewForm_maker {
|
|
| 4554 |
";
|
| 4555 |
for($j=0; $j<100; $j++)
|
| 4556 |
{
|
| 4557 |
-
$element = isset($_POST[$label_id[$key]."_element".$id.$j]) ? $_POST[$label_id[$key]."_element".$id.$j] : NULL;
|
| 4558 |
if(isset($element))
|
| 4559 |
{
|
| 4560 |
$form_maker_front_end .=
|
|
@@ -4570,7 +4568,7 @@ class FMViewForm_maker {
|
|
| 4570 |
";
|
| 4571 |
for($j=0; $j<100; $j++)
|
| 4572 |
{
|
| 4573 |
-
$element = isset($_POST[$label_id[$key]."_property".$id.$j]) ? $_POST[$label_id[$key]."_property".$id.$j] : NULL;
|
| 4574 |
if(isset($element))
|
| 4575 |
{
|
| 4576 |
$form_maker_front_end .=
|
|
@@ -4588,7 +4586,7 @@ class FMViewForm_maker {
|
|
| 4588 |
if(document.getElementById('".$label_id[$key]."_element".$id."'+k))
|
| 4589 |
{
|
| 4590 |
document.getElementById('".$label_id[$key]."_element".$id."'+k).removeAttribute('checked');
|
| 4591 |
-
if(document.getElementById('".$label_id[$key]."_element".$id."'+k).value=='".addslashes(isset($_POST[$label_id[$key]."_element".$id]) ? $_POST[$label_id[$key]."_element".$id] : "")."')
|
| 4592 |
{
|
| 4593 |
document.getElementById('".$label_id[$key]."_element".$id."'+k).setAttribute('checked', 'checked');
|
| 4594 |
|
|
@@ -4597,11 +4595,11 @@ class FMViewForm_maker {
|
|
| 4597 |
|
| 4598 |
|
| 4599 |
if(document.getElementById('".$label_id[$key]."_element_quantity".$id."'))
|
| 4600 |
-
document.getElementById('".$label_id[$key]."_element_quantity".$id."').value='".((isset($_POST[$label_id[$key]."_element_quantity".$id])) ? $_POST[$label_id[$key]."_element_quantity".$id] : 1)."';
|
| 4601 |
";
|
| 4602 |
for($j=0; $j<100; $j++)
|
| 4603 |
{
|
| 4604 |
-
$element = isset($_POST[$label_id[$key]."_property".$id.$j]) ? $_POST[$label_id[$key]."_property".$id.$j] : NULL;
|
| 4605 |
if(isset($element))
|
| 4606 |
{
|
| 4607 |
$form_maker_front_end .=
|
|
@@ -4623,7 +4621,7 @@ class FMViewForm_maker {
|
|
| 4623 |
if(document.getElementById('".$label_id[$key]."_element".$id."'+k))
|
| 4624 |
{
|
| 4625 |
document.getElementById('".$label_id[$key]."_element".$id."'+k).removeAttribute('checked');
|
| 4626 |
-
if(document.getElementById('".$label_id[$key]."_element".$id."'+k).value=='".addslashes(isset($_POST[$label_id[$key]."_element".$id]) ? $_POST[$label_id[$key]."_element".$id] : "")."')
|
| 4627 |
{
|
| 4628 |
document.getElementById('".$label_id[$key]."_element".$id."'+k).setAttribute('checked', 'checked');
|
| 4629 |
|
|
@@ -4637,7 +4635,7 @@ class FMViewForm_maker {
|
|
| 4637 |
case "type_star_rating": {
|
| 4638 |
$form_maker_front_end .=
|
| 4639 |
"if(document.getElementById('".$label_id[$key]."_element".$id."')) {
|
| 4640 |
-
document.getElementById('".$label_id[$key]."_selected_star_amount".$id."').value='".addslashes(isset($_POST[$label_id[$key]."_selected_star_amount".$id]) ? $_POST[$label_id[$key]."_selected_star_amount".$id] : "")."';
|
| 4641 |
if (document.getElementById('".$label_id[$key]."_selected_star_amount".$id."').value)
|
| 4642 |
select_star_rating((document.getElementById('".$label_id[$key]."_selected_star_amount".$id."').value-1),".$label_id[$key].",".$id.");
|
| 4643 |
}";
|
|
@@ -4650,7 +4648,7 @@ class FMViewForm_maker {
|
|
| 4650 |
"for (k=0; k<100; k++) {
|
| 4651 |
if (document.getElementById('".$label_id[$key]."_scale_radio".$id."_'+k)) {
|
| 4652 |
document.getElementById('".$label_id[$key]."_scale_radio".$id."_'+k).removeAttribute('checked');
|
| 4653 |
-
if (document.getElementById('".$label_id[$key]."_scale_radio".$id."_'+k).value=='".(isset($_POST[$label_id[$key]."_scale_radio".$id]) ? $_POST[$label_id[$key]."_scale_radio".$id] : "")."')
|
| 4654 |
document.getElementById('".$label_id[$key]."_scale_radio".$id."_'+k).setAttribute('checked', 'checked');
|
| 4655 |
}
|
| 4656 |
}";
|
|
@@ -4660,7 +4658,7 @@ class FMViewForm_maker {
|
|
| 4660 |
case "type_spinner": {
|
| 4661 |
$form_maker_front_end .=
|
| 4662 |
"if (document.getElementById('".$label_id[$key]."_element".$id."')) {
|
| 4663 |
-
document.getElementById('".$label_id[$key]."_element".$id."').setAttribute('aria-valuenow','".(isset($_POST[$label_id[$key]."_element".$id]) ? $_POST[$label_id[$key]."_element".$id] : "")."');
|
| 4664 |
}";
|
| 4665 |
break;
|
| 4666 |
|
|
@@ -4668,27 +4666,27 @@ class FMViewForm_maker {
|
|
| 4668 |
case "type_slider": {
|
| 4669 |
$form_maker_front_end .=
|
| 4670 |
"if (document.getElementById('".$label_id[$key]."_element".$id."'))
|
| 4671 |
-
document.getElementById('".$label_id[$key]."_element".$id."').setAttribute('aria-valuenow','".(isset($_POST[$label_id[$key]."_slider_value".$id]) ? $_POST[$label_id[$key]."_slider_value".$id] : "")."');
|
| 4672 |
if (document.getElementById('".$label_id[$key]."_slider_value".$id."'))
|
| 4673 |
-
document.getElementById('".$label_id[$key]."_slider_value".$id."').value='".(isset($_POST[$label_id[$key]."_slider_value".$id]) ? $_POST[$label_id[$key]."_slider_value".$id] : "")."';
|
| 4674 |
if (document.getElementById('".$label_id[$key]."_element_value".$id."'))
|
| 4675 |
-
document.getElementById('".$label_id[$key]."_element_value".$id."').innerHTML='".(isset($_POST[$label_id[$key]."_slider_value".$id]) ? $_POST[$label_id[$key]."_slider_value".$id] : "")."';";
|
| 4676 |
break;
|
| 4677 |
|
| 4678 |
}
|
| 4679 |
case "type_range": {
|
| 4680 |
$form_maker_front_end .=
|
| 4681 |
"if (document.getElementById('".$label_id[$key]."_element".$id."0'))
|
| 4682 |
-
document.getElementById('".$label_id[$key]."_element".$id."0').setAttribute('aria-valuenow','".(isset($_POST[$label_id[$key]."_element".$id."0"]) ? $_POST[$label_id[$key]."_element".$id."0"] : "")."');
|
| 4683 |
if (document.getElementById('".$label_id[$key]."_element".$id."1'))
|
| 4684 |
-
document.getElementById('".$label_id[$key]."_element".$id."1').setAttribute('aria-valuenow','".(isset($_POST[$label_id[$key]."_element".$id."1"]) ? $_POST[$label_id[$key]."_element".$id."1"] : "")."');";
|
| 4685 |
break;
|
| 4686 |
|
| 4687 |
}
|
| 4688 |
case "type_grading": {
|
| 4689 |
for ($k = 0; $k < 100; $k++) {
|
| 4690 |
$form_maker_front_end .= "if (document.getElementById('".$label_id[$key]."_element".$id.$k."')) {
|
| 4691 |
-
document.getElementById('".$label_id[$key]."_element".$id.$k."').value='".(isset($_POST[$label_id[$key]."_element".$id.$k]) ? $_POST[$label_id[$key]."_element".$id.$k] : "")."';}";
|
| 4692 |
}
|
| 4693 |
$form_maker_front_end .= "sum_grading_values(".$label_id[$key].",".$id.");";
|
| 4694 |
break;
|
|
@@ -4702,7 +4700,7 @@ class FMViewForm_maker {
|
|
| 4702 |
$form_maker_front_end .=
|
| 4703 |
"if (document.getElementById('".$label_id[$key]."_input_element".$id.$k."_".$l."')) {
|
| 4704 |
document.getElementById('".$label_id[$key]."_input_element".$id.$k."_".$l."').removeAttribute('checked');
|
| 4705 |
-
if (document.getElementById('".$label_id[$key]."_input_element".$id.$k."_".$l."').value=='".(isset($_POST[$label_id[$key]."_input_element".$id.$k]) ? $_POST[$label_id[$key]."_input_element".$id.$k] : "")."')
|
| 4706 |
document.getElementById('".$label_id[$key]."_input_element".$id.$k."_".$l."').setAttribute('checked', 'checked');
|
| 4707 |
}";
|
| 4708 |
}
|
|
@@ -4716,7 +4714,7 @@ class FMViewForm_maker {
|
|
| 4716 |
$form_maker_front_end .=
|
| 4717 |
"if (document.getElementById('".$label_id[$key]."_input_element".$id.$k."_".$l."')) {
|
| 4718 |
document.getElementById('".$label_id[$key]."_input_element".$id.$k."_".$l."').removeAttribute('checked');
|
| 4719 |
-
if (document.getElementById('".$label_id[$key]."_input_element".$id.$k."_".$l."').value=='".(isset($_POST[$label_id[$key]."_input_element".$id.$k."_".$l]) ? $_POST[$label_id[$key]."_input_element".$id.$k."_".$l] : "")."')
|
| 4720 |
document.getElementById('".$label_id[$key]."_input_element".$id.$k."_".$l."').setAttribute('checked', 'checked');
|
| 4721 |
}";
|
| 4722 |
}
|
|
@@ -4729,7 +4727,7 @@ class FMViewForm_maker {
|
|
| 4729 |
for ($l = 1; $l < 40; $l++) {
|
| 4730 |
$form_maker_front_end .=
|
| 4731 |
"if (document.getElementById('".$label_id[$key]."_input_element".$id.$k."_".$l."'))
|
| 4732 |
-
document.getElementById('".$label_id[$key]."_input_element".$id.$k."_".$l."').value='".(isset($_POST[$label_id[$key]."_input_element".$id.$k."_".$l]) ? $_POST[$label_id[$key]."_input_element".$id.$k."_".$l] : "")."';";
|
| 4733 |
}
|
| 4734 |
}
|
| 4735 |
$form_maker_front_end .= "
|
|
@@ -4740,7 +4738,7 @@ class FMViewForm_maker {
|
|
| 4740 |
for ($l = 1; $l < 40; $l++) {
|
| 4741 |
$form_maker_front_end .=
|
| 4742 |
"if (document.getElementById('".$label_id[$key]."_select_yes_no".$id.$k."_".$l."'))
|
| 4743 |
-
document.getElementById('".$label_id[$key]."_select_yes_no".$id.$k."_".$l."').value='".(isset($_POST[$label_id[$key]."_select_yes_no".$id.$k."_".$l]) ? $_POST[$label_id[$key]."_select_yes_no".$id.$k."_".$l] : "")."';";
|
| 4744 |
}
|
| 4745 |
}
|
| 4746 |
$form_maker_front_end .=
|
|
@@ -4753,12 +4751,12 @@ class FMViewForm_maker {
|
|
| 4753 |
if ($key > $old_key) {
|
| 4754 |
$form_maker_front_end .= "if(document.getElementById('" . $label_id[$key] . "_street1" . $id . "'))
|
| 4755 |
{
|
| 4756 |
-
document.getElementById('" . $label_id[$key] . "_street1" . $id . "').value='" . addslashes(isset($_POST[$label_id[$key] . "_street1" . $id]) ? $_POST[$label_id[$key] . "_street1" . $id] : "") . "';
|
| 4757 |
-
document.getElementById('" . $label_id[$key] . "_street2" . $id . "').value='" . addslashes(isset($_POST[$label_id[$key + 1] . "_street2" . $id]) ? $_POST[$label_id[$key + 1] . "_street2" . $id] : "") . "';
|
| 4758 |
-
document.getElementById('" . $label_id[$key] . "_city" . $id . "').value='" . addslashes(isset($_POST[$label_id[$key + 2] . "_city" . $id]) ? $_POST[$label_id[$key + 2] . "_city" . $id] : "") . "';
|
| 4759 |
-
document.getElementById('" . $label_id[$key] . "_state" . $id . "').value='" . addslashes(isset($_POST[$label_id[$key + 3] . "_state" . $id]) ? $_POST[$label_id[$key + 3] . "_state" . $id] : "") . "';
|
| 4760 |
-
document.getElementById('" . $label_id[$key] . "_postal" . $id . "').value='" . addslashes(isset($_POST[$label_id[$key + 4] . "_postal" . $id]) ? $_POST[$label_id[$key + 4] . "_postal" . $id] : "") . "';
|
| 4761 |
-
document.getElementById('" . $label_id[$key] . "_country" . $id . "').value='" . addslashes(isset($_POST[$label_id[$key + 5] . "_country" . $id]) ? $_POST[$label_id[$key + 5] . "_country" . $id] : "") . "';
|
| 4762 |
|
| 4763 |
}";
|
| 4764 |
$old_key = $key + 5;
|
|
@@ -4768,9 +4766,9 @@ class FMViewForm_maker {
|
|
| 4768 |
case "type_checkbox":
|
| 4769 |
{
|
| 4770 |
$is_other = FALSE;
|
| 4771 |
-
if (isset($_POST[$label_id[$key] . "_allow_other" . $id]) && $_POST[$label_id[$key] . "_allow_other" . $id] == "yes") {
|
| 4772 |
-
$other_element = isset($_POST[$label_id[$key] . "_other_input" . $id]) ? $_POST[$label_id[$key] . "_other_input" . $id] : "";
|
| 4773 |
-
$other_element_id = isset($_POST[$label_id[$key] . "_allow_other_num" . $id]) ? $_POST[$label_id[$key] . "_allow_other_num" . $id] : NULL;
|
| 4774 |
if (isset($_POST[$label_id[$key] . "_allow_other_num" . $id]))
|
| 4775 |
$is_other = TRUE;
|
| 4776 |
}
|
|
@@ -4786,7 +4784,7 @@ class FMViewForm_maker {
|
|
| 4786 |
else break;
|
| 4787 |
";
|
| 4788 |
for ($j = 0; $j < 100; $j++) {
|
| 4789 |
-
$element = isset($_POST[$label_id[$key] . "_element" . $id . $j]) ? $_POST[$label_id[$key] . "_element" . $id . $j] : NULL;
|
| 4790 |
if (isset($_POST[$label_id[$key] . "_element" . $id . $j])) {
|
| 4791 |
$form_maker_front_end .= "document.getElementById('" . $label_id[$key] . "_element" . $id . $j . "').setAttribute('checked', 'checked');
|
| 4792 |
";
|
|
@@ -4795,15 +4793,15 @@ class FMViewForm_maker {
|
|
| 4795 |
if ($is_other)
|
| 4796 |
$form_maker_front_end .= "
|
| 4797 |
show_other_input('" . $label_id[$key] . "','" . $id . "');
|
| 4798 |
-
document.getElementById('" . $label_id[$key] . "_other_input" . $id . "').value='" . (isset($_POST[$label_id[$key] . "_other_input" . $id]) ? $_POST[$label_id[$key] . "_other_input" . $id] : "") . "';
|
| 4799 |
";
|
| 4800 |
break;
|
| 4801 |
}
|
| 4802 |
case "type_radio":
|
| 4803 |
{
|
| 4804 |
$is_other = FALSE;
|
| 4805 |
-
if (isset($_POST[$label_id[$key] . "_allow_other" . $id]) && $_POST[$label_id[$key] . "_allow_other" . $id] == "yes") {
|
| 4806 |
-
$other_element = isset($_POST[$label_id[$key] . "_other_input" . $id]) ? $_POST[$label_id[$key] . "_other_input" . $id] : "";
|
| 4807 |
if (isset($_POST[$label_id[$key] . "_other_input" . $id]))
|
| 4808 |
$is_other = TRUE;
|
| 4809 |
}
|
|
@@ -4818,7 +4816,7 @@ class FMViewForm_maker {
|
|
| 4818 |
if(document.getElementById('" . $label_id[$key] . "_element" . $id . "'+k))
|
| 4819 |
{
|
| 4820 |
document.getElementById('" . $label_id[$key] . "_element" . $id . "'+k).removeAttribute('checked');
|
| 4821 |
-
if(document.getElementById('" . $label_id[$key] . "_element" . $id . "'+k).value=='" . addslashes(isset($_POST[$label_id[$key] . "_element" . $id]) ? $_POST[$label_id[$key] . "_element" . $id] : "") . "')
|
| 4822 |
{
|
| 4823 |
document.getElementById('" . $label_id[$key] . "_element" . $id . "'+k).setAttribute('checked', 'checked');
|
| 4824 |
|
|
@@ -4829,29 +4827,29 @@ class FMViewForm_maker {
|
|
| 4829 |
if ($is_other)
|
| 4830 |
$form_maker_front_end .= "
|
| 4831 |
show_other_input('" . $label_id[$key] . "','" . $id . "');
|
| 4832 |
-
document.getElementById('" . $label_id[$key] . "_other_input" . $id . "').value='" . (isset($_POST[$label_id[$key] . "_other_input" . $id]) ? $_POST[$label_id[$key] . "_other_input" . $id] : "") . "';
|
| 4833 |
";
|
| 4834 |
break;
|
| 4835 |
}
|
| 4836 |
case "type_time":
|
| 4837 |
{
|
| 4838 |
-
$ss = isset($_POST[$label_id[$key] . "_ss" . $id]) ? $_POST[$label_id[$key] . "_ss" . $id] : "";
|
| 4839 |
if (isset($_POST[$label_id[$key] . "_ss" . $id])) {
|
| 4840 |
$form_maker_front_end .= "if(document.getElementById('" . $label_id[$key] . "_hh" . $id . "'))
|
| 4841 |
{
|
| 4842 |
-
document.getElementById('" . $label_id[$key] . "_hh" . $id . "').value='" . (isset($_POST[$label_id[$key] . "_hh" . $id]) ? $_POST[$label_id[$key] . "_hh" . $id] : "") . "';
|
| 4843 |
-
document.getElementById('" . $label_id[$key] . "_mm" . $id . "').value='" . (isset($_POST[$label_id[$key] . "_mm" . $id]) ? $_POST[$label_id[$key] . "_mm" . $id] : "") . "';
|
| 4844 |
-
document.getElementById('" . $label_id[$key] . "_ss" . $id . "').value='" . (isset($_POST[$label_id[$key] . "_ss" . $id]) ? $_POST[$label_id[$key] . "_ss" . $id] : "") . "';
|
| 4845 |
}";
|
| 4846 |
}
|
| 4847 |
else {
|
| 4848 |
$form_maker_front_end .= "if(document.getElementById('" . $label_id[$key] . "_hh" . $id . "'))
|
| 4849 |
{
|
| 4850 |
-
document.getElementById('" . $label_id[$key] . "_hh" . $id . "').value='" . (isset($_POST[$label_id[$key] . "_hh" . $id]) ? $_POST[$label_id[$key] . "_hh" . $id] : "") . "';
|
| 4851 |
-
document.getElementById('" . $label_id[$key] . "_mm" . $id . "').value='" . (isset($_POST[$label_id[$key] . "_mm" . $id]) ? $_POST[$label_id[$key] . "_mm" . $id] : "") . "';
|
| 4852 |
}";
|
| 4853 |
}
|
| 4854 |
-
$am_pm = isset($_POST[$label_id[$key] . "_am_pm" . $id]) ? $_POST[$label_id[$key] . "_am_pm" . $id] : NULL;
|
| 4855 |
if (isset($am_pm))
|
| 4856 |
$form_maker_front_end .= "if(document.getElementById('" . $label_id[$key] . "_am_pm" . $id . "'))
|
| 4857 |
document.getElementById('" . $label_id[$key] . "_am_pm" . $id . "').value='" . $am_pm . "';
|
|
@@ -4862,9 +4860,9 @@ class FMViewForm_maker {
|
|
| 4862 |
{
|
| 4863 |
$form_maker_front_end .= "if(document.getElementById('" . $label_id[$key] . "_day" . $id . "'))
|
| 4864 |
{
|
| 4865 |
-
document.getElementById('" . $label_id[$key] . "_day" . $id . "').value='" . (isset($_POST[$label_id[$key] . "_day" . $id]) ? $_POST[$label_id[$key] . "_day" . $id] : "") . "';
|
| 4866 |
-
document.getElementById('" . $label_id[$key] . "_month" . $id . "').value='" . (isset($_POST[$label_id[$key] . "_month" . $id]) ? $_POST[$label_id[$key] . "_month" . $id] : "") . "';
|
| 4867 |
-
document.getElementById('" . $label_id[$key] . "_year" . $id . "').value='" . (isset($_POST[$label_id[$key] . "_year" . $id]) ? $_POST[$label_id[$key] . "_year" . $id] : "") . "';
|
| 4868 |
}";
|
| 4869 |
break;
|
| 4870 |
}
|
|
@@ -4873,7 +4871,7 @@ class FMViewForm_maker {
|
|
| 4873 |
case "type_country":
|
| 4874 |
{
|
| 4875 |
$form_maker_front_end .= "if(document.getElementById('" . $label_id[$key] . "_element" . $id . "'))
|
| 4876 |
-
document.getElementById('" . $label_id[$key] . "_element" . $id . "').value='" . addslashes(isset($_POST[$label_id[$key] . "_element" . $id]) ? $_POST[$label_id[$key] . "_element" . $id] : "") . "';
|
| 4877 |
";
|
| 4878 |
break;
|
| 4879 |
}
|
| 23 |
// Public Methods //
|
| 24 |
////////////////////////////////////////////////////////////////////////////////////////
|
| 25 |
public function display($id) {
|
|
|
|
| 26 |
$current_url=htmlentities($_SERVER['REQUEST_URI']);
|
|
|
|
| 27 |
$form_maker_front_end = "";
|
| 28 |
$result = $this->model->showform($id);
|
| 29 |
if (!$result) {
|
| 1002 |
}
|
| 1003 |
}
|
| 1004 |
$input_active = ($param['w_first_val']=='true' ? "checked='checked'" : "");
|
| 1005 |
+
$post_value = isset($_POST["counter".$form_id]) ? esc_html($_POST["counter".$form_id]) : NULL;
|
| 1006 |
if(isset($post_value)) {
|
| 1007 |
+
$post_temp = isset($_POST['wdform_'.$id1.'_element'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element'.$form_id])) : "";
|
| 1008 |
$input_active = (isset($post_temp) ? "checked='checked'" : "");
|
| 1009 |
}
|
| 1010 |
$param['w_field_label_pos1'] = ($param['w_field_label_pos']=="left" ? "float: left;" : "");
|
| 1042 |
}
|
| 1043 |
break;
|
| 1044 |
}
|
| 1045 |
+
case 'type_text': {
|
| 1046 |
$params_names=array('w_field_label_size','w_field_label_pos','w_size','w_first_val','w_title','w_required','w_unique');
|
| 1047 |
$temp=$params;
|
| 1048 |
if(strpos($temp, 'w_regExp_status') > -1)
|
| 1059 |
$param['attributes'] = $param['attributes'].' '.$attr;
|
| 1060 |
}
|
| 1061 |
|
| 1062 |
+
$param['w_first_val'] = (isset($_POST['wdform_'.$id1.'_element'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element'.$form_id])) : $param['w_first_val']);
|
| 1063 |
|
| 1064 |
$wdformfieldsize = ($param['w_field_label_pos']=="left" ? $param['w_field_label_size']+$param['w_size'] + 10 : max($param['w_field_label_size'],$param['w_size']));
|
| 1065 |
$param['w_field_label_pos1'] = ($param['w_field_label_pos']=="left" ? "float: left;" : "");
|
| 1114 |
}';
|
| 1115 |
}
|
| 1116 |
|
| 1117 |
+
break;
|
| 1118 |
}
|
| 1119 |
|
| 1120 |
case 'type_number': {
|
| 1133 |
}
|
| 1134 |
}
|
| 1135 |
|
| 1136 |
+
$param['w_first_val']=(isset($_POST['wdform_'.$id1.'_element'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element'.$form_id])) : $param['w_first_val']);
|
| 1137 |
|
| 1138 |
$wdformfieldsize = ($param['w_field_label_pos']=="left" ? $param['w_field_label_size']+$param['w_size'] + 10 : max($param['w_field_label_size'],$param['w_size']));
|
| 1139 |
$param['w_field_label_pos1'] = ($param['w_field_label_pos']=="left" ? "float: left;" : "");
|
| 1229 |
$param['attributes'] = $param['attributes'].' '.$attr;
|
| 1230 |
}
|
| 1231 |
|
| 1232 |
+
$param['w_first_val']=(isset($_POST['wdform_'.$id1.'_element'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element'.$form_id])) : $param['w_first_val']);
|
| 1233 |
|
| 1234 |
$wdformfieldsize = ($param['w_field_label_pos']=="left" ? $param['w_field_label_size']+$param['w_size_w'] + 10 : max($param['w_field_label_size'],$param['w_size_w']));
|
| 1235 |
$param['w_field_label_pos1'] = ($param['w_field_label_pos']=="left" ? "float: left;" : "");
|
| 1336 |
$w_first_val = explode('***',$param['w_first_val']);
|
| 1337 |
$w_title = explode('***',$param['w_title']);
|
| 1338 |
|
| 1339 |
+
$param['w_first_val']=(isset($_POST['wdform_'.$id1.'_element_first'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element_first'.$form_id])) : $w_first_val[0]).'***'.(isset($_POST['wdform_'.$id1.'_element_last'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element_last'.$form_id])) : $w_first_val[1]);
|
| 1340 |
|
| 1341 |
$wdformfieldsize = ($param['w_field_label_pos']=="left" ? ($param['w_field_label_size']+$param['w_size']+65) : max($param['w_field_label_size'],($param['w_size']+65)));
|
| 1342 |
$param['w_field_label_pos1'] = ($param['w_field_label_pos']=="left" ? "float: left;" : "");
|
| 1409 |
$w_title = explode('***',$param['w_title']);
|
| 1410 |
$w_mini_labels = explode('***',$param['w_mini_labels']);
|
| 1411 |
|
| 1412 |
+
$element_title = isset($_POST['wdform_'.$id1.'_element_title'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element_title'.$form_id])) : NULL;
|
| 1413 |
+
$element_first = isset($_POST['wdform_'.$id1.'_element_first'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element_first'.$form_id])) : NULL;
|
| 1414 |
if(isset($element_title)) {
|
| 1415 |
+
$param['w_first_val']=(isset($_POST['wdform_'.$id1.'_element_title'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element_title'.$form_id])) : $w_first_val[0]).'***'.(isset($_POST['wdform_'.$id1.'_element_first'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element_first'.$form_id])) : $w_first_val[1]).'***'.(isset($_POST['wdform_'.$id1.'_element_last'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element_last'.$form_id])) : $w_first_val[2]).'***'.(isset($_POST['wdform_'.$id1.'_element_middle'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element_middle'.$form_id])) : $w_first_val[3]);
|
| 1416 |
}
|
| 1417 |
else {
|
| 1418 |
if(isset($element_first)) {
|
| 1419 |
+
$param['w_first_val']=(isset($_POST['wdform_'.$id1.'_element_first'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element_first'.$form_id])) : $w_first_val[0]).'***'.(isset($_POST['wdform_'.$id1.'_element_last'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element_last'.$form_id])) : $w_first_val[1]);
|
| 1420 |
}
|
| 1421 |
}
|
| 1422 |
$input_active = ($param['w_first_val']==$param['w_title'] ? "input_deactive" : "input_active");
|
| 1538 |
$g = 0;
|
| 1539 |
if (isset($w_disabled_fields[0]) && $w_disabled_fields[0] == 'no') {
|
| 1540 |
$g+=2;
|
| 1541 |
+
$address_fields .= '<span style="float: left; width: 100%; padding-bottom: 8px; display: block;"><input type="text" id="wdform_'.$id1.'_street1'.$form_id.'" name="wdform_'.$id1.'_street1'.$form_id.'" value="'.(isset($_POST['wdform_'.$id1.'_street1'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_street1'.$form_id])) : "").'" style="width: 100%;" '.$param['attributes'].'><label class="mini_label" >'.$w_mini_labels[0].'</label></span>';
|
| 1542 |
}
|
| 1543 |
if (isset($w_disabled_fields[1]) && $w_disabled_fields[1]=='no') {
|
| 1544 |
$g+=2;
|
| 1545 |
+
$address_fields .= '<span style="float: left; width: 100%; padding-bottom: 8px; display: block;"><input type="text" id="wdform_'.$id1.'_street2'.$form_id.'" name="wdform_'.($id1+1).'_street2'.$form_id.'" value="'.(isset($_POST['wdform_'.($id1+1).'_street2'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.($id1+1).'_street2'.$form_id])) : "").'" style="width: 100%;" '.$param['attributes'].'><label class="mini_label" >'.$w_mini_labels[1].'</label></span>';
|
| 1546 |
}
|
| 1547 |
if (isset($w_disabled_fields[2]) && $w_disabled_fields[2]=='no') {
|
| 1548 |
$g++;
|
| 1549 |
+
$address_fields .= '<span style="float: left; width: 48%; padding-bottom: 8px;"><input type="text" id="wdform_'.$id1.'_city'.$form_id.'" name="wdform_'.($id1+2).'_city'.$form_id.'" value="'.(isset($_POST['wdform_'.($id1+2).'_city'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.($id1+2).'_city'.$form_id])) : "").'" style="width: 100%;" '.$param['attributes'].'><label class="mini_label" >'.$w_mini_labels[2].'</label></span>';
|
| 1550 |
}
|
| 1551 |
if (isset($w_disabled_fields[3]) && $w_disabled_fields[3]=='no') {
|
| 1552 |
$g++;
|
| 1553 |
$w_states = array("","Alabama","Alaska", "Arizona","Arkansas","California","Colorado","Connecticut","Delaware","District Of Columbia","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Carolina","North Dakota","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming");
|
| 1554 |
$w_state_options = '';
|
| 1555 |
+
$post_state = isset($_POST['wdform_'.($id1+3).'_state'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.($id1+3).'_state'.$form_id])) : "";
|
| 1556 |
foreach($w_states as $w_state) {
|
| 1557 |
if($w_state == $post_state) {
|
| 1558 |
$selected = 'selected="selected"';
|
| 1566 |
$address_fields .= '<span style="float: '.(($g%2==0) ? 'right' : 'left').'; width: 48%; padding-bottom: 8px;"><select type="text" id="wdform_'.$id1.'_state'.$form_id.'" name="wdform_'.($id1+3).'_state'.$form_id.'" style="width: 100%;" '.$param['attributes'].'>'.$w_state_options.'</select><label class="mini_label" style="display: block;" id="'.$id1.'_mini_label_state">'.$w_mini_labels[3].'</label></span>';
|
| 1567 |
}
|
| 1568 |
else {
|
| 1569 |
+
$address_fields .= '<span style="float: '.(($g%2==0) ? 'right' : 'left').'; width: 48%; padding-bottom: 8px;"><input type="text" id="wdform_'.$id1.'_state'.$form_id.'" name="wdform_'.($id1+3).'_state'.$form_id.'" value="'.(isset($_POST['wdform_'.($id1+3).'_state'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.($id1+3).'_state'.$form_id])) : "").'" style="width: 100%;" '.$param['attributes'].'><label class="mini_label">'.$w_mini_labels[3].'</label></span>';
|
| 1570 |
}
|
| 1571 |
}
|
| 1572 |
if (isset($w_disabled_fields[4]) && $w_disabled_fields[4]=='no') {
|
| 1573 |
$g++;
|
| 1574 |
+
$address_fields .= '<span style="float: '.(($g%2==0) ? 'right' : 'left').'; width: 48%; padding-bottom: 8px;"><input type="text" id="wdform_'.$id1.'_postal'.$form_id.'" name="wdform_'.($id1+4).'_postal'.$form_id.'" value="'.(isset($_POST['wdform_'.($id1+4).'_postal'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.($id1+4).'_postal'.$form_id])) : "").'" style="width: 100%;" '.$param['attributes'].'><label class="mini_label">'.$w_mini_labels[4].'</label></span>';
|
| 1575 |
}
|
| 1576 |
$w_countries = array("","Afghanistan","Albania","Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cambodia","Cameroon","Canada","Cape Verde","Central African Republic","Chad","Chile","China","Colombia","Comoros","Congo (Brazzaville)","Congo","Costa Rica","Cote d'Ivoire","Croatia","Cuba","Cyprus","Czech Republic","Denmark","Djibouti","Dominica","Dominican Republic","East Timor (Timor Timur)","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Ethiopia","Fiji","Finland","France","Gabon","Gambia, The","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Korea, North","Korea, South","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Macedonia","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","Norway","Oman","Pakistan","Palau","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia and Montenegro","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","Spain","Sri Lanka","Sudan","Suriname","Swaziland","Sweden","Switzerland","Syria","Taiwan","Tajikistan","Tanzania","Thailand","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States","Uruguay","Uzbekistan","Vanuatu","Vatican City","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe");
|
| 1577 |
$w_options = '';
|
| 1578 |
+
$post_country = isset($_POST['wdform_'.($id1+5).'_country'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.($id1+5).'_country'.$form_id])) : "";
|
| 1579 |
foreach($w_countries as $w_country) {
|
| 1580 |
if($w_country == $post_country) {
|
| 1581 |
$selected = 'selected="selected"';
|
| 1608 |
}
|
| 1609 |
';
|
| 1610 |
}
|
| 1611 |
+
$post = isset($_POST['wdform_'.($id1+5).'_country'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.($id1+5).'_country'.$form_id])) : NULL;
|
| 1612 |
if(isset($post)) {
|
| 1613 |
+
$onload_js .=' jQuery("#wdform_'.$id1.'_country'.$form_id.'").val("'.(isset($_POST['wdform_'.($id1+5)."_country".$form_id]) ? esc_html(stripslashes($_POST['wdform_'.($id1+5)."_country".$form_id])) : '').'");';
|
| 1614 |
}
|
| 1615 |
if (isset($w_disabled_fields[6]) && $w_disabled_fields[6]=='yes') {
|
| 1616 |
$onload_js .=' jQuery("#wdform_'.$id1.'_country'.$form_id.'").change(function() {
|
| 1624 |
if(jQuery("#wdform_'.$id1.'_state'.$form_id.'").attr("tagName")=="SELECT")
|
| 1625 |
{
|
| 1626 |
|
| 1627 |
+
jQuery("#wdform_'.$id1.'_state'.$form_id.'").parent().append("<input type=\"text\" id=\"wdform_'.$id1.'_state'.$form_id.'\" name=\"wdform_'.($id1+3).'_state'.$form_id.'\" value=\"'.(isset($_POST['wdform_'.($id1+3).'_state'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.($id1+3).'_state'.$form_id])) : "").'\" style=\"width: 100%;\" '.$param['attributes'].'><label class=\"mini_label\">'.$w_mini_labels[3].'</label>");
|
| 1628 |
jQuery("#wdform_'.$id1.'_state'.$form_id.'").parent().children("select:first, label:first").remove();
|
| 1629 |
}
|
| 1630 |
}
|
| 1650 |
}
|
| 1651 |
}
|
| 1652 |
|
| 1653 |
+
$param['w_first_val']=(isset($_POST['wdform_'.$id1.'_element'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element'.$form_id])) : $param['w_first_val']);
|
| 1654 |
|
| 1655 |
$wdformfieldsize = ($param['w_field_label_pos']=="left" ? ($param['w_field_label_size']+$param['w_size']) : max($param['w_field_label_size'], $param['w_size']));
|
| 1656 |
$param['w_field_label_pos1'] = ($param['w_field_label_pos']=="left" ? "float: left;" : "");
|
| 1740 |
$param['w_choices_value'] = explode('***',$param['w_choices_value']);
|
| 1741 |
$param['w_choices_params'] = explode('***',$param['w_choices_params']);
|
| 1742 |
}
|
| 1743 |
+
$post_value = isset($_POST["counter".$form_id]) ? esc_html($_POST["counter".$form_id]) : NULL;
|
| 1744 |
$is_other=false;
|
| 1745 |
|
| 1746 |
if (isset($post_value)) {
|
| 1747 |
if($param['w_allow_other']=="yes") {
|
| 1748 |
$is_other = FALSE;
|
| 1749 |
+
$other_element = isset($_POST['wdform_'.$id1."_other_input".$form_id]) ? esc_html($_POST['wdform_'.$id1."_other_input".$form_id]) : NULL;
|
| 1750 |
if (isset($other_element)) {
|
| 1751 |
$is_other = TRUE;
|
| 1752 |
}
|
| 1832 |
$param['w_choices_checked'][$key]=($param['w_choices_checked'][$key]=='true' ? 'checked="checked"' : '');
|
| 1833 |
}
|
| 1834 |
else {
|
| 1835 |
+
$post_valuetemp = isset($_POST['wdform_'.$id1."_element".$form_id.$key]) ? esc_html(stripslashes($_POST['wdform_'.$id1."_element".$form_id.$key])) : NULL;
|
| 1836 |
$param['w_choices_checked'][$key]=(isset($post_valuetemp) ? 'checked="checked"' : '');
|
| 1837 |
}
|
| 1838 |
$choice_value = isset($param['w_choices_value']) ? $param['w_choices_value'][$key] : $choice;
|
| 1862 |
';
|
| 1863 |
}
|
| 1864 |
if($is_other) {
|
| 1865 |
+
$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]) ? esc_html(stripslashes($_POST['wdform_'.$id1."_other_input".$form_id])) : '').'");';
|
| 1866 |
}
|
| 1867 |
if($param['w_randomize']=='yes')
|
| 1868 |
{
|
| 1913 |
$param['w_choices_value'] = explode('***',$param['w_choices_value']);
|
| 1914 |
$param['w_choices_params'] = explode('***',$param['w_choices_params']);
|
| 1915 |
}
|
| 1916 |
+
$post_value = isset($_POST["counter".$form_id]) ? esc_html($_POST["counter".$form_id]) : NULL;
|
| 1917 |
$is_other=false;
|
| 1918 |
|
| 1919 |
if(isset($post_value)) {
|
| 1920 |
if($param['w_allow_other']=="yes") {
|
| 1921 |
$is_other=false;
|
| 1922 |
+
$other_element = isset($_POST['wdform_'.$id1."_other_input".$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1."_other_input".$form_id])) : "";
|
| 1923 |
if(isset($other_element)) {
|
| 1924 |
$is_other=true;
|
| 1925 |
}
|
| 2004 |
$param['w_choices_checked'][$key]=($param['w_choices_checked'][$key]=='true' ? 'checked="checked"' : '');
|
| 2005 |
}
|
| 2006 |
else {
|
| 2007 |
+
$param['w_choices_checked'][$key] = (htmlspecialchars($choice) == htmlspecialchars(isset($_POST['wdform_'.$id1."_element".$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1."_element".$form_id])) : "") ? 'checked="checked"' : '');
|
| 2008 |
}
|
| 2009 |
$choice_value = isset($param['w_choices_value']) ? $param['w_choices_value'][$key] : $choice;
|
| 2010 |
$rep.='<div style="display: '.($param['w_flow']!='hor' ? 'table-cell' : 'table-row' ).';"><label class="wdform-ch-rad-label" for="wdform_'.$id1.'_element'.$form_id.''.$key1.'" '.$param['w_field_option_pos1'].'>'.$choice.'</label><div class="radio-div forlabs" '.$param['w_field_option_pos2'].'><input type="radio" '.(($param['w_allow_other']=="yes" && $param['w_allow_other_num']==$key) ? 'other="1"' : '' ).' id="wdform_'.$id1.'_element'.$form_id.''.$key1.'" name="wdform_'.$id1.'_element'.$form_id.'" value="'.htmlspecialchars($choice_value).'" onclick="set_default("wdform_'.$id1.'","'.$key1.'","'.$form_id.'"); '.(($param['w_allow_other']=="yes" && $param['w_allow_other_num']==$key) ? 'show_other_input("wdform_'.$id1.'","'.$form_id.'");' : '').'" '.$param['w_choices_checked'][$key].' '.$param['attributes'].'><label for="wdform_'.$id1.'_element'.$form_id.''.$key1.'"></label></div></div>';
|
| 2028 |
}';
|
| 2029 |
}
|
| 2030 |
if($is_other) {
|
| 2031 |
+
$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]) ? esc_html(stripslashes($_POST['wdform_'.$id1."_other_input".$form_id])) : '').'");';
|
| 2032 |
}
|
| 2033 |
if($param['w_randomize']=='yes')
|
| 2034 |
{
|
| 2078 |
if(!isset($param['w_value_disabled']))
|
| 2079 |
$param['w_value_disabled'] = 'no';
|
| 2080 |
|
| 2081 |
+
$post_value = isset($_POST["counter".$form_id]) ? esc_html($_POST["counter".$form_id]) : NULL;
|
| 2082 |
|
| 2083 |
$rep='<div type="type_own_select" class="wdform-field" style="width:'.$wdformfieldsize.'px"><div class="wdform-label-section" style="'.$param['w_field_label_pos1'].'; width: '.$param['w_field_label_size'].'px;"><span class="wdform-label">'.$label.'</span>';
|
| 2084 |
if($required) {
|
| 2188 |
$required = ($param['w_required']=="yes" ? true : false);
|
| 2189 |
$param['w_countries'] = explode('***',$param['w_countries']);
|
| 2190 |
|
| 2191 |
+
$post_value = isset($_POST["counter".$form_id]) ? esc_html($_POST["counter".$form_id]) : NULL;
|
| 2192 |
$selected='';
|
| 2193 |
|
| 2194 |
$rep='<div type="type_country" class="wdform-field" style="width:'.$wdformfieldsize.'px"><div class="wdform-label-section" style="'.$param['w_field_label_pos1'].'; width: '.$param['w_field_label_size'].'px;"><span class="wdform-label">'.$label.'</span>';
|
| 2198 |
$rep.='</div><div class="wdform-element-section '.$param['w_class'].'" style="'.$param['w_field_label_pos2'].' width: '.$param['w_size'].'px;"><select id="wdform_'.$id1.'_element'.$form_id.'" name="wdform_'.$id1.'_element'.$form_id.'" style="width: 100%;" '.$param['attributes'].'>';
|
| 2199 |
foreach($param['w_countries'] as $key => $choice) {
|
| 2200 |
if(isset($post_value)) {
|
| 2201 |
+
$selected = (htmlspecialchars($choice) == htmlspecialchars(isset($_POST['wdform_'.$id1."_element".$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1."_element".$form_id])) : "") ? 'selected="selected"' : '');
|
| 2202 |
}
|
| 2203 |
$choice_value=$choice;
|
| 2204 |
$rep.='<option value="'.$choice_value.'" '.$selected.'>'.$choice.'</option>';
|
| 2252 |
$w_sec_label='';
|
| 2253 |
|
| 2254 |
if($param['w_sec']=='1') {
|
| 2255 |
+
$w_sec = '<div align="center" style="display: table-cell;"><span class="wdform_colon" style="vertical-align: middle;"> : </span></div><div style="display: table-cell;"><input type="text" value="'.(isset($_POST['wdform_'.$id1."_ss".$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1."_ss".$form_id])) : $param['w_ss']).'" class="time_box" id="wdform_'.$id1.'_ss'.$form_id.'" name="wdform_'.$id1.'_ss'.$form_id.'" onkeypress="return check_second(event, "wdform_'.$id1.'_ss'.$form_id.'")" '.$param['attributes'].'></div>';
|
| 2256 |
|
| 2257 |
$w_sec_label='<div style="display: table-cell;"></div><div style="display: table-cell;"><label class="mini_label">'.$w_mini_labels[2].'</label></div>';
|
| 2258 |
}
|
| 2259 |
|
| 2260 |
if($param['w_time_type']=='12') {
|
| 2261 |
+
if((isset($_POST['wdform_'.$id1."_am_pm".$form_id]) ? esc_html($_POST['wdform_'.$id1."_am_pm".$form_id]) : $param['w_am_pm'])=='am') {
|
| 2262 |
$am_ = "selected=\"selected\"";
|
| 2263 |
$pm_ = "";
|
| 2264 |
}
|
| 2279 |
if($required) {
|
| 2280 |
$rep.='<span class="wdform-required">'.$required_sym.'</span>';
|
| 2281 |
}
|
| 2282 |
+
$rep.='</div><div class="wdform-element-section '.$param['w_class'].'" style="'.$param['w_field_label_pos2'].';"><div style="display: table;"><div style="display: table-row;"><div style="display: table-cell;"><input type="text" value="'.(isset($_POST['wdform_'.$id1."_hh".$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1."_hh".$form_id])) : $param['w_hh']).'" class="time_box" id="wdform_'.$id1.'_hh'.$form_id.'" name="wdform_'.$id1.'_hh'.$form_id.'" onkeypress="return check_hour(event, "wdform_'.$id1.'_hh'.$form_id.'", "23")" '.$param['attributes'].'></div><div align="center" style="display: table-cell;"><span class="wdform_colon" style="vertical-align: middle;"> : </span></div><div style="display: table-cell;"><input type="text" value="'.(isset($_POST['wdform_'.$id1."_mm".$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1."_mm".$form_id])) : $param['w_mm']).'" class="time_box" id="wdform_'.$id1.'_mm'.$form_id.'" name="wdform_'.$id1.'_mm'.$form_id.'" onkeypress="return check_minute(event, "wdform_'.$id1.'_mm'.$form_id.'")" '.$param['attributes'].'></div>'.$w_sec.$w_time_type.'</div><div style="display: table-row;"><div style="display: table-cell;"><label class="mini_label">'.$w_mini_labels[0].'</label></div><div style="display: table-cell;"></div><div style="display: table-cell;"><label class="mini_label">'.$w_mini_labels[1].'</label></div>'.$w_sec_label.$w_time_type_label.'</div></div></div></div>';
|
| 2283 |
|
| 2284 |
if($required) {
|
| 2285 |
$check_js.='
|
| 2320 |
$param['w_field_label_pos2'] = ($param['w_field_label_pos']=="left" ? "" : "display:block;");
|
| 2321 |
$required = ($param['w_required']=="yes" ? true : false);
|
| 2322 |
|
| 2323 |
+
$param['w_date']=(isset($_POST['wdform_'.$id1."_element".$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1."_element".$form_id])) : $param['w_date']);
|
| 2324 |
|
| 2325 |
$rep ='<div type="type_date" class="wdform-field"><div class="wdform-label-section" style="'.$param['w_field_label_pos1'].'; width: '.$param['w_field_label_size'].'px;"><span class="wdform-label">'.$label.'</span>';
|
| 2326 |
if($required) {
|
| 2365 |
}
|
| 2366 |
}
|
| 2367 |
|
| 2368 |
+
$param['w_day']=(isset($_POST['wdform_'.$id1."_day".$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1."_day".$form_id])) : $param['w_day']);
|
| 2369 |
+
$param['w_month']=(isset($_POST['wdform_'.$id1."_month".$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1."_month".$form_id])) : $param['w_month']);
|
| 2370 |
+
$param['w_year']=(isset($_POST['wdform_'.$id1."_year".$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1."_year".$form_id])) : $param['w_year']);
|
| 2371 |
|
| 2372 |
$param['w_field_label_pos1'] = ($param['w_field_label_pos']=="left" ? "float: left;" : "");
|
| 2373 |
$param['w_field_label_pos2'] = ($param['w_field_label_pos']=="left" ? "" : "display:block;");
|
| 2685 |
$w_first_val = explode('***',$param['w_first_val']);
|
| 2686 |
$w_title = explode('***',$param['w_title']);
|
| 2687 |
|
| 2688 |
+
$param['w_first_val']=(isset($_POST['wdform_'.$id1.'_element_dollars'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element_dollars'.$form_id])) : $w_first_val[0]).'***'.(isset($_POST['wdform_'.$id1.'_element_cents'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element_cents'.$form_id])) : $w_first_val[1]);
|
| 2689 |
|
| 2690 |
$param['w_field_label_pos1'] = ($param['w_field_label_pos']=="left" ? "float: left;" : "");
|
| 2691 |
$param['w_field_label_pos2'] = ($param['w_field_label_pos']=="left" ? "" : "display:block;");
|
| 2796 |
if(isset($param['w_choices_params']))
|
| 2797 |
$param['w_choices_params'] = explode('***',$param['w_choices_params']);
|
| 2798 |
|
| 2799 |
+
$post_value = isset($_POST['wdform_'.$id1."_element".$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1."_element".$form_id])) : NULL;
|
| 2800 |
$rep='<div type="type_paypal_select" class="wdform-field" style="width:'.$wdformfieldsize.'px"><div class="wdform-label-section" style="'.$param['w_field_label_pos1'].'; width: '.$param['w_field_label_size'].'px;"><span class="wdform-label">'.$label.'</span>';
|
| 2801 |
if($required)
|
| 2802 |
$rep.='<span class="wdform-required">'.$required_sym.'</span>';
|
| 2877 |
}
|
| 2878 |
$rep.='</select><div id="wdform_'.$id1.'_div'.$form_id.'">';
|
| 2879 |
if($param['w_quantity']=="yes") {
|
| 2880 |
+
$rep.='<div class="paypal-property"><label class="mini_label" style="margin: 0px 5px;">'.(__("Quantity", 'form_maker')).'</label><input type="text" value="'.(isset($_POST['wdform_'.$id1."_element_quantity".$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1."_element_quantity".$form_id])) : $param['w_quantity_value']).'" id="wdform_'.$id1.'_element_quantity'.$form_id.'" name="wdform_'.$id1.'_element_quantity'.$form_id.'" class="wdform-quantity"></div>';
|
| 2881 |
}
|
| 2882 |
if($param['w_property'][0]) {
|
| 2883 |
foreach($param['w_property'] as $key => $property) {
|
| 2889 |
$param['w_property_values'][$key] = explode('###',$param['w_property_values'][$key]);
|
| 2890 |
$param['w_property_values'][$key] = array_slice($param['w_property_values'][$key],1, count($param['w_property_values'][$key]));
|
| 2891 |
foreach($param['w_property_values'][$key] as $subkey => $property_value) {
|
| 2892 |
+
$rep.='<option id="wdform_'.$id1.'_'.$key.'_option'.$subkey.'" value="'.$property_value.'" '.(isset($_POST['wdform_'.$id1.'_property'.$form_id.''.$key]) && esc_html(stripslashes($_POST['wdform_'.$id1.'_property'.$form_id.''.$key])) == $property_value ? 'selected="selected"' : "").'>'.$property_value.'</option>';
|
| 2893 |
}
|
| 2894 |
$rep.='</select></div></div>';
|
| 2895 |
}
|
| 3048 |
|
| 3049 |
$rep.='<div id="wdform_'.$id1.'_div'.$form_id.'">';
|
| 3050 |
if($param['w_quantity']=="yes") {
|
| 3051 |
+
$rep.='<div class="paypal-property"><label class="mini_label" style="margin: 0px 5px;">'.(__("Quantity", 'form_maker')).'</label><input type="text" value="'.(isset($_POST['wdform_'.$id1."_element_quantity".$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1."_element_quantity".$form_id])) : $param['w_quantity_value']).'" id="wdform_'.$id1.'_element_quantity'.$form_id.'" name="wdform_'.$id1.'_element_quantity'.$form_id.'" class="wdform-quantity"></div>';
|
| 3052 |
}
|
| 3053 |
if($param['w_property'][0]) {
|
| 3054 |
foreach($param['w_property'] as $key => $property) {
|
| 3060 |
$param['w_property_values'][$key] = explode('###',$param['w_property_values'][$key]);
|
| 3061 |
$param['w_property_values'][$key] = array_slice($param['w_property_values'][$key],1, count($param['w_property_values'][$key]));
|
| 3062 |
foreach($param['w_property_values'][$key] as $subkey => $property_value) {
|
| 3063 |
+
$rep.='<option id="wdform_'.$id1.'_'.$key.'_option'.$subkey.'" value="'.$property_value.'" '.(isset($_POST['wdform_'.$id1.'_property'.$form_id.''.$key]) && esc_html(stripslashes($_POST['wdform_'.$id1.'_property'.$form_id.''.$key])) == $property_value ? 'selected="selected"' : "").'>'.$property_value.'</option>';
|
| 3064 |
}
|
| 3065 |
$rep.='</select></div></div>';
|
| 3066 |
}
|
| 3204 |
}
|
| 3205 |
$rep.='<div id="wdform_'.$id1.'_div'.$form_id.'">';
|
| 3206 |
if($param['w_quantity']=="yes") {
|
| 3207 |
+
$rep.='<div class="paypal-property"><label class="mini_label" style="margin: 0px 5px;">'.(__("Quantity", 'form_maker')).'</label><input type="text" value="'.(isset($_POST['wdform_'.$id1."_element_quantity".$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1."_element_quantity".$form_id])) : $param['w_quantity_value']).'" id="wdform_'.$id1.'_element_quantity'.$form_id.'" name="wdform_'.$id1.'_element_quantity'.$form_id.'" class="wdform-quantity"></div>';
|
| 3208 |
}
|
| 3209 |
if($param['w_property'][0]) {
|
| 3210 |
foreach($param['w_property'] as $key => $property) {
|
| 3216 |
$param['w_property_values'][$key] = explode('###',$param['w_property_values'][$key]);
|
| 3217 |
$param['w_property_values'][$key] = array_slice($param['w_property_values'][$key],1, count($param['w_property_values'][$key]));
|
| 3218 |
foreach($param['w_property_values'][$key] as $subkey => $property_value) {
|
| 3219 |
+
$rep.='<option id="wdform_'.$id1.'_'.$key.'_option'.$subkey.'" value="'.$property_value.'" '.(isset($_POST['wdform_'.$id1.'_property'.$form_id.''.$key]) && esc_html(stripslashes($_POST['wdform_'.$id1.'_property'.$form_id.''.$key])) == $property_value ? 'selected="selected"' : "").'>'.$property_value.'</option>';
|
| 3220 |
}
|
| 3221 |
$rep.='</select></div></div>';
|
| 3222 |
}
|
| 3479 |
}
|
| 3480 |
';
|
| 3481 |
}
|
| 3482 |
+
$post = isset($_POST['wdform_'.$id1.'_selected_star_amount'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_selected_star_amount'.$form_id])) : NULL;
|
| 3483 |
if(isset($post)) {
|
| 3484 |
$onload_js .=' select_star_rating('.($post-1).',"wdform_'.$id1.'", '.$form_id.',"'.$param['w_field_label_col'].'", "'.$param['w_star_amount'].'");';
|
| 3485 |
}
|
| 3510 |
$numbers = '';
|
| 3511 |
$radio_buttons = '';
|
| 3512 |
$to_check=0;
|
| 3513 |
+
$post_value = isset($_POST['wdform_'.$id1.'_scale_radio'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_scale_radio'.$form_id])) : NULL;
|
| 3514 |
if(isset($post_value)) {
|
| 3515 |
$to_check=$post_value;
|
| 3516 |
}
|
| 3563 |
$param['w_field_label_pos1'] = ($param['w_field_label_pos']=="left" ? "float: left;" : "");
|
| 3564 |
$param['w_field_label_pos2'] = ($param['w_field_label_pos']=="left" ? "" : "display:block;");
|
| 3565 |
$required = ($param['w_required']=="yes" ? true : false);
|
| 3566 |
+
$param['w_field_value']=(isset($_POST['wdform_'.$id1.'_element'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element'.$form_id])) : $param['w_field_value']);
|
| 3567 |
|
| 3568 |
$rep ='<div type="type_spinner" class="wdform-field"><div class="wdform-label-section '.$param['w_class'].'" style="'.$param['w_field_label_pos1'].' width: '.$param['w_field_label_size'].'px;"><span class="wdform-label">'.$label.'</span>';
|
| 3569 |
if($required) {
|
| 3617 |
$param['w_field_label_pos1'] = ($param['w_field_label_pos']=="left" ? "float: left;" : "");
|
| 3618 |
$param['w_field_label_pos2'] = ($param['w_field_label_pos']=="left" ? "" : "display:block;");
|
| 3619 |
$required = ($param['w_required']=="yes" ? true : false);
|
| 3620 |
+
$param['w_field_value']=(isset($_POST['wdform_'.$id1.'_slider_value'.$form_id]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_slider_value'.$form_id])) : $param['w_field_value']);
|
| 3621 |
|
| 3622 |
$rep ='<div type="type_slider" class="wdform-field"><div class="wdform-label-section '.$param['w_class'].'" style="'.$param['w_field_label_pos1'].' width: '.$param['w_field_label_size'].'px;"><span class="wdform-label">'.$label.'</span>';
|
| 3623 |
if($required) {
|
| 3674 |
$param['w_field_label_pos1'] = ($param['w_field_label_pos']=="left" ? "float: left;" : "");
|
| 3675 |
$param['w_field_label_pos2'] = ($param['w_field_label_pos']=="left" ? "" : "display:block;");
|
| 3676 |
$required = ($param['w_required']=="yes" ? true : false);
|
| 3677 |
+
$param['w_field_value1']=(isset($_POST['wdform_'.$id1.'_element'.$form_id.'0']) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element'.$form_id.'0'])) : $param['w_field_value1']);
|
| 3678 |
+
$param['w_field_value2']=(isset($_POST['wdform_'.$id1.'_element'.$form_id.'1']) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element'.$form_id.'1'])) : $param['w_field_value2']);
|
| 3679 |
|
| 3680 |
$w_mini_labels = explode('***',$param['w_mini_labels']);
|
| 3681 |
$rep ='<div type="type_range" class="wdform-field"><div class="wdform-label-section '.$param['w_class'].'" style="'.$param['w_field_label_pos1'].' width: '.$param['w_field_label_size'].'px;"><span class="wdform-label">'.$label.'</span>';
|
| 3739 |
$grading_items ='';
|
| 3740 |
|
| 3741 |
for($i=0; $i<count($w_items); $i++) {
|
| 3742 |
+
$value=(isset($_POST['wdform_'.$id1.'_element'.$form_id.'_'.$i]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_element'.$form_id.'_'.$i])) : '');
|
| 3743 |
$grading_items .= '<div class="wdform_grading"><input type="text" id="wdform_'.$id1.'_element'.$form_id.'_'.$i.'" name="wdform_'.$id1.'_element'.$form_id.'_'.$i.'" value="'.$value.'" '.$param['attributes'].'><label class="wdform-ch-rad-label" for="wdform_'.$id1.'_element'.$form_id.'_'.$i.'">'.$w_items[$i].'</label></div>';
|
| 3744 |
$required_check.=' && jQuery("#wdform_'.$id1.'_element'.$form_id.'_'.$i.'").val()==""';
|
| 3745 |
}
|
| 3788 |
break;
|
| 3789 |
}
|
| 3790 |
case 'type_matrix': {
|
| 3791 |
+
$params_names=array('w_field_label_size','w_field_label_pos', 'w_field_input_type', 'w_rows', 'w_columns', 'w_required','w_class','w_textbox_size');
|
| 3792 |
$temp=$params;
|
| 3793 |
foreach($params_names as $params_name ) {
|
| 3794 |
$temp=explode('*:*'.$params_name.'*:*',$temp);
|
| 3805 |
$param['w_field_label_pos1'] = ($param['w_field_label_pos']=="left" ? "float: left;" : "");
|
| 3806 |
$param['w_field_label_pos2'] = ($param['w_field_label_pos']=="left" ? "" : "display:block;");
|
| 3807 |
$required = ($param['w_required']=="yes" ? true : false);
|
| 3808 |
+
$param['w_textbox_size'] = isset($param['w_textbox_size']) ? $param['w_textbox_size'] : '120';
|
| 3809 |
$w_rows = explode('***',$param['w_rows']);
|
| 3810 |
$w_columns = explode('***',$param['w_columns']);
|
| 3811 |
$column_labels ='';
|
| 3820 |
$rows_columns .= '<div class="wdform-matrix-cell">';
|
| 3821 |
if($param['w_field_input_type']=='radio') {
|
| 3822 |
$to_check=0;
|
| 3823 |
+
$post_value = isset($_POST['wdform_'.$id1.'_input_element'.$form_id.''.$i]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_input_element'.$form_id.''.$i])) : NULL;
|
| 3824 |
if(isset($post_value)) {
|
| 3825 |
$to_check=$post_value;
|
| 3826 |
}
|
| 3829 |
else {
|
| 3830 |
if($param['w_field_input_type']=='checkbox') {
|
| 3831 |
$to_check=0;
|
| 3832 |
+
$post_value = isset($_POST['wdform_'.$id1.'_input_element'.$form_id.''.$i.'_'.$k]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_input_element'.$form_id.''.$i.'_'.$k])) : NULL;
|
| 3833 |
if(isset($post_value)) {
|
| 3834 |
$to_check=$post_value;
|
| 3835 |
}
|
| 3837 |
}
|
| 3838 |
else {
|
| 3839 |
if($param['w_field_input_type']=='text') {
|
| 3840 |
+
$rows_columns .= '<input id="wdform_'.$id1.'_input_element'.$form_id.''.$i.'_'.$k.'" type="text" name="wdform_'.$id1.'_input_element'.$form_id.''.$i.'_'.$k.'" value="'.(isset($_POST['wdform_'.$id1.'_input_element'.$form_id.''.$i.'_'.$k]) ? esc_html(stripslashes($_POST['wdform_'.$id1.'_input_element'.$form_id.''.$i.'_'.$k])) : "").'" style="width:'.$param['w_textbox_size'].'px">';
|
| 3841 |
}
|
| 3842 |
else {
|
| 3843 |
if($param['w_field_input_type']=='select') {
|
| 3844 |
+
$rows_columns .= '<select id="wdform_'.$id1.'_select_yes_no'.$form_id.''.$i.'_'.$k.'" name="wdform_'.$id1.'_select_yes_no'.$form_id.''.$i.'_'.$k.'" ><option value="" '.(isset($_POST['wdform_'.$id1.'_select_yes_no'.$form_id.''.$i.'_'.$k]) && esc_html($_POST['wdform_'.$id1.'_select_yes_no'.$form_id.''.$i.'_'.$k]) == "" ? "selected=\"selected\"": "").'> </option><option value="yes" '.(isset($_POST['wdform_'.$id1.'_select_yes_no'.$form_id.''.$i.'_'.$k]) && esc_html($_POST['wdform_'.$id1.'_select_yes_no'.$form_id.''.$i.'_'.$k]) == "yes" ? "selected=\"selected\"": "").'>Yes</option><option value="no" '.(isset($_POST['wdform_'.$id1.'_select_yes_no'.$form_id.''.$i.'_'.$k]) && esc_html($_POST['wdform_'.$id1.'_select_yes_no'.$form_id.''.$i.'_'.$k]) == "no" ? "selected=\"selected\"": "").'>No</option></select>';
|
| 3845 |
}
|
| 3846 |
}
|
| 3847 |
}
|
| 4414 |
case "type_submitter_mail":
|
| 4415 |
{
|
| 4416 |
$form_maker_front_end .= "if(document.getElementById('" . $label_id[$key] . "_element" . $id . "'))
|
| 4417 |
+
if(document.getElementById('" . $label_id[$key] . "_element" . $id . "').title!='" . addslashes((isset($_POST[$label_id[$key] . "_element" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_element" . $id])) : "")) . "')
|
| 4418 |
+
{ document.getElementById('" . $label_id[$key] . "_element" . $id . "').value='" . addslashes(isset($_POST[$label_id[$key] . "_element" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_element" . $id])) : "") . "';
|
| 4419 |
document.getElementById('" . $label_id[$key] . "_element" . $id . "').className='input_active';
|
| 4420 |
}
|
| 4421 |
";
|
| 4429 |
"\r"
|
| 4430 |
);
|
| 4431 |
$form_maker_front_end .= "if(document.getElementById('" . $label_id[$key] . "_element" . $id . "'))
|
| 4432 |
+
if(document.getElementById('" . $label_id[$key] . "_element" . $id . "').title!='" . str_replace($order, '\n', addslashes(isset($_POST[$label_id[$key] . "_element" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_element" . $id])) : "")) . "')
|
| 4433 |
+
{ document.getElementById('" . $label_id[$key] . "_element" . $id . "').innerHTML='" . str_replace($order, '\n', addslashes(isset($_POST[$label_id[$key] . "_element" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_element" . $id])) : "")) . "';
|
| 4434 |
document.getElementById('" . $label_id[$key] . "_element" . $id . "').className='input_active';
|
| 4435 |
}
|
| 4436 |
";
|
| 4438 |
}
|
| 4439 |
case "type_name":
|
| 4440 |
{
|
| 4441 |
+
$element_title = isset($_POST[$label_id[$key] . "_element_title" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_element_title" . $id])) : "";
|
| 4442 |
if (isset($_POST[$label_id[$key] . "_element_title" . $id])) {
|
| 4443 |
$form_maker_front_end .= "if(document.getElementById('" . $label_id[$key] . "_element_first" . $id . "'))
|
| 4444 |
{
|
| 4445 |
+
if(document.getElementById('" . $label_id[$key] . "_element_title" . $id . "').title!='" . addslashes(isset($_POST[$label_id[$key] . "_element_title" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_element_title" . $id])) : "") . "')
|
| 4446 |
+
{ document.getElementById('" . $label_id[$key] . "_element_title" . $id . "').value='" . addslashes(isset($_POST[$label_id[$key] . "_element_title" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_element_title" . $id])) : "") . "';
|
| 4447 |
document.getElementById('" . $label_id[$key] . "_element_title" . $id . "').className='input_active';
|
| 4448 |
}
|
| 4449 |
|
| 4450 |
+
if(document.getElementById('" . $label_id[$key] . "_element_first" . $id . "').title!='" . addslashes(isset($_POST[$label_id[$key] . "_element_first" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_element_first" . $id])) : "") . "')
|
| 4451 |
+
{ document.getElementById('" . $label_id[$key] . "_element_first" . $id . "').value='" . addslashes(isset($_POST[$label_id[$key] . "_element_first" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_element_first" . $id])) : "") . "';
|
| 4452 |
document.getElementById('" . $label_id[$key] . "_element_first" . $id . "').className='input_active';
|
| 4453 |
}
|
| 4454 |
|
| 4455 |
+
if(document.getElementById('" . $label_id[$key] . "_element_last" . $id . "').title!='" . addslashes(isset($_POST[$label_id[$key] . "_element_last" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_element_last" . $id])) : "") . "')
|
| 4456 |
+
{ document.getElementById('" . $label_id[$key] . "_element_last" . $id . "').value='" . addslashes(isset($_POST[$label_id[$key] . "_element_last" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_element_last" . $id])) : "") . "';
|
| 4457 |
document.getElementById('" . $label_id[$key] . "_element_last" . $id . "').className='input_active';
|
| 4458 |
}
|
| 4459 |
|
| 4460 |
+
if(document.getElementById('" . $label_id[$key] . "_element_middle" . $id . "').title!='" . addslashes(isset($_POST[$label_id[$key] . "_element_middle" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_element_middle" . $id])) : "") . "')
|
| 4461 |
+
{ document.getElementById('" . $label_id[$key] . "_element_middle" . $id . "').value='" . addslashes(isset($_POST[$label_id[$key] . "_element_middle" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_element_middle" . $id])) : "") . "';
|
| 4462 |
document.getElementById('" . $label_id[$key] . "_element_middle" . $id . "').className='input_active';
|
| 4463 |
}
|
| 4464 |
|
| 4468 |
$form_maker_front_end .= "if(document.getElementById('" . $label_id[$key] . "_element_first" . $id . "'))
|
| 4469 |
{
|
| 4470 |
|
| 4471 |
+
if(document.getElementById('" . $label_id[$key] . "_element_first" . $id . "').title!='" . addslashes(isset($_POST[$label_id[$key] . "_element_first" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_element_first" . $id])) : "") . "')
|
| 4472 |
+
{ document.getElementById('" . $label_id[$key] . "_element_first" . $id . "').value='" . addslashes(isset($_POST[$label_id[$key] . "_element_first" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_element_first" . $id])) : "") . "';
|
| 4473 |
document.getElementById('" . $label_id[$key] . "_element_first" . $id . "').className='input_active';
|
| 4474 |
}
|
| 4475 |
|
| 4476 |
+
if(document.getElementById('" . $label_id[$key] . "_element_last" . $id . "').title!='" . addslashes(isset($_POST[$label_id[$key] . "_element_last" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_element_last" . $id])) : "") . "')
|
| 4477 |
+
{ document.getElementById('" . $label_id[$key] . "_element_last" . $id . "').value='" . addslashes(isset($_POST[$label_id[$key] . "_element_last" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_element_last" . $id])) : "") . "';
|
| 4478 |
document.getElementById('" . $label_id[$key] . "_element_last" . $id . "').className='input_active';
|
| 4479 |
}
|
| 4480 |
|
| 4486 |
{
|
| 4487 |
$form_maker_front_end .= "if(document.getElementById('" . $label_id[$key] . "_element_first" . $id . "'))
|
| 4488 |
{
|
| 4489 |
+
if(document.getElementById('" . $label_id[$key] . "_element_first" . $id . "').title!='" . addslashes(isset($_POST[$label_id[$key] . "_element_first" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_element_first" . $id])) : "") . "')
|
| 4490 |
+
{ document.getElementById('" . $label_id[$key] . "_element_first" . $id . "').value='" . addslashes(isset($_POST[$label_id[$key] . "_element_first" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_element_first" . $id])) : "") . "';
|
| 4491 |
document.getElementById('" . $label_id[$key] . "_element_first" . $id . "').className='input_active';
|
| 4492 |
}
|
| 4493 |
|
| 4494 |
+
if(document.getElementById('" . $label_id[$key] . "_element_last" . $id . "').title!='" . addslashes(isset($_POST[$label_id[$key] . "_element_last" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_element_last" . $id])) : "") . "')
|
| 4495 |
+
{ document.getElementById('" . $label_id[$key] . "_element_last" . $id . "').value='" . addslashes(isset($_POST[$label_id[$key] . "_element_last" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_element_last" . $id])) : "") . "';
|
| 4496 |
document.getElementById('" . $label_id[$key] . "_element_last" . $id . "').className='input_active';
|
| 4497 |
}
|
| 4498 |
}";
|
| 4502 |
case "type_paypal_price": {
|
| 4503 |
$form_maker_front_end .= "if(document.getElementById('".$label_id[$key]."_element_dollars".$id."'))
|
| 4504 |
{
|
| 4505 |
+
if(document.getElementById('".$label_id[$key]."_element_dollars".$id."').title!='".addslashes(isset($_POST[$label_id[$key]."_element_dollars".$id]) ? esc_html(stripslashes($_POST[$label_id[$key]."_element_dollars".$id])) : "")."')
|
| 4506 |
+
{ document.getElementById('".$label_id[$key]."_element_dollars".$id."').value='".addslashes(isset($_POST[$label_id[$key]."_element_dollars".$id]) ? esc_html(stripslashes($_POST[$label_id[$key]."_element_dollars".$id])) : "")."';
|
| 4507 |
document.getElementById('".$label_id[$key]."_element_dollars".$id."').className='input_active';
|
| 4508 |
}
|
| 4509 |
|
| 4510 |
+
if(document.getElementById('".$label_id[$key]."_element_cents".$id."').title!='".addslashes(isset($_POST[$label_id[$key]."_element_cents".$id]) ? esc_html(stripslashes($_POST[$label_id[$key]."_element_cents".$id])) : "")."')
|
| 4511 |
+
{ document.getElementById('".$label_id[$key]."_element_cents".$id."').value='".addslashes(isset($_POST[$label_id[$key]."_element_cents".$id]) ? esc_html(stripslashes($_POST[$label_id[$key]."_element_cents".$id])) : "")."';
|
| 4512 |
document.getElementById('".$label_id[$key]."_element_cents".$id."').className='input_active';
|
| 4513 |
}
|
| 4514 |
}";
|
| 4520 |
|
| 4521 |
$form_maker_front_end .=
|
| 4522 |
"if(document.getElementById('".$label_id[$key]."_element".$id."')){
|
| 4523 |
+
document.getElementById('".$label_id[$key]."_element".$id."').value='".addslashes(isset($_POST[$label_id[$key]."_element".$id]) ? esc_html(stripslashes($_POST[$label_id[$key]."_element".$id])) : "")."';
|
| 4524 |
|
| 4525 |
if(document.getElementById('".$label_id[$key]."_element_quantity".$id."'))
|
| 4526 |
document.getElementById('".$label_id[$key]."_element_quantity".$id."').value='".((isset($_POST[$label_id[$key]."_element_quantity".$id]) && ((int) $_POST[$label_id[$key]."_element_quantity".$id] >= 1)) ? addslashes($_POST[$label_id[$key]."_element_quantity".$id]) : 1)."';
|
| 4527 |
";
|
| 4528 |
for($j=0; $j<100; $j++)
|
| 4529 |
{
|
| 4530 |
+
$element = isset($_POST[$label_id[$key]."_property".$id.$j]) ? esc_html(stripslashes($_POST[$label_id[$key]."_property".$id.$j])) : NULL;
|
| 4531 |
if(isset($element))
|
| 4532 |
{
|
| 4533 |
$form_maker_front_end .=
|
| 4552 |
";
|
| 4553 |
for($j=0; $j<100; $j++)
|
| 4554 |
{
|
| 4555 |
+
$element = isset($_POST[$label_id[$key]."_element".$id.$j]) ? esc_html(stripslashes($_POST[$label_id[$key]."_element".$id.$j])) : NULL;
|
| 4556 |
if(isset($element))
|
| 4557 |
{
|
| 4558 |
$form_maker_front_end .=
|
| 4568 |
";
|
| 4569 |
for($j=0; $j<100; $j++)
|
| 4570 |
{
|
| 4571 |
+
$element = isset($_POST[$label_id[$key]."_property".$id.$j]) ? esc_html(stripslashes($_POST[$label_id[$key]."_property".$id.$j])) : NULL;
|
| 4572 |
if(isset($element))
|
| 4573 |
{
|
| 4574 |
$form_maker_front_end .=
|
| 4586 |
if(document.getElementById('".$label_id[$key]."_element".$id."'+k))
|
| 4587 |
{
|
| 4588 |
document.getElementById('".$label_id[$key]."_element".$id."'+k).removeAttribute('checked');
|
| 4589 |
+
if(document.getElementById('".$label_id[$key]."_element".$id."'+k).value=='".addslashes(isset($_POST[$label_id[$key]."_element".$id]) ? esc_html(stripslashes($_POST[$label_id[$key]."_element".$id])) : "")."')
|
| 4590 |
{
|
| 4591 |
document.getElementById('".$label_id[$key]."_element".$id."'+k).setAttribute('checked', 'checked');
|
| 4592 |
|
| 4595 |
|
| 4596 |
|
| 4597 |
if(document.getElementById('".$label_id[$key]."_element_quantity".$id."'))
|
| 4598 |
+
document.getElementById('".$label_id[$key]."_element_quantity".$id."').value='".((isset($_POST[$label_id[$key]."_element_quantity".$id])) ? esc_html(stripslashes($_POST[$label_id[$key]."_element_quantity".$id])) : 1)."';
|
| 4599 |
";
|
| 4600 |
for($j=0; $j<100; $j++)
|
| 4601 |
{
|
| 4602 |
+
$element = isset($_POST[$label_id[$key]."_property".$id.$j]) ? esc_html(stripslashes($_POST[$label_id[$key]."_property".$id.$j])) : NULL;
|
| 4603 |
if(isset($element))
|
| 4604 |
{
|
| 4605 |
$form_maker_front_end .=
|
| 4621 |
if(document.getElementById('".$label_id[$key]."_element".$id."'+k))
|
| 4622 |
{
|
| 4623 |
document.getElementById('".$label_id[$key]."_element".$id."'+k).removeAttribute('checked');
|
| 4624 |
+
if(document.getElementById('".$label_id[$key]."_element".$id."'+k).value=='".addslashes(isset($_POST[$label_id[$key]."_element".$id]) ? esc_html(stripslashes($_POST[$label_id[$key]."_element".$id])) : "")."')
|
| 4625 |
{
|
| 4626 |
document.getElementById('".$label_id[$key]."_element".$id."'+k).setAttribute('checked', 'checked');
|
| 4627 |
|
| 4635 |
case "type_star_rating": {
|
| 4636 |
$form_maker_front_end .=
|
| 4637 |
"if(document.getElementById('".$label_id[$key]."_element".$id."')) {
|
| 4638 |
+
document.getElementById('".$label_id[$key]."_selected_star_amount".$id."').value='".addslashes(isset($_POST[$label_id[$key]."_selected_star_amount".$id]) ? esc_html(stripslashes($_POST[$label_id[$key]."_selected_star_amount".$id])) : "")."';
|
| 4639 |
if (document.getElementById('".$label_id[$key]."_selected_star_amount".$id."').value)
|
| 4640 |
select_star_rating((document.getElementById('".$label_id[$key]."_selected_star_amount".$id."').value-1),".$label_id[$key].",".$id.");
|
| 4641 |
}";
|
| 4648 |
"for (k=0; k<100; k++) {
|
| 4649 |
if (document.getElementById('".$label_id[$key]."_scale_radio".$id."_'+k)) {
|
| 4650 |
document.getElementById('".$label_id[$key]."_scale_radio".$id."_'+k).removeAttribute('checked');
|
| 4651 |
+
if (document.getElementById('".$label_id[$key]."_scale_radio".$id."_'+k).value=='".(isset($_POST[$label_id[$key]."_scale_radio".$id]) ? esc_html(stripslashes($_POST[$label_id[$key]."_scale_radio".$id])) : "")."')
|
| 4652 |
document.getElementById('".$label_id[$key]."_scale_radio".$id."_'+k).setAttribute('checked', 'checked');
|
| 4653 |
}
|
| 4654 |
}";
|
| 4658 |
case "type_spinner": {
|
| 4659 |
$form_maker_front_end .=
|
| 4660 |
"if (document.getElementById('".$label_id[$key]."_element".$id."')) {
|
| 4661 |
+
document.getElementById('".$label_id[$key]."_element".$id."').setAttribute('aria-valuenow','".(isset($_POST[$label_id[$key]."_element".$id]) ? esc_html(stripslashes($_POST[$label_id[$key]."_element".$id])) : "")."');
|
| 4662 |
}";
|
| 4663 |
break;
|
| 4664 |
|
| 4666 |
case "type_slider": {
|
| 4667 |
$form_maker_front_end .=
|
| 4668 |
"if (document.getElementById('".$label_id[$key]."_element".$id."'))
|
| 4669 |
+
document.getElementById('".$label_id[$key]."_element".$id."').setAttribute('aria-valuenow','".(isset($_POST[$label_id[$key]."_slider_value".$id]) ? esc_html(stripslashes($_POST[$label_id[$key]."_slider_value".$id])) : "")."');
|
| 4670 |
if (document.getElementById('".$label_id[$key]."_slider_value".$id."'))
|
| 4671 |
+
document.getElementById('".$label_id[$key]."_slider_value".$id."').value='".(isset($_POST[$label_id[$key]."_slider_value".$id]) ? esc_html(stripslashes($_POST[$label_id[$key]."_slider_value".$id])) : "")."';
|
| 4672 |
if (document.getElementById('".$label_id[$key]."_element_value".$id."'))
|
| 4673 |
+
document.getElementById('".$label_id[$key]."_element_value".$id."').innerHTML='".(isset($_POST[$label_id[$key]."_slider_value".$id]) ? esc_html(stripslashes($_POST[$label_id[$key]."_slider_value".$id])) : "")."';";
|
| 4674 |
break;
|
| 4675 |
|
| 4676 |
}
|
| 4677 |
case "type_range": {
|
| 4678 |
$form_maker_front_end .=
|
| 4679 |
"if (document.getElementById('".$label_id[$key]."_element".$id."0'))
|
| 4680 |
+
document.getElementById('".$label_id[$key]."_element".$id."0').setAttribute('aria-valuenow','".(isset($_POST[$label_id[$key]."_element".$id."0"]) ? esc_html(stripslashes($_POST[$label_id[$key]."_element".$id."0"])) : "")."');
|
| 4681 |
if (document.getElementById('".$label_id[$key]."_element".$id."1'))
|
| 4682 |
+
document.getElementById('".$label_id[$key]."_element".$id."1').setAttribute('aria-valuenow','".(isset($_POST[$label_id[$key]."_element".$id."1"]) ? esc_html(stripslashes($_POST[$label_id[$key]."_element".$id."1"])) : "")."');";
|
| 4683 |
break;
|
| 4684 |
|
| 4685 |
}
|
| 4686 |
case "type_grading": {
|
| 4687 |
for ($k = 0; $k < 100; $k++) {
|
| 4688 |
$form_maker_front_end .= "if (document.getElementById('".$label_id[$key]."_element".$id.$k."')) {
|
| 4689 |
+
document.getElementById('".$label_id[$key]."_element".$id.$k."').value='".(isset($_POST[$label_id[$key]."_element".$id.$k]) ? esc_html(stripslashes($_POST[$label_id[$key]."_element".$id.$k])) : "")."';}";
|
| 4690 |
}
|
| 4691 |
$form_maker_front_end .= "sum_grading_values(".$label_id[$key].",".$id.");";
|
| 4692 |
break;
|
| 4700 |
$form_maker_front_end .=
|
| 4701 |
"if (document.getElementById('".$label_id[$key]."_input_element".$id.$k."_".$l."')) {
|
| 4702 |
document.getElementById('".$label_id[$key]."_input_element".$id.$k."_".$l."').removeAttribute('checked');
|
| 4703 |
+
if (document.getElementById('".$label_id[$key]."_input_element".$id.$k."_".$l."').value=='".(isset($_POST[$label_id[$key]."_input_element".$id.$k]) ? esc_html(stripslashes($_POST[$label_id[$key]."_input_element".$id.$k])) : "")."')
|
| 4704 |
document.getElementById('".$label_id[$key]."_input_element".$id.$k."_".$l."').setAttribute('checked', 'checked');
|
| 4705 |
}";
|
| 4706 |
}
|
| 4714 |
$form_maker_front_end .=
|
| 4715 |
"if (document.getElementById('".$label_id[$key]."_input_element".$id.$k."_".$l."')) {
|
| 4716 |
document.getElementById('".$label_id[$key]."_input_element".$id.$k."_".$l."').removeAttribute('checked');
|
| 4717 |
+
if (document.getElementById('".$label_id[$key]."_input_element".$id.$k."_".$l."').value=='".(isset($_POST[$label_id[$key]."_input_element".$id.$k."_".$l]) ? esc_html(stripslashes($_POST[$label_id[$key]."_input_element".$id.$k."_".$l])) : "")."')
|
| 4718 |
document.getElementById('".$label_id[$key]."_input_element".$id.$k."_".$l."').setAttribute('checked', 'checked');
|
| 4719 |
}";
|
| 4720 |
}
|
| 4727 |
for ($l = 1; $l < 40; $l++) {
|
| 4728 |
$form_maker_front_end .=
|
| 4729 |
"if (document.getElementById('".$label_id[$key]."_input_element".$id.$k."_".$l."'))
|
| 4730 |
+
document.getElementById('".$label_id[$key]."_input_element".$id.$k."_".$l."').value='".(isset($_POST[$label_id[$key]."_input_element".$id.$k."_".$l]) ? esc_html(stripslashes($_POST[$label_id[$key]."_input_element".$id.$k."_".$l])) : "")."';";
|
| 4731 |
}
|
| 4732 |
}
|
| 4733 |
$form_maker_front_end .= "
|
| 4738 |
for ($l = 1; $l < 40; $l++) {
|
| 4739 |
$form_maker_front_end .=
|
| 4740 |
"if (document.getElementById('".$label_id[$key]."_select_yes_no".$id.$k."_".$l."'))
|
| 4741 |
+
document.getElementById('".$label_id[$key]."_select_yes_no".$id.$k."_".$l."').value='".(isset($_POST[$label_id[$key]."_select_yes_no".$id.$k."_".$l]) ? esc_html(stripslashes($_POST[$label_id[$key]."_select_yes_no".$id.$k."_".$l])) : "")."';";
|
| 4742 |
}
|
| 4743 |
}
|
| 4744 |
$form_maker_front_end .=
|
| 4751 |
if ($key > $old_key) {
|
| 4752 |
$form_maker_front_end .= "if(document.getElementById('" . $label_id[$key] . "_street1" . $id . "'))
|
| 4753 |
{
|
| 4754 |
+
document.getElementById('" . $label_id[$key] . "_street1" . $id . "').value='" . addslashes(isset($_POST[$label_id[$key] . "_street1" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_street1" . $id])) : "") . "';
|
| 4755 |
+
document.getElementById('" . $label_id[$key] . "_street2" . $id . "').value='" . addslashes(isset($_POST[$label_id[$key + 1] . "_street2" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key + 1] . "_street2" . $id])) : "") . "';
|
| 4756 |
+
document.getElementById('" . $label_id[$key] . "_city" . $id . "').value='" . addslashes(isset($_POST[$label_id[$key + 2] . "_city" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key + 2] . "_city" . $id])) : "") . "';
|
| 4757 |
+
document.getElementById('" . $label_id[$key] . "_state" . $id . "').value='" . addslashes(isset($_POST[$label_id[$key + 3] . "_state" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key + 3] . "_state" . $id])) : "") . "';
|
| 4758 |
+
document.getElementById('" . $label_id[$key] . "_postal" . $id . "').value='" . addslashes(isset($_POST[$label_id[$key + 4] . "_postal" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key + 4] . "_postal" . $id])) : "") . "';
|
| 4759 |
+
document.getElementById('" . $label_id[$key] . "_country" . $id . "').value='" . addslashes(isset($_POST[$label_id[$key + 5] . "_country" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key + 5] . "_country" . $id])) : "") . "';
|
| 4760 |
|
| 4761 |
}";
|
| 4762 |
$old_key = $key + 5;
|
| 4766 |
case "type_checkbox":
|
| 4767 |
{
|
| 4768 |
$is_other = FALSE;
|
| 4769 |
+
if (isset($_POST[$label_id[$key] . "_allow_other" . $id]) && esc_html(stripslashes($_POST[$label_id[$key] . "_allow_other" . $id])) == "yes") {
|
| 4770 |
+
$other_element = isset($_POST[$label_id[$key] . "_other_input" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_other_input" . $id])) : "";
|
| 4771 |
+
$other_element_id = isset($_POST[$label_id[$key] . "_allow_other_num" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_allow_other_num" . $id])) : NULL;
|
| 4772 |
if (isset($_POST[$label_id[$key] . "_allow_other_num" . $id]))
|
| 4773 |
$is_other = TRUE;
|
| 4774 |
}
|
| 4784 |
else break;
|
| 4785 |
";
|
| 4786 |
for ($j = 0; $j < 100; $j++) {
|
| 4787 |
+
$element = isset($_POST[$label_id[$key] . "_element" . $id . $j]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_element" . $id . $j])) : NULL;
|
| 4788 |
if (isset($_POST[$label_id[$key] . "_element" . $id . $j])) {
|
| 4789 |
$form_maker_front_end .= "document.getElementById('" . $label_id[$key] . "_element" . $id . $j . "').setAttribute('checked', 'checked');
|
| 4790 |
";
|
| 4793 |
if ($is_other)
|
| 4794 |
$form_maker_front_end .= "
|
| 4795 |
show_other_input('" . $label_id[$key] . "','" . $id . "');
|
| 4796 |
+
document.getElementById('" . $label_id[$key] . "_other_input" . $id . "').value='" . (isset($_POST[$label_id[$key] . "_other_input" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_other_input" . $id])) : "") . "';
|
| 4797 |
";
|
| 4798 |
break;
|
| 4799 |
}
|
| 4800 |
case "type_radio":
|
| 4801 |
{
|
| 4802 |
$is_other = FALSE;
|
| 4803 |
+
if (isset($_POST[$label_id[$key] . "_allow_other" . $id]) && esc_html(stripslashes($_POST[$label_id[$key] . "_allow_other" . $id])) == "yes") {
|
| 4804 |
+
$other_element = isset($_POST[$label_id[$key] . "_other_input" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_other_input" . $id])) : "";
|
| 4805 |
if (isset($_POST[$label_id[$key] . "_other_input" . $id]))
|
| 4806 |
$is_other = TRUE;
|
| 4807 |
}
|
| 4816 |
if(document.getElementById('" . $label_id[$key] . "_element" . $id . "'+k))
|
| 4817 |
{
|
| 4818 |
document.getElementById('" . $label_id[$key] . "_element" . $id . "'+k).removeAttribute('checked');
|
| 4819 |
+
if(document.getElementById('" . $label_id[$key] . "_element" . $id . "'+k).value=='" . addslashes(isset($_POST[$label_id[$key] . "_element" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_element" . $id])) : "") . "')
|
| 4820 |
{
|
| 4821 |
document.getElementById('" . $label_id[$key] . "_element" . $id . "'+k).setAttribute('checked', 'checked');
|
| 4822 |
|
| 4827 |
if ($is_other)
|
| 4828 |
$form_maker_front_end .= "
|
| 4829 |
show_other_input('" . $label_id[$key] . "','" . $id . "');
|
| 4830 |
+
document.getElementById('" . $label_id[$key] . "_other_input" . $id . "').value='" . (isset($_POST[$label_id[$key] . "_other_input" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_other_input" . $id])) : "") . "';
|
| 4831 |
";
|
| 4832 |
break;
|
| 4833 |
}
|
| 4834 |
case "type_time":
|
| 4835 |
{
|
| 4836 |
+
$ss = isset($_POST[$label_id[$key] . "_ss" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_ss" . $id])) : "";
|
| 4837 |
if (isset($_POST[$label_id[$key] . "_ss" . $id])) {
|
| 4838 |
$form_maker_front_end .= "if(document.getElementById('" . $label_id[$key] . "_hh" . $id . "'))
|
| 4839 |
{
|
| 4840 |
+
document.getElementById('" . $label_id[$key] . "_hh" . $id . "').value='" . (isset($_POST[$label_id[$key] . "_hh" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_hh" . $id])) : "") . "';
|
| 4841 |
+
document.getElementById('" . $label_id[$key] . "_mm" . $id . "').value='" . (isset($_POST[$label_id[$key] . "_mm" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_mm" . $id])) : "") . "';
|
| 4842 |
+
document.getElementById('" . $label_id[$key] . "_ss" . $id . "').value='" . (isset($_POST[$label_id[$key] . "_ss" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_ss" . $id])) : "") . "';
|
| 4843 |
}";
|
| 4844 |
}
|
| 4845 |
else {
|
| 4846 |
$form_maker_front_end .= "if(document.getElementById('" . $label_id[$key] . "_hh" . $id . "'))
|
| 4847 |
{
|
| 4848 |
+
document.getElementById('" . $label_id[$key] . "_hh" . $id . "').value='" . (isset($_POST[$label_id[$key] . "_hh" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_hh" . $id])) : "") . "';
|
| 4849 |
+
document.getElementById('" . $label_id[$key] . "_mm" . $id . "').value='" . (isset($_POST[$label_id[$key] . "_mm" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_mm" . $id])) : "") . "';
|
| 4850 |
}";
|
| 4851 |
}
|
| 4852 |
+
$am_pm = isset($_POST[$label_id[$key] . "_am_pm" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_am_pm" . $id])) : NULL;
|
| 4853 |
if (isset($am_pm))
|
| 4854 |
$form_maker_front_end .= "if(document.getElementById('" . $label_id[$key] . "_am_pm" . $id . "'))
|
| 4855 |
document.getElementById('" . $label_id[$key] . "_am_pm" . $id . "').value='" . $am_pm . "';
|
| 4860 |
{
|
| 4861 |
$form_maker_front_end .= "if(document.getElementById('" . $label_id[$key] . "_day" . $id . "'))
|
| 4862 |
{
|
| 4863 |
+
document.getElementById('" . $label_id[$key] . "_day" . $id . "').value='" . (isset($_POST[$label_id[$key] . "_day" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_day" . $id])) : "") . "';
|
| 4864 |
+
document.getElementById('" . $label_id[$key] . "_month" . $id . "').value='" . (isset($_POST[$label_id[$key] . "_month" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_month" . $id])) : "") . "';
|
| 4865 |
+
document.getElementById('" . $label_id[$key] . "_year" . $id . "').value='" . (isset($_POST[$label_id[$key] . "_year" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_year" . $id])) : "") . "';
|
| 4866 |
}";
|
| 4867 |
break;
|
| 4868 |
}
|
| 4871 |
case "type_country":
|
| 4872 |
{
|
| 4873 |
$form_maker_front_end .= "if(document.getElementById('" . $label_id[$key] . "_element" . $id . "'))
|
| 4874 |
+
document.getElementById('" . $label_id[$key] . "_element" . $id . "').value='" . addslashes(isset($_POST[$label_id[$key] . "_element" . $id]) ? esc_html(stripslashes($_POST[$label_id[$key] . "_element" . $id])) : "") . "';
|
| 4875 |
";
|
| 4876 |
break;
|
| 4877 |
}
|
js/formmaker_div_free.js
CHANGED
|
@@ -3592,7 +3592,7 @@ function refresh_matrix(num){
|
|
| 3592 |
break;
|
| 3593 |
}
|
| 3594 |
}
|
| 3595 |
-
|
| 3596 |
|
| 3597 |
for(i=100;i>0;i--)
|
| 3598 |
{
|
|
@@ -3603,152 +3603,132 @@ function refresh_matrix(num){
|
|
| 3603 |
}
|
| 3604 |
n=i;
|
| 3605 |
|
| 3606 |
-
|
| 3607 |
-
|
| 3608 |
-
|
| 3609 |
-
|
| 3610 |
-
var table = document.getElementById(num+'_table_little');
|
| 3611 |
-
table.innerHTML='';
|
| 3612 |
|
|
|
|
|
|
|
| 3613 |
|
| 3614 |
-
|
| 3615 |
-
|
| 3616 |
-
|
| 3617 |
-
|
| 3618 |
-
|
| 3619 |
|
| 3620 |
-
|
| 3621 |
-
|
| 3622 |
-
|
| 3623 |
-
|
| 3624 |
-
|
| 3625 |
-
|
| 3626 |
|
| 3627 |
-
|
|
|
|
|
|
|
| 3628 |
{
|
| 3629 |
-
|
| 3630 |
-
|
| 3631 |
-
|
| 3632 |
-
|
| 3633 |
-
td.setAttribute("id", num+"_element_td0_"+k);
|
| 3634 |
-
td.setAttribute("class", "matrix_");
|
| 3635 |
-
td.style.display="table-cell";
|
| 3636 |
|
| 3637 |
-
|
| 3638 |
-
|
| 3639 |
-
|
| 3640 |
-
|
| 3641 |
-
|
| 3642 |
-
|
| 3643 |
-
label_column.innerHTML=document.getElementById("el_columns"+k).value;
|
| 3644 |
-
|
| 3645 |
|
| 3646 |
-
|
| 3647 |
-
|
| 3648 |
-
|
| 3649 |
-
tr0.appendChild(td);
|
| 3650 |
-
|
| 3651 |
-
|
| 3652 |
-
}
|
| 3653 |
}
|
| 3654 |
-
|
| 3655 |
-
|
| 3656 |
-
|
| 3657 |
-
for(i=1;i<=m;i++)
|
| 3658 |
-
{
|
| 3659 |
|
| 3660 |
-
|
| 3661 |
{
|
| 3662 |
-
|
| 3663 |
-
|
| 3664 |
-
tr.
|
| 3665 |
-
|
| 3666 |
-
|
| 3667 |
-
td0.
|
| 3668 |
-
|
| 3669 |
-
|
| 3670 |
-
|
|
|
|
|
|
|
| 3671 |
label_row.setAttribute("id", num+"_label_elementform_id_temp"+i+"_0");
|
| 3672 |
label_row.setAttribute("class", "ch-rad-label");
|
| 3673 |
label_row.setAttribute("for",num+"_elementform_id_temp"+i);
|
| 3674 |
label_row.innerHTML=document.getElementById("el_rows"+i).value;
|
| 3675 |
-
|
| 3676 |
-
|
| 3677 |
-
|
| 3678 |
-
|
| 3679 |
-
|
| 3680 |
-
|
| 3681 |
-
|
| 3682 |
-
|
| 3683 |
-
|
| 3684 |
-
|
| 3685 |
-
|
| 3686 |
-
if(document.getElementById("el_columns"+k))
|
| 3687 |
{
|
| 3688 |
-
|
| 3689 |
-
|
| 3690 |
-
|
| 3691 |
-
|
| 3692 |
-
|
| 3693 |
-
|
| 3694 |
-
|
| 3695 |
-
|
| 3696 |
-
|
| 3697 |
-
|
| 3698 |
-
|
| 3699 |
-
|
| 3700 |
-
|
|
|
|
|
|
|
|
|
|
| 3701 |
|
| 3702 |
-
|
| 3703 |
-
|
| 3704 |
-
|
| 3705 |
|
| 3706 |
-
|
| 3707 |
-
|
| 3708 |
-
|
| 3709 |
-
|
| 3710 |
-
|
| 3711 |
-
|
| 3712 |
-
|
| 3713 |
-
select_yes_no.appendChild(option_yes_no1);
|
| 3714 |
-
select_yes_no.appendChild(option_yes_no2);
|
| 3715 |
-
select_yes_no.appendChild(option_yes_no3);
|
| 3716 |
-
td.appendChild(select_yes_no);
|
| 3717 |
}
|
| 3718 |
else{
|
| 3719 |
-
|
| 3720 |
input_of_matrix.setAttribute("id", num+"_input_elementform_id_temp"+i+"_"+k);
|
| 3721 |
input_of_matrix.setAttribute("align", "center");
|
| 3722 |
input_of_matrix.setAttribute("size", "14");
|
| 3723 |
-
|
| 3724 |
input_of_matrix.setAttribute("type", document.getElementById("edit_for_select_input_type").value);
|
| 3725 |
|
| 3726 |
|
| 3727 |
-
|
| 3728 |
-
|
| 3729 |
-
|
| 3730 |
-
|
| 3731 |
-
|
| 3732 |
-
|
| 3733 |
-
|
| 3734 |
-
input_of_matrix.setAttribute("value", 1);
|
| 3735 |
-
}
|
| 3736 |
-
else{
|
| 3737 |
-
input_of_matrix.setAttribute("name", num+"_input_elementform_id_temp"+i+"_"+k);
|
| 3738 |
-
input_of_matrix.setAttribute("value", '');
|
| 3739 |
-
}
|
| 3740 |
-
}
|
| 3741 |
-
td.appendChild(input_of_matrix);
|
| 3742 |
-
|
| 3743 |
}
|
| 3744 |
-
|
|
|
|
| 3745 |
|
| 3746 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3747 |
}
|
| 3748 |
-
}
|
| 3749 |
-
}
|
| 3750 |
-
}
|
| 3751 |
-
|
| 3752 |
}
|
| 3753 |
|
| 3754 |
function remove_rowcols(id, num, type)
|
|
@@ -12638,6 +12618,7 @@ function type_date(i, w_field_label, w_field_label_size, w_field_label_pos, w_da
|
|
| 12638 |
var edit_main_tr2 = document.createElement('tr');
|
| 12639 |
var edit_main_tr3 = document.createElement('tr');
|
| 12640 |
var edit_main_tr4 = document.createElement('tr');
|
|
|
|
| 12641 |
var edit_main_tr5 = document.createElement('tr');
|
| 12642 |
var edit_main_tr6 = document.createElement('tr');
|
| 12643 |
|
|
@@ -21602,7 +21583,7 @@ function change_total(value,id)
|
|
| 21602 |
document.getElementById(id+"_total_elementform_id_temp").innerHTML = value;
|
| 21603 |
}
|
| 21604 |
|
| 21605 |
-
function type_matrix(i, w_field_label, w_field_label_size, w_field_label_pos, w_field_input_type, w_rows, w_columns, w_required, w_class, w_attr_name, w_attr_value) {
|
| 21606 |
|
| 21607 |
document.getElementById("element_type").value="type_matrix";
|
| 21608 |
|
|
@@ -21617,33 +21598,19 @@ function type_matrix(i, w_field_label, w_field_label_size, w_field_label_pos, w_
|
|
| 21617 |
edit_main_table.setAttribute("cellpadding", "0");
|
| 21618 |
edit_main_table.setAttribute("cellspacing", "0");
|
| 21619 |
|
| 21620 |
-
var edit_main_tr1 = document.createElement('tr');
|
| 21621 |
-
|
| 21622 |
-
|
| 21623 |
-
var edit_main_tr2 = document.createElement('tr');
|
| 21624 |
-
edit_main_tr2.setAttribute("valing", "top");
|
| 21625 |
-
|
| 21626 |
var edit_main_tr3 = document.createElement('tr');
|
| 21627 |
-
edit_main_tr3.setAttribute("valing", "top");
|
| 21628 |
-
|
| 21629 |
var edit_main_tr4 = document.createElement('tr');
|
| 21630 |
-
edit_main_tr4.setAttribute("valing", "top");
|
| 21631 |
-
|
| 21632 |
var edit_main_tr5 = document.createElement('tr');
|
| 21633 |
-
edit_main_tr5.setAttribute("valing", "top");
|
| 21634 |
-
|
| 21635 |
var edit_main_tr6 = document.createElement('tr');
|
| 21636 |
-
edit_main_tr6.setAttribute("valing", "top");
|
| 21637 |
var edit_main_tr7 = document.createElement('tr');
|
| 21638 |
-
edit_main_tr7.setAttribute("valing", "top");
|
| 21639 |
-
|
| 21640 |
var edit_main_tr8 = document.createElement('tr');
|
| 21641 |
-
edit_main_tr8.setAttribute("valing", "top");
|
| 21642 |
-
|
| 21643 |
var edit_main_tr9 = document.createElement('tr');
|
| 21644 |
-
|
| 21645 |
-
|
| 21646 |
-
|
|
|
|
| 21647 |
|
| 21648 |
var edit_main_td1 = document.createElement('td');
|
| 21649 |
edit_main_td1.style.cssText = "padding-top:10px";
|
|
@@ -21660,7 +21627,6 @@ function type_matrix(i, w_field_label, w_field_label_size, w_field_label_pos, w_
|
|
| 21660 |
var edit_main_td3_1 = document.createElement('td');
|
| 21661 |
edit_main_td3_1.style.cssText = "padding-top:10px ";
|
| 21662 |
|
| 21663 |
-
|
| 21664 |
var edit_main_td4 = document.createElement('td');
|
| 21665 |
edit_main_td4.style.cssText = "padding-top:10px" ;
|
| 21666 |
edit_main_td4.setAttribute("id", "rows");
|
|
@@ -21692,17 +21658,19 @@ function type_matrix(i, w_field_label, w_field_label_size, w_field_label_pos, w_
|
|
| 21692 |
var edit_main_td9_1 = document.createElement('td');
|
| 21693 |
edit_main_td9_1.style.cssText = "padding-top:10px";
|
| 21694 |
|
| 21695 |
-
|
|
|
|
|
|
|
| 21696 |
var el_label_label = document.createElement('label');
|
| 21697 |
-
|
| 21698 |
-
|
| 21699 |
|
| 21700 |
var el_label_textarea = document.createElement('textarea');
|
| 21701 |
-
|
| 21702 |
-
|
| 21703 |
-
|
| 21704 |
-
|
| 21705 |
-
|
| 21706 |
|
| 21707 |
var el_label_size_label = document.createElement('label');
|
| 21708 |
el_label_size_label.setAttribute("for", "edit_for_label_size");
|
|
@@ -21716,86 +21684,87 @@ function type_matrix(i, w_field_label, w_field_label_size, w_field_label_pos, w_
|
|
| 21716 |
el_label_size.setAttribute("onKeyUp", "change_w_style('"+i+"_label_sectionform_id_temp', this.value)");
|
| 21717 |
|
| 21718 |
var el_label_position_label = document.createElement('label');
|
| 21719 |
-
|
| 21720 |
el_label_position_label.innerHTML = "Field label position";
|
| 21721 |
|
| 21722 |
var el_label_position1 = document.createElement('input');
|
| 21723 |
-
|
| 21724 |
-
|
| 21725 |
-
|
| 21726 |
-
|
| 21727 |
-
|
| 21728 |
-
el_label_position1.setAttribute("onchange", "label_left("+i+")");
|
| 21729 |
Left = document.createTextNode("Left");
|
| 21730 |
|
| 21731 |
var el_label_position2 = document.createElement('input');
|
| 21732 |
-
|
| 21733 |
-
|
| 21734 |
-
|
| 21735 |
-
|
| 21736 |
-
|
| 21737 |
-
el_label_position2.setAttribute("onchange", "label_top("+i+")");
|
| 21738 |
Top = document.createTextNode("Top");
|
| 21739 |
|
| 21740 |
if(w_field_label_pos=="top")
|
| 21741 |
-
|
| 21742 |
-
el_label_position2.setAttribute("checked", "checked");
|
| 21743 |
else
|
| 21744 |
-
|
| 21745 |
|
| 21746 |
-
|
| 21747 |
-
|
| 21748 |
|
| 21749 |
-
var el_input_type_label = document.createElement('label');
|
| 21750 |
-
|
| 21751 |
el_input_type_label.innerHTML = "Input Type";
|
| 21752 |
|
| 21753 |
var el_input_type = document.createElement('select');
|
| 21754 |
-
|
| 21755 |
-
|
| 21756 |
-
|
| 21757 |
|
| 21758 |
var el_input_type1 = document.createElement('option');
|
| 21759 |
-
|
| 21760 |
-
|
| 21761 |
-
Radio_Button = document.createTextNode("Radio Button");
|
| 21762 |
|
| 21763 |
var el_input_type2 = document.createElement('option');
|
| 21764 |
-
|
| 21765 |
-
|
| 21766 |
-
Check_Box = document.createTextNode("Check Box");
|
| 21767 |
|
| 21768 |
var el_input_type3 = document.createElement('option');
|
| 21769 |
-
|
| 21770 |
-
|
| 21771 |
-
Text_Box= document.createTextNode("Text Box");
|
| 21772 |
|
| 21773 |
var el_input_type4 = document.createElement('option');
|
| 21774 |
-
|
| 21775 |
-
|
| 21776 |
-
Drop_Down = document.createTextNode("Drop Down");
|
| 21777 |
-
|
| 21778 |
-
|
| 21779 |
-
|
| 21780 |
-
|
| 21781 |
-
|
| 21782 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21783 |
else
|
| 21784 |
{
|
| 21785 |
if(w_field_input_type=="checkbox")
|
| 21786 |
-
|
| 21787 |
-
|
| 21788 |
-
|
| 21789 |
-
|
| 21790 |
-
|
| 21791 |
-
|
| 21792 |
-
|
| 21793 |
-
|
| 21794 |
-
|
| 21795 |
-
|
| 21796 |
-
}
|
| 21797 |
-
|
| 21798 |
-
|
| 21799 |
|
| 21800 |
var el_style_label = document.createElement('label');
|
| 21801 |
el_style_label.style.cssText ="color:#00aeef; font-weight:bold; font-size: 13px";
|
|
@@ -21820,10 +21789,7 @@ Drop_Down = document.createTextNode("Drop Down");
|
|
| 21820 |
el_required.setAttribute("value", "yes");
|
| 21821 |
el_required.setAttribute("onclick", "set_required('"+i+"_required')");
|
| 21822 |
if(w_required=="yes")
|
| 21823 |
-
|
| 21824 |
-
el_required.setAttribute("checked", "checked");
|
| 21825 |
-
|
| 21826 |
-
|
| 21827 |
|
| 21828 |
|
| 21829 |
var el_attr_label = document.createElement('label');
|
|
@@ -21908,24 +21874,24 @@ Drop_Down = document.createTextNode("Drop Down");
|
|
| 21908 |
}
|
| 21909 |
|
| 21910 |
var el_rows_label = document.createElement('label');
|
| 21911 |
-
|
| 21912 |
el_rows_label.innerHTML = "Rows ";
|
| 21913 |
var el_rows_add = document.createElement('img');
|
| 21914 |
-
|
| 21915 |
-
|
| 21916 |
-
|
| 21917 |
-
|
| 21918 |
-
|
| 21919 |
|
| 21920 |
var el_columns_label = document.createElement('label');
|
| 21921 |
-
|
| 21922 |
el_columns_label.innerHTML = "Columns ";
|
| 21923 |
var el_columns_add = document.createElement('img');
|
| 21924 |
-
|
| 21925 |
-
|
| 21926 |
-
|
| 21927 |
-
|
| 21928 |
-
|
| 21929 |
|
| 21930 |
var t = document.getElementById('edit_table');
|
| 21931 |
|
|
@@ -21949,8 +21915,6 @@ Drop_Down = document.createTextNode("Drop Down");
|
|
| 21949 |
edit_main_td2_1.appendChild(br2);
|
| 21950 |
edit_main_td2_1.appendChild(el_label_position2);
|
| 21951 |
edit_main_td2_1.appendChild(Top);
|
| 21952 |
-
|
| 21953 |
-
|
| 21954 |
|
| 21955 |
edit_main_td3.appendChild(el_input_type_label);
|
| 21956 |
|
|
@@ -21966,6 +21930,8 @@ Drop_Down = document.createTextNode("Drop Down");
|
|
| 21966 |
|
| 21967 |
edit_main_td3_1.appendChild(el_input_type);
|
| 21968 |
|
|
|
|
|
|
|
| 21969 |
|
| 21970 |
edit_main_td4.appendChild(el_rows_label);
|
| 21971 |
edit_main_td4_1.appendChild(el_rows_add);
|
|
@@ -21986,8 +21952,6 @@ Drop_Down = document.createTextNode("Drop Down");
|
|
| 21986 |
edit_main_td8.appendChild(el_attr_table);
|
| 21987 |
edit_main_td8.setAttribute("colspan", "2");
|
| 21988 |
|
| 21989 |
-
|
| 21990 |
-
|
| 21991 |
n=w_rows.length;
|
| 21992 |
for(k=1; k<n; k++)
|
| 21993 |
{
|
|
@@ -22014,7 +21978,6 @@ Drop_Down = document.createTextNode("Drop Down");
|
|
| 22014 |
|
| 22015 |
}
|
| 22016 |
|
| 22017 |
-
|
| 22018 |
m=w_columns.length;
|
| 22019 |
for(k=1; k<m; k++)
|
| 22020 |
{
|
|
@@ -22049,6 +22012,8 @@ Drop_Down = document.createTextNode("Drop Down");
|
|
| 22049 |
edit_main_tr2.appendChild(edit_main_td2_1);
|
| 22050 |
edit_main_tr3.appendChild(edit_main_td3);
|
| 22051 |
edit_main_tr3.appendChild(edit_main_td3_1);
|
|
|
|
|
|
|
| 22052 |
edit_main_tr4.appendChild(edit_main_td4);
|
| 22053 |
edit_main_tr4.appendChild(edit_main_td4_1);
|
| 22054 |
edit_main_tr5.appendChild(edit_main_td5);
|
|
@@ -22059,11 +22024,11 @@ Drop_Down = document.createTextNode("Drop Down");
|
|
| 22059 |
edit_main_tr7.appendChild(edit_main_td7_1);
|
| 22060 |
edit_main_tr8.appendChild(edit_main_td8);
|
| 22061 |
|
| 22062 |
-
|
| 22063 |
edit_main_table.appendChild(edit_main_tr1);
|
| 22064 |
edit_main_table.appendChild(edit_main_tr9);
|
| 22065 |
edit_main_table.appendChild(edit_main_tr2);
|
| 22066 |
edit_main_table.appendChild(edit_main_tr3);
|
|
|
|
| 22067 |
edit_main_table.appendChild(edit_main_tr4);
|
| 22068 |
edit_main_table.appendChild(edit_main_tr5);
|
| 22069 |
edit_main_table.appendChild(edit_main_tr6);
|
|
@@ -22071,12 +22036,9 @@ Drop_Down = document.createTextNode("Drop Down");
|
|
| 22071 |
edit_main_table.appendChild(edit_main_tr8);
|
| 22072 |
|
| 22073 |
edit_div.appendChild(edit_main_table);
|
| 22074 |
-
|
| 22075 |
t.appendChild(edit_div);
|
| 22076 |
-
|
| 22077 |
-
|
| 22078 |
-
|
| 22079 |
-
element='input'; type='matrix';
|
| 22080 |
var adding_type = document.createElement("input");
|
| 22081 |
adding_type.setAttribute("type", "hidden");
|
| 22082 |
adding_type.setAttribute("value", "type_matrix");
|
|
@@ -22093,65 +22055,68 @@ Drop_Down = document.createTextNode("Drop Down");
|
|
| 22093 |
adding_input_type.setAttribute("value", w_field_input_type);
|
| 22094 |
adding_input_type.setAttribute("name", i+"_input_typeform_id_temp");
|
| 22095 |
adding_input_type.setAttribute("id", i+"_input_typeform_id_temp");
|
| 22096 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22097 |
var div = document.createElement('div');
|
| 22098 |
div.setAttribute("id", "main_div");
|
| 22099 |
-
//tbody sarqac
|
| 22100 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22101 |
|
| 22102 |
-
|
| 22103 |
-
|
| 22104 |
-
|
| 22105 |
-
|
| 22106 |
-
|
| 22107 |
-
|
| 22108 |
-
|
| 22109 |
-
|
| 22110 |
-
|
| 22111 |
-
var div_element = document.createElement('div');
|
| 22112 |
-
div_element.setAttribute("align", 'left');
|
| 22113 |
-
div_element.style.display="table-cell";
|
| 22114 |
-
div_element.setAttribute("id", i+"_element_sectionform_id_temp");
|
| 22115 |
|
| 22116 |
-
var br1 = document.createElement('br');
|
| 22117 |
-
var br2 = document.createElement('br');
|
| 22118 |
-
var br3 = document.createElement('br');
|
| 22119 |
-
var br4 = document.createElement('br');
|
| 22120 |
-
|
| 22121 |
var table_little_t = document.createElement('div');
|
| 22122 |
table_little_t.setAttribute("id", i+"_elementform_id_temp");
|
| 22123 |
table_little_t.style.display="table";
|
| 22124 |
-
|
| 22125 |
|
| 22126 |
var table_little = document.createElement('div');
|
| 22127 |
-
|
| 22128 |
-
|
| 22129 |
-
|
| 22130 |
|
| 22131 |
table_little_t.appendChild(table_little);
|
| 22132 |
-
|
| 22133 |
|
| 22134 |
-
|
| 22135 |
-
var label = document.createElement('span');
|
| 22136 |
-
label.setAttribute("id", i+"_element_labelform_id_temp");
|
| 22137 |
-
label.innerHTML = w_field_label;
|
| 22138 |
-
label.setAttribute("class", "label");
|
| 22139 |
|
| 22140 |
-
|
| 22141 |
-
|
| 22142 |
-
|
| 22143 |
-
|
| 22144 |
-
|
| 22145 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22146 |
required.innerHTML = " *";
|
| 22147 |
|
| 22148 |
-
|
| 22149 |
|
| 22150 |
div_label.appendChild(label);
|
| 22151 |
div_label.appendChild(required);
|
| 22152 |
div_element.appendChild(adding_type);
|
| 22153 |
div_element.appendChild(adding_required);
|
| 22154 |
div_element.appendChild(adding_input_type);
|
|
|
|
| 22155 |
div_element.appendChild(table_little_t);
|
| 22156 |
div_field.appendChild(div_label);
|
| 22157 |
div_field.appendChild(div_element);
|
|
@@ -25713,7 +25678,7 @@ function go_to_type_matrix(new_id)
|
|
| 25713 |
|
| 25714 |
w_rows = ['','row1','row2'];
|
| 25715 |
w_columns = ['','column1','column2'];
|
| 25716 |
-
type_matrix(new_id,'Matrix:', '100', 'left', 'radio', w_rows, w_columns, 'no','wdform_matrix',w_attr_name, w_attr_value);
|
| 25717 |
}
|
| 25718 |
|
| 25719 |
function go_to_type_paypal_price(new_id)
|
|
@@ -29411,16 +29376,15 @@ function edit(id)
|
|
| 29411 |
}
|
| 29412 |
|
| 29413 |
w_field_input_type = document.getElementById(id+"_input_typeform_id_temp").value;
|
| 29414 |
-
|
| 29415 |
atrs=return_attributes(id+'_elementform_id_temp');
|
| 29416 |
-
|
| 29417 |
-
|
| 29418 |
-
type_matrix(id, w_field_label, w_field_label_size, w_field_label_pos, w_field_input_type, w_rows, w_columns, w_required, w_class, w_attr_name, w_attr_value); refresh_matrix(id); break;
|
| 29419 |
|
| 29420 |
|
| 29421 |
}
|
| 29422 |
|
| 29423 |
-
|
| 29424 |
case 'type_time':
|
| 29425 |
{
|
| 29426 |
atrs=return_attributes(id+'_hhform_id_temp');
|
|
@@ -30519,16 +30483,17 @@ function dublicate(id) {
|
|
| 30519 |
}
|
| 30520 |
|
| 30521 |
w_field_input_type = document.getElementById(id+"_input_typeform_id_temp").value;
|
| 30522 |
-
|
| 30523 |
atrs=return_attributes(id+'_elementform_id_temp');
|
| 30524 |
-
|
| 30525 |
-
|
| 30526 |
-
type_matrix(gen, w_field_label, w_field_label_size, w_field_label_pos, w_field_input_type, w_rows, w_columns, w_required, w_class, w_attr_name, w_attr_value); refresh_matrix(id); break;
|
| 30527 |
|
| 30528 |
|
| 30529 |
}
|
| 30530 |
|
| 30531 |
|
|
|
|
| 30532 |
case 'type_time':
|
| 30533 |
{
|
| 30534 |
atrs=return_attributes(id+'_hhform_id_temp');
|
|
@@ -31968,7 +31933,7 @@ function gen_form_fields()
|
|
| 31968 |
}
|
| 31969 |
|
| 31970 |
w_field_input_type = document.getElementById(id+"_input_typeform_id_temp").value;
|
| 31971 |
-
|
| 31972 |
atrs=return_attributes(id+'_elementform_id_temp');
|
| 31973 |
w_attr_name=atrs[0];
|
| 31974 |
w_attr_value=atrs[1];
|
|
@@ -31987,7 +31952,7 @@ function gen_form_fields()
|
|
| 31987 |
{
|
| 31988 |
form_fields+=w_attr_name[j]+"="+w_attr_value[j]+"*:*w_attr_name*:*";
|
| 31989 |
}
|
| 31990 |
-
|
| 31991 |
form_fields+="*:*new_field*:*";
|
| 31992 |
break;
|
| 31993 |
}
|
| 3592 |
break;
|
| 3593 |
}
|
| 3594 |
}
|
| 3595 |
+
m=i;
|
| 3596 |
|
| 3597 |
for(i=100;i>0;i--)
|
| 3598 |
{
|
| 3603 |
}
|
| 3604 |
n=i;
|
| 3605 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3606 |
|
| 3607 |
+
var table = document.getElementById(num+'_table_little');
|
| 3608 |
+
table.innerHTML='';
|
| 3609 |
|
| 3610 |
+
var tr0 = document.createElement('div');
|
| 3611 |
+
tr0.setAttribute("id", num+"_element_tr0");
|
| 3612 |
+
tr0.style.display="table-row";
|
| 3613 |
+
|
| 3614 |
+
table.appendChild(tr0);
|
| 3615 |
|
| 3616 |
+
var td0 = document.createElement('div');
|
| 3617 |
+
td0.setAttribute("id", num+"_element_td0_0");
|
| 3618 |
+
td0.style.display="table-cell";
|
| 3619 |
+
td0.innerHTML="";
|
| 3620 |
+
tr0.appendChild(td0);
|
|
|
|
| 3621 |
|
| 3622 |
+
for(k=1;k<=n;k++)
|
| 3623 |
+
{
|
| 3624 |
+
if(document.getElementById("el_columns"+k))
|
| 3625 |
{
|
| 3626 |
+
var td = document.createElement('div');
|
| 3627 |
+
td.setAttribute("id", num+"_element_td0_"+k);
|
| 3628 |
+
td.setAttribute("class", "matrix_");
|
| 3629 |
+
td.style.display="table-cell";
|
|
|
|
|
|
|
|
|
|
| 3630 |
|
| 3631 |
+
var label_column = document.createElement('label');
|
| 3632 |
+
label_column.setAttribute("id", num+"_label_elementform_id_temp"+"0_"+k);
|
| 3633 |
+
label_column.setAttribute("name", num+"_label_elementform_id_temp"+"0_"+k);
|
| 3634 |
+
label_column.setAttribute("class", "ch-rad-label");
|
| 3635 |
+
label_column.setAttribute("for",num+"_elementform_id_temp"+k);
|
| 3636 |
+
label_column.innerHTML=document.getElementById("el_columns"+k).value;
|
|
|
|
|
|
|
| 3637 |
|
| 3638 |
+
td.appendChild(label_column);
|
| 3639 |
+
tr0.appendChild(td);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3640 |
}
|
| 3641 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3642 |
|
| 3643 |
+
for(i=1;i<=m;i++)
|
| 3644 |
{
|
| 3645 |
+
if(document.getElementById("el_rows"+i))
|
| 3646 |
+
{
|
| 3647 |
+
var tr = document.createElement('div');
|
| 3648 |
+
tr.setAttribute("id", num+"_element_tr"+i);
|
| 3649 |
+
tr.style.display="table-row";
|
| 3650 |
+
var td0 = document.createElement('div');
|
| 3651 |
+
td0.setAttribute("id", num+"_element_td"+i+"_0");
|
| 3652 |
+
td0.setAttribute("class", "matrix_");
|
| 3653 |
+
td0.style.display="table-cell";
|
| 3654 |
+
|
| 3655 |
+
var label_row = document.createElement('label');
|
| 3656 |
label_row.setAttribute("id", num+"_label_elementform_id_temp"+i+"_0");
|
| 3657 |
label_row.setAttribute("class", "ch-rad-label");
|
| 3658 |
label_row.setAttribute("for",num+"_elementform_id_temp"+i);
|
| 3659 |
label_row.innerHTML=document.getElementById("el_rows"+i).value;
|
| 3660 |
+
|
| 3661 |
+
td0.appendChild(label_row);
|
| 3662 |
+
tr.appendChild(td0);
|
| 3663 |
+
table.appendChild(tr);
|
| 3664 |
+
|
| 3665 |
+
if(document.getElementById("edit_for_select_input_type").value=="text")
|
| 3666 |
+
document.getElementById("el_textbox").removeAttribute("style");
|
| 3667 |
+
else
|
| 3668 |
+
document.getElementById("el_textbox").style.display="none";
|
| 3669 |
+
|
| 3670 |
+
for(k=1;k<=n;k++)
|
|
|
|
| 3671 |
{
|
| 3672 |
+
if(document.getElementById("el_columns"+k)) {
|
| 3673 |
+
var td = document.createElement('div');
|
| 3674 |
+
td.setAttribute("id", num+"_element_td"+i+"_"+k);
|
| 3675 |
+
td.style.cssText="display:table-cell; text-align:center; padding:5px 0 0 5px;";
|
| 3676 |
+
|
| 3677 |
+
if(document.getElementById("edit_for_select_input_type").value=="select"){
|
| 3678 |
+
var select_yes_no = document.createElement('select');
|
| 3679 |
+
select_yes_no.setAttribute("id", num+"_select_yes_noform_id_temp"+i+"_"+k);
|
| 3680 |
+
select_yes_no.setAttribute("name", num+"_select_yes_noform_id_temp"+i+"_"+k);
|
| 3681 |
+
var option_yes_no1 = document.createElement('option');
|
| 3682 |
+
option_yes_no1.setAttribute("value", "");
|
| 3683 |
+
Nothing = document.createTextNode(" ");
|
| 3684 |
+
|
| 3685 |
+
var option_yes_no2 = document.createElement('option');
|
| 3686 |
+
option_yes_no2.setAttribute("value", "yes");
|
| 3687 |
+
Yes = document.createTextNode("Yes");
|
| 3688 |
|
| 3689 |
+
var option_yes_no3 = document.createElement('option');
|
| 3690 |
+
option_yes_no3.setAttribute("value", "no");
|
| 3691 |
+
No = document.createTextNode("No");
|
| 3692 |
|
| 3693 |
+
option_yes_no1.appendChild(Nothing);
|
| 3694 |
+
option_yes_no2.appendChild(Yes);
|
| 3695 |
+
option_yes_no3.appendChild(No);
|
| 3696 |
+
select_yes_no.appendChild(option_yes_no1);
|
| 3697 |
+
select_yes_no.appendChild(option_yes_no2);
|
| 3698 |
+
select_yes_no.appendChild(option_yes_no3);
|
| 3699 |
+
td.appendChild(select_yes_no);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3700 |
}
|
| 3701 |
else{
|
| 3702 |
+
var input_of_matrix = document.createElement('input');
|
| 3703 |
input_of_matrix.setAttribute("id", num+"_input_elementform_id_temp"+i+"_"+k);
|
| 3704 |
input_of_matrix.setAttribute("align", "center");
|
| 3705 |
input_of_matrix.setAttribute("size", "14");
|
|
|
|
| 3706 |
input_of_matrix.setAttribute("type", document.getElementById("edit_for_select_input_type").value);
|
| 3707 |
|
| 3708 |
|
| 3709 |
+
if(document.getElementById("edit_for_select_input_type").value=="radio"){
|
| 3710 |
+
input_of_matrix.setAttribute("name", num+"_input_elementform_id_temp"+i);
|
| 3711 |
+
input_of_matrix.setAttribute("value", i+"_"+k);
|
| 3712 |
+
}else {
|
| 3713 |
+
if(document.getElementById("edit_for_select_input_type").value=="checkbox"){
|
| 3714 |
+
input_of_matrix.setAttribute("name", num+"_input_elementform_id_temp"+i+"_"+k);
|
| 3715 |
+
input_of_matrix.setAttribute("value", 1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3716 |
}
|
| 3717 |
+
else{
|
| 3718 |
+
document.getElementById( num+"_textbox_sizeform_id_temp").value = document.getElementById("edit_for_label_textbox_size").value;
|
| 3719 |
|
| 3720 |
+
input_of_matrix.setAttribute("name", num+"_input_elementform_id_temp"+i+"_"+k);
|
| 3721 |
+
input_of_matrix.setAttribute("value", '');
|
| 3722 |
+
input_of_matrix.style.cssText = "width:"+document.getElementById("edit_for_label_textbox_size").value+"px;";
|
| 3723 |
+
}
|
| 3724 |
+
}
|
| 3725 |
+
td.appendChild(input_of_matrix);
|
| 3726 |
+
}
|
| 3727 |
+
tr.appendChild(td);
|
| 3728 |
+
}
|
| 3729 |
}
|
| 3730 |
+
}
|
| 3731 |
+
}
|
|
|
|
|
|
|
| 3732 |
}
|
| 3733 |
|
| 3734 |
function remove_rowcols(id, num, type)
|
| 12618 |
var edit_main_tr2 = document.createElement('tr');
|
| 12619 |
var edit_main_tr3 = document.createElement('tr');
|
| 12620 |
var edit_main_tr4 = document.createElement('tr');
|
| 12621 |
+
edit_main_tr4.style.cssText = "display:none;";
|
| 12622 |
var edit_main_tr5 = document.createElement('tr');
|
| 12623 |
var edit_main_tr6 = document.createElement('tr');
|
| 12624 |
|
| 21583 |
document.getElementById(id+"_total_elementform_id_temp").innerHTML = value;
|
| 21584 |
}
|
| 21585 |
|
| 21586 |
+
function type_matrix(i, w_field_label, w_field_label_size, w_field_label_pos, w_field_input_type, w_rows, w_columns, w_required, w_class, w_attr_name, w_attr_value, w_textbox_size) {
|
| 21587 |
|
| 21588 |
document.getElementById("element_type").value="type_matrix";
|
| 21589 |
|
| 21598 |
edit_main_table.setAttribute("cellpadding", "0");
|
| 21599 |
edit_main_table.setAttribute("cellspacing", "0");
|
| 21600 |
|
| 21601 |
+
var edit_main_tr1 = document.createElement('tr');
|
| 21602 |
+
var edit_main_tr2 = document.createElement('tr');
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21603 |
var edit_main_tr3 = document.createElement('tr');
|
|
|
|
|
|
|
| 21604 |
var edit_main_tr4 = document.createElement('tr');
|
|
|
|
|
|
|
| 21605 |
var edit_main_tr5 = document.createElement('tr');
|
|
|
|
|
|
|
| 21606 |
var edit_main_tr6 = document.createElement('tr');
|
|
|
|
| 21607 |
var edit_main_tr7 = document.createElement('tr');
|
|
|
|
|
|
|
| 21608 |
var edit_main_tr8 = document.createElement('tr');
|
|
|
|
|
|
|
| 21609 |
var edit_main_tr9 = document.createElement('tr');
|
| 21610 |
+
var edit_main_tr10 = document.createElement('tr');
|
| 21611 |
+
edit_main_tr10.setAttribute("id", "el_textbox");
|
| 21612 |
+
if(w_field_input_type!="text")
|
| 21613 |
+
edit_main_tr10.style.cssText = "display:none;";
|
| 21614 |
|
| 21615 |
var edit_main_td1 = document.createElement('td');
|
| 21616 |
edit_main_td1.style.cssText = "padding-top:10px";
|
| 21627 |
var edit_main_td3_1 = document.createElement('td');
|
| 21628 |
edit_main_td3_1.style.cssText = "padding-top:10px ";
|
| 21629 |
|
|
|
|
| 21630 |
var edit_main_td4 = document.createElement('td');
|
| 21631 |
edit_main_td4.style.cssText = "padding-top:10px" ;
|
| 21632 |
edit_main_td4.setAttribute("id", "rows");
|
| 21658 |
var edit_main_td9_1 = document.createElement('td');
|
| 21659 |
edit_main_td9_1.style.cssText = "padding-top:10px";
|
| 21660 |
|
| 21661 |
+
var edit_main_td10 = document.createElement('td');
|
| 21662 |
+
var edit_main_td10_1 = document.createElement('td');
|
| 21663 |
+
|
| 21664 |
var el_label_label = document.createElement('label');
|
| 21665 |
+
el_label_label.style.cssText ="color:#00aeef; font-weight:bold; font-size: 13px";
|
| 21666 |
+
el_label_label.innerHTML = "Field label";
|
| 21667 |
|
| 21668 |
var el_label_textarea = document.createElement('textarea');
|
| 21669 |
+
el_label_textarea.setAttribute("id", "edit_for_label");
|
| 21670 |
+
el_label_textarea.setAttribute("rows", "4");
|
| 21671 |
+
el_label_textarea.style.cssText = "width:200px;";
|
| 21672 |
+
el_label_textarea.setAttribute("onKeyUp", "change_label('"+i+"_element_labelform_id_temp', this.value)");
|
| 21673 |
+
el_label_textarea.innerHTML = w_field_label;
|
| 21674 |
|
| 21675 |
var el_label_size_label = document.createElement('label');
|
| 21676 |
el_label_size_label.setAttribute("for", "edit_for_label_size");
|
| 21684 |
el_label_size.setAttribute("onKeyUp", "change_w_style('"+i+"_label_sectionform_id_temp', this.value)");
|
| 21685 |
|
| 21686 |
var el_label_position_label = document.createElement('label');
|
| 21687 |
+
el_label_position_label.style.cssText ="color:#00aeef; font-weight:bold; font-size: 13px";
|
| 21688 |
el_label_position_label.innerHTML = "Field label position";
|
| 21689 |
|
| 21690 |
var el_label_position1 = document.createElement('input');
|
| 21691 |
+
el_label_position1.setAttribute("id", "edit_for_label_position_top");
|
| 21692 |
+
el_label_position1.setAttribute("type", "radio");
|
| 21693 |
+
el_label_position1.setAttribute("value", "left");
|
| 21694 |
+
el_label_position1.setAttribute("name", "edit_for_label_position");
|
| 21695 |
+
el_label_position1.setAttribute("onchange", "label_left("+i+")");
|
|
|
|
| 21696 |
Left = document.createTextNode("Left");
|
| 21697 |
|
| 21698 |
var el_label_position2 = document.createElement('input');
|
| 21699 |
+
el_label_position2.setAttribute("id", "edit_for_label_position_left");
|
| 21700 |
+
el_label_position2.setAttribute("type", "radio");
|
| 21701 |
+
el_label_position2.setAttribute("value", "top");
|
| 21702 |
+
el_label_position2.setAttribute("name", "edit_for_label_position");
|
| 21703 |
+
el_label_position2.setAttribute("onchange", "label_top("+i+")");
|
|
|
|
| 21704 |
Top = document.createTextNode("Top");
|
| 21705 |
|
| 21706 |
if(w_field_label_pos=="top")
|
| 21707 |
+
el_label_position2.setAttribute("checked", "checked");
|
|
|
|
| 21708 |
else
|
| 21709 |
+
el_label_position1.setAttribute("checked", "checked");
|
| 21710 |
|
|
|
|
|
|
|
| 21711 |
|
| 21712 |
+
var el_input_type_label = document.createElement('label');
|
| 21713 |
+
el_input_type_label.style.cssText ="color:#00aeef; font-weight:bold; font-size: 13px";
|
| 21714 |
el_input_type_label.innerHTML = "Input Type";
|
| 21715 |
|
| 21716 |
var el_input_type = document.createElement('select');
|
| 21717 |
+
el_input_type.setAttribute("id", "edit_for_select_input_type");
|
| 21718 |
+
el_input_type.setAttribute("name", "edit_for_select_input_type");
|
| 21719 |
+
el_input_type.setAttribute("onchange", "change_input_type("+i+",this.value); refresh_matrix("+i+")");
|
| 21720 |
|
| 21721 |
var el_input_type1 = document.createElement('option');
|
| 21722 |
+
el_input_type1.setAttribute("id", "edit_for_input_type_radio");
|
| 21723 |
+
el_input_type1.setAttribute("value", "radio");
|
| 21724 |
+
Radio_Button = document.createTextNode("Radio Button");
|
| 21725 |
|
| 21726 |
var el_input_type2 = document.createElement('option');
|
| 21727 |
+
el_input_type2.setAttribute("id", "edit_for_input_type_checkbox");
|
| 21728 |
+
el_input_type2.setAttribute("value", "checkbox");
|
| 21729 |
+
Check_Box = document.createTextNode("Check Box");
|
| 21730 |
|
| 21731 |
var el_input_type3 = document.createElement('option');
|
| 21732 |
+
el_input_type3.setAttribute("id", "edit_for_input_type_text");
|
| 21733 |
+
el_input_type3.setAttribute("value", "text");
|
| 21734 |
+
Text_Box= document.createTextNode("Text Box");
|
| 21735 |
|
| 21736 |
var el_input_type4 = document.createElement('option');
|
| 21737 |
+
el_input_type4.setAttribute("id", "edit_for_input_type_select");
|
| 21738 |
+
el_input_type4.setAttribute("value", "select");
|
| 21739 |
+
Drop_Down = document.createTextNode("Drop Down");
|
| 21740 |
+
|
| 21741 |
+
var el_textbox_size_label = document.createElement('label');
|
| 21742 |
+
el_textbox_size_label.setAttribute("for", "edit_for_textbox_size_label");
|
| 21743 |
+
el_textbox_size_label.innerHTML = "Text Box size(px) ";
|
| 21744 |
+
|
| 21745 |
+
var el_textbox_size = document.createElement('input');
|
| 21746 |
+
el_textbox_size.setAttribute("id", "edit_for_label_textbox_size");
|
| 21747 |
+
el_textbox_size.setAttribute("type", "text");
|
| 21748 |
+
el_textbox_size.setAttribute("value", w_textbox_size);
|
| 21749 |
+
el_textbox_size.setAttribute("onKeyPress", "return check_isnum(event)");
|
| 21750 |
+
el_textbox_size.setAttribute("onKeyUp", "refresh_matrix("+i+")");
|
| 21751 |
+
|
| 21752 |
+
if(w_field_input_type=="radio")
|
| 21753 |
+
el_input_type1.setAttribute("selected", "selected");
|
| 21754 |
else
|
| 21755 |
{
|
| 21756 |
if(w_field_input_type=="checkbox")
|
| 21757 |
+
el_input_type2.setAttribute("selected", "selected");
|
| 21758 |
+
else{
|
| 21759 |
+
if(w_field_input_type=="text")
|
| 21760 |
+
el_input_type3.setAttribute("selected", "selected");
|
| 21761 |
+
else{
|
| 21762 |
+
if(w_field_input_type=="select")
|
| 21763 |
+
el_input_type4.setAttribute("selected", "selected");
|
| 21764 |
+
|
| 21765 |
+
}
|
| 21766 |
+
}
|
| 21767 |
+
}
|
|
|
|
|
|
|
| 21768 |
|
| 21769 |
var el_style_label = document.createElement('label');
|
| 21770 |
el_style_label.style.cssText ="color:#00aeef; font-weight:bold; font-size: 13px";
|
| 21789 |
el_required.setAttribute("value", "yes");
|
| 21790 |
el_required.setAttribute("onclick", "set_required('"+i+"_required')");
|
| 21791 |
if(w_required=="yes")
|
| 21792 |
+
el_required.setAttribute("checked", "checked");
|
|
|
|
|
|
|
|
|
|
| 21793 |
|
| 21794 |
|
| 21795 |
var el_attr_label = document.createElement('label');
|
| 21874 |
}
|
| 21875 |
|
| 21876 |
var el_rows_label = document.createElement('label');
|
| 21877 |
+
el_rows_label.style.cssText ="color:#00aeef; font-weight:bold; font-size: 13px";
|
| 21878 |
el_rows_label.innerHTML = "Rows ";
|
| 21879 |
var el_rows_add = document.createElement('img');
|
| 21880 |
+
el_rows_add.setAttribute("id", "el_rows_add");
|
| 21881 |
+
el_rows_add.setAttribute("src", plugin_url + '/images/add.png');
|
| 21882 |
+
el_rows_add.style.cssText = 'cursor:pointer;';
|
| 21883 |
+
el_rows_add.setAttribute("title", 'add');
|
| 21884 |
+
el_rows_add.setAttribute("onClick", "add_to_matrix('rows', "+i+")");
|
| 21885 |
|
| 21886 |
var el_columns_label = document.createElement('label');
|
| 21887 |
+
el_columns_label.style.cssText ="color:#00aeef; font-weight:bold; font-size: 13px";
|
| 21888 |
el_columns_label.innerHTML = "Columns ";
|
| 21889 |
var el_columns_add = document.createElement('img');
|
| 21890 |
+
el_columns_add.setAttribute("id", "el_columns_add");
|
| 21891 |
+
el_columns_add.setAttribute("src", plugin_url + '/images/add.png');
|
| 21892 |
+
el_columns_add.style.cssText = 'cursor:pointer;';
|
| 21893 |
+
el_columns_add.setAttribute("title", 'add');
|
| 21894 |
+
el_columns_add.setAttribute("onClick", "add_to_matrix('columns', "+i+")");
|
| 21895 |
|
| 21896 |
var t = document.getElementById('edit_table');
|
| 21897 |
|
| 21915 |
edit_main_td2_1.appendChild(br2);
|
| 21916 |
edit_main_td2_1.appendChild(el_label_position2);
|
| 21917 |
edit_main_td2_1.appendChild(Top);
|
|
|
|
|
|
|
| 21918 |
|
| 21919 |
edit_main_td3.appendChild(el_input_type_label);
|
| 21920 |
|
| 21930 |
|
| 21931 |
edit_main_td3_1.appendChild(el_input_type);
|
| 21932 |
|
| 21933 |
+
edit_main_td10.appendChild(el_textbox_size_label);
|
| 21934 |
+
edit_main_td10_1.appendChild(el_textbox_size);
|
| 21935 |
|
| 21936 |
edit_main_td4.appendChild(el_rows_label);
|
| 21937 |
edit_main_td4_1.appendChild(el_rows_add);
|
| 21952 |
edit_main_td8.appendChild(el_attr_table);
|
| 21953 |
edit_main_td8.setAttribute("colspan", "2");
|
| 21954 |
|
|
|
|
|
|
|
| 21955 |
n=w_rows.length;
|
| 21956 |
for(k=1; k<n; k++)
|
| 21957 |
{
|
| 21978 |
|
| 21979 |
}
|
| 21980 |
|
|
|
|
| 21981 |
m=w_columns.length;
|
| 21982 |
for(k=1; k<m; k++)
|
| 21983 |
{
|
| 22012 |
edit_main_tr2.appendChild(edit_main_td2_1);
|
| 22013 |
edit_main_tr3.appendChild(edit_main_td3);
|
| 22014 |
edit_main_tr3.appendChild(edit_main_td3_1);
|
| 22015 |
+
edit_main_tr10.appendChild(edit_main_td10);
|
| 22016 |
+
edit_main_tr10.appendChild(edit_main_td10_1);
|
| 22017 |
edit_main_tr4.appendChild(edit_main_td4);
|
| 22018 |
edit_main_tr4.appendChild(edit_main_td4_1);
|
| 22019 |
edit_main_tr5.appendChild(edit_main_td5);
|
| 22024 |
edit_main_tr7.appendChild(edit_main_td7_1);
|
| 22025 |
edit_main_tr8.appendChild(edit_main_td8);
|
| 22026 |
|
|
|
|
| 22027 |
edit_main_table.appendChild(edit_main_tr1);
|
| 22028 |
edit_main_table.appendChild(edit_main_tr9);
|
| 22029 |
edit_main_table.appendChild(edit_main_tr2);
|
| 22030 |
edit_main_table.appendChild(edit_main_tr3);
|
| 22031 |
+
edit_main_table.appendChild(edit_main_tr10);
|
| 22032 |
edit_main_table.appendChild(edit_main_tr4);
|
| 22033 |
edit_main_table.appendChild(edit_main_tr5);
|
| 22034 |
edit_main_table.appendChild(edit_main_tr6);
|
| 22036 |
edit_main_table.appendChild(edit_main_tr8);
|
| 22037 |
|
| 22038 |
edit_div.appendChild(edit_main_table);
|
|
|
|
| 22039 |
t.appendChild(edit_div);
|
| 22040 |
+
element='input';
|
| 22041 |
+
type='matrix';
|
|
|
|
|
|
|
| 22042 |
var adding_type = document.createElement("input");
|
| 22043 |
adding_type.setAttribute("type", "hidden");
|
| 22044 |
adding_type.setAttribute("value", "type_matrix");
|
| 22055 |
adding_input_type.setAttribute("value", w_field_input_type);
|
| 22056 |
adding_input_type.setAttribute("name", i+"_input_typeform_id_temp");
|
| 22057 |
adding_input_type.setAttribute("id", i+"_input_typeform_id_temp");
|
| 22058 |
+
|
| 22059 |
+
var adding_textbox_size = document.createElement("input");
|
| 22060 |
+
adding_textbox_size.setAttribute("type", "hidden");
|
| 22061 |
+
adding_textbox_size.setAttribute("value", w_textbox_size);
|
| 22062 |
+
adding_textbox_size.setAttribute("name", i+"_textbox_sizeform_id_temp");
|
| 22063 |
+
adding_textbox_size.setAttribute("id", i+"_textbox_sizeform_id_temp");
|
| 22064 |
+
|
| 22065 |
var div = document.createElement('div');
|
| 22066 |
div.setAttribute("id", "main_div");
|
|
|
|
| 22067 |
|
| 22068 |
+
var div_field = document.createElement('div');
|
| 22069 |
+
div_field.setAttribute("id", i+"_elemet_tableform_id_temp");
|
| 22070 |
+
|
| 22071 |
+
var div_label = document.createElement('div');
|
| 22072 |
+
div_label.setAttribute("align", 'left');
|
| 22073 |
+
div_label.style.display="table-cell";
|
| 22074 |
+
div_label.style.width= w_field_label_size+'px';
|
| 22075 |
+
div_label.setAttribute("id", i+"_label_sectionform_id_temp");
|
| 22076 |
|
| 22077 |
+
var div_element = document.createElement('div');
|
| 22078 |
+
div_element.setAttribute("align", 'left');
|
| 22079 |
+
div_element.style.display="table-cell";
|
| 22080 |
+
div_element.setAttribute("id", i+"_element_sectionform_id_temp");
|
| 22081 |
+
|
| 22082 |
+
var br1 = document.createElement('br');
|
| 22083 |
+
var br2 = document.createElement('br');
|
| 22084 |
+
var br3 = document.createElement('br');
|
| 22085 |
+
var br4 = document.createElement('br');
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22086 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22087 |
var table_little_t = document.createElement('div');
|
| 22088 |
table_little_t.setAttribute("id", i+"_elementform_id_temp");
|
| 22089 |
table_little_t.style.display="table";
|
|
|
|
| 22090 |
|
| 22091 |
var table_little = document.createElement('div');
|
| 22092 |
+
table_little.setAttribute("id", i+"_table_little");
|
| 22093 |
+
table_little.style.display="table-row-group";
|
|
|
|
| 22094 |
|
| 22095 |
table_little_t.appendChild(table_little);
|
|
|
|
| 22096 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22097 |
|
| 22098 |
+
|
| 22099 |
+
var label = document.createElement('span');
|
| 22100 |
+
label.setAttribute("id", i+"_element_labelform_id_temp");
|
| 22101 |
+
label.innerHTML = w_field_label;
|
| 22102 |
+
label.setAttribute("class", "label");
|
| 22103 |
+
|
| 22104 |
+
|
| 22105 |
+
var required = document.createElement('span');
|
| 22106 |
+
required.setAttribute("id", i+"_required_elementform_id_temp");
|
| 22107 |
+
required.innerHTML = "";
|
| 22108 |
+
required.setAttribute("class", "required");
|
| 22109 |
+
if(w_required=="yes")
|
| 22110 |
required.innerHTML = " *";
|
| 22111 |
|
| 22112 |
+
var main_td = document.getElementById('show_table');
|
| 22113 |
|
| 22114 |
div_label.appendChild(label);
|
| 22115 |
div_label.appendChild(required);
|
| 22116 |
div_element.appendChild(adding_type);
|
| 22117 |
div_element.appendChild(adding_required);
|
| 22118 |
div_element.appendChild(adding_input_type);
|
| 22119 |
+
div_element.appendChild(adding_textbox_size);
|
| 22120 |
div_element.appendChild(table_little_t);
|
| 22121 |
div_field.appendChild(div_label);
|
| 22122 |
div_field.appendChild(div_element);
|
| 25678 |
|
| 25679 |
w_rows = ['','row1','row2'];
|
| 25680 |
w_columns = ['','column1','column2'];
|
| 25681 |
+
type_matrix(new_id,'Matrix:', '100', 'left', 'radio', w_rows, w_columns, 'no','wdform_matrix',w_attr_name, w_attr_value, '100');
|
| 25682 |
}
|
| 25683 |
|
| 25684 |
function go_to_type_paypal_price(new_id)
|
| 29376 |
}
|
| 29377 |
|
| 29378 |
w_field_input_type = document.getElementById(id+"_input_typeform_id_temp").value;
|
| 29379 |
+
w_textbox_size = document.getElementById(id+"_textbox_sizeform_id_temp") ? document.getElementById(id+"_textbox_sizeform_id_temp").value : '100';
|
| 29380 |
atrs=return_attributes(id+'_elementform_id_temp');
|
| 29381 |
+
w_attr_name=atrs[0];
|
| 29382 |
+
w_attr_value=atrs[1];
|
| 29383 |
+
type_matrix(id, w_field_label, w_field_label_size, w_field_label_pos, w_field_input_type, w_rows, w_columns, w_required, w_class, w_attr_name, w_attr_value, w_textbox_size); refresh_matrix(id); break;
|
| 29384 |
|
| 29385 |
|
| 29386 |
}
|
| 29387 |
|
|
|
|
| 29388 |
case 'type_time':
|
| 29389 |
{
|
| 29390 |
atrs=return_attributes(id+'_hhform_id_temp');
|
| 30483 |
}
|
| 30484 |
|
| 30485 |
w_field_input_type = document.getElementById(id+"_input_typeform_id_temp").value;
|
| 30486 |
+
w_textbox_size = document.getElementById(id+"_textbox_sizeform_id_temp") ? document.getElementById(id+"_textbox_sizeform_id_temp").value : '100';
|
| 30487 |
atrs=return_attributes(id+'_elementform_id_temp');
|
| 30488 |
+
w_attr_name=atrs[0];
|
| 30489 |
+
w_attr_value=atrs[1];
|
| 30490 |
+
type_matrix(gen, w_field_label, w_field_label_size, w_field_label_pos, w_field_input_type, w_rows, w_columns, w_required, w_class, w_attr_name, w_attr_value, w_textbox_size); refresh_matrix(id); break;
|
| 30491 |
|
| 30492 |
|
| 30493 |
}
|
| 30494 |
|
| 30495 |
|
| 30496 |
+
|
| 30497 |
case 'type_time':
|
| 30498 |
{
|
| 30499 |
atrs=return_attributes(id+'_hhform_id_temp');
|
| 31933 |
}
|
| 31934 |
|
| 31935 |
w_field_input_type = document.getElementById(id+"_input_typeform_id_temp").value;
|
| 31936 |
+
w_textbox_size = document.getElementById(id+"_textbox_sizeform_id_temp") ? document.getElementById(id+"_textbox_sizeform_id_temp").value : '100';
|
| 31937 |
atrs=return_attributes(id+'_elementform_id_temp');
|
| 31938 |
w_attr_name=atrs[0];
|
| 31939 |
w_attr_value=atrs[1];
|
| 31952 |
{
|
| 31953 |
form_fields+=w_attr_name[j]+"="+w_attr_value[j]+"*:*w_attr_name*:*";
|
| 31954 |
}
|
| 31955 |
+
form_fields+=w_textbox_size+"*:*w_textbox_size*:*";
|
| 31956 |
form_fields+="*:*new_field*:*";
|
| 31957 |
break;
|
| 31958 |
}
|
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, admin, captcha, contact, database, email, javascript, jquery, page, plugin, survey, widget, custom form, forms creator, input, validation, send copy, form with captcha
|
| 5 |
Requires at least: 3.4
|
| 6 |
Tested up to: 4.2
|
| 7 |
-
Stable tag: 1.7.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -277,6 +277,9 @@ The Form Maker (Pro version) has simple PayPal integration. This allows the user
|
|
| 277 |
|
| 278 |
== Changelog ==
|
| 279 |
|
|
|
|
|
|
|
|
|
|
| 280 |
= 1.7.43 =
|
| 281 |
New: Email verification
|
| 282 |
|
| 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, admin, captcha, contact, database, email, javascript, jquery, page, plugin, survey, widget, custom form, forms creator, input, validation, send copy, form with captcha
|
| 5 |
Requires at least: 3.4
|
| 6 |
Tested up to: 4.2
|
| 7 |
+
Stable tag: 1.7.44
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 277 |
|
| 278 |
== Changelog ==
|
| 279 |
|
| 280 |
+
= 1.7.44 =
|
| 281 |
+
security issue fixed
|
| 282 |
+
|
| 283 |
= 1.7.43 =
|
| 284 |
New: Email verification
|
| 285 |
|
