Version Description
- Major Bugs Fixed Related to Frontend
- Major Bugs Fixed Related to Saving of Options
Download this release
Release Info
Developer | contact-banker |
Plugin | Contact Bank: WordPress Form Builder for Contact Forms |
Version | 2.0.46 |
Comparing to | |
See all releases |
Code changes from version 2.0.45 to 2.0.46
- contact-bank.php +1 -1
- frontend_views/contact_bank_forms.php +8 -8
- includes/cb_checkbox.php +4 -9
- includes/cb_dropdown.php +7 -15
- includes/cb_multiple.php +4 -8
- lib/contact_view-class.php +6 -6
- readme.txt +7 -2
- views/includes_common_after.php +6 -10
contact-bank.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Contact Bank Standard Edition
|
|
4 |
Plugin URI: http://tech-banker.com
|
5 |
Description: Build Complex, Powerful Contact Forms in Just Seconds. No Programming Knowledge Required! Yeah, It's Really That Easy.
|
6 |
Author: Tech Banker
|
7 |
-
Version: 2.0.
|
8 |
Author URI: http://tech-banker.com
|
9 |
*/
|
10 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
4 |
Plugin URI: http://tech-banker.com
|
5 |
Description: Build Complex, Powerful Contact Forms in Just Seconds. No Programming Knowledge Required! Yeah, It's Really That Easy.
|
6 |
Author: Tech Banker
|
7 |
+
Version: 2.0.46
|
8 |
Author URI: http://tech-banker.com
|
9 |
*/
|
10 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
frontend_views/contact_bank_forms.php
CHANGED
@@ -117,10 +117,10 @@ $forms_email_settings = $wpdb->get_row
|
|
117 |
<?php
|
118 |
}
|
119 |
else
|
120 |
-
{
|
121 |
?>
|
122 |
text-align: <?php echo $layout_settings_array[$form_id]["label_setting_font_align_left"] == "0" ? "left" : "right"; ?> !important;
|
123 |
-
<?php
|
124 |
}
|
125 |
?>
|
126 |
font-size: <?php echo $layout_settings_array[$form_id]["label_setting_font_size"] . "px"; ?> !important;
|
@@ -359,8 +359,8 @@ $forms_email_settings = $wpdb->get_row
|
|
359 |
<?php
|
360 |
break;
|
361 |
case 4:
|
362 |
-
$ddl_values =
|
363 |
-
|
364 |
?>
|
365 |
<div class="layout-controls layout_according_label_position hovertip" data-original-title="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_tooltip_txt"]; ?>">
|
366 |
<select class=" input_control <?php echo $layout_settings_array[$form_id]["input_field_input_size"]; ?>" type="select" id="ux_select_default_<?php echo $form_fields[$flag]->column_dynamicId; ?>"
|
@@ -380,8 +380,8 @@ $forms_email_settings = $wpdb->get_row
|
|
380 |
<?php
|
381 |
break;
|
382 |
case 5:
|
383 |
-
$chk_values =
|
384 |
-
|
385 |
if(count($chk_ids) > 0)
|
386 |
{
|
387 |
?>
|
@@ -415,8 +415,8 @@ $forms_email_settings = $wpdb->get_row
|
|
415 |
}
|
416 |
break;
|
417 |
case 6:
|
418 |
-
$rdl_values =
|
419 |
-
|
420 |
if(count($rdl_ids) > 0)
|
421 |
{
|
422 |
?>
|
117 |
<?php
|
118 |
}
|
119 |
else
|
120 |
+
{
|
121 |
?>
|
122 |
text-align: <?php echo $layout_settings_array[$form_id]["label_setting_font_align_left"] == "0" ? "left" : "right"; ?> !important;
|
123 |
+
<?php
|
124 |
}
|
125 |
?>
|
126 |
font-size: <?php echo $layout_settings_array[$form_id]["label_setting_font_size"] . "px"; ?> !important;
|
359 |
<?php
|
360 |
break;
|
361 |
case 4:
|
362 |
+
$ddl_values = unserialize($control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_dropdown_option_val"]);
|
363 |
+
$ddl_ids = unserialize($control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_dropdown_option_id"]);
|
364 |
?>
|
365 |
<div class="layout-controls layout_according_label_position hovertip" data-original-title="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_tooltip_txt"]; ?>">
|
366 |
<select class=" input_control <?php echo $layout_settings_array[$form_id]["input_field_input_size"]; ?>" type="select" id="ux_select_default_<?php echo $form_fields[$flag]->column_dynamicId; ?>"
|
380 |
<?php
|
381 |
break;
|
382 |
case 5:
|
383 |
+
$chk_values = unserialize($control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_checkbox_option_val"]);
|
384 |
+
$chk_ids = unserialize($control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_checkbox_option_id"]);
|
385 |
if(count($chk_ids) > 0)
|
386 |
{
|
387 |
?>
|
415 |
}
|
416 |
break;
|
417 |
case 6:
|
418 |
+
$rdl_values = unserialize($control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_radio_option_val"]);
|
419 |
+
$rdl_ids = unserialize($control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_radio_option_id"]);
|
420 |
if(count($rdl_ids) > 0)
|
421 |
{
|
422 |
?>
|
includes/cb_checkbox.php
CHANGED
@@ -107,9 +107,7 @@ if(count($control_id) != 0)
|
|
107 |
<?php
|
108 |
if(isset($form_settings[$dynamicId]["cb_checkbox_option_id"]) && isset($form_settings[$dynamicId]["cb_checkbox_option_val"]))
|
109 |
{
|
110 |
-
|
111 |
-
$options_value = count( unserialize($form_settings[$dynamicId]["cb_checkbox_option_val"])) > 0 ? explode(",",unserialize($form_settings[$dynamicId]["cb_checkbox_option_val"])) : "";
|
112 |
-
$options_ids = count(unserialize($form_settings[$dynamicId]["cb_checkbox_option_id"])) > 0 ? explode(",",unserialize($form_settings[$dynamicId]["cb_checkbox_option_id"])) : "";
|
113 |
if(count($options_value) > 0)
|
114 |
{
|
115 |
?>
|
@@ -126,15 +124,12 @@ if(count($control_id) != 0)
|
|
126 |
<div class="layout-controls">
|
127 |
<select id="dropdown_ddl_option_<?php echo $dynamicId; ?>" class="layout-span9">
|
128 |
<?php
|
129 |
-
|
130 |
-
{
|
131 |
-
for($flag1 = 0;$flag1<count($options_ids);$flag1++)
|
132 |
{
|
133 |
?>
|
134 |
-
<option value="<?php echo $
|
135 |
<?php
|
136 |
}
|
137 |
-
}
|
138 |
?>
|
139 |
</select>
|
140 |
<input class="btn btn-info layout-span2" style="margin-left:10px;" value="<?php _e( "Delete", contact_bank ); ?>" type="button" id="ddl_options_btn_del_<?php echo $dynamicId; ?>" onclick="delete_ddl_options(<?php echo $dynamicId; ?>);" name="ddl_options_btn_del_<?php echo $dynamicId; ?>" />
|
@@ -213,7 +208,7 @@ jQuery("#ux_frm_check_box_control").validate
|
|
213 |
options_ddl.push(this.value);
|
214 |
options_value.push(this.text);
|
215 |
});
|
216 |
-
jQuery.post(ajaxurl, jQuery(form).serialize() + "&controlId="+controlId+"&form_id="+form_id+"&ddl_options_id="+JSON.stringify(
|
217 |
{
|
218 |
jQuery("#control_label_"+dynamicId).html(jQuery("#ux_label_text_"+dynamicId).val()+" :");
|
219 |
jQuery("#post_back_checkbox_"+dynamicId).attr("data-original-title",jQuery("#ux_tooltip_control_"+dynamicId).val());
|
107 |
<?php
|
108 |
if(isset($form_settings[$dynamicId]["cb_checkbox_option_id"]) && isset($form_settings[$dynamicId]["cb_checkbox_option_val"]))
|
109 |
{
|
110 |
+
$options_value = unserialize($form_settings[$dynamicId]["cb_checkbox_option_val"]);
|
|
|
|
|
111 |
if(count($options_value) > 0)
|
112 |
{
|
113 |
?>
|
124 |
<div class="layout-controls">
|
125 |
<select id="dropdown_ddl_option_<?php echo $dynamicId; ?>" class="layout-span9">
|
126 |
<?php
|
127 |
+
foreach(unserialize($form_settings[$dynamicId]["cb_checkbox_option_id"]) as $key => $value )
|
|
|
|
|
128 |
{
|
129 |
?>
|
130 |
+
<option value="<?php echo $value; ?>"><?php echo $options_value[$key]; ?></option>
|
131 |
<?php
|
132 |
}
|
|
|
133 |
?>
|
134 |
</select>
|
135 |
<input class="btn btn-info layout-span2" style="margin-left:10px;" value="<?php _e( "Delete", contact_bank ); ?>" type="button" id="ddl_options_btn_del_<?php echo $dynamicId; ?>" onclick="delete_ddl_options(<?php echo $dynamicId; ?>);" name="ddl_options_btn_del_<?php echo $dynamicId; ?>" />
|
208 |
options_ddl.push(this.value);
|
209 |
options_value.push(this.text);
|
210 |
});
|
211 |
+
jQuery.post(ajaxurl, jQuery(form).serialize() + "&controlId="+controlId+"&form_id="+form_id+"&ddl_options_id="+JSON.stringify(options_ddl)+"&options_value="+encodeURIComponent(JSON.stringify(options_value))+"&form_settings="+JSON.stringify(<?php echo json_encode($form_settings) ?>)+"&event=update¶m=save_check_box_control&action=add_contact_form_library", function(data)
|
212 |
{
|
213 |
jQuery("#control_label_"+dynamicId).html(jQuery("#ux_label_text_"+dynamicId).val()+" :");
|
214 |
jQuery("#post_back_checkbox_"+dynamicId).attr("data-original-title",jQuery("#ux_tooltip_control_"+dynamicId).val());
|
includes/cb_dropdown.php
CHANGED
@@ -107,8 +107,7 @@
|
|
107 |
<?php
|
108 |
if(isset($form_settings[$dynamicId]["cb_dropdown_option_id"]) && isset($form_settings[$dynamicId]["cb_dropdown_option_val"]))
|
109 |
{
|
110 |
-
$options_values =
|
111 |
-
$options_ids = count(unserialize($form_settings[$dynamicId]["cb_dropdown_option_id"])) > 0 ? explode(",",unserialize($form_settings[$dynamicId]["cb_dropdown_option_id"])) : "";
|
112 |
if(count($options_values) > 0)
|
113 |
{
|
114 |
?>
|
@@ -125,23 +124,16 @@
|
|
125 |
<div class="layout-controls">
|
126 |
<select id="dropdown_ddl_option_<?php echo $dynamicId; ?>" class="layout-span9">
|
127 |
<?php
|
128 |
-
|
129 |
{
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
{
|
134 |
-
?>
|
135 |
-
<option value="<?php echo $options_ids[$flag1]; ?>"><?php echo $options_values[$flag1]; ?></option>
|
136 |
-
<?php
|
137 |
-
}
|
138 |
-
}
|
139 |
}
|
140 |
?>
|
141 |
</select>
|
142 |
<input class="btn btn-info layout-span2" style="margin-left:10px;" value="<?php _e( "Delete", contact_bank ); ?>" type="button" id="ddl_options_btn_del_<?php echo $dynamicId; ?>" onclick="delete_ddl_options(<?php echo $dynamicId; ?>);" name="ddl_options_btn_del_<?php echo $dynamicId; ?>" />
|
143 |
</div>
|
144 |
-
|
145 |
</div>
|
146 |
<?php
|
147 |
}
|
@@ -207,7 +199,7 @@
|
|
207 |
options_ddl.push(this.value);
|
208 |
options_value.push(this.text);
|
209 |
});
|
210 |
-
jQuery.post(ajaxurl, jQuery(form).serialize() + "&controlId="+controlId+"&form_id="+form_id+"&form_settings="+JSON.stringify(<?php echo json_encode($form_settings); ?>)+"&ddl_options_id="+JSON.stringify(
|
211 |
{
|
212 |
jQuery("#control_label_"+dynamicId).html(jQuery("#ux_label_text_"+dynamicId).val()+" :");
|
213 |
jQuery("#show_tooltip"+dynamicId).attr("data-original-title",jQuery("#ux_tooltip_control_"+dynamicId).val());
|
@@ -243,4 +235,4 @@
|
|
243 |
jQuery("#bind_dropdown_"+dynamicId).css("display","none");
|
244 |
}
|
245 |
}
|
246 |
-
</script>
|
107 |
<?php
|
108 |
if(isset($form_settings[$dynamicId]["cb_dropdown_option_id"]) && isset($form_settings[$dynamicId]["cb_dropdown_option_val"]))
|
109 |
{
|
110 |
+
$options_values = unserialize($form_settings[$dynamicId]["cb_dropdown_option_val"]);
|
|
|
111 |
if(count($options_values) > 0)
|
112 |
{
|
113 |
?>
|
124 |
<div class="layout-controls">
|
125 |
<select id="dropdown_ddl_option_<?php echo $dynamicId; ?>" class="layout-span9">
|
126 |
<?php
|
127 |
+
foreach(unserialize($form_settings[$dynamicId]["cb_dropdown_option_id"]) as $key => $value )
|
128 |
{
|
129 |
+
?>
|
130 |
+
<option value="<?php echo $value; ?>"><?php echo $options_values[$key]; ?></option>
|
131 |
+
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
}
|
133 |
?>
|
134 |
</select>
|
135 |
<input class="btn btn-info layout-span2" style="margin-left:10px;" value="<?php _e( "Delete", contact_bank ); ?>" type="button" id="ddl_options_btn_del_<?php echo $dynamicId; ?>" onclick="delete_ddl_options(<?php echo $dynamicId; ?>);" name="ddl_options_btn_del_<?php echo $dynamicId; ?>" />
|
136 |
</div>
|
|
|
137 |
</div>
|
138 |
<?php
|
139 |
}
|
199 |
options_ddl.push(this.value);
|
200 |
options_value.push(this.text);
|
201 |
});
|
202 |
+
jQuery.post(ajaxurl, jQuery(form).serialize() + "&controlId="+controlId+"&form_id="+form_id+"&form_settings="+JSON.stringify(<?php echo json_encode($form_settings); ?>)+"&ddl_options_id="+JSON.stringify(options_ddl)+"&options_value="+encodeURIComponent(JSON.stringify(options_value))+"&event=update¶m=save_drop_down_control&action=add_contact_form_library", function(data)
|
203 |
{
|
204 |
jQuery("#control_label_"+dynamicId).html(jQuery("#ux_label_text_"+dynamicId).val()+" :");
|
205 |
jQuery("#show_tooltip"+dynamicId).attr("data-original-title",jQuery("#ux_tooltip_control_"+dynamicId).val());
|
235 |
jQuery("#bind_dropdown_"+dynamicId).css("display","none");
|
236 |
}
|
237 |
}
|
238 |
+
</script>
|
includes/cb_multiple.php
CHANGED
@@ -125,8 +125,7 @@
|
|
125 |
<?php
|
126 |
if(isset($form_settings[$dynamicId]["cb_radio_option_id"]) && isset($form_settings[$dynamicId]["cb_radio_option_val"]))
|
127 |
{
|
128 |
-
$options_value =
|
129 |
-
$options_ids = count(unserialize($form_settings[$dynamicId]["cb_radio_option_id"])) > 0 ? explode(",",unserialize($form_settings[$dynamicId]["cb_radio_option_id"])) : "";
|
130 |
if(count($options_value) > 0)
|
131 |
{
|
132 |
?>
|
@@ -143,15 +142,12 @@
|
|
143 |
<div class="layout-controls">
|
144 |
<select id="dropdown_ddl_option_<?php echo $dynamicId; ?>" class="layout-span9">
|
145 |
<?php
|
146 |
-
|
147 |
-
{
|
148 |
-
for($flag1 = 0;$flag1<count($options_ids);$flag1++)
|
149 |
{
|
150 |
?>
|
151 |
-
<option value="<?php echo $
|
152 |
<?php
|
153 |
}
|
154 |
-
}
|
155 |
?>
|
156 |
</select>
|
157 |
<input class="btn btn-info layout-span2" style="margin-left:10px;" value="<?php _e( "Delete", contact_bank ); ?>" type="button" id="ddl_options_btn_del_<?php echo $dynamicId; ?>" onclick="delete_rdl_options(<?php echo $dynamicId; ?>);" name="ddl_options_btn_del_<?php echo $dynamicId; ?>" />
|
@@ -236,7 +232,7 @@
|
|
236 |
options_value.push(this.text);
|
237 |
jQuery("input[name=ux_radio"+dynamicId+"]:first").attr("checked","checked");
|
238 |
});
|
239 |
-
jQuery.post(ajaxurl, jQuery(form).serialize() + "&controlId="+controlId+"&form_id="+form_id+"&form_settings="+JSON.stringify(<?php echo json_encode($form_settings) ?>)+"&ddl_options_id="+JSON.stringify(
|
240 |
{
|
241 |
jQuery("#control_label_"+dynamicId).html(jQuery("#ux_label_text_"+dynamicId).val()+" :");
|
242 |
jQuery("#post_back_radio_button_"+dynamicId).attr("data-original-title",jQuery("#ux_tooltip_control_"+dynamicId).val());
|
125 |
<?php
|
126 |
if(isset($form_settings[$dynamicId]["cb_radio_option_id"]) && isset($form_settings[$dynamicId]["cb_radio_option_val"]))
|
127 |
{
|
128 |
+
$options_value = unserialize($form_settings[$dynamicId]["cb_radio_option_val"]);
|
|
|
129 |
if(count($options_value) > 0)
|
130 |
{
|
131 |
?>
|
142 |
<div class="layout-controls">
|
143 |
<select id="dropdown_ddl_option_<?php echo $dynamicId; ?>" class="layout-span9">
|
144 |
<?php
|
145 |
+
foreach(unserialize($form_settings[$dynamicId]["cb_radio_option_id"]) as $key => $value )
|
|
|
|
|
146 |
{
|
147 |
?>
|
148 |
+
<option value="<?php echo $value; ?>"><?php echo $options_value[$key]; ?></option>
|
149 |
<?php
|
150 |
}
|
|
|
151 |
?>
|
152 |
</select>
|
153 |
<input class="btn btn-info layout-span2" style="margin-left:10px;" value="<?php _e( "Delete", contact_bank ); ?>" type="button" id="ddl_options_btn_del_<?php echo $dynamicId; ?>" onclick="delete_rdl_options(<?php echo $dynamicId; ?>);" name="ddl_options_btn_del_<?php echo $dynamicId; ?>" />
|
232 |
options_value.push(this.text);
|
233 |
jQuery("input[name=ux_radio"+dynamicId+"]:first").attr("checked","checked");
|
234 |
});
|
235 |
+
jQuery.post(ajaxurl, jQuery(form).serialize() + "&controlId="+controlId+"&form_id="+form_id+"&form_settings="+JSON.stringify(<?php echo json_encode($form_settings) ?>)+"&ddl_options_id="+JSON.stringify(options_ddl)+"&options_value="+encodeURIComponent(JSON.stringify(options_value))+"&event=update¶m=save_multiple_control&action=add_contact_form_library", function(data)
|
236 |
{
|
237 |
jQuery("#control_label_"+dynamicId).html(jQuery("#ux_label_text_"+dynamicId).val()+" :");
|
238 |
jQuery("#post_back_radio_button_"+dynamicId).attr("data-original-title",jQuery("#ux_tooltip_control_"+dynamicId).val());
|
lib/contact_view-class.php
CHANGED
@@ -661,8 +661,8 @@ else
|
|
661 |
$event = esc_attr($_REQUEST["event"]);
|
662 |
$controlId = isset($_REQUEST["controlId"]) ? intval($_REQUEST["controlId"]) : 0;
|
663 |
$form_settings = isset($_REQUEST["form_settings"]) ? json_decode(stripcslashes($_REQUEST["form_settings"]),true) : array();
|
664 |
-
$ddl_options_id = isset($_REQUEST["ddl_options_id"]) ? json_decode(stripcslashes(
|
665 |
-
$options_value = isset($_REQUEST["options_value"]) ? json_decode(stripcslashes(
|
666 |
$form_settings[$dynamic_Id]["dynamic_id"] = $dynamic_Id;
|
667 |
$form_settings[$dynamic_Id]["control_type"] = "4";
|
668 |
$form_settings[$dynamic_Id]["cb_label_value"] = isset($_REQUEST["ux_label_text_".$dynamic_Id]) ? esc_attr($_REQUEST["ux_label_text_".$dynamic_Id]) :"Untitled";
|
@@ -756,8 +756,8 @@ else
|
|
756 |
$event = esc_attr($_REQUEST["event"]);
|
757 |
$controlId = isset($_REQUEST["controlId"]) ? intval($_REQUEST["controlId"]) : 0;
|
758 |
$form_settings = isset($_REQUEST["form_settings"]) ? json_decode(stripcslashes($_REQUEST["form_settings"]),true) : array();
|
759 |
-
$ddl_options_id = isset($_REQUEST["ddl_options_id"]) ? json_decode(stripcslashes(
|
760 |
-
$options_value = isset($_REQUEST["options_value"]) ? json_decode(stripcslashes(
|
761 |
$form_settings[$dynamic_Id]["dynamic_id"] = $dynamic_Id;
|
762 |
$form_settings[$dynamic_Id]["control_type"] = "5";
|
763 |
$form_settings[$dynamic_Id]["cb_label_value"] = isset($_REQUEST["ux_label_text_".$dynamic_Id]) ? esc_attr($_REQUEST["ux_label_text_".$dynamic_Id]) : "Untitled";
|
@@ -850,8 +850,8 @@ else
|
|
850 |
$event = esc_attr($_REQUEST["event"]);
|
851 |
$controlId = isset($_REQUEST["controlId"]) ? intval($_REQUEST["controlId"]) : 0;
|
852 |
$form_settings = isset($_REQUEST["form_settings"]) ? json_decode(stripcslashes($_REQUEST["form_settings"]),true) : array();
|
853 |
-
$ddl_options_id = isset($_REQUEST["ddl_options_id"]) ? json_decode(stripcslashes(
|
854 |
-
$options_value = isset($_REQUEST["options_value"]) ? json_decode(stripcslashes(
|
855 |
$form_settings[$dynamic_Id]["dynamic_id"] = $dynamic_Id;
|
856 |
$form_settings[$dynamic_Id]["control_type"] = "6";
|
857 |
$form_settings[$dynamic_Id]["cb_label_value"] = isset($_REQUEST["ux_label_text_".$dynamic_Id]) ? esc_attr($_REQUEST["ux_label_text_".$dynamic_Id]) : "Untitled";
|
661 |
$event = esc_attr($_REQUEST["event"]);
|
662 |
$controlId = isset($_REQUEST["controlId"]) ? intval($_REQUEST["controlId"]) : 0;
|
663 |
$form_settings = isset($_REQUEST["form_settings"]) ? json_decode(stripcslashes($_REQUEST["form_settings"]),true) : array();
|
664 |
+
$ddl_options_id = isset($_REQUEST["ddl_options_id"]) ? json_decode(stripcslashes($_REQUEST["ddl_options_id"]),true) : array();
|
665 |
+
$options_value = isset($_REQUEST["options_value"]) ? json_decode(stripcslashes($_REQUEST["options_value"]),true) : array();
|
666 |
$form_settings[$dynamic_Id]["dynamic_id"] = $dynamic_Id;
|
667 |
$form_settings[$dynamic_Id]["control_type"] = "4";
|
668 |
$form_settings[$dynamic_Id]["cb_label_value"] = isset($_REQUEST["ux_label_text_".$dynamic_Id]) ? esc_attr($_REQUEST["ux_label_text_".$dynamic_Id]) :"Untitled";
|
756 |
$event = esc_attr($_REQUEST["event"]);
|
757 |
$controlId = isset($_REQUEST["controlId"]) ? intval($_REQUEST["controlId"]) : 0;
|
758 |
$form_settings = isset($_REQUEST["form_settings"]) ? json_decode(stripcslashes($_REQUEST["form_settings"]),true) : array();
|
759 |
+
$ddl_options_id = isset($_REQUEST["ddl_options_id"]) ? json_decode(stripcslashes($_REQUEST["ddl_options_id"]),true) : array();
|
760 |
+
$options_value = isset($_REQUEST["options_value"]) ? json_decode(stripcslashes($_REQUEST["options_value"]),true) : array();
|
761 |
$form_settings[$dynamic_Id]["dynamic_id"] = $dynamic_Id;
|
762 |
$form_settings[$dynamic_Id]["control_type"] = "5";
|
763 |
$form_settings[$dynamic_Id]["cb_label_value"] = isset($_REQUEST["ux_label_text_".$dynamic_Id]) ? esc_attr($_REQUEST["ux_label_text_".$dynamic_Id]) : "Untitled";
|
850 |
$event = esc_attr($_REQUEST["event"]);
|
851 |
$controlId = isset($_REQUEST["controlId"]) ? intval($_REQUEST["controlId"]) : 0;
|
852 |
$form_settings = isset($_REQUEST["form_settings"]) ? json_decode(stripcslashes($_REQUEST["form_settings"]),true) : array();
|
853 |
+
$ddl_options_id = isset($_REQUEST["ddl_options_id"]) ? json_decode(stripcslashes($_REQUEST["ddl_options_id"]),true) : array();
|
854 |
+
$options_value = isset($_REQUEST["options_value"]) ? json_decode(stripcslashes($_REQUEST["options_value"]),true) : array();
|
855 |
$form_settings[$dynamic_Id]["dynamic_id"] = $dynamic_Id;
|
856 |
$form_settings[$dynamic_Id]["control_type"] = "6";
|
857 |
$form_settings[$dynamic_Id]["cb_label_value"] = isset($_REQUEST["ux_label_text_".$dynamic_Id]) ? esc_attr($_REQUEST["ux_label_text_".$dynamic_Id]) : "Untitled";
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: contact-banker, Gallery-Bank
|
|
3 |
Tags: admin, advanced form, AJAX, best contact form plugin, buddypress, category, comment, comments, contact, contact bank, contact form, contact form 7, contact form builder, contact form plugin, contact forms, contact me, contact us, contacts, content, easy contact form, easy contact plugin, email, Facebook, feed, feedback, feedback form, form, form builder, forms, gallery, google, image, images, javascript, jquery, link, links, login, media, page, pages, plugin, Post, posts, request, rss, seo, shortcode, sidebar, stats, text, web form, widget, wordpress
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 3.9.1
|
6 |
-
Stable tag: 2.0.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -29,7 +29,7 @@ It provides a powerful engine for uploading and managing dynamic forms with more
|
|
29 |
|
30 |
***The Contact Bank WordPress Plugin is now proudly maintained by <a href="http://www.tech-banker.com">Tech Banker Pte Ltd.</a> since March 2014.***
|
31 |
|
32 |
-
***July
|
33 |
|
34 |
<a href="http://tech-banker.com/forum/contact-bank-support/" target="_blank">Support Desk - feel free to ask your Queries</a>
|
35 |
|
@@ -522,6 +522,11 @@ In order to set Shortcode for a Form, you need to follow these steps :
|
|
522 |
|
523 |
== Changelog ==
|
524 |
|
|
|
|
|
|
|
|
|
|
|
525 |
= 2.0.45 =
|
526 |
|
527 |
* Few Bugs Fixed Related to Frontend
|
3 |
Tags: admin, advanced form, AJAX, best contact form plugin, buddypress, category, comment, comments, contact, contact bank, contact form, contact form 7, contact form builder, contact form plugin, contact forms, contact me, contact us, contacts, content, easy contact form, easy contact plugin, email, Facebook, feed, feedback, feedback form, form, form builder, forms, gallery, google, image, images, javascript, jquery, link, links, login, media, page, pages, plugin, Post, posts, request, rss, seo, shortcode, sidebar, stats, text, web form, widget, wordpress
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 3.9.1
|
6 |
+
Stable tag: 2.0.46
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
29 |
|
30 |
***The Contact Bank WordPress Plugin is now proudly maintained by <a href="http://www.tech-banker.com">Tech Banker Pte Ltd.</a> since March 2014.***
|
31 |
|
32 |
+
***July 16, 2014: We're happy to announce that Contact Bank reached 64,700+ plugin downloads in only 10 months. We frequently receive positive feedback from people using our Contact Bank Plugin for WordPress. Thanks so much for your support!***
|
33 |
|
34 |
<a href="http://tech-banker.com/forum/contact-bank-support/" target="_blank">Support Desk - feel free to ask your Queries</a>
|
35 |
|
522 |
|
523 |
== Changelog ==
|
524 |
|
525 |
+
= 2.0.46 =
|
526 |
+
|
527 |
+
* Major Bugs Fixed Related to Frontend
|
528 |
+
* Major Bugs Fixed Related to Saving of Options
|
529 |
+
|
530 |
= 2.0.45 =
|
531 |
|
532 |
* Few Bugs Fixed Related to Frontend
|
views/includes_common_after.php
CHANGED
@@ -244,12 +244,10 @@ function create_control(control_type,dynamicId,type)
|
|
244 |
{
|
245 |
jQuery("#control_label_"+dynamicId).append("<span class=\"error\">*</span>");
|
246 |
}
|
247 |
-
var
|
248 |
-
var bind_data_list = bind_data[dynamicId].cb_dropdown_option_id.length > 0 ? bind_data[dynamicId].cb_dropdown_option_id.split(",") : "";
|
249 |
for(var flag = 0; flag<bind_data_list.length;flag++)
|
250 |
{
|
251 |
-
|
252 |
-
jQuery("#ux_ddl_select_control"+dynamicId).append("<option value=\""+bind_data_list[flag]+"\">"+option_val[flag]+"</option>");
|
253 |
}
|
254 |
var control_id = bind_data[dynamicId].control_id;
|
255 |
jQuery("#show_tooltip"+dynamicId).children("#anchor_del_"+dynamicId).attr("onclick","delete_textbox("+dynamicId+","+control_type+","+control_id+");");
|
@@ -288,12 +286,11 @@ function create_control(control_type,dynamicId,type)
|
|
288 |
{
|
289 |
jQuery("#control_label_"+dynamicId).append("<span class=\"error\">*</span>");
|
290 |
}
|
291 |
-
|
292 |
-
var bind_chk_list = bind_data[dynamicId].cb_checkbox_option_id.length > 0 ? bind_data[dynamicId].cb_checkbox_option_id.split(",") : 0;
|
293 |
for(var flag = 0; flag<bind_chk_list.length;flag++)
|
294 |
{
|
295 |
jQuery("#ux_chk_checkbox_control_"+dynamicId).hide();
|
296 |
-
jQuery("#add_chk_options_here_"+dynamicId).append("<span id=\"input_id_"+bind_chk_list[flag]+"\"><input id=\"ux_chk_checkbox_control_"+bind_chk_list[flag]+"\" name=\"ux_chk_checkbox_control_"+bind_chk_list[flag]+"\" type=\"checkbox\"/><label class=\"rdl\">"+
|
297 |
}
|
298 |
var control_id = bind_data[dynamicId].control_id;
|
299 |
jQuery("#show_tooltip"+dynamicId).children("#anchor_del_"+dynamicId).attr("onclick","delete_textbox("+dynamicId+","+control_type+","+control_id+");");
|
@@ -332,12 +329,11 @@ function create_control(control_type,dynamicId,type)
|
|
332 |
{
|
333 |
jQuery("#control_label_"+dynamicId).append("<span class=\"error\">*</span>");
|
334 |
}
|
335 |
-
var
|
336 |
-
var bind_rdl_list = bind_data[dynamicId].cb_radio_option_id.length > 0 ? bind_data[dynamicId].cb_radio_option_id.split(",") : "";
|
337 |
for(var flag = 0; flag<bind_rdl_list.length;flag++)
|
338 |
{
|
339 |
jQuery("#ux_radio_button_control_"+dynamicId).hide();
|
340 |
-
jQuery("#add_radio_options_here_"+dynamicId).append("<span id=\"input_id_"+bind_rdl_list[flag]+"\"><input id=\"ux_radio_button_control_"+bind_rdl_list[flag]+"\" name=\"ux_radio"+dynamicId+"\" type=\"radio\"/><label class=\"rdl\">"+
|
341 |
if(flag == 0)
|
342 |
{
|
343 |
jQuery("#ux_radio_button_control_"+bind_rdl_list[flag]).attr("checked","checked");
|
244 |
{
|
245 |
jQuery("#control_label_"+dynamicId).append("<span class=\"error\">*</span>");
|
246 |
}
|
247 |
+
var bind_data_list = bind_data[dynamicId].cb_dropdown_option_id;
|
|
|
248 |
for(var flag = 0; flag<bind_data_list.length;flag++)
|
249 |
{
|
250 |
+
jQuery("#ux_ddl_select_control"+dynamicId).append("<option value=\""+bind_data_list[flag]+"\">"+bind_data[dynamicId].cb_dropdown_option_val[flag]+"</option>");
|
|
|
251 |
}
|
252 |
var control_id = bind_data[dynamicId].control_id;
|
253 |
jQuery("#show_tooltip"+dynamicId).children("#anchor_del_"+dynamicId).attr("onclick","delete_textbox("+dynamicId+","+control_type+","+control_id+");");
|
286 |
{
|
287 |
jQuery("#control_label_"+dynamicId).append("<span class=\"error\">*</span>");
|
288 |
}
|
289 |
+
var bind_chk_list = bind_data[dynamicId].cb_checkbox_option_id;
|
|
|
290 |
for(var flag = 0; flag<bind_chk_list.length;flag++)
|
291 |
{
|
292 |
jQuery("#ux_chk_checkbox_control_"+dynamicId).hide();
|
293 |
+
jQuery("#add_chk_options_here_"+dynamicId).append("<span id=\"input_id_"+bind_chk_list[flag]+"\"><input id=\"ux_chk_checkbox_control_"+bind_chk_list[flag]+"\" name=\"ux_chk_checkbox_control_"+bind_chk_list[flag]+"\" type=\"checkbox\"/><label class=\"rdl\">"+bind_data[dynamicId].cb_checkbox_option_val[flag]+"</label></span>");
|
294 |
}
|
295 |
var control_id = bind_data[dynamicId].control_id;
|
296 |
jQuery("#show_tooltip"+dynamicId).children("#anchor_del_"+dynamicId).attr("onclick","delete_textbox("+dynamicId+","+control_type+","+control_id+");");
|
329 |
{
|
330 |
jQuery("#control_label_"+dynamicId).append("<span class=\"error\">*</span>");
|
331 |
}
|
332 |
+
var bind_rdl_list = bind_data[dynamicId].cb_radio_option_id;
|
|
|
333 |
for(var flag = 0; flag<bind_rdl_list.length;flag++)
|
334 |
{
|
335 |
jQuery("#ux_radio_button_control_"+dynamicId).hide();
|
336 |
+
jQuery("#add_radio_options_here_"+dynamicId).append("<span id=\"input_id_"+bind_rdl_list[flag]+"\"><input id=\"ux_radio_button_control_"+bind_rdl_list[flag]+"\" name=\"ux_radio"+dynamicId+"\" type=\"radio\"/><label class=\"rdl\">"+bind_data[dynamicId].cb_radio_option_val[flag]+"</label></span>");
|
337 |
if(flag == 0)
|
338 |
{
|
339 |
jQuery("#ux_radio_button_control_"+bind_rdl_list[flag]).attr("checked","checked");
|