Version Description
Optimize csv/xml export
Download this release
Release Info
Developer | webdorado |
Plugin | Form Maker by WD – user-friendly drag & drop Form Builder plugin |
Version | 1.7.37 |
Comparing to | |
See all releases |
Code changes from version 1.7.36 to 1.7.37
- admin/models/FMModelGenerete_csv.php +23 -31
- form-maker.php +2 -2
- readme.txt +5 -1
admin/models/FMModelGenerete_csv.php
CHANGED
@@ -77,6 +77,7 @@ class FMModelGenerete_csv {
|
|
77 |
}
|
78 |
}
|
79 |
}
|
|
|
80 |
$m = count($sorted_labels);
|
81 |
$group_id_s = array();
|
82 |
|
@@ -86,32 +87,27 @@ class FMModelGenerete_csv {
|
|
86 |
$group_id_s = $wpdb->get_col($query);
|
87 |
|
88 |
}
|
89 |
-
|
90 |
$data = array();
|
91 |
for ($www = 0; $www < count($group_id_s); $www++) {
|
92 |
$i = $group_id_s[$www];
|
93 |
$data_temp = array();
|
94 |
-
|
95 |
for ($h = 0; $h < $m; $h++) {
|
96 |
-
|
97 |
if(isset($data_temp[$label_titles[$h]]))
|
98 |
-
|
99 |
-
|
100 |
-
$t = $wpdb->get_row($wpdb->prepare("SELECT * FROM " . $wpdb->prefix . "formmaker_submits where group_id=%d AND element_label=%s",$i,$sorted_labels_id[$h]));
|
101 |
-
|
102 |
if ($t) {
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
$data_temp['Submitter\'s Email Address']=$useremail;
|
114 |
-
|
115 |
if (strpos($t->element_value, "*@@url@@*")) {
|
116 |
$file_names = '';
|
117 |
$new_files = explode("*@@url@@*", $t->element_value);
|
@@ -236,18 +232,14 @@ class FMModelGenerete_csv {
|
|
236 |
}
|
237 |
}
|
238 |
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
$data_temp['Item Total'] = $item_total;
|
248 |
-
$data_temp['Total'] = $total;
|
249 |
-
$data_temp['Payment Status'] = $payment_status;
|
250 |
-
}
|
251 |
$query = $wpdb->prepare("SELECT * FROM " . $wpdb->prefix . "formmaker_sessions where group_id= %d",$i);
|
252 |
$paypal_info = $wpdb->get_results($query);
|
253 |
if ($paypal_info) {
|
77 |
}
|
78 |
}
|
79 |
}
|
80 |
+
|
81 |
$m = count($sorted_labels);
|
82 |
$group_id_s = array();
|
83 |
|
87 |
$group_id_s = $wpdb->get_col($query);
|
88 |
|
89 |
}
|
90 |
+
|
91 |
$data = array();
|
92 |
for ($www = 0; $www < count($group_id_s); $www++) {
|
93 |
$i = $group_id_s[$www];
|
94 |
$data_temp = array();
|
95 |
+
$tt = $wpdb->get_results($wpdb->prepare("SELECT `element_label`, `id`, `form_id`, `element_value`, `group_id`, `date`, `ip`, `user_id_wd` FROM " . $wpdb->prefix . "formmaker_submits where group_id=%d",$i), OBJECT_K);
|
96 |
for ($h = 0; $h < $m; $h++) {
|
|
|
97 |
if(isset($data_temp[$label_titles[$h]]))
|
98 |
+
$label_titles[$h] .= '(1)';
|
99 |
+
$t = $tt[$sorted_labels_id[$h]];
|
|
|
|
|
100 |
if ($t) {
|
101 |
+
$f=$t;
|
102 |
+
$date=$t->date;
|
103 |
+
$ip = $t->ip;
|
104 |
+
$user_id = get_userdata($t->user_id_wd);
|
105 |
+
$username = $user_id ? $user_id->display_name : "";
|
106 |
+
$useremail= $user_id ? $user_id->user_email : "";
|
107 |
+
$data_temp['Submit date']=$date;
|
108 |
+
$data_temp['Ip']=$ip;
|
109 |
+
$data_temp['Submitter\'s Username']=$username;
|
110 |
+
$data_temp['Submitter\'s Email Address']=$useremail;
|
|
|
|
|
111 |
if (strpos($t->element_value, "*@@url@@*")) {
|
112 |
$file_names = '';
|
113 |
$new_files = explode("*@@url@@*", $t->element_value);
|
232 |
}
|
233 |
}
|
234 |
|
235 |
+
if($is_paypal) {
|
236 |
+
$item_total = $wpdb->get_var($wpdb->prepare("SELECT `element_value` FROM " . $wpdb->prefix . "formmaker_submits where group_id=%d AND element_label=%s",$i,'item_total'));
|
237 |
+
$total = $wpdb->get_var($wpdb->prepare("SELECT `element_value` FROM " . $wpdb->prefix . "formmaker_submits where group_id=%d AND element_label=%s",$i,'total'));
|
238 |
+
$payment_status = $wpdb->get_var($wpdb->prepare("SELECT `element_value` FROM " . $wpdb->prefix . "formmaker_submits where group_id=%d AND element_label=%s",$i,'0'));
|
239 |
+
$data_temp['Item Total'] = $item_total;
|
240 |
+
$data_temp['Total'] = $total;
|
241 |
+
$data_temp['Payment Status'] = $payment_status;
|
242 |
+
}
|
|
|
|
|
|
|
|
|
243 |
$query = $wpdb->prepare("SELECT * FROM " . $wpdb->prefix . "formmaker_sessions where group_id= %d",$i);
|
244 |
$paypal_info = $wpdb->get_results($query);
|
245 |
if ($paypal_info) {
|
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
|
@@ -207,7 +207,7 @@ if (class_exists('WP_Widget')) {
|
|
207 |
// Activate plugin.
|
208 |
function form_maker_activate() {
|
209 |
$version = get_option("wd_form_maker_version");
|
210 |
-
$new_version = '1.7.
|
211 |
if (!$version) {
|
212 |
add_option("wd_form_maker_version", $new_version, '', 'no');
|
213 |
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.37
|
7 |
* Author: WebDorado
|
8 |
* Author URI: http://web-dorado.com/
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
207 |
// Activate plugin.
|
208 |
function form_maker_activate() {
|
209 |
$version = get_option("wd_form_maker_version");
|
210 |
+
$new_version = '1.7.37';
|
211 |
if (!$version) {
|
212 |
add_option("wd_form_maker_version", $new_version, '', 'no');
|
213 |
global $wpdb;
|
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,10 @@ The Form Maker (Pro version) has simple PayPal integration. This allows the user
|
|
277 |
|
278 |
== Changelog ==
|
279 |
|
|
|
|
|
|
|
|
|
280 |
= 1.7.35 =
|
281 |
New: Email empty fields option
|
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.37
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
277 |
|
278 |
== Changelog ==
|
279 |
|
280 |
+
|
281 |
+
= 1.7.37 =
|
282 |
+
Optimize csv/xml export
|
283 |
+
|
284 |
= 1.7.35 =
|
285 |
New: Email empty fields option
|
286 |
|