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

Version Description

Fixed: Conflict with some plugins
Changed: Styles

Download this release

Release Info

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

Code changes from version 1.7.88 to 1.7.89

admin/controllers/FMControllerBlocked_ips_fm.php CHANGED
@@ -45,7 +45,7 @@ class FMControllerBlocked_ips_fm {
45
  $message = $this->save_db();
46
  // $this->display();
47
  $page = WDW_FM_Library::get('page');
48
- WDW_FM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
49
  }
50
 
51
  public function save_db() {
@@ -98,7 +98,7 @@ class FMControllerBlocked_ips_fm {
98
  }
99
  // $this->display();
100
  $page = WDW_FM_Library::get('page');
101
- WDW_FM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
102
  }
103
 
104
  public function delete($id) {
@@ -112,7 +112,7 @@ class FMControllerBlocked_ips_fm {
112
  }
113
  // $this->display();
114
  $page = WDW_FM_Library::get('page');
115
- WDW_FM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
116
  }
117
 
118
  public function delete_all() {
@@ -133,7 +133,7 @@ class FMControllerBlocked_ips_fm {
133
  }
134
  // $this->display();
135
  $page = WDW_FM_Library::get('page');
136
- WDW_FM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
137
  }
138
 
139
  ////////////////////////////////////////////////////////////////////////////////////////
45
  $message = $this->save_db();
46
  // $this->display();
47
  $page = WDW_FM_Library::get('page');
48
+ WDW_FM_Library::fm_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
49
  }
50
 
51
  public function save_db() {
98
  }
99
  // $this->display();
100
  $page = WDW_FM_Library::get('page');
101
+ WDW_FM_Library::fm_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
102
  }
103
 
104
  public function delete($id) {
112
  }
113
  // $this->display();
114
  $page = WDW_FM_Library::get('page');
115
+ WDW_FM_Library::fm_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
116
  }
117
 
118
  public function delete_all() {
133
  }
134
  // $this->display();
135
  $page = WDW_FM_Library::get('page');
136
+ WDW_FM_Library::fm_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
137
  }
138
 
139
  ////////////////////////////////////////////////////////////////////////////////////////
admin/controllers/FMControllerManage_fm.php CHANGED
@@ -143,7 +143,7 @@ public function redo()
143
  // $this->edit_old();
144
  $page = WDW_FM_Library::get('page');
145
  $current_id = (int)WDW_FM_Library::get('current_id', 0);
146
- WDW_FM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'edit_old', 'current_id' => $current_id, 'message' => $message), admin_url('admin.php')));
147
  }
148
 
149
  public function apply_options_old() {
@@ -158,7 +158,7 @@ public function redo()
158
  $page = WDW_FM_Library::get('page');
159
  $current_id = (int)WDW_FM_Library::get('current_id', 0);
160
  $fieldset_id = WDW_FM_Library::get('fieldset_id', 'general');
161
- WDW_FM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'form_options_old', 'current_id' => $current_id, 'message' => $message, 'fieldset_id' => $fieldset_id), admin_url('admin.php')));
162
  }
163
 
164
  public function save_db_options_old() {
@@ -257,7 +257,7 @@ function before_reset() {
257
  // $this->edit();
258
  $page = WDW_FM_Library::get('page');
259
  $current_id = (int)WDW_FM_Library::get('current_id', 0);
260
- WDW_FM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'edit', 'current_id' => $current_id, 'message' => $message), admin_url('admin.php')));
261
  }
262
 
263
  public function apply_layout() {
@@ -269,7 +269,7 @@ function before_reset() {
269
  $view = new FMViewManage_fm($model);
270
  $page = WDW_FM_Library::get('page');
271
  $current_id = (int)WDW_FM_Library::get('current_id', 0);
272
- WDW_FM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'form_layout', 'current_id' => $current_id, 'message' => $message), admin_url('admin.php')));
273
  // $view->form_layout($id);
274
  }
275
 
@@ -310,7 +310,7 @@ function before_reset() {
310
  // $this->edit();
311
  $page = WDW_FM_Library::get('page');
312
  $current_id = (int)WDW_FM_Library::get('current_id', 0);
313
- WDW_FM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'edit', 'current_id' => $current_id, 'message' => $message), admin_url('admin.php')));
314
  }
315
 
316
  public function apply_options() {
@@ -325,7 +325,7 @@ function before_reset() {
325
  $page = WDW_FM_Library::get('page');
326
  $current_id =(int) WDW_FM_Library::get('current_id', 0);
327
  $fieldset_id = WDW_FM_Library::get('fieldset_id', 'general');
328
- WDW_FM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'form_options', 'current_id' => $current_id, 'message' => $message, 'fieldset_id' => $fieldset_id), admin_url('admin.php')));
329
  }
330
 
331
  public function remove_query() {
@@ -507,14 +507,14 @@ function before_reset() {
507
  $message = $this->save_db_as_copy_old();
508
  // $this->display();
509
  $page = WDW_FM_Library::get('page');
510
- WDW_FM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
511
  }
512
 
513
  public function save_old() {
514
  $message = $this->save_db_old();
515
  // $this->display();
516
  $page = WDW_FM_Library::get('page');
517
- WDW_FM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
518
  }
519
 
520
  public function apply_old() {
@@ -524,7 +524,7 @@ function before_reset() {
524
  $id = (int) $wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "formmaker");
525
  $current_id =(int) WDW_FM_Library::get('current_id', $id);
526
  $page = WDW_FM_Library::get('page');
527
- WDW_FM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'edit_old', 'current_id' => $current_id, 'message' => $message), admin_url('admin.php')));
528
  }
529
 
530
  public function save_db_old() {
@@ -694,14 +694,14 @@ function before_reset() {
694
  $message = $this->save_db_as_copy();
695
  // $this->display();
696
  $page = WDW_FM_Library::get('page');
697
- WDW_FM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
698
  }
699
 
700
  public function save() {
701
  $message = $this->save_db();
702
  // $this->display();
703
  $page = WDW_FM_Library::get('page');
704
- WDW_FM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
705
  }
706
 
707
  public function apply() {
@@ -711,7 +711,7 @@ function before_reset() {
711
  $id = (int) $wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "formmaker");
712
  $current_id = (int)WDW_FM_Library::get('current_id', $id);
713
  $page = WDW_FM_Library::get('page');
714
- WDW_FM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'edit', 'current_id' => $current_id, 'message' => $message), admin_url('admin.php')));
715
  }
716
 
717
  public function save_db() {
@@ -1215,7 +1215,7 @@ function before_reset() {
1215
  }
1216
  // $this->display();
1217
  $page = WDW_FM_Library::get('page');
1218
- WDW_FM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
1219
  }
1220
 
1221
  public function delete_all() {
@@ -1239,7 +1239,7 @@ function before_reset() {
1239
  }
1240
  // $this->display();
1241
  $page = WDW_FM_Library::get('page');
1242
- WDW_FM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
1243
  }
1244
 
1245
  ////////////////////////////////////////////////////////////////////////////////////////
143
  // $this->edit_old();
144
  $page = WDW_FM_Library::get('page');
145
  $current_id = (int)WDW_FM_Library::get('current_id', 0);
146
+ WDW_FM_Library::fm_redirect(add_query_arg(array('page' => $page, 'task' => 'edit_old', 'current_id' => $current_id, 'message' => $message), admin_url('admin.php')));
147
  }
148
 
149
  public function apply_options_old() {
158
  $page = WDW_FM_Library::get('page');
159
  $current_id = (int)WDW_FM_Library::get('current_id', 0);
160
  $fieldset_id = WDW_FM_Library::get('fieldset_id', 'general');
161
+ WDW_FM_Library::fm_redirect(add_query_arg(array('page' => $page, 'task' => 'form_options_old', 'current_id' => $current_id, 'message' => $message, 'fieldset_id' => $fieldset_id), admin_url('admin.php')));
162
  }
163
 
164
  public function save_db_options_old() {
257
  // $this->edit();
258
  $page = WDW_FM_Library::get('page');
259
  $current_id = (int)WDW_FM_Library::get('current_id', 0);
260
+ WDW_FM_Library::fm_redirect(add_query_arg(array('page' => $page, 'task' => 'edit', 'current_id' => $current_id, 'message' => $message), admin_url('admin.php')));
261
  }
262
 
263
  public function apply_layout() {
269
  $view = new FMViewManage_fm($model);
270
  $page = WDW_FM_Library::get('page');
271
  $current_id = (int)WDW_FM_Library::get('current_id', 0);
272
+ WDW_FM_Library::fm_redirect(add_query_arg(array('page' => $page, 'task' => 'form_layout', 'current_id' => $current_id, 'message' => $message), admin_url('admin.php')));
273
  // $view->form_layout($id);
274
  }
275
 
310
  // $this->edit();
311
  $page = WDW_FM_Library::get('page');
312
  $current_id = (int)WDW_FM_Library::get('current_id', 0);
313
+ WDW_FM_Library::fm_redirect(add_query_arg(array('page' => $page, 'task' => 'edit', 'current_id' => $current_id, 'message' => $message), admin_url('admin.php')));
314
  }
315
 
316
  public function apply_options() {
325
  $page = WDW_FM_Library::get('page');
326
  $current_id =(int) WDW_FM_Library::get('current_id', 0);
327
  $fieldset_id = WDW_FM_Library::get('fieldset_id', 'general');
328
+ WDW_FM_Library::fm_redirect(add_query_arg(array('page' => $page, 'task' => 'form_options', 'current_id' => $current_id, 'message' => $message, 'fieldset_id' => $fieldset_id), admin_url('admin.php')));
329
  }
330
 
331
  public function remove_query() {
507
  $message = $this->save_db_as_copy_old();
508
  // $this->display();
509
  $page = WDW_FM_Library::get('page');
510
+ WDW_FM_Library::fm_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
511
  }
512
 
513
  public function save_old() {
514
  $message = $this->save_db_old();
515
  // $this->display();
516
  $page = WDW_FM_Library::get('page');
517
+ WDW_FM_Library::fm_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
518
  }
519
 
520
  public function apply_old() {
524
  $id = (int) $wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "formmaker");
525
  $current_id =(int) WDW_FM_Library::get('current_id', $id);
526
  $page = WDW_FM_Library::get('page');
527
+ WDW_FM_Library::fm_redirect(add_query_arg(array('page' => $page, 'task' => 'edit_old', 'current_id' => $current_id, 'message' => $message), admin_url('admin.php')));
528
  }
529
 
530
  public function save_db_old() {
694
  $message = $this->save_db_as_copy();
695
  // $this->display();
696
  $page = WDW_FM_Library::get('page');
697
+ WDW_FM_Library::fm_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
698
  }
699
 
700
  public function save() {
701
  $message = $this->save_db();
702
  // $this->display();
703
  $page = WDW_FM_Library::get('page');
704
+ WDW_FM_Library::fm_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
705
  }
706
 
707
  public function apply() {
711
  $id = (int) $wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "formmaker");
712
  $current_id = (int)WDW_FM_Library::get('current_id', $id);
713
  $page = WDW_FM_Library::get('page');
714
+ WDW_FM_Library::fm_redirect(add_query_arg(array('page' => $page, 'task' => 'edit', 'current_id' => $current_id, 'message' => $message), admin_url('admin.php')));
715
  }
716
 
717
  public function save_db() {
1215
  }
1216
  // $this->display();
1217
  $page = WDW_FM_Library::get('page');
1218
+ WDW_FM_Library::fm_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
1219
  }
1220
 
1221
  public function delete_all() {
1239
  }
1240
  // $this->display();
1241
  $page = WDW_FM_Library::get('page');
1242
+ WDW_FM_Library::fm_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
1243
  }
1244
 
1245
  ////////////////////////////////////////////////////////////////////////////////////////
admin/controllers/FMControllerThemes_fm.php CHANGED
@@ -65,7 +65,7 @@ class FMControllerThemes_fm {
65
  $message = $this->save_db();
66
  // $this->display();
67
  $page = WDW_FM_Library::get('page');
68
- WDW_FM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
69
  }
70
 
71
  public function apply() {
@@ -77,7 +77,7 @@ class FMControllerThemes_fm {
77
  $id = (int) $wpdb->get_var('SELECT MAX(`id`) FROM ' . $wpdb->prefix . 'formmaker_themes');
78
  $current_id = (int)WDW_FM_Library::get('current_id', $id);
79
  $page = WDW_FM_Library::get('page');
80
- WDW_FM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'edit', 'current_id' => $current_id, 'message' => $message), admin_url('admin.php')));
81
  // $this->edit();
82
  }
83
 
@@ -131,7 +131,7 @@ class FMControllerThemes_fm {
131
  }
132
  // $this->display();
133
  $page = WDW_FM_Library::get('page');
134
- WDW_FM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
135
  }
136
 
137
  public function delete_all() {
@@ -159,7 +159,7 @@ class FMControllerThemes_fm {
159
  }
160
  // $this->display();
161
  $page = WDW_FM_Library::get('page');
162
- WDW_FM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
163
  }
164
 
165
  public function setdefault($id) {
@@ -174,7 +174,7 @@ class FMControllerThemes_fm {
174
  }
175
  // $this->display();
176
  $page = WDW_FM_Library::get('page');
177
- WDW_FM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
178
  }
179
 
180
  ////////////////////////////////////////////////////////////////////////////////////////
65
  $message = $this->save_db();
66
  // $this->display();
67
  $page = WDW_FM_Library::get('page');
68
+ WDW_FM_Library::fm_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
69
  }
70
 
71
  public function apply() {
77
  $id = (int) $wpdb->get_var('SELECT MAX(`id`) FROM ' . $wpdb->prefix . 'formmaker_themes');
78
  $current_id = (int)WDW_FM_Library::get('current_id', $id);
79
  $page = WDW_FM_Library::get('page');
80
+ WDW_FM_Library::fm_redirect(add_query_arg(array('page' => $page, 'task' => 'edit', 'current_id' => $current_id, 'message' => $message), admin_url('admin.php')));
81
  // $this->edit();
82
  }
83
 
131
  }
132
  // $this->display();
133
  $page = WDW_FM_Library::get('page');
134
+ WDW_FM_Library::fm_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
135
  }
136
 
137
  public function delete_all() {
159
  }
160
  // $this->display();
161
  $page = WDW_FM_Library::get('page');
162
+ WDW_FM_Library::fm_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
163
  }
164
 
165
  public function setdefault($id) {
174
  }
175
  // $this->display();
176
  $page = WDW_FM_Library::get('page');
177
+ WDW_FM_Library::fm_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
178
  }
179
 
180
  ////////////////////////////////////////////////////////////////////////////////////////
admin/views/FMViewBlocked_ips_fm.php CHANGED
@@ -44,14 +44,14 @@ class FMViewBlocked_ips_fm {
44
  </a>
45
  </div>
46
  </div>
47
- <form onkeypress="spider_doNothing(event)" class="wrap" id="blocked_ips" method="post" action="admin.php?page=blocked_ips_fm" style="float: left; width: 99%;">
48
  <?php wp_nonce_field('nonce_fm', 'nonce_fm'); ?>
49
  <span class="block_icon"></span>
50
  <h2>Blocked IPs</h2>
51
  <div class="buttons_div">
52
- <input class="button-primary" type="submit" value="Save" onclick="spider_set_input_value('task', 'save_all');" />
53
  <input class="button-secondary" type="submit" value="Delete" onclick="if (confirm('Do you want to unblock selected IPs?')) {
54
- spider_set_input_value('task', 'delete_all');
55
  } else {
56
  return false;
57
  }" />
@@ -67,17 +67,17 @@ class FMViewBlocked_ips_fm {
67
  <tr>
68
  <th class="manage-column column-cb check-column table_small_col"><input id="check_all" type="checkbox" style="margin: 0;" /></th>
69
  <th class="table_small_col <?php if ($order_by == 'id') {echo $order_class;} ?>">
70
- <a onclick="spider_set_input_value('task', '');
71
- spider_set_input_value('order_by', 'id');
72
- spider_set_input_value('asc_or_desc', '<?php echo (($order_by == 'id' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>');
73
- spider_form_submit(event, 'blocked_ips')" href="">
74
  <span>ID</span><span class="sorting-indicator"></span></th>
75
  </a>
76
  <th class="<?php if ($order_by == 'ip') {echo $order_class;} ?>">
77
- <a onclick="spider_set_input_value('task', '');
78
- spider_set_input_value('order_by', 'ip');
79
- spider_set_input_value('asc_or_desc', '<?php echo (($order_by == 'ip' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>');
80
- spider_form_submit(event, 'blocked_ips')" href="">
81
  <span>IP</span><span class="sorting-indicator"></span>
82
  </a>
83
  </th>
@@ -87,12 +87,12 @@ class FMViewBlocked_ips_fm {
87
  <tr id="tr">
88
  <th></th>
89
  <th></th>
90
- <th class="edit_input"><input type="text" class="input_th" id="ip" name="ip" onkeypress="return spider_check_isnum(event)"></th>
91
  <th class="table_big_col">
92
- <a class="add_tag_th button-primary button button-small" onclick="if (spider_check_required('ip', 'IP')) {return false;}
93
- spider_set_input_value('task', 'save');
94
- spider_set_input_value('current_id', '');
95
- spider_form_submit(event, 'blocked_ips')" href="">Add IP</a>
96
  </th>
97
  <th></th>
98
  </tr>
@@ -110,16 +110,16 @@ class FMViewBlocked_ips_fm {
110
  <td class="table_small_col" id="td_id_<?php echo $row_data->id; ?>" ><?php echo $row_data->id; ?></td>
111
  <td id="td_ip_<?php echo $row_data->id; ?>" >
112
  <a class="pointer" id="ip<?php echo $row_data->id; ?>"
113
- onclick="spider_edit_ip(<?php echo $row_data->id; ?>)"
114
  title="Edit"><?php echo $row_data->ip; ?></a>
115
  </td>
116
  <td class="table_big_col" id="td_edit_<?php echo $row_data->id; ?>">
117
- <a onclick="spider_edit_ip(<?php echo $row_data->id; ?>)">Edit</a>
118
  </td>
119
  <td class="table_big_col" id="td_delete_<?php echo $row_data->id; ?>">
120
- <a onclick="if (confirm('Do you want to delete selected item(s)?')) { spider_set_input_value('task', 'delete');
121
- spider_set_input_value('current_id', <?php echo $row_data->id; ?>);
122
- spider_form_submit(event, 'blocked_ips'); } else { return false;}" href="">Delete</a>
123
  </td>
124
  </tr>
125
  <?php
44
  </a>
45
  </div>
46
  </div>
47
+ <form onkeypress="fm_doNothing(event)" class="wrap" id="blocked_ips" method="post" action="admin.php?page=blocked_ips_fm" style="float: left; width: 99%;">
48
  <?php wp_nonce_field('nonce_fm', 'nonce_fm'); ?>
49
  <span class="block_icon"></span>
50
  <h2>Blocked IPs</h2>
51
  <div class="buttons_div">
52
+ <input class="button-primary" type="submit" value="Save" onclick="fm_set_input_value('task', 'save_all');" />
53
  <input class="button-secondary" type="submit" value="Delete" onclick="if (confirm('Do you want to unblock selected IPs?')) {
54
+ fm_set_input_value('task', 'delete_all');
55
  } else {
56
  return false;
57
  }" />
67
  <tr>
68
  <th class="manage-column column-cb check-column table_small_col"><input id="check_all" type="checkbox" style="margin: 0;" /></th>
69
  <th class="table_small_col <?php if ($order_by == 'id') {echo $order_class;} ?>">
70
+ <a onclick="fm_set_input_value('task', '');
71
+ fm_set_input_value('order_by', 'id');
72
+ fm_set_input_value('asc_or_desc', '<?php echo (($order_by == 'id' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>');
73
+ fm_form_submit(event, 'blocked_ips')" href="">
74
  <span>ID</span><span class="sorting-indicator"></span></th>
75
  </a>
76
  <th class="<?php if ($order_by == 'ip') {echo $order_class;} ?>">
77
+ <a onclick="fm_set_input_value('task', '');
78
+ fm_set_input_value('order_by', 'ip');
79
+ fm_set_input_value('asc_or_desc', '<?php echo (($order_by == 'ip' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>');
80
+ fm_form_submit(event, 'blocked_ips')" href="">
81
  <span>IP</span><span class="sorting-indicator"></span>
82
  </a>
83
  </th>
87
  <tr id="tr">
88
  <th></th>
89
  <th></th>
90
+ <th class="edit_input"><input type="text" class="input_th" id="ip" name="ip" onkeypress="return fm_check_isnum(event)"></th>
91
  <th class="table_big_col">
92
+ <a class="add_tag_th button-primary button button-small" onclick="if (fm_check_required('ip', 'IP')) {return false;}
93
+ fm_set_input_value('task', 'save');
94
+ fm_set_input_value('current_id', '');
95
+ fm_form_submit(event, 'blocked_ips')" href="">Add IP</a>
96
  </th>
97
  <th></th>
98
  </tr>
110
  <td class="table_small_col" id="td_id_<?php echo $row_data->id; ?>" ><?php echo $row_data->id; ?></td>
111
  <td id="td_ip_<?php echo $row_data->id; ?>" >
112
  <a class="pointer" id="ip<?php echo $row_data->id; ?>"
113
+ onclick="fm_edit_ip(<?php echo $row_data->id; ?>)"
114
  title="Edit"><?php echo $row_data->ip; ?></a>
115
  </td>
116
  <td class="table_big_col" id="td_edit_<?php echo $row_data->id; ?>">
117
+ <a onclick="fm_edit_ip(<?php echo $row_data->id; ?>)">Edit</a>
118
  </td>
119
  <td class="table_big_col" id="td_delete_<?php echo $row_data->id; ?>">
120
+ <a onclick="if (confirm('Do you want to delete selected item(s)?')) { fm_set_input_value('task', 'delete');
121
+ fm_set_input_value('current_id', <?php echo $row_data->id; ?>);
122
+ fm_form_submit(event, 'blocked_ips'); } else { return false;}" href="">Delete</a>
123
  </td>
124
  </tr>
125
  <?php
admin/views/FMViewFormMakerEditCSS.php CHANGED
@@ -54,15 +54,15 @@ class FMViewFormMakerEditCSS {
54
 
55
  <form id="fm_theme" class="wrap wp-core-ui" method="post" action="#" style="width: 99%; margin: 5px 0 0 5px;">
56
  <div style="float: right; margin: 0 5px 0 0;">
57
- <input class="button-secondary" type="submit" onclick="if (spider_check_required('title', 'Theme title')) {return false;};
58
- spider_set_input_value('task', 'save');
59
  window.parent.jQuery('#theme option[value=<?php echo $theme_id; ?>]').html(jQuery('#title').val());
60
  window.parent.tb_remove();" value="Save"/>
61
- <input class="button-secondary" type="submit" onclick="if (spider_check_required('title', 'Theme title')) {return false;};
62
- spider_set_input_value('task', 'apply');
63
  window.parent.jQuery('#theme option[value=<?php echo $theme_id; ?>]').html(jQuery('#title').val());" value="Apply"/>
64
- <input class="button-secondary" type="submit" onclick="if (spider_check_required('title', 'Theme title')) {return false;};
65
- spider_set_input_value('task', 'save_as_new');
66
  window.parent.jQuery('#theme').append('<option value=0>' + jQuery('#title').val() + '</option>');
67
  window.parent.tb_remove();" value="Save as New"/>
68
  <input class="button-primary" type="button" onclick="jQuery('#css').val(jQuery('#main_theme').html());" value="Reset"/>
@@ -71,11 +71,11 @@ class FMViewFormMakerEditCSS {
71
  <table style="clear: both;">
72
  <tbody>
73
  <tr>
74
- <td class="spider_label"><label for="title">Theme title: <span style="color:#FF0000;"> * </span> </label></td>
75
- <td><input type="text" id="title" name="title" value="<?php echo $row->title; ?>" class="spider_text_input" /></td>
76
  </tr>
77
  <tr>
78
- <td class="spider_label"><label for="css">Css: </label></td>
79
  <td style="width: 90%;"><textarea id="css" name="css" rows="25" style="width: 100%;"><?php echo htmlspecialchars($row->css); ?></textarea></td>
80
  </tr>
81
  </tbody>
54
 
55
  <form id="fm_theme" class="wrap wp-core-ui" method="post" action="#" style="width: 99%; margin: 5px 0 0 5px;">
56
  <div style="float: right; margin: 0 5px 0 0;">
57
+ <input class="button-secondary" type="submit" onclick="if (fm_check_required('title', 'Theme title')) {return false;};
58
+ fm_set_input_value('task', 'save');
59
  window.parent.jQuery('#theme option[value=<?php echo $theme_id; ?>]').html(jQuery('#title').val());
60
  window.parent.tb_remove();" value="Save"/>
61
+ <input class="button-secondary" type="submit" onclick="if (fm_check_required('title', 'Theme title')) {return false;};
62
+ fm_set_input_value('task', 'apply');
63
  window.parent.jQuery('#theme option[value=<?php echo $theme_id; ?>]').html(jQuery('#title').val());" value="Apply"/>
64
+ <input class="button-secondary" type="submit" onclick="if (fm_check_required('title', 'Theme title')) {return false;};
65
+ fm_set_input_value('task', 'save_as_new');
66
  window.parent.jQuery('#theme').append('<option value=0>' + jQuery('#title').val() + '</option>');
67
  window.parent.tb_remove();" value="Save as New"/>
68
  <input class="button-primary" type="button" onclick="jQuery('#css').val(jQuery('#main_theme').html());" value="Reset"/>
71
  <table style="clear: both;">
72
  <tbody>
73
  <tr>
74
+ <td class="fm_label"><label for="title">Theme title: <span style="color:#FF0000;"> * </span> </label></td>
75
+ <td><input type="text" id="title" name="title" value="<?php echo $row->title; ?>" class="fm_text_input" /></td>
76
  </tr>
77
  <tr>
78
+ <td class="fm_label"><label for="css">Css: </label></td>
79
  <td style="width: 90%;"><textarea id="css" name="css" rows="25" style="width: 100%;"><?php echo htmlspecialchars($row->css); ?></textarea></td>
80
  </tr>
81
  </tbody>
admin/views/FMViewManage_fm.php CHANGED
@@ -45,13 +45,13 @@ class FMViewManage_fm {
45
  </a>
46
  </div>
47
  </div>
48
- <form onkeypress="spider_doNothing(event)" class="wrap" id="manage_form" method="post" action="admin.php?page=manage_fm" style="float: left; width: 99%;">
49
  <?php wp_nonce_field('nonce_fm', 'nonce_fm'); ?>
50
  <span class="form_maker_icon"></span>
51
  <h2>
52
  Form Maker
53
- <a href="" class="add-new-h2" onclick="spider_set_input_value('task', 'add');
54
- spider_form_submit(event, 'manage_form')">Add new</a>
55
  </h2>
56
  <div class="tablenav top">
57
  <?php
@@ -63,32 +63,32 @@ class FMViewManage_fm {
63
  <thead>
64
  <th class="manage-column column-cb check-column table_small_col"><input id="check_all" type="checkbox" style="margin:0;"/></th>
65
  <th class="table_small_col <?php if ($order_by == 'id') { echo $order_class; } ?>">
66
- <a onclick="spider_set_input_value('task', '');
67
- spider_set_input_value('order_by', 'id');
68
- spider_set_input_value('asc_or_desc', '<?php echo (($order_by == 'id' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>');
69
- spider_form_submit(event, 'manage_form')" href="">
70
  <span>ID</span><span class="sorting-indicator"></span></a>
71
  </th>
72
  <th class="<?php if ($order_by == 'title') { echo $order_class; } ?>">
73
- <a onclick="spider_set_input_value('task', '');
74
- spider_set_input_value('order_by', 'title');
75
- spider_set_input_value('asc_or_desc', '<?php echo (($order_by == 'title' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>');
76
- spider_form_submit(event, 'manage_form')" href="">
77
  <span>Title</span><span class="sorting-indicator"></span></a>
78
  </th>
79
  <th class="<?php if ($order_by == 'mail') { echo $order_class; } ?>">
80
- <a onclick="spider_set_input_value('task', '');
81
- spider_set_input_value('order_by', 'mail');
82
- spider_set_input_value('asc_or_desc', '<?php echo (($order_by == 'mail' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>');
83
- spider_form_submit(event, 'manage_form')" href="">
84
  <span>Email to send submissions to</span><span class="sorting-indicator"></span></a>
85
  </th>
86
  <th class="table_big_col">Shortcode</th>
87
  <th class="table_large_col">PHP function</th>
88
  <th class="table_big_col">Edit</th>
89
  <th class="table_big_col"><a title="Delete selected items" href="" onclick="if (confirm('Do you want to delete selected items?')) {
90
- spider_set_input_value('task', 'delete_all');
91
- spider_form_submit(event, 'manage_form');
92
  } else {
93
  return false;
94
  }">Delete</a></th>
@@ -109,25 +109,25 @@ class FMViewManage_fm {
109
  </td>
110
  <td class="table_small_col"><?php echo $row_data->id; ?></td>
111
  <td>
112
- <a onclick="spider_set_input_value('task', 'edit<?php echo $old; ?>');
113
- spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
114
- spider_form_submit(event, 'manage_form')" href="" title="Edit"><?php echo $row_data->title; ?></a>
115
  </td>
116
  <td><?php echo $row_data->mail; ?></td>
117
  <td class="table_big_col" style="padding-left: 0; padding-right: 0;">
118
- <input type="text" value='[Form id="<?php echo $row_data->id; ?>"]' onclick="spider_select_value(this)" size="12" readonly="readonly" style="padding-left: 1px; padding-right: 1px;"/>
119
  </td>
120
  <td class="table_large_col" style="padding-left: 0; padding-right: 0;">
121
- <input type="text" value='&#60;?php wd_form_maker(<?php echo $row_data->id; ?>); ?&#62;' onclick="spider_select_value(this)" readonly="readonly" style="padding-left: 1px; padding-right: 1px;"/>
122
  </td>
123
  <td class="table_big_col">
124
- <a onclick="spider_set_input_value('task', 'edit<?php echo $old; ?>');
125
- spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
126
- spider_form_submit(event, 'manage_form')" href="">Edit</a>
127
  </td>
128
  <td class="table_big_col">
129
- <a onclick="if (confirm('Do you want to delete selected item(s)?')) { spider_set_input_value('task', 'delete');
130
- spider_set_input_value('current_id', '<?php echo $row_data->id; ?>'); spider_form_submit(event, 'manage_form'); } else { return false; }" href="">Delete</a>
131
  </td>
132
  </tr>
133
  <?php
@@ -433,7 +433,7 @@ class FMViewManage_fm {
433
 
434
  if($backup_id)
435
  {?>
436
- <input class="button-primary" type="submit" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; jQuery('#saving_text').html('Redo');spider_set_input_value('task', 'redo');" value="Redo"/>
437
 
438
  <?php
439
  }
@@ -443,24 +443,24 @@ class FMViewManage_fm {
443
 
444
  if($backup_id)
445
  {?>
446
- <input class="button-secondary" type="submit" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; jQuery('#saving_text').html('Undo');spider_set_input_value('task', 'undo');" value="Undo"/>
447
 
448
  <?php
449
  }
450
  }
451
  ?>
452
- <input class="button-primary" type="submit" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'form_options');" value="Form Options"/>
453
- <input class="button-primary" type="submit" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'form_layout');" value="Form Layout"/>
454
  <?php
455
  if ($id) {
456
  ?>
457
- <input class="button-secondary" type="submit" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'save_as_copy')" value="Save as Copy"/>
458
  <?php
459
  }
460
  ?>
461
- <input class="button-secondary" type="submit" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'save')" value="Save"/>
462
- <input class="button-secondary" type="submit" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'apply');" value="Apply"/>
463
- <input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'cancel')" value="Cancel"/>
464
  </div>
465
 
466
  <div class="formmaker_table" width="100%">
@@ -472,7 +472,7 @@ class FMViewManage_fm {
472
  <span style="font-size: 16.76pt; font-family: tahoma; color: #FFFFFF; vertical-align: middle;">Form title:&nbsp;&nbsp;</span>
473
  <input id="title" name="title" class="form_maker_title" value="<?php echo $row->title; ?>"/>
474
  <br />
475
- <img src="<?php echo WD_FM_URL . '/images/formoptions.png'; ?>" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'form_options'); spider_form_submit(event, 'manage_form');" style="cursor: pointer; margin: 10px 0 10px 10px; float: right;"/>
476
  <br /><br /><br />
477
  <img src="<?php echo WD_FM_URL . '/images/addanewfield.png'; ?>" onclick="enable(); Enable();" style="cursor: pointer; margin:10px 0 10px 10px; float: right;"/>
478
  </div>
@@ -1418,17 +1418,17 @@ class FMViewManage_fm {
1418
  <a href="<?php echo add_query_arg(array('action' => 'FormMakerPreview', 'id' => $row->theme, 'width' => '1000', 'height' => '500', 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>" class="button-primary thickbox thickbox-preview" id="preview_form" title="Form Preview" onclick="return false;">
1419
  Preview
1420
  </a>
1421
- <input class="button-primary" type="submit" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'form_options_old');" value="Form options"/>
1422
  <?php
1423
  if ($id) {
1424
  ?>
1425
- <input class="button-secondary" type="submit" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'save_as_copy_old')" value="Save as Copy"/>
1426
  <?php
1427
  }
1428
  ?>
1429
- <input class="button-secondary" type="submit" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'save_old')" value="Save"/>
1430
- <input class="button-secondary" type="submit" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'apply_old')" value="Apply"/>
1431
- <input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'cancel')" value="Cancel"/>
1432
  </div>
1433
 
1434
  <div class="formmaker_table" width="100%">
@@ -1440,7 +1440,7 @@ class FMViewManage_fm {
1440
  <span style="font-size: 16.76pt; font-family: tahoma; color: #FFFFFF; vertical-align: middle;">Form title:&nbsp;&nbsp;</span>
1441
  <input id="title" name="title" class="form_maker_title" value="<?php echo $row->title; ?>"/>
1442
  <br />
1443
- <img src="<?php echo WD_FM_URL . '/images/formoptions.png'; ?>" onclick="if (spider_check_required('title', 'Form title')) {return false;}; submitbutton(); spider_set_input_value('task', 'form_options_old'); spider_form_submit(event, 'manage_form');" style="cursor: pointer; margin: 10px 0 10px 10px; float: right;"/>
1444
  <br /><br /><br />
1445
  <img src="<?php echo WD_FM_URL . '/images/addanewfield.png'; ?>" onclick="enable(); Enable();" style="cursor: pointer; margin:10px 0 10px 10px; float: right;"/>
1446
  </div>
@@ -2248,7 +2248,7 @@ class FMViewManage_fm {
2248
  </form>
2249
  <script>
2250
  jQuery(window).load(function() {
2251
- spider_popup();
2252
  });
2253
  </script>
2254
  <?php
@@ -2293,13 +2293,13 @@ class FMViewManage_fm {
2293
  <?php wp_nonce_field('nonce_fm', 'nonce_fm'); ?>
2294
  <h2><?php echo $page_title; ?></h2>
2295
  <div style="float: right; margin: 0 5px 0 0;">
2296
- <input class="button-secondary" type="submit" onclick="if (spider_check_email('mail') ||
2297
- spider_check_email('from_mail') ||
2298
- spider_check_email('paypal_email')) {return false;}; spider_set_input_value('task', 'save_options_old')" value="Save"/>
2299
- <input class="button-secondary" type="submit" onclick="if (spider_check_email('mail') ||
2300
- spider_check_email('from_mail') ||
2301
- spider_check_email('paypal_email')) {return false;}; spider_set_input_value('task', 'apply_options_old')" value="Apply"/>
2302
- <input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'cancel_options_old')" value="Cancel"/>
2303
  </div>
2304
  <input type="hidden" name="take" id="take" value="<?php $row->form ?>">
2305
  <div class="submenu-box" style="width: 99%; float: left; margin: 15px 0 0 0;">
@@ -2637,7 +2637,7 @@ class FMViewManage_fm {
2637
  <script>
2638
  jQuery(window).load(function () {
2639
  form_maker_options_tabs(jQuery("#fieldset_id").val());
2640
- spider_popup();
2641
  });
2642
  </script>
2643
  <?php
@@ -2743,23 +2743,23 @@ class FMViewManage_fm {
2743
  <?php wp_nonce_field('nonce_fm', 'nonce_fm'); ?>
2744
  <h2><?php echo $page_title; ?></h2>
2745
  <div style="float: right; margin: 0 5px 0 0;">
2746
- <input class="button-secondary" type="submit" onclick="if (spider_check_email('mailToAdd') ||
2747
- spider_check_email('from_mail') ||
2748
- spider_check_email('reply_to') ||
2749
- spider_check_email('mail_from_user') ||
2750
- spider_check_email('reply_to_user') ||
2751
- spider_check_email('mail_from_other') ||
2752
- spider_check_email('reply_to_other') ||
2753
- spider_check_email('paypal_email')) {return false;}; set_condition(); spider_set_input_value('task', 'save_options')" value="Save"/>
2754
- <input class="button-secondary" type="submit" onclick="if (spider_check_email('mailToAdd') ||
2755
- spider_check_email('from_mail') ||
2756
- spider_check_email('reply_to') ||
2757
- spider_check_email('mail_from_user') ||
2758
- spider_check_email('reply_to_user') ||
2759
- spider_check_email('mail_from_other') ||
2760
- spider_check_email('reply_to_other') ||
2761
- spider_check_email('paypal_email')) {return false;}; set_condition(); spider_set_input_value('task', 'apply_options')" value="Apply"/>
2762
- <input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'cancel_options')" value="Cancel"/>
2763
  </div>
2764
  <div class="submenu-box" style="width: 99%; float: left; margin: 15px 0 0 0;">
2765
  <div class="submenu-pad">
@@ -3080,7 +3080,7 @@ class FMViewManage_fm {
3080
  <img src="<?php echo WD_FM_URL . '/images/add.png'; ?>"
3081
  style="vertical-align: middle; cursor: pointer;"
3082
  title="Add more emails"
3083
- onclick="if (spider_check_email('mailToAdd')) {return false;};cfm_create_input('mail', 'mailToAdd', 'cfm_mail_div', '<?php echo WD_FM_URL; ?>')" />
3084
  <div id="cfm_mail_div">
3085
  <?php
3086
  $mail_array = explode(',', $row->mail);
@@ -4017,14 +4017,14 @@ class FMViewManage_fm {
4017
  <a href="<?php echo add_query_arg(array('action' => 'FormMakerSQLMapping', 'id' => 0, 'form_id' => $row->id, 'width' => '1000', 'height' => '500', 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>" class="button-secondary thickbox thickbox-preview" id="add_query" title="Add Query" onclick="return false;">
4018
  Add Query
4019
  </a>
4020
- <button class="button-primary thickbox thickbox-preview" onclick="if (spider_check_email('mailToAdd') ||
4021
- spider_check_email('from_mail') ||
4022
- spider_check_email('reply_to') ||
4023
- spider_check_email('mail_from_user') ||
4024
- spider_check_email('reply_to_user') ||
4025
- spider_check_email('mail_from_other') ||
4026
- spider_check_email('reply_to_other') ||
4027
- spider_check_email('paypal_email')) {return false;}; set_condition(); spider_set_input_value('task', 'remove_query')">Delete</button>
4028
  </div>
4029
  <?php
4030
  if ($queries)
@@ -4072,7 +4072,7 @@ class FMViewManage_fm {
4072
  <script>
4073
  jQuery(window).load(function () {
4074
  form_maker_options_tabs(jQuery("#fieldset_id").val());
4075
- spider_popup();
4076
  function hide_email_labels(event) {
4077
  var e = event.toElement || event.relatedTarget;
4078
  if (e.parentNode == this || e == this) {
@@ -4095,7 +4095,7 @@ class FMViewManage_fm {
4095
  });
4096
  function wd_fm_apply_options() {
4097
  set_condition();
4098
- spider_set_input_value('task', 'apply_options');
4099
  document.getElementById('adminForm').submit();
4100
  }
4101
  </script>
@@ -4171,9 +4171,9 @@ class FMViewManage_fm {
4171
  <form action="admin.php?page=manage_fm" method="post" name="adminForm" enctype="multipart/form-data">
4172
  <?php wp_nonce_field('nonce_fm', 'nonce_fm'); ?>
4173
  <div class="buttons_div">
4174
- <input class="button-secondary" type="submit" onclick="submitbutton(); spider_set_input_value('task', 'save_layout')" value="Save"/>
4175
- <input class="button-secondary" type="submit" onclick="submitbutton(); spider_set_input_value('task', 'apply_layout')" value="Apply"/>
4176
- <input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'cancel_options')" value="Cancel"/>
4177
  </div>
4178
  <h2 style="clear: both;">Description</h2>
4179
  <p>To customize the layout of the form fields uncheck the Auto-Generate Layout box and edit the HTML.</p>
45
  </a>
46
  </div>
47
  </div>
48
+ <form onkeypress="fm_doNothing(event)" class="wrap" id="manage_form" method="post" action="admin.php?page=manage_fm" style="float: left; width: 99%;">
49
  <?php wp_nonce_field('nonce_fm', 'nonce_fm'); ?>
50
  <span class="form_maker_icon"></span>
51
  <h2>
52
  Form Maker
53
+ <a href="" class="add-new-h2" onclick="fm_set_input_value('task', 'add');
54
+ fm_form_submit(event, 'manage_form')">Add new</a>
55
  </h2>
56
  <div class="tablenav top">
57
  <?php
63
  <thead>
64
  <th class="manage-column column-cb check-column table_small_col"><input id="check_all" type="checkbox" style="margin:0;"/></th>
65
  <th class="table_small_col <?php if ($order_by == 'id') { echo $order_class; } ?>">
66
+ <a onclick="fm_set_input_value('task', '');
67
+ fm_set_input_value('order_by', 'id');
68
+ fm_set_input_value('asc_or_desc', '<?php echo (($order_by == 'id' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>');
69
+ fm_form_submit(event, 'manage_form')" href="">
70
  <span>ID</span><span class="sorting-indicator"></span></a>
71
  </th>
72
  <th class="<?php if ($order_by == 'title') { echo $order_class; } ?>">
73
+ <a onclick="fm_set_input_value('task', '');
74
+ fm_set_input_value('order_by', 'title');
75
+ fm_set_input_value('asc_or_desc', '<?php echo (($order_by == 'title' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>');
76
+ fm_form_submit(event, 'manage_form')" href="">
77
  <span>Title</span><span class="sorting-indicator"></span></a>
78
  </th>
79
  <th class="<?php if ($order_by == 'mail') { echo $order_class; } ?>">
80
+ <a onclick="fm_set_input_value('task', '');
81
+ fm_set_input_value('order_by', 'mail');
82
+ fm_set_input_value('asc_or_desc', '<?php echo (($order_by == 'mail' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>');
83
+ fm_form_submit(event, 'manage_form')" href="">
84
  <span>Email to send submissions to</span><span class="sorting-indicator"></span></a>
85
  </th>
86
  <th class="table_big_col">Shortcode</th>
87
  <th class="table_large_col">PHP function</th>
88
  <th class="table_big_col">Edit</th>
89
  <th class="table_big_col"><a title="Delete selected items" href="" onclick="if (confirm('Do you want to delete selected items?')) {
90
+ fm_set_input_value('task', 'delete_all');
91
+ fm_form_submit(event, 'manage_form');
92
  } else {
93
  return false;
94
  }">Delete</a></th>
109
  </td>
110
  <td class="table_small_col"><?php echo $row_data->id; ?></td>
111
  <td>
112
+ <a onclick="fm_set_input_value('task', 'edit<?php echo $old; ?>');
113
+ fm_set_input_value('current_id', '<?php echo $row_data->id; ?>');
114
+ fm_form_submit(event, 'manage_form')" href="" title="Edit"><?php echo $row_data->title; ?></a>
115
  </td>
116
  <td><?php echo $row_data->mail; ?></td>
117
  <td class="table_big_col" style="padding-left: 0; padding-right: 0;">
118
+ <input type="text" value='[Form id="<?php echo $row_data->id; ?>"]' onclick="fm_select_value(this)" size="12" readonly="readonly" style="padding-left: 1px; padding-right: 1px;"/>
119
  </td>
120
  <td class="table_large_col" style="padding-left: 0; padding-right: 0;">
121
+ <input type="text" value='&#60;?php wd_form_maker(<?php echo $row_data->id; ?>); ?&#62;' onclick="fm_select_value(this)" readonly="readonly" style="padding-left: 1px; padding-right: 1px;"/>
122
  </td>
123
  <td class="table_big_col">
124
+ <a onclick="fm_set_input_value('task', 'edit<?php echo $old; ?>');
125
+ fm_set_input_value('current_id', '<?php echo $row_data->id; ?>');
126
+ fm_form_submit(event, 'manage_form')" href="">Edit</a>
127
  </td>
128
  <td class="table_big_col">
129
+ <a onclick="if (confirm('Do you want to delete selected item(s)?')) { fm_set_input_value('task', 'delete');
130
+ fm_set_input_value('current_id', '<?php echo $row_data->id; ?>'); fm_form_submit(event, 'manage_form'); } else { return false; }" href="">Delete</a>
131
  </td>
132
  </tr>
133
  <?php
433
 
434
  if($backup_id)
435
  {?>
436
+ <input class="button-primary" type="submit" onclick="if (fm_check_required('title', 'Form title') || !submitbutton()) {return false;}; jQuery('#saving_text').html('Redo');fm_set_input_value('task', 'redo');" value="Redo"/>
437
 
438
  <?php
439
  }
443
 
444
  if($backup_id)
445
  {?>
446
+ <input class="button-secondary" type="submit" onclick="if (fm_check_required('title', 'Form title') || !submitbutton()) {return false;}; jQuery('#saving_text').html('Undo');fm_set_input_value('task', 'undo');" value="Undo"/>
447
 
448
  <?php
449
  }
450
  }
451
  ?>
452
+ <input class="button-primary" type="submit" onclick="if (fm_check_required('title', 'Form title') || !submitbutton()) {return false;}; fm_set_input_value('task', 'form_options');" value="Form Options"/>
453
+ <input class="button-primary" type="submit" onclick="if (fm_check_required('title', 'Form title') || !submitbutton()) {return false;}; fm_set_input_value('task', 'form_layout');" value="Form Layout"/>
454
  <?php
455
  if ($id) {
456
  ?>
457
+ <input class="button-secondary" type="submit" onclick="if (fm_check_required('title', 'Form title') || !submitbutton()) {return false;}; fm_set_input_value('task', 'save_as_copy')" value="Save as Copy"/>
458
  <?php
459
  }
460
  ?>
461
+ <input class="button-secondary" type="submit" onclick="if (fm_check_required('title', 'Form title') || !submitbutton()) {return false;}; fm_set_input_value('task', 'save')" value="Save"/>
462
+ <input class="button-secondary" type="submit" onclick="if (fm_check_required('title', 'Form title') || !submitbutton()) {return false;}; fm_set_input_value('task', 'apply');" value="Apply"/>
463
+ <input class="button-secondary" type="submit" onclick="fm_set_input_value('task', 'cancel')" value="Cancel"/>
464
  </div>
465
 
466
  <div class="formmaker_table" width="100%">
472
  <span style="font-size: 16.76pt; font-family: tahoma; color: #FFFFFF; vertical-align: middle;">Form title:&nbsp;&nbsp;</span>
473
  <input id="title" name="title" class="form_maker_title" value="<?php echo $row->title; ?>"/>
474
  <br />
475
+ <img src="<?php echo WD_FM_URL . '/images/formoptions.png'; ?>" onclick="if (fm_check_required('title', 'Form title') || !submitbutton()) {return false;}; fm_set_input_value('task', 'form_options'); fm_form_submit(event, 'manage_form');" style="cursor: pointer; margin: 10px 0 10px 10px; float: right;"/>
476
  <br /><br /><br />
477
  <img src="<?php echo WD_FM_URL . '/images/addanewfield.png'; ?>" onclick="enable(); Enable();" style="cursor: pointer; margin:10px 0 10px 10px; float: right;"/>
478
  </div>
1418
  <a href="<?php echo add_query_arg(array('action' => 'FormMakerPreview', 'id' => $row->theme, 'width' => '1000', 'height' => '500', 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>" class="button-primary thickbox thickbox-preview" id="preview_form" title="Form Preview" onclick="return false;">
1419
  Preview
1420
  </a>
1421
+ <input class="button-primary" type="submit" onclick="if (fm_check_required('title', 'Form title') || !submitbutton()) {return false;}; fm_set_input_value('task', 'form_options_old');" value="Form options"/>
1422
  <?php
1423
  if ($id) {
1424
  ?>
1425
+ <input class="button-secondary" type="submit" onclick="if (fm_check_required('title', 'Form title') || !submitbutton()) {return false;}; fm_set_input_value('task', 'save_as_copy_old')" value="Save as Copy"/>
1426
  <?php
1427
  }
1428
  ?>
1429
+ <input class="button-secondary" type="submit" onclick="if (fm_check_required('title', 'Form title') || !submitbutton()) {return false;}; fm_set_input_value('task', 'save_old')" value="Save"/>
1430
+ <input class="button-secondary" type="submit" onclick="if (fm_check_required('title', 'Form title') || !submitbutton()) {return false;}; fm_set_input_value('task', 'apply_old')" value="Apply"/>
1431
+ <input class="button-secondary" type="submit" onclick="fm_set_input_value('task', 'cancel')" value="Cancel"/>
1432
  </div>
1433
 
1434
  <div class="formmaker_table" width="100%">
1440
  <span style="font-size: 16.76pt; font-family: tahoma; color: #FFFFFF; vertical-align: middle;">Form title:&nbsp;&nbsp;</span>
1441
  <input id="title" name="title" class="form_maker_title" value="<?php echo $row->title; ?>"/>
1442
  <br />
1443
+ <img src="<?php echo WD_FM_URL . '/images/formoptions.png'; ?>" onclick="if (fm_check_required('title', 'Form title')) {return false;}; submitbutton(); fm_set_input_value('task', 'form_options_old'); fm_form_submit(event, 'manage_form');" style="cursor: pointer; margin: 10px 0 10px 10px; float: right;"/>
1444
  <br /><br /><br />
1445
  <img src="<?php echo WD_FM_URL . '/images/addanewfield.png'; ?>" onclick="enable(); Enable();" style="cursor: pointer; margin:10px 0 10px 10px; float: right;"/>
1446
  </div>
2248
  </form>
2249
  <script>
2250
  jQuery(window).load(function() {
2251
+ fm_popup();
2252
  });
2253
  </script>
2254
  <?php
2293
  <?php wp_nonce_field('nonce_fm', 'nonce_fm'); ?>
2294
  <h2><?php echo $page_title; ?></h2>
2295
  <div style="float: right; margin: 0 5px 0 0;">
2296
+ <input class="button-secondary" type="submit" onclick="if (fm_check_email('mail') ||
2297
+ fm_check_email('from_mail') ||
2298
+ fm_check_email('paypal_email')) {return false;}; fm_set_input_value('task', 'save_options_old')" value="Save"/>
2299
+ <input class="button-secondary" type="submit" onclick="if (fm_check_email('mail') ||
2300
+ fm_check_email('from_mail') ||
2301
+ fm_check_email('paypal_email')) {return false;}; fm_set_input_value('task', 'apply_options_old')" value="Apply"/>
2302
+ <input class="button-secondary" type="submit" onclick="fm_set_input_value('task', 'cancel_options_old')" value="Cancel"/>
2303
  </div>
2304
  <input type="hidden" name="take" id="take" value="<?php $row->form ?>">
2305
  <div class="submenu-box" style="width: 99%; float: left; margin: 15px 0 0 0;">
2637
  <script>
2638
  jQuery(window).load(function () {
2639
  form_maker_options_tabs(jQuery("#fieldset_id").val());
2640
+ fm_popup();
2641
  });
2642
  </script>
2643
  <?php
2743
  <?php wp_nonce_field('nonce_fm', 'nonce_fm'); ?>
2744
  <h2><?php echo $page_title; ?></h2>
2745
  <div style="float: right; margin: 0 5px 0 0;">
2746
+ <input class="button-secondary" type="submit" onclick="if (fm_check_email('mailToAdd') ||
2747
+ fm_check_email('from_mail') ||
2748
+ fm_check_email('reply_to') ||
2749
+ fm_check_email('mail_from_user') ||
2750
+ fm_check_email('reply_to_user') ||
2751
+ fm_check_email('mail_from_other') ||
2752
+ fm_check_email('reply_to_other') ||
2753
+ fm_check_email('paypal_email')) {return false;}; set_condition(); fm_set_input_value('task', 'save_options')" value="Save"/>
2754
+ <input class="button-secondary" type="submit" onclick="if (fm_check_email('mailToAdd') ||
2755
+ fm_check_email('from_mail') ||
2756
+ fm_check_email('reply_to') ||
2757
+ fm_check_email('mail_from_user') ||
2758
+ fm_check_email('reply_to_user') ||
2759
+ fm_check_email('mail_from_other') ||
2760
+ fm_check_email('reply_to_other') ||
2761
+ fm_check_email('paypal_email')) {return false;}; set_condition(); fm_set_input_value('task', 'apply_options')" value="Apply"/>
2762
+ <input class="button-secondary" type="submit" onclick="fm_set_input_value('task', 'cancel_options')" value="Cancel"/>
2763
  </div>
2764
  <div class="submenu-box" style="width: 99%; float: left; margin: 15px 0 0 0;">
2765
  <div class="submenu-pad">
3080
  <img src="<?php echo WD_FM_URL . '/images/add.png'; ?>"
3081
  style="vertical-align: middle; cursor: pointer;"
3082
  title="Add more emails"
3083
+ onclick="if (fm_check_email('mailToAdd')) {return false;};cfm_create_input('mail', 'mailToAdd', 'cfm_mail_div', '<?php echo WD_FM_URL; ?>')" />
3084
  <div id="cfm_mail_div">
3085
  <?php
3086
  $mail_array = explode(',', $row->mail);
4017
  <a href="<?php echo add_query_arg(array('action' => 'FormMakerSQLMapping', 'id' => 0, 'form_id' => $row->id, 'width' => '1000', 'height' => '500', 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>" class="button-secondary thickbox thickbox-preview" id="add_query" title="Add Query" onclick="return false;">
4018
  Add Query
4019
  </a>
4020
+ <button class="button-primary thickbox thickbox-preview" onclick="if (fm_check_email('mailToAdd') ||
4021
+ fm_check_email('from_mail') ||
4022
+ fm_check_email('reply_to') ||
4023
+ fm_check_email('mail_from_user') ||
4024
+ fm_check_email('reply_to_user') ||
4025
+ fm_check_email('mail_from_other') ||
4026
+ fm_check_email('reply_to_other') ||
4027
+ fm_check_email('paypal_email')) {return false;}; set_condition(); fm_set_input_value('task', 'remove_query')">Delete</button>
4028
  </div>
4029
  <?php
4030
  if ($queries)
4072
  <script>
4073
  jQuery(window).load(function () {
4074
  form_maker_options_tabs(jQuery("#fieldset_id").val());
4075
+ fm_popup();
4076
  function hide_email_labels(event) {
4077
  var e = event.toElement || event.relatedTarget;
4078
  if (e.parentNode == this || e == this) {
4095
  });
4096
  function wd_fm_apply_options() {
4097
  set_condition();
4098
+ fm_set_input_value('task', 'apply_options');
4099
  document.getElementById('adminForm').submit();
4100
  }
4101
  </script>
4171
  <form action="admin.php?page=manage_fm" method="post" name="adminForm" enctype="multipart/form-data">
4172
  <?php wp_nonce_field('nonce_fm', 'nonce_fm'); ?>
4173
  <div class="buttons_div">
4174
+ <input class="button-secondary" type="submit" onclick="submitbutton(); fm_set_input_value('task', 'save_layout')" value="Save"/>
4175
+ <input class="button-secondary" type="submit" onclick="submitbutton(); fm_set_input_value('task', 'apply_layout')" value="Apply"/>
4176
+ <input class="button-secondary" type="submit" onclick="fm_set_input_value('task', 'cancel_options')" value="Cancel"/>
4177
  </div>
4178
  <h2 style="clear: both;">Description</h2>
4179
  <p>To customize the layout of the form fields uncheck the Auto-Generate Layout box and edit the HTML.</p>
admin/views/FMViewSubmissions_fm.php CHANGED
@@ -272,8 +272,8 @@ class FMViewSubmissions_fm {
272
  <td align="left" colspan="4">
273
  <input type="hidden" name="hide_label_list" value="<?php echo $lists['hide_label_list']; ?>" />
274
  <img src="<?php echo WD_FM_URL . '/images/filter_show.png'; ?>" width="40" style="vertical-align: bottom; cursor: pointer;" onclick="show_hide_filter()" title="Search by fields" id="filter_img" />
275
- <input type="button" class="button-secondary" onclick="spider_form_submit(event, 'admin_form')" value="Go" />
276
- <input type="button" class="button-secondary" onclick="remove_all(); spider_form_submit(event, 'admin_form')" value="Reset" />
277
  </td>
278
  <td align="right" colspan="2">
279
  <br />
@@ -284,11 +284,11 @@ class FMViewSubmissions_fm {
284
  <?php
285
  }
286
  ?>
287
- <input class="button-secondary" type="button" onclick="spider_set_input_value('task', 'block_ip'); spider_form_submit(event, 'admin_form')" value="Block IP" />
288
- <input class="button-secondary" type="button" onclick="spider_set_input_value('task', 'unblock_ip'); spider_form_submit(event, 'admin_form')" value="Unblock IP" />
289
  <input class="button-secondary" type="button" onclick="if (confirm('Do you want to delete selected items?')) {
290
- spider_set_input_value('task', 'delete_all');
291
- spider_form_submit(event, 'admin_form')
292
  } else {
293
  return false;
294
  }" value="Delete"/>
@@ -314,9 +314,9 @@ class FMViewSubmissions_fm {
314
  <th class="table_small_col count_col sub-align">#</th>
315
  <th scope="col" id="cb" class="manage-column column-cb check-column table_small_col sub-align form_check"><input id="check_all" type="checkbox"></th>
316
  <th scope="col" id="submitid_fc" class="table_small_col sub-align submitid_fc <?php if ($order_by == "group_id") echo $oder_class; else echo $oder_class_default; ?>" <?php echo $style_id;?>>
317
- <a href="" class="sub_id" onclick="spider_set_input_value('order_by', 'group_id');
318
- spider_set_input_value('asc_or_desc', '<?php echo (($order_by == 'group_id' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>');
319
- spider_form_submit(event, 'admin_form')">
320
  <span>ID</span>
321
  <span class="sorting-indicator" style="margin-top: 8px;"></span>
322
  </a>
@@ -324,35 +324,35 @@ class FMViewSubmissions_fm {
324
  <th class="table_small_col sub-align">Edit</th>
325
  <th class="table_small_col sub-align">Delete</th>
326
  <th scope="col" id="submitdate_fc" class="table_large_col submitdate_fc <?php if ($order_by == "date") echo $oder_class; else echo $oder_class_default; ?>" <?php echo $style_date;?>>
327
- <a href="" onclick="spider_set_input_value('order_by', 'date');
328
- spider_set_input_value('asc_or_desc', '<?php echo (($order_by == 'date' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>');
329
- spider_form_submit(event, 'admin_form')">
330
  <span>Submit date</span>
331
  <span class="sorting-indicator"></span>
332
  </a>
333
  </th>
334
  <th scope="col" id="submitterip_fc" class="table_medium_col_uncenter submitterip_fc <?php if ($order_by == "ip")echo $oder_class; else echo $oder_class_default; ?>" <?php echo $style_ip;?>>
335
- <a href="" onclick="spider_set_input_value('order_by', 'ip');
336
- spider_set_input_value('asc_or_desc', '<?php echo (($order_by == 'ip' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>');
337
- spider_form_submit(event, 'admin_form')">
338
  <span>Submitter's IP</span>
339
  <span class="sorting-indicator"></span>
340
  </a>
341
  </th>
342
 
343
  <th scope="col" id="submitterusername_fc" class="table_medium_col_uncenter submitterusername_fc <?php if ($order_by == "display_name")echo $oder_class; else echo $oder_class_default; ?>" <?php echo $style_username;?>>
344
- <a href="" onclick="spider_set_input_value('order_by', 'display_name');
345
- spider_set_input_value('asc_or_desc', '<?php echo (($order_by == 'display_name' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>');
346
- spider_form_submit(event, 'admin_form')">
347
  <span>Submitter's Username</span>
348
  <span class="sorting-indicator"></span>
349
  </a>
350
  </th>
351
 
352
  <th scope="col" id="submitteremail_fc" class="table_medium_col_uncenter submitteremail_fc <?php if ($order_by == "user_email")echo $oder_class; else echo $oder_class_default; ?>" <?php echo $style_useremail ;?>>
353
- <a href="" onclick="spider_set_input_value('order_by', 'user_email');
354
- spider_set_input_value('asc_or_desc', '<?php echo (($order_by == 'user_email' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>');
355
- spider_form_submit(event, 'admin_form')">
356
  <span>Submitter's Email Address</span>
357
  <span class="sorting-indicator"></span>
358
  </a>
@@ -368,9 +368,9 @@ class FMViewSubmissions_fm {
368
  $ispaypal = TRUE;
369
  ?>
370
  <th <?php echo $styleStr; ?> id="<?php echo $sorted_labels_id[$i] . '_fc'; ?>" class="table_large_col <?php echo $sorted_labels_id[$i] . '_fc'; if ($order_by == $sorted_labels_id[$i] . "_field") echo $oder_class . '"';else echo $oder_class_default . '"'; ?>">
371
- <a href="" onclick="spider_set_input_value('order_by', '<?php echo $sorted_labels_id[$i] . '_field'; ?>');
372
- spider_set_input_value('asc_or_desc', '<?php echo (($order_by == $sorted_labels_id[$i] . '_field' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>');
373
- spider_form_submit(event, 'admin_form')">
374
  <span><?php echo $field_title; ?></span>
375
  <span class="sorting-indicator"></span>
376
  </a>
@@ -381,9 +381,9 @@ class FMViewSubmissions_fm {
381
  else {
382
  ?>
383
  <th <?php echo $styleStr; ?> id="<?php echo $sorted_labels_id[$i] . '_fc';?>" class="<?php echo ($sorted_label_types[$i] == 'type_mark_map' || $sorted_label_types[$i] == 'type_matrix') ? 'table_large_col ' : ''; echo $sorted_labels_id[$i] . '_fc'; if ($order_by == $sorted_labels_id[$i] . "_field") echo $oder_class . '"';else echo $oder_class_default . '"'; ?>">
384
- <a href="" onclick="spider_set_input_value('order_by', '<?php echo $sorted_labels_id[$i] . '_field'; ?>');
385
- spider_set_input_value('asc_or_desc', '<?php echo (($order_by == $sorted_labels_id[$i] . '_field' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>');
386
- spider_form_submit(event, 'admin_form')">
387
  <span><?php echo $field_title; ?></span>
388
  <span class="sorting-indicator"></span>
389
  </a>
@@ -513,25 +513,25 @@ class FMViewSubmissions_fm {
513
  <input type="checkbox" name="post[]" value="<?php echo $data->group_id; ?>">
514
  </th>
515
  <td class="table_small_col sub-align submitid_fc" id="submitid_fc" <?php echo $style_id; ?>>
516
- <a href="" onclick="spider_set_input_value('task', 'edit');
517
- spider_set_input_value('current_id',<?php echo $data->group_id; ?>);
518
- spider_form_submit(event, 'admin_form');" ><?php echo $data->group_id; ?>
519
  </a>
520
  </td>
521
  <td class="table_small_col sub-align">
522
- <a href="" onclick="spider_set_input_value('task', 'edit');
523
- spider_set_input_value('current_id',<?php echo $data->group_id; ?>);
524
- spider_form_submit(event, 'admin_form');">Edit
525
  </a>
526
  </td>
527
  <td class="table_small_col sub-align">
528
- <a href="" onclick="if (confirm('Do you want to delete selected item(s)?')) { spider_set_input_value('task', 'delete'); spider_set_input_value('current_id',<?php echo $data->group_id; ?>); spider_form_submit(event, 'admin_form'); } else { return false; }">Delete
529
  </a>
530
  </td>
531
  <td class="table_large_col submitdate_fc sub-align" id="submitdate_fc" <?php echo $style_date; ?>>
532
- <a href="" onclick="spider_set_input_value('task', 'edit');
533
- spider_set_input_value('current_id',<?php echo $data->group_id; ?>);
534
- spider_form_submit(event, 'admin_form');" ><?php echo $data->date ;?>
535
  </a>
536
  </td>
537
  <td class="table_medium_col_uncenter submitterip_fc sub-align" id="submitterip_fc" <?php echo $style_ip; ?>>
@@ -761,7 +761,7 @@ class FMViewSubmissions_fm {
761
  element.parentNode.insertBefore(scrollbar, element);
762
  }
763
  jQuery(window).load(function() {
764
- spider_popup();
765
  fm_scroll(document.getElementById('fm-scroll'));
766
  });
767
  <?php
@@ -866,17 +866,17 @@ class FMViewSubmissions_fm {
866
  <tr>
867
  <td width="100%"><h2>Edit Submission</h2></td>
868
  <td align="right">
869
- <input type="button" onclick="spider_set_input_value('task', 'save');
870
- spider_set_input_value('current_id', <?php echo $current_id; ?>);
871
- spider_form_submit(event, 'adminForm');" value="Save" class="button-secondary action">
872
  </td>
873
  <td align="right">
874
- <input type="button" onclick="spider_set_input_value('task', 'apply');
875
- spider_set_input_value('current_id', <?php echo $current_id ;?>);
876
- spider_form_submit(event, 'adminForm');" value="Apply" class="button-secondary action">
877
  </td>
878
  <td align="right">
879
- <input type="button" onclick="spider_set_input_value('task', '');spider_form_submit(event, 'adminForm');" value="Cancel" class="button-secondary action">
880
  </td>
881
  </tr>
882
  </tbody>
@@ -1124,42 +1124,42 @@ class FMViewSubmissions_fm {
1124
  <td width="100%"><h2>Edit Submission</h2></td>
1125
  <td align="right">
1126
  <input type="button" class="button-secondary" onclick="pressbutton();
1127
- spider_set_input_value('task', 'save');
1128
- spider_set_input_value('current_id', <?php echo $current_id ;?>);
1129
- spider_form_submit(event, 'formform_id_temp');" value="Save" class="button-secondary action">
1130
  </td>
1131
  <td align="right">
1132
  <input type="button" class="button-secondary" onclick="pressbutton();
1133
- spider_set_input_value('task', 'apply');
1134
- spider_set_input_value('current_id', <?php echo $current_id ;?>);
1135
- spider_form_submit(event, 'formform_id_temp');" value="Apply" class="button-secondary action">
1136
  </td>
1137
  <td align="right">
1138
- <input class="button-secondary" type="button" onclick="spider_set_input_value('task', '');spider_form_submit(event, 'formform_id_temp');" value="Cancel" class="button-secondary action">
1139
  </td>
1140
  </tr>
1141
  </tbody>
1142
  </table>
1143
  <table class="admintable">
1144
  <tr>
1145
- <td class="spider_label"><label for="ID">ID: </label></td>
1146
  <td><?php echo $rows[0]->group_id; ?></td>
1147
  </tr>
1148
  <tr>
1149
- <td class="spider_label"><label for="Date">Date: </label></td>
1150
  <td><?php echo $rows[0]->date; ?></td>
1151
  </tr>
1152
  <tr>
1153
- <td class="spider_label"><label for="IP">IP: </label></td>
1154
  <td><?php echo $rows[0]->ip; ?></td>
1155
  </tr>
1156
 
1157
  <tr>
1158
- <td class="spider_label"><label for="Submitter's Username">Submitter's Username: </label></td>
1159
  <td><?php echo $username; ?></td>
1160
  </tr>
1161
  <tr>
1162
- <td class="spider_label"><label for="Submitter's Email Address">Submitter's Email Address: </label></td>
1163
  <td><?php echo $useremail; ?></td>
1164
  </tr>
1165
 
272
  <td align="left" colspan="4">
273
  <input type="hidden" name="hide_label_list" value="<?php echo $lists['hide_label_list']; ?>" />
274
  <img src="<?php echo WD_FM_URL . '/images/filter_show.png'; ?>" width="40" style="vertical-align: bottom; cursor: pointer;" onclick="show_hide_filter()" title="Search by fields" id="filter_img" />
275
+ <input type="button" class="button-secondary" onclick="fm_form_submit(event, 'admin_form')" value="Go" />
276
+ <input type="button" class="button-secondary" onclick="remove_all(); fm_form_submit(event, 'admin_form')" value="Reset" />
277
  </td>
278
  <td align="right" colspan="2">
279
  <br />
284
  <?php
285
  }
286
  ?>
287
+ <input class="button-secondary" type="button" onclick="fm_set_input_value('task', 'block_ip'); fm_form_submit(event, 'admin_form')" value="Block IP" />
288
+ <input class="button-secondary" type="button" onclick="fm_set_input_value('task', 'unblock_ip'); fm_form_submit(event, 'admin_form')" value="Unblock IP" />
289
  <input class="button-secondary" type="button" onclick="if (confirm('Do you want to delete selected items?')) {
290
+ fm_set_input_value('task', 'delete_all');
291
+ fm_form_submit(event, 'admin_form')
292
  } else {
293
  return false;
294
  }" value="Delete"/>
314
  <th class="table_small_col count_col sub-align">#</th>
315
  <th scope="col" id="cb" class="manage-column column-cb check-column table_small_col sub-align form_check"><input id="check_all" type="checkbox"></th>
316
  <th scope="col" id="submitid_fc" class="table_small_col sub-align submitid_fc <?php if ($order_by == "group_id") echo $oder_class; else echo $oder_class_default; ?>" <?php echo $style_id;?>>
317
+ <a href="" class="sub_id" onclick="fm_set_input_value('order_by', 'group_id');
318
+ fm_set_input_value('asc_or_desc', '<?php echo (($order_by == 'group_id' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>');
319
+ fm_form_submit(event, 'admin_form')">
320
  <span>ID</span>
321
  <span class="sorting-indicator" style="margin-top: 8px;"></span>
322
  </a>
324
  <th class="table_small_col sub-align">Edit</th>
325
  <th class="table_small_col sub-align">Delete</th>
326
  <th scope="col" id="submitdate_fc" class="table_large_col submitdate_fc <?php if ($order_by == "date") echo $oder_class; else echo $oder_class_default; ?>" <?php echo $style_date;?>>
327
+ <a href="" onclick="fm_set_input_value('order_by', 'date');
328
+ fm_set_input_value('asc_or_desc', '<?php echo (($order_by == 'date' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>');
329
+ fm_form_submit(event, 'admin_form')">
330
  <span>Submit date</span>
331
  <span class="sorting-indicator"></span>
332
  </a>
333
  </th>
334
  <th scope="col" id="submitterip_fc" class="table_medium_col_uncenter submitterip_fc <?php if ($order_by == "ip")echo $oder_class; else echo $oder_class_default; ?>" <?php echo $style_ip;?>>
335
+ <a href="" onclick="fm_set_input_value('order_by', 'ip');
336
+ fm_set_input_value('asc_or_desc', '<?php echo (($order_by == 'ip' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>');
337
+ fm_form_submit(event, 'admin_form')">
338
  <span>Submitter's IP</span>
339
  <span class="sorting-indicator"></span>
340
  </a>
341
  </th>
342
 
343
  <th scope="col" id="submitterusername_fc" class="table_medium_col_uncenter submitterusername_fc <?php if ($order_by == "display_name")echo $oder_class; else echo $oder_class_default; ?>" <?php echo $style_username;?>>
344
+ <a href="" onclick="fm_set_input_value('order_by', 'display_name');
345
+ fm_set_input_value('asc_or_desc', '<?php echo (($order_by == 'display_name' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>');
346
+ fm_form_submit(event, 'admin_form')">
347
  <span>Submitter's Username</span>
348
  <span class="sorting-indicator"></span>
349
  </a>
350
  </th>
351
 
352
  <th scope="col" id="submitteremail_fc" class="table_medium_col_uncenter submitteremail_fc <?php if ($order_by == "user_email")echo $oder_class; else echo $oder_class_default; ?>" <?php echo $style_useremail ;?>>
353
+ <a href="" onclick="fm_set_input_value('order_by', 'user_email');
354
+ fm_set_input_value('asc_or_desc', '<?php echo (($order_by == 'user_email' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>');
355
+ fm_form_submit(event, 'admin_form')">
356
  <span>Submitter's Email Address</span>
357
  <span class="sorting-indicator"></span>
358
  </a>
368
  $ispaypal = TRUE;
369
  ?>
370
  <th <?php echo $styleStr; ?> id="<?php echo $sorted_labels_id[$i] . '_fc'; ?>" class="table_large_col <?php echo $sorted_labels_id[$i] . '_fc'; if ($order_by == $sorted_labels_id[$i] . "_field") echo $oder_class . '"';else echo $oder_class_default . '"'; ?>">
371
+ <a href="" onclick="fm_set_input_value('order_by', '<?php echo $sorted_labels_id[$i] . '_field'; ?>');
372
+ fm_set_input_value('asc_or_desc', '<?php echo (($order_by == $sorted_labels_id[$i] . '_field' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>');
373
+ fm_form_submit(event, 'admin_form')">
374
  <span><?php echo $field_title; ?></span>
375
  <span class="sorting-indicator"></span>
376
  </a>
381
  else {
382
  ?>
383
  <th <?php echo $styleStr; ?> id="<?php echo $sorted_labels_id[$i] . '_fc';?>" class="<?php echo ($sorted_label_types[$i] == 'type_mark_map' || $sorted_label_types[$i] == 'type_matrix') ? 'table_large_col ' : ''; echo $sorted_labels_id[$i] . '_fc'; if ($order_by == $sorted_labels_id[$i] . "_field") echo $oder_class . '"';else echo $oder_class_default . '"'; ?>">
384
+ <a href="" onclick="fm_set_input_value('order_by', '<?php echo $sorted_labels_id[$i] . '_field'; ?>');
385
+ fm_set_input_value('asc_or_desc', '<?php echo (($order_by == $sorted_labels_id[$i] . '_field' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>');
386
+ fm_form_submit(event, 'admin_form')">
387
  <span><?php echo $field_title; ?></span>
388
  <span class="sorting-indicator"></span>
389
  </a>
513
  <input type="checkbox" name="post[]" value="<?php echo $data->group_id; ?>">
514
  </th>
515
  <td class="table_small_col sub-align submitid_fc" id="submitid_fc" <?php echo $style_id; ?>>
516
+ <a href="" onclick="fm_set_input_value('task', 'edit');
517
+ fm_set_input_value('current_id',<?php echo $data->group_id; ?>);
518
+ fm_form_submit(event, 'admin_form');" ><?php echo $data->group_id; ?>
519
  </a>
520
  </td>
521
  <td class="table_small_col sub-align">
522
+ <a href="" onclick="fm_set_input_value('task', 'edit');
523
+ fm_set_input_value('current_id',<?php echo $data->group_id; ?>);
524
+ fm_form_submit(event, 'admin_form');">Edit
525
  </a>
526
  </td>
527
  <td class="table_small_col sub-align">
528
+ <a href="" onclick="if (confirm('Do you want to delete selected item(s)?')) { fm_set_input_value('task', 'delete'); fm_set_input_value('current_id',<?php echo $data->group_id; ?>); fm_form_submit(event, 'admin_form'); } else { return false; }">Delete
529
  </a>
530
  </td>
531
  <td class="table_large_col submitdate_fc sub-align" id="submitdate_fc" <?php echo $style_date; ?>>
532
+ <a href="" onclick="fm_set_input_value('task', 'edit');
533
+ fm_set_input_value('current_id',<?php echo $data->group_id; ?>);
534
+ fm_form_submit(event, 'admin_form');" ><?php echo $data->date ;?>
535
  </a>
536
  </td>
537
  <td class="table_medium_col_uncenter submitterip_fc sub-align" id="submitterip_fc" <?php echo $style_ip; ?>>
761
  element.parentNode.insertBefore(scrollbar, element);
762
  }
763
  jQuery(window).load(function() {
764
+ fm_popup();
765
  fm_scroll(document.getElementById('fm-scroll'));
766
  });
767
  <?php
866
  <tr>
867
  <td width="100%"><h2>Edit Submission</h2></td>
868
  <td align="right">
869
+ <input type="button" onclick="fm_set_input_value('task', 'save');
870
+ fm_set_input_value('current_id', <?php echo $current_id; ?>);
871
+ fm_form_submit(event, 'adminForm');" value="Save" class="button-secondary action">
872
  </td>
873
  <td align="right">
874
+ <input type="button" onclick="fm_set_input_value('task', 'apply');
875
+ fm_set_input_value('current_id', <?php echo $current_id ;?>);
876
+ fm_form_submit(event, 'adminForm');" value="Apply" class="button-secondary action">
877
  </td>
878
  <td align="right">
879
+ <input type="button" onclick="fm_set_input_value('task', '');fm_form_submit(event, 'adminForm');" value="Cancel" class="button-secondary action">
880
  </td>
881
  </tr>
882
  </tbody>
1124
  <td width="100%"><h2>Edit Submission</h2></td>
1125
  <td align="right">
1126
  <input type="button" class="button-secondary" onclick="pressbutton();
1127
+ fm_set_input_value('task', 'save');
1128
+ fm_set_input_value('current_id', <?php echo $current_id ;?>);
1129
+ fm_form_submit(event, 'formform_id_temp');" value="Save" class="button-secondary action">
1130
  </td>
1131
  <td align="right">
1132
  <input type="button" class="button-secondary" onclick="pressbutton();
1133
+ fm_set_input_value('task', 'apply');
1134
+ fm_set_input_value('current_id', <?php echo $current_id ;?>);
1135
+ fm_form_submit(event, 'formform_id_temp');" value="Apply" class="button-secondary action">
1136
  </td>
1137
  <td align="right">
1138
+ <input class="button-secondary" type="button" onclick="fm_set_input_value('task', '');fm_form_submit(event, 'formform_id_temp');" value="Cancel" class="button-secondary action">
1139
  </td>
1140
  </tr>
1141
  </tbody>
1142
  </table>
1143
  <table class="admintable">
1144
  <tr>
1145
+ <td class="fm_label"><label for="ID">ID: </label></td>
1146
  <td><?php echo $rows[0]->group_id; ?></td>
1147
  </tr>
1148
  <tr>
1149
+ <td class="fm_label"><label for="Date">Date: </label></td>
1150
  <td><?php echo $rows[0]->date; ?></td>
1151
  </tr>
1152
  <tr>
1153
+ <td class="fm_label"><label for="IP">IP: </label></td>
1154
  <td><?php echo $rows[0]->ip; ?></td>
1155
  </tr>
1156
 
1157
  <tr>
1158
+ <td class="fm_label"><label for="Submitter's Username">Submitter's Username: </label></td>
1159
  <td><?php echo $username; ?></td>
1160
  </tr>
1161
  <tr>
1162
+ <td class="fm_label"><label for="Submitter's Email Address">Submitter's Email Address: </label></td>
1163
  <td><?php echo $useremail; ?></td>
1164
  </tr>
1165
 
admin/views/FMViewThemes_fm.php CHANGED
@@ -49,12 +49,12 @@ class FMViewThemes_fm {
49
  <span class="theme_icon"></span>
50
  <h2>
51
  Themes
52
- <a href="" class="add-new-h2" onclick="spider_set_input_value('task', 'add');
53
- spider_form_submit(event, 'themes_form')">Add new</a>
54
  </h2>
55
  <div class="buttons_div">
56
  <input class="button-secondary" type="submit" onclick="if (confirm('Do you want to delete selected items?')) {
57
- spider_set_input_value('task', 'delete_all');
58
  } else {
59
  return false;
60
  }" value="Delete" />
@@ -69,24 +69,24 @@ class FMViewThemes_fm {
69
  <thead>
70
  <th class="manage-column column-cb check-column table_small_col"><input id="check_all" type="checkbox" style="margin:0;"/></th>
71
  <th class="table_small_col <?php if ($order_by == 'id') { echo $order_class; } ?>">
72
- <a onclick="spider_set_input_value('task', '');
73
- spider_set_input_value('order_by', 'id');
74
- spider_set_input_value('asc_or_desc', '<?php echo (($order_by == 'id' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>');
75
- spider_form_submit(event, 'themes_form')" href="">
76
  <span>ID</span><span class="sorting-indicator"></span></a>
77
  </th>
78
  <th class="<?php if ($order_by == 'title') { echo $order_class; } ?>">
79
- <a onclick="spider_set_input_value('task', '');
80
- spider_set_input_value('order_by', 'title');
81
- spider_set_input_value('asc_or_desc', '<?php echo (($order_by == 'title' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>');
82
- spider_form_submit(event, 'themes_form')" href="">
83
  <span>Title</span><span class="sorting-indicator"></span></a>
84
  </th>
85
  <th class="table_big_col <?php if ($order_by == 'default') { echo $order_class; } ?>">
86
- <a onclick="spider_set_input_value('task', '');
87
- spider_set_input_value('order_by', 'default');
88
- spider_set_input_value('asc_or_desc', '<?php echo (($order_by == 'default' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>');
89
- spider_form_submit(event, 'themes_form')" href="">
90
  <span>Default</span><span class="sorting-indicator"></span></a>
91
  </th>
92
  <th class="table_big_col">Edit</th>
@@ -106,17 +106,17 @@ class FMViewThemes_fm {
106
  </td>
107
  <td class="table_small_col"><?php echo $row_data->id; ?></td>
108
  <td>
109
- <a onclick="spider_set_input_value('task', 'edit');
110
- spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
111
- spider_form_submit(event, 'themes_form')" href="" title="Edit"><?php echo $row_data->title; ?></a>
112
  </td>
113
  <td class="table_big_col">
114
  <?php
115
  if ($default != '') {
116
  ?>
117
- <a onclick="spider_set_input_value('task', '<?php echo $default; ?>');
118
- spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
119
- spider_form_submit(event, 'themes_form')" href="">
120
  <?php
121
  }
122
  ?>
@@ -130,14 +130,14 @@ class FMViewThemes_fm {
130
  ?>
131
  </td>
132
  <td class="table_big_col">
133
- <a onclick="spider_set_input_value('task', 'edit');
134
- spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
135
- spider_form_submit(event, 'themes_form')" href="">Edit</a>
136
  </td>
137
  <td class="table_big_col">
138
- <a onclick="if (confirm('Do you want to delete selected item(s)?')) { spider_set_input_value('task', 'delete');
139
- spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
140
- spider_form_submit(event, 'themes_form'); } else { return false; }" href="">Delete</a>
141
  </td>
142
  </tr>
143
  <?php
@@ -184,18 +184,18 @@ class FMViewThemes_fm {
184
  <span class="theme_icon"></span>
185
  <h2><?php echo $page_title; ?></h2>
186
  <div style="float: right; margin: 0 5px 0 0;">
187
- <input class="button-secondary" type="submit" onclick="if (spider_check_required('title', 'Title')) {return false;}; spider_set_input_value('task', 'save')" value="Save"/>
188
- <input class="button-secondary" type="submit" onclick="if (spider_check_required('title', 'Title')) {return false;}; spider_set_input_value('task', 'apply')" value="Apply"/>
189
- <input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'cancel')" value="Cancel"/>
190
  </div>
191
  <table style="clear:both;">
192
  <tbody>
193
  <tr>
194
- <td class="spider_label"><label for="title">Title: <span style="color:#FF0000;"> * </span> </label></td>
195
- <td><input type="text" id="title" name="title" value="<?php echo $row->title; ?>" class="spider_text_input" /></td>
196
  </tr>
197
  <tr>
198
- <td class="spider_label"><label for="css">Css: </label></td>
199
  <td style="width: 90%;"><textarea id="css" name="css" rows="30" style="width: 100%;"><?php echo htmlspecialchars($row->css) ?></textarea></td>
200
  </tr>
201
  </tbody>
49
  <span class="theme_icon"></span>
50
  <h2>
51
  Themes
52
+ <a href="" class="add-new-h2" onclick="fm_set_input_value('task', 'add');
53
+ fm_form_submit(event, 'themes_form')">Add new</a>
54
  </h2>
55
  <div class="buttons_div">
56
  <input class="button-secondary" type="submit" onclick="if (confirm('Do you want to delete selected items?')) {
57
+ fm_set_input_value('task', 'delete_all');
58
  } else {
59
  return false;
60
  }" value="Delete" />
69
  <thead>
70
  <th class="manage-column column-cb check-column table_small_col"><input id="check_all" type="checkbox" style="margin:0;"/></th>
71
  <th class="table_small_col <?php if ($order_by == 'id') { echo $order_class; } ?>">
72
+ <a onclick="fm_set_input_value('task', '');
73
+ fm_set_input_value('order_by', 'id');
74
+ fm_set_input_value('asc_or_desc', '<?php echo (($order_by == 'id' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>');
75
+ fm_form_submit(event, 'themes_form')" href="">
76
  <span>ID</span><span class="sorting-indicator"></span></a>
77
  </th>
78
  <th class="<?php if ($order_by == 'title') { echo $order_class; } ?>">
79
+ <a onclick="fm_set_input_value('task', '');
80
+ fm_set_input_value('order_by', 'title');
81
+ fm_set_input_value('asc_or_desc', '<?php echo (($order_by == 'title' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>');
82
+ fm_form_submit(event, 'themes_form')" href="">
83
  <span>Title</span><span class="sorting-indicator"></span></a>
84
  </th>
85
  <th class="table_big_col <?php if ($order_by == 'default') { echo $order_class; } ?>">
86
+ <a onclick="fm_set_input_value('task', '');
87
+ fm_set_input_value('order_by', 'default');
88
+ fm_set_input_value('asc_or_desc', '<?php echo (($order_by == 'default' && $asc_or_desc == 'asc') ? 'desc' : 'asc'); ?>');
89
+ fm_form_submit(event, 'themes_form')" href="">
90
  <span>Default</span><span class="sorting-indicator"></span></a>
91
  </th>
92
  <th class="table_big_col">Edit</th>
106
  </td>
107
  <td class="table_small_col"><?php echo $row_data->id; ?></td>
108
  <td>
109
+ <a onclick="fm_set_input_value('task', 'edit');
110
+ fm_set_input_value('current_id', '<?php echo $row_data->id; ?>');
111
+ fm_form_submit(event, 'themes_form')" href="" title="Edit"><?php echo $row_data->title; ?></a>
112
  </td>
113
  <td class="table_big_col">
114
  <?php
115
  if ($default != '') {
116
  ?>
117
+ <a onclick="fm_set_input_value('task', '<?php echo $default; ?>');
118
+ fm_set_input_value('current_id', '<?php echo $row_data->id; ?>');
119
+ fm_form_submit(event, 'themes_form')" href="">
120
  <?php
121
  }
122
  ?>
130
  ?>
131
  </td>
132
  <td class="table_big_col">
133
+ <a onclick="fm_set_input_value('task', 'edit');
134
+ fm_set_input_value('current_id', '<?php echo $row_data->id; ?>');
135
+ fm_form_submit(event, 'themes_form')" href="">Edit</a>
136
  </td>
137
  <td class="table_big_col">
138
+ <a onclick="if (confirm('Do you want to delete selected item(s)?')) { fm_set_input_value('task', 'delete');
139
+ fm_set_input_value('current_id', '<?php echo $row_data->id; ?>');
140
+ fm_form_submit(event, 'themes_form'); } else { return false; }" href="">Delete</a>
141
  </td>
142
  </tr>
143
  <?php
184
  <span class="theme_icon"></span>
185
  <h2><?php echo $page_title; ?></h2>
186
  <div style="float: right; margin: 0 5px 0 0;">
187
+ <input class="button-secondary" type="submit" onclick="if (fm_check_required('title', 'Title')) {return false;}; fm_set_input_value('task', 'save')" value="Save"/>
188
+ <input class="button-secondary" type="submit" onclick="if (fm_check_required('title', 'Title')) {return false;}; fm_set_input_value('task', 'apply')" value="Apply"/>
189
+ <input class="button-secondary" type="submit" onclick="fm_set_input_value('task', 'cancel')" value="Cancel"/>
190
  </div>
191
  <table style="clear:both;">
192
  <tbody>
193
  <tr>
194
+ <td class="fm_label"><label for="title">Title: <span style="color:#FF0000;"> * </span> </label></td>
195
+ <td><input type="text" id="title" name="title" value="<?php echo $row->title; ?>" class="fm_text_input" /></td>
196
  </tr>
197
  <tr>
198
+ <td class="fm_label"><label for="css">Css: </label></td>
199
  <td style="width: 90%;"><textarea id="css" name="css" rows="30" style="width: 100%;"><?php echo htmlspecialchars($row->css) ?></textarea></td>
200
  </tr>
201
  </tbody>
admin/views/FMViewUninstall_fm.php CHANGED
@@ -71,7 +71,7 @@ class FMViewUninstall_fm {
71
  <p style="text-align: center;">
72
  <input type="submit" value="UNINSTALL" class="button-primary" onclick="if (check_yes.checked) {
73
  if (confirm('You are About to Uninstall Form Maker from WordPress.\nThis Action Is Not Reversible.')) {
74
- spider_set_input_value('task', 'uninstall');
75
  } else {
76
  return false;
77
  }
71
  <p style="text-align: center;">
72
  <input type="submit" value="UNINSTALL" class="button-primary" onclick="if (check_yes.checked) {
73
  if (confirm('You are About to Uninstall Form Maker from WordPress.\nThis Action Is Not Reversible.')) {
74
+ fm_set_input_value('task', 'uninstall');
75
  } else {
76
  return false;
77
  }
css/form_maker_tables.css CHANGED
@@ -265,11 +265,11 @@ div.wd_preview a {
265
  cursor: pointer;
266
  }
267
 
268
- .spider_word_wrap {
269
  word-wrap: normal;
270
  }
271
 
272
- .spider_description {
273
  color: #666666;
274
  font-size: 0.923em;
275
  line-height: 1.231em;
@@ -329,44 +329,44 @@ div.wd_preview a {
329
  cursor: move;
330
  }
331
 
332
- .spider_label {
333
  font-weight: bold;
334
  width: 100px;
335
  }
336
 
337
- .spider_fieldset .spider_label {
338
  font-weight: bold;
339
  vertical-align: top;
340
  width: 150px;
341
  }
342
 
343
- .spider_label_options {
344
  font-weight: bold;
345
  vertical-align: top;
346
  width: 150px;
347
  }
348
 
349
- .spider_int_input {
350
  width: 80px;
351
  }
352
 
353
- .spider_char_input {
354
  width: 115px;
355
  }
356
 
357
- .spider_text_input {
358
  width: 190px;
359
  }
360
 
361
- .spider_slider_div {
362
  display: inline-block;
363
  vertical-align: middle;
364
  width: 140px;
365
  }
366
 
367
- .spider_slider_percentage,
368
- .spider_slider_percentage input,
369
- .spider_slider_percentage input :focus {
370
  background: transparent;
371
  border: none;
372
  color: #00AEEF;
@@ -401,7 +401,7 @@ div.error_fm {
401
  margin: 5px 0;
402
  }
403
 
404
- .spider_delete_img {
405
  background-image: url("../images/delete.png");
406
  border: none;
407
  cursor: pointer;
@@ -411,7 +411,7 @@ div.error_fm {
411
  width: 14px;
412
  }
413
 
414
- .spider_delete_img_small {
415
  background-image: url("../images/delete.png");
416
  background-size: 10px auto;
417
  border: medium none;
@@ -423,7 +423,7 @@ div.error_fm {
423
  width: 10px;
424
  }
425
 
426
- .spider_fieldset {
427
  background: none repeat scroll 0 0 #F4F4F4;
428
  border: 1px solid #8F8D8D;
429
  border-radius: 8px 8px 8px 8px;
@@ -434,7 +434,7 @@ div.error_fm {
434
  width: 97%;
435
  }
436
 
437
- .spider_type_fieldset {
438
  background: none repeat scroll 0 0 #F4F4F4;
439
  border-radius: 8px 8px 8px 8px;
440
  display: none;
@@ -442,7 +442,7 @@ div.error_fm {
442
  width: 100%;
443
  }
444
 
445
- .spider_child_fieldset {
446
  background: none repeat scroll 0 0 #F4F4F4;
447
  border: 1px solid #8F8D8D;
448
  border-radius: 8px 8px 8px 8px;
@@ -453,12 +453,12 @@ div.error_fm {
453
  display: block;
454
  }
455
 
456
- .spider_table td {
457
  padding: 0;
458
  vertical-align: middle;
459
  }
460
 
461
- .spider_ctrls {
462
  padding: 4px;
463
  text-align: center;
464
  width: 40px;
@@ -483,7 +483,7 @@ div.error_fm {
483
  cursor: pointer !important;
484
  }
485
 
486
- .spider_search_value {
487
  height: 2em;
488
  margin: 0 0 4px;
489
  }
265
  cursor: pointer;
266
  }
267
 
268
+ .fm_word_wrap {
269
  word-wrap: normal;
270
  }
271
 
272
+ .fm_description {
273
  color: #666666;
274
  font-size: 0.923em;
275
  line-height: 1.231em;
329
  cursor: move;
330
  }
331
 
332
+ .fm_label {
333
  font-weight: bold;
334
  width: 100px;
335
  }
336
 
337
+ .fm_fieldset .fm_label {
338
  font-weight: bold;
339
  vertical-align: top;
340
  width: 150px;
341
  }
342
 
343
+ .fm_label_options {
344
  font-weight: bold;
345
  vertical-align: top;
346
  width: 150px;
347
  }
348
 
349
+ .fm_int_input {
350
  width: 80px;
351
  }
352
 
353
+ .fm_char_input {
354
  width: 115px;
355
  }
356
 
357
+ .fm_text_input {
358
  width: 190px;
359
  }
360
 
361
+ .fm_slider_div {
362
  display: inline-block;
363
  vertical-align: middle;
364
  width: 140px;
365
  }
366
 
367
+ .fm_slider_percentage,
368
+ .fm_slider_percentage input,
369
+ .fm_slider_percentage input :focus {
370
  background: transparent;
371
  border: none;
372
  color: #00AEEF;
401
  margin: 5px 0;
402
  }
403
 
404
+ .fm_delete_img {
405
  background-image: url("../images/delete.png");
406
  border: none;
407
  cursor: pointer;
411
  width: 14px;
412
  }
413
 
414
+ .fm_delete_img_small {
415
  background-image: url("../images/delete.png");
416
  background-size: 10px auto;
417
  border: medium none;
423
  width: 10px;
424
  }
425
 
426
+ .fm_fieldset {
427
  background: none repeat scroll 0 0 #F4F4F4;
428
  border: 1px solid #8F8D8D;
429
  border-radius: 8px 8px 8px 8px;
434
  width: 97%;
435
  }
436
 
437
+ .fm_type_fieldset {
438
  background: none repeat scroll 0 0 #F4F4F4;
439
  border-radius: 8px 8px 8px 8px;
440
  display: none;
442
  width: 100%;
443
  }
444
 
445
+ .fm_child_fieldset {
446
  background: none repeat scroll 0 0 #F4F4F4;
447
  border: 1px solid #8F8D8D;
448
  border-radius: 8px 8px 8px 8px;
453
  display: block;
454
  }
455
 
456
+ .fm_table td {
457
  padding: 0;
458
  vertical-align: middle;
459
  }
460
 
461
+ .fm_ctrls {
462
  padding: 4px;
463
  text-align: center;
464
  width: 40px;
483
  cursor: pointer !important;
484
  }
485
 
486
+ .fm_search_value {
487
  height: 2em;
488
  margin: 0 0 4px;
489
  }
featured/featured.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- function spider_featured($current_plugin = '') {
3
  ?>
4
  <div id="main_featured_plugins_page">
5
  <table align="center" width="90%" style="margin-top: 0px;border-bottom: rgb(111, 111, 111) solid 1px;">
@@ -188,7 +188,7 @@ function spider_featured($current_plugin = '') {
188
  <?php
189
  }
190
 
191
- function spider_extensions($current_plugin = '') {
192
 
193
  $addons = array(
194
  'Attention: Add-ons are supported by premium version of Form Maker' => array(
1
  <?php
2
+ function fm_featured_page($current_plugin = '') {
3
  ?>
4
  <div id="main_featured_plugins_page">
5
  <table align="center" width="90%" style="margin-top: 0px;border-bottom: rgb(111, 111, 111) solid 1px;">
188
  <?php
189
  }
190
 
191
+ function fm_extensions_page($current_plugin = '') {
192
 
193
  $addons = array(
194
  'Attention: Add-ons are supported by premium version of Form Maker' => array(
featured/featured_themes.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- function spider_featured_themes() { ?>
3
  <div id="main_featured_themes_page">
4
  <table align="center" width="90%" style="margin-top: 0px;border-bottom: rgb(111, 111, 111) solid 1px;">
5
  <tr>
1
  <?php
2
+ function fm_featured_themes_page() { ?>
3
  <div id="main_featured_themes_page">
4
  <table align="center" width="90%" style="margin-top: 0px;border-bottom: rgb(111, 111, 111) solid 1px;">
5
  <tr>
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.7.88
7
  * Author: WebDorado
8
  * Author URI: https://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -74,7 +74,7 @@ function fm_featured() {
74
  require_once(WD_FM_DIR . '/featured/featured.php');
75
  wp_register_style('fm_featured', WD_FM_URL . '/featured/style.css', array(), get_option("wd_form_maker_version"));
76
  wp_print_styles('fm_featured');
77
- spider_featured('form-maker');
78
  }
79
 
80
  function fm_featured_themes() {
@@ -89,7 +89,7 @@ function fm_featured_themes() {
89
  require_once(WD_FM_DIR . '/featured/featured_themes.php');
90
  wp_register_style('fm_featured_themes', WD_FM_URL . '/featured/featured_themes.css', array(), get_option("wd_form_maker_version"));
91
  wp_print_styles('fm_featured_themes');
92
- spider_featured_themes('form-maker');
93
  }
94
 
95
  function fm_extensions() {
@@ -104,7 +104,7 @@ function fm_extensions() {
104
  require_once(WD_FM_DIR . '/featured/featured.php');
105
  wp_register_style('fm_featured', WD_FM_URL . '/featured/style.css', array(), get_option("wd_form_maker_version"));
106
  wp_print_styles('fm_featured');
107
- spider_extensions('form-maker');
108
  }
109
 
110
  add_action('wp_ajax_get_stats', 'form_maker'); //Show statistics
@@ -269,7 +269,7 @@ function register_fmemailverification_cpt(){
269
  // Activate plugin.
270
  function form_maker_activate() {
271
  $version = get_option("wd_form_maker_version");
272
- $new_version = '1.7.88';
273
  global $wpdb;
274
  if (!$version) {
275
  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.7.89
7
  * Author: WebDorado
8
  * Author URI: https://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
74
  require_once(WD_FM_DIR . '/featured/featured.php');
75
  wp_register_style('fm_featured', WD_FM_URL . '/featured/style.css', array(), get_option("wd_form_maker_version"));
76
  wp_print_styles('fm_featured');
77
+ fm_featured_page('form-maker');
78
  }
79
 
80
  function fm_featured_themes() {
89
  require_once(WD_FM_DIR . '/featured/featured_themes.php');
90
  wp_register_style('fm_featured_themes', WD_FM_URL . '/featured/featured_themes.css', array(), get_option("wd_form_maker_version"));
91
  wp_print_styles('fm_featured_themes');
92
+ fm_featured_themes_page('form-maker');
93
  }
94
 
95
  function fm_extensions() {
104
  require_once(WD_FM_DIR . '/featured/featured.php');
105
  wp_register_style('fm_featured', WD_FM_URL . '/featured/style.css', array(), get_option("wd_form_maker_version"));
106
  wp_print_styles('fm_featured');
107
+ fm_featured_page('form-maker');
108
  }
109
 
110
  add_action('wp_ajax_get_stats', 'form_maker'); //Show statistics
269
  // Activate plugin.
270
  function form_maker_activate() {
271
  $version = get_option("wd_form_maker_version");
272
+ $new_version = '1.7.89';
273
  global $wpdb;
274
  if (!$version) {
275
  add_option("wd_form_maker_version", $new_version, '', 'no');
framework/WDW_FM_Library.php CHANGED
@@ -103,12 +103,12 @@ class WDW_FM_Library {
103
  ?>
104
  <div class="alignleft actions" style="clear:both;">
105
  <script>
106
- function spider_search() {
107
  document.getElementById("page_number").value = "1";
108
  document.getElementById("search_or_not").value = "search";
109
  document.getElementById("<?php echo $form_id; ?>").submit();
110
  }
111
- function spider_reset() {
112
  if (document.getElementById("search_value")) {
113
  document.getElementById("search_value").value = "";
114
  }
@@ -120,11 +120,11 @@ class WDW_FM_Library {
120
  </script>
121
  <div class="alignleft actions" style="">
122
  <label for="search_value" style="font-size:14px; width:50px; display:inline-block;"><?php echo $search_by; ?>:</label>
123
- <input type="text" id="search_value" name="search_value" class="spider_search_value" value="<?php echo esc_html($search_value); ?>" style="width: 150px;<?php echo (get_bloginfo('version') > '3.7') ? ' height: 28px;' : ''; ?>" />
124
  </div>
125
  <div class="alignleft actions">
126
- <input type="button" value="Search" onclick="spider_search()" class="button-secondary action">
127
- <input type="button" value="Reset" onclick="spider_reset()" class="button-secondary action">
128
  </div>
129
  </div>
130
  <?php
@@ -134,7 +134,7 @@ class WDW_FM_Library {
134
  ?>
135
  <div class="alignleft actions" style="clear:both;">
136
  <script>
137
- function spider_search_select() {
138
  document.getElementById("page_number").value = "1";
139
  document.getElementById("search_or_not").value = "search";
140
  document.getElementById("<?php echo $form_id; ?>").submit();
@@ -142,7 +142,7 @@ class WDW_FM_Library {
142
  </script>
143
  <div class="alignleft actions" >
144
  <label for="search_select_value" style="font-size:14px; width:50px; display:inline-block;"><?php echo $search_by; ?>:</label>
145
- <select id="search_select_value" name="search_select_value" onchange="spider_search_select();" style="float: none; width: 150px;">
146
  <?php
147
  foreach ($playlists as $id => $playlist) {
148
  ?>
@@ -172,7 +172,7 @@ class WDW_FM_Library {
172
  ?>
173
  <script type="text/javascript">
174
  var items_county = <?php echo $items_county; ?>;
175
- function spider_page(x, y) {
176
  switch (y) {
177
  case 1:
178
  if (x >= items_county) {
@@ -243,8 +243,8 @@ class WDW_FM_Library {
243
  }
244
  ?>
245
  <span class="pagination-links">
246
- <a class="<?php echo $first_page; ?>" title="Go to the first page" href="javascript:spider_page(<?php echo $page_number; ?>,-2);">«</a>
247
- <a class="<?php echo $prev_page; ?>" title="Go to the previous page" href="javascript:spider_page(<?php echo $page_number; ?>,-1);">‹</a>
248
  <span class="paging-input">
249
  <span class="total-pages">
250
  <input class="current_page" id="current_page" name="current_page" value="<?php echo $page_number; ?>" onkeypress="return check_enter_key(event)" title="Go to the page" type="text" size="1" />
@@ -253,8 +253,8 @@ class WDW_FM_Library {
253
  <?php echo $items_county; ?>
254
  </span>
255
  </span>
256
- <a class="<?php echo $next_page ?>" title="Go to the next page" href="javascript:spider_page(<?php echo $page_number; ?>,1);">›</a>
257
- <a class="<?php echo $last_page ?>" title="Go to the last page" href="javascript:spider_page(<?php echo $page_number; ?>,2);">»</a>
258
  <?php
259
  }
260
  ?>
@@ -269,25 +269,25 @@ class WDW_FM_Library {
269
  ?>
270
  <div class="alignleft actions" style="clear:both;">
271
  <script>
272
- function spider_search() {
273
  document.getElementById("page_number").value = "1";
274
  document.getElementById("search_or_not").value = "search";
275
- spider_ajax_save('<?php echo $form_id; ?>');
276
  }
277
- function spider_reset() {
278
  if (document.getElementById("search_value")) {
279
  document.getElementById("search_value").value = "";
280
  }
281
- spider_ajax_save('<?php echo $form_id; ?>');
282
  }
283
  </script>
284
  <div class="alignleft actions" style="">
285
  <label for="search_value" style="font-size:14px; width:60px; display:inline-block;"><?php echo $search_by; ?>:</label>
286
- <input type="text" id="search_value" name="search_value" class="spider_search_value" value="<?php echo esc_html($search_value); ?>" style="width: 150px;<?php echo (get_bloginfo('version') > '3.7') ? ' height: 28px;' : ''; ?>" />
287
  </div>
288
  <div class="alignleft actions">
289
- <input type="button" value="Search" onclick="spider_search()" class="button-secondary action">
290
- <input type="button" value="Reset" onclick="spider_reset()" class="button-secondary action">
291
  </div>
292
  </div>
293
  <?php
@@ -309,7 +309,7 @@ class WDW_FM_Library {
309
  ?>
310
  <script type="text/javascript">
311
  var items_county = <?php echo $items_county; ?>;
312
- function spider_page(x, y) {
313
  switch (y) {
314
  case 1:
315
  if (x >= items_county) {
@@ -336,7 +336,7 @@ class WDW_FM_Library {
336
  default:
337
  document.getElementById('page_number').value = 1;
338
  }
339
- spider_ajax_save('<?php echo $form_id; ?>');
340
  }
341
  function check_enter_key(e) {
342
  var key_code = (e.keyCode ? e.keyCode : e.which);
@@ -347,7 +347,7 @@ class WDW_FM_Library {
347
  else {
348
  document.getElementById('page_number').value = jQuery('#current_page').val();
349
  }
350
- spider_ajax_save('<?php echo $form_id; ?>');
351
  return false;
352
  }
353
  return true;
@@ -381,8 +381,8 @@ class WDW_FM_Library {
381
  }
382
  ?>
383
  <span class="pagination-links">
384
- <a class="<?php echo $first_page; ?>" title="Go to the first page" onclick="spider_page(<?php echo $page_number; ?>,-2)">«</a>
385
- <a class="<?php echo $prev_page; ?>" title="Go to the previous page" onclick="spider_page(<?php echo $page_number; ?>,-1)">‹</a>
386
  <span class="paging-input">
387
  <span class="total-pages">
388
  <input class="current_page" id="current_page" name="current_page" value="<?php echo $page_number; ?>" onkeypress="return check_enter_key(event)" title="Go to the page" type="text" size="1" />
@@ -391,8 +391,8 @@ class WDW_FM_Library {
391
  <?php echo $items_county; ?>
392
  </span>
393
  </span>
394
- <a class="<?php echo $next_page ?>" title="Go to the next page" onclick="spider_page(<?php echo $page_number; ?>,1)">›</a>
395
- <a class="<?php echo $last_page ?>" title="Go to the last page" onclick="spider_page(<?php echo $page_number; ?>,2)">»</a>
396
  <?php
397
  }
398
  ?>
@@ -403,7 +403,7 @@ class WDW_FM_Library {
403
  <?php
404
  }
405
 
406
- public static function spider_redirect($url) {
407
  $url = html_entity_decode(wp_nonce_url($url, 'nonce_fm', 'nonce_fm'));
408
  ?>
409
  <script>
103
  ?>
104
  <div class="alignleft actions" style="clear:both;">
105
  <script>
106
+ function fm_search() {
107
  document.getElementById("page_number").value = "1";
108
  document.getElementById("search_or_not").value = "search";
109
  document.getElementById("<?php echo $form_id; ?>").submit();
110
  }
111
+ function fm_reset() {
112
  if (document.getElementById("search_value")) {
113
  document.getElementById("search_value").value = "";
114
  }
120
  </script>
121
  <div class="alignleft actions" style="">
122
  <label for="search_value" style="font-size:14px; width:50px; display:inline-block;"><?php echo $search_by; ?>:</label>
123
+ <input type="text" id="search_value" name="search_value" class="fm_search_value" value="<?php echo esc_html($search_value); ?>" style="width: 150px;<?php echo (get_bloginfo('version') > '3.7') ? ' height: 28px;' : ''; ?>" />
124
  </div>
125
  <div class="alignleft actions">
126
+ <input type="button" value="Search" onclick="fm_search()" class="button-secondary action">
127
+ <input type="button" value="Reset" onclick="fm_reset()" class="button-secondary action">
128
  </div>
129
  </div>
130
  <?php
134
  ?>
135
  <div class="alignleft actions" style="clear:both;">
136
  <script>
137
+ function fm_search_select() {
138
  document.getElementById("page_number").value = "1";
139
  document.getElementById("search_or_not").value = "search";
140
  document.getElementById("<?php echo $form_id; ?>").submit();
142
  </script>
143
  <div class="alignleft actions" >
144
  <label for="search_select_value" style="font-size:14px; width:50px; display:inline-block;"><?php echo $search_by; ?>:</label>
145
+ <select id="search_select_value" name="search_select_value" onchange="fm_search_select();" style="float: none; width: 150px;">
146
  <?php
147
  foreach ($playlists as $id => $playlist) {
148
  ?>
172
  ?>
173
  <script type="text/javascript">
174
  var items_county = <?php echo $items_county; ?>;
175
+ function fm_page(x, y) {
176
  switch (y) {
177
  case 1:
178
  if (x >= items_county) {
243
  }
244
  ?>
245
  <span class="pagination-links">
246
+ <a class="<?php echo $first_page; ?>" title="Go to the first page" href="javascript:fm_page(<?php echo $page_number; ?>,-2);">«</a>
247
+ <a class="<?php echo $prev_page; ?>" title="Go to the previous page" href="javascript:fm_page(<?php echo $page_number; ?>,-1);">‹</a>
248
  <span class="paging-input">
249
  <span class="total-pages">
250
  <input class="current_page" id="current_page" name="current_page" value="<?php echo $page_number; ?>" onkeypress="return check_enter_key(event)" title="Go to the page" type="text" size="1" />
253
  <?php echo $items_county; ?>
254
  </span>
255
  </span>
256
+ <a class="<?php echo $next_page ?>" title="Go to the next page" href="javascript:fm_page(<?php echo $page_number; ?>,1);">›</a>
257
+ <a class="<?php echo $last_page ?>" title="Go to the last page" href="javascript:fm_page(<?php echo $page_number; ?>,2);">»</a>
258
  <?php
259
  }
260
  ?>
269
  ?>
270
  <div class="alignleft actions" style="clear:both;">
271
  <script>
272
+ function fm_search() {
273
  document.getElementById("page_number").value = "1";
274
  document.getElementById("search_or_not").value = "search";
275
+ fm_ajax_save('<?php echo $form_id; ?>');
276
  }
277
+ function fm_reset() {
278
  if (document.getElementById("search_value")) {
279
  document.getElementById("search_value").value = "";
280
  }
281
+ fm_ajax_save('<?php echo $form_id; ?>');
282
  }
283
  </script>
284
  <div class="alignleft actions" style="">
285
  <label for="search_value" style="font-size:14px; width:60px; display:inline-block;"><?php echo $search_by; ?>:</label>
286
+ <input type="text" id="search_value" name="search_value" class="fm_search_value" value="<?php echo esc_html($search_value); ?>" style="width: 150px;<?php echo (get_bloginfo('version') > '3.7') ? ' height: 28px;' : ''; ?>" />
287
  </div>
288
  <div class="alignleft actions">
289
+ <input type="button" value="Search" onclick="fm_search()" class="button-secondary action">
290
+ <input type="button" value="Reset" onclick="fm_reset()" class="button-secondary action">
291
  </div>
292
  </div>
293
  <?php
309
  ?>
310
  <script type="text/javascript">
311
  var items_county = <?php echo $items_county; ?>;
312
+ function fm_page(x, y) {
313
  switch (y) {
314
  case 1:
315
  if (x >= items_county) {
336
  default:
337
  document.getElementById('page_number').value = 1;
338
  }
339
+ fm_ajax_save('<?php echo $form_id; ?>');
340
  }
341
  function check_enter_key(e) {
342
  var key_code = (e.keyCode ? e.keyCode : e.which);
347
  else {
348
  document.getElementById('page_number').value = jQuery('#current_page').val();
349
  }
350
+ fm_ajax_save('<?php echo $form_id; ?>');
351
  return false;
352
  }
353
  return true;
381
  }
382
  ?>
383
  <span class="pagination-links">
384
+ <a class="<?php echo $first_page; ?>" title="Go to the first page" onclick="fm_page(<?php echo $page_number; ?>,-2)">«</a>
385
+ <a class="<?php echo $prev_page; ?>" title="Go to the previous page" onclick="fm_page(<?php echo $page_number; ?>,-1)">‹</a>
386
  <span class="paging-input">
387
  <span class="total-pages">
388
  <input class="current_page" id="current_page" name="current_page" value="<?php echo $page_number; ?>" onkeypress="return check_enter_key(event)" title="Go to the page" type="text" size="1" />
391
  <?php echo $items_county; ?>
392
  </span>
393
  </span>
394
+ <a class="<?php echo $next_page ?>" title="Go to the next page" onclick="fm_page(<?php echo $page_number; ?>,1)">›</a>
395
+ <a class="<?php echo $last_page ?>" title="Go to the last page" onclick="fm_page(<?php echo $page_number; ?>,2)">»</a>
396
  <?php
397
  }
398
  ?>
403
  <?php
404
  }
405
 
406
+ public static function fm_redirect($url) {
407
  $url = html_entity_decode(wp_nonce_url($url, 'nonce_fm', 'nonce_fm'));
408
  ?>
409
  <script>
js/form_maker_admin.js CHANGED
@@ -1,9 +1,9 @@
1
- function spider_select_value(obj) {
2
  obj.focus();
3
  obj.select();
4
  }
5
 
6
- function spider_doNothing(event) {
7
  var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
8
  if (keyCode == 13) {
9
  if (event.preventDefault) {
@@ -15,7 +15,7 @@ function spider_doNothing(event) {
15
  }
16
  }
17
 
18
- function spider_ajax_save(form_id) {
19
  var search_value = jQuery("#search_value").val();
20
  var current_id = jQuery("#current_id").val();
21
  var page_number = jQuery("#page_number").val();
@@ -48,15 +48,15 @@ function spider_ajax_save(form_id) {
48
  var str = jQuery(data).find('#tablenav-pages').html();
49
  jQuery('#tablenav-pages').html(str);
50
  jQuery("#show_hide_weights").val("Hide order column");
51
- spider_show_hide_weights();
52
- spider_run_checkbox();
53
  }
54
  ).success(function (jqXHR, textStatus, errorThrown) {
55
  });
56
  return false;
57
  }
58
 
59
- function spider_run_checkbox() {
60
  jQuery("tbody").children().children(".check-column").find(":checkbox").click(function (l) {
61
  if ("undefined" == l.shiftKey) {
62
  return true
@@ -114,14 +114,14 @@ function spider_run_checkbox() {
114
  }
115
 
116
  // Set value by id.
117
- function spider_set_input_value(input_id, input_value) {
118
  if (document.getElementById(input_id)) {
119
  document.getElementById(input_id).value = input_value;
120
  }
121
  }
122
 
123
  // Submit form by id.
124
- function spider_form_submit(event, form_id, task, id) {
125
  if (document.getElementById(form_id)) {
126
  document.getElementById(form_id).submit();
127
  }
@@ -134,7 +134,7 @@ function spider_form_submit(event, form_id, task, id) {
134
  }
135
 
136
  // Check if required field is empty.
137
- function spider_check_required(id, name) {
138
  if (jQuery('#' + id).val() == '') {
139
  alert(name + '* field is required.');
140
  jQuery('#' + id).attr('style', 'border-color: #FF0000; border-style: solid; border-width: 1px;');
@@ -150,12 +150,12 @@ function spider_check_required(id, name) {
150
  }
151
 
152
  // Show/hide order column and drag and drop column.
153
- function spider_show_hide_weights() {
154
  if (jQuery("#show_hide_weights").val() == 'Show order column') {
155
  jQuery(".connectedSortable").css("cursor", "default");
156
  jQuery("#tbody_arr").find(".handle").hide(0);
157
  jQuery("#th_order").show(0);
158
- jQuery("#tbody_arr").find(".spider_order").show(0);
159
  jQuery("#show_hide_weights").val("Hide order column");
160
  if (jQuery("#tbody_arr").sortable()) {
161
  jQuery("#tbody_arr").sortable("disable");
@@ -177,7 +177,7 @@ function spider_show_hide_weights() {
177
  jQuery("#draganddrop").attr("style", "");
178
  jQuery("#draganddrop").html("<strong><p>Changes made in this table should be saved.</p></strong>");
179
  var i = page_number;
180
- jQuery('.spider_order').each(function (e) {
181
  if (jQuery(this).find('input').val()) {
182
  jQuery(this).find('input').val(i++);
183
  }
@@ -188,12 +188,12 @@ function spider_show_hide_weights() {
188
  jQuery("#tbody_arr").find(".handle").show(0);
189
  jQuery("#tbody_arr").find(".handle").attr('class', 'handle connectedSortable');
190
  jQuery("#th_order").hide(0);
191
- jQuery("#tbody_arr").find(".spider_order").hide(0);
192
  jQuery("#show_hide_weights").val("Show order column");
193
  }
194
  }
195
 
196
- function spider_popup(id) {
197
  if (typeof id === 'undefined') {
198
  var id = '';
199
  }
@@ -253,7 +253,7 @@ function spider_popup(id) {
253
  }
254
 
255
  function bwg_inputs() {
256
- jQuery(".spider_int_input").keypress(function (event) {
257
  var chCode1 = event.which || event.paramlist_keyCode;
258
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57) && (chCode1 != 46) && (chCode1 != 45)) {
259
  return false;
@@ -263,7 +263,7 @@ function bwg_inputs() {
263
  }
264
 
265
 
266
- function spider_check_isnum(e) {
267
  var chCode1 = e.which || e.paramlist_keyCode;
268
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57) && (chCode1 != 46) && (chCode1 != 45)) {
269
  return false;
1
+ function fm_select_value(obj) {
2
  obj.focus();
3
  obj.select();
4
  }
5
 
6
+ function fm_doNothing(event) {
7
  var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
8
  if (keyCode == 13) {
9
  if (event.preventDefault) {
15
  }
16
  }
17
 
18
+ function fm_ajax_save(form_id) {
19
  var search_value = jQuery("#search_value").val();
20
  var current_id = jQuery("#current_id").val();
21
  var page_number = jQuery("#page_number").val();
48
  var str = jQuery(data).find('#tablenav-pages').html();
49
  jQuery('#tablenav-pages').html(str);
50
  jQuery("#show_hide_weights").val("Hide order column");
51
+ fm_show_hide_weights();
52
+ fm_run_checkbox();
53
  }
54
  ).success(function (jqXHR, textStatus, errorThrown) {
55
  });
56
  return false;
57
  }
58
 
59
+ function fm_run_checkbox() {
60
  jQuery("tbody").children().children(".check-column").find(":checkbox").click(function (l) {
61
  if ("undefined" == l.shiftKey) {
62
  return true
114
  }
115
 
116
  // Set value by id.
117
+ function fm_set_input_value(input_id, input_value) {
118
  if (document.getElementById(input_id)) {
119
  document.getElementById(input_id).value = input_value;
120
  }
121
  }
122
 
123
  // Submit form by id.
124
+ function fm_form_submit(event, form_id, task, id) {
125
  if (document.getElementById(form_id)) {
126
  document.getElementById(form_id).submit();
127
  }
134
  }
135
 
136
  // Check if required field is empty.
137
+ function fm_check_required(id, name) {
138
  if (jQuery('#' + id).val() == '') {
139
  alert(name + '* field is required.');
140
  jQuery('#' + id).attr('style', 'border-color: #FF0000; border-style: solid; border-width: 1px;');
150
  }
151
 
152
  // Show/hide order column and drag and drop column.
153
+ function fm_show_hide_weights() {
154
  if (jQuery("#show_hide_weights").val() == 'Show order column') {
155
  jQuery(".connectedSortable").css("cursor", "default");
156
  jQuery("#tbody_arr").find(".handle").hide(0);
157
  jQuery("#th_order").show(0);
158
+ jQuery("#tbody_arr").find(".fm_order").show(0);
159
  jQuery("#show_hide_weights").val("Hide order column");
160
  if (jQuery("#tbody_arr").sortable()) {
161
  jQuery("#tbody_arr").sortable("disable");
177
  jQuery("#draganddrop").attr("style", "");
178
  jQuery("#draganddrop").html("<strong><p>Changes made in this table should be saved.</p></strong>");
179
  var i = page_number;
180
+ jQuery('.fm_order').each(function (e) {
181
  if (jQuery(this).find('input').val()) {
182
  jQuery(this).find('input').val(i++);
183
  }
188
  jQuery("#tbody_arr").find(".handle").show(0);
189
  jQuery("#tbody_arr").find(".handle").attr('class', 'handle connectedSortable');
190
  jQuery("#th_order").hide(0);
191
+ jQuery("#tbody_arr").find(".fm_order").hide(0);
192
  jQuery("#show_hide_weights").val("Show order column");
193
  }
194
  }
195
 
196
+ function fm_popup(id) {
197
  if (typeof id === 'undefined') {
198
  var id = '';
199
  }
253
  }
254
 
255
  function bwg_inputs() {
256
+ jQuery(".fm_int_input").keypress(function (event) {
257
  var chCode1 = event.which || event.paramlist_keyCode;
258
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57) && (chCode1 != 46) && (chCode1 != 45)) {
259
  return false;
263
  }
264
 
265
 
266
+ function fm_check_isnum(e) {
267
  var chCode1 = e.which || e.paramlist_keyCode;
268
  if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57) && (chCode1 != 46) && (chCode1 != 45)) {
269
  return false;
js/form_maker_manage.js CHANGED
@@ -467,7 +467,7 @@ function fm_delete_mail(img, value) {
467
  }
468
 
469
  function form_maker_options_tabs(id) {
470
- if (spider_check_email('mailToAdd') || spider_check_email('from_mail') || spider_check_email('reply_to') || spider_check_email('mail_from_user') || spider_check_email('reply_to_user') || spider_check_email('mail_from_other') || spider_check_email('reply_to_other') || spider_check_email('paypal_email')) {
471
  return false;
472
  }
473
  jQuery("#fieldset_id").val(id);
@@ -561,7 +561,7 @@ function check_isnum(e) {
561
  }
562
 
563
  // Check Email.
564
- function spider_check_email(id) {
565
  if (document.getElementById(id) && jQuery('#' + id).val() != '') {
566
  var email_array = jQuery('#' + id).val().split(',');
567
  for (var email_id = 0; email_id < email_array.length; email_id++) {
@@ -580,13 +580,13 @@ function spider_check_email(id) {
580
  return false;
581
  }
582
 
583
- function spider_edit_ip(id) {
584
  var ip = jQuery("#ip" + id).html();
585
- jQuery("#td_ip_" + id).html('<input id="ip' + id + '" class="input_th' + id + '" type="text" onkeypress="return spider_check_isnum(event)" value="' + ip + '" name="ip' + id + '" />');
586
- jQuery("#td_edit_" + id).html('<a class="button-primary button button-small" onclick="if (spider_check_required(\'ip' + id + '\', \'IP\')) {return false;} spider_set_input_value(\'task\', \'save\'); spider_set_input_value(\'current_id\', ' + id + '); spider_save_ip(' + id + ')">Save IP</a>');
587
  }
588
 
589
- function spider_save_ip(id) {
590
  var ip = jQuery("#ip" + id).val();
591
  var post_data = {};
592
  post_data["ip"] = ip;
@@ -596,8 +596,8 @@ function spider_save_ip(id) {
596
  jQuery("#blocked_ips").attr("action"),
597
  post_data,
598
  function (data) {
599
- jQuery("#td_ip_" + id).html('<a id="ip' + id + '" class="pointer" title="Edit" onclick="spider_edit_ip(' + id + ')">' + ip + '</a>');
600
- jQuery("#td_edit_" + id).html('<a onclick="spider_edit_ip(' + id + ')">Edit</a>');
601
  }
602
  ).success(function (data, textStatus, errorThrown) {
603
  jQuery(".update, .error").hide();
467
  }
468
 
469
  function form_maker_options_tabs(id) {
470
+ if (fm_check_email('mailToAdd') || fm_check_email('from_mail') || fm_check_email('reply_to') || fm_check_email('mail_from_user') || fm_check_email('reply_to_user') || fm_check_email('mail_from_other') || fm_check_email('reply_to_other') || fm_check_email('paypal_email')) {
471
  return false;
472
  }
473
  jQuery("#fieldset_id").val(id);
561
  }
562
 
563
  // Check Email.
564
+ function fm_check_email(id) {
565
  if (document.getElementById(id) && jQuery('#' + id).val() != '') {
566
  var email_array = jQuery('#' + id).val().split(',');
567
  for (var email_id = 0; email_id < email_array.length; email_id++) {
580
  return false;
581
  }
582
 
583
+ function fm_edit_ip(id) {
584
  var ip = jQuery("#ip" + id).html();
585
+ jQuery("#td_ip_" + id).html('<input id="ip' + id + '" class="input_th' + id + '" type="text" onkeypress="return fm_check_isnum(event)" value="' + ip + '" name="ip' + id + '" />');
586
+ jQuery("#td_edit_" + id).html('<a class="button-primary button button-small" onclick="if (fm_check_required(\'ip' + id + '\', \'IP\')) {return false;} fm_set_input_value(\'task\', \'save\'); fm_set_input_value(\'current_id\', ' + id + '); fm_save_ip(' + id + ')">Save IP</a>');
587
  }
588
 
589
+ function fm_save_ip(id) {
590
  var ip = jQuery("#ip" + id).val();
591
  var post_data = {};
592
  post_data["ip"] = ip;
596
  jQuery("#blocked_ips").attr("action"),
597
  post_data,
598
  function (data) {
599
+ jQuery("#td_ip_" + id).html('<a id="ip' + id + '" class="pointer" title="Edit" onclick="fm_edit_ip(' + id + ')">' + ip + '</a>');
600
+ jQuery("#td_edit_" + id).html('<a onclick="fm_edit_ip(' + id + ')">Edit</a>');
601
  }
602
  ).success(function (data, textStatus, errorThrown) {
603
  jQuery(".update, .error").hide();
js/formmaker_div_free.js CHANGED
@@ -15711,7 +15711,7 @@ change_class(w_class, i);
15711
  refresh_attr(i, 'type_text');
15712
  add_properties(i, w_property, w_property_values);
15713
  // form_maker_open_in_popup(11);
15714
- spider_popup();
15715
  jQuery(function() {
15716
  jQuery( "#choices" ).sortable({
15717
  items: ".change_pos" ,
@@ -16595,7 +16595,7 @@ if(aaa)
16595
 
16596
  add_properties(i, w_property, w_property_values);
16597
  // form_maker_open_in_popup(11);
16598
- spider_popup();
16599
  jQuery(function() {
16600
  jQuery( "#choices" ).sortable({
16601
  items: ".change_pos" ,
@@ -17497,7 +17497,7 @@ if(aaa)
17497
 
17498
  add_properties(i, w_property, w_property_values);
17499
  // form_maker_open_in_popup(11);
17500
- spider_popup();
17501
  jQuery(function() {
17502
  jQuery( "#choices" ).sortable({
17503
  items: ".change_pos" ,
@@ -18264,7 +18264,7 @@ if(aaa)
18264
 
18265
  add_properties(i, w_property, w_property_values);
18266
  // form_maker_open_in_popup(11);
18267
- spider_popup();
18268
  jQuery(function() {
18269
  jQuery( "#choices" ).sortable({
18270
  items: ".change_pos" ,
@@ -22800,7 +22800,7 @@ function type_country(i, w_field_label, w_field_label_size, w_countries, w_field
22800
  change_class(w_class, i);
22801
  refresh_attr(i, 'type_text');
22802
  // form_maker_open_in_popup(11);
22803
- spider_popup();
22804
  }
22805
 
22806
  function set_multiple(i, status)
15711
  refresh_attr(i, 'type_text');
15712
  add_properties(i, w_property, w_property_values);
15713
  // form_maker_open_in_popup(11);
15714
+ fm_popup();
15715
  jQuery(function() {
15716
  jQuery( "#choices" ).sortable({
15717
  items: ".change_pos" ,
16595
 
16596
  add_properties(i, w_property, w_property_values);
16597
  // form_maker_open_in_popup(11);
16598
+ fm_popup();
16599
  jQuery(function() {
16600
  jQuery( "#choices" ).sortable({
16601
  items: ".change_pos" ,
17497
 
17498
  add_properties(i, w_property, w_property_values);
17499
  // form_maker_open_in_popup(11);
17500
+ fm_popup();
17501
  jQuery(function() {
17502
  jQuery( "#choices" ).sortable({
17503
  items: ".change_pos" ,
18264
 
18265
  add_properties(i, w_property, w_property_values);
18266
  // form_maker_open_in_popup(11);
18267
+ fm_popup();
18268
  jQuery(function() {
18269
  jQuery( "#choices" ).sortable({
18270
  items: ".change_pos" ,
22800
  change_class(w_class, i);
22801
  refresh_attr(i, 'type_text');
22802
  // form_maker_open_in_popup(11);
22803
+ fm_popup();
22804
  }
22805
 
22806
  function set_multiple(i, status)
js/formmaker_free.js CHANGED
@@ -13726,7 +13726,7 @@ change_class(w_class, i);
13726
  refresh_attr(i, 'type_text');
13727
  // enable_modals();
13728
  add_properties(i, w_property, w_property_values, w_property_type);
13729
- spider_popup();
13730
  }
13731
 
13732
  function remove_property(id, i) {
@@ -13792,7 +13792,7 @@ function add_properties(id, w_property, w_property_values, w_property_type) {
13792
  ul_.appendChild(li_);
13793
  }
13794
  // enable_modals();
13795
- spider_popup();
13796
  }
13797
 
13798
  function dis_option(id, value) {
@@ -14506,7 +14506,7 @@ if(aaa)
14506
  // enable_modals();
14507
 
14508
  add_properties(i, w_property, w_property_values, w_property_type);
14509
- spider_popup();
14510
  }
14511
 
14512
  function type_paypal_radio(i, w_field_label, w_field_label_pos, w_flow, w_choices, w_choices_price, w_choices_checked, w_required, w_randomize, w_allow_other, w_allow_other_num, w_class, w_attr_name, w_attr_value, w_property, w_property_type, w_property_values, w_quantity ){
@@ -15202,7 +15202,7 @@ if(aaa)
15202
  }
15203
 
15204
  add_properties(i, w_property, w_property_values, w_property_type);
15205
- spider_popup();
15206
  }
15207
 
15208
 
@@ -19816,7 +19816,7 @@ if(aaa)
19816
  }
19817
 
19818
  add_properties(i, w_property, w_property_values, w_property_type);
19819
- spider_popup();
19820
  }
19821
 
19822
  function type_country(i, w_field_label, w_countries, w_field_label_pos, w_size, w_required, w_class, w_attr_name, w_attr_value) {
@@ -20218,7 +20218,7 @@ function type_country(i, w_field_label, w_countries, w_field_label_pos, w_size,
20218
  }
20219
  change_class(w_class, i);
20220
  refresh_attr(i, 'type_text');
20221
- spider_popup();
20222
  }
20223
 
20224
  function type_recaptcha(i,w_field_label, w_field_label_pos, w_public, w_private, w_theme, w_class, w_attr_name, w_attr_value){
13726
  refresh_attr(i, 'type_text');
13727
  // enable_modals();
13728
  add_properties(i, w_property, w_property_values, w_property_type);
13729
+ fm_popup();
13730
  }
13731
 
13732
  function remove_property(id, i) {
13792
  ul_.appendChild(li_);
13793
  }
13794
  // enable_modals();
13795
+ fm_popup();
13796
  }
13797
 
13798
  function dis_option(id, value) {
14506
  // enable_modals();
14507
 
14508
  add_properties(i, w_property, w_property_values, w_property_type);
14509
+ fm_popup();
14510
  }
14511
 
14512
  function type_paypal_radio(i, w_field_label, w_field_label_pos, w_flow, w_choices, w_choices_price, w_choices_checked, w_required, w_randomize, w_allow_other, w_allow_other_num, w_class, w_attr_name, w_attr_value, w_property, w_property_type, w_property_values, w_quantity ){
15202
  }
15203
 
15204
  add_properties(i, w_property, w_property_values, w_property_type);
15205
+ fm_popup();
15206
  }
15207
 
15208
 
19816
  }
19817
 
19818
  add_properties(i, w_property, w_property_values, w_property_type);
19819
+ fm_popup();
19820
  }
19821
 
19822
  function type_country(i, w_field_label, w_countries, w_field_label_pos, w_size, w_required, w_class, w_attr_name, w_attr_value) {
20218
  }
20219
  change_class(w_class, i);
20220
  refresh_attr(i, 'type_text');
20221
+ fm_popup();
20222
  }
20223
 
20224
  function type_recaptcha(i,w_field_label, w_field_label_pos, w_public, w_private, w_theme, w_class, w_attr_name, w_attr_value){
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-form.html
4
  Tags: form, forms, form builder, form maker, form manager, form plugin, form with recaptcha, forms plugin, multiple forms, paypal form, survey form, feedback form, feedback forms, contact form,contact form plugin, contact form builder, form creator, email form, secure form, web form, form to email, contact forms, custom forms, form widget, captcha form, wordpress contact form ,recaptcha contact form, form creation, contact form with auto reply, widget contact form, builder, feedback, contacts form plugin , custom contact form, contact us form, formular, formulario, admin, captcha, contact, database, email, javascript, jquery, page, plugin, survey, widget, custom form, forms creator, input, validation, send copy, form with captcha , pdf
5
  Requires at least: 3.4
6
  Tested up to: 4.3
7
- Stable tag: 1.7.88
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -143,13 +143,14 @@ Survey tools are also very convenient for adding rating systems for the posts, e
143
 
144
  Upgrade to [WordPress Form Maker Pro](https://web-dorado.com/products/wordpress-form.html) to add features:
145
 
146
- * unlimited number of form fields
147
- * PayPal form field with currency change possibility
148
- * Upload file field
149
- * Possibility to choose the desired file extension types for the file upload form field
150
- * Fully integrated with PayPal: two checkout modes (Test Mode and Production) and five form field types (Amount, Select, Checkbox, Radio, and Shipping)(commercial version of the Form Maker), possibility to use the form as a payment/donation form
151
- * Google Maps API Integration, possibility to use the maps in two different form fields of the Form Maker
152
- * Possibility to include tax percentage within PayPal options for the localization of the payment
 
153
 
154
  ### Supported languages Of Form Maker
155
 
@@ -297,6 +298,10 @@ The Form Maker (Pro version) has simple PayPal integration. This allows the user
297
 
298
  == Changelog ==
299
 
 
 
 
 
300
  = 1.7.88 =
301
  New: Doublescroll in submissions page
302
  New: Delete confirmation
4
  Tags: form, forms, form builder, form maker, form manager, form plugin, form with recaptcha, forms plugin, multiple forms, paypal form, survey form, feedback form, feedback forms, contact form,contact form plugin, contact form builder, form creator, email form, secure form, web form, form to email, contact forms, custom forms, form widget, captcha form, wordpress contact form ,recaptcha contact form, form creation, contact form with auto reply, widget contact form, builder, feedback, contacts form plugin , custom contact form, contact us form, formular, formulario, admin, captcha, contact, database, email, javascript, jquery, page, plugin, survey, widget, custom form, forms creator, input, validation, send copy, form with captcha , pdf
5
  Requires at least: 3.4
6
  Tested up to: 4.3
7
+ Stable tag: 1.7.89
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
143
 
144
  Upgrade to [WordPress Form Maker Pro](https://web-dorado.com/products/wordpress-form.html) to add features:
145
 
146
+ * Unlimited number of form fields.
147
+ * PayPal form field with currency change possibility.
148
+ * Upload file field.
149
+ * Possibility to choose the desired file extension types for the file upload form field.
150
+ * Fully integrated with PayPal: two checkout modes (Test Mode and Production) and five form field types (Amount, Select, Checkbox, Radio, and Shipping)(commercial version of the Form Maker), possibility to use the form as a payment/donation form .
151
+ * Google Maps API Integration, possibility to use the maps in two different form fields of the Form Maker.
152
+ * Possibility to include tax percentage within PayPal options for the localization of the payment.
153
+ * Add ons support.
154
 
155
  ### Supported languages Of Form Maker
156
 
298
 
299
  == Changelog ==
300
 
301
+ = 1.7.89 =
302
+ Fixed: Conflict with some plugins
303
+ Changed: Styles
304
+
305
  = 1.7.88 =
306
  New: Doublescroll in submissions page
307
  New: Delete confirmation