Version Description
Added: Filter verified emails and Export submissions with verified emails
Download this release
Release Info
| Developer | webdorado |
| Plugin | |
| Version | 1.9.18 |
| Comparing to | |
| See all releases | |
Code changes from version 1.9.17 to 1.9.18
- admin/models/FMModelSubmissions_fm.php +77 -12
- admin/views/FMViewSubmissions_fm.php +45 -4
- form-maker.php +2 -2
- readme.txt +5 -4
admin/models/FMModelSubmissions_fm.php
CHANGED
|
@@ -58,8 +58,26 @@ class FMModelSubmissions_fm {
|
|
| 58 |
$labels_parameters = array();
|
| 59 |
$join_query = array();
|
| 60 |
$join_where = array();
|
|
|
|
| 61 |
$rows_ord = array();
|
| 62 |
$join = '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
for ($i = 0; $i < 9; $i++) {
|
| 64 |
array_push($labels_parameters, NULL);
|
| 65 |
}
|
|
@@ -159,12 +177,28 @@ class FMModelSubmissions_fm {
|
|
| 159 |
}
|
| 160 |
$search_temp = strtolower($search_temp);
|
| 161 |
$lists[$form_id . '_' . $label_id . '_search'] = $search_temp;
|
|
|
|
| 162 |
if ($search_temp) {
|
| 163 |
$join_query[] = 'search';
|
| 164 |
$join_where[] = array('label' => $label_id, 'search' => $search_temp);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 165 |
}
|
| 166 |
}
|
| 167 |
}
|
|
|
|
|
|
|
| 168 |
if (strpos($order_by, "_field")) {
|
| 169 |
if (in_array(str_replace("_field", "", $order_by), $labels)) {
|
| 170 |
$join_query[] = 'sort';
|
|
@@ -175,33 +209,64 @@ class FMModelSubmissions_fm {
|
|
| 175 |
if ($order_by == 'date' or $order_by == 'ip') {
|
| 176 |
$cols = 'group_id, date, ip';
|
| 177 |
}
|
| 178 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 179 |
case 0:
|
| 180 |
$join = 'SELECT distinct group_id FROM ' . $wpdb->prefix . 'formmaker_submits WHERE '. $where;
|
|
|
|
| 181 |
break;
|
| 182 |
case 1:
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
|
|
|
| 188 |
else {
|
| 189 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 190 |
}
|
| 191 |
break;
|
| 192 |
default:
|
| 193 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 194 |
for ($key = 1; $key < count($join_query); $key++) {
|
| 195 |
if ($join_query[$key] == 'sort') {
|
| 196 |
-
|
| 197 |
-
|
|
|
|
|
|
|
| 198 |
}
|
| 199 |
else {
|
| 200 |
-
|
|
|
|
|
|
|
| 201 |
}
|
| 202 |
}
|
| 203 |
break;
|
| 204 |
-
}
|
|
|
|
|
|
|
|
|
|
| 205 |
$pos = strpos($join, 'SELECT t.group_id');
|
| 206 |
if ($pos === FALSE) {
|
| 207 |
$query = str_replace(array('SELECT group_id','SELECT distinct group_id'), array('SELECT count(distinct group_id)','SELECT count(distinct group_id)'), $join);
|
| 58 |
$labels_parameters = array();
|
| 59 |
$join_query = array();
|
| 60 |
$join_where = array();
|
| 61 |
+
$join_verified = array();
|
| 62 |
$rows_ord = array();
|
| 63 |
$join = '';
|
| 64 |
+
|
| 65 |
+
$query = $wpdb->prepare("SELECT `group_id`,`element_value` FROM " . $wpdb->prefix . "formmaker_submits WHERE `form_id`='%d' and `element_label` = 'verifyinfo' ", $form_id);
|
| 66 |
+
$ver_emails_data = $wpdb->get_results($query);
|
| 67 |
+
|
| 68 |
+
$ver_emails_array = array();
|
| 69 |
+
if($ver_emails_data) {
|
| 70 |
+
foreach($ver_emails_data as $ver_email) {
|
| 71 |
+
$elem_label = str_replace('verified**', '', $ver_email->element_value);
|
| 72 |
+
$query = $wpdb->prepare("SELECT `element_value` FROM " . $wpdb->prefix . "formmaker_submits WHERE `form_id`='%d' AND `group_id` = '%d' AND `element_label` = '%s' ", $form_id, (int)$ver_email->group_id, $elem_label);
|
| 73 |
+
if(!isset($ver_emails_array[$elem_label]))
|
| 74 |
+
$ver_emails_array[$elem_label] = array();
|
| 75 |
+
|
| 76 |
+
if(!in_array( $wpdb->get_var($query), $ver_emails_array[$elem_label]))
|
| 77 |
+
$ver_emails_array[$elem_label][] = $wpdb->get_var($query);
|
| 78 |
+
}
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
for ($i = 0; $i < 9; $i++) {
|
| 82 |
array_push($labels_parameters, NULL);
|
| 83 |
}
|
| 177 |
}
|
| 178 |
$search_temp = strtolower($search_temp);
|
| 179 |
$lists[$form_id . '_' . $label_id . '_search'] = $search_temp;
|
| 180 |
+
|
| 181 |
if ($search_temp) {
|
| 182 |
$join_query[] = 'search';
|
| 183 |
$join_where[] = array('label' => $label_id, 'search' => $search_temp);
|
| 184 |
+
}
|
| 185 |
+
|
| 186 |
+
if (isset($_POST[$form_id . '_' . $label_id . '_search_verified'])) {
|
| 187 |
+
$search_verified = $_POST[$form_id . '_' . $label_id . '_search_verified'];
|
| 188 |
+
$lists[$form_id . '_' . $label_id . '_search_verified'] = $search_verified;
|
| 189 |
+
} else {
|
| 190 |
+
$search_verified = '';
|
| 191 |
+
}
|
| 192 |
+
|
| 193 |
+
if ($search_verified && isset($ver_emails_array[$label_id])) {
|
| 194 |
+
$join_query[] = 'search';
|
| 195 |
+
$join_where[] = null;
|
| 196 |
+
$join_verified[] = array('label' => $label_id, 'ver_search' => implode('|', $ver_emails_array[$label_id]));
|
| 197 |
}
|
| 198 |
}
|
| 199 |
}
|
| 200 |
+
|
| 201 |
+
|
| 202 |
if (strpos($order_by, "_field")) {
|
| 203 |
if (in_array(str_replace("_field", "", $order_by), $labels)) {
|
| 204 |
$join_query[] = 'sort';
|
| 209 |
if ($order_by == 'date' or $order_by == 'ip') {
|
| 210 |
$cols = 'group_id, date, ip';
|
| 211 |
}
|
| 212 |
+
|
| 213 |
+
$ver_where = '';
|
| 214 |
+
if( !empty($join_verified) ) {
|
| 215 |
+
foreach( $join_verified as $key_ver => $join_ver) {
|
| 216 |
+
$ver_where .= '(element_label="' . $join_ver['label'] . '" AND element_value REGEXP "'.$join_ver['ver_search'].'" ) AND' ;
|
| 217 |
+
}
|
| 218 |
+
}
|
| 219 |
+
|
| 220 |
+
switch (count($join_query)) {
|
| 221 |
case 0:
|
| 222 |
$join = 'SELECT distinct group_id FROM ' . $wpdb->prefix . 'formmaker_submits WHERE '. $where;
|
| 223 |
+
|
| 224 |
break;
|
| 225 |
case 1:
|
| 226 |
+
if ($join_query[0] == 'sort') {
|
| 227 |
+
$join = 'SELECT group_id FROM ' . $wpdb->prefix . 'formmaker_submits WHERE ' . $where . ' AND element_label="' . $join_where[0]['label'] . '" ';
|
| 228 |
+
$join_count = 'SELECT count(group_id) FROM ' . $wpdb->prefix . 'formmaker_submits WHERE form_id="' . $form_id . '" AND element_label="' . $join_where[0]['label'] . '" ';
|
| 229 |
+
|
| 230 |
+
$orderby = ' ORDER BY `element_value` ' . $asc_or_desc;
|
| 231 |
+
}
|
| 232 |
else {
|
| 233 |
+
if(isset($join_where[0]['search'])) {
|
| 234 |
+
$join = 'SELECT group_id FROM ' . $wpdb->prefix . 'formmaker_submits WHERE element_label="' . $join_where[0]['label'] . '" AND (element_value LIKE "%' . $join_where[0]['search'] . '%" OR element_value LIKE "%' . str_replace(' ', '@@@', $join_where[0]['search']) . '%") AND ' . $where;
|
| 235 |
+
} else {
|
| 236 |
+
$join = 'SELECT group_id FROM ' . $wpdb->prefix . 'formmaker_submits WHERE '.$ver_where . $where;
|
| 237 |
+
}
|
| 238 |
}
|
| 239 |
break;
|
| 240 |
default:
|
| 241 |
+
if( !empty($join_verified) ) {
|
| 242 |
+
if( isset( $join_where[0]['search'] ) ) {
|
| 243 |
+
$join = 'SELECT t.group_id from (SELECT t1.group_id from (SELECT ' . $cols . ' FROM ' . $wpdb->prefix . 'formmaker_submits WHERE (element_label="' . $join_where[0]['label'] . '" AND (element_value LIKE "%' . $join_where[0]['search'] . '%" OR element_value LIKE "%' . str_replace(' ', '@@@', $join_where[0]['search']) . '%")) AND '. $where.' ) as t1 JOIN (SELECT group_id FROM ' . $wpdb->prefix . 'formmaker_submits WHERE '.$ver_where.$where.') as t2 ON t1.group_id = t2.group_id) as t ';
|
| 244 |
+
|
| 245 |
+
} else{
|
| 246 |
+
$join = 'SELECT t.group_id FROM (SELECT ' . $cols . ' FROM ' . $wpdb->prefix . 'formmaker_submits WHERE ' . $ver_where.$where . ') as t ';
|
| 247 |
+
}
|
| 248 |
+
} else{
|
| 249 |
+
$join = 'SELECT t.group_id FROM (SELECT ' . $cols . ' FROM ' . $wpdb->prefix . 'formmaker_submits WHERE ' . $where . ' AND element_label="' . $join_where[0]['label'] . '" AND (element_value LIKE "%' . $join_where[0]['search'] . '%" OR element_value LIKE "%' . str_replace(' ', '@@@', $join_where[0]['search']) . '%" )) as t ';
|
| 250 |
+
}
|
| 251 |
+
|
| 252 |
for ($key = 1; $key < count($join_query); $key++) {
|
| 253 |
if ($join_query[$key] == 'sort') {
|
| 254 |
+
if(isset($join_where[$key])){
|
| 255 |
+
$join .= 'LEFT JOIN (SELECT group_id as group_id' . $key . ', element_value FROM ' . $wpdb->prefix . 'formmaker_submits WHERE ' . $where . ' AND element_label="' . $join_where[$key]['label'] . '") as t' . $key . ' ON t' . $key . '.group_id' . $key . '=t.group_id ';
|
| 256 |
+
$orderby = ' ORDER BY t' . $key . '.`element_value` ' . $asc_or_desc . '';
|
| 257 |
+
}
|
| 258 |
}
|
| 259 |
else {
|
| 260 |
+
if(isset( $join_where[$key])) {
|
| 261 |
+
$join .= 'INNER JOIN (SELECT group_id as group_id' . $key . ' FROM ' . $wpdb->prefix . 'formmaker_submits WHERE '.$where.' AND element_label="' . $join_where[$key]['label'] . '" AND (element_value LIKE "%' . $join_where[$key]['search'] . '%" OR element_value LIKE "%' . str_replace(' ', '@@@', $join_where[$key]['search']) . '%")) as t' . $key . ' ON t' . $key . '.group_id' . $key . '=t.group_id ';
|
| 262 |
+
}
|
| 263 |
}
|
| 264 |
}
|
| 265 |
break;
|
| 266 |
+
}
|
| 267 |
+
|
| 268 |
+
|
| 269 |
+
|
| 270 |
$pos = strpos($join, 'SELECT t.group_id');
|
| 271 |
if ($pos === FALSE) {
|
| 272 |
$query = str_replace(array('SELECT group_id','SELECT distinct group_id'), array('SELECT count(distinct group_id)','SELECT count(distinct group_id)'), $join);
|
admin/views/FMViewSubmissions_fm.php
CHANGED
|
@@ -204,6 +204,13 @@ class FMViewSubmissions_fm {
|
|
| 204 |
document.getElementById('<?php echo $form_id . '_' . $sorted_labels_id[$i] . '_search'; ?>').value='';
|
| 205 |
<?php
|
| 206 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 207 |
}
|
| 208 |
?>
|
| 209 |
}
|
|
@@ -503,7 +510,7 @@ class FMViewSubmissions_fm {
|
|
| 503 |
for ($i = 0; $i < count($sorted_label_names); $i++) {
|
| 504 |
$styleStr = $this->model->hide_or_not($lists['hide_label_list'], $sorted_labels_id[$i]);
|
| 505 |
if (!$ka_fielderov_search) {
|
| 506 |
-
if ($lists[$form_id . '_' . $sorted_labels_id[$i] . '_search']) {
|
| 507 |
$ka_fielderov_search = TRUE;
|
| 508 |
}
|
| 509 |
}
|
|
@@ -546,6 +553,21 @@ class FMViewSubmissions_fm {
|
|
| 546 |
<th class="table_large_col payment_info_fc" <?php echo $styleStr2; ?>></th>
|
| 547 |
<?php
|
| 548 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 549 |
default: ?>
|
| 550 |
<th class="<?php echo $sorted_labels_id[$i]; ?>_fc" <?php echo $styleStr; ?>>
|
| 551 |
<input name="<?php echo $form_id .'_' . $sorted_labels_id[$i].'_search'; ?>" id="<?php echo $form_id .'_' . $sorted_labels_id[$i].'_search'; ?>" type="text" value="<?php echo $lists[$form_id.'_'.$sorted_labels_id[$i].'_search']; ?>" onChange="this.form.submit();" >
|
|
@@ -1192,6 +1214,7 @@ class FMViewSubmissions_fm {
|
|
| 1192 |
}
|
| 1193 |
|
| 1194 |
public function new_edit($id, $form_id) {
|
|
|
|
| 1195 |
$labels_parameters = $this->model->get_labels_parameters($form_id);
|
| 1196 |
$current_id = ((isset($id)) ? $id : 0);
|
| 1197 |
$params = $this->model->get_data_of_group_id($current_id);
|
|
@@ -1290,7 +1313,7 @@ class FMViewSubmissions_fm {
|
|
| 1290 |
continue;
|
| 1291 |
$styleStr = $this->model->hide_or_not($lists['hide_label_list'], $sorted_labels_id[$i]);
|
| 1292 |
if (!$ka_fielderov_search) {
|
| 1293 |
-
if ($lists[$form_id . '_' . $sorted_labels_id[$i] . '_search']) {
|
| 1294 |
$ka_fielderov_search = TRUE;
|
| 1295 |
}
|
| 1296 |
}
|
|
@@ -1333,6 +1356,21 @@ class FMViewSubmissions_fm {
|
|
| 1333 |
<th class="table_large_col payment_info_fc" <?php echo $styleStr2; ?>></th>
|
| 1334 |
<?php
|
| 1335 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1336 |
default: ?>
|
| 1337 |
<th class="<?php echo $sorted_labels_id[$i]; ?>_fc" <?php echo $styleStr; ?>>
|
| 1338 |
<input name="<?php echo $form_id .'_' . $sorted_labels_id[$i].'_search'; ?>" id="<?php echo $form_id .'_' . $sorted_labels_id[$i].'_search'; ?>" type="text" value="<?php echo $lists[$form_id.'_'.$sorted_labels_id[$i].'_search']; ?>" onChange="this.form.submit();" >
|
|
@@ -1848,6 +1886,10 @@ class FMViewSubmissions_fm {
|
|
| 1848 |
$params_names=array('w_field_label_size','w_field_label_pos','w_size','w_first_val','w_title','w_required','w_unique', 'w_class');
|
| 1849 |
$temp=$params;
|
| 1850 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1851 |
foreach($params_names as $params_name ) {
|
| 1852 |
$temp=explode('*:*'.$params_name.'*:*',$temp);
|
| 1853 |
$param[$params_name] = $temp[0];
|
|
@@ -1861,8 +1903,7 @@ class FMViewSubmissions_fm {
|
|
| 1861 |
foreach($attrs as $attr)
|
| 1862 |
$param['attributes'] = $param['attributes'].' '.$attr;
|
| 1863 |
}
|
| 1864 |
-
|
| 1865 |
-
|
| 1866 |
$wdformfieldsize = ($param['w_field_label_pos']=="left" ? ($param['w_field_label_size']+$param['w_size']) : max($param['w_field_label_size'], $param['w_size']));
|
| 1867 |
$param['w_field_label_pos'] = ($param['w_field_label_pos']=="left" ? "float: left;" : "display:block;");
|
| 1868 |
|
| 204 |
document.getElementById('<?php echo $form_id . '_' . $sorted_labels_id[$i] . '_search'; ?>').value='';
|
| 205 |
<?php
|
| 206 |
}
|
| 207 |
+
|
| 208 |
+
if ($sorted_label_types[$i] == "type_submitter_mail") { ?>
|
| 209 |
+
if(document.getElementById('<?php echo $form_id . '_' . $sorted_labels_id[$i] . '_search_verified'; ?>')) {
|
| 210 |
+
document.getElementById('<?php echo $form_id . '_' . $sorted_labels_id[$i] . '_search_verified'; ?>').checked = false;
|
| 211 |
+
}
|
| 212 |
+
<?php
|
| 213 |
+
}
|
| 214 |
}
|
| 215 |
?>
|
| 216 |
}
|
| 510 |
for ($i = 0; $i < count($sorted_label_names); $i++) {
|
| 511 |
$styleStr = $this->model->hide_or_not($lists['hide_label_list'], $sorted_labels_id[$i]);
|
| 512 |
if (!$ka_fielderov_search) {
|
| 513 |
+
if ($lists[$form_id . '_' . $sorted_labels_id[$i] . '_search'] || isset($lists[$form_id . '_' . $sorted_labels_id[$i] . '_search_verified'])) {
|
| 514 |
$ka_fielderov_search = TRUE;
|
| 515 |
}
|
| 516 |
}
|
| 553 |
<th class="table_large_col payment_info_fc" <?php echo $styleStr2; ?>></th>
|
| 554 |
<?php
|
| 555 |
break;
|
| 556 |
+
case 'type_submitter_mail':
|
| 557 |
+
$query = $wpdb->prepare('SELECT id FROM ' . $wpdb->prefix . 'formmaker_submits WHERE form_id ="%d" AND element_label="verifyInfo" AND element_value="verified**%d"', $form_id, $sorted_labels_id[$i]);
|
| 558 |
+
$is_verified_exist = $wpdb->get_var($query);
|
| 559 |
+
|
| 560 |
+
?>
|
| 561 |
+
<th class="<?php echo $sorted_labels_id[$i]; ?>_fc" <?php echo $styleStr; ?>>
|
| 562 |
+
<div style="width:220px;">
|
| 563 |
+
<input name="<?php echo $form_id .'_' . $sorted_labels_id[$i].'_search'; ?>" id="<?php echo $form_id .'_' . $sorted_labels_id[$i].'_search'; ?>" type="text" value="<?php echo $lists[$form_id.'_'.$sorted_labels_id[$i].'_search']; ?>" onChange="this.form.submit();" >
|
| 564 |
+
<?php if($is_verified_exist) { ?>
|
| 565 |
+
<label for="<?php echo $form_id .'_' . $sorted_labels_id[$i].'_search_verified'; ?>">Verified</label> <input name="<?php echo $form_id .'_' . $sorted_labels_id[$i].'_search_verified'; ?>" id="<?php echo $form_id .'_' . $sorted_labels_id[$i].'_search_verified'; ?>" type="checkbox" <?php if(isset($lists[$form_id.'_'.$sorted_labels_id[$i].'_search_verified'])) echo "checked='checked'";?> onChange="this.form.submit();">
|
| 566 |
+
<?php } ?>
|
| 567 |
+
</div>
|
| 568 |
+
</th>
|
| 569 |
+
<?php
|
| 570 |
+
break;
|
| 571 |
default: ?>
|
| 572 |
<th class="<?php echo $sorted_labels_id[$i]; ?>_fc" <?php echo $styleStr; ?>>
|
| 573 |
<input name="<?php echo $form_id .'_' . $sorted_labels_id[$i].'_search'; ?>" id="<?php echo $form_id .'_' . $sorted_labels_id[$i].'_search'; ?>" type="text" value="<?php echo $lists[$form_id.'_'.$sorted_labels_id[$i].'_search']; ?>" onChange="this.form.submit();" >
|
| 1214 |
}
|
| 1215 |
|
| 1216 |
public function new_edit($id, $form_id) {
|
| 1217 |
+
global $wpdb;
|
| 1218 |
$labels_parameters = $this->model->get_labels_parameters($form_id);
|
| 1219 |
$current_id = ((isset($id)) ? $id : 0);
|
| 1220 |
$params = $this->model->get_data_of_group_id($current_id);
|
| 1313 |
continue;
|
| 1314 |
$styleStr = $this->model->hide_or_not($lists['hide_label_list'], $sorted_labels_id[$i]);
|
| 1315 |
if (!$ka_fielderov_search) {
|
| 1316 |
+
if ($lists[$form_id . '_' . $sorted_labels_id[$i] . '_search'] || isset($lists[$form_id . '_' . $sorted_labels_id[$i] . '_search_verified'])) {
|
| 1317 |
$ka_fielderov_search = TRUE;
|
| 1318 |
}
|
| 1319 |
}
|
| 1356 |
<th class="table_large_col payment_info_fc" <?php echo $styleStr2; ?>></th>
|
| 1357 |
<?php
|
| 1358 |
break;
|
| 1359 |
+
case 'type_submitter_mail':
|
| 1360 |
+
$query = $wpdb->prepare('SELECT id FROM ' . $wpdb->prefix . 'formmaker_submits WHERE form_id ="%d" AND element_label="verifyInfo" AND element_value="verified**%d"', $form_id, $sorted_labels_id[$i]);
|
| 1361 |
+
$is_verified_exist = $wpdb->get_var($query);
|
| 1362 |
+
|
| 1363 |
+
?>
|
| 1364 |
+
<th class="<?php echo $sorted_labels_id[$i]; ?>_fc" <?php echo $styleStr; ?>>
|
| 1365 |
+
<div style="width:220px;">
|
| 1366 |
+
<input name="<?php echo $form_id .'_' . $sorted_labels_id[$i].'_search'; ?>" id="<?php echo $form_id .'_' . $sorted_labels_id[$i].'_search'; ?>" type="text" value="<?php echo $lists[$form_id.'_'.$sorted_labels_id[$i].'_search']; ?>" onChange="this.form.submit();" >
|
| 1367 |
+
<?php if($is_verified_exist) { ?>
|
| 1368 |
+
Verified <input name="<?php echo $form_id .'_' . $sorted_labels_id[$i].'_search_verified'; ?>" id="<?php echo $form_id .'_' . $sorted_labels_id[$i].'_search_verified'; ?>" type="checkbox" <?php if(isset($lists[$form_id.'_'.$sorted_labels_id[$i].'_search_verified'])) echo "checked='checked'";?> onChange="this.form.submit();">
|
| 1369 |
+
<?php } ?>
|
| 1370 |
+
</div>
|
| 1371 |
+
</th>
|
| 1372 |
+
<?php
|
| 1373 |
+
break;
|
| 1374 |
default: ?>
|
| 1375 |
<th class="<?php echo $sorted_labels_id[$i]; ?>_fc" <?php echo $styleStr; ?>>
|
| 1376 |
<input name="<?php echo $form_id .'_' . $sorted_labels_id[$i].'_search'; ?>" id="<?php echo $form_id .'_' . $sorted_labels_id[$i].'_search'; ?>" type="text" value="<?php echo $lists[$form_id.'_'.$sorted_labels_id[$i].'_search']; ?>" onChange="this.form.submit();" >
|
| 1886 |
$params_names=array('w_field_label_size','w_field_label_pos','w_size','w_first_val','w_title','w_required','w_unique', 'w_class');
|
| 1887 |
$temp=$params;
|
| 1888 |
|
| 1889 |
+
if(strpos($temp, 'w_hide_label') > -1)
|
| 1890 |
+
$params_names=array('w_field_label_size','w_field_label_pos', 'w_hide_label', 'w_size','w_first_val','w_title','w_required','w_unique', 'w_class');
|
| 1891 |
+
|
| 1892 |
+
|
| 1893 |
foreach($params_names as $params_name ) {
|
| 1894 |
$temp=explode('*:*'.$params_name.'*:*',$temp);
|
| 1895 |
$param[$params_name] = $temp[0];
|
| 1903 |
foreach($attrs as $attr)
|
| 1904 |
$param['attributes'] = $param['attributes'].' '.$attr;
|
| 1905 |
}
|
| 1906 |
+
|
|
|
|
| 1907 |
$wdformfieldsize = ($param['w_field_label_pos']=="left" ? ($param['w_field_label_size']+$param['w_size']) : max($param['w_field_label_size'], $param['w_size']));
|
| 1908 |
$param['w_field_label_pos'] = ($param['w_field_label_pos']=="left" ? "float: left;" : "display:block;");
|
| 1909 |
|
form-maker.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
* Plugin Name: Form Maker
|
| 4 |
* Plugin URI: https://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.9.
|
| 7 |
* Author: WebDorado
|
| 8 |
* Author URI: https://web-dorado.com/
|
| 9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
|
@@ -272,7 +272,7 @@ function register_fmemailverification_cpt(){
|
|
| 272 |
// Activate plugin.
|
| 273 |
function form_maker_activate() {
|
| 274 |
$version = get_option("wd_form_maker_version");
|
| 275 |
-
$new_version = '1.9.
|
| 276 |
global $wpdb;
|
| 277 |
if (!$version) {
|
| 278 |
add_option("wd_form_maker_version", $new_version, '', 'no');
|
| 3 |
* Plugin Name: Form Maker
|
| 4 |
* Plugin URI: https://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.9.18
|
| 7 |
* Author: WebDorado
|
| 8 |
* Author URI: https://web-dorado.com/
|
| 9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
| 272 |
// Activate plugin.
|
| 273 |
function form_maker_activate() {
|
| 274 |
$version = get_option("wd_form_maker_version");
|
| 275 |
+
$new_version = '1.9.18';
|
| 276 |
global $wpdb;
|
| 277 |
if (!$version) {
|
| 278 |
add_option("wd_form_maker_version", $new_version, '', 'no');
|
readme.txt
CHANGED
|
@@ -3,8 +3,8 @@ Contributors: webdorado
|
|
| 3 |
Donate link: https://web-dorado.com/products/wordpress-form.html
|
| 4 |
Tags: captcha, contact, contact form, contact forms, custom form, email, feedback, form, form builder, form manager, forms, survey
|
| 5 |
Requires at least: 3.4
|
| 6 |
-
Tested up to: 4.
|
| 7 |
-
Stable tag: 1.9.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -14,8 +14,6 @@ WordPress Form Maker is a fresh and innovative form builder. This form builder i
|
|
| 14 |
|
| 15 |
Form Maker is a FREE and user-friendly plugin to create highly customizable and responsive forms in a few minutes with simple drag and drop interface.
|
| 16 |
|
| 17 |
-
|
| 18 |
-
|
| 19 |
[WordPress Form Maker](https://web-dorado.com/products/wordpress-form.html)
|
| 20 |
[Demo](http://wpdemo.web-dorado.com/)
|
| 21 |
[Demo Admin](http://wpdemo.web-dorado.com/wp-admin/admin.php?page=Form_maker)
|
|
@@ -314,6 +312,9 @@ Form Maker uses phone and number field types, which are verified and do not acce
|
|
| 314 |
Email field should be used since it verifies that an entry format fulfills example@example.com format.
|
| 315 |
|
| 316 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
| 317 |
= 1.9.17 =
|
| 318 |
Fixed: Bug with search by ID in Submissions
|
| 319 |
Fixed: Bug with Validation (Regular Exp.)
|
| 3 |
Donate link: https://web-dorado.com/products/wordpress-form.html
|
| 4 |
Tags: captcha, contact, contact form, contact forms, custom form, email, feedback, form, form builder, form manager, forms, survey
|
| 5 |
Requires at least: 3.4
|
| 6 |
+
Tested up to: 4.7
|
| 7 |
+
Stable tag: 1.9.18
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 14 |
|
| 15 |
Form Maker is a FREE and user-friendly plugin to create highly customizable and responsive forms in a few minutes with simple drag and drop interface.
|
| 16 |
|
|
|
|
|
|
|
| 17 |
[WordPress Form Maker](https://web-dorado.com/products/wordpress-form.html)
|
| 18 |
[Demo](http://wpdemo.web-dorado.com/)
|
| 19 |
[Demo Admin](http://wpdemo.web-dorado.com/wp-admin/admin.php?page=Form_maker)
|
| 312 |
Email field should be used since it verifies that an entry format fulfills example@example.com format.
|
| 313 |
|
| 314 |
== Changelog ==
|
| 315 |
+
= 1.9.18 =
|
| 316 |
+
Added: Filter verified emails and Export submissions with verified emails
|
| 317 |
+
|
| 318 |
= 1.9.17 =
|
| 319 |
Fixed: Bug with search by ID in Submissions
|
| 320 |
Fixed: Bug with Validation (Regular Exp.)
|
