Form Maker by WD – user-friendly drag & drop Form Builder plugin - Version 1.9.12

Version Description

Added: Email Confirmation field
Fixed: Bug on CSV and XML export

Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 Form Maker by WD – user-friendly drag & drop Form Builder plugin
Version 1.9.12
Comparing to
See all releases

Code changes from version 1.9.11 to 1.9.12

admin/models/FMModelGenerete_csv.php CHANGED
@@ -25,7 +25,8 @@ class FMModelGenerete_csv {
25
  $group_id_s = array();
26
  $form_id = (int)$_REQUEST['form_id'];
27
  $limitstart = (int)$_REQUEST['limitstart'];
28
- $search_labels = $_REQUEST['search_labels'];
 
29
 
30
 
31
  $paypal_info_fields = array('currency', 'ord_last_modified', 'status', 'full_name', 'fax', 'mobile_phone', 'email', 'phone', 'address', 'paypal_info', 'ipn', 'tax', 'shipping');
25
  $group_id_s = array();
26
  $form_id = (int)$_REQUEST['form_id'];
27
  $limitstart = (int)$_REQUEST['limitstart'];
28
+ $search_labels = isset($_REQUEST['search_labels']) ? $_REQUEST['search_labels'] : array();
29
+ $search_labels = implode(",",$search_labels);
30
 
31
 
32
  $paypal_info_fields = array('currency', 'ord_last_modified', 'status', 'full_name', 'fax', 'mobile_phone', 'email', 'phone', 'address', 'paypal_info', 'ipn', 'tax', 'shipping');
admin/models/FMModelGenerete_xml.php CHANGED
@@ -26,7 +26,8 @@ class FMModelGenerete_xml {
26
  $group_id_s = array();
27
  $form_id = (int)$_REQUEST['form_id'];
28
  $limitstart = (int)$_REQUEST['limitstart'];
29
- $search_labels = $_REQUEST['search_labels'];
 
30
 
31
  $paypal_info_fields = array('currency', 'ord_last_modified', 'status', 'full_name', 'fax', 'mobile_phone', 'email', 'phone', 'address', 'paypal_info', 'ipn', 'tax', 'shipping');
32
  $paypal_info_labels = array( 'Currency', 'Last modified', 'Status', 'Full Name', 'Fax', 'Mobile phone', 'Email', 'Phone', 'Address', 'Paypal info', 'IPN', 'Tax', 'Shipping');
26
  $group_id_s = array();
27
  $form_id = (int)$_REQUEST['form_id'];
28
  $limitstart = (int)$_REQUEST['limitstart'];
29
+ $search_labels = isset($_REQUEST['search_labels']) ? $_REQUEST['search_labels'] : array();
30
+ $search_labels = implode(",",$search_labels);
31
 
32
  $paypal_info_fields = array('currency', 'ord_last_modified', 'status', 'full_name', 'fax', 'mobile_phone', 'email', 'phone', 'address', 'paypal_info', 'ipn', 'tax', 'shipping');
33
  $paypal_info_labels = array( 'Currency', 'Last modified', 'Status', 'Full Name', 'Fax', 'Mobile phone', 'Email', 'Phone', 'Address', 'Paypal info', 'IPN', 'Tax', 'Shipping');
admin/models/FMModelManage_fm.php CHANGED
@@ -454,6 +454,14 @@ class FMModelManage_fm {
454
  $temp=$params;
455
  if(strpos($temp, 'w_autofill') > -1)
456
  $params_names=array('w_field_label_size','w_field_label_pos','w_size','w_first_val','w_title','w_required','w_unique', 'w_class', 'w_autofill');
 
 
 
 
 
 
 
 
457
  foreach($params_names as $params_name )
458
  {
459
  $temp=explode('*:*'.$params_name.'*:*',$temp);
@@ -468,15 +476,36 @@ class FMModelManage_fm {
468
  foreach($attrs as $attr)
469
  $param['attributes'] = $param['attributes'].' add_'.$attr;
470
  }
471
-
472
  $param['w_field_label_pos'] = ($param['w_field_label_pos']=="left" ? "table-cell" : "block");
 
 
 
473
  $input_active = ($param['w_first_val']==$param['w_title'] ? "input_deactive" : "input_active");
474
  $required_sym = ($param['w_required']=="yes" ? " *" : "");
475
  $param['w_autofill'] = isset($param['w_autofill']) ? $param['w_autofill'] : 'no';
476
 
477
- $rep ='<div id="wdform_field'.$id.'" type="type_submitter_mail" 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" style="vertical-align: top;">'.$label.'</span><span id="'.$id.'_required_elementform_id_temp" class="required" style="vertical-align: top;">'.$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_submitter_mail" 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_unique'].'" name="'.$id.'_uniqueform_id_temp" id="'.$id.'_uniqueform_id_temp"><input type="hidden" value="'.$param['w_autofill'].'" name="'.$id.'_autofillform_id_temp" id="'.$id.'_autofillform_id_temp"><input type="text" class="'.$input_active.'" id="'.$id.'_elementform_id_temp" name="'.$id.'_elementform_id_temp" value="'.$param['w_first_val'].'" title="'.$param['w_title'].'" onfocus="delete_value(&quot;'.$id.'_elementform_id_temp&quot;)" onblur="return_value(&quot;'.$id.'_elementform_id_temp&quot;)" onchange="change_value(&quot;'.$id.'_elementform_id_temp&quot;)" style="width: '.$param['w_size'].'px;" '.$param['attributes'].' disabled /></div></div>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
478
  break;
479
  }
 
480
  case 'type_checkbox':
481
  {
482
  $params_names=array('w_field_label_size','w_field_label_pos','w_flow','w_choices','w_choices_checked','w_rowcol', 'w_required','w_randomize','w_allow_other','w_allow_other_num','w_class');
454
  $temp=$params;
455
  if(strpos($temp, 'w_autofill') > -1)
456
  $params_names=array('w_field_label_size','w_field_label_pos','w_size','w_first_val','w_title','w_required','w_unique', 'w_class', 'w_autofill');
457
+
458
+ if(strpos($temp, 'w_hide_label') > -1)
459
+ $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', 'w_autofill');
460
+
461
+ if(strpos($temp, 'w_verification') > -1)
462
+ $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', 'w_verification', 'w_verification_label', 'w_verification_placeholder', 'w_autofill');
463
+
464
+
465
  foreach($params_names as $params_name )
466
  {
467
  $temp=explode('*:*'.$params_name.'*:*',$temp);
476
  foreach($attrs as $attr)
477
  $param['attributes'] = $param['attributes'].' add_'.$attr;
478
  }
479
+
480
  $param['w_field_label_pos'] = ($param['w_field_label_pos']=="left" ? "table-cell" : "block");
481
+ $param['w_hide_label'] = (isset($param['w_hide_label']) ? $param['w_hide_label'] : "no");
482
+ $display_label = $param['w_hide_label'] == "no" ? $param['w_field_label_pos'] : "none";
483
+
484
  $input_active = ($param['w_first_val']==$param['w_title'] ? "input_deactive" : "input_active");
485
  $required_sym = ($param['w_required']=="yes" ? " *" : "");
486
  $param['w_autofill'] = isset($param['w_autofill']) ? $param['w_autofill'] : 'no';
487
 
488
+ if(isset($param['w_verification']) && $param['w_verification'] == "yes"){
489
+ $display_label_confirm = $display_label;
490
+ $display_element_confirm = $param['w_field_label_pos'];
491
+ }
492
+ else{
493
+ $display_label_confirm = "none";
494
+ $display_element_confirm = "none";
495
+ }
496
+
497
+ $param['w_verification'] = isset($param['w_verification']) ? $param['w_verification'] : "no";
498
+ $param['w_verification_label'] = isset($param['w_verification_label']) ? $param['w_verification_label'] : "E-mail confirmation:";
499
+ $param['w_verification_placeholder'] = isset($param['w_verification_placeholder']) ? $param['w_verification_placeholder'] : "";
500
+
501
+
502
+ $confirm_emeil = '<br><div align="left" id="'.$id.'_1_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$display_label_confirm.'; width: '.$param['w_field_label_size'].'px;"><span id="'.$id.'_1_element_labelform_id_temp" class="label" style="vertical-align: top;">'.$param['w_verification_label'].'</span><span id="'.$id.'_required_elementform_id_temp" class="required" style="vertical-align: top;">'.$required_sym.'</span></div><div align="left" id="'.$id.'_1_element_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$display_element_confirm.';"><input type="hidden" value="'.$param['w_verification'].'" name="'.$id.'_verification_id_temp" id="'.$id.'_verification_id_temp"><input type="text" class="input_deactive" id="'.$id.'_1_elementform_id_temp" name="'.$id.'_1_elementform_id_temp" value="'.$param['w_verification_placeholder'].'" title="'.$param['w_verification_placeholder'].'" onfocus="delete_value(&quot;'.$id.'_elementform_id_temp&quot;)" onblur="return_value(&quot;'.$id.'_elementform_id_temp&quot;)" onchange="change_value(&quot;'.$id.'_elementform_id_temp&quot;)" style="width: '.$param['w_size'].'px;" '.$param['attributes'].' disabled /></div>';
503
+
504
+
505
+ $rep ='<div id="wdform_field'.$id.'" type="type_submitter_mail" class="wdform_field" style="display: table-cell;">'.$arrows.'<div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$display_label.'; width: '.$param['w_field_label_size'].'px;"><span id="'.$id.'_element_labelform_id_temp" class="label" style="vertical-align: top;">'.$label.'</span><span id="'.$id.'_required_elementform_id_temp" class="required" style="vertical-align: top;">'.$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_submitter_mail" 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_hide_label'].'" name="'.$id.'_hide_labelform_id_temp" id="'.$id.'_hide_labelform_id_temp"/><input type="hidden" value="'.$param['w_unique'].'" name="'.$id.'_uniqueform_id_temp" id="'.$id.'_uniqueform_id_temp"><input type="hidden" value="'.$param['w_autofill'].'" name="'.$id.'_autofillform_id_temp" id="'.$id.'_autofillform_id_temp"><input type="hidden" value="'.$param['w_verification'].'" name="'.$id.'_verification_id_temp" id="'.$id.'_verification_id_temp"><input type="text" class="'.$input_active.'" id="'.$id.'_elementform_id_temp" name="'.$id.'_elementform_id_temp" value="'.$param['w_first_val'].'" title="'.$param['w_title'].'" onfocus="delete_value(&quot;'.$id.'_elementform_id_temp&quot;)" onblur="return_value(&quot;'.$id.'_elementform_id_temp&quot;)" onchange="change_value(&quot;'.$id.'_elementform_id_temp&quot;)" style="width: '.$param['w_size'].'px;" '.$param['attributes'].' disabled /></div>'.$confirm_emeil.'</div>';
506
  break;
507
  }
508
+
509
  case 'type_checkbox':
510
  {
511
  $params_names=array('w_field_label_size','w_field_label_pos','w_flow','w_choices','w_choices_checked','w_rowcol', 'w_required','w_randomize','w_allow_other','w_allow_other_num','w_class');
admin/models/FMModelSubmissions_fm.php CHANGED
@@ -60,7 +60,7 @@ class FMModelSubmissions_fm {
60
  $join_where = array();
61
  $rows_ord = array();
62
  $join = '';
63
- for ($i = 0; $i < 8; $i++) {
64
  array_push($labels_parameters, NULL);
65
  }
66
  $sorted_label_names = array();
@@ -115,7 +115,7 @@ class FMModelSubmissions_fm {
115
  $orderby = "";
116
  }
117
  if ($form_id) {
118
- for($i = 0; $i < 8; $i++) {
119
  array_pop($labels_parameters);
120
  }
121
  $query = "SELECT distinct element_label FROM " . $wpdb->prefix . "formmaker_submits WHERE ". $where;
@@ -221,6 +221,14 @@ class FMModelSubmissions_fm {
221
  for ($i = 0; $i < count($results); $i++) {
222
  array_push($rows_ord, $results[$i]->group_id);
223
  }
 
 
 
 
 
 
 
 
224
  $where2 = array();
225
  $where2[] = "group_id='0'";
226
  foreach ($rows_ord as $rows_ordd) {
@@ -241,6 +249,7 @@ class FMModelSubmissions_fm {
241
  array_push($labels_parameters, $rows);
242
  array_push($labels_parameters, $group_ids);
243
  array_push($labels_parameters, $where_choices);
 
244
  }
245
  return $labels_parameters;
246
  }
60
  $join_where = array();
61
  $rows_ord = array();
62
  $join = '';
63
+ for ($i = 0; $i < 9; $i++) {
64
  array_push($labels_parameters, NULL);
65
  }
66
  $sorted_label_names = array();
115
  $orderby = "";
116
  }
117
  if ($form_id) {
118
+ for($i = 0; $i < 9; $i++) {
119
  array_pop($labels_parameters);
120
  }
121
  $query = "SELECT distinct element_label FROM " . $wpdb->prefix . "formmaker_submits WHERE ". $where;
221
  for ($i = 0; $i < count($results); $i++) {
222
  array_push($rows_ord, $results[$i]->group_id);
223
  }
224
+
225
+ $query1 = $join . ' ' . $orderby ;
226
+ $searched_group_ids = $wpdb->get_results($query1);
227
+ $searched_ids = array();
228
+ for ($i = 0; $i < count($searched_group_ids); $i++) {
229
+ array_push($searched_ids, $searched_group_ids[$i]->group_id);
230
+ }
231
+
232
  $where2 = array();
233
  $where2[] = "group_id='0'";
234
  foreach ($rows_ord as $rows_ordd) {
249
  array_push($labels_parameters, $rows);
250
  array_push($labels_parameters, $group_ids);
251
  array_push($labels_parameters, $where_choices);
252
+ array_push($labels_parameters, $searched_ids);
253
  }
254
  return $labels_parameters;
255
  }
admin/views/FMViewManage_fm.php CHANGED
@@ -3276,11 +3276,11 @@ class FMViewManage_fm {
3276
  for ($i = 0; $i < $fields_count - 1; $i++) {
3277
  ?>
3278
  <div>
3279
- <input type="radio" name="from_mail" id="from_mail<?php echo $i; ?>" value="<?php echo (strlen($fields[$i])!=1 ? substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*')+15, strlen($fields[$i])) : $fields[$i]); ?>" <?php echo ((strlen($fields[$i])!=1 ? substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*')+15, strlen($fields[$i])) : $fields[$i]) == $row->from_mail ? 'checked="checked"' : '' ); ?> onclick="wdhide('mail_from_other')" />
3280
  <label for="from_mail<?php echo $i; ?>"><?php echo substr($fields[$i + 1], 0, strpos($fields[$i + 1], '*:*w_field_label*:*')); ?></label>
3281
  </div>
3282
  <?php
3283
- if(strlen($fields[$i])!=1) {
3284
  if (substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*') + 15, strlen($fields[$i])) == $row->from_mail) {
3285
  $is_other = FALSE;
3286
  }
@@ -3340,11 +3340,11 @@ class FMViewManage_fm {
3340
  for ($i = 0; $i < $fields_count - 1; $i++) {
3341
  ?>
3342
  <div>
3343
- <input type="radio" name="reply_to" id="reply_to<?php echo $i; ?>" value="<?php echo (strlen($fields[$i])!=1 ? substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*')+15, strlen($fields[$i])) : $fields[$i]); ?>" <?php echo ((strlen($fields[$i])!=1 ? substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*')+15, strlen($fields[$i])) : $fields[$i]) == $row->reply_to ? 'checked="checked"' : '' ); ?> onclick="wdhide('reply_to_other')" />
3344
  <label for="reply_to<?php echo $i; ?>"><?php echo substr($fields[$i + 1], 0, strpos($fields[$i + 1], '*:*w_field_label*:*')); ?></label>
3345
  </div>
3346
  <?php
3347
- if(strlen($fields[$i])!=1) {
3348
  if (substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*') + 15, strlen($fields[$i])) == $row->reply_to) {
3349
  $is_other = FALSE;
3350
  }
@@ -3516,7 +3516,7 @@ class FMViewManage_fm {
3516
  for ($i = 0; $i < $fields_count - 1; $i++) {
3517
  ?>
3518
  <div>
3519
- <input type="checkbox" name="send_to<?php echo $i; ?>" id="send_to<?php echo $i; ?>" value="<?php echo (strlen($fields[$i])!=1 ? substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*')+15, strlen($fields[$i])) : $fields[$i]); ?>" <?php echo (is_numeric(strpos($row->send_to, '*'.(strlen($fields[$i])!=1 ? substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*')+15, strlen($fields[$i])) : $fields[$i]).'*')) ? 'checked="checked"' : '' ); ?> style="margin: 0px 5px 0px 0px;" />
3520
  <label for="send_to<?php echo $i; ?>"><?php echo substr($fields[$i + 1], 0, strpos($fields[$i + 1], '*:*w_field_label*:*')); ?></label>
3521
  </div>
3522
  <?php
3276
  for ($i = 0; $i < $fields_count - 1; $i++) {
3277
  ?>
3278
  <div>
3279
+ <input type="radio" name="from_mail" id="from_mail<?php echo $i; ?>" value="<?php echo (!is_numeric($fields[$i]) ? substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*')+15, strlen($fields[$i])) : $fields[$i]); ?>" <?php echo ((!is_numeric($fields[$i]) ? substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*')+15, strlen($fields[$i])) : $fields[$i]) == $row->from_mail ? 'checked="checked"' : '' ); ?> onclick="wdhide('mail_from_other')" />
3280
  <label for="from_mail<?php echo $i; ?>"><?php echo substr($fields[$i + 1], 0, strpos($fields[$i + 1], '*:*w_field_label*:*')); ?></label>
3281
  </div>
3282
  <?php
3283
+ if(!is_numeric($fields[$i]) ) {
3284
  if (substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*') + 15, strlen($fields[$i])) == $row->from_mail) {
3285
  $is_other = FALSE;
3286
  }
3340
  for ($i = 0; $i < $fields_count - 1; $i++) {
3341
  ?>
3342
  <div>
3343
+ <input type="radio" name="reply_to" id="reply_to<?php echo $i; ?>" value="<?php echo (!is_numeric($fields[$i]) ? substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*')+15, strlen($fields[$i])) : $fields[$i]); ?>" <?php echo ((!is_numeric($fields[$i]) ? substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*')+15, strlen($fields[$i])) : $fields[$i]) == $row->reply_to ? 'checked="checked"' : '' ); ?> onclick="wdhide('reply_to_other')" />
3344
  <label for="reply_to<?php echo $i; ?>"><?php echo substr($fields[$i + 1], 0, strpos($fields[$i + 1], '*:*w_field_label*:*')); ?></label>
3345
  </div>
3346
  <?php
3347
+ if(!is_numeric($fields[$i]) ) {
3348
  if (substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*') + 15, strlen($fields[$i])) == $row->reply_to) {
3349
  $is_other = FALSE;
3350
  }
3516
  for ($i = 0; $i < $fields_count - 1; $i++) {
3517
  ?>
3518
  <div>
3519
+ <input type="checkbox" name="send_to<?php echo $i; ?>" id="send_to<?php echo $i; ?>" value="<?php echo (!is_numeric($fields[$i]) ? substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*')+15, strlen($fields[$i])) : $fields[$i]); ?>" <?php echo (is_numeric(strpos($row->send_to, '*'.(!is_numeric($fields[$i]) ? substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*')+15, strlen($fields[$i])) : $fields[$i]).'*')) ? 'checked="checked"' : '' ); ?> style="margin: 0px 5px 0px 0px;" />
3520
  <label for="send_to<?php echo $i; ?>"><?php echo substr($fields[$i + 1], 0, strpos($fields[$i + 1], '*:*w_field_label*:*')); ?></label>
3521
  </div>
3522
  <?php
admin/views/FMViewSubmissions_fm.php CHANGED
@@ -38,6 +38,8 @@ class FMViewSubmissions_fm {
38
  $rows = ((isset($labels_parameters[5])) ? $labels_parameters[5] : NULL);
39
  $group_ids = ((isset($labels_parameters[6])) ? $labels_parameters[6] : NULL);
40
  $where_choices = $labels_parameters[7];
 
 
41
  $order_by = (isset($_POST['order_by']) ? esc_html(stripslashes($_POST['order_by'])) : 'group_id');
42
  $asc_or_desc = ((isset($_POST['asc_or_desc']) && $_POST['asc_or_desc'] == 'asc') ? 'asc' : 'desc');
43
  $style_id = $this->model->hide_or_not($lists['hide_label_list'], '@submitid@');
@@ -55,6 +57,7 @@ class FMViewSubmissions_fm {
55
  $n = count($rows);
56
  $group_id_s = array();
57
  $group_id_s = $this->model->sort_group_ids(count($sorted_label_names),$group_ids);
 
58
  $ka_fielderov_search = (($lists['ip_search'] || $lists['startdate'] || $lists['enddate'] || $lists['username_search'] || $lists['useremail_search'] || $lists['id_search']) ? TRUE : FALSE);
59
  $is_stats = false;
60
  $blocked_ips = $this->model->blocked_ips();
@@ -82,14 +85,9 @@ class FMViewSubmissions_fm {
82
  max: <?php echo $subs_count; ?>
83
  });
84
 
85
- var search_labels = [];
86
- jQuery('td.submitid_fc a').each(function(index, value) {
87
- search_labels.push(parseInt(jQuery(this).html()));
88
- });
89
-
90
  jQuery.ajax({
91
  type: "POST",
92
- url:"<?php echo add_query_arg(array('form_id' => $form_id, 'send_header' => 0), admin_url('admin-ajax.php')); ?>&action=generete_"+type+"&limitstart="+limit+"&search_labels="+search_labels.join(','),
93
  beforeSend: function() {
94
  if(<?php echo $subs_count; ?> >= 1000 )
95
  jQuery('.fm_modal').show();
@@ -121,7 +119,7 @@ class FMViewSubmissions_fm {
121
  progressbarValue.css({
122
  "color": '#444',
123
  });
124
- window.location = "<?php echo add_query_arg(array('form_id' => $form_id, 'send_header' => 1), admin_url('admin-ajax.php')); ?>&action=generete_"+type+"&limitstart="+limit+"&search_labels="+search_labels.join(',');
125
  }
126
  }
127
  });
38
  $rows = ((isset($labels_parameters[5])) ? $labels_parameters[5] : NULL);
39
  $group_ids = ((isset($labels_parameters[6])) ? $labels_parameters[6] : NULL);
40
  $where_choices = $labels_parameters[7];
41
+ $searched_ids = $labels_parameters[8];
42
+
43
  $order_by = (isset($_POST['order_by']) ? esc_html(stripslashes($_POST['order_by'])) : 'group_id');
44
  $asc_or_desc = ((isset($_POST['asc_or_desc']) && $_POST['asc_or_desc'] == 'asc') ? 'asc' : 'desc');
45
  $style_id = $this->model->hide_or_not($lists['hide_label_list'], '@submitid@');
57
  $n = count($rows);
58
  $group_id_s = array();
59
  $group_id_s = $this->model->sort_group_ids(count($sorted_label_names),$group_ids);
60
+
61
  $ka_fielderov_search = (($lists['ip_search'] || $lists['startdate'] || $lists['enddate'] || $lists['username_search'] || $lists['useremail_search'] || $lists['id_search']) ? TRUE : FALSE);
62
  $is_stats = false;
63
  $blocked_ips = $this->model->blocked_ips();
85
  max: <?php echo $subs_count; ?>
86
  });
87
 
 
 
 
 
 
88
  jQuery.ajax({
89
  type: "POST",
90
+ url:"<?php echo add_query_arg(array('form_id' => $form_id, 'send_header' => 0, 'search_labels' => $searched_ids), admin_url('admin-ajax.php')); ?>&action=generete_"+type+"&limitstart="+limit,
91
  beforeSend: function() {
92
  if(<?php echo $subs_count; ?> >= 1000 )
93
  jQuery('.fm_modal').show();
119
  progressbarValue.css({
120
  "color": '#444',
121
  });
122
+ window.location = "<?php echo add_query_arg(array('form_id' => $form_id, 'send_header' => 1, 'search_labels' => $searched_ids), admin_url('admin-ajax.php')); ?>&action=generete_"+type+"&limitstart="+limit;
123
  }
124
  }
125
  });
featured/featured_themes.css CHANGED
@@ -1,193 +1,178 @@
1
- @import url(http://fonts.googleapis.com/css?family=Oswald);
2
-
3
- #main_featured_themes_page #featured-plugins-list {
4
- position: relative;
5
- margin: 0px auto;
6
- height: auto;
7
- display: table;
8
- list-style: none;
9
- text-align: center;
10
- width: 100%;
11
- }
12
-
13
- #main_featured_themes_page #featured-plugins-list li {
14
- display: inline-table;
15
- width: 245px;
16
- margin: 20px 10px 0px 10px;
17
- background: #FFFFFF;
18
- border-right: 3px solid #E5E5E5;
19
- height: 405px;
20
- border-bottom: 3px solid #E5E5E5;
21
- position: relative;
22
- }
23
-
24
- #main_featured_themes_page #featured-plugins-list li .product {
25
- position:relative;
26
- height: 168px;
27
- background-color: #F1F1F1 !important;
28
- background-size: 100% !important;
29
- }
30
-
31
- #main_featured_themes_page #featured-plugins-list li .title {
32
- width: 91%;
33
- text-align: center;
34
- margin: 0 auto;
35
- }
36
-
37
- #main_featured_themes_page {
38
- font-family: Oswald;
39
- width: 90%;
40
- margin: 15px auto 0px auto;
41
- }
42
 
43
- #main_featured_themes_page h3 {
44
- border-bottom: 2px solid #CECECE;
45
- color: rgb(111, 111, 111);
46
- font-family: Segoe UI;
47
- font-size: 18pt;
48
- margin: 0px auto 15px auto;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  padding: 20px 0;
50
- }
51
-
52
- #main_featured_themes_page #featured-plugins-list li.sauron .product {background:url("images/sauron.png") left center no-repeat;}
53
- #main_featured_themes_page #featured-plugins-list li.portfolio .product {background:url("images/portfolio.png") left center no-repeat;}
54
- #main_featured_themes_page #featured-plugins-list li.business_elite .product {background:url("images/business_elite.png") left center no-repeat;}
55
- #main_featured_themes_page #featured-plugins-list li.mottomag .product {background:url("images/mottomag.png") left center no-repeat; }
56
- #main_featured_themes_page #featured-plugins-list li.business_world .product {background:url("images/business_world.png") left center no-repeat;}
57
- #main_featured_themes_page #featured-plugins-list li.best_magazine .product {background:url("images/best_magazine.png") left center no-repeat;}
58
- #main_featured_themes_page #featured-plugins-list li.wedding_style .product {background:url("images/wedding_style.png") left center no-repeat;}
59
- #main_featured_themes_page #featured-plugins-list li.magazine .product {background:url("images/magazine.png") left center no-repeat;}
60
- #main_featured_themes_page #featured-plugins-list li.weddings .product {background:url("images/wedding.png") left center no-repeat;}
61
- #main_featured_themes_page #featured-plugins-list li.exclusive .product {background:url("images/exclusive.png") left center no-repeat;}
62
- #main_featured_themes_page #featured-plugins-list li.expert .product {background:url("images/expert.png") left center no-repeat; background-size: 80%;}
63
-
64
- #main_featured_themes_page #featured-plugins-list li .title .heading {
65
- display: block;
66
- position: relative;
67
- font-size: 17px;
68
- color: #767676;
69
- margin: 13px 0px 13px 0px;
70
- text-transform: uppercase;
71
- }
72
-
73
- #main_featured_themes_page #featured-plugins-list li .title p {
74
- font-size:14px;
75
- color:#444;
76
- margin-left:20px;
77
- }
78
-
79
- #main_featured_themes_page #featured-plugins-list li .description {
80
- height:130px;
81
- width: 90%;
82
- margin: 0 auto;
83
- }
84
-
85
- #main_featured_themes_page #featured-plugins-list li .description p {
86
- text-align: center;
87
- width: 100%;
88
- color: #9A9A9A;
89
- font-family: "Open Sans",sans-serif;
90
- }
91
-
92
- #featured-plugins-list li a.download {
93
- display: block;
94
- border-top: 1px solid #CACACA;
95
- outline: none;
96
- width: 90%;
97
- margin: 0 auto;
98
- font-size: 14px;
99
- line-height: 40px;
100
- text-decoration: none;
101
- font-weight: bolder;
102
- text-align: center;
103
- color: #134D68;
104
- position: absolute;
105
- text-transform: uppercase;
106
- bottom: 0;
107
- left: 10px;
108
- font-family: "Open Sans",sans-serif;
109
- text-shadow: 1px 0;
110
- }
111
-
112
- #featured-plugins-list li a.download:hover {
113
- color: #F47629;
114
- }
115
-
116
- .featured_header{
117
- background: #11465F;
118
- border-right: 3px solid #E5E5E5;
119
- border-bottom: 3px solid #E5E5E5;
120
- position: relative;
121
- padding: 20px 0;
122
- }
123
-
124
- .featured_header .old_price {
125
- color: rgba(180, 180, 180, 0.3);
126
- text-decoration: line-through;
127
- font-family: Oswald;
128
- }
129
-
130
- .featured_header h1.get_plugins {
131
- color: #FFFFFF;
132
- height: 85px;
133
- margin: 0;
134
- background-size: 85% 100%;
135
- background-position: center;
136
- line-height: 60px;
137
- }
138
-
139
- .featured_header .try-now{
140
- text-align: center;
141
- }
142
-
143
- .featured_header .try-now span {
144
- display: inline-block;
145
  padding: 7px 16px;
146
  background: #F47629;
147
  border-radius: 10px;
148
  color: #ffffff;
149
  font-size: 23px;
150
- }
151
-
152
- .featured_header h1 {
153
- font-size: 50px;
154
- text-align: center;
155
- color: #FFFFFF;
156
- letter-spacing: 3px;
157
- text-transform: uppercase;
158
- }
159
-
160
- .featured_header a {
161
- text-decoration: none;
162
- }
163
-
164
- .featured_header .old-price {
165
- color: #889CA8;
166
- text-decoration: line-through;
167
- }
168
-
169
- @media screen and (max-width: 1105px) {
170
- .featured_header h1 {
171
- font-size: 37px;
172
- line-height: 0;
173
  }
174
- }
175
-
176
- @media screen and (max-width: 835px) {
177
- .get_plugins span {
178
- display: none;
179
  }
180
- }
181
-
182
- @media screen and (max-width: 700px) {
183
- .featured_header h1 {
184
- line-height: 40px;
 
 
 
 
 
185
  }
186
- }
187
-
188
- @media screen and (max-width: 435px) {
189
- .featured_header h1 {
190
- font-size: 20px;
191
- line-height: 25px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
192
  }
193
- }
 
 
 
 
 
1
+ @import url(https://fonts.googleapis.com/css?family=Oswald);
2
+
3
+ #main_featured_themes_page #featured-themes-list {
4
+ position:relative;
5
+ margin:0px auto;
6
+ height:auto;
7
+ display:table;
8
+ list-style:none;
9
+ text-align: center;
10
+ width: 100%;
11
+ }
12
+ #main_featured_themes_page #featured-themes-list li {
13
+ display: inline-table;
14
+ width: 300px;
15
+ margin: 20px 10px 0px 10px;
16
+ background: #FFFFFF;
17
+ border-right: 3px solid #E5E5E5;
18
+ border-bottom: 3px solid #E5E5E5;
19
+ position: relative;
20
+ }
21
+ @media screen and (min-width: 1600px) {
22
+ #main_featured_themes_page #featured-themes-list li {
23
+ width:400px;
24
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
 
26
+ }
27
+ #main_featured_themes_page .theme_img img {
28
+ max-width: 100%;
29
+ }
30
+ #main_featured_themes_page .theme_img {
31
+ display: inline-block;
32
+ overflow: hidden;
33
+ outline: 1px solid #D6D1D1;
34
+ position:relative;
35
+ /*height: 168px; */
36
+ }
37
+ #main_featured_themes_page #featured-themes-list li .title {
38
+ width: 91%;
39
+ text-align: center;
40
+ margin: 0 auto;
41
+ }
42
+ #main_featured_themes_page {
43
+ font-family: Oswald;
44
+ }
45
+ #main_featured_themes_page #featured-themes-list li .title .heading {
46
+ display: block;
47
+ position: relative;
48
+ font-size: 17px;
49
+ color: #666666;
50
+ margin: 13px 0px 13px 0px;
51
+ text-transform: uppercase;
52
+ }
53
+ #main_featured_themes_page #featured-themes-list li .title p {
54
+ font-size:14px;
55
+ color:#444;
56
+ margin-left:20px;
57
+ }
58
+ #main_featured_themes_page #featured-themes-list li .description {
59
+ height:130px;
60
+ width: 90%;
61
+ margin: 0 auto;
62
+ }
63
+ #main_featured_themes_page #featured-themes-list li .description p {
64
+ text-align: center;
65
+ width: 100%;
66
+ color: #666666;
67
+ font-family: "Open Sans",sans-serif;
68
+ font-size: 14px;
69
+ }
70
+ #main_featured_themes_page #featured-themes-list li .links {
71
+ border-top: 1px solid #d8d8d8;
72
+ width: 90%;
73
+ margin: 0 auto;
74
+ font-size: 14px;
75
+ line-height: 40px;
76
+ font-weight: bolder;
77
+ text-align: center;
78
+ padding-top: 9px;
79
+ padding-bottom: 12px;
80
+ }
81
+ #main_featured_themes_page .page_header h1 {
82
+ margin: 0px;
83
+ font-family: Segoe UI;
84
+ padding-bottom: 15px;
85
+ color: rgb(111, 111, 111);
86
+ font-size: 24px;
87
+ text-align:center;
88
+ }
89
+ #main_featured_themes_page .page_header {
90
+ height: 40px;
91
+ padding: 22px 0px 0px 0px;
92
+ margin-bottom: 15px;
93
+ /*border-bottom: rgb(111, 111, 111) solid 1px;*/
94
+ }
95
+ #main_featured_themes_page #featured-themes-list li a {
96
+ outline: none;
97
+ line-height: 29px;
98
+ text-decoration: none;
99
+ color: #134d68;
100
+ font-family: "Open Sans",sans-serif;
101
+ text-shadow: 1px 0;
102
+ display: inline-block;
103
+ font-size: 15px;
104
+ }
105
+ #main_featured_themes_page #featured-themes-list li a.demo {
106
+ color: #ffffff;
107
+ background: #F47629;
108
+ border-radius: 3px;
109
+ width: 76px;
110
+ text-align:center;
111
+ margin-right: 12px;
112
+ }
113
+ #main_featured_themes_page .featured_header{
114
+ background: #11465F;
115
+ border-right: 3px solid #E5E5E5;
116
+ border-bottom: 3px solid #E5E5E5;
117
+ position: relative;
118
  padding: 20px 0;
119
+ }
120
+ #main_featured_themes_page .featured_header .try-now {
121
+ text-align: center;
122
+ }
123
+ #main_featured_themes_page .featured_header .try-now span {
124
+ display: inline-block;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
125
  padding: 7px 16px;
126
  background: #F47629;
127
  border-radius: 10px;
128
  color: #ffffff;
129
  font-size: 23px;
130
+ }
131
+ #main_featured_themes_page .featured_container {
132
+ position: relative;
133
+ width: 90%;
134
+ margin: 15px auto 0px auto;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
135
  }
136
+ #main_featured_themes_page .featured_container .old_price{
137
+ color: rgba(180, 180, 180, 0.3);
138
+ text-decoration: line-through;
139
+ font-family: Oswald;
 
140
  }
141
+ #main_featured_themes_page .featured_container .get_themes{
142
+ color: #FFFFFF;
143
+ height: 85px;
144
+ margin: 0;
145
+ background-size: 95% 100%;
146
+ background-position: center;
147
+ line-height: 60px;
148
+ font-size: 45px;
149
+ text-align: center;
150
+ letter-spacing: 3px;
151
  }
152
+ #main_featured_themes_page .featured_header h1{
153
+ font-size: 45px;
154
+ text-align: center;
155
+ color: #ffffff;
156
+ letter-spacing: 3px;
157
+ line-height: 10px;
158
+ }
159
+ #main_featured_themes_page .featured_header a{
160
+ text-decoration: none;
161
+ }
162
+ @media screen and (max-width: 1035px) {
163
+ #main_featured_themes_page .featured_header h1{
164
+ font-size: 37px;
165
+ line-height: 0;
166
+ }
167
+ }
168
+ @media screen and (max-width: 835px) {
169
+ #main_featured_themes_page .get_themes span{
170
+ display: none;
171
+ }
172
  }
173
+ @media screen and (max-width: 435px) {
174
+ #main_featured_themes_page .featured_header h1 {
175
+ font-size: 20px;
176
+ line-height: 17px;
177
+ }
178
+ }
featured/featured_themes.php CHANGED
@@ -1,129 +1,104 @@
1
  <?php
2
- function fm_featured_themes_page() { ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  <div id="main_featured_themes_page">
4
-
5
- <h3>Featured Themes</h3>
6
- <div class="featured_header">
7
- <a href="https://web-dorado.com/wordpress-themes.html?source=formmaker" target="_blank">
8
- <h1>WORDPRESS THEMES</h1>
9
- <h1 class="get_plugins">FOR $40 ONLY <span>- SAVE 80%</span></h1>
10
- <div class="try-now">
11
- <span>TRY NOW</span>
12
- </div>
13
- </a>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  </div>
15
- <ul id="featured-plugins-list">
16
- <li class="portfolio">
17
- <div class="product"></div>
18
- <div class="title">
19
- <strong class="heading">Portfolio Gallery Theme</strong>
20
- </div>
21
- <div class="description">
22
- <p>Portfolio Gallery helps to display images using various color schemes and layouts combined with elegant fonts and content parts.</p>
23
- </div>
24
- <a target="_blank" href="https://web-dorado.com/wordpress-themes/portfolio-gallery.html?source=formmaker" class="download">Download theme &#9658;</a>
25
- </li>
26
- <li class="business_elite">
27
- <div class="product"></div>
28
- <div class="title">
29
- <strong class="heading">Business Elite Theme</strong>
30
- </div>
31
- <div class="description">
32
- <p>Business Elite is a robust parallax theme for business websites. The theme uses smooth transitions and many functional sections.</p>
33
- </div>
34
- <a target="_blank" href="https://web-dorado.com/wordpress-themes/business-elite.html?source=formmaker" class="download">Download theme &#9658;</a>
35
- </li>
36
- <li class="sauron">
37
- <div class="product"></div>
38
- <div class="title">
39
- <strong class="heading">Sauron Theme</strong>
40
- </div>
41
- <div class="description">
42
- <p>Sauron is a multipurpose parallax theme, which uses multiple interactive sections designed for the client-engagement.</p>
43
- </div>
44
- <a target="_blank" href="https://web-dorado.com/wordpress-themes/sauron.html?source=formmaker" class="download">Download plugin &#9658;</a>
45
- </li>
46
- <li class="mottomag">
47
- <div class="product"></div>
48
- <div class="title">
49
- <strong class="heading">MottoMag Theme</strong>
50
- </div>
51
- <div class="description">
52
- <p>MottoMag is a vibrant, responsive theme which is a perfect choice for the combination of textual content with videos and images.</p>
53
- </div>
54
- <a target="_blank" href="https://web-dorado.com/wordpress-themes/mottomag.html?source=formmaker" class="download">Download plugin &#9658;</a>
55
- </li>
56
- <li class="business_world">
57
- <div class="product"></div>
58
- <div class="title">
59
- <strong class="heading">Business World Theme</strong>
60
- </div>
61
- <div class="description">
62
- <p>Business World is an innovative WordPress theme great for Business websites.</p>
63
- </div>
64
- <a target="_blank" href="https://web-dorado.com/wordpress-themes/business-world.html?source=formmaker" class="download">Download plugin &#9658;</a>
65
- </li>
66
- <li class="best_magazine">
67
- <div class="product"></div>
68
- <div class="title">
69
- <strong class="heading">Best Magazine Theme</strong>
70
- </div>
71
- <div class="description">
72
- <p>Best Magazine is an ultimate selection when you are dealing with multi-category news websites.</p>
73
- </div>
74
- <a target="_blank" href="https://web-dorado.com/wordpress-themes/best-magazine.html?source=formmaker" class="download">Download plugin &#9658;</a>
75
- </li>
76
- <li class="wedding_style">
77
- <div class="product"></div>
78
- <div class="title">
79
- <strong class="heading">Wedding Style Theme</strong>
80
- </div>
81
- <div class="description">
82
- <p>Wedding style is a responsive theme designed for the organization and maintenance of wedding websites and blogs.</p>
83
- </div>
84
- <a target="_blank" href="https://web-dorado.com/wordpress-themes/wedding-style.html?source=formmaker" class="download">Download plugin &#9658;</a>
85
- </li>
86
- <li class="magazine">
87
- <div class="product"></div>
88
- <div class="title">
89
- <strong class="heading">Magazine Theme</strong>
90
- </div>
91
- <div class="description">
92
- <p>Magazine theme is a perfect solution when creating news and informational websites. It comes with a wide range of layout options.</p>
93
- </div>
94
- <a target="_blank" href="https://web-dorado.com/wordpress-themes/news-magazine.html?source=formmaker" class="download">Download plugin &#9658;</a>
95
- </li>
96
- <li class="weddings">
97
- <div class="product"></div>
98
- <div class="title">
99
- <strong class="heading">Weddings Theme</strong>
100
- </div>
101
- <div class="description">
102
- <p>Weddings is an elegant, responsive WordPress theme designed for wedding websites. The theme includes multiple pages, homepage slider and gallery support.</p>
103
- </div>
104
- <a target="_blank" href="https://web-dorado.com/wordpress-themes/wedding.html?source=formmaker" class="download">Download plugin &#9658;</a>
105
- </li>
106
- <li class="exclusive">
107
- <div class="product"></div>
108
- <div class="title">
109
- <strong class="heading">Exclusive Theme</strong>
110
- </div>
111
- <div class="description">
112
- <p>Exclusive is a unique theme designed to best fit business style websites. It comes with a large list of customizable features.</p>
113
- </div>
114
- <a target="_blank" href="https://web-dorado.com/wordpress-themes/exclusive.html?source=formmaker" class="download">Download plugin &#9658;</a>
115
- </li>
116
- <li class="expert">
117
- <div class="product"></div>
118
- <div class="title">
119
- <strong class="heading">Expert Theme</strong>
120
- </div>
121
- <div class="description">
122
- <p>WordPress Expert is a modern, user-friendly and stylish theme. It has a list of customizable layout, style, colors and fonts.</p>
123
- </div>
124
- <a target="_blank" href="https://web-dorado.com/wordpress-themes/business-responsive.html?source=formmaker" class="download">Download plugin &#9658;</a>
125
- </li>
126
- </ul>
127
- </div>
128
  <?php }
129
  ?>
1
  <?php
2
+ function fm_featured_themes_page() {
3
+
4
+ $slug = 'formmaker';
5
+ $image_url = WD_FM_URL . "/featured/images/";
6
+ $demo_url = 'http://themedemo.web-dorado.com/';
7
+ $site_url = 'https://web-dorado.com/wordpress-themes/';
8
+
9
+
10
+ $WDWThemes = array(
11
+ "business_elite" => array(
12
+ "title" => "Business Elite",
13
+ "description" =>"Business Elite is a robust parallax theme for business websites. The theme uses smooth transitions and many functional sections.",
14
+ "link" => "business-elite.html",
15
+ "demo" => "theme-businesselite",
16
+ "image" => "business_elite.jpg"
17
+ ),
18
+ "portfolio" => array(
19
+ "title" => "Portfolio Gallery",
20
+ "description" =>"Portfolio Gallery helps to display images using various color schemes and layouts combined with elegant fonts and content parts.",
21
+ "link" => "portfolio-gallery.html",
22
+ "demo" => "theme-portfoliogallery",
23
+ "image" => "portfolio_gallery.jpg"
24
+ ),
25
+ "sauron" => array(
26
+ "title" => "Sauron",
27
+ "description" =>"Sauron is a multipurpose parallax theme, which uses multiple interactive sections designed for the client-engagement.",
28
+ "link" => "sauron.html",
29
+ "demo" => "theme-sauron",
30
+ "image" => "sauron.jpg"
31
+ ),
32
+ "business_world" => array(
33
+ "title" => "Business World",
34
+ "description" => "Business World is an innovative WordPress theme great for Business websites.",
35
+ "link" => "business-world.html",
36
+ "demo" => "theme-businessworld",
37
+ "image" => "business_world.jpg"
38
+ ),
39
+ "best_magazine" => array(
40
+ "title" => "Best Magazine",
41
+ "description" =>"Best Magazine is an ultimate selection when you are dealing with multi-category news websites.",
42
+ "link" => "best-magazine.html",
43
+ "demo" => "theme-bestmagazine",
44
+ "image" => "best_magazine.jpg"
45
+ ),
46
+ "magazine" => array(
47
+ "title" => "News Magazine",
48
+ "description" =>"Magazine theme is a perfect solution when creating news and informational websites. It comes with a wide range of layout options.",
49
+ "link" => "news-magazine.html",
50
+ "demo" => "theme-newsmagazine",
51
+ "image" => "news_magazine.jpg"
52
+ )
53
+ );
54
+ ?>
55
+
56
+ <style>
57
+
58
+ #main_featured_themes_page #featured-themes-list li a.download {
59
+ padding-right: 30px;
60
+ background:url(<?php echo $image_url; ?>down.png) no-repeat right;
61
+ }
62
+
63
+ </style>
64
+
65
+
66
  <div id="main_featured_themes_page">
67
+ <div class="featured_container">
68
+ <div class="page_header">
69
+ <h1><?php echo "Featured Themes"; ?></h1>
70
+ </div>
71
+ <div class="featured_header">
72
+ <a target="_blank" href="https://web-dorado.com/wordpress-themes.html?source=<?php echo $slug; ?>">
73
+ <h1><?php echo "WORDPRESS THEMES"; ?></h1>
74
+ <h2 class="get_themes"><?php echo "ALL FOR $40 ONLY "; ?><span>- <?php echo "SAVE 80%"; ?></span></h2>
75
+ <div class="try-now">
76
+ <span><?php echo "TRY NOW"; ?></span>
77
+ </div>
78
+ </a>
79
+ </div>
80
+ <ul id="featured-themes-list">
81
+ <?php foreach($WDWThemes as $key=>$WDWTheme) : ?>
82
+ <li class="<?php echo $key; ?>">
83
+ <div class="theme_img">
84
+ <img src="<?php echo $image_url . $WDWTheme["image"]; ?>">
85
+ </div>
86
+ <div class="title">
87
+ <h3 class="heading"><?php echo $WDWTheme["title"]; ?></h3>
88
+ </div>
89
+ <div class="description">
90
+ <p><?php echo $WDWTheme["description"]; ?></p>
91
+ </div>
92
+ <div class="links">
93
+ <a target="_blank" href="<?php echo $demo_url . $WDWTheme["demo"]."?source=".$slug; ?>" class="demo"><?php echo "Demo"; ?></a>
94
+ <a target="_blank" href="<?php echo $site_url . $WDWTheme["link"]."?source=".$slug; ?>" class="download"><?php echo "Free Download"; ?></a>
95
+ </div>
96
+ </li>
97
+ <?php endforeach; ?>
98
+ </ul>
99
  </div>
100
+ </div>
101
+
102
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
103
  <?php }
104
  ?>
featured/images/best_magazine.jpg ADDED
Binary file
featured/images/business_elite.jpg ADDED
Binary file
featured/images/business_world.jpg ADDED
Binary file
featured/images/down.png CHANGED
Binary file
featured/images/news_magazine.jpg ADDED
Binary file
featured/images/portfolio_gallery.jpg ADDED
Binary file
featured/images/sauron.jpg ADDED
Binary file
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.11
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.11';
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.12
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.12';
276
  global $wpdb;
277
  if (!$version) {
278
  add_option("wd_form_maker_version", $new_version, '', 'no');
frontend/models/FMModelForm_maker.php CHANGED
@@ -2454,12 +2454,7 @@ class FMModelForm_maker {
2454
  $subject = $row->title;
2455
  }
2456
 
2457
- if ($row->from_name) {
2458
- $fromname = $row->from_name;
2459
- }
2460
- else {
2461
- $fromname = '';
2462
- }
2463
  $attachment = array();
2464
  if ($row->mail_attachment) {
2465
  for ($k = 0; $k < count($all_files); $k++) {
@@ -2527,7 +2522,12 @@ class FMModelForm_maker {
2527
  if (!isset($from)) {
2528
  $from = $row->from_mail;
2529
  }
2530
- $from = "From: '" . $fromname . "' <" . $from . ">" . "\r\n";
 
 
 
 
 
2531
  }
2532
  else {
2533
  $from = "";
2454
  $subject = $row->title;
2455
  }
2456
 
2457
+ $fromname = $row->from_name;
 
 
 
 
 
2458
  $attachment = array();
2459
  if ($row->mail_attachment) {
2460
  for ($k = 0; $k < count($all_files); $k++) {
2522
  if (!isset($from)) {
2523
  $from = $row->from_mail;
2524
  }
2525
+ if ($fromname != '') {
2526
+ $from = "From: '" . $fromname . "' <" . $from . ">" . "\r\n";
2527
+ }
2528
+ else {
2529
+ $from = "From: '' <" . $from . ">" . "\r\n";
2530
+ }
2531
  }
2532
  else {
2533
  $from = "";
frontend/views/FMViewForm_maker.php CHANGED
@@ -1697,6 +1697,13 @@ class FMViewForm_maker {
1697
  $temp=$params;
1698
  if(strpos($temp, 'w_autofill') > -1)
1699
  $params_names=array('w_field_label_size','w_field_label_pos','w_size','w_first_val','w_title','w_required','w_unique', 'w_class', 'w_autofill');
 
 
 
 
 
 
 
1700
  foreach($params_names as $params_name ) {
1701
  $temp=explode('*:*'.$params_name.'*:*',$temp);
1702
  $param[$params_name] = $temp[0];
@@ -1710,9 +1717,15 @@ class FMViewForm_maker {
1710
  }
1711
  }
1712
 
 
 
1713
  $wdformfieldsize = ($param['w_field_label_pos']=="left" ? ($param['w_field_label_size']+$param['w_size']) : max($param['w_field_label_size'], $param['w_size']));
1714
  $param['w_field_label_pos1'] = ($param['w_field_label_pos']=="left" ? "float: left;" : "");
1715
  $param['w_field_label_pos2'] = ($param['w_field_label_pos']=="left" ? "" : "display:block;");
 
 
 
 
1716
  $required = ($param['w_required']=="yes" ? true : false);
1717
  $param['w_autofill'] = isset($param['w_autofill']) ? $param['w_autofill'] : 'no';
1718
  if($param['w_autofill'] == 'yes' && $wp_useremail){
@@ -1729,6 +1742,14 @@ class FMViewForm_maker {
1729
  $rep.='<span class="wdform-required">'.$required_sym.'</span>';
1730
  }
1731
  $rep.='</div><div class="wdform-element-section '.$param['w_class'].'" style="'.$param['w_field_label_pos2'].' width: '.$param['w_size'].'px;"><input type="text" class="'.$input_active.'" id="wdform_'.$id1.'_element'.$form_id.'" name="wdform_'.$id1.'_element'.$form_id.'" value="'.$param['w_first_val'].'" title="'.$param['w_title'].'" style="width: 100%;" '.$param['attributes'].'></div></div>';
 
 
 
 
 
 
 
 
1732
 
1733
  if($required) {
1734
  $check_js.='
@@ -1761,7 +1782,24 @@ class FMViewForm_maker {
1761
  }
1762
 
1763
  }
1764
- ';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1765
 
1766
  break;
1767
  }
1697
  $temp=$params;
1698
  if(strpos($temp, 'w_autofill') > -1)
1699
  $params_names=array('w_field_label_size','w_field_label_pos','w_size','w_first_val','w_title','w_required','w_unique', 'w_class', 'w_autofill');
1700
+
1701
+ if(strpos($temp, 'w_hide_label') > -1)
1702
+ $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', 'w_autofill');
1703
+
1704
+ if(strpos($temp, 'w_verification') > -1)
1705
+ $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', 'w_verification', 'w_verification_label', 'w_verification_placeholder', 'w_autofill');
1706
+
1707
  foreach($params_names as $params_name ) {
1708
  $temp=explode('*:*'.$params_name.'*:*',$temp);
1709
  $param[$params_name] = $temp[0];
1717
  }
1718
  }
1719
 
1720
+
1721
+
1722
  $wdformfieldsize = ($param['w_field_label_pos']=="left" ? ($param['w_field_label_size']+$param['w_size']) : max($param['w_field_label_size'], $param['w_size']));
1723
  $param['w_field_label_pos1'] = ($param['w_field_label_pos']=="left" ? "float: left;" : "");
1724
  $param['w_field_label_pos2'] = ($param['w_field_label_pos']=="left" ? "" : "display:block;");
1725
+ $param['w_hide_label'] = (isset($param['w_hide_label']) ? $param['w_hide_label'] : "no");
1726
+ if($param['w_hide_label'] == "yes")
1727
+ $param['w_field_label_pos1'] = "display:none;";
1728
+
1729
  $required = ($param['w_required']=="yes" ? true : false);
1730
  $param['w_autofill'] = isset($param['w_autofill']) ? $param['w_autofill'] : 'no';
1731
  if($param['w_autofill'] == 'yes' && $wp_useremail){
1742
  $rep.='<span class="wdform-required">'.$required_sym.'</span>';
1743
  }
1744
  $rep.='</div><div class="wdform-element-section '.$param['w_class'].'" style="'.$param['w_field_label_pos2'].' width: '.$param['w_size'].'px;"><input type="text" class="'.$input_active.'" id="wdform_'.$id1.'_element'.$form_id.'" name="wdform_'.$id1.'_element'.$form_id.'" value="'.$param['w_first_val'].'" title="'.$param['w_title'].'" style="width: 100%;" '.$param['attributes'].'></div></div>';
1745
+
1746
+ if(isset($param['w_verification']) && $param['w_verification'] == "yes"){
1747
+ $rep .='<div><div type="type_submitter_mail" 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">'.$param['w_verification_label'].'</span>';
1748
+ if($required) {
1749
+ $rep.='<span class="wdform-required">'.$required_sym.'</span>';
1750
+ }
1751
+ $rep.='</div><div class="wdform-element-section '.$param['w_class'].'" style="'.$param['w_field_label_pos2'].' width: '.$param['w_size'].'px;"><input type="text" class="'.$input_active.'" id="wdform_'.$id1.'_1_element'.$form_id.'" name="wdform_'.$id1.'_1_element'.$form_id.'" value="'.$param['w_verification_placeholder'].'" title="'.$param['w_verification_placeholder'].'" style="width: 100%;" '.$param['attributes'].'></div></div></div>';
1752
+ }
1753
 
1754
  if($required) {
1755
  $check_js.='
1782
  }
1783
 
1784
  }
1785
+ ';
1786
+ if(isset($param['w_verification']) && $param['w_verification'] == "yes") {
1787
+ $check_js.='
1788
+ if(x.find(jQuery("div[wdid='.$id1.']")).length != 0 && x.find(jQuery("div[wdid='.$id1.']")).css("display") != "none")
1789
+ {
1790
+ if(jQuery("#wdform_'.$id1.'_element'.$form_id.'").val() !== jQuery("#wdform_'.$id1.'_1_element'.$form_id.'").val())
1791
+ {
1792
+ alert("' .addslashes(__('The Confirmation Email must match your Email Address', 'form_maker')) . '");
1793
+ jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
1794
+ old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
1795
+ x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
1796
+ jQuery("#wdform_'.$id1.'_element'.$form_id.'").focus();
1797
+ jQuery("#wdform_'.$id1.'_element'.$form_id.'").change(function() { if( jQuery(this).val()!="" ) jQuery(this).removeClass("form-error"); else jQuery(this).addClass("form-error");});
1798
+ return false;
1799
+ }
1800
+ }
1801
+ ';
1802
+ }
1803
 
1804
  break;
1805
  }
js/formmaker_div_free.js CHANGED
@@ -2011,10 +2011,32 @@ function check_isspacebar(e)
2011
  return true;
2012
  }
2013
 
2014
- function change_w_style(id, w)
2015
  {
2016
- if(document.getElementById(id))
2017
- document.getElementById(id).style.width=w+"px";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2018
  }
2019
 
2020
  function change_w_label(id, w)
@@ -2623,14 +2645,37 @@ function check_year1(e, id)
2623
 
2624
  function label_top(num)
2625
  {
2626
- document.getElementById(num+'_label_sectionform_id_temp').style.display="block";
2627
- document.getElementById(num+'_element_sectionform_id_temp').style.display="block";
 
 
 
 
 
 
 
 
 
 
 
 
 
2628
  }
2629
 
2630
  function label_left(num)
2631
  {
2632
- document.getElementById(num+'_label_sectionform_id_temp').style.display="table-cell";
2633
- document.getElementById(num+'_element_sectionform_id_temp').style.display="table-cell";
 
 
 
 
 
 
 
 
 
 
2634
  }
2635
 
2636
  function delete_value(id)
@@ -3028,10 +3073,17 @@ function close_window() {
3028
  }
3029
  }
3030
 
3031
- function change_label(id, label) {
3032
- label = label.replace(/(<([^>]+)>)/ig, "");
3033
- document.getElementById(id).innerHTML = label;
3034
- document.getElementById(id).value = label;
 
 
 
 
 
 
 
3035
  }
3036
 
3037
  function change_label_name(num, id, label, type)
@@ -10298,7 +10350,7 @@ function set_autofill(element){
10298
  }
10299
  }
10300
 
10301
- function type_submitter_mail(i, w_field_label, w_field_label_size, w_field_label_pos, w_size, w_first_val, w_title, w_required, w_unique, w_class, w_attr_name, w_attr_value, w_autofill){
10302
  document.getElementById("element_type").value="type_submitter_mail";
10303
 
10304
  delete_last_child();
@@ -10321,7 +10373,19 @@ function type_submitter_mail(i, w_field_label, w_field_label_size, w_field_label
10321
  var edit_main_tr9 = document.createElement('tr');
10322
  var edit_main_tr10 = document.createElement('tr');
10323
  var edit_main_tr11 = document.createElement('tr');
10324
-
 
 
 
 
 
 
 
 
 
 
 
 
10325
  var edit_main_td1 = document.createElement('td');
10326
  var edit_main_td1_1 = document.createElement('td');
10327
  var edit_main_td2 = document.createElement('td');
@@ -10344,7 +10408,16 @@ function type_submitter_mail(i, w_field_label, w_field_label_size, w_field_label
10344
  var edit_main_td10_1 = document.createElement('td');
10345
  var edit_main_td11 = document.createElement('td');
10346
  var edit_main_td11_1 = document.createElement('td');
10347
-
 
 
 
 
 
 
 
 
 
10348
  var el_label_label = document.createElement('label');
10349
  el_label_label.setAttribute("class", "fm-field-label");
10350
  el_label_label.setAttribute("for", "edit_for_label");
@@ -10356,6 +10429,31 @@ function type_submitter_mail(i, w_field_label, w_field_label_size, w_field_label
10356
  el_label_textarea.setAttribute("onKeyUp", "change_label('"+i+"_element_labelform_id_temp', this.value)");
10357
  el_label_textarea.innerHTML = w_field_label;
10358
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10359
  var el_label_size_label = document.createElement('label');
10360
  el_label_size_label.setAttribute("class", "fm-field-label");
10361
  el_label_size_label.setAttribute("for", "edit_for_label_size");
@@ -10367,7 +10465,7 @@ function type_submitter_mail(i, w_field_label, w_field_label_size, w_field_label
10367
  el_label_size.setAttribute("value", w_field_label_size);
10368
 
10369
  el_label_size.setAttribute("onKeyPress", "return check_isnum(event)");
10370
- el_label_size.setAttribute("onKeyUp", "change_w_style('"+i+"_label_sectionform_id_temp', this.value)");
10371
 
10372
  var el_label_position_label = document.createElement('label');
10373
  el_label_position_label.setAttribute("class", "fm-field-label");
@@ -10398,6 +10496,20 @@ function type_submitter_mail(i, w_field_label, w_field_label_size, w_field_label
10398
  else
10399
  el_label_position1.setAttribute("checked", "checked");
10400
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10401
  var el_size_label = document.createElement('label');
10402
  el_size_label.setAttribute("class", "fm-field-label");
10403
  el_size_label.setAttribute("for", "edit_for_input_size");
@@ -10409,19 +10521,35 @@ function type_submitter_mail(i, w_field_label, w_field_label_size, w_field_label
10409
 
10410
 
10411
  el_size.setAttribute("onKeyPress", "return check_isnum(event)");
10412
- el_size.setAttribute("onKeyUp", "change_w_style('"+i+"_elementform_id_temp', this.value)");
10413
 
10414
  var el_first_value_label = document.createElement('label');
10415
  el_first_value_label.setAttribute("class", "fm-field-label");
10416
  el_first_value_label.setAttribute("for", "el_first_value_input");
10417
  el_first_value_label.innerHTML = "Value if empty";
10418
 
 
10419
  var el_first_value_input = document.createElement('input');
10420
- el_first_value_input.setAttribute("id", "el_first_value_input");
10421
- el_first_value_input.setAttribute("type", "text");
10422
- el_first_value_input.setAttribute("value", w_title);
10423
- el_first_value_input.setAttribute("onKeyUp", "change_input_value(this.value,'"+i+"_elementform_id_temp')");
10424
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10425
  var el_style_label = document.createElement('label');
10426
  el_style_label.setAttribute("class", "fm-field-label");
10427
  el_style_label.setAttribute("for", "el_style_textarea");
@@ -10443,7 +10571,7 @@ function type_submitter_mail(i, w_field_label, w_field_label_size, w_field_label
10443
  var el_required = document.createElement('input');
10444
  el_required.setAttribute("id", "el_required");
10445
  el_required.setAttribute("type", "checkbox");
10446
- el_required.setAttribute("onclick", "set_required('"+i+"_required')");
10447
  if(w_required=="yes")
10448
  el_required.setAttribute("checked", "checked");
10449
 
@@ -10595,12 +10723,21 @@ function type_submitter_mail(i, w_field_label, w_field_label_size, w_field_label
10595
  edit_main_td11.appendChild(el_autofill_label);
10596
  edit_main_td11_1.appendChild(el_autofill);
10597
 
 
 
 
 
 
 
 
 
10598
  edit_main_td8.appendChild(el_attr_label);
10599
  edit_main_td8.appendChild(el_attr_add);
10600
  edit_main_td8.appendChild(br4);
10601
  edit_main_td8.appendChild(el_attr_table);
10602
  edit_main_td8.setAttribute("colspan", "2");
10603
-
 
10604
  edit_main_tr1.appendChild(edit_main_td1);
10605
  edit_main_tr1.appendChild(edit_main_td1_1);
10606
 
@@ -10621,13 +10758,28 @@ function type_submitter_mail(i, w_field_label, w_field_label_size, w_field_label
10621
  edit_main_tr9.appendChild(edit_main_td9_1);
10622
  edit_main_tr11.appendChild(edit_main_td11);
10623
  edit_main_tr11.appendChild(edit_main_td11_1);
 
 
 
 
 
 
 
 
 
 
10624
  edit_main_tr8.appendChild(edit_main_td8);
10625
  edit_main_tr8.appendChild(edit_main_td8_1);
10626
  edit_main_table.appendChild(edit_main_tr1);
10627
  edit_main_table.appendChild(edit_main_tr10);
 
 
 
10628
  edit_main_table.appendChild(edit_main_tr2);
 
10629
  edit_main_table.appendChild(edit_main_tr3);
10630
  edit_main_table.appendChild(edit_main_tr4);
 
10631
  edit_main_table.appendChild(edit_main_tr5);
10632
  edit_main_table.appendChild(edit_main_tr7);
10633
  edit_main_table.appendChild(edit_main_tr9);
@@ -10658,13 +10810,34 @@ function type_submitter_mail(i, w_field_label, w_field_label_size, w_field_label
10658
  adding_required.setAttribute("value", w_required);
10659
  adding_required.setAttribute("name", i+"_requiredform_id_temp");
10660
  adding_required.setAttribute("id", i+"_requiredform_id_temp");
10661
-
 
 
 
 
 
 
 
10662
  var adding_unique= document.createElement("input");
10663
  adding_unique.setAttribute("type", "hidden");
10664
  adding_unique.setAttribute("value", w_unique);
10665
  adding_unique.setAttribute("name", i+"_uniqueform_id_temp");
10666
  adding_unique.setAttribute("id", i+"_uniqueform_id_temp");
10667
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10668
  var adding = document.createElement(element);
10669
  adding.setAttribute("type", type);
10670
 
@@ -10688,29 +10861,65 @@ function type_submitter_mail(i, w_field_label, w_field_label_size, w_field_label
10688
  adding.setAttribute("onBlur", "return_value('"+i+"_elementform_id_temp')");
10689
  adding.setAttribute("onChange", "change_value('"+i+"_elementform_id_temp')");
10690
 
 
 
10691
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10692
  var div = document.createElement('div');
10693
  div.setAttribute("id", "main_div");
10694
 
10695
 
10696
  var div_field = document.createElement('div');
10697
  div_field.setAttribute("id", i+"_elemet_tableform_id_temp");
10698
-
 
10699
  var div_label = document.createElement('div');
10700
  div_label.setAttribute("align", 'left');
10701
- div_label.style.display="table-cell";
10702
  div_label.style.width=w_field_label_size+"px";
10703
  div_label.setAttribute("id", i+"_label_sectionform_id_temp");
10704
-
 
 
 
 
 
 
 
 
10705
  var div_element = document.createElement('div');
10706
  div_element.setAttribute("align", 'left');
10707
  div_element.style.display="table-cell";
10708
  div_element.setAttribute("id", i+"_element_sectionform_id_temp");
10709
 
 
 
 
 
 
 
 
10710
  var br1 = document.createElement('br');
10711
  var br2 = document.createElement('br');
10712
  var br3 = document.createElement('br');
10713
  var br4 = document.createElement('br');
 
10714
 
10715
 
10716
 
@@ -10720,24 +10929,51 @@ function type_submitter_mail(i, w_field_label, w_field_label_size, w_field_label
10720
  label.setAttribute("class", "label");
10721
  label.style.verticalAlign="top";
10722
 
 
 
 
 
 
 
 
 
10723
  var required = document.createElement('span');
10724
  required.setAttribute("id", i+"_required_elementform_id_temp");
10725
  required.innerHTML = "";
10726
  required.setAttribute("class", "required");
10727
  required.style.verticalAlign="top";
10728
- if(w_required=="yes")
10729
  required.innerHTML = " *";
 
 
 
 
 
 
 
 
 
10730
  var main_td = document.getElementById('show_table');
10731
 
10732
  div_label.appendChild(label);
10733
  div_label.appendChild(required);
 
 
 
 
10734
  div_element.appendChild(adding_type);
10735
  div_element.appendChild(adding_required);
 
10736
  div_element.appendChild(adding_unique);
 
10737
  div_element.appendChild(adding_autofill);
10738
  div_element.appendChild(adding);
 
10739
  div_field.appendChild(div_label);
10740
  div_field.appendChild(div_element);
 
 
 
10741
 
10742
 
10743
  div.appendChild(div_field);
@@ -24648,7 +24884,7 @@ function go_to_type_submitter_mail(new_id)
24648
  {
24649
  w_attr_name=[];
24650
  w_attr_value=[];
24651
- type_submitter_mail(new_id,'E-mail:', '100', 'left', '200', '', '', 'no', '', w_attr_name, w_attr_value, 'no');
24652
  }
24653
 
24654
  function go_to_type_time(new_id)
@@ -26777,6 +27013,14 @@ function add(key, after_edit, wdid)
26777
  wdform_field.appendChild(add1);
26778
  wdform_field.appendChild(add2);
26779
 
 
 
 
 
 
 
 
 
26780
 
26781
  j=2;
26782
 
@@ -26971,6 +27215,16 @@ function add(key, after_edit, wdid)
26971
  wdform_field.appendChild(add1);
26972
  wdform_field.appendChild(add2);
26973
 
 
 
 
 
 
 
 
 
 
 
26974
  wdform_arrows.appendChild(td_X);
26975
  wdform_arrows.appendChild(td_LEFT);
26976
  wdform_arrows.appendChild(td_UP);
@@ -27361,13 +27615,21 @@ function edit(id)
27361
 
27362
  case 'type_submitter_mail':
27363
  {
 
27364
  w_first_val=document.getElementById(id+"_elementform_id_temp").value;
27365
  w_title=document.getElementById(id+"_elementform_id_temp").title;
27366
  w_autofill = document.getElementById(id+"_autofillform_id_temp").value;
 
 
 
 
 
 
 
27367
  atrs=return_attributes(id+'_elementform_id_temp');
27368
  w_attr_name=atrs[0];
27369
  w_attr_value=atrs[1];
27370
- type_submitter_mail(id, w_field_label, w_field_label_size, w_field_label_pos, w_size, w_first_val, w_title, w_required, w_unique, w_class, w_attr_name, w_attr_value, w_autofill); break;
27371
  }
27372
  case 'type_checkbox':
27373
  {
@@ -28273,13 +28535,20 @@ function duplicate(id) {
28273
 
28274
  case 'type_submitter_mail':
28275
  {
 
28276
  w_first_val=document.getElementById(id+"_elementform_id_temp").value;
28277
  w_title=document.getElementById(id+"_elementform_id_temp").title;
28278
  w_autofill = document.getElementById(id+"_autofillform_id_temp").value;
 
 
 
 
 
 
28279
  atrs=return_attributes(id+'_elementform_id_temp');
28280
  w_attr_name=atrs[0];
28281
  w_attr_value=atrs[1];
28282
- type_submitter_mail(gen, w_field_label, w_field_label_size, w_field_label_pos, w_size, w_first_val, w_title, w_required, w_unique, w_class, w_attr_name, w_attr_value, w_autofill); break;
28283
  }
28284
  case 'type_checkbox':
28285
  {
@@ -29239,10 +29508,18 @@ function gen_form_fields()
29239
 
29240
  case 'type_submitter_mail':
29241
  {
 
29242
  w_first_val=document.getElementById(id+"_elementform_id_temp").value;
29243
  w_title=document.getElementById(id+"_elementform_id_temp").title;
29244
  w_autofill = document.getElementById(id+"_autofillform_id_temp").value;
29245
-
 
 
 
 
 
 
 
29246
  atrs=return_attributes(id+'_elementform_id_temp');
29247
  w_attr_name=atrs[0];
29248
  w_attr_value=atrs[1];
@@ -29250,18 +29527,23 @@ function gen_form_fields()
29250
  form_fields+=w_field_label+"*:*w_field_label*:*";
29251
  form_fields+=w_field_label_size+"*:*w_field_label_size*:*";
29252
  form_fields+=w_field_label_pos+"*:*w_field_label_pos*:*";
 
29253
  form_fields+=w_size+"*:*w_size*:*";
29254
  form_fields+=w_first_val+"*:*w_first_val*:*";
29255
  form_fields+=w_title+"*:*w_title*:*";
29256
  form_fields+=w_required+"*:*w_required*:*";
29257
  form_fields+=w_unique+"*:*w_unique*:*";
29258
  form_fields+=w_class+"*:*w_class*:*";
 
 
 
29259
  form_fields+=w_autofill+"*:*w_autofill*:*";
29260
  for(j=0; j<w_attr_name.length; j++)
29261
  {
29262
  form_fields+=w_attr_name[j]+"="+w_attr_value[j]+"*:*w_attr_name*:*";
29263
  }
29264
 
 
29265
  form_fields+="*:*new_field*:*";
29266
  break;
29267
  }
2011
  return true;
2012
  }
2013
 
2014
+ function change_w_style(id, w, type="")
2015
  {
2016
+
2017
+ if(document.getElementById(id)){
2018
+ document.getElementById(id).style.width=w+"px";
2019
+ }
2020
+ if(type)
2021
+ document.getElementById(type).style.width=w+"px";
2022
+ }
2023
+
2024
+ function verification_mail(id){
2025
+ if(document.getElementById("el_verification_mail").checked){
2026
+ document.getElementById('confirm_validation_label').style.display = "table-row";
2027
+ document.getElementById('confirm_validation_empty').style.display = "table-row";
2028
+ document.getElementById(id + "_verification_id_temp").value = "yes";
2029
+ document.getElementById(id + "_1_label_sectionform_id_temp").style.display = document.getElementById(id + "_label_sectionform_id_temp").style.display;
2030
+ document.getElementById(id + "_1_element_sectionform_id_temp").style.display = document.getElementById(id + "_element_sectionform_id_temp").style.display;
2031
+
2032
+ }
2033
+ else{
2034
+ document.getElementById('confirm_validation_label').style.display = "none";
2035
+ document.getElementById('confirm_validation_empty').style.display = "none";
2036
+ document.getElementById(id + "_verification_id_temp").value = "no";
2037
+ document.getElementById(id + "_1_label_sectionform_id_temp").style.display = "none";
2038
+ document.getElementById(id + "_1_element_sectionform_id_temp").style.display = "none";
2039
+ }
2040
  }
2041
 
2042
  function change_w_label(id, w)
2645
 
2646
  function label_top(num)
2647
  {
2648
+
2649
+
2650
+ document.getElementById(num+'_label_sectionform_id_temp').style.display="block";
2651
+ document.getElementById(num+'_element_sectionform_id_temp').style.display="block";
2652
+
2653
+ if(document.getElementById(num+'_1_label_sectionform_id_temp') && document.getElementById(num+'_verification_id_temp').value == "yes"){
2654
+ document.getElementById(num+'_1_label_sectionform_id_temp').style.display=document.getElementById(num+'_label_sectionform_id_temp').style.display;
2655
+ document.getElementById(num+'_1_element_sectionform_id_temp').style.display=document.getElementById(num+'_element_sectionform_id_temp').style.display;
2656
+ }
2657
+ else{
2658
+ document.getElementById(num+'_1_label_sectionform_id_temp').style.display="none";
2659
+ document.getElementById(num+'_1_element_sectionform_id_temp').style.display="none";
2660
+ }
2661
+
2662
+
2663
  }
2664
 
2665
  function label_left(num)
2666
  {
2667
+
2668
+ document.getElementById(num+'_label_sectionform_id_temp').style.display="table-cell";
2669
+ document.getElementById(num+'_element_sectionform_id_temp').style.display="table-cell";
2670
+ if(document.getElementById(num+'_1_label_sectionform_id_temp' ) && document.getElementById(num+'_verification_id_temp').value == "yes"){
2671
+ document.getElementById(num+'_1_label_sectionform_id_temp').style.display=document.getElementById(num+'_label_sectionform_id_temp').style.display;
2672
+ document.getElementById(num+'_1_element_sectionform_id_temp').style.display=document.getElementById(num+'_element_sectionform_id_temp').style.display;
2673
+ }
2674
+ else{
2675
+ document.getElementById(num+'_1_label_sectionform_id_temp').style.display="none";
2676
+ document.getElementById(num+'_1_element_sectionform_id_temp').style.display="none";
2677
+ }
2678
+
2679
  }
2680
 
2681
  function delete_value(id)
3073
  }
3074
  }
3075
 
3076
+ function change_label(id, label, type='') {
3077
+ if(!type){
3078
+ label = label.replace(/(<([^>]+)>)/ig, "");
3079
+ document.getElementById(id).innerHTML = label;
3080
+ document.getElementById(id).value = label;
3081
+ }
3082
+ else{
3083
+ label = label.replace(/(<([^>]+)>)/ig, "");
3084
+ document.getElementById(type).innerHTML = label;
3085
+ }
3086
+
3087
  }
3088
 
3089
  function change_label_name(num, id, label, type)
10350
  }
10351
  }
10352
 
10353
+ function type_submitter_mail(i, w_field_label, w_field_label_size, w_field_label_pos, w_hide_label, w_size, w_first_val, w_title, w_required, w_unique, w_class, w_verification, w_verification_label, w_verification_placeholder, w_attr_name, w_attr_value, w_autofill){
10354
  document.getElementById("element_type").value="type_submitter_mail";
10355
 
10356
  delete_last_child();
10373
  var edit_main_tr9 = document.createElement('tr');
10374
  var edit_main_tr10 = document.createElement('tr');
10375
  var edit_main_tr11 = document.createElement('tr');
10376
+ var edit_main_tr12 = document.createElement('tr');
10377
+ var display_confirm = w_verification == "yes" ? "table-row" : "none";
10378
+ var edit_main_tr13 = document.createElement('tr');
10379
+ edit_main_tr13.setAttribute("id", "confirm_validation_label");
10380
+ edit_main_tr13.style.display=display_confirm;
10381
+
10382
+
10383
+
10384
+ var edit_main_tr14 = document.createElement('tr');
10385
+ edit_main_tr14.setAttribute("id", "confirm_validation_empty");
10386
+ edit_main_tr14.style.display=display_confirm;
10387
+
10388
+ var edit_main_tr_hide_label = document.createElement('tr');
10389
  var edit_main_td1 = document.createElement('td');
10390
  var edit_main_td1_1 = document.createElement('td');
10391
  var edit_main_td2 = document.createElement('td');
10408
  var edit_main_td10_1 = document.createElement('td');
10409
  var edit_main_td11 = document.createElement('td');
10410
  var edit_main_td11_1 = document.createElement('td');
10411
+ var edit_main_td12 = document.createElement('td');
10412
+ var edit_main_td12_1 = document.createElement('td');
10413
+ var edit_main_td13 = document.createElement('td');
10414
+ var edit_main_td13_1 = document.createElement('td');
10415
+ var edit_main_td14 = document.createElement('td');
10416
+ var edit_main_td14_1 = document.createElement('td');
10417
+
10418
+
10419
+ var edit_main_td_hide_label_1 = document.createElement('td');
10420
+ var edit_main_td_hide_label_2 = document.createElement('td');
10421
  var el_label_label = document.createElement('label');
10422
  el_label_label.setAttribute("class", "fm-field-label");
10423
  el_label_label.setAttribute("for", "edit_for_label");
10429
  el_label_textarea.setAttribute("onKeyUp", "change_label('"+i+"_element_labelform_id_temp', this.value)");
10430
  el_label_textarea.innerHTML = w_field_label;
10431
 
10432
+ var el_verification_label = document.createElement('label');
10433
+ el_verification_label.setAttribute("class", "fm-field-label");
10434
+ el_verification_label.setAttribute("for", "el_verification_mail");
10435
+ el_verification_label.innerHTML = "Confirmation E-mail"
10436
+
10437
+ var el_verification = document.createElement('input');
10438
+ el_verification.setAttribute("id", "el_verification_mail");
10439
+ el_verification.setAttribute("type", "checkbox");
10440
+ el_verification.setAttribute("onclick", "verification_mail('"+i+"')");
10441
+ if(w_verification=="yes")
10442
+ el_verification.setAttribute("checked", "checked");
10443
+
10444
+
10445
+ var el_verification_label_label = document.createElement('label');
10446
+ el_verification_label_label.setAttribute("class", "fm-field-label");
10447
+ el_verification_label_label.setAttribute("for", "edit_for_label");
10448
+ el_verification_label_label.innerHTML = "Field label confirmation";
10449
+
10450
+ var el_verification_label_textarea = document.createElement('textarea');
10451
+ el_verification_label_textarea.setAttribute("id", "edit_for_label");
10452
+ el_verification_label_textarea.setAttribute("rows", "4");
10453
+ el_verification_label_textarea.setAttribute("onKeyUp", "change_label('"+i+"_element_labelform_id_temp', this.value, '"+i+"_1_element_labelform_id_temp')");
10454
+ el_verification_label_textarea.innerHTML = w_verification_label;
10455
+
10456
+
10457
  var el_label_size_label = document.createElement('label');
10458
  el_label_size_label.setAttribute("class", "fm-field-label");
10459
  el_label_size_label.setAttribute("for", "edit_for_label_size");
10465
  el_label_size.setAttribute("value", w_field_label_size);
10466
 
10467
  el_label_size.setAttribute("onKeyPress", "return check_isnum(event)");
10468
+ el_label_size.setAttribute("onKeyUp", "change_w_style('"+i+"_label_sectionform_id_temp', this.value, '"+i+"_1_label_sectionform_id_temp')");
10469
 
10470
  var el_label_position_label = document.createElement('label');
10471
  el_label_position_label.setAttribute("class", "fm-field-label");
10496
  else
10497
  el_label_position1.setAttribute("checked", "checked");
10498
 
10499
+ var el_hide_label_label = document.createElement('label');
10500
+ el_hide_label_label.setAttribute("class", "fm-field-label");
10501
+ el_hide_label_label.setAttribute("for", "el_hide_label");
10502
+ el_hide_label_label.innerHTML = "Hide label";
10503
+
10504
+ var el_hide_label = document.createElement('input');
10505
+ el_hide_label.setAttribute("id", "el_hide_label");
10506
+ el_hide_label.setAttribute("type", "checkbox");
10507
+ el_hide_label.setAttribute("onclick", "hide_label('"+i+"')");
10508
+ if(w_hide_label=="yes")
10509
+ el_hide_label.setAttribute("checked", "checked");
10510
+
10511
+
10512
+
10513
  var el_size_label = document.createElement('label');
10514
  el_size_label.setAttribute("class", "fm-field-label");
10515
  el_size_label.setAttribute("for", "edit_for_input_size");
10521
 
10522
 
10523
  el_size.setAttribute("onKeyPress", "return check_isnum(event)");
10524
+ el_size.setAttribute("onKeyUp", "change_w_style('"+i+"_elementform_id_temp', this.value, '"+i+"_1_elementform_id_temp')");
10525
 
10526
  var el_first_value_label = document.createElement('label');
10527
  el_first_value_label.setAttribute("class", "fm-field-label");
10528
  el_first_value_label.setAttribute("for", "el_first_value_input");
10529
  el_first_value_label.innerHTML = "Value if empty";
10530
 
10531
+
10532
  var el_first_value_input = document.createElement('input');
10533
+ el_first_value_input.setAttribute("id", "el_first_value_input");
10534
+ el_first_value_input.setAttribute("type", "text");
10535
+ el_first_value_input.setAttribute("value", w_title);
10536
+ el_first_value_input.setAttribute("onKeyUp", "change_input_value(this.value,'"+i+"_elementform_id_temp')");
10537
+
10538
+ var el_first_value_verification_label = document.createElement('label');
10539
+ el_first_value_verification_label.setAttribute("class", "fm-field-label");
10540
+ el_first_value_verification_label.setAttribute("for", "el_first_value_verification_input");
10541
+ el_first_value_verification_label.innerHTML = "Value if empty confirmation";
10542
+
10543
+
10544
+ var el_first_value_verification_input = document.createElement('input');
10545
+ el_first_value_verification_input.setAttribute("id", "el_first_value_verification_input");
10546
+ el_first_value_verification_input.setAttribute("type", "text");
10547
+ el_first_value_verification_input.setAttribute("value", w_verification_placeholder);
10548
+ el_first_value_verification_input.setAttribute("onKeyUp", "change_input_value(this.value,'"+i+"_1_elementform_id_temp')");
10549
+
10550
+
10551
+
10552
+
10553
  var el_style_label = document.createElement('label');
10554
  el_style_label.setAttribute("class", "fm-field-label");
10555
  el_style_label.setAttribute("for", "el_style_textarea");
10571
  var el_required = document.createElement('input');
10572
  el_required.setAttribute("id", "el_required");
10573
  el_required.setAttribute("type", "checkbox");
10574
+ el_required.setAttribute("onclick", "set_required('"+i+"_required', '"+i+"_1_required')");
10575
  if(w_required=="yes")
10576
  el_required.setAttribute("checked", "checked");
10577
 
10723
  edit_main_td11.appendChild(el_autofill_label);
10724
  edit_main_td11_1.appendChild(el_autofill);
10725
 
10726
+ edit_main_td12.appendChild(el_verification_label);
10727
+ edit_main_td12_1.appendChild(el_verification);
10728
+
10729
+ edit_main_td13.appendChild(el_verification_label_label);
10730
+ edit_main_td13_1.appendChild(el_verification_label_textarea);
10731
+ edit_main_td14.appendChild(el_first_value_verification_label);
10732
+ edit_main_td14_1.appendChild(el_first_value_verification_input);
10733
+
10734
  edit_main_td8.appendChild(el_attr_label);
10735
  edit_main_td8.appendChild(el_attr_add);
10736
  edit_main_td8.appendChild(br4);
10737
  edit_main_td8.appendChild(el_attr_table);
10738
  edit_main_td8.setAttribute("colspan", "2");
10739
+ edit_main_td_hide_label_1.appendChild(el_hide_label_label);
10740
+ edit_main_td_hide_label_2.appendChild(el_hide_label);
10741
  edit_main_tr1.appendChild(edit_main_td1);
10742
  edit_main_tr1.appendChild(edit_main_td1_1);
10743
 
10758
  edit_main_tr9.appendChild(edit_main_td9_1);
10759
  edit_main_tr11.appendChild(edit_main_td11);
10760
  edit_main_tr11.appendChild(edit_main_td11_1);
10761
+ edit_main_tr12.appendChild(edit_main_td12);
10762
+ edit_main_tr12.appendChild(edit_main_td12_1);
10763
+ edit_main_tr13.appendChild(edit_main_td13);
10764
+ edit_main_tr13.appendChild(edit_main_td13_1);
10765
+ edit_main_tr14.appendChild(edit_main_td14);
10766
+ edit_main_tr14.appendChild(edit_main_td14_1);
10767
+
10768
+
10769
+ edit_main_tr_hide_label.appendChild(edit_main_td_hide_label_1);
10770
+ edit_main_tr_hide_label.appendChild(edit_main_td_hide_label_2);
10771
  edit_main_tr8.appendChild(edit_main_td8);
10772
  edit_main_tr8.appendChild(edit_main_td8_1);
10773
  edit_main_table.appendChild(edit_main_tr1);
10774
  edit_main_table.appendChild(edit_main_tr10);
10775
+ edit_main_table.appendChild(edit_main_tr12);
10776
+ edit_main_table.appendChild(edit_main_tr13);
10777
+
10778
  edit_main_table.appendChild(edit_main_tr2);
10779
+ //edit_main_table.appendChild(edit_main_tr_hide_label);
10780
  edit_main_table.appendChild(edit_main_tr3);
10781
  edit_main_table.appendChild(edit_main_tr4);
10782
+ edit_main_table.appendChild(edit_main_tr14);
10783
  edit_main_table.appendChild(edit_main_tr5);
10784
  edit_main_table.appendChild(edit_main_tr7);
10785
  edit_main_table.appendChild(edit_main_tr9);
10810
  adding_required.setAttribute("value", w_required);
10811
  adding_required.setAttribute("name", i+"_requiredform_id_temp");
10812
  adding_required.setAttribute("id", i+"_requiredform_id_temp");
10813
+
10814
+ var adding_hide_label= document.createElement("input");
10815
+ adding_hide_label.setAttribute("type", "hidden");
10816
+ adding_hide_label.setAttribute("value", w_hide_label);
10817
+ adding_hide_label.setAttribute("name", i+"_hide_labelform_id_temp");
10818
+ adding_hide_label.setAttribute("id", i+"_hide_labelform_id_temp");
10819
+
10820
+
10821
  var adding_unique= document.createElement("input");
10822
  adding_unique.setAttribute("type", "hidden");
10823
  adding_unique.setAttribute("value", w_unique);
10824
  adding_unique.setAttribute("name", i+"_uniqueform_id_temp");
10825
  adding_unique.setAttribute("id", i+"_uniqueform_id_temp");
10826
+
10827
+ var adding_verification= document.createElement("input");
10828
+ adding_verification.setAttribute("type", "hidden");
10829
+ adding_verification.setAttribute("value", w_verification);
10830
+ adding_verification.setAttribute("name", i+"_verification_id_temp");
10831
+ adding_verification.setAttribute("id", i+"_verification_id_temp");
10832
+
10833
+ var adding_verification= document.createElement("input");
10834
+ adding_verification.setAttribute("type", "hidden");
10835
+ adding_verification.setAttribute("value", w_verification);
10836
+ adding_verification.setAttribute("name", i+"_verification_id_temp");
10837
+ adding_verification.setAttribute("id", i+"_verification_id_temp");
10838
+
10839
+
10840
+
10841
  var adding = document.createElement(element);
10842
  adding.setAttribute("type", type);
10843
 
10861
  adding.setAttribute("onBlur", "return_value('"+i+"_elementform_id_temp')");
10862
  adding.setAttribute("onChange", "change_value('"+i+"_elementform_id_temp')");
10863
 
10864
+ var adding_verification_input = document.createElement(element);
10865
+ adding_verification_input.setAttribute("type", type);
10866
 
10867
+ adding_verification_input.style.cssText = "width:"+w_size+"px;";
10868
+ adding_verification_input.setAttribute("class", "input_deactive");
10869
+
10870
+
10871
+ adding_verification_input.setAttribute("id", i+"_1_elementform_id_temp");
10872
+ adding_verification_input.setAttribute("name", i+"_1_elementform_id_temp");
10873
+ adding_verification_input.setAttribute("value", w_verification_placeholder);
10874
+ adding_verification_input.setAttribute("title", w_verification_placeholder);
10875
+
10876
+ adding_verification_input.setAttribute("onFocus", "delete_value('"+i+"_1_elementform_id_temp')");
10877
+ adding_verification_input.setAttribute("onBlur", "return_value('"+i+"_1_elementform_id_temp')");
10878
+ adding_verification_input.setAttribute("onChange", "change_value('"+i+"_1_elementform_id_temp')");
10879
+
10880
+
10881
+
10882
+
10883
+
10884
  var div = document.createElement('div');
10885
  div.setAttribute("id", "main_div");
10886
 
10887
 
10888
  var div_field = document.createElement('div');
10889
  div_field.setAttribute("id", i+"_elemet_tableform_id_temp");
10890
+
10891
+ var display_label_div = (w_hide_label == "yes" ? "none" : "table-cell");
10892
  var div_label = document.createElement('div');
10893
  div_label.setAttribute("align", 'left');
10894
+ div_label.style.display=display_label_div;
10895
  div_label.style.width=w_field_label_size+"px";
10896
  div_label.setAttribute("id", i+"_label_sectionform_id_temp");
10897
+
10898
+ var display_label_div_verification = ((w_hide_label == "yes" || w_verification =="no") ? "none" : "table-cell");
10899
+ var div_label_verification = document.createElement('div');
10900
+ div_label_verification.setAttribute("align", 'left');
10901
+ div_label_verification.style.display=display_label_div_verification;
10902
+ div_label_verification.style.width=w_field_label_size+"px";
10903
+ div_label_verification.setAttribute("id", i+"_1_label_sectionform_id_temp");
10904
+
10905
+
10906
  var div_element = document.createElement('div');
10907
  div_element.setAttribute("align", 'left');
10908
  div_element.style.display="table-cell";
10909
  div_element.setAttribute("id", i+"_element_sectionform_id_temp");
10910
 
10911
+ var display_element_verification = (w_verification =="no" ? "none" : "table-cell");
10912
+ var div_element_verification = document.createElement("div");
10913
+ div_element_verification.setAttribute("align", "left");
10914
+ div_element_verification.style.display = display_element_verification;
10915
+ div_element_verification.setAttribute("id", i+"_1_element_sectionform_id_temp");
10916
+
10917
+
10918
  var br1 = document.createElement('br');
10919
  var br2 = document.createElement('br');
10920
  var br3 = document.createElement('br');
10921
  var br4 = document.createElement('br');
10922
+ var br5 = document.createElement('br');
10923
 
10924
 
10925
 
10929
  label.setAttribute("class", "label");
10930
  label.style.verticalAlign="top";
10931
 
10932
+
10933
+ var label_verification = document.createElement('span');
10934
+ label_verification.setAttribute("id", i+"_1_element_labelform_id_temp");
10935
+ label_verification.innerHTML = w_verification_label;
10936
+ label_verification.setAttribute("class", "label");
10937
+ label_verification.style.verticalAlign="top";
10938
+
10939
+
10940
  var required = document.createElement('span');
10941
  required.setAttribute("id", i+"_required_elementform_id_temp");
10942
  required.innerHTML = "";
10943
  required.setAttribute("class", "required");
10944
  required.style.verticalAlign="top";
10945
+ if(w_required=="yes")
10946
  required.innerHTML = " *";
10947
+
10948
+ var required_confirm = document.createElement('span');
10949
+ required_confirm.setAttribute("id", i+"_1_required_elementform_id_temp");
10950
+ required_confirm.innerHTML = "";
10951
+ required_confirm.setAttribute("class", "required");
10952
+ required_confirm.style.verticalAlign="top";
10953
+ if(w_required=="yes")
10954
+ required_confirm.innerHTML = " *";
10955
+
10956
  var main_td = document.getElementById('show_table');
10957
 
10958
  div_label.appendChild(label);
10959
  div_label.appendChild(required);
10960
+
10961
+ div_label_verification.appendChild(label_verification);
10962
+ div_label_verification.appendChild(required_confirm);
10963
+
10964
  div_element.appendChild(adding_type);
10965
  div_element.appendChild(adding_required);
10966
+ div_element.appendChild(adding_hide_label);
10967
  div_element.appendChild(adding_unique);
10968
+ div_element.appendChild(adding_verification);
10969
  div_element.appendChild(adding_autofill);
10970
  div_element.appendChild(adding);
10971
+ div_element_verification.appendChild(adding_verification_input);
10972
  div_field.appendChild(div_label);
10973
  div_field.appendChild(div_element);
10974
+ div_field.appendChild(br5);
10975
+ div_field.appendChild(div_label_verification);
10976
+ div_field.appendChild(div_element_verification);
10977
 
10978
 
10979
  div.appendChild(div_field);
24884
  {
24885
  w_attr_name=[];
24886
  w_attr_value=[];
24887
+ type_submitter_mail(new_id,'E-mail:', '100', 'left', 'no', '200', '', '', 'no', 'no', '', 'no', 'E-mail confirmation:', '', w_attr_name, w_attr_value, 'no');
24888
  }
24889
 
24890
  function go_to_type_time(new_id)
27013
  wdform_field.appendChild(add1);
27014
  wdform_field.appendChild(add2);
27015
 
27016
+ if(type=="type_submitter_mail"){
27017
+ var br_submitter_mail = document.createElement('br');
27018
+ var add1_1 = document.getElementById(i+'_1_label_sectionform_id_temp');
27019
+ var add2_2 = document.getElementById(i+'_1_element_sectionform_id_temp');
27020
+ wdform_field.appendChild(br_submitter_mail);
27021
+ wdform_field.appendChild(add1_1);
27022
+ wdform_field.appendChild(add2_2);
27023
+ }
27024
 
27025
  j=2;
27026
 
27215
  wdform_field.appendChild(add1);
27216
  wdform_field.appendChild(add2);
27217
 
27218
+ if(type=="type_submitter_mail"){
27219
+ var br_submitter_mail = document.createElement('br');
27220
+ var add1_1 = document.getElementById(i+'_1_label_sectionform_id_temp');
27221
+ var add2_2 = document.getElementById(i+'_1_element_sectionform_id_temp');
27222
+ wdform_field.appendChild(br_submitter_mail);
27223
+ wdform_field.appendChild(add1_1);
27224
+ wdform_field.appendChild(add2_2);
27225
+ }
27226
+
27227
+
27228
  wdform_arrows.appendChild(td_X);
27229
  wdform_arrows.appendChild(td_LEFT);
27230
  wdform_arrows.appendChild(td_UP);
27615
 
27616
  case 'type_submitter_mail':
27617
  {
27618
+ w_hide_label=document.getElementById(id+"_hide_labelform_id_temp").value;
27619
  w_first_val=document.getElementById(id+"_elementform_id_temp").value;
27620
  w_title=document.getElementById(id+"_elementform_id_temp").title;
27621
  w_autofill = document.getElementById(id+"_autofillform_id_temp").value;
27622
+ w_verification = document.getElementById(id+"_verification_id_temp").value;
27623
+ w_verification_placeholder = document.getElementById(id+"_1_elementform_id_temp").title;
27624
+ if(document.getElementById(id+'_1_element_labelform_id_temp').innerHTML)
27625
+ w_verification_label=document.getElementById(id+'_1_element_labelform_id_temp').innerHTML;
27626
+ else
27627
+ w_verification_label=" ";
27628
+
27629
  atrs=return_attributes(id+'_elementform_id_temp');
27630
  w_attr_name=atrs[0];
27631
  w_attr_value=atrs[1];
27632
+ type_submitter_mail(id, w_field_label, w_field_label_size, w_field_label_pos, w_hide_label, w_size, w_first_val, w_title, w_required, w_unique, w_class, w_verification, w_verification_label, w_verification_placeholder, w_attr_name, w_attr_value, w_autofill); break;
27633
  }
27634
  case 'type_checkbox':
27635
  {
28535
 
28536
  case 'type_submitter_mail':
28537
  {
28538
+ w_hide_label=document.getElementById(id+"_hide_labelform_id_temp").value;
28539
  w_first_val=document.getElementById(id+"_elementform_id_temp").value;
28540
  w_title=document.getElementById(id+"_elementform_id_temp").title;
28541
  w_autofill = document.getElementById(id+"_autofillform_id_temp").value;
28542
+ w_verification = document.getElementById(id+"_verification_id_temp").value;
28543
+ w_verification_placeholder = document.getElementById(id+"_1_elementform_id_temp").title;
28544
+ if(document.getElementById(id+'_1_element_labelform_id_temp').innerHTML)
28545
+ w_verification_label=document.getElementById(id+'_1_element_labelform_id_temp').innerHTML;
28546
+ else
28547
+ w_verification_label=" ";
28548
  atrs=return_attributes(id+'_elementform_id_temp');
28549
  w_attr_name=atrs[0];
28550
  w_attr_value=atrs[1];
28551
+ type_submitter_mail(gen, w_field_label, w_field_label_size, w_field_label_pos, w_hide_label, w_size, w_first_val, w_title, w_required, w_unique, w_class, w_verification, w_verification_label, w_verification_placeholder, w_attr_name, w_attr_value, w_autofill); break;
28552
  }
28553
  case 'type_checkbox':
28554
  {
29508
 
29509
  case 'type_submitter_mail':
29510
  {
29511
+ w_hide_label=document.getElementById(id+"_hide_labelform_id_temp").value;
29512
  w_first_val=document.getElementById(id+"_elementform_id_temp").value;
29513
  w_title=document.getElementById(id+"_elementform_id_temp").title;
29514
  w_autofill = document.getElementById(id+"_autofillform_id_temp").value;
29515
+ w_verification = document.getElementById(id+"_verification_id_temp").value;
29516
+ w_verification_placeholder = document.getElementById(id+"_1_elementform_id_temp").title;
29517
+ if(document.getElementById(id+'_1_element_labelform_id_temp').innerHTML)
29518
+ w_verification_label=document.getElementById(id+'_1_element_labelform_id_temp').innerHTML;
29519
+ else
29520
+ w_verification_label=" ";
29521
+
29522
+
29523
  atrs=return_attributes(id+'_elementform_id_temp');
29524
  w_attr_name=atrs[0];
29525
  w_attr_value=atrs[1];
29527
  form_fields+=w_field_label+"*:*w_field_label*:*";
29528
  form_fields+=w_field_label_size+"*:*w_field_label_size*:*";
29529
  form_fields+=w_field_label_pos+"*:*w_field_label_pos*:*";
29530
+ form_fields+=w_hide_label+"*:*w_hide_label*:*";
29531
  form_fields+=w_size+"*:*w_size*:*";
29532
  form_fields+=w_first_val+"*:*w_first_val*:*";
29533
  form_fields+=w_title+"*:*w_title*:*";
29534
  form_fields+=w_required+"*:*w_required*:*";
29535
  form_fields+=w_unique+"*:*w_unique*:*";
29536
  form_fields+=w_class+"*:*w_class*:*";
29537
+ form_fields+=w_verification+"*:*w_verification*:*";
29538
+ form_fields+=w_verification_label+"*:*w_verification_label*:*";
29539
+ form_fields+=w_verification_placeholder+"*:*w_verification_placeholder*:*";
29540
  form_fields+=w_autofill+"*:*w_autofill*:*";
29541
  for(j=0; j<w_attr_name.length; j++)
29542
  {
29543
  form_fields+=w_attr_name[j]+"="+w_attr_value[j]+"*:*w_attr_name*:*";
29544
  }
29545
 
29546
+
29547
  form_fields+="*:*new_field*:*";
29548
  break;
29549
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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.6
7
- Stable tag: 1.9.11
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -315,6 +315,10 @@ Email field should be used since it verifies that an entry format fulfills examp
315
 
316
  == Changelog ==
317
 
 
 
 
 
318
  = 1.9.11 =
319
  Changed: Filters now apply to CSV and XML export
320
 
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.6
7
+ Stable tag: 1.9.12
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
315
 
316
  == Changelog ==
317
 
318
+ = 1.9.12 =
319
+ Added: Email Confirmation field
320
+ Fixed: Bug on CSV and XML export
321
+
322
  = 1.9.11 =
323
  Changed: Filters now apply to CSV and XML export
324