Contact Form Builder – a plugin for creating contact and feedback forms - Version 1.0.43

Version Description

Changed: Add scripts and styles only on necessary pages.

Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 Contact Form Builder – a plugin for creating contact and feedback forms
Version 1.0.43
Comparing to
See all releases

Code changes from version 1.0.42 to 1.0.43

Files changed (33) hide show
  1. admin/controllers/CFMControllerBlocked_ips_cfm.php +143 -143
  2. admin/controllers/CFMControllerCFMShortcode.php +42 -42
  3. admin/controllers/CFMControllerContactFormMakerPreview.php +42 -42
  4. admin/controllers/CFMControllerContactFormmakerwdcaptcha.php +42 -42
  5. admin/controllers/CFMControllerFeatured_plugins_cfm.php +48 -48
  6. admin/controllers/CFMControllerLicensing_cfm.php +48 -48
  7. admin/controllers/CFMControllerManage_cfm.php +585 -585
  8. admin/controllers/CFMControllerSubmissions_cfm.php +52 -52
  9. admin/controllers/CFMControllerThemes_cfm.php +52 -52
  10. admin/controllers/CFMControllerUninstall_cfm.php +57 -57
  11. admin/controllers/CFMControllerWidget.php +60 -60
  12. admin/models/CFMModelBlocked_ips_cfm.php +73 -73
  13. admin/models/CFMModelCFMShortcode.php +35 -35
  14. admin/models/CFMModelContactFormMakerPreview.php +30 -30
  15. admin/models/CFMModelContactFormmakerwdcaptcha.php +30 -30
  16. admin/models/CFMModelFeatured_plugins_cfm.php +29 -29
  17. admin/models/CFMModelLicensing_cfm.php +29 -29
  18. admin/models/CFMModelManage_cfm.php +768 -768
  19. admin/models/CFMModelThemes_cfm.php +30 -30
  20. admin/models/CFMModelUninstall_cfm.php +38 -38
  21. admin/models/CFMModelWidget.php +36 -36
  22. admin/views/CFMViewBlocked_ips_cfm.php +170 -170
  23. admin/views/CFMViewCFMShortcode.php +111 -111
  24. admin/views/CFMViewContactFormMakerPreview.php +54 -54
  25. admin/views/CFMViewContactFormmakerwdcaptcha.php +92 -92
  26. admin/views/CFMViewFeatured_plugins_cfm.php +182 -182
  27. admin/views/CFMViewLicensing_cfm.php +157 -157
  28. admin/views/CFMViewManage_cfm.php +1728 -1728
  29. admin/views/CFMViewSubmissions_cfm.php +48 -48
  30. admin/views/CFMViewThemes_cfm.php +63 -63
  31. admin/views/CFMViewUninstall_cfm.php +124 -124
  32. admin/views/CFMViewWidget.php +83 -83
  33. contact-form-builder-insert.php +0 -99
admin/controllers/CFMControllerBlocked_ips_cfm.php CHANGED
@@ -1,144 +1,144 @@
1
- <?php
2
-
3
- class CFMControllerBlocked_ips_cfm {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
- ////////////////////////////////////////////////////////////////////////////////////////
14
- // Constructor & Destructor //
15
- ////////////////////////////////////////////////////////////////////////////////////////
16
- public function __construct() {
17
- }
18
- ////////////////////////////////////////////////////////////////////////////////////////
19
- // Public Methods //
20
- ////////////////////////////////////////////////////////////////////////////////////////
21
- public function execute() {
22
- $task = WDW_CFM_Library::get('task');
23
- $id = WDW_CFM_Library::get('current_id', 0);
24
- $message = WDW_CFM_Library::get('message');
25
- echo WDW_CFM_Library::message_id($message);
26
- if (method_exists($this, $task)) {
27
- check_admin_referer('nonce_cfm', 'nonce_cfm');
28
- $this->$task($id);
29
- }
30
- else {
31
- $this->display();
32
- }
33
- }
34
-
35
- public function display() {
36
- require_once WD_CFM_DIR . "/admin/models/CFMModelBlocked_ips_cfm.php";
37
- $model = new CFMModelBlocked_ips_cfm();
38
-
39
- require_once WD_CFM_DIR . "/admin/views/CFMViewBlocked_ips_cfm.php";
40
- $view = new CFMViewBlocked_ips_cfm($model);
41
- $view->display();
42
- }
43
-
44
- public function save() {
45
- $message = $this->save_db();
46
- $page = WDW_CFM_Library::get('page');
47
- WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
48
- }
49
-
50
- public function save_db() {
51
- global $wpdb;
52
- $id = (isset($_POST['current_id']) ? (int) $_POST['current_id'] : 0);
53
- $ip = (isset($_POST['ip']) ? esc_html(stripslashes($_POST['ip'])) : '');
54
- if ($id != 0) {
55
- $save = $wpdb->update($wpdb->prefix . 'contactformmaker_blocked', array(
56
- 'ip' => $ip,
57
- ), array('id' => $id));
58
- }
59
- else {
60
- $save = $wpdb->insert($wpdb->prefix . 'contactformmaker_blocked', array(
61
- 'ip' => $ip,
62
- ), array(
63
- '%s',
64
- ));
65
- }
66
- if ($save !== FALSE) {
67
- $message = 1;
68
- }
69
- else {
70
- $message = 2;
71
- }
72
- }
73
-
74
- public function save_all() {
75
- global $wpdb;
76
- $flag = FALSE;
77
- $ips_id_col = $wpdb->get_col('SELECT id FROM ' . $wpdb->prefix . 'contactformmaker_blocked');
78
- foreach ($ips_id_col as $ip_id) {
79
- if (isset($_POST['ip' . $ip_id])) {
80
- $ip = esc_html(stripslashes($_POST['ip' . $ip_id]));
81
- if ($ip == '') {
82
- $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_blocked WHERE id="%d"', $ip_id));
83
- }
84
- else {
85
- $flag = TRUE;
86
- $wpdb->update($wpdb->prefix . 'contactformmaker_blocked', array(
87
- 'ip' => $ip,
88
- ), array('id' => $ip_id));
89
- }
90
- }
91
- }
92
- if ($flag) {
93
- $message = 1;
94
- }
95
- else {
96
- $message = 0;
97
- }
98
- $page = WDW_CFM_Library::get('page');
99
- WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
100
- }
101
-
102
- public function delete($id) {
103
- global $wpdb;
104
- $query = $wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_blocked WHERE id="%d"', $id);
105
- if ($wpdb->query($query)) {
106
- $message = 3;
107
- }
108
- else {
109
- $message = 2;
110
- }
111
- $page = WDW_CFM_Library::get('page');
112
- WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
113
- }
114
-
115
- public function delete_all() {
116
- global $wpdb;
117
- $flag = FALSE;
118
- $ips_id_col = $wpdb->get_col('SELECT id FROM ' . $wpdb->prefix . 'contactformmaker_blocked');
119
- foreach ($ips_id_col as $ip_id) {
120
- if (isset($_POST['check_' . $ip_id])) {
121
- $flag = TRUE;
122
- $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_blocked WHERE id="%d"', $ip_id));
123
- }
124
- }
125
- if ($flag) {
126
- $message = 5;
127
- }
128
- else {
129
- $message = 2;
130
- }
131
- $page = WDW_CFM_Library::get('page');
132
- WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
133
- }
134
-
135
- ////////////////////////////////////////////////////////////////////////////////////////
136
- // Getters & Setters //
137
- ////////////////////////////////////////////////////////////////////////////////////////
138
- ////////////////////////////////////////////////////////////////////////////////////////
139
- // Private Methods //
140
- ////////////////////////////////////////////////////////////////////////////////////////
141
- ////////////////////////////////////////////////////////////////////////////////////////
142
- // Listeners //
143
- ////////////////////////////////////////////////////////////////////////////////////////
144
  }
1
+ <?php
2
+
3
+ class CFMControllerBlocked_ips_cfm {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ ////////////////////////////////////////////////////////////////////////////////////////
14
+ // Constructor & Destructor //
15
+ ////////////////////////////////////////////////////////////////////////////////////////
16
+ public function __construct() {
17
+ }
18
+ ////////////////////////////////////////////////////////////////////////////////////////
19
+ // Public Methods //
20
+ ////////////////////////////////////////////////////////////////////////////////////////
21
+ public function execute() {
22
+ $task = WDW_CFM_Library::get('task');
23
+ $id = WDW_CFM_Library::get('current_id', 0);
24
+ $message = WDW_CFM_Library::get('message');
25
+ echo WDW_CFM_Library::message_id($message);
26
+ if (method_exists($this, $task)) {
27
+ check_admin_referer('nonce_cfm', 'nonce_cfm');
28
+ $this->$task($id);
29
+ }
30
+ else {
31
+ $this->display();
32
+ }
33
+ }
34
+
35
+ public function display() {
36
+ require_once WD_CFM_DIR . "/admin/models/CFMModelBlocked_ips_cfm.php";
37
+ $model = new CFMModelBlocked_ips_cfm();
38
+
39
+ require_once WD_CFM_DIR . "/admin/views/CFMViewBlocked_ips_cfm.php";
40
+ $view = new CFMViewBlocked_ips_cfm($model);
41
+ $view->display();
42
+ }
43
+
44
+ public function save() {
45
+ $message = $this->save_db();
46
+ $page = WDW_CFM_Library::get('page');
47
+ WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
48
+ }
49
+
50
+ public function save_db() {
51
+ global $wpdb;
52
+ $id = (isset($_POST['current_id']) ? (int) $_POST['current_id'] : 0);
53
+ $ip = (isset($_POST['ip']) ? esc_html(stripslashes($_POST['ip'])) : '');
54
+ if ($id != 0) {
55
+ $save = $wpdb->update($wpdb->prefix . 'contactformmaker_blocked', array(
56
+ 'ip' => $ip,
57
+ ), array('id' => $id));
58
+ }
59
+ else {
60
+ $save = $wpdb->insert($wpdb->prefix . 'contactformmaker_blocked', array(
61
+ 'ip' => $ip,
62
+ ), array(
63
+ '%s',
64
+ ));
65
+ }
66
+ if ($save !== FALSE) {
67
+ $message = 1;
68
+ }
69
+ else {
70
+ $message = 2;
71
+ }
72
+ }
73
+
74
+ public function save_all() {
75
+ global $wpdb;
76
+ $flag = FALSE;
77
+ $ips_id_col = $wpdb->get_col('SELECT id FROM ' . $wpdb->prefix . 'contactformmaker_blocked');
78
+ foreach ($ips_id_col as $ip_id) {
79
+ if (isset($_POST['ip' . $ip_id])) {
80
+ $ip = esc_html(stripslashes($_POST['ip' . $ip_id]));
81
+ if ($ip == '') {
82
+ $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_blocked WHERE id="%d"', $ip_id));
83
+ }
84
+ else {
85
+ $flag = TRUE;
86
+ $wpdb->update($wpdb->prefix . 'contactformmaker_blocked', array(
87
+ 'ip' => $ip,
88
+ ), array('id' => $ip_id));
89
+ }
90
+ }
91
+ }
92
+ if ($flag) {
93
+ $message = 1;
94
+ }
95
+ else {
96
+ $message = 0;
97
+ }
98
+ $page = WDW_CFM_Library::get('page');
99
+ WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
100
+ }
101
+
102
+ public function delete($id) {
103
+ global $wpdb;
104
+ $query = $wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_blocked WHERE id="%d"', $id);
105
+ if ($wpdb->query($query)) {
106
+ $message = 3;
107
+ }
108
+ else {
109
+ $message = 2;
110
+ }
111
+ $page = WDW_CFM_Library::get('page');
112
+ WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
113
+ }
114
+
115
+ public function delete_all() {
116
+ global $wpdb;
117
+ $flag = FALSE;
118
+ $ips_id_col = $wpdb->get_col('SELECT id FROM ' . $wpdb->prefix . 'contactformmaker_blocked');
119
+ foreach ($ips_id_col as $ip_id) {
120
+ if (isset($_POST['check_' . $ip_id])) {
121
+ $flag = TRUE;
122
+ $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_blocked WHERE id="%d"', $ip_id));
123
+ }
124
+ }
125
+ if ($flag) {
126
+ $message = 5;
127
+ }
128
+ else {
129
+ $message = 2;
130
+ }
131
+ $page = WDW_CFM_Library::get('page');
132
+ WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
133
+ }
134
+
135
+ ////////////////////////////////////////////////////////////////////////////////////////
136
+ // Getters & Setters //
137
+ ////////////////////////////////////////////////////////////////////////////////////////
138
+ ////////////////////////////////////////////////////////////////////////////////////////
139
+ // Private Methods //
140
+ ////////////////////////////////////////////////////////////////////////////////////////
141
+ ////////////////////////////////////////////////////////////////////////////////////////
142
+ // Listeners //
143
+ ////////////////////////////////////////////////////////////////////////////////////////
144
  }
admin/controllers/CFMControllerCFMShortcode.php CHANGED
@@ -1,43 +1,43 @@
1
- <?php
2
-
3
- class CFMControllerCFMShortcode {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
- ////////////////////////////////////////////////////////////////////////////////////////
14
- // Constructor & Destructor //
15
- ////////////////////////////////////////////////////////////////////////////////////////
16
- public function __construct() {
17
- }
18
- ////////////////////////////////////////////////////////////////////////////////////////
19
- // Public Methods //
20
- ////////////////////////////////////////////////////////////////////////////////////////
21
- public function execute() {
22
- $this->display();
23
- }
24
-
25
- public function display() {
26
- require_once WD_CFM_DIR . "/admin/models/CFMModelCFMShortcode.php";
27
- $model = new CFMModelCFMShortcode();
28
-
29
- require_once WD_CFM_DIR . "/admin/views/CFMViewCFMShortcode.php";
30
- $view = new CFMViewCFMShortcode($model);
31
- $view->display();
32
- }
33
-
34
- ////////////////////////////////////////////////////////////////////////////////////////
35
- // Getters & Setters //
36
- ////////////////////////////////////////////////////////////////////////////////////////
37
- ////////////////////////////////////////////////////////////////////////////////////////
38
- // Private Methods //
39
- ////////////////////////////////////////////////////////////////////////////////////////
40
- ////////////////////////////////////////////////////////////////////////////////////////
41
- // Listeners //
42
- ////////////////////////////////////////////////////////////////////////////////////////
43
  }
1
+ <?php
2
+
3
+ class CFMControllerCFMShortcode {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ ////////////////////////////////////////////////////////////////////////////////////////
14
+ // Constructor & Destructor //
15
+ ////////////////////////////////////////////////////////////////////////////////////////
16
+ public function __construct() {
17
+ }
18
+ ////////////////////////////////////////////////////////////////////////////////////////
19
+ // Public Methods //
20
+ ////////////////////////////////////////////////////////////////////////////////////////
21
+ public function execute() {
22
+ $this->display();
23
+ }
24
+
25
+ public function display() {
26
+ require_once WD_CFM_DIR . "/admin/models/CFMModelCFMShortcode.php";
27
+ $model = new CFMModelCFMShortcode();
28
+
29
+ require_once WD_CFM_DIR . "/admin/views/CFMViewCFMShortcode.php";
30
+ $view = new CFMViewCFMShortcode($model);
31
+ $view->display();
32
+ }
33
+
34
+ ////////////////////////////////////////////////////////////////////////////////////////
35
+ // Getters & Setters //
36
+ ////////////////////////////////////////////////////////////////////////////////////////
37
+ ////////////////////////////////////////////////////////////////////////////////////////
38
+ // Private Methods //
39
+ ////////////////////////////////////////////////////////////////////////////////////////
40
+ ////////////////////////////////////////////////////////////////////////////////////////
41
+ // Listeners //
42
+ ////////////////////////////////////////////////////////////////////////////////////////
43
  }
admin/controllers/CFMControllerContactFormMakerPreview.php CHANGED
@@ -1,43 +1,43 @@
1
- <?php
2
-
3
- class CFMControllerContactFormMakerPreview {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
- ////////////////////////////////////////////////////////////////////////////////////////
14
- // Constructor & Destructor //
15
- ////////////////////////////////////////////////////////////////////////////////////////
16
- public function __construct() {
17
- }
18
- ////////////////////////////////////////////////////////////////////////////////////////
19
- // Public Methods //
20
- ////////////////////////////////////////////////////////////////////////////////////////
21
- public function execute() {
22
- $this->display();
23
- }
24
-
25
- public function display() {
26
- require_once WD_CFM_DIR . "/admin/models/CFMModelContactFormMakerPreview.php";
27
- $model = new CFMModelContactFormMakerPreview();
28
-
29
- require_once WD_CFM_DIR . "/admin/views/CFMViewContactFormMakerPreview.php";
30
- $view = new CFMViewContactFormMakerPreview($model);
31
- $view->display();
32
- }
33
-
34
- ////////////////////////////////////////////////////////////////////////////////////////
35
- // Getters & Setters //
36
- ////////////////////////////////////////////////////////////////////////////////////////
37
- ////////////////////////////////////////////////////////////////////////////////////////
38
- // Private Methods //
39
- ////////////////////////////////////////////////////////////////////////////////////////
40
- ////////////////////////////////////////////////////////////////////////////////////////
41
- // Listeners //
42
- ////////////////////////////////////////////////////////////////////////////////////////
43
  }
1
+ <?php
2
+
3
+ class CFMControllerContactFormMakerPreview {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ ////////////////////////////////////////////////////////////////////////////////////////
14
+ // Constructor & Destructor //
15
+ ////////////////////////////////////////////////////////////////////////////////////////
16
+ public function __construct() {
17
+ }
18
+ ////////////////////////////////////////////////////////////////////////////////////////
19
+ // Public Methods //
20
+ ////////////////////////////////////////////////////////////////////////////////////////
21
+ public function execute() {
22
+ $this->display();
23
+ }
24
+
25
+ public function display() {
26
+ require_once WD_CFM_DIR . "/admin/models/CFMModelContactFormMakerPreview.php";
27
+ $model = new CFMModelContactFormMakerPreview();
28
+
29
+ require_once WD_CFM_DIR . "/admin/views/CFMViewContactFormMakerPreview.php";
30
+ $view = new CFMViewContactFormMakerPreview($model);
31
+ $view->display();
32
+ }
33
+
34
+ ////////////////////////////////////////////////////////////////////////////////////////
35
+ // Getters & Setters //
36
+ ////////////////////////////////////////////////////////////////////////////////////////
37
+ ////////////////////////////////////////////////////////////////////////////////////////
38
+ // Private Methods //
39
+ ////////////////////////////////////////////////////////////////////////////////////////
40
+ ////////////////////////////////////////////////////////////////////////////////////////
41
+ // Listeners //
42
+ ////////////////////////////////////////////////////////////////////////////////////////
43
  }
admin/controllers/CFMControllerContactFormmakerwdcaptcha.php CHANGED
@@ -1,43 +1,43 @@
1
- <?php
2
-
3
- class CFMControllerContactFormmakerwdcaptcha {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
- ////////////////////////////////////////////////////////////////////////////////////////
14
- // Constructor & Destructor //
15
- ////////////////////////////////////////////////////////////////////////////////////////
16
- public function __construct() {
17
- }
18
- ////////////////////////////////////////////////////////////////////////////////////////
19
- // Public Methods //
20
- ////////////////////////////////////////////////////////////////////////////////////////
21
- public function execute() {
22
- $this->display();
23
- }
24
-
25
- public function display() {
26
- require_once WD_CFM_DIR . "/admin/models/CFMModelContactFormmakerwdcaptcha.php";
27
- $model = new CFMModelContactFormmakerwdcaptcha();
28
-
29
- require_once WD_CFM_DIR . "/admin/views/CFMViewContactFormmakerwdcaptcha.php";
30
- $view = new CFMViewContactFormmakerwdcaptcha($model);
31
- $view->display();
32
- }
33
-
34
- ////////////////////////////////////////////////////////////////////////////////////////
35
- // Getters & Setters //
36
- ////////////////////////////////////////////////////////////////////////////////////////
37
- ////////////////////////////////////////////////////////////////////////////////////////
38
- // Private Methods //
39
- ////////////////////////////////////////////////////////////////////////////////////////
40
- ////////////////////////////////////////////////////////////////////////////////////////
41
- // Listeners //
42
- ////////////////////////////////////////////////////////////////////////////////////////
43
  }
1
+ <?php
2
+
3
+ class CFMControllerContactFormmakerwdcaptcha {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ ////////////////////////////////////////////////////////////////////////////////////////
14
+ // Constructor & Destructor //
15
+ ////////////////////////////////////////////////////////////////////////////////////////
16
+ public function __construct() {
17
+ }
18
+ ////////////////////////////////////////////////////////////////////////////////////////
19
+ // Public Methods //
20
+ ////////////////////////////////////////////////////////////////////////////////////////
21
+ public function execute() {
22
+ $this->display();
23
+ }
24
+
25
+ public function display() {
26
+ require_once WD_CFM_DIR . "/admin/models/CFMModelContactFormmakerwdcaptcha.php";
27
+ $model = new CFMModelContactFormmakerwdcaptcha();
28
+
29
+ require_once WD_CFM_DIR . "/admin/views/CFMViewContactFormmakerwdcaptcha.php";
30
+ $view = new CFMViewContactFormmakerwdcaptcha($model);
31
+ $view->display();
32
+ }
33
+
34
+ ////////////////////////////////////////////////////////////////////////////////////////
35
+ // Getters & Setters //
36
+ ////////////////////////////////////////////////////////////////////////////////////////
37
+ ////////////////////////////////////////////////////////////////////////////////////////
38
+ // Private Methods //
39
+ ////////////////////////////////////////////////////////////////////////////////////////
40
+ ////////////////////////////////////////////////////////////////////////////////////////
41
+ // Listeners //
42
+ ////////////////////////////////////////////////////////////////////////////////////////
43
  }
admin/controllers/CFMControllerFeatured_plugins_cfm.php CHANGED
@@ -1,49 +1,49 @@
1
- <?php
2
-
3
- class CFMControllerFeatured_plugins_cfm {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
- ////////////////////////////////////////////////////////////////////////////////////////
14
- // Constructor & Destructor //
15
- ////////////////////////////////////////////////////////////////////////////////////////
16
- public function __construct() {
17
- }
18
- ////////////////////////////////////////////////////////////////////////////////////////
19
- // Public Methods //
20
- ////////////////////////////////////////////////////////////////////////////////////////
21
- public function execute() {
22
- $task = ((isset($_POST['task'])) ? esc_html(stripslashes($_POST['task'])) : '');
23
- if (method_exists($this, $task)) {
24
- $this->$task($id);
25
- }
26
- else {
27
- $this->display();
28
- }
29
- }
30
-
31
- public function display() {
32
- require_once WD_CFM_DIR . "/admin/models/CFMModelFeatured_plugins_cfm.php";
33
- $model = new CFMModelFeatured_plugins_cfm();
34
-
35
- require_once WD_CFM_DIR . "/admin/views/CFMViewFeatured_plugins_cfm.php";
36
- $view = new CFMViewFeatured_plugins_cfm($model);
37
- $view->display();
38
- }
39
-
40
- ////////////////////////////////////////////////////////////////////////////////////////
41
- // Getters & Setters //
42
- ////////////////////////////////////////////////////////////////////////////////////////
43
- ////////////////////////////////////////////////////////////////////////////////////////
44
- // Private Methods //
45
- ////////////////////////////////////////////////////////////////////////////////////////
46
- ////////////////////////////////////////////////////////////////////////////////////////
47
- // Listeners //
48
- ////////////////////////////////////////////////////////////////////////////////////////
49
  }
1
+ <?php
2
+
3
+ class CFMControllerFeatured_plugins_cfm {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ ////////////////////////////////////////////////////////////////////////////////////////
14
+ // Constructor & Destructor //
15
+ ////////////////////////////////////////////////////////////////////////////////////////
16
+ public function __construct() {
17
+ }
18
+ ////////////////////////////////////////////////////////////////////////////////////////
19
+ // Public Methods //
20
+ ////////////////////////////////////////////////////////////////////////////////////////
21
+ public function execute() {
22
+ $task = ((isset($_POST['task'])) ? esc_html(stripslashes($_POST['task'])) : '');
23
+ if (method_exists($this, $task)) {
24
+ $this->$task($id);
25
+ }
26
+ else {
27
+ $this->display();
28
+ }
29
+ }
30
+
31
+ public function display() {
32
+ require_once WD_CFM_DIR . "/admin/models/CFMModelFeatured_plugins_cfm.php";
33
+ $model = new CFMModelFeatured_plugins_cfm();
34
+
35
+ require_once WD_CFM_DIR . "/admin/views/CFMViewFeatured_plugins_cfm.php";
36
+ $view = new CFMViewFeatured_plugins_cfm($model);
37
+ $view->display();
38
+ }
39
+
40
+ ////////////////////////////////////////////////////////////////////////////////////////
41
+ // Getters & Setters //
42
+ ////////////////////////////////////////////////////////////////////////////////////////
43
+ ////////////////////////////////////////////////////////////////////////////////////////
44
+ // Private Methods //
45
+ ////////////////////////////////////////////////////////////////////////////////////////
46
+ ////////////////////////////////////////////////////////////////////////////////////////
47
+ // Listeners //
48
+ ////////////////////////////////////////////////////////////////////////////////////////
49
  }
admin/controllers/CFMControllerLicensing_cfm.php CHANGED
@@ -1,49 +1,49 @@
1
- <?php
2
-
3
- class CFMControllerLicensing_cfm {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
- ////////////////////////////////////////////////////////////////////////////////////////
14
- // Constructor & Destructor //
15
- ////////////////////////////////////////////////////////////////////////////////////////
16
- public function __construct() {
17
- }
18
- ////////////////////////////////////////////////////////////////////////////////////////
19
- // Public Methods //
20
- ////////////////////////////////////////////////////////////////////////////////////////
21
- public function execute() {
22
- $task = ((isset($_POST['task'])) ? esc_html(stripslashes($_POST['task'])) : '');
23
- if (method_exists($this, $task)) {
24
- $this->$task($id);
25
- }
26
- else {
27
- $this->display();
28
- }
29
- }
30
-
31
- public function display() {
32
- require_once WD_CFM_DIR . "/admin/models/CFMModelLicensing_cfm.php";
33
- $model = new CFMModelLicensing_cfm();
34
-
35
- require_once WD_CFM_DIR . "/admin/views/CFMViewLicensing_cfm.php";
36
- $view = new CFMViewLicensing_cfm($model);
37
- $view->display();
38
- }
39
-
40
- ////////////////////////////////////////////////////////////////////////////////////////
41
- // Getters & Setters //
42
- ////////////////////////////////////////////////////////////////////////////////////////
43
- ////////////////////////////////////////////////////////////////////////////////////////
44
- // Private Methods //
45
- ////////////////////////////////////////////////////////////////////////////////////////
46
- ////////////////////////////////////////////////////////////////////////////////////////
47
- // Listeners //
48
- ////////////////////////////////////////////////////////////////////////////////////////
49
  }
1
+ <?php
2
+
3
+ class CFMControllerLicensing_cfm {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ ////////////////////////////////////////////////////////////////////////////////////////
14
+ // Constructor & Destructor //
15
+ ////////////////////////////////////////////////////////////////////////////////////////
16
+ public function __construct() {
17
+ }
18
+ ////////////////////////////////////////////////////////////////////////////////////////
19
+ // Public Methods //
20
+ ////////////////////////////////////////////////////////////////////////////////////////
21
+ public function execute() {
22
+ $task = ((isset($_POST['task'])) ? esc_html(stripslashes($_POST['task'])) : '');
23
+ if (method_exists($this, $task)) {
24
+ $this->$task($id);
25
+ }
26
+ else {
27
+ $this->display();
28
+ }
29
+ }
30
+
31
+ public function display() {
32
+ require_once WD_CFM_DIR . "/admin/models/CFMModelLicensing_cfm.php";
33
+ $model = new CFMModelLicensing_cfm();
34
+
35
+ require_once WD_CFM_DIR . "/admin/views/CFMViewLicensing_cfm.php";
36
+ $view = new CFMViewLicensing_cfm($model);
37
+ $view->display();
38
+ }
39
+
40
+ ////////////////////////////////////////////////////////////////////////////////////////
41
+ // Getters & Setters //
42
+ ////////////////////////////////////////////////////////////////////////////////////////
43
+ ////////////////////////////////////////////////////////////////////////////////////////
44
+ // Private Methods //
45
+ ////////////////////////////////////////////////////////////////////////////////////////
46
+ ////////////////////////////////////////////////////////////////////////////////////////
47
+ // Listeners //
48
+ ////////////////////////////////////////////////////////////////////////////////////////
49
  }
admin/controllers/CFMControllerManage_cfm.php CHANGED
@@ -1,586 +1,586 @@
1
- <?php
2
-
3
- class CFMControllerManage_cfm {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
- ////////////////////////////////////////////////////////////////////////////////////////
14
- // Constructor & Destructor //
15
- ////////////////////////////////////////////////////////////////////////////////////////
16
- public function __construct() {
17
- }
18
- ////////////////////////////////////////////////////////////////////////////////////////
19
- // Public Methods //
20
- ////////////////////////////////////////////////////////////////////////////////////////
21
- public function execute() {
22
- $task = WDW_CFM_Library::get('task');
23
- $id = WDW_CFM_Library::get('current_id', 0);
24
- $message = WDW_CFM_Library::get('message');
25
- echo WDW_CFM_Library::message_id($message);
26
- if (method_exists($this, $task)) {
27
- check_admin_referer('nonce_cfm', 'nonce_cfm');
28
- $this->$task($id);
29
- }
30
- else {
31
- $this->display();
32
- }
33
- }
34
-
35
- public function display() {
36
- require_once WD_CFM_DIR . "/admin/models/CFMModelManage_cfm.php";
37
- $model = new CFMModelManage_cfm();
38
-
39
- require_once WD_CFM_DIR . "/admin/views/CFMViewManage_cfm.php";
40
- $view = new CFMViewManage_cfm($model);
41
- $view->display();
42
- }
43
-
44
- public function add() {
45
- require_once WD_CFM_DIR . "/admin/models/CFMModelManage_cfm.php";
46
- $model = new CFMModelManage_cfm();
47
-
48
- require_once WD_CFM_DIR . "/admin/views/CFMViewManage_cfm.php";
49
- $view = new CFMViewManage_cfm($model);
50
- $view->edit(0);
51
- }
52
-
53
- public function edit() {
54
- require_once WD_CFM_DIR . "/admin/models/CFMModelManage_cfm.php";
55
- $model = new CFMModelManage_cfm();
56
-
57
- require_once WD_CFM_DIR . "/admin/views/CFMViewManage_cfm.php";
58
- $view = new CFMViewManage_cfm($model);
59
- $id = WDW_CFM_Library::get('current_id', 0);
60
- $view->edit($id);
61
- }
62
-
63
- public function form_layout() {
64
- if (!isset($_GET['task'])) {
65
- $this->save_db();
66
- }
67
- require_once WD_CFM_DIR . "/admin/models/CFMModelManage_cfm.php";
68
- $model = new CFMModelManage_cfm();
69
-
70
- require_once WD_CFM_DIR . "/admin/views/CFMViewManage_cfm.php";
71
- $view = new CFMViewManage_cfm($model);
72
- global $wpdb;
73
- $id = WDW_CFM_Library::get('current_id', $wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "contactformmaker"));
74
- $view->form_layout($id);
75
- }
76
-
77
- public function save_layout() {
78
- $message = $this->save_db_layout();
79
- $page = WDW_CFM_Library::get('page');
80
- $current_id = WDW_CFM_Library::get('current_id', 0);
81
- WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'edit', 'current_id' => $current_id, 'message' => $message), admin_url('admin.php')));
82
- }
83
-
84
- public function apply_layout() {
85
- $message = $this->save_db_layout();
86
- require_once WD_CFM_DIR . "/admin/models/CFMModelManage_cfm.php";
87
- $model = new CFMModelManage_cfm();
88
-
89
- require_once WD_CFM_DIR . "/admin/views/CFMViewManage_cfm.php";
90
- $view = new CFMViewManage_cfm($model);
91
- $page = WDW_CFM_Library::get('page');
92
- $current_id = WDW_CFM_Library::get('current_id', 0);
93
- WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'form_layout', 'current_id' => $current_id, 'message' => $message), admin_url('admin.php')));
94
- }
95
-
96
- public function save_db_layout() {
97
- global $wpdb;
98
- $id = WDW_CFM_Library::get('current_id', 0);
99
- $custom_front = (isset($_POST['custom_front']) ? stripslashes($_POST['custom_front']) : '');
100
- $autogen_layout = (isset($_POST['autogen_layout']) ? 1 : 0);
101
- $save = $wpdb->update($wpdb->prefix . 'contactformmaker', array(
102
- 'custom_front' => $custom_front,
103
- 'autogen_layout' => $autogen_layout
104
- ), array('id' => $id));
105
- if ($save !== FALSE) {
106
- return 1;
107
- }
108
- else {
109
- return 2;
110
- }
111
- }
112
-
113
- public function form_options() {
114
- if (!isset($_GET['task'])) {
115
- $this->save_db();
116
- }
117
- require_once WD_CFM_DIR . "/admin/models/CFMModelManage_cfm.php";
118
- $model = new CFMModelManage_cfm();
119
-
120
- require_once WD_CFM_DIR . "/admin/views/CFMViewManage_cfm.php";
121
- $view = new CFMViewManage_cfm($model);
122
- global $wpdb;
123
- $id = WDW_CFM_Library::get('current_id', $wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "contactformmaker"));
124
- $view->form_options($id);
125
- }
126
-
127
- public function save_options() {
128
- $message = $this->save_db_options();
129
- $page = WDW_CFM_Library::get('page');
130
- $current_id = WDW_CFM_Library::get('current_id', 0);
131
- WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'edit', 'current_id' => $current_id, 'message' => $message), admin_url('admin.php')));
132
- }
133
-
134
- public function apply_options() {
135
- $message = $this->save_db_options();
136
- require_once WD_CFM_DIR . "/admin/models/CFMModelManage_cfm.php";
137
- $model = new CFMModelManage_cfm();
138
-
139
- require_once WD_CFM_DIR . "/admin/views/CFMViewManage_cfm.php";
140
- $view = new CFMViewManage_cfm($model);
141
- $page = WDW_CFM_Library::get('page');
142
- $current_id = WDW_CFM_Library::get('current_id', 0);
143
- $fieldset_id = WDW_CFM_Library::get('fieldset_id', 'general');
144
- WDW_CFM_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')));
145
- }
146
-
147
- public function cancel_options() {
148
- $this->edit();
149
- }
150
-
151
- public function save_db_options() {
152
- global $wpdb;
153
- $id = WDW_CFM_Library::get('current_id', 0);
154
- $mail = (isset($_POST['mail']) ? esc_html(stripslashes($_POST['mail'])) : '');
155
- if (isset($_POST['mailToAdd']) && esc_html(stripslashes($_POST['mailToAdd'])) != '') {
156
- $mail .= esc_html(stripslashes($_POST['mailToAdd'])) . ',';
157
- }
158
- $submit_text = (isset($_POST['submit_text']) ? stripslashes($_POST['submit_text']) : '');
159
- $article_id = (isset($_POST['article_id']) ? stripslashes($_POST['article_id']) : '');
160
- $url = (isset($_POST['url']) ? esc_html(stripslashes($_POST['url'])) : '');
161
- $script_mail = (isset($_POST['script_mail']) ? stripslashes($_POST['script_mail']) : '%all%');
162
- $script_mail_user = (isset($_POST['script_mail_user']) ? stripslashes($_POST['script_mail_user']) : '%all%');
163
- $published = (isset($_POST['published']) ? esc_html(stripslashes($_POST['published'])) : 1);
164
- $savedb = (isset($_POST['savedb']) ? esc_html(stripslashes($_POST['savedb'])) : 1);
165
- $sendemail = (isset($_POST['sendemail']) ? esc_html(stripslashes($_POST['sendemail'])) : 1);
166
- $requiredmark = (isset($_POST['requiredmark']) ? esc_html(stripslashes($_POST['requiredmark'])) : '*');
167
- $mail_from = (isset($_POST['mail_from']) ? esc_html(stripslashes($_POST['mail_from'])) : '');
168
- $mail_from_name = (isset($_POST['mail_from_name']) ? esc_html(stripslashes($_POST['mail_from_name'])) : '');
169
- $reply_to = (isset($_POST['reply_to']) ? esc_html(stripslashes($_POST['reply_to'])) : '');
170
- $wpmail = (isset($_POST['wpmail']) ? esc_html(stripslashes($_POST['wpmail'])) : 1);
171
- if ($mail_from == "other") {
172
- $mail_from = (isset($_POST['mail_from_other']) ? esc_html(stripslashes($_POST['mail_from_other'])) : '');
173
- }
174
- if ($reply_to == "other") {
175
- $reply_to = (isset($_POST['reply_to_other']) ? esc_html(stripslashes($_POST['reply_to_other'])) : '');
176
- }
177
- $mail_from_user = (isset($_POST['mail_from_user']) ? esc_html(stripslashes($_POST['mail_from_user'])) : '');
178
- $mail_from_name_user = (isset($_POST['mail_from_name_user']) ? esc_html(stripslashes($_POST['mail_from_name_user'])) : '');
179
- $reply_to_user = (isset($_POST['reply_to_user']) ? esc_html(stripslashes($_POST['reply_to_user'])) : '');
180
- $send_to = '';
181
- for ($i = 0; $i < 20; $i++) {
182
- if (isset($_POST['send_to' . $i])) {
183
- $send_to .= '*' . esc_html(stripslashes($_POST['send_to' . $i])) . '*';
184
- }
185
- }
186
- if (isset($_POST['submit_text_type'])) {
187
- $submit_text_type = esc_html(stripslashes($_POST['submit_text_type']));
188
- if ($submit_text_type == 5) {
189
- $article_id = (isset($_POST['page_name']) ? stripslashes($_POST['page_name']) : 0);
190
- }
191
- else {
192
- $article_id = (isset($_POST['post_name']) ? stripslashes($_POST['post_name']) : 0);
193
- }
194
- }
195
- else {
196
- $submit_text_type = 0;
197
- $article_id = '';
198
- }
199
- $mail_cc = (isset($_POST['mail_cc']) ? esc_html(stripslashes($_POST['mail_cc'])) : '');
200
- $mail_cc_user = (isset($_POST['mail_cc_user']) ? esc_html(stripslashes($_POST['mail_cc_user'])) : '');
201
- $mail_bcc = (isset($_POST['mail_bcc']) ? esc_html(stripslashes($_POST['mail_bcc'])) : '');
202
- $mail_bcc_user = (isset($_POST['mail_bcc_user']) ? esc_html(stripslashes($_POST['mail_bcc_user'])) : '');
203
- $mail_subject = (isset($_POST['mail_subject']) ? esc_html(stripslashes($_POST['mail_subject'])) : '');
204
- $mail_subject_user = (isset($_POST['mail_subject_user']) ? esc_html(stripslashes($_POST['mail_subject_user'])) : '');
205
- $mail_mode = (isset($_POST['mail_mode']) ? esc_html(stripslashes($_POST['mail_mode'])) : 1);
206
- $mail_mode_user = (isset($_POST['mail_mode_user']) ? esc_html(stripslashes($_POST['mail_mode_user'])) : 1);
207
- $save = $wpdb->update($wpdb->prefix . 'contactformmaker', array(
208
- 'mail' => $mail,
209
- 'submit_text' => $submit_text,
210
- 'url' => $url,
211
- 'submit_text_type' => $submit_text_type,
212
- 'article_id' => $article_id,
213
- 'script_mail' => $script_mail,
214
- 'script_mail_user' => $script_mail_user,
215
- 'published' => $published,
216
- 'savedb' => $savedb,
217
- 'sendemail' => $sendemail,
218
- 'requiredmark' => $requiredmark,
219
- 'mail_from' => $mail_from,
220
- 'mail_from_name' => $mail_from_name,
221
- 'reply_to' => $reply_to,
222
- 'send_to' => $send_to,
223
- 'mail_from_user' => $mail_from_user,
224
- 'mail_from_name_user' => $mail_from_name_user,
225
- 'reply_to_user' => $reply_to_user,
226
- 'mail_cc' => $mail_cc,
227
- 'mail_cc_user' => $mail_cc_user,
228
- 'mail_bcc' => $mail_bcc,
229
- 'mail_bcc_user' => $mail_bcc_user,
230
- 'mail_subject' => $mail_subject,
231
- 'mail_subject_user' => $mail_subject_user,
232
- 'mail_mode' => $mail_mode,
233
- 'mail_mode_user' => $mail_mode_user,
234
- 'wpmail' => $wpmail,
235
- ), array('id' => $id));
236
- if ($save !== FALSE) {
237
- return 8;
238
- }
239
- else {
240
- return 2;
241
- }
242
- }
243
-
244
- public function save_as_copy() {
245
- $message = $this->save_db_as_copy();
246
- $page = WDW_CFM_Library::get('page');
247
- WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
248
- }
249
-
250
- public function save() {
251
- $message = $this->save_db();
252
- $page = WDW_CFM_Library::get('page');
253
- WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
254
- }
255
-
256
- public function apply() {
257
- $message = $this->save_db();
258
- global $wpdb;
259
- $id = (int) $wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "contactformmaker");
260
- $current_id = WDW_CFM_Library::get('current_id', $id);
261
- $page = WDW_CFM_Library::get('page');
262
- WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'edit', 'current_id' => $current_id, 'message' => $message), admin_url('admin.php')));
263
- }
264
-
265
- public function save_db() {
266
- global $wpdb;
267
- $id = WDW_CFM_Library::get('current_id', 0);
268
- $title = (isset($_POST['title']) ? esc_html(stripslashes($_POST['title'])) : '');
269
- $form_front = (isset($_POST['form_front']) ? stripslashes($_POST['form_front']) : '');
270
- $counter = (isset($_POST['counter']) ? (int) stripslashes($_POST['counter']) : 0);
271
- $label_order = (isset($_POST['label_order']) ? stripslashes($_POST['label_order']) : '');
272
- $label_order_current = (isset($_POST['label_order_current']) ? stripslashes($_POST['label_order_current']) : '');
273
- $public_key = (isset($_POST['public_key']) ? esc_html(stripslashes($_POST['public_key'])) : '');
274
- $private_key = (isset($_POST['private_key']) ? esc_html(stripslashes($_POST['private_key'])) : '');
275
- $recaptcha_theme = (isset($_POST['recaptcha_theme']) ? esc_html(stripslashes($_POST['recaptcha_theme'])) : '');
276
- $form_fields = (isset($_POST['form_fields']) ? stripslashes($_POST['form_fields']) : '');
277
- $disabled_fields = (isset($_POST['disabled_fields']) ? stripslashes($_POST['disabled_fields']) : '');
278
- $sortable = (isset($_POST['sortable']) ? esc_html(stripslashes($_POST['sortable'])) : 0);
279
- $label_id = array();
280
- $label_label = array();
281
- $label_all = explode('#****#', $label_order_current);
282
- $label_all = array_slice($label_all, 0, count($label_all) - 1);
283
- foreach ($label_all as $key => $label_each) {
284
- $label_id_each = explode('#**id**#', $label_each);
285
- if ($label_id_each[0] == 22) {
286
- $default_subject = $key;
287
- }
288
- array_push($label_id, $label_id_each[0]);
289
- $label_order_each = explode('#**label**#', $label_id_each[1]);
290
- array_push($label_label, $label_order_each[0]);
291
- }
292
- $disabled_fields_array = explode(',', $disabled_fields);
293
- $disabled_fields_array = array_slice($disabled_fields_array, 0, count($disabled_fields_array) - 1);
294
- $subject = $wpdb->get_row($wpdb->prepare('SELECT mail_subject,mail_subject_user FROM ' . $wpdb->prefix . 'contactformmaker WHERE id="%d"', $id));
295
- if (!in_array($label_id[$default_subject], $disabled_fields_array)) {
296
- $mail_subject = ($subject->mail_subject == '') ? '%' . $label_label[$default_subject] . '%' : $subject->mail_subject;
297
- $mail_subject_user = ($subject->mail_subject_user == '') ? '%' . $label_label[$default_subject] . '%' : $subject->mail_subject_user;
298
- }
299
- else {
300
- $mail_subject = $subject->mail_subject;
301
- $mail_subject_user = $subject->mail_subject_user;
302
- }
303
-
304
- if ($id != 0) {
305
- $save = $wpdb->update($wpdb->prefix . 'contactformmaker', array(
306
- 'title' => $title,
307
- 'form_front' => $form_front,
308
- 'counter' => $counter,
309
- 'label_order' => $label_order,
310
- 'label_order_current' => $label_order_current,
311
- 'public_key' => $public_key,
312
- 'private_key' => $private_key,
313
- 'recaptcha_theme' => $recaptcha_theme,
314
- 'form_fields' => $form_fields,
315
- 'disabled_fields' => $disabled_fields,
316
- 'mail_subject' => $mail_subject,
317
- 'mail_subject_user' => $mail_subject_user,
318
- 'sortable' => $sortable,
319
- ), array('id' => $id));
320
- }
321
- else {
322
- $save = $wpdb->insert($wpdb->prefix . 'contactformmaker', array(
323
- 'title' => $title,
324
- 'mail' => '',
325
- 'form_front' => $form_front,
326
- 'theme' => 0,
327
- 'submit_text' => '',
328
- 'url' => '',
329
- 'submit_text_type' => 0,
330
- 'script_mail' => '',
331
- 'script_mail_user' => '',
332
- 'counter' => $counter,
333
- 'published' => 1,
334
- 'label_order' => $label_order,
335
- 'label_order_current' => $label_order_current,
336
- 'public_key' => $public_key,
337
- 'private_key' => $private_key,
338
- 'recaptcha_theme' => $recaptcha_theme,
339
- 'form_fields' => $form_fields,
340
- 'savedb' => 1,
341
- 'sendemail' => 1,
342
- 'requiredmark' => '*',
343
- 'mail_from' => '',
344
- 'mail_from_name' => '',
345
- 'reply_to' => '',
346
- 'send_to' => '',
347
- 'autogen_layout' => 1,
348
- 'custom_front' => '',
349
- 'mail_from_user' => '',
350
- 'mail_from_name_user' => '',
351
- 'reply_to_user' => '',
352
- 'disabled_fields' => $disabled_fields,
353
- 'mail_cc' => '',
354
- 'mail_cc_user' => '',
355
- 'mail_bcc' => '',
356
- 'mail_bcc_user' => '',
357
- 'mail_subject' => '',
358
- 'mail_subject_user' => '',
359
- 'mail_mode' => 1,
360
- 'mail_mode_user' => 1,
361
- 'wpmail' => 1,
362
- 'sortable' => $sortable,
363
- ), array(
364
- '%s',
365
- '%s',
366
- '%s',
367
- '%d',
368
- '%s',
369
- '%s',
370
- '%d',
371
- '%s',
372
- '%s',
373
- '%d',
374
- '%d',
375
- '%s',
376
- '%s',
377
- '%s',
378
- '%s',
379
- '%s',
380
- '%s',
381
- '%d',
382
- '%d',
383
- '%s',
384
- '%s',
385
- '%s',
386
- '%s',
387
- '%s',
388
- '%d',
389
- '%s',
390
- '%s',
391
- '%s',
392
- '%s',
393
- '%s',
394
- '%s',
395
- '%s',
396
- '%s',
397
- '%s',
398
- '%s',
399
- '%s',
400
- '%d',
401
- '%d',
402
- '%d',
403
- '%d',
404
- ));
405
- $id = $wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "contactformmaker");
406
- $wpdb->insert($wpdb->prefix . 'contactformmaker_views', array(
407
- 'form_id' => $id,
408
- 'views' => 0
409
- ), array(
410
- '%d',
411
- '%d'
412
- ));
413
- }
414
- if ($save !== FALSE) {
415
- return 1;
416
- }
417
- else {
418
- return 2;
419
- }
420
- }
421
-
422
- public function save_db_as_copy() {
423
- global $wpdb;
424
- $id = WDW_CFM_Library::get('current_id', 0);
425
- $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'contactformmaker WHERE id="%d"', $id));
426
- $title = (isset($_POST['title']) ? esc_html(stripslashes($_POST['title'])) : '');
427
- $form_front = (isset($_POST['form_front']) ? stripslashes($_POST['form_front']) : '');
428
- $counter = (isset($_POST['counter']) ? (int) stripslashes($_POST['counter']) : 0);
429
- $label_order = (isset($_POST['label_order']) ? esc_html(stripslashes($_POST['label_order'])) : '');
430
- $label_order_current = (isset($_POST['label_order_current']) ? esc_html(stripslashes($_POST['label_order_current'])) : '');
431
- $public_key = (isset($_POST['public_key']) ? esc_html(stripslashes($_POST['public_key'])) : '');
432
- $private_key = (isset($_POST['private_key']) ? esc_html(stripslashes($_POST['private_key'])) : '');
433
- $recaptcha_theme = (isset($_POST['recaptcha_theme']) ? esc_html(stripslashes($_POST['recaptcha_theme'])) : '');
434
- $form_fields = (isset($_POST['form_fields']) ? stripslashes($_POST['form_fields']) : '');
435
- $disabled_fields = (isset($_POST['disabled_fields']) ? stripslashes($_POST['disabled_fields']) : '');
436
- $sortable = (isset($_POST['sortable']) ? esc_html(stripslashes($_POST['sortable'])) : 0);
437
-
438
- $save = $wpdb->insert($wpdb->prefix . 'contactformmaker', array(
439
- 'title' => $title,
440
- 'mail' => $row->mail,
441
- 'form_front' => $form_front,
442
- 'theme' => $row->theme,
443
- 'submit_text' => $row->submit_text,
444
- 'url' => $row->url,
445
- 'submit_text_type' => $row->submit_text_type,
446
- 'script_mail' => $row->script_mail,
447
- 'script_mail_user' => $row->script_mail_user,
448
- 'counter' => $counter,
449
- 'published' => $row->published,
450
- 'label_order' => $label_order,
451
- 'label_order_current' => $label_order_current,
452
- 'article_id' => $row->article_id,
453
- 'public_key' => $public_key,
454
- 'private_key' => $private_key,
455
- 'recaptcha_theme' => $recaptcha_theme,
456
- 'form_fields' => $form_fields,
457
- 'savedb' => $row->savedb,
458
- 'sendemail' => $row->sendemail,
459
- 'requiredmark' => $row->requiredmark,
460
- 'mail_from' => $row->mail_from,
461
- 'mail_from_name' => $row->mail_from_name,
462
- 'reply_to' => $row->reply_to,
463
- 'send_to' => $row->send_to,
464
- 'autogen_layout' => $row->autogen_layout,
465
- 'custom_front' => $row->custom_front,
466
- 'mail_from_user' => $row->mail_from_user,
467
- 'mail_from_name_user' => $row->mail_from_name_user,
468
- 'reply_to_user' => $row->reply_to_user,
469
- 'disabled_fields' => $disabled_fields,
470
- 'mail_cc' => $row->mail_cc,
471
- 'mail_cc_user' => $row->mail_cc_user,
472
- 'mail_bcc' => $row->mail_bcc,
473
- 'mail_bcc_user' => $row->mail_bcc_user,
474
- 'mail_subject' => $row->mail_subject,
475
- 'mail_subject_user' => $row->mail_subject_user,
476
- 'mail_mode' => $row->mail_mode,
477
- 'mail_mode_user' => $row->mail_mode_user,
478
- 'wpmail' => $row->wpmail,
479
- 'sortable' => $sortable,
480
- ), array(
481
- '%s',
482
- '%s',
483
- '%s',
484
- '%d',
485
- '%s',
486
- '%s',
487
- '%d',
488
- '%s',
489
- '%s',
490
- '%d',
491
- '%d',
492
- '%s',
493
- '%s',
494
- '%s',
495
- '%s',
496
- '%s',
497
- '%s',
498
- '%s',
499
- '%d',
500
- '%d',
501
- '%s',
502
- '%s',
503
- '%s',
504
- '%s',
505
- '%s',
506
- '%d',
507
- '%s',
508
- '%s',
509
- '%s',
510
- '%s',
511
- '%s',
512
- '%s',
513
- '%s',
514
- '%s',
515
- '%s',
516
- '%s',
517
- '%s',
518
- '%d',
519
- '%d',
520
- '%d',
521
- '%d',
522
- ));
523
- $id = $wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "contactformmaker");
524
- $wpdb->insert($wpdb->prefix . 'contactformmaker_views', array(
525
- 'form_id' => $id,
526
- 'views' => 0
527
- ), array(
528
- '%d',
529
- '%d'
530
- ));
531
- if ($save !== FALSE) {
532
- return 1;
533
- }
534
- else {
535
- return 2;
536
- }
537
- }
538
-
539
- public function delete($id) {
540
- global $wpdb;
541
- $query = $wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker WHERE id="%d"', $id);
542
- if ($wpdb->query($query)) {
543
- $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_views WHERE form_id="%d"', $id));
544
- $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_submits WHERE form_id="%d"', $id));
545
- $message = 3;
546
- }
547
- else {
548
- $message = 2;
549
- }
550
- $page = WDW_CFM_Library::get('page');
551
- WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
552
- }
553
-
554
- public function delete_all() {
555
- global $wpdb;
556
- $flag = FALSE;
557
- $isDefault = FALSE;
558
- $form_ids_col = $wpdb->get_col('SELECT id FROM ' . $wpdb->prefix . 'contactformmaker');
559
- foreach ($form_ids_col as $form_id) {
560
- if (isset($_POST['check_' . $form_id])) {
561
- $flag = TRUE;
562
- $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker WHERE id="%d"', $form_id));
563
- $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_views WHERE form_id="%d"', $form_id));
564
- $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_submits WHERE form_id="%d"', $form_id));
565
- }
566
- }
567
- if ($flag) {
568
- $message = 5;
569
- }
570
- else {
571
- $message = 6;
572
- }
573
- $page = WDW_CFM_Library::get('page');
574
- WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
575
- }
576
-
577
- ////////////////////////////////////////////////////////////////////////////////////////
578
- // Getters & Setters //
579
- ////////////////////////////////////////////////////////////////////////////////////////
580
- ////////////////////////////////////////////////////////////////////////////////////////
581
- // Private Methods //
582
- ////////////////////////////////////////////////////////////////////////////////////////
583
- ////////////////////////////////////////////////////////////////////////////////////////
584
- // Listeners //
585
- ////////////////////////////////////////////////////////////////////////////////////////
586
  }
1
+ <?php
2
+
3
+ class CFMControllerManage_cfm {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ ////////////////////////////////////////////////////////////////////////////////////////
14
+ // Constructor & Destructor //
15
+ ////////////////////////////////////////////////////////////////////////////////////////
16
+ public function __construct() {
17
+ }
18
+ ////////////////////////////////////////////////////////////////////////////////////////
19
+ // Public Methods //
20
+ ////////////////////////////////////////////////////////////////////////////////////////
21
+ public function execute() {
22
+ $task = WDW_CFM_Library::get('task');
23
+ $id = WDW_CFM_Library::get('current_id', 0);
24
+ $message = WDW_CFM_Library::get('message');
25
+ echo WDW_CFM_Library::message_id($message);
26
+ if (method_exists($this, $task)) {
27
+ check_admin_referer('nonce_cfm', 'nonce_cfm');
28
+ $this->$task($id);
29
+ }
30
+ else {
31
+ $this->display();
32
+ }
33
+ }
34
+
35
+ public function display() {
36
+ require_once WD_CFM_DIR . "/admin/models/CFMModelManage_cfm.php";
37
+ $model = new CFMModelManage_cfm();
38
+
39
+ require_once WD_CFM_DIR . "/admin/views/CFMViewManage_cfm.php";
40
+ $view = new CFMViewManage_cfm($model);
41
+ $view->display();
42
+ }
43
+
44
+ public function add() {
45
+ require_once WD_CFM_DIR . "/admin/models/CFMModelManage_cfm.php";
46
+ $model = new CFMModelManage_cfm();
47
+
48
+ require_once WD_CFM_DIR . "/admin/views/CFMViewManage_cfm.php";
49
+ $view = new CFMViewManage_cfm($model);
50
+ $view->edit(0);
51
+ }
52
+
53
+ public function edit() {
54
+ require_once WD_CFM_DIR . "/admin/models/CFMModelManage_cfm.php";
55
+ $model = new CFMModelManage_cfm();
56
+
57
+ require_once WD_CFM_DIR . "/admin/views/CFMViewManage_cfm.php";
58
+ $view = new CFMViewManage_cfm($model);
59
+ $id = WDW_CFM_Library::get('current_id', 0);
60
+ $view->edit($id);
61
+ }
62
+
63
+ public function form_layout() {
64
+ if (!isset($_GET['task'])) {
65
+ $this->save_db();
66
+ }
67
+ require_once WD_CFM_DIR . "/admin/models/CFMModelManage_cfm.php";
68
+ $model = new CFMModelManage_cfm();
69
+
70
+ require_once WD_CFM_DIR . "/admin/views/CFMViewManage_cfm.php";
71
+ $view = new CFMViewManage_cfm($model);
72
+ global $wpdb;
73
+ $id = WDW_CFM_Library::get('current_id', $wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "contactformmaker"));
74
+ $view->form_layout($id);
75
+ }
76
+
77
+ public function save_layout() {
78
+ $message = $this->save_db_layout();
79
+ $page = WDW_CFM_Library::get('page');
80
+ $current_id = WDW_CFM_Library::get('current_id', 0);
81
+ WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'edit', 'current_id' => $current_id, 'message' => $message), admin_url('admin.php')));
82
+ }
83
+
84
+ public function apply_layout() {
85
+ $message = $this->save_db_layout();
86
+ require_once WD_CFM_DIR . "/admin/models/CFMModelManage_cfm.php";
87
+ $model = new CFMModelManage_cfm();
88
+
89
+ require_once WD_CFM_DIR . "/admin/views/CFMViewManage_cfm.php";
90
+ $view = new CFMViewManage_cfm($model);
91
+ $page = WDW_CFM_Library::get('page');
92
+ $current_id = WDW_CFM_Library::get('current_id', 0);
93
+ WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'form_layout', 'current_id' => $current_id, 'message' => $message), admin_url('admin.php')));
94
+ }
95
+
96
+ public function save_db_layout() {
97
+ global $wpdb;
98
+ $id = WDW_CFM_Library::get('current_id', 0);
99
+ $custom_front = (isset($_POST['custom_front']) ? stripslashes($_POST['custom_front']) : '');
100
+ $autogen_layout = (isset($_POST['autogen_layout']) ? 1 : 0);
101
+ $save = $wpdb->update($wpdb->prefix . 'contactformmaker', array(
102
+ 'custom_front' => $custom_front,
103
+ 'autogen_layout' => $autogen_layout
104
+ ), array('id' => $id));
105
+ if ($save !== FALSE) {
106
+ return 1;
107
+ }
108
+ else {
109
+ return 2;
110
+ }
111
+ }
112
+
113
+ public function form_options() {
114
+ if (!isset($_GET['task'])) {
115
+ $this->save_db();
116
+ }
117
+ require_once WD_CFM_DIR . "/admin/models/CFMModelManage_cfm.php";
118
+ $model = new CFMModelManage_cfm();
119
+
120
+ require_once WD_CFM_DIR . "/admin/views/CFMViewManage_cfm.php";
121
+ $view = new CFMViewManage_cfm($model);
122
+ global $wpdb;
123
+ $id = WDW_CFM_Library::get('current_id', $wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "contactformmaker"));
124
+ $view->form_options($id);
125
+ }
126
+
127
+ public function save_options() {
128
+ $message = $this->save_db_options();
129
+ $page = WDW_CFM_Library::get('page');
130
+ $current_id = WDW_CFM_Library::get('current_id', 0);
131
+ WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'edit', 'current_id' => $current_id, 'message' => $message), admin_url('admin.php')));
132
+ }
133
+
134
+ public function apply_options() {
135
+ $message = $this->save_db_options();
136
+ require_once WD_CFM_DIR . "/admin/models/CFMModelManage_cfm.php";
137
+ $model = new CFMModelManage_cfm();
138
+
139
+ require_once WD_CFM_DIR . "/admin/views/CFMViewManage_cfm.php";
140
+ $view = new CFMViewManage_cfm($model);
141
+ $page = WDW_CFM_Library::get('page');
142
+ $current_id = WDW_CFM_Library::get('current_id', 0);
143
+ $fieldset_id = WDW_CFM_Library::get('fieldset_id', 'general');
144
+ WDW_CFM_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')));
145
+ }
146
+
147
+ public function cancel_options() {
148
+ $this->edit();
149
+ }
150
+
151
+ public function save_db_options() {
152
+ global $wpdb;
153
+ $id = WDW_CFM_Library::get('current_id', 0);
154
+ $mail = (isset($_POST['mail']) ? esc_html(stripslashes($_POST['mail'])) : '');
155
+ if (isset($_POST['mailToAdd']) && esc_html(stripslashes($_POST['mailToAdd'])) != '') {
156
+ $mail .= esc_html(stripslashes($_POST['mailToAdd'])) . ',';
157
+ }
158
+ $submit_text = (isset($_POST['submit_text']) ? stripslashes($_POST['submit_text']) : '');
159
+ $article_id = (isset($_POST['article_id']) ? stripslashes($_POST['article_id']) : '');
160
+ $url = (isset($_POST['url']) ? esc_html(stripslashes($_POST['url'])) : '');
161
+ $script_mail = (isset($_POST['script_mail']) ? stripslashes($_POST['script_mail']) : '%all%');
162
+ $script_mail_user = (isset($_POST['script_mail_user']) ? stripslashes($_POST['script_mail_user']) : '%all%');
163
+ $published = (isset($_POST['published']) ? esc_html(stripslashes($_POST['published'])) : 1);
164
+ $savedb = (isset($_POST['savedb']) ? esc_html(stripslashes($_POST['savedb'])) : 1);
165
+ $sendemail = (isset($_POST['sendemail']) ? esc_html(stripslashes($_POST['sendemail'])) : 1);
166
+ $requiredmark = (isset($_POST['requiredmark']) ? esc_html(stripslashes($_POST['requiredmark'])) : '*');
167
+ $mail_from = (isset($_POST['mail_from']) ? esc_html(stripslashes($_POST['mail_from'])) : '');
168
+ $mail_from_name = (isset($_POST['mail_from_name']) ? esc_html(stripslashes($_POST['mail_from_name'])) : '');
169
+ $reply_to = (isset($_POST['reply_to']) ? esc_html(stripslashes($_POST['reply_to'])) : '');
170
+ $wpmail = (isset($_POST['wpmail']) ? esc_html(stripslashes($_POST['wpmail'])) : 1);
171
+ if ($mail_from == "other") {
172
+ $mail_from = (isset($_POST['mail_from_other']) ? esc_html(stripslashes($_POST['mail_from_other'])) : '');
173
+ }
174
+ if ($reply_to == "other") {
175
+ $reply_to = (isset($_POST['reply_to_other']) ? esc_html(stripslashes($_POST['reply_to_other'])) : '');
176
+ }
177
+ $mail_from_user = (isset($_POST['mail_from_user']) ? esc_html(stripslashes($_POST['mail_from_user'])) : '');
178
+ $mail_from_name_user = (isset($_POST['mail_from_name_user']) ? esc_html(stripslashes($_POST['mail_from_name_user'])) : '');
179
+ $reply_to_user = (isset($_POST['reply_to_user']) ? esc_html(stripslashes($_POST['reply_to_user'])) : '');
180
+ $send_to = '';
181
+ for ($i = 0; $i < 20; $i++) {
182
+ if (isset($_POST['send_to' . $i])) {
183
+ $send_to .= '*' . esc_html(stripslashes($_POST['send_to' . $i])) . '*';
184
+ }
185
+ }
186
+ if (isset($_POST['submit_text_type'])) {
187
+ $submit_text_type = esc_html(stripslashes($_POST['submit_text_type']));
188
+ if ($submit_text_type == 5) {
189
+ $article_id = (isset($_POST['page_name']) ? stripslashes($_POST['page_name']) : 0);
190
+ }
191
+ else {
192
+ $article_id = (isset($_POST['post_name']) ? stripslashes($_POST['post_name']) : 0);
193
+ }
194
+ }
195
+ else {
196
+ $submit_text_type = 0;
197
+ $article_id = '';
198
+ }
199
+ $mail_cc = (isset($_POST['mail_cc']) ? esc_html(stripslashes($_POST['mail_cc'])) : '');
200
+ $mail_cc_user = (isset($_POST['mail_cc_user']) ? esc_html(stripslashes($_POST['mail_cc_user'])) : '');
201
+ $mail_bcc = (isset($_POST['mail_bcc']) ? esc_html(stripslashes($_POST['mail_bcc'])) : '');
202
+ $mail_bcc_user = (isset($_POST['mail_bcc_user']) ? esc_html(stripslashes($_POST['mail_bcc_user'])) : '');
203
+ $mail_subject = (isset($_POST['mail_subject']) ? esc_html(stripslashes($_POST['mail_subject'])) : '');
204
+ $mail_subject_user = (isset($_POST['mail_subject_user']) ? esc_html(stripslashes($_POST['mail_subject_user'])) : '');
205
+ $mail_mode = (isset($_POST['mail_mode']) ? esc_html(stripslashes($_POST['mail_mode'])) : 1);
206
+ $mail_mode_user = (isset($_POST['mail_mode_user']) ? esc_html(stripslashes($_POST['mail_mode_user'])) : 1);
207
+ $save = $wpdb->update($wpdb->prefix . 'contactformmaker', array(
208
+ 'mail' => $mail,
209
+ 'submit_text' => $submit_text,
210
+ 'url' => $url,
211
+ 'submit_text_type' => $submit_text_type,
212
+ 'article_id' => $article_id,
213
+ 'script_mail' => $script_mail,
214
+ 'script_mail_user' => $script_mail_user,
215
+ 'published' => $published,
216
+ 'savedb' => $savedb,
217
+ 'sendemail' => $sendemail,
218
+ 'requiredmark' => $requiredmark,
219
+ 'mail_from' => $mail_from,
220
+ 'mail_from_name' => $mail_from_name,
221
+ 'reply_to' => $reply_to,
222
+ 'send_to' => $send_to,
223
+ 'mail_from_user' => $mail_from_user,
224
+ 'mail_from_name_user' => $mail_from_name_user,
225
+ 'reply_to_user' => $reply_to_user,
226
+ 'mail_cc' => $mail_cc,
227
+ 'mail_cc_user' => $mail_cc_user,
228
+ 'mail_bcc' => $mail_bcc,
229
+ 'mail_bcc_user' => $mail_bcc_user,
230
+ 'mail_subject' => $mail_subject,
231
+ 'mail_subject_user' => $mail_subject_user,
232
+ 'mail_mode' => $mail_mode,
233
+ 'mail_mode_user' => $mail_mode_user,
234
+ 'wpmail' => $wpmail,
235
+ ), array('id' => $id));
236
+ if ($save !== FALSE) {
237
+ return 8;
238
+ }
239
+ else {
240
+ return 2;
241
+ }
242
+ }
243
+
244
+ public function save_as_copy() {
245
+ $message = $this->save_db_as_copy();
246
+ $page = WDW_CFM_Library::get('page');
247
+ WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
248
+ }
249
+
250
+ public function save() {
251
+ $message = $this->save_db();
252
+ $page = WDW_CFM_Library::get('page');
253
+ WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
254
+ }
255
+
256
+ public function apply() {
257
+ $message = $this->save_db();
258
+ global $wpdb;
259
+ $id = (int) $wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "contactformmaker");
260
+ $current_id = WDW_CFM_Library::get('current_id', $id);
261
+ $page = WDW_CFM_Library::get('page');
262
+ WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'edit', 'current_id' => $current_id, 'message' => $message), admin_url('admin.php')));
263
+ }
264
+
265
+ public function save_db() {
266
+ global $wpdb;
267
+ $id = WDW_CFM_Library::get('current_id', 0);
268
+ $title = (isset($_POST['title']) ? esc_html(stripslashes($_POST['title'])) : '');
269
+ $form_front = (isset($_POST['form_front']) ? stripslashes($_POST['form_front']) : '');
270
+ $counter = (isset($_POST['counter']) ? (int) stripslashes($_POST['counter']) : 0);
271
+ $label_order = (isset($_POST['label_order']) ? stripslashes($_POST['label_order']) : '');
272
+ $label_order_current = (isset($_POST['label_order_current']) ? stripslashes($_POST['label_order_current']) : '');
273
+ $public_key = (isset($_POST['public_key']) ? esc_html(stripslashes($_POST['public_key'])) : '');
274
+ $private_key = (isset($_POST['private_key']) ? esc_html(stripslashes($_POST['private_key'])) : '');
275
+ $recaptcha_theme = (isset($_POST['recaptcha_theme']) ? esc_html(stripslashes($_POST['recaptcha_theme'])) : '');
276
+ $form_fields = (isset($_POST['form_fields']) ? stripslashes($_POST['form_fields']) : '');
277
+ $disabled_fields = (isset($_POST['disabled_fields']) ? stripslashes($_POST['disabled_fields']) : '');
278
+ $sortable = (isset($_POST['sortable']) ? esc_html(stripslashes($_POST['sortable'])) : 0);
279
+ $label_id = array();
280
+ $label_label = array();
281
+ $label_all = explode('#****#', $label_order_current);
282
+ $label_all = array_slice($label_all, 0, count($label_all) - 1);
283
+ foreach ($label_all as $key => $label_each) {
284
+ $label_id_each = explode('#**id**#', $label_each);
285
+ if ($label_id_each[0] == 22) {
286
+ $default_subject = $key;
287
+ }
288
+ array_push($label_id, $label_id_each[0]);
289
+ $label_order_each = explode('#**label**#', $label_id_each[1]);
290
+ array_push($label_label, $label_order_each[0]);
291
+ }
292
+ $disabled_fields_array = explode(',', $disabled_fields);
293
+ $disabled_fields_array = array_slice($disabled_fields_array, 0, count($disabled_fields_array) - 1);
294
+ $subject = $wpdb->get_row($wpdb->prepare('SELECT mail_subject,mail_subject_user FROM ' . $wpdb->prefix . 'contactformmaker WHERE id="%d"', $id));
295
+ if (!in_array($label_id[$default_subject], $disabled_fields_array)) {
296
+ $mail_subject = ($subject->mail_subject == '') ? '%' . $label_label[$default_subject] . '%' : $subject->mail_subject;
297
+ $mail_subject_user = ($subject->mail_subject_user == '') ? '%' . $label_label[$default_subject] . '%' : $subject->mail_subject_user;
298
+ }
299
+ else {
300
+ $mail_subject = $subject->mail_subject;
301
+ $mail_subject_user = $subject->mail_subject_user;
302
+ }
303
+
304
+ if ($id != 0) {
305
+ $save = $wpdb->update($wpdb->prefix . 'contactformmaker', array(
306
+ 'title' => $title,
307
+ 'form_front' => $form_front,
308
+ 'counter' => $counter,
309
+ 'label_order' => $label_order,
310
+ 'label_order_current' => $label_order_current,
311
+ 'public_key' => $public_key,
312
+ 'private_key' => $private_key,
313
+ 'recaptcha_theme' => $recaptcha_theme,
314
+ 'form_fields' => $form_fields,
315
+ 'disabled_fields' => $disabled_fields,
316
+ 'mail_subject' => $mail_subject,
317
+ 'mail_subject_user' => $mail_subject_user,
318
+ 'sortable' => $sortable,
319
+ ), array('id' => $id));
320
+ }
321
+ else {
322
+ $save = $wpdb->insert($wpdb->prefix . 'contactformmaker', array(
323
+ 'title' => $title,
324
+ 'mail' => '',
325
+ 'form_front' => $form_front,
326
+ 'theme' => 0,
327
+ 'submit_text' => '',
328
+ 'url' => '',
329
+ 'submit_text_type' => 0,
330
+ 'script_mail' => '',
331
+ 'script_mail_user' => '',
332
+ 'counter' => $counter,
333
+ 'published' => 1,
334
+ 'label_order' => $label_order,
335
+ 'label_order_current' => $label_order_current,
336
+ 'public_key' => $public_key,
337
+ 'private_key' => $private_key,
338
+ 'recaptcha_theme' => $recaptcha_theme,
339
+ 'form_fields' => $form_fields,
340
+ 'savedb' => 1,
341
+ 'sendemail' => 1,
342
+ 'requiredmark' => '*',
343
+ 'mail_from' => '',
344
+ 'mail_from_name' => '',
345
+ 'reply_to' => '',
346
+ 'send_to' => '',
347
+ 'autogen_layout' => 1,
348
+ 'custom_front' => '',
349
+ 'mail_from_user' => '',
350
+ 'mail_from_name_user' => '',
351
+ 'reply_to_user' => '',
352
+ 'disabled_fields' => $disabled_fields,
353
+ 'mail_cc' => '',
354
+ 'mail_cc_user' => '',
355
+ 'mail_bcc' => '',
356
+ 'mail_bcc_user' => '',
357
+ 'mail_subject' => '',
358
+ 'mail_subject_user' => '',
359
+ 'mail_mode' => 1,
360
+ 'mail_mode_user' => 1,
361
+ 'wpmail' => 1,
362
+ 'sortable' => $sortable,
363
+ ), array(
364
+ '%s',
365
+ '%s',
366
+ '%s',
367
+ '%d',
368
+ '%s',
369
+ '%s',
370
+ '%d',
371
+ '%s',
372
+ '%s',
373
+ '%d',
374
+ '%d',
375
+ '%s',
376
+ '%s',
377
+ '%s',
378
+ '%s',
379
+ '%s',
380
+ '%s',
381
+ '%d',
382
+ '%d',
383
+ '%s',
384
+ '%s',
385
+ '%s',
386
+ '%s',
387
+ '%s',
388
+ '%d',
389
+ '%s',
390
+ '%s',
391
+ '%s',
392
+ '%s',
393
+ '%s',
394
+ '%s',
395
+ '%s',
396
+ '%s',
397
+ '%s',
398
+ '%s',
399
+ '%s',
400
+ '%d',
401
+ '%d',
402
+ '%d',
403
+ '%d',
404
+ ));
405
+ $id = $wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "contactformmaker");
406
+ $wpdb->insert($wpdb->prefix . 'contactformmaker_views', array(
407
+ 'form_id' => $id,
408
+ 'views' => 0
409
+ ), array(
410
+ '%d',
411
+ '%d'
412
+ ));
413
+ }
414
+ if ($save !== FALSE) {
415
+ return 1;
416
+ }
417
+ else {
418
+ return 2;
419
+ }
420
+ }
421
+
422
+ public function save_db_as_copy() {
423
+ global $wpdb;
424
+ $id = WDW_CFM_Library::get('current_id', 0);
425
+ $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'contactformmaker WHERE id="%d"', $id));
426
+ $title = (isset($_POST['title']) ? esc_html(stripslashes($_POST['title'])) : '');
427
+ $form_front = (isset($_POST['form_front']) ? stripslashes($_POST['form_front']) : '');
428
+ $counter = (isset($_POST['counter']) ? (int) stripslashes($_POST['counter']) : 0);
429
+ $label_order = (isset($_POST['label_order']) ? esc_html(stripslashes($_POST['label_order'])) : '');
430
+ $label_order_current = (isset($_POST['label_order_current']) ? esc_html(stripslashes($_POST['label_order_current'])) : '');
431
+ $public_key = (isset($_POST['public_key']) ? esc_html(stripslashes($_POST['public_key'])) : '');
432
+ $private_key = (isset($_POST['private_key']) ? esc_html(stripslashes($_POST['private_key'])) : '');
433
+ $recaptcha_theme = (isset($_POST['recaptcha_theme']) ? esc_html(stripslashes($_POST['recaptcha_theme'])) : '');
434
+ $form_fields = (isset($_POST['form_fields']) ? stripslashes($_POST['form_fields']) : '');
435
+ $disabled_fields = (isset($_POST['disabled_fields']) ? stripslashes($_POST['disabled_fields']) : '');
436
+ $sortable = (isset($_POST['sortable']) ? esc_html(stripslashes($_POST['sortable'])) : 0);
437
+
438
+ $save = $wpdb->insert($wpdb->prefix . 'contactformmaker', array(
439
+ 'title' => $title,
440
+ 'mail' => $row->mail,
441
+ 'form_front' => $form_front,
442
+ 'theme' => $row->theme,
443
+ 'submit_text' => $row->submit_text,
444
+ 'url' => $row->url,
445
+ 'submit_text_type' => $row->submit_text_type,
446
+ 'script_mail' => $row->script_mail,
447
+ 'script_mail_user' => $row->script_mail_user,
448
+ 'counter' => $counter,
449
+ 'published' => $row->published,
450
+ 'label_order' => $label_order,
451
+ 'label_order_current' => $label_order_current,
452
+ 'article_id' => $row->article_id,
453
+ 'public_key' => $public_key,
454
+ 'private_key' => $private_key,
455
+ 'recaptcha_theme' => $recaptcha_theme,
456
+ 'form_fields' => $form_fields,
457
+ 'savedb' => $row->savedb,
458
+ 'sendemail' => $row->sendemail,
459
+ 'requiredmark' => $row->requiredmark,
460
+ 'mail_from' => $row->mail_from,
461
+ 'mail_from_name' => $row->mail_from_name,
462
+ 'reply_to' => $row->reply_to,
463
+ 'send_to' => $row->send_to,
464
+ 'autogen_layout' => $row->autogen_layout,
465
+ 'custom_front' => $row->custom_front,
466
+ 'mail_from_user' => $row->mail_from_user,
467
+ 'mail_from_name_user' => $row->mail_from_name_user,
468
+ 'reply_to_user' => $row->reply_to_user,
469
+ 'disabled_fields' => $disabled_fields,
470
+ 'mail_cc' => $row->mail_cc,
471
+ 'mail_cc_user' => $row->mail_cc_user,
472
+ 'mail_bcc' => $row->mail_bcc,
473
+ 'mail_bcc_user' => $row->mail_bcc_user,
474
+ 'mail_subject' => $row->mail_subject,
475
+ 'mail_subject_user' => $row->mail_subject_user,
476
+ 'mail_mode' => $row->mail_mode,
477
+ 'mail_mode_user' => $row->mail_mode_user,
478
+ 'wpmail' => $row->wpmail,
479
+ 'sortable' => $sortable,
480
+ ), array(
481
+ '%s',
482
+ '%s',
483
+ '%s',
484
+ '%d',
485
+ '%s',
486
+ '%s',
487
+ '%d',
488
+ '%s',
489
+ '%s',
490
+ '%d',
491
+ '%d',
492
+ '%s',
493
+ '%s',
494
+ '%s',
495
+ '%s',
496
+ '%s',
497
+ '%s',
498
+ '%s',
499
+ '%d',
500
+ '%d',
501
+ '%s',
502
+ '%s',
503
+ '%s',
504
+ '%s',
505
+ '%s',
506
+ '%d',
507
+ '%s',
508
+ '%s',
509
+ '%s',
510
+ '%s',
511
+ '%s',
512
+ '%s',
513
+ '%s',
514
+ '%s',
515
+ '%s',
516
+ '%s',
517
+ '%s',
518
+ '%d',
519
+ '%d',
520
+ '%d',
521
+ '%d',
522
+ ));
523
+ $id = $wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "contactformmaker");
524
+ $wpdb->insert($wpdb->prefix . 'contactformmaker_views', array(
525
+ 'form_id' => $id,
526
+ 'views' => 0
527
+ ), array(
528
+ '%d',
529
+ '%d'
530
+ ));
531
+ if ($save !== FALSE) {
532
+ return 1;
533
+ }
534
+ else {
535
+ return 2;
536
+ }
537
+ }
538
+
539
+ public function delete($id) {
540
+ global $wpdb;
541
+ $query = $wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker WHERE id="%d"', $id);
542
+ if ($wpdb->query($query)) {
543
+ $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_views WHERE form_id="%d"', $id));
544
+ $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_submits WHERE form_id="%d"', $id));
545
+ $message = 3;
546
+ }
547
+ else {
548
+ $message = 2;
549
+ }
550
+ $page = WDW_CFM_Library::get('page');
551
+ WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
552
+ }
553
+
554
+ public function delete_all() {
555
+ global $wpdb;
556
+ $flag = FALSE;
557
+ $isDefault = FALSE;
558
+ $form_ids_col = $wpdb->get_col('SELECT id FROM ' . $wpdb->prefix . 'contactformmaker');
559
+ foreach ($form_ids_col as $form_id) {
560
+ if (isset($_POST['check_' . $form_id])) {
561
+ $flag = TRUE;
562
+ $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker WHERE id="%d"', $form_id));
563
+ $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_views WHERE form_id="%d"', $form_id));
564
+ $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_submits WHERE form_id="%d"', $form_id));
565
+ }
566
+ }
567
+ if ($flag) {
568
+ $message = 5;
569
+ }
570
+ else {
571
+ $message = 6;
572
+ }
573
+ $page = WDW_CFM_Library::get('page');
574
+ WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
575
+ }
576
+
577
+ ////////////////////////////////////////////////////////////////////////////////////////
578
+ // Getters & Setters //
579
+ ////////////////////////////////////////////////////////////////////////////////////////
580
+ ////////////////////////////////////////////////////////////////////////////////////////
581
+ // Private Methods //
582
+ ////////////////////////////////////////////////////////////////////////////////////////
583
+ ////////////////////////////////////////////////////////////////////////////////////////
584
+ // Listeners //
585
+ ////////////////////////////////////////////////////////////////////////////////////////
586
  }
admin/controllers/CFMControllerSubmissions_cfm.php CHANGED
@@ -1,53 +1,53 @@
1
- <?php
2
-
3
- class CFMControllerSubmissions_cfm {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
- ////////////////////////////////////////////////////////////////////////////////////////
14
- // Constructor & Destructor //
15
- ////////////////////////////////////////////////////////////////////////////////////////
16
- public function __construct() {
17
- }
18
- ////////////////////////////////////////////////////////////////////////////////////////
19
- // Public Methods //
20
- ////////////////////////////////////////////////////////////////////////////////////////
21
- public function execute() {
22
- $task = ((isset($_POST['task'])) ? esc_html($_POST['task']) : '');
23
- $id = ((isset($_POST['current_id'])) ? esc_html($_POST['current_id']) : 0);
24
- $form_id = ((isset($_POST['form_id']) && esc_html($_POST['form_id']) != '') ? esc_html($_POST['form_id']) : 0);
25
- if (method_exists($this, $task)) {
26
- check_admin_referer('nonce_cfm', 'nonce_cfm');
27
- $this->$task($id);
28
- }
29
- else {
30
- $this->display($form_id);
31
- }
32
- }
33
-
34
- public function display($form_id) {
35
- $form_id = ((isset($_POST['form_id']) && esc_html($_POST['form_id']) != '') ? esc_html($_POST['form_id']) : 0);
36
- require_once WD_CFM_DIR . "/admin/models/CFMModelSubmissions_cfm.php";
37
- $model = new CFMModelSubmissions_cfm();
38
-
39
- require_once WD_CFM_DIR . "/admin/views/CFMViewSubmissions_cfm.php";
40
- $view = new CFMViewSubmissions_cfm($model);
41
- $view->display($form_id);
42
- }
43
-
44
- ////////////////////////////////////////////////////////////////////////////////////////
45
- // Getters & Setters //
46
- ////////////////////////////////////////////////////////////////////////////////////////
47
- ////////////////////////////////////////////////////////////////////////////////////////
48
- // Private Methods //
49
- ////////////////////////////////////////////////////////////////////////////////////////
50
- ////////////////////////////////////////////////////////////////////////////////////////
51
- // Listeners //
52
- ////////////////////////////////////////////////////////////////////////////////////////
53
  }
1
+ <?php
2
+
3
+ class CFMControllerSubmissions_cfm {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ ////////////////////////////////////////////////////////////////////////////////////////
14
+ // Constructor & Destructor //
15
+ ////////////////////////////////////////////////////////////////////////////////////////
16
+ public function __construct() {
17
+ }
18
+ ////////////////////////////////////////////////////////////////////////////////////////
19
+ // Public Methods //
20
+ ////////////////////////////////////////////////////////////////////////////////////////
21
+ public function execute() {
22
+ $task = ((isset($_POST['task'])) ? esc_html($_POST['task']) : '');
23
+ $id = ((isset($_POST['current_id'])) ? esc_html($_POST['current_id']) : 0);
24
+ $form_id = ((isset($_POST['form_id']) && esc_html($_POST['form_id']) != '') ? esc_html($_POST['form_id']) : 0);
25
+ if (method_exists($this, $task)) {
26
+ check_admin_referer('nonce_cfm', 'nonce_cfm');
27
+ $this->$task($id);
28
+ }
29
+ else {
30
+ $this->display($form_id);
31
+ }
32
+ }
33
+
34
+ public function display($form_id) {
35
+ $form_id = ((isset($_POST['form_id']) && esc_html($_POST['form_id']) != '') ? esc_html($_POST['form_id']) : 0);
36
+ require_once WD_CFM_DIR . "/admin/models/CFMModelSubmissions_cfm.php";
37
+ $model = new CFMModelSubmissions_cfm();
38
+
39
+ require_once WD_CFM_DIR . "/admin/views/CFMViewSubmissions_cfm.php";
40
+ $view = new CFMViewSubmissions_cfm($model);
41
+ $view->display($form_id);
42
+ }
43
+
44
+ ////////////////////////////////////////////////////////////////////////////////////////
45
+ // Getters & Setters //
46
+ ////////////////////////////////////////////////////////////////////////////////////////
47
+ ////////////////////////////////////////////////////////////////////////////////////////
48
+ // Private Methods //
49
+ ////////////////////////////////////////////////////////////////////////////////////////
50
+ ////////////////////////////////////////////////////////////////////////////////////////
51
+ // Listeners //
52
+ ////////////////////////////////////////////////////////////////////////////////////////
53
  }
admin/controllers/CFMControllerThemes_cfm.php CHANGED
@@ -1,53 +1,53 @@
1
- <?php
2
-
3
- class CFMControllerThemes_cfm {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
- ////////////////////////////////////////////////////////////////////////////////////////
14
- // Constructor & Destructor //
15
- ////////////////////////////////////////////////////////////////////////////////////////
16
- public function __construct() {
17
- }
18
- ////////////////////////////////////////////////////////////////////////////////////////
19
- // Public Methods //
20
- ////////////////////////////////////////////////////////////////////////////////////////
21
- public function execute() {
22
- $task = WDW_CFM_Library::get('task');
23
- $id = WDW_CFM_Library::get('current_id', 0);
24
- $message = WDW_CFM_Library::get('message');
25
- echo WDW_CFM_Library::message_id($message);
26
- if (method_exists($this, $task)) {
27
- check_admin_referer('nonce_cfm', 'nonce_cfm');
28
- $this->$task($id);
29
- }
30
- else {
31
- $this->display();
32
- }
33
- }
34
-
35
- public function display() {
36
- require_once WD_CFM_DIR . "/admin/models/CFMModelThemes_cfm.php";
37
- $model = new CFMModelThemes_cfm();
38
-
39
- require_once WD_CFM_DIR . "/admin/views/CFMViewThemes_cfm.php";
40
- $view = new CFMViewThemes_cfm($model);
41
- $view->display();
42
- }
43
-
44
- ////////////////////////////////////////////////////////////////////////////////////////
45
- // Getters & Setters //
46
- ////////////////////////////////////////////////////////////////////////////////////////
47
- ////////////////////////////////////////////////////////////////////////////////////////
48
- // Private Methods //
49
- ////////////////////////////////////////////////////////////////////////////////////////
50
- ////////////////////////////////////////////////////////////////////////////////////////
51
- // Listeners //
52
- ////////////////////////////////////////////////////////////////////////////////////////
53
  }
1
+ <?php
2
+
3
+ class CFMControllerThemes_cfm {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ ////////////////////////////////////////////////////////////////////////////////////////
14
+ // Constructor & Destructor //
15
+ ////////////////////////////////////////////////////////////////////////////////////////
16
+ public function __construct() {
17
+ }
18
+ ////////////////////////////////////////////////////////////////////////////////////////
19
+ // Public Methods //
20
+ ////////////////////////////////////////////////////////////////////////////////////////
21
+ public function execute() {
22
+ $task = WDW_CFM_Library::get('task');
23
+ $id = WDW_CFM_Library::get('current_id', 0);
24
+ $message = WDW_CFM_Library::get('message');
25
+ echo WDW_CFM_Library::message_id($message);
26
+ if (method_exists($this, $task)) {
27
+ check_admin_referer('nonce_cfm', 'nonce_cfm');
28
+ $this->$task($id);
29
+ }
30
+ else {
31
+ $this->display();
32
+ }
33
+ }
34
+
35
+ public function display() {
36
+ require_once WD_CFM_DIR . "/admin/models/CFMModelThemes_cfm.php";
37
+ $model = new CFMModelThemes_cfm();
38
+
39
+ require_once WD_CFM_DIR . "/admin/views/CFMViewThemes_cfm.php";
40
+ $view = new CFMViewThemes_cfm($model);
41
+ $view->display();
42
+ }
43
+
44
+ ////////////////////////////////////////////////////////////////////////////////////////
45
+ // Getters & Setters //
46
+ ////////////////////////////////////////////////////////////////////////////////////////
47
+ ////////////////////////////////////////////////////////////////////////////////////////
48
+ // Private Methods //
49
+ ////////////////////////////////////////////////////////////////////////////////////////
50
+ ////////////////////////////////////////////////////////////////////////////////////////
51
+ // Listeners //
52
+ ////////////////////////////////////////////////////////////////////////////////////////
53
  }
admin/controllers/CFMControllerUninstall_cfm.php CHANGED
@@ -1,58 +1,58 @@
1
- <?php
2
-
3
- class CFMControllerUninstall_cfm {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
- ////////////////////////////////////////////////////////////////////////////////////////
14
- // Constructor & Destructor //
15
- ////////////////////////////////////////////////////////////////////////////////////////
16
- public function __construct() {
17
- }
18
- ////////////////////////////////////////////////////////////////////////////////////////
19
- // Public Methods //
20
- ////////////////////////////////////////////////////////////////////////////////////////
21
- public function execute() {
22
- $task = ((isset($_POST['task'])) ? esc_html(stripslashes($_POST['task'])) : '');
23
- if (method_exists($this, $task)) {
24
- check_admin_referer('nonce_cfm', 'nonce_cfm');
25
- $this->$task();
26
- }
27
- else {
28
- $this->display();
29
- }
30
- }
31
-
32
- public function display() {
33
- require_once WD_CFM_DIR . "/admin/models/CFMModelUninstall_cfm.php";
34
- $model = new CFMModelUninstall_cfm();
35
-
36
- require_once WD_CFM_DIR . "/admin/views/CFMViewUninstall_cfm.php";
37
- $view = new CFMViewUninstall_cfm($model);
38
- $view->display();
39
- }
40
-
41
- public function uninstall() {
42
- require_once WD_CFM_DIR . "/admin/models/CFMModelUninstall_cfm.php";
43
- $model = new CFMModelUninstall_cfm();
44
-
45
- require_once WD_CFM_DIR . "/admin/views/CFMViewUninstall_cfm.php";
46
- $view = new CFMViewUninstall_cfm($model);
47
- $view->uninstall();
48
- }
49
- ////////////////////////////////////////////////////////////////////////////////////////
50
- // Getters & Setters //
51
- ////////////////////////////////////////////////////////////////////////////////////////
52
- ////////////////////////////////////////////////////////////////////////////////////////
53
- // Private Methods //
54
- ////////////////////////////////////////////////////////////////////////////////////////
55
- ////////////////////////////////////////////////////////////////////////////////////////
56
- // Listeners //
57
- ////////////////////////////////////////////////////////////////////////////////////////
58
  }
1
+ <?php
2
+
3
+ class CFMControllerUninstall_cfm {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ ////////////////////////////////////////////////////////////////////////////////////////
14
+ // Constructor & Destructor //
15
+ ////////////////////////////////////////////////////////////////////////////////////////
16
+ public function __construct() {
17
+ }
18
+ ////////////////////////////////////////////////////////////////////////////////////////
19
+ // Public Methods //
20
+ ////////////////////////////////////////////////////////////////////////////////////////
21
+ public function execute() {
22
+ $task = ((isset($_POST['task'])) ? esc_html(stripslashes($_POST['task'])) : '');
23
+ if (method_exists($this, $task)) {
24
+ check_admin_referer('nonce_cfm', 'nonce_cfm');
25
+ $this->$task();
26
+ }
27
+ else {
28
+ $this->display();
29
+ }
30
+ }
31
+
32
+ public function display() {
33
+ require_once WD_CFM_DIR . "/admin/models/CFMModelUninstall_cfm.php";
34
+ $model = new CFMModelUninstall_cfm();
35
+
36
+ require_once WD_CFM_DIR . "/admin/views/CFMViewUninstall_cfm.php";
37
+ $view = new CFMViewUninstall_cfm($model);
38
+ $view->display();
39
+ }
40
+
41
+ public function uninstall() {
42
+ require_once WD_CFM_DIR . "/admin/models/CFMModelUninstall_cfm.php";
43
+ $model = new CFMModelUninstall_cfm();
44
+
45
+ require_once WD_CFM_DIR . "/admin/views/CFMViewUninstall_cfm.php";
46
+ $view = new CFMViewUninstall_cfm($model);
47
+ $view->uninstall();
48
+ }
49
+ ////////////////////////////////////////////////////////////////////////////////////////
50
+ // Getters & Setters //
51
+ ////////////////////////////////////////////////////////////////////////////////////////
52
+ ////////////////////////////////////////////////////////////////////////////////////////
53
+ // Private Methods //
54
+ ////////////////////////////////////////////////////////////////////////////////////////
55
+ ////////////////////////////////////////////////////////////////////////////////////////
56
+ // Listeners //
57
+ ////////////////////////////////////////////////////////////////////////////////////////
58
  }
admin/controllers/CFMControllerWidget.php CHANGED
@@ -1,61 +1,61 @@
1
- <?php
2
-
3
- class CFMControllerWidget extends WP_Widget {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
- private $view;
14
- private $model;
15
- ////////////////////////////////////////////////////////////////////////////////////////
16
- // Constructor & Destructor //
17
- ////////////////////////////////////////////////////////////////////////////////////////
18
- public function __construct() {
19
- $widget_ops = array(
20
- 'classname' => 'contact_form_maker_widget',
21
- 'description' => __('Add Conatct Form Builder widget.', 'contact_form_maker')
22
- );
23
- // Widget Control Settings.
24
- $control_ops = array('id_base' => 'contact_form_maker_widget');
25
- // Create the widget.
26
- parent::__construct('contact_form_maker_widget', 'Contact Form Builder', $widget_ops, $control_ops);
27
- require_once WD_CFM_DIR . "/admin/models/CFMModelWidget.php";
28
- $this->model = new CFMModelWidget();
29
-
30
- require_once WD_CFM_DIR . "/admin/views/CFMViewWidget.php";
31
- $this->view = new CFMViewWidget($this->model);
32
- }
33
- ////////////////////////////////////////////////////////////////////////////////////////
34
- // Public Methods //
35
- ////////////////////////////////////////////////////////////////////////////////////////
36
-
37
- public function widget($args, $instance) {
38
- $this->view->widget($args, $instance);
39
- }
40
-
41
- public function form($instance) {
42
- $this->view->form($instance, parent::get_field_id('title'), parent::get_field_name('title'), parent::get_field_id('form_id'), parent::get_field_name('form_id'));
43
- }
44
-
45
- // Update Settings.
46
- public function update($new_instance, $old_instance) {
47
- $instance['title'] = $new_instance['title'];
48
- $instance['form_id'] = $new_instance['form_id'];
49
- return $instance;
50
- }
51
-
52
- ////////////////////////////////////////////////////////////////////////////////////////
53
- // Getters & Setters //
54
- ////////////////////////////////////////////////////////////////////////////////////////
55
- ////////////////////////////////////////////////////////////////////////////////////////
56
- // Private Methods //
57
- ////////////////////////////////////////////////////////////////////////////////////////
58
- ////////////////////////////////////////////////////////////////////////////////////////
59
- // Listeners //
60
- ////////////////////////////////////////////////////////////////////////////////////////
61
  }
1
+ <?php
2
+
3
+ class CFMControllerWidget extends WP_Widget {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ private $view;
14
+ private $model;
15
+ ////////////////////////////////////////////////////////////////////////////////////////
16
+ // Constructor & Destructor //
17
+ ////////////////////////////////////////////////////////////////////////////////////////
18
+ public function __construct() {
19
+ $widget_ops = array(
20
+ 'classname' => 'contact_form_maker_widget',
21
+ 'description' => __('Add Conatct Form Builder widget.', 'contact_form_maker')
22
+ );
23
+ // Widget Control Settings.
24
+ $control_ops = array('id_base' => 'contact_form_maker_widget');
25
+ // Create the widget.
26
+ parent::__construct('contact_form_maker_widget', 'Contact Form Builder', $widget_ops, $control_ops);
27
+ require_once WD_CFM_DIR . "/admin/models/CFMModelWidget.php";
28
+ $this->model = new CFMModelWidget();
29
+
30
+ require_once WD_CFM_DIR . "/admin/views/CFMViewWidget.php";
31
+ $this->view = new CFMViewWidget($this->model);
32
+ }
33
+ ////////////////////////////////////////////////////////////////////////////////////////
34
+ // Public Methods //
35
+ ////////////////////////////////////////////////////////////////////////////////////////
36
+
37
+ public function widget($args, $instance) {
38
+ $this->view->widget($args, $instance);
39
+ }
40
+
41
+ public function form($instance) {
42
+ $this->view->form($instance, parent::get_field_id('title'), parent::get_field_name('title'), parent::get_field_id('form_id'), parent::get_field_name('form_id'));
43
+ }
44
+
45
+ // Update Settings.
46
+ public function update($new_instance, $old_instance) {
47
+ $instance['title'] = $new_instance['title'];
48
+ $instance['form_id'] = $new_instance['form_id'];
49
+ return $instance;
50
+ }
51
+
52
+ ////////////////////////////////////////////////////////////////////////////////////////
53
+ // Getters & Setters //
54
+ ////////////////////////////////////////////////////////////////////////////////////////
55
+ ////////////////////////////////////////////////////////////////////////////////////////
56
+ // Private Methods //
57
+ ////////////////////////////////////////////////////////////////////////////////////////
58
+ ////////////////////////////////////////////////////////////////////////////////////////
59
+ // Listeners //
60
+ ////////////////////////////////////////////////////////////////////////////////////////
61
  }
admin/models/CFMModelBlocked_ips_cfm.php CHANGED
@@ -1,74 +1,74 @@
1
- <?php
2
-
3
- class CFMModelBlocked_ips_cfm {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
- ////////////////////////////////////////////////////////////////////////////////////////
14
- // Constructor & Destructor //
15
- ////////////////////////////////////////////////////////////////////////////////////////
16
- public function __construct() {
17
- }
18
- ////////////////////////////////////////////////////////////////////////////////////////
19
- // Public Methods //
20
- ////////////////////////////////////////////////////////////////////////////////////////
21
- public function get_rows_data() {
22
- global $wpdb;
23
- $where = ((isset($_POST['search_value']) && (esc_html($_POST['search_value']) != '')) ? 'WHERE `ip` LIKE "%' . esc_html($_POST['search_value']) . '%"' : '');
24
- $asc_or_desc = ((isset($_POST['asc_or_desc']) && esc_html($_POST['asc_or_desc']) == 'asc') ? 'asc' : 'desc');
25
- $order_by = ((isset($_POST['order_by']) && esc_html($_POST['order_by']) == 'ip') ? 'ip' : 'id');
26
- $order_by = ' ORDER BY ' . $order_by . ' ' . $asc_or_desc;
27
- if (isset($_POST['page_number']) && $_POST['page_number']) {
28
- $limit = ((int) $_POST['page_number'] - 1) * 20;
29
- }
30
- else {
31
- $limit = 0;
32
- }
33
- $query = "SELECT * FROM " . $wpdb->prefix . "contactformmaker_blocked " . $where . $order_by . " LIMIT " . $limit . ",20";
34
- $rows = $wpdb->get_results($query);
35
- return $rows;
36
- }
37
-
38
- public function get_row_data($id) {
39
- global $wpdb;
40
- if ($id != 0) {
41
- $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'contactformmaker_blocked WHERE id="%d"', $id));
42
- }
43
- else {
44
- $row->id = 0;
45
- $row->ip = '';
46
- }
47
- return $row;
48
- }
49
-
50
- public function page_nav() {
51
- global $wpdb;
52
- $where = ((isset($_POST['search_value']) && (esc_html($_POST['search_value']) != '')) ? 'WHERE `ip` LIKE "%' . esc_html($_POST['search_value']) . '%"' : '');
53
- $query = "SELECT COUNT(*) FROM " . $wpdb->prefix . "contactformmaker_blocked " . $where;
54
- $total = $wpdb->get_var($query);
55
- $page_nav['total'] = $total;
56
- if (isset($_POST['page_number']) && $_POST['page_number']) {
57
- $limit = ((int) $_POST['page_number'] - 1) * 20;
58
- }
59
- else {
60
- $limit = 0;
61
- }
62
- $page_nav['limit'] = (int) ($limit / 20 + 1);
63
- return $page_nav;
64
- }
65
- ////////////////////////////////////////////////////////////////////////////////////////
66
- // Getters & Setters //
67
- ////////////////////////////////////////////////////////////////////////////////////////
68
- ////////////////////////////////////////////////////////////////////////////////////////
69
- // Private Methods //
70
- ////////////////////////////////////////////////////////////////////////////////////////
71
- ////////////////////////////////////////////////////////////////////////////////////////
72
- // Listeners //
73
- ////////////////////////////////////////////////////////////////////////////////////////
74
  }
1
+ <?php
2
+
3
+ class CFMModelBlocked_ips_cfm {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ ////////////////////////////////////////////////////////////////////////////////////////
14
+ // Constructor & Destructor //
15
+ ////////////////////////////////////////////////////////////////////////////////////////
16
+ public function __construct() {
17
+ }
18
+ ////////////////////////////////////////////////////////////////////////////////////////
19
+ // Public Methods //
20
+ ////////////////////////////////////////////////////////////////////////////////////////
21
+ public function get_rows_data() {
22
+ global $wpdb;
23
+ $where = ((isset($_POST['search_value']) && (esc_html($_POST['search_value']) != '')) ? 'WHERE `ip` LIKE "%' . esc_html($_POST['search_value']) . '%"' : '');
24
+ $asc_or_desc = ((isset($_POST['asc_or_desc']) && esc_html($_POST['asc_or_desc']) == 'asc') ? 'asc' : 'desc');
25
+ $order_by = ((isset($_POST['order_by']) && esc_html($_POST['order_by']) == 'ip') ? 'ip' : 'id');
26
+ $order_by = ' ORDER BY ' . $order_by . ' ' . $asc_or_desc;
27
+ if (isset($_POST['page_number']) && $_POST['page_number']) {
28
+ $limit = ((int) $_POST['page_number'] - 1) * 20;
29
+ }
30
+ else {
31
+ $limit = 0;
32
+ }
33
+ $query = "SELECT * FROM " . $wpdb->prefix . "contactformmaker_blocked " . $where . $order_by . " LIMIT " . $limit . ",20";
34
+ $rows = $wpdb->get_results($query);
35
+ return $rows;
36
+ }
37
+
38
+ public function get_row_data($id) {
39
+ global $wpdb;
40
+ if ($id != 0) {
41
+ $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'contactformmaker_blocked WHERE id="%d"', $id));
42
+ }
43
+ else {
44
+ $row->id = 0;
45
+ $row->ip = '';
46
+ }
47
+ return $row;
48
+ }
49
+
50
+ public function page_nav() {
51
+ global $wpdb;
52
+ $where = ((isset($_POST['search_value']) && (esc_html($_POST['search_value']) != '')) ? 'WHERE `ip` LIKE "%' . esc_html($_POST['search_value']) . '%"' : '');
53
+ $query = "SELECT COUNT(*) FROM " . $wpdb->prefix . "contactformmaker_blocked " . $where;
54
+ $total = $wpdb->get_var($query);
55
+ $page_nav['total'] = $total;
56
+ if (isset($_POST['page_number']) && $_POST['page_number']) {
57
+ $limit = ((int) $_POST['page_number'] - 1) * 20;
58
+ }
59
+ else {
60
+ $limit = 0;
61
+ }
62
+ $page_nav['limit'] = (int) ($limit / 20 + 1);
63
+ return $page_nav;
64
+ }
65
+ ////////////////////////////////////////////////////////////////////////////////////////
66
+ // Getters & Setters //
67
+ ////////////////////////////////////////////////////////////////////////////////////////
68
+ ////////////////////////////////////////////////////////////////////////////////////////
69
+ // Private Methods //
70
+ ////////////////////////////////////////////////////////////////////////////////////////
71
+ ////////////////////////////////////////////////////////////////////////////////////////
72
+ // Listeners //
73
+ ////////////////////////////////////////////////////////////////////////////////////////
74
  }
admin/models/CFMModelCFMShortcode.php CHANGED
@@ -1,36 +1,36 @@
1
- <?php
2
-
3
- class CFMModelCFMShortcode {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
- ////////////////////////////////////////////////////////////////////////////////////////
14
- // Constructor & Destructor //
15
- ////////////////////////////////////////////////////////////////////////////////////////
16
- public function __construct() {
17
- }
18
- ////////////////////////////////////////////////////////////////////////////////////////
19
- // Public Methods //
20
- ////////////////////////////////////////////////////////////////////////////////////////
21
-
22
- public function get_form_data() {
23
- global $wpdb;
24
- $row = $wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "contactformmaker order by `title` ASC");
25
- return $row;
26
- }
27
- ////////////////////////////////////////////////////////////////////////////////////////
28
- // Getters & Setters //
29
- ////////////////////////////////////////////////////////////////////////////////////////
30
- ////////////////////////////////////////////////////////////////////////////////////////
31
- // Private Methods //
32
- ////////////////////////////////////////////////////////////////////////////////////////
33
- ////////////////////////////////////////////////////////////////////////////////////////
34
- // Listeners //
35
- ////////////////////////////////////////////////////////////////////////////////////////
36
  }
1
+ <?php
2
+
3
+ class CFMModelCFMShortcode {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ ////////////////////////////////////////////////////////////////////////////////////////
14
+ // Constructor & Destructor //
15
+ ////////////////////////////////////////////////////////////////////////////////////////
16
+ public function __construct() {
17
+ }
18
+ ////////////////////////////////////////////////////////////////////////////////////////
19
+ // Public Methods //
20
+ ////////////////////////////////////////////////////////////////////////////////////////
21
+
22
+ public function get_form_data() {
23
+ global $wpdb;
24
+ $row = $wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "contactformmaker order by `title` ASC");
25
+ return $row;
26
+ }
27
+ ////////////////////////////////////////////////////////////////////////////////////////
28
+ // Getters & Setters //
29
+ ////////////////////////////////////////////////////////////////////////////////////////
30
+ ////////////////////////////////////////////////////////////////////////////////////////
31
+ // Private Methods //
32
+ ////////////////////////////////////////////////////////////////////////////////////////
33
+ ////////////////////////////////////////////////////////////////////////////////////////
34
+ // Listeners //
35
+ ////////////////////////////////////////////////////////////////////////////////////////
36
  }
admin/models/CFMModelContactFormMakerPreview.php CHANGED
@@ -1,31 +1,31 @@
1
- <?php
2
-
3
- class CFMModelContactFormMakerPreview {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
- ////////////////////////////////////////////////////////////////////////////////////////
14
- // Constructor & Destructor //
15
- ////////////////////////////////////////////////////////////////////////////////////////
16
- public function __construct() {
17
- }
18
- ////////////////////////////////////////////////////////////////////////////////////////
19
- // Public Methods //
20
- ////////////////////////////////////////////////////////////////////////////////////////
21
-
22
- ////////////////////////////////////////////////////////////////////////////////////////
23
- // Getters & Setters //
24
- ////////////////////////////////////////////////////////////////////////////////////////
25
- ////////////////////////////////////////////////////////////////////////////////////////
26
- // Private Methods //
27
- ////////////////////////////////////////////////////////////////////////////////////////
28
- ////////////////////////////////////////////////////////////////////////////////////////
29
- // Listeners //
30
- ////////////////////////////////////////////////////////////////////////////////////////
31
  }
1
+ <?php
2
+
3
+ class CFMModelContactFormMakerPreview {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ ////////////////////////////////////////////////////////////////////////////////////////
14
+ // Constructor & Destructor //
15
+ ////////////////////////////////////////////////////////////////////////////////////////
16
+ public function __construct() {
17
+ }
18
+ ////////////////////////////////////////////////////////////////////////////////////////
19
+ // Public Methods //
20
+ ////////////////////////////////////////////////////////////////////////////////////////
21
+
22
+ ////////////////////////////////////////////////////////////////////////////////////////
23
+ // Getters & Setters //
24
+ ////////////////////////////////////////////////////////////////////////////////////////
25
+ ////////////////////////////////////////////////////////////////////////////////////////
26
+ // Private Methods //
27
+ ////////////////////////////////////////////////////////////////////////////////////////
28
+ ////////////////////////////////////////////////////////////////////////////////////////
29
+ // Listeners //
30
+ ////////////////////////////////////////////////////////////////////////////////////////
31
  }
admin/models/CFMModelContactFormmakerwdcaptcha.php CHANGED
@@ -1,31 +1,31 @@
1
- <?php
2
-
3
- class CFMModelContactFormmakerwdcaptcha {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
- ////////////////////////////////////////////////////////////////////////////////////////
14
- // Constructor & Destructor //
15
- ////////////////////////////////////////////////////////////////////////////////////////
16
- public function __construct() {
17
- }
18
- ////////////////////////////////////////////////////////////////////////////////////////
19
- // Public Methods //
20
- ////////////////////////////////////////////////////////////////////////////////////////
21
-
22
- ////////////////////////////////////////////////////////////////////////////////////////
23
- // Getters & Setters //
24
- ////////////////////////////////////////////////////////////////////////////////////////
25
- ////////////////////////////////////////////////////////////////////////////////////////
26
- // Private Methods //
27
- ////////////////////////////////////////////////////////////////////////////////////////
28
- ////////////////////////////////////////////////////////////////////////////////////////
29
- // Listeners //
30
- ////////////////////////////////////////////////////////////////////////////////////////
31
  }
1
+ <?php
2
+
3
+ class CFMModelContactFormmakerwdcaptcha {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ ////////////////////////////////////////////////////////////////////////////////////////
14
+ // Constructor & Destructor //
15
+ ////////////////////////////////////////////////////////////////////////////////////////
16
+ public function __construct() {
17
+ }
18
+ ////////////////////////////////////////////////////////////////////////////////////////
19
+ // Public Methods //
20
+ ////////////////////////////////////////////////////////////////////////////////////////
21
+
22
+ ////////////////////////////////////////////////////////////////////////////////////////
23
+ // Getters & Setters //
24
+ ////////////////////////////////////////////////////////////////////////////////////////
25
+ ////////////////////////////////////////////////////////////////////////////////////////
26
+ // Private Methods //
27
+ ////////////////////////////////////////////////////////////////////////////////////////
28
+ ////////////////////////////////////////////////////////////////////////////////////////
29
+ // Listeners //
30
+ ////////////////////////////////////////////////////////////////////////////////////////
31
  }
admin/models/CFMModelFeatured_plugins_cfm.php CHANGED
@@ -1,30 +1,30 @@
1
- <?php
2
-
3
- class CFMModelFeatured_plugins_cfm {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
- ////////////////////////////////////////////////////////////////////////////////////////
14
- // Constructor & Destructor //
15
- ////////////////////////////////////////////////////////////////////////////////////////
16
- public function __construct() {
17
- }
18
- ////////////////////////////////////////////////////////////////////////////////////////
19
- // Public Methods //
20
- ////////////////////////////////////////////////////////////////////////////////////////
21
- ////////////////////////////////////////////////////////////////////////////////////////
22
- // Getters & Setters //
23
- ////////////////////////////////////////////////////////////////////////////////////////
24
- ////////////////////////////////////////////////////////////////////////////////////////
25
- // Private Methods //
26
- ////////////////////////////////////////////////////////////////////////////////////////
27
- ////////////////////////////////////////////////////////////////////////////////////////
28
- // Listeners //
29
- ////////////////////////////////////////////////////////////////////////////////////////
30
  }
1
+ <?php
2
+
3
+ class CFMModelFeatured_plugins_cfm {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ ////////////////////////////////////////////////////////////////////////////////////////
14
+ // Constructor & Destructor //
15
+ ////////////////////////////////////////////////////////////////////////////////////////
16
+ public function __construct() {
17
+ }
18
+ ////////////////////////////////////////////////////////////////////////////////////////
19
+ // Public Methods //
20
+ ////////////////////////////////////////////////////////////////////////////////////////
21
+ ////////////////////////////////////////////////////////////////////////////////////////
22
+ // Getters & Setters //
23
+ ////////////////////////////////////////////////////////////////////////////////////////
24
+ ////////////////////////////////////////////////////////////////////////////////////////
25
+ // Private Methods //
26
+ ////////////////////////////////////////////////////////////////////////////////////////
27
+ ////////////////////////////////////////////////////////////////////////////////////////
28
+ // Listeners //
29
+ ////////////////////////////////////////////////////////////////////////////////////////
30
  }
admin/models/CFMModelLicensing_cfm.php CHANGED
@@ -1,30 +1,30 @@
1
- <?php
2
-
3
- class CFMModelLicensing_cfm {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
- ////////////////////////////////////////////////////////////////////////////////////////
14
- // Constructor & Destructor //
15
- ////////////////////////////////////////////////////////////////////////////////////////
16
- public function __construct() {
17
- }
18
- ////////////////////////////////////////////////////////////////////////////////////////
19
- // Public Methods //
20
- ////////////////////////////////////////////////////////////////////////////////////////
21
- ////////////////////////////////////////////////////////////////////////////////////////
22
- // Getters & Setters //
23
- ////////////////////////////////////////////////////////////////////////////////////////
24
- ////////////////////////////////////////////////////////////////////////////////////////
25
- // Private Methods //
26
- ////////////////////////////////////////////////////////////////////////////////////////
27
- ////////////////////////////////////////////////////////////////////////////////////////
28
- // Listeners //
29
- ////////////////////////////////////////////////////////////////////////////////////////
30
  }
1
+ <?php
2
+
3
+ class CFMModelLicensing_cfm {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ ////////////////////////////////////////////////////////////////////////////////////////
14
+ // Constructor & Destructor //
15
+ ////////////////////////////////////////////////////////////////////////////////////////
16
+ public function __construct() {
17
+ }
18
+ ////////////////////////////////////////////////////////////////////////////////////////
19
+ // Public Methods //
20
+ ////////////////////////////////////////////////////////////////////////////////////////
21
+ ////////////////////////////////////////////////////////////////////////////////////////
22
+ // Getters & Setters //
23
+ ////////////////////////////////////////////////////////////////////////////////////////
24
+ ////////////////////////////////////////////////////////////////////////////////////////
25
+ // Private Methods //
26
+ ////////////////////////////////////////////////////////////////////////////////////////
27
+ ////////////////////////////////////////////////////////////////////////////////////////
28
+ // Listeners //
29
+ ////////////////////////////////////////////////////////////////////////////////////////
30
  }
admin/models/CFMModelManage_cfm.php CHANGED
@@ -1,769 +1,769 @@
1
- <?php
2
-
3
- class CFMModelManage_cfm {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
- ////////////////////////////////////////////////////////////////////////////////////////
14
- // Constructor & Destructor //
15
- ////////////////////////////////////////////////////////////////////////////////////////
16
- public function __construct() {
17
- }
18
- ////////////////////////////////////////////////////////////////////////////////////////
19
- // Public Methods //
20
- ////////////////////////////////////////////////////////////////////////////////////////
21
- public function get_rows_data() {
22
- global $wpdb;
23
- $where = ((isset($_POST['search_value']) && (esc_html($_POST['search_value']) != '')) ? 'WHERE title LIKE "%' . esc_html($_POST['search_value']) . '%"' : '');
24
- $asc_or_desc = ((isset($_POST['asc_or_desc']) && esc_html($_POST['asc_or_desc']) == 'desc') ? 'desc' : 'asc');
25
- $order_by_arr = array('id', 'title', 'mail');
26
- $order_by = ((isset($_POST['order_by']) && in_array(esc_html($_POST['order_by']), $order_by_arr)) ? esc_html($_POST['order_by']) : 'id');
27
- $order_by = ' ORDER BY `' . $order_by . '` ' . $asc_or_desc;
28
- if (isset($_POST['page_number']) && $_POST['page_number']) {
29
- $limit = ((int) $_POST['page_number'] - 1) * 20;
30
- }
31
- else {
32
- $limit = 0;
33
- }
34
- $query = "SELECT * FROM " . $wpdb->prefix . "contactformmaker " . $where . $order_by . " LIMIT " . $limit . ",20";
35
- $rows = $wpdb->get_results($query);
36
- return $rows;
37
- }
38
-
39
- public function get_row_data($id) {
40
- global $wpdb;
41
- if ($id != 0) {
42
- $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'contactformmaker WHERE id="%d"', $id));
43
- $labels2 = array();
44
- $label_id = array();
45
- $label_order_original = array();
46
- $label_type = array();
47
- $label_all = explode('#****#', $row->label_order);
48
- $label_all = array_slice($label_all, 0, count($label_all) - 1);
49
- foreach ($label_all as $key => $label_each) {
50
- $label_id_each = explode('#**id**#', $label_each);
51
- array_push($label_id, $label_id_each[0]);
52
- $label_oder_each = explode('#**label**#', $label_id_each[1]);
53
- array_push($label_order_original, addslashes($label_oder_each[0]));
54
- array_push($label_type, $label_oder_each[1]);
55
- }
56
- $labels2['id'] = '"' . implode('","', $label_id) . '"';
57
- $labels2['label'] = '"' . implode('","', $label_order_original) . '"';
58
- $labels2['type'] = '"' . implode('","', $label_type) . '"';
59
- $ids = array();
60
- $types = array();
61
- $labels = array();
62
- $paramss = array();
63
- $fields = explode('*:*new_field*:*', $row->form_fields);
64
- $fields = array_slice($fields, 0, count($fields) - 1);
65
- foreach ($fields as $field) {
66
- $temp = explode('*:*id*:*', $field);
67
- array_push($ids, $temp[0]);
68
- $temp = explode('*:*type*:*', $temp[1]);
69
- array_push($types, $temp[0]);
70
- $temp = explode('*:*w_field_label*:*', $temp[1]);
71
- array_push($labels, $temp[0]);
72
- array_push($paramss, $temp[1]);
73
- }
74
- $form = $row->form_front;
75
- foreach ($ids as $ids_key => $id) {
76
- $label = $labels[$ids_key];
77
- $type = $types[$ids_key];
78
- $params = $paramss[$ids_key];
79
- if (strpos($form, '%' . $id . ' - ' . $label . '%') || strpos($form, '%' . $id . ' -' . $label . '%')) {
80
- $rep = '';
81
- $param = array();
82
- $param['attributes'] = '';
83
- $rep = '<div class="wdform_checkbox" style="display: table-cell;"><div id="X_'.$id.'" class="element_toolbar"' . ($type == 'type_submit_reset' ? ' style="visibility: hidden;"' : '') . '><input type="checkbox" id="disable_field'.$id.'" title="' . __("Disable the field", 'contact_form_maker') . '" onclick="remove_row(&quot;'.$id.'&quot;)" style="vertical-align: top; margin-left: 5px;"></div></div>';
84
- switch ($type) {
85
- case 'type_section_break': {
86
- $params_names = array('w_editor');
87
- $temp = $params;
88
- foreach ($params_names as $params_name) {
89
- $temp = explode('*:*' . $params_name . '*:*', $temp);
90
- $param[$params_name] = $temp[0];
91
- $temp = $temp[1];
92
- }
93
- $rep .='<div id="wdform_field'.$id.'" type="type_section_break" class="wdform_field_section_break"><span id="'.$id.'_element_labelform_id_temp" style="display: none;">custom_'.$id.'</span><div id="'.$id.'_element_sectionform_id_temp" align="left" class="wdform_section_break">'.html_entity_decode($param['w_editor']).'</div></div>';
94
- break;
95
- }
96
- case 'type_editor': {
97
- $params_names = array('w_editor');
98
- $temp = $params;
99
- foreach ($params_names as $params_name ) {
100
- $temp = explode('*:*' . $params_name . '*:*', $temp);
101
- $param[$params_name] = $temp[0];
102
- $temp = $temp[1];
103
- }
104
- $rep .='<div id="wdform_field'.$id.'" type="type_editor" class="wdform_field" style="display: table-cell;">'.html_entity_decode($param['w_editor']).'</div><span id="'.$id.'_element_labelform_id_temp" style="display: none;">custom_'.$id.'</span>';
105
- break;
106
- }
107
- case 'type_send_copy': {
108
- $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_first_val', 'w_required');
109
- $temp = $params;
110
- foreach ($params_names as $params_name ) {
111
- $temp = explode('*:*' . $params_name . '*:*', $temp);
112
- $param[$params_name] = $temp[0];
113
- $temp = $temp[1];
114
- }
115
- if ($temp) {
116
- $temp = explode('*:*w_attr_name*:*', $temp);
117
- $attrs = array_slice($temp, 0, count($temp) - 1);
118
- foreach ($attrs as $attr) {
119
- $param['attributes'] = $param['attributes'] . ' add_' . $attr;
120
- }
121
- }
122
- $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
123
- $input_active = ($param['w_first_val'] == 'true' ? "checked='checked'" : "");
124
- $required_sym = ($param['w_required'] == "yes" ? " *" : "");
125
- $rep .= '<div id="wdform_field'.$id.'" type="type_send_copy" class="wdform_field" style="display: table-cell;"><div align="left" id="'.$id.'_label_sectionform_id_temp" style="display: '.$param['w_field_label_pos'].'; width: '.$param['w_field_label_size'].'px;"><span id="'.$id.'_element_labelform_id_temp" class="label" style="vertical-align: top;">'.$label.'</span><span id="'.$id.'_required_elementform_id_temp" class="required" style="vertical-align: top;">'.$required_sym.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" style="display: '.$param['w_field_label_pos'].'"><input type="hidden" value="type_send_copy" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><input type="hidden" value="'.$param['w_required'].'" name="'.$id.'_requiredform_id_temp" id="'.$id.'_requiredform_id_temp"><input type="checkbox" id="'.$id.'_elementform_id_temp" name="'.$id.'_elementform_id_temp" onclick="set_checked(&quot;'.$id.'&quot;,&quot;&quot;,&quot;form_id_temp&quot;)" '.$input_active.' '.$param['attributes'].' disabled></div></div>';
126
- break;
127
- }
128
- case 'type_text': {
129
- $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_size', 'w_first_val', 'w_title', 'w_required', 'w_unique');
130
- $temp = $params;
131
- if (strpos($temp, 'w_regExp_status') > -1) {
132
- $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_size', 'w_first_val', 'w_title', 'w_required', 'w_regExp_status', 'w_regExp_value', 'w_regExp_common', 'w_regExp_arg', 'w_regExp_alert', 'w_unique');
133
- }
134
- foreach ($params_names as $params_name) {
135
- $temp = explode('*:*' . $params_name . '*:*', $temp);
136
- $param[$params_name] = $temp[0];
137
- $temp = $temp[1];
138
- }
139
- if ($temp) {
140
- $temp = explode('*:*w_attr_name*:*', $temp);
141
- $attrs = array_slice($temp, 0, count($temp) - 1);
142
- foreach ($attrs as $attr) {
143
- $param['attributes'] = $param['attributes'] . ' add_' . $attr;
144
- }
145
- }
146
- $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
147
- $input_active = ($param['w_first_val'] == $param['w_title'] ? "input_deactive" : "input_active");
148
- $required_sym = ($param['w_required'] == "yes" ? " *" : "");
149
-
150
- $param['w_regExp_status'] = (isset($param['w_regExp_status']) ? $param['w_regExp_status'] : "no");
151
- $param['w_regExp_value'] = (isset($param['w_regExp_value']) ? $param['w_regExp_value'] : "");
152
- $param['w_regExp_common'] = (isset($param['w_regExp_common']) ? $param['w_regExp_common'] : "");
153
- $param['w_regExp_arg'] = (isset($param['w_regExp_arg']) ? $param['w_regExp_arg'] : "");
154
- $param['w_regExp_alert'] = isset($param['w_regExp_alert']) ? $param['w_regExp_alert'] : __("Incorrect Value", "contact_form_maker");
155
-
156
- $rep .= '<div id="wdform_field'.$id.'" type="type_text" class="wdform_field" style="display: table-cell;"><div align="left" id="'.$id.'_label_sectionform_id_temp" style="display: '.$param['w_field_label_pos'].'; width: '.$param['w_field_label_size'].'px; vertical-align:top;"><span id="'.$id.'_element_labelform_id_temp" class="label" style="vertical-align: top;">'.$label.'</span><span id="'.$id.'_required_elementform_id_temp" class="required" style="vertical-align: top;">'.$required_sym.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" style="display: '.$param['w_field_label_pos'].'"><input type="hidden" value="type_text" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><input type="hidden" value="'.$param['w_required'].'" name="'.$id.'_requiredform_id_temp" id="'.$id.'_requiredform_id_temp"><input type="hidden" value="' . $param['w_regExp_status'] . '" name="' . $id . '_regExpStatusform_id_temp" id="' . $id . '_regExpStatusform_id_temp"><input type="hidden" value="' . $param['w_regExp_value'] . '" name="' . $id . '_regExp_valueform_id_temp" id="' . $id . '_regExp_valueform_id_temp"><input type="hidden" value="' . $param['w_regExp_common'] . '" name="' . $id . '_regExp_commonform_id_temp" id="' . $id . '_regExp_commonform_id_temp"><input type="hidden" value="' . $param['w_regExp_alert'] . '" name="' . $id . '_regExp_alertform_id_temp" id="' . $id . '_regExp_alertform_id_temp"><input type="hidden" value="' . $param['w_regExp_arg'] . '" name="' . $id . '_regArgumentform_id_temp" id="' . $id . '_regArgumentform_id_temp"><input type="hidden" value="'.$param['w_unique'].'" name="'.$id.'_uniqueform_id_temp" id="'.$id.'_uniqueform_id_temp"><input type="text" class="'.$input_active.'" id="'.$id.'_elementform_id_temp" name="'.$id.'_elementform_id_temp" value="'.$param['w_first_val'].'" title="'.$param['w_title'].'" onfocus="delete_value(&quot;'.$id.'_elementform_id_temp&quot;)" onblur="return_value(&quot;'.$id.'_elementform_id_temp&quot;)" onchange="change_value(&quot;'.$id.'_elementform_id_temp&quot;)" style="width: '.$param['w_size'].'px;" '.$param['attributes'].' disabled></div></div>';
157
- break;
158
- }
159
- case 'type_number': {
160
- $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_size', 'w_first_val', 'w_title', 'w_required', 'w_unique', 'w_class');
161
- $temp = $params;
162
- foreach ($params_names as $params_name) {
163
- $temp = explode('*:*' . $params_name . '*:*', $temp);
164
- $param[$params_name] = $temp[0];
165
- $temp = $temp[1];
166
- }
167
- if ($temp) {
168
- $temp = explode('*:*w_attr_name*:*', $temp);
169
- $attrs = array_slice($temp, 0, count($temp) - 1);
170
- foreach ($attrs as $attr) {
171
- $param['attributes'] = $param['attributes'] . ' add_' . $attr;
172
- }
173
- }
174
- $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
175
- $input_active = ($param['w_first_val'] == $param['w_title'] ? "input_deactive" : "input_active");
176
- $required_sym = ($param['w_required'] == "yes" ? " *" : "");
177
- $rep .= '<div id="wdform_field'.$id.'" type="type_number" class="wdform_field" style="display: table-cell;"><div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].'; width: '.$param['w_field_label_size'].'px; vertical-align:top;"><span id="'.$id.'_element_labelform_id_temp" class="label" style="vertical-align: top;">'.$label.'</span><span id="'.$id.'_required_elementform_id_temp" class="required" style="vertical-align: top;">'.$required_sym.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].'"><input type="hidden" value="type_number" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><input type="hidden" value="'.$param['w_required'].'" name="'.$id.'_requiredform_id_temp" id="'.$id.'_requiredform_id_temp"><input type="hidden" value="'.$param['w_unique'].'" name="'.$id.'_uniqueform_id_temp" id="'.$id.'_uniqueform_id_temp"><input type="text" class="'.$input_active.'" id="'.$id.'_elementform_id_temp" name="'.$id.'_elementform_id_temp" value="'.$param['w_first_val'].'" title="'.$param['w_title'].'" onkeypress="return check_isnum(event)" onfocus="delete_value(&quot;'.$id.'_elementform_id_temp&quot;)" onblur="return_value(&quot;'.$id.'_elementform_id_temp&quot;)" onchange="change_value(&quot;'.$id.'_elementform_id_temp&quot;)" style="width: '.$param['w_size'].'px;" '.$param['attributes'].' disabled></div></div>';
178
- break;
179
- }
180
- case 'type_password': {
181
- $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_size', 'w_required', 'w_unique', 'w_class');
182
- $temp = $params;
183
- foreach ($params_names as $params_name) {
184
- $temp = explode('*:*' . $params_name . '*:*', $temp);
185
- $param[$params_name] = $temp[0];
186
- $temp = $temp[1];
187
- }
188
- if ($temp) {
189
- $temp = explode('*:*w_attr_name*:*', $temp);
190
- $attrs = array_slice($temp, 0, count($temp) - 1);
191
- foreach ($attrs as $attr) {
192
- $param['attributes'] = $param['attributes'] . ' add_' . $attr;
193
- }
194
- }
195
- $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
196
- $required_sym = ($param['w_required'] == "yes" ? " *" : "");
197
- $rep .= '<div id="wdform_field'.$id.'" type="type_password" class="wdform_field" style="display: table-cell;"><div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].'; width: '.$param['w_field_label_size'].'px; vertical-align:top;"><span id="'.$id.'_element_labelform_id_temp" class="label" style="vertical-align: top;">'.$label.'</span><span id="'.$id.'_required_elementform_id_temp" class="required" style="vertical-align: top;">'.$required_sym.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].'"><input type="hidden" value="type_password" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><input type="hidden" value="'.$param['w_required'].'" name="'.$id.'_requiredform_id_temp" id="'.$id.'_requiredform_id_temp"><input type="hidden" value="'.$param['w_unique'].'" name="'.$id.'_uniqueform_id_temp" id="'.$id.'_uniqueform_id_temp"><input type="password" id="'.$id.'_elementform_id_temp" name="'.$id.'_elementform_id_temp" style="width: '.$param['w_size'].'px;" '.$param['attributes'].' disabled></div></div>';
198
- break;
199
- }
200
- case 'type_textarea': {
201
- $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_size_w', 'w_size_h', 'w_first_val', 'w_title', 'w_required', 'w_unique', 'w_class');
202
- $temp = $params;
203
- foreach ($params_names as $params_name) {
204
- $temp = explode('*:*' . $params_name . '*:*', $temp);
205
- $param[$params_name] = $temp[0];
206
- $temp = $temp[1];
207
- }
208
- if ($temp) {
209
- $temp = explode('*:*w_attr_name*:*', $temp);
210
- $attrs = array_slice($temp, 0, count($temp) - 1);
211
- foreach ($attrs as $attr) {
212
- $param['attributes'] = $param['attributes'] . ' add_' . $attr;
213
- }
214
- }
215
- $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
216
- $input_active = ($param['w_first_val'] == $param['w_title'] ? "input_deactive" : "input_active");
217
- $required_sym = ($param['w_required'] == "yes" ? " *" : "");
218
- $rep .= '<div id="wdform_field'.$id.'" type="type_textarea" class="wdform_field" style="display: table-cell;"><div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display:'.$param['w_field_label_pos'].'; width: '.$param['w_field_label_size'].'px; vertical-align:top;"><span id="'.$id.'_element_labelform_id_temp" class="label" style="vertical-align: top;">'.$label.'</span><span id="'.$id.'_required_elementform_id_temp" class="required" style="vertical-align: top;">'.$required_sym.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" class="'.$param['w_class'].'" style="display: table-cell;"><input type="hidden" value="type_textarea" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><input type="hidden" value="'.$param['w_required'].'" name="'.$id.'_requiredform_id_temp" id="'.$id.'_requiredform_id_temp"><input type="hidden" value="'.$param['w_unique'].'" name="'.$id.'_uniqueform_id_temp" id="'.$id.'_uniqueform_id_temp"><textarea class="'.$input_active.'" id="'.$id.'_elementform_id_temp" name="'.$id.'_elementform_id_temp" title="'.$param['w_title'].'" onfocus="delete_value(&quot;'.$id.'_elementform_id_temp&quot;)" onblur="return_value(&quot;'.$id.'_elementform_id_temp&quot;)" onchange="change_value(&quot;'.$id.'_elementform_id_temp&quot;)" style="width: '.$param['w_size_w'].'px; height: '.$param['w_size_h'].'px;" '.$param['attributes'].' disabled>'.$param['w_first_val'].'</textarea></div></div>';
219
- break;
220
- }
221
- case 'type_phone': {
222
- $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_size', 'w_first_val', 'w_title', 'w_mini_labels', 'w_required', 'w_unique', 'w_class');
223
- $temp = $params;
224
- foreach ($params_names as $params_name) {
225
- $temp = explode('*:*' . $params_name . '*:*', $temp);
226
- $param[$params_name] = $temp[0];
227
- $temp = $temp[1];
228
- }
229
- if ($temp) {
230
- $temp = explode('*:*w_attr_name*:*', $temp);
231
- $attrs = array_slice($temp, 0, count($temp) - 1);
232
- foreach ($attrs as $attr) {
233
- $param['attributes'] = $param['attributes'].' add_'.$attr;
234
- }
235
- }
236
- $w_first_val = explode('***', $param['w_first_val']);
237
- $w_title = explode('***', $param['w_title']);
238
- $w_mini_labels = explode('***', $param['w_mini_labels']);
239
- $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
240
- $input_active = ($param['w_first_val'] == $param['w_title'] ? "input_deactive" : "input_active");
241
- $required_sym = ($param['w_required'] == "yes" ? " *" : "");
242
- $rep .= '<div id="wdform_field'.$id.'" type="type_phone" class="wdform_field" style="display: table-cell;"><div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].'; width: '.$param['w_field_label_size'].'px; vertical-align:top;"><span id="'.$id.'_element_labelform_id_temp" class="label" style="vertical-align: top;">'.$label.'</span><span id="'.$id.'_required_elementform_id_temp" class="required">'.$required_sym.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].';"><input type="hidden" value="type_phone" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><input type="hidden" value="'.$param['w_required'].'" name="'.$id.'_requiredform_id_temp" id="'.$id.'_requiredform_id_temp"><input type="hidden" value="'.$param['w_unique'].'" name="'.$id.'_uniqueform_id_temp" id="'.$id.'_uniqueform_id_temp"><div id="'.$id.'_table_name" style="display: table;"><div id="'.$id.'_tr_name1" style="display: table-row;"><div id="'.$id.'_td_name_input_first" style="display: table-cell;"><input type="text" class="'.$input_active.'" id="'.$id.'_element_firstform_id_temp" name="'.$id.'_element_firstform_id_temp" value="'.$w_first_val[0].'" title="'.$w_title[0].'" onfocus="delete_value(&quot;'.$id.'_element_firstform_id_temp&quot;)"onblur="return_value(&quot;'.$id.'_element_firstform_id_temp&quot;)"onchange="change_value(&quot;'.$id.'_element_firstform_id_temp&quot;)" onkeypress="return check_isnum(event)"style="width: 50px;" '.$param['attributes'].' disabled><span class="wdform_line" style="margin: 0px 4px; padding: 0px;">-</span></div><div id="'.$id.'_td_name_input_last" style="display: table-cell;"><input type="text" class="'.$input_active.'" id="'.$id.'_element_lastform_id_temp" name="'.$id.'_element_lastform_id_temp" value="'.$w_first_val[1].'" title="'.$w_title[1].'" onfocus="delete_value(&quot;'.$id.'_element_lastform_id_temp&quot;)"onblur="return_value(&quot;'.$id.'_element_lastform_id_temp&quot;)" onchange="change_value(&quot;'.$id.'_element_lastform_id_temp&quot;)" onkeypress="return check_isnum(event)"style="width: '.$param['w_size'].'px;" '.$param['attributes'].' disabled></div></div><div id="'.$id.'_tr_name2" style="display: table-row;"><div id="'.$id.'_td_name_label_first" align="left" style="display: table-cell;"><label class="mini_label" id="'.$id.'_mini_label_area_code">'.$w_mini_labels[0].'</label></div><div id="'.$id.'_td_name_label_last" align="left" style="display: table-cell;"><label class="mini_label" id="'.$id.'_mini_label_phone_number">'.$w_mini_labels[1].'</label></div></div></div></div></div>';
243
- break;
244
- }
245
- case 'type_name': {
246
- $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_first_val', 'w_title', 'w_mini_labels', 'w_size', 'w_name_format', 'w_required', 'w_unique', 'w_class');
247
- $temp = $params;
248
- foreach ($params_names as $params_name) {
249
- $temp = explode('*:*' . $params_name . '*:*', $temp);
250
- $param[$params_name] = $temp[0];
251
- $temp = $temp[1];
252
- }
253
- if ($temp) {
254
- $temp = explode('*:*w_attr_name*:*', $temp);
255
- $attrs = array_slice($temp, 0, count($temp) - 1);
256
- foreach ($attrs as $attr) {
257
- $param['attributes'] = $param['attributes'] . ' add_' . $attr;
258
- }
259
- }
260
- $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
261
- $required_sym = ($param['w_required'] == "yes" ? " *" : "");
262
- $w_first_val = explode('***', $param['w_first_val']);
263
- $w_title = explode('***', $param['w_title']);
264
- $w_mini_labels = explode('***', $param['w_mini_labels']);
265
- if ($param['w_name_format'] == 'normal') {
266
- $w_name_format = '<div id="'.$id.'_td_name_input_first" style="display: table-cell;"><input type="text" class="'.($w_first_val[0]==$w_title[0] ? "input_deactive" : "input_active").'" id="'.$id.'_element_firstform_id_temp" name="'.$id.'_element_firstform_id_temp" value="'.$w_first_val[0].'" title="'.$w_title[0].'" onfocus="delete_value(&quot;'.$id.'_element_firstform_id_temp&quot;)"onblur="return_value(&quot;'.$id.'_element_firstform_id_temp&quot;)" onchange="change_value(&quot;'.$id.'_element_firstform_id_temp&quot;)" style="margin-right: 10px; width: '.$param['w_size'].'px;"'.$param['attributes'].' disabled ></div><div id="'.$id.'_td_name_input_last" style="display: table-cell;"><input type="text" class="'.($w_first_val[1]==$w_title[1] ? "input_deactive" : "input_active").'" id="'.$id.'_element_lastform_id_temp" name="'.$id.'_element_lastform_id_temp" value="'.$w_first_val[1].'" title="'.$w_title[1].'" onfocus="delete_value(&quot;'.$id.'_element_lastform_id_temp&quot;)"onblur="return_value(&quot;'.$id.'_element_lastform_id_temp&quot;)" onchange="change_value(&quot;'.$id.'_element_lastform_id_temp&quot;)" style="margin-right: 10px; width: '.$param['w_size'].'px;" '.$param['attributes'].' disabled ></div>';
267
- $w_name_format_mini_labels = '<div id="'.$id.'_tr_name2" style="display: table-row;"><div id="'.$id.'_td_name_label_first" align="left" style="display: table-cell;"><label class="mini_label" id="'.$id.'_mini_label_first">'.$w_mini_labels[1].'</label></div><div id="'.$id.'_td_name_label_last" align="left" style="display: table-cell;"><label class="mini_label" id="'.$id.'_mini_label_last">'.$w_mini_labels[2].'</label></div></div>';
268
- }
269
- else {
270
- $w_name_format = '<div id="'.$id.'_td_name_input_title" style="display: table-cell;"><input type="text" class="'.($w_first_val[0]==$w_title[0] ? "input_deactive" : "input_active").'" id="'.$id.'_element_titleform_id_temp" name="'.$id.'_element_titleform_id_temp" value="'.$w_first_val[0].'" title="'.$w_title[0].'" onfocus="delete_value(&quot;'.$id.'_element_titleform_id_temp&quot;)" onblur="return_value(&quot;'.$id.'_element_titleform_id_temp&quot;)" onchange="change_value(&quot;'.$id.'_element_titleform_id_temp&quot;)" style="margin: 0px 10px 0px 0px; width: 40px;"></div><div id="'.$id.'_td_name_input_first" style="display: table-cell;"><input type="text" class="'.($w_first_val[1]==$w_title[1] ? "input_deactive" : "input_active").'" id="'.$id.'_element_firstform_id_temp" name="'.$id.'_element_firstform_id_temp" value="'.$w_first_val[1].'" title="'.$w_title[1].'" onfocus="delete_value(&quot;'.$id.'_element_firstform_id_temp&quot;)" onblur="return_value(&quot;'.$id.'_element_firstform_id_temp&quot;)" onchange="change_value(&quot;'.$id.'_element_firstform_id_temp&quot;)" style="margin-right: 10px; width: '.$param['w_size'].'px;"></div><div id="'.$id.'_td_name_input_last" style="display: table-cell;"><input type="text" class="'.($w_first_val[2]==$w_title[2] ? "input_deactive" : "input_active").'" id="'.$id.'_element_lastform_id_temp" name="'.$id.'_element_lastform_id_temp" value="'.$w_first_val[2].'" title="'.$w_title[2].'" onfocus="delete_value(&quot;'.$id.'_element_lastform_id_temp&quot;)" onblur="return_value(&quot;'.$id.'_element_lastform_id_temp&quot;)" onchange="change_value(&quot;'.$id.'_element_lastform_id_temp&quot;)" style="margin-right: 10px; width: '.$param['w_size'].'px;"></div><div id="'.$id.'_td_name_input_middle" style="display: table-cell;"><input type="text" class="'.($w_first_val[3]==$w_title[3] ? "input_deactive" : "input_active").'" id="'.$id.'_element_middleform_id_temp" name="'.$id.'_element_middleform_id_temp" value="'.$w_first_val[3].'" title="'.$w_title[3].'" onfocus="delete_value(&quot;'.$id.'_element_middleform_id_temp&quot;)" onblur="return_value(&quot;'.$id.'_element_middleform_id_temp&quot;)" onchange="change_value(&quot;'.$id.'_element_middleform_id_temp&quot;)" style="width: '.$param['w_size'].'px;"></div>';
271
- $w_name_format_mini_labels ='<div id="'.$id.'_tr_name2" style="display: table-row;"><div id="'.$id.'_td_name_label_title" align="left" style="display: table-cell;"><label class="mini_label" id="'.$id.'_mini_label_title">'.$w_mini_labels[0].'</label></div><div id="'.$id.'_td_name_label_first" align="left" style="display: table-cell;"><label class="mini_label" id="'.$id.'_mini_label_first">'.$w_mini_labels[1].'</label></div><div id="'.$id.'_td_name_label_last" align="left" style="display: table-cell;"><label class="mini_label" id="'.$id.'_mini_label_last">'.$w_mini_labels[2].'</label></div><div id="'.$id.'_td_name_label_middle" align="left" style="display: table-cell;"><label class="mini_label" id="'.$id.'_mini_label_middle">'.$w_mini_labels[3].'</label></div></div>';
272
- }
273
- $rep .= '<div id="wdform_field'.$id.'" type="type_name" class="wdform_field" style="display: table-cell;"><div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].'; width: '.$param['w_field_label_size'].'px; vertical-align:top;"><span id="'.$id.'_element_labelform_id_temp" class="label" style="vertical-align: top;">'.$label.'</span><span id="'.$id.'_required_elementform_id_temp" class="required" style="vertical-align: top;">'.$required_sym.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].';"><input type="hidden" value="type_name" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><input type="hidden" value="'.$param['w_required'].'" name="'.$id.'_requiredform_id_temp" id="'.$id.'_requiredform_id_temp"><input type="hidden" value="'.$param['w_unique'].'" name="'.$id.'_uniqueform_id_temp" id="'.$id.'_uniqueform_id_temp"><div id="'.$id.'_table_name" cellpadding="0" cellspacing="0" style="display: table;"><div id="'.$id.'_tr_name1" style="display: table-row;">'.$w_name_format.' </div>'.$w_name_format_mini_labels.' </div></div></div>';
274
- break;
275
- }
276
- case 'type_address': {
277
- $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_size', 'w_mini_labels', 'w_disabled_fields', 'w_required', 'w_class');
278
- $temp = $params;
279
- foreach ($params_names as $params_name) {
280
- $temp = explode('*:*' . $params_name . '*:*', $temp);
281
- $param[$params_name] = $temp[0];
282
- $temp = $temp[1];
283
- }
284
- if ($temp) {
285
- $temp = explode('*:*w_attr_name*:*', $temp);
286
- $attrs = array_slice($temp, 0, count($temp) - 1);
287
- foreach ($attrs as $attr) {
288
- $param['attributes'] = $param['attributes'] . ' add_' . $attr;
289
- }
290
- }
291
- $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
292
- $required_sym = ($param['w_required'] == "yes" ? " *" : "");
293
- $w_mini_labels = explode('***', $param['w_mini_labels']);
294
- $w_disabled_fields = explode('***',$param['w_disabled_fields']);
295
- $hidden_inputs = '';
296
- $labels_for_id = array('street1', 'street2', 'city', 'state', 'postal', 'country');
297
- foreach ($w_disabled_fields as $key => $w_disabled_field) {
298
- if ($key != 6) {
299
- if ($w_disabled_field == 'yes') {
300
- $hidden_inputs .= '<input type="hidden" id="'.$id.'_'.$labels_for_id[$key].'form_id_temp" value="'.$w_mini_labels[$key].'" id_for_label="'.($id+$key).'">';
301
- }
302
- }
303
- }
304
- $address_fields = '';
305
- $g = 0;
306
- if ($w_disabled_fields[0] == 'no') {
307
- $g += 2;
308
- $address_fields .= '<span style="float: left; width: 100%; padding-bottom: 8px; display: block;"><input type="text" id="'.$id.'_street1form_id_temp" name="'.$id.'_street1form_id_temp" onchange="change_value(&quot;'.$id.'_street1form_id_temp&quot;)" style="width: 100%;" '.$param['attributes'].' disabled ><label class="mini_label" id="'.$id.'_mini_label_street1" style="display: block;">'.$w_mini_labels[0].'</label></span>';
309
- }
310
- if ($w_disabled_fields[1] == 'no') {
311
- $g += 2;
312
- $address_fields .= '<span style="float: left; width: 100%; padding-bottom: 8px; display: block;"><input type="text" id="'.$id.'_street2form_id_temp" name="'.($id+1).'_street2form_id_temp" onchange="change_value(&quot;'.$id.'_street2form_id_temp&quot;)" style="width: 100%;" '.$param['attributes'].' disabled ><label class="mini_label" style="display: block;" id="'.$id.'_mini_label_street2">'.$w_mini_labels[1].'</label></span>';
313
- }
314
- if ($w_disabled_fields[2] == 'no') {
315
- $g++;
316
- $address_fields .= '<span style="float: left; width: 48%; padding-bottom: 8px;"><input type="text" id="'.$id.'_cityform_id_temp" name="'.($id+2).'_cityform_id_temp" onchange="change_value(&quot;'.$id.'_cityform_id_temp&quot;)" style="width: 100%;" '.$param['attributes'].' disabled ><label class="mini_label" style="display: block;" id="'.$id.'_mini_label_city">'.$w_mini_labels[2].'</label></span>';
317
- }
318
- if ($w_disabled_fields[3] == 'no') {
319
- $g++;
320
- if ($w_disabled_fields[5] == 'yes' && $w_disabled_fields[6] == 'yes') {
321
- $address_fields .= '<span style="float: '.(($g%2==0) ? 'right' : 'left').'; width: 48%; padding-bottom: 8px;"><select type="text" id="'.$id.'_stateform_id_temp" name="'.($id+3).'_stateform_id_temp" onchange="change_value(&quot;'.$id.'_stateform_id_temp&quot;)" style="width: 100%;" '.$param['attributes'].' disabled ><option value=""></option><option value="Alabama">' . __("Alabama","contact_form_maker") . '</option><option value="Alaska">' . __("Alaska","contact_form_maker") . '</option><option value="Arizona">' . __("Arizona","contact_form_maker") . '</option><option value="Arkansas">' . __("Arkansas","contact_form_maker") . '</option><option value="California">' . __("California","contact_form_maker") . '</option><option value="Colorado">' . __("Colorado","contact_form_maker") . '</option><option value="Connecticut">' . __("Connecticut","contact_form_maker") . '</option><option value="Delaware">' . __("Delaware","contact_form_maker") . '</option><option value="Florida">' . __("Florida","contact_form_maker") . '</option><option value="Georgia">' . __("Georgia","contact_form_maker") . '</option><option value="Hawaii">' . __("Hawaii","contact_form_maker") . '</option><option value="Idaho">' . __("Idaho","contact_form_maker") . '</option><option value="Illinois">' . __("Illinois","contact_form_maker") . '</option><option value="Indiana">' . __("Indiana","contact_form_maker") . '</option><option value="Iowa">' . __("Iowa","contact_form_maker") . '</option><option value="Kansas">' . __("Kansas","contact_form_maker") . '</option><option value="Kentucky">' . __("Kentucky","contact_form_maker") . '</option><option value="Louisiana">' . __("Louisiana","contact_form_maker") . '</option><option value="Maine">' . __("Maine","contact_form_maker") . '</option><option value="Maryland">' . __("Maryland","contact_form_maker") . '</option><option value="Massachusetts">' . __("Massachusetts","contact_form_maker") . '</option><option value="Michigan">' . __("Michigan","contact_form_maker") . '</option><option value="Minnesota">' . __("Minnesota","contact_form_maker") . '</option><option value="Mississippi">' . __("Mississippi","contact_form_maker") . '</option><option value="Missouri">' . __("Missouri","contact_form_maker") . '</option><option value="Montana">' . __("Montana","contact_form_maker") . '</option><option value="Nebraska">' . __("Nebraska","contact_form_maker") . '</option><option value="Nevada">' . __("Nevada","contact_form_maker") . '</option><option value="New Hampshire">' . __("New Hampshire","contact_form_maker") . '</option><option value="New Jersey">' . __("New Jersey","contact_form_maker") . '</option><option value="New Mexico">' . __("New Mexico","contact_form_maker") . '</option><option value="New York">' . __("New York","contact_form_maker") . '</option><option value="North Carolina">' . __("North Carolina","contact_form_maker") . '</option><option value="North Dakota">' . __("North Dakota","contact_form_maker") . '</option><option value="Ohio">' . __("Ohio","contact_form_maker") . '</option><option value="Oklahoma">' . __("Oklahoma","contact_form_maker") . '</option><option value="Oregon">' . __("Oregon","contact_form_maker") . '</option><option value="Pennsylvania">' . __("Pennsylvania","contact_form_maker") . '</option><option value="Rhode Island">' . __("Rhode Island","contact_form_maker") . '</option><option value="South Carolina">' . __("South Carolina","contact_form_maker") . '</option><option value="South Dakota">' . __("South Dakota","contact_form_maker") . '</option><option value="Tennessee">' . __("Tennessee","contact_form_maker") . '</option><option value="Texas">' . __("Texas","contact_form_maker") . '</option><option value="Utah">' . __("Utah","contact_form_maker") . '</option><option value="Vermont">' . __("Vermont","contact_form_maker") . '</option><option value="Virginia">' . __("Virginia","contact_form_maker") . '</option><option value="Washington">' . __("Washington","contact_form_maker") . '</option><option value="West Virginia">' . __("West Virginia","contact_form_maker") . '</option><option value="Wisconsin">' . __("Wisconsin","contact_form_maker") . '</option><option value="Wyoming">' . __("Wyoming","contact_form_maker") . '</option></select><label class="mini_label" style="display: block;" id="'.$id.'_mini_label_state">'.$w_mini_labels[3].'</label></span>';
322
- }
323
- else {
324
- $address_fields .= '<span style="float: '.(($g%2==0) ? 'right' : 'left').'; width: 48%; padding-bottom: 8px;"><input type="text" id="'.$id.'_stateform_id_temp" name="'.($id+3).'_stateform_id_temp" onchange="change_value(&quot;'.$id.'_stateform_id_temp&quot;)" style="width: 100%;" '.$param['attributes'].' disabled ><label class="mini_label" style="display: block;" id="'.$id.'_mini_label_state">'.$w_mini_labels[3].'</label></span>';
325
- }
326
- }
327
- if ($w_disabled_fields[4] == 'no') {
328
- $g++;
329
- $address_fields .= '<span style="float: '.(($g%2==0) ? 'right' : 'left').'; width: 48%; padding-bottom: 8px;"><input type="text" id="'.$id.'_postalform_id_temp" name="'.($id+4).'_postalform_id_temp" onchange="change_value(&quot;'.$id.'_postalform_id_temp&quot;)" style="width: 100%;" '.$param['attributes'].' disabled ><label class="mini_label" style="display: block;" id="'.$id.'_mini_label_postal">'.$w_mini_labels[4].'</label></span>';
330
- }
331
- if ($w_disabled_fields[5] == 'no') {
332
- $g++;
333
- $address_fields .= '<span style="float: '.(($g%2==0) ? 'right' : 'left').'; width: 48%; padding-bottom: 8px;"><select type="text" id="'.$id.'_countryform_id_temp" name="'.($id+5).'_countryform_id_temp" onchange="change_state_input('.$id.',&quot;form_id_temp&quot;)" style="width: 100%;" '.$param['attributes'].' disabled ><option value=""></option><option value="Afghanistan">' . __("Afghanistan", "contact_form_maker") . '</option><option value="Albania">' . __("Albania", "contact_form_maker") . '</option><option value="Algeria">' . __("Algeria", "contact_form_maker") . '</option><option value="Andorra">' . __("Andorra", "contact_form_maker") . '</option><option value="Angola">' . __("Angola", "contact_form_maker") . '</option><option value="Antigua and Barbuda">' . __("Antigua and Barbuda", "contact_form_maker") . '</option><option value="Argentina">' . __("Argentina", "contact_form_maker") . '</option><option value="Armenia">' . __("Armenia", "contact_form_maker") . '</option><option value="Australia">' . __("Australia", "contact_form_maker") . '</option><option value="Austria">' . __("Austria", "contact_form_maker") . '</option><option value="Azerbaijan">' . __("Azerbaijan","contact_form_maker") . '</option><option value="Bahamas">' . __("Bahamas", "contact_form_maker") . '</option><option value="Bahrain">' . __("Bahrain", "contact_form_maker") . '</option><option value="Bangladesh">' . __("Bangladesh", "contact_form_maker") . '</option><option value="Barbados">' . __("Barbados", "contact_form_maker") . '</option><option value="Belarus">' . __("Belarus", "contact_form_maker") . '</option><option value="Belgium">' . __("Belgium", "contact_form_maker").'</option><option value="Belize">' . __("Belize", "contact_form_maker") . '</option><option value="Benin">' . __("Benin", "contact_form_maker") . '</option><option value="Bhutan">' . __("Bhutan", "contact_form_maker") . '</option><option value="Bolivia">' . __("Bolivia", "contact_form_maker") . '</option><option value="Bosnia and Herzegovina">' . __("Bosnia and Herzegovina", "contact_form_maker") . '</option><option value="Botswana">' . __("Botswana", "contact_form_maker") . '</option><option value="Brazil">' . __("Brazil", "contact_form_maker") . '</option><option value="Brunei">' . __("Brunei", "contact_form_maker") . '</option><option value="Bulgaria">' . __("Bulgaria", "contact_form_maker") . '</option><option value="Burkina Faso">' . __("Burkina Faso", "contact_form_maker") . '</option><option value="Burundi">' . __("Burundi", "contact_form_maker") . '</option><option value="Cambodia">' . __("Cambodia", "contact_form_maker") . '</option><option value="Cameroon">' . __("Cameroon", "contact_form_maker") . '</option><option value="Canada">' . __("Canada","contact_form_maker") . '</option><option value="Cape Verde">' . __("Cape Verde","contact_form_maker") . '</option><option value="Central African Republic">' . __("Central African Republic","contact_form_maker") . '</option><option value="Chad">' . __("Chad","contact_form_maker") . '</option><option value="Chile">' . __("Chile","contact_form_maker") . '</option><option value="China">' . __("China","contact_form_maker") . '</option><option value="Colombi">' . __("Colombi","contact_form_maker") . '</option><option value="Comoros">' . __("Comoros","contact_form_maker") . '</option><option value="Congo (Brazzaville)">' . __("Congo (Brazzaville)","contact_form_maker") . '</option><option value="Congo">' . __("Congo","contact_form_maker") . '</option><option value="Costa Rica">' . __("Costa Rica","contact_form_maker") . '</option><option value="Cote d\'Ivoire">' . __("Cote d\'Ivoire","contact_form_maker") . '</option><option value="Croatia">' . __("Croatia","contact_form_maker") . '</option><option value="Cuba">' . __("Cuba","contact_form_maker") . '</option><option value="Cyprus">' . __("Cyprus","contact_form_maker") . '</option><option value="Czech Republic">' . __("Czech Republic","contact_form_maker") . '</option><option value="Denmark">' . __("Denmark","contact_form_maker") . '</option><option value="Djibouti">' . __("Djibouti","contact_form_maker") . '</option><option value="Dominica">' . __("Dominica","contact_form_maker") . '</option><option value="Dominican Republic">' . __("Dominican Republic","contact_form_maker") . '</option><option value="East Timor (Timor Timur)">' . __("East Timor (Timor Timur)","contact_form_maker") . '</option><option value="Ecuador">' . __("Ecuador","contact_form_maker") . '</option><option value="Egypt">' . __("Egypt","contact_form_maker") . '</option><option value="El Salvador">' . __("El Salvador","contact_form_maker") . '</option><option value="Equatorial Guinea">' . __("Equatorial Guinea","contact_form_maker") . '</option><option value="Eritrea">' . __("Eritrea","contact_form_maker") . '</option><option value="Estonia">' . __("Estonia","contact_form_maker") . '</option><option value="Ethiopia">' . __("Ethiopia","contact_form_maker") . '</option><option value="Fiji">' . __("Fiji","contact_form_maker") . '</option><option value="Finland">' . __("Finland","contact_form_maker") . '</option><option value="France">' . __("France","contact_form_maker") . '</option><option value="Gabon">' . __("Gabon","contact_form_maker") . '</option><option value="Gambia, The">' . __("Gambia, The","contact_form_maker") . '</option><option value="Georgia">' . __("Georgia","contact_form_maker") . '</option><option value="Germany">' . __("Germany","contact_form_maker") . '</option><option value="Ghana">' . __("Ghana","contact_form_maker") . '</option><option value="Greece">' . __("Greece","contact_form_maker") . '</option><option value="Grenada">' . __("Grenada","contact_form_maker") . '</option><option value="Guatemala">' . __("Guatemala","contact_form_maker") . '</option><option value="Guinea">' . __("Guinea","contact_form_maker") . '</option><option value="Guinea-Bissau">' . __("Guinea-Bissau","contact_form_maker") . '</option><option value="Guyana">' . __("Guyana","contact_form_maker") . '</option><option value="Haiti">' . __("Haiti","contact_form_maker") . '</option><option value="Honduras">' . __("Honduras","contact_form_maker") . '</option><option value="Hungary">' . __("Hungary","contact_form_maker") . '</option><option value="Iceland">' . __("Iceland","contact_form_maker") . '</option><option value="India">' . __("India","contact_form_maker") . '</option><option value="Indonesia">' . __("Indonesia","contact_form_maker") . '</option><option value="Iran">' . __("Iran","contact_form_maker") . '</option><option value="Iraq">' . __("Iraq","contact_form_maker") . '</option><option value="Ireland">' . __("Ireland","contact_form_maker") . '</option><option value="Israel">' . __("Israel","contact_form_maker") . '</option><option value="Italy">' . __("Italy","contact_form_maker") . '</option><option value="Jamaica">' . __("Jamaica","contact_form_maker") . '</option><option value="Japan">' . __("Japan","contact_form_maker") . '</option><option value="Jordan">' . __("Jordan","contact_form_maker") . '</option><option value="Kazakhstan">' . __("Kazakhstan","contact_form_maker") . '</option><option value="Kenya">' . __("Kenya","contact_form_maker") . '</option><option value="Kiribati">' . __("Kiribati","contact_form_maker") . '</option><option value="Korea, North">' . __("Korea, North","contact_form_maker") . '</option><option value="Korea, South">' . __("Korea, South","contact_form_maker") . '</option><option value="Kuwait">' . __("Kuwait","contact_form_maker") . '</option><option value="Kyrgyzstan">' . __("Kyrgyzstan","contact_form_maker") . '</option><option value="Laos">' . __("Laos","contact_form_maker") . '</option><option value="Latvia">' . __("Latvia","contact_form_maker") . '</option><option value="Lebanon">' . __("Lebanon","contact_form_maker") . '</option><option value="Lesotho">' . __("Lesotho","contact_form_maker") . '</option><option value="Liberia">' . __("Liberia","contact_form_maker") . '</option><option value="Libya">' . __("Libya","contact_form_maker") . '</option><option value="Liechtenstein">' . __("Liechtenstein","contact_form_maker") . '</option><option value="Lithuania">' . __("Lithuania","contact_form_maker") . '</option><option value="Luxembourg">' . __("Luxembourg","contact_form_maker") . '</option><option value="Macedonia">' . __("Macedonia","contact_form_maker") . '</option><option value="Madagascar">' . __("Madagascar","contact_form_maker") . '</option><option value="Malawi">' . __("Malawi","contact_form_maker") . '</option><option value="Malaysia">' . __("Malaysia","contact_form_maker") . '</option><option value="Maldives">' . __("Maldives","contact_form_maker") . '</option><option value="Mali">' . __("Mali","contact_form_maker") . '</option><option value="Malta">' . __("Malta","contact_form_maker") . '</option><option value="Marshall Islands">' . __("Marshall Islands","contact_form_maker") . '</option><option value="Mauritania">' . __("Mauritania","contact_form_maker") . '</option><option value="Mauritius">' . __("Mauritius","contact_form_maker") . '</option><option value="Mexico">' . __("Mexico","contact_form_maker") . '</option><option value="Micronesia">' . __("Micronesia","contact_form_maker") . '</option><option value="Moldova">' . __("Moldova","contact_form_maker") . '</option><option value="Monaco">' . __("Monaco","contact_form_maker") . '</option><option value="Mongolia">' . __("Mongolia","contact_form_maker") . '</option><option value="Morocco">' . __("Morocco","contact_form_maker") . '</option><option value="Mozambique">' . __("Mozambique","contact_form_maker") . '</option><option value="Myanmar">' . __("Myanmar","contact_form_maker") . '</option><option value="Namibia">' . __("Namibia","contact_form_maker") . '</option><option value="Nauru">' . __("Nauru","contact_form_maker") . '</option><option value="Nepa">' . __("Nepa","contact_form_maker") . '</option><option value="Netherlands">' . __("Netherlands","contact_form_maker") . '</option><option value="New Zealand">' . __("New Zealand","contact_form_maker") . '</option><option value="Nicaragua">' . __("Nicaragua","contact_form_maker") . '</option><option value="Niger">' . __("Niger","contact_form_maker") . '</option><option value="Nigeria">' . __("Nigeria","contact_form_maker") . '</option><option value="Norway">' . __("Norway","contact_form_maker") . '</option><option value="Oman">' . __("Oman","contact_form_maker") . '</option><option value="Pakistan">' . __("Pakistan", "contact_form_maker") . '</option><option value="Palau">' . __("Palau", "contact_form_maker") . '</option><option value="Panama">' . __("Panama", "contact_form_maker") . '</option><option value="Papua New Guinea">' . __("Papua New Guinea", "contact_form_maker") . '</option><option value="Paraguay">' . __("Paraguay", "contact_form_maker") . '</option><option value="Peru">' . __("Peru", "contact_form_maker") . '</option><option value="Philippines">' . __("Philippines", "contact_form_maker") . '</option><option value="Poland">' . __("Poland", "contact_form_maker") . '</option><option value="Portugal">' . __("Portugal", "contact_form_maker") . '</option><option value="Qatar">' . __("Qatar", "contact_form_maker") . '</option><option value="Romania">' . __("Romania", "contact_form_maker") . '</option><option value="Russia">' . __("Russia", "contact_form_maker") . '</option><option value="Rwanda">' . __("Rwanda", "contact_form_maker") . '</option><option value="Saint Kitts and Nevis">' . __("Saint Kitts and Nevis", "contact_form_maker") . '</option><option value="Saint Lucia">' . __("Saint Lucia", "contact_form_maker") . '</option><option value="Saint Vincent">' . __("Saint Vincent", "contact_form_maker") . '</option><option value="Samoa">' . __("Samoa", "contact_form_maker") . '</option><option value="San Marino">' . __("San Marino", "contact_form_maker") . '</option><option value="Sao Tome and Principe">' . __("Sao Tome and Principe", "contact_form_maker") . '</option><option value="Saudi Arabia">' . __("Saudi Arabia", "contact_form_maker") . '</option><option value="Senegal">' . __("Senegal","contact_form_maker") . '</option><option value="Serbia and Montenegro">' . __("Serbia and Montenegro", "contact_form_maker") . '</option><option value="Seychelles">' . __("Seychelles", "contact_form_maker") . '</option><option value="Sierra Leone">' . __("Sierra Leone", "contact_form_maker") . '</option><option value="Singapore">' . __("Singapore", "contact_form_maker") . '</option><option value="Slovakia">' . __("Slovakia", "contact_form_maker") . '</option><option value="Slovenia">' . __("Slovenia", "contact_form_maker") . '</option><option value="Solomon Islands">' . __("Solomon Islands", "contact_form_maker") . '</option><option value="Somalia">' . __("Somalia", "contact_form_maker") . '</option><option value="South Africa">' . __("South Africa", "contact_form_maker") . '</option><option value="Spain">' . __("Spain", "contact_form_maker") . '</option><option value="Sri Lanka">' . __("Sri Lanka", "contact_form_maker") . '</option><option value="Sudan">' . __("Sudan", "contact_form_maker") . '</option><option value="Suriname">' . __("Suriname", "contact_form_maker") . '</option><option value="Swaziland">' . __("Swaziland", "contact_form_maker") . '</option><option value="Sweden">' . __("Sweden", "contact_form_maker") . '</option><option value="Switzerland">' . __("Switzerland", "contact_form_maker") . '</option><option value="Syria">' . __("Syria", "contact_form_maker") . '</option><option value="Taiwan">' . __("Taiwan", "contact_form_maker") . '</option><option value="Tajikistan">' . __("Tajikistan", "contact_form_maker") .'</option><option value="Tanzania">' . __("Tanzania", "contact_form_maker") . '</option><option value="Thailand">' . __("Thailand", "contact_form_maker") . '</option><option value="Togo">' . __("Togo", "contact_form_maker") . '</option><option value="Tonga">' . __("Tonga", "contact_form_maker") . '</option><option value="Trinidad and Tobago">' . __("Trinidad and Tobago", "contact_form_maker") . '</option><option value="Tunisia">' . __("Tunisia", "contact_form_maker") . '</option><option value="Turkey">' . __("Turkey", "contact_form_maker") . '</option><option value="Turkmenistan">' . __("Turkmenistan", "contact_form_maker") . '</option><option value="Tuvalu">' . __("Tuvalu", "contact_form_maker") . '</option><option value="Uganda">' . __("Uganda", "contact_form_maker") . '</option><option value="Ukraine">' . __("Ukraine", "contact_form_maker") . '</option><option value="United Arab Emirates">' . __("United Arab Emirates", "contact_form_maker") . '</option><option value="United Kingdom">' . __("United Kingdom", "contact_form_maker") . '</option><option value="United States">' . __("United States", "contact_form_maker") . '</option><option value="Uruguay">' . __("Uruguay", "contact_form_maker") . '</option><option value="Uzbekistan">' . __("Uzbekistan", "contact_form_maker") . '</option><option value="Vanuatu">' . __("Vanuatu", "contact_form_maker") . '</option><option value="Vatican City">' . __("Vatican City", "contact_form_maker") . '</option><option value="Venezuela">' . __("Venezuela", "contact_form_maker") . '</option><option value="Vietnam">' . __("Vietnam", "contact_form_maker") . '</option><option value="Yemen">' . __("Yemen", "contact_form_maker") . '</option><option value="Zambia">' . __("Zambia", "contact_form_maker") . '</option></select><label class="mini_label" style="display: block;" id="'.$id.'_mini_label_country">'.$w_mini_labels[5].'</span>';
334
- }
335
- $rep .= '<div id="wdform_field'.$id.'" type="type_address" class="wdform_field" style="display: table-cell;"><div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].'; width: '.$param['w_field_label_size'].'px; vertical-align:top;"><span id="'.$id.'_element_labelform_id_temp" class="label" style="vertical-align: top;">'.$label.'</span><span id="'.$id.'_required_elementform_id_temp" class="required" style="vertical-align: top;">'.$required_sym.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].';"><input type="hidden" value="type_address" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><input type="hidden" value="'.$param['w_required'].'" name="'.$id.'_requiredform_id_temp" id="'.$id.'_requiredform_id_temp"><input type="hidden" name="'.$id.'_disable_fieldsform_id_temp" id="'.$id.'_disable_fieldsform_id_temp" street1="'.$w_disabled_fields[0].'" street2="'.$w_disabled_fields[1].'" city="'.$w_disabled_fields[2].'" state="'.$w_disabled_fields[3].'" postal="'.$w_disabled_fields[4].'" country="'.$w_disabled_fields[5].'" us_states="'.$w_disabled_fields[6].'"><div id="'.$id.'_div_address" style="width: '.$param['w_size'].'px;">'.$address_fields.$hidden_inputs.'</div></div></div>';
336
- break;
337
- }
338
- case 'type_submitter_mail': {
339
- $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_size', 'w_first_val', 'w_title', 'w_required', 'w_unique', 'w_class');
340
- $temp = $params;
341
- foreach ($params_names as $params_name) {
342
- $temp = explode('*:*' . $params_name . '*:*', $temp);
343
- $param[$params_name] = $temp[0];
344
- $temp = $temp[1];
345
- }
346
- if ($temp) {
347
- $temp = explode('*:*w_attr_name*:*', $temp);
348
- $attrs = array_slice($temp, 0, count($temp) - 1);
349
- foreach ($attrs as $attr) {
350
- $param['attributes'] = $param['attributes'] . ' add_' . $attr;
351
- }
352
- }
353
- $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
354
- $input_active = ($param['w_first_val'] == $param['w_title'] ? "input_deactive" : "input_active");
355
- $required_sym = ($param['w_required'] == "yes" ? " *" : "");
356
- $rep .= '<div id="wdform_field'.$id.'" type="type_submitter_mail" class="wdform_field" style="display: table-cell;"><div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].'; width: '.$param['w_field_label_size'].'px; vertical-align:top;"><span id="'.$id.'_element_labelform_id_temp" class="label" style="vertical-align: top;">'.$label.'</span><span id="'.$id.'_required_elementform_id_temp" class="required" style="vertical-align: top;">'.$required_sym.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].';"><input type="hidden" value="type_submitter_mail" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><input type="hidden" value="'.$param['w_required'].'" name="'.$id.'_requiredform_id_temp" id="'.$id.'_requiredform_id_temp"><input type="hidden" value="'.$param['w_unique'].'" name="'.$id.'_uniqueform_id_temp" id="'.$id.'_uniqueform_id_temp"><input type="text" class="'.$input_active.'" id="'.$id.'_elementform_id_temp" name="'.$id.'_elementform_id_temp" value="'.$param['w_first_val'].'" title="'.$param['w_title'].'" onfocus="delete_value(&quot;'.$id.'_elementform_id_temp&quot;)" onblur="return_value(&quot;'.$id.'_elementform_id_temp&quot;)" onchange="change_value(&quot;'.$id.'_elementform_id_temp&quot;)" style="width: '.$param['w_size'].'px;" '.$param['attributes'].' disabled ></div></div>';
357
- break;
358
- }
359
- case 'type_checkbox': {
360
- $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_flow', 'w_choices', 'w_choices_checked', 'w_rowcol', 'w_required', 'w_randomize', 'w_allow_other', 'w_allow_other_num', 'w_class');
361
- $temp = $params;
362
- foreach ($params_names as $params_name) {
363
- $temp = explode('*:*' . $params_name . '*:*', $temp);
364
- $param[$params_name] = $temp[0];
365
- $temp = $temp[1];
366
- }
367
- if ($temp) {
368
- $temp = explode('*:*w_attr_name*:*', $temp);
369
- $attrs = array_slice($temp, 0, count($temp) - 1);
370
- foreach ($attrs as $attr) {
371
- $param['attributes'] = $param['attributes'] . ' add_' . $attr;
372
- }
373
- }
374
- $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
375
- $required_sym = ($param['w_required'] == "yes" ? " *" : "");
376
- $param['w_choices'] = explode('***', $param['w_choices']);
377
- $param['w_choices_checked'] = explode('***',$param['w_choices_checked']);
378
- foreach ($param['w_choices_checked'] as $key => $choices_checked) {
379
- if ($choices_checked == 'true') {
380
- $param['w_choices_checked'][$key] = 'checked="checked"';
381
- }
382
- else {
383
- $param['w_choices_checked'][$key] = '';
384
- }
385
- }
386
- $rep .= '<div id="wdform_field'.$id.'" type="type_checkbox" class="wdform_field" style="display: table-cell;"><div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].'; width: '.$param['w_field_label_size'].'px;"><span id="'.$id.'_element_labelform_id_temp" class="label" style="vertical-align: top;">'.$label.'</span><span id="'.$id.'_required_elementform_id_temp" class="required" style="vertical-align: top;">'.$required_sym.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].';"><input type="hidden" value="type_checkbox" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><input type="hidden" value="'.$param['w_required'].'" name="'.$id.'_requiredform_id_temp" id="'.$id.'_requiredform_id_temp"><input type="hidden" value="'.$param['w_randomize'].'" name="'.$id.'_randomizeform_id_temp" id="'.$id.'_randomizeform_id_temp"><input type="hidden" value="'.$param['w_allow_other'].'" name="'.$id.'_allow_otherform_id_temp" id="'.$id.'_allow_otherform_id_temp"><input type="hidden" value="'.$param['w_allow_other_num'].'" name="'.$id.'_allow_other_numform_id_temp" id="'.$id.'_allow_other_numform_id_temp"><input type="hidden" value="'.$param['w_rowcol'].'" name="'.$id.'_rowcol_numform_id_temp" id="'.$id.'_rowcol_numform_id_temp"><div style="display: table;"><div id="'.$id.'_table_little" style="display: table-row-group;" '.($param['w_flow']=='hor' ? 'for_hor="'.$id.'_hor"' : '').'>';
387
- if ($param['w_flow'] == 'hor') {
388
- $j = 0;
389
- for ($i = 0; $i < (int) $param['w_rowcol']; $i++) {
390
- $rep .= '<div id="'.$id.'_element_tr'.$i.'" style="display: table-row;">';
391
- for ($l = 0; $l <= (int)(count($param['w_choices']) / $param['w_rowcol']); $l++) {
392
- if ($j >= count($param['w_choices']) % $param['w_rowcol'] && $l == (int) (count($param['w_choices']) / $param['w_rowcol'])) {
393
- continue;
394
- }
395
- if ($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == (int) $param['w_rowcol'] * $i + $l) {
396
- $rep .= '<div valign="top" id="'.$id.'_td_little'.((int)$param['w_rowcol']*$l+$i).'" idi="'.((int)$param['w_rowcol']*$l+$i).'" style="display: table-cell;"><input type="checkbox" value="'.$param['w_choices'][(int)$param['w_rowcol']*$l+$i].'" id="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$l+$i).'" name="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$l+$i).'" other="1" onclick="if(set_checked(&quot;'.$id.'&quot;,&quot;'.((int)$param['w_rowcol']*$l+$i).'&quot;,&quot;form_id_temp&quot;)) show_other_input(&quot;'.$id.'&quot;,&quot;form_id_temp&quot;);" '.$param['w_choices_checked'][(int)$param['w_rowcol']*$l+$i].' '.$param['attributes'].' disabled ><label id="'.$id.'_label_element'.((int)$param['w_rowcol']*$l+$i).'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$l+$i).'">'.$param['w_choices'][(int)$param['w_rowcol']*$l+$i].'</label></div>';
397
- }
398
- else {
399
- $rep .= '<div valign="top" id="'.$id.'_td_little'.((int)$param['w_rowcol']*$l+$i).'" idi="'.((int)$param['w_rowcol']*$l+$i).'" style="display: table-cell;"><input type="checkbox" value="'.$param['w_choices'][(int)$param['w_rowcol']*$l+$i].'" id="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$l+$i).'" name="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$l+$i).'" onclick="set_checked(&quot;'.$id.'&quot;,&quot;'.((int)$param['w_rowcol']*$l+$i).'&quot;,&quot;form_id_temp&quot;)" '.$param['w_choices_checked'][(int)$param['w_rowcol']*$l+$i].' '.$param['attributes'].' disabled><label id="'.$id.'_label_element'.((int)$param['w_rowcol']*$l+$i).'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$l+$i).'">'.$param['w_choices'][(int)$param['w_rowcol']*$l+$i].'</label></div>';
400
- }
401
- }
402
- $j++;
403
- $rep .= '</div>';
404
- }
405
- }
406
- else {
407
- for ($i = 0; $i < (int) (count($param['w_choices']) / $param['w_rowcol']); $i++) {
408
- $rep .= '<div id="'.$id.'_element_tr'.$i.'" style="display: table-row;">';
409
- if (count($param['w_choices']) > (int)$param['w_rowcol']) {
410
- for ($l = 0; $l < $param['w_rowcol']; $l++) {
411
- if ($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == (int) $param['w_rowcol'] * $i + $l) {
412
- $rep .= '<div valign="top" id="'.$id.'_td_little'.((int)$param['w_rowcol']*$i+$l).'" idi="'.((int)$param['w_rowcol']*$i+$l).'" style="display: table-cell;"><input type="checkbox" value="'.$param['w_choices'][(int)$param['w_rowcol']*$i+$l].'" id="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'" name="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'" other="1" onclick="if(set_checked(&quot;'.$id.'&quot;,&quot;'.((int)$param['w_rowcol']*$i+$l).'&quot;,&quot;form_id_temp&quot;)) show_other_input(&quot;'.$id.'&quot;,&quot;form_id_temp&quot;);" '.$param['w_choices_checked'][(int)$param['w_rowcol']*$i+$l].' '.$param['attributes'].' disabled><label id="'.$id.'_label_element'.((int)$param['w_rowcol']*$i+$l).'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'">'.$param['w_choices'][(int)$param['w_rowcol']*$i+$l].'</label></div>';
413
- }
414
- else {
415
- $rep .= '<div valign="top" id="'.$id.'_td_little'.((int)$param['w_rowcol']*$i+$l).'" idi="'.((int)$param['w_rowcol']*$i+$l).'" style="display: table-cell;"><input type="checkbox" value="'.$param['w_choices'][(int)$param['w_rowcol']*$i+$l].'" id="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'" name="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'" onclick="set_checked(&quot;'.$id.'&quot;,&quot;'.((int)$param['w_rowcol']*$i+$l).'&quot;,&quot;form_id_temp&quot;)" '.$param['w_choices_checked'][(int)$param['w_rowcol']*$i+$l].' '.$param['attributes'].' disabled><label id="'.$id.'_label_element'.((int)$param['w_rowcol']*$i+$l).'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'">'.$param['w_choices'][(int)$param['w_rowcol']*$i+$l].'</label></div>';
416
- }
417
- }
418
- }
419
- else {
420
- for ($l = 0; $l < count($param['w_choices']); $l++) {
421
- if ($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == (int) $param['w_rowcol'] * $i + $l) {
422
- $rep .= '<div valign="top" id="'.$id.'_td_little'.((int)$param['w_rowcol']*$i+$l).'" idi="'.((int)$param['w_rowcol']*$i+$l).'" style="display: table-cell;"><input type="checkbox" value="'.$param['w_choices'][(int)$param['w_rowcol']*$i+$l].'" id="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'" name="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'" other="1" onclick="if(set_checked(&quot;'.$id.'&quot;,&quot;'.((int)$param['w_rowcol']*$i+$l).'&quot;,&quot;form_id_temp&quot;)) show_other_input(&quot;'.$id.'&quot;,&quot;form_id_temp&quot;);" '.$param['w_choices_checked'][(int)$param['w_rowcol']*$i+$l].' '.$param['attributes'].' disabled><label id="'.$id.'_label_element'.((int)$param['w_rowcol']*$i+$l).'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'">'.$param['w_choices'][(int)$param['w_rowcol']*$i+$l].'</label></div>';
423
- }
424
- else {
425
- $rep .= '<div valign="top" id="'.$id.'_td_little'.((int)$param['w_rowcol']*$i+$l).'" idi="'.((int)$param['w_rowcol']*$i+$l).'" style="display: table-cell;"><input type="checkbox" value="'.$param['w_choices'][(int)$param['w_rowcol']*$i+$l].'" id="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'" name="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'" onclick="set_checked(&quot;'.$id.'&quot;,&quot;'.((int)$param['w_rowcol']*$i+$l).'&quot;,&quot;form_id_temp&quot;)" '.$param['w_choices_checked'][(int)$param['w_rowcol']*$i+$l].' '.$param['attributes'].' disabled><label id="'.$id.'_label_element'.((int)$param['w_rowcol']*$i+$l).'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'">'.$param['w_choices'][(int)$param['w_rowcol']*$i+$l].'</label></div>';
426
- }
427
- }
428
- }
429
- $rep .= '</div>';
430
- }
431
- if (count($param['w_choices']) % $param['w_rowcol'] != 0) {
432
- $rep .= '<div id="'.$id.'_element_tr'.((int) (count($param['w_choices']) / (int)$param['w_rowcol'])).'" style="display: table-row;">';
433
- for ($k = 0; $k < count($param['w_choices']) % $param['w_rowcol']; $k++) {
434
- $l = count($param['w_choices']) - count($param['w_choices']) % $param['w_rowcol'] + $k;
435
- if ($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == $l) {
436
- $rep .= '<div valign="top" id="'.$id.'_td_little'.$l.'" idi="'.$l.'" style="display: table-cell;"><input type="checkbox" value="'.$param['w_choices'][$l].'" id="'.$id.'_elementform_id_temp'.$l.'" name="'.$id.'_elementform_id_temp'.$l.'" other="1" onclick="if(set_checked(&quot;'.$id.'&quot;,&quot;'.$l.'&quot;,&quot;form_id_temp&quot;)) show_other_input(&quot;'.$id.'&quot;,&quot;form_id_temp&quot;);" '.$param['w_choices_checked'][$l].' '.$param['attributes'].' disabled><label id="'.$id.'_label_element'.$l.'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.$l.'">'.$param['w_choices'][$l].'</label></div>';
437
- }
438
- else {
439
- $rep .= '<div valign="top" id="'.$id.'_td_little'.$l.'" idi="'.$l.'" style="display: table-cell;"><input type="checkbox" value="'.$param['w_choices'][$l].'" id="'.$id.'_elementform_id_temp'.$l.'" name="'.$id.'_elementform_id_temp'.$l.'" onclick="set_checked(&quot;'.$id.'&quot;,&quot;'.$l.'&quot;,&quot;form_id_temp&quot;)" '.$param['w_choices_checked'][$l].' '.$param['attributes'].' disabled><label id="'.$id.'_label_element'.$l.'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.$l.'">'.$param['w_choices'][$l].'</label></div>';
440
- }
441
- }
442
- $rep .= '</div>';
443
- }
444
- }
445
- $rep .= '</div></div></div></div>';
446
- break;
447
- }
448
- case 'type_radio': {
449
- $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_flow', 'w_choices', 'w_choices_checked', 'w_rowcol', 'w_required', 'w_randomize', 'w_allow_other', 'w_allow_other_num', 'w_class');
450
- $temp = $params;
451
- foreach ($params_names as $params_name) {
452
- $temp = explode('*:*' . $params_name . '*:*', $temp);
453
- $param[$params_name] = $temp[0];
454
- $temp = $temp[1];
455
- }
456
- if ($temp) {
457
- $temp = explode('*:*w_attr_name*:*', $temp);
458
- $attrs = array_slice($temp, 0, count($temp) - 1);
459
- foreach ($attrs as $attr) {
460
- $param['attributes'] = $param['attributes'] . ' add_' . $attr;
461
- }
462
- }
463
- $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
464
- $required_sym = ($param['w_required'] == "yes" ? " *" : "");
465
- $param['w_choices'] = explode('***', $param['w_choices']);
466
- $param['w_choices_checked'] = explode('***', $param['w_choices_checked']);
467
- foreach ($param['w_choices_checked'] as $key => $choices_checked) {
468
- if ($choices_checked == 'true') {
469
- $param['w_choices_checked'][$key] = 'checked="checked"';
470
- }
471
- else {
472
- $param['w_choices_checked'][$key] = '';
473
- }
474
- }
475
- $rep .= '<div id="wdform_field'.$id.'" type="type_radio" class="wdform_field" style="display: table-cell;"><div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].'; width: '.$param['w_field_label_size'].'px;"><span id="'.$id.'_element_labelform_id_temp" class="label" style="vertical-align: top;">'.$label.'</span><span id="'.$id.'_required_elementform_id_temp" class="required" style="vertical-align: top;">'.$required_sym.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].';"><input type="hidden" value="type_radio" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><input type="hidden" value="'.$param['w_required'].'" name="'.$id.'_requiredform_id_temp" id="'.$id.'_requiredform_id_temp"><input type="hidden" value="'.$param['w_randomize'].'" name="'.$id.'_randomizeform_id_temp" id="'.$id.'_randomizeform_id_temp"><input type="hidden" value="'.$param['w_allow_other'].'" name="'.$id.'_allow_otherform_id_temp" id="'.$id.'_allow_otherform_id_temp"><input type="hidden" value="'.$param['w_allow_other_num'].'" name="'.$id.'_allow_other_numform_id_temp" id="'.$id.'_allow_other_numform_id_temp"><input type="hidden" value="'.$param['w_rowcol'].'" name="'.$id.'_rowcol_numform_id_temp" id="'.$id.'_rowcol_numform_id_temp"><div style="display: table;"><div id="'.$id.'_table_little" style="display: table-row-group;" '.($param['w_flow']=='hor' ? 'for_hor="'.$id.'_hor"' : '').'>';
476
- if ($param['w_flow'] == 'hor') {
477
- $j = 0;
478
- for ($i = 0; $i < (int) $param['w_rowcol']; $i++) {
479
- $rep .= '<div id="'.$id.'_element_tr'.$i.'" style="display: table-row;">';
480
- for($l=0; $l<=(int)(count($param['w_choices'])/$param['w_rowcol']); $l++) {
481
- if ($j >= count($param['w_choices'])%$param['w_rowcol'] && $l == (int) (count($param['w_choices']) / $param['w_rowcol'])) {
482
- continue;
483
- }
484
- if ($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == (int) $param['w_rowcol'] * $i + $l) {
485
- $rep .= '<div valign="top" id="'.$id.'_td_little'.((int)$param['w_rowcol']*$l+$i).'" idi="'.((int)$param['w_rowcol']*$l+$i).'" style="display: table-cell;"><input type="radio" value="'.$param['w_choices'][(int)$param['w_rowcol']*$l+$i].'" id="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$l+$i).'" name="'.$id.'_elementform_id_temp" other="1" onclick="set_default(&quot;'.$id.'&quot;,&quot;'.((int)$param['w_rowcol']*$l+$i).'&quot;,&quot;form_id_temp&quot;); show_other_input(&quot;'.$id.'&quot;,&quot;form_id_temp&quot;);" '.$param['w_choices_checked'][(int)$param['w_rowcol']*$l+$i].' '.$param['attributes'].' disabled><label id="'.$id.'_label_element'.((int)$param['w_rowcol']*$l+$i).'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$l+$i).'">'.$param['w_choices'][(int)$param['w_rowcol']*$l+$i].'</label></div>';
486
- }
487
- else {
488
- $rep .= '<div valign="top" id="'.$id.'_td_little'.((int)$param['w_rowcol']*$l+$i).'" idi="'.((int)$param['w_rowcol']*$l+$i).'" style="display: table-cell;"><input type="radio" value="'.$param['w_choices'][(int)$param['w_rowcol']*$l+$i].'" id="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$l+$i).'" name="'.$id.'_elementform_id_temp" onclick="set_default(&quot;'.$id.'&quot;,&quot;'.((int)$param['w_rowcol']*$l+$i).'&quot;,&quot;form_id_temp&quot;)" '.$param['w_choices_checked'][(int)$param['w_rowcol']*$l+$i].' '.$param['attributes'].' disabled><label id="'.$id.'_label_element'.((int)$param['w_rowcol']*$l+$i).'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$l+$i).'">'.$param['w_choices'][(int)$param['w_rowcol']*$l+$i].'</label></div>';
489
- }
490
- }
491
- $j++;
492
- $rep .= '</div>';
493
- }
494
- }
495
- else {
496
- for ($i = 0; $i < (int) (count($param['w_choices']) / $param['w_rowcol']); $i++) {
497
- $rep .= '<div id="'.$id.'_element_tr'.$i.'" style="display: table-row;">';
498
- if (count($param['w_choices']) > (int) $param['w_rowcol']) {
499
- for ($l = 0; $l < $param['w_rowcol']; $l++) {
500
- if ($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == (int) $param['w_rowcol'] * $i + $l) {
501
- $rep .= '<div valign="top" id="'.$id.'_td_little'.((int)$param['w_rowcol']*$i+$l).'" idi="'.((int)$param['w_rowcol']*$i+$l).'" style="display: table-cell;"><input type="radio" value="'.$param['w_choices'][(int)$param['w_rowcol']*$i+$l].'" id="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'" name="'.$id.'_elementform_id_temp" other="1" onclick="set_default(&quot;'.$id.'&quot;,&quot;'.((int)$param['w_rowcol']*$i+$l).'&quot;,&quot;form_id_temp&quot;); show_other_input(&quot;'.$id.'&quot;,&quot;form_id_temp&quot;);" '.$param['w_choices_checked'][(int)$param['w_rowcol']*$i+$l].' '.$param['attributes'].' disabled><label id="'.$id.'_label_element'.((int)$param['w_rowcol']*$i+$l).'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'">'.$param['w_choices'][(int)$param['w_rowcol']*$i+$l].'</label></div>';
502
- }
503
- else {
504
- $rep .= '<div valign="top" id="'.$id.'_td_little'.((int)$param['w_rowcol']*$i+$l).'" idi="'.((int)$param['w_rowcol']*$i+$l).'" style="display: table-cell;"><input type="radio" value="'.$param['w_choices'][(int)$param['w_rowcol']*$i+$l].'" id="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'" name="'.$id.'_elementform_id_temp" onclick="set_default(&quot;'.$id.'&quot;,&quot;'.((int)$param['w_rowcol']*$i+$l).'&quot;,&quot;form_id_temp&quot;)" '.$param['w_choices_checked'][(int)$param['w_rowcol']*$i+$l].' '.$param['attributes'].' disabled><label id="'.$id.'_label_element'.((int)$param['w_rowcol']*$i+$l).'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'">'.$param['w_choices'][(int)$param['w_rowcol']*$i+$l].'</label></div>';
505
- }
506
- }
507
- }
508
- else {
509
- for ($l = 0; $l < count($param['w_choices']); $l++) {
510
- if ($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == (int) $param['w_rowcol'] * $i + $l) {
511
- $rep .= '<div valign="top" id="'.$id.'_td_little'.((int)$param['w_rowcol']*$i+$l).'" idi="'.((int)$param['w_rowcol']*$i+$l).'" style="display: table-cell;"><input type="radio" value="'.$param['w_choices'][(int)$param['w_rowcol']*$i+$l].'" id="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'" name="'.$id.'_elementform_id_temp" other="1" onclick="set_default(&quot;'.$id.'&quot;,&quot;'.((int)$param['w_rowcol']*$i+$l).'&quot;,&quot;form_id_temp&quot;); show_other_input(&quot;'.$id.'&quot;,&quot;form_id_temp&quot;);" '.$param['w_choices_checked'][(int)$param['w_rowcol']*$i+$l].' '.$param['attributes'].' disabled><label id="'.$id.'_label_element'.((int)$param['w_rowcol']*$i+$l).'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'">'.$param['w_choices'][(int)$param['w_rowcol']*$i+$l].'</label></div>';
512
- }
513
- else {
514
- $rep .= '<div valign="top" id="'.$id.'_td_little'.((int)$param['w_rowcol']*$i+$l).'" idi="'.((int)$param['w_rowcol']*$i+$l).'" style="display: table-cell;"><input type="radio" value="'.$param['w_choices'][(int)$param['w_rowcol']*$i+$l].'" id="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'" name="'.$id.'_elementform_id_temp" onclick="set_default(&quot;'.$id.'&quot;,&quot;'.((int)$param['w_rowcol']*$i+$l).'&quot;,&quot;form_id_temp&quot;)" '.$param['w_choices_checked'][(int)$param['w_rowcol']*$i+$l].' '.$param['attributes'].' disabled><label id="'.$id.'_label_element'.((int)$param['w_rowcol']*$i+$l).'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'">'.$param['w_choices'][(int)$param['w_rowcol']*$i+$l].'</label></div>';
515
- }
516
- }
517
- }
518
- $rep .= '</div>';
519
- }
520
- if (count($param['w_choices']) % $param['w_rowcol'] != 0) {
521
- $rep .= '<div id="'.$id.'_element_tr'.((int)(count($param['w_choices'])/(int)$param['w_rowcol'])).'" style="display: table-row;">';
522
- for ($k = 0; $k < count($param['w_choices']) % $param['w_rowcol']; $k++) {
523
- $l = count($param['w_choices']) - count($param['w_choices']) % $param['w_rowcol'] + $k;
524
- if ($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == $l) {
525
- $rep .= '<div valign="top" id="'.$id.'_td_little'.$l.'" idi="'.$l.'" style="display: table-cell;"><input type="radio" value="'.$param['w_choices'][$l].'" id="'.$id.'_elementform_id_temp'.$l.'" name="'.$id.'_elementform_id_temp" other="1" onclick="set_default(&quot;'.$id.'&quot;,&quot;'.$l.'&quot;,&quot;form_id_temp&quot;); show_other_input(&quot;'.$id.'&quot;,&quot;form_id_temp&quot;);" '.$param['w_choices_checked'][$l].' '.$param['attributes'].' disabled><label id="'.$id.'_label_element'.$l.'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.$l.'">'.$param['w_choices'][$l].'</label></div>';
526
- }
527
- else {
528
- $rep .= '<div valign="top" id="'.$id.'_td_little'.$l.'" idi="'.$l.'" style="display: table-cell;"><input type="radio" value="'.$param['w_choices'][$l].'" id="'.$id.'_elementform_id_temp'.$l.'" name="'.$id.'_elementform_id_temp" onclick="set_default(&quot;'.$id.'&quot;,&quot;'.$l.'&quot;,&quot;form_id_temp&quot;)" '.$param['w_choices_checked'][$l].' '.$param['attributes'].' disabled><label id="'.$id.'_label_element'.$l.'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.$l.'">'.$param['w_choices'][$l].'</label></div>';
529
- }
530
- }
531
- $rep .= '</div>';
532
- }
533
- }
534
- $rep .= '</div></div></div></div>';
535
- break;
536
- }
537
- case 'type_own_select': {
538
- $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_size', 'w_choices', 'w_choices_checked', 'w_choices_disabled', 'w_required', 'w_class');
539
- $temp = $params;
540
- foreach ($params_names as $params_name) {
541
- $temp = explode('*:*' . $params_name . '*:*', $temp);
542
- $param[$params_name] = $temp[0];
543
- $temp = $temp[1];
544
- }
545
- if ($temp) {
546
- $temp = explode('*:*w_attr_name*:*', $temp);
547
- $attrs = array_slice($temp, 0, count($temp) - 1);
548
- foreach ($attrs as $attr) {
549
- $param['attributes'] = $param['attributes'] . ' add_' . $attr;
550
- }
551
- }
552
- $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
553
- $required_sym = ($param['w_required'] == "yes" ? " *" : "");
554
- $param['w_choices'] = explode('***', $param['w_choices']);
555
- $param['w_choices_checked'] = explode('***',$param['w_choices_checked']);
556
- $param['w_choices_disabled'] = explode('***',$param['w_choices_disabled']);
557
- foreach ($param['w_choices_checked'] as $key => $choices_checked) {
558
- if ($choices_checked == 'true') {
559
- $param['w_choices_checked'][$key] = 'selected="selected"';
560
- }
561
- else {
562
- $param['w_choices_checked'][$key] = '';
563
- }
564
- }
565
- $rep .= '<div id="wdform_field'.$id.'" type="type_own_select" class="wdform_field" style="display: table-cell;"><div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].'; width: '.$param['w_field_label_size'].'px;"><span id="'.$id.'_element_labelform_id_temp" class="label" style="vertical-align: top;">'.$label.'</span><span id="'.$id.'_required_elementform_id_temp" class="required" style="vertical-align: top;">'.$required_sym.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].'; "><input type="hidden" value="type_own_select" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><input type="hidden" value="'.$param['w_required'].'" name="'.$id.'_requiredform_id_temp" id="'.$id.'_requiredform_id_temp"><select id="'.$id.'_elementform_id_temp" name="'.$id.'_elementform_id_temp" onchange="set_select(this)" style="width: '.$param['w_size'].'px;" '.$param['attributes'].' disabled>';
566
- foreach ($param['w_choices'] as $key => $choice) {
567
- if ($param['w_choices_disabled'][$key] == "true") {
568
- $choice_value = '';
569
- }
570
- else {
571
- $choice_value = $choice;
572
- }
573
- $rep .= '<option id="'.$id.'_option'.$key.'" value="'.$choice_value.'" onselect="set_select(&quot;'.$id.'_option'.$key.'&quot;)" '.$param['w_choices_checked'][$key].'>'.$choice.'</option>';
574
- }
575
- $rep .= '</select></div></div>';
576
- break;
577
- }
578
- case 'type_captcha': {
579
- $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_digit', 'w_class');
580
- $temp = $params;
581
- foreach ($params_names as $params_name) {
582
- $temp = explode('*:*' . $params_name . '*:*', $temp);
583
- $param[$params_name] = $temp[0];
584
- $temp = $temp[1];
585
- }
586
- if ($temp) {
587
- $temp = explode('*:*w_attr_name*:*', $temp);
588
- $attrs = array_slice($temp, 0, count($temp) - 1);
589
- foreach ($attrs as $attr) {
590
- $param['attributes'] = $param['attributes'] . ' add_' . $attr;
591
- }
592
- }
593
- $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
594
- $rep .= '<div id="wdform_field'.$id.'" type="type_captcha" class="wdform_field" style="display: table-cell;"><div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display:'.$param['w_field_label_pos'].'; width: '.$param['w_field_label_size'].'px; vertical-align:top;"><span id="'.$id.'_element_labelform_id_temp" class="label" style="vertical-align: top;">'.$label.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].';"><input type="hidden" value="type_captcha" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><div style="display: table;"><div style="display: table-row;"><div valign="middle" style="display: table-cell;"><img type="captcha" digit="'.$param['w_digit'].'" src="' . add_query_arg(array('action' => 'ContactFormmakerwdcaptcha', 'digit' => $param['w_digit'], 'i' => 'form_id_temp'), admin_url('admin-ajax.php')) . 'digit='.$param['w_digit'].'" id="_wd_captchaform_id_temp" class="captcha_img" onclick="captcha_refresh(&quot;_wd_captcha&quot;,&quot;form_id_temp&quot;)" '.$param['attributes'].'></div><div valign="middle" style="display: table-cell;"><div class="captcha_refresh" id="_element_refreshform_id_temp" onclick="captcha_refresh(&quot;_wd_captcha&quot;,&quot;form_id_temp&quot;)" '.$param['attributes'].'></div></div></div><div style="display: table-row;"><div style="display: table-cell;"><input type="text" class="captcha_input" id="_wd_captcha_inputform_id_temp" name="captcha_input" style="width: '.($param['w_digit']*10+15).'px;" '.$param['attributes'].' disabled></div></div></div></div></div>';
595
- break;
596
- }
597
- case 'type_recaptcha': {
598
- $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_public', 'w_private', 'w_theme', 'w_class');
599
- $temp = $params;
600
- foreach ($params_names as $params_name) {
601
- $temp = explode('*:*' . $params_name . '*:*', $temp);
602
- $param[$params_name] = $temp[0];
603
- $temp = $temp[1];
604
- }
605
- if ($temp) {
606
- $temp = explode('*:*w_attr_name*:*', $temp);
607
- $attrs = array_slice($temp, 0, count($temp) - 1);
608
- foreach ($attrs as $attr) {
609
- $param['attributes'] = $param['attributes'] . ' add_' . $attr;
610
- }
611
- }
612
- $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
613
- $rep .= '<div id="wdform_field'.$id.'" type="type_recaptcha" class="wdform_field" style="display: table-cell;"><div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].'; width: '.$param['w_field_label_size'].'px; vertical-align:top;"><span id="'.$id.'_element_labelform_id_temp" class="label" style="vertical-align: top;">'.$label.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].';"><input type="hidden" value="type_recaptcha" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><div id="wd_recaptchaform_id_temp" public_key="'.$param['w_public'].'" private_key="'.$param['w_private'].'" theme="'.$param['w_theme'].'" '.$param['attributes'].'><span style="color: red; font-style: italic;">Recaptcha doesn\'t display in back end</span></div></div></div>';
614
- break;
615
- }
616
- case 'type_map': {
617
- $params_names = array('w_center_x', 'w_center_y', 'w_long', 'w_lat', 'w_zoom', 'w_width', 'w_height', 'w_info', 'w_class');
618
- $temp = $params;
619
- foreach ($params_names as $params_name) {
620
- $temp = explode('*:*' . $params_name . '*:*', $temp);
621
- $param[$params_name] = $temp[0];
622
- $temp = $temp[1];
623
- }
624
- if ($temp) {
625
- $temp = explode('*:*w_attr_name*:*', $temp);
626
- $attrs = array_slice($temp, 0, count($temp) - 1);
627
- foreach ($attrs as $attr) {
628
- $param['attributes'] = $param['attributes'] . ' add_' . $attr;
629
- }
630
- }
631
- $marker = '';
632
- $param['w_long'] = explode('***', $param['w_long']);
633
- $param['w_lat'] = explode('***', $param['w_lat']);
634
- $param['w_info'] = explode('***', $param['w_info']);
635
- foreach ($param['w_long'] as $key => $w_long) {
636
- $marker .= 'long'.$key.'="'.$w_long.'" lat'.$key.'="'.$param['w_lat'][$key].'" info'.$key.'="'.$param['w_info'][$key].'"';
637
- }
638
- $rep .= '<div id="wdform_field'.$id.'" type="type_map" class="wdform_field" style="display: table-cell;"><div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display: table-cell; vertical-align:top;"><span id="'.$id.'_element_labelform_id_temp" style="display: none;">'.$label.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" class="'.$param['w_class'].'" style="display: table-cell;"><input type="hidden" value="type_map" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><div id="'.$id.'_elementform_id_temp" zoom="'.$param['w_zoom'].'" center_x="'.$param['w_center_x'].'" center_y="'.$param['w_center_y'].'" style="width: '.$param['w_width'].'px; height: '.$param['w_height'].'px;" '.$marker.' '.$param['attributes'].'></div></div></div>';
639
- break;
640
- }
641
- case 'type_submit_reset': {
642
- $params_names = array('w_submit_title', 'w_reset_title', 'w_class', 'w_act');
643
- $temp = $params;
644
- foreach ($params_names as $params_name) {
645
- $temp = explode('*:*' . $params_name . '*:*', $temp);
646
- $param[$params_name] = $temp[0];
647
- $temp = $temp[1];
648
- }
649
- if ($temp) {
650
- $temp = explode('*:*w_attr_name*:*', $temp);
651
- $attrs = array_slice($temp, 0, count($temp) - 1);
652
- foreach ($attrs as $attr) {
653
- $param['attributes'] = $param['attributes'] . ' add_' . $attr;
654
- }
655
- }
656
- $param['w_act'] = ($param['w_act'] == "false" ? 'style="display: none;"' : "");
657
- $rep .= '<div id="wdform_field'.$id.'" type="type_submit_reset" class="wdform_field" style="display: table-cell;"><div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display: table-cell; vertical-align:top;"><span id="'.$id.'_element_labelform_id_temp" style="display: none;">type_submit_reset_'.$id.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" class="'.$param['w_class'].'" style="display: table-cell;"><input type="hidden" value="type_submit_reset" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><button type="button" class="button-submit" id="'.$id.'_element_submitform_id_temp" value="'.$param['w_submit_title'].'" onclick="check_required(&quot;submit&quot;, &quot;form_id_temp&quot;);" '.$param['attributes'].'>'.$param['w_submit_title'].'</button><button type="button" class="button-reset" id="'.$id.'_element_resetform_id_temp" value="'.$param['w_reset_title'].'" onclick="check_required(&quot;reset&quot;);" '.$param['w_act'].' '.$param['attributes'].'>'.$param['w_reset_title'].'</button></div></div>';
658
- break;
659
- }
660
- }
661
- // Arrows.
662
- switch ($type) {
663
- case 'type_submit_reset': {
664
- $rep = $rep.'<div id="wdform_arrows'.$id.'" class="wdform_arrows" style="display: table-cell;"><div id="left_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/left.png" title="' . __("Move the field to the left", 'contact_form_maker').'" onclick="left_row(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;left&quot;)" onmouseout="chnage_icons_src(this,&quot;left&quot;)"></div><div id="up_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/up.png" title="' . __("Move the field up", 'contact_form_maker') . '" onclick="up_row(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;up&quot;)" onmouseout="chnage_icons_src(this,&quot;up&quot;)"></div><div id="down_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/down.png" title="' . __("Move the field down", 'contact_form_maker') . '" onclick="down_row(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;down&quot;)" onmouseout="chnage_icons_src(this,&quot;down&quot;)"></div><div id="right_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/right.png" title="' . __("Move the field to the right", 'contact_form_maker') . '" onclick="right_row(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;right&quot;)" onmouseout="chnage_icons_src(this,&quot;right&quot;)"></div><div id="edit_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/edit.png" title="' . __("Edit the field", 'contact_form_maker') . '" onclick="edit(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;edit&quot;)" onmouseout="chnage_icons_src(this,&quot;edit&quot;)"></div></div>';
665
- break;
666
- }
667
- case 'type_section_break': {
668
- $rep = $rep.'<div id="wdform_arrows'.$id.'" class="wdform_arrows"><div id="edit_'.$id.'" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/edit.png" title="' . __("Edit the field", 'contact_form_maker') . '" onclick="edit(&quot;'.$id.'&quot;)"><span id="'.$id.'_element_labelform_id_temp" style="display: none;">custom_'.$id.'</span></div><div class="element_toolbar" style="color:red; vertical-align: top;">('.(__("section break", 'contact_form_maker')).')</div></div>';
669
- break;
670
- }
671
- case 'type_captcha':
672
- case 'type_recaptcha': {
673
- $rep = $rep.'<div id="wdform_arrows'.$id.'" class="wdform_arrows" style="display: table-cell;"><div id="left_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/left.png" title="' . __("Move the field to the left", 'contact_form_maker') . '" onclick="left_row(&quot;'.$id.'&quot;)"></div><div id="up_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/up.png" title="' . __("Move the field up", 'contact_form_maker') . '" onclick="up_row(&quot;'.$id.'&quot;)"></div><div id="down_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/down.png" title="' . __("Move the field down", 'contact_form_maker') . '" onclick="down_row(&quot;'.$id.'&quot;)"></div><div id="right_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/right.png" title="' . __("Move the field to the right", 'contact_form_maker') . '" onclick="right_row(&quot;'.$id.'&quot;)"></div><div id="edit_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/edit.png" title="' . __("Edit the field", 'contact_form_maker') . '" onclick="edit(&quot;'.$id.'&quot;)"></div></div>';
674
- break;
675
- }
676
- case 'type_editor': {
677
- $rep = $rep.'<div id="wdform_arrows'.$id.'" class="wdform_arrows" style="display: table-cell;"><div id="left_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/left.png" title="' . __("Move the field to the left", 'contact_form_maker') . '" onclick="left_row(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;left&quot;)" onmouseout="chnage_icons_src(this,&quot;left&quot;)"></div><div id="up_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/up.png" title="' . __("Move the field up", 'contact_form_maker') . '" onclick="up_row(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;up&quot;)" onmouseout="chnage_icons_src(this,&quot;up&quot;)"></div><div id="down_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/down.png" title="' . __("Move the field down", 'contact_form_maker') . '" onclick="down_row(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;down&quot;)" onmouseout="chnage_icons_src(this,&quot;down&quot;)"></div><div id="right_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/right.png" title="' . __("Move the field to the right", 'contact_form_maker') . '" onclick="right_row(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;right&quot;)" onmouseout="chnage_icons_src(this,&quot;right&quot;)"></div><div id="edit_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/edit.png" title="' . __("Edit the field", 'contact_form_maker') . '" onclick="edit(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;edit&quot;)" onmouseout="chnage_icons_src(this,&quot;edit&quot;)"></div><div class="element_toolbar" style="color:red; vertical-align:top;">('.(__("custom", 'contact_form_maker')).' HTML)</div></div>';
678
- break;
679
- }
680
- default: {
681
- $rep = $rep.'<div id="wdform_arrows'.$id.'" class="wdform_arrows" style="display: table-cell;"><div id="left_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/left.png" title="' . __("Move the field to the left", 'contact_form_maker') . '" onclick="left_row(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;left&quot;)" onmouseout="chnage_icons_src(this,&quot;left&quot;)"></div><div id="up_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/up.png" title="' . __("Move the field up", 'contact_form_maker') . '" onclick="up_row(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;up&quot;)" onmouseout="chnage_icons_src(this,&quot;up&quot;)"></div><div id="down_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/down.png" title="' . __("Move the field down", 'contact_form_maker') . '" onclick="down_row(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;down&quot;)" onmouseout="chnage_icons_src(this,&quot;down&quot;)"></div><div id="right_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/right.png" title="' . __("Move the field to the right", 'contact_form_maker') . '" onclick="right_row(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;right&quot;)" onmouseout="chnage_icons_src(this,&quot;right&quot;)"></div><div id="edit_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/edit.png" title="' . __("Edit the field", 'contact_form_maker') . '" onclick="edit(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;edit&quot;)" onmouseout="chnage_icons_src(this,&quot;edit&quot;)"></div></div>';
682
- break;
683
- }
684
- }
685
- $form = str_replace('%' . $id . ' - ' . $labels[$ids_key] . '%', $rep, $form);
686
- $form = str_replace('%' . $id . ' -' . $labels[$ids_key] . '%', $rep, $form);
687
- }
688
- }
689
- $row->form_front = $form;
690
- }
691
- else {
692
- $row = new stdClass();
693
- $row->id = 0;
694
- $row->title = '';
695
- $row->mail = '';
696
- $row->form_front = '';
697
- $row->theme = 0;
698
- $row->submit_text = '';
699
- $row->url = '';
700
- $row->submit_text_type = 0;
701
- $row->script_mail = '';
702
- $row->script_mail_user = '';
703
- $row->counter = 0;
704
- $row->published = 1;
705
- $row->label_order = '';
706
- $row->label_order_current = '';
707
- $row->article_id = 0;
708
- $row->public_key = '';
709
- $row->private_key = '';
710
- $row->recaptcha_theme = '';
711
- $row->form_fields = '';
712
- $row->savedb = 1;
713
- $row->sendemail = 1;
714
- $row->requiredmark = '*';
715
- $row->mail_from = '';
716
- $row->mail_from_name = '';
717
- $row->reply_to = '';
718
- $row->send_to = '';
719
- $row->autogen_layout = 1;
720
- $row->custom_front = '';
721
- $row->mail_from_user = '';
722
- $row->mail_from_name_user = '';
723
- $row->reply_to_user = '';
724
- $row->disabled_fields = '';
725
- $row->mail_cc = '';
726
- $row->mail_cc_user = '';
727
- $row->mail_bcc = '';
728
- $row->mail_bcc_user = '';
729
- $row->mail_subject = '';
730
- $row->mail_subject_user = '';
731
- $row->mail_mode = 1;
732
- $row->mail_mode_user = 1;
733
- $row->wpmail = 1;
734
- $row->sortable = 1;
735
- }
736
- return $row;
737
- }
738
-
739
- public function get_theme_rows_data() {
740
- global $wpdb;
741
- $rows = $wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "contactformmaker_themes ORDER BY title");
742
- return $rows;
743
- }
744
-
745
- public function page_nav() {
746
- global $wpdb;
747
- $where = ((isset($_POST['search_value']) && (esc_html($_POST['search_value']) != '')) ? 'WHERE title LIKE "%' . esc_html($_POST['search_value']) . '%"' : '');
748
- $query = "SELECT COUNT(*) FROM " . $wpdb->prefix . "contactformmaker " . $where;
749
- $total = $wpdb->get_var($query);
750
- $page_nav['total'] = $total;
751
- if (isset($_POST['page_number']) && $_POST['page_number']) {
752
- $limit = ((int) $_POST['page_number'] - 1) * 20;
753
- }
754
- else {
755
- $limit = 0;
756
- }
757
- $page_nav['limit'] = (int) ($limit / 20 + 1);
758
- return $page_nav;
759
- }
760
- ////////////////////////////////////////////////////////////////////////////////////////
761
- // Getters & Setters //
762
- ////////////////////////////////////////////////////////////////////////////////////////
763
- ////////////////////////////////////////////////////////////////////////////////////////
764
- // Private Methods //
765
- ////////////////////////////////////////////////////////////////////////////////////////
766
- ////////////////////////////////////////////////////////////////////////////////////////
767
- // Listeners //
768
- ////////////////////////////////////////////////////////////////////////////////////////
769
  }
1
+ <?php
2
+
3
+ class CFMModelManage_cfm {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ ////////////////////////////////////////////////////////////////////////////////////////
14
+ // Constructor & Destructor //
15
+ ////////////////////////////////////////////////////////////////////////////////////////
16
+ public function __construct() {
17
+ }
18
+ ////////////////////////////////////////////////////////////////////////////////////////
19
+ // Public Methods //
20
+ ////////////////////////////////////////////////////////////////////////////////////////
21
+ public function get_rows_data() {
22
+ global $wpdb;
23
+ $where = ((isset($_POST['search_value']) && (esc_html($_POST['search_value']) != '')) ? 'WHERE title LIKE "%' . esc_html($_POST['search_value']) . '%"' : '');
24
+ $asc_or_desc = ((isset($_POST['asc_or_desc']) && esc_html($_POST['asc_or_desc']) == 'desc') ? 'desc' : 'asc');
25
+ $order_by_arr = array('id', 'title', 'mail');
26
+ $order_by = ((isset($_POST['order_by']) && in_array(esc_html($_POST['order_by']), $order_by_arr)) ? esc_html($_POST['order_by']) : 'id');
27
+ $order_by = ' ORDER BY `' . $order_by . '` ' . $asc_or_desc;
28
+ if (isset($_POST['page_number']) && $_POST['page_number']) {
29
+ $limit = ((int) $_POST['page_number'] - 1) * 20;
30
+ }
31
+ else {
32
+ $limit = 0;
33
+ }
34
+ $query = "SELECT * FROM " . $wpdb->prefix . "contactformmaker " . $where . $order_by . " LIMIT " . $limit . ",20";
35
+ $rows = $wpdb->get_results($query);
36
+ return $rows;
37
+ }
38
+
39
+ public function get_row_data($id) {
40
+ global $wpdb;
41
+ if ($id != 0) {
42
+ $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'contactformmaker WHERE id="%d"', $id));
43
+ $labels2 = array();
44
+ $label_id = array();
45
+ $label_order_original = array();
46
+ $label_type = array();
47
+ $label_all = explode('#****#', $row->label_order);
48
+ $label_all = array_slice($label_all, 0, count($label_all) - 1);
49
+ foreach ($label_all as $key => $label_each) {
50
+ $label_id_each = explode('#**id**#', $label_each);
51
+ array_push($label_id, $label_id_each[0]);
52
+ $label_oder_each = explode('#**label**#', $label_id_each[1]);
53
+ array_push($label_order_original, addslashes($label_oder_each[0]));
54
+ array_push($label_type, $label_oder_each[1]);
55
+ }
56
+ $labels2['id'] = '"' . implode('","', $label_id) . '"';
57
+ $labels2['label'] = '"' . implode('","', $label_order_original) . '"';
58
+ $labels2['type'] = '"' . implode('","', $label_type) . '"';
59
+ $ids = array();
60
+ $types = array();
61
+ $labels = array();
62
+ $paramss = array();
63
+ $fields = explode('*:*new_field*:*', $row->form_fields);
64
+ $fields = array_slice($fields, 0, count($fields) - 1);
65
+ foreach ($fields as $field) {
66
+ $temp = explode('*:*id*:*', $field);
67
+ array_push($ids, $temp[0]);
68
+ $temp = explode('*:*type*:*', $temp[1]);
69
+ array_push($types, $temp[0]);
70
+ $temp = explode('*:*w_field_label*:*', $temp[1]);
71
+ array_push($labels, $temp[0]);
72
+ array_push($paramss, $temp[1]);
73
+ }
74
+ $form = $row->form_front;
75
+ foreach ($ids as $ids_key => $id) {
76
+ $label = $labels[$ids_key];
77
+ $type = $types[$ids_key];
78
+ $params = $paramss[$ids_key];
79
+ if (strpos($form, '%' . $id . ' - ' . $label . '%') || strpos($form, '%' . $id . ' -' . $label . '%')) {
80
+ $rep = '';
81
+ $param = array();
82
+ $param['attributes'] = '';
83
+ $rep = '<div class="wdform_checkbox" style="display: table-cell;"><div id="X_'.$id.'" class="element_toolbar"' . ($type == 'type_submit_reset' ? ' style="visibility: hidden;"' : '') . '><input type="checkbox" id="disable_field'.$id.'" title="' . __("Disable the field", 'contact_form_maker') . '" onclick="remove_row(&quot;'.$id.'&quot;)" style="vertical-align: top; margin-left: 5px;"></div></div>';
84
+ switch ($type) {
85
+ case 'type_section_break': {
86
+ $params_names = array('w_editor');
87
+ $temp = $params;
88
+ foreach ($params_names as $params_name) {
89
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
90
+ $param[$params_name] = $temp[0];
91
+ $temp = $temp[1];
92
+ }
93
+ $rep .='<div id="wdform_field'.$id.'" type="type_section_break" class="wdform_field_section_break"><span id="'.$id.'_element_labelform_id_temp" style="display: none;">custom_'.$id.'</span><div id="'.$id.'_element_sectionform_id_temp" align="left" class="wdform_section_break">'.html_entity_decode($param['w_editor']).'</div></div>';
94
+ break;
95
+ }
96
+ case 'type_editor': {
97
+ $params_names = array('w_editor');
98
+ $temp = $params;
99
+ foreach ($params_names as $params_name ) {
100
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
101
+ $param[$params_name] = $temp[0];
102
+ $temp = $temp[1];
103
+ }
104
+ $rep .='<div id="wdform_field'.$id.'" type="type_editor" class="wdform_field" style="display: table-cell;">'.html_entity_decode($param['w_editor']).'</div><span id="'.$id.'_element_labelform_id_temp" style="display: none;">custom_'.$id.'</span>';
105
+ break;
106
+ }
107
+ case 'type_send_copy': {
108
+ $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_first_val', 'w_required');
109
+ $temp = $params;
110
+ foreach ($params_names as $params_name ) {
111
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
112
+ $param[$params_name] = $temp[0];
113
+ $temp = $temp[1];
114
+ }
115
+ if ($temp) {
116
+ $temp = explode('*:*w_attr_name*:*', $temp);
117
+ $attrs = array_slice($temp, 0, count($temp) - 1);
118
+ foreach ($attrs as $attr) {
119
+ $param['attributes'] = $param['attributes'] . ' add_' . $attr;
120
+ }
121
+ }
122
+ $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
123
+ $input_active = ($param['w_first_val'] == 'true' ? "checked='checked'" : "");
124
+ $required_sym = ($param['w_required'] == "yes" ? " *" : "");
125
+ $rep .= '<div id="wdform_field'.$id.'" type="type_send_copy" class="wdform_field" style="display: table-cell;"><div align="left" id="'.$id.'_label_sectionform_id_temp" style="display: '.$param['w_field_label_pos'].'; width: '.$param['w_field_label_size'].'px;"><span id="'.$id.'_element_labelform_id_temp" class="label" style="vertical-align: top;">'.$label.'</span><span id="'.$id.'_required_elementform_id_temp" class="required" style="vertical-align: top;">'.$required_sym.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" style="display: '.$param['w_field_label_pos'].'"><input type="hidden" value="type_send_copy" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><input type="hidden" value="'.$param['w_required'].'" name="'.$id.'_requiredform_id_temp" id="'.$id.'_requiredform_id_temp"><input type="checkbox" id="'.$id.'_elementform_id_temp" name="'.$id.'_elementform_id_temp" onclick="set_checked(&quot;'.$id.'&quot;,&quot;&quot;,&quot;form_id_temp&quot;)" '.$input_active.' '.$param['attributes'].' disabled></div></div>';
126
+ break;
127
+ }
128
+ case 'type_text': {
129
+ $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_size', 'w_first_val', 'w_title', 'w_required', 'w_unique');
130
+ $temp = $params;
131
+ if (strpos($temp, 'w_regExp_status') > -1) {
132
+ $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_size', 'w_first_val', 'w_title', 'w_required', 'w_regExp_status', 'w_regExp_value', 'w_regExp_common', 'w_regExp_arg', 'w_regExp_alert', 'w_unique');
133
+ }
134
+ foreach ($params_names as $params_name) {
135
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
136
+ $param[$params_name] = $temp[0];
137
+ $temp = $temp[1];
138
+ }
139
+ if ($temp) {
140
+ $temp = explode('*:*w_attr_name*:*', $temp);
141
+ $attrs = array_slice($temp, 0, count($temp) - 1);
142
+ foreach ($attrs as $attr) {
143
+ $param['attributes'] = $param['attributes'] . ' add_' . $attr;
144
+ }
145
+ }
146
+ $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
147
+ $input_active = ($param['w_first_val'] == $param['w_title'] ? "input_deactive" : "input_active");
148
+ $required_sym = ($param['w_required'] == "yes" ? " *" : "");
149
+
150
+ $param['w_regExp_status'] = (isset($param['w_regExp_status']) ? $param['w_regExp_status'] : "no");
151
+ $param['w_regExp_value'] = (isset($param['w_regExp_value']) ? $param['w_regExp_value'] : "");
152
+ $param['w_regExp_common'] = (isset($param['w_regExp_common']) ? $param['w_regExp_common'] : "");
153
+ $param['w_regExp_arg'] = (isset($param['w_regExp_arg']) ? $param['w_regExp_arg'] : "");
154
+ $param['w_regExp_alert'] = isset($param['w_regExp_alert']) ? $param['w_regExp_alert'] : __("Incorrect Value", "contact_form_maker");
155
+
156
+ $rep .= '<div id="wdform_field'.$id.'" type="type_text" class="wdform_field" style="display: table-cell;"><div align="left" id="'.$id.'_label_sectionform_id_temp" style="display: '.$param['w_field_label_pos'].'; width: '.$param['w_field_label_size'].'px; vertical-align:top;"><span id="'.$id.'_element_labelform_id_temp" class="label" style="vertical-align: top;">'.$label.'</span><span id="'.$id.'_required_elementform_id_temp" class="required" style="vertical-align: top;">'.$required_sym.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" style="display: '.$param['w_field_label_pos'].'"><input type="hidden" value="type_text" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><input type="hidden" value="'.$param['w_required'].'" name="'.$id.'_requiredform_id_temp" id="'.$id.'_requiredform_id_temp"><input type="hidden" value="' . $param['w_regExp_status'] . '" name="' . $id . '_regExpStatusform_id_temp" id="' . $id . '_regExpStatusform_id_temp"><input type="hidden" value="' . $param['w_regExp_value'] . '" name="' . $id . '_regExp_valueform_id_temp" id="' . $id . '_regExp_valueform_id_temp"><input type="hidden" value="' . $param['w_regExp_common'] . '" name="' . $id . '_regExp_commonform_id_temp" id="' . $id . '_regExp_commonform_id_temp"><input type="hidden" value="' . $param['w_regExp_alert'] . '" name="' . $id . '_regExp_alertform_id_temp" id="' . $id . '_regExp_alertform_id_temp"><input type="hidden" value="' . $param['w_regExp_arg'] . '" name="' . $id . '_regArgumentform_id_temp" id="' . $id . '_regArgumentform_id_temp"><input type="hidden" value="'.$param['w_unique'].'" name="'.$id.'_uniqueform_id_temp" id="'.$id.'_uniqueform_id_temp"><input type="text" class="'.$input_active.'" id="'.$id.'_elementform_id_temp" name="'.$id.'_elementform_id_temp" value="'.$param['w_first_val'].'" title="'.$param['w_title'].'" onfocus="delete_value(&quot;'.$id.'_elementform_id_temp&quot;)" onblur="return_value(&quot;'.$id.'_elementform_id_temp&quot;)" onchange="change_value(&quot;'.$id.'_elementform_id_temp&quot;)" style="width: '.$param['w_size'].'px;" '.$param['attributes'].' disabled></div></div>';
157
+ break;
158
+ }
159
+ case 'type_number': {
160
+ $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_size', 'w_first_val', 'w_title', 'w_required', 'w_unique', 'w_class');
161
+ $temp = $params;
162
+ foreach ($params_names as $params_name) {
163
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
164
+ $param[$params_name] = $temp[0];
165
+ $temp = $temp[1];
166
+ }
167
+ if ($temp) {
168
+ $temp = explode('*:*w_attr_name*:*', $temp);
169
+ $attrs = array_slice($temp, 0, count($temp) - 1);
170
+ foreach ($attrs as $attr) {
171
+ $param['attributes'] = $param['attributes'] . ' add_' . $attr;
172
+ }
173
+ }
174
+ $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
175
+ $input_active = ($param['w_first_val'] == $param['w_title'] ? "input_deactive" : "input_active");
176
+ $required_sym = ($param['w_required'] == "yes" ? " *" : "");
177
+ $rep .= '<div id="wdform_field'.$id.'" type="type_number" class="wdform_field" style="display: table-cell;"><div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].'; width: '.$param['w_field_label_size'].'px; vertical-align:top;"><span id="'.$id.'_element_labelform_id_temp" class="label" style="vertical-align: top;">'.$label.'</span><span id="'.$id.'_required_elementform_id_temp" class="required" style="vertical-align: top;">'.$required_sym.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].'"><input type="hidden" value="type_number" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><input type="hidden" value="'.$param['w_required'].'" name="'.$id.'_requiredform_id_temp" id="'.$id.'_requiredform_id_temp"><input type="hidden" value="'.$param['w_unique'].'" name="'.$id.'_uniqueform_id_temp" id="'.$id.'_uniqueform_id_temp"><input type="text" class="'.$input_active.'" id="'.$id.'_elementform_id_temp" name="'.$id.'_elementform_id_temp" value="'.$param['w_first_val'].'" title="'.$param['w_title'].'" onkeypress="return check_isnum(event)" onfocus="delete_value(&quot;'.$id.'_elementform_id_temp&quot;)" onblur="return_value(&quot;'.$id.'_elementform_id_temp&quot;)" onchange="change_value(&quot;'.$id.'_elementform_id_temp&quot;)" style="width: '.$param['w_size'].'px;" '.$param['attributes'].' disabled></div></div>';
178
+ break;
179
+ }
180
+ case 'type_password': {
181
+ $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_size', 'w_required', 'w_unique', 'w_class');
182
+ $temp = $params;
183
+ foreach ($params_names as $params_name) {
184
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
185
+ $param[$params_name] = $temp[0];
186
+ $temp = $temp[1];
187
+ }
188
+ if ($temp) {
189
+ $temp = explode('*:*w_attr_name*:*', $temp);
190
+ $attrs = array_slice($temp, 0, count($temp) - 1);
191
+ foreach ($attrs as $attr) {
192
+ $param['attributes'] = $param['attributes'] . ' add_' . $attr;
193
+ }
194
+ }
195
+ $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
196
+ $required_sym = ($param['w_required'] == "yes" ? " *" : "");
197
+ $rep .= '<div id="wdform_field'.$id.'" type="type_password" class="wdform_field" style="display: table-cell;"><div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].'; width: '.$param['w_field_label_size'].'px; vertical-align:top;"><span id="'.$id.'_element_labelform_id_temp" class="label" style="vertical-align: top;">'.$label.'</span><span id="'.$id.'_required_elementform_id_temp" class="required" style="vertical-align: top;">'.$required_sym.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].'"><input type="hidden" value="type_password" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><input type="hidden" value="'.$param['w_required'].'" name="'.$id.'_requiredform_id_temp" id="'.$id.'_requiredform_id_temp"><input type="hidden" value="'.$param['w_unique'].'" name="'.$id.'_uniqueform_id_temp" id="'.$id.'_uniqueform_id_temp"><input type="password" id="'.$id.'_elementform_id_temp" name="'.$id.'_elementform_id_temp" style="width: '.$param['w_size'].'px;" '.$param['attributes'].' disabled></div></div>';
198
+ break;
199
+ }
200
+ case 'type_textarea': {
201
+ $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_size_w', 'w_size_h', 'w_first_val', 'w_title', 'w_required', 'w_unique', 'w_class');
202
+ $temp = $params;
203
+ foreach ($params_names as $params_name) {
204
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
205
+ $param[$params_name] = $temp[0];
206
+ $temp = $temp[1];
207
+ }
208
+ if ($temp) {
209
+ $temp = explode('*:*w_attr_name*:*', $temp);
210
+ $attrs = array_slice($temp, 0, count($temp) - 1);
211
+ foreach ($attrs as $attr) {
212
+ $param['attributes'] = $param['attributes'] . ' add_' . $attr;
213
+ }
214
+ }
215
+ $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
216
+ $input_active = ($param['w_first_val'] == $param['w_title'] ? "input_deactive" : "input_active");
217
+ $required_sym = ($param['w_required'] == "yes" ? " *" : "");
218
+ $rep .= '<div id="wdform_field'.$id.'" type="type_textarea" class="wdform_field" style="display: table-cell;"><div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display:'.$param['w_field_label_pos'].'; width: '.$param['w_field_label_size'].'px; vertical-align:top;"><span id="'.$id.'_element_labelform_id_temp" class="label" style="vertical-align: top;">'.$label.'</span><span id="'.$id.'_required_elementform_id_temp" class="required" style="vertical-align: top;">'.$required_sym.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" class="'.$param['w_class'].'" style="display: table-cell;"><input type="hidden" value="type_textarea" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><input type="hidden" value="'.$param['w_required'].'" name="'.$id.'_requiredform_id_temp" id="'.$id.'_requiredform_id_temp"><input type="hidden" value="'.$param['w_unique'].'" name="'.$id.'_uniqueform_id_temp" id="'.$id.'_uniqueform_id_temp"><textarea class="'.$input_active.'" id="'.$id.'_elementform_id_temp" name="'.$id.'_elementform_id_temp" title="'.$param['w_title'].'" onfocus="delete_value(&quot;'.$id.'_elementform_id_temp&quot;)" onblur="return_value(&quot;'.$id.'_elementform_id_temp&quot;)" onchange="change_value(&quot;'.$id.'_elementform_id_temp&quot;)" style="width: '.$param['w_size_w'].'px; height: '.$param['w_size_h'].'px;" '.$param['attributes'].' disabled>'.$param['w_first_val'].'</textarea></div></div>';
219
+ break;
220
+ }
221
+ case 'type_phone': {
222
+ $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_size', 'w_first_val', 'w_title', 'w_mini_labels', 'w_required', 'w_unique', 'w_class');
223
+ $temp = $params;
224
+ foreach ($params_names as $params_name) {
225
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
226
+ $param[$params_name] = $temp[0];
227
+ $temp = $temp[1];
228
+ }
229
+ if ($temp) {
230
+ $temp = explode('*:*w_attr_name*:*', $temp);
231
+ $attrs = array_slice($temp, 0, count($temp) - 1);
232
+ foreach ($attrs as $attr) {
233
+ $param['attributes'] = $param['attributes'].' add_'.$attr;
234
+ }
235
+ }
236
+ $w_first_val = explode('***', $param['w_first_val']);
237
+ $w_title = explode('***', $param['w_title']);
238
+ $w_mini_labels = explode('***', $param['w_mini_labels']);
239
+ $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
240
+ $input_active = ($param['w_first_val'] == $param['w_title'] ? "input_deactive" : "input_active");
241
+ $required_sym = ($param['w_required'] == "yes" ? " *" : "");
242
+ $rep .= '<div id="wdform_field'.$id.'" type="type_phone" class="wdform_field" style="display: table-cell;"><div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].'; width: '.$param['w_field_label_size'].'px; vertical-align:top;"><span id="'.$id.'_element_labelform_id_temp" class="label" style="vertical-align: top;">'.$label.'</span><span id="'.$id.'_required_elementform_id_temp" class="required">'.$required_sym.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].';"><input type="hidden" value="type_phone" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><input type="hidden" value="'.$param['w_required'].'" name="'.$id.'_requiredform_id_temp" id="'.$id.'_requiredform_id_temp"><input type="hidden" value="'.$param['w_unique'].'" name="'.$id.'_uniqueform_id_temp" id="'.$id.'_uniqueform_id_temp"><div id="'.$id.'_table_name" style="display: table;"><div id="'.$id.'_tr_name1" style="display: table-row;"><div id="'.$id.'_td_name_input_first" style="display: table-cell;"><input type="text" class="'.$input_active.'" id="'.$id.'_element_firstform_id_temp" name="'.$id.'_element_firstform_id_temp" value="'.$w_first_val[0].'" title="'.$w_title[0].'" onfocus="delete_value(&quot;'.$id.'_element_firstform_id_temp&quot;)"onblur="return_value(&quot;'.$id.'_element_firstform_id_temp&quot;)"onchange="change_value(&quot;'.$id.'_element_firstform_id_temp&quot;)" onkeypress="return check_isnum(event)"style="width: 50px;" '.$param['attributes'].' disabled><span class="wdform_line" style="margin: 0px 4px; padding: 0px;">-</span></div><div id="'.$id.'_td_name_input_last" style="display: table-cell;"><input type="text" class="'.$input_active.'" id="'.$id.'_element_lastform_id_temp" name="'.$id.'_element_lastform_id_temp" value="'.$w_first_val[1].'" title="'.$w_title[1].'" onfocus="delete_value(&quot;'.$id.'_element_lastform_id_temp&quot;)"onblur="return_value(&quot;'.$id.'_element_lastform_id_temp&quot;)" onchange="change_value(&quot;'.$id.'_element_lastform_id_temp&quot;)" onkeypress="return check_isnum(event)"style="width: '.$param['w_size'].'px;" '.$param['attributes'].' disabled></div></div><div id="'.$id.'_tr_name2" style="display: table-row;"><div id="'.$id.'_td_name_label_first" align="left" style="display: table-cell;"><label class="mini_label" id="'.$id.'_mini_label_area_code">'.$w_mini_labels[0].'</label></div><div id="'.$id.'_td_name_label_last" align="left" style="display: table-cell;"><label class="mini_label" id="'.$id.'_mini_label_phone_number">'.$w_mini_labels[1].'</label></div></div></div></div></div>';
243
+ break;
244
+ }
245
+ case 'type_name': {
246
+ $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_first_val', 'w_title', 'w_mini_labels', 'w_size', 'w_name_format', 'w_required', 'w_unique', 'w_class');
247
+ $temp = $params;
248
+ foreach ($params_names as $params_name) {
249
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
250
+ $param[$params_name] = $temp[0];
251
+ $temp = $temp[1];
252
+ }
253
+ if ($temp) {
254
+ $temp = explode('*:*w_attr_name*:*', $temp);
255
+ $attrs = array_slice($temp, 0, count($temp) - 1);
256
+ foreach ($attrs as $attr) {
257
+ $param['attributes'] = $param['attributes'] . ' add_' . $attr;
258
+ }
259
+ }
260
+ $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
261
+ $required_sym = ($param['w_required'] == "yes" ? " *" : "");
262
+ $w_first_val = explode('***', $param['w_first_val']);
263
+ $w_title = explode('***', $param['w_title']);
264
+ $w_mini_labels = explode('***', $param['w_mini_labels']);
265
+ if ($param['w_name_format'] == 'normal') {
266
+ $w_name_format = '<div id="'.$id.'_td_name_input_first" style="display: table-cell;"><input type="text" class="'.($w_first_val[0]==$w_title[0] ? "input_deactive" : "input_active").'" id="'.$id.'_element_firstform_id_temp" name="'.$id.'_element_firstform_id_temp" value="'.$w_first_val[0].'" title="'.$w_title[0].'" onfocus="delete_value(&quot;'.$id.'_element_firstform_id_temp&quot;)"onblur="return_value(&quot;'.$id.'_element_firstform_id_temp&quot;)" onchange="change_value(&quot;'.$id.'_element_firstform_id_temp&quot;)" style="margin-right: 10px; width: '.$param['w_size'].'px;"'.$param['attributes'].' disabled ></div><div id="'.$id.'_td_name_input_last" style="display: table-cell;"><input type="text" class="'.($w_first_val[1]==$w_title[1] ? "input_deactive" : "input_active").'" id="'.$id.'_element_lastform_id_temp" name="'.$id.'_element_lastform_id_temp" value="'.$w_first_val[1].'" title="'.$w_title[1].'" onfocus="delete_value(&quot;'.$id.'_element_lastform_id_temp&quot;)"onblur="return_value(&quot;'.$id.'_element_lastform_id_temp&quot;)" onchange="change_value(&quot;'.$id.'_element_lastform_id_temp&quot;)" style="margin-right: 10px; width: '.$param['w_size'].'px;" '.$param['attributes'].' disabled ></div>';
267
+ $w_name_format_mini_labels = '<div id="'.$id.'_tr_name2" style="display: table-row;"><div id="'.$id.'_td_name_label_first" align="left" style="display: table-cell;"><label class="mini_label" id="'.$id.'_mini_label_first">'.$w_mini_labels[1].'</label></div><div id="'.$id.'_td_name_label_last" align="left" style="display: table-cell;"><label class="mini_label" id="'.$id.'_mini_label_last">'.$w_mini_labels[2].'</label></div></div>';
268
+ }
269
+ else {
270
+ $w_name_format = '<div id="'.$id.'_td_name_input_title" style="display: table-cell;"><input type="text" class="'.($w_first_val[0]==$w_title[0] ? "input_deactive" : "input_active").'" id="'.$id.'_element_titleform_id_temp" name="'.$id.'_element_titleform_id_temp" value="'.$w_first_val[0].'" title="'.$w_title[0].'" onfocus="delete_value(&quot;'.$id.'_element_titleform_id_temp&quot;)" onblur="return_value(&quot;'.$id.'_element_titleform_id_temp&quot;)" onchange="change_value(&quot;'.$id.'_element_titleform_id_temp&quot;)" style="margin: 0px 10px 0px 0px; width: 40px;"></div><div id="'.$id.'_td_name_input_first" style="display: table-cell;"><input type="text" class="'.($w_first_val[1]==$w_title[1] ? "input_deactive" : "input_active").'" id="'.$id.'_element_firstform_id_temp" name="'.$id.'_element_firstform_id_temp" value="'.$w_first_val[1].'" title="'.$w_title[1].'" onfocus="delete_value(&quot;'.$id.'_element_firstform_id_temp&quot;)" onblur="return_value(&quot;'.$id.'_element_firstform_id_temp&quot;)" onchange="change_value(&quot;'.$id.'_element_firstform_id_temp&quot;)" style="margin-right: 10px; width: '.$param['w_size'].'px;"></div><div id="'.$id.'_td_name_input_last" style="display: table-cell;"><input type="text" class="'.($w_first_val[2]==$w_title[2] ? "input_deactive" : "input_active").'" id="'.$id.'_element_lastform_id_temp" name="'.$id.'_element_lastform_id_temp" value="'.$w_first_val[2].'" title="'.$w_title[2].'" onfocus="delete_value(&quot;'.$id.'_element_lastform_id_temp&quot;)" onblur="return_value(&quot;'.$id.'_element_lastform_id_temp&quot;)" onchange="change_value(&quot;'.$id.'_element_lastform_id_temp&quot;)" style="margin-right: 10px; width: '.$param['w_size'].'px;"></div><div id="'.$id.'_td_name_input_middle" style="display: table-cell;"><input type="text" class="'.($w_first_val[3]==$w_title[3] ? "input_deactive" : "input_active").'" id="'.$id.'_element_middleform_id_temp" name="'.$id.'_element_middleform_id_temp" value="'.$w_first_val[3].'" title="'.$w_title[3].'" onfocus="delete_value(&quot;'.$id.'_element_middleform_id_temp&quot;)" onblur="return_value(&quot;'.$id.'_element_middleform_id_temp&quot;)" onchange="change_value(&quot;'.$id.'_element_middleform_id_temp&quot;)" style="width: '.$param['w_size'].'px;"></div>';
271
+ $w_name_format_mini_labels ='<div id="'.$id.'_tr_name2" style="display: table-row;"><div id="'.$id.'_td_name_label_title" align="left" style="display: table-cell;"><label class="mini_label" id="'.$id.'_mini_label_title">'.$w_mini_labels[0].'</label></div><div id="'.$id.'_td_name_label_first" align="left" style="display: table-cell;"><label class="mini_label" id="'.$id.'_mini_label_first">'.$w_mini_labels[1].'</label></div><div id="'.$id.'_td_name_label_last" align="left" style="display: table-cell;"><label class="mini_label" id="'.$id.'_mini_label_last">'.$w_mini_labels[2].'</label></div><div id="'.$id.'_td_name_label_middle" align="left" style="display: table-cell;"><label class="mini_label" id="'.$id.'_mini_label_middle">'.$w_mini_labels[3].'</label></div></div>';
272
+ }
273
+ $rep .= '<div id="wdform_field'.$id.'" type="type_name" class="wdform_field" style="display: table-cell;"><div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].'; width: '.$param['w_field_label_size'].'px; vertical-align:top;"><span id="'.$id.'_element_labelform_id_temp" class="label" style="vertical-align: top;">'.$label.'</span><span id="'.$id.'_required_elementform_id_temp" class="required" style="vertical-align: top;">'.$required_sym.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].';"><input type="hidden" value="type_name" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><input type="hidden" value="'.$param['w_required'].'" name="'.$id.'_requiredform_id_temp" id="'.$id.'_requiredform_id_temp"><input type="hidden" value="'.$param['w_unique'].'" name="'.$id.'_uniqueform_id_temp" id="'.$id.'_uniqueform_id_temp"><div id="'.$id.'_table_name" cellpadding="0" cellspacing="0" style="display: table;"><div id="'.$id.'_tr_name1" style="display: table-row;">'.$w_name_format.' </div>'.$w_name_format_mini_labels.' </div></div></div>';
274
+ break;
275
+ }
276
+ case 'type_address': {
277
+ $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_size', 'w_mini_labels', 'w_disabled_fields', 'w_required', 'w_class');
278
+ $temp = $params;
279
+ foreach ($params_names as $params_name) {
280
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
281
+ $param[$params_name] = $temp[0];
282
+ $temp = $temp[1];
283
+ }
284
+ if ($temp) {
285
+ $temp = explode('*:*w_attr_name*:*', $temp);
286
+ $attrs = array_slice($temp, 0, count($temp) - 1);
287
+ foreach ($attrs as $attr) {
288
+ $param['attributes'] = $param['attributes'] . ' add_' . $attr;
289
+ }
290
+ }
291
+ $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
292
+ $required_sym = ($param['w_required'] == "yes" ? " *" : "");
293
+ $w_mini_labels = explode('***', $param['w_mini_labels']);
294
+ $w_disabled_fields = explode('***',$param['w_disabled_fields']);
295
+ $hidden_inputs = '';
296
+ $labels_for_id = array('street1', 'street2', 'city', 'state', 'postal', 'country');
297
+ foreach ($w_disabled_fields as $key => $w_disabled_field) {
298
+ if ($key != 6) {
299
+ if ($w_disabled_field == 'yes') {
300
+ $hidden_inputs .= '<input type="hidden" id="'.$id.'_'.$labels_for_id[$key].'form_id_temp" value="'.$w_mini_labels[$key].'" id_for_label="'.($id+$key).'">';
301
+ }
302
+ }
303
+ }
304
+ $address_fields = '';
305
+ $g = 0;
306
+ if ($w_disabled_fields[0] == 'no') {
307
+ $g += 2;
308
+ $address_fields .= '<span style="float: left; width: 100%; padding-bottom: 8px; display: block;"><input type="text" id="'.$id.'_street1form_id_temp" name="'.$id.'_street1form_id_temp" onchange="change_value(&quot;'.$id.'_street1form_id_temp&quot;)" style="width: 100%;" '.$param['attributes'].' disabled ><label class="mini_label" id="'.$id.'_mini_label_street1" style="display: block;">'.$w_mini_labels[0].'</label></span>';
309
+ }
310
+ if ($w_disabled_fields[1] == 'no') {
311
+ $g += 2;
312
+ $address_fields .= '<span style="float: left; width: 100%; padding-bottom: 8px; display: block;"><input type="text" id="'.$id.'_street2form_id_temp" name="'.($id+1).'_street2form_id_temp" onchange="change_value(&quot;'.$id.'_street2form_id_temp&quot;)" style="width: 100%;" '.$param['attributes'].' disabled ><label class="mini_label" style="display: block;" id="'.$id.'_mini_label_street2">'.$w_mini_labels[1].'</label></span>';
313
+ }
314
+ if ($w_disabled_fields[2] == 'no') {
315
+ $g++;
316
+ $address_fields .= '<span style="float: left; width: 48%; padding-bottom: 8px;"><input type="text" id="'.$id.'_cityform_id_temp" name="'.($id+2).'_cityform_id_temp" onchange="change_value(&quot;'.$id.'_cityform_id_temp&quot;)" style="width: 100%;" '.$param['attributes'].' disabled ><label class="mini_label" style="display: block;" id="'.$id.'_mini_label_city">'.$w_mini_labels[2].'</label></span>';
317
+ }
318
+ if ($w_disabled_fields[3] == 'no') {
319
+ $g++;
320
+ if ($w_disabled_fields[5] == 'yes' && $w_disabled_fields[6] == 'yes') {
321
+ $address_fields .= '<span style="float: '.(($g%2==0) ? 'right' : 'left').'; width: 48%; padding-bottom: 8px;"><select type="text" id="'.$id.'_stateform_id_temp" name="'.($id+3).'_stateform_id_temp" onchange="change_value(&quot;'.$id.'_stateform_id_temp&quot;)" style="width: 100%;" '.$param['attributes'].' disabled ><option value=""></option><option value="Alabama">' . __("Alabama","contact_form_maker") . '</option><option value="Alaska">' . __("Alaska","contact_form_maker") . '</option><option value="Arizona">' . __("Arizona","contact_form_maker") . '</option><option value="Arkansas">' . __("Arkansas","contact_form_maker") . '</option><option value="California">' . __("California","contact_form_maker") . '</option><option value="Colorado">' . __("Colorado","contact_form_maker") . '</option><option value="Connecticut">' . __("Connecticut","contact_form_maker") . '</option><option value="Delaware">' . __("Delaware","contact_form_maker") . '</option><option value="Florida">' . __("Florida","contact_form_maker") . '</option><option value="Georgia">' . __("Georgia","contact_form_maker") . '</option><option value="Hawaii">' . __("Hawaii","contact_form_maker") . '</option><option value="Idaho">' . __("Idaho","contact_form_maker") . '</option><option value="Illinois">' . __("Illinois","contact_form_maker") . '</option><option value="Indiana">' . __("Indiana","contact_form_maker") . '</option><option value="Iowa">' . __("Iowa","contact_form_maker") . '</option><option value="Kansas">' . __("Kansas","contact_form_maker") . '</option><option value="Kentucky">' . __("Kentucky","contact_form_maker") . '</option><option value="Louisiana">' . __("Louisiana","contact_form_maker") . '</option><option value="Maine">' . __("Maine","contact_form_maker") . '</option><option value="Maryland">' . __("Maryland","contact_form_maker") . '</option><option value="Massachusetts">' . __("Massachusetts","contact_form_maker") . '</option><option value="Michigan">' . __("Michigan","contact_form_maker") . '</option><option value="Minnesota">' . __("Minnesota","contact_form_maker") . '</option><option value="Mississippi">' . __("Mississippi","contact_form_maker") . '</option><option value="Missouri">' . __("Missouri","contact_form_maker") . '</option><option value="Montana">' . __("Montana","contact_form_maker") . '</option><option value="Nebraska">' . __("Nebraska","contact_form_maker") . '</option><option value="Nevada">' . __("Nevada","contact_form_maker") . '</option><option value="New Hampshire">' . __("New Hampshire","contact_form_maker") . '</option><option value="New Jersey">' . __("New Jersey","contact_form_maker") . '</option><option value="New Mexico">' . __("New Mexico","contact_form_maker") . '</option><option value="New York">' . __("New York","contact_form_maker") . '</option><option value="North Carolina">' . __("North Carolina","contact_form_maker") . '</option><option value="North Dakota">' . __("North Dakota","contact_form_maker") . '</option><option value="Ohio">' . __("Ohio","contact_form_maker") . '</option><option value="Oklahoma">' . __("Oklahoma","contact_form_maker") . '</option><option value="Oregon">' . __("Oregon","contact_form_maker") . '</option><option value="Pennsylvania">' . __("Pennsylvania","contact_form_maker") . '</option><option value="Rhode Island">' . __("Rhode Island","contact_form_maker") . '</option><option value="South Carolina">' . __("South Carolina","contact_form_maker") . '</option><option value="South Dakota">' . __("South Dakota","contact_form_maker") . '</option><option value="Tennessee">' . __("Tennessee","contact_form_maker") . '</option><option value="Texas">' . __("Texas","contact_form_maker") . '</option><option value="Utah">' . __("Utah","contact_form_maker") . '</option><option value="Vermont">' . __("Vermont","contact_form_maker") . '</option><option value="Virginia">' . __("Virginia","contact_form_maker") . '</option><option value="Washington">' . __("Washington","contact_form_maker") . '</option><option value="West Virginia">' . __("West Virginia","contact_form_maker") . '</option><option value="Wisconsin">' . __("Wisconsin","contact_form_maker") . '</option><option value="Wyoming">' . __("Wyoming","contact_form_maker") . '</option></select><label class="mini_label" style="display: block;" id="'.$id.'_mini_label_state">'.$w_mini_labels[3].'</label></span>';
322
+ }
323
+ else {
324
+ $address_fields .= '<span style="float: '.(($g%2==0) ? 'right' : 'left').'; width: 48%; padding-bottom: 8px;"><input type="text" id="'.$id.'_stateform_id_temp" name="'.($id+3).'_stateform_id_temp" onchange="change_value(&quot;'.$id.'_stateform_id_temp&quot;)" style="width: 100%;" '.$param['attributes'].' disabled ><label class="mini_label" style="display: block;" id="'.$id.'_mini_label_state">'.$w_mini_labels[3].'</label></span>';
325
+ }
326
+ }
327
+ if ($w_disabled_fields[4] == 'no') {
328
+ $g++;
329
+ $address_fields .= '<span style="float: '.(($g%2==0) ? 'right' : 'left').'; width: 48%; padding-bottom: 8px;"><input type="text" id="'.$id.'_postalform_id_temp" name="'.($id+4).'_postalform_id_temp" onchange="change_value(&quot;'.$id.'_postalform_id_temp&quot;)" style="width: 100%;" '.$param['attributes'].' disabled ><label class="mini_label" style="display: block;" id="'.$id.'_mini_label_postal">'.$w_mini_labels[4].'</label></span>';
330
+ }
331
+ if ($w_disabled_fields[5] == 'no') {
332
+ $g++;
333
+ $address_fields .= '<span style="float: '.(($g%2==0) ? 'right' : 'left').'; width: 48%; padding-bottom: 8px;"><select type="text" id="'.$id.'_countryform_id_temp" name="'.($id+5).'_countryform_id_temp" onchange="change_state_input('.$id.',&quot;form_id_temp&quot;)" style="width: 100%;" '.$param['attributes'].' disabled ><option value=""></option><option value="Afghanistan">' . __("Afghanistan", "contact_form_maker") . '</option><option value="Albania">' . __("Albania", "contact_form_maker") . '</option><option value="Algeria">' . __("Algeria", "contact_form_maker") . '</option><option value="Andorra">' . __("Andorra", "contact_form_maker") . '</option><option value="Angola">' . __("Angola", "contact_form_maker") . '</option><option value="Antigua and Barbuda">' . __("Antigua and Barbuda", "contact_form_maker") . '</option><option value="Argentina">' . __("Argentina", "contact_form_maker") . '</option><option value="Armenia">' . __("Armenia", "contact_form_maker") . '</option><option value="Australia">' . __("Australia", "contact_form_maker") . '</option><option value="Austria">' . __("Austria", "contact_form_maker") . '</option><option value="Azerbaijan">' . __("Azerbaijan","contact_form_maker") . '</option><option value="Bahamas">' . __("Bahamas", "contact_form_maker") . '</option><option value="Bahrain">' . __("Bahrain", "contact_form_maker") . '</option><option value="Bangladesh">' . __("Bangladesh", "contact_form_maker") . '</option><option value="Barbados">' . __("Barbados", "contact_form_maker") . '</option><option value="Belarus">' . __("Belarus", "contact_form_maker") . '</option><option value="Belgium">' . __("Belgium", "contact_form_maker").'</option><option value="Belize">' . __("Belize", "contact_form_maker") . '</option><option value="Benin">' . __("Benin", "contact_form_maker") . '</option><option value="Bhutan">' . __("Bhutan", "contact_form_maker") . '</option><option value="Bolivia">' . __("Bolivia", "contact_form_maker") . '</option><option value="Bosnia and Herzegovina">' . __("Bosnia and Herzegovina", "contact_form_maker") . '</option><option value="Botswana">' . __("Botswana", "contact_form_maker") . '</option><option value="Brazil">' . __("Brazil", "contact_form_maker") . '</option><option value="Brunei">' . __("Brunei", "contact_form_maker") . '</option><option value="Bulgaria">' . __("Bulgaria", "contact_form_maker") . '</option><option value="Burkina Faso">' . __("Burkina Faso", "contact_form_maker") . '</option><option value="Burundi">' . __("Burundi", "contact_form_maker") . '</option><option value="Cambodia">' . __("Cambodia", "contact_form_maker") . '</option><option value="Cameroon">' . __("Cameroon", "contact_form_maker") . '</option><option value="Canada">' . __("Canada","contact_form_maker") . '</option><option value="Cape Verde">' . __("Cape Verde","contact_form_maker") . '</option><option value="Central African Republic">' . __("Central African Republic","contact_form_maker") . '</option><option value="Chad">' . __("Chad","contact_form_maker") . '</option><option value="Chile">' . __("Chile","contact_form_maker") . '</option><option value="China">' . __("China","contact_form_maker") . '</option><option value="Colombi">' . __("Colombi","contact_form_maker") . '</option><option value="Comoros">' . __("Comoros","contact_form_maker") . '</option><option value="Congo (Brazzaville)">' . __("Congo (Brazzaville)","contact_form_maker") . '</option><option value="Congo">' . __("Congo","contact_form_maker") . '</option><option value="Costa Rica">' . __("Costa Rica","contact_form_maker") . '</option><option value="Cote d\'Ivoire">' . __("Cote d\'Ivoire","contact_form_maker") . '</option><option value="Croatia">' . __("Croatia","contact_form_maker") . '</option><option value="Cuba">' . __("Cuba","contact_form_maker") . '</option><option value="Cyprus">' . __("Cyprus","contact_form_maker") . '</option><option value="Czech Republic">' . __("Czech Republic","contact_form_maker") . '</option><option value="Denmark">' . __("Denmark","contact_form_maker") . '</option><option value="Djibouti">' . __("Djibouti","contact_form_maker") . '</option><option value="Dominica">' . __("Dominica","contact_form_maker") . '</option><option value="Dominican Republic">' . __("Dominican Republic","contact_form_maker") . '</option><option value="East Timor (Timor Timur)">' . __("East Timor (Timor Timur)","contact_form_maker") . '</option><option value="Ecuador">' . __("Ecuador","contact_form_maker") . '</option><option value="Egypt">' . __("Egypt","contact_form_maker") . '</option><option value="El Salvador">' . __("El Salvador","contact_form_maker") . '</option><option value="Equatorial Guinea">' . __("Equatorial Guinea","contact_form_maker") . '</option><option value="Eritrea">' . __("Eritrea","contact_form_maker") . '</option><option value="Estonia">' . __("Estonia","contact_form_maker") . '</option><option value="Ethiopia">' . __("Ethiopia","contact_form_maker") . '</option><option value="Fiji">' . __("Fiji","contact_form_maker") . '</option><option value="Finland">' . __("Finland","contact_form_maker") . '</option><option value="France">' . __("France","contact_form_maker") . '</option><option value="Gabon">' . __("Gabon","contact_form_maker") . '</option><option value="Gambia, The">' . __("Gambia, The","contact_form_maker") . '</option><option value="Georgia">' . __("Georgia","contact_form_maker") . '</option><option value="Germany">' . __("Germany","contact_form_maker") . '</option><option value="Ghana">' . __("Ghana","contact_form_maker") . '</option><option value="Greece">' . __("Greece","contact_form_maker") . '</option><option value="Grenada">' . __("Grenada","contact_form_maker") . '</option><option value="Guatemala">' . __("Guatemala","contact_form_maker") . '</option><option value="Guinea">' . __("Guinea","contact_form_maker") . '</option><option value="Guinea-Bissau">' . __("Guinea-Bissau","contact_form_maker") . '</option><option value="Guyana">' . __("Guyana","contact_form_maker") . '</option><option value="Haiti">' . __("Haiti","contact_form_maker") . '</option><option value="Honduras">' . __("Honduras","contact_form_maker") . '</option><option value="Hungary">' . __("Hungary","contact_form_maker") . '</option><option value="Iceland">' . __("Iceland","contact_form_maker") . '</option><option value="India">' . __("India","contact_form_maker") . '</option><option value="Indonesia">' . __("Indonesia","contact_form_maker") . '</option><option value="Iran">' . __("Iran","contact_form_maker") . '</option><option value="Iraq">' . __("Iraq","contact_form_maker") . '</option><option value="Ireland">' . __("Ireland","contact_form_maker") . '</option><option value="Israel">' . __("Israel","contact_form_maker") . '</option><option value="Italy">' . __("Italy","contact_form_maker") . '</option><option value="Jamaica">' . __("Jamaica","contact_form_maker") . '</option><option value="Japan">' . __("Japan","contact_form_maker") . '</option><option value="Jordan">' . __("Jordan","contact_form_maker") . '</option><option value="Kazakhstan">' . __("Kazakhstan","contact_form_maker") . '</option><option value="Kenya">' . __("Kenya","contact_form_maker") . '</option><option value="Kiribati">' . __("Kiribati","contact_form_maker") . '</option><option value="Korea, North">' . __("Korea, North","contact_form_maker") . '</option><option value="Korea, South">' . __("Korea, South","contact_form_maker") . '</option><option value="Kuwait">' . __("Kuwait","contact_form_maker") . '</option><option value="Kyrgyzstan">' . __("Kyrgyzstan","contact_form_maker") . '</option><option value="Laos">' . __("Laos","contact_form_maker") . '</option><option value="Latvia">' . __("Latvia","contact_form_maker") . '</option><option value="Lebanon">' . __("Lebanon","contact_form_maker") . '</option><option value="Lesotho">' . __("Lesotho","contact_form_maker") . '</option><option value="Liberia">' . __("Liberia","contact_form_maker") . '</option><option value="Libya">' . __("Libya","contact_form_maker") . '</option><option value="Liechtenstein">' . __("Liechtenstein","contact_form_maker") . '</option><option value="Lithuania">' . __("Lithuania","contact_form_maker") . '</option><option value="Luxembourg">' . __("Luxembourg","contact_form_maker") . '</option><option value="Macedonia">' . __("Macedonia","contact_form_maker") . '</option><option value="Madagascar">' . __("Madagascar","contact_form_maker") . '</option><option value="Malawi">' . __("Malawi","contact_form_maker") . '</option><option value="Malaysia">' . __("Malaysia","contact_form_maker") . '</option><option value="Maldives">' . __("Maldives","contact_form_maker") . '</option><option value="Mali">' . __("Mali","contact_form_maker") . '</option><option value="Malta">' . __("Malta","contact_form_maker") . '</option><option value="Marshall Islands">' . __("Marshall Islands","contact_form_maker") . '</option><option value="Mauritania">' . __("Mauritania","contact_form_maker") . '</option><option value="Mauritius">' . __("Mauritius","contact_form_maker") . '</option><option value="Mexico">' . __("Mexico","contact_form_maker") . '</option><option value="Micronesia">' . __("Micronesia","contact_form_maker") . '</option><option value="Moldova">' . __("Moldova","contact_form_maker") . '</option><option value="Monaco">' . __("Monaco","contact_form_maker") . '</option><option value="Mongolia">' . __("Mongolia","contact_form_maker") . '</option><option value="Morocco">' . __("Morocco","contact_form_maker") . '</option><option value="Mozambique">' . __("Mozambique","contact_form_maker") . '</option><option value="Myanmar">' . __("Myanmar","contact_form_maker") . '</option><option value="Namibia">' . __("Namibia","contact_form_maker") . '</option><option value="Nauru">' . __("Nauru","contact_form_maker") . '</option><option value="Nepa">' . __("Nepa","contact_form_maker") . '</option><option value="Netherlands">' . __("Netherlands","contact_form_maker") . '</option><option value="New Zealand">' . __("New Zealand","contact_form_maker") . '</option><option value="Nicaragua">' . __("Nicaragua","contact_form_maker") . '</option><option value="Niger">' . __("Niger","contact_form_maker") . '</option><option value="Nigeria">' . __("Nigeria","contact_form_maker") . '</option><option value="Norway">' . __("Norway","contact_form_maker") . '</option><option value="Oman">' . __("Oman","contact_form_maker") . '</option><option value="Pakistan">' . __("Pakistan", "contact_form_maker") . '</option><option value="Palau">' . __("Palau", "contact_form_maker") . '</option><option value="Panama">' . __("Panama", "contact_form_maker") . '</option><option value="Papua New Guinea">' . __("Papua New Guinea", "contact_form_maker") . '</option><option value="Paraguay">' . __("Paraguay", "contact_form_maker") . '</option><option value="Peru">' . __("Peru", "contact_form_maker") . '</option><option value="Philippines">' . __("Philippines", "contact_form_maker") . '</option><option value="Poland">' . __("Poland", "contact_form_maker") . '</option><option value="Portugal">' . __("Portugal", "contact_form_maker") . '</option><option value="Qatar">' . __("Qatar", "contact_form_maker") . '</option><option value="Romania">' . __("Romania", "contact_form_maker") . '</option><option value="Russia">' . __("Russia", "contact_form_maker") . '</option><option value="Rwanda">' . __("Rwanda", "contact_form_maker") . '</option><option value="Saint Kitts and Nevis">' . __("Saint Kitts and Nevis", "contact_form_maker") . '</option><option value="Saint Lucia">' . __("Saint Lucia", "contact_form_maker") . '</option><option value="Saint Vincent">' . __("Saint Vincent", "contact_form_maker") . '</option><option value="Samoa">' . __("Samoa", "contact_form_maker") . '</option><option value="San Marino">' . __("San Marino", "contact_form_maker") . '</option><option value="Sao Tome and Principe">' . __("Sao Tome and Principe", "contact_form_maker") . '</option><option value="Saudi Arabia">' . __("Saudi Arabia", "contact_form_maker") . '</option><option value="Senegal">' . __("Senegal","contact_form_maker") . '</option><option value="Serbia and Montenegro">' . __("Serbia and Montenegro", "contact_form_maker") . '</option><option value="Seychelles">' . __("Seychelles", "contact_form_maker") . '</option><option value="Sierra Leone">' . __("Sierra Leone", "contact_form_maker") . '</option><option value="Singapore">' . __("Singapore", "contact_form_maker") . '</option><option value="Slovakia">' . __("Slovakia", "contact_form_maker") . '</option><option value="Slovenia">' . __("Slovenia", "contact_form_maker") . '</option><option value="Solomon Islands">' . __("Solomon Islands", "contact_form_maker") . '</option><option value="Somalia">' . __("Somalia", "contact_form_maker") . '</option><option value="South Africa">' . __("South Africa", "contact_form_maker") . '</option><option value="Spain">' . __("Spain", "contact_form_maker") . '</option><option value="Sri Lanka">' . __("Sri Lanka", "contact_form_maker") . '</option><option value="Sudan">' . __("Sudan", "contact_form_maker") . '</option><option value="Suriname">' . __("Suriname", "contact_form_maker") . '</option><option value="Swaziland">' . __("Swaziland", "contact_form_maker") . '</option><option value="Sweden">' . __("Sweden", "contact_form_maker") . '</option><option value="Switzerland">' . __("Switzerland", "contact_form_maker") . '</option><option value="Syria">' . __("Syria", "contact_form_maker") . '</option><option value="Taiwan">' . __("Taiwan", "contact_form_maker") . '</option><option value="Tajikistan">' . __("Tajikistan", "contact_form_maker") .'</option><option value="Tanzania">' . __("Tanzania", "contact_form_maker") . '</option><option value="Thailand">' . __("Thailand", "contact_form_maker") . '</option><option value="Togo">' . __("Togo", "contact_form_maker") . '</option><option value="Tonga">' . __("Tonga", "contact_form_maker") . '</option><option value="Trinidad and Tobago">' . __("Trinidad and Tobago", "contact_form_maker") . '</option><option value="Tunisia">' . __("Tunisia", "contact_form_maker") . '</option><option value="Turkey">' . __("Turkey", "contact_form_maker") . '</option><option value="Turkmenistan">' . __("Turkmenistan", "contact_form_maker") . '</option><option value="Tuvalu">' . __("Tuvalu", "contact_form_maker") . '</option><option value="Uganda">' . __("Uganda", "contact_form_maker") . '</option><option value="Ukraine">' . __("Ukraine", "contact_form_maker") . '</option><option value="United Arab Emirates">' . __("United Arab Emirates", "contact_form_maker") . '</option><option value="United Kingdom">' . __("United Kingdom", "contact_form_maker") . '</option><option value="United States">' . __("United States", "contact_form_maker") . '</option><option value="Uruguay">' . __("Uruguay", "contact_form_maker") . '</option><option value="Uzbekistan">' . __("Uzbekistan", "contact_form_maker") . '</option><option value="Vanuatu">' . __("Vanuatu", "contact_form_maker") . '</option><option value="Vatican City">' . __("Vatican City", "contact_form_maker") . '</option><option value="Venezuela">' . __("Venezuela", "contact_form_maker") . '</option><option value="Vietnam">' . __("Vietnam", "contact_form_maker") . '</option><option value="Yemen">' . __("Yemen", "contact_form_maker") . '</option><option value="Zambia">' . __("Zambia", "contact_form_maker") . '</option></select><label class="mini_label" style="display: block;" id="'.$id.'_mini_label_country">'.$w_mini_labels[5].'</span>';
334
+ }
335
+ $rep .= '<div id="wdform_field'.$id.'" type="type_address" class="wdform_field" style="display: table-cell;"><div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].'; width: '.$param['w_field_label_size'].'px; vertical-align:top;"><span id="'.$id.'_element_labelform_id_temp" class="label" style="vertical-align: top;">'.$label.'</span><span id="'.$id.'_required_elementform_id_temp" class="required" style="vertical-align: top;">'.$required_sym.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].';"><input type="hidden" value="type_address" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><input type="hidden" value="'.$param['w_required'].'" name="'.$id.'_requiredform_id_temp" id="'.$id.'_requiredform_id_temp"><input type="hidden" name="'.$id.'_disable_fieldsform_id_temp" id="'.$id.'_disable_fieldsform_id_temp" street1="'.$w_disabled_fields[0].'" street2="'.$w_disabled_fields[1].'" city="'.$w_disabled_fields[2].'" state="'.$w_disabled_fields[3].'" postal="'.$w_disabled_fields[4].'" country="'.$w_disabled_fields[5].'" us_states="'.$w_disabled_fields[6].'"><div id="'.$id.'_div_address" style="width: '.$param['w_size'].'px;">'.$address_fields.$hidden_inputs.'</div></div></div>';
336
+ break;
337
+ }
338
+ case 'type_submitter_mail': {
339
+ $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_size', 'w_first_val', 'w_title', 'w_required', 'w_unique', 'w_class');
340
+ $temp = $params;
341
+ foreach ($params_names as $params_name) {
342
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
343
+ $param[$params_name] = $temp[0];
344
+ $temp = $temp[1];
345
+ }
346
+ if ($temp) {
347
+ $temp = explode('*:*w_attr_name*:*', $temp);
348
+ $attrs = array_slice($temp, 0, count($temp) - 1);
349
+ foreach ($attrs as $attr) {
350
+ $param['attributes'] = $param['attributes'] . ' add_' . $attr;
351
+ }
352
+ }
353
+ $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
354
+ $input_active = ($param['w_first_val'] == $param['w_title'] ? "input_deactive" : "input_active");
355
+ $required_sym = ($param['w_required'] == "yes" ? " *" : "");
356
+ $rep .= '<div id="wdform_field'.$id.'" type="type_submitter_mail" class="wdform_field" style="display: table-cell;"><div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].'; width: '.$param['w_field_label_size'].'px; vertical-align:top;"><span id="'.$id.'_element_labelform_id_temp" class="label" style="vertical-align: top;">'.$label.'</span><span id="'.$id.'_required_elementform_id_temp" class="required" style="vertical-align: top;">'.$required_sym.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].';"><input type="hidden" value="type_submitter_mail" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><input type="hidden" value="'.$param['w_required'].'" name="'.$id.'_requiredform_id_temp" id="'.$id.'_requiredform_id_temp"><input type="hidden" value="'.$param['w_unique'].'" name="'.$id.'_uniqueform_id_temp" id="'.$id.'_uniqueform_id_temp"><input type="text" class="'.$input_active.'" id="'.$id.'_elementform_id_temp" name="'.$id.'_elementform_id_temp" value="'.$param['w_first_val'].'" title="'.$param['w_title'].'" onfocus="delete_value(&quot;'.$id.'_elementform_id_temp&quot;)" onblur="return_value(&quot;'.$id.'_elementform_id_temp&quot;)" onchange="change_value(&quot;'.$id.'_elementform_id_temp&quot;)" style="width: '.$param['w_size'].'px;" '.$param['attributes'].' disabled ></div></div>';
357
+ break;
358
+ }
359
+ case 'type_checkbox': {
360
+ $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_flow', 'w_choices', 'w_choices_checked', 'w_rowcol', 'w_required', 'w_randomize', 'w_allow_other', 'w_allow_other_num', 'w_class');
361
+ $temp = $params;
362
+ foreach ($params_names as $params_name) {
363
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
364
+ $param[$params_name] = $temp[0];
365
+ $temp = $temp[1];
366
+ }
367
+ if ($temp) {
368
+ $temp = explode('*:*w_attr_name*:*', $temp);
369
+ $attrs = array_slice($temp, 0, count($temp) - 1);
370
+ foreach ($attrs as $attr) {
371
+ $param['attributes'] = $param['attributes'] . ' add_' . $attr;
372
+ }
373
+ }
374
+ $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
375
+ $required_sym = ($param['w_required'] == "yes" ? " *" : "");
376
+ $param['w_choices'] = explode('***', $param['w_choices']);
377
+ $param['w_choices_checked'] = explode('***',$param['w_choices_checked']);
378
+ foreach ($param['w_choices_checked'] as $key => $choices_checked) {
379
+ if ($choices_checked == 'true') {
380
+ $param['w_choices_checked'][$key] = 'checked="checked"';
381
+ }
382
+ else {
383
+ $param['w_choices_checked'][$key] = '';
384
+ }
385
+ }
386
+ $rep .= '<div id="wdform_field'.$id.'" type="type_checkbox" class="wdform_field" style="display: table-cell;"><div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].'; width: '.$param['w_field_label_size'].'px;"><span id="'.$id.'_element_labelform_id_temp" class="label" style="vertical-align: top;">'.$label.'</span><span id="'.$id.'_required_elementform_id_temp" class="required" style="vertical-align: top;">'.$required_sym.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].';"><input type="hidden" value="type_checkbox" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><input type="hidden" value="'.$param['w_required'].'" name="'.$id.'_requiredform_id_temp" id="'.$id.'_requiredform_id_temp"><input type="hidden" value="'.$param['w_randomize'].'" name="'.$id.'_randomizeform_id_temp" id="'.$id.'_randomizeform_id_temp"><input type="hidden" value="'.$param['w_allow_other'].'" name="'.$id.'_allow_otherform_id_temp" id="'.$id.'_allow_otherform_id_temp"><input type="hidden" value="'.$param['w_allow_other_num'].'" name="'.$id.'_allow_other_numform_id_temp" id="'.$id.'_allow_other_numform_id_temp"><input type="hidden" value="'.$param['w_rowcol'].'" name="'.$id.'_rowcol_numform_id_temp" id="'.$id.'_rowcol_numform_id_temp"><div style="display: table;"><div id="'.$id.'_table_little" style="display: table-row-group;" '.($param['w_flow']=='hor' ? 'for_hor="'.$id.'_hor"' : '').'>';
387
+ if ($param['w_flow'] == 'hor') {
388
+ $j = 0;
389
+ for ($i = 0; $i < (int) $param['w_rowcol']; $i++) {
390
+ $rep .= '<div id="'.$id.'_element_tr'.$i.'" style="display: table-row;">';
391
+ for ($l = 0; $l <= (int)(count($param['w_choices']) / $param['w_rowcol']); $l++) {
392
+ if ($j >= count($param['w_choices']) % $param['w_rowcol'] && $l == (int) (count($param['w_choices']) / $param['w_rowcol'])) {
393
+ continue;
394
+ }
395
+ if ($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == (int) $param['w_rowcol'] * $i + $l) {
396
+ $rep .= '<div valign="top" id="'.$id.'_td_little'.((int)$param['w_rowcol']*$l+$i).'" idi="'.((int)$param['w_rowcol']*$l+$i).'" style="display: table-cell;"><input type="checkbox" value="'.$param['w_choices'][(int)$param['w_rowcol']*$l+$i].'" id="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$l+$i).'" name="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$l+$i).'" other="1" onclick="if(set_checked(&quot;'.$id.'&quot;,&quot;'.((int)$param['w_rowcol']*$l+$i).'&quot;,&quot;form_id_temp&quot;)) show_other_input(&quot;'.$id.'&quot;,&quot;form_id_temp&quot;);" '.$param['w_choices_checked'][(int)$param['w_rowcol']*$l+$i].' '.$param['attributes'].' disabled ><label id="'.$id.'_label_element'.((int)$param['w_rowcol']*$l+$i).'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$l+$i).'">'.$param['w_choices'][(int)$param['w_rowcol']*$l+$i].'</label></div>';
397
+ }
398
+ else {
399
+ $rep .= '<div valign="top" id="'.$id.'_td_little'.((int)$param['w_rowcol']*$l+$i).'" idi="'.((int)$param['w_rowcol']*$l+$i).'" style="display: table-cell;"><input type="checkbox" value="'.$param['w_choices'][(int)$param['w_rowcol']*$l+$i].'" id="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$l+$i).'" name="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$l+$i).'" onclick="set_checked(&quot;'.$id.'&quot;,&quot;'.((int)$param['w_rowcol']*$l+$i).'&quot;,&quot;form_id_temp&quot;)" '.$param['w_choices_checked'][(int)$param['w_rowcol']*$l+$i].' '.$param['attributes'].' disabled><label id="'.$id.'_label_element'.((int)$param['w_rowcol']*$l+$i).'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$l+$i).'">'.$param['w_choices'][(int)$param['w_rowcol']*$l+$i].'</label></div>';
400
+ }
401
+ }
402
+ $j++;
403
+ $rep .= '</div>';
404
+ }
405
+ }
406
+ else {
407
+ for ($i = 0; $i < (int) (count($param['w_choices']) / $param['w_rowcol']); $i++) {
408
+ $rep .= '<div id="'.$id.'_element_tr'.$i.'" style="display: table-row;">';
409
+ if (count($param['w_choices']) > (int)$param['w_rowcol']) {
410
+ for ($l = 0; $l < $param['w_rowcol']; $l++) {
411
+ if ($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == (int) $param['w_rowcol'] * $i + $l) {
412
+ $rep .= '<div valign="top" id="'.$id.'_td_little'.((int)$param['w_rowcol']*$i+$l).'" idi="'.((int)$param['w_rowcol']*$i+$l).'" style="display: table-cell;"><input type="checkbox" value="'.$param['w_choices'][(int)$param['w_rowcol']*$i+$l].'" id="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'" name="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'" other="1" onclick="if(set_checked(&quot;'.$id.'&quot;,&quot;'.((int)$param['w_rowcol']*$i+$l).'&quot;,&quot;form_id_temp&quot;)) show_other_input(&quot;'.$id.'&quot;,&quot;form_id_temp&quot;);" '.$param['w_choices_checked'][(int)$param['w_rowcol']*$i+$l].' '.$param['attributes'].' disabled><label id="'.$id.'_label_element'.((int)$param['w_rowcol']*$i+$l).'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'">'.$param['w_choices'][(int)$param['w_rowcol']*$i+$l].'</label></div>';
413
+ }
414
+ else {
415
+ $rep .= '<div valign="top" id="'.$id.'_td_little'.((int)$param['w_rowcol']*$i+$l).'" idi="'.((int)$param['w_rowcol']*$i+$l).'" style="display: table-cell;"><input type="checkbox" value="'.$param['w_choices'][(int)$param['w_rowcol']*$i+$l].'" id="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'" name="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'" onclick="set_checked(&quot;'.$id.'&quot;,&quot;'.((int)$param['w_rowcol']*$i+$l).'&quot;,&quot;form_id_temp&quot;)" '.$param['w_choices_checked'][(int)$param['w_rowcol']*$i+$l].' '.$param['attributes'].' disabled><label id="'.$id.'_label_element'.((int)$param['w_rowcol']*$i+$l).'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'">'.$param['w_choices'][(int)$param['w_rowcol']*$i+$l].'</label></div>';
416
+ }
417
+ }
418
+ }
419
+ else {
420
+ for ($l = 0; $l < count($param['w_choices']); $l++) {
421
+ if ($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == (int) $param['w_rowcol'] * $i + $l) {
422
+ $rep .= '<div valign="top" id="'.$id.'_td_little'.((int)$param['w_rowcol']*$i+$l).'" idi="'.((int)$param['w_rowcol']*$i+$l).'" style="display: table-cell;"><input type="checkbox" value="'.$param['w_choices'][(int)$param['w_rowcol']*$i+$l].'" id="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'" name="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'" other="1" onclick="if(set_checked(&quot;'.$id.'&quot;,&quot;'.((int)$param['w_rowcol']*$i+$l).'&quot;,&quot;form_id_temp&quot;)) show_other_input(&quot;'.$id.'&quot;,&quot;form_id_temp&quot;);" '.$param['w_choices_checked'][(int)$param['w_rowcol']*$i+$l].' '.$param['attributes'].' disabled><label id="'.$id.'_label_element'.((int)$param['w_rowcol']*$i+$l).'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'">'.$param['w_choices'][(int)$param['w_rowcol']*$i+$l].'</label></div>';
423
+ }
424
+ else {
425
+ $rep .= '<div valign="top" id="'.$id.'_td_little'.((int)$param['w_rowcol']*$i+$l).'" idi="'.((int)$param['w_rowcol']*$i+$l).'" style="display: table-cell;"><input type="checkbox" value="'.$param['w_choices'][(int)$param['w_rowcol']*$i+$l].'" id="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'" name="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'" onclick="set_checked(&quot;'.$id.'&quot;,&quot;'.((int)$param['w_rowcol']*$i+$l).'&quot;,&quot;form_id_temp&quot;)" '.$param['w_choices_checked'][(int)$param['w_rowcol']*$i+$l].' '.$param['attributes'].' disabled><label id="'.$id.'_label_element'.((int)$param['w_rowcol']*$i+$l).'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'">'.$param['w_choices'][(int)$param['w_rowcol']*$i+$l].'</label></div>';
426
+ }
427
+ }
428
+ }
429
+ $rep .= '</div>';
430
+ }
431
+ if (count($param['w_choices']) % $param['w_rowcol'] != 0) {
432
+ $rep .= '<div id="'.$id.'_element_tr'.((int) (count($param['w_choices']) / (int)$param['w_rowcol'])).'" style="display: table-row;">';
433
+ for ($k = 0; $k < count($param['w_choices']) % $param['w_rowcol']; $k++) {
434
+ $l = count($param['w_choices']) - count($param['w_choices']) % $param['w_rowcol'] + $k;
435
+ if ($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == $l) {
436
+ $rep .= '<div valign="top" id="'.$id.'_td_little'.$l.'" idi="'.$l.'" style="display: table-cell;"><input type="checkbox" value="'.$param['w_choices'][$l].'" id="'.$id.'_elementform_id_temp'.$l.'" name="'.$id.'_elementform_id_temp'.$l.'" other="1" onclick="if(set_checked(&quot;'.$id.'&quot;,&quot;'.$l.'&quot;,&quot;form_id_temp&quot;)) show_other_input(&quot;'.$id.'&quot;,&quot;form_id_temp&quot;);" '.$param['w_choices_checked'][$l].' '.$param['attributes'].' disabled><label id="'.$id.'_label_element'.$l.'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.$l.'">'.$param['w_choices'][$l].'</label></div>';
437
+ }
438
+ else {
439
+ $rep .= '<div valign="top" id="'.$id.'_td_little'.$l.'" idi="'.$l.'" style="display: table-cell;"><input type="checkbox" value="'.$param['w_choices'][$l].'" id="'.$id.'_elementform_id_temp'.$l.'" name="'.$id.'_elementform_id_temp'.$l.'" onclick="set_checked(&quot;'.$id.'&quot;,&quot;'.$l.'&quot;,&quot;form_id_temp&quot;)" '.$param['w_choices_checked'][$l].' '.$param['attributes'].' disabled><label id="'.$id.'_label_element'.$l.'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.$l.'">'.$param['w_choices'][$l].'</label></div>';
440
+ }
441
+ }
442
+ $rep .= '</div>';
443
+ }
444
+ }
445
+ $rep .= '</div></div></div></div>';
446
+ break;
447
+ }
448
+ case 'type_radio': {
449
+ $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_flow', 'w_choices', 'w_choices_checked', 'w_rowcol', 'w_required', 'w_randomize', 'w_allow_other', 'w_allow_other_num', 'w_class');
450
+ $temp = $params;
451
+ foreach ($params_names as $params_name) {
452
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
453
+ $param[$params_name] = $temp[0];
454
+ $temp = $temp[1];
455
+ }
456
+ if ($temp) {
457
+ $temp = explode('*:*w_attr_name*:*', $temp);
458
+ $attrs = array_slice($temp, 0, count($temp) - 1);
459
+ foreach ($attrs as $attr) {
460
+ $param['attributes'] = $param['attributes'] . ' add_' . $attr;
461
+ }
462
+ }
463
+ $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
464
+ $required_sym = ($param['w_required'] == "yes" ? " *" : "");
465
+ $param['w_choices'] = explode('***', $param['w_choices']);
466
+ $param['w_choices_checked'] = explode('***', $param['w_choices_checked']);
467
+ foreach ($param['w_choices_checked'] as $key => $choices_checked) {
468
+ if ($choices_checked == 'true') {
469
+ $param['w_choices_checked'][$key] = 'checked="checked"';
470
+ }
471
+ else {
472
+ $param['w_choices_checked'][$key] = '';
473
+ }
474
+ }
475
+ $rep .= '<div id="wdform_field'.$id.'" type="type_radio" class="wdform_field" style="display: table-cell;"><div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].'; width: '.$param['w_field_label_size'].'px;"><span id="'.$id.'_element_labelform_id_temp" class="label" style="vertical-align: top;">'.$label.'</span><span id="'.$id.'_required_elementform_id_temp" class="required" style="vertical-align: top;">'.$required_sym.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].';"><input type="hidden" value="type_radio" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><input type="hidden" value="'.$param['w_required'].'" name="'.$id.'_requiredform_id_temp" id="'.$id.'_requiredform_id_temp"><input type="hidden" value="'.$param['w_randomize'].'" name="'.$id.'_randomizeform_id_temp" id="'.$id.'_randomizeform_id_temp"><input type="hidden" value="'.$param['w_allow_other'].'" name="'.$id.'_allow_otherform_id_temp" id="'.$id.'_allow_otherform_id_temp"><input type="hidden" value="'.$param['w_allow_other_num'].'" name="'.$id.'_allow_other_numform_id_temp" id="'.$id.'_allow_other_numform_id_temp"><input type="hidden" value="'.$param['w_rowcol'].'" name="'.$id.'_rowcol_numform_id_temp" id="'.$id.'_rowcol_numform_id_temp"><div style="display: table;"><div id="'.$id.'_table_little" style="display: table-row-group;" '.($param['w_flow']=='hor' ? 'for_hor="'.$id.'_hor"' : '').'>';
476
+ if ($param['w_flow'] == 'hor') {
477
+ $j = 0;
478
+ for ($i = 0; $i < (int) $param['w_rowcol']; $i++) {
479
+ $rep .= '<div id="'.$id.'_element_tr'.$i.'" style="display: table-row;">';
480
+ for($l=0; $l<=(int)(count($param['w_choices'])/$param['w_rowcol']); $l++) {
481
+ if ($j >= count($param['w_choices'])%$param['w_rowcol'] && $l == (int) (count($param['w_choices']) / $param['w_rowcol'])) {
482
+ continue;
483
+ }
484
+ if ($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == (int) $param['w_rowcol'] * $i + $l) {
485
+ $rep .= '<div valign="top" id="'.$id.'_td_little'.((int)$param['w_rowcol']*$l+$i).'" idi="'.((int)$param['w_rowcol']*$l+$i).'" style="display: table-cell;"><input type="radio" value="'.$param['w_choices'][(int)$param['w_rowcol']*$l+$i].'" id="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$l+$i).'" name="'.$id.'_elementform_id_temp" other="1" onclick="set_default(&quot;'.$id.'&quot;,&quot;'.((int)$param['w_rowcol']*$l+$i).'&quot;,&quot;form_id_temp&quot;); show_other_input(&quot;'.$id.'&quot;,&quot;form_id_temp&quot;);" '.$param['w_choices_checked'][(int)$param['w_rowcol']*$l+$i].' '.$param['attributes'].' disabled><label id="'.$id.'_label_element'.((int)$param['w_rowcol']*$l+$i).'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$l+$i).'">'.$param['w_choices'][(int)$param['w_rowcol']*$l+$i].'</label></div>';
486
+ }
487
+ else {
488
+ $rep .= '<div valign="top" id="'.$id.'_td_little'.((int)$param['w_rowcol']*$l+$i).'" idi="'.((int)$param['w_rowcol']*$l+$i).'" style="display: table-cell;"><input type="radio" value="'.$param['w_choices'][(int)$param['w_rowcol']*$l+$i].'" id="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$l+$i).'" name="'.$id.'_elementform_id_temp" onclick="set_default(&quot;'.$id.'&quot;,&quot;'.((int)$param['w_rowcol']*$l+$i).'&quot;,&quot;form_id_temp&quot;)" '.$param['w_choices_checked'][(int)$param['w_rowcol']*$l+$i].' '.$param['attributes'].' disabled><label id="'.$id.'_label_element'.((int)$param['w_rowcol']*$l+$i).'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$l+$i).'">'.$param['w_choices'][(int)$param['w_rowcol']*$l+$i].'</label></div>';
489
+ }
490
+ }
491
+ $j++;
492
+ $rep .= '</div>';
493
+ }
494
+ }
495
+ else {
496
+ for ($i = 0; $i < (int) (count($param['w_choices']) / $param['w_rowcol']); $i++) {
497
+ $rep .= '<div id="'.$id.'_element_tr'.$i.'" style="display: table-row;">';
498
+ if (count($param['w_choices']) > (int) $param['w_rowcol']) {
499
+ for ($l = 0; $l < $param['w_rowcol']; $l++) {
500
+ if ($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == (int) $param['w_rowcol'] * $i + $l) {
501
+ $rep .= '<div valign="top" id="'.$id.'_td_little'.((int)$param['w_rowcol']*$i+$l).'" idi="'.((int)$param['w_rowcol']*$i+$l).'" style="display: table-cell;"><input type="radio" value="'.$param['w_choices'][(int)$param['w_rowcol']*$i+$l].'" id="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'" name="'.$id.'_elementform_id_temp" other="1" onclick="set_default(&quot;'.$id.'&quot;,&quot;'.((int)$param['w_rowcol']*$i+$l).'&quot;,&quot;form_id_temp&quot;); show_other_input(&quot;'.$id.'&quot;,&quot;form_id_temp&quot;);" '.$param['w_choices_checked'][(int)$param['w_rowcol']*$i+$l].' '.$param['attributes'].' disabled><label id="'.$id.'_label_element'.((int)$param['w_rowcol']*$i+$l).'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'">'.$param['w_choices'][(int)$param['w_rowcol']*$i+$l].'</label></div>';
502
+ }
503
+ else {
504
+ $rep .= '<div valign="top" id="'.$id.'_td_little'.((int)$param['w_rowcol']*$i+$l).'" idi="'.((int)$param['w_rowcol']*$i+$l).'" style="display: table-cell;"><input type="radio" value="'.$param['w_choices'][(int)$param['w_rowcol']*$i+$l].'" id="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'" name="'.$id.'_elementform_id_temp" onclick="set_default(&quot;'.$id.'&quot;,&quot;'.((int)$param['w_rowcol']*$i+$l).'&quot;,&quot;form_id_temp&quot;)" '.$param['w_choices_checked'][(int)$param['w_rowcol']*$i+$l].' '.$param['attributes'].' disabled><label id="'.$id.'_label_element'.((int)$param['w_rowcol']*$i+$l).'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'">'.$param['w_choices'][(int)$param['w_rowcol']*$i+$l].'</label></div>';
505
+ }
506
+ }
507
+ }
508
+ else {
509
+ for ($l = 0; $l < count($param['w_choices']); $l++) {
510
+ if ($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == (int) $param['w_rowcol'] * $i + $l) {
511
+ $rep .= '<div valign="top" id="'.$id.'_td_little'.((int)$param['w_rowcol']*$i+$l).'" idi="'.((int)$param['w_rowcol']*$i+$l).'" style="display: table-cell;"><input type="radio" value="'.$param['w_choices'][(int)$param['w_rowcol']*$i+$l].'" id="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'" name="'.$id.'_elementform_id_temp" other="1" onclick="set_default(&quot;'.$id.'&quot;,&quot;'.((int)$param['w_rowcol']*$i+$l).'&quot;,&quot;form_id_temp&quot;); show_other_input(&quot;'.$id.'&quot;,&quot;form_id_temp&quot;);" '.$param['w_choices_checked'][(int)$param['w_rowcol']*$i+$l].' '.$param['attributes'].' disabled><label id="'.$id.'_label_element'.((int)$param['w_rowcol']*$i+$l).'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'">'.$param['w_choices'][(int)$param['w_rowcol']*$i+$l].'</label></div>';
512
+ }
513
+ else {
514
+ $rep .= '<div valign="top" id="'.$id.'_td_little'.((int)$param['w_rowcol']*$i+$l).'" idi="'.((int)$param['w_rowcol']*$i+$l).'" style="display: table-cell;"><input type="radio" value="'.$param['w_choices'][(int)$param['w_rowcol']*$i+$l].'" id="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'" name="'.$id.'_elementform_id_temp" onclick="set_default(&quot;'.$id.'&quot;,&quot;'.((int)$param['w_rowcol']*$i+$l).'&quot;,&quot;form_id_temp&quot;)" '.$param['w_choices_checked'][(int)$param['w_rowcol']*$i+$l].' '.$param['attributes'].' disabled><label id="'.$id.'_label_element'.((int)$param['w_rowcol']*$i+$l).'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.((int)$param['w_rowcol']*$i+$l).'">'.$param['w_choices'][(int)$param['w_rowcol']*$i+$l].'</label></div>';
515
+ }
516
+ }
517
+ }
518
+ $rep .= '</div>';
519
+ }
520
+ if (count($param['w_choices']) % $param['w_rowcol'] != 0) {
521
+ $rep .= '<div id="'.$id.'_element_tr'.((int)(count($param['w_choices'])/(int)$param['w_rowcol'])).'" style="display: table-row;">';
522
+ for ($k = 0; $k < count($param['w_choices']) % $param['w_rowcol']; $k++) {
523
+ $l = count($param['w_choices']) - count($param['w_choices']) % $param['w_rowcol'] + $k;
524
+ if ($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == $l) {
525
+ $rep .= '<div valign="top" id="'.$id.'_td_little'.$l.'" idi="'.$l.'" style="display: table-cell;"><input type="radio" value="'.$param['w_choices'][$l].'" id="'.$id.'_elementform_id_temp'.$l.'" name="'.$id.'_elementform_id_temp" other="1" onclick="set_default(&quot;'.$id.'&quot;,&quot;'.$l.'&quot;,&quot;form_id_temp&quot;); show_other_input(&quot;'.$id.'&quot;,&quot;form_id_temp&quot;);" '.$param['w_choices_checked'][$l].' '.$param['attributes'].' disabled><label id="'.$id.'_label_element'.$l.'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.$l.'">'.$param['w_choices'][$l].'</label></div>';
526
+ }
527
+ else {
528
+ $rep .= '<div valign="top" id="'.$id.'_td_little'.$l.'" idi="'.$l.'" style="display: table-cell;"><input type="radio" value="'.$param['w_choices'][$l].'" id="'.$id.'_elementform_id_temp'.$l.'" name="'.$id.'_elementform_id_temp" onclick="set_default(&quot;'.$id.'&quot;,&quot;'.$l.'&quot;,&quot;form_id_temp&quot;)" '.$param['w_choices_checked'][$l].' '.$param['attributes'].' disabled><label id="'.$id.'_label_element'.$l.'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.$l.'">'.$param['w_choices'][$l].'</label></div>';
529
+ }
530
+ }
531
+ $rep .= '</div>';
532
+ }
533
+ }
534
+ $rep .= '</div></div></div></div>';
535
+ break;
536
+ }
537
+ case 'type_own_select': {
538
+ $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_size', 'w_choices', 'w_choices_checked', 'w_choices_disabled', 'w_required', 'w_class');
539
+ $temp = $params;
540
+ foreach ($params_names as $params_name) {
541
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
542
+ $param[$params_name] = $temp[0];
543
+ $temp = $temp[1];
544
+ }
545
+ if ($temp) {
546
+ $temp = explode('*:*w_attr_name*:*', $temp);
547
+ $attrs = array_slice($temp, 0, count($temp) - 1);
548
+ foreach ($attrs as $attr) {
549
+ $param['attributes'] = $param['attributes'] . ' add_' . $attr;
550
+ }
551
+ }
552
+ $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
553
+ $required_sym = ($param['w_required'] == "yes" ? " *" : "");
554
+ $param['w_choices'] = explode('***', $param['w_choices']);
555
+ $param['w_choices_checked'] = explode('***',$param['w_choices_checked']);
556
+ $param['w_choices_disabled'] = explode('***',$param['w_choices_disabled']);
557
+ foreach ($param['w_choices_checked'] as $key => $choices_checked) {
558
+ if ($choices_checked == 'true') {
559
+ $param['w_choices_checked'][$key] = 'selected="selected"';
560
+ }
561
+ else {
562
+ $param['w_choices_checked'][$key] = '';
563
+ }
564
+ }
565
+ $rep .= '<div id="wdform_field'.$id.'" type="type_own_select" class="wdform_field" style="display: table-cell;"><div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].'; width: '.$param['w_field_label_size'].'px;"><span id="'.$id.'_element_labelform_id_temp" class="label" style="vertical-align: top;">'.$label.'</span><span id="'.$id.'_required_elementform_id_temp" class="required" style="vertical-align: top;">'.$required_sym.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].'; "><input type="hidden" value="type_own_select" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><input type="hidden" value="'.$param['w_required'].'" name="'.$id.'_requiredform_id_temp" id="'.$id.'_requiredform_id_temp"><select id="'.$id.'_elementform_id_temp" name="'.$id.'_elementform_id_temp" onchange="set_select(this)" style="width: '.$param['w_size'].'px;" '.$param['attributes'].' disabled>';
566
+ foreach ($param['w_choices'] as $key => $choice) {
567
+ if ($param['w_choices_disabled'][$key] == "true") {
568
+ $choice_value = '';
569
+ }
570
+ else {
571
+ $choice_value = $choice;
572
+ }
573
+ $rep .= '<option id="'.$id.'_option'.$key.'" value="'.$choice_value.'" onselect="set_select(&quot;'.$id.'_option'.$key.'&quot;)" '.$param['w_choices_checked'][$key].'>'.$choice.'</option>';
574
+ }
575
+ $rep .= '</select></div></div>';
576
+ break;
577
+ }
578
+ case 'type_captcha': {
579
+ $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_digit', 'w_class');
580
+ $temp = $params;
581
+ foreach ($params_names as $params_name) {
582
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
583
+ $param[$params_name] = $temp[0];
584
+ $temp = $temp[1];
585
+ }
586
+ if ($temp) {
587
+ $temp = explode('*:*w_attr_name*:*', $temp);
588
+ $attrs = array_slice($temp, 0, count($temp) - 1);
589
+ foreach ($attrs as $attr) {
590
+ $param['attributes'] = $param['attributes'] . ' add_' . $attr;
591
+ }
592
+ }
593
+ $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
594
+ $rep .= '<div id="wdform_field'.$id.'" type="type_captcha" class="wdform_field" style="display: table-cell;"><div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display:'.$param['w_field_label_pos'].'; width: '.$param['w_field_label_size'].'px; vertical-align:top;"><span id="'.$id.'_element_labelform_id_temp" class="label" style="vertical-align: top;">'.$label.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].';"><input type="hidden" value="type_captcha" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><div style="display: table;"><div style="display: table-row;"><div valign="middle" style="display: table-cell;"><img type="captcha" digit="'.$param['w_digit'].'" src="' . add_query_arg(array('action' => 'ContactFormmakerwdcaptcha', 'digit' => $param['w_digit'], 'i' => 'form_id_temp'), admin_url('admin-ajax.php')) . 'digit='.$param['w_digit'].'" id="_wd_captchaform_id_temp" class="captcha_img" onclick="captcha_refresh(&quot;_wd_captcha&quot;,&quot;form_id_temp&quot;)" '.$param['attributes'].'></div><div valign="middle" style="display: table-cell;"><div class="captcha_refresh" id="_element_refreshform_id_temp" onclick="captcha_refresh(&quot;_wd_captcha&quot;,&quot;form_id_temp&quot;)" '.$param['attributes'].'></div></div></div><div style="display: table-row;"><div style="display: table-cell;"><input type="text" class="captcha_input" id="_wd_captcha_inputform_id_temp" name="captcha_input" style="width: '.($param['w_digit']*10+15).'px;" '.$param['attributes'].' disabled></div></div></div></div></div>';
595
+ break;
596
+ }
597
+ case 'type_recaptcha': {
598
+ $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_public', 'w_private', 'w_theme', 'w_class');
599
+ $temp = $params;
600
+ foreach ($params_names as $params_name) {
601
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
602
+ $param[$params_name] = $temp[0];
603
+ $temp = $temp[1];
604
+ }
605
+ if ($temp) {
606
+ $temp = explode('*:*w_attr_name*:*', $temp);
607
+ $attrs = array_slice($temp, 0, count($temp) - 1);
608
+ foreach ($attrs as $attr) {
609
+ $param['attributes'] = $param['attributes'] . ' add_' . $attr;
610
+ }
611
+ }
612
+ $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
613
+ $rep .= '<div id="wdform_field'.$id.'" type="type_recaptcha" class="wdform_field" style="display: table-cell;"><div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].'; width: '.$param['w_field_label_size'].'px; vertical-align:top;"><span id="'.$id.'_element_labelform_id_temp" class="label" style="vertical-align: top;">'.$label.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" class="'.$param['w_class'].'" style="display: '.$param['w_field_label_pos'].';"><input type="hidden" value="type_recaptcha" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><div id="wd_recaptchaform_id_temp" public_key="'.$param['w_public'].'" private_key="'.$param['w_private'].'" theme="'.$param['w_theme'].'" '.$param['attributes'].'><span style="color: red; font-style: italic;">Recaptcha doesn\'t display in back end</span></div></div></div>';
614
+ break;
615
+ }
616
+ case 'type_map': {
617
+ $params_names = array('w_center_x', 'w_center_y', 'w_long', 'w_lat', 'w_zoom', 'w_width', 'w_height', 'w_info', 'w_class');
618
+ $temp = $params;
619
+ foreach ($params_names as $params_name) {
620
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
621
+ $param[$params_name] = $temp[0];
622
+ $temp = $temp[1];
623
+ }
624
+ if ($temp) {
625
+ $temp = explode('*:*w_attr_name*:*', $temp);
626
+ $attrs = array_slice($temp, 0, count($temp) - 1);
627
+ foreach ($attrs as $attr) {
628
+ $param['attributes'] = $param['attributes'] . ' add_' . $attr;
629
+ }
630
+ }
631
+ $marker = '';
632
+ $param['w_long'] = explode('***', $param['w_long']);
633
+ $param['w_lat'] = explode('***', $param['w_lat']);
634
+ $param['w_info'] = explode('***', $param['w_info']);
635
+ foreach ($param['w_long'] as $key => $w_long) {
636
+ $marker .= 'long'.$key.'="'.$w_long.'" lat'.$key.'="'.$param['w_lat'][$key].'" info'.$key.'="'.$param['w_info'][$key].'"';
637
+ }
638
+ $rep .= '<div id="wdform_field'.$id.'" type="type_map" class="wdform_field" style="display: table-cell;"><div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display: table-cell; vertical-align:top;"><span id="'.$id.'_element_labelform_id_temp" style="display: none;">'.$label.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" class="'.$param['w_class'].'" style="display: table-cell;"><input type="hidden" value="type_map" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><div id="'.$id.'_elementform_id_temp" zoom="'.$param['w_zoom'].'" center_x="'.$param['w_center_x'].'" center_y="'.$param['w_center_y'].'" style="width: '.$param['w_width'].'px; height: '.$param['w_height'].'px;" '.$marker.' '.$param['attributes'].'></div></div></div>';
639
+ break;
640
+ }
641
+ case 'type_submit_reset': {
642
+ $params_names = array('w_submit_title', 'w_reset_title', 'w_class', 'w_act');
643
+ $temp = $params;
644
+ foreach ($params_names as $params_name) {
645
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
646
+ $param[$params_name] = $temp[0];
647
+ $temp = $temp[1];
648
+ }
649
+ if ($temp) {
650
+ $temp = explode('*:*w_attr_name*:*', $temp);
651
+ $attrs = array_slice($temp, 0, count($temp) - 1);
652
+ foreach ($attrs as $attr) {
653
+ $param['attributes'] = $param['attributes'] . ' add_' . $attr;
654
+ }
655
+ }
656
+ $param['w_act'] = ($param['w_act'] == "false" ? 'style="display: none;"' : "");
657
+ $rep .= '<div id="wdform_field'.$id.'" type="type_submit_reset" class="wdform_field" style="display: table-cell;"><div align="left" id="'.$id.'_label_sectionform_id_temp" class="'.$param['w_class'].'" style="display: table-cell; vertical-align:top;"><span id="'.$id.'_element_labelform_id_temp" style="display: none;">type_submit_reset_'.$id.'</span></div><div align="left" id="'.$id.'_element_sectionform_id_temp" class="'.$param['w_class'].'" style="display: table-cell;"><input type="hidden" value="type_submit_reset" name="'.$id.'_typeform_id_temp" id="'.$id.'_typeform_id_temp"><button type="button" class="button-submit" id="'.$id.'_element_submitform_id_temp" value="'.$param['w_submit_title'].'" onclick="check_required(&quot;submit&quot;, &quot;form_id_temp&quot;);" '.$param['attributes'].'>'.$param['w_submit_title'].'</button><button type="button" class="button-reset" id="'.$id.'_element_resetform_id_temp" value="'.$param['w_reset_title'].'" onclick="check_required(&quot;reset&quot;);" '.$param['w_act'].' '.$param['attributes'].'>'.$param['w_reset_title'].'</button></div></div>';
658
+ break;
659
+ }
660
+ }
661
+ // Arrows.
662
+ switch ($type) {
663
+ case 'type_submit_reset': {
664
+ $rep = $rep.'<div id="wdform_arrows'.$id.'" class="wdform_arrows" style="display: table-cell;"><div id="left_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/left.png" title="' . __("Move the field to the left", 'contact_form_maker').'" onclick="left_row(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;left&quot;)" onmouseout="chnage_icons_src(this,&quot;left&quot;)"></div><div id="up_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/up.png" title="' . __("Move the field up", 'contact_form_maker') . '" onclick="up_row(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;up&quot;)" onmouseout="chnage_icons_src(this,&quot;up&quot;)"></div><div id="down_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/down.png" title="' . __("Move the field down", 'contact_form_maker') . '" onclick="down_row(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;down&quot;)" onmouseout="chnage_icons_src(this,&quot;down&quot;)"></div><div id="right_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/right.png" title="' . __("Move the field to the right", 'contact_form_maker') . '" onclick="right_row(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;right&quot;)" onmouseout="chnage_icons_src(this,&quot;right&quot;)"></div><div id="edit_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/edit.png" title="' . __("Edit the field", 'contact_form_maker') . '" onclick="edit(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;edit&quot;)" onmouseout="chnage_icons_src(this,&quot;edit&quot;)"></div></div>';
665
+ break;
666
+ }
667
+ case 'type_section_break': {
668
+ $rep = $rep.'<div id="wdform_arrows'.$id.'" class="wdform_arrows"><div id="edit_'.$id.'" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/edit.png" title="' . __("Edit the field", 'contact_form_maker') . '" onclick="edit(&quot;'.$id.'&quot;)"><span id="'.$id.'_element_labelform_id_temp" style="display: none;">custom_'.$id.'</span></div><div class="element_toolbar" style="color:red; vertical-align: top;">('.(__("section break", 'contact_form_maker')).')</div></div>';
669
+ break;
670
+ }
671
+ case 'type_captcha':
672
+ case 'type_recaptcha': {
673
+ $rep = $rep.'<div id="wdform_arrows'.$id.'" class="wdform_arrows" style="display: table-cell;"><div id="left_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/left.png" title="' . __("Move the field to the left", 'contact_form_maker') . '" onclick="left_row(&quot;'.$id.'&quot;)"></div><div id="up_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/up.png" title="' . __("Move the field up", 'contact_form_maker') . '" onclick="up_row(&quot;'.$id.'&quot;)"></div><div id="down_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/down.png" title="' . __("Move the field down", 'contact_form_maker') . '" onclick="down_row(&quot;'.$id.'&quot;)"></div><div id="right_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/right.png" title="' . __("Move the field to the right", 'contact_form_maker') . '" onclick="right_row(&quot;'.$id.'&quot;)"></div><div id="edit_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/edit.png" title="' . __("Edit the field", 'contact_form_maker') . '" onclick="edit(&quot;'.$id.'&quot;)"></div></div>';
674
+ break;
675
+ }
676
+ case 'type_editor': {
677
+ $rep = $rep.'<div id="wdform_arrows'.$id.'" class="wdform_arrows" style="display: table-cell;"><div id="left_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/left.png" title="' . __("Move the field to the left", 'contact_form_maker') . '" onclick="left_row(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;left&quot;)" onmouseout="chnage_icons_src(this,&quot;left&quot;)"></div><div id="up_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/up.png" title="' . __("Move the field up", 'contact_form_maker') . '" onclick="up_row(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;up&quot;)" onmouseout="chnage_icons_src(this,&quot;up&quot;)"></div><div id="down_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/down.png" title="' . __("Move the field down", 'contact_form_maker') . '" onclick="down_row(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;down&quot;)" onmouseout="chnage_icons_src(this,&quot;down&quot;)"></div><div id="right_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/right.png" title="' . __("Move the field to the right", 'contact_form_maker') . '" onclick="right_row(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;right&quot;)" onmouseout="chnage_icons_src(this,&quot;right&quot;)"></div><div id="edit_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/edit.png" title="' . __("Edit the field", 'contact_form_maker') . '" onclick="edit(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;edit&quot;)" onmouseout="chnage_icons_src(this,&quot;edit&quot;)"></div><div class="element_toolbar" style="color:red; vertical-align:top;">('.(__("custom", 'contact_form_maker')).' HTML)</div></div>';
678
+ break;
679
+ }
680
+ default: {
681
+ $rep = $rep.'<div id="wdform_arrows'.$id.'" class="wdform_arrows" style="display: table-cell;"><div id="left_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/left.png" title="' . __("Move the field to the left", 'contact_form_maker') . '" onclick="left_row(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;left&quot;)" onmouseout="chnage_icons_src(this,&quot;left&quot;)"></div><div id="up_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/up.png" title="' . __("Move the field up", 'contact_form_maker') . '" onclick="up_row(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;up&quot;)" onmouseout="chnage_icons_src(this,&quot;up&quot;)"></div><div id="down_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/down.png" title="' . __("Move the field down", 'contact_form_maker') . '" onclick="down_row(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;down&quot;)" onmouseout="chnage_icons_src(this,&quot;down&quot;)"></div><div id="right_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/right.png" title="' . __("Move the field to the right", 'contact_form_maker') . '" onclick="right_row(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;right&quot;)" onmouseout="chnage_icons_src(this,&quot;right&quot;)"></div><div id="edit_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/edit.png" title="' . __("Edit the field", 'contact_form_maker') . '" onclick="edit(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;edit&quot;)" onmouseout="chnage_icons_src(this,&quot;edit&quot;)"></div></div>';
682
+ break;
683
+ }
684
+ }
685
+ $form = str_replace('%' . $id . ' - ' . $labels[$ids_key] . '%', $rep, $form);
686
+ $form = str_replace('%' . $id . ' -' . $labels[$ids_key] . '%', $rep, $form);
687
+ }
688
+ }
689
+ $row->form_front = $form;
690
+ }
691
+ else {
692
+ $row = new stdClass();
693
+ $row->id = 0;
694
+ $row->title = '';
695
+ $row->mail = '';
696
+ $row->form_front = '';
697
+ $row->theme = 0;
698
+ $row->submit_text = '';
699
+ $row->url = '';
700
+ $row->submit_text_type = 0;
701
+ $row->script_mail = '';
702
+ $row->script_mail_user = '';
703
+ $row->counter = 0;
704
+ $row->published = 1;
705
+ $row->label_order = '';
706
+ $row->label_order_current = '';
707
+ $row->article_id = 0;
708
+ $row->public_key = '';
709
+ $row->private_key = '';
710
+ $row->recaptcha_theme = '';
711
+ $row->form_fields = '';
712
+ $row->savedb = 1;
713
+ $row->sendemail = 1;
714
+ $row->requiredmark = '*';
715
+ $row->mail_from = '';
716
+ $row->mail_from_name = '';
717
+ $row->reply_to = '';
718
+ $row->send_to = '';
719
+ $row->autogen_layout = 1;
720
+ $row->custom_front = '';
721
+ $row->mail_from_user = '';
722
+ $row->mail_from_name_user = '';
723
+ $row->reply_to_user = '';
724
+ $row->disabled_fields = '';
725
+ $row->mail_cc = '';
726
+ $row->mail_cc_user = '';
727
+ $row->mail_bcc = '';
728
+ $row->mail_bcc_user = '';
729
+ $row->mail_subject = '';
730
+ $row->mail_subject_user = '';
731
+ $row->mail_mode = 1;
732
+ $row->mail_mode_user = 1;
733
+ $row->wpmail = 1;
734
+ $row->sortable = 1;
735
+ }
736
+ return $row;
737
+ }
738
+
739
+ public function get_theme_rows_data() {
740
+ global $wpdb;
741
+ $rows = $wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "contactformmaker_themes ORDER BY title");
742
+ return $rows;
743
+ }
744
+
745
+ public function page_nav() {
746
+ global $wpdb;
747
+ $where = ((isset($_POST['search_value']) && (esc_html($_POST['search_value']) != '')) ? 'WHERE title LIKE "%' . esc_html($_POST['search_value']) . '%"' : '');
748
+ $query = "SELECT COUNT(*) FROM " . $wpdb->prefix . "contactformmaker " . $where;
749
+ $total = $wpdb->get_var($query);
750
+ $page_nav['total'] = $total;
751
+ if (isset($_POST['page_number']) && $_POST['page_number']) {
752
+ $limit = ((int) $_POST['page_number'] - 1) * 20;
753
+ }
754
+ else {
755
+ $limit = 0;
756
+ }
757
+ $page_nav['limit'] = (int) ($limit / 20 + 1);
758
+ return $page_nav;
759
+ }
760
+ ////////////////////////////////////////////////////////////////////////////////////////
761
+ // Getters & Setters //
762
+ ////////////////////////////////////////////////////////////////////////////////////////
763
+ ////////////////////////////////////////////////////////////////////////////////////////
764
+ // Private Methods //
765
+ ////////////////////////////////////////////////////////////////////////////////////////
766
+ ////////////////////////////////////////////////////////////////////////////////////////
767
+ // Listeners //
768
+ ////////////////////////////////////////////////////////////////////////////////////////
769
  }
admin/models/CFMModelThemes_cfm.php CHANGED
@@ -1,31 +1,31 @@
1
- <?php
2
-
3
- class CFMModelThemes_cfm {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
- ////////////////////////////////////////////////////////////////////////////////////////
14
- // Constructor & Destructor //
15
- ////////////////////////////////////////////////////////////////////////////////////////
16
- public function __construct() {
17
- }
18
- ////////////////////////////////////////////////////////////////////////////////////////
19
- // Public Methods //
20
- ////////////////////////////////////////////////////////////////////////////////////////
21
-
22
- ////////////////////////////////////////////////////////////////////////////////////////
23
- // Getters & Setters //
24
- ////////////////////////////////////////////////////////////////////////////////////////
25
- ////////////////////////////////////////////////////////////////////////////////////////
26
- // Private Methods //
27
- ////////////////////////////////////////////////////////////////////////////////////////
28
- ////////////////////////////////////////////////////////////////////////////////////////
29
- // Listeners //
30
- ////////////////////////////////////////////////////////////////////////////////////////
31
  }
1
+ <?php
2
+
3
+ class CFMModelThemes_cfm {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ ////////////////////////////////////////////////////////////////////////////////////////
14
+ // Constructor & Destructor //
15
+ ////////////////////////////////////////////////////////////////////////////////////////
16
+ public function __construct() {
17
+ }
18
+ ////////////////////////////////////////////////////////////////////////////////////////
19
+ // Public Methods //
20
+ ////////////////////////////////////////////////////////////////////////////////////////
21
+
22
+ ////////////////////////////////////////////////////////////////////////////////////////
23
+ // Getters & Setters //
24
+ ////////////////////////////////////////////////////////////////////////////////////////
25
+ ////////////////////////////////////////////////////////////////////////////////////////
26
+ // Private Methods //
27
+ ////////////////////////////////////////////////////////////////////////////////////////
28
+ ////////////////////////////////////////////////////////////////////////////////////////
29
+ // Listeners //
30
+ ////////////////////////////////////////////////////////////////////////////////////////
31
  }
admin/models/CFMModelUninstall_cfm.php CHANGED
@@ -1,39 +1,39 @@
1
- <?php
2
-
3
- class CFMModelUninstall_cfm {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
- ////////////////////////////////////////////////////////////////////////////////////////
14
- // Constructor & Destructor //
15
- ////////////////////////////////////////////////////////////////////////////////////////
16
- public function __construct() {
17
- }
18
- ////////////////////////////////////////////////////////////////////////////////////////
19
- // Public Methods //
20
- ////////////////////////////////////////////////////////////////////////////////////////
21
- public function delete_db_tables() {
22
- global $wpdb;
23
- $wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "contactformmaker");
24
- $wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "contactformmaker_submits");
25
- $wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "contactformmaker_themes");
26
- $wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "contactformmaker_views");
27
- $wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "contactformmaker_blocked");
28
- delete_option("wd_contact_form_maker_version");
29
- }
30
- ////////////////////////////////////////////////////////////////////////////////////////
31
- // Getters & Setters //
32
- ////////////////////////////////////////////////////////////////////////////////////////
33
- ////////////////////////////////////////////////////////////////////////////////////////
34
- // Private Methods //
35
- ////////////////////////////////////////////////////////////////////////////////////////
36
- ////////////////////////////////////////////////////////////////////////////////////////
37
- // Listeners //
38
- ////////////////////////////////////////////////////////////////////////////////////////
39
  }
1
+ <?php
2
+
3
+ class CFMModelUninstall_cfm {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ ////////////////////////////////////////////////////////////////////////////////////////
14
+ // Constructor & Destructor //
15
+ ////////////////////////////////////////////////////////////////////////////////////////
16
+ public function __construct() {
17
+ }
18
+ ////////////////////////////////////////////////////////////////////////////////////////
19
+ // Public Methods //
20
+ ////////////////////////////////////////////////////////////////////////////////////////
21
+ public function delete_db_tables() {
22
+ global $wpdb;
23
+ $wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "contactformmaker");
24
+ $wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "contactformmaker_submits");
25
+ $wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "contactformmaker_themes");
26
+ $wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "contactformmaker_views");
27
+ $wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "contactformmaker_blocked");
28
+ delete_option("wd_contact_form_maker_version");
29
+ }
30
+ ////////////////////////////////////////////////////////////////////////////////////////
31
+ // Getters & Setters //
32
+ ////////////////////////////////////////////////////////////////////////////////////////
33
+ ////////////////////////////////////////////////////////////////////////////////////////
34
+ // Private Methods //
35
+ ////////////////////////////////////////////////////////////////////////////////////////
36
+ ////////////////////////////////////////////////////////////////////////////////////////
37
+ // Listeners //
38
+ ////////////////////////////////////////////////////////////////////////////////////////
39
  }
admin/models/CFMModelWidget.php CHANGED
@@ -1,37 +1,37 @@
1
- <?php
2
-
3
- class CFMModelWidget {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
- ////////////////////////////////////////////////////////////////////////////////////////
14
- // Constructor & Destructor //
15
- ////////////////////////////////////////////////////////////////////////////////////////
16
- public function __construct() {
17
- }
18
- ////////////////////////////////////////////////////////////////////////////////////////
19
- // Public Methods //
20
- ////////////////////////////////////////////////////////////////////////////////////////
21
-
22
- public function get_gallery_rows_data() {
23
- global $wpdb;
24
- $rows = $wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "contactformmaker order by `title`");
25
- return $rows;
26
- }
27
-
28
- ////////////////////////////////////////////////////////////////////////////////////////
29
- // Getters & Setters //
30
- ////////////////////////////////////////////////////////////////////////////////////////
31
- ////////////////////////////////////////////////////////////////////////////////////////
32
- // Private Methods //
33
- ////////////////////////////////////////////////////////////////////////////////////////
34
- ////////////////////////////////////////////////////////////////////////////////////////
35
- // Listeners //
36
- ////////////////////////////////////////////////////////////////////////////////////////
37
  }
1
+ <?php
2
+
3
+ class CFMModelWidget {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ ////////////////////////////////////////////////////////////////////////////////////////
14
+ // Constructor & Destructor //
15
+ ////////////////////////////////////////////////////////////////////////////////////////
16
+ public function __construct() {
17
+ }
18
+ ////////////////////////////////////////////////////////////////////////////////////////
19
+ // Public Methods //
20
+ ////////////////////////////////////////////////////////////////////////////////////////
21
+
22
+ public function get_gallery_rows_data() {
23
+ global $wpdb;
24
+ $rows = $wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "contactformmaker order by `title`");
25
+ return $rows;
26
+ }
27
+
28
+ ////////////////////////////////////////////////////////////////////////////////////////
29
+ // Getters & Setters //
30
+ ////////////////////////////////////////////////////////////////////////////////////////
31
+ ////////////////////////////////////////////////////////////////////////////////////////
32
+ // Private Methods //
33
+ ////////////////////////////////////////////////////////////////////////////////////////
34
+ ////////////////////////////////////////////////////////////////////////////////////////
35
+ // Listeners //
36
+ ////////////////////////////////////////////////////////////////////////////////////////
37
  }
admin/views/CFMViewBlocked_ips_cfm.php CHANGED
@@ -1,171 +1,171 @@
1
- <?php
2
-
3
- class CFMViewBlocked_ips_cfm {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
- private $model;
14
-
15
- ////////////////////////////////////////////////////////////////////////////////////////
16
- // Constructor & Destructor //
17
- ////////////////////////////////////////////////////////////////////////////////////////
18
- public function __construct($model) {
19
- $this->model = $model;
20
- }
21
-
22
- ////////////////////////////////////////////////////////////////////////////////////////
23
- // Public Methods //
24
- ////////////////////////////////////////////////////////////////////////////////////////
25
- public function display() {
26
- $rows_data = $this->model->get_rows_data();
27
- $page_nav = $this->model->page_nav();
28
- $search_value = ((isset($_POST['search_value'])) ? esc_html(stripslashes($_POST['search_value'])) : '');
29
- $asc_or_desc = ((isset($_POST['asc_or_desc'])) ? esc_html(stripslashes($_POST['asc_or_desc'])) : 'desc');
30
- $order_by = (isset($_POST['order_by']) ? esc_html(stripslashes($_POST['order_by'])) : 'id');
31
- $order_class = 'manage-column column-title sorted ' . $asc_or_desc;
32
- $ids_string = '';
33
- ?>
34
- <div id="fm_blocked_ips_message" style="width: 99%; display: none;"></div>
35
- <div class="fm-user-manual">
36
- <?php echo __("This section allows you to block IPs.", "contact_form_maker"); ?>
37
- <a style="color: blue; text-decoration: none;" target="_blank" href="http://web-dorado.com/wordpress-contact-form-builder-guide-6.html"><?php echo __("Read More in User Manual","contact_form_maker"); ?></a>
38
- </div>
39
- <div class="fm-upgrade-pro">
40
- <a target="_blank" href="http://web-dorado.com/files/fromContactFormBuilder.php">
41
- <div class="fm-upgrade-img">
42
- UPGRADE TO PRO VERSION
43
- <span></span>
44
- </div>
45
- </a>
46
- </div>
47
- <div class="fm-clear"></div>
48
- <form onkeypress="spider_doNothing(event)" class="wrap" id="blocked_ips" method="post" action="admin.php?page=blocked_ips_cfm" style="width:99%;">
49
- <?php wp_nonce_field('nonce_cfm', 'nonce_cfm'); ?>
50
- <div class="fm-page-banner blocked-ips-banner">
51
- <div class="block_icon">
52
- </div>
53
- <div class="fm-logo-title"><?php echo __("Blocked IPs", "contact_form_maker"); ?></div>
54
- <div class="fm-page-actions">
55
- <button class="fm-button save-button small" onclick="spider_set_input_value('task', 'save_all');">
56
- <span></span>
57
- <?php echo __("Save", "contact_form_maker"); ?>
58
- </button>
59
- <button class="fm-button delete-button small" onclick="if (confirm('<?php echo addslashes(__('Do you want to unblock selected IPs?', 'contact_form_maker')); ?>')) {
60
- spider_set_input_value('task', 'delete_all');
61
- } else {
62
- return false;
63
- }">
64
- <span></span>
65
- <?php echo __("Delete", "contact_form_maker"); ?>
66
- </button>
67
- </div>
68
- </div>
69
- <div class="fm-clear"></div>
70
- <div class="tablenav top">
71
- <?php
72
- WDW_CFM_Library::search('IP', $search_value, 'blocked_ips');
73
- WDW_CFM_Library::html_page_nav($page_nav['total'], $page_nav['limit'], 'blocked_ips');
74
- ?>
75
- </div>
76
- <table class="wp-list-table widefat fixed pages fm-block-ip">
77
- <thead>
78
- <tr>
79
- <th class="manage-column column-cb check-column table_small_col"><input id="check_all" type="checkbox" style="margin: 0;" /></th>
80
- <th class="table_small_col <?php if ($order_by == 'id') {echo $order_class;} ?>">
81
- <a onclick="spider_set_input_value('task', '');
82
- spider_set_input_value('order_by', 'id');
83
- spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'id') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
84
- spider_form_submit(event, 'blocked_ips')" href="">
85
- <span>ID</span><span class="sorting-indicator"></span></th>
86
- </a>
87
- <th class="<?php if ($order_by == 'ip') {echo $order_class;} ?>">
88
- <a onclick="spider_set_input_value('task', '');
89
- spider_set_input_value('order_by', 'ip');
90
- spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'ip') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
91
- spider_form_submit(event, 'blocked_ips')" href="">
92
- <span>IP</span><span class="sorting-indicator"></span>
93
- </a>
94
- </th>
95
- <th class="table_small_col"><?php echo __("Edit", "contact_form_maker"); ?></th>
96
- <th class="table_small_col"><?php echo __("Delete", "contact_form_maker"); ?></th>
97
- </tr>
98
- <tr id="tr" style="background-color: #f9f9f9;">
99
- <th></th>
100
- <th></th>
101
- <th>
102
- <input type="text" class="input_th" id="ip" name="ip" onkeypress="return spider_check_isnum(event)">
103
- <button class="fm-button add-button small" onclick="if (spider_check_required('ip', 'IP')) {return false;}
104
- spider_set_input_value('task', 'save');
105
- spider_set_input_value('current_id', '');
106
- spider_form_submit(event, 'blocked_ips')">
107
- <?php echo __("Add IP", "contact_form_maker"); ?>
108
- <span></span>
109
- </button>
110
- </th>
111
- <th>
112
-
113
- </th>
114
- <th></th>
115
- </tr>
116
- </thead>
117
- <tbody id="tbody_arr">
118
- <?php
119
- if ($rows_data) {
120
- foreach ($rows_data as $row_data) {
121
- $alternate = (!isset($alternate) || $alternate == 'class="alternate"') ? '' : 'class="alternate"';
122
- ?>
123
- <tr id="tr_<?php echo $row_data->id; ?>" <?php echo $alternate; ?>>
124
- <td class="table_small_col check-column" id="td_check_<?php echo $row_data->id; ?>" >
125
- <input id="check_<?php echo $row_data->id; ?>" name="check_<?php echo $row_data->id; ?>" type="checkbox" />
126
- </td>
127
- <td class="table_small_col" id="td_id_<?php echo $row_data->id; ?>" ><?php echo $row_data->id; ?></td>
128
- <td id="td_ip_<?php echo $row_data->id; ?>" >
129
- <a class="pointer" id="ip<?php echo $row_data->id; ?>"
130
- onclick="spider_edit_ip(<?php echo $row_data->id; ?>)"
131
- title="Edit"><?php echo $row_data->ip; ?></a>
132
- </td>
133
- <td class="table_small_col" id="td_edit_<?php echo $row_data->id; ?>">
134
- <button class="fm-icon edit-icon" onclick="spider_edit_ip(<?php echo $row_data->id; ?>)">
135
- <span></span>
136
- </button>
137
- </td>
138
- <td class="table_small_col" id="td_delete_<?php echo $row_data->id; ?>">
139
- <button class="fm-icon delete-icon" onclick="spider_set_input_value('task', 'delete');
140
- spider_set_input_value('current_id', <?php echo $row_data->id; ?>);
141
- spider_form_submit(event, 'blocked_ips')">
142
- <span></span>
143
- </button>
144
- </td>
145
- </tr>
146
- <?php
147
- $ids_string .= $row_data->id . ',';
148
- }
149
- }
150
- ?>
151
- </tbody>
152
- </table>
153
- <input id="task" name="task" type="hidden" value="" />
154
- <input id="current_id" name="current_id" type="hidden" value="" />
155
- <input id="ids_string" name="ids_string" type="hidden" value="<?php echo $ids_string; ?>" />
156
- <input id="asc_or_desc" name="asc_or_desc" type="hidden" value="<?php echo $asc_or_desc; ?>" />
157
- <input id="order_by" name="order_by" type="hidden" value="<?php echo $order_by; ?>" />
158
- </form>
159
- <?php
160
- }
161
-
162
- ////////////////////////////////////////////////////////////////////////////////////////
163
- // Getters & Setters //
164
- ////////////////////////////////////////////////////////////////////////////////////////
165
- ////////////////////////////////////////////////////////////////////////////////////////
166
- // Private Methods //
167
- ////////////////////////////////////////////////////////////////////////////////////////
168
- ////////////////////////////////////////////////////////////////////////////////////////
169
- // Listeners //
170
- ////////////////////////////////////////////////////////////////////////////////////////
171
  }
1
+ <?php
2
+
3
+ class CFMViewBlocked_ips_cfm {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ private $model;
14
+
15
+ ////////////////////////////////////////////////////////////////////////////////////////
16
+ // Constructor & Destructor //
17
+ ////////////////////////////////////////////////////////////////////////////////////////
18
+ public function __construct($model) {
19
+ $this->model = $model;
20
+ }
21
+
22
+ ////////////////////////////////////////////////////////////////////////////////////////
23
+ // Public Methods //
24
+ ////////////////////////////////////////////////////////////////////////////////////////
25
+ public function display() {
26
+ $rows_data = $this->model->get_rows_data();
27
+ $page_nav = $this->model->page_nav();
28
+ $search_value = ((isset($_POST['search_value'])) ? esc_html(stripslashes($_POST['search_value'])) : '');
29
+ $asc_or_desc = ((isset($_POST['asc_or_desc'])) ? esc_html(stripslashes($_POST['asc_or_desc'])) : 'desc');
30
+ $order_by = (isset($_POST['order_by']) ? esc_html(stripslashes($_POST['order_by'])) : 'id');
31
+ $order_class = 'manage-column column-title sorted ' . $asc_or_desc;
32
+ $ids_string = '';
33
+ ?>
34
+ <div id="fm_blocked_ips_message" style="width: 99%; display: none;"></div>
35
+ <div class="fm-user-manual">
36
+ <?php echo __("This section allows you to block IPs.", "contact_form_maker"); ?>
37
+ <a style="color: blue; text-decoration: none;" target="_blank" href="http://web-dorado.com/wordpress-contact-form-builder-guide-6.html"><?php echo __("Read More in User Manual","contact_form_maker"); ?></a>
38
+ </div>
39
+ <div class="fm-upgrade-pro">
40
+ <a target="_blank" href="http://web-dorado.com/files/fromContactFormBuilder.php">
41
+ <div class="fm-upgrade-img">
42
+ UPGRADE TO PRO VERSION
43
+ <span></span>
44
+ </div>
45
+ </a>
46
+ </div>
47
+ <div class="fm-clear"></div>
48
+ <form onkeypress="spider_doNothing(event)" class="wrap" id="blocked_ips" method="post" action="admin.php?page=blocked_ips_cfm" style="width:99%;">
49
+ <?php wp_nonce_field('nonce_cfm', 'nonce_cfm'); ?>
50
+ <div class="fm-page-banner blocked-ips-banner">
51
+ <div class="block_icon">
52
+ </div>
53
+ <div class="fm-logo-title"><?php echo __("Blocked IPs", "contact_form_maker"); ?></div>
54
+ <div class="fm-page-actions">
55
+ <button class="fm-button save-button small" onclick="spider_set_input_value('task', 'save_all');">
56
+ <span></span>
57
+ <?php echo __("Save", "contact_form_maker"); ?>
58
+ </button>
59
+ <button class="fm-button delete-button small" onclick="if (confirm('<?php echo addslashes(__('Do you want to unblock selected IPs?', 'contact_form_maker')); ?>')) {
60
+ spider_set_input_value('task', 'delete_all');
61
+ } else {
62
+ return false;
63
+ }">
64
+ <span></span>
65
+ <?php echo __("Delete", "contact_form_maker"); ?>
66
+ </button>
67
+ </div>
68
+ </div>
69
+ <div class="fm-clear"></div>
70
+ <div class="tablenav top">
71
+ <?php
72
+ WDW_CFM_Library::search('IP', $search_value, 'blocked_ips');
73
+ WDW_CFM_Library::html_page_nav($page_nav['total'], $page_nav['limit'], 'blocked_ips');
74
+ ?>
75
+ </div>
76
+ <table class="wp-list-table widefat fixed pages fm-block-ip">
77
+ <thead>
78
+ <tr>
79
+ <th class="manage-column column-cb check-column table_small_col"><input id="check_all" type="checkbox" style="margin: 0;" /></th>
80
+ <th class="table_small_col <?php if ($order_by == 'id') {echo $order_class;} ?>">
81
+ <a onclick="spider_set_input_value('task', '');
82
+ spider_set_input_value('order_by', 'id');
83
+ spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'id') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
84
+ spider_form_submit(event, 'blocked_ips')" href="">
85
+ <span>ID</span><span class="sorting-indicator"></span></th>
86
+ </a>
87
+ <th class="<?php if ($order_by == 'ip') {echo $order_class;} ?>">
88
+ <a onclick="spider_set_input_value('task', '');
89
+ spider_set_input_value('order_by', 'ip');
90
+ spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'ip') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
91
+ spider_form_submit(event, 'blocked_ips')" href="">
92
+ <span>IP</span><span class="sorting-indicator"></span>
93
+ </a>
94
+ </th>
95
+ <th class="table_small_col"><?php echo __("Edit", "contact_form_maker"); ?></th>
96
+ <th class="table_small_col"><?php echo __("Delete", "contact_form_maker"); ?></th>
97
+ </tr>
98
+ <tr id="tr" style="background-color: #f9f9f9;">
99
+ <th></th>
100
+ <th></th>
101
+ <th>
102
+ <input type="text" class="input_th" id="ip" name="ip" onkeypress="return spider_check_isnum(event)">
103
+ <button class="fm-button add-button small" onclick="if (spider_check_required('ip', 'IP')) {return false;}
104
+ spider_set_input_value('task', 'save');
105
+ spider_set_input_value('current_id', '');
106
+ spider_form_submit(event, 'blocked_ips')">
107
+ <?php echo __("Add IP", "contact_form_maker"); ?>
108
+ <span></span>
109
+ </button>
110
+ </th>
111
+ <th>
112
+
113
+ </th>
114
+ <th></th>
115
+ </tr>
116
+ </thead>
117
+ <tbody id="tbody_arr">
118
+ <?php
119
+ if ($rows_data) {
120
+ foreach ($rows_data as $row_data) {
121
+ $alternate = (!isset($alternate) || $alternate == 'class="alternate"') ? '' : 'class="alternate"';
122
+ ?>
123
+ <tr id="tr_<?php echo $row_data->id; ?>" <?php echo $alternate; ?>>
124
+ <td class="table_small_col check-column" id="td_check_<?php echo $row_data->id; ?>" >
125
+ <input id="check_<?php echo $row_data->id; ?>" name="check_<?php echo $row_data->id; ?>" type="checkbox" />
126
+ </td>
127
+ <td class="table_small_col" id="td_id_<?php echo $row_data->id; ?>" ><?php echo $row_data->id; ?></td>
128
+ <td id="td_ip_<?php echo $row_data->id; ?>" >
129
+ <a class="pointer" id="ip<?php echo $row_data->id; ?>"
130
+ onclick="spider_edit_ip(<?php echo $row_data->id; ?>)"
131
+ title="Edit"><?php echo $row_data->ip; ?></a>
132
+ </td>
133
+ <td class="table_small_col" id="td_edit_<?php echo $row_data->id; ?>">
134
+ <button class="fm-icon edit-icon" onclick="spider_edit_ip(<?php echo $row_data->id; ?>)">
135
+ <span></span>
136
+ </button>
137
+ </td>
138
+ <td class="table_small_col" id="td_delete_<?php echo $row_data->id; ?>">
139
+ <button class="fm-icon delete-icon" onclick="spider_set_input_value('task', 'delete');
140
+ spider_set_input_value('current_id', <?php echo $row_data->id; ?>);
141
+ spider_form_submit(event, 'blocked_ips')">
142
+ <span></span>
143
+ </button>
144
+ </td>
145
+ </tr>
146
+ <?php
147
+ $ids_string .= $row_data->id . ',';
148
+ }
149
+ }
150
+ ?>
151
+ </tbody>
152
+ </table>
153
+ <input id="task" name="task" type="hidden" value="" />
154
+ <input id="current_id" name="current_id" type="hidden" value="" />
155
+ <input id="ids_string" name="ids_string" type="hidden" value="<?php echo $ids_string; ?>" />
156
+ <input id="asc_or_desc" name="asc_or_desc" type="hidden" value="<?php echo $asc_or_desc; ?>" />
157
+ <input id="order_by" name="order_by" type="hidden" value="<?php echo $order_by; ?>" />
158
+ </form>
159
+ <?php
160
+ }
161
+
162
+ ////////////////////////////////////////////////////////////////////////////////////////
163
+ // Getters & Setters //
164
+ ////////////////////////////////////////////////////////////////////////////////////////
165
+ ////////////////////////////////////////////////////////////////////////////////////////
166
+ // Private Methods //
167
+ ////////////////////////////////////////////////////////////////////////////////////////
168
+ ////////////////////////////////////////////////////////////////////////////////////////
169
+ // Listeners //
170
+ ////////////////////////////////////////////////////////////////////////////////////////
171
  }
admin/views/CFMViewCFMShortcode.php CHANGED
@@ -1,112 +1,112 @@
1
- <?php
2
-
3
- class CFMViewCFMShortcode {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
- private $model;
14
-
15
- ////////////////////////////////////////////////////////////////////////////////////////
16
- // Constructor & Destructor //
17
- ////////////////////////////////////////////////////////////////////////////////////////
18
- public function __construct($model) {
19
- $this->model = $model;
20
- }
21
- ////////////////////////////////////////////////////////////////////////////////////////
22
- // Public Methods //
23
- ////////////////////////////////////////////////////////////////////////////////////////
24
- public function display() {
25
- $rows = $this->model->get_form_data();
26
- ?>
27
- <html xmlns="http://www.w3.org/1999/xhtml">
28
- <head>
29
- <title>Contact Form Builder</title>
30
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
31
- <script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script>
32
- <script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/utils/mctabs.js"></script>
33
- <script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/utils/form_utils.js"></script>
34
-
35
- <?php
36
- wp_print_scripts('jquery');
37
- ?>
38
- <base target="_self">
39
- </head>
40
- <body id="link" onLoad="tinyMCEPopup.executeOnLoad('init();');document.body.style.display='';" dir="ltr" class="forceColors">
41
- <div class="tabs" role="tablist" tabindex="-1">
42
- <ul>
43
- <li id="display_tab" class="current" role="tab" tabindex="0">
44
- <span>
45
- <a href="javascript:mcTabs.displayTab('display_tab','display_panel');" onMouseDown="return false;" tabindex="-1">Contact Form Builder</a>
46
- </span>
47
- </li>
48
- </ul>
49
- </div>
50
- <style>
51
- .panel_wrapper {
52
- height: 170px !important;
53
- }
54
- </style>
55
- <div class="panel_wrapper">
56
- <div id="display_panel" class="panel current">
57
- <table>
58
- <tr>
59
- <td style="vertical-align: middle; text-align: left;"><?php echo __("Select a Form", "contact_form_maker"); ?></td>
60
- <td style="vertical-align: middle; text-align: left;">
61
- <select name="form_maker_id" id="form_maker_id" style="width: 230px; text-align: left;">
62
- <option value="- Select Form -" selected="selected">-<?php echo __("Select a Form", "contact_form_maker"); ?>-</option>
63
- <?php
64
- foreach ($rows as $row) {
65
- ?>
66
- <option value="<?php echo $row->id; ?>"><?php echo $row->title; ?></option>
67
- <?php
68
- }
69
- ?>
70
- </select>
71
- </td>
72
- </tr>
73
- </table>
74
- </div>
75
- </div>
76
- <div class="mceActionPanel">
77
- <div style="float: left;">
78
- <input type="button" id="cancel" name="cancel" value="<?php echo __('Cancel', 'contact_form_maker'); ?>" onClick="tinyMCEPopup.close();"/>
79
- </div>
80
- <div style="float: right;">
81
- <input type="submit" id="insert" name="insert" value="<?php echo __('Insert', 'contact_form_maker'); ?>" onClick="form_maker_insert_shortcode();"/>
82
- </div>
83
- </div>
84
- <script type="text/javascript">
85
- function form_maker_insert_shortcode() {
86
- if (document.getElementById('form_maker_id').value == '- Select Form -') {
87
- tinyMCEPopup.close();
88
- }
89
- else {
90
- var tagtext;
91
- tagtext = '[Contact_Form_Builder id="' + document.getElementById('form_maker_id').value + '"]';
92
- window.tinyMCE.execCommand('mceInsertContent', false, tagtext);
93
- tinyMCEPopup.close();
94
- }
95
- }
96
- </script>
97
- </body>
98
- </html>
99
- <?php
100
- die();
101
- }
102
-
103
- ////////////////////////////////////////////////////////////////////////////////////////
104
- // Getters & Setters //
105
- ////////////////////////////////////////////////////////////////////////////////////////
106
- ////////////////////////////////////////////////////////////////////////////////////////
107
- // Private Methods //
108
- ////////////////////////////////////////////////////////////////////////////////////////
109
- ////////////////////////////////////////////////////////////////////////////////////////
110
- // Listeners //
111
- ////////////////////////////////////////////////////////////////////////////////////////
112
  }
1
+ <?php
2
+
3
+ class CFMViewCFMShortcode {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ private $model;
14
+
15
+ ////////////////////////////////////////////////////////////////////////////////////////
16
+ // Constructor & Destructor //
17
+ ////////////////////////////////////////////////////////////////////////////////////////
18
+ public function __construct($model) {
19
+ $this->model = $model;
20
+ }
21
+ ////////////////////////////////////////////////////////////////////////////////////////
22
+ // Public Methods //
23
+ ////////////////////////////////////////////////////////////////////////////////////////
24
+ public function display() {
25
+ $rows = $this->model->get_form_data();
26
+ ?>
27
+ <html xmlns="http://www.w3.org/1999/xhtml">
28
+ <head>
29
+ <title>Contact Form Builder</title>
30
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
31
+ <script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script>
32
+ <script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/utils/mctabs.js"></script>
33
+ <script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/utils/form_utils.js"></script>
34
+
35
+ <?php
36
+ wp_print_scripts('jquery');
37
+ ?>
38
+ <base target="_self">
39
+ </head>
40
+ <body id="link" onLoad="tinyMCEPopup.executeOnLoad('init();');document.body.style.display='';" dir="ltr" class="forceColors">
41
+ <div class="tabs" role="tablist" tabindex="-1">
42
+ <ul>
43
+ <li id="display_tab" class="current" role="tab" tabindex="0">
44
+ <span>
45
+ <a href="javascript:mcTabs.displayTab('display_tab','display_panel');" onMouseDown="return false;" tabindex="-1">Contact Form Builder</a>
46
+ </span>
47
+ </li>
48
+ </ul>
49
+ </div>
50
+ <style>
51
+ .panel_wrapper {
52
+ height: 170px !important;
53
+ }
54
+ </style>
55
+ <div class="panel_wrapper">
56
+ <div id="display_panel" class="panel current">
57
+ <table>
58
+ <tr>
59
+ <td style="vertical-align: middle; text-align: left;"><?php echo __("Select a Form", "contact_form_maker"); ?></td>
60
+ <td style="vertical-align: middle; text-align: left;">
61
+ <select name="form_maker_id" id="form_maker_id" style="width: 230px; text-align: left;">
62
+ <option value="- Select Form -" selected="selected">-<?php echo __("Select a Form", "contact_form_maker"); ?>-</option>
63
+ <?php
64
+ foreach ($rows as $row) {
65
+ ?>
66
+ <option value="<?php echo $row->id; ?>"><?php echo $row->title; ?></option>
67
+ <?php
68
+ }
69
+ ?>
70
+ </select>
71
+ </td>
72
+ </tr>
73
+ </table>
74
+ </div>
75
+ </div>
76
+ <div class="mceActionPanel">
77
+ <div style="float: left;">
78
+ <input type="button" id="cancel" name="cancel" value="<?php echo __('Cancel', 'contact_form_maker'); ?>" onClick="tinyMCEPopup.close();"/>
79
+ </div>
80
+ <div style="float: right;">
81
+ <input type="submit" id="insert" name="insert" value="<?php echo __('Insert', 'contact_form_maker'); ?>" onClick="form_maker_insert_shortcode();"/>
82
+ </div>
83
+ </div>
84
+ <script type="text/javascript">
85
+ function form_maker_insert_shortcode() {
86
+ if (document.getElementById('form_maker_id').value == '- Select Form -') {
87
+ tinyMCEPopup.close();
88
+ }
89
+ else {
90
+ var tagtext;
91
+ tagtext = '[Contact_Form_Builder id="' + document.getElementById('form_maker_id').value + '"]';
92
+ window.tinyMCE.execCommand('mceInsertContent', false, tagtext);
93
+ tinyMCEPopup.close();
94
+ }
95
+ }
96
+ </script>
97
+ </body>
98
+ </html>
99
+ <?php
100
+ die();
101
+ }
102
+
103
+ ////////////////////////////////////////////////////////////////////////////////////////
104
+ // Getters & Setters //
105
+ ////////////////////////////////////////////////////////////////////////////////////////
106
+ ////////////////////////////////////////////////////////////////////////////////////////
107
+ // Private Methods //
108
+ ////////////////////////////////////////////////////////////////////////////////////////
109
+ ////////////////////////////////////////////////////////////////////////////////////////
110
+ // Listeners //
111
+ ////////////////////////////////////////////////////////////////////////////////////////
112
  }
admin/views/CFMViewContactFormMakerPreview.php CHANGED
@@ -1,55 +1,55 @@
1
- <?php
2
-
3
- class CFMViewContactFormMakerPreview {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
- private $model;
14
-
15
-
16
- ////////////////////////////////////////////////////////////////////////////////////////
17
- // Constructor & Destructor //
18
- ////////////////////////////////////////////////////////////////////////////////////////
19
- public function __construct($model) {
20
- $this->model = $model;
21
- }
22
- ////////////////////////////////////////////////////////////////////////////////////////
23
- // Public Methods //
24
- ////////////////////////////////////////////////////////////////////////////////////////
25
- public function display() {
26
- if (isset($_GET['form_id']) && isset($_GET['test_theme'])) {
27
- wp_print_scripts('jquery');
28
- wp_print_scripts('jquery-ui-widget');
29
- wp_print_scripts('jquery-effects-shake');
30
- ?>
31
- <script src="https://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script>
32
- <script src="<?php echo WD_CFM_URL . '/js/if_gmap_front_end.js'; ?>" type="text/javascript"></script>
33
- <script src="<?php echo WD_CFM_URL . '/js/cfm_main_front_end.js'; ?>" type="text/javascript"></script>
34
- <link media="all" type="text/css" href="<?php echo WD_CFM_URL . '/css/jquery-ui-1.10.3.custom.css'; ?>" rel="stylesheet">
35
- <link media="all" type="text/css" href="<?php echo WD_CFM_URL . '/css/contact_form_maker_frontend.css'; ?>" rel="stylesheet">
36
- <?php
37
- $form_id = esc_html(stripslashes($_GET['form_id']));
38
- $theme_id = esc_html(stripslashes($_GET['test_theme']));
39
- require_once (WD_CFM_DIR . '/frontend/controllers/CFMControllerForm_maker.php');
40
- $controller = new CFMControllerForm_maker();
41
- echo $controller->execute($form_id, $theme_id);
42
- }
43
- die();
44
- }
45
-
46
- ////////////////////////////////////////////////////////////////////////////////////////
47
- // Getters & Setters //
48
- ////////////////////////////////////////////////////////////////////////////////////////
49
- ////////////////////////////////////////////////////////////////////////////////////////
50
- // Private Methods //
51
- ////////////////////////////////////////////////////////////////////////////////////////
52
- ////////////////////////////////////////////////////////////////////////////////////////
53
- // Listeners //
54
- ////////////////////////////////////////////////////////////////////////////////////////
55
  }
1
+ <?php
2
+
3
+ class CFMViewContactFormMakerPreview {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ private $model;
14
+
15
+
16
+ ////////////////////////////////////////////////////////////////////////////////////////
17
+ // Constructor & Destructor //
18
+ ////////////////////////////////////////////////////////////////////////////////////////
19
+ public function __construct($model) {
20
+ $this->model = $model;
21
+ }
22
+ ////////////////////////////////////////////////////////////////////////////////////////
23
+ // Public Methods //
24
+ ////////////////////////////////////////////////////////////////////////////////////////
25
+ public function display() {
26
+ if (isset($_GET['form_id']) && isset($_GET['test_theme'])) {
27
+ wp_print_scripts('jquery');
28
+ wp_print_scripts('jquery-ui-widget');
29
+ wp_print_scripts('jquery-effects-shake');
30
+ ?>
31
+ <script src="https://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script>
32
+ <script src="<?php echo WD_CFM_URL . '/js/if_gmap_front_end.js'; ?>" type="text/javascript"></script>
33
+ <script src="<?php echo WD_CFM_URL . '/js/cfm_main_front_end.js'; ?>" type="text/javascript"></script>
34
+ <link media="all" type="text/css" href="<?php echo WD_CFM_URL . '/css/jquery-ui-1.10.3.custom.css'; ?>" rel="stylesheet">
35
+ <link media="all" type="text/css" href="<?php echo WD_CFM_URL . '/css/contact_form_maker_frontend.css'; ?>" rel="stylesheet">
36
+ <?php
37
+ $form_id = esc_html(stripslashes($_GET['form_id']));
38
+ $theme_id = esc_html(stripslashes($_GET['test_theme']));
39
+ require_once (WD_CFM_DIR . '/frontend/controllers/CFMControllerForm_maker.php');
40
+ $controller = new CFMControllerForm_maker();
41
+ echo $controller->execute($form_id, $theme_id);
42
+ }
43
+ die();
44
+ }
45
+
46
+ ////////////////////////////////////////////////////////////////////////////////////////
47
+ // Getters & Setters //
48
+ ////////////////////////////////////////////////////////////////////////////////////////
49
+ ////////////////////////////////////////////////////////////////////////////////////////
50
+ // Private Methods //
51
+ ////////////////////////////////////////////////////////////////////////////////////////
52
+ ////////////////////////////////////////////////////////////////////////////////////////
53
+ // Listeners //
54
+ ////////////////////////////////////////////////////////////////////////////////////////
55
  }
admin/views/CFMViewContactFormmakerwdcaptcha.php CHANGED
@@ -1,93 +1,93 @@
1
- <?php
2
-
3
- class CFMViewContactFormmakerwdcaptcha {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
- private $model;
14
-
15
-
16
- ////////////////////////////////////////////////////////////////////////////////////////
17
- // Constructor & Destructor //
18
- ////////////////////////////////////////////////////////////////////////////////////////
19
- public function __construct($model) {
20
- $this->model = $model;
21
- }
22
- ////////////////////////////////////////////////////////////////////////////////////////
23
- // Public Methods //
24
- ////////////////////////////////////////////////////////////////////////////////////////
25
- public function display() {
26
- if (isset($_GET['action']) && esc_html($_GET['action']) == 'ContactFormmakerwdcaptcha') {
27
- $i = (isset($_GET["i"]) ? esc_html($_GET["i"]) : '');
28
- $r2 = (isset($_GET["r2"]) ? (int) $_GET["r2"] : 0);
29
- $rrr = (isset($_GET["rrr"]) ? (int) $_GET["rrr"] : 0);
30
- $randNum = 0 + $r2 + $rrr;
31
- $digit = (isset($_GET["digit"]) ? (int) $_GET["digit"] : 6);
32
- $cap_width = $digit * 10 + 15;
33
- $cap_height = 26;
34
- $cap_quality = 100;
35
- $cap_length_min = $digit;
36
- $cap_length_max = $digit;
37
- $cap_digital = 1;
38
- $cap_latin_char = 1;
39
- function code_generic($_length, $_digital = 1, $_latin_char = 1) {
40
- $dig = array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9);
41
- $lat = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z');
42
- $main = array();
43
- if ($_digital) {
44
- $main = array_merge($main, $dig);
45
- }
46
- if ($_latin_char) {
47
- $main = array_merge($main, $lat);
48
- }
49
- shuffle($main);
50
- $pass = substr(implode('', $main), 0, $_length);
51
- return $pass;
52
- }
53
- $l = rand($cap_length_min, $cap_length_max);
54
- $code = code_generic($l, $cap_digital, $cap_latin_char);
55
- if (session_id() == '' || (function_exists('session_status') && (session_status() == PHP_SESSION_NONE))) {
56
- @session_start();
57
- }
58
- $_SESSION[$i . '_wd_captcha_code'] = $code;
59
- $canvas = imagecreatetruecolor($cap_width, $cap_height);
60
- $c = imagecolorallocate($canvas, rand(150, 255), rand(150, 255), rand(150, 255));
61
- imagefilledrectangle($canvas, 0, 0, $cap_width, $cap_height, $c);
62
- $count = strlen($code);
63
- $color_text = imagecolorallocate($canvas, 0, 0, 0);
64
- for ($it = 0; $it < $count; $it++) {
65
- $letter = $code[$it];
66
- imagestring($canvas, 6, (10 * $it + 10), $cap_height / 4, $letter, $color_text);
67
- }
68
- for ($c = 0; $c < 150; $c++) {
69
- $x = rand(0, $cap_width - 1);
70
- $y = rand(0, 29);
71
- $col = '0x' . rand(0, 9) . '0' . rand(0, 9) . '0' . rand(0, 9) . '0';
72
- imagesetpixel($canvas, $x, $y, $col);
73
- }
74
- header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
75
- header('Cache-Control: no-store, no-cache, must-revalidate');
76
- header('Cache-Control: post-check=0, pre-check=0', FALSE);
77
- header('Pragma: no-cache');
78
- header('Content-Type: image/jpeg');
79
- imagejpeg($canvas, NULL, $cap_quality);
80
- }
81
- die('');
82
- }
83
-
84
- ////////////////////////////////////////////////////////////////////////////////////////
85
- // Getters & Setters //
86
- ////////////////////////////////////////////////////////////////////////////////////////
87
- ////////////////////////////////////////////////////////////////////////////////////////
88
- // Private Methods //
89
- ////////////////////////////////////////////////////////////////////////////////////////
90
- ////////////////////////////////////////////////////////////////////////////////////////
91
- // Listeners //
92
- ////////////////////////////////////////////////////////////////////////////////////////
93
  }
1
+ <?php
2
+
3
+ class CFMViewContactFormmakerwdcaptcha {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ private $model;
14
+
15
+
16
+ ////////////////////////////////////////////////////////////////////////////////////////
17
+ // Constructor & Destructor //
18
+ ////////////////////////////////////////////////////////////////////////////////////////
19
+ public function __construct($model) {
20
+ $this->model = $model;
21
+ }
22
+ ////////////////////////////////////////////////////////////////////////////////////////
23
+ // Public Methods //
24
+ ////////////////////////////////////////////////////////////////////////////////////////
25
+ public function display() {
26
+ if (isset($_GET['action']) && esc_html($_GET['action']) == 'ContactFormmakerwdcaptcha') {
27
+ $i = (isset($_GET["i"]) ? esc_html($_GET["i"]) : '');
28
+ $r2 = (isset($_GET["r2"]) ? (int) $_GET["r2"] : 0);
29
+ $rrr = (isset($_GET["rrr"]) ? (int) $_GET["rrr"] : 0);
30
+ $randNum = 0 + $r2 + $rrr;
31
+ $digit = (isset($_GET["digit"]) ? (int) $_GET["digit"] : 6);
32
+ $cap_width = $digit * 10 + 15;
33
+ $cap_height = 26;
34
+ $cap_quality = 100;
35
+ $cap_length_min = $digit;
36
+ $cap_length_max = $digit;
37
+ $cap_digital = 1;
38
+ $cap_latin_char = 1;
39
+ function code_generic($_length, $_digital = 1, $_latin_char = 1) {
40
+ $dig = array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9);
41
+ $lat = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z');
42
+ $main = array();
43
+ if ($_digital) {
44
+ $main = array_merge($main, $dig);
45
+ }
46
+ if ($_latin_char) {
47
+ $main = array_merge($main, $lat);
48
+ }
49
+ shuffle($main);
50
+ $pass = substr(implode('', $main), 0, $_length);
51
+ return $pass;
52
+ }
53
+ $l = rand($cap_length_min, $cap_length_max);
54
+ $code = code_generic($l, $cap_digital, $cap_latin_char);
55
+ if (session_id() == '' || (function_exists('session_status') && (session_status() == PHP_SESSION_NONE))) {
56
+ @session_start();
57
+ }
58
+ $_SESSION[$i . '_wd_captcha_code'] = $code;
59
+ $canvas = imagecreatetruecolor($cap_width, $cap_height);
60
+ $c = imagecolorallocate($canvas, rand(150, 255), rand(150, 255), rand(150, 255));
61
+ imagefilledrectangle($canvas, 0, 0, $cap_width, $cap_height, $c);
62
+ $count = strlen($code);
63
+ $color_text = imagecolorallocate($canvas, 0, 0, 0);
64
+ for ($it = 0; $it < $count; $it++) {
65
+ $letter = $code[$it];
66
+ imagestring($canvas, 6, (10 * $it + 10), $cap_height / 4, $letter, $color_text);
67
+ }
68
+ for ($c = 0; $c < 150; $c++) {
69
+ $x = rand(0, $cap_width - 1);
70
+ $y = rand(0, 29);
71
+ $col = '0x' . rand(0, 9) . '0' . rand(0, 9) . '0' . rand(0, 9) . '0';
72
+ imagesetpixel($canvas, $x, $y, $col);
73
+ }
74
+ header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
75
+ header('Cache-Control: no-store, no-cache, must-revalidate');
76
+ header('Cache-Control: post-check=0, pre-check=0', FALSE);
77
+ header('Pragma: no-cache');
78
+ header('Content-Type: image/jpeg');
79
+ imagejpeg($canvas, NULL, $cap_quality);
80
+ }
81
+ die('');
82
+ }
83
+
84
+ ////////////////////////////////////////////////////////////////////////////////////////
85
+ // Getters & Setters //
86
+ ////////////////////////////////////////////////////////////////////////////////////////
87
+ ////////////////////////////////////////////////////////////////////////////////////////
88
+ // Private Methods //
89
+ ////////////////////////////////////////////////////////////////////////////////////////
90
+ ////////////////////////////////////////////////////////////////////////////////////////
91
+ // Listeners //
92
+ ////////////////////////////////////////////////////////////////////////////////////////
93
  }
admin/views/CFMViewFeatured_plugins_cfm.php CHANGED
@@ -1,183 +1,183 @@
1
- <?php
2
-
3
- class CFMViewFeatured_plugins_cfm {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
- private $model;
14
-
15
-
16
- ////////////////////////////////////////////////////////////////////////////////////////
17
- // Constructor & Destructor //
18
- ////////////////////////////////////////////////////////////////////////////////////////
19
- public function __construct($model) {
20
- $this->model = $model;
21
- }
22
- ////////////////////////////////////////////////////////////////////////////////////////
23
- // Public Methods //
24
- ////////////////////////////////////////////////////////////////////////////////////////
25
- public function display() {
26
- ?>
27
- <div id="main_featured_plugins_page">
28
- <table align="center" width="90%" style="margin-top: 0px;border-bottom: rgb(111, 111, 111) solid 2px;">
29
- <tr>
30
- <td colspan="2" style="height: 70px;"><h3 style="margin: 0px;font-family:Segoe UI;padding-bottom: 15px;color: rgb(111, 111, 111); font-size:18pt;">Featured Plugins</h3></td>
31
- <td></td>
32
- </tr>
33
- </table>
34
- <form method="post">
35
- <ul id="featured-plugins-list">
36
- <li class="form-maker">
37
- <div class="product">
38
- <div class="title">
39
- <strong class="heading">Form Maker</strong>
40
- <p>Wordpress form builder plugin</p>
41
- </div>
42
- </div>
43
- <div class="description">
44
- <p>Form Maker is a modern and advanced tool for creating WordPress forms easily and fast.</p>
45
- <a target="_blank" href="http://web-dorado.com/products/wordpress-form.html" class="download">Download</a>
46
- </div>
47
- </li>
48
- <li class="photo-gallery">
49
- <div class="product">
50
- <div class="title">
51
- <strong class="heading">Photo Gallery</strong>
52
- <p>WordPress Photo Gallery plugin</p>
53
- </div>
54
- </div>
55
- <div class="description">
56
- <p>Photo Gallery is a fully responsive WordPress Gallery plugin with advanced functionality.
57
- It allows having different image galleries for your posts and pages, as well as different widgets.</p>
58
- <a target="_blank" href="http://web-dorado.com/products/wordpress-photo-gallery-plugin.html" class="download">Download</a>
59
- </div>
60
- </li>
61
- <li class="spider-calendar">
62
- <div class="product">
63
- <div class="title">
64
- <strong class="heading">Spider Calendar</strong>
65
- <p>WordPress event calendar plugin</p>
66
- </div>
67
- </div>
68
- <div class="description">
69
- <p>Spider Event Calendar is a highly configurable product which allows you to have multiple organized events.</p>
70
- <a target="_blank" href="http://web-dorado.com/products/wordpress-calendar.html" class="download">Download</a>
71
- </div>
72
- </li>
73
- <li class="catalog">
74
- <div class="product">
75
- <div class="title">
76
- <strong class="heading">Spider Catalog</strong>
77
- <p>WordPress product catalog plugin</p>
78
- </div>
79
- </div>
80
- <div class="description">
81
- <p>Spider Catalog for WordPress is a convenient tool for organizing the products represented on your website into catalogs.</p>
82
- <a target="_blank" href="http://web-dorado.com/products/wordpress-catalog.html" class="download">Download</a>
83
- </div>
84
- </li>
85
- <li class="player">
86
- <div class="product">
87
- <div class="title">
88
- <strong class="heading">Video Player</strong>
89
- <p>WordPress Video player plugin</p>
90
- </div>
91
- </div>
92
- <div class="description">
93
- <p>Spider Video Player for WordPress is a Flash & HTML5 video player plugin that allows you to easily add videos to your website with the possibility</p>
94
- <a target="_blank" href="http://web-dorado.com/products/wordpress-player.html" class="download">Download</a>
95
- </div>
96
- </li>
97
- <li class="contacts">
98
- <div class="product">
99
- <div class="title">
100
- <strong class="heading">Spider Contacts</strong>
101
- <p>Wordpress staff list plugin</p>
102
- </div>
103
- </div>
104
- <div class="description">
105
- <p>Spider Contacts helps you to display information about the group of people more intelligible, effective and convenient.</p>
106
- <a target="_blank" href="http://web-dorado.com/products/wordpress-contacts-plugin.html" class="download">Download</a>
107
- </div>
108
- </li>
109
- <li class="facebook">
110
- <div class="product">
111
- <div class="title">
112
- <strong class="heading">Spider Facebook</strong>
113
- <p>WordPress Facebook plugin</p>
114
- </div>
115
- </div>
116
- <div class="description">
117
- <p>Spider Facebook is a WordPress integration tool for Facebook.It includes all the available Facebook social plugins and widgets to be added to your web</p>
118
- <a target="_blank" href="http://web-dorado.com/products/wordpress-facebook.html" class="download">Download</a>
119
- </div>
120
- </li>
121
- <li class="twitter-widget">
122
- <div class="product">
123
- <div class="title">
124
- <strong class="heading">Widget Twitter</strong>
125
- <p>WordPress Widget Twitter plugin</p>
126
- </div>
127
- </div>
128
- <div class="description">
129
- <p>The Widget Twitter plugin lets you to fully integrate your WordPress site with your Twitter account.</p>
130
- <a target="_blank" href="http://web-dorado.com/products/wordpress-twitter-integration-plugin.html" class="download">Download</a>
131
- </div>
132
- </li>
133
- <li class="faq">
134
- <div class="product">
135
- <div class="title">
136
- <strong class="heading">Spider FAQ</strong>
137
- <p>WordPress FAQ Plugin</p>
138
- </div>
139
- </div>
140
- <div class="description">
141
- <p>The Spider FAQ WordPress plugin is for creating an FAQ (Frequently Asked Questions) section for your website.</p>
142
- <a target="_blank" href="http://web-dorado.com/products/wordpress-faq-plugin.html" class="download">Download</a>
143
- </div>
144
- </li>
145
- <li class="zoom">
146
- <div class="product">
147
- <div class="title">
148
- <strong class="heading">Zoom</strong>
149
- <p>WordPress text zoom plugin</p>
150
- </div>
151
- </div>
152
- <div class="description">
153
- <p>Zoom enables site users to resize the predefined areas of the web site.</p>
154
- <a target="_blank" href="http://web-dorado.com/products/wordpress-zoom.html" class="download">Download</a>
155
- </div>
156
- </li>
157
- <li class="flash-calendar">
158
- <div class="product">
159
- <div class="title">
160
- <strong class="heading">Flash Calendar</strong>
161
- <p>WordPress flash calendar plugin</p>
162
- </div>
163
- </div>
164
- <div class="description">
165
- <p>Spider Flash Calendar is a highly configurable Flash calendar plugin which allows you to have multiple organized events.</p>
166
- <a target="_blank" href="http://web-dorado.com/products/wordpress-events-calendar.html" class="download">Download</a>
167
- </div>
168
- </li>
169
- </ul>
170
- </form>
171
- </div >
172
- <?php
173
- }
174
- ////////////////////////////////////////////////////////////////////////////////////////
175
- // Getters & Setters //
176
- ////////////////////////////////////////////////////////////////////////////////////////
177
- ////////////////////////////////////////////////////////////////////////////////////////
178
- // Private Methods //
179
- ////////////////////////////////////////////////////////////////////////////////////////
180
- ////////////////////////////////////////////////////////////////////////////////////////
181
- // Listeners //
182
- ////////////////////////////////////////////////////////////////////////////////////////
183
  }
1
+ <?php
2
+
3
+ class CFMViewFeatured_plugins_cfm {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ private $model;
14
+
15
+
16
+ ////////////////////////////////////////////////////////////////////////////////////////
17
+ // Constructor & Destructor //
18
+ ////////////////////////////////////////////////////////////////////////////////////////
19
+ public function __construct($model) {
20
+ $this->model = $model;
21
+ }
22
+ ////////////////////////////////////////////////////////////////////////////////////////
23
+ // Public Methods //
24
+ ////////////////////////////////////////////////////////////////////////////////////////
25
+ public function display() {
26
+ ?>
27
+ <div id="main_featured_plugins_page">
28
+ <table align="center" width="90%" style="margin-top: 0px;border-bottom: rgb(111, 111, 111) solid 2px;">
29
+ <tr>
30
+ <td colspan="2" style="height: 70px;"><h3 style="margin: 0px;font-family:Segoe UI;padding-bottom: 15px;color: rgb(111, 111, 111); font-size:18pt;">Featured Plugins</h3></td>
31
+ <td></td>
32
+ </tr>
33
+ </table>
34
+ <form method="post">
35
+ <ul id="featured-plugins-list">
36
+ <li class="form-maker">
37
+ <div class="product">
38
+ <div class="title">
39
+ <strong class="heading">Form Maker</strong>
40
+ <p>Wordpress form builder plugin</p>
41
+ </div>
42
+ </div>
43
+ <div class="description">
44
+ <p>Form Maker is a modern and advanced tool for creating WordPress forms easily and fast.</p>
45
+ <a target="_blank" href="http://web-dorado.com/products/wordpress-form.html" class="download">Download</a>
46
+ </div>
47
+ </li>
48
+ <li class="photo-gallery">
49
+ <div class="product">
50
+ <div class="title">
51
+ <strong class="heading">Photo Gallery</strong>
52
+ <p>WordPress Photo Gallery plugin</p>
53
+ </div>
54
+ </div>
55
+ <div class="description">
56
+ <p>Photo Gallery is a fully responsive WordPress Gallery plugin with advanced functionality.
57
+ It allows having different image galleries for your posts and pages, as well as different widgets.</p>
58
+ <a target="_blank" href="http://web-dorado.com/products/wordpress-photo-gallery-plugin.html" class="download">Download</a>
59
+ </div>
60
+ </li>
61
+ <li class="spider-calendar">
62
+ <div class="product">
63
+ <div class="title">
64
+ <strong class="heading">Spider Calendar</strong>
65
+ <p>WordPress event calendar plugin</p>
66
+ </div>
67
+ </div>
68
+ <div class="description">
69
+ <p>Spider Event Calendar is a highly configurable product which allows you to have multiple organized events.</p>
70
+ <a target="_blank" href="http://web-dorado.com/products/wordpress-calendar.html" class="download">Download</a>
71
+ </div>
72
+ </li>
73
+ <li class="catalog">
74
+ <div class="product">
75
+ <div class="title">
76
+ <strong class="heading">Spider Catalog</strong>
77
+ <p>WordPress product catalog plugin</p>
78
+ </div>
79
+ </div>
80
+ <div class="description">
81
+ <p>Spider Catalog for WordPress is a convenient tool for organizing the products represented on your website into catalogs.</p>
82
+ <a target="_blank" href="http://web-dorado.com/products/wordpress-catalog.html" class="download">Download</a>
83
+ </div>
84
+ </li>
85
+ <li class="player">
86
+ <div class="product">
87
+ <div class="title">
88
+ <strong class="heading">Video Player</strong>
89
+ <p>WordPress Video player plugin</p>
90
+ </div>
91
+ </div>
92
+ <div class="description">
93
+ <p>Spider Video Player for WordPress is a Flash & HTML5 video player plugin that allows you to easily add videos to your website with the possibility</p>
94
+ <a target="_blank" href="http://web-dorado.com/products/wordpress-player.html" class="download">Download</a>
95
+ </div>
96
+ </li>
97
+ <li class="contacts">
98
+ <div class="product">
99
+ <div class="title">
100
+ <strong class="heading">Spider Contacts</strong>
101
+ <p>Wordpress staff list plugin</p>
102
+ </div>
103
+ </div>
104
+ <div class="description">
105
+ <p>Spider Contacts helps you to display information about the group of people more intelligible, effective and convenient.</p>
106
+ <a target="_blank" href="http://web-dorado.com/products/wordpress-contacts-plugin.html" class="download">Download</a>
107
+ </div>
108
+ </li>
109
+ <li class="facebook">
110
+ <div class="product">
111
+ <div class="title">
112
+ <strong class="heading">Spider Facebook</strong>
113
+ <p>WordPress Facebook plugin</p>
114
+ </div>
115
+ </div>
116
+ <div class="description">
117
+ <p>Spider Facebook is a WordPress integration tool for Facebook.It includes all the available Facebook social plugins and widgets to be added to your web</p>
118
+ <a target="_blank" href="http://web-dorado.com/products/wordpress-facebook.html" class="download">Download</a>
119
+ </div>
120
+ </li>
121
+ <li class="twitter-widget">
122
+ <div class="product">
123
+ <div class="title">
124
+ <strong class="heading">Widget Twitter</strong>
125
+ <p>WordPress Widget Twitter plugin</p>
126
+ </div>
127
+ </div>
128
+ <div class="description">
129
+ <p>The Widget Twitter plugin lets you to fully integrate your WordPress site with your Twitter account.</p>
130
+ <a target="_blank" href="http://web-dorado.com/products/wordpress-twitter-integration-plugin.html" class="download">Download</a>
131
+ </div>
132
+ </li>
133
+ <li class="faq">
134
+ <div class="product">
135
+ <div class="title">
136
+ <strong class="heading">Spider FAQ</strong>
137
+ <p>WordPress FAQ Plugin</p>
138
+ </div>
139
+ </div>
140
+ <div class="description">
141
+ <p>The Spider FAQ WordPress plugin is for creating an FAQ (Frequently Asked Questions) section for your website.</p>
142
+ <a target="_blank" href="http://web-dorado.com/products/wordpress-faq-plugin.html" class="download">Download</a>
143
+ </div>
144
+ </li>
145
+ <li class="zoom">
146
+ <div class="product">
147
+ <div class="title">
148
+ <strong class="heading">Zoom</strong>
149
+ <p>WordPress text zoom plugin</p>
150
+ </div>
151
+ </div>
152
+ <div class="description">
153
+ <p>Zoom enables site users to resize the predefined areas of the web site.</p>
154
+ <a target="_blank" href="http://web-dorado.com/products/wordpress-zoom.html" class="download">Download</a>
155
+ </div>
156
+ </li>
157
+ <li class="flash-calendar">
158
+ <div class="product">
159
+ <div class="title">
160
+ <strong class="heading">Flash Calendar</strong>
161
+ <p>WordPress flash calendar plugin</p>
162
+ </div>
163
+ </div>
164
+ <div class="description">
165
+ <p>Spider Flash Calendar is a highly configurable Flash calendar plugin which allows you to have multiple organized events.</p>
166
+ <a target="_blank" href="http://web-dorado.com/products/wordpress-events-calendar.html" class="download">Download</a>
167
+ </div>
168
+ </li>
169
+ </ul>
170
+ </form>
171
+ </div >
172
+ <?php
173
+ }
174
+ ////////////////////////////////////////////////////////////////////////////////////////
175
+ // Getters & Setters //
176
+ ////////////////////////////////////////////////////////////////////////////////////////
177
+ ////////////////////////////////////////////////////////////////////////////////////////
178
+ // Private Methods //
179
+ ////////////////////////////////////////////////////////////////////////////////////////
180
+ ////////////////////////////////////////////////////////////////////////////////////////
181
+ // Listeners //
182
+ ////////////////////////////////////////////////////////////////////////////////////////
183
  }
admin/views/CFMViewLicensing_cfm.php CHANGED
@@ -1,158 +1,158 @@
1
- <?php
2
-
3
- class CFMViewLicensing_cfm {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
- private $model;
14
-
15
-
16
- ////////////////////////////////////////////////////////////////////////////////////////
17
- // Constructor & Destructor //
18
- ////////////////////////////////////////////////////////////////////////////////////////
19
- public function __construct($model) {
20
- $this->model = $model;
21
- }
22
- ////////////////////////////////////////////////////////////////////////////////////////
23
- // Public Methods //
24
- ////////////////////////////////////////////////////////////////////////////////////////
25
- public function display() {
26
- ?>
27
- <div style="text-align:center; float: left;">
28
- <table class="data-bordered">
29
- <thead>
30
- <tr>
31
- <th class="top first" nowrap="nowrap" scope="col"><?php echo __("Features of the Contact form builder","contact_form_maker"); ?></th>
32
- <th class="top notranslate" nowrap="nowrap" scope="col"><?php echo __("Free","contact_form_maker"); ?></th>
33
- <th class="top notranslate" nowrap="nowrap" scope="col"><?php echo __("Pro Version","contact_form_maker"); ?></th>
34
- </tr>
35
- </thead>
36
- <tbody>
37
- <tr class="alt">
38
- <td><?php echo __("Responsive design and layout","contact_form_maker"); ?></td>
39
- <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
40
- <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
41
- </tr>
42
- <tr>
43
- <td><?php echo __("Email Options","contact_form_maker"); ?></td>
44
- <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
45
- <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
46
- </tr>
47
- <tr class="alt">
48
- <td><?php echo __("Customizable labels and attributes","contact_form_maker"); ?></td>
49
- <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
50
- <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
51
- </tr>
52
- <tr>
53
- <td><?php echo __("Custom HTML field","contact_form_maker"); ?></td>
54
- <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
55
- <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
56
- </tr>
57
- <tr class="alt">
58
- <td><?php echo __("Possibility to send a copy of message to user","contact_form_maker"); ?></td>
59
- <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
60
- <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
61
- </tr>
62
- <tr>
63
- <td><?php echo __("Activation/deactivation of fields","contact_form_maker"); ?></td>
64
- <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
65
- <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
66
- </tr>
67
- <tr class="alt">
68
- <td><?php echo __("Customizable form layout","contact_form_maker"); ?></td>
69
- <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
70
- <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
71
- </tr>
72
- <tr>
73
- <td><?php echo __("Captcha/Repatcha protection","contact_form_maker"); ?></td>
74
- <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
75
- <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
76
- </tr>
77
- <tr class="alt">
78
- <td><?php echo __("Blocking IPs","contact_form_maker"); ?></td>
79
- <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
80
- <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
81
- </tr>
82
- <tr>
83
- <td><?php echo __("Sample Forms","contact_form_maker"); ?></td>
84
- <td style="text-align:center;">10</td>
85
- <td style="text-align:center;">10</td>
86
- </tr>
87
- <tr class="alt">
88
- <td><?php echo __("Possibility to create new forms based on the samples","contact_form_maker"); ?></td>
89
- <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
90
- <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
91
- </tr>
92
- <tr>
93
- <td><?php echo __("Google Map Integration","contact_form_maker"); ?></td>
94
- <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
95
- <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
96
- </tr>
97
- <tr class="alt">
98
- <td><?php echo __("Themes","contact_form_maker"); ?></td>
99
- <td class="icon-replace yes">1</td>
100
- <td class="icon-replace yes">37</td>
101
- </tr>
102
- <tr class="alt">
103
- <td><?php echo __("Possibility to add themes","contact_form_maker"); ?></td>
104
- <td class="icon-replace no"><?php echo __("no","contact_form_maker"); ?></td>
105
- <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
106
- </tr>
107
- <tr>
108
- <td><?php echo __("Submissions page","contact_form_maker"); ?></td>
109
- <td class="icon-replace no"><?php echo __("no","contact_form_maker"); ?></td>
110
- <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
111
- </tr>
112
- <tr class="alt">
113
- <td><?php echo __("Statistical Data","contact_form_maker"); ?></td>
114
- <td class="icon-replace no"><?php echo __("no","contact_form_maker"); ?></td>
115
- <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
116
- </tr>
117
- <tr>
118
- <td><?php echo __("Data Import in CSV/XML","contact_form_maker"); ?></td>
119
- <td class="icon-replace no"><?php echo __("no","contact_form_maker"); ?></td>
120
- <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
121
- </tr>
122
- </tbody>
123
- </table>
124
- </div>
125
- <div class="fm-upgrade-pro">
126
- <a target="_blank" href="http://web-dorado.com/files/fromContactFormBuilder.php">
127
- <div class="fm-upgrade-img">
128
- UPGRADE TO PRO VERSION
129
- <span></span>
130
- </div>
131
- </a>
132
- </div>
133
- <div style="float: left; clear: both;">
134
- <p><?php echo __("After the purchasing the commercial version follow this steps:","contact_form_maker"); ?></p>
135
- <ol>
136
- <li><?php echo __("Deactivate Contact Form Builder Plugin.","contact_form_maker"); ?></li>
137
- <li><?php echo __("Delete Contact Form Builder Plugin.","contact_form_maker"); ?></li>
138
- <li><?php echo __("Install the downloaded commercial version of the plugin.","contact_form_maker"); ?></li>
139
- </ol>
140
- <br/>
141
- <p><?php echo __("If you enjoy using Contact Form Builder and find it useful, please consider making a donation. Your donation will help encourage and support the plugin's continued development and better user support.","contact_form_maker"); ?></p>
142
- <br/>
143
- <a href="https://web-dorado.com/files/donate_redirect.php" target="_blank">
144
- <div class="fm-get-pro"></div>
145
- </a>
146
- </div>
147
- <?php
148
- }
149
- ////////////////////////////////////////////////////////////////////////////////////////
150
- // Getters & Setters //
151
- ////////////////////////////////////////////////////////////////////////////////////////
152
- ////////////////////////////////////////////////////////////////////////////////////////
153
- // Private Methods //
154
- ////////////////////////////////////////////////////////////////////////////////////////
155
- ////////////////////////////////////////////////////////////////////////////////////////
156
- // Listeners //
157
- ////////////////////////////////////////////////////////////////////////////////////////
158
  }
1
+ <?php
2
+
3
+ class CFMViewLicensing_cfm {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ private $model;
14
+
15
+
16
+ ////////////////////////////////////////////////////////////////////////////////////////
17
+ // Constructor & Destructor //
18
+ ////////////////////////////////////////////////////////////////////////////////////////
19
+ public function __construct($model) {
20
+ $this->model = $model;
21
+ }
22
+ ////////////////////////////////////////////////////////////////////////////////////////
23
+ // Public Methods //
24
+ ////////////////////////////////////////////////////////////////////////////////////////
25
+ public function display() {
26
+ ?>
27
+ <div style="text-align:center; float: left;">
28
+ <table class="data-bordered">
29
+ <thead>
30
+ <tr>
31
+ <th class="top first" nowrap="nowrap" scope="col"><?php echo __("Features of the Contact form builder","contact_form_maker"); ?></th>
32
+ <th class="top notranslate" nowrap="nowrap" scope="col"><?php echo __("Free","contact_form_maker"); ?></th>
33
+ <th class="top notranslate" nowrap="nowrap" scope="col"><?php echo __("Pro Version","contact_form_maker"); ?></th>
34
+ </tr>
35
+ </thead>
36
+ <tbody>
37
+ <tr class="alt">
38
+ <td><?php echo __("Responsive design and layout","contact_form_maker"); ?></td>
39
+ <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
40
+ <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
41
+ </tr>
42
+ <tr>
43
+ <td><?php echo __("Email Options","contact_form_maker"); ?></td>
44
+ <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
45
+ <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
46
+ </tr>
47
+ <tr class="alt">
48
+ <td><?php echo __("Customizable labels and attributes","contact_form_maker"); ?></td>
49
+ <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
50
+ <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
51
+ </tr>
52
+ <tr>
53
+ <td><?php echo __("Custom HTML field","contact_form_maker"); ?></td>
54
+ <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
55
+ <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
56
+ </tr>
57
+ <tr class="alt">
58
+ <td><?php echo __("Possibility to send a copy of message to user","contact_form_maker"); ?></td>
59
+ <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
60
+ <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
61
+ </tr>
62
+ <tr>
63
+ <td><?php echo __("Activation/deactivation of fields","contact_form_maker"); ?></td>
64
+ <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
65
+ <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
66
+ </tr>
67
+ <tr class="alt">
68
+ <td><?php echo __("Customizable form layout","contact_form_maker"); ?></td>
69
+ <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
70
+ <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
71
+ </tr>
72
+ <tr>
73
+ <td><?php echo __("Captcha/Repatcha protection","contact_form_maker"); ?></td>
74
+ <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
75
+ <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
76
+ </tr>
77
+ <tr class="alt">
78
+ <td><?php echo __("Blocking IPs","contact_form_maker"); ?></td>
79
+ <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
80
+ <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
81
+ </tr>
82
+ <tr>
83
+ <td><?php echo __("Sample Forms","contact_form_maker"); ?></td>
84
+ <td style="text-align:center;">10</td>
85
+ <td style="text-align:center;">10</td>
86
+ </tr>
87
+ <tr class="alt">
88
+ <td><?php echo __("Possibility to create new forms based on the samples","contact_form_maker"); ?></td>
89
+ <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
90
+ <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
91
+ </tr>
92
+ <tr>
93
+ <td><?php echo __("Google Map Integration","contact_form_maker"); ?></td>
94
+ <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
95
+ <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
96
+ </tr>
97
+ <tr class="alt">
98
+ <td><?php echo __("Themes","contact_form_maker"); ?></td>
99
+ <td class="icon-replace yes">1</td>
100
+ <td class="icon-replace yes">37</td>
101
+ </tr>
102
+ <tr class="alt">
103
+ <td><?php echo __("Possibility to add themes","contact_form_maker"); ?></td>
104
+ <td class="icon-replace no"><?php echo __("no","contact_form_maker"); ?></td>
105
+ <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
106
+ </tr>
107
+ <tr>
108
+ <td><?php echo __("Submissions page","contact_form_maker"); ?></td>
109
+ <td class="icon-replace no"><?php echo __("no","contact_form_maker"); ?></td>
110
+ <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
111
+ </tr>
112
+ <tr class="alt">
113
+ <td><?php echo __("Statistical Data","contact_form_maker"); ?></td>
114
+ <td class="icon-replace no"><?php echo __("no","contact_form_maker"); ?></td>
115
+ <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
116
+ </tr>
117
+ <tr>
118
+ <td><?php echo __("Data Import in CSV/XML","contact_form_maker"); ?></td>
119
+ <td class="icon-replace no"><?php echo __("no","contact_form_maker"); ?></td>
120
+ <td class="icon-replace yes"><?php echo __("yes","contact_form_maker"); ?></td>
121
+ </tr>
122
+ </tbody>
123
+ </table>
124
+ </div>
125
+ <div class="fm-upgrade-pro">
126
+ <a target="_blank" href="http://web-dorado.com/files/fromContactFormBuilder.php">
127
+ <div class="fm-upgrade-img">
128
+ UPGRADE TO PRO VERSION
129
+ <span></span>
130
+ </div>
131
+ </a>
132
+ </div>
133
+ <div style="float: left; clear: both;">
134
+ <p><?php echo __("After the purchasing the commercial version follow this steps:","contact_form_maker"); ?></p>
135
+ <ol>
136
+ <li><?php echo __("Deactivate Contact Form Builder Plugin.","contact_form_maker"); ?></li>
137
+ <li><?php echo __("Delete Contact Form Builder Plugin.","contact_form_maker"); ?></li>
138
+ <li><?php echo __("Install the downloaded commercial version of the plugin.","contact_form_maker"); ?></li>
139
+ </ol>
140
+ <br/>
141
+ <p><?php echo __("If you enjoy using Contact Form Builder and find it useful, please consider making a donation. Your donation will help encourage and support the plugin's continued development and better user support.","contact_form_maker"); ?></p>
142
+ <br/>
143
+ <a href="https://web-dorado.com/files/donate_redirect.php" target="_blank">
144
+ <div class="fm-get-pro"></div>
145
+ </a>
146
+ </div>
147
+ <?php
148
+ }
149
+ ////////////////////////////////////////////////////////////////////////////////////////
150
+ // Getters & Setters //
151
+ ////////////////////////////////////////////////////////////////////////////////////////
152
+ ////////////////////////////////////////////////////////////////////////////////////////
153
+ // Private Methods //
154
+ ////////////////////////////////////////////////////////////////////////////////////////
155
+ ////////////////////////////////////////////////////////////////////////////////////////
156
+ // Listeners //
157
+ ////////////////////////////////////////////////////////////////////////////////////////
158
  }
admin/views/CFMViewManage_cfm.php CHANGED
@@ -1,1729 +1,1729 @@
1
- <?php
2
-
3
- class CFMViewManage_cfm {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
- private $model;
14
-
15
- ////////////////////////////////////////////////////////////////////////////////////////
16
- // Constructor & Destructor //
17
- ////////////////////////////////////////////////////////////////////////////////////////
18
- public function __construct($model) {
19
- $this->model = $model;
20
- }
21
-
22
- ////////////////////////////////////////////////////////////////////////////////////////
23
- // Public Methods //
24
- ////////////////////////////////////////////////////////////////////////////////////////
25
- public function display() {
26
- $rows_data = $this->model->get_rows_data();
27
- $page_nav = $this->model->page_nav();
28
- $search_value = ((isset($_POST['search_value'])) ? esc_html($_POST['search_value']) : '');
29
- $search_select_value = ((isset($_POST['search_select_value'])) ? (int) $_POST['search_select_value'] : 0);
30
- $asc_or_desc = ((isset($_POST['asc_or_desc'])) ? esc_html($_POST['asc_or_desc']) : 'asc');
31
- $order_by = (isset($_POST['order_by']) ? esc_html($_POST['order_by']) : 'id');
32
- $order_class = 'manage-column column-title sorted ' . $asc_or_desc;
33
- $ids_string = '';
34
- ?>
35
- <div class="fm-user-manual">
36
- <?php echo __("This section allows you to edit forms", "contact_form_maker"); ?>.
37
- <a style="color: blue; text-decoration: none;" target="_blank" href="http://web-dorado.com/wordpress-contact-form-builder-guide-2.html"><?php echo __("Read More in User Manual","contact_form_maker"); ?></a>
38
- <p><?php echo __("There is no possibility of adding new form fields, whereas you can edit, enable/disable the current fields included in each form","contact_form_maker"); ?>.</p>
39
- </div>
40
- <div class="fm-upgrade-pro">
41
- <a target="_blank" href="http://web-dorado.com/files/fromContactFormBuilder.php">
42
- <div class="fm-upgrade-img">
43
- UPGRADE TO PRO VERSION
44
- <span></span>
45
- </div>
46
- </a>
47
- </div>
48
- <div class="fm-clear"></div>
49
- <form onkeypress="spider_doNothing(event)" class="wrap" id="manage_form" method="post" action="admin.php?page=manage_cfm" >
50
- <?php wp_nonce_field('nonce_cfm', 'nonce_cfm'); ?>
51
- <div class="fm-page-banner">
52
- <div class="fm-logo">
53
- </div>
54
- <div class="fm-logo-title">Contact</br>Form Builder</div>
55
- </div>
56
- <div class="tablenav top">
57
- <?php
58
- WDW_CFM_Library::search(__("Title", "contact_form_maker"), $search_value, 'manage_form');
59
- WDW_CFM_Library::html_page_nav($page_nav['total'], $page_nav['limit'], 'manage_form');
60
- ?>
61
- </div>
62
- <table class="wp-list-table widefat fixed pages">
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 ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html($_POST['order_by']) == 'id') && esc_html($_POST['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 ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html($_POST['order_by']) == 'title') && esc_html($_POST['asc_or_desc']) == 'asc') ? 'desc' : 'asc'); ?>');
76
- spider_form_submit(event, 'manage_form')" href="">
77
- <span><?php echo __("Title", "contact_form_maker"); ?></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 ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html($_POST['order_by']) == 'mail') && esc_html($_POST['asc_or_desc']) == 'asc') ? 'desc' : 'asc'); ?>');
83
- spider_form_submit(event, 'manage_form')" href="">
84
- <span><?php echo __("Email to send submissions to", "contact_form_maker"); ?></span><span class="sorting-indicator"></span></a>
85
- </th>
86
- <th class="table_xxl_col"><?php echo __("Shortcode", "contact_form_maker"); ?></th>
87
- <th class="table_xxl_col">PHP <?php echo __("function", "contact_form_maker"); ?></th>
88
- <th class="table_medium_col"><?php echo __("Preview", "contact_form_maker"); ?></th>
89
- <th class="table_medium_col"><?php echo __("Edit", "contact_form_maker"); ?></th>
90
- <th class="table_medium_col"><a title="<?php echo __("Delete selected items", "contact_form_maker"); ?>" href="" onclick="if (confirm('<?php echo addslashes(__("Do you want to delete selected items?", "contact_form_maker")); ?>')) {
91
- spider_set_input_value('task', 'delete_all');
92
- spider_form_submit(event, 'manage_form');
93
- } else {
94
- return false;
95
- }"><?php echo __("Delete", "contact_form_maker"); ?></a></th>
96
- </thead>
97
- <tbody id="tbody_arr">
98
- <?php
99
- if ($rows_data) {
100
- foreach ($rows_data as $row_data) {
101
- $alternate = (!isset($alternate) || $alternate == 'class="alternate"') ? '' : 'class="alternate"';
102
- $old = '';
103
- if (isset($row_data->form) && ($row_data->form != '')) {
104
- $old = '_old';
105
- }
106
- ?>
107
- <tr id="tr_<?php echo $row_data->id; ?>" <?php echo $alternate; ?>>
108
- <td class="table_small_col check-column">
109
- <input id="check_<?php echo $row_data->id; ?>" name="check_<?php echo $row_data->id; ?>" type="checkbox"/>
110
- </td>
111
- <td class="table_small_col"><?php echo $row_data->id; ?></td>
112
- <td>
113
- <a onclick="spider_set_input_value('task', 'edit<?php echo $old; ?>');
114
- spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
115
- spider_form_submit(event, 'manage_form')" href="" title="<?php echo __("Edit", "contact_form_maker"); ?>"><?php echo $row_data->title; ?></a>
116
- </td>
117
- <td><?php echo $row_data->mail; ?></td>
118
- <td class="table_big_col">
119
- <input type="text" value='[Contact_Form_Builder id="<?php echo $row_data->id; ?>"]' onclick="spider_select_value(this)" readonly="readonly" style="padding-left: 1px; padding-right: 1px;"/>
120
- </td>
121
- <td class="table_large_col">
122
- <input type="text" value='&#60;?php wd_contact_form_builder(<?php echo $row_data->id; ?>); ?&#62;' onclick="spider_select_value(this)" readonly="readonly" style="padding-left: 1px; padding-right: 1px;"/>
123
- </td>
124
- <td class="table_medium_col">
125
- <button class="fm-icon preview-icon" title="<?php echo __("Form Preview", "contact_form_maker"); ?>" onclick="tb_show('', '<?php echo add_query_arg(array('action' => 'ContactFormMakerPreview', 'form_id' => $row_data->id, 'test_theme' => $row_data->theme, 'width' => '1000', 'height' => '500', 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>'); return false;">
126
- <span></span>
127
- </button>
128
- </td>
129
- <td class="table_small_col">
130
- <button onclick="spider_set_input_value('task', 'edit<?php echo $old; ?>');
131
- spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
132
- spider_form_submit(event, 'manage_form')" class="fm-icon edit-icon" title="<?php echo __("Edit the form", "contact_form_maker"); ?>">
133
- <span></span>
134
- </button>
135
- </td>
136
- <td class="table_small_col">
137
- <button onclick="spider_set_input_value('task', 'delete');
138
- spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
139
- spider_form_submit(event, 'manage_form')" class="fm-icon delete-icon" title="<?php echo __("Delete the form", "contact_form_maker"); ?>">
140
- <span></span>
141
- </button>
142
- </td>
143
- </tr>
144
- <?php
145
- $ids_string .= $row_data->id . ',';
146
- }
147
- }
148
- ?>
149
- </tbody>
150
- </table>
151
- <input id="task" name="task" type="hidden" value=""/>
152
- <input id="current_id" name="current_id" type="hidden" value=""/>
153
- <input id="ids_string" name="ids_string" type="hidden" value="<?php echo $ids_string; ?>"/>
154
- <input id="asc_or_desc" name="asc_or_desc" type="hidden" value="asc"/>
155
- <input id="order_by" name="order_by" type="hidden" value="<?php echo $order_by; ?>"/>
156
- </form>
157
- <?php
158
- }
159
-
160
- public function edit($id) {
161
- $row = $this->model->get_row_data($id);
162
- $themes = $this->model->get_theme_rows_data();
163
- $labels = array();
164
- $label_id = array();
165
- $label_order_original = array();
166
- $label_type = array();
167
- $label_all = explode('#****#', $row->label_order);
168
- $label_all = array_slice($label_all, 0, count($label_all) - 1);
169
- foreach ($label_all as $key => $label_each) {
170
- $label_id_each = explode('#**id**#', $label_each);
171
- array_push($label_id, $label_id_each[0]);
172
- $label_oder_each = explode('#**label**#', $label_id_each[1]);
173
- array_push($label_order_original, addslashes($label_oder_each[0]));
174
- array_push($label_type, $label_oder_each[1]);
175
- }
176
- $labels['id'] = '"' . implode('","', $label_id) . '"';
177
- $labels['label'] = '"' . implode('","', $label_order_original) . '"';
178
- $labels['type'] = '"' . implode('","', $label_type) . '"';
179
- $page_title = (($id != 0) ? __('Edit form ', 'contact_form_maker') . $row->title : __('Create new form', 'contact_form_maker'));
180
- ?>
181
- <script type="text/javascript">
182
- var contact_form_maker_plugin_url = "<?php echo WD_CFM_URL; ?>";
183
- form_view = 1;
184
- form_view_count = 1;
185
- form_view_max = 1;
186
- function set_preview() {
187
- jQuery("#preview_form").attr("onclick", "tb_show('', '<?php echo add_query_arg(array('action' => 'ContactFormMakerPreview', 'form_id' => $row->id), admin_url('admin-ajax.php')); ?>&test_theme=" + jQuery('#theme').val() + "&width=1000&height=500&TB_iframe=1'); return false;");
188
- jQuery("#edit_css").attr("onclick", "tb_show('', '<?php echo add_query_arg(array('action' => 'ContactFormMakerEditCSS', 'form_id' => $row->id), admin_url('admin-ajax.php')); ?>&id=" + jQuery('#theme').val() + "&width=800&height=500&TB_iframe=1'); return false;");
189
- }
190
- function submitbutton() {
191
- <?php
192
- if ($id) {
193
- ?>
194
- if (!document.getElementById('araqel') || (document.getElementById('araqel').value == '0')) {
195
- alert('<?php echo addslashes(__("Please wait while page loading", "contact_form_maker")); ?>.');
196
- return false;
197
- }
198
- <?php
199
- }
200
- ?>
201
- tox = '';
202
- form_fields = '';
203
- disabled_ids = '';
204
- l_id_array = [<?php echo $labels['id']?>];
205
- l_label_array = [<?php echo $labels['label']?>];
206
- l_type_array = [<?php echo $labels['type']?>];
207
- l_id_removed = [];
208
- document.getElementById('take').style.display = "none";
209
- document.getElementById('saving').style.display = "block";
210
- remove_whitespace(document.getElementById('take'));
211
- for (x = 0; x < l_id_array.length; x++) {
212
- l_id_removed[l_id_array[x]] = true;
213
- }
214
- if (document.getElementById('form_id_tempform_view1')) {
215
- wdform_page = document.getElementById('form_id_tempform_view1');
216
- remove_whitespace(wdform_page);
217
- n = wdform_page.childNodes.length - 2;
218
- for (q = 0; q <= n; q++) {
219
- if (!wdform_page.childNodes[q].getAttribute("wdid")) {
220
- wdform_section = wdform_page.childNodes[q];
221
- for (x = 0; x < wdform_section.childNodes.length; x++) {
222
- wdform_column = wdform_section.childNodes[x];
223
- if (wdform_column.firstChild) {
224
- for (y=0; y < wdform_column.childNodes.length; y++) {
225
- is_in_old = false;
226
- wdform_row = wdform_column.childNodes[y];
227
- if (wdform_row.nodeType == 3) {
228
- continue;
229
- }
230
- wdid = wdform_row.getAttribute("wdid");
231
- if (!wdid) {
232
- continue;
233
- }
234
- l_id = wdid;
235
- l_label = document.getElementById(wdid + '_element_labelform_id_temp').innerHTML;
236
- l_label = l_label.replace(/(\r\n|\n|\r)/gm," ");
237
- // wdtype = wdform_row.firstChild.getAttribute('type');
238
- wdtype = jQuery(wdform_row).find("div[id^=wdform_field]").eq(0).attr('type');
239
- if (wdform_row.getAttribute("disabled")) {
240
- if (wdtype != "type_address") {
241
- disabled_ids += wdid + ',';
242
- }
243
- else {
244
- disabled_ids += wdid + ',' + (parseInt(wdid)+1) + ','+(parseInt(wdid)+2)+ ',' +(parseInt(wdid)+3)+ ',' +(parseInt(wdid)+4)+ ','+(parseInt(wdid)+5) + ',';
245
- }
246
- }
247
- for (z = 0; z < l_id_array.length; z++) {
248
- if (l_id_array[z] == wdid) {
249
- if (l_type_array[z] == "type_address") {
250
- if (document.getElementById(l_id + "_mini_label_street1")) {
251
- l_id_removed[l_id_array[z]] = false;
252
- }
253
- if (document.getElementById(l_id + "_mini_label_street2")) {
254
- l_id_removed[parseInt(l_id_array[z]) + 1] = false;
255
- }
256
- if (document.getElementById(l_id + "_mini_label_city")) {
257
- l_id_removed[parseInt(l_id_array[z]) + 2] = false;
258
- }
259
- if (document.getElementById(l_id + "_mini_label_state")) {
260
- l_id_removed[parseInt(l_id_array[z]) + 3] = false;
261
- }
262
- if (document.getElementById(l_id+"_mini_label_postal")) {
263
- l_id_removed[parseInt(l_id_array[z]) + 4] = false;
264
- }
265
- if (document.getElementById(l_id+"_mini_label_country")) {
266
- l_id_removed[parseInt(l_id_array[z]) + 5] = false;
267
- }
268
- z = z + 5;
269
- }
270
- else {
271
- l_id_removed[l_id] = false;
272
- }
273
- }
274
- }
275
- if (wdtype == "type_address") {
276
- addr_id = parseInt(wdid);
277
- id_for_country = addr_id;
278
- if (document.getElementById(id_for_country + "_mini_label_street1"))
279
- tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_street1").innerHTML + '#**label**#type_address#****#';
280
- addr_id++;
281
- if (document.getElementById(id_for_country + "_mini_label_street2"))
282
- tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_street2").innerHTML + '#**label**#type_address#****#';
283
- addr_id++;
284
- if (document.getElementById(id_for_country+"_mini_label_city"))
285
- tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_city").innerHTML + '#**label**#type_address#****#';
286
- addr_id++;
287
- if (document.getElementById(id_for_country + "_mini_label_state"))
288
- tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_state").innerHTML + '#**label**#type_address#****#';
289
- addr_id++;
290
- if (document.getElementById(id_for_country + "_mini_label_postal"))
291
- tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_postal").innerHTML + '#**label**#type_address#****#';
292
- addr_id++;
293
- if (document.getElementById(id_for_country+"_mini_label_country")) {
294
- tox=tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_country").innerHTML + '#**label**#type_address#****#';
295
- }
296
- }
297
- else {
298
- tox = tox + wdid + '#**id**#' + l_label + '#**label**#' + wdtype + '#****#';
299
- }
300
- id = wdid;
301
- form_fields += wdid + "*:*id*:*";
302
- form_fields += wdtype + "*:*type*:*";
303
- w_choices = new Array();
304
- w_choices_checked = new Array();
305
- w_choices_disabled = new Array();
306
- w_allow_other_num = 0;
307
- w_property = new Array();
308
- w_property_type = new Array();
309
- w_property_values = new Array();
310
- w_choices_price = new Array();
311
- if (document.getElementById(id+'_element_labelform_id_temp').innerHTML) {
312
- w_field_label = document.getElementById(id + '_element_labelform_id_temp').innerHTML.replace(/(\r\n|\n|\r)/gm," ");
313
- }
314
- else {
315
- w_field_label = " ";
316
- }
317
- if (document.getElementById(id + '_label_sectionform_id_temp')) {
318
- if (document.getElementById(id + '_label_sectionform_id_temp').style.display == "block") {
319
- w_field_label_pos = "top";
320
- }
321
- else {
322
- w_field_label_pos = "left";
323
- }
324
- }
325
- if (document.getElementById(id + "_elementform_id_temp")) {
326
- s = document.getElementById(id + "_elementform_id_temp").style.width;
327
- w_size=s.substring(0,s.length - 2);
328
- }
329
- if (document.getElementById(id + "_label_sectionform_id_temp")) {
330
- s = document.getElementById(id + "_label_sectionform_id_temp").style.width;
331
- w_field_label_size = s.substring(0, s.length - 2);
332
- }
333
- if (document.getElementById(id + "_requiredform_id_temp")) {
334
- w_required = document.getElementById(id + "_requiredform_id_temp").value;
335
- }
336
- if (document.getElementById(id + "_uniqueform_id_temp")) {
337
- w_unique = document.getElementById(id + "_uniqueform_id_temp").value;
338
- }
339
- if (document.getElementById(id + '_label_sectionform_id_temp')) {
340
- w_class = document.getElementById(id + '_label_sectionform_id_temp').getAttribute("class");
341
- if (!w_class) {
342
- w_class = "";
343
- }
344
- }
345
- gen_form_fields();
346
- wdform_row.innerHTML = "%" + id + " - " + l_label + "%";
347
- }
348
- }
349
- }
350
- }
351
- else {
352
- id = wdform_page.childNodes[q].getAttribute("wdid");
353
- if (wdform_page.childNodes[q].getAttribute("disabled")) {
354
- disabled_ids += id + ',';
355
- }
356
- w_editor = document.getElementById(id + "_element_sectionform_id_temp").innerHTML;
357
- form_fields += id + "*:*id*:*";
358
- form_fields += "type_section_break" + "*:*type*:*";
359
- form_fields += "custom_" + id + "*:*w_field_label*:*";
360
- form_fields += w_editor + "*:*w_editor*:*";
361
- form_fields += "*:*new_field*:*";
362
- wdform_page.childNodes[q].innerHTML = "%" + id + " - " + "custom_" + id + "%";
363
- }
364
- }
365
- }
366
- document.getElementById('disabled_fields').value = disabled_ids;
367
- document.getElementById('label_order_current').value = tox;
368
- for (x = 0; x < l_id_array.length; x++) {
369
- if (l_id_removed[l_id_array[x]]) {
370
- tox = tox + l_id_array[x] + '#**id**#' + l_label_array[x] + '#**label**#' + l_type_array[x] + '#****#';
371
- }
372
- }
373
- document.getElementById('label_order').value = tox;
374
- document.getElementById('form_fields').value = form_fields;
375
- refresh_();
376
- return true;
377
- }
378
-
379
- gen = <?php echo (($id != 0) ? $row->counter : 1); ?>;
380
-
381
- function enable() {
382
- if (document.getElementById('formMakerDiv').style.display == 'block') {
383
- jQuery('#formMakerDiv').slideToggle(200);}else{jQuery('#formMakerDiv').slideToggle(400);
384
- }
385
- if (document.getElementById('formMakerDiv').offsetWidth) {
386
- document.getElementById('formMakerDiv1').style.width = (document.getElementById('formMakerDiv').offsetWidth - 60) + 'px';
387
- }
388
- if (document.getElementById('formMakerDiv1').style.display == 'block') {
389
- jQuery('#formMakerDiv1').slideToggle(200);
390
- }
391
- else {
392
- jQuery('#formMakerDiv1').slideToggle(400);
393
- }
394
- }
395
- function enable2() {
396
- if (document.getElementById('formMakerDiv').style.display == 'block') {
397
- jQuery('#formMakerDiv').slideToggle(200);
398
- }
399
- else {
400
- jQuery('#formMakerDiv').slideToggle(400);
401
- }
402
- if (document.getElementById('formMakerDiv').offsetWidth) {
403
- document.getElementById('formMakerDiv1').style.width = (document.getElementById('formMakerDiv').offsetWidth - 60) + 'px';
404
- }
405
- if (document.getElementById('formMakerDiv1').style.display == 'block') {
406
- jQuery('#formMakerDiv1').slideToggle(200);
407
- }
408
- else {
409
- jQuery('#formMakerDiv1').slideToggle(400);
410
- }
411
- }
412
- </script>
413
- <div class="fm-user-manual">
414
- <?php echo __("This section allows you to enable/disable fields in your form", "contact_form_maker"); ?>.
415
- <a style="color: blue; text-decoration: none;" target="_blank" href="http://web-dorado.com/wordpress-contact-form-builder-guide-4.html"><?php echo __("Read More in User Manual", "contact_form_maker"); ?></a>
416
- </div>
417
- <div class="fm-upgrade-pro">
418
- <a target="_blank" href="http://web-dorado.com/files/fromContactFormBuilder.php">
419
- <div class="fm-upgrade-img">
420
- UPGRADE TO PRO VERSION
421
- <span></span>
422
- </div>
423
- </a>
424
- </div>
425
- <div class="fm-clear"></div>
426
- <form class="wrap" id="manage_form" method="post" action="admin.php?page=manage_cfm">
427
- <?php wp_nonce_field('nonce_cfm', 'nonce_cfm'); ?>
428
- <h2 class="fm-h2-message"></h2>
429
- <div class="fm-page-header">
430
- <div style="float: left;">
431
- <div class="fm-logo-edit-page"></div>
432
- <div class="fm-title-edit-page">Contact<br />Form Builder</div>
433
- </div>
434
- <div class="fm-page-actions">
435
- <button class="fm-button save-button small" type="submit" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'save')">
436
- <span></span>
437
- <?php echo __("Save", "contact_form_maker"); ?>
438
- </button>
439
- <button class="fm-button apply-button small" type="submit" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'apply');">
440
- <span></span>
441
- <?php echo __("Apply", "contact_form_maker"); ?>
442
- </button>
443
- <?php
444
- if ($id) {
445
- ?>
446
- <button class="fm-button save-as-copy-button medium" type="submit" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'save_as_copy')">
447
- <span></span>
448
- <?php echo __("Save as Copy", "contact_form_maker"); ?>
449
- </button>
450
- <?php
451
- }
452
- ?>
453
- <button class="fm-button cancel-button small" type="submit" onclick="spider_set_input_value('task', 'cancel')">
454
- <span></span>
455
- <?php echo __("Cancel", "contact_form_maker"); ?>
456
- </button>
457
- </div>
458
- <div class="fm-clear"></div>
459
- </div>
460
- <div class="fm-theme-banner">
461
- <div class="fm-title">
462
- <span><?php echo __("Title", "contact_form_maker"); ?>:&nbsp;</span>
463
- <input id="title" name="title" value="<?php echo $row->title; ?>" />
464
- </div>
465
- <div class="fm-page-actions">
466
- <button class="fm-button form-options-button medium" type="submit" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'form_options');">
467
- <span></span>
468
- <?php echo __("Form Options", "contact_form_maker"); ?>
469
- </button>
470
- <button class="fm-button form-layout-button medium" type="submit" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'form_layout');">
471
- <span></span>
472
- <?php echo __("Form Layout", "contact_form_maker"); ?>
473
- </button>
474
- </div>
475
- </div>
476
- <div class="fm-clear"></div>
477
- <div class="fm-theme-banner">
478
- <div class="fm-theme" style="float:left;">
479
-
480
- <span><?php echo __("Theme", "contact_form_maker"); ?>:&nbsp;</span>
481
- <select id="theme" name="theme">
482
- <?php
483
- foreach ($themes as $theme) {
484
- ?>
485
- <option value="<?php echo $theme->id; ?>" <?php echo (($theme->id == $row->theme) ? 'selected="selected"' : ''); ?> <?php echo (($theme->id != 4) ? 'disabled="disabled" title="This theme is disabled in free version."' : ''); ?>><?php echo $theme->title; ?></option>
486
- <?php
487
- }
488
- ?>
489
- </select>
490
- <button id="preview_form" class="fm-button preview-button small" title="<?php echo __("Form Preview", "contact_form_maker"); ?>" onclick="tb_show('', '<?php echo add_query_arg(array('action' => 'ContactFormMakerPreview', 'form_id' => $row->id, 'test_theme' => $row->theme, 'width' => '1000', 'height' => '500', 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>'); return false;">
491
- <span></span>
492
- <?php echo __("Preview", "contact_form_maker"); ?>
493
- </button>
494
- <button id="edit_css" class="fm-button options-edit-button small" title="<?php echo __("Edit CSS","contact_form_maker"); ?>" onclick="alert('<?php echo addslashes(__("This option is disabled in free version.", "contact_form_maker")); ?>'); return false;">
495
- <span></span>
496
- <?php echo __("Edit CSS", "contact_form_maker"); ?>
497
- </button>
498
- <div class="spider_description spider_free_desc"><?php echo __("Themes are disabled in free version.","contact_form_maker"); ?></div>
499
- </div>
500
- </div>
501
- <div class="fm-clear"></div>
502
- <div id="formMakerDiv" onclick="close_window()"></div>
503
- <div id="formMakerDiv1">
504
- <table class="formMakerDiv1_table" border="0" width="100%" cellpadding="0" cellspacing="0" height="100%">
505
- <tr>
506
- <td style="padding:0px">
507
- <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
508
- <tr valign="top">
509
- <td width="50%" height="100%" align="left">
510
- <div id="edit_table" style="padding:0px; overflow-y:scroll; height:535px"></div>
511
- </td>
512
- <td align="center" valign="top" style="background: url("<?php echo WD_CFM_URL . '/images/border2.png'; ?>") repeat-y;">&nbsp;</td>
513
- <td style="padding:15px">
514
- <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
515
- <tr>
516
- <td align="right">
517
- <button alt="ADD" title="<?php echo __("add", "contact_form_maker"); ?>" class="fm-button field-save-button small" onClick="add(0); return false;">
518
- <?php echo __("save", "contact_form_maker"); ?>
519
- <span></span>
520
- </button>
521
- <button alt="CANCEL" title="<?php echo __("cancel", "contact_form_maker"); ?>" class="fm-button cancel-button small" onClick="close_window(); return false;">
522
- <?php echo __("cancel", "contact_form_maker"); ?>
523
- <span></span>
524
- </button>
525
- <hr style=" margin-bottom:10px" />
526
- </td>
527
- </tr>
528
- <tr height="100%" valign="top">
529
- <td id="show_table"></td>
530
- </tr>
531
- </table>
532
- </td>
533
- </tr>
534
- </table>
535
- </td>
536
- </tr>
537
- </table>
538
- <input type="hidden" id="old" />
539
- <input type="hidden" id="old_selected" />
540
- <input type="hidden" id="element_type" />
541
- <input type="hidden" id="editing_id" />
542
- <input type="hidden" value="<?php echo WD_CFM_URL; ?>" id="form_plugins_url" />
543
- <div id="main_editor" style="position: absolute; display: none; z-index: 140;">
544
- <?php
545
- if (user_can_richedit()) {
546
- wp_editor('', 'form_maker_editor', array('teeny' => FALSE, 'textarea_name' => 'form_maker_editor', 'media_buttons' => FALSE, 'textarea_rows' => 5));
547
- }
548
- else {
549
- ?>
550
- <textarea name="form_maker_editor" id="form_maker_editor" cols="40" rows="5" style="width: 440px; height: 350px;" class="mce_editable" aria-hidden="true"></textarea>
551
- <?php
552
- }
553
- ?>
554
- </div>
555
- </div>
556
- <?php
557
- if (!function_exists('the_editor')) {
558
- ?>
559
- <iframe id="tinymce" style="display: none;"></iframe>
560
- <?php
561
- }
562
- ?>
563
- <div class="fm-edit-content">
564
- <div class="fm-drag-and-drop">
565
- <div>
566
- <label for="enable_sortable">Enable Drag & Drop</label>
567
- <button name="sortable" id="enable_sortable" class="fm-checkbox-radio-button <?php echo $row->sortable == 1 ? 'fm-yes' : 'fm-no' ?>" onclick="enable_drag(this); return false;" value="<?php echo $row->sortable; ?>">
568
- <span></span>
569
- </button>
570
- <input type="hidden" name="sortable" id="sortable_hidden" value="<?php echo $row->sortable; ?>"/>
571
- </div>
572
- <div>
573
- <?php echo __("You can use drag and drop to move the fields up/down for the change of the order and left/right for creating columns within the form.", "contact_form_maker"); ?>
574
- </div>
575
- </div>
576
- <fieldset>
577
- <legend><h2 style="color: #00aeef;"><?php echo __("Form", "contact_form_maker"); ?></h2></legend>
578
- <div id="saving" style="display: none;">
579
- <div id="saving_text"><?php echo __("Saving", "contact_form_maker"); ?></div>
580
- <div id="fadingBarsG">
581
- <div id="fadingBarsG_1" class="fadingBarsG"></div>
582
- <div id="fadingBarsG_2" class="fadingBarsG"></div>
583
- <div id="fadingBarsG_3" class="fadingBarsG"></div>
584
- <div id="fadingBarsG_4" class="fadingBarsG"></div>
585
- <div id="fadingBarsG_5" class="fadingBarsG"></div>
586
- <div id="fadingBarsG_6" class="fadingBarsG"></div>
587
- <div id="fadingBarsG_7" class="fadingBarsG"></div>
588
- <div id="fadingBarsG_8" class="fadingBarsG"></div>
589
- </div>
590
- </div>
591
- <?php
592
- if ($id) {
593
- ?>
594
- <div id="take">
595
- <?php
596
- echo $row->form_front;
597
- ?>
598
- </div>
599
- <?php
600
- }
601
- ?>
602
- </fieldset>
603
- </div>
604
- <input type="hidden" name="form_front" id="form_front" />
605
- <input type="hidden" name="form_fields" id="form_fields" />
606
- <input type="hidden" name="public_key" id="public_key" />
607
- <input type="hidden" name="private_key" id="private_key" />
608
- <input type="hidden" name="recaptcha_theme" id="recaptcha_theme" />
609
- <input type="hidden" id="label_order" name="label_order" value="<?php echo $row->label_order; ?>" />
610
- <input type="hidden" id="label_order_current" name="label_order_current" value="<?php echo $row->label_order_current; ?>" />
611
- <input type="hidden" name="counter" id="counter" value="<?php echo $row->counter; ?>" />
612
- <input type="hidden" id="araqel" value="0" />
613
- <input type="hidden" name="disabled_fields" id="disabled_fields" value="<?php echo $row->disabled_fields; ?>">
614
- <?php
615
- if ($id) {
616
- ?>
617
- <script type="text/javascript">
618
- function formOnload() {
619
- for (t = 0; t < <?php echo $row->counter; ?>; t++) {
620
- if (document.getElementById("wdform_field" + t)) {
621
- if (document.getElementById("wdform_field" + t).parentNode.getAttribute("disabled")) {
622
- if (document.getElementById("wdform_field" + t).getAttribute("type") != 'type_section_break') {
623
- document.getElementById("wdform_field" + t).style.cssText = 'display: table-cell;';
624
- }
625
- document.getElementById("disable_field" + t).checked = false;
626
- document.getElementById("disable_field" + t).setAttribute("title", "Enable the field");
627
- document.getElementById("wdform_field" + t).parentNode.style.cssText = 'opacity: 0.4;';
628
- }
629
- else {
630
- document.getElementById( "disable_field" + t).checked = true;
631
- }
632
- }
633
- }
634
- for (t = 0; t < <?php echo $row->counter; ?>; t++) {
635
- if (document.getElementById(t + "_typeform_id_temp")) {
636
- if (document.getElementById(t + "_typeform_id_temp").value == "type_map") {
637
- if_gmap_init(t);
638
- for (q = 0; q < 20; q++) {
639
- if (document.getElementById(t + "_elementform_id_temp").getAttribute("long" + q)) {
640
- w_long = parseFloat(document.getElementById(t + "_elementform_id_temp").getAttribute("long" + q));
641
- w_lat = parseFloat(document.getElementById(t + "_elementform_id_temp").getAttribute("lat" + q));
642
- w_info = parseFloat(document.getElementById(t + "_elementform_id_temp").getAttribute("info" + q));
643
- add_marker_on_map(t, q, w_long, w_lat, w_info, false);
644
- }
645
- }
646
- }
647
- else if (document.getElementById(t + "_typeform_id_temp").value == "type_name") {
648
- var myu = t;
649
- jQuery(document).ready(function() {
650
- jQuery("#" + myu + "_mini_label_first").click(function() {
651
- if (jQuery(this).children('input').length == 0) {
652
- var first = "<input type='text' id='first' class='first' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
653
- jQuery(this).html(first);
654
- jQuery("input.first").focus();
655
- jQuery("input.first").blur(function() {
656
- var id_for_blur = document.getElementById('first').parentNode.id.split('_');
657
- var value = jQuery(this).val();
658
- jQuery("#" + id_for_blur[0] + "_mini_label_first").text(value);
659
- });
660
- }
661
- });
662
- jQuery("label#" + myu + "_mini_label_last").click(function() {
663
- if (jQuery(this).children('input').length == 0) {
664
- var last = "<input type='text' id='last' class='last' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
665
- jQuery(this).html(last);
666
- jQuery("input.last").focus();
667
- jQuery("input.last").blur(function() {
668
- var id_for_blur = document.getElementById('last').parentNode.id.split('_');
669
- var value = jQuery(this).val();
670
- jQuery("#" + id_for_blur[0] + "_mini_label_last").text(value);
671
- });
672
- }
673
- });
674
- jQuery("label#" + myu + "_mini_label_title").click(function() {
675
- if (jQuery(this).children('input').length == 0) {
676
- var title_ = "<input type='text' id='title_' class='title_' style='outline:none; border:none; background:none; width:50px;' value=\""+jQuery(this).text()+"\">";
677
- jQuery(this).html(title_);
678
- jQuery("input.title_").focus();
679
- jQuery("input.title_").blur(function() {
680
- var id_for_blur = document.getElementById('title_').parentNode.id.split('_');
681
- var value = jQuery(this).val();
682
- jQuery("#" + id_for_blur[0] + "_mini_label_title").text(value);
683
- });
684
- }
685
- });
686
- jQuery("label#" + myu + "_mini_label_middle").click(function() {
687
- if (jQuery(this).children('input').length == 0) {
688
- var middle = "<input type='text' id='middle' class='middle' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
689
- jQuery(this).html(middle);
690
- jQuery("input.middle").focus();
691
- jQuery("input.middle").blur(function() {
692
- var id_for_blur = document.getElementById('middle').parentNode.id.split('_');
693
- var value = jQuery(this).val();
694
- jQuery("#"+id_for_blur[0]+"_mini_label_middle").text(value);
695
- });
696
- }
697
- });
698
- });
699
- }
700
- else if (document.getElementById(t + "_typeform_id_temp").value == "type_phone") {
701
- var myu = t;
702
- jQuery(document).ready(function() {
703
- jQuery("label#"+myu+"_mini_label_area_code").click(function() {
704
- if (jQuery(this).children('input').length == 0) {
705
- var area_code = "<input type='text' id='area_code' class='area_code' size='10' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
706
- jQuery(this).html(area_code);
707
- jQuery("input.area_code").focus();
708
- jQuery("input.area_code").blur(function() {
709
- var id_for_blur = document.getElementById('area_code').parentNode.id.split('_');
710
- var value = jQuery(this).val();
711
- jQuery("#"+id_for_blur[0]+"_mini_label_area_code").text(value);
712
- });
713
- }
714
- });
715
- jQuery("label#"+myu+"_mini_label_phone_number").click(function() {
716
- if (jQuery(this).children('input').length == 0) {
717
- var phone_number = "<input type='text' id='phone_number' class='phone_number' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
718
- jQuery(this).html(phone_number);
719
- jQuery("input.phone_number").focus();
720
- jQuery("input.phone_number").blur(function() {
721
- var id_for_blur = document.getElementById('phone_number').parentNode.id.split('_');
722
- var value = jQuery(this).val();
723
- jQuery("#"+id_for_blur[0]+"_mini_label_phone_number").text(value);
724
- });
725
- }
726
- });
727
- });
728
- }
729
- else if (document.getElementById(t+"_typeform_id_temp").value == "type_address") {
730
- var myu = t;
731
- jQuery(document).ready(function() {
732
- jQuery("label#"+myu+"_mini_label_street1").click(function() {
733
- if (jQuery(this).children('input').length == 0) {
734
- var street1 = "<input type='text' id='street1' class='street1' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
735
- jQuery(this).html(street1);
736
- jQuery("input.street1").focus();
737
- jQuery("input.street1").blur(function() {
738
- var id_for_blur = document.getElementById('street1').parentNode.id.split('_');
739
- var value = jQuery(this).val();
740
- jQuery("#"+id_for_blur[0]+"_mini_label_street1").text(value);
741
- });
742
- }
743
- });
744
- jQuery("label#"+myu+"_mini_label_street2").click(function() {
745
- if (jQuery(this).children('input').length == 0) {
746
- var street2 = "<input type='text' id='street2' class='street2' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
747
- jQuery(this).html(street2);
748
- jQuery("input.street2").focus();
749
- jQuery("input.street2").blur(function() {
750
- var id_for_blur = document.getElementById('street2').parentNode.id.split('_');
751
- var value = jQuery(this).val();
752
- jQuery("#"+id_for_blur[0]+"_mini_label_street2").text(value);
753
- });
754
- }
755
- });
756
- jQuery("label#"+myu+"_mini_label_city").click(function() {
757
- if (jQuery(this).children('input').length == 0) {
758
- var city = "<input type='text' id='city' class='city' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
759
- jQuery(this).html(city);
760
- jQuery("input.city").focus();
761
- jQuery("input.city").blur(function() {
762
- var id_for_blur = document.getElementById('city').parentNode.id.split('_');
763
- var value = jQuery(this).val();
764
- jQuery("#"+id_for_blur[0]+"_mini_label_city").text(value);
765
- });
766
- }
767
- });
768
- jQuery("label#"+myu+"_mini_label_state").click(function() {
769
- if (jQuery(this).children('input').length == 0) {
770
- var state = "<input type='text' id='state' class='state' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
771
- jQuery(this).html(state);
772
- jQuery("input.state").focus();
773
- jQuery("input.state").blur(function() {
774
- var id_for_blur = document.getElementById('state').parentNode.id.split('_');
775
- var value = jQuery(this).val();
776
- jQuery("#"+id_for_blur[0]+"_mini_label_state").text(value);
777
- });
778
- }
779
- });
780
- jQuery("label#"+myu+"_mini_label_postal").click(function() {
781
- if (jQuery(this).children('input').length == 0) {
782
- var postal = "<input type='text' id='postal' class='postal' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
783
- jQuery(this).html(postal);
784
- jQuery("input.postal").focus();
785
- jQuery("input.postal").blur(function() {
786
- var id_for_blur = document.getElementById('postal').parentNode.id.split('_');
787
- var value = jQuery(this).val();
788
- jQuery("#"+id_for_blur[0]+"_mini_label_postal").text(value);
789
- });
790
- }
791
- });
792
- jQuery("label#"+myu+"_mini_label_country").click(function() {
793
- if (jQuery(this).children('input').length == 0) {
794
- var country = "<input type='country' id='country' class='country' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
795
- jQuery(this).html(country);
796
- jQuery("input.country").focus();
797
- jQuery("input.country").blur(function() {
798
- var id_for_blur = document.getElementById('country').parentNode.id.split('_');
799
- var value = jQuery(this).val();
800
- jQuery("#"+id_for_blur[0]+"_mini_label_country").text(value);
801
- });
802
- }
803
- });
804
- });
805
- }
806
- }
807
- }
808
- remove_whitespace(document.getElementById('take'));
809
- form_view = 1;
810
- form_view_count = 0;
811
- document.getElementById('araqel').value = 1;
812
- }
813
- jQuery(window).load(function () {
814
- formOnload();
815
- });
816
- jQuery(function() {
817
- jQuery('.wdform_section .wdform_column:last-child').each(function() {
818
- jQuery(this).parent().append(jQuery('<div></div>').addClass("wdform_column"));
819
- });
820
- sortable_columns();
821
- if (<?php echo $row->sortable ?> == 1) {
822
- jQuery(".wdform_arrows").hide();
823
- all_sortable_events();
824
- }
825
- else {
826
- jQuery('.wdform_column').sortable("disable");
827
- }
828
- });
829
- </script>
830
- <?php
831
- }
832
- else {
833
- ?>
834
- <script type="text/javascript">
835
- jQuery(function() {
836
- jQuery('.wdform_section .wdform_column:last-child').each(function() {
837
- jQuery(this).parent().append(jQuery('<div></div>').addClass("wdform_column"));
838
- });
839
- sortable_columns();
840
- all_sortable_events();
841
- });
842
- </script>
843
- <?php
844
- }
845
- ?>
846
- <input type="hidden" name="id" value="<?php echo $row->id; ?>" />
847
- <input type="hidden" name="cid[]" value="<?php echo $row->id; ?>" />
848
- <input type="hidden" id="task" name="task" value=""/>
849
- <input type="hidden" id="current_id" name="current_id" value="<?php echo $row->id; ?>" />
850
- </form>
851
- <?php
852
- }
853
-
854
- public function form_options($id) {
855
- $row = $this->model->get_row_data($id);
856
- $themes = $this->model->get_theme_rows_data();
857
- $page_title = $row->title . __(' form options', 'contact_form_maker');
858
- $label_id = array();
859
- $label_label = array();
860
- $label_type = array();
861
- $label_all = explode('#****#', $row->label_order_current);
862
- $label_all = array_slice($label_all, 0, count($label_all) - 1);
863
- foreach ($label_all as $key => $label_each) {
864
- $label_id_each = explode('#**id**#', $label_each);
865
- if ($label_id_each[0] == 22) {
866
- $default_subject = $key;
867
- }
868
- array_push($label_id, $label_id_each[0]);
869
- $label_order_each = explode('#**label**#', $label_id_each[1]);
870
- array_push($label_label, $label_order_each[0]);
871
- array_push($label_type, $label_order_each[1]);
872
- }
873
- $fields = explode('*:*id*:*type_submitter_mail*:*type*:*', $row->form_fields);
874
- $fields_count = count($fields);
875
- $disabled_fields = explode(',', $row->disabled_fields);
876
- $disabled_fields = array_slice($disabled_fields, 0, count($disabled_fields) - 1);
877
- $field_exist = array();
878
- for ($i = 0; $i < count($label_label); $i++) {
879
- if ($label_type[$i] == "type_submit_reset" || $label_type[$i] == "type_editor" || $label_type[$i] == "type_map" || $label_type[$i] == "type_captcha" || $label_type[$i] == "type_recaptcha" || $label_type[$i] == "type_button" || $label_type[$i] == "type_send_copy" || in_array($label_id[$i], $disabled_fields)) {
880
- $field_exist[$i] = FALSE;
881
- }
882
- else {
883
- $field_exist[$i] = TRUE;
884
- }
885
- }
886
- ?>
887
- <script>
888
-
889
- function fm_change_radio_checkbox_text(elem) {
890
- var labels_array = [];
891
- labels_array['mail_mode'] = ['Text', 'HTML'];
892
- labels_array['mail_mode_user'] = ['Text', 'HTML'];
893
- labels_array['value'] = ['1', '0'];
894
-
895
- jQuery(elem).val(labels_array['value'][jQuery(elem).val()]);
896
- jQuery(elem).next().val(jQuery(elem).val());
897
-
898
- var clicked_element = labels_array[jQuery(elem).attr('name')];
899
- jQuery(elem).find('label').html(clicked_element[jQuery(elem).val()]);
900
- if(jQuery( elem ).hasClass( "fm-text-yes" )) {
901
- jQuery( elem ).removeClass('fm-text-yes').addClass('fm-text-no');
902
- jQuery(elem).find("span").animate({
903
- right: parseInt(jQuery( elem ).css( "width")) - 14 + 'px'
904
- }, 400, function() {
905
- });
906
- }
907
- else {
908
- jQuery( elem ).removeClass('fm-text-no').addClass('fm-text-yes');
909
- jQuery(elem).find("span").animate({
910
- right: 0
911
- }, 400, function() {
912
- });
913
- }
914
- }
915
- gen = "<?php echo $row->counter; ?>";
916
- form_view_max = 20;
917
- function set_preview() {
918
- jQuery("#preview_form").attr("onclick", "tb_show('', '<?php echo add_query_arg(array('action' => 'ContactFormMakerPreview', 'form_id' => $row->id), admin_url('admin-ajax.php')); ?>&test_theme=" + jQuery('#theme').val() + "&width=1000&height=500&TB_iframe=1'); return false;");
919
- jQuery("#edit_css").attr("onclick", "tb_show('', '<?php echo add_query_arg(array('action' => 'ContactFormMakerEditCSS', 'form_id' => $row->id), admin_url('admin-ajax.php')); ?>&id=" + jQuery('#theme').val() + "&width=800&height=500&TB_iframe=1'); return false;");
920
- }
921
-
922
- function show_verify_options(s){
923
- if(s){
924
- jQuery(".verification_div").removeAttr( "style" );
925
- jQuery(".expire_link").removeAttr( "style" );
926
-
927
- } else{
928
- jQuery(".verification_div").css( 'display', 'none' );
929
- jQuery(".expire_link").css( 'display', 'none' );
930
- }
931
- }
932
- </script>
933
- <div style="font-size: 14px; font-weight: bold;">
934
- <?php echo __("This section allows you to edit form options", "contact_form_maker"); ?>.
935
- <a style="color: blue; text-decoration: none;" target="_blank" href="http://web-dorado.com/wordpress-contact-form-builder-guide-3.html"><?php echo __("Read More in User Manual", "contact_form_maker"); ?></a>
936
- </div>
937
- <div class="fm-upgrade-pro">
938
- <a target="_blank" href="http://web-dorado.com/files/fromContactFormBuilder.php">
939
- <div class="fm-upgrade-img">
940
- UPGRADE TO PRO VERSION
941
- <span></span>
942
- </div>
943
- </a>
944
- </div>
945
- <div class="fm-clear"></div>
946
- <form class="wrap" method="post" action="admin.php?page=manage_cfm" style="width: 99%;" name="adminForm" id="adminForm">
947
- <?php wp_nonce_field('nonce_cfm', 'nonce_cfm'); ?>
948
- <div class="fm-page-header">
949
- <div class="fm-page-title" style="width: inherit;">
950
- <?php echo $page_title; ?>
951
- </div>
952
- <div class="fm-page-actions">
953
- <button class="fm-button save-button small" onclick="if (spider_check_email('mailToAdd') ||
954
- spider_check_email('mail_from_other') ||
955
- spider_check_email('reply_to_other') ||
956
- spider_check_email('mail_cc') ||
957
- spider_check_email('mail_bcc') ||
958
- spider_check_email('mail_from_user') ||
959
- spider_check_email('reply_to_user') ||
960
- spider_check_email('mail_cc_user') ||
961
- spider_check_email('mail_bcc_user') ||
962
- spider_check_email('mail_from') ||
963
- spider_check_email('reply_to')) { return false; }; spider_set_input_value('task', 'save_options')"/>
964
- <span></span>
965
- <?php echo __("Save", "contact_form_maker"); ?>
966
- </button>
967
- <button class="fm-button apply-button small" onclick="if (spider_check_email('mailToAdd') ||
968
- spider_check_email('mail_from_other') ||
969
- spider_check_email('reply_to_other') ||
970
- spider_check_email('mail_cc') ||
971
- spider_check_email('mail_bcc') ||
972
- spider_check_email('mail_from_user') ||
973
- spider_check_email('reply_to_user') ||
974
- spider_check_email('mail_cc_user') ||
975
- spider_check_email('mail_bcc_user') ||
976
- spider_check_email('mail_from') ||
977
- spider_check_email('reply_to')) { return false; }; spider_set_input_value('task', 'apply_options')"/>
978
- <span></span>
979
- <?php echo __("Apply", "contact_form_maker"); ?>
980
- </button>
981
- <button class="fm-button cancel-button small" onclick="spider_set_input_value('task', 'cancel_options')"/>
982
- <span></span>
983
- <?php echo __("Cancel", "contact_form_maker"); ?>
984
- </button>
985
- </div>
986
- <div class="fm-clear"></div>
987
- </div>
988
- <div class="fm-form-options">
989
- <div class="submenu-box">
990
- <div class="submenu-pad">
991
- <ul id="submenu" class="configuration">
992
- <li>
993
- <a id="general" class="fm_fieldset_tab" onclick="form_maker_options_tabs('general')" href="#"><?php echo __("General Options", "contact_form_maker"); ?></a>
994
- </li>
995
- <li>
996
- <a id="custom" class="fm_fieldset_tab" onclick="form_maker_options_tabs('custom')" href="#"><?php echo __("Email Options", "contact_form_maker"); ?></a>
997
- </li>
998
- <li>
999
- <a id="actions" class="fm_fieldset_tab" onclick="form_maker_options_tabs('actions')" href="#"><?php echo __("Actions after Submission", "contact_form_maker"); ?></a>
1000
- </li>
1001
- </ul>
1002
- </div>
1003
- </div>
1004
- <fieldset id="general_fieldset" class="adminform fm_fieldset_deactive">
1005
- <legend><?php echo __("General Options", "contact_form_maker"); ?></legend>
1006
- <table class="admintable" style="float: left;">
1007
- <tr valign="top">
1008
- <td class="fm_options_label">
1009
- <label><?php echo __("Published", "contact_form_maker"); ?></label>
1010
- </td>
1011
- <td class="fm_options_value">
1012
- <button class="fm-checkbox-radio-button <?php echo $row->published == 1 ? 'fm-yes' : 'fm-no' ?>" onclick="fm_change_radio(this); return false;" value="<?php echo $row->published; ?>">
1013
- <span></span>
1014
- </button>
1015
- <input type="hidden" name="published" value="<?php echo $row->published; ?>"/>
1016
- </td>
1017
- </tr>
1018
- <tr valign="top">
1019
- <td class="fm_options_label">
1020
- <label><?php echo __("Save data(to database)", "contact_form_maker"); ?></label>
1021
- </td>
1022
- <td class="fm_options_value">
1023
- <button class="fm-checkbox-radio-button <?php echo $row->savedb == 1 ? 'fm-yes' : 'fm-no' ?>" onclick="fm_change_radio(this); return false;" value="<?php echo $row->savedb; ?>">
1024
- <span></span>
1025
- </button>
1026
- <input type="hidden" name="savedb" value="<?php echo $row->savedb; ?>"/>
1027
- </td>
1028
- </tr>
1029
- <tr valign="top">
1030
- <td class="fm_options_label">
1031
- <label for="theme"><?php echo __("Theme", "contact_form_maker"); ?></label>
1032
- </td>
1033
- <td class="fm_options_value">
1034
- <select id="theme" name="theme" style="width:260px;">
1035
- <?php
1036
- foreach ($themes as $theme) {
1037
- ?>
1038
- <option value="<?php echo $theme->id; ?>" <?php echo (($theme->id == $row->theme) ? 'selected="selected"' : ''); ?> <?php echo (($theme->id != 4) ? 'disabled="disabled" title="This theme is disabled in free version."' : ''); ?>><?php echo $theme->title; ?></option>
1039
- <?php
1040
- }
1041
- ?>
1042
- </select>
1043
- <button id="preview_form" class="fm-button preview-button small" title="<?php echo __("Form Preview", "contact_form_maker"); ?>" onclick="tb_show('', '<?php echo add_query_arg(array('action' => 'ContactFormMakerPreview', 'form_id' => $row->id, 'test_theme' => $row->theme, 'width' => '1000', 'height' => '500', 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>'); return false;">
1044
- <span></span>
1045
- <?php echo __("Preview", "contact_form_maker"); ?>
1046
- </button>
1047
- <button id="edit_css" class="fm-button options-edit-button small" title="<?php echo __("Edit CSS","contact_form_maker"); ?>" onclick="alert('<?php echo addslashes(__("This option is disabled in free version.", "contact_form_maker")); ?>'); return false;">
1048
- <span></span>
1049
- <?php echo __("Edit CSS", "contact_form_maker"); ?>
1050
- </button>
1051
- <div class="spider_description spider_free_desc"><?php echo __("Themes are disabled in free version.","contact_form_maker"); ?></div>
1052
- </td>
1053
- </tr>
1054
- <tr valign="top">
1055
- <td class="fm_options_label">
1056
- <label for="requiredmark"><?php echo __("Required fields mark", "contact_form_maker"); ?></label>
1057
- </td>
1058
- <td class="fm_options_value">
1059
- <input type="text" id="requiredmark" name="requiredmark" value="<?php echo $row->requiredmark; ?>" style="width: 250px;" />
1060
- </td>
1061
- </tr>
1062
- </table>
1063
- </fieldset>
1064
- <fieldset id="custom_fieldset" class="adminform fm_fieldset_deactive">
1065
- <legend><?php echo __("Email Options", "contact_form_maker"); ?></legend>
1066
- <table class="admintable">
1067
- <tr valign="top">
1068
- <td style="width: 75px; vertical-align: middle;">
1069
- <label><?php echo __("Send E-mail", "contact_form_maker"); ?></label>
1070
- </td>
1071
- <td style="padding: 15px;">
1072
- <button class="fm-checkbox-radio-button <?php echo $row->sendemail == 1 ? 'fm-yes' : 'fm-no' ?>" onclick="fm_change_radio(this); return false;" value="<?php echo $row->sendemail; ?>">
1073
- <span></span>
1074
- </button>
1075
- <input type="hidden" name="sendemail" value="<?php echo $row->sendemail; ?>"/>
1076
- </td>
1077
- </tr>
1078
- <tr>
1079
- <td style="padding: 15px;">
1080
- <label><?php echo __("Mailer", "contact_form_maker"); ?></label>
1081
- </td>
1082
- <td style="padding: 15px;">
1083
- <input type="radio" name="wpmail" id="wpmail_yes" value="1" <?php echo ($row->wpmail) ? 'checked="checked"' : ''; ?> /><label for="wpmail_yes">wp_mail() <?php echo __('function', 'contact_form_maker'); ?></label>
1084
- <input type="radio" name="wpmail" id="wpmail_no" value="0" <?php echo (!$row->wpmail) ? 'checked="checked"' : ''; ?> /><label for="wpmail_no">PHP mail() <?php echo __('function', 'contact_form_maker'); ?></label>
1085
- </td>
1086
- </tr>
1087
- </table>
1088
- <fieldset class="adminform fm_mail_options">
1089
- <legend><?php echo __("Email to Administrator", "contact_form_maker"); ?></legend>
1090
- <table class="admintable">
1091
- <tr valign="top">
1092
- <td class="fm_options_label">
1093
- <label for="mailToAdd"><?php echo __("Email to send submissions to", "contact_form_maker"); ?></label>
1094
- </td>
1095
- <td class="fm_options_value">
1096
- <input type="text" id="mailToAdd" name="mailToAdd" style="width: 250px;" />
1097
- <input type="hidden" id="mail" name="mail" value="<?php echo $row->mail; ?>" />
1098
- <img src="<?php echo WD_CFM_URL . '/images/add.png'; ?>"
1099
- style="vertical-align: middle; cursor: pointer;"
1100
- title="<?php echo __("Add more emails", "contact_form_maker"); ?>"
1101
- onclick="if (spider_check_email('mailToAdd')) {return false;};cfm_create_input('mail', 'mailToAdd', 'cfm_mail_div', '<?php echo WD_CFM_URL; ?>')" />
1102
- <div id="cfm_mail_div">
1103
- <?php
1104
- $mail_array = explode(',', $row->mail);
1105
- foreach ($mail_array as $mail) {
1106
- if ($mail && $mail != ',') {
1107
- ?>
1108
- <div class="fm_mail_input">
1109
- <?php echo $mail; ?>
1110
- <img src="<?php echo WD_CFM_URL; ?>/images/delete.png" class="fm_delete_img" onclick="fm_delete_mail(this, '<?php echo $mail; ?>')" title="<?php echo __("Delete Email", "contact_form_maker"); ?>" />
1111
- </div>
1112
- <?php
1113
- }
1114
- }
1115
- ?>
1116
- </div>
1117
- </td>
1118
- </tr>
1119
- <tr valign="top">
1120
- <td class="fm_options_label">
1121
- <label for="mail_from"><?php echo __("Email From", "contact_form_maker"); ?></label>
1122
- </td>
1123
- <td class="fm_options_value">
1124
- <?php
1125
- $is_other = TRUE;
1126
- $field_disabled = TRUE;
1127
- for ($i = 0; $i < $fields_count - 1; $i++) {
1128
- $field_id = substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*') + 15, strlen($fields[$i]));
1129
- if (!in_array($field_id, $disabled_fields)) {
1130
- $field_disabled = FALSE;
1131
- ?>
1132
- <div>
1133
- <input type="radio" name="mail_from" id="mail_from<?php echo $i; ?>" value="<?php echo $field_id; ?>" <?php echo ($field_id == $row->mail_from ? 'checked="checked"' : '' ); ?> onclick="wdhide('mail_from_other')" />
1134
- <label for="mail_from<?php echo $i; ?>"><?php echo substr($fields[$i + 1], 0, strpos($fields[$i + 1], '*:*w_field_label*:*')); ?></label>
1135
- </div>
1136
- <?php
1137
- if ($field_id == $row->mail_from) {
1138
- $is_other = FALSE;
1139
- }
1140
- }
1141
- }
1142
- ?>
1143
- <div style="<?php echo ($fields_count == 1 || $field_disabled) ? 'display:none;' : ''; ?>">
1144
- <input type="radio" id="other" name="mail_from" value="other" <?php echo ($is_other) ? 'checked="checked"' : ''; ?> onclick="wdshow('mail_from_other')" />
1145
- <label for="other">Other</label>
1146
- </div>
1147
- <input type="text" style="width: <?php echo ($fields_count == 1 || $field_disabled) ? '250px' : '235px; margin-left: 15px' ?>; display: <?php echo ($is_other) ? 'block;' : 'none;'; ?>" id="mail_from_other" name="mail_from_other" value="<?php echo ($is_other && !$field_disabled) ? $row->mail_from : ''; ?>" />
1148
- </td>
1149
- </tr>
1150
- <tr valign="top">
1151
- <td class="fm_options_label">
1152
- <label for="mail_from_name"><?php echo __("From Name", "contact_form_maker"); ?></label>
1153
- </td>
1154
- <td class="fm_options_value">
1155
- <input type="text" id="mail_from_name" name="mail_from_name" value="<?php echo $row->mail_from_name; ?>" style="width: 250px;" />
1156
- <img src="<?php echo WD_CFM_URL . '/images/add.png'; ?>" onclick="document.getElementById('mail_from_labels').style.display='block';" style="vertical-align: middle; display:inline-block; margin:0px; float:none; cursor: pointer;" />
1157
- <div style="position: relative; top: -3px;">
1158
- <div id="mail_from_labels" class="email_labels" style="display: none;">
1159
- <?php
1160
- for ($i = 0; $i < count($label_label); $i++) {
1161
- if (!$field_exist[$i]) {
1162
- continue;
1163
- }
1164
- $param = htmlspecialchars(addslashes($label_label[$i]));
1165
- $fld_label = htmlspecialchars($label_label[$i]);
1166
- if (strlen($fld_label) > 30) {
1167
- $fld_label = wordwrap($fld_label, 30);
1168
- $fld_label = explode("\n", $fld_label);
1169
- $fld_label = $fld_label[0] . ' ...';
1170
- }
1171
- ?>
1172
- <a onClick="insertAtCursor('mail_from_name', '<?php echo $param; ?>'); document.getElementById('mail_from_labels').style.display='none';" style="display: block; text-decoration:none;"><?php echo $fld_label; ?></a>
1173
- <?php
1174
- }
1175
- ?>
1176
- </div>
1177
- </div>
1178
- </td>
1179
- </tr>
1180
- <tr valign="top">
1181
- <td class="fm_options_label">
1182
- <label for="reply_to"><?php echo __("Reply to", "contact_form_maker"); ?><br/>(<?php echo __("if different from 'Email From'", "contact_form_maker"); ?>) </label>
1183
- </td>
1184
- <td class="fm_options_value">
1185
- <?php
1186
- $is_other = TRUE;
1187
- $field_disabled = TRUE;
1188
- for ($i = 0; $i < $fields_count - 1; $i++) {
1189
- $field_id = substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*') + 15, strlen($fields[$i]));
1190
- if (!in_array($field_id, $disabled_fields)) {
1191
- $field_disabled = FALSE;
1192
- ?>
1193
- <div>
1194
- <input type="radio" name="reply_to" id="reply_to<?php echo $i; ?>" value="<?php echo $field_id; ?>" <?php echo ($field_id == $row->reply_to ? 'checked="checked"' : ''); ?> onclick="wdhide('reply_to_other')" />
1195
- <label for="reply_to<?php echo $i; ?>"><?php echo substr($fields[$i + 1], 0, strpos($fields[$i + 1], '*:*w_field_label*:*')); ?></label>
1196
- </div>
1197
- <?php
1198
- if ($field_id == $row->reply_to) {
1199
- $is_other = FALSE;
1200
- }
1201
- }
1202
- }
1203
- ?>
1204
- <div style="<?php echo ($fields_count == 1 || $field_disabled) ? 'display: none;' : ''; ?>">
1205
- <input type="radio" id="other1" name="reply_to" value="other" <?php echo ($is_other) ? 'checked="checked"' : ''; ?> onclick="wdshow('reply_to_other')" />
1206
- <label for="other1"><?php echo __("Other","contact_form_maker"); ?></label>
1207
- </div>
1208
- <input type="text" style="width: <?php echo ($fields_count == 1 || $field_disabled) ? '250px' : '235px; margin-left: 15px'; ?>; display: <?php echo ($is_other) ? 'block;' : 'none;'; ?>" id="reply_to_other" name="reply_to_other" value="<?php echo ($is_other && $row->reply_to && !$field_disabled) ? $row->reply_to : ''; ?>" />
1209
- </td>
1210
- </tr>
1211
- <tr valign="top">
1212
- <td class="fm_options_label">
1213
- <label for="mail_cc">CC: </label>
1214
- </td>
1215
- <td class="fm_options_value">
1216
- <input type="text" id="mail_cc" name="mail_cc" value="<?php echo $row->mail_cc; ?>" style="width: 250px;" />
1217
- </td>
1218
- </tr>
1219
- <tr valign="top">
1220
- <td class="fm_options_label">
1221
- <label for="mail_bcc">BCC: </label>
1222
- </td>
1223
- <td class="fm_options_value">
1224
- <input type="text" id="mail_bcc" name="mail_bcc" value="<?php echo $row->mail_bcc; ?>" style="width: 250px;" />
1225
- </td>
1226
- </tr>
1227
- <tr valign="top">
1228
- <td class="fm_options_label">
1229
- <label for="mail_subject"><?php echo __("Subject", "contact_form_maker"); ?>: </label>
1230
- </td>
1231
- <td class="fm_options_value">
1232
- <input type="text" id="mail_subject" name="mail_subject" value="<?php echo (($row->mail_subject == '') && !in_array($label_id[$default_subject], $disabled_fields)) ? '%' . $label_label[$default_subject] . '%' : $row->mail_subject; ?>" style="width: 250px;" />
1233
- <img src="<?php echo WD_CFM_URL . '/images/add.png'; ?>" onclick="document.getElementById('mail_subject_labels').style.display='block';" style="vertical-align: middle; display:inline-block; margin:0px; float:none; cursor: pointer;" />
1234
- <div style="position: relative; top: -3px;">
1235
- <div id="mail_subject_labels" class="email_labels" style="display: none;" >
1236
- <?php
1237
- for ($i = 0; $i < count($label_label); $i++) {
1238
- if (!$field_exist[$i]) {
1239
- continue;
1240
- }
1241
- $param = htmlspecialchars(addslashes($label_label[$i]));
1242
- $fld_label = htmlspecialchars($label_label[$i]);
1243
- if (strlen($fld_label) > 30) {
1244
- $fld_label = wordwrap($fld_label, 30);
1245
- $fld_label = explode("\n", $fld_label);
1246
- $fld_label = $fld_label[0] . ' ...';
1247
- }
1248
- ?>
1249
- <a onClick="insertAtCursor('mail_subject', '<?php echo $param; ?>'); document.getElementById('mail_subject_labels').style.display='none';" style="display: block; text-decoration: none;"><?php echo $fld_label; ?></a>
1250
- <?php
1251
- }
1252
- ?>
1253
- </div>
1254
- </div>
1255
- </td>
1256
- </tr>
1257
- <tr valign="top">
1258
- <td class="fm_options_label" style="vertical-align: middle;">
1259
- <label><?php echo __("Mode", "contact_form_maker"); ?>: </label>
1260
- </td>
1261
- <td class="fm_options_value">
1262
- <button name="mail_mode"class="fm-checkbox-radio-button <?php echo $row->mail_mode == 1 ? 'fm-text-yes' : 'fm-text-no' ?> medium" onclick="fm_change_radio_checkbox_text(this); return false;" value="<?php echo $row->mail_mode ?>">
1263
- <label><?php echo $row->mail_mode == 1 ? 'HTML' : 'Text' ?></label>
1264
- <span></span>
1265
- </button>
1266
- <input type="hidden" name="mail_mode" value="<?php echo $row->mail_mode; ?>"/>
1267
- </td>
1268
- </tr>
1269
- <tr>
1270
- <td class="fm_options_label" valign="top">
1271
- <label><?php echo __("Custom Text in Email For Administrator", "contact_form_maker"); ?></label>
1272
- </td>
1273
- <td class="fm_options_value">
1274
- <div style="margin-bottom:5px">
1275
- <?php
1276
- for ($i = 0; $i < count($label_label); $i++) {
1277
- if (!$field_exist[$i]) {
1278
- continue;
1279
- }
1280
- $param = htmlspecialchars(addslashes($label_label[$i]));
1281
- ?>
1282
- <input style="border: 1px solid silver; font-size: 10px;" type="button" value="<?php echo htmlspecialchars($label_label[$i]); ?>" onClick="insertAtCursor('script_mail', '<?php echo $param; ?>')" />
1283
- <?php
1284
- }
1285
- ?>
1286
- <input style="border: 1px solid silver; font-size: 11px; font-weight: bold; display: block;" type="button" value="<?php echo __("All fields list", "contact_form_maker"); ?>" onClick="insertAtCursor('script_mail', 'all')" />
1287
- </div>
1288
- <?php
1289
- if (user_can_richedit()) {
1290
- wp_editor($row->script_mail, 'script_mail', array('teeny' => FALSE, 'textarea_name' => 'script_mail', 'media_buttons' => FALSE, 'textarea_rows' => 5));
1291
- }
1292
- else {
1293
- ?>
1294
- <textarea name="script_mail" id="script_mail" cols="20" rows="10" style="width: 300px; height: 450px;"><?php echo $row->script_mail; ?></textarea>
1295
- <?php
1296
- }
1297
- ?>
1298
- </td>
1299
- </tr>
1300
- </table>
1301
- </fieldset>
1302
- <fieldset class="fm_mail_options">
1303
- <legend><?php echo __("Email to User", "contact_form_maker"); ?></legend>
1304
- <table class="admintable">
1305
- <tr valign="top">
1306
- <td class="fm_options_label">
1307
- <label for="mail"><?php echo __("Send to", "contact_form_maker"); ?></label>
1308
- </td>
1309
- <td class="fm_options_value">
1310
- <?php
1311
- $fields = explode('*:*id*:*type_submitter_mail*:*type*:*', $row->form_fields);
1312
- $fields_count = count($fields);
1313
- if ($fields_count == 1) {
1314
- echo __("There is no email field", "contact_form_maker");
1315
- }
1316
- else {
1317
- for ($i = 0; $i < $fields_count - 1; $i++) {
1318
- ?>
1319
- <div>
1320
- <input type="checkbox" name="send_to<?php echo $i; ?>" id="send_to<?php echo $i; ?>" value="<?php echo substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*') + 15, strlen($fields[$i])); ?>" <?php echo (is_numeric(strpos($row->send_to, '*' . substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*') + 15, strlen($fields[$i])) . '*')) ? 'checked="checked"' : '' ); ?> />
1321
- <label for="send_to<?php echo $i; ?>"><?php echo substr($fields[$i + 1], 0, strpos($fields[$i + 1], '*:*w_field_label*:*')); ?></label>
1322
- </div>
1323
- <?php
1324
- }
1325
- }
1326
- ?>
1327
- </td>
1328
- </tr>
1329
- <tr valign="top">
1330
- <td class="fm_options_label">
1331
- <label for="mail_from_user"><?php echo __("Email From", "contact_form_maker"); ?></label>
1332
- </td>
1333
- <td class="fm_options_value">
1334
- <input type="text" id="mail_from_user" name="mail_from_user" value="<?php echo $row->mail_from_user; ?>" style="width: 250px;" />
1335
- </td>
1336
- </tr>
1337
- <tr valign="top">
1338
- <td class="fm_options_label">
1339
- <label for="mail_from_name_user"><?php echo __("From Name", "contact_form_maker"); ?></label>
1340
- </td>
1341
- <td class="fm_options_value">
1342
- <input type="text" id="mail_from_name_user" name="mail_from_name_user" value="<?php echo $row->mail_from_name_user; ?>" style="width: 250px;"/>
1343
- <img src="<?php echo WD_CFM_URL . '/images/add.png'; ?>" onclick="document.getElementById('mail_from_name_user_labels').style.display='block';" style="vertical-align: middle; display: inline-block; margin: 0px; float: none; cursor: pointer;" />
1344
- <div style="position: relative; top: -3px;">
1345
- <div id="mail_from_name_user_labels" class="email_labels" style="display:none;">
1346
- <?php
1347
- for ($i = 0; $i < count($label_label); $i++) {
1348
- if (!$field_exist[$i]) {
1349
- continue;
1350
- }
1351
- $param = htmlspecialchars(addslashes($label_label[$i]));
1352
- $fld_label = htmlspecialchars($label_label[$i]);
1353
- if (strlen($fld_label) > 30) {
1354
- $fld_label = wordwrap($fld_label, 30);
1355
- $fld_label = explode("\n", $fld_label);
1356
- $fld_label = $fld_label[0] . ' ...';
1357
- }
1358
- ?>
1359
- <a onClick="insertAtCursor('mail_from_name_user', '<?php echo $param; ?>'); document.getElementById('mail_from_name_user_labels').style.display='none';" style="display: block; text-decoration: none;"><?php echo $fld_label; ?></a>
1360
- <?php
1361
- }
1362
- ?>
1363
- </div>
1364
- </div>
1365
- </td>
1366
- </tr>
1367
- <tr valign="top">
1368
- <td class="fm_options_label">
1369
- <label for="reply_to_user"><?php echo __("Reply to", "contact_form_maker"); ?><br />(<?php echo __("if different from 'Email From'", "contact_form_maker"); ?>)</label>
1370
- </td>
1371
- <td class="fm_options_value">
1372
- <input type="text" id="reply_to_user" name="reply_to_user" value="<?php echo $row->reply_to_user; ?>" style="width: 250px;" />
1373
- </td>
1374
- </tr>
1375
- <tr valign="top">
1376
- <td class="fm_options_label">
1377
- <label for="mail_cc_user">CC: </label>
1378
- </td>
1379
- <td class="fm_options_value">
1380
- <input type="text" id="mail_cc_user" name="mail_cc_user" value="<?php echo $row->mail_cc_user; ?>" style="width: 250px;" />
1381
- </td>
1382
- </tr>
1383
- <tr valign="top">
1384
- <td class="fm_options_label">
1385
- <label for="mail_bcc_user">BCC: </label>
1386
- </td>
1387
- <td class="fm_options_value">
1388
- <input type="text" id="mail_bcc_user" name="mail_bcc_user" value="<?php echo $row->mail_bcc_user; ?>" style="width: 250px;" />
1389
- </td>
1390
- </tr>
1391
- <tr valign="top">
1392
- <td class="fm_options_label">
1393
- <label for="mail_subject_user"><?php echo __("Subject", "contact_form_maker"); ?>: </label>
1394
- </td>
1395
- <td class="fm_options_value">
1396
- <input type="text" id="mail_subject_user" name="mail_subject_user" value="<?php echo (($row->mail_subject_user == '') && !in_array($label_id[$default_subject], $disabled_fields)) ? '%' . $label_label[$default_subject] . '%' : $row->mail_subject_user; ?>" style="width: 250px;" />
1397
- <img src="<?php echo WD_CFM_URL . '/images/add.png'; ?>" onclick="document.getElementById('mail_subject_user_labels').style.display='block';" style="vertical-align: middle; display: inline-block; margin: 0px; float: none; cursor: pointer;" />
1398
- <div style="position: relative; top: -3px;">
1399
- <div id="mail_subject_user_labels" class="email_labels" style="display: none;">
1400
- <?php
1401
- for ($i = 0; $i < count($label_label); $i++) {
1402
- if (!$field_exist[$i]) {
1403
- continue;
1404
- }
1405
- $param = htmlspecialchars(addslashes($label_label[$i]));
1406
- $fld_label = htmlspecialchars($label_label[$i]);
1407
- if (strlen($fld_label) > 30) {
1408
- $fld_label = wordwrap($fld_label, 30);
1409
- $fld_label = explode("\n", $fld_label);
1410
- $fld_label = $fld_label[0] . ' ...';
1411
- }
1412
- ?>
1413
- <a onClick="insertAtCursor('mail_subject_user', '<?php echo $param; ?>'); document.getElementById('mail_subject_user_labels').style.display='none';" style="display: block; text-decoration: none;"><?php echo $fld_label; ?></a>
1414
- <?php
1415
- }
1416
- ?>
1417
- </div>
1418
- </div>
1419
- </td>
1420
- </tr>
1421
- <tr valign="top">
1422
- <td class="fm_options_label" style="vertical-align: middle;">
1423
- <label><?php echo __("Mode", "contact_form_maker"); ?>: </label>
1424
- </td>
1425
- <td class="fm_options_value">
1426
- <button name="mail_mode_user"class="fm-checkbox-radio-button <?php echo $row->mail_mode_user == 1 ? 'fm-text-yes' : 'fm-text-no' ?> medium" onclick="fm_change_radio_checkbox_text(this); return false;" value="<?php echo $row->mail_mode_user ?>">
1427
- <label><?php echo $row->mail_mode_user == 1 ? 'HTML' : 'Text' ?></label>
1428
- <span></span>
1429
- </button>
1430
- <input type="hidden" name="mail_mode_user" value="<?php echo $row->mail_mode_user; ?>"/>
1431
- </td>
1432
- </tr>
1433
- <tr>
1434
- <td class="fm_options_label" valign="top">
1435
- <label><?php echo __("Custom Text in Email For User", "contact_form_maker"); ?></label>
1436
- </td>
1437
- <td class="fm_options_value">
1438
- <div style="margin-bottom:5px">
1439
- <?php
1440
- for ($i = 0; $i < count($label_label); $i++) {
1441
- if (!$field_exist[$i]) {
1442
- continue;
1443
- }
1444
- $param = htmlspecialchars(addslashes($label_label[$i]));
1445
- ?>
1446
- <input style="border: 1px solid silver; font-size: 10px;" type="button" value="<?php echo htmlspecialchars($label_label[$i]); ?>" onClick="insertAtCursor('script_mail_user', '<?php echo $param; ?>')" />
1447
- <?php
1448
- }
1449
- ?>
1450
- <input style="border: 1px solid silver; font-size: 11px; font-weight: bold; display: block;" type="button" value="All fields list" onClick="insertAtCursor('script_mail_user', 'all')" />
1451
- </div>
1452
- <?php
1453
- if (user_can_richedit()) {
1454
- wp_editor($row->script_mail_user, 'script_mail_user', array('teeny' => FALSE, 'textarea_name' => 'script_mail_user', 'media_buttons' => FALSE, 'textarea_rows' => 5));
1455
- }
1456
- else {
1457
- ?>
1458
- <textarea name="script_mail_user" id="script_mail_user" cols="20" rows="10" style="width: 300px; height: 450px;"><?php echo $row->script_mail_user; ?></textarea>
1459
- <?php
1460
- }
1461
- ?>
1462
- </td>
1463
- </tr>
1464
- </table>
1465
- </fieldset>
1466
- </fieldset>
1467
- <fieldset id="actions_fieldset" class="adminform fm_fieldset_deactive">
1468
- <legend><?php echo __("Actions after submission", "contact_form_maker"); ?></legend>
1469
- <table class="admintable">
1470
- <tr valign="top">
1471
- <td class="fm_options_label">
1472
- <label><?php echo __("Action type", "contact_form_maker"); ?></label>
1473
- </td>
1474
- <td class="fm_options_value">
1475
- <div><input type="radio" name="submit_text_type" id="text_type_none" onclick="set_type('none')" value="1" <?php echo ($row->submit_text_type != 2 && $row->submit_text_type != 3 && $row->submit_text_type != 4 && $row->submit_text_type != 5) ? "checked" : ""; ?> /><label for="text_type_none"><?php echo __("Stay on Form", "contact_form_maker"); ?></label></div>
1476
- <div><input type="radio" name="submit_text_type" id="text_type_post" onclick="set_type('post')" value="2" <?php echo ($row->submit_text_type == 2) ? "checked" : ""; ?> /><label for="text_type_post"><?php echo __("Post","contact_form_maker"); ?></label></label></div>
1477
- <div><input type="radio" name="submit_text_type" id="text_type_page" onclick="set_type('page')" value="5" <?php echo ($row->submit_text_type == 5) ? "checked" : ""; ?> /><label for="text_type_page"><?php echo __("Page","contact_form_maker"); ?></label></label></div>
1478
- <div><input type="radio" name="submit_text_type" id="text_type_custom_text" onclick="set_type('custom_text')" value="3" <?php echo ($row->submit_text_type == 3 ) ? "checked" : ""; ?> /><label for="text_type_custom_text"><?php echo __("Custom Text","contact_form_maker"); ?></label></label></div>
1479
- <div><input type="radio" name="submit_text_type" id="text_type_url" onclick="set_type('url')" value="4" <?php echo ($row->submit_text_type == 4) ? "checked" : ""; ?> /><label for="text_type_url">URL</div>
1480
- </td>
1481
- </tr>
1482
- <tr id="none" <?php echo (($row->submit_text_type == 2 || $row->submit_text_type == 3 || $row->submit_text_type == 4 || $row->submit_text_type == 5) ? 'style="display:none"' : ''); ?>>
1483
- <td class="fm_options_label">
1484
- <label><?php echo __("Stay on Form", "contact_form_maker"); ?></label>
1485
- </td>
1486
- <td class="fm_options_value">
1487
- <img src="<?php echo WD_CFM_URL . '/images/tick.png'; ?>" border="0">
1488
- </td>
1489
- </tr>
1490
- <tr id="post" <?php echo (($row->submit_text_type != 2) ? 'style="display: none"' : ''); ?>>
1491
- <td class="fm_options_label">
1492
- <label for="post_name"><?php echo __("Post", "contact_form_maker"); ?></label>
1493
- </td>
1494
- <td class="fm_options_value">
1495
- <select id="post_name" name="post_name" style="width: 153px; font-size: 11px;">
1496
- <option value="0">- <?php echo __("Select Post", "contact_form_maker"); ?> -</option>
1497
- <?php
1498
- // The Query.
1499
- $args = array('posts_per_page' => 10000);
1500
- query_posts($args);
1501
- // The Loop.
1502
- while (have_posts()) : the_post(); ?>
1503
- <option value="<?php $x = get_permalink(get_the_ID()); echo $x; ?>" <?php echo (($row->article_id == $x) ? 'selected="selected"' : ''); ?>><?php the_title(); ?></option>
1504
- <?php
1505
- endwhile;
1506
- // Reset Query.
1507
- wp_reset_query();
1508
- ?>
1509
- </select>
1510
- </td>
1511
- </tr>
1512
- <tr id="page" <?php echo (($row->submit_text_type != 5) ? 'style="display: none"' : ''); ?>>
1513
- <td class="fm_options_label">
1514
- <label for="page_name"><?php echo __("Page", "contact_form_maker"); ?></label>
1515
- </td>
1516
- <td class="fm_options_value">
1517
- <select id="page_name" name="page_name" style="width: 153px; font-size: 11px;">
1518
- <option value="0">- <?php echo __("Select Page", "contact_form_maker"); ?> -</option>
1519
- <?php
1520
- // The Query.
1521
- $pages = get_pages();
1522
- // The Loop.
1523
- foreach ($pages as $page) {
1524
- $page_id = get_page_link($page->ID);
1525
- ?>
1526
- <option value="<?php echo $page_id; ?>" <?php echo (($row->article_id == $page_id) ? 'selected="selected"' : ''); ?>><?php echo $page->post_title; ?></option>
1527
- <?php
1528
- }
1529
- // Reset Query.
1530
- wp_reset_query();
1531
- ?>
1532
- </select>
1533
- </td>
1534
- </tr>
1535
- <tr id="custom_text" <?php echo (($row->submit_text_type != 3) ? 'style="display: none;"' : ''); ?>>
1536
- <td class="fm_options_label">
1537
- <label for="submit_text"><?php echo __("Text", "contact_form_maker"); ?></label>
1538
- </td>
1539
- <td class="fm_options_value">
1540
- <?php
1541
- if (user_can_richedit()) {
1542
- wp_editor($row->submit_text, 'submit_text', array('teeny' => FALSE, 'textarea_name' => 'submit_text', 'media_buttons' => FALSE, 'textarea_rows' => 5));
1543
- }
1544
- else {
1545
- ?>
1546
- <textarea cols="36" rows="5" id="submit_text" name="submit_text" style="resize: vertical;">
1547
- <?php echo $row->submit_text; ?>
1548
- </textarea>
1549
- <?php
1550
- }
1551
- ?>
1552
- </td>
1553
- </tr>
1554
- <tr id="url" <?php echo (($row->submit_text_type != 4 ) ? 'style="display:none"' : ''); ?>>
1555
- <td class="fm_options_label">
1556
- <label for="url">URL</label>
1557
- </td>
1558
- <td class="fm_options_value">
1559
- <input type="text" id="url" name="url" style="width:300px" value="<?php echo $row->url; ?>" />
1560
- </td>
1561
- </tr>
1562
- </table>
1563
- </fieldset>
1564
- </div>
1565
- <input type="hidden" name="fieldset_id" id="fieldset_id" value="<?php echo WDW_CFM_Library::get('fieldset_id', 'general'); ?>" />
1566
- <input type="hidden" id="task" name="task" value=""/>
1567
- <input type="hidden" id="current_id" name="current_id" value="<?php echo $row->id; ?>" />
1568
- </form>
1569
- <script>
1570
- jQuery(window).load(function () {
1571
- form_maker_options_tabs(jQuery("#fieldset_id").val());
1572
- spider_popup();
1573
- jQuery("#mail_from_labels, #mail_from_name_user_labels, #mail_subject_labels, #mail_subject_user_labels").mouseleave(function() {
1574
- jQuery(this).hide();
1575
- });
1576
- });
1577
- </script>
1578
- <?php
1579
- }
1580
-
1581
- public function form_layout($id) {
1582
- $row = $this->model->get_row_data($id);
1583
- $ids = array();
1584
- $types = array();
1585
- $labels = array();
1586
- $fields = explode('*:*new_field*:*', $row->form_fields);
1587
- $fields = array_slice($fields, 0, count($fields) - 1);
1588
- foreach ($fields as $field) {
1589
- $temp = explode('*:*id*:*', $field);
1590
- array_push($ids, $temp[0]);
1591
- $temp = explode('*:*type*:*', $temp[1]);
1592
- array_push($types, $temp[0]);
1593
- $temp = explode('*:*w_field_label*:*', $temp[1]);
1594
- array_push($labels, $temp[0]);
1595
- }
1596
- ?>
1597
- <script>
1598
- var form_front = '<?php echo addslashes($row->form_front);?>';
1599
- var custom_front = '<?php echo addslashes($row->custom_front);?>';
1600
- if (custom_front == '') {
1601
- custom_front = form_front;
1602
- }
1603
- function submitbutton() {
1604
- if (jQuery('#autogen_layout').is(':checked')) {
1605
- jQuery('#custom_front').val(custom_front.replace(/\s+/g, ' ').replace(/> </g, '><'));
1606
- }
1607
- else {
1608
- jQuery('#custom_front').val(editor.getValue().replace(/\s+/g, ' ').replace(/> </g, '><'));
1609
- }
1610
- }
1611
- function insertAtCursor_form(myId, myLabel) {
1612
- if (jQuery('#autogen_layout').is(':checked')) {
1613
- alert('<?php echo addslashes(__("Uncheck the Auto-Generate Layout box.", "contact_form_maker")); ?>');
1614
- return;
1615
- }
1616
- myValue = '<div wdid="' + myId + '" class="wdform_row">%' + myId + ' - ' + myLabel + '%</div>';
1617
- line = editor.getCursor().line;
1618
- ch = editor.getCursor().ch;
1619
- text = editor.getLine(line);
1620
- text1 = text.substr(0, ch);
1621
- text2 = text.substr(ch);
1622
- text = text1 + myValue + text2;
1623
- editor.setLine(line, text);
1624
- editor.focus();
1625
- }
1626
- function autogen(status) {
1627
- if (status) {
1628
- custom_front = editor.getValue();
1629
- editor.setValue(form_front);
1630
- editor.setOption('readOnly', true);
1631
- autoFormat();
1632
- }
1633
- else {
1634
- editor.setValue(custom_front);
1635
- editor.setOption('readOnly', false);
1636
- autoFormat();
1637
- }
1638
- }
1639
- function autoFormat() {
1640
- CodeMirror.commands["selectAll"](editor);
1641
- editor.autoFormatRange(editor.getCursor(true), editor.getCursor(false));
1642
- editor.scrollTo(0,0);
1643
- }
1644
- </script>
1645
-
1646
- <div class="fm_layout">
1647
- <form action="admin.php?page=manage_cfm" method="post" name="adminForm" enctype="multipart/form-data">
1648
- <?php wp_nonce_field('nonce_cfm', 'nonce_cfm'); ?>
1649
- <div class="fm-layout-actions">
1650
- <div class="fm-page-actions">
1651
- <button class="fm-button save-button small" onclick="submitbutton(); spider_set_input_value('task', 'save_layout');">
1652
- <?php echo __("Save", "contact_form_maker"); ?>
1653
- <span></span>
1654
- </button>
1655
- <button class="fm-button apply-button small" onclick="submitbutton(); spider_set_input_value('task', 'apply_layout');">
1656
- <?php echo __("Apply", "contact_form_maker"); ?>
1657
- <span></span>
1658
- </button>
1659
- <button class="fm-button cancel-button small" onclick="spider_set_input_value('task', 'cancel_options');">
1660
- <?php echo __("Cancel", "contact_form_maker"); ?>
1661
- <span></span>
1662
- </button>
1663
- </div>
1664
- </div>
1665
- <div class="fm-layout-content">
1666
- <h2 style="clear: both;"><?php echo __("Description", "contact_form_maker"); ?></h2>
1667
- <p><?php echo __("To customize the layout of the form fields uncheck the Auto-Generate Layout box and edit the HTML", "contact_form_maker"); ?>.</p>
1668
- <p><?php echo __("You can change positioning, add in-line styles and etc. Click on the provided buttons to add the corresponding field", "contact_form_maker"); ?>.<br /> <?php echo __("This will add the following line", "contact_form_maker"); ?>:
1669
- <b><span class="cm-tag">&lt;div</span> <span class="cm-attribute">wdid</span>=<span class="cm-string">"example_id"</span> <span class="cm-attribute">class</span>=<span class="cm-string">"wdform_row"</span><span class="cm-tag">&gt;</span>%example_id - Example%<span class="cm-tag">&lt;/div&gt;</span></b>
1670
- , <?php echo __("where", "contact_form_maker"); ?> <b><span class="cm-tag">&lt;div&gt;</span></b> <?php echo __("is used to set a row","contact_form_maker"); ?>.</p>
1671
- <p><?php echo __("To return to the default settings you should check Auto-Generate Layout box","contact_form_maker"); ?>.</p>
1672
- <h3 style="color:red"><?php echo __("Notice","contact_form_maker"); ?></h3>
1673
- <p><?php echo __("Make sure not to publish the same field twice. This will cause malfunctioning of the form","contact_form_maker"); ?>.</p>
1674
- <hr/>
1675
- <label for="autogen_layout" style="font-size: 20px; line-height: 45px; margin-left: 10px;"><?php echo __("Auto Generate Layout", "contact_form_maker"); ?>? </label>
1676
- <input type="checkbox" value="1" name="autogen_layout" id="autogen_layout" <?php echo (($row->autogen_layout) ? 'checked="checked"' : ''); ?> />
1677
- <input type="hidden" name="custom_front" id="custom_front" value="" />
1678
-
1679
- <input type="hidden" id="task" name="task" value=""/>
1680
- <input type="hidden" id="current_id" name="current_id" value="<?php echo $row->id; ?>" />
1681
- </div>
1682
- </form>
1683
- <br/>
1684
- <?php
1685
- foreach($ids as $key => $id) {
1686
- if ($types[$key] != "type_section_break") {
1687
- ?>
1688
- <button onClick="insertAtCursor_form('<?php echo $ids[$key]; ?>','<?php echo $labels[$key]; ?>')" class="fm_label_buttons" title="<?php echo $labels[$key]; ?>"><?php echo $labels[$key]; ?></button>
1689
- <?php
1690
- }
1691
- }
1692
- ?>
1693
- <br /><br />
1694
- <button class="fm_submit_layout button button-secondary button-hero" onclick="autoFormat()"><strong><?php echo __("Apply Source Formatting", "contact_form_maker"); ?></strong> <em>(<?php echo __("ctrl-enter", "contact_form_maker"); ?>)</em></button>
1695
- <textarea id="source" name="source" style="display: none;"></textarea>
1696
- </div>
1697
- <script>
1698
- var editor = CodeMirror.fromTextArea(document.getElementById("source"), {
1699
- lineNumbers: true,
1700
- lineWrapping: true,
1701
- mode: "htmlmixed",
1702
- value: form_front
1703
- });
1704
- if (jQuery('#autogen_layout').is(':checked')) {
1705
- editor.setOption('readOnly', true);
1706
- editor.setValue(form_front);
1707
- }
1708
- else {
1709
- editor.setOption('readOnly', false);
1710
- editor.setValue(custom_front);
1711
- }
1712
- jQuery('#autogen_layout').click(function() {
1713
- autogen(jQuery(this).is(':checked'));
1714
- });
1715
- autoFormat();
1716
- </script>
1717
- <?php
1718
- }
1719
-
1720
- ////////////////////////////////////////////////////////////////////////////////////////
1721
- // Getters & Setters //
1722
- ////////////////////////////////////////////////////////////////////////////////////////
1723
- ////////////////////////////////////////////////////////////////////////////////////////
1724
- // Private Methods //
1725
- ////////////////////////////////////////////////////////////////////////////////////////
1726
- ////////////////////////////////////////////////////////////////////////////////////////
1727
- // Listeners //
1728
- ////////////////////////////////////////////////////////////////////////////////////////
1729
  }
1
+ <?php
2
+
3
+ class CFMViewManage_cfm {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ private $model;
14
+
15
+ ////////////////////////////////////////////////////////////////////////////////////////
16
+ // Constructor & Destructor //
17
+ ////////////////////////////////////////////////////////////////////////////////////////
18
+ public function __construct($model) {
19
+ $this->model = $model;
20
+ }
21
+
22
+ ////////////////////////////////////////////////////////////////////////////////////////
23
+ // Public Methods //
24
+ ////////////////////////////////////////////////////////////////////////////////////////
25
+ public function display() {
26
+ $rows_data = $this->model->get_rows_data();
27
+ $page_nav = $this->model->page_nav();
28
+ $search_value = ((isset($_POST['search_value'])) ? esc_html($_POST['search_value']) : '');
29
+ $search_select_value = ((isset($_POST['search_select_value'])) ? (int) $_POST['search_select_value'] : 0);
30
+ $asc_or_desc = ((isset($_POST['asc_or_desc'])) ? esc_html($_POST['asc_or_desc']) : 'asc');
31
+ $order_by = (isset($_POST['order_by']) ? esc_html($_POST['order_by']) : 'id');
32
+ $order_class = 'manage-column column-title sorted ' . $asc_or_desc;
33
+ $ids_string = '';
34
+ ?>
35
+ <div class="fm-user-manual">
36
+ <?php echo __("This section allows you to edit forms", "contact_form_maker"); ?>.
37
+ <a style="color: blue; text-decoration: none;" target="_blank" href="http://web-dorado.com/wordpress-contact-form-builder-guide-2.html"><?php echo __("Read More in User Manual","contact_form_maker"); ?></a>
38
+ <p><?php echo __("There is no possibility of adding new form fields, whereas you can edit, enable/disable the current fields included in each form","contact_form_maker"); ?>.</p>
39
+ </div>
40
+ <div class="fm-upgrade-pro">
41
+ <a target="_blank" href="http://web-dorado.com/files/fromContactFormBuilder.php">
42
+ <div class="fm-upgrade-img">
43
+ UPGRADE TO PRO VERSION
44
+ <span></span>
45
+ </div>
46
+ </a>
47
+ </div>
48
+ <div class="fm-clear"></div>
49
+ <form onkeypress="spider_doNothing(event)" class="wrap" id="manage_form" method="post" action="admin.php?page=manage_cfm" >
50
+ <?php wp_nonce_field('nonce_cfm', 'nonce_cfm'); ?>
51
+ <div class="fm-page-banner">
52
+ <div class="fm-logo">
53
+ </div>
54
+ <div class="fm-logo-title">Contact</br>Form Builder</div>
55
+ </div>
56
+ <div class="tablenav top">
57
+ <?php
58
+ WDW_CFM_Library::search(__("Title", "contact_form_maker"), $search_value, 'manage_form');
59
+ WDW_CFM_Library::html_page_nav($page_nav['total'], $page_nav['limit'], 'manage_form');
60
+ ?>
61
+ </div>
62
+ <table class="wp-list-table widefat fixed pages">
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 ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html($_POST['order_by']) == 'id') && esc_html($_POST['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 ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html($_POST['order_by']) == 'title') && esc_html($_POST['asc_or_desc']) == 'asc') ? 'desc' : 'asc'); ?>');
76
+ spider_form_submit(event, 'manage_form')" href="">
77
+ <span><?php echo __("Title", "contact_form_maker"); ?></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 ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html($_POST['order_by']) == 'mail') && esc_html($_POST['asc_or_desc']) == 'asc') ? 'desc' : 'asc'); ?>');
83
+ spider_form_submit(event, 'manage_form')" href="">
84
+ <span><?php echo __("Email to send submissions to", "contact_form_maker"); ?></span><span class="sorting-indicator"></span></a>
85
+ </th>
86
+ <th class="table_xxl_col"><?php echo __("Shortcode", "contact_form_maker"); ?></th>
87
+ <th class="table_xxl_col">PHP <?php echo __("function", "contact_form_maker"); ?></th>
88
+ <th class="table_medium_col"><?php echo __("Preview", "contact_form_maker"); ?></th>
89
+ <th class="table_medium_col"><?php echo __("Edit", "contact_form_maker"); ?></th>
90
+ <th class="table_medium_col"><a title="<?php echo __("Delete selected items", "contact_form_maker"); ?>" href="" onclick="if (confirm('<?php echo addslashes(__("Do you want to delete selected items?", "contact_form_maker")); ?>')) {
91
+ spider_set_input_value('task', 'delete_all');
92
+ spider_form_submit(event, 'manage_form');
93
+ } else {
94
+ return false;
95
+ }"><?php echo __("Delete", "contact_form_maker"); ?></a></th>
96
+ </thead>
97
+ <tbody id="tbody_arr">
98
+ <?php
99
+ if ($rows_data) {
100
+ foreach ($rows_data as $row_data) {
101
+ $alternate = (!isset($alternate) || $alternate == 'class="alternate"') ? '' : 'class="alternate"';
102
+ $old = '';
103
+ if (isset($row_data->form) && ($row_data->form != '')) {
104
+ $old = '_old';
105
+ }
106
+ ?>
107
+ <tr id="tr_<?php echo $row_data->id; ?>" <?php echo $alternate; ?>>
108
+ <td class="table_small_col check-column">
109
+ <input id="check_<?php echo $row_data->id; ?>" name="check_<?php echo $row_data->id; ?>" type="checkbox"/>
110
+ </td>
111
+ <td class="table_small_col"><?php echo $row_data->id; ?></td>
112
+ <td>
113
+ <a onclick="spider_set_input_value('task', 'edit<?php echo $old; ?>');
114
+ spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
115
+ spider_form_submit(event, 'manage_form')" href="" title="<?php echo __("Edit", "contact_form_maker"); ?>"><?php echo $row_data->title; ?></a>
116
+ </td>
117
+ <td><?php echo $row_data->mail; ?></td>
118
+ <td class="table_big_col">
119
+ <input type="text" value='[Contact_Form_Builder id="<?php echo $row_data->id; ?>"]' onclick="spider_select_value(this)" readonly="readonly" style="padding-left: 1px; padding-right: 1px;"/>
120
+ </td>
121
+ <td class="table_large_col">
122
+ <input type="text" value='&#60;?php wd_contact_form_builder(<?php echo $row_data->id; ?>); ?&#62;' onclick="spider_select_value(this)" readonly="readonly" style="padding-left: 1px; padding-right: 1px;"/>
123
+ </td>
124
+ <td class="table_medium_col">
125
+ <button class="fm-icon preview-icon" title="<?php echo __("Form Preview", "contact_form_maker"); ?>" onclick="tb_show('', '<?php echo add_query_arg(array('action' => 'ContactFormMakerPreview', 'form_id' => $row_data->id, 'test_theme' => $row_data->theme, 'width' => '1000', 'height' => '500', 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>'); return false;">
126
+ <span></span>
127
+ </button>
128
+ </td>
129
+ <td class="table_small_col">
130
+ <button onclick="spider_set_input_value('task', 'edit<?php echo $old; ?>');
131
+ spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
132
+ spider_form_submit(event, 'manage_form')" class="fm-icon edit-icon" title="<?php echo __("Edit the form", "contact_form_maker"); ?>">
133
+ <span></span>
134
+ </button>
135
+ </td>
136
+ <td class="table_small_col">
137
+ <button onclick="spider_set_input_value('task', 'delete');
138
+ spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
139
+ spider_form_submit(event, 'manage_form')" class="fm-icon delete-icon" title="<?php echo __("Delete the form", "contact_form_maker"); ?>">
140
+ <span></span>
141
+ </button>
142
+ </td>
143
+ </tr>
144
+ <?php
145
+ $ids_string .= $row_data->id . ',';
146
+ }
147
+ }
148
+ ?>
149
+ </tbody>
150
+ </table>
151
+ <input id="task" name="task" type="hidden" value=""/>
152
+ <input id="current_id" name="current_id" type="hidden" value=""/>
153
+ <input id="ids_string" name="ids_string" type="hidden" value="<?php echo $ids_string; ?>"/>
154
+ <input id="asc_or_desc" name="asc_or_desc" type="hidden" value="asc"/>
155
+ <input id="order_by" name="order_by" type="hidden" value="<?php echo $order_by; ?>"/>
156
+ </form>
157
+ <?php
158
+ }
159
+
160
+ public function edit($id) {
161
+ $row = $this->model->get_row_data($id);
162
+ $themes = $this->model->get_theme_rows_data();
163
+ $labels = array();
164
+ $label_id = array();
165
+ $label_order_original = array();
166
+ $label_type = array();
167
+ $label_all = explode('#****#', $row->label_order);
168
+ $label_all = array_slice($label_all, 0, count($label_all) - 1);
169
+ foreach ($label_all as $key => $label_each) {
170
+ $label_id_each = explode('#**id**#', $label_each);
171
+ array_push($label_id, $label_id_each[0]);
172
+ $label_oder_each = explode('#**label**#', $label_id_each[1]);
173
+ array_push($label_order_original, addslashes($label_oder_each[0]));
174
+ array_push($label_type, $label_oder_each[1]);
175
+ }
176
+ $labels['id'] = '"' . implode('","', $label_id) . '"';
177
+ $labels['label'] = '"' . implode('","', $label_order_original) . '"';
178
+ $labels['type'] = '"' . implode('","', $label_type) . '"';
179
+ $page_title = (($id != 0) ? __('Edit form ', 'contact_form_maker') . $row->title : __('Create new form', 'contact_form_maker'));
180
+ ?>
181
+ <script type="text/javascript">
182
+ var contact_form_maker_plugin_url = "<?php echo WD_CFM_URL; ?>";
183
+ form_view = 1;
184
+ form_view_count = 1;
185
+ form_view_max = 1;
186
+ function set_preview() {
187
+ jQuery("#preview_form").attr("onclick", "tb_show('', '<?php echo add_query_arg(array('action' => 'ContactFormMakerPreview', 'form_id' => $row->id), admin_url('admin-ajax.php')); ?>&test_theme=" + jQuery('#theme').val() + "&width=1000&height=500&TB_iframe=1'); return false;");
188
+ jQuery("#edit_css").attr("onclick", "tb_show('', '<?php echo add_query_arg(array('action' => 'ContactFormMakerEditCSS', 'form_id' => $row->id), admin_url('admin-ajax.php')); ?>&id=" + jQuery('#theme').val() + "&width=800&height=500&TB_iframe=1'); return false;");
189
+ }
190
+ function submitbutton() {
191
+ <?php
192
+ if ($id) {
193
+ ?>
194
+ if (!document.getElementById('araqel') || (document.getElementById('araqel').value == '0')) {
195
+ alert('<?php echo addslashes(__("Please wait while page loading", "contact_form_maker")); ?>.');
196
+ return false;
197
+ }
198
+ <?php
199
+ }
200
+ ?>
201
+ tox = '';
202
+ form_fields = '';
203
+ disabled_ids = '';
204
+ l_id_array = [<?php echo $labels['id']?>];
205
+ l_label_array = [<?php echo $labels['label']?>];
206
+ l_type_array = [<?php echo $labels['type']?>];
207
+ l_id_removed = [];
208
+ document.getElementById('take').style.display = "none";
209
+ document.getElementById('saving').style.display = "block";
210
+ remove_whitespace(document.getElementById('take'));
211
+ for (x = 0; x < l_id_array.length; x++) {
212
+ l_id_removed[l_id_array[x]] = true;
213
+ }
214
+ if (document.getElementById('form_id_tempform_view1')) {
215
+ wdform_page = document.getElementById('form_id_tempform_view1');
216
+ remove_whitespace(wdform_page);
217
+ n = wdform_page.childNodes.length - 2;
218
+ for (q = 0; q <= n; q++) {
219
+ if (!wdform_page.childNodes[q].getAttribute("wdid")) {
220
+ wdform_section = wdform_page.childNodes[q];
221
+ for (x = 0; x < wdform_section.childNodes.length; x++) {
222
+ wdform_column = wdform_section.childNodes[x];
223
+ if (wdform_column.firstChild) {
224
+ for (y=0; y < wdform_column.childNodes.length; y++) {
225
+ is_in_old = false;
226
+ wdform_row = wdform_column.childNodes[y];
227
+ if (wdform_row.nodeType == 3) {
228
+ continue;
229
+ }
230
+ wdid = wdform_row.getAttribute("wdid");
231
+ if (!wdid) {
232
+ continue;
233
+ }
234
+ l_id = wdid;
235
+ l_label = document.getElementById(wdid + '_element_labelform_id_temp').innerHTML;
236
+ l_label = l_label.replace(/(\r\n|\n|\r)/gm," ");
237
+ // wdtype = wdform_row.firstChild.getAttribute('type');
238
+ wdtype = jQuery(wdform_row).find("div[id^=wdform_field]").eq(0).attr('type');
239
+ if (wdform_row.getAttribute("disabled")) {
240
+ if (wdtype != "type_address") {
241
+ disabled_ids += wdid + ',';
242
+ }
243
+ else {
244
+ disabled_ids += wdid + ',' + (parseInt(wdid)+1) + ','+(parseInt(wdid)+2)+ ',' +(parseInt(wdid)+3)+ ',' +(parseInt(wdid)+4)+ ','+(parseInt(wdid)+5) + ',';
245
+ }
246
+ }
247
+ for (z = 0; z < l_id_array.length; z++) {
248
+ if (l_id_array[z] == wdid) {
249
+ if (l_type_array[z] == "type_address") {
250
+ if (document.getElementById(l_id + "_mini_label_street1")) {
251
+ l_id_removed[l_id_array[z]] = false;
252
+ }
253
+ if (document.getElementById(l_id + "_mini_label_street2")) {
254
+ l_id_removed[parseInt(l_id_array[z]) + 1] = false;
255
+ }
256
+ if (document.getElementById(l_id + "_mini_label_city")) {
257
+ l_id_removed[parseInt(l_id_array[z]) + 2] = false;
258
+ }
259
+ if (document.getElementById(l_id + "_mini_label_state")) {
260
+ l_id_removed[parseInt(l_id_array[z]) + 3] = false;
261
+ }
262
+ if (document.getElementById(l_id+"_mini_label_postal")) {
263
+ l_id_removed[parseInt(l_id_array[z]) + 4] = false;
264
+ }
265
+ if (document.getElementById(l_id+"_mini_label_country")) {
266
+ l_id_removed[parseInt(l_id_array[z]) + 5] = false;
267
+ }
268
+ z = z + 5;
269
+ }
270
+ else {
271
+ l_id_removed[l_id] = false;
272
+ }
273
+ }
274
+ }
275
+ if (wdtype == "type_address") {
276
+ addr_id = parseInt(wdid);
277
+ id_for_country = addr_id;
278
+ if (document.getElementById(id_for_country + "_mini_label_street1"))
279
+ tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_street1").innerHTML + '#**label**#type_address#****#';
280
+ addr_id++;
281
+ if (document.getElementById(id_for_country + "_mini_label_street2"))
282
+ tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_street2").innerHTML + '#**label**#type_address#****#';
283
+ addr_id++;
284
+ if (document.getElementById(id_for_country+"_mini_label_city"))
285
+ tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_city").innerHTML + '#**label**#type_address#****#';
286
+ addr_id++;
287
+ if (document.getElementById(id_for_country + "_mini_label_state"))
288
+ tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_state").innerHTML + '#**label**#type_address#****#';
289
+ addr_id++;
290
+ if (document.getElementById(id_for_country + "_mini_label_postal"))
291
+ tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_postal").innerHTML + '#**label**#type_address#****#';
292
+ addr_id++;
293
+ if (document.getElementById(id_for_country+"_mini_label_country")) {
294
+ tox=tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_country").innerHTML + '#**label**#type_address#****#';
295
+ }
296
+ }
297
+ else {
298
+ tox = tox + wdid + '#**id**#' + l_label + '#**label**#' + wdtype + '#****#';
299
+ }
300
+ id = wdid;
301
+ form_fields += wdid + "*:*id*:*";
302
+ form_fields += wdtype + "*:*type*:*";
303
+ w_choices = new Array();
304
+ w_choices_checked = new Array();
305
+ w_choices_disabled = new Array();
306
+ w_allow_other_num = 0;
307
+ w_property = new Array();
308
+ w_property_type = new Array();
309
+ w_property_values = new Array();
310
+ w_choices_price = new Array();
311
+ if (document.getElementById(id+'_element_labelform_id_temp').innerHTML) {
312
+ w_field_label = document.getElementById(id + '_element_labelform_id_temp').innerHTML.replace(/(\r\n|\n|\r)/gm," ");
313
+ }
314
+ else {
315
+ w_field_label = " ";
316
+ }
317
+ if (document.getElementById(id + '_label_sectionform_id_temp')) {
318
+ if (document.getElementById(id + '_label_sectionform_id_temp').style.display == "block") {
319
+ w_field_label_pos = "top";
320
+ }
321
+ else {
322
+ w_field_label_pos = "left";
323
+ }
324
+ }
325
+ if (document.getElementById(id + "_elementform_id_temp")) {
326
+ s = document.getElementById(id + "_elementform_id_temp").style.width;
327
+ w_size=s.substring(0,s.length - 2);
328
+ }
329
+ if (document.getElementById(id + "_label_sectionform_id_temp")) {
330
+ s = document.getElementById(id + "_label_sectionform_id_temp").style.width;
331
+ w_field_label_size = s.substring(0, s.length - 2);
332
+ }
333
+ if (document.getElementById(id + "_requiredform_id_temp")) {
334
+ w_required = document.getElementById(id + "_requiredform_id_temp").value;
335
+ }
336
+ if (document.getElementById(id + "_uniqueform_id_temp")) {
337
+ w_unique = document.getElementById(id + "_uniqueform_id_temp").value;
338
+ }
339
+ if (document.getElementById(id + '_label_sectionform_id_temp')) {
340
+ w_class = document.getElementById(id + '_label_sectionform_id_temp').getAttribute("class");
341
+ if (!w_class) {
342
+ w_class = "";
343
+ }
344
+ }
345
+ gen_form_fields();
346
+ wdform_row.innerHTML = "%" + id + " - " + l_label + "%";
347
+ }
348
+ }
349
+ }
350
+ }
351
+ else {
352
+ id = wdform_page.childNodes[q].getAttribute("wdid");
353
+ if (wdform_page.childNodes[q].getAttribute("disabled")) {
354
+ disabled_ids += id + ',';
355
+ }
356
+ w_editor = document.getElementById(id + "_element_sectionform_id_temp").innerHTML;
357
+ form_fields += id + "*:*id*:*";
358
+ form_fields += "type_section_break" + "*:*type*:*";
359
+ form_fields += "custom_" + id + "*:*w_field_label*:*";
360
+ form_fields += w_editor + "*:*w_editor*:*";
361
+ form_fields += "*:*new_field*:*";
362
+ wdform_page.childNodes[q].innerHTML = "%" + id + " - " + "custom_" + id + "%";
363
+ }
364
+ }
365
+ }
366
+ document.getElementById('disabled_fields').value = disabled_ids;
367
+ document.getElementById('label_order_current').value = tox;
368
+ for (x = 0; x < l_id_array.length; x++) {
369
+ if (l_id_removed[l_id_array[x]]) {
370
+ tox = tox + l_id_array[x] + '#**id**#' + l_label_array[x] + '#**label**#' + l_type_array[x] + '#****#';
371
+ }
372
+ }
373
+ document.getElementById('label_order').value = tox;
374
+ document.getElementById('form_fields').value = form_fields;
375
+ refresh_();
376
+ return true;
377
+ }
378
+
379
+ gen = <?php echo (($id != 0) ? $row->counter : 1); ?>;
380
+
381
+ function enable() {
382
+ if (document.getElementById('formMakerDiv').style.display == 'block') {
383
+ jQuery('#formMakerDiv').slideToggle(200);}else{jQuery('#formMakerDiv').slideToggle(400);
384
+ }
385
+ if (document.getElementById('formMakerDiv').offsetWidth) {
386
+ document.getElementById('formMakerDiv1').style.width = (document.getElementById('formMakerDiv').offsetWidth - 60) + 'px';
387
+ }
388
+ if (document.getElementById('formMakerDiv1').style.display == 'block') {
389
+ jQuery('#formMakerDiv1').slideToggle(200);
390
+ }
391
+ else {
392
+ jQuery('#formMakerDiv1').slideToggle(400);
393
+ }
394
+ }
395
+ function enable2() {
396
+ if (document.getElementById('formMakerDiv').style.display == 'block') {
397
+ jQuery('#formMakerDiv').slideToggle(200);
398
+ }
399
+ else {
400
+ jQuery('#formMakerDiv').slideToggle(400);
401
+ }
402
+ if (document.getElementById('formMakerDiv').offsetWidth) {
403
+ document.getElementById('formMakerDiv1').style.width = (document.getElementById('formMakerDiv').offsetWidth - 60) + 'px';
404
+ }
405
+ if (document.getElementById('formMakerDiv1').style.display == 'block') {
406
+ jQuery('#formMakerDiv1').slideToggle(200);
407
+ }
408
+ else {
409
+ jQuery('#formMakerDiv1').slideToggle(400);
410
+ }
411
+ }
412
+ </script>
413
+ <div class="fm-user-manual">
414
+ <?php echo __("This section allows you to enable/disable fields in your form", "contact_form_maker"); ?>.
415
+ <a style="color: blue; text-decoration: none;" target="_blank" href="http://web-dorado.com/wordpress-contact-form-builder-guide-4.html"><?php echo __("Read More in User Manual", "contact_form_maker"); ?></a>
416
+ </div>
417
+ <div class="fm-upgrade-pro">
418
+ <a target="_blank" href="http://web-dorado.com/files/fromContactFormBuilder.php">
419
+ <div class="fm-upgrade-img">
420
+ UPGRADE TO PRO VERSION
421
+ <span></span>
422
+ </div>
423
+ </a>
424
+ </div>
425
+ <div class="fm-clear"></div>
426
+ <form class="wrap" id="manage_form" method="post" action="admin.php?page=manage_cfm">
427
+ <?php wp_nonce_field('nonce_cfm', 'nonce_cfm'); ?>
428
+ <h2 class="fm-h2-message"></h2>
429
+ <div class="fm-page-header">
430
+ <div style="float: left;">
431
+ <div class="fm-logo-edit-page"></div>
432
+ <div class="fm-title-edit-page">Contact<br />Form Builder</div>
433
+ </div>
434
+ <div class="fm-page-actions">
435
+ <button class="fm-button save-button small" type="submit" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'save')">
436
+ <span></span>
437
+ <?php echo __("Save", "contact_form_maker"); ?>
438
+ </button>
439
+ <button class="fm-button apply-button small" type="submit" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'apply');">
440
+ <span></span>
441
+ <?php echo __("Apply", "contact_form_maker"); ?>
442
+ </button>
443
+ <?php
444
+ if ($id) {
445
+ ?>
446
+ <button class="fm-button save-as-copy-button medium" type="submit" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'save_as_copy')">
447
+ <span></span>
448
+ <?php echo __("Save as Copy", "contact_form_maker"); ?>
449
+ </button>
450
+ <?php
451
+ }
452
+ ?>
453
+ <button class="fm-button cancel-button small" type="submit" onclick="spider_set_input_value('task', 'cancel')">
454
+ <span></span>
455
+ <?php echo __("Cancel", "contact_form_maker"); ?>
456
+ </button>
457
+ </div>
458
+ <div class="fm-clear"></div>
459
+ </div>
460
+ <div class="fm-theme-banner">
461
+ <div class="fm-title">
462
+ <span><?php echo __("Title", "contact_form_maker"); ?>:&nbsp;</span>
463
+ <input id="title" name="title" value="<?php echo $row->title; ?>" />
464
+ </div>
465
+ <div class="fm-page-actions">
466
+ <button class="fm-button form-options-button medium" type="submit" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'form_options');">
467
+ <span></span>
468
+ <?php echo __("Form Options", "contact_form_maker"); ?>
469
+ </button>
470
+ <button class="fm-button form-layout-button medium" type="submit" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'form_layout');">
471
+ <span></span>
472
+ <?php echo __("Form Layout", "contact_form_maker"); ?>
473
+ </button>
474
+ </div>
475
+ </div>
476
+ <div class="fm-clear"></div>
477
+ <div class="fm-theme-banner">
478
+ <div class="fm-theme" style="float:left;">
479
+
480
+ <span><?php echo __("Theme", "contact_form_maker"); ?>:&nbsp;</span>
481
+ <select id="theme" name="theme">
482
+ <?php
483
+ foreach ($themes as $theme) {
484
+ ?>
485
+ <option value="<?php echo $theme->id; ?>" <?php echo (($theme->id == $row->theme) ? 'selected="selected"' : ''); ?> <?php echo (($theme->id != 4) ? 'disabled="disabled" title="This theme is disabled in free version."' : ''); ?>><?php echo $theme->title; ?></option>
486
+ <?php
487
+ }
488
+ ?>
489
+ </select>
490
+ <button id="preview_form" class="fm-button preview-button small" title="<?php echo __("Form Preview", "contact_form_maker"); ?>" onclick="tb_show('', '<?php echo add_query_arg(array('action' => 'ContactFormMakerPreview', 'form_id' => $row->id, 'test_theme' => $row->theme, 'width' => '1000', 'height' => '500', 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>'); return false;">
491
+ <span></span>
492
+ <?php echo __("Preview", "contact_form_maker"); ?>
493
+ </button>
494
+ <button id="edit_css" class="fm-button options-edit-button small" title="<?php echo __("Edit CSS","contact_form_maker"); ?>" onclick="alert('<?php echo addslashes(__("This option is disabled in free version.", "contact_form_maker")); ?>'); return false;">
495
+ <span></span>
496
+ <?php echo __("Edit CSS", "contact_form_maker"); ?>
497
+ </button>
498
+ <div class="spider_description spider_free_desc"><?php echo __("Themes are disabled in free version.","contact_form_maker"); ?></div>
499
+ </div>
500
+ </div>
501
+ <div class="fm-clear"></div>
502
+ <div id="formMakerDiv" onclick="close_window()"></div>
503
+ <div id="formMakerDiv1">
504
+ <table class="formMakerDiv1_table" border="0" width="100%" cellpadding="0" cellspacing="0" height="100%">
505
+ <tr>
506
+ <td style="padding:0px">
507
+ <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
508
+ <tr valign="top">
509
+ <td width="50%" height="100%" align="left">
510
+ <div id="edit_table" style="padding:0px; overflow-y:scroll; height:535px"></div>
511
+ </td>
512
+ <td align="center" valign="top" style="background: url("<?php echo WD_CFM_URL . '/images/border2.png'; ?>") repeat-y;">&nbsp;</td>
513
+ <td style="padding:15px">
514
+ <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
515
+ <tr>
516
+ <td align="right">
517
+ <button alt="ADD" title="<?php echo __("add", "contact_form_maker"); ?>" class="fm-button field-save-button small" onClick="add(0); return false;">
518
+ <?php echo __("save", "contact_form_maker"); ?>
519
+ <span></span>
520
+ </button>
521
+ <button alt="CANCEL" title="<?php echo __("cancel", "contact_form_maker"); ?>" class="fm-button cancel-button small" onClick="close_window(); return false;">
522
+ <?php echo __("cancel", "contact_form_maker"); ?>
523
+ <span></span>
524
+ </button>
525
+ <hr style=" margin-bottom:10px" />
526
+ </td>
527
+ </tr>
528
+ <tr height="100%" valign="top">
529
+ <td id="show_table"></td>
530
+ </tr>
531
+ </table>
532
+ </td>
533
+ </tr>
534
+ </table>
535
+ </td>
536
+ </tr>
537
+ </table>
538
+ <input type="hidden" id="old" />
539
+ <input type="hidden" id="old_selected" />
540
+ <input type="hidden" id="element_type" />
541
+ <input type="hidden" id="editing_id" />
542
+ <input type="hidden" value="<?php echo WD_CFM_URL; ?>" id="form_plugins_url" />
543
+ <div id="main_editor" style="position: absolute; display: none; z-index: 140;">
544
+ <?php
545
+ if (user_can_richedit()) {
546
+ wp_editor('', 'form_maker_editor', array('teeny' => FALSE, 'textarea_name' => 'form_maker_editor', 'media_buttons' => FALSE, 'textarea_rows' => 5));
547
+ }
548
+ else {
549
+ ?>
550
+ <textarea name="form_maker_editor" id="form_maker_editor" cols="40" rows="5" style="width: 440px; height: 350px;" class="mce_editable" aria-hidden="true"></textarea>
551
+ <?php
552
+ }
553
+ ?>
554
+ </div>
555
+ </div>
556
+ <?php
557
+ if (!function_exists('the_editor')) {
558
+ ?>
559
+ <iframe id="tinymce" style="display: none;"></iframe>
560
+ <?php
561
+ }
562
+ ?>
563
+ <div class="fm-edit-content">
564
+ <div class="fm-drag-and-drop">
565
+ <div>
566
+ <label for="enable_sortable">Enable Drag & Drop</label>
567
+ <button name="sortable" id="enable_sortable" class="fm-checkbox-radio-button <?php echo $row->sortable == 1 ? 'fm-yes' : 'fm-no' ?>" onclick="enable_drag(this); return false;" value="<?php echo $row->sortable; ?>">
568
+ <span></span>
569
+ </button>
570
+ <input type="hidden" name="sortable" id="sortable_hidden" value="<?php echo $row->sortable; ?>"/>
571
+ </div>
572
+ <div>
573
+ <?php echo __("You can use drag and drop to move the fields up/down for the change of the order and left/right for creating columns within the form.", "contact_form_maker"); ?>
574
+ </div>
575
+ </div>
576
+ <fieldset>
577
+ <legend><h2 style="color: #00aeef;"><?php echo __("Form", "contact_form_maker"); ?></h2></legend>
578
+ <div id="saving" style="display: none;">
579
+ <div id="saving_text"><?php echo __("Saving", "contact_form_maker"); ?></div>
580
+ <div id="fadingBarsG">
581
+ <div id="fadingBarsG_1" class="fadingBarsG"></div>
582
+ <div id="fadingBarsG_2" class="fadingBarsG"></div>
583
+ <div id="fadingBarsG_3" class="fadingBarsG"></div>
584
+ <div id="fadingBarsG_4" class="fadingBarsG"></div>
585
+ <div id="fadingBarsG_5" class="fadingBarsG"></div>
586
+ <div id="fadingBarsG_6" class="fadingBarsG"></div>
587
+ <div id="fadingBarsG_7" class="fadingBarsG"></div>
588
+ <div id="fadingBarsG_8" class="fadingBarsG"></div>
589
+ </div>
590
+ </div>
591
+ <?php
592
+ if ($id) {
593
+ ?>
594
+ <div id="take">
595
+ <?php
596
+ echo $row->form_front;
597
+ ?>
598
+ </div>
599
+ <?php
600
+ }
601
+ ?>
602
+ </fieldset>
603
+ </div>
604
+ <input type="hidden" name="form_front" id="form_front" />
605
+ <input type="hidden" name="form_fields" id="form_fields" />
606
+ <input type="hidden" name="public_key" id="public_key" />
607
+ <input type="hidden" name="private_key" id="private_key" />
608
+ <input type="hidden" name="recaptcha_theme" id="recaptcha_theme" />
609
+ <input type="hidden" id="label_order" name="label_order" value="<?php echo $row->label_order; ?>" />
610
+ <input type="hidden" id="label_order_current" name="label_order_current" value="<?php echo $row->label_order_current; ?>" />
611
+ <input type="hidden" name="counter" id="counter" value="<?php echo $row->counter; ?>" />
612
+ <input type="hidden" id="araqel" value="0" />
613
+ <input type="hidden" name="disabled_fields" id="disabled_fields" value="<?php echo $row->disabled_fields; ?>">
614
+ <?php
615
+ if ($id) {
616
+ ?>
617
+ <script type="text/javascript">
618
+ function formOnload() {
619
+ for (t = 0; t < <?php echo $row->counter; ?>; t++) {
620
+ if (document.getElementById("wdform_field" + t)) {
621
+ if (document.getElementById("wdform_field" + t).parentNode.getAttribute("disabled")) {
622
+ if (document.getElementById("wdform_field" + t).getAttribute("type") != 'type_section_break') {
623
+ document.getElementById("wdform_field" + t).style.cssText = 'display: table-cell;';
624
+ }
625
+ document.getElementById("disable_field" + t).checked = false;
626
+ document.getElementById("disable_field" + t).setAttribute("title", "Enable the field");
627
+ document.getElementById("wdform_field" + t).parentNode.style.cssText = 'opacity: 0.4;';
628
+ }
629
+ else {
630
+ document.getElementById( "disable_field" + t).checked = true;
631
+ }
632
+ }
633
+ }
634
+ for (t = 0; t < <?php echo $row->counter; ?>; t++) {
635
+ if (document.getElementById(t + "_typeform_id_temp")) {
636
+ if (document.getElementById(t + "_typeform_id_temp").value == "type_map") {
637
+ if_gmap_init(t);
638
+ for (q = 0; q < 20; q++) {
639
+ if (document.getElementById(t + "_elementform_id_temp").getAttribute("long" + q)) {
640
+ w_long = parseFloat(document.getElementById(t + "_elementform_id_temp").getAttribute("long" + q));
641
+ w_lat = parseFloat(document.getElementById(t + "_elementform_id_temp").getAttribute("lat" + q));
642
+ w_info = parseFloat(document.getElementById(t + "_elementform_id_temp").getAttribute("info" + q));
643
+ add_marker_on_map(t, q, w_long, w_lat, w_info, false);
644
+ }
645
+ }
646
+ }
647
+ else if (document.getElementById(t + "_typeform_id_temp").value == "type_name") {
648
+ var myu = t;
649
+ jQuery(document).ready(function() {
650
+ jQuery("#" + myu + "_mini_label_first").click(function() {
651
+ if (jQuery(this).children('input').length == 0) {
652
+ var first = "<input type='text' id='first' class='first' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
653
+ jQuery(this).html(first);
654
+ jQuery("input.first").focus();
655
+ jQuery("input.first").blur(function() {
656
+ var id_for_blur = document.getElementById('first').parentNode.id.split('_');
657
+ var value = jQuery(this).val();
658
+ jQuery("#" + id_for_blur[0] + "_mini_label_first").text(value);
659
+ });
660
+ }
661
+ });
662
+ jQuery("label#" + myu + "_mini_label_last").click(function() {
663
+ if (jQuery(this).children('input').length == 0) {
664
+ var last = "<input type='text' id='last' class='last' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
665
+ jQuery(this).html(last);
666
+ jQuery("input.last").focus();
667
+ jQuery("input.last").blur(function() {
668
+ var id_for_blur = document.getElementById('last').parentNode.id.split('_');
669
+ var value = jQuery(this).val();
670
+ jQuery("#" + id_for_blur[0] + "_mini_label_last").text(value);
671
+ });
672
+ }
673
+ });
674
+ jQuery("label#" + myu + "_mini_label_title").click(function() {
675
+ if (jQuery(this).children('input').length == 0) {
676
+ var title_ = "<input type='text' id='title_' class='title_' style='outline:none; border:none; background:none; width:50px;' value=\""+jQuery(this).text()+"\">";
677
+ jQuery(this).html(title_);
678
+ jQuery("input.title_").focus();
679
+ jQuery("input.title_").blur(function() {
680
+ var id_for_blur = document.getElementById('title_').parentNode.id.split('_');
681
+ var value = jQuery(this).val();
682
+ jQuery("#" + id_for_blur[0] + "_mini_label_title").text(value);
683
+ });
684
+ }
685
+ });
686
+ jQuery("label#" + myu + "_mini_label_middle").click(function() {
687
+ if (jQuery(this).children('input').length == 0) {
688
+ var middle = "<input type='text' id='middle' class='middle' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
689
+ jQuery(this).html(middle);
690
+ jQuery("input.middle").focus();
691
+ jQuery("input.middle").blur(function() {
692
+ var id_for_blur = document.getElementById('middle').parentNode.id.split('_');
693
+ var value = jQuery(this).val();
694
+ jQuery("#"+id_for_blur[0]+"_mini_label_middle").text(value);
695
+ });
696
+ }
697
+ });
698
+ });
699
+ }
700
+ else if (document.getElementById(t + "_typeform_id_temp").value == "type_phone") {
701
+ var myu = t;
702
+ jQuery(document).ready(function() {
703
+ jQuery("label#"+myu+"_mini_label_area_code").click(function() {
704
+ if (jQuery(this).children('input').length == 0) {
705
+ var area_code = "<input type='text' id='area_code' class='area_code' size='10' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
706
+ jQuery(this).html(area_code);
707
+ jQuery("input.area_code").focus();
708
+ jQuery("input.area_code").blur(function() {
709
+ var id_for_blur = document.getElementById('area_code').parentNode.id.split('_');
710
+ var value = jQuery(this).val();
711
+ jQuery("#"+id_for_blur[0]+"_mini_label_area_code").text(value);
712
+ });
713
+ }
714
+ });
715
+ jQuery("label#"+myu+"_mini_label_phone_number").click(function() {
716
+ if (jQuery(this).children('input').length == 0) {
717
+ var phone_number = "<input type='text' id='phone_number' class='phone_number' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
718
+ jQuery(this).html(phone_number);
719
+ jQuery("input.phone_number").focus();
720
+ jQuery("input.phone_number").blur(function() {
721
+ var id_for_blur = document.getElementById('phone_number').parentNode.id.split('_');
722
+ var value = jQuery(this).val();
723
+ jQuery("#"+id_for_blur[0]+"_mini_label_phone_number").text(value);
724
+ });
725
+ }
726
+ });
727
+ });
728
+ }
729
+ else if (document.getElementById(t+"_typeform_id_temp").value == "type_address") {
730
+ var myu = t;
731
+ jQuery(document).ready(function() {
732
+ jQuery("label#"+myu+"_mini_label_street1").click(function() {
733
+ if (jQuery(this).children('input').length == 0) {
734
+ var street1 = "<input type='text' id='street1' class='street1' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
735
+ jQuery(this).html(street1);
736
+ jQuery("input.street1").focus();
737
+ jQuery("input.street1").blur(function() {
738
+ var id_for_blur = document.getElementById('street1').parentNode.id.split('_');
739
+ var value = jQuery(this).val();
740
+ jQuery("#"+id_for_blur[0]+"_mini_label_street1").text(value);
741
+ });
742
+ }
743
+ });
744
+ jQuery("label#"+myu+"_mini_label_street2").click(function() {
745
+ if (jQuery(this).children('input').length == 0) {
746
+ var street2 = "<input type='text' id='street2' class='street2' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
747
+ jQuery(this).html(street2);
748
+ jQuery("input.street2").focus();
749
+ jQuery("input.street2").blur(function() {
750
+ var id_for_blur = document.getElementById('street2').parentNode.id.split('_');
751
+ var value = jQuery(this).val();
752
+ jQuery("#"+id_for_blur[0]+"_mini_label_street2").text(value);
753
+ });
754
+ }
755
+ });
756
+ jQuery("label#"+myu+"_mini_label_city").click(function() {
757
+ if (jQuery(this).children('input').length == 0) {
758
+ var city = "<input type='text' id='city' class='city' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
759
+ jQuery(this).html(city);
760
+ jQuery("input.city").focus();
761
+ jQuery("input.city").blur(function() {
762
+ var id_for_blur = document.getElementById('city').parentNode.id.split('_');
763
+ var value = jQuery(this).val();
764
+ jQuery("#"+id_for_blur[0]+"_mini_label_city").text(value);
765
+ });
766
+ }
767
+ });
768
+ jQuery("label#"+myu+"_mini_label_state").click(function() {
769
+ if (jQuery(this).children('input').length == 0) {
770
+ var state = "<input type='text' id='state' class='state' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
771
+ jQuery(this).html(state);
772
+ jQuery("input.state").focus();
773
+ jQuery("input.state").blur(function() {
774
+ var id_for_blur = document.getElementById('state').parentNode.id.split('_');
775
+ var value = jQuery(this).val();
776
+ jQuery("#"+id_for_blur[0]+"_mini_label_state").text(value);
777
+ });
778
+ }
779
+ });
780
+ jQuery("label#"+myu+"_mini_label_postal").click(function() {
781
+ if (jQuery(this).children('input').length == 0) {
782
+ var postal = "<input type='text' id='postal' class='postal' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
783
+ jQuery(this).html(postal);
784
+ jQuery("input.postal").focus();
785
+ jQuery("input.postal").blur(function() {
786
+ var id_for_blur = document.getElementById('postal').parentNode.id.split('_');
787
+ var value = jQuery(this).val();
788
+ jQuery("#"+id_for_blur[0]+"_mini_label_postal").text(value);
789
+ });
790
+ }
791
+ });
792
+ jQuery("label#"+myu+"_mini_label_country").click(function() {
793
+ if (jQuery(this).children('input').length == 0) {
794
+ var country = "<input type='country' id='country' class='country' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
795
+ jQuery(this).html(country);
796
+ jQuery("input.country").focus();
797
+ jQuery("input.country").blur(function() {
798
+ var id_for_blur = document.getElementById('country').parentNode.id.split('_');
799
+ var value = jQuery(this).val();
800
+ jQuery("#"+id_for_blur[0]+"_mini_label_country").text(value);
801
+ });
802
+ }
803
+ });
804
+ });
805
+ }
806
+ }
807
+ }
808
+ remove_whitespace(document.getElementById('take'));
809
+ form_view = 1;
810
+ form_view_count = 0;
811
+ document.getElementById('araqel').value = 1;
812
+ }
813
+ jQuery(window).load(function () {
814
+ formOnload();
815
+ });
816
+ jQuery(function() {
817
+ jQuery('.wdform_section .wdform_column:last-child').each(function() {
818
+ jQuery(this).parent().append(jQuery('<div></div>').addClass("wdform_column"));
819
+ });
820
+ sortable_columns();
821
+ if (<?php echo $row->sortable ?> == 1) {
822
+ jQuery(".wdform_arrows").hide();
823
+ all_sortable_events();
824
+ }
825
+ else {
826
+ jQuery('.wdform_column').sortable("disable");
827
+ }
828
+ });
829
+ </script>
830
+ <?php
831
+ }
832
+ else {
833
+ ?>
834
+ <script type="text/javascript">
835
+ jQuery(function() {
836
+ jQuery('.wdform_section .wdform_column:last-child').each(function() {
837
+ jQuery(this).parent().append(jQuery('<div></div>').addClass("wdform_column"));
838
+ });
839
+ sortable_columns();
840
+ all_sortable_events();
841
+ });
842
+ </script>
843
+ <?php
844
+ }
845
+ ?>
846
+ <input type="hidden" name="id" value="<?php echo $row->id; ?>" />
847
+ <input type="hidden" name="cid[]" value="<?php echo $row->id; ?>" />
848
+ <input type="hidden" id="task" name="task" value=""/>
849
+ <input type="hidden" id="current_id" name="current_id" value="<?php echo $row->id; ?>" />
850
+ </form>
851
+ <?php
852
+ }
853
+
854
+ public function form_options($id) {
855
+ $row = $this->model->get_row_data($id);
856
+ $themes = $this->model->get_theme_rows_data();
857
+ $page_title = $row->title . __(' form options', 'contact_form_maker');
858
+ $label_id = array();
859
+ $label_label = array();
860
+ $label_type = array();
861
+ $label_all = explode('#****#', $row->label_order_current);
862
+ $label_all = array_slice($label_all, 0, count($label_all) - 1);
863
+ foreach ($label_all as $key => $label_each) {
864
+ $label_id_each = explode('#**id**#', $label_each);
865
+ if ($label_id_each[0] == 22) {
866
+ $default_subject = $key;
867
+ }
868
+ array_push($label_id, $label_id_each[0]);
869
+ $label_order_each = explode('#**label**#', $label_id_each[1]);
870
+ array_push($label_label, $label_order_each[0]);
871
+ array_push($label_type, $label_order_each[1]);
872
+ }
873
+ $fields = explode('*:*id*:*type_submitter_mail*:*type*:*', $row->form_fields);
874
+ $fields_count = count($fields);
875
+ $disabled_fields = explode(',', $row->disabled_fields);
876
+ $disabled_fields = array_slice($disabled_fields, 0, count($disabled_fields) - 1);
877
+ $field_exist = array();
878
+ for ($i = 0; $i < count($label_label); $i++) {
879
+ if ($label_type[$i] == "type_submit_reset" || $label_type[$i] == "type_editor" || $label_type[$i] == "type_map" || $label_type[$i] == "type_captcha" || $label_type[$i] == "type_recaptcha" || $label_type[$i] == "type_button" || $label_type[$i] == "type_send_copy" || in_array($label_id[$i], $disabled_fields)) {
880
+ $field_exist[$i] = FALSE;
881
+ }
882
+ else {
883
+ $field_exist[$i] = TRUE;
884
+ }
885
+ }
886
+ ?>
887
+ <script>
888
+
889
+ function fm_change_radio_checkbox_text(elem) {
890
+ var labels_array = [];
891
+ labels_array['mail_mode'] = ['Text', 'HTML'];
892
+ labels_array['mail_mode_user'] = ['Text', 'HTML'];
893
+ labels_array['value'] = ['1', '0'];
894
+
895
+ jQuery(elem).val(labels_array['value'][jQuery(elem).val()]);
896
+ jQuery(elem).next().val(jQuery(elem).val());
897
+
898
+ var clicked_element = labels_array[jQuery(elem).attr('name')];
899
+ jQuery(elem).find('label').html(clicked_element[jQuery(elem).val()]);
900
+ if(jQuery( elem ).hasClass( "fm-text-yes" )) {
901
+ jQuery( elem ).removeClass('fm-text-yes').addClass('fm-text-no');
902
+ jQuery(elem).find("span").animate({
903
+ right: parseInt(jQuery( elem ).css( "width")) - 14 + 'px'
904
+ }, 400, function() {
905
+ });
906
+ }
907
+ else {
908
+ jQuery( elem ).removeClass('fm-text-no').addClass('fm-text-yes');
909
+ jQuery(elem).find("span").animate({
910
+ right: 0
911
+ }, 400, function() {
912
+ });
913
+ }
914
+ }
915
+ gen = "<?php echo $row->counter; ?>";
916
+ form_view_max = 20;
917
+ function set_preview() {
918
+ jQuery("#preview_form").attr("onclick", "tb_show('', '<?php echo add_query_arg(array('action' => 'ContactFormMakerPreview', 'form_id' => $row->id), admin_url('admin-ajax.php')); ?>&test_theme=" + jQuery('#theme').val() + "&width=1000&height=500&TB_iframe=1'); return false;");
919
+ jQuery("#edit_css").attr("onclick", "tb_show('', '<?php echo add_query_arg(array('action' => 'ContactFormMakerEditCSS', 'form_id' => $row->id), admin_url('admin-ajax.php')); ?>&id=" + jQuery('#theme').val() + "&width=800&height=500&TB_iframe=1'); return false;");
920
+ }
921
+
922
+ function show_verify_options(s){
923
+ if(s){
924
+ jQuery(".verification_div").removeAttr( "style" );
925
+ jQuery(".expire_link").removeAttr( "style" );
926
+
927
+ } else{
928
+ jQuery(".verification_div").css( 'display', 'none' );
929
+ jQuery(".expire_link").css( 'display', 'none' );
930
+ }
931
+ }
932
+ </script>
933
+ <div style="font-size: 14px; font-weight: bold;">
934
+ <?php echo __("This section allows you to edit form options", "contact_form_maker"); ?>.
935
+ <a style="color: blue; text-decoration: none;" target="_blank" href="http://web-dorado.com/wordpress-contact-form-builder-guide-3.html"><?php echo __("Read More in User Manual", "contact_form_maker"); ?></a>
936
+ </div>
937
+ <div class="fm-upgrade-pro">
938
+ <a target="_blank" href="http://web-dorado.com/files/fromContactFormBuilder.php">
939
+ <div class="fm-upgrade-img">
940
+ UPGRADE TO PRO VERSION
941
+ <span></span>
942
+ </div>
943
+ </a>
944
+ </div>
945
+ <div class="fm-clear"></div>
946
+ <form class="wrap" method="post" action="admin.php?page=manage_cfm" style="width: 99%;" name="adminForm" id="adminForm">
947
+ <?php wp_nonce_field('nonce_cfm', 'nonce_cfm'); ?>
948
+ <div class="fm-page-header">
949
+ <div class="fm-page-title" style="width: inherit;">
950
+ <?php echo $page_title; ?>
951
+ </div>
952
+ <div class="fm-page-actions">
953
+ <button class="fm-button save-button small" onclick="if (spider_check_email('mailToAdd') ||
954
+ spider_check_email('mail_from_other') ||
955
+ spider_check_email('reply_to_other') ||
956
+ spider_check_email('mail_cc') ||
957
+ spider_check_email('mail_bcc') ||
958
+ spider_check_email('mail_from_user') ||
959
+ spider_check_email('reply_to_user') ||
960
+ spider_check_email('mail_cc_user') ||
961
+ spider_check_email('mail_bcc_user') ||
962
+ spider_check_email('mail_from') ||
963
+ spider_check_email('reply_to')) { return false; }; spider_set_input_value('task', 'save_options')"/>
964
+ <span></span>
965
+ <?php echo __("Save", "contact_form_maker"); ?>
966
+ </button>
967
+ <button class="fm-button apply-button small" onclick="if (spider_check_email('mailToAdd') ||
968
+ spider_check_email('mail_from_other') ||
969
+ spider_check_email('reply_to_other') ||
970
+ spider_check_email('mail_cc') ||
971
+ spider_check_email('mail_bcc') ||
972
+ spider_check_email('mail_from_user') ||
973
+ spider_check_email('reply_to_user') ||
974
+ spider_check_email('mail_cc_user') ||
975
+ spider_check_email('mail_bcc_user') ||
976
+ spider_check_email('mail_from') ||
977
+ spider_check_email('reply_to')) { return false; }; spider_set_input_value('task', 'apply_options')"/>
978
+ <span></span>
979
+ <?php echo __("Apply", "contact_form_maker"); ?>
980
+ </button>
981
+ <button class="fm-button cancel-button small" onclick="spider_set_input_value('task', 'cancel_options')"/>
982
+ <span></span>
983
+ <?php echo __("Cancel", "contact_form_maker"); ?>
984
+ </button>
985
+ </div>
986
+ <div class="fm-clear"></div>
987
+ </div>
988
+ <div class="fm-form-options">
989
+ <div class="submenu-box">
990
+ <div class="submenu-pad">
991
+ <ul id="submenu" class="configuration">
992
+ <li>
993
+ <a id="general" class="fm_fieldset_tab" onclick="form_maker_options_tabs('general')" href="#"><?php echo __("General Options", "contact_form_maker"); ?></a>
994
+ </li>
995
+ <li>
996
+ <a id="custom" class="fm_fieldset_tab" onclick="form_maker_options_tabs('custom')" href="#"><?php echo __("Email Options", "contact_form_maker"); ?></a>
997
+ </li>
998
+ <li>
999
+ <a id="actions" class="fm_fieldset_tab" onclick="form_maker_options_tabs('actions')" href="#"><?php echo __("Actions after Submission", "contact_form_maker"); ?></a>
1000
+ </li>
1001
+ </ul>
1002
+ </div>
1003
+ </div>
1004
+ <fieldset id="general_fieldset" class="adminform fm_fieldset_deactive">
1005
+ <legend><?php echo __("General Options", "contact_form_maker"); ?></legend>
1006
+ <table class="admintable" style="float: left;">
1007
+ <tr valign="top">
1008
+ <td class="fm_options_label">
1009
+ <label><?php echo __("Published", "contact_form_maker"); ?></label>
1010
+ </td>
1011
+ <td class="fm_options_value">
1012
+ <button class="fm-checkbox-radio-button <?php echo $row->published == 1 ? 'fm-yes' : 'fm-no' ?>" onclick="fm_change_radio(this); return false;" value="<?php echo $row->published; ?>">
1013
+ <span></span>
1014
+ </button>
1015
+ <input type="hidden" name="published" value="<?php echo $row->published; ?>"/>
1016
+ </td>
1017
+ </tr>
1018
+ <tr valign="top">
1019
+ <td class="fm_options_label">
1020
+ <label><?php echo __("Save data(to database)", "contact_form_maker"); ?></label>
1021
+ </td>
1022
+ <td class="fm_options_value">
1023
+ <button class="fm-checkbox-radio-button <?php echo $row->savedb == 1 ? 'fm-yes' : 'fm-no' ?>" onclick="fm_change_radio(this); return false;" value="<?php echo $row->savedb; ?>">
1024
+ <span></span>
1025
+ </button>
1026
+ <input type="hidden" name="savedb" value="<?php echo $row->savedb; ?>"/>
1027
+ </td>
1028
+ </tr>
1029
+ <tr valign="top">
1030
+ <td class="fm_options_label">
1031
+ <label for="theme"><?php echo __("Theme", "contact_form_maker"); ?></label>
1032
+ </td>
1033
+ <td class="fm_options_value">
1034
+ <select id="theme" name="theme" style="width:260px;">
1035
+ <?php
1036
+ foreach ($themes as $theme) {
1037
+ ?>
1038
+ <option value="<?php echo $theme->id; ?>" <?php echo (($theme->id == $row->theme) ? 'selected="selected"' : ''); ?> <?php echo (($theme->id != 4) ? 'disabled="disabled" title="This theme is disabled in free version."' : ''); ?>><?php echo $theme->title; ?></option>
1039
+ <?php
1040
+ }
1041
+ ?>
1042
+ </select>
1043
+ <button id="preview_form" class="fm-button preview-button small" title="<?php echo __("Form Preview", "contact_form_maker"); ?>" onclick="tb_show('', '<?php echo add_query_arg(array('action' => 'ContactFormMakerPreview', 'form_id' => $row->id, 'test_theme' => $row->theme, 'width' => '1000', 'height' => '500', 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>'); return false;">
1044
+ <span></span>
1045
+ <?php echo __("Preview", "contact_form_maker"); ?>
1046
+ </button>
1047
+ <button id="edit_css" class="fm-button options-edit-button small" title="<?php echo __("Edit CSS","contact_form_maker"); ?>" onclick="alert('<?php echo addslashes(__("This option is disabled in free version.", "contact_form_maker")); ?>'); return false;">
1048
+ <span></span>
1049
+ <?php echo __("Edit CSS", "contact_form_maker"); ?>
1050
+ </button>
1051
+ <div class="spider_description spider_free_desc"><?php echo __("Themes are disabled in free version.","contact_form_maker"); ?></div>
1052
+ </td>
1053
+ </tr>
1054
+ <tr valign="top">
1055
+ <td class="fm_options_label">
1056
+ <label for="requiredmark"><?php echo __("Required fields mark", "contact_form_maker"); ?></label>
1057
+ </td>
1058
+ <td class="fm_options_value">
1059
+ <input type="text" id="requiredmark" name="requiredmark" value="<?php echo $row->requiredmark; ?>" style="width: 250px;" />
1060
+ </td>
1061
+ </tr>
1062
+ </table>
1063
+ </fieldset>
1064
+ <fieldset id="custom_fieldset" class="adminform fm_fieldset_deactive">
1065
+ <legend><?php echo __("Email Options", "contact_form_maker"); ?></legend>
1066
+ <table class="admintable">
1067
+ <tr valign="top">
1068
+ <td style="width: 75px; vertical-align: middle;">
1069
+ <label><?php echo __("Send E-mail", "contact_form_maker"); ?></label>
1070
+ </td>
1071
+ <td style="padding: 15px;">
1072
+ <button class="fm-checkbox-radio-button <?php echo $row->sendemail == 1 ? 'fm-yes' : 'fm-no' ?>" onclick="fm_change_radio(this); return false;" value="<?php echo $row->sendemail; ?>">
1073
+ <span></span>
1074
+ </button>
1075
+ <input type="hidden" name="sendemail" value="<?php echo $row->sendemail; ?>"/>
1076
+ </td>
1077
+ </tr>
1078
+ <tr>
1079
+ <td style="padding: 15px;">
1080
+ <label><?php echo __("Mailer", "contact_form_maker"); ?></label>
1081
+ </td>
1082
+ <td style="padding: 15px;">
1083
+ <input type="radio" name="wpmail" id="wpmail_yes" value="1" <?php echo ($row->wpmail) ? 'checked="checked"' : ''; ?> /><label for="wpmail_yes">wp_mail() <?php echo __('function', 'contact_form_maker'); ?></label>
1084
+ <input type="radio" name="wpmail" id="wpmail_no" value="0" <?php echo (!$row->wpmail) ? 'checked="checked"' : ''; ?> /><label for="wpmail_no">PHP mail() <?php echo __('function', 'contact_form_maker'); ?></label>
1085
+ </td>
1086
+ </tr>
1087
+ </table>
1088
+ <fieldset class="adminform fm_mail_options">
1089
+ <legend><?php echo __("Email to Administrator", "contact_form_maker"); ?></legend>
1090
+ <table class="admintable">
1091
+ <tr valign="top">
1092
+ <td class="fm_options_label">
1093
+ <label for="mailToAdd"><?php echo __("Email to send submissions to", "contact_form_maker"); ?></label>
1094
+ </td>
1095
+ <td class="fm_options_value">
1096
+ <input type="text" id="mailToAdd" name="mailToAdd" style="width: 250px;" />
1097
+ <input type="hidden" id="mail" name="mail" value="<?php echo $row->mail; ?>" />
1098
+ <img src="<?php echo WD_CFM_URL . '/images/add.png'; ?>"
1099
+ style="vertical-align: middle; cursor: pointer;"
1100
+ title="<?php echo __("Add more emails", "contact_form_maker"); ?>"
1101
+ onclick="if (spider_check_email('mailToAdd')) {return false;};cfm_create_input('mail', 'mailToAdd', 'cfm_mail_div', '<?php echo WD_CFM_URL; ?>')" />
1102
+ <div id="cfm_mail_div">
1103
+ <?php
1104
+ $mail_array = explode(',', $row->mail);
1105
+ foreach ($mail_array as $mail) {
1106
+ if ($mail && $mail != ',') {
1107
+ ?>
1108
+ <div class="fm_mail_input">
1109
+ <?php echo $mail; ?>
1110
+ <img src="<?php echo WD_CFM_URL; ?>/images/delete.png" class="fm_delete_img" onclick="fm_delete_mail(this, '<?php echo $mail; ?>')" title="<?php echo __("Delete Email", "contact_form_maker"); ?>" />
1111
+ </div>
1112
+ <?php
1113
+ }
1114
+ }
1115
+ ?>
1116
+ </div>
1117
+ </td>
1118
+ </tr>
1119
+ <tr valign="top">
1120
+ <td class="fm_options_label">
1121
+ <label for="mail_from"><?php echo __("Email From", "contact_form_maker"); ?></label>
1122
+ </td>
1123
+ <td class="fm_options_value">
1124
+ <?php
1125
+ $is_other = TRUE;
1126
+ $field_disabled = TRUE;
1127
+ for ($i = 0; $i < $fields_count - 1; $i++) {
1128
+ $field_id = substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*') + 15, strlen($fields[$i]));
1129
+ if (!in_array($field_id, $disabled_fields)) {
1130
+ $field_disabled = FALSE;
1131
+ ?>
1132
+ <div>
1133
+ <input type="radio" name="mail_from" id="mail_from<?php echo $i; ?>" value="<?php echo $field_id; ?>" <?php echo ($field_id == $row->mail_from ? 'checked="checked"' : '' ); ?> onclick="wdhide('mail_from_other')" />
1134
+ <label for="mail_from<?php echo $i; ?>"><?php echo substr($fields[$i + 1], 0, strpos($fields[$i + 1], '*:*w_field_label*:*')); ?></label>
1135
+ </div>
1136
+ <?php
1137
+ if ($field_id == $row->mail_from) {
1138
+ $is_other = FALSE;
1139
+ }
1140
+ }
1141
+ }
1142
+ ?>
1143
+ <div style="<?php echo ($fields_count == 1 || $field_disabled) ? 'display:none;' : ''; ?>">
1144
+ <input type="radio" id="other" name="mail_from" value="other" <?php echo ($is_other) ? 'checked="checked"' : ''; ?> onclick="wdshow('mail_from_other')" />
1145
+ <label for="other">Other</label>
1146
+ </div>
1147
+ <input type="text" style="width: <?php echo ($fields_count == 1 || $field_disabled) ? '250px' : '235px; margin-left: 15px' ?>; display: <?php echo ($is_other) ? 'block;' : 'none;'; ?>" id="mail_from_other" name="mail_from_other" value="<?php echo ($is_other && !$field_disabled) ? $row->mail_from : ''; ?>" />
1148
+ </td>
1149
+ </tr>
1150
+ <tr valign="top">
1151
+ <td class="fm_options_label">
1152
+ <label for="mail_from_name"><?php echo __("From Name", "contact_form_maker"); ?></label>
1153
+ </td>
1154
+ <td class="fm_options_value">
1155
+ <input type="text" id="mail_from_name" name="mail_from_name" value="<?php echo $row->mail_from_name; ?>" style="width: 250px;" />
1156
+ <img src="<?php echo WD_CFM_URL . '/images/add.png'; ?>" onclick="document.getElementById('mail_from_labels').style.display='block';" style="vertical-align: middle; display:inline-block; margin:0px; float:none; cursor: pointer;" />
1157
+ <div style="position: relative; top: -3px;">
1158
+ <div id="mail_from_labels" class="email_labels" style="display: none;">
1159
+ <?php
1160
+ for ($i = 0; $i < count($label_label); $i++) {
1161
+ if (!$field_exist[$i]) {
1162
+ continue;
1163
+ }
1164
+ $param = htmlspecialchars(addslashes($label_label[$i]));
1165
+ $fld_label = htmlspecialchars($label_label[$i]);
1166
+ if (strlen($fld_label) > 30) {
1167
+ $fld_label = wordwrap($fld_label, 30);
1168
+ $fld_label = explode("\n", $fld_label);
1169
+ $fld_label = $fld_label[0] . ' ...';
1170
+ }
1171
+ ?>
1172
+ <a onClick="insertAtCursor('mail_from_name', '<?php echo $param; ?>'); document.getElementById('mail_from_labels').style.display='none';" style="display: block; text-decoration:none;"><?php echo $fld_label; ?></a>
1173
+ <?php
1174
+ }
1175
+ ?>
1176
+ </div>
1177
+ </div>
1178
+ </td>
1179
+ </tr>
1180
+ <tr valign="top">
1181
+ <td class="fm_options_label">
1182
+ <label for="reply_to"><?php echo __("Reply to", "contact_form_maker"); ?><br/>(<?php echo __("if different from 'Email From'", "contact_form_maker"); ?>) </label>
1183
+ </td>
1184
+ <td class="fm_options_value">
1185
+ <?php
1186
+ $is_other = TRUE;
1187
+ $field_disabled = TRUE;
1188
+ for ($i = 0; $i < $fields_count - 1; $i++) {
1189
+ $field_id = substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*') + 15, strlen($fields[$i]));
1190
+ if (!in_array($field_id, $disabled_fields)) {
1191
+ $field_disabled = FALSE;
1192
+ ?>
1193
+ <div>
1194
+ <input type="radio" name="reply_to" id="reply_to<?php echo $i; ?>" value="<?php echo $field_id; ?>" <?php echo ($field_id == $row->reply_to ? 'checked="checked"' : ''); ?> onclick="wdhide('reply_to_other')" />
1195
+ <label for="reply_to<?php echo $i; ?>"><?php echo substr($fields[$i + 1], 0, strpos($fields[$i + 1], '*:*w_field_label*:*')); ?></label>
1196
+ </div>
1197
+ <?php
1198
+ if ($field_id == $row->reply_to) {
1199
+ $is_other = FALSE;
1200
+ }
1201
+ }
1202
+ }
1203
+ ?>
1204
+ <div style="<?php echo ($fields_count == 1 || $field_disabled) ? 'display: none;' : ''; ?>">
1205
+ <input type="radio" id="other1" name="reply_to" value="other" <?php echo ($is_other) ? 'checked="checked"' : ''; ?> onclick="wdshow('reply_to_other')" />
1206
+ <label for="other1"><?php echo __("Other","contact_form_maker"); ?></label>
1207
+ </div>
1208
+ <input type="text" style="width: <?php echo ($fields_count == 1 || $field_disabled) ? '250px' : '235px; margin-left: 15px'; ?>; display: <?php echo ($is_other) ? 'block;' : 'none;'; ?>" id="reply_to_other" name="reply_to_other" value="<?php echo ($is_other && $row->reply_to && !$field_disabled) ? $row->reply_to : ''; ?>" />
1209
+ </td>
1210
+ </tr>
1211
+ <tr valign="top">
1212
+ <td class="fm_options_label">
1213
+ <label for="mail_cc">CC: </label>
1214
+ </td>
1215
+ <td class="fm_options_value">
1216
+ <input type="text" id="mail_cc" name="mail_cc" value="<?php echo $row->mail_cc; ?>" style="width: 250px;" />
1217
+ </td>
1218
+ </tr>
1219
+ <tr valign="top">
1220
+ <td class="fm_options_label">
1221
+ <label for="mail_bcc">BCC: </label>
1222
+ </td>
1223
+ <td class="fm_options_value">
1224
+ <input type="text" id="mail_bcc" name="mail_bcc" value="<?php echo $row->mail_bcc; ?>" style="width: 250px;" />
1225
+ </td>
1226
+ </tr>
1227
+ <tr valign="top">
1228
+ <td class="fm_options_label">
1229
+ <label for="mail_subject"><?php echo __("Subject", "contact_form_maker"); ?>: </label>
1230
+ </td>
1231
+ <td class="fm_options_value">
1232
+ <input type="text" id="mail_subject" name="mail_subject" value="<?php echo (($row->mail_subject == '') && !in_array($label_id[$default_subject], $disabled_fields)) ? '%' . $label_label[$default_subject] . '%' : $row->mail_subject; ?>" style="width: 250px;" />
1233
+ <img src="<?php echo WD_CFM_URL . '/images/add.png'; ?>" onclick="document.getElementById('mail_subject_labels').style.display='block';" style="vertical-align: middle; display:inline-block; margin:0px; float:none; cursor: pointer;" />
1234
+ <div style="position: relative; top: -3px;">
1235
+ <div id="mail_subject_labels" class="email_labels" style="display: none;" >
1236
+ <?php
1237
+ for ($i = 0; $i < count($label_label); $i++) {
1238
+ if (!$field_exist[$i]) {
1239
+ continue;
1240
+ }
1241
+ $param = htmlspecialchars(addslashes($label_label[$i]));
1242
+ $fld_label = htmlspecialchars($label_label[$i]);
1243
+ if (strlen($fld_label) > 30) {
1244
+ $fld_label = wordwrap($fld_label, 30);
1245
+ $fld_label = explode("\n", $fld_label);
1246
+ $fld_label = $fld_label[0] . ' ...';
1247
+ }
1248
+ ?>
1249
+ <a onClick="insertAtCursor('mail_subject', '<?php echo $param; ?>'); document.getElementById('mail_subject_labels').style.display='none';" style="display: block; text-decoration: none;"><?php echo $fld_label; ?></a>
1250
+ <?php
1251
+ }
1252
+ ?>
1253
+ </div>
1254
+ </div>
1255
+ </td>
1256
+ </tr>
1257
+ <tr valign="top">
1258
+ <td class="fm_options_label" style="vertical-align: middle;">
1259
+ <label><?php echo __("Mode", "contact_form_maker"); ?>: </label>
1260
+ </td>
1261
+ <td class="fm_options_value">
1262
+ <button name="mail_mode"class="fm-checkbox-radio-button <?php echo $row->mail_mode == 1 ? 'fm-text-yes' : 'fm-text-no' ?> medium" onclick="fm_change_radio_checkbox_text(this); return false;" value="<?php echo $row->mail_mode ?>">
1263
+ <label><?php echo $row->mail_mode == 1 ? 'HTML' : 'Text' ?></label>
1264
+ <span></span>
1265
+ </button>
1266
+ <input type="hidden" name="mail_mode" value="<?php echo $row->mail_mode; ?>"/>
1267
+ </td>
1268
+ </tr>
1269
+ <tr>
1270
+ <td class="fm_options_label" valign="top">
1271
+ <label><?php echo __("Custom Text in Email For Administrator", "contact_form_maker"); ?></label>
1272
+ </td>
1273
+ <td class="fm_options_value">
1274
+ <div style="margin-bottom:5px">
1275
+ <?php
1276
+ for ($i = 0; $i < count($label_label); $i++) {
1277
+ if (!$field_exist[$i]) {
1278
+ continue;
1279
+ }
1280
+ $param = htmlspecialchars(addslashes($label_label[$i]));
1281
+ ?>
1282
+ <input style="border: 1px solid silver; font-size: 10px;" type="button" value="<?php echo htmlspecialchars($label_label[$i]); ?>" onClick="insertAtCursor('script_mail', '<?php echo $param; ?>')" />
1283
+ <?php
1284
+ }
1285
+ ?>
1286
+ <input style="border: 1px solid silver; font-size: 11px; font-weight: bold; display: block;" type="button" value="<?php echo __("All fields list", "contact_form_maker"); ?>" onClick="insertAtCursor('script_mail', 'all')" />
1287
+ </div>
1288
+ <?php
1289
+ if (user_can_richedit()) {
1290
+ wp_editor($row->script_mail, 'script_mail', array('teeny' => FALSE, 'textarea_name' => 'script_mail', 'media_buttons' => FALSE, 'textarea_rows' => 5));
1291
+ }
1292
+ else {
1293
+ ?>
1294
+ <textarea name="script_mail" id="script_mail" cols="20" rows="10" style="width: 300px; height: 450px;"><?php echo $row->script_mail; ?></textarea>
1295
+ <?php
1296
+ }
1297
+ ?>
1298
+ </td>
1299
+ </tr>
1300
+ </table>
1301
+ </fieldset>
1302
+ <fieldset class="fm_mail_options">
1303
+ <legend><?php echo __("Email to User", "contact_form_maker"); ?></legend>
1304
+ <table class="admintable">
1305
+ <tr valign="top">
1306
+ <td class="fm_options_label">
1307
+ <label for="mail"><?php echo __("Send to", "contact_form_maker"); ?></label>
1308
+ </td>
1309
+ <td class="fm_options_value">
1310
+ <?php
1311
+ $fields = explode('*:*id*:*type_submitter_mail*:*type*:*', $row->form_fields);
1312
+ $fields_count = count($fields);
1313
+ if ($fields_count == 1) {
1314
+ echo __("There is no email field", "contact_form_maker");
1315
+ }
1316
+ else {
1317
+ for ($i = 0; $i < $fields_count - 1; $i++) {
1318
+ ?>
1319
+ <div>
1320
+ <input type="checkbox" name="send_to<?php echo $i; ?>" id="send_to<?php echo $i; ?>" value="<?php echo substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*') + 15, strlen($fields[$i])); ?>" <?php echo (is_numeric(strpos($row->send_to, '*' . substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*') + 15, strlen($fields[$i])) . '*')) ? 'checked="checked"' : '' ); ?> />
1321
+ <label for="send_to<?php echo $i; ?>"><?php echo substr($fields[$i + 1], 0, strpos($fields[$i + 1], '*:*w_field_label*:*')); ?></label>
1322
+ </div>
1323
+ <?php
1324
+ }
1325
+ }
1326
+ ?>
1327
+ </td>
1328
+ </tr>
1329
+ <tr valign="top">
1330
+ <td class="fm_options_label">
1331
+ <label for="mail_from_user"><?php echo __("Email From", "contact_form_maker"); ?></label>
1332
+ </td>
1333
+ <td class="fm_options_value">
1334
+ <input type="text" id="mail_from_user" name="mail_from_user" value="<?php echo $row->mail_from_user; ?>" style="width: 250px;" />
1335
+ </td>
1336
+ </tr>
1337
+ <tr valign="top">
1338
+ <td class="fm_options_label">
1339
+ <label for="mail_from_name_user"><?php echo __("From Name", "contact_form_maker"); ?></label>
1340
+ </td>
1341
+ <td class="fm_options_value">
1342
+ <input type="text" id="mail_from_name_user" name="mail_from_name_user" value="<?php echo $row->mail_from_name_user; ?>" style="width: 250px;"/>
1343
+ <img src="<?php echo WD_CFM_URL . '/images/add.png'; ?>" onclick="document.getElementById('mail_from_name_user_labels').style.display='block';" style="vertical-align: middle; display: inline-block; margin: 0px; float: none; cursor: pointer;" />
1344
+ <div style="position: relative; top: -3px;">
1345
+ <div id="mail_from_name_user_labels" class="email_labels" style="display:none;">
1346
+ <?php
1347
+ for ($i = 0; $i < count($label_label); $i++) {
1348
+ if (!$field_exist[$i]) {
1349
+ continue;
1350
+ }
1351
+ $param = htmlspecialchars(addslashes($label_label[$i]));
1352
+ $fld_label = htmlspecialchars($label_label[$i]);
1353
+ if (strlen($fld_label) > 30) {
1354
+ $fld_label = wordwrap($fld_label, 30);
1355
+ $fld_label = explode("\n", $fld_label);
1356
+ $fld_label = $fld_label[0] . ' ...';
1357
+ }
1358
+ ?>
1359
+ <a onClick="insertAtCursor('mail_from_name_user', '<?php echo $param; ?>'); document.getElementById('mail_from_name_user_labels').style.display='none';" style="display: block; text-decoration: none;"><?php echo $fld_label; ?></a>
1360
+ <?php
1361
+ }
1362
+ ?>
1363
+ </div>
1364
+ </div>
1365
+ </td>
1366
+ </tr>
1367
+ <tr valign="top">
1368
+ <td class="fm_options_label">
1369
+ <label for="reply_to_user"><?php echo __("Reply to", "contact_form_maker"); ?><br />(<?php echo __("if different from 'Email From'", "contact_form_maker"); ?>)</label>
1370
+ </td>
1371
+ <td class="fm_options_value">
1372
+ <input type="text" id="reply_to_user" name="reply_to_user" value="<?php echo $row->reply_to_user; ?>" style="width: 250px;" />
1373
+ </td>
1374
+ </tr>
1375
+ <tr valign="top">
1376
+ <td class="fm_options_label">
1377
+ <label for="mail_cc_user">CC: </label>
1378
+ </td>
1379
+ <td class="fm_options_value">
1380
+ <input type="text" id="mail_cc_user" name="mail_cc_user" value="<?php echo $row->mail_cc_user; ?>" style="width: 250px;" />
1381
+ </td>
1382
+ </tr>
1383
+ <tr valign="top">
1384
+ <td class="fm_options_label">
1385
+ <label for="mail_bcc_user">BCC: </label>
1386
+ </td>
1387
+ <td class="fm_options_value">
1388
+ <input type="text" id="mail_bcc_user" name="mail_bcc_user" value="<?php echo $row->mail_bcc_user; ?>" style="width: 250px;" />
1389
+ </td>
1390
+ </tr>
1391
+ <tr valign="top">
1392
+ <td class="fm_options_label">
1393
+ <label for="mail_subject_user"><?php echo __("Subject", "contact_form_maker"); ?>: </label>
1394
+ </td>
1395
+ <td class="fm_options_value">
1396
+ <input type="text" id="mail_subject_user" name="mail_subject_user" value="<?php echo (($row->mail_subject_user == '') && !in_array($label_id[$default_subject], $disabled_fields)) ? '%' . $label_label[$default_subject] . '%' : $row->mail_subject_user; ?>" style="width: 250px;" />
1397
+ <img src="<?php echo WD_CFM_URL . '/images/add.png'; ?>" onclick="document.getElementById('mail_subject_user_labels').style.display='block';" style="vertical-align: middle; display: inline-block; margin: 0px; float: none; cursor: pointer;" />
1398
+ <div style="position: relative; top: -3px;">
1399
+ <div id="mail_subject_user_labels" class="email_labels" style="display: none;">
1400
+ <?php
1401
+ for ($i = 0; $i < count($label_label); $i++) {
1402
+ if (!$field_exist[$i]) {
1403
+ continue;
1404
+ }
1405
+ $param = htmlspecialchars(addslashes($label_label[$i]));
1406
+ $fld_label = htmlspecialchars($label_label[$i]);
1407
+ if (strlen($fld_label) > 30) {
1408
+ $fld_label = wordwrap($fld_label, 30);
1409
+ $fld_label = explode("\n", $fld_label);
1410
+ $fld_label = $fld_label[0] . ' ...';
1411
+ }
1412
+ ?>
1413
+ <a onClick="insertAtCursor('mail_subject_user', '<?php echo $param; ?>'); document.getElementById('mail_subject_user_labels').style.display='none';" style="display: block; text-decoration: none;"><?php echo $fld_label; ?></a>
1414
+ <?php
1415
+ }
1416
+ ?>
1417
+ </div>
1418
+ </div>
1419
+ </td>
1420
+ </tr>
1421
+ <tr valign="top">
1422
+ <td class="fm_options_label" style="vertical-align: middle;">
1423
+ <label><?php echo __("Mode", "contact_form_maker"); ?>: </label>
1424
+ </td>
1425
+ <td class="fm_options_value">
1426
+ <button name="mail_mode_user"class="fm-checkbox-radio-button <?php echo $row->mail_mode_user == 1 ? 'fm-text-yes' : 'fm-text-no' ?> medium" onclick="fm_change_radio_checkbox_text(this); return false;" value="<?php echo $row->mail_mode_user ?>">
1427
+ <label><?php echo $row->mail_mode_user == 1 ? 'HTML' : 'Text' ?></label>
1428
+ <span></span>
1429
+ </button>
1430
+ <input type="hidden" name="mail_mode_user" value="<?php echo $row->mail_mode_user; ?>"/>
1431
+ </td>
1432
+ </tr>
1433
+ <tr>
1434
+ <td class="fm_options_label" valign="top">
1435
+ <label><?php echo __("Custom Text in Email For User", "contact_form_maker"); ?></label>
1436
+ </td>
1437
+ <td class="fm_options_value">
1438
+ <div style="margin-bottom:5px">
1439
+ <?php
1440
+ for ($i = 0; $i < count($label_label); $i++) {
1441
+ if (!$field_exist[$i]) {
1442
+ continue;
1443
+ }
1444
+ $param = htmlspecialchars(addslashes($label_label[$i]));
1445
+ ?>
1446
+ <input style="border: 1px solid silver; font-size: 10px;" type="button" value="<?php echo htmlspecialchars($label_label[$i]); ?>" onClick="insertAtCursor('script_mail_user', '<?php echo $param; ?>')" />
1447
+ <?php
1448
+ }
1449
+ ?>
1450
+ <input style="border: 1px solid silver; font-size: 11px; font-weight: bold; display: block;" type="button" value="All fields list" onClick="insertAtCursor('script_mail_user', 'all')" />
1451
+ </div>
1452
+ <?php
1453
+ if (user_can_richedit()) {
1454
+ wp_editor($row->script_mail_user, 'script_mail_user', array('teeny' => FALSE, 'textarea_name' => 'script_mail_user', 'media_buttons' => FALSE, 'textarea_rows' => 5));
1455
+ }
1456
+ else {
1457
+ ?>
1458
+ <textarea name="script_mail_user" id="script_mail_user" cols="20" rows="10" style="width: 300px; height: 450px;"><?php echo $row->script_mail_user; ?></textarea>
1459
+ <?php
1460
+ }
1461
+ ?>
1462
+ </td>
1463
+ </tr>
1464
+ </table>
1465
+ </fieldset>
1466
+ </fieldset>
1467
+ <fieldset id="actions_fieldset" class="adminform fm_fieldset_deactive">
1468
+ <legend><?php echo __("Actions after submission", "contact_form_maker"); ?></legend>
1469
+ <table class="admintable">
1470
+ <tr valign="top">
1471
+ <td class="fm_options_label">
1472
+ <label><?php echo __("Action type", "contact_form_maker"); ?></label>
1473
+ </td>
1474
+ <td class="fm_options_value">
1475
+ <div><input type="radio" name="submit_text_type" id="text_type_none" onclick="set_type('none')" value="1" <?php echo ($row->submit_text_type != 2 && $row->submit_text_type != 3 && $row->submit_text_type != 4 && $row->submit_text_type != 5) ? "checked" : ""; ?> /><label for="text_type_none"><?php echo __("Stay on Form", "contact_form_maker"); ?></label></div>
1476
+ <div><input type="radio" name="submit_text_type" id="text_type_post" onclick="set_type('post')" value="2" <?php echo ($row->submit_text_type == 2) ? "checked" : ""; ?> /><label for="text_type_post"><?php echo __("Post","contact_form_maker"); ?></label></label></div>
1477
+ <div><input type="radio" name="submit_text_type" id="text_type_page" onclick="set_type('page')" value="5" <?php echo ($row->submit_text_type == 5) ? "checked" : ""; ?> /><label for="text_type_page"><?php echo __("Page","contact_form_maker"); ?></label></label></div>
1478
+ <div><input type="radio" name="submit_text_type" id="text_type_custom_text" onclick="set_type('custom_text')" value="3" <?php echo ($row->submit_text_type == 3 ) ? "checked" : ""; ?> /><label for="text_type_custom_text"><?php echo __("Custom Text","contact_form_maker"); ?></label></label></div>
1479
+ <div><input type="radio" name="submit_text_type" id="text_type_url" onclick="set_type('url')" value="4" <?php echo ($row->submit_text_type == 4) ? "checked" : ""; ?> /><label for="text_type_url">URL</div>
1480
+ </td>
1481
+ </tr>
1482
+ <tr id="none" <?php echo (($row->submit_text_type == 2 || $row->submit_text_type == 3 || $row->submit_text_type == 4 || $row->submit_text_type == 5) ? 'style="display:none"' : ''); ?>>
1483
+ <td class="fm_options_label">
1484
+ <label><?php echo __("Stay on Form", "contact_form_maker"); ?></label>
1485
+ </td>
1486
+ <td class="fm_options_value">
1487
+ <img src="<?php echo WD_CFM_URL . '/images/tick.png'; ?>" border="0">
1488
+ </td>
1489
+ </tr>
1490
+ <tr id="post" <?php echo (($row->submit_text_type != 2) ? 'style="display: none"' : ''); ?>>
1491
+ <td class="fm_options_label">
1492
+ <label for="post_name"><?php echo __("Post", "contact_form_maker"); ?></label>
1493
+ </td>
1494
+ <td class="fm_options_value">
1495
+ <select id="post_name" name="post_name" style="width: 153px; font-size: 11px;">
1496
+ <option value="0">- <?php echo __("Select Post", "contact_form_maker"); ?> -</option>
1497
+ <?php
1498
+ // The Query.
1499
+ $args = array('posts_per_page' => 10000);
1500
+ query_posts($args);
1501
+ // The Loop.
1502
+ while (have_posts()) : the_post(); ?>
1503
+ <option value="<?php $x = get_permalink(get_the_ID()); echo $x; ?>" <?php echo (($row->article_id == $x) ? 'selected="selected"' : ''); ?>><?php the_title(); ?></option>
1504
+ <?php
1505
+ endwhile;
1506
+ // Reset Query.
1507
+ wp_reset_query();
1508
+ ?>
1509
+ </select>
1510
+ </td>
1511
+ </tr>
1512
+ <tr id="page" <?php echo (($row->submit_text_type != 5) ? 'style="display: none"' : ''); ?>>
1513
+ <td class="fm_options_label">
1514
+ <label for="page_name"><?php echo __("Page", "contact_form_maker"); ?></label>
1515
+ </td>
1516
+ <td class="fm_options_value">
1517
+ <select id="page_name" name="page_name" style="width: 153px; font-size: 11px;">
1518
+ <option value="0">- <?php echo __("Select Page", "contact_form_maker"); ?> -</option>
1519
+ <?php
1520
+ // The Query.
1521
+ $pages = get_pages();
1522
+ // The Loop.
1523
+ foreach ($pages as $page) {
1524
+ $page_id = get_page_link($page->ID);
1525
+ ?>
1526
+ <option value="<?php echo $page_id; ?>" <?php echo (($row->article_id == $page_id) ? 'selected="selected"' : ''); ?>><?php echo $page->post_title; ?></option>
1527
+ <?php
1528
+ }
1529
+ // Reset Query.
1530
+ wp_reset_query();
1531
+ ?>
1532
+ </select>
1533
+ </td>
1534
+ </tr>
1535
+ <tr id="custom_text" <?php echo (($row->submit_text_type != 3) ? 'style="display: none;"' : ''); ?>>
1536
+ <td class="fm_options_label">
1537
+ <label for="submit_text"><?php echo __("Text", "contact_form_maker"); ?></label>
1538
+ </td>
1539
+ <td class="fm_options_value">
1540
+ <?php
1541
+ if (user_can_richedit()) {
1542
+ wp_editor($row->submit_text, 'submit_text', array('teeny' => FALSE, 'textarea_name' => 'submit_text', 'media_buttons' => FALSE, 'textarea_rows' => 5));
1543
+ }
1544
+ else {
1545
+ ?>
1546
+ <textarea cols="36" rows="5" id="submit_text" name="submit_text" style="resize: vertical;">
1547
+ <?php echo $row->submit_text; ?>
1548
+ </textarea>
1549
+ <?php
1550
+ }
1551
+ ?>
1552
+ </td>
1553
+ </tr>
1554
+ <tr id="url" <?php echo (($row->submit_text_type != 4 ) ? 'style="display:none"' : ''); ?>>
1555
+ <td class="fm_options_label">
1556
+ <label for="url">URL</label>
1557
+ </td>
1558
+ <td class="fm_options_value">
1559
+ <input type="text" id="url" name="url" style="width:300px" value="<?php echo $row->url; ?>" />
1560
+ </td>
1561
+ </tr>
1562
+ </table>
1563
+ </fieldset>
1564
+ </div>
1565
+ <input type="hidden" name="fieldset_id" id="fieldset_id" value="<?php echo WDW_CFM_Library::get('fieldset_id', 'general'); ?>" />
1566
+ <input type="hidden" id="task" name="task" value=""/>
1567
+ <input type="hidden" id="current_id" name="current_id" value="<?php echo $row->id; ?>" />
1568
+ </form>
1569
+ <script>
1570
+ jQuery(window).load(function () {
1571
+ form_maker_options_tabs(jQuery("#fieldset_id").val());
1572
+ spider_popup();
1573
+ jQuery("#mail_from_labels, #mail_from_name_user_labels, #mail_subject_labels, #mail_subject_user_labels").mouseleave(function() {
1574
+ jQuery(this).hide();
1575
+ });
1576
+ });
1577
+ </script>
1578
+ <?php
1579
+ }
1580
+
1581
+ public function form_layout($id) {
1582
+ $row = $this->model->get_row_data($id);
1583
+ $ids = array();
1584
+ $types = array();
1585
+ $labels = array();
1586
+ $fields = explode('*:*new_field*:*', $row->form_fields);
1587
+ $fields = array_slice($fields, 0, count($fields) - 1);
1588
+ foreach ($fields as $field) {
1589
+ $temp = explode('*:*id*:*', $field);
1590
+ array_push($ids, $temp[0]);
1591
+ $temp = explode('*:*type*:*', $temp[1]);
1592
+ array_push($types, $temp[0]);
1593
+ $temp = explode('*:*w_field_label*:*', $temp[1]);
1594
+ array_push($labels, $temp[0]);
1595
+ }
1596
+ ?>
1597
+ <script>
1598
+ var form_front = '<?php echo addslashes($row->form_front);?>';
1599
+ var custom_front = '<?php echo addslashes($row->custom_front);?>';
1600
+ if (custom_front == '') {
1601
+ custom_front = form_front;
1602
+ }
1603
+ function submitbutton() {
1604
+ if (jQuery('#autogen_layout').is(':checked')) {
1605
+ jQuery('#custom_front').val(custom_front.replace(/\s+/g, ' ').replace(/> </g, '><'));
1606
+ }
1607
+ else {
1608
+ jQuery('#custom_front').val(editor.getValue().replace(/\s+/g, ' ').replace(/> </g, '><'));
1609
+ }
1610
+ }
1611
+ function insertAtCursor_form(myId, myLabel) {
1612
+ if (jQuery('#autogen_layout').is(':checked')) {
1613
+ alert('<?php echo addslashes(__("Uncheck the Auto-Generate Layout box.", "contact_form_maker")); ?>');
1614
+ return;
1615
+ }
1616
+ myValue = '<div wdid="' + myId + '" class="wdform_row">%' + myId + ' - ' + myLabel + '%</div>';
1617
+ line = editor.getCursor().line;
1618
+ ch = editor.getCursor().ch;
1619
+ text = editor.getLine(line);
1620
+ text1 = text.substr(0, ch);
1621
+ text2 = text.substr(ch);
1622
+ text = text1 + myValue + text2;
1623
+ editor.setLine(line, text);
1624
+ editor.focus();
1625
+ }
1626
+ function autogen(status) {
1627
+ if (status) {
1628
+ custom_front = editor.getValue();
1629
+ editor.setValue(form_front);
1630
+ editor.setOption('readOnly', true);
1631
+ autoFormat();
1632
+ }
1633
+ else {
1634
+ editor.setValue(custom_front);
1635
+ editor.setOption('readOnly', false);
1636
+ autoFormat();
1637
+ }
1638
+ }
1639
+ function autoFormat() {
1640
+ CodeMirror.commands["selectAll"](editor);
1641
+ editor.autoFormatRange(editor.getCursor(true), editor.getCursor(false));
1642
+ editor.scrollTo(0,0);
1643
+ }
1644
+ </script>
1645
+
1646
+ <div class="fm_layout">
1647
+ <form action="admin.php?page=manage_cfm" method="post" name="adminForm" enctype="multipart/form-data">
1648
+ <?php wp_nonce_field('nonce_cfm', 'nonce_cfm'); ?>
1649
+ <div class="fm-layout-actions">
1650
+ <div class="fm-page-actions">
1651
+ <button class="fm-button save-button small" onclick="submitbutton(); spider_set_input_value('task', 'save_layout');">
1652
+ <?php echo __("Save", "contact_form_maker"); ?>
1653
+ <span></span>
1654
+ </button>
1655
+ <button class="fm-button apply-button small" onclick="submitbutton(); spider_set_input_value('task', 'apply_layout');">
1656
+ <?php echo __("Apply", "contact_form_maker"); ?>
1657
+ <span></span>
1658
+ </button>
1659
+ <button class="fm-button cancel-button small" onclick="spider_set_input_value('task', 'cancel_options');">
1660
+ <?php echo __("Cancel", "contact_form_maker"); ?>
1661
+ <span></span>
1662
+ </button>
1663
+ </div>
1664
+ </div>
1665
+ <div class="fm-layout-content">
1666
+ <h2 style="clear: both;"><?php echo __("Description", "contact_form_maker"); ?></h2>
1667
+ <p><?php echo __("To customize the layout of the form fields uncheck the Auto-Generate Layout box and edit the HTML", "contact_form_maker"); ?>.</p>
1668
+ <p><?php echo __("You can change positioning, add in-line styles and etc. Click on the provided buttons to add the corresponding field", "contact_form_maker"); ?>.<br /> <?php echo __("This will add the following line", "contact_form_maker"); ?>:
1669
+ <b><span class="cm-tag">&lt;div</span> <span class="cm-attribute">wdid</span>=<span class="cm-string">"example_id"</span> <span class="cm-attribute">class</span>=<span class="cm-string">"wdform_row"</span><span class="cm-tag">&gt;</span>%example_id - Example%<span class="cm-tag">&lt;/div&gt;</span></b>
1670
+ , <?php echo __("where", "contact_form_maker"); ?> <b><span class="cm-tag">&lt;div&gt;</span></b> <?php echo __("is used to set a row","contact_form_maker"); ?>.</p>
1671
+ <p><?php echo __("To return to the default settings you should check Auto-Generate Layout box","contact_form_maker"); ?>.</p>
1672
+ <h3 style="color:red"><?php echo __("Notice","contact_form_maker"); ?></h3>
1673
+ <p><?php echo __("Make sure not to publish the same field twice. This will cause malfunctioning of the form","contact_form_maker"); ?>.</p>
1674
+ <hr/>
1675
+ <label for="autogen_layout" style="font-size: 20px; line-height: 45px; margin-left: 10px;"><?php echo __("Auto Generate Layout", "contact_form_maker"); ?>? </label>
1676
+ <input type="checkbox" value="1" name="autogen_layout" id="autogen_layout" <?php echo (($row->autogen_layout) ? 'checked="checked"' : ''); ?> />
1677
+ <input type="hidden" name="custom_front" id="custom_front" value="" />
1678
+
1679
+ <input type="hidden" id="task" name="task" value=""/>
1680
+ <input type="hidden" id="current_id" name="current_id" value="<?php echo $row->id; ?>" />
1681
+ </div>
1682
+ </form>
1683
+ <br/>
1684
+ <?php
1685
+ foreach($ids as $key => $id) {
1686
+ if ($types[$key] != "type_section_break") {
1687
+ ?>
1688
+ <button onClick="insertAtCursor_form('<?php echo $ids[$key]; ?>','<?php echo $labels[$key]; ?>')" class="fm_label_buttons" title="<?php echo $labels[$key]; ?>"><?php echo $labels[$key]; ?></button>
1689
+ <?php
1690
+ }
1691
+ }
1692
+ ?>
1693
+ <br /><br />
1694
+ <button class="fm_submit_layout button button-secondary button-hero" onclick="autoFormat()"><strong><?php echo __("Apply Source Formatting", "contact_form_maker"); ?></strong> <em>(<?php echo __("ctrl-enter", "contact_form_maker"); ?>)</em></button>
1695
+ <textarea id="source" name="source" style="display: none;"></textarea>
1696
+ </div>
1697
+ <script>
1698
+ var editor = CodeMirror.fromTextArea(document.getElementById("source"), {
1699
+ lineNumbers: true,
1700
+ lineWrapping: true,
1701
+ mode: "htmlmixed",
1702
+ value: form_front
1703
+ });
1704
+ if (jQuery('#autogen_layout').is(':checked')) {
1705
+ editor.setOption('readOnly', true);
1706
+ editor.setValue(form_front);
1707
+ }
1708
+ else {
1709
+ editor.setOption('readOnly', false);
1710
+ editor.setValue(custom_front);
1711
+ }
1712
+ jQuery('#autogen_layout').click(function() {
1713
+ autogen(jQuery(this).is(':checked'));
1714
+ });
1715
+ autoFormat();
1716
+ </script>
1717
+ <?php
1718
+ }
1719
+
1720
+ ////////////////////////////////////////////////////////////////////////////////////////
1721
+ // Getters & Setters //
1722
+ ////////////////////////////////////////////////////////////////////////////////////////
1723
+ ////////////////////////////////////////////////////////////////////////////////////////
1724
+ // Private Methods //
1725
+ ////////////////////////////////////////////////////////////////////////////////////////
1726
+ ////////////////////////////////////////////////////////////////////////////////////////
1727
+ // Listeners //
1728
+ ////////////////////////////////////////////////////////////////////////////////////////
1729
  }
admin/views/CFMViewSubmissions_cfm.php CHANGED
@@ -1,48 +1,48 @@
1
- <?php
2
-
3
- class CFMViewSubmissions_cfm {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
- private $model;
14
-
15
- ////////////////////////////////////////////////////////////////////////////////////////
16
- // Constructor & Destructor //
17
- ////////////////////////////////////////////////////////////////////////////////////////
18
- public function __construct($model) {
19
- $this->model = $model;
20
- }
21
-
22
- ////////////////////////////////////////////////////////////////////////////////////////
23
- // Public Methods //
24
- ////////////////////////////////////////////////////////////////////////////////////////
25
- public function display($form_id) {
26
- ?>
27
- <div class="fm-user-manual">
28
- <br />
29
- <?php echo __("This section allows you to view form submissions.", "contact_form_maker"); ?>
30
- <a style="color: blue; text-decoration: none;" target="_blank" href="http://web-dorado.com/wordpress-contact-form-builder-guide-7.html"><?php echo __("Read More in User Manual","contact_form_maker"); ?></a><br /><br />
31
- <span style="color: #FF0000;"><?php echo __("This feature is disabled for the non-commercial version.","contact_form_maker"); ?></span>
32
- </div>
33
- <div class="fm-upgrade-pro">
34
- <a target="_blank" href="http://web-dorado.com/files/fromContactFormBuilder.php">
35
- <div class="fm-upgrade-img">
36
- <?php echo __("UPGRADE TO PRO VERSION","contact_form_maker"); ?>
37
- <span></span>
38
- </div>
39
- </a>
40
- </div>
41
- <div style="clear:both;">
42
- <img style="max-width: 100%;" src="<?php echo WD_CFM_URL . '/images/screenshots/sub.png'; ?>" />
43
- </div>
44
- <?php
45
- }
46
- }
47
-
48
- ?>
1
+ <?php
2
+
3
+ class CFMViewSubmissions_cfm {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ private $model;
14
+
15
+ ////////////////////////////////////////////////////////////////////////////////////////
16
+ // Constructor & Destructor //
17
+ ////////////////////////////////////////////////////////////////////////////////////////
18
+ public function __construct($model) {
19
+ $this->model = $model;
20
+ }
21
+
22
+ ////////////////////////////////////////////////////////////////////////////////////////
23
+ // Public Methods //
24
+ ////////////////////////////////////////////////////////////////////////////////////////
25
+ public function display($form_id) {
26
+ ?>
27
+ <div class="fm-user-manual">
28
+ <br />
29
+ <?php echo __("This section allows you to view form submissions.", "contact_form_maker"); ?>
30
+ <a style="color: blue; text-decoration: none;" target="_blank" href="http://web-dorado.com/wordpress-contact-form-builder-guide-7.html"><?php echo __("Read More in User Manual","contact_form_maker"); ?></a><br /><br />
31
+ <span style="color: #FF0000;"><?php echo __("This feature is disabled for the non-commercial version.","contact_form_maker"); ?></span>
32
+ </div>
33
+ <div class="fm-upgrade-pro">
34
+ <a target="_blank" href="http://web-dorado.com/files/fromContactFormBuilder.php">
35
+ <div class="fm-upgrade-img">
36
+ <?php echo __("UPGRADE TO PRO VERSION","contact_form_maker"); ?>
37
+ <span></span>
38
+ </div>
39
+ </a>
40
+ </div>
41
+ <div style="clear:both;">
42
+ <img style="max-width: 100%;" src="<?php echo WD_CFM_URL . '/images/screenshots/sub.png'; ?>" />
43
+ </div>
44
+ <?php
45
+ }
46
+ }
47
+
48
+ ?>
admin/views/CFMViewThemes_cfm.php CHANGED
@@ -1,64 +1,64 @@
1
- <?php
2
-
3
- class CFMViewThemes_cfm {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
- private $model;
14
-
15
- ////////////////////////////////////////////////////////////////////////////////////////
16
- // Constructor & Destructor //
17
- ////////////////////////////////////////////////////////////////////////////////////////
18
- public function __construct($model) {
19
- $this->model = $model;
20
- }
21
-
22
- ////////////////////////////////////////////////////////////////////////////////////////
23
- // Public Methods //
24
- ////////////////////////////////////////////////////////////////////////////////////////
25
- public function display() {
26
- ?>
27
- <div class="fm-user-manual">
28
- <?php echo __("This section allows you to edit form themes", "contact_form_maker"); ?>.
29
- <a style="color: blue; text-decoration: none;" target="_blank" href="http://web-dorado.com/wordpress-contact-form-builder-guide-2.html"><?php echo __("Read More in User Manual", "contact_form_maker"); ?></a><br /><br />
30
- <span style="color: #FF0000;"><?php echo __("This feature is disabled for the non-commercial version.","contact_form_maker"); ?></span><br /><br />
31
- <?php echo __("Here are some examples standard templates included in the commercial version.","contact_form_maker"); ?>
32
- <a style="color: blue; text-decoration: none;" target="_blank" href="http://wpdemo.web-dorado.com/contact-form-builder"><?php echo __("Demo", "contact_form_maker"); ?></a>
33
- </div>
34
- <div class="fm-upgrade-pro">
35
- <a target="_blank" href="http://web-dorado.com/files/fromContactFormBuilder.php">
36
- <div class="fm-upgrade-img">
37
- <?php echo __("UPGRADE TO PRO VERSION", "contact_form_maker"); ?>
38
- <span></span>
39
- </div>
40
- </a>
41
- </div>
42
- <div style="clear: both; float: left; width: 99%;">
43
- <img style="max-width: 50%;float: left;" src="<?php echo WD_CFM_URL . '/images/screenshots/form2.png'; ?>" />
44
- <img style="max-width: 50%;float: left;" src="<?php echo WD_CFM_URL . '/images/screenshots/form1.png'; ?>" />
45
- <img style="max-width: 50%;float: left;" src="<?php echo WD_CFM_URL . '/images/screenshots/form3.png'; ?>" />
46
- <img style="max-width: 50%;float: left;" src="<?php echo WD_CFM_URL . '/images/screenshots/form5.png'; ?>" />
47
- <img style="max-width: 50%;float: left;" src="<?php echo WD_CFM_URL . '/images/screenshots/form4.png'; ?>" />
48
- </div>
49
- <?php
50
- }
51
-
52
- public function edit($id, $reset) {
53
- }
54
-
55
- ////////////////////////////////////////////////////////////////////////////////////////
56
- // Getters & Setters //
57
- ////////////////////////////////////////////////////////////////////////////////////////
58
- ////////////////////////////////////////////////////////////////////////////////////////
59
- // Private Methods //
60
- ////////////////////////////////////////////////////////////////////////////////////////
61
- ////////////////////////////////////////////////////////////////////////////////////////
62
- // Listeners //
63
- ////////////////////////////////////////////////////////////////////////////////////////
64
  }
1
+ <?php
2
+
3
+ class CFMViewThemes_cfm {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ private $model;
14
+
15
+ ////////////////////////////////////////////////////////////////////////////////////////
16
+ // Constructor & Destructor //
17
+ ////////////////////////////////////////////////////////////////////////////////////////
18
+ public function __construct($model) {
19
+ $this->model = $model;
20
+ }
21
+
22
+ ////////////////////////////////////////////////////////////////////////////////////////
23
+ // Public Methods //
24
+ ////////////////////////////////////////////////////////////////////////////////////////
25
+ public function display() {
26
+ ?>
27
+ <div class="fm-user-manual">
28
+ <?php echo __("This section allows you to edit form themes", "contact_form_maker"); ?>.
29
+ <a style="color: blue; text-decoration: none;" target="_blank" href="http://web-dorado.com/wordpress-contact-form-builder-guide-2.html"><?php echo __("Read More in User Manual", "contact_form_maker"); ?></a><br /><br />
30
+ <span style="color: #FF0000;"><?php echo __("This feature is disabled for the non-commercial version.","contact_form_maker"); ?></span><br /><br />
31
+ <?php echo __("Here are some examples standard templates included in the commercial version.","contact_form_maker"); ?>
32
+ <a style="color: blue; text-decoration: none;" target="_blank" href="http://wpdemo.web-dorado.com/contact-form-builder"><?php echo __("Demo", "contact_form_maker"); ?></a>
33
+ </div>
34
+ <div class="fm-upgrade-pro">
35
+ <a target="_blank" href="http://web-dorado.com/files/fromContactFormBuilder.php">
36
+ <div class="fm-upgrade-img">
37
+ <?php echo __("UPGRADE TO PRO VERSION", "contact_form_maker"); ?>
38
+ <span></span>
39
+ </div>
40
+ </a>
41
+ </div>
42
+ <div style="clear: both; float: left; width: 99%;">
43
+ <img style="max-width: 50%;float: left;" src="<?php echo WD_CFM_URL . '/images/screenshots/form2.png'; ?>" />
44
+ <img style="max-width: 50%;float: left;" src="<?php echo WD_CFM_URL . '/images/screenshots/form1.png'; ?>" />
45
+ <img style="max-width: 50%;float: left;" src="<?php echo WD_CFM_URL . '/images/screenshots/form3.png'; ?>" />
46
+ <img style="max-width: 50%;float: left;" src="<?php echo WD_CFM_URL . '/images/screenshots/form5.png'; ?>" />
47
+ <img style="max-width: 50%;float: left;" src="<?php echo WD_CFM_URL . '/images/screenshots/form4.png'; ?>" />
48
+ </div>
49
+ <?php
50
+ }
51
+
52
+ public function edit($id, $reset) {
53
+ }
54
+
55
+ ////////////////////////////////////////////////////////////////////////////////////////
56
+ // Getters & Setters //
57
+ ////////////////////////////////////////////////////////////////////////////////////////
58
+ ////////////////////////////////////////////////////////////////////////////////////////
59
+ // Private Methods //
60
+ ////////////////////////////////////////////////////////////////////////////////////////
61
+ ////////////////////////////////////////////////////////////////////////////////////////
62
+ // Listeners //
63
+ ////////////////////////////////////////////////////////////////////////////////////////
64
  }
admin/views/CFMViewUninstall_cfm.php CHANGED
@@ -1,125 +1,125 @@
1
- <?php
2
-
3
- class CFMViewUninstall_cfm {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
- private $model;
14
-
15
-
16
- ////////////////////////////////////////////////////////////////////////////////////////
17
- // Constructor & Destructor //
18
- ////////////////////////////////////////////////////////////////////////////////////////
19
- public function __construct($model) {
20
- $this->model = $model;
21
- }
22
- ////////////////////////////////////////////////////////////////////////////////////////
23
- // Public Methods //
24
- ////////////////////////////////////////////////////////////////////////////////////////
25
- public function display() {
26
- global $wpdb;
27
- $prefix = $wpdb->prefix;
28
- ?>
29
- <form method="post" action="admin.php?page=uninstall_cfm" class="cfm_form">
30
- <?php wp_nonce_field('nonce_cfm', 'nonce_cfm'); ?>
31
- <div class="wrap">
32
- <span class="uninstall_icon"></span>
33
- <h2><?php echo __("Uninstall Contact Form Builder", "contact_form_maker"); ?></h2>
34
- <div class="goodbye-text">
35
- <?php
36
- $support_team = '<a href="https://web-dorado.com/support/contact-us.html?source=form-builder" target="_blank">' . __('support team', 'contact_form_maker') . '</a>';
37
- $contact_us = '<a href="https://web-dorado.com/support/contact-us.html?source=form-builder" target="_blank">' . __('Contact us', 'contact_form_maker') . '</a>';
38
- echo sprintf(__("Before uninstalling the plugin, please Contact our %s. We'll do our best to help you out with your issue. We value each and every user and value what's right for our users in everything we do.<br />
39
- However, if anyway you have made a decision to uninstall the plugin, please take a minute to %s and tell what you didn't like for our plugins further improvement and development. Thank you !!!", "contact_form_maker"), $support_team, $contact_us); ?>
40
- </div>
41
- <p>
42
- <?php echo __("Deactivating Contact Form Builder plugin does not remove any data that may have been created, such as the Forms and the Submissions. To completely remove this plugin, you can uninstall it here", "contact_form_maker"); ?>.
43
- </p>
44
- <p style="color: red;">
45
- <strong><?php echo __("WARNING", "contact_form_maker"); ?>:</strong>
46
- <?php echo __("Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first", "contact_form_maker"); ?>.
47
- </p>
48
- <p style="color: red">
49
- <strong><?php echo __("The following WordPress Options/Tables will be DELETED", "contact_form_maker"); ?>:</strong>
50
- </p>
51
- <table class="widefat">
52
- <thead>
53
- <tr>
54
- <th><?php echo __("Database Tables", "contact_form_maker"); ?></th>
55
- </tr>
56
- </thead>
57
- <tr>
58
- <td valign="top">
59
- <ol>
60
- <li><?php echo $prefix; ?>contactformmaker</li>
61
- <li><?php echo $prefix; ?>contactformmaker_submits</li>
62
- <li><?php echo $prefix; ?>contactformmaker_themes</li>
63
- <li><?php echo $prefix; ?>contactformmaker_views</li>
64
- <li><?php echo $prefix; ?>contactformmaker_blocked</li>
65
- </ol>
66
- </td>
67
- </tr>
68
- </table>
69
- <p style="text-align: center;">
70
- <?php echo __("Do you really want to uninstall Conatct Form Builder", "contact_form_maker"); ?>?
71
- </p>
72
- <p style="text-align: center;">
73
- <input type="checkbox" name="Contact Form Builder" id="check_yes" value="yes" />&nbsp;<label for="check_yes"><?php echo __("Yes", "contact_form_maker"); ?></label>
74
- </p>
75
- <p style="text-align: center;">
76
- <input type="submit" value="<?php echo __("UNINSTALL", "contact_form_maker"); ?>" class="button-primary" onclick="if (check_yes.checked) {
77
- if (confirm('<?php echo addslashes(__('You are About to Uninstall Contact Form Builder from WordPress.\nThis Action Is Not Reversible.', 'contact_form_maker')); ?>')) {
78
- spider_set_input_value('task', 'uninstall');
79
- } else {
80
- return false;
81
- }
82
- }
83
- else {
84
- return false;
85
- }" />
86
- </p>
87
- </div>
88
- <input id="task" name="task" type="hidden" value="" />
89
- </form>
90
- <?php
91
- }
92
-
93
- public function uninstall() {
94
- $this->model->delete_db_tables();
95
- global $wpdb;
96
- $prefix = $wpdb->prefix;
97
- $deactivate_url = add_query_arg(array('action' => 'deactivate', 'plugin' => 'contact-form-builder/contact-form-builder.php'), admin_url('plugins.php'));
98
- $deactivate_url = wp_nonce_url($deactivate_url, 'deactivate-plugin_contact-form-builder/contact-form-builder.php');
99
- ?>
100
- <div id="message" class="updated fade">
101
- <p><?php echo __("The following Database Tables succesfully deleted", "contact_form_maker"); ?>:</p>
102
- <p><?php echo $prefix; ?>contactformmaker,</p>
103
- <p><?php echo $prefix; ?>contactformmaker_submits,</p>
104
- <p><?php echo $prefix; ?>contactformmaker_themes,</p>
105
- <p><?php echo $prefix; ?>contactformmaker_views,</p>
106
- <p><?php echo $prefix; ?>contactformmaker_blocked.</p>
107
- </div>
108
- <div class="wrap">
109
- <h2><?php echo __("Uninstall Conact Form Builder", "contact_form_maker"); ?></h2>
110
- <p><strong><a href="<?php echo $deactivate_url; ?>"><?php echo __("Click Here", "contact_form_maker"); ?></a> <?php echo __("To Finish the Uninstallation and Contact Form Builder will be Deactivated Automatically", "contact_form_maker"); ?>.</strong></p>
111
- <input id="task" name="task" type="hidden" value="" />
112
- </div>
113
- <?php
114
- }
115
-
116
- ////////////////////////////////////////////////////////////////////////////////////////
117
- // Getters & Setters //
118
- ////////////////////////////////////////////////////////////////////////////////////////
119
- ////////////////////////////////////////////////////////////////////////////////////////
120
- // Private Methods //
121
- ////////////////////////////////////////////////////////////////////////////////////////
122
- ////////////////////////////////////////////////////////////////////////////////////////
123
- // Listeners //
124
- ////////////////////////////////////////////////////////////////////////////////////////
125
  }
1
+ <?php
2
+
3
+ class CFMViewUninstall_cfm {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ private $model;
14
+
15
+
16
+ ////////////////////////////////////////////////////////////////////////////////////////
17
+ // Constructor & Destructor //
18
+ ////////////////////////////////////////////////////////////////////////////////////////
19
+ public function __construct($model) {
20
+ $this->model = $model;
21
+ }
22
+ ////////////////////////////////////////////////////////////////////////////////////////
23
+ // Public Methods //
24
+ ////////////////////////////////////////////////////////////////////////////////////////
25
+ public function display() {
26
+ global $wpdb;
27
+ $prefix = $wpdb->prefix;
28
+ ?>
29
+ <form method="post" action="admin.php?page=uninstall_cfm" class="cfm_form">
30
+ <?php wp_nonce_field('nonce_cfm', 'nonce_cfm'); ?>
31
+ <div class="wrap">
32
+ <span class="uninstall_icon"></span>
33
+ <h2><?php echo __("Uninstall Contact Form Builder", "contact_form_maker"); ?></h2>
34
+ <div class="goodbye-text">
35
+ <?php
36
+ $support_team = '<a href="https://web-dorado.com/support/contact-us.html?source=form-builder" target="_blank">' . __('support team', 'contact_form_maker') . '</a>';
37
+ $contact_us = '<a href="https://web-dorado.com/support/contact-us.html?source=form-builder" target="_blank">' . __('Contact us', 'contact_form_maker') . '</a>';
38
+ echo sprintf(__("Before uninstalling the plugin, please Contact our %s. We'll do our best to help you out with your issue. We value each and every user and value what's right for our users in everything we do.<br />
39
+ However, if anyway you have made a decision to uninstall the plugin, please take a minute to %s and tell what you didn't like for our plugins further improvement and development. Thank you !!!", "contact_form_maker"), $support_team, $contact_us); ?>
40
+ </div>
41
+ <p>
42
+ <?php echo __("Deactivating Contact Form Builder plugin does not remove any data that may have been created, such as the Forms and the Submissions. To completely remove this plugin, you can uninstall it here", "contact_form_maker"); ?>.
43
+ </p>
44
+ <p style="color: red;">
45
+ <strong><?php echo __("WARNING", "contact_form_maker"); ?>:</strong>
46
+ <?php echo __("Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first", "contact_form_maker"); ?>.
47
+ </p>
48
+ <p style="color: red">
49
+ <strong><?php echo __("The following WordPress Options/Tables will be DELETED", "contact_form_maker"); ?>:</strong>
50
+ </p>
51
+ <table class="widefat">
52
+ <thead>
53
+ <tr>
54
+ <th><?php echo __("Database Tables", "contact_form_maker"); ?></th>
55
+ </tr>
56
+ </thead>
57
+ <tr>
58
+ <td valign="top">
59
+ <ol>
60
+ <li><?php echo $prefix; ?>contactformmaker</li>
61
+ <li><?php echo $prefix; ?>contactformmaker_submits</li>
62
+ <li><?php echo $prefix; ?>contactformmaker_themes</li>
63
+ <li><?php echo $prefix; ?>contactformmaker_views</li>
64
+ <li><?php echo $prefix; ?>contactformmaker_blocked</li>
65
+ </ol>
66
+ </td>
67
+ </tr>
68
+ </table>
69
+ <p style="text-align: center;">
70
+ <?php echo __("Do you really want to uninstall Conatct Form Builder", "contact_form_maker"); ?>?
71
+ </p>
72
+ <p style="text-align: center;">
73
+ <input type="checkbox" name="Contact Form Builder" id="check_yes" value="yes" />&nbsp;<label for="check_yes"><?php echo __("Yes", "contact_form_maker"); ?></label>
74
+ </p>
75
+ <p style="text-align: center;">
76
+ <input type="submit" value="<?php echo __("UNINSTALL", "contact_form_maker"); ?>" class="button-primary" onclick="if (check_yes.checked) {
77
+ if (confirm('<?php echo addslashes(__('You are About to Uninstall Contact Form Builder from WordPress.\nThis Action Is Not Reversible.', 'contact_form_maker')); ?>')) {
78
+ spider_set_input_value('task', 'uninstall');
79
+ } else {
80
+ return false;
81
+ }
82
+ }
83
+ else {
84
+ return false;
85
+ }" />
86
+ </p>
87
+ </div>
88
+ <input id="task" name="task" type="hidden" value="" />
89
+ </form>
90
+ <?php
91
+ }
92
+
93
+ public function uninstall() {
94
+ $this->model->delete_db_tables();
95
+ global $wpdb;
96
+ $prefix = $wpdb->prefix;
97
+ $deactivate_url = add_query_arg(array('action' => 'deactivate', 'plugin' => 'contact-form-builder/contact-form-builder.php'), admin_url('plugins.php'));
98
+ $deactivate_url = wp_nonce_url($deactivate_url, 'deactivate-plugin_contact-form-builder/contact-form-builder.php');
99
+ ?>
100
+ <div id="message" class="updated fade">
101
+ <p><?php echo __("The following Database Tables succesfully deleted", "contact_form_maker"); ?>:</p>
102
+ <p><?php echo $prefix; ?>contactformmaker,</p>
103
+ <p><?php echo $prefix; ?>contactformmaker_submits,</p>
104
+ <p><?php echo $prefix; ?>contactformmaker_themes,</p>
105
+ <p><?php echo $prefix; ?>contactformmaker_views,</p>
106
+ <p><?php echo $prefix; ?>contactformmaker_blocked.</p>
107
+ </div>
108
+ <div class="wrap">
109
+ <h2><?php echo __("Uninstall Conact Form Builder", "contact_form_maker"); ?></h2>
110
+ <p><strong><a href="<?php echo $deactivate_url; ?>"><?php echo __("Click Here", "contact_form_maker"); ?></a> <?php echo __("To Finish the Uninstallation and Contact Form Builder will be Deactivated Automatically", "contact_form_maker"); ?>.</strong></p>
111
+ <input id="task" name="task" type="hidden" value="" />
112
+ </div>
113
+ <?php
114
+ }
115
+
116
+ ////////////////////////////////////////////////////////////////////////////////////////
117
+ // Getters & Setters //
118
+ ////////////////////////////////////////////////////////////////////////////////////////
119
+ ////////////////////////////////////////////////////////////////////////////////////////
120
+ // Private Methods //
121
+ ////////////////////////////////////////////////////////////////////////////////////////
122
+ ////////////////////////////////////////////////////////////////////////////////////////
123
+ // Listeners //
124
+ ////////////////////////////////////////////////////////////////////////////////////////
125
  }
admin/views/CFMViewWidget.php CHANGED
@@ -1,84 +1,84 @@
1
- <?php
2
-
3
- class CFMViewWidget {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
- private $model;
14
-
15
- ////////////////////////////////////////////////////////////////////////////////////////
16
- // Constructor & Destructor //
17
- ////////////////////////////////////////////////////////////////////////////////////////
18
- public function __construct($model) {
19
- $this->model = $model;
20
- }
21
- ////////////////////////////////////////////////////////////////////////////////////////
22
- // Public Methods //
23
- ////////////////////////////////////////////////////////////////////////////////////////
24
-
25
- public function display() {
26
- }
27
-
28
- function widget($args, $instance) {
29
- extract($args);
30
- $title = $instance['title'];
31
- $form_id = (isset($instance['form_id']) ? $instance['form_id'] : 0);
32
- // Before widget.
33
- echo $before_widget;
34
- // Title of widget.
35
- if ($title) {
36
- echo $before_title . $title . $after_title;
37
- }
38
- // Widget output.
39
- require_once(WD_CFM_DIR . '/frontend/controllers/CFMControllerForm_maker.php');
40
- $controller_class = 'CFMControllerForm_maker';
41
- $controller = new $controller_class();
42
- echo $controller->execute($instance['form_id']);
43
- // After widget.
44
- echo $after_widget;
45
- }
46
-
47
- // Widget Control Panel.
48
- function form($instance, $id_title, $name_title, $id_form_id, $name_form_id) {
49
- $defaults = array(
50
- 'title' => '',
51
- 'form_id' => 0
52
- );
53
- $instance = wp_parse_args((array)$instance, $defaults);
54
- global $wpdb;
55
- $ids_Form_Maker = $this->model->get_gallery_rows_data();
56
- ?>
57
- <p>
58
- <label for="<?php echo $id_title; ?>"><?php echo __("Title", "contact_form_maker"); ?>:</label>
59
- <input class="widefat" id="<?php echo $id_title; ?>" name="<?php echo $name_title; ?>" type="text" value="<?php echo $instance['title']; ?>" />
60
- <label for="<?php echo $id_form_id; ?>"><?php echo __("Select a form", "contact_form_maker"); ?>:</label>
61
- <select name="<?php echo $name_form_id; ?>" id="<?php echo $id_form_id; ?>" style="width: 225px; text-align: left;">
62
- <option value="0">- <?php echo __("Select a Form", "contact_form_maker"); ?>-</option>
63
- <?php
64
- foreach ($ids_Form_Maker as $arr_Form_Maker) {
65
- ?>
66
- <option value="<?php echo $arr_Form_Maker->id; ?>" <?php echo ($arr_Form_Maker->id == $instance['form_id']) ? 'SELECTED' : ''; ?>><?php echo $arr_Form_Maker->title; ?></option>
67
- <?php
68
- }
69
- ?>
70
- </select>
71
- </p>
72
- <?php
73
- }
74
-
75
- ////////////////////////////////////////////////////////////////////////////////////////
76
- // Getters & Setters //
77
- ////////////////////////////////////////////////////////////////////////////////////////
78
- ////////////////////////////////////////////////////////////////////////////////////////
79
- // Private Methods //
80
- ////////////////////////////////////////////////////////////////////////////////////////
81
- ////////////////////////////////////////////////////////////////////////////////////////
82
- // Listeners //
83
- ////////////////////////////////////////////////////////////////////////////////////////
84
  }
1
+ <?php
2
+
3
+ class CFMViewWidget {
4
+ ////////////////////////////////////////////////////////////////////////////////////////
5
+ // Events //
6
+ ////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////
8
+ // Constants //
9
+ ////////////////////////////////////////////////////////////////////////////////////////
10
+ ////////////////////////////////////////////////////////////////////////////////////////
11
+ // Variables //
12
+ ////////////////////////////////////////////////////////////////////////////////////////
13
+ private $model;
14
+
15
+ ////////////////////////////////////////////////////////////////////////////////////////
16
+ // Constructor & Destructor //
17
+ ////////////////////////////////////////////////////////////////////////////////////////
18
+ public function __construct($model) {
19
+ $this->model = $model;
20
+ }
21
+ ////////////////////////////////////////////////////////////////////////////////////////
22
+ // Public Methods //
23
+ ////////////////////////////////////////////////////////////////////////////////////////
24
+
25
+ public function display() {
26
+ }
27
+
28
+ function widget($args, $instance) {
29
+ extract($args);
30
+ $title = $instance['title'];
31
+ $form_id = (isset($instance['form_id']) ? $instance['form_id'] : 0);
32
+ // Before widget.
33
+ echo $before_widget;
34
+ // Title of widget.
35
+ if ($title) {
36
+ echo $before_title . $title . $after_title;
37
+ }
38
+ // Widget output.
39
+ require_once(WD_CFM_DIR . '/frontend/controllers/CFMControllerForm_maker.php');
40
+ $controller_class = 'CFMControllerForm_maker';
41
+ $controller = new $controller_class();
42
+ echo $controller->execute($instance['form_id']);
43
+ // After widget.
44
+ echo $after_widget;
45
+ }
46
+
47
+ // Widget Control Panel.
48
+ function form($instance, $id_title, $name_title, $id_form_id, $name_form_id) {
49
+ $defaults = array(
50
+ 'title' => '',
51
+ 'form_id' => 0
52
+ );
53
+ $instance = wp_parse_args((array)$instance, $defaults);
54
+ global $wpdb;
55
+ $ids_Form_Maker = $this->model->get_gallery_rows_data();
56
+ ?>
57
+ <p>
58
+ <label for="<?php echo $id_title; ?>"><?php echo __("Title", "contact_form_maker"); ?>:</label>
59
+ <input class="widefat" id="<?php echo $id_title; ?>" name="<?php echo $name_title; ?>" type="text" value="<?php echo $instance['title']; ?>" />
60
+ <label for="<?php echo $id_form_id; ?>"><?php echo __("Select a form", "contact_form_maker"); ?>:</label>
61
+ <select name="<?php echo $name_form_id; ?>" id="<?php echo $id_form_id; ?>" style="width: 225px; text-align: left;">
62
+ <option value="0">- <?php echo __("Select a Form", "contact_form_maker"); ?>-</option>
63
+ <?php
64
+ foreach ($ids_Form_Maker as $arr_Form_Maker) {
65
+ ?>
66
+ <option value="<?php echo $arr_Form_Maker->id; ?>" <?php echo ($arr_Form_Maker->id == $instance['form_id']) ? 'SELECTED' : ''; ?>><?php echo $arr_Form_Maker->title; ?></option>
67
+ <?php
68
+ }
69
+ ?>
70
+ </select>
71
+ </p>
72
+ <?php
73
+ }
74
+
75
+ ////////////////////////////////////////////////////////////////////////////////////////
76
+ // Getters & Setters //
77
+ ////////////////////////////////////////////////////////////////////////////////////////
78
+ ////////////////////////////////////////////////////////////////////////////////////////
79
+ // Private Methods //
80
+ ////////////////////////////////////////////////////////////////////////////////////////
81
+ ////////////////////////////////////////////////////////////////////////////////////////
82
+ // Listeners //
83
+ ////////////////////////////////////////////////////////////////////////////////////////
84
  }
contact-form-builder-insert.php CHANGED
@@ -1,134 +1,134 @@
1
- <?php
2
-
3
- function contact_form_maker_insert() {
4
- global $wpdb;
5
- $contactformmaker = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix . "contactformmaker` (
6
- `id` int(11) NOT NULL AUTO_INCREMENT,
7
- `title` varchar(127) NOT NULL,
8
- `mail` varchar(256) NOT NULL,
9
- `form_front` longtext NOT NULL,
10
- `theme` int(4) NOT NULL,
11
- `submit_text` longtext NOT NULL,
12
- `url` varchar(256) NOT NULL,
13
- `submit_text_type` tinyint(4) NOT NULL,
14
- `script_mail` text NOT NULL,
15
- `script_mail_user` text NOT NULL,
16
- `counter` int(11) NOT NULL,
17
- `published` int(11) NOT NULL DEFAULT '1',
18
- `label_order` text NOT NULL,
19
- `label_order_current` text NOT NULL,
20
- `article_id` varchar(500) NOT NULL,
21
- `public_key` varchar(50) NOT NULL,
22
- `private_key` varchar(50) NOT NULL,
23
- `recaptcha_theme` varchar(20) NOT NULL,
24
- `form_fields` text NOT NULL,
25
- `savedb` tinyint(4) NOT NULL DEFAULT '1',
26
- `sendemail` tinyint(4) NOT NULL DEFAULT '1',
27
- `requiredmark` varchar(20) NOT NULL DEFAULT '*',
28
- `mail_from` varchar(128) NOT NULL,
29
- `mail_from_name` varchar(128) NOT NULL,
30
- `reply_to` varchar(128) NOT NULL,
31
- `send_to` varchar(128) NOT NULL,
32
- `autogen_layout` tinyint(4) NOT NULL DEFAULT '1',
33
- `custom_front` longtext NOT NULL,
34
- `mail_from_user` varchar(128) NOT NULL,
35
- `mail_from_name_user` varchar(128) NOT NULL,
36
- `reply_to_user` varchar(128) NOT NULL,
37
- `disabled_fields` varchar(200) NOT NULL,
38
- `mail_cc` varchar(128) NOT NULL,
39
- `mail_cc_user` varchar(128) NOT NULL,
40
- `mail_bcc` varchar(128) NOT NULL,
41
- `mail_bcc_user` varchar(128) NOT NULL,
42
- `mail_subject` varchar(128) NOT NULL,
43
- `mail_subject_user` varchar(128) NOT NULL,
44
- `mail_mode` tinyint(4) NOT NULL DEFAULT '1',
45
- `mail_mode_user` tinyint(4) NOT NULL DEFAULT '1',
46
- `wpmail` tinyint(1) NOT NULL DEFAULT '1',
47
- `sortable` tinyint(1) NOT NULL DEFAULT '1',
48
- PRIMARY KEY (`id`)
49
- ) DEFAULT CHARSET=utf8;";
50
- $wpdb->query($contactformmaker);
51
- $contact_form_maker_row = $wpdb->get_var("SELECT * FROM " . $wpdb->prefix . "contactformmaker");
52
- if (!$contact_form_maker_row) {
53
- $wpdb->query('INSERT INTO `' . $wpdb->prefix . 'contactformmaker` VALUES(1, \'A mailing list\', \'\', \'<div class="wdform-page-and-images" style="display:table; border-top:0px solid black;"><div id="form_id_tempform_view1" class="wdform_page" page_title="Untitled page" next_title="Next" next_type="text" next_class="wdform-page-button" next_checkable="false" previous_title="Previous" previous_type="text" previous_class="wdform-page-button" previous_checkable="false"><div class="wdform_section"><div class="wdform_column"><div wdid="33" class="wdform_row" style="opacity: 0.4;" disabled="yes">%33 - map_33%</div></div></div><div wdid="1" type="type_section_break" class="wdform_tr_section_break" disabled="yes" style="opacity: 0.4;">%1 - custom_1%</div><div class="wdform_section"><div class="wdform_column"><div wdid="32" class="wdform_row" style="opacity: 1;">%32 - custom_32%</div><div wdid="2" class="wdform_row" style="opacity: 1;">%2 - Your Name:%</div><div wdid="4" class="wdform_row" style="opacity: 1;">%4 - E-mail:%</div><div wdid="28" class="wdform_row" style="opacity: 1;">%28 - Type the characters you see here:%</div><div wdid="30" class="wdform_row">%30 - type_submit_reset_30%</div></div><div class="wdform_column"><div wdid="5" class="wdform_row" style="opacity: 0.4;" disabled="yes">%5 - Website:%</div><div wdid="9" class="wdform_row" style="opacity: 0.4;" disabled="yes">%9 - Address:%</div><div wdid="27" class="wdform_row" style="opacity: 0.4;" disabled="yes">%27 - Send a copy of this message to yourself:%</div><div wdid="31" class="wdform_row" disabled="yes" style="opacity: 0.4;">%31 - custom_31%</div><div wdid="29" class="wdform_row" style="opacity: 0.4;" disabled="yes">%29 - &nbsp;%</div><div wdid="26" class="wdform_row" disabled="yes" style="opacity: 0.4;">%26 - Which topic best describes your question?%</div><div wdid="16" class="wdform_row" disabled="yes" style="opacity: 0.4;">%16 - Company address:%</div><div wdid="25" class="wdform_row" disabled="yes" style="opacity: 0.4;">%25 - When is the best time to contact you:%</div><div wdid="15" class="wdform_row" disabled="yes" style="opacity: 0.4;">%15 - Company:%</div><div wdid="8" class="wdform_row" disabled="yes" style="opacity: 0.4;">%8 - Mobile:%</div><div wdid="6" class="wdform_row" disabled="yes" style="opacity: 0.4;">%6 - Phone number:%</div><div wdid="3" class="wdform_row" disabled="yes" style="opacity: 0.4;">%3 - Name:%</div><div wdid="23" class="wdform_row" disabled="yes" style="opacity: 0.4;">%23 - Message:%</div><div wdid="22" class="wdform_row" disabled="yes" style="opacity: 0.4;">%22 - Subject:%</div><div wdid="24" class="wdform_row" style="opacity: 0.4;" disabled="yes">%24 - Issue type:%</div><div wdid="7" class="wdform_row" style="opacity: 0.4;" disabled="yes">%7 - Phone:%</div></div></div><div valign="top" class="wdform_footer" style="width: 100%;"><div style="width: 100%;"><div style="width: 100%; display: table;"><div style="display: table-row-group;"><div id="form_id_temppage_nav1" style="display: table-row;"></div></div></div></div></div></div></div>\', 4, \'<div class="content_head" style="color: #565759;">\r\n<h1>Thank you for contacting us</h1>\r\n</div>\r\n<p>We have received your message and will respond to you within 24 hours (Monday-Friday).</p>\r\n<p>For urgent inquiries, please contact us using phone numbers down below.</p>\r\n<p>Phone: 123-987-6543</p>\r\n<p>Fax: 123-987-6542</p>\', \'\', 1, \'<p>%Your Name:% joined the mailing list from IP: %ip%</p>\r\n<p>%all%</p>\', \'<div class="content_head" style="color: #565759;">\r\n<h1>Thank you for joining</h1>\r\n</div>\r\n<p>%all%</p>\', 34, 1, \'33#**id**#map_33#**label**#type_map#****#32#**id**#custom_32#**label**#type_editor#****#2#**id**#Your Name:#**label**#type_text#****#4#**id**#E-mail:#**label**#type_submitter_mail#****#28#**id**#Type the characters you see here:#**label**#type_captcha#****#30#**id**#type_submit_reset_30#**label**#type_submit_reset#****#5#**id**#Website:#**label**#type_text#****#9#**id**#Street Address#**label**#type_address#****#10#**id**#Street Address Line 2#**label**#type_address#****#11#**id**#City#**label**#type_address#****#12#**id**#State / Province / Region#**label**#type_address#****#13#**id**#Postal / Zip Code#**label**#type_address#****#14#**id**#Country#**label**#type_address#****#27#**id**#Send a copy of this message to yourself:#**label**#type_send_copy#****#31#**id**#custom_31#**label**#type_editor#****#29#**id**#&nbsp;#**label**#type_recaptcha#****#26#**id**#Which topic best describes your question?#**label**#type_radio#****#16#**id**#Street Address#**label**#type_address#****#18#**id**#City#**label**#type_address#****#20#**id**#Postal / Zip Code#**label**#type_address#****#25#**id**#When is the best time to contact you:#**label**#type_checkbox#****#15#**id**#Company:#**label**#type_text#****#8#**id**#Mobile:#**label**#type_phone#****#6#**id**#Phone number:#**label**#type_text#****#3#**id**#Name:#**label**#type_name#****#23#**id**#Message:#**label**#type_textarea#****#22#**id**#Subject:#**label**#type_text#****#24#**id**#Issue type:#**label**#type_own_select#****#7#**id**#Phone:#**label**#type_phone#****#\', \'33#**id**#map_33#**label**#type_map#****#32#**id**#custom_32#**label**#type_editor#****#2#**id**#Your Name:#**label**#type_text#****#4#**id**#E-mail:#**label**#type_submitter_mail#****#28#**id**#Type the characters you see here:#**label**#type_captcha#****#30#**id**#type_submit_reset_30#**label**#type_submit_reset#****#5#**id**#Website:#**label**#type_text#****#9#**id**#Street Address#**label**#type_address#****#10#**id**#Street Address Line 2#**label**#type_address#****#11#**id**#City#**label**#type_address#****#12#**id**#State / Province / Region#**label**#type_address#****#13#**id**#Postal / Zip Code#**label**#type_address#****#14#**id**#Country#**label**#type_address#****#27#**id**#Send a copy of this message to yourself:#**label**#type_send_copy#****#31#**id**#custom_31#**label**#type_editor#****#29#**id**#&nbsp;#**label**#type_recaptcha#****#26#**id**#Which topic best describes your question?#**label**#type_radio#****#16#**id**#Street Address#**label**#type_address#****#18#**id**#City#**label**#type_address#****#20#**id**#Postal / Zip Code#**label**#type_address#****#25#**id**#When is the best time to contact you:#**label**#type_checkbox#****#15#**id**#Company:#**label**#type_text#****#8#**id**#Mobile:#**label**#type_phone#****#6#**id**#Phone number:#**label**#type_text#****#3#**id**#Name:#**label**#type_name#****#23#**id**#Message:#**label**#type_textarea#****#22#**id**#Subject:#**label**#type_text#****#24#**id**#Issue type:#**label**#type_own_select#****#7#**id**#Phone:#**label**#type_phone#****#\', 0, \'\', \'\', \'\', \'33*:*id*:*type_map*:*type*:*map_33*:*w_field_label*:*-74.0059731*:*w_center_x*:*40.7143528*:*w_center_y*:*-74.005973*:*w_long*:*40.714353*:*w_lat*:*12*:*w_zoom*:*580*:*w_width*:*200*:*w_height*:**:*w_info*:*wdform_map*:*w_class*:**:*new_field*:*1*:*id*:*type_section_break*:*type*:*custom_1*:*w_field_label*:*<hr>*:*w_editor*:**:*new_field*:*32*:*id*:*type_editor*:*type*:*custom_32*:*w_field_label*:*<h1 data-mce-style="color: #000000;" style="color: #000000;">Join the mailing list</h1>*:*w_editor*:**:*new_field*:*2*:*id*:*type_text*:*type*:*Your Name:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*new_field*:*4*:*id*:*type_submitter_mail*:*type*:*E-mail:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:*someone@example.com*:*w_first_val*:*someone@example.com*:*w_title*:*yes*:*w_required*:**:*w_unique*:**:*w_class*:**:*new_field*:*28*:*id*:*type_captcha*:*type*:*Type the characters you see here:*:*w_field_label*:*250*:*w_field_label_size*:*top*:*w_field_label_pos*:*6*:*w_digit*:**:*w_class*:**:*new_field*:*30*:*id*:*type_submit_reset*:*type*:*type_submit_reset_30*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*true*:*w_act*:**:*new_field*:*5*:*id*:*type_text*:*type*:*Website:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:*example.com*:*w_first_val*:*example.com*:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*new_field*:*9*:*id*:*type_address*:*type*:*Address:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*280*:*w_size*:*Street Address***Street Address Line 2***City***State / Province / Region***Postal / Zip Code***Country*:*w_mini_labels*:*no***no***no***no***no***no***no*:*w_disabled_fields*:*no*:*w_required*:*wdform_address*:*w_class*:**:*new_field*:*27*:*id*:*type_send_copy*:*type*:*Send a copy of this message to yourself:*:*w_field_label*:*260*:*w_field_label_size*:*left*:*w_field_label_pos*:*true*:*w_first_val*:*no*:*w_required*:**:*new_field*:*31*:*id*:*type_editor*:*type*:*custom_31*:*w_field_label*:*<p><span style="color: rgb(153, 0, 0); font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: normal; background-color: rgb(244, 244, 244);">* Indicates required fields</span></p>*:*w_editor*:**:*new_field*:*29*:*id*:*type_recaptcha*:*type*:*&nbsp;*:*w_field_label*:*250*:*w_field_label_size*:*top*:*w_field_label_pos*:**:*w_public*:**:*w_private*:*red*:*w_theme*:**:*w_class*:**:*new_field*:*26*:*id*:*type_radio*:*type*:*Which topic best describes your question?*:*w_field_label*:*280*:*w_field_label_size*:*top*:*w_field_label_pos*:*ver*:*w_flow*:*Product Support***Site Suggestions***Marketing & Sponsorship Opportunities***Referral Programs***Other*:*w_choices*:*false***false***false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:**:*w_class*:**:*new_field*:*16*:*id*:*type_address*:*type*:*Company address:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*280*:*w_size*:*Street Address***Street Address Line 2***City***State / Province / Region***Postal / Zip Code***Country*:*w_mini_labels*:*no***yes***no***yes***no***yes***no*:*w_disabled_fields*:*no*:*w_required*:*wdform_address*:*w_class*:**:*new_field*:*25*:*id*:*type_checkbox*:*type*:*When is the best time to contact you:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*ver*:*w_flow*:*Morning***Afternoon***Evening*:*w_choices*:*false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:**:*w_class*:**:*new_field*:*15*:*id*:*type_text*:*type*:*Company:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*new_field*:*8*:*id*:*type_phone*:*type*:*Mobile:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*100*:*w_size*:*****:*w_first_val*:*****:*w_title*:*Area Code***Phone Number*:*w_mini_labels*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*6*:*id*:*type_text*:*type*:*Phone number:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*new_field*:*3*:*id*:*type_name*:*type*:*Name:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*****:*w_first_val*:*****:*w_title*:*Title***First***Last***Middle*:*w_mini_labels*:*77*:*w_size*:*normal*:*w_name_format*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*23*:*id*:*type_textarea*:*type*:*Message:*:*w_field_label*:*120*:*w_field_label_size*:*top*:*w_field_label_pos*:*290*:*w_size_w*:*150*:*w_size_h*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*22*:*id*:*type_text*:*type*:*Subject:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*new_field*:*24*:*id*:*type_own_select*:*type*:*Issue type:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:*(Select a Topic)***Pre-Sales Question***Product Support***Site Suggestions***Other*:*w_choices*:*true***false***false***false***false*:*w_choices_checked*:*false***false***false***false***false*:*w_choices_disabled*:*no*:*w_required*:*wdform_select*:*w_class*:**:*new_field*:*7*:*id*:*type_phone*:*type*:*Phone:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*100*:*w_size*:*****:*w_first_val*:*****:*w_title*:*Area Code***Phone Number*:*w_mini_labels*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*\', 1, 1, \'*\', \'4\', \'\', \'4\', \'*4*\', 1, \'\', \'\', \'\', \'\', \'33,1,5,9,10,11,12,13,14,27,31,29,26,16,17,18,19,20,21,25,15,8,6,3,23,22,24,7,\', \'\', \'\', \'\', \'\', \'\', \'\', 1, 1, 1, 1)');
54
- $wpdb->query('INSERT INTO `' . $wpdb->prefix . 'contactformmaker` VALUES(2, \'Contact Form 1\', \'\', \'<div class="wdform-page-and-images" style="display:table; border-top:0px solid black;"><div id="form_id_tempform_view1" class="wdform_page" page_title="Untitled page" next_title="Next" next_type="text" next_class="wdform-page-button" next_checkable="false" previous_title="Previous" previous_type="text" previous_class="wdform-page-button" previous_checkable="false"><div class="wdform_section"><div class="wdform_column"></div></div><div wdid="1" type="type_section_break" class="wdform_tr_section_break">%1 - custom_1%</div><div class="wdform_section"><div class="wdform_column"><div wdid="3" class="wdform_row" style="opacity: 1;">%3 - Name:%</div><div wdid="4" class="wdform_row">%4 - E-mail:%</div><div wdid="7" class="wdform_row">%7 - Phone:%</div><div wdid="8" class="wdform_row" style="opacity: 1;">%8 - Mobile:%</div><div wdid="15" class="wdform_row" style="opacity: 1;">%15 - Company:%</div><div wdid="22" class="wdform_row">%22 - Subject:%</div><div wdid="26" class="wdform_row" style="opacity: 1;">%26 - Which topic best describes your question?%</div><div wdid="23" class="wdform_row">%23 - Details:%</div><div wdid="25" class="wdform_row" style="opacity: 0.4;" disabled="yes">%25 - When is the best time to contact you:%</div><div wdid="27" class="wdform_row">%27 - Send a copy of this message to yourself:%</div><div wdid="28" class="wdform_row" style="opacity: 1;">%28 - Type the characters you see here:%</div><div wdid="30" class="wdform_row">%30 - type_submit_reset_30%</div><div wdid="31" class="wdform_row" style="opacity: 1;">%31 - custom_31%</div><div wdid="2" class="wdform_row" style="opacity: 0.4;" disabled="yes">%2 - Your Name:%</div><div wdid="5" class="wdform_row" disabled="yes" style="opacity: 0.4;">%5 - Website:%</div><div wdid="6" class="wdform_row" disabled="yes" style="opacity: 0.4;">%6 - Phone number:%</div><div wdid="16" class="wdform_row" disabled="yes" style="opacity: 0.4;">%16 - Company address:%</div><div wdid="9" class="wdform_row" disabled="yes" style="opacity: 0.4;">%9 - Address:%</div><div wdid="24" class="wdform_row" style="opacity: 0.4;" disabled="yes">%24 - Issue type:%</div><div wdid="29" class="wdform_row" style="opacity: 0.4;" disabled="yes">%29 - &nbsp;%</div><div wdid="33" class="wdform_row" disabled="yes" style="opacity: 0.4;">%33 - map_33%</div><div wdid="32" class="wdform_row" disabled="yes" style="opacity: 0.4;">%32 - custom_32%</div></div></div><div valign="top" class="wdform_footer" style="width: 100%;"><div style="width: 100%;"><div style="width: 100%; display: table;"><div style="display: table-row-group;"><div id="form_id_temppage_nav1" style="display: table-row;"></div></div></div></div></div></div></div>\', 4, \'<div class="content_head" style="color: #565759;">\r\n<h1>Thank you for contacting us</h1>\r\n</div>\r\n<p>We have received your message and will respond to you within 24 hours (Monday-Friday).</p>\r\n<p>For urgent inquiries, please contact us using phone numbers down below.</p>\r\n<p>Phone: 123-987-6543</p>\r\n<p>Fax: 123-987-6542</p>\', \'\', 3, \'<p>%Name:% sent you a message from IP: %ip%</p>\r\n<p> </p>\r\n<p>%all%</p>\', \'<div class="content_head" style="color: #565759;">\r\n<h1>Dear %Name:%</h1>\r\n<h2>Thank you for contacting us</h2>\r\n</div>\r\n<p>We have received your message and will respond to you within 24 hours (Monday-Friday).</p>\r\n<p>For urgent inquiries, please contact us using phone numbers down below.</p>\r\n<p>Phone: 123-987-6543</p>\r\n<p>Fax: 123-987-6542</p>\r\n<p> </p>\r\n<p> </p>\r\n<p>%all%</p>\', 34, 1, \'3#**id**#Name:#**label**#type_name#****#4#**id**#E-mail:#**label**#type_submitter_mail#****#7#**id**#Phone:#**label**#type_phone#****#8#**id**#Mobile:#**label**#type_phone#****#15#**id**#Company:#**label**#type_text#****#22#**id**#Subject:#**label**#type_text#****#26#**id**#Which topic best describes your question?#**label**#type_radio#****#23#**id**#Details:#**label**#type_textarea#****#25#**id**#When is the best time to contact you:#**label**#type_checkbox#****#27#**id**#Send a copy of this message to yourself:#**label**#type_send_copy#****#28#**id**#Type the characters you see here:#**label**#type_captcha#****#30#**id**#type_submit_reset_30#**label**#type_submit_reset#****#31#**id**#custom_31#**label**#type_editor#****#2#**id**#Your Name:#**label**#type_text#****#5#**id**#Website:#**label**#type_text#****#6#**id**#Phone number:#**label**#type_text#****#16#**id**#Street Address#**label**#type_address#****#18#**id**#City#**label**#type_address#****#20#**id**#Postal / Zip Code#**label**#type_address#****#9#**id**#Street Address#**label**#type_address#****#10#**id**#Street Address Line 2#**label**#type_address#****#11#**id**#City#**label**#type_address#****#12#**id**#State / Province / Region#**label**#type_address#****#13#**id**#Postal / Zip Code#**label**#type_address#****#14#**id**#Country#**label**#type_address#****#24#**id**#Issue type:#**label**#type_own_select#****#29#**id**#&nbsp;#**label**#type_recaptcha#****#33#**id**#map_33#**label**#type_map#****#32#**id**#custom_32#**label**#type_editor#****#\', \'3#**id**#Name:#**label**#type_name#****#4#**id**#E-mail:#**label**#type_submitter_mail#****#7#**id**#Phone:#**label**#type_phone#****#8#**id**#Mobile:#**label**#type_phone#****#15#**id**#Company:#**label**#type_text#****#22#**id**#Subject:#**label**#type_text#****#26#**id**#Which topic best describes your question?#**label**#type_radio#****#23#**id**#Details:#**label**#type_textarea#****#25#**id**#When is the best time to contact you:#**label**#type_checkbox#****#27#**id**#Send a copy of this message to yourself:#**label**#type_send_copy#****#28#**id**#Type the characters you see here:#**label**#type_captcha#****#30#**id**#type_submit_reset_30#**label**#type_submit_reset#****#31#**id**#custom_31#**label**#type_editor#****#2#**id**#Your Name:#**label**#type_text#****#5#**id**#Website:#**label**#type_text#****#6#**id**#Phone number:#**label**#type_text#****#16#**id**#Street Address#**label**#type_address#****#18#**id**#City#**label**#type_address#****#20#**id**#Postal / Zip Code#**label**#type_address#****#9#**id**#Street Address#**label**#type_address#****#10#**id**#Street Address Line 2#**label**#type_address#****#11#**id**#City#**label**#type_address#****#12#**id**#State / Province / Region#**label**#type_address#****#13#**id**#Postal / Zip Code#**label**#type_address#****#14#**id**#Country#**label**#type_address#****#24#**id**#Issue type:#**label**#type_own_select#****#29#**id**#&nbsp;#**label**#type_recaptcha#****#33#**id**#map_33#**label**#type_map#****#32#**id**#custom_32#**label**#type_editor#****#\', 0, \'\', \'\', \'\', \'1*:*id*:*type_section_break*:*type*:*custom_1*:*w_field_label*:*<h2 style="font-size: 30px; font-family: Bitter, Georgia, serif; clear: both; line-height: 1.3; margin: 25px 0px;">Contact Us</h2><div style="color: rgb(20, 20, 18); font-family: Source Sans Pro, Helvetica, sans-serif; font-size: 16px; line-height: 24px;">You may contact us by filling in this form any time you need professional support or have any questions. You can also fill in the form to leave your comments or feedback.</div>*:*w_editor*:**:*new_field*:*3*:*id*:*type_name*:*type*:*Name:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*****:*w_first_val*:*****:*w_title*:*Title***First***Last***Middle*:*w_mini_labels*:*180*:*w_size*:*normal*:*w_name_format*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*4*:*id*:*type_submitter_mail*:*type*:*E-mail:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*360*:*w_size*:*someone@example.com*:*w_first_val*:*someone@example.com*:*w_title*:*yes*:*w_required*:**:*w_unique*:**:*w_class*:**:*new_field*:*7*:*id*:*type_phone*:*type*:*Phone:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*300*:*w_size*:*****:*w_first_val*:*****:*w_title*:*Area Code***Phone Number*:*w_mini_labels*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*8*:*id*:*type_phone*:*type*:*Mobile:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*300*:*w_size*:*****:*w_first_val*:*****:*w_title*:*Area Code***Phone Number*:*w_mini_labels*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*15*:*id*:*type_text*:*type*:*Company:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*360*:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*new_field*:*22*:*id*:*type_text*:*type*:*Subject:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*360*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*new_field*:*26*:*id*:*type_radio*:*type*:*Which topic best describes your question?*:*w_field_label*:*280*:*w_field_label_size*:*top*:*w_field_label_pos*:*ver*:*w_flow*:*Product Support***Site Suggestions***Marketing & Sponsorship Opportunities***Referral Programs***Other*:*w_choices*:*false***false***false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*yes*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*customLeftMargin*:*w_class*:**:*new_field*:*23*:*id*:*type_textarea*:*type*:*Details:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*360*:*w_size_w*:*100*:*w_size_h*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*25*:*id*:*type_checkbox*:*type*:*When is the best time to contact you:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*ver*:*w_flow*:*Morning***Afternoon***Evening*:*w_choices*:*false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:**:*w_class*:**:*new_field*:*27*:*id*:*type_send_copy*:*type*:*Send a copy of this message to yourself:*:*w_field_label*:*260*:*w_field_label_size*:*left*:*w_field_label_pos*:*false*:*w_first_val*:*no*:*w_required*:**:*new_field*:*28*:*id*:*type_captcha*:*type*:*Type the characters you see here:*:*w_field_label*:*250*:*w_field_label_size*:*top*:*w_field_label_pos*:*6*:*w_digit*:**:*w_class*:**:*new_field*:*30*:*id*:*type_submit_reset*:*type*:*type_submit_reset_30*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*true*:*w_act*:**:*new_field*:*31*:*id*:*type_editor*:*type*:*custom_31*:*w_field_label*:*<p><span style="color: rgb(153, 0, 0); font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: normal; background-color: rgb(244, 244, 244);">* Indicates required fields</span></p>*:*w_editor*:**:*new_field*:*2*:*id*:*type_text*:*type*:*Your Name:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*new_field*:*5*:*id*:*type_text*:*type*:*Website:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:*example.com*:*w_first_val*:*example.com*:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*new_field*:*6*:*id*:*type_text*:*type*:*Phone number:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*new_field*:*16*:*id*:*type_address*:*type*:*Company address:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*280*:*w_size*:*Street Address***Street Address Line 2***City***State / Province / Region***Postal / Zip Code***Country*:*w_mini_labels*:*no***yes***no***yes***no***yes***no*:*w_disabled_fields*:*no*:*w_required*:*wdform_address*:*w_class*:**:*new_field*:*9*:*id*:*type_address*:*type*:*Address:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*280*:*w_size*:*Street Address***Street Address Line 2***City***State / Province / Region***Postal / Zip Code***Country*:*w_mini_labels*:*no***no***no***no***no***no***no*:*w_disabled_fields*:*no*:*w_required*:*wdform_address*:*w_class*:**:*new_field*:*24*:*id*:*type_own_select*:*type*:*Issue type:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:*(Select a Topic)***Pre-Sales Question***Product Support***Site Suggestions***Other*:*w_choices*:*true***false***false***false***false*:*w_choices_checked*:*false***false***false***false***false*:*w_choices_disabled*:*no*:*w_required*:*wdform_select*:*w_class*:**:*new_field*:*29*:*id*:*type_recaptcha*:*type*:*&nbsp;*:*w_field_label*:*250*:*w_field_label_size*:*top*:*w_field_label_pos*:**:*w_public*:**:*w_private*:*red*:*w_theme*:**:*w_class*:**:*new_field*:*33*:*id*:*type_map*:*type*:*map_33*:*w_field_label*:*44.497928*:*w_center_x*:*40.1525306*:*w_center_y*:*44.497928*:*w_long*:*40.152531*:*w_lat*:*12*:*w_zoom*:*300*:*w_width*:*400*:*w_height*:**:*w_info*:*wdform_map*:*w_class*:**:*new_field*:*32*:*id*:*type_editor*:*type*:*custom_32*:*w_field_label*:*<p><strong>Sample Company, Inc.</strong></p><p>1412 South Main Expressway</p><p>Sugar Land, TX 98765</p><p>Phone: 123-987-6543</p><p>Fax: 123-987-6542</p>*:*w_editor*:**:*new_field*:*\', 1, 1, \'*\', \'4\', \'\', \'4\', \'*4*\', 1, \'\', \'\', \'\', \'\', \'25,2,5,6,16,17,18,19,20,21,9,10,11,12,13,14,24,29,33,32,\', \'\', \'\', \'\', \'\', \'%Subject:%\', \'%Subject:%\', 1, 1, 1, 1)');
55
- $wpdb->query('INSERT INTO `' . $wpdb->prefix . 'contactformmaker` VALUES(3, \'Contact Form 2\', \'\', \'<div class="wdform-page-and-images" style="display:table; border-top:0px solid black;"><div id="form_id_tempform_view1" class="wdform_page" page_title="Untitled page" next_title="Next" next_type="text" next_class="wdform-page-button" next_checkable="false" previous_title="Previous" previous_type="text" previous_class="wdform-page-button" previous_checkable="false"><div class="wdform_section"><div class="wdform_column"><div wdid="32" class="wdform_row" style="opacity: 1;">%32 - custom_32%</div><div wdid="33" class="wdform_row" style="opacity: 1;">%33 - map_33%</div></div></div><div wdid="1" type="type_section_break" class="wdform_tr_section_break">%1 - custom_1%</div><div class="wdform_section"><div class="wdform_column"><div wdid="2" class="wdform_row" style="opacity: 1;">%2 - Your Name:%</div><div wdid="7" class="wdform_row" style="opacity: 1;">%7 - Phone:%</div><div wdid="24" class="wdform_row" style="opacity: 1;">%24 - Issue type:%</div><div wdid="22" class="wdform_row">%22 - Subject:%</div><div wdid="23" class="wdform_row">%23 - Message:%</div></div><div class="wdform_column"><div wdid="4" class="wdform_row">%4 - E-mail:%</div><div wdid="5" class="wdform_row" style="opacity: 1;">%5 - Website:%</div><div wdid="9" class="wdform_row" style="opacity: 1;">%9 - Address:%</div><div wdid="27" class="wdform_row" style="opacity: 1;">%27 - Send a copy of this message to yourself:%</div><div wdid="30" class="wdform_row">%30 - type_submit_reset_30%</div><div wdid="3" class="wdform_row" style="opacity: 0.4;" disabled="yes">%3 - Name:%</div><div wdid="8" class="wdform_row" style="opacity: 0.4;" disabled="yes">%8 - Mobile:%</div><div wdid="25" class="wdform_row" style="opacity: 0.4;" disabled="yes">%25 - When is the best time to contact you:%</div><div wdid="28" class="wdform_row" style="opacity: 0.4;" disabled="yes">%28 - Type the characters you see here:%</div><div wdid="6" class="wdform_row" disabled="yes" style="opacity: 0.4;">%6 - Phone number:%</div><div wdid="15" class="wdform_row" disabled="yes" style="opacity: 0.4;">%15 - Company:%</div><div wdid="26" class="wdform_row" disabled="yes" style="opacity: 0.4;">%26 - Which topic best describes your question?%</div><div wdid="16" class="wdform_row" disabled="yes" style="opacity: 0.4;">%16 - Company address:%</div><div wdid="29" class="wdform_row" style="opacity: 0.4;" disabled="yes">%29 - &nbsp;%</div><div wdid="31" class="wdform_row" disabled="yes" style="opacity: 0.4;">%31 - custom_31%</div></div></div><div valign="top" class="wdform_footer" style="width: 100%;"><div style="width: 100%;"><div style="width: 100%; display: table;"><div style="display: table-row-group;"><div id="form_id_temppage_nav1" style="display: table-row;"></div></div></div></div></div></div></div>\', 4, \'<div class="content_head" style="color: #565759;">\r\n<h1>Thank you for contacting us</h1>\r\n</div>\r\n<p>We have received your message and will respond to you within 24 hours (Monday-Friday).</p>\r\n<p>For urgent inquiries, please contact us using phone numbers down below.</p>\r\n<p>Phone: 123-987-6543</p>\r\n<p>Fax: 123-987-6542</p>\', \'\', 3, \'<p>%Your Name:% sent you a message from IP: %ip%</p>\r\n<p> </p>\r\n<p>%all%</p>\', \'<div class="content_head" style="color: #565759;">\r\n<h1>Dear %Your Name:%</h1>\r\n<h2>Thank you for contacting us</h2>\r\n</div>\r\n<p>We have received your message and will respond to you within 24 hours (Monday-Friday).</p>\r\n<p>For urgent inquiries, please contact us using phone numbers down below.</p>\r\n<p>Phone: 123-987-6543</p>\r\n<p>Fax: 123-987-6542</p>\r\n<p> </p>\r\n<p> </p>\r\n<p>%all%</p>\', 34, 1, \'32#**id**#custom_32#**label**#type_editor#****#33#**id**#map_33#**label**#type_map#****#2#**id**#Your Name:#**label**#type_text#****#7#**id**#Phone:#**label**#type_phone#****#24#**id**#Issue type:#**label**#type_own_select#****#22#**id**#Subject:#**label**#type_text#****#23#**id**#Message:#**label**#type_textarea#****#4#**id**#E-mail:#**label**#type_submitter_mail#****#5#**id**#Website:#**label**#type_text#****#9#**id**#Street Address#**label**#type_address#****#10#**id**#Street Address Line 2#**label**#type_address#****#11#**id**#City#**label**#type_address#****#12#**id**#State / Province / Region#**label**#type_address#****#13#**id**#Postal / Zip Code#**label**#type_address#****#14#**id**#Country#**label**#type_address#****#27#**id**#Send a copy of this message to yourself:#**label**#type_send_copy#****#30#**id**#type_submit_reset_30#**label**#type_submit_reset#****#3#**id**#Name:#**label**#type_name#****#8#**id**#Mobile:#**label**#type_phone#****#25#**id**#When is the best time to contact you:#**label**#type_checkbox#****#28#**id**#Type the characters you see here:#**label**#type_captcha#****#6#**id**#Phone number:#**label**#type_text#****#15#**id**#Company:#**label**#type_text#****#26#**id**#Which topic best describes your question?#**label**#type_radio#****#16#**id**#Street Address#**label**#type_address#****#18#**id**#City#**label**#type_address#****#20#**id**#Postal / Zip Code#**label**#type_address#****#29#**id**#&nbsp;#**label**#type_recaptcha#****#31#**id**#custom_31#**label**#type_editor#****#\', \'32#**id**#custom_32#**label**#type_editor#****#33#**id**#map_33#**label**#type_map#****#2#**id**#Your Name:#**label**#type_text#****#7#**id**#Phone:#**label**#type_phone#****#24#**id**#Issue type:#**label**#type_own_select#****#22#**id**#Subject:#**label**#type_text#****#23#**id**#Message:#**label**#type_textarea#****#4#**id**#E-mail:#**label**#type_submitter_mail#****#5#**id**#Website:#**label**#type_text#****#9#**id**#Street Address#**label**#type_address#****#10#**id**#Street Address Line 2#**label**#type_address#****#11#**id**#City#**label**#type_address#****#12#**id**#State / Province / Region#**label**#type_address#****#13#**id**#Postal / Zip Code#**label**#type_address#****#14#**id**#Country#**label**#type_address#****#27#**id**#Send a copy of this message to yourself:#**label**#type_send_copy#****#30#**id**#type_submit_reset_30#**label**#type_submit_reset#****#3#**id**#Name:#**label**#type_name#****#8#**id**#Mobile:#**label**#type_phone#****#25#**id**#When is the best time to contact you:#**label**#type_checkbox#****#28#**id**#Type the characters you see here:#**label**#type_captcha#****#6#**id**#Phone number:#**label**#type_text#****#15#**id**#Company:#**label**#type_text#****#26#**id**#Which topic best describes your question?#**label**#type_radio#****#16#**id**#Street Address#**label**#type_address#****#18#**id**#City#**label**#type_address#****#20#**id**#Postal / Zip Code#**label**#type_address#****#29#**id**#&nbsp;#**label**#type_recaptcha#****#31#**id**#custom_31#**label**#type_editor#****#\', 0, \'\', \'\', \'\', \'32*:*id*:*type_editor*:*type*:*custom_32*:*w_field_label*:*<h2 style="font-size: 30px; font-family: Bitter, Georgia, serif; clear: both; line-height: 1.3; margin: 25px 0px;">Contact Us</h2><div style="color: rgb(20, 20, 18); font-family: Source Sans Pro, Helvetica, sans-serif; font-size: 16px; line-height: 24px;">You may contact us by filling in this form any time you need professional support or have any questions. You can also fill in the form to leave your comments or feedback.</div>*:*w_editor*:**:*new_field*:*33*:*id*:*type_map*:*type*:*map_33*:*w_field_label*:*-74.0059731*:*w_center_x*:*40.7143528*:*w_center_y*:*-74.005973*:*w_long*:*40.714353*:*w_lat*:*11*:*w_zoom*:*580*:*w_width*:*200*:*w_height*:**:*w_info*:*wdform_map*:*w_class*:**:*new_field*:*1*:*id*:*type_section_break*:*type*:*custom_1*:*w_field_label*:*<hr>*:*w_editor*:**:*new_field*:*2*:*id*:*type_text*:*type*:*Your Name:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*new_field*:*7*:*id*:*type_phone*:*type*:*Phone:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*100*:*w_size*:*****:*w_first_val*:*****:*w_title*:*Area Code***Phone Number*:*w_mini_labels*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*24*:*id*:*type_own_select*:*type*:*Issue type:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:*(Select a Topic)***Pre-Sales Question***Product Support***Site Suggestions***Other*:*w_choices*:*true***false***false***false***false*:*w_choices_checked*:*false***false***false***false***false*:*w_choices_disabled*:*no*:*w_required*:*wdform_select*:*w_class*:**:*new_field*:*22*:*id*:*type_text*:*type*:*Subject:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*new_field*:*23*:*id*:*type_textarea*:*type*:*Message:*:*w_field_label*:*120*:*w_field_label_size*:*top*:*w_field_label_pos*:*290*:*w_size_w*:*180*:*w_size_h*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*4*:*id*:*type_submitter_mail*:*type*:*E-mail:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:*someone@example.com*:*w_first_val*:*someone@example.com*:*w_title*:*yes*:*w_required*:**:*w_unique*:**:*w_class*:**:*new_field*:*5*:*id*:*type_text*:*type*:*Website:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:*example.com*:*w_first_val*:*example.com*:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*new_field*:*9*:*id*:*type_address*:*type*:*Address:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*280*:*w_size*:*Street Address***Street Address Line 2***City***State / Province / Region***Postal / Zip Code***Country*:*w_mini_labels*:*no***no***no***no***no***no***no*:*w_disabled_fields*:*no*:*w_required*:*wdform_address*:*w_class*:**:*new_field*:*27*:*id*:*type_send_copy*:*type*:*Send a copy of this message to yourself:*:*w_field_label*:*260*:*w_field_label_size*:*left*:*w_field_label_pos*:*false*:*w_first_val*:*no*:*w_required*:**:*new_field*:*30*:*id*:*type_submit_reset*:*type*:*type_submit_reset_30*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*true*:*w_act*:**:*new_field*:*3*:*id*:*type_name*:*type*:*Name:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*****:*w_first_val*:*****:*w_title*:*Title***First***Last***Middle*:*w_mini_labels*:*77*:*w_size*:*normal*:*w_name_format*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*8*:*id*:*type_phone*:*type*:*Mobile:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*100*:*w_size*:*****:*w_first_val*:*****:*w_title*:*Area Code***Phone Number*:*w_mini_labels*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*25*:*id*:*type_checkbox*:*type*:*When is the best time to contact you:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*ver*:*w_flow*:*Morning***Afternoon***Evening*:*w_choices*:*false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:**:*w_class*:**:*new_field*:*28*:*id*:*type_captcha*:*type*:*Type the characters you see here:*:*w_field_label*:*250*:*w_field_label_size*:*top*:*w_field_label_pos*:*6*:*w_digit*:**:*w_class*:**:*new_field*:*6*:*id*:*type_text*:*type*:*Phone number:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*new_field*:*15*:*id*:*type_text*:*type*:*Company:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*new_field*:*26*:*id*:*type_radio*:*type*:*Which topic best describes your question?*:*w_field_label*:*280*:*w_field_label_size*:*top*:*w_field_label_pos*:*ver*:*w_flow*:*Product Support***Site Suggestions***Marketing & Sponsorship Opportunities***Referral Programs***Other*:*w_choices*:*false***false***false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:**:*w_class*:**:*new_field*:*16*:*id*:*type_address*:*type*:*Company address:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*280*:*w_size*:*Street Address***1***City***State / Province / Region***Postal / Zip Code***Country*:*w_mini_labels*:*no***yes***no***yes***no***yes***no*:*w_disabled_fields*:*no*:*w_required*:*wdform_address*:*w_class*:**:*new_field*:*29*:*id*:*type_recaptcha*:*type*:*&nbsp;*:*w_field_label*:*250*:*w_field_label_size*:*top*:*w_field_label_pos*:**:*w_public*:**:*w_private*:*red*:*w_theme*:**:*w_class*:**:*new_field*:*31*:*id*:*type_editor*:*type*:*custom_31*:*w_field_label*:*<p><span style="color: rgb(153, 0, 0); font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: normal; background-color: rgb(244, 244, 244);">* Indicates required fields</span></p>*:*w_editor*:**:*new_field*:*\', 1, 1, \'*\', \'4\', \'\', \'4\', \'*4*\', 1, \'\', \'\', \'\', \'\', \'3,8,25,28,6,15,26,16,17,18,19,20,21,29,31,\', \'\', \'\', \'\', \'\', \'%Subject:%\', \'%Subject:%\', 1, 1, 1, 1)');
56
- $wpdb->query('INSERT INTO `' . $wpdb->prefix . 'contactformmaker` VALUES(4, \'Contact Form 3\', \'\', \'<div class="wdform-page-and-images" style="display:table; border-top:0px solid black;"><div id="form_id_tempform_view1" class="wdform_page" page_title="Untitled page" next_title="Next" next_type="text" next_class="wdform-page-button" next_checkable="false" previous_title="Previous" previous_type="text" previous_class="wdform-page-button" previous_checkable="false"><div class="wdform_section"><div class="wdform_column"></div></div><div wdid="1" type="type_section_break" class="wdform_tr_section_break" disabled="yes" style="opacity: 0.4;">%1 - custom_1%</div><div class="wdform_section"><div class="wdform_column"><div wdid="32" class="wdform_row" style="opacity: 1;">%32 - custom_32%</div><div wdid="3" class="wdform_row" style="opacity: 1;">%3 - Enter your name:%</div><div wdid="4" class="wdform_row">%4 - Enter your E-mail:%</div><div wdid="7" class="wdform_row">%7 - Home Phone:%</div><div wdid="8" class="wdform_row" style="opacity: 1;">%8 - Work Phone:%</div><div wdid="15" class="wdform_row" style="opacity: 1;">%15 - Company:%</div><div wdid="22" class="wdform_row">%22 - Message Subject:%</div><div wdid="23" class="wdform_row">%23 - Enter your Message:%</div><div wdid="26" class="wdform_row" style="opacity: 0.4;" disabled="yes">%26 - Which topic best describes your question?%</div><div wdid="25" class="wdform_row" style="opacity: 0.4;" disabled="yes">%25 - When is the best time to contact you:%</div><div wdid="27" class="wdform_row">%27 - Send a copy of this message to yourself:%</div><div wdid="28" class="wdform_row" style="opacity: 1;">%28 - Type the characters you see here:%</div><div wdid="30" class="wdform_row">%30 - type_submit_reset_30%</div><div wdid="31" class="wdform_row" style="opacity: 1;">%31 - custom_31%</div><div wdid="2" class="wdform_row" style="opacity: 0.4;" disabled="yes">%2 - Your Name:%</div><div wdid="5" class="wdform_row" disabled="yes" style="opacity: 0.4;">%5 - Website:%</div><div wdid="6" class="wdform_row" disabled="yes" style="opacity: 0.4;">%6 - Phone number:%</div><div wdid="16" class="wdform_row" disabled="yes" style="opacity: 0.4;">%16 - Company address:%</div><div wdid="9" class="wdform_row" disabled="yes" style="opacity: 0.4;">%9 - Address:%</div><div wdid="24" class="wdform_row" style="opacity: 0.4;" disabled="yes">%24 - Issue type:%</div><div wdid="29" class="wdform_row" style="opacity: 0.4;" disabled="yes">%29 - &nbsp;%</div><div wdid="33" class="wdform_row" disabled="yes" style="opacity: 0.4;">%33 - map_33%</div></div></div><div valign="top" class="wdform_footer" style="width: 100%;"><div style="width: 100%;"><div style="width: 100%; display: table;"><div style="display: table-row-group;"><div id="form_id_temppage_nav1" style="display: table-row;"></div></div></div></div></div></div></div>\', 4, \'<div class="content_head" style="color: #565759;">\r\n<h1>Thank you for contacting us</h1>\r\n</div>\r\n<p>We have received your message and will respond to you within 24 hours (Monday-Friday).</p>\r\n<p>For urgent inquiries, please contact us using phone numbers down below.</p>\r\n<p>Phone: 123-987-6543</p>\r\n<p>Fax: 123-987-6542</p>\', \'\', 3, \'<p>%Enter your name:% sent you a message from IP: %ip%</p>\r\n<p> </p>\r\n<p>%all%</p>\', \'<div class="content_head" style="color: #565759;">\r\n<h1>Dear %Enter your name:%</h1>\r\n<h2>Thank you for contacting us</h2>\r\n</div>\r\n<p>We have received your message and will respond to you within 24 hours (Monday-Friday).</p>\r\n<p>For urgent inquiries, please contact us using phone numbers down below.</p>\r\n<p>Phone: 123-987-6543</p>\r\n<p>Fax: 123-987-6542</p>\r\n<p> </p>\r\n<p> </p>\r\n<p>%all%</p>\', 34, 1, \'32#**id**#custom_32#**label**#type_editor#****#3#**id**#Enter your name:#**label**#type_name#****#4#**id**#Enter your E-mail:#**label**#type_submitter_mail#****#7#**id**#Home Phone:#**label**#type_phone#****#8#**id**#Work Phone:#**label**#type_phone#****#15#**id**#Company:#**label**#type_text#****#22#**id**#Message Subject:#**label**#type_text#****#23#**id**#Enter your Message:#**label**#type_textarea#****#26#**id**#Which topic best describes your question?#**label**#type_radio#****#25#**id**#When is the best time to contact you:#**label**#type_checkbox#****#27#**id**#Send a copy of this message to yourself:#**label**#type_send_copy#****#28#**id**#Type the characters you see here:#**label**#type_captcha#****#30#**id**#type_submit_reset_30#**label**#type_submit_reset#****#31#**id**#custom_31#**label**#type_editor#****#2#**id**#Your Name:#**label**#type_text#****#5#**id**#Website:#**label**#type_text#****#6#**id**#Phone number:#**label**#type_text#****#16#**id**#Street Address#**label**#type_address#****#18#**id**#City#**label**#type_address#****#20#**id**#Postal / Zip Code#**label**#type_address#****#9#**id**#Street Address#**label**#type_address#****#10#**id**#Street Address Line 2#**label**#type_address#****#11#**id**#City#**label**#type_address#****#12#**id**#State / Province / Region#**label**#type_address#****#13#**id**#Postal / Zip Code#**label**#type_address#****#14#**id**#Country#**label**#type_address#****#24#**id**#Issue type:#**label**#type_own_select#****#29#**id**#&nbsp;#**label**#type_recaptcha#****#33#**id**#map_33#**label**#type_map#****#\', \'32#**id**#custom_32#**label**#type_editor#****#3#**id**#Enter your name:#**label**#type_name#****#4#**id**#Enter your E-mail:#**label**#type_submitter_mail#****#7#**id**#Home Phone:#**label**#type_phone#****#8#**id**#Work Phone:#**label**#type_phone#****#15#**id**#Company:#**label**#type_text#****#22#**id**#Message Subject:#**label**#type_text#****#23#**id**#Enter your Message:#**label**#type_textarea#****#26#**id**#Which topic best describes your question?#**label**#type_radio#****#25#**id**#When is the best time to contact you:#**label**#type_checkbox#****#27#**id**#Send a copy of this message to yourself:#**label**#type_send_copy#****#28#**id**#Type the characters you see here:#**label**#type_captcha#****#30#**id**#type_submit_reset_30#**label**#type_submit_reset#****#31#**id**#custom_31#**label**#type_editor#****#2#**id**#Your Name:#**label**#type_text#****#5#**id**#Website:#**label**#type_text#****#6#**id**#Phone number:#**label**#type_text#****#16#**id**#Street Address#**label**#type_address#****#18#**id**#City#**label**#type_address#****#20#**id**#Postal / Zip Code#**label**#type_address#****#9#**id**#Street Address#**label**#type_address#****#10#**id**#Street Address Line 2#**label**#type_address#****#11#**id**#City#**label**#type_address#****#12#**id**#State / Province / Region#**label**#type_address#****#13#**id**#Postal / Zip Code#**label**#type_address#****#14#**id**#Country#**label**#type_address#****#24#**id**#Issue type:#**label**#type_own_select#****#29#**id**#&nbsp;#**label**#type_recaptcha#****#33#**id**#map_33#**label**#type_map#****#\', 0, \'\', \'\', \'\', \'1*:*id*:*type_section_break*:*type*:*custom_1*:*w_field_label*:*<h2 style="font-size: 30px; font-family: Bitter, Georgia, serif; clear: both; line-height: 1.3; margin: 25px 0px;">Contact Us</h2><div style="color: rgb(20, 20, 18); font-family: Source Sans Pro, Helvetica, sans-serif; font-size: 16px; line-height: 24px;">You may contact us by filling in this form any time you need professional support or have any questions. You can also fill in the form to leave your comments or feedback.</div>*:*w_editor*:**:*new_field*:*32*:*id*:*type_editor*:*type*:*custom_32*:*w_field_label*:*<p><strong>Sample Company, Inc.</strong></p><p>1412 South Main Expressway</p><p>Sugar Land, TX 98765</p><p>Phone: 123-987-6543</p><p>Fax: 123-987-6542</p>*:*w_editor*:**:*new_field*:*3*:*id*:*type_name*:*type*:*Enter your name:*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*****:*w_first_val*:*****:*w_title*:*Title***First***Last***Middle*:*w_mini_labels*:*180*:*w_size*:*normal*:*w_name_format*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*4*:*id*:*type_submitter_mail*:*type*:*Enter your E-mail:*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*360*:*w_size*:*someone@example.com*:*w_first_val*:*someone@example.com*:*w_title*:*yes*:*w_required*:**:*w_unique*:**:*w_class*:**:*new_field*:*7*:*id*:*type_phone*:*type*:*Home Phone:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*300*:*w_size*:*****:*w_first_val*:*****:*w_title*:*Area Code***Phone Number*:*w_mini_labels*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*8*:*id*:*type_phone*:*type*:*Work Phone:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*300*:*w_size*:*****:*w_first_val*:*****:*w_title*:*Area Code***Phone Number*:*w_mini_labels*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*15*:*id*:*type_text*:*type*:*Company:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*360*:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*new_field*:*22*:*id*:*type_text*:*type*:*Message Subject:*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*360*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*new_field*:*23*:*id*:*type_textarea*:*type*:*Enter your Message:*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*360*:*w_size_w*:*300*:*w_size_h*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*26*:*id*:*type_radio*:*type*:*Which topic best describes your question?*:*w_field_label*:*280*:*w_field_label_size*:*top*:*w_field_label_pos*:*ver*:*w_flow*:*Product Support***Site Suggestions***Marketing & Sponsorship Opportunities***Referral Programs***Other*:*w_choices*:*false***false***false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*yes*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*customLeftMargin*:*w_class*:**:*new_field*:*25*:*id*:*type_checkbox*:*type*:*When is the best time to contact you:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*ver*:*w_flow*:*Morning***Afternoon***Evening*:*w_choices*:*false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:**:*w_class*:**:*new_field*:*27*:*id*:*type_send_copy*:*type*:*Send a copy of this message to yourself:*:*w_field_label*:*260*:*w_field_label_size*:*left*:*w_field_label_pos*:*false*:*w_first_val*:*no*:*w_required*:**:*new_field*:*28*:*id*:*type_captcha*:*type*:*Type the characters you see here:*:*w_field_label*:*250*:*w_field_label_size*:*top*:*w_field_label_pos*:*6*:*w_digit*:**:*w_class*:**:*new_field*:*30*:*id*:*type_submit_reset*:*type*:*type_submit_reset_30*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*false*:*w_act*:**:*new_field*:*31*:*id*:*type_editor*:*type*:*custom_31*:*w_field_label*:*<p><span style="color: rgb(153, 0, 0); font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: normal; background-color: rgb(244, 244, 244);">* Indicates required fields</span></p>*:*w_editor*:**:*new_field*:*2*:*id*:*type_text*:*type*:*Your Name:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*new_field*:*5*:*id*:*type_text*:*type*:*Website:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:*example.com*:*w_first_val*:*example.com*:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*new_field*:*6*:*id*:*type_text*:*type*:*Phone number:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*new_field*:*16*:*id*:*type_address*:*type*:*Company address:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*280*:*w_size*:*Street Address***Street Address Line 2***City***State / Province / Region***Postal / Zip Code***Country*:*w_mini_labels*:*no***yes***no***yes***no***yes***no*:*w_disabled_fields*:*no*:*w_required*:*wdform_address*:*w_class*:**:*new_field*:*9*:*id*:*type_address*:*type*:*Address:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*280*:*w_size*:*Street Address***Street Address Line 2***City***State / Province / Region***Postal / Zip Code***Country*:*w_mini_labels*:*no***no***no***no***no***no***no*:*w_disabled_fields*:*no*:*w_required*:*wdform_address*:*w_class*:**:*new_field*:*24*:*id*:*type_own_select*:*type*:*Issue type:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:*(Select a Topic)***Pre-Sales Question***Product Support***Site Suggestions***Other*:*w_choices*:*true***false***false***false***false*:*w_choices_checked*:*false***false***false***false***false*:*w_choices_disabled*:*no*:*w_required*:*wdform_select*:*w_class*:**:*new_field*:*29*:*id*:*type_recaptcha*:*type*:*&nbsp;*:*w_field_label*:*250*:*w_field_label_size*:*top*:*w_field_label_pos*:**:*w_public*:**:*w_private*:*red*:*w_theme*:**:*w_class*:**:*new_field*:*33*:*id*:*type_map*:*type*:*map_33*:*w_field_label*:*44.497928*:*w_center_x*:*40.1525306*:*w_center_y*:*44.497928*:*w_long*:*40.152531*:*w_lat*:*12*:*w_zoom*:*300*:*w_width*:*400*:*w_height*:**:*w_info*:*wdform_map*:*w_class*:**:*new_field*:*\', 1, 1, \'*\', \'4\', \'\', \'4\', \'*4*\', 1, \'\', \'\', \'\', \'\', \'1,26,25,2,5,6,16,17,18,19,20,21,9,10,11,12,13,14,24,29,33,\', \'\', \'\', \'\', \'\', \'%Message Subject:%\', \'%Message Subject:%\', 1, 1, 1, 1)');
57
- $wpdb->query('INSERT INTO `' . $wpdb->prefix . 'contactformmaker` VALUES(5, \'Contact Form 4\', \'\', \'<div class="wdform-page-and-images" style="display:table; border-top:0px solid black;"><div id="form_id_tempform_view1" class="wdform_page" page_title="Untitled page" next_title="Next" next_type="text" next_class="wdform-page-button" next_checkable="false" previous_title="Previous" previous_type="text" previous_class="wdform-page-button" previous_checkable="false"><div class="wdform_section"><div class="wdform_column"></div></div><div wdid="1" type="type_section_break" class="wdform_tr_section_break" disabled="yes" style="opacity: 0.4;">%1 - custom_1%</div><div class="wdform_section"><div class="wdform_column"><div wdid="32" class="wdform_row" style="opacity: 0.4;" disabled="yes">%32 - custom_32%</div><div wdid="3" class="wdform_row" style="opacity: 1;">%3 - Enter your name:%</div><div wdid="4" class="wdform_row">%4 - Enter your E-mail:%</div><div wdid="7" class="wdform_row" disabled="yes" style="opacity: 0.4;">%7 - Home Phone:%</div><div wdid="8" class="wdform_row" style="opacity: 1;">%8 - Work Phone:%</div><div wdid="15" class="wdform_row" style="opacity: 1;">%15 - Company:%</div><div wdid="16" class="wdform_row" style="opacity: 1;">%16 - Company address:%</div><div wdid="22" class="wdform_row">%22 - Message Subject:%</div><div wdid="23" class="wdform_row">%23 - Enter your Message:%</div><div wdid="26" class="wdform_row" style="opacity: 0.4;" disabled="yes">%26 - Which topic best describes your question?%</div><div wdid="25" class="wdform_row" style="opacity: 0.4;" disabled="yes">%25 - When is the best time to contact you:%</div><div wdid="27" class="wdform_row">%27 - Send a copy of this message to yourself:%</div><div wdid="28" class="wdform_row" style="opacity: 0.4;" disabled="yes">%28 - Type the characters you see here:%</div><div wdid="30" class="wdform_row">%30 - type_submit_reset_30%</div><div wdid="31" class="wdform_row" style="opacity: 0.4;" disabled="yes">%31 - custom_31%</div><div wdid="2" class="wdform_row" style="opacity: 0.4;" disabled="yes">%2 - Your Name:%</div><div wdid="5" class="wdform_row" disabled="yes" style="opacity: 0.4;">%5 - Website:%</div><div wdid="6" class="wdform_row" disabled="yes" style="opacity: 0.4;">%6 - Phone number:%</div><div wdid="9" class="wdform_row" style="opacity: 0.4;" disabled="yes">%9 - Address:%</div><div wdid="24" class="wdform_row" style="opacity: 0.4;" disabled="yes">%24 - Issue type:%</div><div wdid="29" class="wdform_row" style="opacity: 0.4;" disabled="yes">%29 - &nbsp;%</div><div wdid="33" class="wdform_row" disabled="yes" style="opacity: 0.4;">%33 - map_33%</div></div></div><div valign="top" class="wdform_footer" style="width: 100%;"><div style="width: 100%;"><div style="width: 100%; display: table;"><div style="display: table-row-group;"><div id="form_id_temppage_nav1" style="display: table-row;"></div></div></div></div></div></div></div>\', 4, \'<div class="content_head" style="color: #565759;">\r\n<h1>Thank you for contacting us</h1>\r\n</div>\r\n<p>We have received your message and will respond to you within 24 hours (Monday-Friday).</p>\r\n<p>For urgent inquiries, please contact us using phone numbers down below.</p>\r\n<p>Phone: 123-987-6543</p>\r\n<p>Fax: 123-987-6542</p>\', \'\', 3, \'<p>%Enter your name:% sent you a message from IP: %ip%</p>\r\n<p> </p>\r\n<p>%all%</p>\', \'<div class="content_head" style="color: #565759;">\r\n<h1>Dear %Enter your name:%</h1>\r\n<h2>Thank you for contacting us</h2>\r\n</div>\r\n<p>We have received your message and will respond to you within 24 hours (Monday-Friday).</p>\r\n<p>For urgent inquiries, please contact us using phone numbers down below.</p>\r\n<p>Phone: 123-987-6543</p>\r\n<p>Fax: 123-987-6542</p>\r\n<p> </p>\r\n<p> </p>\r\n<p>%all%</p>\', 34, 1, \'32#**id**#custom_32#**label**#type_editor#****#3#**id**#Enter your name:#**label**#type_name#****#4#**id**#Enter your E-mail:#**label**#type_submitter_mail#****#7#**id**#Home Phone:#**label**#type_phone#****#8#**id**#Work Phone:#**label**#type_phone#****#15#**id**#Company:#**label**#type_text#****#16#**id**#Street Address#**label**#type_address#****#18#**id**#City#**label**#type_address#****#20#**id**#Postal / Zip Code#**label**#type_address#****#22#**id**#Message Subject:#**label**#type_text#****#23#**id**#Enter your Message:#**label**#type_textarea#****#26#**id**#Which topic best describes your question?#**label**#type_radio#****#25#**id**#When is the best time to contact you:#**label**#type_checkbox#****#27#**id**#Send a copy of this message to yourself:#**label**#type_send_copy#****#28#**id**#Type the characters you see here:#**label**#type_captcha#****#30#**id**#type_submit_reset_30#**label**#type_submit_reset#****#31#**id**#custom_31#**label**#type_editor#****#2#**id**#Your Name:#**label**#type_text#****#5#**id**#Website:#**label**#type_text#****#6#**id**#Phone number:#**label**#type_text#****#9#**id**#Street Address#**label**#type_address#****#10#**id**#Street Address Line 2#**label**#type_address#****#11#**id**#City#**label**#type_address#****#12#**id**#State / Province / Region#**label**#type_address#****#13#**id**#Postal / Zip Code#**label**#type_address#****#14#**id**#Country#**label**#type_address#****#24#**id**#Issue type:#**label**#type_own_select#****#29#**id**#&nbsp;#**label**#type_recaptcha#****#33#**id**#map_33#**label**#type_map#****#\', \'32#**id**#custom_32#**label**#type_editor#****#3#**id**#Enter your name:#**label**#type_name#****#4#**id**#Enter your E-mail:#**label**#type_submitter_mail#****#7#**id**#Home Phone:#**label**#type_phone#****#8#**id**#Work Phone:#**label**#type_phone#****#15#**id**#Company:#**label**#type_text#****#16#**id**#Street Address#**label**#type_address#****#18#**id**#City#**label**#type_address#****#20#**id**#Postal / Zip Code#**label**#type_address#****#22#**id**#Message Subject:#**label**#type_text#****#23#**id**#Enter your Message:#**label**#type_textarea#****#26#**id**#Which topic best describes your question?#**label**#type_radio#****#25#**id**#When is the best time to contact you:#**label**#type_checkbox#****#27#**id**#Send a copy of this message to yourself:#**label**#type_send_copy#****#28#**id**#Type the characters you see here:#**label**#type_captcha#****#30#**id**#type_submit_reset_30#**label**#type_submit_reset#****#31#**id**#custom_31#**label**#type_editor#****#2#**id**#Your Name:#**label**#type_text#****#5#**id**#Website:#**label**#type_text#****#6#**id**#Phone number:#**label**#type_text#****#9#**id**#Street Address#**label**#type_address#****#10#**id**#Street Address Line 2#**label**#type_address#****#11#**id**#City#**label**#type_address#****#12#**id**#State / Province / Region#**label**#type_address#****#13#**id**#Postal / Zip Code#**label**#type_address#****#14#**id**#Country#**label**#type_address#****#24#**id**#Issue type:#**label**#type_own_select#****#29#**id**#&nbsp;#**label**#type_recaptcha#****#33#**id**#map_33#**label**#type_map#****#\', 0, \'\', \'\', \'\', \'1*:*id*:*type_section_break*:*type*:*custom_1*:*w_field_label*:*<h2 style="font-size: 30px; font-family: Bitter, Georgia, serif; clear: both; line-height: 1.3; margin: 25px 0px;">Contact Us</h2><div style="color: rgb(20, 20, 18); font-family: Source Sans Pro, Helvetica, sans-serif; font-size: 16px; line-height: 24px;">You may contact us by filling in this form any time you need professional support or have any questions. You can also fill in the form to leave your comments or feedback.</div>*:*w_editor*:**:*new_field*:*32*:*id*:*type_editor*:*type*:*custom_32*:*w_field_label*:*<p><strong>Sample Company, Inc.</strong></p><p>1412 South Main Expressway</p><p>Sugar Land, TX 98765</p><p>Phone: 123-987-6543</p><p>Fax: 123-987-6542</p>*:*w_editor*:**:*new_field*:*3*:*id*:*type_name*:*type*:*Enter your name:*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*****:*w_first_val*:*****:*w_title*:*Title***First***Last***Middle*:*w_mini_labels*:*180*:*w_size*:*normal*:*w_name_format*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*4*:*id*:*type_submitter_mail*:*type*:*Enter your E-mail:*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*360*:*w_size*:*someone@example.com*:*w_first_val*:*someone@example.com*:*w_title*:*yes*:*w_required*:**:*w_unique*:**:*w_class*:**:*new_field*:*7*:*id*:*type_phone*:*type*:*Home Phone:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*300*:*w_size*:*****:*w_first_val*:*****:*w_title*:*Area Code***Phone Number*:*w_mini_labels*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*8*:*id*:*type_phone*:*type*:*Work Phone:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*300*:*w_size*:*****:*w_first_val*:*****:*w_title*:*Area Code***Phone Number*:*w_mini_labels*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*15*:*id*:*type_text*:*type*:*Company:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*360*:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*new_field*:*16*:*id*:*type_address*:*type*:*Company address:*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*360*:*w_size*:*Street Address***Street Address Line 2***City***State / Province / Region***Postal / Zip Code***Country*:*w_mini_labels*:*no***yes***no***yes***no***yes***no*:*w_disabled_fields*:*no*:*w_required*:*wdform_address*:*w_class*:**:*new_field*:*22*:*id*:*type_text*:*type*:*Message Subject:*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*360*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*new_field*:*23*:*id*:*type_textarea*:*type*:*Enter your Message:*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*360*:*w_size_w*:*200*:*w_size_h*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*26*:*id*:*type_radio*:*type*:*Which topic best describes your question?*:*w_field_label*:*280*:*w_field_label_size*:*top*:*w_field_label_pos*:*ver*:*w_flow*:*Product Support***Site Suggestions***Marketing & Sponsorship Opportunities***Referral Programs***Other*:*w_choices*:*false***false***false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*yes*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*customLeftMargin*:*w_class*:**:*new_field*:*25*:*id*:*type_checkbox*:*type*:*When is the best time to contact you:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*ver*:*w_flow*:*Morning***Afternoon***Evening*:*w_choices*:*false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:**:*w_class*:**:*new_field*:*27*:*id*:*type_send_copy*:*type*:*Send a copy of this message to yourself:*:*w_field_label*:*260*:*w_field_label_size*:*left*:*w_field_label_pos*:*false*:*w_first_val*:*no*:*w_required*:**:*new_field*:*28*:*id*:*type_captcha*:*type*:*Type the characters you see here:*:*w_field_label*:*250*:*w_field_label_size*:*top*:*w_field_label_pos*:*6*:*w_digit*:**:*w_class*:**:*new_field*:*30*:*id*:*type_submit_reset*:*type*:*type_submit_reset_30*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*false*:*w_act*:**:*new_field*:*31*:*id*:*type_editor*:*type*:*custom_31*:*w_field_label*:*<p><span style="color: rgb(153, 0, 0); font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: normal; background-color: rgb(244, 244, 244);">* Indicates required fields</span></p>*:*w_editor*:**:*new_field*:*2*:*id*:*type_text*:*type*:*Your Name:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*new_field*:*5*:*id*:*type_text*:*type*:*Website:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:*example.com*:*w_first_val*:*example.com*:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*new_field*:*6*:*id*:*type_text*:*type*:*Phone number:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*new_field*:*9*:*id*:*type_address*:*type*:*Address:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*280*:*w_size*:*Street Address***Street Address Line 2***City***State / Province / Region***Postal / Zip Code***Country*:*w_mini_labels*:*no***no***no***no***no***no***no*:*w_disabled_fields*:*no*:*w_required*:*wdform_address*:*w_class*:**:*new_field*:*24*:*id*:*type_own_select*:*type*:*Issue type:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:*(Select a Topic)***Pre-Sales Question***Product Support***Site Suggestions***Other*:*w_choices*:*true***false***false***false***false*:*w_choices_checked*:*false***false***false***false***false*:*w_choices_disabled*:*no*:*w_required*:*wdform_select*:*w_class*:**:*new_field*:*29*:*id*:*type_recaptcha*:*type*:*&nbsp;*:*w_field_label*:*250*:*w_field_label_size*:*top*:*w_field_label_pos*:**:*w_public*:**:*w_private*:*red*:*w_theme*:**:*w_class*:**:*new_field*:*33*:*id*:*type_map*:*type*:*map_33*:*w_field_label*:*44.497928*:*w_center_x*:*40.1525306*:*w_center_y*:*44.497928*:*w_long*:*40.152531*:*w_lat*:*12*:*w_zoom*:*300*:*w_width*:*400*:*w_height*:**:*w_info*:*wdform_map*:*w_class*:**:*new_field*:*\', 1, 1, \'*\', \'4\', \'\', \'4\', \'*4*\', 1, \'\', \'\', \'\', \'\', \'1,32,7,26,25,28,31,2,5,6,9,10,11,12,13,14,24,29,33,\', \'\', \'\', \'\', \'%Message Subject:%\', \'%Message Subject:%\', \'\', 1, 1, 1, 1)');
58
- $wpdb->query('INSERT INTO `' . $wpdb->prefix . 'contactformmaker` VALUES(6, \'Contact Form 5\', \'\', \'<div class="wdform-page-and-images" style="display:table; border-top:0px solid black;"><div id="form_id_tempform_view1" class="wdform_page" page_title="Untitled page" next_title="Next" next_type="text" next_class="wdform-page-button" next_checkable="false" previous_title="Previous" previous_type="text" previous_class="wdform-page-button" previous_checkable="false"><div class="wdform_section"><div class="wdform_column"><div wdid="32" class="wdform_row" style="opacity: 1;">%32 - custom_32%</div><div wdid="33" class="wdform_row" style="opacity: 0.4;" disabled="yes">%33 - map_33%</div></div></div><div wdid="1" type="type_section_break" class="wdform_tr_section_break">%1 - custom_1%</div><div class="wdform_section"><div class="wdform_column"><div wdid="2" class="wdform_row" style="opacity: 0.4;" disabled="yes">%2 - Your Name:%</div><div wdid="3" class="wdform_row" style="opacity: 1;">%3 - Name:%</div><div wdid="4" class="wdform_row">%4 - E-mail:%</div><div wdid="7" class="wdform_row" style="opacity: 1;">%7 - Home Phone:%</div><div wdid="8" class="wdform_row" style="opacity: 1;">%8 - Mobile:%</div><div wdid="5" class="wdform_row" style="opacity: 1;">%5 - Website:%</div><div wdid="25" class="wdform_row" style="opacity: 1;">%25 - When is the best time to contact you:%</div><div wdid="9" class="wdform_row" style="opacity: 0.4;" disabled="yes">%9 - Address:%</div><div wdid="28" class="wdform_row" style="opacity: 0.4;" disabled="yes">%28 - Type the characters you see here:%</div><div wdid="6" class="wdform_row" disabled="yes" style="opacity: 0.4;">%6 - Phone number:%</div><div wdid="15" class="wdform_row" disabled="yes" style="opacity: 0.4;">%15 - Company:%</div><div wdid="26" class="wdform_row" disabled="yes" style="opacity: 0.4;">%26 - Which topic best describes your question?%</div><div wdid="16" class="wdform_row" disabled="yes" style="opacity: 0.4;">%16 - Company address:%</div><div wdid="29" class="wdform_row" style="opacity: 0.4;" disabled="yes">%29 - &nbsp;%</div><div wdid="31" class="wdform_row" disabled="yes" style="opacity: 0.4;">%31 - custom_31%</div></div><div class="wdform_column"><div wdid="22" class="wdform_row">%22 - Subject:%</div><div wdid="24" class="wdform_row" style="opacity: 1;">%24 - Topic:%</div><div wdid="23" class="wdform_row">%23 - Message:%</div><div wdid="27" class="wdform_row" style="opacity: 1;">%27 - Send a copy of this message to yourself:%</div><div wdid="30" class="wdform_row">%30 - type_submit_reset_30%</div></div><div class="wdform_column"></div></div><div valign="top" class="wdform_footer" style="width: 100%;"><div style="width: 100%;"><div style="width: 100%; display: table;"><div style="display: table-row-group;"><div id="form_id_temppage_nav1" style="display: table-row;"></div></div></div></div></div></div></div>\', 4, \'<div class="content_head" style="color: #565759;">\r\n<h1>Thank you for contacting us</h1>\r\n</div>\r\n<p>We have received your message and will respond to you within 24 hours (Monday-Friday).</p>\r\n<p>For urgent inquiries, please contact us using phone numbers down below.</p>\r\n<p>Phone: 123-987-6543</p>\r\n<p>Fax: 123-987-6542</p>\', \'\', 3, \'<p>%Name:% sent you a message from IP: %ip%</p>\r\n<p> </p>\r\n<p>%all%</p>\', \'<div class="content_head" style="color: #565759;">\r\n<h1>Dear %Name:%</h1>\r\n<h2>Thank you for contacting us</h2>\r\n</div>\r\n<p>We have received your message and will respond to you within 24 hours (Monday-Friday).</p>\r\n<p>For urgent inquiries, please contact us using phone numbers down below.</p>\r\n<p>Phone: 123-987-6543</p>\r\n<p>Fax: 123-987-6542</p>\r\n<p> </p>\r\n<p> </p>\r\n<p>%all%</p>\', 34, 1, \'32#**id**#custom_32#**label**#type_editor#****#33#**id**#map_33#**label**#type_map#****#2#**id**#Your Name:#**label**#type_text#****#3#**id**#Name:#**label**#type_name#****#4#**id**#E-mail:#**label**#type_submitter_mail#****#7#**id**#Home Phone:#**label**#type_phone#****#8#**id**#Mobile:#**label**#type_phone#****#5#**id**#Website:#**label**#type_text#****#25#**id**#When is the best time to contact you:#**label**#type_checkbox#****#9#**id**#Street Address#**label**#type_address#****#10#**id**#Street Address Line 2#**label**#type_address#****#11#**id**#City#**label**#type_address#****#12#**id**#State / Province / Region#**label**#type_address#****#13#**id**#Postal / Zip Code#**label**#type_address#****#14#**id**#Country#**label**#type_address#****#28#**id**#Type the characters you see here:#**label**#type_captcha#****#6#**id**#Phone number:#**label**#type_text#****#15#**id**#Company:#**label**#type_text#****#26#**id**#Which topic best describes your question?#**label**#type_radio#****#16#**id**#Street Address#**label**#type_address#****#18#**id**#City#**label**#type_address#****#20#**id**#Postal / Zip Code#**label**#type_address#****#29#**id**#&nbsp;#**label**#type_recaptcha#****#31#**id**#custom_31#**label**#type_editor#****#22#**id**#Subject:#**label**#type_text#****#24#**id**#Topic:#**label**#type_own_select#****#23#**id**#Message:#**label**#type_textarea#****#27#**id**#Send a copy of this message to yourself:#**label**#type_send_copy#****#30#**id**#type_submit_reset_30#**label**#type_submit_reset#****#\', \'32#**id**#custom_32#**label**#type_editor#****#33#**id**#map_33#**label**#type_map#****#2#**id**#Your Name:#**label**#type_text#****#3#**id**#Name:#**label**#type_name#****#4#**id**#E-mail:#**label**#type_submitter_mail#****#7#**id**#Home Phone:#**label**#type_phone#****#8#**id**#Mobile:#**label**#type_phone#****#5#**id**#Website:#**label**#type_text#****#25#**id**#When is the best time to contact you:#**label**#type_checkbox#****#9#**id**#Street Address#**label**#type_address#****#10#**id**#Street Address Line 2#**label**#type_address#****#11#**id**#City#**label**#type_address#****#12#**id**#State / Province / Region#**label**#type_address#****#13#**id**#Postal / Zip Code#**label**#type_address#****#14#**id**#Country#**label**#type_address#****#28#**id**#Type the characters you see here:#**label**#type_captcha#****#6#**id**#Phone number:#**label**#type_text#****#15#**id**#Company:#**label**#type_text#****#26#**id**#Which topic best describes your question?#**label**#type_radio#****#16#**id**#Street Address#**label**#type_address#****#18#**id**#City#**label**#type_address#****#20#**id**#Postal / Zip Code#**label**#type_address#****#29#**id**#&nbsp;#**label**#type_recaptcha#****#31#**id**#custom_31#**label**#type_editor#****#22#**id**#Subject:#**label**#type_text#****#24#**id**#Topic:#**label**#type_own_select#****#23#**id**#Message:#**label**#type_textarea#****#27#**id**#Send a copy of this message to yourself:#**label**#type_send_copy#****#30#**id**#type_submit_reset_30#**label**#type_submit_reset#****#\', 0, \'\', \'\', \'\', \'32*:*id*:*type_editor*:*type*:*custom_32*:*w_field_label*:*<h2 style="font-size: 30px; font-family: Bitter, Georgia, serif; clear: both; line-height: 1.3; margin: 25px 0px;">Contact Us</h2><div style="color: rgb(20, 20, 18); font-family: Source Sans Pro, Helvetica, sans-serif; font-size: 16px; line-height: 24px;">You may contact us by filling in this form any time you need professional support or have any questions. You can also fill in the form to leave your comments or feedback.</div>*:*w_editor*:**:*new_field*:*33*:*id*:*type_map*:*type*:*map_33*:*w_field_label*:*-74.0059731*:*w_center_x*:*40.7143528*:*w_center_y*:*-74.005973*:*w_long*:*40.714353*:*w_lat*:*11*:*w_zoom*:*580*:*w_width*:*200*:*w_height*:**:*w_info*:*wdform_map*:*w_class*:**:*new_field*:*1*:*id*:*type_section_break*:*type*:*custom_1*:*w_field_label*:*<hr>*:*w_editor*:**:*new_field*:*2*:*id*:*type_text*:*type*:*Your Name:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*new_field*:*3*:*id*:*type_name*:*type*:*Name:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*****:*w_first_val*:*****:*w_title*:*Title***First***Last***Middle*:*w_mini_labels*:*77*:*w_size*:*normal*:*w_name_format*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*4*:*id*:*type_submitter_mail*:*type*:*E-mail:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*160*:*w_size*:*someone@example.com*:*w_first_val*:*someone@example.com*:*w_title*:*yes*:*w_required*:**:*w_unique*:**:*w_class*:**:*new_field*:*7*:*id*:*type_phone*:*type*:*Home Phone:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*100*:*w_size*:*****:*w_first_val*:*****:*w_title*:*Area Code***Phone Number*:*w_mini_labels*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*8*:*id*:*type_phone*:*type*:*Mobile:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*100*:*w_size*:*****:*w_first_val*:*****:*w_title*:*Area Code***Phone Number*:*w_mini_labels*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*5*:*id*:*type_text*:*type*:*Website:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*160*:*w_size*:*example.com*:*w_first_val*:*example.com*:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*new_field*:*25*:*id*:*type_checkbox*:*type*:*When is the best time to contact you:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*ver*:*w_flow*:*Morning***Afternoon***Evening*:*w_choices*:*false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:**:*w_class*:**:*new_field*:*9*:*id*:*type_address*:*type*:*Address:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*280*:*w_size*:*Street Address***Street Address Line 2***City***State / Province / Region***Postal / Zip Code***Country*:*w_mini_labels*:*no***no***no***no***no***no***no*:*w_disabled_fields*:*no*:*w_required*:*wdform_address*:*w_class*:**:*new_field*:*28*:*id*:*type_captcha*:*type*:*Type the characters you see here:*:*w_field_label*:*250*:*w_field_label_size*:*top*:*w_field_label_pos*:*6*:*w_digit*:**:*w_class*:**:*new_field*:*6*:*id*:*type_text*:*type*:*Phone number:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*new_field*:*15*:*id*:*type_text*:*type*:*Company:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*new_field*:*26*:*id*:*type_radio*:*type*:*Which topic best describes your question?*:*w_field_label*:*280*:*w_field_label_size*:*top*:*w_field_label_pos*:*ver*:*w_flow*:*Product Support***Site Suggestions***Marketing & Sponsorship Opportunities***Referral Programs***Other*:*w_choices*:*false***false***false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:**:*w_class*:**:*new_field*:*16*:*id*:*type_address*:*type*:*Company address:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*280*:*w_size*:*Street Address***1***City***State / Province / Region***Postal / Zip Code***Country*:*w_mini_labels*:*no***yes***no***yes***no***yes***no*:*w_disabled_fields*:*no*:*w_required*:*wdform_address*:*w_class*:**:*new_field*:*29*:*id*:*type_recaptcha*:*type*:*&nbsp;*:*w_field_label*:*250*:*w_field_label_size*:*top*:*w_field_label_pos*:**:*w_public*:**:*w_private*:*red*:*w_theme*:**:*w_class*:**:*new_field*:*31*:*id*:*type_editor*:*type*:*custom_31*:*w_field_label*:*<p><span style="color: rgb(153, 0, 0); font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: normal; background-color: rgb(244, 244, 244);">* Indicates required fields</span></p>*:*w_editor*:**:*new_field*:*22*:*id*:*type_text*:*type*:*Subject:*:*w_field_label*:*70*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*new_field*:*24*:*id*:*type_own_select*:*type*:*Topic:*:*w_field_label*:*70*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:*(Select a Topic)***Pre-Sales Question***Product Support***Site Suggestions***Other*:*w_choices*:*true***false***false***false***false*:*w_choices_checked*:*false***false***false***false***false*:*w_choices_disabled*:*no*:*w_required*:*wdform_select*:*w_class*:**:*new_field*:*23*:*id*:*type_textarea*:*type*:*Message:*:*w_field_label*:*120*:*w_field_label_size*:*top*:*w_field_label_pos*:*250*:*w_size_w*:*300*:*w_size_h*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*27*:*id*:*type_send_copy*:*type*:*Send a copy of this message to yourself:*:*w_field_label*:*260*:*w_field_label_size*:*left*:*w_field_label_pos*:*false*:*w_first_val*:*no*:*w_required*:**:*new_field*:*30*:*id*:*type_submit_reset*:*type*:*type_submit_reset_30*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*true*:*w_act*:**:*new_field*:*\', 1, 1, \'*\', \'4\', \'\', \'4\', \'*4*\', 1, \'\', \'\', \'\', \'\', \'33,2,9,10,11,12,13,14,28,6,15,26,16,17,18,19,20,21,29,31,\', \'\', \'\', \'\', \'\', \'%Subject:%\', \'%Subject:%\', 1, 1, 1, 1)');
59
- $wpdb->query('INSERT INTO `' . $wpdb->prefix . 'contactformmaker` VALUES(7, \'Contact Form 6\', \'\', \'<div class="wdform-page-and-images" style="display:table; border-top:0px solid black;"><div id="form_id_tempform_view1" class="wdform_page" page_title="Untitled page" next_title="Next" next_type="text" next_class="wdform-page-button" next_checkable="false" previous_title="Previous" previous_type="text" previous_class="wdform-page-button" previous_checkable="false"><div class="wdform_section"><div class="wdform_column"></div></div><div wdid="1" type="type_section_break" class="wdform_tr_section_break" disabled="yes" style="opacity: 0.4;">%1 - custom_1%</div><div class="wdform_section"><div class="wdform_column"><div wdid="32" class="wdform_row" style="opacity: 0.4;" disabled="yes">%32 - custom_32%</div><div wdid="3" class="wdform_row" style="opacity: 1;">%3 - Name:%</div><div wdid="4" class="wdform_row">%4 - E-mail Address:%</div><div wdid="26" class="wdform_row" style="opacity: 1;">%26 - Which topic best describes your question?%</div><div wdid="23" class="wdform_row">%23 - Enter your Message:%</div><div wdid="7" class="wdform_row" disabled="yes" style="opacity: 0.4;">%7 - Home Phone:%</div><div wdid="8" class="wdform_row" style="opacity: 0.4;" disabled="yes">%8 - Work Phone:%</div><div wdid="15" class="wdform_row" style="opacity: 0.4;" disabled="yes">%15 - Company:%</div><div wdid="16" class="wdform_row" style="opacity: 0.4;" disabled="yes">%16 - Company address:%</div><div wdid="22" class="wdform_row" disabled="yes" style="opacity: 0.4;">%22 - Message Subject:%</div><div wdid="25" class="wdform_row" style="opacity: 0.4;" disabled="yes">%25 - When is the best time to contact you:%</div><div wdid="27" class="wdform_row" disabled="yes" style="opacity: 0.4;">%27 - Send a copy of this message to yourself:%</div><div wdid="28" class="wdform_row" style="opacity: 0.4;" disabled="yes">%28 - Type the characters you see here:%</div><div wdid="30" class="wdform_row">%30 - type_submit_reset_30%</div><div wdid="31" class="wdform_row" style="opacity: 0.4;" disabled="yes">%31 - custom_31%</div><div wdid="2" class="wdform_row" style="opacity: 0.4;" disabled="yes">%2 - Your Name:%</div><div wdid="5" class="wdform_row" disabled="yes" style="opacity: 0.4;">%5 - Website:%</div><div wdid="6" class="wdform_row" disabled="yes" style="opacity: 0.4;">%6 - Phone number:%</div><div wdid="9" class="wdform_row" style="opacity: 0.4;" disabled="yes">%9 - Address:%</div><div wdid="24" class="wdform_row" style="opacity: 0.4;" disabled="yes">%24 - Issue type:%</div><div wdid="29" class="wdform_row" style="opacity: 0.4;" disabled="yes">%29 - &nbsp;%</div><div wdid="33" class="wdform_row" disabled="yes" style="opacity: 0.4;">%33 - map_33%</div></div></div><div valign="top" class="wdform_footer" style="width: 100%;"><div style="width: 100%;"><div style="width: 100%; display: table;"><div style="display: table-row-group;"><div id="form_id_temppage_nav1" style="display: table-row;"></div></div></div></div></div></div></div>\', 4, \'<div class="content_head" style="color: #565759;">\r\n<h1>Thank you for contacting us</h1>\r\n</div>\r\n<p>We have received your message and will respond to you within 24 hours (Monday-Friday).</p>\r\n<p>For urgent inquiries, please contact us using phone numbers down below.</p>\r\n<p>Phone: 123-987-6543</p>\r\n<p>Fax: 123-987-6542</p>\', \'\', 3, \'<p>%Name:% sent you a message from IP: %ip%</p>\r\n<p> </p>\r\n<p>%all%</p>\', \'<div class="content_head" style="color: #565759;">\r\n<h1>Dear %Name:%</h1>\r\n<h2>Thank you for contacting us</h2>\r\n</div>\r\n<p>We have received your message and will respond to you within 24 hours (Monday-Friday).</p>\r\n<p>For urgent inquiries, please contact us using phone numbers down below.</p>\r\n<p>Phone: 123-987-6543</p>\r\n<p>Fax: 123-987-6542</p>\r\n<p> </p>\r\n<p> </p>\r\n<p>%all%</p>\', 34, 1, \'32#**id**#custom_32#**label**#type_editor#****#3#**id**#Name:#**label**#type_name#****#4#**id**#E-mail Address:#**label**#type_submitter_mail#****#26#**id**#Which topic best describes your question?#**label**#type_radio#****#23#**id**#Enter your Message:#**label**#type_textarea#****#7#**id**#Home Phone:#**label**#type_phone#****#8#**id**#Work Phone:#**label**#type_phone#****#15#**id**#Company:#**label**#type_text#****#16#**id**#Street Address#**label**#type_address#****#18#**id**#City#**label**#type_address#****#20#**id**#Postal / Zip Code#**label**#type_address#****#22#**id**#Message Subject:#**label**#type_text#****#25#**id**#When is the best time to contact you:#**label**#type_checkbox#****#27#**id**#Send a copy of this message to yourself:#**label**#type_send_copy#****#28#**id**#Type the characters you see here:#**label**#type_captcha#****#30#**id**#type_submit_reset_30#**label**#type_submit_reset#****#31#**id**#custom_31#**label**#type_editor#****#2#**id**#Your Name:#**label**#type_text#****#5#**id**#Website:#**label**#type_text#****#6#**id**#Phone number:#**label**#type_text#****#9#**id**#Street Address#**label**#type_address#****#10#**id**#Street Address Line 2#**label**#type_address#****#11#**id**#City#**label**#type_address#****#12#**id**#State / Province / Region#**label**#type_address#****#13#**id**#Postal / Zip Code#**label**#type_address#****#14#**id**#Country#**label**#type_address#****#24#**id**#Issue type:#**label**#type_own_select#****#29#**id**#&nbsp;#**label**#type_recaptcha#****#33#**id**#map_33#**label**#type_map#****#\', \'32#**id**#custom_32#**label**#type_editor#****#3#**id**#Name:#**label**#type_name#****#4#**id**#E-mail Address:#**label**#type_submitter_mail#****#26#**id**#Which topic best describes your question?#**label**#type_radio#****#23#**id**#Enter your Message:#**label**#type_textarea#****#7#**id**#Home Phone:#**label**#type_phone#****#8#**id**#Work Phone:#**label**#type_phone#****#15#**id**#Company:#**label**#type_text#****#16#**id**#Street Address#**label**#type_address#****#18#**id**#City#**label**#type_address#****#20#**id**#Postal / Zip Code#**label**#type_address#****#22#**id**#Message Subject:#**label**#type_text#****#25#**id**#When is the best time to contact you:#**label**#type_checkbox#****#27#**id**#Send a copy of this message to yourself:#**label**#type_send_copy#****#28#**id**#Type the characters you see here:#**label**#type_captcha#****#30#**id**#type_submit_reset_30#**label**#type_submit_reset#****#31#**id**#custom_31#**label**#type_editor#****#2#**id**#Your Name:#**label**#type_text#****#5#**id**#Website:#**label**#type_text#****#6#**id**#Phone number:#**label**#type_text#****#9#**id**#Street Address#**label**#type_address#****#10#**id**#Street Address Line 2#**label**#type_address#****#11#**id**#City#**label**#type_address#****#12#**id**#State / Province / Region#**label**#type_address#****#13#**id**#Postal / Zip Code#**label**#type_address#****#14#**id**#Country#**label**#type_address#****#24#**id**#Issue type:#**label**#type_own_select#****#29#**id**#&nbsp;#**label**#type_recaptcha#****#33#**id**#map_33#**label**#type_map#****#\', 0, \'\', \'\', \'\', \'1*:*id*:*type_section_break*:*type*:*custom_1*:*w_field_label*:*<h2 style="font-size: 30px; font-family: Bitter, Georgia, serif; clear: both; line-height: 1.3; margin: 25px 0px;">Contact Us</h2><div style="color: rgb(20, 20, 18); font-family: Source Sans Pro, Helvetica, sans-serif; font-size: 16px; line-height: 24px;">You may contact us by filling in this form any time you need professional support or have any questions. You can also fill in the form to leave your comments or feedback.</div>*:*w_editor*:**:*new_field*:*32*:*id*:*type_editor*:*type*:*custom_32*:*w_field_label*:*<p><strong>Sample Company, Inc.</strong></p><p>1412 South Main Expressway</p><p>Sugar Land, TX 98765</p><p>Phone: 123-987-6543</p><p>Fax: 123-987-6542</p>*:*w_editor*:**:*new_field*:*3*:*id*:*type_name*:*type*:*Name:*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*****:*w_first_val*:*****:*w_title*:*Title***First***Last***Middle*:*w_mini_labels*:*180*:*w_size*:*normal*:*w_name_format*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*4*:*id*:*type_submitter_mail*:*type*:*E-mail Address:*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*360*:*w_size*:*someone@example.com*:*w_first_val*:*someone@example.com*:*w_title*:*yes*:*w_required*:**:*w_unique*:**:*w_class*:**:*new_field*:*26*:*id*:*type_radio*:*type*:*Which topic best describes your question?*:*w_field_label*:*280*:*w_field_label_size*:*top*:*w_field_label_pos*:*ver*:*w_flow*:*Product Support***Site Suggestions***Marketing & Sponsorship Opportunities***Referral Programs***Other*:*w_choices*:*false***false***false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*yes*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*customLeftMargin*:*w_class*:**:*new_field*:*23*:*id*:*type_textarea*:*type*:*Enter your Message:*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*360*:*w_size_w*:*200*:*w_size_h*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*7*:*id*:*type_phone*:*type*:*Home Phone:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*300*:*w_size*:*****:*w_first_val*:*****:*w_title*:*Area Code***Phone Number*:*w_mini_labels*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*8*:*id*:*type_phone*:*type*:*Work Phone:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*300*:*w_size*:*****:*w_first_val*:*****:*w_title*:*Area Code***Phone Number*:*w_mini_labels*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*15*:*id*:*type_text*:*type*:*Company:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*360*:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*new_field*:*16*:*id*:*type_address*:*type*:*Company address:*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*360*:*w_size*:*Street Address***Street Address Line 2***City***State / Province / Region***Postal / Zip Code***Country*:*w_mini_labels*:*no***yes***no***yes***no***yes***no*:*w_disabled_fields*:*no*:*w_required*:*wdform_address*:*w_class*:**:*new_field*:*22*:*id*:*type_text*:*type*:*Message Subject:*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*360*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*new_field*:*25*:*id*:*type_checkbox*:*type*:*When is the best time to contact you:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*ver*:*w_flow*:*Morning***Afternoon***Evening*:*w_choices*:*false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:**:*w_class*:**:*new_field*:*27*:*id*:*type_send_copy*:*type*:*Send a copy of this message to yourself:*:*w_field_label*:*260*:*w_field_label_size*:*left*:*w_field_label_pos*:*false*:*w_first_val*:*no*:*w_required*:**:*new_field*:*28*:*id*:*type_captcha*:*type*:*Type the characters you see here:*:*w_field_label*:*250*:*w_field_label_size*:*top*:*w_field_label_pos*:*6*:*w_digit*:**:*w_class*:**:*new_field*:*30*:*id*:*type_submit_reset*:*type*:*type_submit_reset_30*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*true*:*w_act*:**:*new_field*:*31*:*id*:*type_editor*:*type*:*custom_31*:*w_field_label*:*<p><span style="color: rgb(153, 0, 0); font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: normal; background-color: rgb(244, 244, 244);">* Indicates required fields</span></p>*:*w_editor*:**:*new_field*:*2*:*id*:*type_text*:*type*:*Your Name:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*new_field*:*5*:*id*:*type_text*:*type*:*Website:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:*example.com*:*w_first_val*:*example.com*:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*new_field*:*6*:*id*:*type_text*:*type*:*Phone number:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*new_field*:*9*:*id*:*type_address*:*type*:*Address:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*280*:*w_size*:*Street Address***Street Address Line 2***City***State / Province / Region***Postal / Zip Code***Country*:*w_mini_labels*:*no***no***no***no***no***no***no*:*w_disabled_fields*:*no*:*w_required*:*wdform_address*:*w_class*:**:*new_field*:*24*:*id*:*type_own_select*:*type*:*Issue type:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:*(Select a Topic)***Pre-Sales Question***Product Support***Site Suggestions***Other*:*w_choices*:*true***false***false***false***false*:*w_choices_checked*:*false***false***false***false***false*:*w_choices_disabled*:*no*:*w_required*:*wdform_select*:*w_class*:**:*new_field*:*29*:*id*:*type_recaptcha*:*type*:*&nbsp;*:*w_field_label*:*250*:*w_field_label_size*:*top*:*w_field_label_pos*:**:*w_public*:**:*w_private*:*red*:*w_theme*:**:*w_class*:**:*new_field*:*33*:*id*:*type_map*:*type*:*map_33*:*w_field_label*:*44.497928*:*w_center_x*:*40.1525306*:*w_center_y*:*44.497928*:*w_long*:*40.152531*:*w_lat*:*12*:*w_zoom*:*300*:*w_width*:*400*:*w_height*:**:*w_info*:*wdform_map*:*w_class*:**:*new_field*:*\', 1, 1, \'*\', \'4\', \'\', \'4\', \'*4*\', 1, \'\', \'\', \'\', \'\', \'1,32,7,8,15,16,17,18,19,20,21,22,25,27,28,31,2,5,6,9,10,11,12,13,14,24,29,33,\', \'\', \'\', \'\', \'\', \'\', \'\', 1, 1, 1, 1)');
60
- $wpdb->query('INSERT INTO `' . $wpdb->prefix . 'contactformmaker` VALUES(8, \'Contact Form 7\', \'\', \'<div class="wdform-page-and-images" style="display:table; border-top:0px solid black;"><div id="form_id_tempform_view1" class="wdform_page" page_title="Untitled page" next_title="Next" next_type="text" next_class="wdform-page-button" next_checkable="false" previous_title="Previous" previous_type="text" previous_class="wdform-page-button" previous_checkable="false"><div class="wdform_section"><div class="wdform_column"></div></div><div wdid="1" type="type_section_break" class="wdform_tr_section_break" style="opacity: 1;">%1 - custom_1%</div><div class="wdform_section"><div class="wdform_column"><div wdid="3" class="wdform_row" style="opacity: 1;">%3 - Enter your name:%</div><div wdid="4" class="wdform_row">%4 - Enter your E-mail:%</div><div wdid="22" class="wdform_row">%22 - Message Subject:%</div><div wdid="26" class="wdform_row" style="opacity: 1;">%26 - CMS:%</div><div wdid="24" class="wdform_row" style="opacity: 1;">%24 - Product:%</div><div wdid="8" class="wdform_row" style="opacity: 0.4;" disabled="yes">%8 - Work Phone:%</div><div wdid="15" class="wdform_row" style="opacity: 0.4;" disabled="yes">%15 - Company:%</div><div wdid="25" class="wdform_row" style="opacity: 0.4;" disabled="yes">%25 - When is the best time to contact you:%</div><div wdid="28" class="wdform_row" style="opacity: 1;">%28 - Type the characters you see here:%</div><div wdid="31" class="wdform_row" style="opacity: 0.4;" disabled="yes">%31 - custom_31%</div><div wdid="2" class="wdform_row" style="opacity: 0.4;" disabled="yes">%2 - Your Name:%</div><div wdid="5" class="wdform_row" disabled="yes" style="opacity: 0.4;">%5 - Website:%</div><div wdid="6" class="wdform_row" disabled="yes" style="opacity: 0.4;">%6 - Phone number:%</div><div wdid="16" class="wdform_row" disabled="yes" style="opacity: 0.4;">%16 - Company address:%</div><div wdid="9" class="wdform_row" disabled="yes" style="opacity: 0.4;">%9 - Address:%</div><div wdid="29" class="wdform_row" style="opacity: 0.4;" disabled="yes">%29 - &nbsp;%</div><div wdid="33" class="wdform_row" disabled="yes" style="opacity: 0.4;">%33 - map_33%</div><div wdid="32" class="wdform_row" style="opacity: 0.4;" disabled="yes">%32 - custom_32%</div><div wdid="7" class="wdform_row" disabled="yes" style="opacity: 0.4;">%7 - Home Phone:%</div></div><div class="wdform_column"><div wdid="23" class="wdform_row">%23 - Enter your Message:%</div><div wdid="27" class="wdform_row">%27 - Send a copy of this message to yourself:%</div><div wdid="30" class="wdform_row">%30 - type_submit_reset_30%</div></div></div><div valign="top" class="wdform_footer" style="width: 100%;"><div style="width: 100%;"><div style="width: 100%; display: table;"><div style="display: table-row-group;"><div id="form_id_temppage_nav1" style="display: table-row;"></div></div></div></div></div></div></div>\', 4, \'<div class="content_head" style="color: #565759;">\r\n<h1>Thank you for contacting us</h1>\r\n</div>\r\n<p>We have received your message and will respond to you within 24 hours (Monday-Friday).</p>\r\n<p>For urgent inquiries, please contact us using phone numbers down below.</p>\r\n<p>Phone: 123-987-6543</p>\r\n<p>Fax: 123-987-6542</p>\', \'\', 3, \'<p>%Enter your name:% sent you a message from IP: %ip%</p>\r\n<p> </p>\r\n<p>%all%</p>\', \'<div class="content_head" style="color: #565759;">\r\n<h1>Dear %Enter your name:%</h1>\r\n<h2>Thank you for contacting us</h2>\r\n</div>\r\n<p>We have received your message and will respond to you within 24 hours (Monday-Friday).</p>\r\n<p>For urgent inquiries, please contact us using phone numbers down below.</p>\r\n<p>Phone: 123-987-6543</p>\r\n<p>Fax: 123-987-6542</p>\r\n<p> </p>\r\n<p> </p>\r\n<p>%all%</p>\', 34, 1, \'3#**id**#Enter your name:#**label**#type_name#****#4#**id**#Enter your E-mail:#**label**#type_submitter_mail#****#22#**id**#Message Subject:#**label**#type_text#****#26#**id**#CMS:#**label**#type_radio#****#24#**id**#Product:#**label**#type_own_select#****#8#**id**#Work Phone:#**label**#type_phone#****#15#**id**#Company:#**label**#type_text#****#25#**id**#When is the best time to contact you:#**label**#type_checkbox#****#28#**id**#Type the characters you see here:#**label**#type_captcha#****#31#**id**#custom_31#**label**#type_editor#****#2#**id**#Your Name:#**label**#type_text#****#5#**id**#Website:#**label**#type_text#****#6#**id**#Phone number:#**label**#type_text#****#16#**id**#Street Address#**label**#type_address#****#18#**id**#City#**label**#type_address#****#20#**id**#Postal / Zip Code#**label**#type_address#****#9#**id**#Street Address#**label**#type_address#****#10#**id**#Street Address Line 2#**label**#type_address#****#11#**id**#City#**label**#type_address#****#12#**id**#State / Province / Region#**label**#type_address#****#13#**id**#Postal / Zip Code#**label**#type_address#****#14#**id**#Country#**label**#type_address#****#29#**id**#&nbsp;#**label**#type_recaptcha#****#33#**id**#map_33#**label**#type_map#****#32#**id**#custom_32#**label**#type_editor#****#7#**id**#Home Phone:#**label**#type_phone#****#23#**id**#Enter your Message:#**label**#type_textarea#****#27#**id**#Send a copy of this message to yourself:#**label**#type_send_copy#****#30#**id**#type_submit_reset_30#**label**#type_submit_reset#****#\', \'3#**id**#Enter your name:#**label**#type_name#****#4#**id**#Enter your E-mail:#**label**#type_submitter_mail#****#22#**id**#Message Subject:#**label**#type_text#****#26#**id**#CMS:#**label**#type_radio#****#24#**id**#Product:#**label**#type_own_select#****#8#**id**#Work Phone:#**label**#type_phone#****#15#**id**#Company:#**label**#type_text#****#25#**id**#When is the best time to contact you:#**label**#type_checkbox#****#28#**id**#Type the characters you see here:#**label**#type_captcha#****#31#**id**#custom_31#**label**#type_editor#****#2#**id**#Your Name:#**label**#type_text#****#5#**id**#Website:#**label**#type_text#****#6#**id**#Phone number:#**label**#type_text#****#16#**id**#Street Address#**label**#type_address#****#18#**id**#City#**label**#type_address#****#20#**id**#Postal / Zip Code#**label**#type_address#****#9#**id**#Street Address#**label**#type_address#****#10#**id**#Street Address Line 2#**label**#type_address#****#11#**id**#City#**label**#type_address#****#12#**id**#State / Province / Region#**label**#type_address#****#13#**id**#Postal / Zip Code#**label**#type_address#****#14#**id**#Country#**label**#type_address#****#29#**id**#&nbsp;#**label**#type_recaptcha#****#33#**id**#map_33#**label**#type_map#****#32#**id**#custom_32#**label**#type_editor#****#7#**id**#Home Phone:#**label**#type_phone#****#23#**id**#Enter your Message:#**label**#type_textarea#****#27#**id**#Send a copy of this message to yourself:#**label**#type_send_copy#****#30#**id**#type_submit_reset_30#**label**#type_submit_reset#****#\', 0, \'\', \'\', \'\', \'1*:*id*:*type_section_break*:*type*:*custom_1*:*w_field_label*:*<h2 style="font-size: 30px; font-family: Bitter, Georgia, serif; clear: both; line-height: 1.3; margin: 25px 0px;">Contact Us</h2><div style="color: rgb(20, 20, 18); font-family: Source Sans Pro, Helvetica, sans-serif; font-size: 16px; line-height: 24px;">You may contact us by filling in this form any time you need professional support or have any questions. You can also fill in the form to leave your comments or feedback.</div>*:*w_editor*:**:*new_field*:*3*:*id*:*type_name*:*type*:*Enter your name:*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*****:*w_first_val*:*****:*w_title*:*Title***First***Last***Middle*:*w_mini_labels*:*155*:*w_size*:*normal*:*w_name_format*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*4*:*id*:*type_submitter_mail*:*type*:*Enter your E-mail:*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*310*:*w_size*:*someone@example.com*:*w_first_val*:*someone@example.com*:*w_title*:*yes*:*w_required*:**:*w_unique*:**:*w_class*:**:*new_field*:*22*:*id*:*type_text*:*type*:*Message Subject:*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*310*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*new_field*:*26*:*id*:*type_radio*:*type*:*CMS:*:*w_field_label*:*280*:*w_field_label_size*:*top*:*w_field_label_pos*:*hor*:*w_flow*:*Joomla***WordPress***Drupal*:*w_choices*:*false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*yes*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:*customLeftMargin*:*w_class*:**:*new_field*:*24*:*id*:*type_own_select*:*type*:*Product:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*310*:*w_size*:*Select product***Contact Form Maker***Dripping Menu***Folder Menu***Form Maker***Other*:*w_choices*:*true***false***false***false***false***false*:*w_choices_checked*:*false***false***false***false***false***false*:*w_choices_disabled*:*no*:*w_required*:*wdform_select*:*w_class*:**:*new_field*:*8*:*id*:*type_phone*:*type*:*Work Phone:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*300*:*w_size*:*****:*w_first_val*:*****:*w_title*:*Area Code***Phone Number*:*w_mini_labels*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*15*:*id*:*type_text*:*type*:*Company:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*360*:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*new_field*:*25*:*id*:*type_checkbox*:*type*:*When is the best time to contact you:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*ver*:*w_flow*:*Morning***Afternoon***Evening*:*w_choices*:*false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:**:*w_class*:**:*new_field*:*28*:*id*:*type_captcha*:*type*:*Type the characters you see here:*:*w_field_label*:*250*:*w_field_label_size*:*top*:*w_field_label_pos*:*6*:*w_digit*:**:*w_class*:**:*new_field*:*31*:*id*:*type_editor*:*type*:*custom_31*:*w_field_label*:*<p><span style="color: rgb(153, 0, 0); font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: normal; background-color: rgb(244, 244, 244);">* Indicates required fields</span></p>*:*w_editor*:**:*new_field*:*2*:*id*:*type_text*:*type*:*Your Name:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*new_field*:*5*:*id*:*type_text*:*type*:*Website:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:*example.com*:*w_first_val*:*example.com*:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*new_field*:*6*:*id*:*type_text*:*type*:*Phone number:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*new_field*:*16*:*id*:*type_address*:*type*:*Company address:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*280*:*w_size*:*Street Address***Street Address Line 2***City***State / Province / Region***Postal / Zip Code***Country*:*w_mini_labels*:*no***yes***no***yes***no***yes***no*:*w_disabled_fields*:*no*:*w_required*:*wdform_address*:*w_class*:**:*new_field*:*9*:*id*:*type_address*:*type*:*Address:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*280*:*w_size*:*Street Address***Street Address Line 2***City***State / Province / Region***Postal / Zip Code***Country*:*w_mini_labels*:*no***no***no***no***no***no***no*:*w_disabled_fields*:*no*:*w_required*:*wdform_address*:*w_class*:**:*new_field*:*29*:*id*:*type_recaptcha*:*type*:*&nbsp;*:*w_field_label*:*250*:*w_field_label_size*:*top*:*w_field_label_pos*:**:*w_public*:**:*w_private*:*red*:*w_theme*:**:*w_class*:**:*new_field*:*33*:*id*:*type_map*:*type*:*map_33*:*w_field_label*:*44.497928*:*w_center_x*:*40.1525306*:*w_center_y*:*44.497928*:*w_long*:*40.152531*:*w_lat*:*11*:*w_zoom*:*300*:*w_width*:*400*:*w_height*:**:*w_info*:*wdform_map*:*w_class*:**:*new_field*:*32*:*id*:*type_editor*:*type*:*custom_32*:*w_field_label*:*<p><strong>Sample Company, Inc.</strong></p><p>1412 South Main Expressway</p><p>Sugar Land, TX 98765</p><p>Phone: 123-987-6543</p><p>Fax: 123-987-6542</p>*:*w_editor*:**:*new_field*:*7*:*id*:*type_phone*:*type*:*Home Phone:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*300*:*w_size*:*****:*w_first_val*:*****:*w_title*:*Area Code***Phone Number*:*w_mini_labels*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*23*:*id*:*type_textarea*:*type*:*Enter your Message:*:*w_field_label*:*200*:*w_field_label_size*:*top*:*w_field_label_pos*:*200*:*w_size_w*:*300*:*w_size_h*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*27*:*id*:*type_send_copy*:*type*:*Send a copy of this message to yourself:*:*w_field_label*:*260*:*w_field_label_size*:*left*:*w_field_label_pos*:*false*:*w_first_val*:*no*:*w_required*:**:*new_field*:*30*:*id*:*type_submit_reset*:*type*:*type_submit_reset_30*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*true*:*w_act*:**:*new_field*:*\', 1, 1, \'*\', \'4\', \'\', \'4\', \'*4*\', 1, \'\', \'\', \'\', \'\', \'8,15,25,31,2,5,6,16,17,18,19,20,21,9,10,11,12,13,14,29,33,32,7,\', \'\', \'\', \'\', \'\', \'%Message Subject:%\', \'%Message Subject:%\', 1, 1, 1, 1)');
61
- $wpdb->query('INSERT INTO `' . $wpdb->prefix . 'contactformmaker` VALUES(9, \'Contact Form 8\', \'\', \'<div class="wdform-page-and-images" style="display:table; border-top:0px solid black;"><div id="form_id_tempform_view1" class="wdform_page" page_title="Untitled page" next_title="Next" next_type="text" next_class="wdform-page-button" next_checkable="false" previous_title="Previous" previous_type="text" previous_class="wdform-page-button" previous_checkable="false"><div class="wdform_section"><div class="wdform_column"><div wdid="2" class="wdform_row" style="opacity: 1;">%2 - Your Name:%</div><div wdid="7" class="wdform_row" style="opacity: 1;">%7 - Phone:%</div></div><div class="wdform_column"><div wdid="4" class="wdform_row">%4 - E-mail:%</div><div wdid="5" class="wdform_row" style="opacity: 1;">%5 - Website:%</div></div></div><div wdid="1" type="type_section_break" class="wdform_tr_section_break">%1 - custom_1%</div><div class="wdform_section"><div class="wdform_column"><div wdid="22" class="wdform_row">%22 - Subject:%</div><div wdid="23" class="wdform_row">%23 - Message:%</div><div wdid="32" class="wdform_row" style="opacity: 0.4;" disabled="yes">%32 - custom_32%</div><div wdid="28" class="wdform_row" style="opacity: 1;">%28 - Type the characters you see here:%</div><div wdid="30" class="wdform_row">%30 - type_submit_reset_30%</div></div><div class="wdform_column"><div wdid="9" class="wdform_row" style="opacity: 0.4;" disabled="yes">%9 - Address:%</div><div wdid="27" class="wdform_row" style="opacity: 0.4;" disabled="yes">%27 - Send a copy of this message to yourself:%</div><div wdid="3" class="wdform_row" style="opacity: 0.4;" disabled="yes">%3 - Name:%</div><div wdid="8" class="wdform_row" style="opacity: 0.4;" disabled="yes">%8 - Mobile:%</div><div wdid="25" class="wdform_row" style="opacity: 0.4;" disabled="yes">%25 - When is the best time to contact you:%</div><div wdid="6" class="wdform_row" disabled="yes" style="opacity: 0.4;">%6 - Phone number:%</div><div wdid="15" class="wdform_row" disabled="yes" style="opacity: 0.4;">%15 - Company:%</div><div wdid="26" class="wdform_row" disabled="yes" style="opacity: 0.4;">%26 - Which topic best describes your question?%</div><div wdid="16" class="wdform_row" disabled="yes" style="opacity: 0.4;">%16 - Company address:%</div><div wdid="29" class="wdform_row" style="opacity: 0.4;" disabled="yes">%29 - &nbsp;%</div><div wdid="31" class="wdform_row" disabled="yes" style="opacity: 0.4;">%31 - custom_31%</div><div wdid="24" class="wdform_row" style="opacity: 0.4;" disabled="yes">%24 - Issue type:%</div><div wdid="33" class="wdform_row" style="opacity: 0.4;" disabled="yes">%33 - map_33%</div></div></div><div valign="top" class="wdform_footer" style="width: 100%;"><div style="width: 100%;"><div style="width: 100%; display: table;"><div style="display: table-row-group;"><div id="form_id_temppage_nav1" style="display: table-row;"></div></div></div></div></div></div></div>\', 4, \'<div class="content_head" style="color: #565759;">\r\n<h1>Thank you for contacting us</h1>\r\n</div>\r\n<p>We have received your message and will respond to you within 24 hours (Monday-Friday).</p>\r\n<p>For urgent inquiries, please contact us using phone numbers down below.</p>\r\n<p>Phone: 123-987-6543</p>\r\n<p>Fax: 123-987-6542</p>\', \'\', 3, \'<p>%Your Name:% sent you a message from IP: %ip%</p>\r\n<p> </p>\r\n<p>%all%</p>\', \'<div class="content_head" style="color: #565759;">\r\n<h1>Dear %Your Name:%</h1>\r\n<h2>Thank you for contacting us</h2>\r\n</div>\r\n<p>We have received your message and will respond to you within 24 hours (Monday-Friday).</p>\r\n<p>For urgent inquiries, please contact us using phone numbers down below.</p>\r\n<p>Phone: 123-987-6543</p>\r\n<p>Fax: 123-987-6542</p>\r\n<p> </p>\r\n<p> </p>\r\n<p>%all%</p>\', 34, 1, \'2#**id**#Your Name:#**label**#type_text#****#7#**id**#Phone:#**label**#type_phone#****#4#**id**#E-mail:#**label**#type_submitter_mail#****#5#**id**#Website:#**label**#type_text#****#22#**id**#Subject:#**label**#type_text#****#23#**id**#Message:#**label**#type_textarea#****#32#**id**#custom_32#**label**#type_editor#****#28#**id**#Type the characters you see here:#**label**#type_captcha#****#30#**id**#type_submit_reset_30#**label**#type_submit_reset#****#9#**id**#Street Address#**label**#type_address#****#10#**id**#Street Address Line 2#**label**#type_address#****#11#**id**#City#**label**#type_address#****#12#**id**#State / Province / Region#**label**#type_address#****#13#**id**#Postal / Zip Code#**label**#type_address#****#14#**id**#Country#**label**#type_address#****#27#**id**#Send a copy of this message to yourself:#**label**#type_send_copy#****#3#**id**#Name:#**label**#type_name#****#8#**id**#Mobile:#**label**#type_phone#****#25#**id**#When is the best time to contact you:#**label**#type_checkbox#****#6#**id**#Phone number:#**label**#type_text#****#15#**id**#Company:#**label**#type_text#****#26#**id**#Which topic best describes your question?#**label**#type_radio#****#16#**id**#Street Address#**label**#type_address#****#18#**id**#City#**label**#type_address#****#20#**id**#Postal / Zip Code#**label**#type_address#****#29#**id**#&nbsp;#**label**#type_recaptcha#****#31#**id**#custom_31#**label**#type_editor#****#24#**id**#Issue type:#**label**#type_own_select#****#33#**id**#map_33#**label**#type_map#****#\', \'2#**id**#Your Name:#**label**#type_text#****#7#**id**#Phone:#**label**#type_phone#****#4#**id**#E-mail:#**label**#type_submitter_mail#****#5#**id**#Website:#**label**#type_text#****#22#**id**#Subject:#**label**#type_text#****#23#**id**#Message:#**label**#type_textarea#****#32#**id**#custom_32#**label**#type_editor#****#28#**id**#Type the characters you see here:#**label**#type_captcha#****#30#**id**#type_submit_reset_30#**label**#type_submit_reset#****#9#**id**#Street Address#**label**#type_address#****#10#**id**#Street Address Line 2#**label**#type_address#****#11#**id**#City#**label**#type_address#****#12#**id**#State / Province / Region#**label**#type_address#****#13#**id**#Postal / Zip Code#**label**#type_address#****#14#**id**#Country#**label**#type_address#****#27#**id**#Send a copy of this message to yourself:#**label**#type_send_copy#****#3#**id**#Name:#**label**#type_name#****#8#**id**#Mobile:#**label**#type_phone#****#25#**id**#When is the best time to contact you:#**label**#type_checkbox#****#6#**id**#Phone number:#**label**#type_text#****#15#**id**#Company:#**label**#type_text#****#26#**id**#Which topic best describes your question?#**label**#type_radio#****#16#**id**#Street Address#**label**#type_address#****#18#**id**#City#**label**#type_address#****#20#**id**#Postal / Zip Code#**label**#type_address#****#29#**id**#&nbsp;#**label**#type_recaptcha#****#31#**id**#custom_31#**label**#type_editor#****#24#**id**#Issue type:#**label**#type_own_select#****#33#**id**#map_33#**label**#type_map#****#\', 0, \'\', \'\', \'\', \'2*:*id*:*type_text*:*type*:*Your Name:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*180*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*new_field*:*7*:*id*:*type_phone*:*type*:*Phone:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*100*:*w_size*:*****:*w_first_val*:*****:*w_title*:*Area Code***Phone Number*:*w_mini_labels*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*4*:*id*:*type_submitter_mail*:*type*:*E-mail:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*180*:*w_size*:*someone@example.com*:*w_first_val*:*someone@example.com*:*w_title*:*yes*:*w_required*:**:*w_unique*:**:*w_class*:**:*new_field*:*5*:*id*:*type_text*:*type*:*Website:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*180*:*w_size*:*example.com*:*w_first_val*:*example.com*:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*new_field*:*1*:*id*:*type_section_break*:*type*:*custom_1*:*w_field_label*:*<hr>*:*w_editor*:**:*new_field*:*22*:*id*:*type_text*:*type*:*Subject:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*480*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*new_field*:*23*:*id*:*type_textarea*:*type*:*Message:*:*w_field_label*:*120*:*w_field_label_size*:*top*:*w_field_label_pos*:*480*:*w_size_w*:*250*:*w_size_h*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*32*:*id*:*type_editor*:*type*:*custom_32*:*w_field_label*:**:*w_editor*:**:*new_field*:*28*:*id*:*type_captcha*:*type*:*Type the characters you see here:*:*w_field_label*:*250*:*w_field_label_size*:*top*:*w_field_label_pos*:*6*:*w_digit*:**:*w_class*:**:*new_field*:*30*:*id*:*type_submit_reset*:*type*:*type_submit_reset_30*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*true*:*w_act*:**:*new_field*:*9*:*id*:*type_address*:*type*:*Address:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*280*:*w_size*:*Street Address***Street Address Line 2***City***State / Province / Region***Postal / Zip Code***Country*:*w_mini_labels*:*no***no***no***no***no***no***no*:*w_disabled_fields*:*no*:*w_required*:*wdform_address*:*w_class*:**:*new_field*:*27*:*id*:*type_send_copy*:*type*:*Send a copy of this message to yourself:*:*w_field_label*:*260*:*w_field_label_size*:*left*:*w_field_label_pos*:*false*:*w_first_val*:*no*:*w_required*:**:*new_field*:*3*:*id*:*type_name*:*type*:*Name:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*****:*w_first_val*:*****:*w_title*:*Title***First***Last***Middle*:*w_mini_labels*:*77*:*w_size*:*normal*:*w_name_format*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*8*:*id*:*type_phone*:*type*:*Mobile:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*100*:*w_size*:*****:*w_first_val*:*****:*w_title*:*Area Code***Phone Number*:*w_mini_labels*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*25*:*id*:*type_checkbox*:*type*:*When is the best time to contact you:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*ver*:*w_flow*:*Morning***Afternoon***Evening*:*w_choices*:*false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:**:*w_class*:**:*new_field*:*6*:*id*:*type_text*:*type*:*Phone number:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*new_field*:*15*:*id*:*type_text*:*type*:*Company:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*new_field*:*26*:*id*:*type_radio*:*type*:*Which topic best describes your question?*:*w_field_label*:*280*:*w_field_label_size*:*top*:*w_field_label_pos*:*ver*:*w_flow*:*Product Support***Site Suggestions***Marketing & Sponsorship Opportunities***Referral Programs***Other*:*w_choices*:*false***false***false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:**:*w_class*:**:*new_field*:*16*:*id*:*type_address*:*type*:*Company address:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*280*:*w_size*:*Street Address***1***City***State / Province / Region***Postal / Zip Code***Country*:*w_mini_labels*:*no***yes***no***yes***no***yes***no*:*w_disabled_fields*:*no*:*w_required*:*wdform_address*:*w_class*:**:*new_field*:*29*:*id*:*type_recaptcha*:*type*:*&nbsp;*:*w_field_label*:*250*:*w_field_label_size*:*top*:*w_field_label_pos*:**:*w_public*:**:*w_private*:*red*:*w_theme*:**:*w_class*:**:*new_field*:*31*:*id*:*type_editor*:*type*:*custom_31*:*w_field_label*:*<p><span style="color: rgb(153, 0, 0); font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: normal; background-color: rgb(244, 244, 244);">* Indicates required fields</span></p>*:*w_editor*:**:*new_field*:*24*:*id*:*type_own_select*:*type*:*Issue type:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:*(Select a Topic)***Pre-Sales Question***Product Support***Site Suggestions***Other*:*w_choices*:*true***false***false***false***false*:*w_choices_checked*:*false***false***false***false***false*:*w_choices_disabled*:*no*:*w_required*:*wdform_select*:*w_class*:**:*new_field*:*33*:*id*:*type_map*:*type*:*map_33*:*w_field_label*:*-74.0059731*:*w_center_x*:*40.7143528*:*w_center_y*:*-74.005973*:*w_long*:*40.714353*:*w_lat*:*11*:*w_zoom*:*200*:*w_width*:*200*:*w_height*:**:*w_info*:*wdform_map*:*w_class*:**:*new_field*:*\', 1, 1, \'*\', \'4\', \'\', \'4\', \'*4*\', 1, \'\', \'\', \'\', \'\', \'32,9,10,11,12,13,14,27,3,8,25,6,15,26,16,17,18,19,20,21,29,31,24,33,\', \'\', \'\', \'\', \'\', \'%Subject:%\', \'%Subject:%\', 1, 1, 1, 1)');
62
- $wpdb->query('INSERT INTO `' . $wpdb->prefix . 'contactformmaker` VALUES(10, \'Contact Form 9\', \'\', \'<div class="wdform-page-and-images" style="display:table; border-top:0px solid black;"><div id="form_id_tempform_view1" class="wdform_page" page_title="Untitled page" next_title="Next" next_type="text" next_class="wdform-page-button" next_checkable="false" previous_title="Previous" previous_type="text" previous_class="wdform-page-button" previous_checkable="false"><div class="wdform_section"><div class="wdform_column"></div></div><div wdid="1" type="type_section_break" class="wdform_tr_section_break">%1 - custom_1%</div><div class="wdform_section"><div class="wdform_column"><div wdid="2" class="wdform_row" style="opacity: 1;">%2 - Your Name:%</div><div wdid="3" class="wdform_row" disabled="yes" style="opacity: 0.4;">%3 - Name:%</div><div wdid="4" class="wdform_row">%4 - E-mail:%</div><div wdid="5" class="wdform_row" disabled="yes" style="opacity: 0.4;">%5 - Website:%</div><div wdid="6" class="wdform_row" disabled="yes" style="opacity: 0.4;">%6 - Phone number:%</div><div wdid="7" class="wdform_row">%7 - Phone:%</div><div wdid="8" class="wdform_row" disabled="yes" style="opacity: 0.4;">%8 - Mobile:%</div><div wdid="9" class="wdform_row" disabled="yes" style="opacity: 0.4;">%9 - Address:%</div><div wdid="15" class="wdform_row" disabled="yes" style="opacity: 0.4;">%15 - Company:%</div><div wdid="16" class="wdform_row" disabled="yes" style="opacity: 0.4;">%16 - Company address:%</div><div wdid="24" class="wdform_row" style="opacity: 1;">%24 - Issue type:%</div><div wdid="22" class="wdform_row">%22 - Subject:%</div><div wdid="23" class="wdform_row">%23 - Message:%</div><div wdid="25" class="wdform_row" disabled="yes" style="opacity: 0.4;">%25 - When is the best time to contact you:%</div><div wdid="26" class="wdform_row" disabled="yes" style="opacity: 0.4;">%26 - Which topic best describes your question?%</div><div wdid="27" class="wdform_row">%27 - Send a copy of this message to yourself:%</div><div wdid="28" class="wdform_row" style="opacity: 1;">%28 - Type the characters you see here:%</div><div wdid="29" class="wdform_row" style="opacity: 0.4;" disabled="yes">%29 - &nbsp;%</div><div wdid="30" class="wdform_row">%30 - type_submit_reset_30%</div><div wdid="31" class="wdform_row" disabled="yes" style="opacity: 0.4;">%31 - custom_31%</div></div><div class="wdform_column"><div wdid="32" class="wdform_row">%32 - custom_32%</div><div wdid="33" class="wdform_row">%33 - map_33%</div></div></div><div valign="top" class="wdform_footer" style="width: 100%;"><div style="width: 100%;"><div style="width: 100%; display: table;"><div style="display: table-row-group;"><div id="form_id_temppage_nav1" style="display: table-row;"></div></div></div></div></div></div></div>\', 4, \'<div class="content_head" style="color: #565759;">\r\n<h1>Thank you for contacting us</h1>\r\n</div>\r\n<p>We have received your message and will respond to you within 24 hours (Monday-Friday).</p>\r\n<p>For urgent inquiries, please contact us using phone numbers down below.</p>\r\n<p>Phone: 123-987-6543</p>\r\n<p>Fax: 123-987-6542</p>\', \'\', 3, \'<p>%Your Name:% sent you a message from IP: %ip%</p>\r\n<p> </p>\r\n<p>%all%</p>\', \'<div class="content_head" style="color: #565759;">\r\n<h1>Dear %Your Name:%</h1>\r\n<h2>Thank you for contacting us</h2>\r\n</div>\r\n<p>We have received your message and will respond to you within 24 hours (Monday-Friday).</p>\r\n<p>For urgent inquiries, please contact us using phone numbers down below.</p>\r\n<p>Phone: 123-987-6543</p>\r\n<p>Fax: 123-987-6542</p>\r\n<p> </p>\r\n<p> </p>\r\n<p>%all%</p>\', 34, 1, \'2#**id**#Your Name:#**label**#type_text#****#3#**id**#Name:#**label**#type_name#****#4#**id**#E-mail:#**label**#type_submitter_mail#****#5#**id**#Website:#**label**#type_text#****#6#**id**#Phone number:#**label**#type_text#****#7#**id**#Phone:#**label**#type_phone#****#8#**id**#Mobile:#**label**#type_phone#****#9#**id**#Street Address#**label**#type_address#****#10#**id**#Street Address Line 2#**label**#type_address#****#11#**id**#City#**label**#type_address#****#12#**id**#State / Province / Region#**label**#type_address#****#13#**id**#Postal / Zip Code#**label**#type_address#****#14#**id**#Country#**label**#type_address#****#15#**id**#Company:#**label**#type_text#****#16#**id**#Street Address#**label**#type_address#****#18#**id**#City#**label**#type_address#****#20#**id**#Postal / Zip Code#**label**#type_address#****#24#**id**#Issue type:#**label**#type_own_select#****#22#**id**#Subject:#**label**#type_text#****#23#**id**#Message:#**label**#type_textarea#****#25#**id**#When is the best time to contact you:#**label**#type_checkbox#****#26#**id**#Which topic best describes your question?#**label**#type_radio#****#27#**id**#Send a copy of this message to yourself:#**label**#type_send_copy#****#28#**id**#Type the characters you see here:#**label**#type_captcha#****#29#**id**#&nbsp;#**label**#type_recaptcha#****#30#**id**#type_submit_reset_30#**label**#type_submit_reset#****#31#**id**#custom_31#**label**#type_editor#****#32#**id**#custom_32#**label**#type_editor#****#33#**id**#map_33#**label**#type_map#****#\', \'2#**id**#Your Name:#**label**#type_text#****#3#**id**#Name:#**label**#type_name#****#4#**id**#E-mail:#**label**#type_submitter_mail#****#5#**id**#Website:#**label**#type_text#****#6#**id**#Phone number:#**label**#type_text#****#7#**id**#Phone:#**label**#type_phone#****#8#**id**#Mobile:#**label**#type_phone#****#9#**id**#Street Address#**label**#type_address#****#10#**id**#Street Address Line 2#**label**#type_address#****#11#**id**#City#**label**#type_address#****#12#**id**#State / Province / Region#**label**#type_address#****#13#**id**#Postal / Zip Code#**label**#type_address#****#14#**id**#Country#**label**#type_address#****#15#**id**#Company:#**label**#type_text#****#16#**id**#Street Address#**label**#type_address#****#18#**id**#City#**label**#type_address#****#20#**id**#Postal / Zip Code#**label**#type_address#****#24#**id**#Issue type:#**label**#type_own_select#****#22#**id**#Subject:#**label**#type_text#****#23#**id**#Message:#**label**#type_textarea#****#25#**id**#When is the best time to contact you:#**label**#type_checkbox#****#26#**id**#Which topic best describes your question?#**label**#type_radio#****#27#**id**#Send a copy of this message to yourself:#**label**#type_send_copy#****#28#**id**#Type the characters you see here:#**label**#type_captcha#****#29#**id**#&nbsp;#**label**#type_recaptcha#****#30#**id**#type_submit_reset_30#**label**#type_submit_reset#****#31#**id**#custom_31#**label**#type_editor#****#32#**id**#custom_32#**label**#type_editor#****#33#**id**#map_33#**label**#type_map#****#\', 0, \'\', \'\', \'\', \'1*:*id*:*type_section_break*:*type*:*custom_1*:*w_field_label*:*<h2 style="font-size: 30px; font-family: Bitter, Georgia, serif; clear: both; line-height: 1.3; margin: 25px 0px;">Contact Us</h2><div style="color: rgb(20, 20, 18); font-family: Source Sans Pro, Helvetica, sans-serif; font-size: 16px; line-height: 24px;">You may contact us by filling in this form any time you need professional support or have any questions. You can also fill in the form to leave your comments or feedback.</div>*:*w_editor*:**:*new_field*:*2*:*id*:*type_text*:*type*:*Your Name:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*new_field*:*3*:*id*:*type_name*:*type*:*Name:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*****:*w_first_val*:*****:*w_title*:*Title***First***Last***Middle*:*w_mini_labels*:*77*:*w_size*:*normal*:*w_name_format*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*4*:*id*:*type_submitter_mail*:*type*:*E-mail:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:*someone@example.com*:*w_first_val*:*someone@example.com*:*w_title*:*yes*:*w_required*:**:*w_unique*:**:*w_class*:**:*new_field*:*5*:*id*:*type_text*:*type*:*Website:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:*example.com*:*w_first_val*:*example.com*:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*new_field*:*6*:*id*:*type_text*:*type*:*Phone number:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*new_field*:*7*:*id*:*type_phone*:*type*:*Phone:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*100*:*w_size*:*****:*w_first_val*:*****:*w_title*:*Area Code***Phone Number*:*w_mini_labels*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*8*:*id*:*type_phone*:*type*:*Mobile:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*100*:*w_size*:*****:*w_first_val*:*****:*w_title*:*Area Code***Phone Number*:*w_mini_labels*:*no*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*9*:*id*:*type_address*:*type*:*Address:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*280*:*w_size*:*Street Address***Street Address Line 2***City***State / Province / Region***Postal / Zip Code***Country*:*w_mini_labels*:*no***no***no***no***no***no***no*:*w_disabled_fields*:*no*:*w_required*:*wdform_address*:*w_class*:**:*new_field*:*15*:*id*:*type_text*:*type*:*Company:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:**:*w_first_val*:**:*w_title*:*no*:*w_required*:*no*:*w_unique*:**:*new_field*:*16*:*id*:*type_address*:*type*:*Company address:*:*w_field_label*:*100*:*w_field_label_size*:*top*:*w_field_label_pos*:*280*:*w_size*:*Street Address***Street Address Line 2***City***State / Province / Region***Postal / Zip Code***Country*:*w_mini_labels*:*no***yes***no***yes***no***yes***no*:*w_disabled_fields*:*no*:*w_required*:*wdform_address*:*w_class*:**:*new_field*:*24*:*id*:*type_own_select*:*type*:*Issue type:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:*(Select a Topic)***Pre-Sales Question***Product Support***Site Suggestions***Other*:*w_choices*:*true***false***false***false***false*:*w_choices_checked*:*false***false***false***false***false*:*w_choices_disabled*:*no*:*w_required*:*wdform_select*:*w_class*:**:*new_field*:*22*:*id*:*type_text*:*type*:*Subject:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*180*:*w_size*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*new_field*:*23*:*id*:*type_textarea*:*type*:*Message:*:*w_field_label*:*120*:*w_field_label_size*:*top*:*w_field_label_pos*:*290*:*w_size_w*:*100*:*w_size_h*:**:*w_first_val*:**:*w_title*:*yes*:*w_required*:*no*:*w_unique*:**:*w_class*:**:*new_field*:*25*:*id*:*type_checkbox*:*type*:*When is the best time to contact you:*:*w_field_label*:*100*:*w_field_label_size*:*left*:*w_field_label_pos*:*ver*:*w_flow*:*Morning***Afternoon***Evening*:*w_choices*:*false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:**:*w_class*:**:*new_field*:*26*:*id*:*type_radio*:*type*:*Which topic best describes your question?*:*w_field_label*:*280*:*w_field_label_size*:*top*:*w_field_label_pos*:*ver*:*w_flow*:*Product Support***Site Suggestions***Marketing & Sponsorship Opportunities***Referral Programs***Other*:*w_choices*:*false***false***false***false***false*:*w_choices_checked*:*1*:*w_rowcol*:*no*:*w_required*:*no*:*w_randomize*:*no*:*w_allow_other*:*0*:*w_allow_other_num*:**:*w_class*:**:*new_field*:*27*:*id*:*type_send_copy*:*type*:*Send a copy of this message to yourself:*:*w_field_label*:*260*:*w_field_label_size*:*left*:*w_field_label_pos*:*false*:*w_first_val*:*no*:*w_required*:**:*new_field*:*28*:*id*:*type_captcha*:*type*:*Type the characters you see here:*:*w_field_label*:*250*:*w_field_label_size*:*top*:*w_field_label_pos*:*6*:*w_digit*:**:*w_class*:**:*new_field*:*29*:*id*:*type_recaptcha*:*type*:*&nbsp;*:*w_field_label*:*250*:*w_field_label_size*:*top*:*w_field_label_pos*:**:*w_public*:**:*w_private*:*red*:*w_theme*:**:*w_class*:**:*new_field*:*30*:*id*:*type_submit_reset*:*type*:*type_submit_reset_30*:*w_field_label*:*Submit*:*w_submit_title*:*Reset*:*w_reset_title*:**:*w_class*:*true*:*w_act*:**:*new_field*:*31*:*id*:*type_editor*:*type*:*custom_31*:*w_field_label*:*<p><span style="color: rgb(153, 0, 0); font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: normal; background-color: rgb(244, 244, 244);">* Indicates required fields</span></p>*:*w_editor*:**:*new_field*:*32*:*id*:*type_editor*:*type*:*custom_32*:*w_field_label*:*<p><strong>Sample Company, Inc.</strong></p><p>1412 South Main Expressway</p><p>Sugar Land, TX 98765</p><p>Phone: 123-987-6543</p><p>Fax: 123-987-6542</p>*:*w_editor*:**:*new_field*:*33*:*id*:*type_map*:*type*:*map_33*:*w_field_label*:*44.497928*:*w_center_x*:*40.1525306*:*w_center_y*:*44.497928*:*w_long*:*40.152531*:*w_lat*:*12*:*w_zoom*:*300*:*w_width*:*400*:*w_height*:**:*w_info*:*wdform_map*:*w_class*:**:*new_field*:*\', 1, 1, \'*\', \'4\', \'\', \'4\', \'*4*\', 1, \'\', \'\', \'\', \'\', \'3,5,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21,25,26,29,31,\', \'\', \'\', \'\', \'\', \'%Subject:%\', \'%Subject:%\', 1, 1, 1, 1)');
63
- }
64
- $contactformmaker_submits = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix . "contactformmaker_submits` (
65
- `id` int(11) NOT NULL AUTO_INCREMENT,
66
- `form_id` int(11) NOT NULL,
67
- `element_label` varchar(128) NOT NULL,
68
- `element_value` varchar(600) NOT NULL,
69
- `group_id` int(11) NOT NULL,
70
- `date` datetime NOT NULL,
71
- `ip` varchar(32) NOT NULL,
72
- PRIMARY KEY (`id`)) DEFAULT CHARSET=utf8;";
73
- $wpdb->query($contactformmaker_submits);
74
- $contactformmaker_themes = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix . "contactformmaker_themes` (
75
- `id` int(11) NOT NULL AUTO_INCREMENT,
76
- `title` varchar(200) NOT NULL,
77
- `css` text NOT NULL,
78
- `default` tinyint(4) NOT NULL,
79
- PRIMARY KEY (`id`)
80
- ) DEFAULT CHARSET=utf8;";
81
- $wpdb->query($contactformmaker_themes);
82
- $contact_form_maker_theme_row = $wpdb->get_var("SELECT * FROM `" . $wpdb->prefix . "contactformmaker_themes`");
83
- if (!$contact_form_maker_theme_row) {
84
- $wpdb->query('INSERT INTO `' . $wpdb->prefix . 'contactformmaker_themes` (`id`, `title`, `css`, `default`) VALUES(1, \'Theme 01 blue\', \'.wdform-page-and-images .other_input\r\n{\r\nmax-width: none;\r\n}\r\nbutton,\r\ninput,\r\nselect,\r\ntextarea\r\n{\r\nfont-size:14px;\r\n}\r\n.warning,\r\n.error\r\n{\r\nbackground-color: #F0EFEF;\r\nborder: 1px solid #013D7C;\r\nborder-radius: 5px;\r\ncolor: #013D7C;\r\npadding: 5px;\r\n}\r\n.warning *,\r\n.error *\r\n{\r\nmargin:0;\r\n}\r\n.recaptcha_input_area input\r\n{\r\nheight:initial !important;\r\n}\r\ninput[type="radio"]\r\n{\r\nborder:none !important;\r\noutline:none !important;\r\n}\r\ninput[type="checkbox"]\r\n{\r\nborder:none !important;\r\noutline:none !important;\r\n}\r\na.ui-spinner-button\r\n{\r\nborder-radius:0px !important;\r\nbackground: none!important;\r\n}\r\n\r\na.ui-slider-handle {\r\nwidth: 13px;\r\nheight: 13px;\r\ntop: -4px;\r\nborder: 0px;\r\nborder-radius: 13px;\r\nbackground: #FAFAFA;\r\nborder: 3px solid #B1B1B1;\r\noutline: none;\r\n}\r\n\r\n.ui-slider {\r\n height: 6px;\r\n background: #F5F5F5 !important;\r\n margin: 7px 0px;\r\n}\r\n.wdform_grading input {\r\n width: 100px;\r\n}\r\n.wdform-matrix-cell input[type="text"] {\r\n width: 100px;\r\n}\r\n.wdform-matrix-cell select {\r\n width: 60px;\r\n}\r\n.wdform_section .wdform_column:last-child {\r\n padding-right: 0px !important;\r\n}\r\n.wdform_preload {\r\n display: none;\r\n}\r\n.wdform_grading {\r\n padding: 3px 0px;\r\n}\r\n.wdform-matrix-table {\r\n display: table;\r\n border-spacing: 0px;\r\n}\r\n.wdform-matrix-column {\r\n text-align: left;\r\n display: table-cell;\r\n}\r\n.wdform-matrix-cell {\r\n text-align: center;\r\n display: table-cell;\r\n padding: 6px 10px;\r\n}\r\n.wdform-matrix-head>div {\r\n display: table-cell;\r\n text-align: center;\r\n}\r\n.wdform-matrix-head {\r\n display: table-row;\r\n}\r\n.wdform-matrix-row0 {\r\n background: #DFDFDF;\r\n display: table-row;\r\n}\r\n.wdform-matrix-row1 {\r\n background: #E9E9E9;\r\n display: table-row;\r\n}\r\n.selected-text {\r\n text-align: left;\r\n color: #000;\r\n}\r\n.wdform-quantity {\r\n width: 30px;\r\n margin: 2px 0px;\r\n}\r\n.wdform_scale_rating label {\r\n vertical-align: middle;\r\n}\r\n.ui-corner-all {\r\n border-radius: 0px;\r\n}\r\n.ui-widget-content {\r\n border: 0px;\r\n background: transparent;\r\n}\r\n\r\n\r\n.ui-slider-range {\r\n background: #8A8A8A !important;\r\n}\r\n.wdform_map {\r\n border: 6px solid #fff;\r\n}\r\n.wdform-page-and-images {\r\n width: 100%;\r\n border: 0px solid #000 !important;\r\npadding-left:10px;\r\n}\r\n.paypal-property {\r\n display: inline-block;\r\n margin-right: 15px;\r\n vertical-align: middle;\r\n}\r\n.sel-wrap {\r\n display: inline-block;\r\n vertical-align: middle;\r\n width:100%;\r\n}\r\n\r\n.sel-imul {\r\n display: none;\r\n}\r\n.sel-imul .sel-selected {\r\n cursor: pointer;\r\n position: relative;\r\n display: inline-block;\r\n border-radius: 0px;\r\n padding: 0px 0px 0px 2px;\r\n font-size: 13px;\r\n height: 22px;\r\n line-height: 22px;\r\n overflow: hidden;\r\n background: #F8F8F8;\r\n border: 0px solid #D3D3D3;\r\n background-position: right 2px center;\r\n width: 100%;\r\n}\r\n.sel-imul.act .sel-selected {\r\n background: #fff;\r\n}\r\n.sel-selected .sel-arraw {\r\n height: 23px;\r\n width: 30px;\r\n background: url([SITE_ROOT]/images/09/01.png) 50% 50% no-repeat;\r\n position: absolute;\r\n top: 0px;\r\n right: 0px;\r\n padding: 0px;\r\n}\r\n.sel-imul .sel-options {\r\n background: #fff;\r\n border: 1px solid #dbdbdb;\r\n border-top: none;\r\n position: absolute;\r\n width: inherit;\r\n display: none;\r\n z-index: 10;\r\n max-height: 200px;\r\n overflow-y: auto;\r\n overflow-x: hidden;\r\n}\r\n.sel-options .sel-option {\r\n padding: 3px 4px;\r\n font-size: 13px;\r\n border: 1px solid #fff;\r\n border-right: none;\r\n border-left: none;\r\n text-align: left;\r\n}\r\n.sel-options .sel-option:hover {\r\n border-color: #dbdbdb;\r\n cursor: pointer;\r\n}\r\n.sel-options .sel-option.sel-ed {\r\n background: #dbdbdb;\r\n border-color: #dbdbdb;\r\n}\r\ninput[type=text]{\r\n margin: 0px;\r\n}\r\ninput[type=password]{\r\n margin: 0px;\r\n}\r\ninput[type=url]{\r\n margin: 0px;\r\n}\r\ninput[type=email]{\r\n margin: 0px;\r\n}\r\ninput.text{\r\n margin: 0px;\r\n}\r\ninput.title{\r\n margin: 0px;\r\n}\r\ntextarea{\r\n margin: 0px;\r\n}\r\nselect {\r\n margin: 0px;\r\n}\r\n.form-error {\r\n border-color: red !important;\r\n}\r\n.form-error:focus {\r\n border-color: red !important;\r\n}\r\n.wdform-field {\r\n display: table-cell;\r\n padding: 5px 0px;\r\n}\r\n.wdform-label-section{\r\n text-align: left;\r\n display: table-cell;\r\n}\r\n.wdform-element-section {\r\n text-align: left;\r\n display: table-cell;\r\n min-width: 140px;\r\n}\r\n.file-upload input {\r\n position: absolute;\r\n visibility: hidden;\r\n}\r\n.file-upload-status {\r\n margin-left: 10px;\r\n max-width: 200px;\r\n font-weight: bold;\r\n font-size: 16px;\r\n color: #888;\r\n position: absolute;\r\n border-radius: 0px;\r\n height: 23px;\r\n padding-left: 5px;\r\n padding-right: 5px;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n }\r\n.file-picker {\r\n width: 41px;\r\n height: 32px;\r\n background: url([SITE_ROOT]/images/10/01/upload.png) no-repeat;\r\n display: inline-block;\r\n}\r\n.next-page div.wdform-page-button {\r\ncolor: #FFF;\r\ncursor: pointer;\r\ndisplay: inline-block;\r\nheight: 38px;\r\nline-height: 35px;\r\nbackground:url([SITE_ROOT]/images/10/next.png) no-repeat right #013D7C;\r\npadding: 0px 36px 0 20px;\r\nvertical-align: middle;\r\nfont-size: 18px;\r\nborder-top-right-radius: 7px;\r\nborder-bottom-right-radius: 7px;\r\n}\r\n.previous-page div.wdform-page-button {\r\ncolor: #A2A2A2;\r\ncursor: pointer;\r\ndisplay: inline-block;\r\nheight: 37px;\r\nline-height: 35px;\r\nbackground:url([SITE_ROOT]/images/09/previous.png) no-repeat left #F1F1F1;\r\npadding: 0 20px 0 36px;\r\nvertical-align: middle;\r\nfont-size: 18px;\r\nborder-top-left-radius: 7px;\r\nborder-bottom-left-radius: 7px;\r\n}\r\n.button-submit {\r\n color: #ffffff;\r\n cursor: pointer;\r\n display: inline-block;\r\n line-height: 35px;\r\n background: #013D7C;\r\n padding: 0px 20px;\r\n vertical-align: middle;\r\n font-size: 18px;\r\n min-width: 80px;\r\n min-height: 35px;\r\n font-family: Segoe UI;\r\n border: 1px solid transparent;\r\n margin: 5px;\r\n}\r\n.button-reset {\r\n color: #787878;\r\n cursor: pointer;\r\n display: inline-block;\r\n line-height: 35px;\r\n background: #F0EFEF;\r\n padding: 0px 20px;\r\n vertical-align: middle;\r\n font-size: 18px;\r\n min-width: 80px;\r\n min-height: 35px;\r\n font-family: Segoe UI;\r\n float: right;\r\n border: 1px solid transparent;\r\n margin: 5px;\r\n}\r\n.wdform_page {\r\n background: #FFFFFF;\r\n border-radius: 0px;\r\n font-family: Segoe UI;\r\n}\r\n.wdform_column {\r\n padding-right: 50px !important;\r\n float: left;\r\n border-spacing: 2px;\r\n border-collapse: separate !important;\r\n}\r\n.wdform_section_break2 {\r\n color: #013D7C;\r\n display: inline-block;\r\n text-align: left;\r\n font-size: 23px;\r\nmargin: 16px 10px 40px 0px;\r\n}\r\n\r\n.wdform_section_break {\r\n color: #013D7C;\r\n font-size: 23px;\r\nmargin: 16px 0px;\r\n}\r\n\r\n.wdform_section {\r\n display: inline-block;\r\n}\r\nselect {\r\n padding: 2px;\r\n height: 26px;\r\n border: 1px solid #B7B7B7;\r\nbackground: #F8F8F8;\r\n}\r\ninput[type="text"]{\r\n border-radius: 0px;\r\n height: 22px;\r\n padding:0 3px !important;\r\n background: #F8F8F8;\r\nborder:1px solid #B7B7B7;\r\n}\r\ninput[type="password"]{\r\n border-radius: 0px;\r\n height: 22px;\r\n padding:0 3px !important;\r\n background: #F8F8F8;\r\nborder:1px solid #B7B7B7;\r\n}\r\ntextarea {\r\n border-radius: 0px;\r\n height: 22px;\r\n padding:0 3px !important;\r\n background: #F8F8F8;\r\nborder:1px solid #B7B7B7;\r\n}\r\ninput[type="text"]:focus{\r\n outline: none;\r\n}\r\ninput[type="password"]:focus{\r\n outline: none;\r\n}\r\ntextarea:focus{\r\n outline: none;\r\n}\r\nselect {\r\n outline: none;\r\n}\r\n.input_deactive {\r\n color: #999999;\r\n font-style: italic;\r\n}\r\n.input_active {\r\n color: #000000;\r\n font-style: normal;\r\n}\r\n.am_pm_select {\r\n width: 30px;\r\n vertical-align: middle;\r\n}\r\n\r\n\r\n.wdform-calendar-button,\r\n.wdform-calendar-button:hover {\r\n display:inline-block;\r\n background: transparent url([SITE_ROOT]/images/03/date.png) no-repeat !important;\r\n border: 0px;\r\n color: transparent;\r\n width: 22px;\r\n height: 22px;\r\n position: relative;\r\n left: -22px;\r\n vertical-align: top;\r\n outline: none;\r\n}\r\n\r\n\r\n.forlabs {\r\n float: right;\r\n margin-right: 20px;\r\n}\r\n\r\n.if-ie-div-label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)" !important;\r\n filter: alpha(opacity=100) !important;\r\n opacity: 1 !important;\r\n}\r\n.wdform-ch-rad-label {\r\n display: inline;\r\n margin: -4px 5px 5px 5px;\r\n float: left;\r\n color: #000;\r\n cursor: pointer\r\n}\r\ntextarea {\r\n padding-top: 5px;\r\n}\r\n.wdform-date {\r\n display:inline-block;\r\n width: 105px\r\n}\r\n.wdform_footer {\r\n margin-top: 15px;\r\n}\r\n.page-numbers {\r\n vertical-align: middle;\r\n}\r\n.time_box {\r\n text-align: right;\r\n width: 30px;\r\n vertical-align: middle\r\n}\r\n.mini_label {\r\n font-size: 10px;\r\n font-family: "Lucida Grande", Tahoma, Arial, Verdana, sans-serif;\r\n color: #8A8A8A;\r\n}\r\n.wdform-label {\r\n border: none;\r\n color: #000;\r\n vertical-align: top;\r\n line-height: 17px;\r\n}\r\n.wdform_colon {\r\n color: #000\r\n}\r\n.wdform_separator {\r\n font-style: bold;\r\n vertical-align: middle;\r\n color: #000;\r\n}\r\n.wdform_line {\r\n color: #000\r\n}\r\n.wdform-required {\r\n border: none;\r\n color: red;\r\n vertical-align: top;\r\n}\r\n.captcha_img {\r\n border-width: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n cursor: pointer;\r\n border-radius: 0px;\r\n}\r\n.captcha_refresh {\r\n width: 30px;\r\n height: 30px;\r\n border-width: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n vertical-align: middle;\r\n cursor: pointer;\r\n background-image: url([SITE_ROOT]/images/refresh_black.png);\r\n}\r\n.captcha_input {\r\n height: 20px;\r\n border-width: 1px;\r\n margin: 0px;\r\n padding: 0px;\r\n vertical-align: middle;\r\n}\r\n.file_upload {\r\n border: 0px solid white;\r\n border-radius: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n color: black;\r\n background-color: white;\r\n}\r\n.page_deactive {\r\ncolor: #013E7D;\r\nbackground-color: #FFF;\r\ncursor: pointer;\r\ndisplay: inline-block;\r\nheight: 29px;\r\ntext-align: center;\r\nvertical-align: bottom;\r\npadding: 5px 25px 0px 25px;\r\nfont-size: 16px;\r\nfont-weight:bold;\r\n}\r\n.page_active {\r\ncolor: #FFF;\r\ncursor: pointer;\r\nbackground-color: #013E7D;\r\ndisplay: inline-block;\r\nvertical-align: bottom;\r\nheight: 29px;\r\ntext-align: center;\r\nfont-size: 20px;\r\npadding: 5px 25px 0px 25px;\r\nline-height: 26px;\r\nfont-weight:bold;\r\n}\r\n.page_percentage_active {\r\npadding: 0px;\r\nmargin: 0px;\r\nborder-spacing: 0px;\r\nheight: 16px;\r\nline-height: 16px;\r\nfont-size: 15px;\r\nfloat: left;\r\ntext-align: right !important;\r\nz-index: 1;\r\nposition: relative;\r\nvertical-align: middle;\r\nbackground: #013E7F;\r\ncolor: #fff;\r\nborder-top-left-radius: 5px;\r\nborder-bottom-left-radius: 5px;\r\n}\r\n.page_percentage_deactive {\r\nheight: 16px;\r\nline-height: 16px;\r\nbackground-color: #F1F1F1;\r\ntext-align: left !important;\r\nmargin-bottom: 1px;\r\nborder-radius: 5px;\r\n}\r\n.page_numbers {\r\n font-size: 14px;\r\n color: #000;\r\n}\r\n.phone_area_code {\r\n width: 50px;\r\n}\r\n.phone_number {\r\n width: 100px;\r\n}\r\nbutton {\r\n cursor: pointer;\r\n}\r\n.other_input {\r\n border-radius: 0px;\r\n border-width: 1px;\r\n height: 16px;\r\n font-size: 12px;\r\n padding: 1px;\r\n margin: 1px;\r\n margin-left: 25px;\r\n z-index: 100;\r\n position: absolute;\r\n}\r\n.wdform_page_navigation {\r\n text-align: right !important;\r\n}\r\n\r\n.wdform_percentage_text {\r\nmargin: 3px 5px 3px 9px;\r\ncolor: #FFF;\r\nfont-size: 12px;\r\n}\r\n.wdform_percentage_title {\r\n color: #6E6E6E;\r\n font-style: italic;\r\n margin: 0px 0px 0px 40px;\r\n display: inline-block;\r\n line-height: 27px;\r\n height: 27px;\r\n vertical-align: middle;\r\n}\r\n.wdform_button button {\r\n background: #4D792C;\r\n cursor: pointer;\r\n font-size: 17px;\r\n border-radius: 0px;\r\n min-width: 80px;\r\n min-height: 31px;\r\n color: #fff;\r\n border: 2px solid #68943B;\r\n margin: 5px;\r\n box-shadow: 0px 0px 2px #c9c9c9;\r\n font-family: Segoe UI;\r\n}\', 0)');
85
- $wpdb->query('INSERT INTO `' . $wpdb->prefix . 'contactformmaker_themes` (`id`, `title`, `css`, `default`) VALUES(2, \'Theme 01 purple\', \'.wdform-page-and-images .other_input\r\n{\r\nmax-width: none;\r\n}\r\nbutton,\r\ninput,\r\nselect,\r\ntextarea\r\n{\r\nfont-size:14px;\r\n}\r\n.warning,\r\n.error\r\n{\r\nbackground-color: #F0EFEF;\r\nborder: 1px solid #6C005E;\r\nborder-radius: 5px;\r\ncolor: #6C005E;\r\npadding: 5px;\r\n}\r\n.warning *,\r\n.error *\r\n{\r\nmargin:0;\r\n}\r\n.recaptcha_input_area input\r\n{\r\nheight:initial !important;\r\n}\r\ninput[type="radio"]\r\n{\r\nborder:none !important;\r\noutline:none !important;\r\n}\r\ninput[type="checkbox"]\r\n{\r\nborder:none !important;\r\noutline:none !important;\r\n}\r\na.ui-spinner-button\r\n{\r\nborder-radius:0px !important;\r\nbackground: none!important;\r\n}\r\n\r\na.ui-slider-handle {\r\nwidth: 13px;\r\nheight: 13px;\r\ntop: -4px;\r\nborder: 0px;\r\nborder-radius: 13px;\r\nbackground: #FAFAFA;\r\nborder: 3px solid #B1B1B1;\r\noutline: none;\r\n}\r\n\r\n.ui-slider {\r\n height: 6px;\r\n background: #F5F5F5 !important;\r\n margin: 7px 0px;\r\n}\r\n.wdform_grading input {\r\n width: 100px;\r\n}\r\n.wdform-matrix-cell input[type="text"] {\r\n width: 100px;\r\n}\r\n.wdform-matrix-cell select {\r\n width: 60px;\r\n}\r\n.wdform_section .wdform_column:last-child {\r\n padding-right: 0px !important;\r\n}\r\n.wdform_preload {\r\n display: none;\r\n}\r\n.wdform_grading {\r\n padding: 3px 0px;\r\n}\r\n.wdform-matrix-table {\r\n display: table;\r\n border-spacing: 0px;\r\n}\r\n.wdform-matrix-column {\r\n text-align: left;\r\n display: table-cell;\r\n}\r\n.wdform-matrix-cell {\r\n text-align: center;\r\n display: table-cell;\r\n padding: 6px 10px;\r\n}\r\n.wdform-matrix-head>div {\r\n display: table-cell;\r\n text-align: center;\r\n}\r\n.wdform-matrix-head {\r\n display: table-row;\r\n}\r\n.wdform-matrix-row0 {\r\n background: #DFDFDF;\r\n display: table-row;\r\n}\r\n.wdform-matrix-row1 {\r\n background: #E9E9E9;\r\n display: table-row;\r\n}\r\n.selected-text {\r\n text-align: left;\r\n color: #000;\r\n}\r\n.wdform-quantity {\r\n width: 30px;\r\n margin: 2px 0px;\r\n}\r\n.wdform_scale_rating label {\r\n vertical-align: middle;\r\n}\r\n.ui-corner-all {\r\n border-radius: 0px;\r\n}\r\n.ui-widget-content {\r\n border: 0px;\r\n background: transparent;\r\n}\r\n\r\n\r\n.ui-slider-range {\r\n background: #8A8A8A !important;\r\n}\r\n.wdform_map {\r\n border: 6px solid #fff;\r\n}\r\n.wdform-page-and-images {\r\n width: 100%;\r\n border: 0px solid #000 !important;\r\npadding-left:10px;\r\n}\r\n.paypal-property {\r\n display: inline-block;\r\n margin-right: 15px;\r\n vertical-align: middle;\r\n}\r\n.sel-wrap {\r\n display: inline-block;\r\n vertical-align: middle;\r\n width:100%;\r\n}\r\n\r\n.sel-imul {\r\n display: none;\r\n}\r\n.sel-imul .sel-selected {\r\n cursor: pointer;\r\n position: relative;\r\n display: inline-block;\r\n border-radius: 0px;\r\n padding: 0px 0px 0px 2px;\r\n font-size: 13px;\r\n height: 22px;\r\n line-height: 22px;\r\n overflow: hidden;\r\n background: #F8F8F8;\r\n border: 0px solid #D3D3D3;\r\n background-position: right 2px center;\r\n width: 100%;\r\n}\r\n.sel-imul.act .sel-selected {\r\n background: #fff;\r\n}\r\n.sel-selected .sel-arraw {\r\n height: 23px;\r\n width: 30px;\r\n background: url([SITE_ROOT]/images/09/01.png) 50% 50% no-repeat;\r\n position: absolute;\r\n top: 0px;\r\n right: 0px;\r\n padding: 0px;\r\n}\r\n.sel-imul .sel-options {\r\n background: #fff;\r\n border: 1px solid #dbdbdb;\r\n border-top: none;\r\n position: absolute;\r\n width: inherit;\r\n display: none;\r\n z-index: 10;\r\n max-height: 200px;\r\n overflow-y: auto;\r\n overflow-x: hidden;\r\n}\r\n.sel-options .sel-option {\r\n padding: 3px 4px;\r\n font-size: 13px;\r\n border: 1px solid #fff;\r\n border-right: none;\r\n border-left: none;\r\n text-align: left;\r\n}\r\n.sel-options .sel-option:hover {\r\n border-color: #dbdbdb;\r\n cursor: pointer;\r\n}\r\n.sel-options .sel-option.sel-ed {\r\n background: #dbdbdb;\r\n border-color: #dbdbdb;\r\n}\r\ninput[type=text]{\r\n margin: 0px;\r\n}\r\ninput[type=password]{\r\n margin: 0px;\r\n}\r\ninput[type=url]{\r\n margin: 0px;\r\n}\r\ninput[type=email]{\r\n margin: 0px;\r\n}\r\ninput.text{\r\n margin: 0px;\r\n}\r\ninput.title{\r\n margin: 0px;\r\n}\r\ntextarea{\r\n margin: 0px;\r\n}\r\nselect {\r\n margin: 0px;\r\n}\r\n.form-error {\r\n border-color: red !important;\r\n}\r\n.form-error:focus {\r\n border-color: red !important;\r\n}\r\n.wdform-field {\r\n display: table-cell;\r\n padding: 5px 0px;\r\n}\r\n.wdform-label-section{\r\n text-align: left;\r\n display: table-cell;\r\n}\r\n.wdform-element-section {\r\n text-align: left;\r\n display: table-cell;\r\n min-width: 140px;\r\n}\r\n.file-upload input {\r\n position: absolute;\r\n visibility: hidden;\r\n}\r\n.file-upload-status {\r\n margin-left: 10px;\r\n max-width: 200px;\r\n font-weight: bold;\r\n font-size: 16px;\r\n color: #888;\r\n position: absolute;\r\n border-radius: 0px;\r\n height: 23px;\r\n padding-left: 5px;\r\n padding-right: 5px;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n }\r\n.file-picker {\r\n width: 41px;\r\n height: 32px;\r\n background: url([SITE_ROOT]/images/10/02/upload.png) no-repeat;\r\n display: inline-block;\r\n}\r\n.next-page div.wdform-page-button {\r\ncolor: #FFF;\r\ncursor: pointer;\r\ndisplay: inline-block;\r\nheight: 38px;\r\nline-height: 35px;\r\nbackground:url([SITE_ROOT]/images/10/next.png) no-repeat right #6C005E;\r\npadding: 0px 36px 0 20px;\r\nvertical-align: middle;\r\nfont-size: 18px;\r\nborder-top-right-radius: 7px;\r\nborder-bottom-right-radius: 7px;\r\n}\r\n.previous-page div.wdform-page-button {\r\ncolor: #A2A2A2;\r\ncursor: pointer;\r\ndisplay: inline-block;\r\nheight: 37px;\r\nline-height: 35px;\r\nbackground:url([SITE_ROOT]/images/09/previous.png) no-repeat left #F1F1F1;\r\npadding: 0 20px 0 36px;\r\nvertical-align: middle;\r\nfont-size: 18px;\r\nborder-top-left-radius: 7px;\r\nborder-bottom-left-radius: 7px;\r\n}\r\n.button-submit {\r\n color: #ffffff;\r\n cursor: pointer;\r\n display: inline-block;\r\n line-height: 35px;\r\n background: #6C005E;\r\n padding: 0px 20px;\r\n vertical-align: middle;\r\n font-size: 18px;\r\n min-width: 80px;\r\n min-height: 35px;\r\n font-family: Segoe UI;\r\n border: 1px solid transparent;\r\n margin: 5px;\r\n}\r\n.button-reset {\r\n color: #787878;\r\n cursor: pointer;\r\n display: inline-block;\r\n line-height: 35px;\r\n background: #F0EFEF;\r\n padding: 0px 20px;\r\n vertical-align: middle;\r\n font-size: 18px;\r\n min-width: 80px;\r\n min-height: 35px;\r\n font-family: Segoe UI;\r\n float: right;\r\n border: 1px solid transparent;\r\n margin: 5px;\r\n}\r\n.wdform_page {\r\n background: #FFFFFF;\r\n border-radius: 0px;\r\n font-family: Segoe UI;\r\n}\r\n.wdform_column {\r\n padding-right: 50px !important;\r\n float: left;\r\n border-spacing: 2px;\r\n border-collapse: separate !important;\r\n}\r\n.wdform_section_break2 {\r\n color: #6C005E;\r\n display: inline-block;\r\n text-align: left;\r\n font-size: 23px;\r\nmargin: 16px 10px 40px 0px;\r\n}\r\n\r\n.wdform_section_break {\r\n color: #6C005E;\r\n font-size: 23px;\r\nmargin: 16px 0px;\r\n}\r\n\r\n.wdform_section {\r\n display: inline-block;\r\n}\r\nselect {\r\n padding: 2px;\r\n height: 26px;\r\n border: 1px solid #B7B7B7;\r\nbackground: #F8F8F8;\r\n}\r\ninput[type="text"]{\r\n border-radius: 0px;\r\n height: 22px;\r\n padding:0 3px !important;\r\n background: #F8F8F8;\r\nborder:1px solid #B7B7B7;\r\n}\r\ninput[type="password"]{\r\n border-radius: 0px;\r\n height: 22px;\r\n padding:0 3px !important;\r\n background: #F8F8F8;\r\nborder:1px solid #B7B7B7;\r\n}\r\ntextarea {\r\n border-radius: 0px;\r\n height: 22px;\r\n padding:0 3px !important;\r\n background: #F8F8F8;\r\nborder:1px solid #B7B7B7;\r\n}\r\ninput[type="text"]:focus{\r\n outline: none;\r\n}\r\ninput[type="password"]:focus{\r\n outline: none;\r\n}\r\ntextarea:focus{\r\n outline: none;\r\n}\r\nselect {\r\n outline: none;\r\n}\r\n.input_deactive {\r\n color: #999999;\r\n font-style: italic;\r\n}\r\n.input_active {\r\n color: #000000;\r\n font-style: normal;\r\n}\r\n.am_pm_select {\r\n width: 30px;\r\n vertical-align: middle;\r\n}\r\n\r\n\r\n.wdform-calendar-button,\r\n.wdform-calendar-button:hover {\r\n display:inline-block;\r\n background: transparent url([SITE_ROOT]/images/03/date.png) no-repeat !important;\r\n border: 0px;\r\n color: transparent;\r\n width: 22px;\r\n height: 22px;\r\n position: relative;\r\n left: -22px;\r\n vertical-align: top;\r\n outline: none;\r\n}\r\n\r\n\r\n.forlabs {\r\n float: right;\r\n margin-right: 20px;\r\n}\r\n\r\n.if-ie-div-label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)" !important;\r\n filter: alpha(opacity=100) !important;\r\n opacity: 1 !important;\r\n}\r\n.wdform-ch-rad-label {\r\n display: inline;\r\n margin: -4px 5px 5px 5px;\r\n float: left;\r\n color: #000;\r\n cursor: pointer\r\n}\r\ntextarea {\r\n padding-top: 5px;\r\n}\r\n.wdform-date {\r\n display:inline-block;\r\n width: 105px\r\n}\r\n.wdform_footer {\r\n margin-top: 15px;\r\n}\r\n.page-numbers {\r\n vertical-align: middle;\r\n}\r\n.time_box {\r\n text-align: right;\r\n width: 30px;\r\n vertical-align: middle\r\n}\r\n.mini_label {\r\n font-size: 10px;\r\n font-family: "Lucida Grande", Tahoma, Arial, Verdana, sans-serif;\r\n color: #8A8A8A;\r\n}\r\n.wdform-label {\r\n border: none;\r\n color: #000;\r\n vertical-align: top;\r\n line-height: 17px;\r\n}\r\n.wdform_colon {\r\n color: #000\r\n}\r\n.wdform_separator {\r\n font-style: bold;\r\n vertical-align: middle;\r\n color: #000;\r\n}\r\n.wdform_line {\r\n color: #000\r\n}\r\n.wdform-required {\r\n border: none;\r\n color: red;\r\n vertical-align: top;\r\n}\r\n.captcha_img {\r\n border-width: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n cursor: pointer;\r\n border-radius: 0px;\r\n}\r\n.captcha_refresh {\r\n width: 30px;\r\n height: 30px;\r\n border-width: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n vertical-align: middle;\r\n cursor: pointer;\r\n background-image: url([SITE_ROOT]/images/refresh_black.png);\r\n}\r\n.captcha_input {\r\n height: 20px;\r\n border-width: 1px;\r\n margin: 0px;\r\n padding: 0px;\r\n vertical-align: middle;\r\n}\r\n.file_upload {\r\n border: 0px solid white;\r\n border-radius: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n color: black;\r\n background-color: white;\r\n}\r\n.page_deactive {\r\ncolor: #6C005E;\r\nbackground-color: #FFF;\r\ncursor: pointer;\r\ndisplay: inline-block;\r\nheight: 29px;\r\ntext-align: center;\r\nvertical-align: bottom;\r\npadding: 5px 25px 0px 25px;\r\nfont-size: 16px;\r\nfont-weight:bold;\r\n}\r\n.page_active {\r\ncolor: #FFF;\r\ncursor: pointer;\r\nbackground-color: #6C005E;\r\ndisplay: inline-block;\r\nvertical-align: bottom;\r\nheight: 29px;\r\ntext-align: center;\r\nfont-size: 20px;\r\npadding: 5px 25px 0px 25px;\r\nline-height: 26px;\r\nfont-weight:bold;\r\n}\r\n.page_percentage_active {\r\npadding: 0px;\r\nmargin: 0px;\r\nborder-spacing: 0px;\r\nheight: 16px;\r\nline-height: 16px;\r\nfont-size: 15px;\r\nfloat: left;\r\ntext-align: right !important;\r\nz-index: 1;\r\nposition: relative;\r\nvertical-align: middle;\r\nbackground: #6C005E;\r\ncolor: #fff;\r\nborder-top-left-radius: 5px;\r\nborder-bottom-left-radius: 5px;\r\n}\r\n.page_percentage_deactive {\r\nheight: 16px;\r\nline-height: 16px;\r\nbackground-color: #F1F1F1;\r\ntext-align: left !important;\r\nmargin-bottom: 1px;\r\nborder-radius: 5px;\r\n}\r\n.page_numbers {\r\n font-size: 14px;\r\n color: #000;\r\n}\r\n.phone_area_code {\r\n width: 50px;\r\n}\r\n.phone_number {\r\n width: 100px;\r\n}\r\nbutton {\r\n cursor: pointer;\r\n}\r\n.other_input {\r\n border-radius: 0px;\r\n border-width: 1px;\r\n height: 16px;\r\n font-size: 12px;\r\n padding: 1px;\r\n margin: 1px;\r\n margin-left: 25px;\r\n z-index: 100;\r\n position: absolute;\r\n}\r\n.wdform_page_navigation {\r\n text-align: right !important;\r\n}\r\n\r\n.wdform_percentage_text {\r\nmargin: 3px 5px 3px 9px;\r\ncolor: #FFF;\r\nfont-size: 12px;\r\n}\r\n.wdform_percentage_title {\r\n color: #6E6E6E;\r\n font-style: italic;\r\n margin: 0px 0px 0px 40px;\r\n display: inline-block;\r\n line-height: 27px;\r\n height: 27px;\r\n vertical-align: middle;\r\n}\r\n.wdform_button button {\r\n background: #4D792C;\r\n cursor: pointer;\r\n font-size: 17px;\r\n border-radius: 0px;\r\n min-width: 80px;\r\n min-height: 31px;\r\n color: #fff;\r\n border: 2px solid #68943B;\r\n margin: 5px;\r\n box-shadow: 0px 0px 2px #c9c9c9;\r\n font-family: Segoe UI;\r\n}\', 0)');
86
- $wpdb->query('INSERT INTO `' . $wpdb->prefix . 'contactformmaker_themes` (`id`, `title`, `css`, `default`) VALUES(3, \'Theme 01 black\', \'.wdform-page-and-images .other_input\r\n{\r\nmax-width: none;\r\n}\r\nbutton,\r\ninput,\r\nselect,\r\ntextarea\r\n{\r\nfont-size:14px;\r\n}\r\n.warning,\r\n.error\r\n{\r\nbackground-color: #F0EFEF;\r\nborder: 1px solid #000000;\r\nborder-radius: 5px;\r\ncolor: #000000;\r\npadding: 5px;\r\n}\r\n.warning *,\r\n.error *\r\n{\r\nmargin:0;\r\n}\r\n.recaptcha_input_area input\r\n{\r\nheight:initial !important;\r\n}\r\ninput[type="radio"]\r\n{\r\nborder:none !important;\r\noutline:none !important;\r\n}\r\ninput[type="checkbox"]\r\n{\r\nborder:none !important;\r\noutline:none !important;\r\n}\r\na.ui-spinner-button\r\n{\r\nborder-radius:0px !important;\r\nbackground: none!important;\r\n}\r\n\r\na.ui-slider-handle {\r\nwidth: 13px;\r\nheight: 13px;\r\ntop: -4px;\r\nborder: 0px;\r\nborder-radius: 13px;\r\nbackground: #FAFAFA;\r\nborder: 3px solid #B1B1B1;\r\noutline: none;\r\n}\r\n\r\n.ui-slider {\r\n height: 6px;\r\n background: #F5F5F5 !important;\r\n margin: 7px 0px;\r\n}\r\n.wdform_grading input {\r\n width: 100px;\r\n}\r\n.wdform-matrix-cell input[type="text"] {\r\n width: 100px;\r\n}\r\n.wdform-matrix-cell select {\r\n width: 60px;\r\n}\r\n.wdform_section .wdform_column:last-child {\r\n padding-right: 0px !important;\r\n}\r\n.wdform_preload {\r\n display: none;\r\n}\r\n.wdform_grading {\r\n padding: 3px 0px;\r\n}\r\n.wdform-matrix-table {\r\n display: table;\r\n border-spacing: 0px;\r\n}\r\n.wdform-matrix-column {\r\n text-align: left;\r\n display: table-cell;\r\n}\r\n.wdform-matrix-cell {\r\n text-align: center;\r\n display: table-cell;\r\n padding: 6px 10px;\r\n}\r\n.wdform-matrix-head>div {\r\n display: table-cell;\r\n text-align: center;\r\n}\r\n.wdform-matrix-head {\r\n display: table-row;\r\n}\r\n.wdform-matrix-row0 {\r\n background: #DFDFDF;\r\n display: table-row;\r\n}\r\n.wdform-matrix-row1 {\r\n background: #E9E9E9;\r\n display: table-row;\r\n}\r\n.selected-text {\r\n text-align: left;\r\n color: #000;\r\n}\r\n.wdform-quantity {\r\n width: 30px;\r\n margin: 2px 0px;\r\n}\r\n.wdform_scale_rating label {\r\n vertical-align: middle;\r\n}\r\n.ui-corner-all {\r\n border-radius: 0px;\r\n}\r\n.ui-widget-content {\r\n border: 0px;\r\n background: transparent;\r\n}\r\n\r\n\r\n.ui-slider-range {\r\n background: #8A8A8A !important;\r\n}\r\n.wdform_map {\r\n border: 6px solid #fff;\r\n}\r\n.wdform-page-and-images {\r\n width: 100%;\r\n border: 0px solid #000 !important;\r\npadding-left:10px;\r\n}\r\n.paypal-property {\r\n display: inline-block;\r\n margin-right: 15px;\r\n vertical-align: middle;\r\n}\r\n.sel-wrap {\r\n display: inline-block;\r\n vertical-align: middle;\r\n width:100%;\r\n}\r\n\r\n.sel-imul {\r\n display: none;\r\n}\r\n.sel-imul .sel-selected {\r\n cursor: pointer;\r\n position: relative;\r\n display: inline-block;\r\n border-radius: 0px;\r\n padding: 0px 0px 0px 2px;\r\n font-size: 13px;\r\n height: 22px;\r\n line-height: 22px;\r\n overflow: hidden;\r\n background: #F8F8F8;\r\n border: 0px solid #D3D3D3;\r\n background-position: right 2px center;\r\n width: 100%;\r\n}\r\n.sel-imul.act .sel-selected {\r\n background: #fff;\r\n}\r\n.sel-selected .sel-arraw {\r\n height: 23px;\r\n width: 30px;\r\n background: url([SITE_ROOT]/images/09/01.png) 50% 50% no-repeat;\r\n position: absolute;\r\n top: 0px;\r\n right: 0px;\r\n padding: 0px;\r\n}\r\n.sel-imul .sel-options {\r\n background: #fff;\r\n border: 1px solid #dbdbdb;\r\n border-top: none;\r\n position: absolute;\r\n width: inherit;\r\n display: none;\r\n z-index: 10;\r\n max-height: 200px;\r\n overflow-y: auto;\r\n overflow-x: hidden;\r\n}\r\n.sel-options .sel-option {\r\n padding: 3px 4px;\r\n font-size: 13px;\r\n border: 1px solid #fff;\r\n border-right: none;\r\n border-left: none;\r\n text-align: left;\r\n}\r\n.sel-options .sel-option:hover {\r\n border-color: #dbdbdb;\r\n cursor: pointer;\r\n}\r\n.sel-options .sel-option.sel-ed {\r\n background: #dbdbdb;\r\n border-color: #dbdbdb;\r\n}\r\ninput[type=text]{\r\n margin: 0px;\r\n}\r\ninput[type=password]{\r\n margin: 0px;\r\n}\r\ninput[type=url]{\r\n margin: 0px;\r\n}\r\ninput[type=email]{\r\n margin: 0px;\r\n}\r\ninput.text{\r\n margin: 0px;\r\n}\r\ninput.title{\r\n margin: 0px;\r\n}\r\ntextarea{\r\n margin: 0px;\r\n}\r\nselect {\r\n margin: 0px;\r\n}\r\n.form-error {\r\n border-color: red !important;\r\n}\r\n.form-error:focus {\r\n border-color: red !important;\r\n}\r\n.wdform-field {\r\n display: table-cell;\r\n padding: 5px 0px;\r\n}\r\n.wdform-label-section{\r\n text-align: left;\r\n display: table-cell;\r\n}\r\n.wdform-element-section {\r\n text-align: left;\r\n display: table-cell;\r\n min-width: 140px;\r\n}\r\n.file-upload input {\r\n position: absolute;\r\n visibility: hidden;\r\n}\r\n.file-upload-status {\r\n margin-left: 10px;\r\n max-width: 200px;\r\n font-weight: bold;\r\n font-size: 16px;\r\n color: #888;\r\n position: absolute;\r\n border-radius: 0px;\r\n height: 23px;\r\n padding-left: 5px;\r\n padding-right: 5px;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n }\r\n.file-picker {\r\n width: 41px;\r\n height: 32px;\r\n background: url([SITE_ROOT]/images/10/02/upload.png) no-repeat;\r\n display: inline-block;\r\n}\r\n.next-page div.wdform-page-button {\r\ncolor: #FFF;\r\ncursor: pointer;\r\ndisplay: inline-block;\r\nheight: 38px;\r\nline-height: 35px;\r\nbackground:url([SITE_ROOT]/images/10/next.png) no-repeat right #000;\r\npadding: 0px 36px 0 20px;\r\nvertical-align: middle;\r\nfont-size: 18px;\r\nborder-top-right-radius: 7px;\r\nborder-bottom-right-radius: 7px;\r\n}\r\n.previous-page div.wdform-page-button {\r\ncolor: #A2A2A2;\r\ncursor: pointer;\r\ndisplay: inline-block;\r\nheight: 37px;\r\nline-height: 35px;\r\nbackground:url([SITE_ROOT]/images/09/previous.png) no-repeat left #F1F1F1;\r\npadding: 0 20px 0 36px;\r\nvertical-align: middle;\r\nfont-size: 18px;\r\nborder-top-left-radius: 7px;\r\nborder-bottom-left-radius: 7px;\r\n}\r\n.button-submit {\r\n color: #ffffff;\r\n cursor: pointer;\r\n display: inline-block;\r\n line-height: 35px;\r\n background: #000;\r\n padding: 0px 20px;\r\n vertical-align: middle;\r\n font-size: 18px;\r\n min-width: 80px;\r\n min-height: 35px;\r\n font-family: Segoe UI;\r\n border: 1px solid transparent;\r\n margin: 5px;\r\n}\r\n.button-reset {\r\n color: #787878;\r\n cursor: pointer;\r\n display: inline-block;\r\n line-height: 35px;\r\n background: #F0EFEF;\r\n padding: 0px 20px;\r\n vertical-align: middle;\r\n font-size: 18px;\r\n min-width: 80px;\r\n min-height: 35px;\r\n font-family: Segoe UI;\r\n float: right;\r\n border: 1px solid transparent;\r\n margin: 5px;\r\n}\r\n.wdform_page {\r\n background: #FFFFFF;\r\n border-radius: 0px;\r\n font-family: Segoe UI;\r\n}\r\n.wdform_column {\r\n padding-right: 50px !important;\r\n float: left;\r\n border-spacing: 2px;\r\n border-collapse: separate !important;\r\n}\r\n.wdform_section_break2 {\r\n color: #000;\r\n display: inline-block;\r\n text-align: left;\r\n font-size: 23px;\r\nmargin: 16px 10px 40px 0px;\r\n}\r\n\r\n.wdform_section_break {\r\n color: #000;\r\n font-size: 23px;\r\nmargin: 16px 0px;\r\n}\r\n\r\n.wdform_section {\r\n display: inline-block;\r\n}\r\nselect {\r\n padding: 2px;\r\n height: 26px;\r\n border: 1px solid #B7B7B7;\r\nbackground: #F8F8F8;\r\n}\r\ninput[type="text"]{\r\n border-radius: 0px;\r\n height: 22px;\r\n padding:0 3px !important;\r\n background: #F8F8F8;\r\nborder:1px solid #B7B7B7;\r\n}\r\ninput[type="password"]{\r\n border-radius: 0px;\r\n height: 22px;\r\n padding:0 3px !important;\r\n background: #F8F8F8;\r\nborder:1px solid #B7B7B7;\r\n}\r\ntextarea {\r\n border-radius: 0px;\r\n height: 22px;\r\n padding:0 3px !important;\r\n background: #F8F8F8;\r\nborder:1px solid #B7B7B7;\r\n}\r\ninput[type="text"]:focus{\r\n outline: none;\r\n}\r\ninput[type="password"]:focus{\r\n outline: none;\r\n}\r\ntextarea:focus{\r\n outline: none;\r\n}\r\nselect {\r\n outline: none;\r\n}\r\n.input_deactive {\r\n color: #999999;\r\n font-style: italic;\r\n}\r\n.input_active {\r\n color: #000000;\r\n font-style: normal;\r\n}\r\n.am_pm_select {\r\n width: 30px;\r\n vertical-align: middle;\r\n}\r\n\r\n\r\n.wdform-calendar-button,\r\n.wdform-calendar-button:hover {\r\n display:inline-block;\r\n background: transparent url([SITE_ROOT]/images/03/date.png) no-repeat !important;\r\n border: 0px;\r\n color: transparent;\r\n width: 22px;\r\n height: 22px;\r\n position: relative;\r\n left: -22px;\r\n vertical-align: top;\r\n outline: none;\r\n}\r\n\r\n\r\n.forlabs {\r\n float: right;\r\n margin-right: 20px;\r\n}\r\n\r\n.if-ie-div-label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)" !important;\r\n filter: alpha(opacity=100) !important;\r\n opacity: 1 !important;\r\n}\r\n.wdform-ch-rad-label {\r\n display: inline;\r\n margin: -4px 5px 5px 5px;\r\n float: left;\r\n color: #000;\r\n cursor: pointer\r\n}\r\ntextarea {\r\n padding-top: 5px;\r\n}\r\n.wdform-date {\r\n display:inline-block;\r\n width: 105px\r\n}\r\n.wdform_footer {\r\n margin-top: 15px;\r\n}\r\n.page-numbers {\r\n vertical-align: middle;\r\n}\r\n.time_box {\r\n text-align: right;\r\n width: 30px;\r\n vertical-align: middle\r\n}\r\n.mini_label {\r\n font-size: 10px;\r\n font-family: "Lucida Grande", Tahoma, Arial, Verdana, sans-serif;\r\n color: #8A8A8A;\r\n}\r\n.wdform-label {\r\n border: none;\r\n color: #000;\r\n vertical-align: top;\r\n line-height: 17px;\r\n}\r\n.wdform_colon {\r\n color: #000\r\n}\r\n.wdform_separator {\r\n font-style: bold;\r\n vertical-align: middle;\r\n color: #000;\r\n}\r\n.wdform_line {\r\n color: #000\r\n}\r\n.wdform-required {\r\n border: none;\r\n color: red;\r\n vertical-align: top;\r\n}\r\n.captcha_img {\r\n border-width: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n cursor: pointer;\r\n border-radius: 0px;\r\n}\r\n.captcha_refresh {\r\n width: 30px;\r\n height: 30px;\r\n border-width: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n vertical-align: middle;\r\n cursor: pointer;\r\n background-image: url([SITE_ROOT]/images/refresh_black.png);\r\n}\r\n.captcha_input {\r\n height: 20px;\r\n border-width: 1px;\r\n margin: 0px;\r\n padding: 0px;\r\n vertical-align: middle;\r\n}\r\n.file_upload {\r\n border: 0px solid white;\r\n border-radius: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n color: black;\r\n background-color: white;\r\n}\r\n.page_deactive {\r\ncolor: #000;\r\nbackground-color: #FFF;\r\ncursor: pointer;\r\ndisplay: inline-block;\r\nheight: 29px;\r\ntext-align: center;\r\nvertical-align: bottom;\r\npadding: 5px 25px 0px 25px;\r\nfont-size: 16px;\r\nfont-weight:bold;\r\n}\r\n.page_active {\r\ncolor: #FFF;\r\ncursor: pointer;\r\nbackground-color: #000;\r\ndisplay: inline-block;\r\nvertical-align: bottom;\r\nheight: 29px;\r\ntext-align: center;\r\nfont-size: 20px;\r\npadding: 5px 25px 0px 25px;\r\nline-height: 26px;\r\nfont-weight:bold;\r\n}\r\n.page_percentage_active {\r\npadding: 0px;\r\nmargin: 0px;\r\nborder-spacing: 0px;\r\nheight: 16px;\r\nline-height: 16px;\r\nfont-size: 15px;\r\nfloat: left;\r\ntext-align: right !important;\r\nz-index: 1;\r\nposition: relative;\r\nvertical-align: middle;\r\nbackground: #000;\r\ncolor: #fff;\r\nborder-top-left-radius: 5px;\r\nborder-bottom-left-radius: 5px;\r\n}\r\n.page_percentage_deactive {\r\nheight: 16px;\r\nline-height: 16px;\r\nbackground-color: #F1F1F1;\r\ntext-align: left !important;\r\nmargin-bottom: 1px;\r\nborder-radius: 5px;\r\n}\r\n.page_numbers {\r\n font-size: 14px;\r\n color: #000;\r\n}\r\n.phone_area_code {\r\n width: 50px;\r\n}\r\n.phone_number {\r\n width: 100px;\r\n}\r\nbutton {\r\n cursor: pointer;\r\n}\r\n.other_input {\r\n border-radius: 0px;\r\n border-width: 1px;\r\n height: 16px;\r\n font-size: 12px;\r\n padding: 1px;\r\n margin: 1px;\r\n margin-left: 25px;\r\n z-index: 100;\r\n position: absolute;\r\n}\r\n.wdform_page_navigation {\r\n text-align: right !important;\r\n}\r\n\r\n.wdform_percentage_text {\r\nmargin: 3px 5px 3px 9px;\r\ncolor: #FFF;\r\nfont-size: 12px;\r\n}\r\n.wdform_percentage_title {\r\n color: #6E6E6E;\r\n font-style: italic;\r\n margin: 0px 0px 0px 40px;\r\n display: inline-block;\r\n line-height: 27px;\r\n height: 27px;\r\n vertical-align: middle;\r\n}\r\n.wdform_button button {\r\n background: #4D792C;\r\n cursor: pointer;\r\n font-size: 17px;\r\n border-radius: 0px;\r\n min-width: 80px;\r\n min-height: 31px;\r\n color: #fff;\r\n border: 2px solid #68943B;\r\n margin: 5px;\r\n box-shadow: 0px 0px 2px #c9c9c9;\r\n font-family: Segoe UI;\r\n}\', 1)');
87
- $wpdb->query('INSERT INTO `' . $wpdb->prefix . 'contactformmaker_themes` (`id`, `title`, `css`, `default`) VALUES(4, \'Theme 01 transparent (black button)\', \'.wdform-page-and-images .other_input\r\n{\r\nmax-width: none;\r\n}\r\nbutton,\r\ninput,\r\nselect,\r\ntextarea\r\n{\r\nfont-size:14px;\r\n}\r\n.warning,\r\n.error\r\n{\r\nbackground-color: #F0EFEF;\r\nborder: 1px solid #000000;\r\nborder-radius: 5px;\r\ncolor: #000000;\r\npadding: 5px;\r\n}\r\n.warning *,\r\n.error *\r\n{\r\nmargin:0;\r\n}\r\n.recaptcha_input_area input\r\n{\r\nheight:initial !important;\r\n}\r\ninput[type="radio"]\r\n{\r\nborder:none !important;\r\noutline:none !important;\r\n}\r\ninput[type="checkbox"]\r\n{\r\nborder:none !important;\r\noutline:none !important;\r\n}\r\na.ui-spinner-button\r\n{\r\nborder-radius:0px !important;\r\nbackground: none!important;\r\n}\r\n\r\na.ui-slider-handle {\r\nwidth: 13px;\r\nheight: 13px;\r\ntop: -4px;\r\nborder: 0px;\r\nborder-radius: 13px;\r\nbackground: #FAFAFA;\r\nborder: 3px solid #B1B1B1;\r\noutline: none;\r\n}\r\n\r\n.ui-slider {\r\n height: 6px;\r\n background: #F5F5F5 !important;\r\n margin: 7px 0px;\r\n}\r\n.wdform_grading input {\r\n width: 100px;\r\n}\r\n.wdform-matrix-cell input[type="text"] {\r\n width: 100px;\r\n}\r\n.wdform-matrix-cell select {\r\n width: 60px;\r\n}\r\n.wdform_section .wdform_column:last-child {\r\n padding-right: 0px !important;\r\n}\r\n.wdform_preload {\r\n display: none;\r\n}\r\n.wdform_grading {\r\n padding: 3px 0px;\r\n}\r\n.wdform-matrix-table {\r\n display: table;\r\n border-spacing: 0px;\r\n}\r\n.wdform-matrix-column {\r\n text-align: left;\r\n display: table-cell;\r\n}\r\n.wdform-matrix-cell {\r\n text-align: center;\r\n display: table-cell;\r\n padding: 6px 10px;\r\n}\r\n.wdform-matrix-head>div {\r\n display: table-cell;\r\n text-align: center;\r\n}\r\n.wdform-matrix-head {\r\n display: table-row;\r\n}\r\n.wdform-matrix-row0 {\r\n background: #DFDFDF;\r\n display: table-row;\r\n}\r\n.wdform-matrix-row1 {\r\n background: #E9E9E9;\r\n display: table-row;\r\n}\r\n.selected-text {\r\n text-align: left;\r\n color: #000;\r\n}\r\n.wdform-quantity {\r\n width: 30px;\r\n margin: 2px 0px;\r\n}\r\n.wdform_scale_rating label {\r\n vertical-align: middle;\r\n}\r\n.ui-corner-all {\r\n border-radius: 0px;\r\n}\r\n.ui-widget-content {\r\n border: 0px;\r\n background: transparent;\r\n}\r\n\r\n\r\n.ui-slider-range {\r\n background: #8A8A8A !important;\r\n}\r\n.wdform_map {\r\n border: 6px solid #fff;\r\n}\r\n.wdform-page-and-images {\r\n width: 100%;\r\n border: 0px solid #000 !important;\r\npadding-left:10px;\r\n}\r\n.paypal-property {\r\n display: inline-block;\r\n margin-right: 15px;\r\n vertical-align: middle;\r\n}\r\n.sel-wrap {\r\n display: inline-block;\r\n vertical-align: middle;\r\n width:100%;\r\n}\r\n\r\n.sel-imul {\r\n display: none;\r\n}\r\n.sel-imul .sel-selected {\r\n cursor: pointer;\r\n position: relative;\r\n display: inline-block;\r\n border-radius: 0px;\r\n padding: 0px 0px 0px 2px;\r\n font-size: 13px;\r\n height: 22px;\r\n line-height: 22px;\r\n overflow: hidden;\r\n background: #F8F8F8;\r\n border: 0px solid #D3D3D3;\r\n background-position: right 2px center;\r\n width: 100%;\r\n}\r\n.sel-imul.act .sel-selected {\r\n background: #fff;\r\n}\r\n.sel-selected .sel-arraw {\r\n height: 23px;\r\n width: 30px;\r\n background: url([SITE_ROOT]/images/09/01.png) 50% 50% no-repeat;\r\n position: absolute;\r\n top: 0px;\r\n right: 0px;\r\n padding: 0px;\r\n}\r\n.sel-imul .sel-options {\r\n background: #fff;\r\n border: 1px solid #dbdbdb;\r\n border-top: none;\r\n position: absolute;\r\n width: inherit;\r\n display: none;\r\n z-index: 10;\r\n max-height: 200px;\r\n overflow-y: auto;\r\n overflow-x: hidden;\r\n}\r\n.sel-options .sel-option {\r\n padding: 3px 4px;\r\n font-size: 13px;\r\n border: 1px solid #fff;\r\n border-right: none;\r\n border-left: none;\r\n text-align: left;\r\n}\r\n.sel-options .sel-option:hover {\r\n border-color: #dbdbdb;\r\n cursor: pointer;\r\n}\r\n.sel-options .sel-option.sel-ed {\r\n background: #dbdbdb;\r\n border-color: #dbdbdb;\r\n}\r\ninput[type=text]{\r\n margin: 0px;\r\n}\r\ninput[type=password]{\r\n margin: 0px;\r\n}\r\ninput[type=url]{\r\n margin: 0px;\r\n}\r\ninput[type=email]{\r\n margin: 0px;\r\n}\r\ninput.text{\r\n margin: 0px;\r\n}\r\ninput.title{\r\n margin: 0px;\r\n}\r\ntextarea{\r\n margin: 0px;\r\n}\r\nselect {\r\n margin: 0px;\r\n}\r\n.form-error {\r\n border-color: red !important;\r\n}\r\n.form-error:focus {\r\n border-color: red !important;\r\n}\r\n.wdform-field {\r\n display: table-cell;\r\n padding: 5px 0px;\r\n}\r\n.wdform-label-section{\r\n text-align: left;\r\n display: table-cell;\r\n}\r\n.wdform-element-section {\r\n text-align: left;\r\n display: table-cell;\r\n min-width: 140px;\r\n}\r\n.file-upload input {\r\n position: absolute;\r\n visibility: hidden;\r\n}\r\n.file-upload-status {\r\n margin-left: 10px;\r\n max-width: 200px;\r\n font-weight: bold;\r\n font-size: 16px;\r\n color: #888;\r\n position: absolute;\r\n border-radius: 0px;\r\n height: 23px;\r\n padding-left: 5px;\r\n padding-right: 5px;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n }\r\n.file-picker {\r\n width: 41px;\r\n height: 32px;\r\n background: url([SITE_ROOT]/images/10/02/upload.png) no-repeat;\r\n display: inline-block;\r\n}\r\n.next-page div.wdform-page-button {\r\ncolor: #FFF;\r\ncursor: pointer;\r\ndisplay: inline-block;\r\nheight: 38px;\r\nline-height: 35px;\r\nbackground:url([SITE_ROOT]/images/10/next.png) no-repeat right #000;\r\npadding: 0px 36px 0 20px;\r\nvertical-align: middle;\r\nfont-size: 18px;\r\nborder-top-right-radius: 7px;\r\nborder-bottom-right-radius: 7px;\r\n}\r\n.previous-page div.wdform-page-button {\r\ncolor: #A2A2A2;\r\ncursor: pointer;\r\ndisplay: inline-block;\r\nheight: 37px;\r\nline-height: 35px;\r\nbackground:url([SITE_ROOT]/images/09/previous.png) no-repeat left #F1F1F1;\r\npadding: 0 20px 0 36px;\r\nvertical-align: middle;\r\nfont-size: 18px;\r\nborder-top-left-radius: 7px;\r\nborder-bottom-left-radius: 7px;\r\n}\r\n.button-submit {\r\n color: #ffffff;\r\n cursor: pointer;\r\n display: inline-block;\r\n line-height: 35px;\r\n background: #000;\r\n padding: 0px 20px;\r\n vertical-align: middle;\r\n font-size: 18px;\r\n min-width: 80px;\r\n min-height: 35px;\r\n font-family: Segoe UI;\r\n border: 1px solid transparent;\r\n margin: 5px;\r\n}\r\n.button-reset {\r\n color: #787878;\r\n cursor: pointer;\r\n display: inline-block;\r\n line-height: 35px;\r\n background: #F0EFEF;\r\n padding: 0px 20px;\r\n vertical-align: middle;\r\n font-size: 18px;\r\n min-width: 80px;\r\n min-height: 35px;\r\n font-family: Segoe UI;\r\n float: right;\r\n border: 1px solid transparent;\r\n margin: 5px;\r\n}\r\n.wdform_page {\r\n background: transparent;\r\n border-radius: 0px;\r\n font-family: Segoe UI;\r\n}\r\n.wdform_column {\r\n padding-right: 50px !important;\r\n float: left;\r\n border-spacing: 2px;\r\n border-collapse: separate !important;\r\n}\r\n.wdform_section_break2 {\r\n color: #000;\r\n display: inline-block;\r\n text-align: left;\r\n font-size: 23px;\r\nmargin: 16px 10px 40px 0px;\r\n}\r\n\r\n.wdform_section_break {\r\n color: #000;\r\n font-size: 23px;\r\nmargin: 16px 0px;\r\n}\r\n\r\n.wdform_section {\r\n display: inline-block;\r\n}\r\nselect {\r\n padding: 2px;\r\n height: 26px;\r\n border: 1px solid #B7B7B7;\r\nbackground: #F8F8F8;\r\n}\r\ninput[type="text"]{\r\n border-radius: 0px;\r\n height: 22px;\r\n padding:0 3px !important;\r\n background: #F8F8F8;\r\nborder:1px solid #B7B7B7;\r\n}\r\ninput[type="password"]{\r\n border-radius: 0px;\r\n height: 22px;\r\n padding:0 3px !important;\r\n background: #F8F8F8;\r\nborder:1px solid #B7B7B7;\r\n}\r\ntextarea {\r\n border-radius: 0px;\r\n height: 22px;\r\n padding:0 3px !important;\r\n background: #F8F8F8;\r\nborder:1px solid #B7B7B7;\r\n}\r\ninput[type="text"]:focus{\r\n outline: none;\r\n}\r\ninput[type="password"]:focus{\r\n outline: none;\r\n}\r\ntextarea:focus{\r\n outline: none;\r\n}\r\nselect {\r\n outline: none;\r\n}\r\n.input_deactive {\r\n color: #999999;\r\n font-style: italic;\r\n}\r\n.input_active {\r\n color: #000000;\r\n font-style: normal;\r\n}\r\n.am_pm_select {\r\n width: 30px;\r\n vertical-align: middle;\r\n}\r\n\r\n\r\n.wdform-calendar-button,\r\n.wdform-calendar-button:hover {\r\n display:inline-block;\r\n background: transparent url([SITE_ROOT]/images/03/date.png) no-repeat !important;\r\n border: 0px;\r\n color: transparent;\r\n width: 22px;\r\n height: 22px;\r\n position: relative;\r\n left: -22px;\r\n vertical-align: top;\r\n outline: none;\r\n}\r\n\r\n\r\n.forlabs {\r\n float: right;\r\n margin-right: 20px;\r\n}\r\n\r\n.if-ie-div-label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)" !important;\r\n filter: alpha(opacity=100) !important;\r\n opacity: 1 !important;\r\n}\r\n.wdform-ch-rad-label {\r\n display: inline;\r\n margin: -4px 5px 5px 5px;\r\n float: left;\r\n color: #000;\r\n cursor: pointer\r\n}\r\ntextarea {\r\n padding-top: 5px;\r\n}\r\n.wdform-date {\r\n display:inline-block;\r\n width: 105px\r\n}\r\n.wdform_footer {\r\n margin-top: 15px;\r\n}\r\n.page-numbers {\r\n vertical-align: middle;\r\n}\r\n.time_box {\r\n text-align: right;\r\n width: 30px;\r\n vertical-align: middle\r\n}\r\n.mini_label {\r\n font-size: 10px;\r\n font-family: "Lucida Grande", Tahoma, Arial, Verdana, sans-serif;\r\n color: #8A8A8A;\r\n}\r\n.wdform-label {\r\n border: none;\r\n color: #000;\r\n vertical-align: top;\r\n line-height: 17px;\r\n}\r\n.wdform_colon {\r\n color: #000\r\n}\r\n.wdform_separator {\r\n font-style: bold;\r\n vertical-align: middle;\r\n color: #000;\r\n}\r\n.wdform_line {\r\n color: #000\r\n}\r\n.wdform-required {\r\n border: none;\r\n color: red;\r\n vertical-align: top;\r\n}\r\n.captcha_img {\r\n border-width: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n cursor: pointer;\r\n border-radius: 0px;\r\n}\r\n.captcha_refresh {\r\n width: 30px;\r\n height: 30px;\r\n border-width: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n vertical-align: middle;\r\n cursor: pointer;\r\n background-image: url([SITE_ROOT]/images/refresh_black.png);\r\n}\r\n.captcha_input {\r\n height: 20px;\r\n border-width: 1px;\r\n margin: 0px;\r\n padding: 0px;\r\n vertical-align: middle;\r\n}\r\n.file_upload {\r\n border: 0px solid white;\r\n border-radius: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n color: black;\r\n background-color: white;\r\n}\r\n.page_deactive {\r\ncolor: #000;\r\nbackground-color: #FFF;\r\ncursor: pointer;\r\ndisplay: inline-block;\r\nheight: 29px;\r\ntext-align: center;\r\nvertical-align: bottom;\r\npadding: 5px 25px 0px 25px;\r\nfont-size: 16px;\r\nfont-weight:bold;\r\n}\r\n.page_active {\r\ncolor: #FFF;\r\ncursor: pointer;\r\nbackground-color: #000;\r\ndisplay: inline-block;\r\nvertical-align: bottom;\r\nheight: 29px;\r\ntext-align: center;\r\nfont-size: 20px;\r\npadding: 5px 25px 0px 25px;\r\nline-height: 26px;\r\nfont-weight:bold;\r\n}\r\n.page_percentage_active {\r\npadding: 0px;\r\nmargin: 0px;\r\nborder-spacing: 0px;\r\nheight: 16px;\r\nline-height: 16px;\r\nfont-size: 15px;\r\nfloat: left;\r\ntext-align: right !important;\r\nz-index: 1;\r\nposition: relative;\r\nvertical-align: middle;\r\nbackground: #000;\r\ncolor: #fff;\r\nborder-top-left-radius: 5px;\r\nborder-bottom-left-radius: 5px;\r\n}\r\n.page_percentage_deactive {\r\nheight: 16px;\r\nline-height: 16px;\r\nbackground-color: #F1F1F1;\r\ntext-align: left !important;\r\nmargin-bottom: 1px;\r\nborder-radius: 5px;\r\n}\r\n.page_numbers {\r\n font-size: 14px;\r\n color: #000;\r\n}\r\n.phone_area_code {\r\n width: 50px;\r\n}\r\n.phone_number {\r\n width: 100px;\r\n}\r\nbutton {\r\n cursor: pointer;\r\n}\r\n.other_input {\r\n border-radius: 0px;\r\n border-width: 1px;\r\n height: 16px;\r\n font-size: 12px;\r\n padding: 1px;\r\n margin: 1px;\r\n margin-left: 25px;\r\n z-index: 100;\r\n position: absolute;\r\n}\r\n.wdform_page_navigation {\r\n text-align: right !important;\r\n}\r\n\r\n.wdform_percentage_text {\r\nmargin: 3px 5px 3px 9px;\r\ncolor: #FFF;\r\nfont-size: 12px;\r\n}\r\n.wdform_percentage_title {\r\n color: #6E6E6E;\r\n font-style: italic;\r\n margin: 0px 0px 0px 40px;\r\n display: inline-block;\r\n line-height: 27px;\r\n height: 27px;\r\n vertical-align: middle;\r\n}\r\n.wdform_button button {\r\n background: #4D792C;\r\n cursor: pointer;\r\n font-size: 17px;\r\n border-radius: 0px;\r\n min-width: 80px;\r\n min-height: 31px;\r\n color: #fff;\r\n border: 2px solid #68943B;\r\n margin: 5px;\r\n box-shadow: 0px 0px 2px #c9c9c9;\r\n font-family: Segoe UI;\r\n}\', 0)');
88
- $wpdb->query('INSERT INTO `' . $wpdb->prefix . 'contactformmaker_themes` (`id`, `title`, `css`, `default`) VALUES(5, \'Theme 02 blue\', \'.wdform-page-and-images .other_input\r\n{\r\nmax-width: none;\r\n}\r\nbutton,\r\ninput,\r\nselect,\r\ntextarea\r\n{\r\nfont-size:14px;\r\n}\r\n.warning,\r\n.error\r\n{\r\nbackground-color: #F0EFEF;\r\nborder: 1px solid #ADC0DB;\r\nmargin-bottom: 10px;\r\ncolor: #ADC0DB;\r\npadding: 5px;\r\n}\r\n.warning *,\r\n.error *\r\n{\r\nmargin:0;\r\n}\r\n.recaptcha_input_area input\r\n{\r\nheight:initial !important;\r\n}\r\n.wdform_grading input {\r\n width: 100px;\r\n}\r\n.ui-slider {\r\n height: 6px;\r\n background: #fff !important;\r\n margin: 7px 0px;\r\n}\r\na.ui-slider-handle {\r\n border-radius: 10px;\r\n border: 2px solid #fff;\r\n background: #A4A4A4;\r\n}\r\n.ui-slider-range {\r\n background: #A4A4A4 !important;\r\n}\r\n.ui-slider-horizontal .ui-slider-handle {\r\n top: -8px !important;\r\n}\r\na.ui-slider-handle {\r\n border-radius: 10px;\r\n border: 2px solid #fff;\r\n background: #A4A4A4;\r\n}\r\n.wdform-matrix-cell input[type="text"] {\r\n width: 100px;\r\n}\r\n.wdform-matrix-cell select {\r\n width: 60px;\r\n}\r\n.wdform_section .wdform_column:last-child {\r\n padding-right: 0px !important;\r\n}\r\n.wdform_preload {\r\n display: none;\r\n content: url([SITE_ROOT]/images/02/bg.png);\r\n}\r\n.wdform_grading {\r\n padding: 3px 0px;\r\n}\r\n.wdform-matrix-table {\r\n display: table;\r\n border-spacing: 0px;\r\n}\r\n.wdform-matrix-column {\r\n text-align: left;\r\n display: table-cell;\r\n}\r\n.wdform-matrix-cell {\r\n text-align: center;\r\n display: table-cell;\r\n padding: 6px 10px;\r\n}\r\n.wdform-matrix-head>div {\r\n display: table-cell;\r\n text-align: center;\r\n}\r\n.wdform-matrix-head {\r\n display: table-row;\r\n}\r\n.wdform-matrix-row0 {\r\n background: #DFDFDF;\r\n display: table-row;\r\n}\r\n.wdform-matrix-row1 {\r\n background: #E9E9E9;\r\n display: table-row;\r\n}\r\n.selected-text {\r\n text-align: left;\r\n}\r\n.wdform-quantity {\r\n width: 30px;\r\n margin: 2px 0px;\r\n}\r\n.wdform_scale_rating label {\r\n vertical-align: middle;\r\n}\r\n.ui-corner-all {\r\n border-radius: 3px;\r\n}\r\n.ui-widget-content {\r\n border: 0px;\r\n background: transparent;\r\n}\r\na.ui-spinner-button:hover{\r\n background: #285485!important;\r\n color: #fff;\r\n outline: none;\r\n}\r\na.ui-spinner-button:active{\r\n background: #285485!important;\r\n color: #fff;\r\n outline: none;\r\n}\r\na.ui-spinner-button:focus{\r\n background: #285485!important;\r\n color: #fff;\r\n outline: none;\r\n}\r\na.ui-slider-handle:hover{\r\n background: #285485!important;\r\n color: #fff;\r\n outline: none;\r\n}\r\na.ui-slider-handle:active{\r\n background: #285485!important;\r\n color: #fff;\r\n outline: none;\r\n}\r\na.ui-slider-handle:focus{\r\n background: #285485!important;\r\n color: #fff;\r\n outline: none;\r\n}\r\nui-state-hover {\r\n background: #285485!important;\r\n color: #fff;\r\n outline: none;\r\n}\r\nui-slider {\r\n background: #fff !important;\r\n}\r\n.ui-state-default{\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-widget-content .ui-state-default{\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-widget-header .ui-state-default {\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-slider-range {\r\n background: #ccc !important;\r\n}\r\n.wdform_map {\r\n border: 6px solid #DCDCDC;\r\n}\r\n.wdform-page-and-images {\r\n width: 100%;\r\n border: 0px !important;\r\n}\r\n.paypal-property {\r\n display: inline-block;\r\n margin-right: 15px;\r\n vertical-align: middle;\r\n}\r\n.sel-wrap {\r\n display: inline-block;\r\n vertical-align: middle;\r\n width:100%;\r\n}\r\n.sel-wrap select {\r\n position: absolute;\r\n z-index:-1;\r\n width: 0px !important;\r\n}\r\n.sel-imul {\r\n display: inline-block;\r\n}\r\n.sel-imul .sel-selected {\r\n cursor: pointer;\r\n position: relative;\r\n display: inline-block;\r\n border-radius: 4px;\r\n padding: 2px 0px 2px 2px;\r\n font-size: 13px;\r\n height: 22px;\r\n line-height: 22px;\r\n overflow: hidden;\r\n background: #fff;\r\n border: 0px solid #ccc;\r\n background-position: right 2px center;\r\n width: 100%;\r\n}\r\n.sel-imul.act .sel-selected {\r\n background: #fff;\r\n}\r\n.sel-selected .sel-arraw {\r\n height: 22px;\r\n width: 29px;\r\n background: url([SITE_ROOT]/images/02/01.png) 50% 50% no-repeat;\r\n position: absolute;\r\n top: 0px;\r\n right: 0px;\r\n padding: 2px;\r\n}\r\n.sel-imul .sel-options {\r\n background: #fff;\r\n border: 1px solid #dbdbdb;\r\n border-top: none;\r\n position: absolute;\r\n width: inherit;\r\n display: none;\r\n z-index: 10;\r\n max-height: 200px;\r\n overflow-y: auto;\r\n overflow-x: hidden;\r\n}\r\n.sel-options .sel-option {\r\n padding: 3px 4px;\r\n font-size: 13px;\r\n border: 1px solid #fff;\r\n border-right: none;\r\n border-left: none;\r\n text-align: left;\r\n}\r\n.sel-options .sel-option:hover {\r\n border-color: #dbdbdb;\r\n cursor: pointer;\r\n}\r\n.sel-options .sel-option.sel-ed {\r\n background: #dbdbdb;\r\n border-color: #dbdbdb;\r\n}\r\ninput[type=text]{\r\n margin: 0px;\r\n}\r\ninput[type=password]{\r\n margin: 0px;\r\n}\r\ninput[type=url]{\r\n margin: 0px;\r\n}\r\ninput[type=email]{\r\n margin: 0px;\r\n}\r\ninput.text{\r\n margin: 0px;\r\n}\r\ninput.title{\r\n margin: 0px;\r\n}\r\ntextarea{\r\n margin: 0px;\r\n}\r\nselect {\r\n margin: 0px;\r\n}\r\n.form-error {\r\n border-color: red !important;\r\n}\r\n.form-error:focus {\r\n border-color: red !important;\r\n}\r\n\r\n.wdform-field {\r\n display: table-cell;\r\n padding: 5px 0px;\r\n}\r\n.wdform-label-section{\r\n text-align: left;\r\n display: table-cell;\r\n}\r\n.wdform-element-section {\r\n text-align: left;\r\n display: table-cell;\r\n min-width: 140px;\r\n}\r\n.file-upload input {\r\n position: absolute;\r\n visibility: hidden;\r\n}\r\n.file-upload-status {\r\n margin-left: 10px;\r\n max-width: 200px;\r\n font-weight: bold;\r\n font-size: 16px;\r\n color: #888;\r\n background: #fff;\r\n position: absolute;\r\n border-radius: 4px;\r\n height: 24px;\r\n border: 1px solid #ccc;\r\n padding-left: 5px;\r\n padding-right: 5px;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n direction: rtl;\r\n padding-top: 3px;\r\n margin-top: 2px;\r\n}\r\n.file-picker {\r\n width: 41px;\r\n height: 32px;\r\n background: url([SITE_ROOT]/images/02/01/upload.png);\r\n display: inline-block;\r\n}\r\n.next-page div.wdform-page-button {\r\n color: #285485;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 36px;\r\n line-height: 33px;\r\n background: url([SITE_ROOT]/images/02/01/next.png) top right #708EB4;\r\n padding: 0px 30px 0 15px;\r\n vertical-align: middle;\r\n font-weight: 600;\r\n font-size: 16px;\r\n}\r\n .next-page div.wdform-page-button:hover {\r\n background: url([SITE_ROOT]/images/02/01/next.png) top right #144077;\r\n}\r\n.previous-page div.wdform-page-button {\r\n color: #285485;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 36px;\r\n line-height: 36px;\r\n background: url([SITE_ROOT]/images/02/01/previous.png) top left #708EB4;\r\n padding: 0px 15px 0 30px;\r\n vertical-align: middle;\r\n font-weight: 600;\r\n font-size: 16px;\r\n}\r\n .previous-page div.wdform-page-button:hover {\r\n background: url([SITE_ROOT]/images/02/01/previous.png) top left #144077;\r\n}\r\n.button-submit {\r\n background: url([SITE_ROOT]/images/02/bg.png) #708EB4;\r\n cursor: pointer;\r\n font-size: 16px;\r\n border-radius: 0px;\r\n min-width: 80px;\r\n min-height: 34px;\r\n color: #285485;\r\n margin: 5px;\r\n border: 0px;\r\n font-family: Segoe UI;\r\n font-weight: 600;\r\n}\r\n.button-reset {\r\n background: transparent;\r\n cursor: pointer;\r\n font-size: 17px;\r\n min-width: 80px;\r\n min-height: 34px;\r\n color: #787878;\r\n border: 0px;\r\n margin: 5px;\r\n font-family: Segoe UI;\r\n text-decoration: underline;\r\n}\r\n.wdform_page {\r\n background: #ADC0DB;\r\n padding: 15px 15px 15px 50px;\r\n border-radius: 0px;\r\n font-family: Segoe UI;\r\n}\r\n.wdform_column {\r\n padding-right: 30px !important;\r\n float: left;\r\n border-spacing: 2px;\r\n border-collapse: separate !important;\r\n}\r\n.wdform_column>div {\r\n border-bottom: 1px solid #C5C5C5;\r\n}\r\n.wdform_column>.wdform_row:last-child {\r\n border-bottom: 0px solid #E7E7E7;\r\n}\r\n.wdform-field-section-break {\r\n text-align: center;\r\n}\r\n.wdform_section_break2 {\r\n margin: 16px 10px 16px 0px;\r\n display: inline-block;\r\n background: url([SITE_ROOT]/images/02/bg.png) #708EB4;\r\n text-align: left;\r\n padding: 10px;\r\n border-radius: 0px;\r\n -moz-box-shadow: 7px -9px 20px -5px rgba(0, 0, 0, 0.23), -7px 9px 20px -5px rgba(0, 0, 0, 0.23);\r\n -webkit-box-shadow: 7px -9px 20px -5px rgba(0, 0, 0, 0.23), -7px 9px 20px -5px rgba(0, 0, 0, 0.23);\r\n box-shadow: 7px -9px 20px -5px rgba(0, 0, 0, 0.23), -7px 9px 20px -5px rgba(0, 0, 0, 0.23);\r\n width: 466px;\r\n text-align: center;\r\nfont-size:18px;\r\nfont-family: Segoe UI;\r\ncolor:#0E3F76;\r\n}\r\n\r\n.wdform_section_break\r\n{\r\nmargin: 16px 10px 16px 0px;\r\ntext-align: left;\r\nfont-size: 18px;\r\nfont-family: Segoe UI;\r\ncolor:#0E3F76;\r\n}\r\n.wdform_section {\r\n display: table-row\r\n}\r\nselect {\r\n border-radius: 4px;\r\n height: 26px;\r\n overflow: hidden;\r\n border: 0px solid #ccc;\r\n padding: 2px;\r\n outline: none;\r\n}\r\ninput[type="text"] {\r\n border-radius: 4px;\r\n height: 25px;\r\n border: 0px solid #ccc;\r\n padding:0 3px !important;\r\n}\r\ninput[type="password"] {\r\n border-radius: 4px;\r\n height: 25px;\r\n border: 0px solid #ccc;\r\n padding:0 3px !important;\r\n}\r\ntextarea {\r\n border-radius: 4px;\r\n height: 25px;\r\n border: 0px solid #ccc;\r\n padding:0 3px !important;\r\n}\r\ninput[type="text"]:focus{\r\n border-color: #FFB471;\r\n outline: none;\r\n}\r\ninput[type="password"]:focus{\r\n border-color: #FFB471;\r\n outline: none;\r\n}\r\ntextarea:focus{\r\n border-color: #FFB471;\r\n outline: none;\r\n}\r\n\r\n.input_deactive {\r\n color: #999999;\r\n font-style: italic;\r\n}\r\n.input_active {\r\n color: #000000;\r\n font-style: normal;\r\n}\r\n.am_pm_select {\r\n width: 30px;\r\n vertical-align: middle;\r\n}\r\n.checkbox-div input[type=checkbox] {\r\n position : absolute;\r\n z-index: -1;\r\n}\r\n.checkbox-div {\r\n width: 13px;\r\n height: 12px;\r\n background: transparent;\r\n border: 1px solid #A7A7A7;\r\n border-radius: 0px;\r\n position: relative;\r\n display: inline-block;\r\n}\r\n.checkbox-div label {\r\n cursor: pointer;\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\r\n filter: alpha(opacity=0);\r\n opacity: 0;\r\n content: "";\r\n position: absolute;\r\n width: 16px;\r\n height: 13px;\r\n background: url([SITE_ROOT]/images/02/checkbox.png);\r\n border-radius: 0px;\r\n top: -3px;\r\n left: 1px;\r\n}\r\n.checkbox-div label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.checkbox-div .wdform-ch-rad-label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.wdform-ch-rad-label:hover + .checkbox-div label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.checkbox-div input[type=checkbox]:checked + label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";\r\n filter: alpha(opacity=100);\r\n opacity: 1;\r\n}\r\n.wdform-calendar-button,\r\n.wdform-calendar-button:hover {\r\n display:inline-block;\r\n background: transparent url([SITE_ROOT]/images/02/01/date.png) no-repeat left 50% !important;\r\n border: 0px;\r\n color: transparent;\r\n width: 22px;\r\n height: 24px;\r\n position: relative;\r\n left: -22px;\r\n vertical-align: top;\r\n} \r\n.wdform-calendar-button:focus {\r\n outline:none; \r\n}\r\n.radio-div input[type=radio] {\r\n position : absolute;\r\n z-index: -1;\r\n}\r\n.forlabs {\r\n float: right;\r\n margin-right: 20px;\r\n}\r\n.radio-div {\r\n width: 13px;\r\n height: 12px;\r\n background: transparent;\r\n border: 1px solid #A7A7A7;\r\n border-radius: 0px;\r\n position: relative;\r\n display: inline-block;\r\n top: 2px;\r\n}\r\n.radio-div label {\r\n cursor: pointer;\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\r\n filter: alpha(opacity=0);\r\n opacity: 0;\r\n content: "";\r\n position: absolute;\r\n width: 11px;\r\n height: 10px;\r\n background: #A7A7A7;\r\n border-radius: 0px;\r\n top: 1px;\r\n left: 1px;\r\n}\r\n.radio-div label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.radio-div .wdform-ch-rad-label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.wdform-ch-rad-label:hover + .radio-div label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.radio-div input[type=radio]:checked + label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";\r\n filter: alpha(opacity=100);\r\n opacity: 1;\r\n}\r\n.if-ie-div-label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)" !important;\r\n filter: alpha(opacity=100) !important;\r\n opacity: 1 !important;\r\n}\r\n.wdform-ch-rad-label {\r\n display: inline;\r\n margin: -4px 5px 5px 5px;\r\n float: left;\r\n color: #000;\r\n cursor: pointer\r\n}\r\ntextarea {\r\n padding-top: 5px;\r\n}\r\n.wdform-date {\r\n display:inline-block;\r\n width: 105px\r\n}\r\n.wdform_footer {\r\n padding-top: 5px;\r\n margin-top: 15px;\r\n}\r\n.page-numbers {\r\n vertical-align: middle;\r\n}\r\n.time_box {\r\n text-align: right;\r\n width: 30px;\r\n vertical-align: middle\r\n}\r\n.mini_label {\r\n font-size: 10px;\r\n font-family: "Lucida Grande", Tahoma, Arial, Verdana, sans-serif;\r\n color: #000;\r\n}\r\n.wdform-label {\r\n border: none;\r\n color: #000;\r\n vertical-align: top;\r\n line-height: 17px;\r\n}\r\n.wdform_colon {\r\n color: #000\r\n}\r\n.wdform_separator {\r\n font-style: bold;\r\n vertical-align: middle;\r\n color: #000;\r\n}\r\n.wdform_line {\r\n color: #000\r\n}\r\n.wdform-required {\r\n border: none;\r\n color: rgb(158, 0, 0);\r\n vertical-align: top;\r\n}\r\n.captcha_img {\r\n border-width: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n cursor: pointer;\r\n border-radius: 4px;\r\n}\r\n.captcha_refresh {\r\n width: 30px;\r\n height: 30px;\r\n border-width: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n vertical-align: middle;\r\n cursor: pointer;\r\n background-image: url([SITE_ROOT]/images/refresh_black.png);\r\n}\r\n.captcha_input {\r\n height: 20px;\r\n border-width: 1px;\r\n margin: 0px;\r\n padding: 0px;\r\n vertical-align: middle;\r\n}\r\n.file_upload {\r\n border: 0px solid white;\r\n border-radius: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n color: black;\r\n background-color: white;\r\n}\r\n.page_deactive {\r\n font-size: 12px;\r\n color: #2564A3;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 20px;\r\n text-align: center;\r\n vertical-align: bottom;\r\n padding-top: 5px;\r\n padding: 5px 30px 0px 30px;\r\n font-weight: bold;\r\n}\r\n.page_deactive:nth-child(even) {\r\n background-color: #DCDADB;\r\n}\r\n.page_deactive:nth-child(odd) {\r\n background-color: #D1CDCE;\r\n}\r\n.page_active {\r\n color: #fff;\r\n cursor: pointer;\r\n background-color: #0E3F77;\r\n display: inline-block;\r\n vertical-align: bottom;\r\n height: 25px;\r\n text-align: center;\r\n font-size: 18px;\r\n padding: 5px 30px 0px 30px;\r\n}\r\n.page_percentage_active {\r\n padding: 0px;\r\n margin: 0px;\r\n border-spacing: 0px;\r\n height: 17px;\r\n line-height: 17px;\r\n font-size: 15px;\r\n float: left;\r\n text-align: right !important;\r\n z-index: 1;\r\n position: relative;\r\n background: #0e3f77; /* Old browsers */\r\n background: -moz-linear-gradient(left, #0e3f77 0%, #0f437d 49%, #2f72b5 84%, #165ba9 99%); /* FF3.6+ */\r\n background: -webkit-gradient(linear, left top, right top, color-stop(0%, #0e3f77), color-stop(49%, #0f437d), color-stop(84%, #2f72b5), color-stop(99%, #165ba9)); /* Chrome,Safari4+ */\r\n background: -webkit-linear-gradient(left, #0e3f77 0%, #0f437d 49%, #2f72b5 84%, #165ba9 99%); /* Chrome10+,Safari5.1+ */\r\n background: -o-linear-gradient(left, #0e3f77 0%, #0f437d 49%, #2f72b5 84%, #165ba9 99%); /* Opera 11.10+ */\r\n background: -ms-linear-gradient(left, #0e3f77 0%, #0f437d 49%, #2f72b5 84%, #165ba9 99%); /* IE10+ */\r\n background: linear-gradient(to right, #0e3f77 0%, #0f437d 49%, #2f72b5 84%, #165ba9 99%); /* W3C */\r\n vertical-align: middle;\r\n}\r\n.page_percentage_deactive {\r\n height: 17px;\r\n line-height: 17px;\r\n background-color: #CCCCCC;\r\n text-align: left !important;\r\n margin-bottom: 1px;\r\n}\r\n.page_numbers {\r\n font-size: 14px;\r\n color: #000;\r\n}\r\n.phone_area_code {\r\n width: 50px;\r\n}\r\n.phone_number {\r\n width: 100px;\r\n}\r\nbutton {\r\n cursor: pointer;\r\n}\r\n.other_input {\r\n border-radius: 0px;\r\n border-width: 1px;\r\n height: 16px;\r\n font-size: 12px;\r\n padding: 1px;\r\n margin: 1px;\r\n margin-left: 25px;\r\n z-index: 100;\r\n position: absolute;\r\n}\r\n.wdform_page_navigation {\r\n text-align: right !important;\r\n margin-bottom: -2px;\r\n}\r\n.wdform_percentage_text {\r\n margin: 3px 5px 3px 9px;\r\n color: #FFFFFF;\r\n font-weight: bold;\r\nfont-size: 13px;\r\n}\r\n.wdform_percentage_title {\r\n color: #000000;\r\n font-style: italic;\r\n margin: 0px 0px 0px 40px;\r\n display: inline-block;\r\n line-height: 17px;\r\n height: 17px;\r\n vertical-align: middle;\r\n}\r\n.wdform_button button {\r\n background: #0E4D92;\r\n cursor: pointer;\r\n font-size: 17px;\r\n border-radius: 4px;\r\n min-width: 80px;\r\n min-height: 27px;\r\n color: #fff;\r\n border: 2px solid #0E3F77;\r\n margin: 5px;\r\n box-shadow: 0px 0px 2px #c9c9c9;\r\n font-family: Segoe UI;\r\n}\r\n.wdform_button button:active {\r\n border: 2px solid #0B2D52;\r\n background: #0E3F77;\r\n}\', 0)');
89
- $wpdb->query('INSERT INTO `' . $wpdb->prefix . 'contactformmaker_themes` (`id`, `title`, `css`, `default`) VALUES(6, \'Theme 02 yellow\', \'.wdform-page-and-images .other_input\r\n{\r\nmax-width: none;\r\n}\r\nbutton,\r\ninput,\r\nselect,\r\ntextarea\r\n{\r\nfont-size:14px;\r\n}\r\n.warning,\r\n.error\r\n{\r\nbackground-color: #EADEB4;\r\nborder: 1px solid #E3E2E4;\r\nmargin-bottom: 10px;\r\ncolor: #E3E2E4;\r\npadding: 5px;\r\n}\r\n.warning *,\r\n.error *\r\n{\r\nmargin:0;\r\n}\r\n.recaptcha_input_area input\r\n{\r\nheight:initial !important;\r\n}\r\n.wdform_grading input {\r\n width: 100px;\r\n}\r\n.ui-slider {\r\n height: 6px;\r\n background: #fff !important;\r\n margin: 7px 0px;\r\n}\r\na.ui-slider-handle {\r\n border-radius: 10px;\r\n border: 2px solid #fff;\r\n background: #A4A4A4;\r\n}\r\n.ui-slider-range {\r\n background: #A4A4A4 !important;\r\n}\r\n.ui-slider-horizontal .ui-slider-handle {\r\n top: -8px !important;\r\n}\r\na.ui-slider-handle {\r\n border-radius: 10px;\r\n border: 2px solid #fff;\r\n background: #A4A4A4;\r\n}\r\n.wdform-matrix-cell input[type="text"] {\r\n width: 100px;\r\n}\r\n.wdform-matrix-cell select {\r\n width: 60px;\r\n}\r\n.wdform_section .wdform_column:last-child {\r\n padding-right: 0px !important;\r\n}\r\n.wdform_preload {\r\n display: none;\r\n content: url([SITE_ROOT]/images/02/bg.png);\r\n}\r\n.wdform_grading {\r\n padding: 3px 0px;\r\n}\r\n.wdform-matrix-table {\r\n display: table;\r\n border-spacing: 0px;\r\n}\r\n.wdform-matrix-column {\r\n text-align: left;\r\n display: table-cell;\r\n}\r\n.wdform-matrix-cell {\r\n text-align: center;\r\n display: table-cell;\r\n padding: 6px 10px;\r\n}\r\n.wdform-matrix-head>div {\r\n display: table-cell;\r\n text-align: center;\r\n}\r\n.wdform-matrix-head {\r\n display: table-row;\r\n}\r\n.wdform-matrix-row0 {\r\n background: #DFDFDF;\r\n display: table-row;\r\n}\r\n.wdform-matrix-row1 {\r\n background: #E9E9E9;\r\n display: table-row;\r\n}\r\n.selected-text {\r\n text-align: left;\r\n}\r\n.wdform-quantity {\r\n width: 30px;\r\n margin: 2px 0px;\r\n}\r\n.wdform_scale_rating label {\r\n vertical-align: middle;\r\n}\r\n.ui-corner-all {\r\n border-radius: 3px;\r\n}\r\n.ui-widget-content {\r\n border: 0px;\r\n background: transparent;\r\n}\r\na.ui-spinner-button:hover{\r\n background: #ECBD00 !important;\r\n color: #fff;\r\n outline: none;\r\n}\r\na.ui-spinner-button:active{\r\n background: #ECBD00 !important;\r\n color: #fff;\r\n outline: none;\r\n}\r\na.ui-spinner-button:focus{\r\n background: #ECBD00 !important;\r\n color: #fff;\r\n outline: none;\r\n}\r\na.ui-slider-handle:hover{\r\n background: #ECBD00 !important;\r\n color: #fff;\r\n outline: none;\r\n}\r\na.ui-slider-handle:active{\r\n background: #ECBD00 !important;\r\n color: #fff;\r\n outline: none;\r\n}\r\na.ui-slider-handle:focus{\r\n background: #ECBD00 !important;\r\n color: #fff;\r\n outline: none;\r\n}\r\nui-state-hover {\r\n background: #ECBD00 !important;\r\n color: #fff;\r\n outline: none;\r\n}\r\nui-slider {\r\n background: #fff !important;\r\n}\r\n.ui-state-default{\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-widget-content .ui-state-default{\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-widget-header .ui-state-default {\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-slider-range {\r\n background: #ccc !important;\r\n}\r\n.wdform_map {\r\n border: 6px solid #DCDCDC;\r\n}\r\n.wdform-page-and-images {\r\n width: 100%;\r\n border: 0px !important;\r\n}\r\n.paypal-property {\r\n display: inline-block;\r\n margin-right: 15px;\r\n vertical-align: middle;\r\n}\r\n.sel-wrap {\r\n display: inline-block;\r\n vertical-align: middle;\r\n width:100%;\r\n}\r\n.sel-wrap select {\r\n position: absolute;\r\n z-index:-1;\r\n width: 0px !important;\r\n}\r\n.sel-imul {\r\n display: inline-block;\r\n}\r\n.sel-imul .sel-selected {\r\n cursor: pointer;\r\n position: relative;\r\n display: inline-block;\r\n border-radius: 4px;\r\n padding: 2px 0px 2px 2px;\r\n font-size: 13px;\r\n height: 22px;\r\n line-height: 22px;\r\n overflow: hidden;\r\n background: #fff;\r\n border: 0px solid #ccc;\r\n background-position: right 2px center;\r\n width: 100%;\r\n}\r\n.sel-imul.act .sel-selected {\r\n background: #fff;\r\n}\r\n.sel-selected .sel-arraw {\r\n height: 22px;\r\n width: 29px;\r\n background: url([SITE_ROOT]/images/02/01.png) 50% 50% no-repeat;\r\n position: absolute;\r\n top: 0px;\r\n right: 0px;\r\n padding: 2px;\r\n}\r\n.sel-imul .sel-options {\r\n background: #fff;\r\n border: 1px solid #dbdbdb;\r\n border-top: none;\r\n position: absolute;\r\n width: inherit;\r\n display: none;\r\n z-index: 10;\r\n max-height: 200px;\r\n overflow-y: auto;\r\n overflow-x: hidden;\r\n}\r\n.sel-options .sel-option {\r\n padding: 3px 4px;\r\n font-size: 13px;\r\n border: 1px solid #fff;\r\n border-right: none;\r\n border-left: none;\r\n text-align: left;\r\n}\r\n.sel-options .sel-option:hover {\r\n border-color: #dbdbdb;\r\n cursor: pointer;\r\n}\r\n.sel-options .sel-option.sel-ed {\r\n background: #dbdbdb;\r\n border-color: #dbdbdb;\r\n}\r\ninput[type=text]{\r\n margin: 0px;\r\n}\r\ninput[type=password]{\r\n margin: 0px;\r\n}\r\ninput[type=url]{\r\n margin: 0px;\r\n}\r\ninput[type=email]{\r\n margin: 0px;\r\n}\r\ninput.text{\r\n margin: 0px;\r\n}\r\ninput.title{\r\n margin: 0px;\r\n}\r\ntextarea{\r\n margin: 0px;\r\n}\r\nselect {\r\n margin: 0px;\r\n}\r\n.form-error {\r\n border-color: red !important;\r\n}\r\n.form-error:focus {\r\n border-color: red !important;\r\n}\r\n\r\n.wdform-field {\r\n display: table-cell;\r\n padding: 5px 0px;\r\n}\r\n.wdform-label-section{\r\n text-align: left;\r\n display: table-cell;\r\n}\r\n.wdform-element-section {\r\n text-align: left;\r\n display: table-cell;\r\n min-width: 140px;\r\n}\r\n.file-upload input {\r\n position: absolute;\r\n visibility: hidden;\r\n}\r\n.file-upload-status {\r\n margin-left: 10px;\r\n max-width: 200px;\r\n font-weight: bold;\r\n font-size: 16px;\r\n color: #888;\r\n background: #fff;\r\n position: absolute;\r\n border-radius: 4px;\r\n height: 24px;\r\n border: 1px solid #ccc;\r\n padding-left: 5px;\r\n padding-right: 5px;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n direction: rtl;\r\n padding-top: 3px;\r\n margin-top: 2px;\r\n}\r\n.file-picker {\r\n width: 41px;\r\n height: 32px;\r\n background: url([SITE_ROOT]/images/02/02/upload.png);\r\n display: inline-block;\r\n}\r\n.next-page div.wdform-page-button {\r\n color: #4D4A3C;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 36px;\r\n line-height: 33px;\r\n background: url([SITE_ROOT]/images/02/next.png) top right #CFAB1A;\r\n padding: 0px 30px 0 15px;\r\n vertical-align: middle;\r\n font-weight: 600;\r\n font-size: 16px;\r\n}\r\n.next-page div.wdform-page-button:hover {\r\n background: url([SITE_ROOT]/images/02/next.png) top right #A08104;\r\n}\r\n.previous-page div.wdform-page-button {\r\n color: #4D4A3C;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 36px;\r\n line-height: 36px;\r\n background: url([SITE_ROOT]/images/02/previous.png) top left #CFAB1A;\r\n padding: 0px 15px 0 30px;\r\n vertical-align: middle;\r\n font-weight: 600;\r\n font-size: 16px;\r\n}\r\n.previous-page div.wdform-page-button:hover {\r\n background: url([SITE_ROOT]/images/02/previous.png) top left #A08104;\r\n}\r\n.button-submit {\r\n background: url([SITE_ROOT]/images/02/bg.png) #CFAB1A;\r\n cursor: pointer;\r\n font-size: 16px;\r\n border-radius: 0px;\r\n min-width: 80px;\r\n min-height: 34px;\r\n color: #4D4A3C;\r\n margin: 5px;\r\n border: 0px;\r\n font-family: Segoe UI;\r\n font-weight: 600;\r\n}\r\n.button-reset {\r\n background: transparent;\r\n cursor: pointer;\r\n font-size: 17px;\r\n min-width: 80px;\r\n min-height: 34px;\r\n color: #787878;\r\n border: 0px;\r\n margin: 5px;\r\n font-family: Segoe UI;\r\n text-decoration: underline;\r\n}\r\n.wdform_page {\r\n background: #E2DED7;\r\n padding: 15px 15px 15px 50px;\r\n border-radius: 0px;\r\n font-family: Segoe UI;\r\n}\r\n.wdform_column {\r\n padding-right: 30px !important;\r\n float: left;\r\n border-spacing: 2px;\r\n border-collapse: separate !important;\r\n}\r\n.wdform_column>div {\r\n border-bottom: 1px solid #CFCFCF;\r\n}\r\n.wdform_column>.wdform_row:last-child {\r\n border-bottom: 0px solid #E7E7E7;\r\n}\r\n.wdform-field-section-break {\r\n text-align: center;\r\n}\r\n.wdform_section_break2 {\r\n margin: 16px 10px 16px 0px;\r\n display: inline-block;\r\n background: url([SITE_ROOT]/images/02/bg.png) #CFAB1A;\r\n text-align: left;\r\n padding: 10px;\r\n border-radius: 0px;\r\n -moz-box-shadow: 7px -9px 20px -5px rgba(0, 0, 0, 0.23), -7px 9px 20px -5px rgba(0, 0, 0, 0.23);\r\n -webkit-box-shadow: 7px -9px 20px -5px rgba(0, 0, 0, 0.23), -7px 9px 20px -5px rgba(0, 0, 0, 0.23);\r\n box-shadow: 7px -9px 20px -5px rgba(0, 0, 0, 0.23), -7px 9px 20px -5px rgba(0, 0, 0, 0.23);\r\n width: 466px;\r\n text-align: center;\r\nfont-size: 18px;\r\nfont-family: Segoe UI;\r\ncolor: #292929;\r\nfont-weight: 600;\r\n}\r\n\r\n.wdform_section_break\r\n{\r\nmargin: 16px 10px 16px 0px;\r\ntext-align: left;\r\nfont-size: 18px;\r\nfont-family: Segoe UI;\r\ncolor: #292929;\r\n}\r\n.wdform_section {\r\n display: table-row\r\n}\r\nselect {\r\n border-radius: 4px;\r\n height: 26px;\r\n overflow: hidden;\r\n border: 0px solid #ccc;\r\n padding: 2px;\r\n outline: none;\r\n}\r\ninput[type="text"] {\r\n border-radius: 4px;\r\n height: 25px;\r\n border: 0px solid #ccc;\r\n padding:0 3px !important;\r\n}\r\ninput[type="password"] {\r\n border-radius: 4px;\r\n height: 25px;\r\n border: 0px solid #ccc;\r\n padding:0 3px !important;\r\n}\r\ntextarea {\r\n border-radius: 4px;\r\n height: 25px;\r\n border: 0px solid #ccc;\r\n padding:0 3px !important;\r\n}\r\ninput[type="text"]:focus{\r\n border-color: #FFB471;\r\n outline: none;\r\n}\r\ninput[type="password"]:focus{\r\n border-color: #FFB471;\r\n outline: none;\r\n}\r\ntextarea:focus{\r\n border-color: #FFB471;\r\n outline: none;\r\n}\r\n\r\n.input_deactive {\r\n color: #999999;\r\n font-style: italic;\r\n}\r\n.input_active {\r\n color: #000000;\r\n font-style: normal;\r\n}\r\n.am_pm_select {\r\n width: 30px;\r\n vertical-align: middle;\r\n}\r\n.checkbox-div input[type=checkbox] {\r\n position : absolute;\r\n z-index: -1;\r\n}\r\n.checkbox-div {\r\n width: 13px;\r\n height: 12px;\r\n background: transparent;\r\n border: 1px solid #A7A7A7;\r\n border-radius: 0px;\r\n position: relative;\r\n display: inline-block;\r\n}\r\n.checkbox-div label {\r\n cursor: pointer;\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\r\n filter: alpha(opacity=0);\r\n opacity: 0;\r\n content: "";\r\n position: absolute;\r\n width: 16px;\r\n height: 13px;\r\n background: url([SITE_ROOT]/images/02/checkbox.png);\r\n border-radius: 0px;\r\n top: -3px;\r\n left: 1px;\r\n}\r\n.checkbox-div label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.checkbox-div .wdform-ch-rad-label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.wdform-ch-rad-label:hover + .checkbox-div label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.checkbox-div input[type=checkbox]:checked + label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";\r\n filter: alpha(opacity=100);\r\n opacity: 1;\r\n}\r\n.wdform-calendar-button,\r\n.wdform-calendar-button:hover {\r\n display:inline-block;\r\n background: transparent url([SITE_ROOT]/images/02/02/date.png) no-repeat left 50% !important;\r\n border: 0px;\r\n color: transparent;\r\n width: 22px;\r\n height: 24px;\r\n position: relative;\r\n left: -22px;\r\n vertical-align: top;\r\n}\r\n.wdform-calendar-button:focus {\r\n outline:none; \r\n}\r\n.radio-div input[type=radio] {\r\n position : absolute;\r\n z-index: -1;\r\n}\r\n.forlabs {\r\n float: right;\r\n margin-right: 20px;\r\n}\r\n.radio-div {\r\n width: 13px;\r\n height: 12px;\r\n background: transparent;\r\n border: 1px solid #A7A7A7;\r\n border-radius: 0px;\r\n position: relative;\r\n display: inline-block;\r\n top: 2px;\r\n}\r\n.radio-div label {\r\n cursor: pointer;\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\r\n filter: alpha(opacity=0);\r\n opacity: 0;\r\n content: "";\r\n position: absolute;\r\n width: 11px;\r\n height: 10px;\r\n background: #A7A7A7;\r\n border-radius: 0px;\r\n top: 1px;\r\n left: 1px;\r\n}\r\n.radio-div label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.radio-div .wdform-ch-rad-label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.wdform-ch-rad-label:hover + .radio-div label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.radio-div input[type=radio]:checked + label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";\r\n filter: alpha(opacity=100);\r\n opacity: 1;\r\n}\r\n.if-ie-div-label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)" !important;\r\n filter: alpha(opacity=100) !important;\r\n opacity: 1 !important;\r\n}\r\n.wdform-ch-rad-label {\r\n display: inline;\r\n margin: -4px 5px 5px 5px;\r\n float: left;\r\n color: #000;\r\n cursor: pointer\r\n}\r\ntextarea {\r\n padding-top: 5px;\r\n}\r\n.wdform-date {\r\n display:inline-block;\r\n width: 105px\r\n}\r\n.wdform_footer {\r\n padding-top: 5px;\r\n margin-top: 15px;\r\n}\r\n.page-numbers {\r\n vertical-align: middle;\r\n}\r\n.time_box {\r\n text-align: right;\r\n width: 30px;\r\n vertical-align: middle\r\n}\r\n.mini_label {\r\n font-size: 10px;\r\n font-family: "Lucida Grande", Tahoma, Arial, Verdana, sans-serif;\r\n color: #000;\r\n}\r\n.wdform-label {\r\n border: none;\r\n color: #000;\r\n vertical-align: top;\r\n line-height: 17px;\r\n}\r\n.wdform_colon {\r\n color: #000\r\n}\r\n.wdform_separator {\r\n font-style: bold;\r\n vertical-align: middle;\r\n color: #000;\r\n}\r\n.wdform_line {\r\n color: #000\r\n}\r\n.wdform-required {\r\n border: none;\r\n color: rgb(158, 0, 0);\r\n vertical-align: top;\r\n}\r\n.captcha_img {\r\n border-width: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n cursor: pointer;\r\n border-radius: 4px;\r\n}\r\n.captcha_refresh {\r\n width: 30px;\r\n height: 30px;\r\n border-width: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n vertical-align: middle;\r\n cursor: pointer;\r\n background-image: url([SITE_ROOT]/images/refresh_black.png);\r\n}\r\n.captcha_input {\r\n height: 20px;\r\n border-width: 1px;\r\n margin: 0px;\r\n padding: 0px;\r\n vertical-align: middle;\r\n}\r\n.file_upload {\r\n border: 0px solid white;\r\n border-radius: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n color: black;\r\n background-color: white;\r\n}\r\n.page_deactive {\r\n font-size: 12px;\r\n color: #3F3927;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 20px;\r\n text-align: center;\r\n vertical-align: bottom;\r\n padding-top: 5px;\r\n padding: 5px 30px 0px 30px;\r\n font-weight: bold;\r\n}\r\n.page_deactive:nth-child(even) {\r\n background-color: #DCDADB;\r\n}\r\n.page_deactive:nth-child(odd) {\r\n background-color: #D1CDCE;\r\n}\r\n.page_active {\r\n color: #3F3927;\r\n cursor: pointer;\r\n background-color: #ECBD00;\r\n display: inline-block;\r\n vertical-align: bottom;\r\n height: 25px;\r\n text-align: center;\r\n font-size: 18px;\r\n padding: 5px 30px 0px 30px;\r\n}\r\n.page_percentage_active {\r\n padding: 0px;\r\n margin: 0px;\r\n border-spacing: 0px;\r\n height: 17px;\r\n line-height: 17px;\r\n font-size: 15px;\r\n float: left;\r\n text-align: right !important;\r\n z-index: 1;\r\n position: relative;\r\n background: #ECBD00 ; /* Old browsers */\r\n background: -moz-linear-gradient(left, #ECBD00 0%, #F5C403 49%, #F8C90B 84%, #FFCC00 99%); /* FF3.6+ */\r\n background: -webkit-gradient(linear, left top, right top, color-stop(0%, #ECBD00 ), color-stop(49%, #F5C403 ), color-stop(84%, #F8C90B ), color-stop(99%, #FFCC00 )); /* Chrome,Safari4+ */\r\n background: -webkit-linear-gradient(left, #ECBD00 0%, #F5C403 49%, #F8C90B 84%, #FFCC00 99%); /* Chrome10+,Safari5.1+ */\r\n background: -o-linear-gradient(left, #ECBD00 0%, #F5C403 49%, #F8C90B 84%, #FFCC00 99%); /* Opera 11.10+ */\r\n background: -ms-linear-gradient(left, #ECBD00 0%, #F5C403 49%, #F8C90B 84%, #FFCC00 99%); /* IE10+ */\r\n background: linear-gradient(to right, #ECBD00 0%, #F5C403 49%, #F8C90B 84%, #FFCC00 99%); /* W3C */\r\n vertical-align: middle;\r\n}\r\n.page_percentage_deactive {\r\n height: 17px;\r\n line-height: 17px;\r\n background-color: #D9D7D8;\r\n text-align: left !important;\r\n margin-bottom: 1px;\r\n}\r\n.page_numbers {\r\n font-size: 14px;\r\n color: #000;\r\n}\r\n.phone_area_code {\r\n width: 50px;\r\n}\r\n.phone_number {\r\n width: 100px;\r\n}\r\nbutton {\r\n cursor: pointer;\r\n}\r\n.other_input {\r\n border-radius: 0px;\r\n border-width: 1px;\r\n height: 16px;\r\n font-size: 12px;\r\n padding: 1px;\r\n margin: 1px;\r\n margin-left: 25px;\r\n z-index: 100;\r\n position: absolute;\r\n}\r\n.wdform_page_navigation {\r\n text-align: right !important;\r\n margin-bottom: -2px;\r\n}\r\n.wdform_percentage_text {\r\n margin: 3px 5px 3px 9px;\r\n color: #292929;\r\n font-weight: bold;\r\nfont-size:13px;\r\n}\r\n.wdform_percentage_title {\r\n color: #000000;\r\n font-style: italic;\r\n margin: 0px 0px 0px 40px;\r\n display: inline-block;\r\n line-height: 17px;\r\n height: 17px;\r\n vertical-align: middle;\r\n}\r\n.wdform_button button {\r\n background: #0E4D92;\r\n cursor: pointer;\r\n font-size: 17px;\r\n border-radius: 4px;\r\n min-width: 80px;\r\n min-height: 27px;\r\n color: #fff;\r\n border: 2px solid #0E3F77;\r\n margin: 5px;\r\n box-shadow: 0px 0px 2px #c9c9c9;\r\n font-family: Segoe UI;\r\n}\r\n.wdform_button button:active {\r\n border: 2px solid #0B2D52;\r\n background: #0E3F77;\r\n}\', 0)');
90
- $wpdb->query('INSERT INTO `' . $wpdb->prefix . 'contactformmaker_themes` (`id`, `title`, `css`, `default`) VALUES(7, \'Theme 02 violet\', \'.wdform-page-and-images .other_input\r\n{\r\nmax-width: none;\r\n}\r\nbutton,\r\ninput,\r\nselect,\r\ntextarea\r\n{\r\nfont-size:14px;\r\n}\r\n.warning,\r\n.error\r\n{\r\nbackground-color: #C9ADEF;\r\nborder: 1px solid #E3E2E4;\r\nmargin-bottom: 10px;\r\ncolor: #E3E2E4;\r\npadding: 5px;\r\n}\r\n.warning *,\r\n.error *\r\n{\r\nmargin:0;\r\n}\r\n.recaptcha_input_area input\r\n{\r\nheight:initial !important;\r\n}\r\n.wdform_grading input {\r\n width: 100px;\r\n}\r\n.ui-slider {\r\n height: 6px;\r\n background: #fff !important;\r\n margin: 7px 0px;\r\n}\r\na.ui-slider-handle {\r\n border-radius: 10px;\r\n border: 2px solid #fff;\r\n background: #A4A4A4;\r\n}\r\n.ui-slider-range {\r\n background: #A4A4A4 !important;\r\n}\r\n.ui-slider-horizontal .ui-slider-handle {\r\n top: -8px !important;\r\n}\r\na.ui-slider-handle {\r\n border-radius: 10px;\r\n border: 2px solid #fff;\r\n background: #A4A4A4;\r\n}\r\n.wdform-matrix-cell input[type="text"] {\r\n width: 100px;\r\n}\r\n.wdform-matrix-cell select {\r\n width: 60px;\r\n}\r\n.wdform_section .wdform_column:last-child {\r\n padding-right: 0px !important;\r\n}\r\n.wdform_preload {\r\n display: none;\r\n content: url([SITE_ROOT]/images/02/bg.png);\r\n}\r\n.wdform_grading {\r\n padding: 3px 0px;\r\n}\r\n.wdform-matrix-table {\r\n display: table;\r\n border-spacing: 0px;\r\n}\r\n.wdform-matrix-column {\r\n text-align: left;\r\n display: table-cell;\r\n}\r\n.wdform-matrix-cell {\r\n text-align: center;\r\n display: table-cell;\r\n padding: 6px 10px;\r\n}\r\n.wdform-matrix-head>div {\r\n display: table-cell;\r\n text-align: center;\r\n}\r\n.wdform-matrix-head {\r\n display: table-row;\r\n}\r\n.wdform-matrix-row0 {\r\n background: #DFDFDF;\r\n display: table-row;\r\n}\r\n.wdform-matrix-row1 {\r\n background: #E9E9E9;\r\n display: table-row;\r\n}\r\n.selected-text {\r\n text-align: left;\r\n}\r\n.wdform-quantity {\r\n width: 30px;\r\n margin: 2px 0px;\r\n}\r\n.wdform_scale_rating label {\r\n vertical-align: middle;\r\n}\r\n.ui-corner-all {\r\n border-radius: 3px;\r\n}\r\n.ui-widget-content {\r\n border: 0px;\r\n background: transparent;\r\n}\r\na.ui-spinner-button:hover{\r\n background: #5C00DA !important;\r\n color: #fff;\r\n outline: none;\r\n}\r\na.ui-spinner-button:active{\r\n background: #5C00DA !important;\r\n color: #fff;\r\n outline: none;\r\n}\r\na.ui-spinner-button:focus{\r\n background: #5C00DA !important;\r\n color: #fff;\r\n outline: none;\r\n}\r\na.ui-slider-handle:hover{\r\n background: #5C00DA !important;\r\n color: #fff;\r\n outline: none;\r\n}\r\na.ui-slider-handle:active{\r\n background: #5C00DA !important;\r\n color: #fff;\r\n outline: none;\r\n}\r\na.ui-slider-handle:focus{\r\n background: #5C00DA !important;\r\n color: #fff;\r\n outline: none;\r\n}\r\nui-state-hover {\r\n background: #5C00DA !important;\r\n color: #fff;\r\n outline: none;\r\n}\r\nui-slider {\r\n background: #fff !important;\r\n}\r\n.ui-state-default{\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-widget-content .ui-state-default{\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-widget-header .ui-state-default {\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-slider-range {\r\n background: #ccc !important;\r\n}\r\n.wdform_map {\r\n border: 6px solid #DCDCDC;\r\n}\r\n.wdform-page-and-images {\r\n width: 100%;\r\n border: 0px !important;\r\n}\r\n.paypal-property {\r\n display: inline-block;\r\n margin-right: 15px;\r\n vertical-align: middle;\r\n}\r\n.sel-wrap {\r\n display: inline-block;\r\n vertical-align: middle;\r\n width:100%;\r\n}\r\n.sel-wrap select {\r\n position: absolute;\r\n z-index:-1;\r\n width: 0px !important;\r\n}\r\n.sel-imul {\r\n display: inline-block;\r\n}\r\n.sel-imul .sel-selected {\r\n cursor: pointer;\r\n position: relative;\r\n display: inline-block;\r\n border-radius: 4px;\r\n padding: 2px 0px 2px 2px;\r\n font-size: 13px;\r\n height: 22px;\r\n line-height: 22px;\r\n overflow: hidden;\r\n background: #fff;\r\n border: 0px solid #ccc;\r\n background-position: right 2px center;\r\n width: 100%;\r\n}\r\n.sel-imul.act .sel-selected {\r\n background: #fff;\r\n}\r\n.sel-selected .sel-arraw {\r\n height: 22px;\r\n width: 29px;\r\n background: url([SITE_ROOT]/images/02/01.png) 50% 50% no-repeat;\r\n position: absolute;\r\n top: 0px;\r\n right: 0px;\r\n padding: 2px;\r\n}\r\n.sel-imul .sel-options {\r\n background: #fff;\r\n border: 1px solid #dbdbdb;\r\n border-top: none;\r\n position: absolute;\r\n width: inherit;\r\n display: none;\r\n z-index: 10;\r\n max-height: 200px;\r\n overflow-y: auto;\r\n overflow-x: hidden;\r\n}\r\n.sel-options .sel-option {\r\n padding: 3px 4px;\r\n font-size: 13px;\r\n border: 1px solid #fff;\r\n border-right: none;\r\n border-left: none;\r\n text-align: left;\r\n}\r\n.sel-options .sel-option:hover {\r\n border-color: #dbdbdb;\r\n cursor: pointer;\r\n}\r\n.sel-options .sel-option.sel-ed {\r\n background: #dbdbdb;\r\n border-color: #dbdbdb;\r\n}\r\ninput[type=text]{\r\n margin: 0px;\r\n}\r\ninput[type=password]{\r\n margin: 0px;\r\n}\r\ninput[type=url]{\r\n margin: 0px;\r\n}\r\ninput[type=email]{\r\n margin: 0px;\r\n}\r\ninput.text{\r\n margin: 0px;\r\n}\r\ninput.title{\r\n margin: 0px;\r\n}\r\ntextarea{\r\n margin: 0px;\r\n}\r\nselect {\r\n margin: 0px;\r\n}\r\n.form-error {\r\n border-color: red !important;\r\n}\r\n.form-error:focus {\r\n border-color: red !important;\r\n}\r\n\r\n.wdform-field {\r\n display: table-cell;\r\n padding: 5px 0px;\r\n}\r\n.wdform-label-section{\r\n text-align: left;\r\n display: table-cell;\r\n}\r\n.wdform-element-section {\r\n text-align: left;\r\n display: table-cell;\r\n min-width: 140px;\r\n}\r\n.file-upload input {\r\n position: absolute;\r\n visibility: hidden;\r\n}\r\n.file-upload-status {\r\n margin-left: 10px;\r\n max-width: 200px;\r\n font-weight: bold;\r\n font-size: 16px;\r\n color: #888;\r\n background: #fff;\r\n position: absolute;\r\n border-radius: 4px;\r\n height: 24px;\r\n border: 1px solid #ccc;\r\n padding-left: 5px;\r\n padding-right: 5px;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n direction: rtl;\r\n padding-top: 3px;\r\n margin-top: 2px;\r\n}\r\n.file-picker {\r\n width: 41px;\r\n height: 32px;\r\n background: url([SITE_ROOT]/images/02/02/upload.png);\r\n display: inline-block;\r\n}\r\n.next-page div.wdform-page-button {\r\n color: #4D4A3C;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 36px;\r\n line-height: 33px;\r\n background: url([SITE_ROOT]/images/02/next.png) top right #5C00DA;\r\n padding: 0px 30px 0 15px;\r\n vertical-align: middle;\r\n font-weight: 600;\r\n font-size: 16px;\r\n}\r\n.next-page div.wdform-page-button:hover {\r\n background: url([SITE_ROOT]/images/02/next.png) top right #3D0886;\r\n}.previous-page div.wdform-page-button {\r\n color: #4D4A3C;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 36px;\r\n line-height: 36px;\r\n background: url([SITE_ROOT]/images/02/previous.png) top left #5C00DA;\r\n padding: 0px 15px 0 30px;\r\n vertical-align: middle;\r\n font-weight: 600;\r\n font-size: 16px;\r\n}\r\n.previous-page div.wdform-page-button:hover {\r\n background: url([SITE_ROOT]/images/02/previous.png) top left #3D0886;\r\n}\r\n.button-submit {\r\n background: url([SITE_ROOT]/images/02/bg.png) #5C00DA;\r\n cursor: pointer;\r\n font-size: 16px;\r\n border-radius: 0px;\r\n min-width: 80px;\r\n min-height: 34px;\r\n color: #4D4A3C;\r\n margin: 5px;\r\n border: 0px;\r\n font-family: Segoe UI;\r\n font-weight: 600;\r\n}\r\n.button-reset {\r\n background: transparent;\r\n cursor: pointer;\r\n font-size: 17px;\r\n min-width: 80px;\r\n min-height: 34px;\r\n color: #787878;\r\n border: 0px;\r\n margin: 5px;\r\n font-family: Segoe UI;\r\n text-decoration: underline;\r\n}\r\n.wdform_page {\r\n background: #E3E2E4;\r\n padding: 15px 15px 15px 50px;\r\n border-radius: 0px;\r\n font-family: Segoe UI;\r\n}\r\n.wdform_column {\r\n padding-right: 30px !important;\r\n float: left;\r\n border-spacing: 2px;\r\n border-collapse: separate !important;\r\n}\r\n.wdform_column>div {\r\n border-bottom: 1px solid #CFCFCF;\r\n}\r\n.wdform_column>.wdform_row:last-child {\r\n border-bottom: 0px solid #E7E7E7;\r\n}\r\n.wdform-field-section-break {\r\n text-align: center;\r\n}\r\n.wdform_section_break2 {\r\n margin: 16px 10px 16px 0px;\r\n display: inline-block;\r\n background: url([SITE_ROOT]/images/02/bg.png) #5C00DA;\r\n text-align: left;\r\n padding: 10px;\r\n border-radius: 0px;\r\n -moz-box-shadow: 7px -9px 20px -5px rgba(0, 0, 0, 0.23), -7px 9px 20px -5px rgba(0, 0, 0, 0.23);\r\n -webkit-box-shadow: 7px -9px 20px -5px rgba(0, 0, 0, 0.23), -7px 9px 20px -5px rgba(0, 0, 0, 0.23);\r\n box-shadow: 7px -9px 20px -5px rgba(0, 0, 0, 0.23), -7px 9px 20px -5px rgba(0, 0, 0, 0.23);\r\n width: 466px;\r\n text-align: center;\r\nfont-size: 18px;\r\nfont-family: Segoe UI;\r\ncolor: #292929;\r\nfont-weight: 600;\r\n}\r\n\r\n.wdform_section_break\r\n{\r\nmargin: 16px 10px 16px 0px;\r\ntext-align: left;\r\nfont-size: 18px;\r\nfont-family: Segoe UI;\r\ncolor: #292929;\r\n}\r\n.wdform_section {\r\n display: table-row\r\n}\r\nselect {\r\n border-radius: 4px;\r\n height: 26px;\r\n overflow: hidden;\r\n border: 0px solid #ccc;\r\n padding: 2px;\r\n outline: none;\r\n}\r\ninput[type="text"] {\r\n border-radius: 4px;\r\n height: 25px;\r\n border: 0px solid #ccc;\r\n padding:0 3px !important;\r\n}\r\ninput[type="password"] {\r\n border-radius: 4px;\r\n height: 25px;\r\n border: 0px solid #ccc;\r\n padding:0 3px !important;\r\n}\r\ntextarea {\r\n border-radius: 4px;\r\n height: 25px;\r\n border: 0px solid #ccc;\r\n padding:0 3px !important;\r\n}\r\ninput[type="text"]:focus{\r\n border-color: #FFB471;\r\n outline: none;\r\n}\r\ninput[type="password"]:focus{\r\n border-color: #FFB471;\r\n outline: none;\r\n}\r\ntextarea:focus{\r\n border-color: #FFB471;\r\n outline: none;\r\n}\r\n\r\n.input_deactive {\r\n color: #999999;\r\n font-style: italic;\r\n}\r\n.input_active {\r\n color: #000000;\r\n font-style: normal;\r\n}\r\n.am_pm_select {\r\n width: 30px;\r\n vertical-align: middle;\r\n}\r\n.checkbox-div input[type=checkbox] {\r\n position : absolute;\r\n z-index: -1;\r\n}\r\n.checkbox-div {\r\n width: 13px;\r\n height: 12px;\r\n background: transparent;\r\n border: 1px solid #A7A7A7;\r\n border-radius: 0px;\r\n position: relative;\r\n display: inline-block;\r\n}\r\n.checkbox-div label {\r\n cursor: pointer;\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\r\n filter: alpha(opacity=0);\r\n opacity: 0;\r\n content: "";\r\n position: absolute;\r\n width: 16px;\r\n height: 13px;\r\n background: url([SITE_ROOT]/images/02/checkbox.png);\r\n border-radius: 0px;\r\n top: -3px;\r\n left: 1px;\r\n}\r\n.checkbox-div label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.checkbox-div .wdform-ch-rad-label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.wdform-ch-rad-label:hover + .checkbox-div label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.checkbox-div input[type=checkbox]:checked + label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";\r\n filter: alpha(opacity=100);\r\n opacity: 1;\r\n}\r\n.wdform-calendar-button,\r\n.wdform-calendar-button:hover {\r\n display:inline-block;\r\n background: transparent url([SITE_ROOT]/images/02/03/date.png) no-repeat left 50% !important;\r\n border: 0px;\r\n color: transparent;\r\n width: 22px;\r\n height: 24px;\r\n position: relative;\r\n left: -22px;\r\n vertical-align: top;\r\n}\r\n.wdform-calendar-button:focus {\r\n outline:none; \r\n}\r\n.radio-div input[type=radio] {\r\n position : absolute;\r\n z-index: -1;\r\n}\r\n.forlabs {\r\n float: right;\r\n margin-right: 20px;\r\n}\r\n.radio-div {\r\n width: 13px;\r\n height: 12px;\r\n background: transparent;\r\n border: 1px solid #A7A7A7;\r\n border-radius: 0px;\r\n position: relative;\r\n display: inline-block;\r\n top: 2px;\r\n}\r\n.radio-div label {\r\n cursor: pointer;\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\r\n filter: alpha(opacity=0);\r\n opacity: 0;\r\n content: "";\r\n position: absolute;\r\n width: 11px;\r\n height: 10px;\r\n background: #A7A7A7;\r\n border-radius: 0px;\r\n top: 1px;\r\n left: 1px;\r\n}\r\n.radio-div label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.radio-div .wdform-ch-rad-label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.wdform-ch-rad-label:hover + .radio-div label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.radio-div input[type=radio]:checked + label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";\r\n filter: alpha(opacity=100);\r\n opacity: 1;\r\n}\r\n.if-ie-div-label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)" !important;\r\n filter: alpha(opacity=100) !important;\r\n opacity: 1 !important;\r\n}\r\n.wdform-ch-rad-label {\r\n display: inline;\r\n margin: -4px 5px 5px 5px;\r\n float: left;\r\n color: #000;\r\n cursor: pointer\r\n}\r\ntextarea {\r\n padding-top: 5px;\r\n}\r\n.wdform-date {\r\n display:inline-block;\r\n width: 105px\r\n}\r\n.wdform_footer {\r\n padding-top: 5px;\r\n margin-top: 15px;\r\n}\r\n.page-numbers {\r\n vertical-align: middle;\r\n}\r\n.time_box {\r\n text-align: right;\r\n width: 30px;\r\n vertical-align: middle\r\n}\r\n.mini_label {\r\n font-size: 10px;\r\n font-family: "Lucida Grande", Tahoma, Arial, Verdana, sans-serif;\r\n color: #000;\r\n}\r\n.wdform-label {\r\n border: none;\r\n color: #000;\r\n vertical-align: top;\r\n line-height: 17px;\r\n}\r\n.wdform_colon {\r\n color: #000\r\n}\r\n.wdform_separator {\r\n font-style: bold;\r\n vertical-align: middle;\r\n color: #000;\r\n}\r\n.wdform_line {\r\n color: #000\r\n}\r\n.wdform-required {\r\n border: none;\r\n color: rgb(158, 0, 0);\r\n vertical-align: top;\r\n}\r\n.captcha_img {\r\n border-width: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n cursor: pointer;\r\n border-radius: 4px;\r\n}\r\n.captcha_refresh {\r\n width: 30px;\r\n height: 30px;\r\n border-width: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n vertical-align: middle;\r\n cursor: pointer;\r\n background-image: url([SITE_ROOT]/images/refresh_black.png);\r\n}\r\n.captcha_input {\r\n height: 20px;\r\n border-width: 1px;\r\n margin: 0px;\r\n padding: 0px;\r\n vertical-align: middle;\r\n}\r\n.file_upload {\r\n border: 0px solid white;\r\n border-radius: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n color: black;\r\n background-color: white;\r\n}\r\n.page_deactive {\r\n font-size: 12px;\r\n color: #3F3927;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 20px;\r\n text-align: center;\r\n vertical-align: bottom;\r\n padding-top: 5px;\r\n padding: 5px 30px 0px 30px;\r\n font-weight: bold;\r\n}\r\n.page_deactive:nth-child(even) {\r\n background-color: #DCDADB;\r\n}\r\n.page_deactive:nth-child(odd) {\r\n background-color: #D1CDCE;\r\n}\r\n.page_active {\r\n color: #FFF;\r\n cursor: pointer;\r\n background-color: #5C00DA;\r\n display: inline-block;\r\n vertical-align: bottom;\r\n height: 25px;\r\n text-align: center;\r\n font-size: 18px;\r\n padding: 5px 30px 0px 30px;\r\n}\r\n.page_percentage_active {\r\n padding: 0px;\r\n margin: 0px;\r\n border-spacing: 0px;\r\n height: 17px;\r\n line-height: 17px;\r\n font-size: 15px;\r\n float: left;\r\n text-align: right !important;\r\n z-index: 1;\r\n position: relative;\r\n background: #5C00DA ; /* Old browsers */\r\n background: -moz-linear-gradient(left, #5C00DA 0%, #5C00DB 49%, #6600F0 84%, #7917FF 99%); /* FF3.6+ */\r\n background: -webkit-gradient(linear, left top, right top, color-stop(0%, #5C00DA ), color-stop(49%, #5C00DB ), color-stop(84%, #6600F0 ), color-stop(99%, #7917FF )); /* Chrome,Safari4+ */\r\n background: -webkit-linear-gradient(left, #5C00DA 0%, #5C00DB 49%, #6600F0 84%, #7917FF 99%); /* Chrome10+,Safari5.1+ */\r\n background: -o-linear-gradient(left, #5C00DA 0%, #5C00DB 49%, #6600F0 84%, #7917FF 99%); /* Opera 11.10+ */\r\n background: -ms-linear-gradient(left, #5C00DA 0%, #5C00DB 49%, #6600F0 84%, #7917FF 99%); /* IE10+ */\r\n background: linear-gradient(to right, #5C00DA 0%, #5C00DB 49%, #6600F0 84%, #7917FF 99%); /* W3C */\r\n vertical-align: middle;\r\n}\r\n.page_percentage_deactive {\r\n height: 17px;\r\n line-height: 17px;\r\n background-color: #D9D7D8;\r\n text-align: left !important;\r\n margin-bottom: 1px;\r\n}\r\n.page_numbers {\r\n font-size: 14px;\r\n color: #000;\r\n}\r\n.phone_area_code {\r\n width: 50px;\r\n}\r\n.phone_number {\r\n width: 100px;\r\n}\r\nbutton {\r\n cursor: pointer;\r\n}\r\n.other_input {\r\n border-radius: 0px;\r\n border-width: 1px;\r\n height: 16px;\r\n font-size: 12px;\r\n padding: 1px;\r\n margin: 1px;\r\n margin-left: 25px;\r\n z-index: 100;\r\n position: absolute;\r\n}\r\n.wdform_page_navigation {\r\n text-align: right !important;\r\n margin-bottom: -2px;\r\n}\r\n.wdform_percentage_text {\r\n margin: 3px 5px 3px 9px;\r\n color: #fff;\r\n font-weight: bold;\r\nfont-size:13px;\r\n}\r\n.wdform_percentage_title {\r\n color: #000000;\r\n font-style: italic;\r\n margin: 0px 0px 0px 40px;\r\n display: inline-block;\r\n line-height: 17px;\r\n height: 17px;\r\n vertical-align: middle;\r\n}\r\n.wdform_button button {\r\n background: #0E4D92;\r\n cursor: pointer;\r\n font-size: 17px;\r\n border-radius: 4px;\r\n min-width: 80px;\r\n min-height: 27px;\r\n color: #fff;\r\n border: 2px solid #0E3F77;\r\n margin: 5px;\r\n box-shadow: 0px 0px 2px #c9c9c9;\r\n font-family: Segoe UI;\r\n}\r\n.wdform_button button:active {\r\n border: 2px solid #0B2D52;\r\n background: #0E3F77;\r\n}\', 0)');
91
- $wpdb->query('INSERT INTO `' . $wpdb->prefix . 'contactformmaker_themes` (`id`, `title`, `css`, `default`) VALUES(8, \'Theme 02 transparent (aquamarine button)\', \'.radio-div input[type="radio"],\r\n.checkbox-div input[type="checkbox"]\r\n{\r\nvisibility: hidden;\r\n}\r\n.wdform-page-and-images .other_input\r\n{\r\nmax-width: none;\r\n}\r\nbutton,\r\ninput,\r\nselect,\r\ntextarea\r\n{\r\nfont-size:14px;\r\n}\r\n.warning,\r\n.error\r\n{\r\nbackground-color: #EAF9F3;\r\nborder: 1px solid #4D4A58;\r\nmargin-bottom: 10px;\r\ncolor: #4D4A58;\r\npadding: 5px;\r\n}\r\n.warning *,\r\n.error *\r\n{\r\nmargin:0;\r\n}\r\n.recaptcha_input_area input\r\n{\r\nheight:initial !important;\r\n}\r\n.wdform_grading input {\r\n width: 100px;\r\n}\r\n.ui-slider {\r\n height: 6px;\r\n background: #fff !important;\r\n margin: 7px 0px;\r\n}\r\na.ui-slider-handle {\r\n border-radius: 10px;\r\n border: 2px solid #fff;\r\n background: #A4A4A4;\r\n}\r\n.ui-slider-range {\r\n background: #A4A4A4 !important;\r\n}\r\n.ui-slider-horizontal .ui-slider-handle {\r\n top: -8px !important;\r\n}\r\na.ui-slider-handle {\r\n border-radius: 10px;\r\n border: 2px solid #fff;\r\n background: #A4A4A4;\r\n}\r\n.wdform-matrix-cell input[type="text"] {\r\n width: 100px;\r\n}\r\n.wdform-matrix-cell select {\r\n width: 60px;\r\n}\r\n.wdform_section .wdform_column:last-child {\r\n padding-right: 0px !important;\r\n}\r\n.wdform_preload {\r\n display: none;\r\n content: url([SITE_ROOT]/images/02/bg.png);\r\n}\r\n.wdform_grading {\r\n padding: 3px 0px;\r\n}\r\n.wdform-matrix-table {\r\n display: table;\r\n border-spacing: 0px;\r\n}\r\n.wdform-matrix-column {\r\n text-align: left;\r\n display: table-cell;\r\n}\r\n.wdform-matrix-cell {\r\n text-align: center;\r\n display: table-cell;\r\n padding: 6px 10px;\r\n}\r\n.wdform-matrix-head>div {\r\n display: table-cell;\r\n text-align: center;\r\n}\r\n.wdform-matrix-head {\r\n display: table-row;\r\n}\r\n.wdform-matrix-row0 {\r\n background: #DFDFDF;\r\n display: table-row;\r\n}\r\n.wdform-matrix-row1 {\r\n background: #E9E9E9;\r\n display: table-row;\r\n}\r\n.selected-text {\r\n text-align: left;\r\n}\r\n.wdform-quantity {\r\n width: 30px;\r\n margin: 2px 0px;\r\n}\r\n.wdform_scale_rating label {\r\n vertical-align: middle;\r\n}\r\n.ui-corner-all {\r\n border-radius: 3px;\r\n}\r\n.ui-widget-content {\r\n border: 0px;\r\n background: transparent;\r\n}\r\na.ui-spinner-button:hover{\r\n background: #CEECE2 !important;\r\n color: #fff;\r\n outline: none;\r\n}\r\na.ui-spinner-button:active{\r\n background: #CEECE2 !important;\r\n color: #fff;\r\n outline: none;\r\n}\r\na.ui-spinner-button:focus{\r\n background: #CEECE2 !important;\r\n color: #fff;\r\n outline: none;\r\n}\r\na.ui-slider-handle:hover{\r\n background: #CEECE2 !important;\r\n color: #fff;\r\n outline: none;\r\n}\r\na.ui-slider-handle:active{\r\n background: #CEECE2 !important;\r\n color: #fff;\r\n outline: none;\r\n}\r\na.ui-slider-handle:focus{\r\n background: #CEECE2 !important;\r\n color: #fff;\r\n outline: none;\r\n}\r\nui-state-hover {\r\n background: #CEECE2 !important;\r\n color: #fff;\r\n outline: none;\r\n}\r\nui-slider {\r\n background: #fff !important;\r\n}\r\n.ui-state-default{\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-widget-content .ui-state-default{\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-widget-header .ui-state-default {\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-slider-range {\r\n background: #ccc !important;\r\n}\r\n.wdform_map {\r\n border: 6px solid #DCDCDC;\r\n}\r\n.wdform-page-and-images {\r\n width: 100%;\r\n border: 0px !important;\r\n}\r\n.paypal-property {\r\n display: inline-block;\r\n margin-right: 15px;\r\n vertical-align: middle;\r\n}\r\n.sel-wrap {\r\n display: inline-block;\r\n vertical-align: middle;\r\n width:100%;\r\n}\r\n.sel-wrap select {\r\n position: absolute;\r\n z-index:-1;\r\n width: 0px !important;\r\n}\r\n.sel-imul {\r\n display: inline-block;\r\n}\r\n.sel-imul .sel-selected {\r\n cursor: pointer;\r\n position: relative;\r\n display: inline-block;\r\n border-radius: 4px;\r\n padding: 2px 0px 2px 2px;\r\n font-size: 13px;\r\n height: 22px;\r\n line-height: 22px;\r\n overflow: hidden;\r\n background: #fff;\r\n border: 0px solid #ccc;\r\n background-position: right 2px center;\r\n width: 100%;\r\n}\r\n.sel-imul.act .sel-selected {\r\n background: #fff;\r\n}\r\n.sel-selected .sel-arraw {\r\n height: 22px;\r\n width: 29px;\r\n background: url([SITE_ROOT]/images/02/01.png) 50% 50% no-repeat;\r\n position: absolute;\r\n top: 0px;\r\n right: 0px;\r\n padding: 2px;\r\n}\r\n.sel-imul .sel-options {\r\n background: #fff;\r\n border: 1px solid #dbdbdb;\r\n border-top: none;\r\n position: absolute;\r\n width: inherit;\r\n display: none;\r\n z-index: 10;\r\n max-height: 200px;\r\n overflow-y: auto;\r\n overflow-x: hidden;\r\n}\r\n.sel-options .sel-option {\r\n padding: 3px 4px;\r\n font-size: 13px;\r\n border: 1px solid #fff;\r\n border-right: none;\r\n border-left: none;\r\n text-align: left;\r\n}\r\n.sel-options .sel-option:hover {\r\n border-color: #dbdbdb;\r\n cursor: pointer;\r\n}\r\n.sel-options .sel-option.sel-ed {\r\n background: #dbdbdb;\r\n border-color: #dbdbdb;\r\n}\r\ninput[type=text]{\r\n margin: 0px;\r\n}\r\ninput[type=password]{\r\n margin: 0px;\r\n}\r\ninput[type=url]{\r\n margin: 0px;\r\n}\r\ninput[type=email]{\r\n margin: 0px;\r\n}\r\ninput.text{\r\n margin: 0px;\r\n}\r\ninput.title{\r\n margin: 0px;\r\n}\r\ntextarea{\r\n margin: 0px;\r\n}\r\nselect {\r\n margin: 0px;\r\n}\r\n.form-error {\r\n border-color: red !important;\r\n}\r\n.form-error:focus {\r\n border-color: red !important;\r\n}\r\n\r\n.wdform-field {\r\n display: table-cell;\r\n padding: 5px 0px;\r\n}\r\n.wdform-label-section{\r\n text-align: left;\r\n display: table-cell;\r\n}\r\n.wdform-element-section {\r\n text-align: left;\r\n display: table-cell;\r\n min-width: 140px;\r\n}\r\n.file-upload input {\r\n position: absolute;\r\n visibility: hidden;\r\n}\r\n.file-upload-status {\r\n margin-left: 10px;\r\n max-width: 200px;\r\n font-weight: bold;\r\n font-size: 16px;\r\n color: #888;\r\n background: #fff;\r\n position: absolute;\r\n border-radius: 4px;\r\n height: 24px;\r\n border: 1px solid #ccc;\r\n padding-left: 5px;\r\n padding-right: 5px;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n direction: rtl;\r\n padding-top: 3px;\r\n margin-top: 2px;\r\n}\r\n.file-picker {\r\n width: 41px;\r\n height: 32px;\r\n background: url([SITE_ROOT]/images/02/02/upload.png);\r\n display: inline-block;\r\n}\r\n.next-page div.wdform-page-button {\r\n color: #4D4A3C;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 36px;\r\n line-height: 33px;\r\n background: url([SITE_ROOT]/images/02/next.png) top right #94FFD5;\r\n padding: 0px 30px 0 15px;\r\n vertical-align: middle;\r\n font-weight: 600;\r\n font-size: 16px;\r\n}\r\n.next-page div.wdform-page-button:hover {\r\n background: url([SITE_ROOT]/images/02/next.png) top right #E4F3E2;\r\n}\r\n.previous-page div.wdform-page-button {\r\n color: #4D4A3C;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 36px;\r\n line-height: 36px;\r\n background: url([SITE_ROOT]/images/02/previous.png) top left #94FFD5;\r\n padding: 0px 15px 0 30px;\r\n vertical-align: middle;\r\n font-weight: 600;\r\n font-size: 16px;\r\n}\r\n.previous-page div.wdform-page-button:hover {\r\n background: url([SITE_ROOT]/images/02/previous.png) top left #E4F3E2;\r\n}\r\n.button-submit {\r\n background: url([SITE_ROOT]/images/02/bg.png) #94FFD5;\r\n cursor: pointer;\r\n font-size: 16px;\r\n border-radius: 0px;\r\n min-width: 80px;\r\n min-height: 34px;\r\n color: #4D4A3C;\r\n margin: 5px;\r\n border: 0px;\r\n font-family: Segoe UI;\r\n font-weight: 600;\r\n}\r\n.button-reset {\r\n background: transparent;\r\n cursor: pointer;\r\n font-size: 17px;\r\n min-width: 80px;\r\n min-height: 34px;\r\n color: #787878;\r\n border: 0px;\r\n margin: 5px;\r\n font-family: Segoe UI;\r\n text-decoration: underline;\r\n}\r\n.wdform_page {\r\n background: transparent;\r\n padding: 15px 15px 15px 50px;\r\n border-radius: 0px;\r\n font-family: Segoe UI;\r\n}\r\n.wdform_column {\r\n padding-right: 30px !important;\r\n float: left;\r\n border-spacing: 2px;\r\n border-collapse: separate !important;\r\n}\r\n.wdform_column>div {\r\n border-bottom: 1px solid #CFCFCF;\r\n}\r\n.wdform_column>.wdform_row:last-child {\r\n border-bottom: 0px solid #E7E7E7;\r\n}\r\n.wdform-field-section-break {\r\n text-align: center;\r\n}\r\n.wdform_section_break2 {\r\n margin: 16px 10px 16px 0px;\r\n display: inline-block;\r\n background: url([SITE_ROOT]/images/02/bg.png) #CFAB1A;\r\n text-align: left;\r\n padding: 10px;\r\n border-radius: 0px;\r\n -moz-box-shadow: 7px -9px 20px -5px rgba(0, 0, 0, 0.23), -7px 9px 20px -5px rgba(0, 0, 0, 0.23);\r\n -webkit-box-shadow: 7px -9px 20px -5px rgba(0, 0, 0, 0.23), -7px 9px 20px -5px rgba(0, 0, 0, 0.23);\r\n box-shadow: 7px -9px 20px -5px rgba(0, 0, 0, 0.23), -7px 9px 20px -5px rgba(0, 0, 0, 0.23);\r\n width: 466px;\r\n text-align: center;\r\nfont-size: 18px;\r\nfont-family: Segoe UI;\r\ncolor: #292929;\r\nfont-weight: 600;\r\n}\r\n\r\n.wdform_section_break\r\n{\r\nmargin: 16px 10px 16px 0px;\r\ntext-align: left;\r\nfont-size: 18px;\r\nfont-family: Segoe UI;\r\ncolor: #292929;\r\n}\r\n.wdform_section {\r\n display: table-row\r\n}\r\nselect {\r\n border-radius: 4px;\r\n height: 26px;\r\n overflow: hidden;\r\n border: 0px solid #ccc;\r\n padding: 2px;\r\n outline: none;\r\nbackground: #E9E9E9;\r\n}\r\ninput[type="text"] {\r\n border-radius: 4px;\r\n height: 25px;\r\n border: 0px solid #ccc;\r\n padding:0 3px !important;\r\nbackground: #E9E9E9;\r\n}\r\ninput[type="password"] {\r\n border-radius: 4px;\r\n height: 25px;\r\n border: 0px solid #ccc;\r\n padding:0 3px !important;\r\nbackground: #E9E9E9;\r\n}\r\ntextarea {\r\n border-radius: 4px;\r\n height: 25px;\r\n border: 0px solid #ccc;\r\n padding:0 3px !important;\r\nbackground: #E9E9E9;\r\n}\r\ninput[type="text"]:focus{\r\n border-color: #FFB471;\r\n outline: none;\r\n}\r\ninput[type="password"]:focus{\r\n border-color: #FFB471;\r\n outline: none;\r\n}\r\ntextarea:focus{\r\n border-color: #FFB471;\r\n outline: none;\r\n}\r\n\r\n.input_deactive {\r\n color: #999999;\r\n font-style: italic;\r\n}\r\n.input_active {\r\n color: #000000;\r\n font-style: normal;\r\n}\r\n.am_pm_select {\r\n width: 30px;\r\n vertical-align: middle;\r\n}\r\n.checkbox-div input[type=checkbox] {\r\n position : absolute;\r\n z-index: -1;\r\n}\r\n.checkbox-div {\r\n width: 13px;\r\n height: 12px;\r\n background: transparent;\r\n border: 1px solid #A7A7A7;\r\n border-radius: 0px;\r\n position: relative;\r\n display: inline-block;\r\n}\r\n.checkbox-div label {\r\n cursor: pointer;\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\r\n filter: alpha(opacity=0);\r\n opacity: 0;\r\n content: "";\r\n position: absolute;\r\n width: 16px;\r\n height: 13px;\r\n background: url([SITE_ROOT]/images/02/checkbox.png);\r\n border-radius: 0px;\r\n top: -3px;\r\n left: 1px;\r\n}\r\n.checkbox-div label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.checkbox-div .wdform-ch-rad-label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.wdform-ch-rad-label:hover + .checkbox-div label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.checkbox-div input[type=checkbox]:checked + label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";\r\n filter: alpha(opacity=100);\r\n opacity: 1;\r\n}\r\n.wdform-calendar-button,\r\n.wdform-calendar-button:hover {\r\n display:inline-block;\r\n background: transparent url([SITE_ROOT]/images/02/02/date.png) no-repeat left 50% !important;\r\n border: 0px;\r\n color: transparent;\r\n width: 22px;\r\n height: 24px;\r\n position: relative;\r\n left: -22px;\r\n vertical-align: top;\r\n}\r\n.wdform-calendar-button:focus {\r\n outline:none; \r\n}\r\n.radio-div input[type=radio] {\r\n position : absolute;\r\n z-index: -1;\r\n}\r\n.forlabs {\r\n float: right;\r\n margin-right: 20px;\r\n}\r\n.radio-div {\r\n width: 13px;\r\n height: 12px;\r\n background: transparent;\r\n border: 1px solid #A7A7A7;\r\n border-radius: 0px;\r\n position: relative;\r\n display: inline-block;\r\n top: 2px;\r\n}\r\n.radio-div label {\r\n cursor: pointer;\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\r\n filter: alpha(opacity=0);\r\n opacity: 0;\r\n content: "";\r\n position: absolute;\r\n width: 11px;\r\n height: 10px;\r\n background: #A7A7A7;\r\n border-radius: 0px;\r\n top: 1px;\r\n left: 1px;\r\n}\r\n.radio-div label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.radio-div .wdform-ch-rad-label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.wdform-ch-rad-label:hover + .radio-div label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.radio-div input[type=radio]:checked + label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";\r\n filter: alpha(opacity=100);\r\n opacity: 1;\r\n}\r\n.if-ie-div-label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)" !important;\r\n filter: alpha(opacity=100) !important;\r\n opacity: 1 !important;\r\n}\r\n.wdform-ch-rad-label {\r\n display: inline;\r\n margin: -4px 5px 5px 5px;\r\n float: left;\r\n color: #000;\r\n cursor: pointer\r\n}\r\ntextarea {\r\n padding-top: 5px;\r\n}\r\n.wdform-date {\r\n display:inline-block;\r\n width: 105px\r\n}\r\n.wdform_footer {\r\n padding-top: 5px;\r\n margin-top: 15px;\r\n}\r\n.page-numbers {\r\n vertical-align: middle;\r\n}\r\n.time_box {\r\n text-align: right;\r\n width: 30px;\r\n vertical-align: middle\r\n}\r\n.mini_label {\r\n font-size: 10px;\r\n font-family: "Lucida Grande", Tahoma, Arial, Verdana, sans-serif;\r\n color: #000;\r\n}\r\n.wdform-label {\r\n border: none;\r\n color: #000;\r\n vertical-align: top;\r\n line-height: 17px;\r\n}\r\n.wdform_colon {\r\n color: #000\r\n}\r\n.wdform_separator {\r\n font-style: bold;\r\n vertical-align: middle;\r\n color: #000;\r\n}\r\n.wdform_line {\r\n color: #000\r\n}\r\n.wdform-required {\r\n border: none;\r\n color: rgb(158, 0, 0);\r\n vertical-align: top;\r\n}\r\n.captcha_img {\r\n border-width: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n cursor: pointer;\r\n border-radius: 4px;\r\n}\r\n.captcha_refresh {\r\n width: 30px;\r\n height: 30px;\r\n border-width: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n vertical-align: middle;\r\n cursor: pointer;\r\n background-image: url([SITE_ROOT]/images/refresh_black.png);\r\n}\r\n.captcha_input {\r\n height: 20px;\r\n border-width: 1px;\r\n margin: 0px;\r\n padding: 0px;\r\n vertical-align: middle;\r\n}\r\n.file_upload {\r\n border: 0px solid white;\r\n border-radius: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n color: black;\r\n background-color: white;\r\n}\r\n.page_deactive {\r\n font-size: 12px;\r\n color: #3F3927;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 20px;\r\n text-align: center;\r\n vertical-align: bottom;\r\n padding-top: 5px;\r\n padding: 5px 30px 0px 30px;\r\n font-weight: bold;\r\n}\r\n.page_deactive:nth-child(even) {\r\n background-color: #EEEEEE;\r\n}\r\n.page_deactive:nth-child(odd) {\r\n background-color: #EEEEEE;\r\n}\r\n.page_active {\r\n color: #3F3927;\r\n cursor: pointer;\r\n background-color: #CEECE2;\r\n display: inline-block;\r\n vertical-align: bottom;\r\n height: 25px;\r\n text-align: center;\r\n font-size: 18px;\r\n padding: 5px 30px 0px 30px;\r\n}\r\n.page_percentage_active {\r\n padding: 0px;\r\n margin: 0px;\r\n border-spacing: 0px;\r\n height: 17px;\r\n line-height: 17px;\r\n font-size: 15px;\r\n float: left;\r\n text-align: right !important;\r\n z-index: 1;\r\n position: relative;\r\n background: #95D3BE ; /* Old browsers */\r\n background: -moz-linear-gradient(left, #80CEB4 0%, #95D6C1 49%, #95D3BE 84%, #B3E7D6 99%); /* FF3.6+ */\r\n background: -webkit-gradient(linear, left top, right top, color-stop(0%, #80CEB4 ), color-stop(49%, #95D6C1 ), color-stop(84%, #95D3BE ), color-stop(99%, #B3E7D6 )); /* Chrome,Safari4+ */\r\n background: -webkit-linear-gradient(left, #80CEB4 0%, #95D6C1 49%, #95D3BE 84%, #B3E7D6 99%); /* Chrome10+,Safari5.1+ */\r\n background: -o-linear-gradient(left, #80CEB4 0%, #95D6C1 49%, #95D3BE 84%, #B3E7D6 99%); /* Opera 11.10+ */\r\n background: -ms-linear-gradient(left, #80CEB4 0%, #95D6C1 49%, #95D3BE 84%, #B3E7D6 99%); /* IE10+ */\r\n background: linear-gradient(to right, #80CEB4 0%, #95D6C1 49%, #95D3BE 84%, #B3E7D6 99%); /* W3C */\r\n vertical-align: middle;\r\n}\r\n.page_percentage_deactive {\r\n height: 17px;\r\n line-height: 17px;\r\n background-color: #E0DFE0;\r\n text-align: left !important;\r\n margin-bottom: 1px;\r\n}\r\n.page_numbers {\r\n font-size: 14px;\r\n color: #000;\r\n}\r\n.phone_area_code {\r\n width: 50px;\r\n}\r\n.phone_number {\r\n width: 100px;\r\n}\r\nbutton {\r\n cursor: pointer;\r\n}\r\n.other_input {\r\n border-radius: 0px;\r\n border-width: 1px;\r\n height: 16px;\r\n font-size: 12px;\r\n padding: 1px;\r\n margin: 1px;\r\n margin-left: 25px;\r\n z-index: 100;\r\n position: absolute;\r\n}\r\n.wdform_page_navigation {\r\n text-align: right !important;\r\n margin-bottom: -2px;\r\n}\r\n.wdform_percentage_text {\r\n margin: 3px 5px 3px 9px;\r\n color: #292929;\r\n font-weight: bold;\r\nfont-size:13px;\r\n}\r\n.wdform_percentage_title {\r\n color: #000000;\r\n font-style: italic;\r\n margin: 0px 0px 0px 40px;\r\n display: inline-block;\r\n line-height: 17px;\r\n height: 17px;\r\n vertical-align: middle;\r\n}\r\n.wdform_button button {\r\n background: #0E4D92;\r\n cursor: pointer;\r\n font-size: 17px;\r\n border-radius: 4px;\r\n min-width: 80px;\r\n min-height: 27px;\r\n color: #fff;\r\n border: 2px solid #0E3F77;\r\n margin: 5px;\r\n box-shadow: 0px 0px 2px #c9c9c9;\r\n font-family: Segoe UI;\r\n}\r\n.wdform_button button:active {\r\n border: 2px solid #0B2D52;\r\n background: #0E3F77;\r\n}\', 0)');
92
- $wpdb->query('INSERT INTO `' . $wpdb->prefix . 'contactformmaker_themes` (`id`, `title`, `css`, `default`) VALUES(9, \'Theme 03 green\', \'.wdform-page-and-images .other_input\r\n{\r\nmax-width: none;\r\n}\r\nbutton,\r\ninput,\r\nselect,\r\ntextarea\r\n{\r\nfont-size:14px;\r\n}\r\n.warning,\r\n.error\r\n{\r\nbackground-color: #F0EEEF;\r\nborder: 1px solid #3A620A;\r\nmargin-bottom: 10px;\r\ncolor: #3A620A;\r\npadding: 5px;\r\n}\r\n.warning *,\r\n.error *\r\n{\r\nmargin:0;\r\n}\r\n.recaptcha_input_area input\r\n{\r\nheight:initial !important;\r\n}\r\na.ui-slider-handle {\r\n border-radius: 0px;\r\n border: 1px solid #39680B;\r\n background: #C9FD9C;\r\n height: 13px;\r\n width: 13px;\r\n}\r\n.ui-slider-horizontal .ui-slider-handle {\r\n top: -5px !important;\r\n}\r\n.ui-slider {\r\n height: 6px;\r\n background: #fff !important;\r\n margin: 7px 0px;\r\n}\r\n.wdform_grading input {\r\n width: 100px;\r\n}\r\n.wdform-matrix-cell input[type="text"] {\r\n width: 100px;\r\n}\r\n.wdform-matrix-cell select {\r\n width: 60px;\r\n}\r\n.wdform_section .wdform_column:last-child {\r\n padding-right: 0px !important;\r\n}\r\n.wdform_preload {\r\n display: none;\r\n}\r\n.wdform_grading {\r\n padding: 3px 0px;\r\n}\r\n.wdform-matrix-table {\r\n display: table;\r\n border-spacing: 0px;\r\n}\r\n.wdform-matrix-column {\r\n text-align: left;\r\n display: table-cell;\r\n}\r\n.wdform-matrix-cell {\r\n text-align: center;\r\n display: table-cell;\r\n padding: 6px 10px;\r\n}\r\n.wdform-matrix-head>div {\r\n display: table-cell;\r\n text-align: center;\r\n}\r\n.wdform-matrix-head {\r\n display: table-row;\r\n}\r\n.wdform-matrix-row0 {\r\n background: #DFDFDF;\r\n display: table-row;\r\n}\r\n.wdform-matrix-row1 {\r\n background: #E9E9E9;\r\n display: table-row;\r\n}\r\n.selected-text {\r\n text-align: left;\r\n}\r\n.wdform-quantity {\r\n width: 30px;\r\n margin: 2px 0px;\r\n}\r\n.wdform_scale_rating label {\r\n vertical-align: middle;\r\n}\r\n.ui-corner-all {\r\n border-radius: 0px;\r\n}\r\n.ui-widget-content {\r\n border: 0px;\r\n background: transparent;\r\n}\r\na.ui-spinner-button:hover {\r\n background: #4A8C08!important;\r\n color: #fff;\r\n}\r\na.ui-spinner-button:active {\r\n background: #4A8C08!important;\r\n color: #fff;\r\n}\r\na.ui-spinner-button:focus {\r\n background: #4A8C08!important;\r\n color: #fff;\r\n}\r\na.ui-slider-handle:hover {\r\n background: #4A8C08!important;\r\n color: #fff;\r\n}\r\na.ui-slider-handle:active {\r\n background: #4A8C08!important;\r\n color: #fff;\r\n}\r\na.ui-slider-handle:focus {\r\n background: #4A8C08!important;\r\n color: #fff;\r\n}\r\nui-state-hover {\r\n background: #4A8C08!important;\r\n color: #fff;\r\n}\r\n.ui-state-default {\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-widget-content .ui-state-default {\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-widget-header .ui-state-default {\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-slider-range {\r\n background: #C9FD9C !important;\r\n}\r\n.wdform_map {\r\n border: 6px solid #fff;\r\n}\r\n.wdform-page-and-images {\r\n width: 100%;\r\n border: 0px !important;\r\n}\r\n.paypal-property {\r\n display: inline-block;\r\n margin-right: 15px;\r\n vertical-align: middle;\r\n}\r\n.sel-wrap {\r\n display: inline-block;\r\n vertical-align: middle;\r\n width:100%;\r\n}\r\n.sel-wrap select {\r\n position: absolute;\r\n z-index:-1;\r\n width: 0px !important;\r\n}\r\n.sel-imul {\r\n display: inline-block;\r\n}\r\n.sel-imul .sel-selected {\r\n cursor: pointer;\r\n position: relative;\r\n display: inline-block;\r\n border-radius: 0px;\r\n padding: 0px 0px 0px 2px;\r\n font-size: 13px;\r\n height: 23px;\r\n line-height: 23px;\r\n overflow: hidden;\r\n background: #fff;\r\n border: 0px solid #ccc;\r\n background-position: right 2px center;\r\n width: 100%;\r\n}\r\n.sel-imul.act .sel-selected {\r\n background: #fff;\r\n}\r\n.sel-selected .sel-arraw {\r\n height: 23px;\r\n width: 30px;\r\n background: url([SITE_ROOT]/images/03/01/01.png) 50% 50% no-repeat;\r\n position: absolute;\r\n top: 0px;\r\n right: 0px;\r\n padding: 0px;\r\n}\r\n.sel-imul .sel-options {\r\n background: #fff;\r\n border: 1px solid #dbdbdb;\r\n border-top: none;\r\n position: absolute;\r\n width: inherit;\r\n display: none;\r\n z-index: 10;\r\n max-height: 200px;\r\n overflow-y: auto;\r\n overflow-x: hidden;\r\n}\r\n.sel-options .sel-option {\r\n padding: 3px 4px;\r\n font-size: 13px;\r\n border: 1px solid #fff;\r\n border-right: none;\r\n border-left: none;\r\n text-align: left;\r\n}\r\n.sel-options .sel-option:hover {\r\n border-color: #dbdbdb;\r\n cursor: pointer;\r\n}\r\n.sel-options .sel-option.sel-ed {\r\n background: #dbdbdb;\r\n border-color: #dbdbdb;\r\n}\r\ninput[type=text]{\r\n margin: 0px;\r\n}\r\ninput[type=password]{\r\n margin: 0px;\r\n}\r\ninput[type=url]{\r\n margin: 0px;\r\n}\r\ninput[type=email]{\r\n margin: 0px;\r\n}\r\ninput.text{\r\n margin: 0px;\r\n}\r\ninput.title{\r\n margin: 0px;\r\n}\r\ntextarea{\r\n margin: 0px;\r\n}\r\nselect {\r\n margin: 0px;\r\n}\r\n.form-error {\r\n border-color: red !important;\r\n}\r\n.form-error:focus {\r\n border-color: red !important;\r\n}\r\n.wdform-field {\r\n display: table-cell;\r\n padding: 5px 0px;\r\n}\r\n.wdform-label-section{\r\n text-align: left;\r\n display: table-cell;\r\n}\r\n.wdform-element-section {\r\n text-align: left;\r\n display: table-cell;\r\n min-width: 140px;\r\n}\r\n.file-upload input {\r\n position: absolute;\r\n visibility: hidden;\r\n}\r\n.file-upload-status {\r\n margin-left: 10px;\r\n max-width: 200px;\r\n font-weight: bold;\r\n font-size: 16px;\r\n color: #888;\r\n position: absolute;\r\n border-radius: 0px;\r\n height: 23px;\r\n padding-left: 5px;\r\n padding-right: 5px;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n }\r\n.file-picker {\r\n width: 32px;\r\n height: 25px;\r\n background: url([SITE_ROOT]/images/03/upload.png);\r\n display: inline-block;\r\n}\r\ndiv.wdform-page-button {\r\n color: #414141;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 36px;\r\n line-height: 36px;\r\n background-color: #ACABAB;\r\npadding: 2px 15px;\r\nvertical-align: middle;\r\nborder: none;\r\nfont-size: 15px;\r\n}\r\n\r\n\r\n.button-submit {\r\n background: #3A620A;\r\n cursor: pointer;\r\n font-size: 17px;\r\n min-width: 80px;\r\n min-height: 34px;\r\n color: #fff;\r\n border: 2px solid #4A8C08;\r\n margin: 5px;\r\n box-shadow: 0px 0px 1px 1px #44740E;\r\n font-family: Segoe UI;\r\n }\r\n.button-reset {\r\n background: #D8D6D7;\r\n cursor: pointer;\r\n font-size: 17px;\r\n min-width: 80px;\r\n min-height: 34px;\r\n color: #787878;\r\n border: 2px solid #fff;\r\n margin: 5px;\r\n box-shadow: 0px 0px 2px 1px #969495;\r\n font-family: Segoe UI;\r\n}\r\n.wdform_page {\r\n background: #CDD9C3;\r\n padding-top: 15px;\r\n border-radius: 0px;\r\n font-family: Segoe UI;\r\n}\r\n.wdform_column {\r\n padding-right: 30px !important;\r\n float: left;\r\n border-spacing: 2px;\r\n border-collapse: separate !important;\r\n}\r\n.wdform-field-section-break {\r\n text-align: center;\r\n}\r\n.wdform_section_break2 {\r\n margin: 16px 10px 16px 0px;\r\n display: inline-block;\r\n background: url([SITE_ROOT]/images/03/01/bg.png);\r\n text-align: left;\r\n padding: 10px 20px 10px 50px;\r\n border-radius: 0px;\r\n -moz-box-shadow: 7px -9px 20px -5px rgba(0, 0, 0, 0.23), -7px 9px 20px -5px rgba(0, 0, 0, 0.23);\r\n -webkit-box-shadow: 7px -9px 20px -5px rgba(0, 0, 0, 0.23), -7px 9px 20px -5px rgba(0, 0, 0, 0.23);\r\n box-shadow: 7px -9px 20px -5px rgba(0, 0, 0, 0.23), -7px 9px 20px -5px rgba(0, 0, 0, 0.23);\r\n width: 466px;\r\n text-align: right;\r\n color: #000;\r\nfont-size: 18px;\r\n}\r\n\r\n.wdform_section_break\r\n{\r\nmargin: 16px 15px;\r\ntext-align: left;\r\nfont-size: 18px;\r\ncolor: #555;\r\n}\r\n.wdform_section {\r\n display: inline-block;\r\n padding: 0px 15px;\r\n}\r\nselect {\r\n border-radius: 0px;\r\n padding: 2px;\r\n height: 26px;\r\n overflow: hidden;\r\n border: 0px solid #ccc;\r\n padding: 2px;\r\n outline: none;\r\n}\r\ninput[type="text"]{\r\n border-radius: 0px;\r\n height: 25px;\r\n border: 0px solid #ccc;\r\n padding:0 3px !important;\r\n}\r\ninput[type="password"]{\r\n border-radius: 0px;\r\n height: 25px;\r\n border: 0px solid #ccc;\r\n padding:0 3px !important;\r\n}\r\ntextarea {\r\n border-radius: 0px;\r\n height: 25px;\r\n border: 0px solid #ccc;\r\n padding:0 3px !important;\r\n}\r\ninput[type="text"]:focus{\r\n border-color: #FFB471;\r\n outline: none;\r\n}\r\ninput[type="password"]:focus{\r\n border-color: #FFB471;\r\n outline: none;\r\n}\r\ntextarea:focus{\r\n border-color: #FFB471;\r\n outline: none;\r\n}\r\n\r\n.input_deactive {\r\n color: #999999;\r\n font-style: italic;\r\n}\r\n.input_active {\r\n color: #000000;\r\n font-style: normal;\r\n}\r\n.am_pm_select {\r\n width: 30px;\r\n vertical-align: middle;\r\n}\r\n.checkbox-div input[type=checkbox] {\r\n position : absolute;\r\n z-index: -1;\r\n}\r\n.checkbox-div {\r\n width: 13px;\r\n height: 12px;\r\n background: transparent;\r\n border: 1px solid #A7A7A7;\r\n border-radius: 0px;\r\n position: relative;\r\n display: inline-block;\r\n}\r\n.checkbox-div label {\r\n cursor: pointer;\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\r\n filter: alpha(opacity=0);\r\n opacity: 0;\r\n content: "";\r\n position: absolute;\r\n width: 16px;\r\n height: 13px;\r\n background: url([SITE_ROOT]/images/03/checkbox.png);\r\n border-radius: 0px;\r\n top: -3px;\r\n left: 1px;\r\n}\r\n.checkbox-div label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.checkbox-div .wdform-ch-rad-label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.wdform-ch-rad-label:hover + .checkbox-div label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.checkbox-div input[type=checkbox]:checked + label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";\r\n filter: alpha(opacity=100);\r\n opacity: 1;\r\n}\r\n.wdform-calendar-button,\r\n.wdform-calendar-button:hover {\r\n display:inline-block;\r\n background: transparent url([SITE_ROOT]/images/03/date.png) no-repeat left 50% !important;\r\n border: 0px;\r\n color: transparent;\r\n width: 22px;\r\n height: 24px;\r\n position: relative;\r\n left: -22px;\r\n vertical-align: top;\r\n}\r\n.wdform-calendar-button:focus {\r\n outline:none; \r\n}\r\n.radio-div input[type=radio] {\r\n position : absolute;\r\n z-index: -1;\r\n}\r\n.forlabs {\r\n float: right;\r\n margin-right: 20px;\r\n}\r\n.radio-div {\r\n width: 13px;\r\n height: 12px;\r\n background: transparent;\r\n border: 1px solid #A7A7A7;\r\n border-radius: 0px;\r\n position: relative;\r\n display: inline-block;\r\n top: 2px;\r\n}\r\n.radio-div label {\r\n cursor: pointer;\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\r\n filter: alpha(opacity=0);\r\n opacity: 0;\r\n content: "";\r\n position: absolute;\r\n width: 9px;\r\n height: 8px;\r\n background: #A7A7A7;\r\n border-radius: 0px;\r\n top: 2px;\r\n left: 2px;\r\n}\r\n.radio-div label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.radio-div .wdform-ch-rad-label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.wdform-ch-rad-label:hover + .radio-div label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.radio-div input[type=radio]:checked + label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";\r\n filter: alpha(opacity=100);\r\n opacity: 1;\r\n}\r\n.if-ie-div-label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)" !important;\r\n filter: alpha(opacity=100) !important;\r\n opacity: 1 !important;\r\n}\r\n.wdform-ch-rad-label {\r\n display: inline;\r\n margin: -4px 5px 5px 5px;\r\n float: left;\r\n color: #000;\r\n cursor: pointer\r\n}\r\ntextarea {\r\n padding-top: 5px;\r\n}\r\n.wdform-date {\r\n display:inline-block;\r\n width: 105px\r\n}\r\n.wdform_footer {\r\n margin-top: 15px;\r\n background-color: #DFDFDF;\r\n}\r\n.page-numbers {\r\n vertical-align: middle;\r\n}\r\n.time_box {\r\n text-align: right;\r\n width: 30px;\r\n vertical-align: middle\r\n}\r\n.mini_label {\r\n font-size: 10px;\r\n font-family: "Lucida Grande", Tahoma, Arial, Verdana, sans-serif;\r\n color: #A8A8A8;\r\n}\r\n.wdform-label {\r\n border: none;\r\n color: #000;\r\n vertical-align: top;\r\n line-height: 17px;\r\n}\r\n.wdform_colon {\r\n color: #000\r\n}\r\n.wdform_separator {\r\n font-style: bold;\r\n vertical-align: middle;\r\n color: #000;\r\n}\r\n.wdform_line {\r\n color: #000\r\n}\r\n.wdform-required {\r\n border: none;\r\n color: red;\r\n vertical-align: top;\r\n}\r\n.captcha_img {\r\n border-width: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n cursor: pointer;\r\n border-radius: 0px;\r\n}\r\n.captcha_refresh {\r\n width: 30px;\r\n height: 30px;\r\n border-width: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n vertical-align: middle;\r\n cursor: pointer;\r\n background-image: url([SITE_ROOT]/images/refresh_black.png);\r\n}\r\n.captcha_input {\r\n height: 20px;\r\n border-width: 1px;\r\n margin: 0px;\r\n padding: 0px;\r\n vertical-align: middle;\r\n}\r\n.file_upload {\r\n border: 0px solid white;\r\n border-radius: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n color: black;\r\n background-color: white;\r\n}\r\n.page_deactive {\r\n color: #fff;\r\n background-color: #42810e;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 20px;\r\n text-align: center;\r\n vertical-align: bottom;\r\n padding-top: 5px;\r\n padding: 5px 25px 0px 25px;\r\n font-size: 12px;\r\n}\r\n.page_active {\r\n color: #fff;\r\n background-color: #36690c;\r\n cursor: pointer;\r\n display: inline-block;\r\n vertical-align: bottom;\r\n height: 33px;\r\n text-align: center;\r\n font-size: 21px;\r\n padding: 5px 20px 0px 20px;\r\n margin-bottom: -13px;\r\n}\r\n.page_percentage_active {\r\n padding: 0px;\r\n margin: 0px;\r\n border-spacing: 0px;\r\n height: 18px;\r\n line-height: 20px;\r\n font-size: 15px;\r\n float: left;\r\n text-align: right !important;\r\n z-index: 1;\r\n position: relative;\r\n background: #62983A; /* Old browsers */\r\n background: -moz-linear-gradient(left, #61b217 0%, #62983a 39%, #62983a 100%); /* FF3.6+ */\r\n background: -webkit-gradient(linear, left top, right top, color-stop(0%, #61b217), color-stop(39%, #62983a), color-stop(100%, #62983a)); /* Chrome,Safari4+ */\r\n background: -webkit-linear-gradient(left, #61b217 0%, #62983a 39%, #62983a 100%); /* Chrome10+,Safari5.1+ */\r\n background: -o-linear-gradient(left, #61b217 0%, #62983a 39%, #62983a 100%); /* Opera 11.10+ */\r\n background: -ms-linear-gradient(left, #61b217 0%, #62983a 39%, #62983a 100%); /* IE10+ */\r\n background: linear-gradient(to right, #61b217 0%, #62983a 39%, #62983a 100%); /* W3C */\r\n vertical-align: middle;\r\n}\r\n.page_percentage_deactive {\r\n height: 18px;\r\n line-height: 20px;\r\n background-color: #DFDFDF;\r\n text-align: left !important;\r\n margin-bottom: 1px;\r\n}\r\n.page_numbers {\r\n font-size: 14px;\r\n color: #000;\r\n}\r\n.phone_area_code {\r\n width: 50px;\r\n}\r\n.phone_number {\r\n width: 100px;\r\n}\r\nbutton {\r\n cursor: pointer;\r\n}\r\n.other_input {\r\n border-radius: 0px;\r\n border-width: 1px;\r\n height: 16px;\r\n font-size: 12px;\r\n padding: 1px;\r\n margin: 1px;\r\n margin-left: 25px;\r\n z-index: 100;\r\n position: absolute;\r\n}\r\n.wdform_page_navigation {\r\n text-align: center!important;\r\n margin-bottom: 0px;\r\n}\r\n.wdform_percentage_text {\r\n margin: 3px -34px 3px 9px;\r\n color: #FFFFFF;\r\n font-weight: normal;\r\n font-size: 12px;\r\nline-height: 18px;\r\n}\r\n.wdform_percentage_title {\r\n color: #000000;\r\n font-style: italic;\r\n margin: 0px 0px 0px 40px;\r\n display: inline-block;\r\n line-height: 20px;\r\n height: 20px;\r\n vertical-align: middle;\r\n}\r\n.wdform_percentage_arrow {\r\n display: inline-block;\r\n width: 34px;\r\n height: 18px;\r\n background: url([SITE_ROOT]/images/03/01/percentage_arrow.png);\r\n position: relative;\r\n left: -1px;\r\ntop:0px;\r\n z-index: 0;\r\n vertical-align: middle;\r\n}\r\n.wdform_button button {\r\n background: #4D792C;\r\n cursor: pointer;\r\n font-size: 17px;\r\n border-radius: 0px;\r\n min-width: 80px;\r\n min-height: 31px;\r\n color: #fff;\r\n border: 2px solid #68943B;\r\n margin: 5px;\r\n box-shadow: 0px 0px 2px #c9c9c9;\r\n font-family: Segoe UI;\r\n}\', 0)');
93
- $wpdb->query('INSERT INTO `' . $wpdb->prefix . 'contactformmaker_themes` (`id`, `title`, `css`, `default`) VALUES(10, \'Theme 03 red\', \'.wdform-page-and-images .other_input\r\n{\r\nmax-width: none;\r\n}\r\nbutton,\r\ninput,\r\nselect,\r\ntextarea\r\n{\r\nfont-size:14px;\r\n}\r\n.warning,\r\n.error\r\n{\r\nbackground-color: #F0EEEF;\r\nborder: 1px solid #811919;\r\nmargin-bottom: 10px;\r\ncolor: #811919;\r\npadding: 5px;\r\n}\r\n.warning *,\r\n.error *\r\n{\r\nmargin:0;\r\n}\r\n.recaptcha_input_area input\r\n{\r\nheight:initial !important;\r\n}\r\na.ui-slider-handle {\r\n border-radius: 0px;\r\n border: 1px solid #39680B;\r\n background: #C9FD9C;\r\n height: 13px;\r\n width: 13px;\r\n}\r\n.ui-slider-horizontal .ui-slider-handle {\r\n top: -5px !important;\r\n}\r\n.ui-slider {\r\n height: 6px;\r\n background: #fff !important;\r\n margin: 7px 0px;\r\n}\r\n.wdform_grading input {\r\n width: 100px;\r\n}\r\n.wdform-matrix-cell input[type="text"] {\r\n width: 100px;\r\n}\r\n.wdform-matrix-cell select {\r\n width: 60px;\r\n}\r\n.wdform_section .wdform_column:last-child {\r\n padding-right: 0px !important;\r\n}\r\n.wdform_preload {\r\n display: none;\r\n}\r\n.wdform_grading {\r\n padding: 3px 0px;\r\n}\r\n.wdform-matrix-table {\r\n display: table;\r\n border-spacing: 0px;\r\n}\r\n.wdform-matrix-column {\r\n text-align: left;\r\n display: table-cell;\r\n}\r\n.wdform-matrix-cell {\r\n text-align: center;\r\n display: table-cell;\r\n padding: 6px 10px;\r\n}\r\n.wdform-matrix-head>div {\r\n display: table-cell;\r\n text-align: center;\r\n}\r\n.wdform-matrix-head {\r\n display: table-row;\r\n}\r\n.wdform-matrix-row0 {\r\n background: #DFDFDF;\r\n display: table-row;\r\n}\r\n.wdform-matrix-row1 {\r\n background: #E9E9E9;\r\n display: table-row;\r\n}\r\n.selected-text {\r\n text-align: left;\r\n}\r\n.wdform-quantity {\r\n width: 30px;\r\n margin: 2px 0px;\r\n}\r\n.wdform_scale_rating label {\r\n vertical-align: middle;\r\n}\r\n.ui-corner-all {\r\n border-radius: 0px;\r\n}\r\n.ui-widget-content {\r\n border: 0px;\r\n background: transparent;\r\n}\r\na.ui-spinner-button:hover {\r\n background: #5D0000 !important;\r\n color: #fff;\r\n}\r\na.ui-spinner-button:active {\r\n background: #5D0000 !important;\r\n color: #fff;\r\n}\r\na.ui-spinner-button:focus {\r\n background: #5D0000 !important;\r\n color: #fff;\r\n}\r\na.ui-slider-handle:hover {\r\n background: #5D0000 !important;\r\n color: #fff;\r\n}\r\na.ui-slider-handle:active {\r\n background: #5D0000 !important;\r\n color: #fff;\r\n}\r\na.ui-slider-handle:focus {\r\n background: #5D0000 !important;\r\n color: #fff;\r\n}\r\nui-state-hover {\r\n background: #5D0000 !important;\r\n color: #fff;\r\n}\r\n.ui-state-default {\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-widget-content .ui-state-default {\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-widget-header .ui-state-default {\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-slider-range {\r\n background: #942323 !important;\r\n}\r\n.wdform_map {\r\n border: 6px solid #fff;\r\n}\r\n.wdform-page-and-images {\r\n width: 100%;\r\n border: 0px !important;\r\n}\r\n.paypal-property {\r\n display: inline-block;\r\n margin-right: 15px;\r\n vertical-align: middle;\r\n}\r\n.sel-wrap {\r\n display: inline-block;\r\n vertical-align: middle;\r\n width:100%;\r\n}\r\n.sel-wrap select {\r\n position: absolute;\r\n z-index:-1;\r\n width: 0px !important;\r\n}\r\n.sel-imul {\r\n display: inline-block;\r\n}\r\n.sel-imul .sel-selected {\r\n cursor: pointer;\r\n position: relative;\r\n display: inline-block;\r\n border-radius: 0px;\r\n padding: 0px 0px 0px 2px;\r\n font-size: 13px;\r\n height: 23px;\r\n line-height: 23px;\r\n overflow: hidden;\r\n background: #fff;\r\n border: 0px solid #ccc;\r\n background-position: right 2px center;\r\n width: 100%;\r\n}\r\n.sel-imul.act .sel-selected {\r\n background: #fff;\r\n}\r\n.sel-selected .sel-arraw {\r\n height: 23px;\r\n width: 30px;\r\n background: url([SITE_ROOT]/images/03/02/01.png) 50% 50% no-repeat;\r\n position: absolute;\r\n top: 0px;\r\n right: 0px;\r\n padding: 0px;\r\n}\r\n.sel-imul .sel-options {\r\n background: #fff;\r\n border: 1px solid #dbdbdb;\r\n border-top: none;\r\n position: absolute;\r\n width: inherit;\r\n display: none;\r\n z-index: 10;\r\n max-height: 200px;\r\n overflow-y: auto;\r\n overflow-x: hidden;\r\n}\r\n.sel-options .sel-option {\r\n padding: 3px 4px;\r\n font-size: 13px;\r\n border: 1px solid #fff;\r\n border-right: none;\r\n border-left: none;\r\n text-align: left;\r\n}\r\n.sel-options .sel-option:hover {\r\n border-color: #dbdbdb;\r\n cursor: pointer;\r\n}\r\n.sel-options .sel-option.sel-ed {\r\n background: #dbdbdb;\r\n border-color: #dbdbdb;\r\n}\r\ninput[type=text]{\r\n margin: 0px;\r\n}\r\ninput[type=password]{\r\n margin: 0px;\r\n}\r\ninput[type=url]{\r\n margin: 0px;\r\n}\r\ninput[type=email]{\r\n margin: 0px;\r\n}\r\ninput.text{\r\n margin: 0px;\r\n}\r\ninput.title{\r\n margin: 0px;\r\n}\r\ntextarea{\r\n margin: 0px;\r\n}\r\nselect {\r\n margin: 0px;\r\n}\r\n.form-error {\r\n border-color: red !important;\r\n}\r\n.form-error:focus {\r\n border-color: red !important;\r\n}\r\n.wdform-field {\r\n display: table-cell;\r\n padding: 5px 0px;\r\n}\r\n.wdform-label-section{\r\n text-align: left;\r\n display: table-cell;\r\n}\r\n.wdform-element-section {\r\n text-align: left;\r\n display: table-cell;\r\n min-width: 140px;\r\n}\r\n.file-upload input {\r\n position: absolute;\r\n visibility: hidden;\r\n}\r\n.file-upload-status {\r\n margin-left: 10px;\r\n max-width: 200px;\r\n font-weight: bold;\r\n font-size: 16px;\r\n color: #888;\r\n position: absolute;\r\n border-radius: 0px;\r\n height: 23px;\r\n padding-left: 5px;\r\n padding-right: 5px;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n }\r\n.file-picker {\r\n width: 32px;\r\n height: 25px;\r\n background: url([SITE_ROOT]/images/03/upload.png);\r\n display: inline-block;\r\n}\r\ndiv.wdform-page-button {\r\n color: #414141;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 36px;\r\n line-height: 36px;\r\n background-color: #ACABAB;\r\npadding: 2px 15px;\r\nvertical-align: middle;\r\nborder: none;\r\nfont-size: 15px;\r\n}\r\n\r\n.button-submit {\r\nbackground: #811919;\r\ncursor: pointer;\r\nfont-size: 17px;\r\nmin-width: 80px;\r\nmin-height: 34px;\r\ncolor: #fff;\r\nborder: 2px solid #9E1919;\r\nmargin: 5px;\r\nbox-shadow: 0px 0px 1px 1px #811818;\r\nfont-family: Segoe UI;\r\n }\r\n.button-reset {\r\n background: #D8D6D7;\r\n cursor: pointer;\r\n font-size: 17px;\r\n min-width: 80px;\r\n min-height: 34px;\r\n color: #787878;\r\n border: 2px solid #fff;\r\n margin: 5px;\r\n box-shadow: 0px 0px 2px 1px #969495;\r\n font-family: Segoe UI;\r\n}\r\n.wdform_page {\r\n background: #F0EEEF;\r\n padding-top: 15px;\r\n border-radius: 0px;\r\n font-family: Segoe UI;\r\n}\r\n.wdform_column {\r\n padding-right: 30px !important;\r\n float: left;\r\n border-spacing: 2px;\r\n border-collapse: separate !important;\r\n}\r\n.wdform-field-section-break {\r\n text-align: center;\r\n}\r\n.wdform_section_break2 {\r\n margin: 16px 10px 16px 0px;\r\n display: inline-block;\r\n background: url([SITE_ROOT]/images/03/02/bg.png);\r\n text-align: left;\r\n padding: 10px 20px 10px 50px;\r\n border-radius: 0px;\r\n -moz-box-shadow: 7px -9px 20px -5px rgba(0, 0, 0, 0.23), -7px 9px 20px -5px rgba(0, 0, 0, 0.23);\r\n -webkit-box-shadow: 7px -9px 20px -5px rgba(0, 0, 0, 0.23), -7px 9px 20px -5px rgba(0, 0, 0, 0.23);\r\n box-shadow: 7px -9px 20px -5px rgba(0, 0, 0, 0.23), -7px 9px 20px -5px rgba(0, 0, 0, 0.23);\r\n width: 466px;\r\n text-align: right;\r\n color: #fff;\r\nfont-size: 18px;\r\n}\r\n\r\n.wdform_section_break\r\n{\r\nmargin: 16px 15px;\r\ntext-align: left;\r\ncolor: #555;\r\nfont-size: 18px;\r\n}\r\n.wdform_section {\r\n display: inline-block;\r\n padding: 0px 15px;\r\n}\r\nselect {\r\n border-radius: 0px;\r\n padding: 2px;\r\n height: 26px;\r\n overflow: hidden;\r\n border: 0px solid #ccc;\r\n padding: 2px;\r\n outline: none;\r\n}\r\ninput[type="text"]{\r\n border-radius: 0px;\r\n height: 25px;\r\n border: 0px solid #ccc;\r\n padding:0 3px !important;\r\n}\r\ninput[type="password"]{\r\n border-radius: 0px;\r\n height: 25px;\r\n border: 0px solid #ccc;\r\n padding:0 3px !important;\r\n}\r\ntextarea {\r\n border-radius: 0px;\r\n height: 25px;\r\n border: 0px solid #ccc;\r\n padding:0 3px !important;\r\n}\r\ninput[type="text"]:focus{\r\n border-color: #FFB471;\r\n outline: none;\r\n}\r\ninput[type="password"]:focus{\r\n border-color: #FFB471;\r\n outline: none;\r\n}\r\ntextarea:focus{\r\n border-color: #FFB471;\r\n outline: none;\r\n}\r\n\r\n.input_deactive {\r\n color: #999999;\r\n font-style: italic;\r\n}\r\n.input_active {\r\n color: #000000;\r\n font-style: normal;\r\n}\r\n.am_pm_select {\r\n width: 30px;\r\n vertical-align: middle;\r\n}\r\n.checkbox-div input[type=checkbox] {\r\n position : absolute;\r\n z-index: -1;\r\n}\r\n.checkbox-div {\r\n width: 13px;\r\n height: 12px;\r\n background: transparent;\r\n border: 1px solid #A7A7A7;\r\n border-radius: 0px;\r\n position: relative;\r\n display: inline-block;\r\n}\r\n.checkbox-div label {\r\n cursor: pointer;\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\r\n filter: alpha(opacity=0);\r\n opacity: 0;\r\n content: "";\r\n position: absolute;\r\n width: 16px;\r\n height: 13px;\r\n background: url([SITE_ROOT]/images/03/checkbox.png);\r\n border-radius: 0px;\r\n top: -3px;\r\n left: 1px;\r\n}\r\n.checkbox-div label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.checkbox-div .wdform-ch-rad-label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.wdform-ch-rad-label:hover + .checkbox-div label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.checkbox-div input[type=checkbox]:checked + label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";\r\n filter: alpha(opacity=100);\r\n opacity: 1;\r\n}\r\n.wdform-calendar-button,\r\n.wdform-calendar-button:hover {\r\n display:inline-block;\r\n background: transparent url([SITE_ROOT]/images/03/date.png) no-repeat left 50% !important;\r\n border: 0px;\r\n color: transparent;\r\n width: 22px;\r\n height: 24px;\r\n position: relative;\r\n left: -22px;\r\n vertical-align: top;\r\n}\r\n.wdform-calendar-button:focus {\r\n outline:none; \r\n}\r\n.radio-div input[type=radio] {\r\n position : absolute;\r\n z-index: -1;\r\n}\r\n.forlabs {\r\n float: right;\r\n margin-right: 20px;\r\n}\r\n.radio-div {\r\n width: 13px;\r\n height: 12px;\r\n background: transparent;\r\n border: 1px solid #A7A7A7;\r\n border-radius: 0px;\r\n position: relative;\r\n display: inline-block;\r\n top: 2px;\r\n}\r\n.radio-div label {\r\n cursor: pointer;\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\r\n filter: alpha(opacity=0);\r\n opacity: 0;\r\n content: "";\r\n position: absolute;\r\n width: 9px;\r\n height: 8px;\r\n background: #A7A7A7;\r\n border-radius: 0px;\r\n top: 2px;\r\n left: 2px;\r\n}\r\n.radio-div label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.radio-div .wdform-ch-rad-label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.wdform-ch-rad-label:hover + .radio-div label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.radio-div input[type=radio]:checked + label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";\r\n filter: alpha(opacity=100);\r\n opacity: 1;\r\n}\r\n.if-ie-div-label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)" !important;\r\n filter: alpha(opacity=100) !important;\r\n opacity: 1 !important;\r\n}\r\n.wdform-ch-rad-label {\r\n display: inline;\r\n margin: -4px 5px 5px 5px;\r\n float: left;\r\n color: #000;\r\n cursor: pointer\r\n}\r\ntextarea {\r\n padding-top: 5px;\r\n}\r\n.wdform-date {\r\n display:inline-block;\r\n width: 105px\r\n}\r\n.wdform_footer {\r\n margin-top: 15px;\r\n background-color: #DFDFDF;\r\n}\r\n.page-numbers {\r\n vertical-align: middle;\r\n}\r\n.time_box {\r\n text-align: right;\r\n width: 30px;\r\n vertical-align: middle\r\n}\r\n.mini_label {\r\n font-size: 10px;\r\n font-family: "Lucida Grande", Tahoma, Arial, Verdana, sans-serif;\r\n color: #A8A8A8;\r\n}\r\n.wdform-label {\r\n border: none;\r\n color: #000;\r\n vertical-align: top;\r\n line-height: 17px;\r\n}\r\n.wdform_colon {\r\n color: #000\r\n}\r\n.wdform_separator {\r\n font-style: bold;\r\n vertical-align: middle;\r\n color: #000;\r\n}\r\n.wdform_line {\r\n color: #000\r\n}\r\n.wdform-required {\r\n border: none;\r\n color: red;\r\n vertical-align: top;\r\n}\r\n.captcha_img {\r\n border-width: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n cursor: pointer;\r\n border-radius: 0px;\r\n}\r\n.captcha_refresh {\r\n width: 30px;\r\n height: 30px;\r\n border-width: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n vertical-align: middle;\r\n cursor: pointer;\r\n background-image: url([SITE_ROOT]/images/refresh_black.png);\r\n}\r\n.captcha_input {\r\n height: 20px;\r\n border-width: 1px;\r\n margin: 0px;\r\n padding: 0px;\r\n vertical-align: middle;\r\n}\r\n.file_upload {\r\n border: 0px solid white;\r\n border-radius: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n color: black;\r\n background-color: white;\r\n}\r\n.page_deactive {\r\n color: #fff;\r\n background-color: #640B0B;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 20px;\r\n text-align: center;\r\n vertical-align: bottom;\r\n padding-top: 5px;\r\n padding: 5px 25px 0px 25px;\r\n font-size: 12px;\r\n}\r\n.page_active {\r\n color: #fff;\r\n background-color: #942323;\r\n cursor: pointer;\r\n display: inline-block;\r\n vertical-align: bottom;\r\n height: 33px;\r\n text-align: center;\r\n font-size: 21px;\r\n padding: 5px 20px 0px 20px;\r\n margin-bottom: -13px;\r\n}\r\n.page_percentage_active {\r\n padding: 0px;\r\n margin: 0px;\r\n border-spacing: 0px;\r\n height: 18px;\r\n line-height: 20px;\r\n font-size: 15px;\r\n float: left;\r\n text-align: right !important;\r\n z-index: 1;\r\n position: relative;\r\n background: #752D2D ; /* Old browsers */\r\n background: -moz-linear-gradient(left, #9A0B0B 0%, #7B2828 39%, #752D2D 100%); /* FF3.6+ */\r\n background: -webkit-gradient(linear, left top, right top, color-stop(0%, #9A0B0B ), color-stop(39%, #7B2828 ), color-stop(100%, #752D2D )); /* Chrome,Safari4+ */\r\n background: -webkit-linear-gradient(left, #9A0B0B 0%, #7B2828 39%, #752D2D 100%); /* Chrome10+,Safari5.1+ */\r\n background: -o-linear-gradient(left, #9A0B0B 0%, #7B2828 39%, #752D2D 100%); /* Opera 11.10+ */\r\n background: -ms-linear-gradient(left, #9A0B0B 0%, #7B2828 39%, #752D2D 100%); /* IE10+ */\r\n background: linear-gradient(to right, #9A0B0B 0%, #7B2828 39%, #752D2D 100%); /* W3C */\r\n vertical-align: middle;\r\n}\r\n.page_percentage_deactive {\r\n height: 18px;\r\n line-height: 20px;\r\n background-color: #DFDFDF;\r\n text-align: left !important;\r\n margin-bottom: 1px;\r\n}\r\n.page_numbers {\r\n font-size: 14px;\r\n color: #000;\r\n}\r\n.phone_area_code {\r\n width: 50px;\r\n}\r\n.phone_number {\r\n width: 100px;\r\n}\r\nbutton {\r\n cursor: pointer;\r\n}\r\n.other_input {\r\n border-radius: 0px;\r\n border-width: 1px;\r\n height: 16px;\r\n font-size: 12px;\r\n padding: 1px;\r\n margin: 1px;\r\n margin-left: 25px;\r\n z-index: 100;\r\n position: absolute;\r\n}\r\n.wdform_page_navigation {\r\n text-align: center!important;\r\n margin-bottom: 0px;\r\n}\r\n.wdform_percentage_text {\r\n margin: 3px -34px 3px 9px;\r\n color: #FFFFFF;\r\n font-weight: normal;\r\n font-size: 12px;\r\nline-height:18px;\r\n}\r\n.wdform_percentage_title {\r\n color: #000000;\r\n font-style: italic;\r\n margin: 0px 0px 0px 40px;\r\n display: inline-block;\r\n line-height: 20px;\r\n height: 20px;\r\n vertical-align: middle;\r\n}\r\n.wdform_percentage_arrow {\r\n display: inline-block;\r\n width: 34px;\r\n height: 18px;\r\n background: url([SITE_ROOT]/images/03/02/percentage_arrow.png);\r\n position: relative;\r\n left: -1px;\r\ntop:0px;\r\n z-index: 0;\r\n vertical-align: middle;\r\n}\r\n.wdform_button button {\r\n background: #4D792C;\r\n cursor: pointer;\r\n font-size: 17px;\r\n border-radius: 0px;\r\n min-width: 80px;\r\n min-height: 31px;\r\n color: #fff;\r\n border: 2px solid #68943B;\r\n margin: 5px;\r\n box-shadow: 0px 0px 2px #c9c9c9;\r\n font-family: Segoe UI;\r\n}\', 0)');
94
- $wpdb->query('INSERT INTO `' . $wpdb->prefix . 'contactformmaker_themes` (`id`, `title`, `css`, `default`) VALUES(11, \'Theme 03 dark cyan\', \'.wdform-page-and-images .other_input\r\n{\r\nmax-width: none;\r\n}\r\nbutton,\r\ninput,\r\nselect,\r\ntextarea\r\n{\r\nfont-size:14px;\r\n}\r\n.warning,\r\n.error\r\n{\r\nbackground-color: #F0EEEF;\r\nborder: 1px solid #0B7A97;\r\nmargin-bottom: 10px;\r\ncolor: #0B7A97;\r\npadding: 5px;\r\n}\r\n.warning *,\r\n.error *\r\n{\r\nmargin:0;\r\n}\r\n.recaptcha_input_area input\r\n{\r\nheight:initial !important;\r\n}\r\na.ui-slider-handle {\r\n border-radius: 0px;\r\n border: 1px solid #39680B;\r\n background: #C9FD9C;\r\n height: 13px;\r\n width: 13px;\r\n}\r\n.ui-slider-horizontal .ui-slider-handle {\r\n top: -5px !important;\r\n}\r\n.ui-slider {\r\n height: 6px;\r\n background: #fff !important;\r\n margin: 7px 0px;\r\n}\r\n.wdform_grading input {\r\n width: 100px;\r\n}\r\n.wdform-matrix-cell input[type="text"] {\r\n width: 100px;\r\n}\r\n.wdform-matrix-cell select {\r\n width: 60px;\r\n}\r\n.wdform_section .wdform_column:last-child {\r\n padding-right: 0px !important;\r\n}\r\n.wdform_preload {\r\n display: none;\r\n}\r\n.wdform_grading {\r\n padding: 3px 0px;\r\n}\r\n.wdform-matrix-table {\r\n display: table;\r\n border-spacing: 0px;\r\n}\r\n.wdform-matrix-column {\r\n text-align: left;\r\n display: table-cell;\r\n}\r\n.wdform-matrix-cell {\r\n text-align: center;\r\n display: table-cell;\r\n padding: 6px 10px;\r\n}\r\n.wdform-matrix-head>div {\r\n display: table-cell;\r\n text-align: center;\r\n}\r\n.wdform-matrix-head {\r\n display: table-row;\r\n}\r\n.wdform-matrix-row0 {\r\n background: #DFDFDF;\r\n display: table-row;\r\n}\r\n.wdform-matrix-row1 {\r\n background: #E9E9E9;\r\n display: table-row;\r\n}\r\n.selected-text {\r\n text-align: left;\r\n}\r\n.wdform-quantity {\r\n width: 30px;\r\n margin: 2px 0px;\r\n}\r\n.wdform_scale_rating label {\r\n vertical-align: middle;\r\n}\r\n.ui-corner-all {\r\n border-radius: 0px;\r\n}\r\n.ui-widget-content {\r\n border: 0px;\r\n background: transparent;\r\n}\r\na.ui-spinner-button:hover {\r\n background: #0C6177 !important;\r\n color: #fff;\r\n}\r\na.ui-spinner-button:active {\r\n background: #0C6177 !important;\r\n color: #fff;\r\n}\r\na.ui-spinner-button:focus {\r\n background: #0C6177 !important;\r\n color: #fff;\r\n}\r\na.ui-slider-handle:hover {\r\n background: #0C6177 !important;\r\n color: #fff;\r\n}\r\na.ui-slider-handle:active {\r\n background: #0C6177 !important;\r\n color: #fff;\r\n}\r\na.ui-slider-handle:focus {\r\n background: #0C6177 !important;\r\n color: #fff;\r\n}\r\nui-state-hover {\r\n background: #0C6177 !important;\r\n color: #fff;\r\n}\r\n.ui-state-default {\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-widget-content .ui-state-default {\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-widget-header .ui-state-default {\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-slider-range {\r\n background: #2796B3 !important;\r\n}\r\n.wdform_map {\r\n border: 6px solid #fff;\r\n}\r\n.wdform-page-and-images {\r\n width: 100%;\r\n border: 0px !important;\r\n}\r\n.paypal-property {\r\n display: inline-block;\r\n margin-right: 15px;\r\n vertical-align: middle;\r\n}\r\n.sel-wrap {\r\n display: inline-block;\r\n vertical-align: middle;\r\n width:100%;\r\n}\r\n.sel-wrap select {\r\n position: absolute;\r\n z-index:-1;\r\n width: 0px !important;\r\n}\r\n.sel-imul {\r\n display: inline-block;\r\n}\r\n.sel-imul .sel-selected {\r\n cursor: pointer;\r\n position: relative;\r\n display: inline-block;\r\n border-radius: 0px;\r\n padding: 0px 0px 0px 2px;\r\n font-size: 13px;\r\n height: 23px;\r\n line-height: 23px;\r\n overflow: hidden;\r\n background: #fff;\r\n border: 0px solid #ccc;\r\n background-position: right 2px center;\r\n width: 100%;\r\n}\r\n.sel-imul.act .sel-selected {\r\n background: #fff;\r\n}\r\n.sel-selected .sel-arraw {\r\n height: 23px;\r\n width: 30px;\r\n background: url([SITE_ROOT]/images/03/03/01.png) 50% 50% no-repeat;\r\n position: absolute;\r\n top: 0px;\r\n right: 0px;\r\n padding: 0px;\r\n}\r\n.sel-imul .sel-options {\r\n background: #fff;\r\n border: 1px solid #dbdbdb;\r\n border-top: none;\r\n position: absolute;\r\n width: inherit;\r\n display: none;\r\n z-index: 10;\r\n max-height: 200px;\r\n overflow-y: auto;\r\n overflow-x: hidden;\r\n}\r\n.sel-options .sel-option {\r\n padding: 3px 4px;\r\n font-size: 13px;\r\n border: 1px solid #fff;\r\n border-right: none;\r\n border-left: none;\r\n text-align: left;\r\n}\r\n.sel-options .sel-option:hover {\r\n border-color: #dbdbdb;\r\n cursor: pointer;\r\n}\r\n.sel-options .sel-option.sel-ed {\r\n background: #dbdbdb;\r\n border-color: #dbdbdb;\r\n}\r\ninput[type=text]{\r\n margin: 0px;\r\n}\r\ninput[type=password]{\r\n margin: 0px;\r\n}\r\ninput[type=url]{\r\n margin: 0px;\r\n}\r\ninput[type=email]{\r\n margin: 0px;\r\n}\r\ninput.text{\r\n margin: 0px;\r\n}\r\ninput.title{\r\n margin: 0px;\r\n}\r\ntextarea{\r\n margin: 0px;\r\n}\r\nselect {\r\n margin: 0px;\r\n}\r\n.form-error {\r\n border-color: red !important;\r\n}\r\n.form-error:focus {\r\n border-color: red !important;\r\n}\r\n.wdform-field {\r\n display: table-cell;\r\n padding: 5px 0px;\r\n}\r\n.wdform-label-section{\r\n text-align: left;\r\n display: table-cell;\r\n}\r\n.wdform-element-section {\r\n text-align: left;\r\n display: table-cell;\r\n min-width: 140px;\r\n}\r\n.file-upload input {\r\n position: absolute;\r\n visibility: hidden;\r\n}\r\n.file-upload-status {\r\n margin-left: 10px;\r\n max-width: 200px;\r\n font-weight: bold;\r\n font-size: 16px;\r\n color: #888;\r\n position: absolute;\r\n border-radius: 0px;\r\n height: 23px;\r\n padding-left: 5px;\r\n padding-right: 5px;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n }\r\n.file-picker {\r\n width: 32px;\r\n height: 25px;\r\n background: url([SITE_ROOT]/images/03/upload.png);\r\n display: inline-block;\r\n}\r\ndiv.wdform-page-button {\r\n color: #414141;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 36px;\r\n line-height: 36px;\r\n background-color: #ACABAB;\r\npadding: 2px 15px;\r\nvertical-align: middle;\r\nborder: none;\r\nfont-size: 15px;\r\n}\r\n\r\n.button-submit {\r\nbackground: #0B7A97;\r\ncursor: pointer;\r\nfont-size: 17px;\r\nmin-width: 80px;\r\nmin-height: 34px;\r\ncolor: #fff;\r\nborder: 2px solid #18627C;\r\nmargin: 5px;\r\nbox-shadow: 0px 0px 1px 1px #56B4D5;\r\nfont-family: Segoe UI;\r\n}\r\n.button-reset {\r\n background: #D8D6D7;\r\n cursor: pointer;\r\n font-size: 17px;\r\n min-width: 80px;\r\n min-height: 34px;\r\n color: #787878;\r\n border: 2px solid #fff;\r\n margin: 5px;\r\n box-shadow: 0px 0px 2px 1px #969495;\r\n font-family: Segoe UI;\r\n}\r\n.wdform_page {\r\n background: #F0EEEF;\r\n padding-top: 15px;\r\n border-radius: 0px;\r\n font-family: Segoe UI;\r\n}\r\n.wdform_column {\r\n padding-right: 30px !important;\r\n float: left;\r\n border-spacing: 2px;\r\n border-collapse: separate !important;\r\n}\r\n.wdform-field-section-break {\r\n text-align: center;\r\n}\r\n.wdform_section_break2 {\r\n margin: 16px 10px 16px 0px;\r\n display: inline-block;\r\n background: url([SITE_ROOT]/images/03/03/bg.png);\r\n text-align: left;\r\n padding: 10px 20px 10px 50px;\r\n border-radius: 0px;\r\n -moz-box-shadow: 7px -9px 20px -5px rgba(0, 0, 0, 0.23), -7px 9px 20px -5px rgba(0, 0, 0, 0.23);\r\n -webkit-box-shadow: 7px -9px 20px -5px rgba(0, 0, 0, 0.23), -7px 9px 20px -5px rgba(0, 0, 0, 0.23);\r\n box-shadow: 7px -9px 20px -5px rgba(0, 0, 0, 0.23), -7px 9px 20px -5px rgba(0, 0, 0, 0.23);\r\n width: 466px;\r\n text-align: right;\r\n color: #fff;\r\nfont-size:18px;\r\n}\r\n\r\n.wdform_section_break\r\n{\r\nmargin: 16px 15px;\r\ntext-align: left;\r\ncolor: #555;\r\nfont-size:18px;\r\n}\r\n.wdform_section {\r\n display: inline-block;\r\n padding: 0px 15px;\r\n}\r\nselect {\r\n border-radius: 0px;\r\n padding: 2px;\r\n height: 26px;\r\n overflow: hidden;\r\n border: 0px solid #ccc;\r\n padding: 2px;\r\n outline: none;\r\n}\r\ninput[type="text"]{\r\n border-radius: 0px;\r\n height: 25px;\r\n border: 0px solid #ccc;\r\n padding:0 3px !important;\r\n}\r\ninput[type="password"]{\r\n border-radius: 0px;\r\n height: 25px;\r\n border: 0px solid #ccc;\r\n padding:0 3px !important;\r\n}\r\ntextarea {\r\n border-radius: 0px;\r\n height: 25px;\r\n border: 0px solid #ccc;\r\n padding:0 3px !important;\r\n}\r\ninput[type="text"]:focus{\r\n border-color: #FFB471;\r\n outline: none;\r\n}\r\ninput[type="password"]:focus{\r\n border-color: #FFB471;\r\n outline: none;\r\n}\r\ntextarea:focus{\r\n border-color: #FFB471;\r\n outline: none;\r\n}\r\n\r\n.input_deactive {\r\n color: #999999;\r\n font-style: italic;\r\n}\r\n.input_active {\r\n color: #000000;\r\n font-style: normal;\r\n}\r\n.am_pm_select {\r\n width: 30px;\r\n vertical-align: middle;\r\n}\r\n.checkbox-div input[type=checkbox] {\r\n position : absolute;\r\n z-index: -1;\r\n}\r\n.checkbox-div {\r\n width: 13px;\r\n height: 12px;\r\n background: transparent;\r\n border: 1px solid #A7A7A7;\r\n border-radius: 0px;\r\n position: relative;\r\n display: inline-block;\r\n}\r\n.checkbox-div label {\r\n cursor: pointer;\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\r\n filter: alpha(opacity=0);\r\n opacity: 0;\r\n content: "";\r\n position: absolute;\r\n width: 16px;\r\n height: 13px;\r\n background: url([SITE_ROOT]/images/03/checkbox.png);\r\n border-radius: 0px;\r\n top: -3px;\r\n left: 1px;\r\n}\r\n.checkbox-div label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.checkbox-div .wdform-ch-rad-label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.wdform-ch-rad-label:hover + .checkbox-div label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.checkbox-div input[type=checkbox]:checked + label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";\r\n filter: alpha(opacity=100);\r\n opacity: 1;\r\n}\r\n.wdform-calendar-button,\r\n.wdform-calendar-button:hover {\r\n display:inline-block;\r\n background: transparent url([SITE_ROOT]/images/03/date.png) no-repeat left 50% !important;\r\n border: 0px;\r\n color: transparent;\r\n width: 22px;\r\n height: 24px;\r\n position: relative;\r\n left: -22px;\r\n vertical-align: top;\r\n}\r\n.wdform-calendar-button:focus {\r\n outline:none; \r\n}\r\n.radio-div input[type=radio] {\r\n position : absolute;\r\n z-index: -1;\r\n}\r\n.forlabs {\r\n float: right;\r\n margin-right: 20px;\r\n}\r\n.radio-div {\r\n width: 13px;\r\n height: 12px;\r\n background: transparent;\r\n border: 1px solid #A7A7A7;\r\n border-radius: 0px;\r\n position: relative;\r\n display: inline-block;\r\n top: 2px;\r\n}\r\n.radio-div label {\r\n cursor: pointer;\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\r\n filter: alpha(opacity=0);\r\n opacity: 0;\r\n content: "";\r\n position: absolute;\r\n width: 9px;\r\n height: 8px;\r\n background: #A7A7A7;\r\n border-radius: 0px;\r\n top: 2px;\r\n left: 2px;\r\n}\r\n.radio-div label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.radio-div .wdform-ch-rad-label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.wdform-ch-rad-label:hover + .radio-div label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.radio-div input[type=radio]:checked + label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";\r\n filter: alpha(opacity=100);\r\n opacity: 1;\r\n}\r\n.if-ie-div-label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)" !important;\r\n filter: alpha(opacity=100) !important;\r\n opacity: 1 !important;\r\n}\r\n.wdform-ch-rad-label {\r\n display: inline;\r\n margin: -4px 5px 5px 5px;\r\n float: left;\r\n color: #000;\r\n cursor: pointer\r\n}\r\ntextarea {\r\n padding-top: 5px;\r\n}\r\n.wdform-date {\r\n display:inline-block;\r\n width: 105px\r\n}\r\n.wdform_footer {\r\n margin-top: 15px;\r\n background-color: #DFDFDF;\r\n}\r\n.page-numbers {\r\n vertical-align: middle;\r\n}\r\n.time_box {\r\n text-align: right;\r\n width: 30px;\r\n vertical-align: middle\r\n}\r\n.mini_label {\r\n font-size: 10px;\r\n font-family: "Lucida Grande", Tahoma, Arial, Verdana, sans-serif;\r\n color: #A8A8A8;\r\n}\r\n.wdform-label {\r\n border: none;\r\n color: #000;\r\n vertical-align: top;\r\n line-height: 17px;\r\n}\r\n.wdform_colon {\r\n color: #000\r\n}\r\n.wdform_separator {\r\n font-style: bold;\r\n vertical-align: middle;\r\n color: #000;\r\n}\r\n.wdform_line {\r\n color: #000\r\n}\r\n.wdform-required {\r\n border: none;\r\n color: red;\r\n vertical-align: top;\r\n}\r\n.captcha_img {\r\n border-width: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n cursor: pointer;\r\n border-radius: 0px;\r\n}\r\n.captcha_refresh {\r\n width: 30px;\r\n height: 30px;\r\n border-width: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n vertical-align: middle;\r\n cursor: pointer;\r\n background-image: url([SITE_ROOT]/images/refresh_black.png);\r\n}\r\n.captcha_input {\r\n height: 20px;\r\n border-width: 1px;\r\n margin: 0px;\r\n padding: 0px;\r\n vertical-align: middle;\r\n}\r\n.file_upload {\r\n border: 0px solid white;\r\n border-radius: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n color: black;\r\n background-color: white;\r\n}\r\n.page_deactive {\r\n color: #fff;\r\n background-color: #0C6177;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 20px;\r\n text-align: center;\r\n vertical-align: bottom;\r\n padding-top: 5px;\r\n padding: 5px 25px 0px 25px;\r\n font-size: 12px;\r\n}\r\n.page_active {\r\n color: #fff;\r\n background-color: #2796B3;\r\n cursor: pointer;\r\n display: inline-block;\r\n vertical-align: bottom;\r\n height: 33px;\r\n text-align: center;\r\n font-size: 21px;\r\n padding: 5px 20px 0px 20px;\r\n margin-bottom: -13px;\r\n}\r\n.page_percentage_active {\r\n padding: 0px;\r\n margin: 0px;\r\n border-spacing: 0px;\r\n height: 18px;\r\n line-height: 20px;\r\n font-size: 15px;\r\n float: left;\r\n text-align: right !important;\r\n z-index: 1;\r\n position: relative;\r\n background: #752D2D ; /* Old browsers */\r\n background: -moz-linear-gradient(left, #0E6378 0%, #2C7487 39%, #2D7587 100%); /* FF3.6+ */\r\n background: -webkit-gradient(linear, left top, right top, color-stop(0%, #0E6378 ), color-stop(39%, #2C7487 ), color-stop(100%, #2D7587 )); /* Chrome,Safari4+ */\r\n background: -webkit-linear-gradient(left, #0E6378 0%, #2C7487 39%, #2D7587 100%); /* Chrome10+,Safari5.1+ */\r\n background: -o-linear-gradient(left, #0E6378 0%, #2C7487 39%, #2D7587 100%); /* Opera 11.10+ */\r\n background: -ms-linear-gradient(left, #0E6378 0%, #2C7487 39%, #2D7587 100%); /* IE10+ */\r\n background: linear-gradient(to right, #0E6378 0%, #2C7487 39%, #2D7587 100%); /* W3C */\r\n vertical-align: middle;\r\n}\r\n.page_percentage_deactive {\r\n height: 18px;\r\n line-height: 20px;\r\n background-color: #DFDFDF;\r\n text-align: left !important;\r\n margin-bottom: 1px;\r\n}\r\n.page_numbers {\r\n font-size: 14px;\r\n color: #000;\r\n}\r\n.phone_area_code {\r\n width: 50px;\r\n}\r\n.phone_number {\r\n width: 100px;\r\n}\r\nbutton {\r\n cursor: pointer;\r\n}\r\n.other_input {\r\n border-radius: 0px;\r\n border-width: 1px;\r\n height: 16px;\r\n font-size: 12px;\r\n padding: 1px;\r\n margin: 1px;\r\n margin-left: 25px;\r\n z-index: 100;\r\n position: absolute;\r\n}\r\n.wdform_page_navigation {\r\n text-align: center!important;\r\n margin-bottom: 0px;\r\n}\r\n.wdform_percentage_text {\r\n margin: 3px -34px 3px 9px;\r\n color: #FFFFFF;\r\n font-weight: normal;\r\n font-size: 12px;\r\nline-height:18px;\r\n}\r\n.wdform_percentage_title {\r\n color: #000000;\r\n font-style: italic;\r\n margin: 0px 0px 0px 40px;\r\n display: inline-block;\r\n line-height: 20px;\r\n height: 20px;\r\n vertical-align: middle;\r\n}\r\n.wdform_percentage_arrow {\r\n display: inline-block;\r\n width: 34px;\r\n height: 18px;\r\n background: url([SITE_ROOT]/images/03/03/percentage_arrow.png);\r\n position: relative;\r\n left: -1px;\r\ntop:0px;\r\n z-index: 0;\r\n vertical-align: middle;\r\n}\r\n.wdform_button button {\r\n background: #4D792C;\r\n cursor: pointer;\r\n font-size: 17px;\r\n border-radius: 0px;\r\n min-width: 80px;\r\n min-height: 31px;\r\n color: #fff;\r\n border: 2px solid #68943B;\r\n margin: 5px;\r\n box-shadow: 0px 0px 2px #c9c9c9;\r\n font-family: Segoe UI;\r\n}\', 0)');
95
- $wpdb->query('INSERT INTO `' . $wpdb->prefix . 'contactformmaker_themes` (`id`, `title`, `css`, `default`) VALUES(12, \'Theme 03 transparent (salmon button)\', \'.radio-div input[type="radio"],\r\n.checkbox-div input[type="checkbox"]\r\n{\r\nvisibility: hidden;\r\n}\r\n.wdform-page-and-images .other_input\r\n{\r\nmax-width: none;\r\n}\r\nbutton,\r\ninput,\r\nselect,\r\ntextarea\r\n{\r\nfont-size:14px;\r\n}\r\n.warning,\r\n.error\r\n{\r\nbackground-color: #D8D6D7;\r\nborder: 1px solid #D8D6D7;\r\nmargin-bottom: 10px;\r\ncolor: #D8D6D7;\r\npadding: 5px;\r\n}\r\n.warning *,\r\n.error *\r\n{\r\nmargin:0;\r\n}\r\n.recaptcha_input_area input\r\n{\r\nheight:initial !important;\r\n}\r\na.ui-slider-handle {\r\n border-radius: 0px;\r\n border: 1px solid #39680B;\r\n background: #C9FD9C;\r\n height: 13px;\r\n width: 13px;\r\n}\r\n.ui-slider-horizontal .ui-slider-handle {\r\n top: -5px !important;\r\n}\r\n.ui-slider {\r\n height: 6px;\r\n background: #fff !important;\r\n margin: 7px 0px;\r\n}\r\n.wdform_grading input {\r\n width: 100px;\r\n}\r\n.wdform-matrix-cell input[type="text"] {\r\n width: 100px;\r\n}\r\n.wdform-matrix-cell select {\r\n width: 60px;\r\n}\r\n.wdform_section .wdform_column:last-child {\r\n padding-right: 0px !important;\r\n}\r\n.wdform_preload {\r\n display: none;\r\n}\r\n.wdform_grading {\r\n padding: 3px 0px;\r\n}\r\n.wdform-matrix-table {\r\n display: table;\r\n border-spacing: 0px;\r\n}\r\n.wdform-matrix-column {\r\n text-align: left;\r\n display: table-cell;\r\n}\r\n.wdform-matrix-cell {\r\n text-align: center;\r\n display: table-cell;\r\n padding: 6px 10px;\r\n}\r\n.wdform-matrix-head>div {\r\n display: table-cell;\r\n text-align: center;\r\n}\r\n.wdform-matrix-head {\r\n display: table-row;\r\n}\r\n.wdform-matrix-row0 {\r\n background: #DFDFDF;\r\n display: table-row;\r\n}\r\n.wdform-matrix-row1 {\r\n background: #E9E9E9;\r\n display: table-row;\r\n}\r\n.selected-text {\r\n text-align: left;\r\n}\r\n.wdform-quantity {\r\n width: 30px;\r\n margin: 2px 0px;\r\n}\r\n.wdform_scale_rating label {\r\n vertical-align: middle;\r\n}\r\n.ui-corner-all {\r\n border-radius: 0px;\r\n}\r\n.ui-widget-content {\r\n border: 0px;\r\n background: transparent;\r\n}\r\na.ui-spinner-button:hover {\r\n background: #FA8072 !important;\r\n color: #fff;\r\n}\r\na.ui-spinner-button:active {\r\n background: #FA8072 !important;\r\n color: #fff;\r\n}\r\na.ui-spinner-button:focus {\r\n background: #FA8072 !important;\r\n color: #fff;\r\n}\r\na.ui-slider-handle:hover {\r\n background: #FA8072 !important;\r\n color: #fff;\r\n}\r\na.ui-slider-handle:active {\r\n background: #FA8072 !important;\r\n color: #fff;\r\n}\r\na.ui-slider-handle:focus {\r\n background: #FA8072 !important;\r\n color: #fff;\r\n}\r\nui-state-hover {\r\n background: #FA8072 !important;\r\n color: #fff;\r\n}\r\n.ui-state-default {\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-widget-content .ui-state-default {\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-widget-header .ui-state-default {\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-slider-range {\r\n background: #C9FD9C !important;\r\n}\r\n.wdform_map {\r\n border: 6px solid #fff;\r\n}\r\n.wdform-page-and-images {\r\n width: 100%;\r\n border: 0px !important;\r\n}\r\n.paypal-property {\r\n display: inline-block;\r\n margin-right: 15px;\r\n vertical-align: middle;\r\n}\r\n.sel-wrap {\r\n display: inline-block;\r\n vertical-align: middle;\r\n width:100%;\r\n}\r\n.sel-wrap select {\r\n position: absolute;\r\n z-index:-1;\r\n width: 0px !important;\r\n}\r\n.sel-imul {\r\n display: inline-block;\r\n}\r\n.sel-imul .sel-selected {\r\n cursor: pointer;\r\n position: relative;\r\n display: inline-block;\r\n border-radius: 0px;\r\n padding: 0px 0px 0px 2px;\r\n font-size: 13px;\r\n height: 23px;\r\n line-height: 23px;\r\n overflow: hidden;\r\n background: #fff;\r\n border: 0px solid #ccc;\r\n background-position: right 2px center;\r\n width: 100%;\r\n}\r\n.sel-imul.act .sel-selected {\r\n background: #fff;\r\n}\r\n.sel-selected .sel-arraw {\r\n height: 23px;\r\n width: 30px;\r\n background: url([SITE_ROOT]/images/03/01/01.png) 50% 50% no-repeat;\r\n position: absolute;\r\n top: 0px;\r\n right: 0px;\r\n padding: 0px;\r\n}\r\n.sel-imul .sel-options {\r\n background: #fff;\r\n border: 1px solid #dbdbdb;\r\n border-top: none;\r\n position: absolute;\r\n width: inherit;\r\n display: none;\r\n z-index: 10;\r\n max-height: 200px;\r\n overflow-y: auto;\r\n overflow-x: hidden;\r\n}\r\n.sel-options .sel-option {\r\n padding: 3px 4px;\r\n font-size: 13px;\r\n border: 1px solid #fff;\r\n border-right: none;\r\n border-left: none;\r\n text-align: left;\r\n}\r\n.sel-options .sel-option:hover {\r\n border-color: #dbdbdb;\r\n cursor: pointer;\r\n}\r\n.sel-options .sel-option.sel-ed {\r\n background: #dbdbdb;\r\n border-color: #dbdbdb;\r\n}\r\ninput[type=text]{\r\n margin: 0px;\r\n}\r\ninput[type=password]{\r\n margin: 0px;\r\n}\r\ninput[type=url]{\r\n margin: 0px;\r\n}\r\ninput[type=email]{\r\n margin: 0px;\r\n}\r\ninput.text{\r\n margin: 0px;\r\n}\r\ninput.title{\r\n margin: 0px;\r\n}\r\ntextarea{\r\n margin: 0px;\r\n}\r\nselect {\r\n margin: 0px;\r\n}\r\n.form-error {\r\n border-color: red !important;\r\n}\r\n.form-error:focus {\r\n border-color: red !important;\r\n}\r\n.wdform-field {\r\n display: table-cell;\r\n padding: 5px 0px;\r\n}\r\n.wdform-label-section{\r\n text-align: left;\r\n display: table-cell;\r\n}\r\n.wdform-element-section {\r\n text-align: left;\r\n display: table-cell;\r\n min-width: 140px;\r\n}\r\n.file-upload input {\r\n position: absolute;\r\n visibility: hidden;\r\n}\r\n.file-upload-status {\r\n margin-left: 10px;\r\n max-width: 200px;\r\n font-weight: bold;\r\n font-size: 16px;\r\n color: #888;\r\n position: absolute;\r\n border-radius: 0px;\r\n height: 23px;\r\n padding-left: 5px;\r\n padding-right: 5px;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n }\r\n.file-picker {\r\n width: 32px;\r\n height: 25px;\r\n background: url([SITE_ROOT]/images/03/upload.png);\r\n display: inline-block;\r\n}\r\ndiv.wdform-page-button {\r\n color: #414141;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 36px;\r\n line-height: 36px;\r\n background-color: #ACABAB;\r\npadding: 2px 15px;\r\nvertical-align: middle;\r\nborder: none;\r\nfont-size: 15px;\r\n}\r\n\r\n\r\n.button-submit {\r\nbackground: #FA8072;\r\ncursor: pointer;\r\nfont-size: 17px;\r\nmin-width: 80px;\r\nmin-height: 34px;\r\ncolor: #fff;\r\nborder: 2px solid #FFABA1;\r\nmargin: 5px;\r\nbox-shadow: 0px 0px 1px 1px #FF9689;\r\nfont-family: Segoe UI;\r\n }\r\n.button-reset {\r\n background: #D8D6D7;\r\n cursor: pointer;\r\n font-size: 17px;\r\n min-width: 80px;\r\n min-height: 34px;\r\n color: #787878;\r\n border: 2px solid #fff;\r\n margin: 5px;\r\n box-shadow: 0px 0px 2px 1px #969495;\r\n font-family: Segoe UI;\r\n}\r\n.wdform_page {\r\n background: transparent;\r\n padding-top: 15px;\r\n border-radius: 0px;\r\n font-family: Segoe UI;\r\n}\r\n.wdform_column {\r\n padding-right: 30px !important;\r\n float: left;\r\n border-spacing: 2px;\r\n border-collapse: separate !important;\r\n}\r\n.wdform-field-section-break {\r\n text-align: center;\r\n}\r\n.wdform_section_break2 {\r\n margin: 16px 10px 16px 0px;\r\n display: inline-block;\r\n background: url([SITE_ROOT]/images/03/01/bg.png);\r\n text-align: left;\r\n padding: 10px 20px 10px 50px;\r\n border-radius: 0px;\r\n -moz-box-shadow: 7px -9px 20px -5px rgba(0, 0, 0, 0.23), -7px 9px 20px -5px rgba(0, 0, 0, 0.23);\r\n -webkit-box-shadow: 7px -9px 20px -5px rgba(0, 0, 0, 0.23), -7px 9px 20px -5px rgba(0, 0, 0, 0.23);\r\n box-shadow: 7px -9px 20px -5px rgba(0, 0, 0, 0.23), -7px 9px 20px -5px rgba(0, 0, 0, 0.23);\r\n width: 466px;\r\n text-align: right;\r\n color: #000;\r\nfont-size: 18px;\r\n}\r\n\r\n.wdform_section_break\r\n{\r\nmargin: 16px 15px;\r\ntext-align: left;\r\nfont-size: 18px;\r\ncolor: #555;\r\n}\r\n.wdform_section {\r\n display: inline-block;\r\n padding: 0px 15px;\r\n}\r\nselect {\r\n border-radius: 0px;\r\n padding: 2px;\r\n height: 26px;\r\n overflow: hidden;\r\n border: 0px solid #ccc;\r\n padding: 2px;\r\n outline: none;\r\nbackground: #ECECEC;\r\n}\r\ninput[type="text"]{\r\n border-radius: 0px;\r\n height: 25px;\r\n border: 0px solid #ccc;\r\n padding:0 3px !important;\r\nbackground: #ECECEC;\r\n}\r\ninput[type="password"]{\r\n border-radius: 0px;\r\n height: 25px;\r\n border: 0px solid #ccc;\r\n padding:0 3px !important;\r\nbackground: #ECECEC;\r\n}\r\ntextarea {\r\n border-radius: 0px;\r\n height: 25px;\r\n border: 0px solid #ccc;\r\n padding:0 3px !important;\r\nbackground: #ECECEC;\r\n}\r\ninput[type="text"]:focus{\r\n border-color: #FFB471;\r\n outline: none;\r\n}\r\ninput[type="password"]:focus{\r\n border-color: #FFB471;\r\n outline: none;\r\n}\r\ntextarea:focus{\r\n border-color: #FFB471;\r\n outline: none;\r\n}\r\n\r\n.input_deactive {\r\n color: #999999;\r\n font-style: italic;\r\n}\r\n.input_active {\r\n color: #000000;\r\n font-style: normal;\r\n}\r\n.am_pm_select {\r\n width: 30px;\r\n vertical-align: middle;\r\n}\r\n.checkbox-div input[type=checkbox] {\r\n position : absolute;\r\n z-index: -1;\r\n}\r\n.checkbox-div {\r\n width: 13px;\r\n height: 12px;\r\n background: transparent;\r\n border: 1px solid #A7A7A7;\r\n border-radius: 0px;\r\n position: relative;\r\n display: inline-block;\r\n}\r\n.checkbox-div label {\r\n cursor: pointer;\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\r\n filter: alpha(opacity=0);\r\n opacity: 0;\r\n content: "";\r\n position: absolute;\r\n width: 16px;\r\n height: 13px;\r\n background: url([SITE_ROOT]/images/03/checkbox.png);\r\n border-radius: 0px;\r\n top: -3px;\r\n left: 1px;\r\n}\r\n.checkbox-div label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.checkbox-div .wdform-ch-rad-label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.wdform-ch-rad-label:hover + .checkbox-div label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.checkbox-div input[type=checkbox]:checked + label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";\r\n filter: alpha(opacity=100);\r\n opacity: 1;\r\n}\r\n.wdform-calendar-button,\r\n.wdform-calendar-button:hover {\r\n display:inline-block;\r\n background: transparent url([SITE_ROOT]/images/03/date.png) no-repeat left 50% !important;\r\n border: 0px;\r\n color: transparent;\r\n width: 22px;\r\n height: 24px;\r\n position: relative;\r\n left: -22px;\r\n vertical-align: top;\r\n}\r\n.wdform-calendar-button:focus {\r\n outline:none; \r\n}\r\n.radio-div input[type=radio] {\r\n position : absolute;\r\n z-index: -1;\r\n}\r\n.forlabs {\r\n float: right;\r\n margin-right: 20px;\r\n}\r\n.radio-div {\r\n width: 13px;\r\n height: 12px;\r\n background: transparent;\r\n border: 1px solid #A7A7A7;\r\n border-radius: 0px;\r\n position: relative;\r\n display: inline-block;\r\n top: 2px;\r\n}\r\n.radio-div label {\r\n cursor: pointer;\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\r\n filter: alpha(opacity=0);\r\n opacity: 0;\r\n content: "";\r\n position: absolute;\r\n width: 9px;\r\n height: 8px;\r\n background: #A7A7A7;\r\n border-radius: 0px;\r\n top: 2px;\r\n left: 2px;\r\n}\r\n.radio-div label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.radio-div .wdform-ch-rad-label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.wdform-ch-rad-label:hover + .radio-div label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.radio-div input[type=radio]:checked + label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";\r\n filter: alpha(opacity=100);\r\n opacity: 1;\r\n}\r\n.if-ie-div-label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)" !important;\r\n filter: alpha(opacity=100) !important;\r\n opacity: 1 !important;\r\n}\r\n.wdform-ch-rad-label {\r\n display: inline;\r\n margin: -4px 5px 5px 5px;\r\n float: left;\r\n color: #000;\r\n cursor: pointer\r\n}\r\ntextarea {\r\n padding-top: 5px;\r\n}\r\n.wdform-date {\r\n display:inline-block;\r\n width: 105px\r\n}\r\n.wdform_footer {\r\n margin-top: 15px;\r\n background-color: #DFDFDF;\r\n}\r\n.page-numbers {\r\n vertical-align: middle;\r\n}\r\n.time_box {\r\n text-align: right;\r\n width: 30px;\r\n vertical-align: middle\r\n}\r\n.mini_label {\r\n font-size: 10px;\r\n font-family: "Lucida Grande", Tahoma, Arial, Verdana, sans-serif;\r\n color: #A8A8A8;\r\n}\r\n.wdform-label {\r\n border: none;\r\n color: #000;\r\n vertical-align: top;\r\n line-height: 17px;\r\n}\r\n.wdform_colon {\r\n color: #000\r\n}\r\n.wdform_separator {\r\n font-style: bold;\r\n vertical-align: middle;\r\n color: #000;\r\n}\r\n.wdform_line {\r\n color: #000\r\n}\r\n.wdform-required {\r\n border: none;\r\n color: red;\r\n vertical-align: top;\r\n}\r\n.captcha_img {\r\n border-width: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n cursor: pointer;\r\n border-radius: 0px;\r\n}\r\n.captcha_refresh {\r\n width: 30px;\r\n height: 30px;\r\n border-width: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n vertical-align: middle;\r\n cursor: pointer;\r\n background-image: url([SITE_ROOT]/images/refresh_black.png);\r\n}\r\n.captcha_input {\r\n height: 20px;\r\n border-width: 1px;\r\n margin: 0px;\r\n padding: 0px;\r\n vertical-align: middle;\r\n}\r\n.file_upload {\r\n border: 0px solid white;\r\n border-radius: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n color: black;\r\n background-color: white;\r\n}\r\n.page_deactive {\r\n color: #fff;\r\n background-color: #FF9A8E;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 20px;\r\n text-align: center;\r\n vertical-align: bottom;\r\n padding-top: 5px;\r\n padding: 5px 25px 0px 25px;\r\n font-size: 12px;\r\n}\r\n.page_active {\r\n color: #fff;\r\n background-color: #FA8072;\r\n cursor: pointer;\r\n display: inline-block;\r\n vertical-align: bottom;\r\n height: 33px;\r\n text-align: center;\r\n font-size: 21px;\r\n padding: 5px 20px 0px 20px;\r\n margin-bottom: -13px;\r\n}\r\n.page_percentage_active {\r\n padding: 0px;\r\n margin: 0px;\r\n border-spacing: 0px;\r\n height: 18px;\r\n line-height: 20px;\r\n font-size: 15px;\r\n float: left;\r\n text-align: right !important;\r\n z-index: 1;\r\n position: relative;\r\n background: #FF8F83; /* Old browsers */\r\n background: -moz-linear-gradient(left, #F7B4AC 0%, #F89F95 39%, #FF8F83 100%); /* FF3.6+ */\r\n background: -webkit-gradient(linear, left top, right top, color-stop(0%, #F7B4AC), color-stop(39%, #F89F95), color-stop(100%, #FF8F83)); /* Chrome,Safari4+ */\r\n background: -webkit-linear-gradient(left, #F7B4AC 0%, #F89F95 39%, #FF8F83 100%); /* Chrome10+,Safari5.1+ */\r\n background: -o-linear-gradient(left, #F7B4AC 0%, #F89F95 39%, #FF8F83 100%); /* Opera 11.10+ */\r\n background: -ms-linear-gradient(left, #F7B4AC 0%, #F89F95 39%, #FF8F83 100%); /* IE10+ */\r\n background: linear-gradient(to right, #F7B4AC 0%, #F89F95 39%, #FF8F83 100%); /* W3C */\r\n vertical-align: middle;\r\n}\r\n.page_percentage_deactive {\r\n height: 18px;\r\n line-height: 20px;\r\n background-color: #DFDFDF;\r\n text-align: left !important;\r\n margin-bottom: 1px;\r\n}\r\n.page_numbers {\r\n font-size: 14px;\r\n color: #000;\r\n}\r\n.phone_area_code {\r\n width: 50px;\r\n}\r\n.phone_number {\r\n width: 100px;\r\n}\r\nbutton {\r\n cursor: pointer;\r\n}\r\n.other_input {\r\n border-radius: 0px;\r\n border-width: 1px;\r\n height: 16px;\r\n font-size: 12px;\r\n padding: 1px;\r\n margin: 1px;\r\n margin-left: 25px;\r\n z-index: 100;\r\n position: absolute;\r\n}\r\n.wdform_page_navigation {\r\n text-align: center!important;\r\n margin-bottom: 0px;\r\n}\r\n.wdform_percentage_text {\r\n margin: 3px -34px 3px 9px;\r\n color: #FFFFFF;\r\n font-weight: normal;\r\n font-size: 12px;\r\nline-height: 18px;\r\n}\r\n.wdform_percentage_title {\r\n color: #000000;\r\n font-style: italic;\r\n margin: 0px 0px 0px 40px;\r\n display: inline-block;\r\n line-height: 20px;\r\n height: 20px;\r\n vertical-align: middle;\r\n}\r\n.wdform_percentage_arrow {\r\n display: inline-block;\r\n width: 34px;\r\n height: 18px;\r\n background: url([SITE_ROOT]/images/03/04/percentage_arrow.png);\r\n position: relative;\r\n left: -1px;\r\ntop:0px;\r\n z-index: 0;\r\n vertical-align: middle;\r\n}\r\n.wdform_button button {\r\n background: #4D792C;\r\n cursor: pointer;\r\n font-size: 17px;\r\n border-radius: 0px;\r\n min-width: 80px;\r\n min-height: 31px;\r\n color: #fff;\r\n border: 2px solid #68943B;\r\n margin: 5px;\r\n box-shadow: 0px 0px 2px #c9c9c9;\r\n font-family: Segoe UI;\r\n}\', 0)');
96
- $wpdb->query('INSERT INTO `' . $wpdb->prefix . 'contactformmaker_themes` (`id`, `title`, `css`, `default`) VALUES(13, \'Theme 04 dark orange\', \'.wdform-page-and-images .other_input\r\n{\r\nmax-width: none;\r\n}\r\nbutton,\r\ninput,\r\nselect,\r\ntextarea\r\n{\r\nfont-size:14px;\r\n}\r\n.warning,\r\n.error\r\n{\r\nbackground-color: #F0EFEF;\r\nborder: 1px solid #F6CE9D;\r\nmargin-bottom: 10px;\r\ncolor: #F6CE9D;\r\npadding: 5px;\r\n}\r\n.warning *,\r\n.error *\r\n{\r\nmargin:0;\r\n}\r\n.recaptcha_input_area input\r\n{\r\nheight:initial !important;\r\n}\r\na.ui-slider-handle {\r\n width: 15px;\r\n height: 15px;\r\n top: -5px;\r\n}\r\n.ui-slider {\r\n height: 6px;\r\n background: #fff !important;\r\n margin: 7px 0px;\r\n}\r\n.wdform_grading input {\r\n width: 100px;\r\n}\r\n.wdform-matrix-cell input[type="text"] {\r\n width: 100px;\r\n}\r\n.wdform-matrix-cell select {\r\n width: 60px;\r\n}\r\n.wdform_section .wdform_column:last-child {\r\n padding-right: 0px !important;\r\n}\r\n.wdform_preload {\r\n display: none;\r\n}\r\n@font-face {\r\n font-family: ArTarumianHandes;\r\n src: url([SITE_ROOT]/css/HANDES.ttf);\r\n}\r\n.wdform_grading {\r\n padding: 3px 0px;\r\n}\r\n.wdform-matrix-table {\r\n display: table;\r\n border-spacing: 0px;\r\n}\r\n.wdform-matrix-column {\r\n text-align: left;\r\n display: table-cell;\r\n}\r\n.wdform-matrix-cell {\r\n text-align: center;\r\n display: table-cell;\r\n padding: 6px 10px;\r\n}\r\n.wdform-matrix-head>div {\r\n display: table-cell;\r\n text-align: center;\r\n}\r\n.wdform-matrix-head {\r\n display: table-row;\r\n}\r\n.wdform-matrix-row0 {\r\n background: #DFDFDF;\r\n display: table-row;\r\n}\r\n.wdform-matrix-row1 {\r\n background: #EDE5DA;\r\n display: table-row;\r\n}\r\n.selected-text {\r\n text-align: left;\r\n}\r\n.wdform-quantity {\r\n width: 30px;\r\n margin: 2px 0px;\r\n}\r\n.wdform_scale_rating label {\r\n vertical-align: middle;\r\n}\r\n.ui-corner-all {\r\n border-radius: 3px;\r\n}\r\n.ui-widget-content {\r\n border: 0px;\r\n background: transparent;\r\n}\r\na.ui-spinner-button:hover{\r\n background: #E2B983 !important;\r\n color: #fff;\r\n}\r\na.ui-spinner-button:active{\r\n background: #E2B983 !important;\r\n color: #fff;\r\n}\r\na.ui-spinner-button:focus{\r\n background: #E2B983 !important;\r\n color: #fff;\r\n}\r\na.ui-slider-handle:hover{\r\n background: #E2B983 !important;\r\n color: #fff;\r\n}\r\na.ui-slider-handle:active{\r\n background: #E2B983 !important;\r\n color: #fff;\r\n}\r\na.ui-slider-handle:focus{\r\n background: #E2B983 !important;\r\n color: #fff;\r\n}\r\nui-state-hover {\r\n background: #E2B983 !important;\r\n color: #fff;\r\n}\r\n.ui-state-default{\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-widget-content .ui-state-default{\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-widget-header .ui-state-default {\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-slider-range {\r\n background: #E5E5E5 !important;\r\n}\r\n.wdform_map {\r\n border: 6px solid #DCDCDC;\r\n}\r\n.wdform-page-and-images {\r\n width: 100%;\r\n border: 0px !important;\r\n}\r\n.paypal-property {\r\n display: inline-block;\r\n margin-right: 15px;\r\n vertical-align: middle;\r\n}\r\n.sel-wrap {\r\n display: inline-block;\r\n vertical-align: middle;\r\n width:100%;\r\n}\r\n.sel-wrap select {\r\n position: absolute;\r\n z-index:-1;\r\n width: 0px !important;\r\n}\r\n.sel-imul {\r\n display: inline-block;\r\n}\r\n.sel-imul .sel-selected {\r\n cursor: pointer;\r\n position: relative;\r\n display: inline-block;\r\n padding: 2px 0px 2px 2px;\r\n font-size: 13px;\r\n height: 20px;\r\n line-height: 22px;\r\n overflow: hidden;\r\n background: #fff;\r\n border: 1px solid #ccc;\r\n background-position: right 2px center;\r\n width: 100%;\r\n}\r\n.sel-imul.act .sel-selected {\r\n background: #fff;\r\n}\r\n.sel-selected .sel-arraw {\r\n height: 20px;\r\n width: 22px;\r\n background: url([SITE_ROOT]/images/04/01.png) 50% 50% no-repeat;\r\n position: absolute;\r\n top: 0px;\r\n right: 0px;\r\n padding: 2px;\r\n}\r\n.sel-imul .sel-options {\r\n background: #fff;\r\n border: 1px solid #dbdbdb;\r\n border-top: none;\r\n position: absolute;\r\n width: inherit;\r\n display: none;\r\n z-index: 10;\r\n max-height: 200px;\r\n overflow-y: auto;\r\n overflow-x: hidden;\r\n}\r\n.sel-options .sel-option {\r\n padding: 3px 4px;\r\n font-size: 13px;\r\n border: 1px solid #fff;\r\n border-right: none;\r\n border-left: none;\r\n text-align: left;\r\n}\r\n.sel-options .sel-option:hover {\r\n border-color: #dbdbdb;\r\n cursor: pointer;\r\n}\r\n.sel-options .sel-option.sel-ed {\r\n background: #dbdbdb;\r\n border-color: #dbdbdb;\r\n}\r\ninput[type=text] {\r\n margin: 0px;\r\n}\r\ninput[type=password] {\r\n margin: 0px;\r\n}\r\ninput[type=url] {\r\n margin: 0px;\r\n}\r\ninput[type=email] {\r\n margin: 0px;\r\n}\r\ninput.text {\r\n margin: 0px;\r\n}\r\ninput.title {\r\n margin: 0px;\r\n}\r\ntextarea {\r\n margin: 0px;\r\n}\r\nselect {\r\n margin: 0px;\r\n}\r\n.form-error {\r\n border-color: red !important;\r\n}\r\n.form-error:focus {\r\n border-color: red !important;\r\n}\r\n\r\n.wdform-field {\r\n display: table-cell;\r\n padding: 5px 0px;\r\n}\r\n.wdform-label-section{\r\n text-align: left;\r\n display: table-cell;\r\n}\r\n.wdform-element-section {\r\n text-align: left;\r\n display: table-cell;\r\n min-width: 140px;\r\n}\r\n.file-upload input {\r\n position: absolute;\r\n visibility: hidden;\r\n}\r\n.file-upload-status {\r\n margin-left: 10px;\r\n max-width: 200px;\r\n font-weight: bold;\r\n font-size: 16px;\r\n color: #888;\r\n background: #fff;\r\n position: absolute;\r\n border-radius: 4px;\r\n height: 24px;\r\n border: 1px solid #ccc;\r\n padding-left: 5px;\r\n padding-right: 5px;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n direction: rtl;\r\n padding-top: 3px;\r\n margin-top: 2px;\r\n}\r\n.file-picker {\r\n width: 45px;\r\n height: 44px;\r\n background: url([SITE_ROOT]/images/04/upload.png);\r\n display: inline-block;\r\n}\r\ndiv.wdform-page-button {\r\n color: #424242;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 39px;\r\n line-height: 35px;\r\n padding: 0px 20px;\r\n vertical-align: middle;\r\n font-weight: 400;\r\n font-size: 20px;\r\n border: 1px solid #959595;\r\n border-radius: 5px;\r\n}\r\ndiv.wdform-page-button:hover {\r\n color: #69512F;\r\n border: 1px solid #D89E5F;\r\n background: #C8A470; /* Old browsers */\r\n background: -moz-linear-gradient(bottom, #DFC091 0%, #CFAE7B 49%, #C19C67 84%, #AA824E 95%); /* FF3.6+ */\r\n background: -webkit-linear-gradient(bottom, #DFC091 0%, #CFAE7B 49%, #C19C67 84%, #AA824E 95%); /* Chrome10+,Safari5.1+ */\r\n background: -o-linear-gradient(bottom, #DFC091 0%, #CFAE7B 49%, #C19C67 84%, #AA824E 95%); /* Opera 11.10+ */\r\n background: -ms-linear-gradient(bottom, #DFC091 0%, #CFAE7B 49%, #C19C67 84%, #AA824E 95%); /* IE10+ */\r\n background: linear-gradient(to bottom, #DFC091 0%, #CFAE7B 49%, #C19C67 84%, #AA824E 95%); /* W3C */\r\n box-shadow: 0px 0px 5px 0px rgb(221, 221, 221) inset;\r\n}\r\n.button-submit {\r\n color: #424242 !important;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 39px;\r\n line-height: 32px;\r\n padding: 0px 20px 5px;\r\n vertical-align: middle;\r\n font-weight: 400 !important;\r\n font-size: 20px;\r\n border: 1px solid #959595;\r\n border-radius: 5px;\r\n font-family: Segoe UI;\r\nbackground:transparent;\r\n}\r\n.button-submit:hover {\r\n color: #69512F;\r\n border: 1px solid #D89E5F;\r\n background: #C8A470; /* Old browsers */\r\n background: -moz-linear-gradient(bottom, #DFC091 0%, #CFAE7B 49%, #C19C67 84%, #AA824E 95%); /* FF3.6+ */\r\n background: -webkit-linear-gradient(bottom, #DFC091 0%, #CFAE7B 49%, #C19C67 84%, #AA824E 95%); /* Chrome10+,Safari5.1+ */\r\n background: -o-linear-gradient(bottom, #DFC091 0%, #CFAE7B 49%, #C19C67 84%, #AA824E 95%); /* Opera 11.10+ */\r\n background: -ms-linear-gradient(bottom, #DFC091 0%, #CFAE7B 49%, #C19C67 84%, #AA824E 95%); /* IE10+ */\r\n background: linear-gradient(to bottom, #DFC091 0%, #CFAE7B 49%, #C19C67 84%, #AA824E 95%); /* W3C */\r\n box-shadow: 0px 0px 5px 0px rgb(221, 221, 221) inset;\r\n}\r\n.button-reset {\r\n background: transparent;\r\n cursor: pointer;\r\n font-size: 18px;\r\n min-width: 80px;\r\n min-height: 34px;\r\n color: #787878;\r\n border: 0px;\r\n margin: 5px;\r\n font-family: Segoe UI;\r\n text-decoration: underline;\r\n}\r\n.wdform_page {\r\n background: #F6CE9D;\r\n padding: 15px 15px 15px 50px;\r\n border-radius: 0px;\r\n font-family: Segoe UI;\r\n}\r\n.wdform_column {\r\n padding-right: 30px !important;\r\n float: left;\r\n border-spacing: 2px;\r\n border-collapse: separate !important;\r\n}\r\n.wdform_column>div {\r\n border-bottom: 0px solid #E7E7E7;\r\n}\r\n.wdform_column>.wdform_row:last-child {\r\n border-bottom: 0px solid #E7E7E7;\r\n}\r\n.wdform-field-section-break {\r\n text-align: center;\r\n}\r\n.wdform_section_break2 {\r\n margin: 16px 10px 16px 0px;\r\n display: inline-block;\r\n background: url([SITE_ROOT]/images/04/01/bg.png) no-repeat;\r\n text-align: left;\r\n border-radius: 0px;\r\n width: 300px;\r\n padding: 13px;\r\n text-align: center;\r\nfont-size: 18px;\r\n}\r\n.wdform_section_break\r\n{\r\nmargin: 16px 10px 16px 0px;\r\ntext-align: left;\r\nfont-size: 18px;\r\n}\r\n.wdform_section {\r\n display: table-row\r\n}\r\nselect {\r\n border-radius: 0px;\r\n height: 24px;\r\n overflow: hidden;\r\n padding: 2px;\r\nborder: 1px solid #ccc;\r\n outline: none;\r\n}\r\ninput[type="text"]{\r\n border-radius: 0px;\r\n height: 22px;\r\n border: 1px solid #ccc;\r\n padding:0 3px !important;\r\n}\r\ninput[type="password"]{\r\n border-radius: 0px;\r\n height: 22px;\r\n border: 1px solid #ccc;\r\n padding:0 3px !important;\r\n}\r\ntextarea {\r\n border-radius: 0px;\r\n height: 22px;\r\n border: 1px solid #ccc;\r\n padding:0 3px !important;\r\n}\r\ninput[type="text"]:focus {\r\n border-color: #E2B983;\r\n outline: none;\r\n}\r\ninput[type="password"]:focus {\r\n border-color: #E2B983;\r\n outline: none;\r\n}\r\ntextarea:focus {\r\n border-color: #E2B983;\r\n outline: none;\r\n}\r\n\r\n.input_deactive {\r\n color: #999999;\r\n font-style: italic;\r\n}\r\n.input_active {\r\n color: #000000;\r\n font-style: normal;\r\n}\r\n.am_pm_select {\r\n width: 30px;\r\n vertical-align: middle;\r\n}\r\n.checkbox-div input[type=checkbox] {\r\n position : absolute;\r\n z-index: -1;\r\n}\r\n.checkbox-div {\r\n width: 14px;\r\n height: 14px;\r\n background: #fff;\r\n border: 1px solid #ccc;\r\n border-radius: 7px;\r\n position: relative;\r\n display: inline-block;\r\n box-shadow: 0px 3px 8px 1px rgb(213, 213, 213) inset;\r\n}\r\n.checkbox-div label {\r\n cursor: pointer;\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\r\n filter: alpha(opacity=0);\r\n opacity: 0;\r\n content: "";\r\n position: absolute;\r\n width: 16px;\r\n height: 13px;\r\n background: url([SITE_ROOT]/images/02/checkbox.png);\r\n border-radius: 0px;\r\n top: -3px;\r\n left: 2px;\r\n}\r\n.checkbox-div label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.checkbox-div .wdform-ch-rad-label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.wdform-ch-rad-label:hover + .checkbox-div label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.checkbox-div input[type=checkbox]:checked + label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";\r\n filter: alpha(opacity=100);\r\n opacity: 1;\r\n}\r\n.wdform-calendar-button,\r\n.wdform-calendar-button:hover {\r\n display:inline-block;\r\n background: transparent url([SITE_ROOT]/images/04/date.png) no-repeat left 50% !important;\r\n border: 0px;\r\n color: transparent;\r\n width: 20px;\r\n height: 24px;\r\n position: relative;\r\n left: -22px;\r\n vertical-align: top;\r\n outline: none;\r\n}\r\n.radio-div input[type=radio] {\r\n position : absolute;\r\n z-index: -1;\r\n}\r\n.forlabs {\r\n float: right;\r\n margin-right: 20px;\r\n}\r\n.radio-div {\r\n width: 14px;\r\n height: 14px;\r\n background: #fff;\r\n border: 1px solid #ccc;\r\n border-radius: 7px;\r\n position: relative;\r\n display: inline-block;\r\n box-shadow: 0px 3px 8px 1px rgb(213, 213, 213) inset;\r\n}\r\n.radio-div label {\r\n cursor: pointer;\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\r\n filter: alpha(opacity=0);\r\n opacity: 0;\r\n content: "";\r\n position: absolute;\r\n width: 10px;\r\n height: 10px;\r\n background: #DAA157;\r\n background: -moz-linear-gradient(bottom, #F8DCB2 0%, #E7C187 49%, #E6BE86 84%, #DAA157 95%);\r\n background: -webkit-linear-gradient(bottom, #F8DCB2 0%, #E7C187 49%, #E6BE86 84%, #DAA157 95%);\r\n background: -o-linear-gradient(bottom, #F8DCB2 0%, #E7C187 49%, #E6BE86 84%, #DAA157 95%);\r\n background: -ms-linear-gradient(bottom, #F8DCB2 0%, #E7C187 49%, #E6BE86 84%, #DAA157 95%);\r\n background: linear-gradient(to bottom, #F8DCB2 0%, #E7C187 49%, #E6BE86 84%, #DAA157 95%);\r\n box-shadow: 0px 0px 5px 0px rgb(214, 214, 214) inset;\r\n border-radius: 7px;\r\n top: 1px;\r\n left: 1px;\r\n border: 1px solid #C0A77E;\r\n}\r\n.radio-div label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.5;\r\n}\r\n.radio-div .wdform-ch-rad-label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.5;\r\n}\r\n.wdform-ch-rad-label:hover + .radio-div label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.5;\r\n}\r\n.radio-div input[type=radio]:checked + label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";\r\n filter: alpha(opacity=100);\r\n opacity: 1;\r\n}\r\n.if-ie-div-label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)" !important;\r\n filter: alpha(opacity=100) !important;\r\n opacity: 1 !important;\r\n}\r\n.wdform-ch-rad-label {\r\n display: inline;\r\n margin: -4px 5px 5px 5px;\r\n float: left;\r\n color: #000;\r\n cursor: pointer\r\n}\r\ntextarea {\r\n padding-top: 5px;\r\n}\r\n.wdform-date {\r\n display:inline-block;\r\n width: 105px\r\n}\r\n.wdform_footer {\r\n padding-top: 5px;\r\n margin-top: 15px;\r\n}\r\n.page-numbers {\r\n vertical-align: middle;\r\n}\r\n.time_box {\r\n text-align: right;\r\n width: 30px;\r\n vertical-align: middle\r\n}\r\n.mini_label {\r\n font-size: 10px;\r\n font-family: "Lucida Grande", Tahoma, Arial, Verdana, sans-serif;\r\n color: #000;\r\n}\r\n.wdform-label {\r\n border: none;\r\n color: #000;\r\n vertical-align: top;\r\n line-height: 17px;\r\n}\r\n.wdform_colon {\r\n color: #000\r\n}\r\n.wdform_separator {\r\n font-style: bold;\r\n vertical-align: middle;\r\n color: #000;\r\n}\r\n.wdform_line {\r\n color: #000\r\n}\r\n.wdform-required {\r\n border: none;\r\n color: red;\r\n vertical-align: top;\r\n}\r\n.captcha_img {\r\n border-width: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n cursor: pointer;\r\n}\r\n.captcha_refresh {\r\n width: 30px;\r\n height: 30px;\r\n border-width: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n vertical-align: middle;\r\n cursor: pointer;\r\n background-image: url([SITE_ROOT]/images/refresh_black.png);\r\n}\r\n.captcha_input {\r\n height: 20px;\r\n border-width: 1px;\r\n margin: 0px;\r\n padding: 0px;\r\n vertical-align: middle;\r\n}\r\n.file_upload {\r\n border: 0px solid white;\r\n border-radius: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n color: black;\r\n background-color: white;\r\n}\r\n.page_deactive {\r\n font-size: 12px;\r\n color: #ffffff;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 20px;\r\n text-align: center;\r\n vertical-align: bottom;\r\n padding: 5px 20px 0px 20px;\r\n font-weight: bold;\r\n background-color: #E2B983;\r\n margin-left: 1px;\r\n}\r\n.page_active {\r\n color: #fff;\r\n cursor: pointer;\r\n background-color: #AA824E;\r\n display: inline-block;\r\n vertical-align: bottom;\r\n height: 25px;\r\n text-align: center;\r\n font-size: 16px;\r\n padding: 5px 20px 0px 20px;\r\n margin-left: 1px;\r\n}\r\n.page_percentage_active {\r\n padding: 0px;\r\n margin: 0px;\r\n border-spacing: 0px;\r\n height: 23px;\r\n line-height: 23px;\r\n font-size: 15px;\r\n float: left;\r\n text-align: right !important;\r\n z-index: 1;\r\n position: relative;\r\n background: #AA824E;\r\n vertical-align: middle;\r\n font-family: ArTarumianHandes;\r\n}\r\n.page_percentage_deactive {\r\n height: 23px;\r\n line-height: 23px;\r\n background-color: #E2B983;\r\n text-align: left !important;\r\n margin-bottom: 1px;\r\n}\r\n.page_numbers {\r\n font-size: 14px;\r\n color: #000;\r\n}\r\n.phone_area_code {\r\n width: 50px;\r\n}\r\n.phone_number {\r\n width: 100px;\r\n}\r\nbutton {\r\n cursor: pointer;\r\n}\r\n.other_input {\r\n border-radius: 0px;\r\n border-width: 1px;\r\n height: 16px;\r\n font-size: 12px;\r\n padding: 1px;\r\n margin: 1px;\r\n margin-left: 25px;\r\n z-index: 100;\r\n position: absolute;\r\n}\r\n.wdform_page_navigation {\r\n text-align: right !important;\r\n margin-bottom: 0px;\r\n}\r\n.wdform_percentage_text {\r\n margin: 3px 5px 3px 9px;\r\n color: #FFFFFF;\r\n font-weight: bold;\r\n}\r\n.wdform_percentage_title {\r\n color: #000000;\r\n font-style: italic;\r\n margin: 0px 0px 0px 40px;\r\n display: inline-block;\r\n line-height: 20px;\r\n height: 20px;\r\n vertical-align: middle;\r\n}\r\n.wdform_percentage_arrow {\r\n display: inline-block;\r\n width: 20px;\r\n height: 23px;\r\n background-color: #AA824E;\r\n position: relative;\r\n left: -14px;\r\n z-index: 0;\r\n vertical-align: middle;\r\n -moz-transform: scale(1) rotate(0deg) translateX(0px) translateY(0px) skewX(-25deg) skewY(0deg);\r\n -webkit-transform: scale(1) rotate(0deg) translateX(0px) translateY(0px) skewX(-25deg) skewY(0deg);\r\n -o-transform: scale(1) rotate(0deg) translateX(0px) translateY(0px) skewX(-25deg) skewY(0deg);\r\n -ms-transform: scale(1) rotate(0deg) translateX(0px) translateY(0px) skewX(-25deg) skewY(0deg);\r\n transform: scale(1) rotate(0deg) translateX(0px) translateY(0px) skewX(-25deg) skewY(0deg);\r\n}\r\n.wdform_button button {\r\n background: #0E4D92;\r\n cursor: pointer;\r\n font-size: 17px;\r\n border-radius: 4px;\r\n min-width: 80px;\r\n min-height: 27px;\r\n color: #fff;\r\n border: 2px solid #0E3F77;\r\n margin: 5px;\r\n box-shadow: 0px 0px 2px #c9c9c9;\r\n font-family: Segoe UI;\r\n}\r\n.wdform_button button:active {\r\n border: 2px solid #0B2D52;\r\n background: #0E3F77;\r\n}\', 0)');
97
- $wpdb->query('INSERT INTO `' . $wpdb->prefix . 'contactformmaker_themes` (`id`, `title`, `css`, `default`) VALUES(14, \'Theme 04 light blue\', \'.wdform-page-and-images .other_input\r\n{\r\nmax-width: none;\r\n}\r\nbutton,\r\ninput,\r\nselect,\r\ntextarea\r\n{\r\nfont-size:14px;\r\n}\r\n.warning,\r\n.error\r\n{\r\nbackground-color: #F0EFEF;\r\nborder: 1px solid #CEE4E4;\r\nmargin-bottom: 10px;\r\ncolor: #CEE4E4;\r\npadding: 5px;\r\n}\r\n.warning *,\r\n.error *\r\n{\r\nmargin:0;\r\n}\r\n.recaptcha_input_area input\r\n{\r\nheight:initial !important;\r\n}\r\na.ui-slider-handle {\r\n width: 15px;\r\n height: 15px;\r\n top: -5px;\r\n}\r\n.ui-slider {\r\n height: 6px;\r\n background: #fff !important;\r\n margin: 7px 0px;\r\n}\r\n.wdform_grading input {\r\n width: 100px;\r\n}\r\n.wdform-matrix-cell input[type="text"] {\r\n width: 100px;\r\n}\r\n.wdform-matrix-cell select {\r\n width: 60px;\r\n}\r\n.wdform_section .wdform_column:last-child {\r\n padding-right: 0px !important;\r\n}\r\n.wdform_preload {\r\n display: none;\r\n}\r\n@font-face {\r\n font-family: ArTarumianHandes;\r\n src: url([SITE_ROOT]/css/HANDES.ttf);\r\n}\r\n.wdform_grading {\r\n padding: 3px 0px;\r\n}\r\n.wdform-matrix-table {\r\n display: table;\r\n border-spacing: 0px;\r\n}\r\n.wdform-matrix-column {\r\n text-align: left;\r\n display: table-cell;\r\n}\r\n.wdform-matrix-cell {\r\n text-align: center;\r\n display: table-cell;\r\n padding: 6px 10px;\r\n}\r\n.wdform-matrix-head>div {\r\n display: table-cell;\r\n text-align: center;\r\n}\r\n.wdform-matrix-head {\r\n display: table-row;\r\n}\r\n.wdform-matrix-row0 {\r\n background: #DFDFDF;\r\n display: table-row;\r\n}\r\n.wdform-matrix-row1 {\r\n background: #EDE5DA;\r\n display: table-row;\r\n}\r\n.selected-text {\r\n text-align: left;\r\n}\r\n.wdform-quantity {\r\n width: 30px;\r\n margin: 2px 0px;\r\n}\r\n.wdform_scale_rating label {\r\n vertical-align: middle;\r\n}\r\n.ui-corner-all {\r\n border-radius: 3px;\r\n}\r\n.ui-widget-content {\r\n border: 0px;\r\n background: transparent;\r\n}\r\na.ui-spinner-button:hover{\r\n background: #678B94 !important;\r\n color: #fff;\r\n}\r\na.ui-spinner-button:active{\r\n background: #678B94 !important;\r\n color: #fff;\r\n}\r\na.ui-spinner-button:focus{\r\n background: #678B94 !important;\r\n color: #fff;\r\n}\r\na.ui-slider-handle:hover{\r\n background: #678B94 !important;\r\n color: #fff;\r\n}\r\na.ui-slider-handle:active{\r\n background: #678B94 !important;\r\n color: #fff;\r\n}\r\na.ui-slider-handle:focus{\r\n background: #678B94 !important;\r\n color: #fff;\r\n}\r\nui-state-hover {\r\n background: #678B94 !important;\r\n color: #fff;\r\n}\r\n.ui-state-default{\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-widget-content .ui-state-default{\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-widget-header .ui-state-default {\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-slider-range {\r\n background: #E5E5E5 !important;\r\n}\r\n.wdform_map {\r\n border: 6px solid #DCDCDC;\r\n}\r\n.wdform-page-and-images {\r\n width: 100%;\r\n border: 0px !important;\r\n}\r\n.paypal-property {\r\n display: inline-block;\r\n margin-right: 15px;\r\n vertical-align: middle;\r\n}\r\n.sel-wrap {\r\n display: inline-block;\r\n vertical-align: middle;\r\n width:100%;\r\n}\r\n.sel-wrap select {\r\n position: absolute;\r\n z-index:-1;\r\n width: 0px !important;\r\n}\r\n.sel-imul {\r\n display: inline-block;\r\n}\r\n.sel-imul .sel-selected {\r\n cursor: pointer;\r\n position: relative;\r\n display: inline-block;\r\n padding: 2px 0px 2px 2px;\r\n font-size: 13px;\r\n height: 20px;\r\n line-height: 22px;\r\n overflow: hidden;\r\n background: #fff;\r\n border: 1px solid #ccc;\r\n background-position: right 2px center;\r\n width: 100%;\r\n}\r\n.sel-imul.act .sel-selected {\r\n background: #fff;\r\n}\r\n.sel-selected .sel-arraw {\r\n height: 20px;\r\n width: 22px;\r\n background: url([SITE_ROOT]/images/04/01.png) 50% 50% no-repeat;\r\n position: absolute;\r\n top: 0px;\r\n right: 0px;\r\n padding: 2px;\r\n}\r\n.sel-imul .sel-options {\r\n background: #fff;\r\n border: 1px solid #dbdbdb;\r\n border-top: none;\r\n position: absolute;\r\n width: inherit;\r\n display: none;\r\n z-index: 10;\r\n max-height: 200px;\r\n overflow-y: auto;\r\n overflow-x: hidden;\r\n}\r\n.sel-options .sel-option {\r\n padding: 3px 4px;\r\n font-size: 13px;\r\n border: 1px solid #fff;\r\n border-right: none;\r\n border-left: none;\r\n text-align: left;\r\n}\r\n.sel-options .sel-option:hover {\r\n border-color: #dbdbdb;\r\n cursor: pointer;\r\n}\r\n.sel-options .sel-option.sel-ed {\r\n background: #dbdbdb;\r\n border-color: #dbdbdb;\r\n}\r\ninput[type=text] {\r\n margin: 0px;\r\n}\r\ninput[type=password] {\r\n margin: 0px;\r\n}\r\ninput[type=url] {\r\n margin: 0px;\r\n}\r\ninput[type=email] {\r\n margin: 0px;\r\n}\r\ninput.text {\r\n margin: 0px;\r\n}\r\ninput.title {\r\n margin: 0px;\r\n}\r\ntextarea {\r\n margin: 0px;\r\n}\r\nselect {\r\n margin: 0px;\r\n}\r\n.form-error {\r\n border-color: red !important;\r\n}\r\n.form-error:focus {\r\n border-color: red !important;\r\n}\r\n\r\n.wdform-field {\r\n display: table-cell;\r\n padding: 5px 0px;\r\n}\r\n.wdform-label-section{\r\n text-align: left;\r\n display: table-cell;\r\n}\r\n.wdform-element-section {\r\n text-align: left;\r\n display: table-cell;\r\n min-width: 140px;\r\n}\r\n.file-upload input {\r\n position: absolute;\r\n visibility: hidden;\r\n}\r\n.file-upload-status {\r\n margin-left: 10px;\r\n max-width: 200px;\r\n font-weight: bold;\r\n font-size: 16px;\r\n color: #888;\r\n background: #fff;\r\n position: absolute;\r\n border-radius: 4px;\r\n height: 24px;\r\n border: 1px solid #ccc;\r\n padding-left: 5px;\r\n padding-right: 5px;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n direction: rtl;\r\n padding-top: 3px;\r\n margin-top: 2px;\r\n}\r\n.file-picker {\r\n width: 45px;\r\n height: 44px;\r\n background: url([SITE_ROOT]/images/04/upload.png);\r\n display: inline-block;\r\n}\r\ndiv.wdform-page-button {\r\n color: #424242;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 39px;\r\n line-height: 35px;\r\n padding: 0px 20px;\r\n vertical-align: middle;\r\n font-weight: 400;\r\n font-size: 20px;\r\n border: 1px solid #959595;\r\n border-radius: 5px;\r\n}\r\ndiv.wdform-page-button:hover {\r\ncolor: #fff;\r\nborder: 1px solid #88A1A6;\r\nbackground: #86A0A7 ;\r\nbackground: -moz-linear-gradient(bottom, #A0C5CF 0%, #95B3BB 49%, #869AA0 84%, #86A0A7 95%);\r\nbackground: -webkit-linear-gradient(bottom, #A0C5CF 0%, #95B3BB 49%, #869AA0 84%, #86A0A7 95%);\r\nbackground: -o-linear-gradient(bottom, #A0C5CF 0%, #95B3BB 49%, #869AA0 84%, #86A0A7 95%);\r\nbackground: -ms-linear-gradient(bottom, #A0C5CF 0%, #95B3BB 49%, #869AA0 84%, #86A0A7 95%);\r\nbackground: linear-gradient(to bottom, #A0C5CF 0%, #95B3BB 49%, #869AA0 84%, #86A0A7 95%);\r\nbox-shadow: 0px 0px 5px 0px rgb(221, 221, 221) inset;\r\n}\r\n.button-submit {\r\n color: #767676 !important;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 39px;\r\n line-height: 32px;\r\n padding: 0px 20px 5px;\r\n vertical-align: middle;\r\n font-weight: 400 !important;\r\n font-size: 20px;\r\n border: 1px solid #959595;\r\n border-radius: 5px;\r\n font-family: Segoe UI;\r\nbackground:transparent;\r\n}\r\n.button-submit:hover {\r\ncolor: #fff !important;\r\nborder: 1px solid #88A1A6;\r\nbackground: #86A0A7 ;\r\nbackground: -moz-linear-gradient(bottom, #A0C5CF 0%, #95B3BB 49%, #869AA0 84%, #86A0A7 95%);\r\nbackground: -webkit-linear-gradient(bottom, #A0C5CF 0%, #95B3BB 49%, #869AA0 84%, #86A0A7 95%);\r\nbackground: -o-linear-gradient(bottom, #A0C5CF 0%, #95B3BB 49%, #869AA0 84%, #86A0A7 95%);\r\nbackground: -ms-linear-gradient(bottom, #A0C5CF 0%, #95B3BB 49%, #869AA0 84%, #86A0A7 95%);\r\nbackground: linear-gradient(to bottom, #A0C5CF 0%, #95B3BB 49%, #869AA0 84%, #86A0A7 95%);\r\nbox-shadow: 0px 0px 5px 0px rgb(221, 221, 221) inset;\r\n}\r\n.button-reset {\r\n background: transparent;\r\n cursor: pointer;\r\n font-size: 18px;\r\n min-width: 80px;\r\n min-height: 34px;\r\n color: #787878;\r\n border: 0px;\r\n margin: 5px;\r\n font-family: Segoe UI;\r\n text-decoration: underline;\r\n}\r\n.wdform_page {\r\n background: #CEE4E4;\r\n padding: 15px 15px 15px 50px;\r\n border-radius: 0px;\r\n font-family: Segoe UI;\r\n}\r\n.wdform_column {\r\n padding-right: 30px !important;\r\n float: left;\r\n border-spacing: 2px;\r\n border-collapse: separate !important;\r\n}\r\n.wdform_column>div {\r\n border-bottom: 0px solid #E7E7E7;\r\n}\r\n.wdform_column>.wdform_row:last-child {\r\n border-bottom: 0px solid #E7E7E7;\r\n}\r\n.wdform-field-section-break {\r\n text-align: center;\r\n}\r\n.wdform_section_break2 {\r\n margin: 16px 10px 16px 0px;\r\n display: inline-block;\r\n background: url([SITE_ROOT]/images/04/02/bg.png) no-repeat;\r\n text-align: left;\r\n border-radius: 0px;\r\n width: 300px;\r\npadding: 5px;\r\n text-align: center;\r\nfont-size: 16px;\r\n}\r\n.wdform_section_break\r\n{\r\nmargin: 16px 10px 16px 0px;\r\ntext-align: left;\r\nfont-size: 18px;\r\n}\r\n.wdform_section {\r\n display: table-row\r\n}\r\nselect {\r\n border-radius: 0px;\r\n height: 24px;\r\n overflow: hidden;\r\n padding: 2px;\r\nborder: 1px solid #ccc;\r\n outline: none;\r\n}\r\ninput[type="text"]{\r\n border-radius: 0px;\r\n height: 22px;\r\n border: 1px solid #ccc;\r\n padding:0 3px !important;\r\n}\r\ninput[type="password"]{\r\n border-radius: 0px;\r\n height: 22px;\r\n border: 1px solid #ccc;\r\n padding:0 3px !important;\r\n}\r\ntextarea {\r\n border-radius: 0px;\r\n height: 22px;\r\n border: 1px solid #ccc;\r\n padding:0 3px !important;\r\n}\r\ninput[type="text"]:focus {\r\n border-color: #678B94;\r\n outline: none;\r\n}\r\ninput[type="password"]:focus {\r\n border-color: #678B94;\r\n outline: none;\r\n}\r\ntextarea:focus {\r\n border-color: #678B94;\r\n outline: none;\r\n}\r\n\r\n.input_deactive {\r\n color: #999999;\r\n font-style: italic;\r\n}\r\n.input_active {\r\n color: #000000;\r\n font-style: normal;\r\n}\r\n.am_pm_select {\r\n width: 30px;\r\n vertical-align: middle;\r\n}\r\n.checkbox-div input[type=checkbox] {\r\n position : absolute;\r\n z-index: -1;\r\n}\r\n.checkbox-div {\r\n width: 14px;\r\n height: 14px;\r\n background: #fff;\r\n border: 1px solid #ccc;\r\n border-radius: 7px;\r\n position: relative;\r\n display: inline-block;\r\n box-shadow: 0px 3px 8px 1px rgb(213, 213, 213) inset;\r\n}\r\n.checkbox-div label {\r\n cursor: pointer;\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\r\n filter: alpha(opacity=0);\r\n opacity: 0;\r\n content: "";\r\n position: absolute;\r\n width: 16px;\r\n height: 13px;\r\n background: url([SITE_ROOT]/images/02/checkbox.png);\r\n border-radius: 0px;\r\n top: -3px;\r\n left: 2px;\r\n}\r\n.checkbox-div label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.checkbox-div .wdform-ch-rad-label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.wdform-ch-rad-label:hover + .checkbox-div label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.checkbox-div input[type=checkbox]:checked + label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";\r\n filter: alpha(opacity=100);\r\n opacity: 1;\r\n}\r\n.wdform-calendar-button,\r\n.wdform-calendar-button:hover {\r\n display:inline-block;\r\n background: transparent url([SITE_ROOT]/images/04/date.png) no-repeat left 50% !important;\r\n border: 0px;\r\n color: transparent;\r\n width: 20px;\r\n height: 24px;\r\n position: relative;\r\n left: -22px;\r\n vertical-align: top;\r\n outline: none;\r\n}\r\n.radio-div input[type=radio] {\r\n position : absolute;\r\n z-index: -1;\r\n}\r\n.forlabs {\r\n float: right;\r\n margin-right: 20px;\r\n}\r\n.radio-div {\r\n width: 14px;\r\n height: 14px;\r\n background: #fff;\r\n border: 1px solid #ccc;\r\n border-radius: 7px;\r\n position: relative;\r\n display: inline-block;\r\n box-shadow: 0px 3px 8px 1px rgb(213, 213, 213) inset;\r\n}\r\n.radio-div label {\r\ncursor: pointer;\r\n-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\r\nfilter: alpha(opacity=0);\r\nopacity: 0;\r\ncontent: "";\r\nposition: absolute;\r\nwidth: 10px;\r\nheight: 10px;\r\nbackground: #63929E ;\r\nbackground: -moz-linear-gradient(bottom, #84B8C5 0%, #75A1AC 49%, #63929E 84%, #377483 95%);\r\nbackground: -webkit-linear-gradient(bottom, #84B8C5 0%, #75A1AC 49%, #63929E 84%, #377483 95%);\r\nbackground: -o-linear-gradient(bottom, #84B8C5 0%, #75A1AC 49%, #63929E 84%, #377483 95%);\r\nbackground: -ms-linear-gradient(bottom, #84B8C5 0%, #75A1AC 49%, #63929E 84%, #377483 95%);\r\nbackground: linear-gradient(to bottom, #84B8C5 0%, #75A1AC 49%, #63929E 84%, #377483 95%);\r\nbox-shadow: 0px 0px 5px 0px rgb(214, 214, 214) inset;\r\nborder-radius: 7px;\r\ntop: 1px;\r\nleft: 1px;\r\nborder: 1px solid #678B94;\r\n}\r\n.radio-div label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.5;\r\n}\r\n.radio-div .wdform-ch-rad-label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.5;\r\n}\r\n.wdform-ch-rad-label:hover + .radio-div label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.5;\r\n}\r\n.radio-div input[type=radio]:checked + label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";\r\n filter: alpha(opacity=100);\r\n opacity: 1;\r\n}\r\n.if-ie-div-label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)" !important;\r\n filter: alpha(opacity=100) !important;\r\n opacity: 1 !important;\r\n}\r\n.wdform-ch-rad-label {\r\n display: inline;\r\n margin: -4px 5px 5px 5px;\r\n float: left;\r\n color: #000;\r\n cursor: pointer\r\n}\r\ntextarea {\r\n padding-top: 5px;\r\n}\r\n.wdform-date {\r\n display:inline-block;\r\n width: 105px\r\n}\r\n.wdform_footer {\r\n padding-top: 5px;\r\n margin-top: 15px;\r\n}\r\n.page-numbers {\r\n vertical-align: middle;\r\n}\r\n.time_box {\r\n text-align: right;\r\n width: 30px;\r\n vertical-align: middle\r\n}\r\n.mini_label {\r\n font-size: 10px;\r\n font-family: "Lucida Grande", Tahoma, Arial, Verdana, sans-serif;\r\n color: #000;\r\n}\r\n.wdform-label {\r\n border: none;\r\n color: #000;\r\n vertical-align: top;\r\n line-height: 17px;\r\n}\r\n.wdform_colon {\r\n color: #000\r\n}\r\n.wdform_separator {\r\n font-style: bold;\r\n vertical-align: middle;\r\n color: #000;\r\n}\r\n.wdform_line {\r\n color: #000\r\n}\r\n.wdform-required {\r\n border: none;\r\n color: red;\r\n vertical-align: top;\r\n}\r\n.captcha_img {\r\n border-width: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n cursor: pointer;\r\n}\r\n.captcha_refresh {\r\n width: 30px;\r\n height: 30px;\r\n border-width: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n vertical-align: middle;\r\n cursor: pointer;\r\n background-image: url([SITE_ROOT]/images/refresh_black.png);\r\n}\r\n.captcha_input {\r\n height: 20px;\r\n border-width: 1px;\r\n margin: 0px;\r\n padding: 0px;\r\n vertical-align: middle;\r\n}\r\n.file_upload {\r\n border: 0px solid white;\r\n border-radius: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n color: black;\r\n background-color: white;\r\n}\r\n.page_deactive {\r\n font-size: 12px;\r\n color: #ffffff;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 20px;\r\n text-align: center;\r\n vertical-align: bottom;\r\n padding: 5px 20px 0px 20px;\r\n font-weight: bold;\r\n background-color: #88B4BD;\r\n margin-left: 1px;\r\n}\r\n.page_active {\r\n color: #fff;\r\n cursor: pointer;\r\n background-color: #678B94;\r\n display: inline-block;\r\n vertical-align: bottom;\r\n height: 25px;\r\n text-align: center;\r\n font-size: 16px;\r\n padding: 5px 20px 0px 20px;\r\n margin-left: 1px;\r\n}\r\n.page_percentage_active {\r\n padding: 0px;\r\n margin: 0px;\r\n border-spacing: 0px;\r\n height: 23px;\r\n line-height: 23px;\r\n font-size: 15px;\r\n float: left;\r\n text-align: right !important;\r\n z-index: 1;\r\n position: relative;\r\n background: #678B94;\r\n vertical-align: middle;\r\n font-family: ArTarumianHandes;\r\n}\r\n.page_percentage_deactive {\r\n height: 23px;\r\n line-height: 23px;\r\n background-color: #88B4BD;\r\n text-align: left !important;\r\n margin-bottom: 1px;\r\n}\r\n.page_numbers {\r\n font-size: 14px;\r\n color: #000;\r\n}\r\n.phone_area_code {\r\n width: 50px;\r\n}\r\n.phone_number {\r\n width: 100px;\r\n}\r\nbutton {\r\n cursor: pointer;\r\n}\r\n.other_input {\r\n border-radius: 0px;\r\n border-width: 1px;\r\n height: 16px;\r\n font-size: 12px;\r\n padding: 1px;\r\n margin: 1px;\r\n margin-left: 25px;\r\n z-index: 100;\r\n position: absolute;\r\n}\r\n.wdform_page_navigation {\r\n text-align: right !important;\r\n margin-bottom: 0px;\r\n}\r\n.wdform_percentage_text {\r\n margin: 3px 5px 3px 9px;\r\n color: #FFFFFF;\r\n font-weight: bold;\r\n}\r\n.wdform_percentage_title {\r\n color: #000000;\r\n font-style: italic;\r\n margin: 0px 0px 0px 40px;\r\n display: inline-block;\r\n line-height: 20px;\r\n height: 20px;\r\n vertical-align: middle;\r\n}\r\n.wdform_percentage_arrow {\r\n display: inline-block;\r\n width: 20px;\r\n height: 23px;\r\n background-color: #678B94;\r\n position: relative;\r\n left: -14px;\r\n z-index: 0;\r\n vertical-align: middle;\r\n -moz-transform: scale(1) rotate(0deg) translateX(0px) translateY(0px) skewX(-25deg) skewY(0deg);\r\n -webkit-transform: scale(1) rotate(0deg) translateX(0px) translateY(0px) skewX(-25deg) skewY(0deg);\r\n -o-transform: scale(1) rotate(0deg) translateX(0px) translateY(0px) skewX(-25deg) skewY(0deg);\r\n -ms-transform: scale(1) rotate(0deg) translateX(0px) translateY(0px) skewX(-25deg) skewY(0deg);\r\n transform: scale(1) rotate(0deg) translateX(0px) translateY(0px) skewX(-25deg) skewY(0deg);\r\n}\r\n.wdform_button button {\r\n background: #0E4D92;\r\n cursor: pointer;\r\n font-size: 17px;\r\n border-radius: 4px;\r\n min-width: 80px;\r\n min-height: 27px;\r\n color: #fff;\r\n border: 2px solid #0E3F77;\r\n margin: 5px;\r\n box-shadow: 0px 0px 2px #c9c9c9;\r\n font-family: Segoe UI;\r\n}\r\n.wdform_button button:active {\r\n border: 2px solid #0B2D52;\r\n background: #0E3F77;\r\n}\', 0)');
98
- $wpdb->query('INSERT INTO `' . $wpdb->prefix . 'contactformmaker_themes` (`id`, `title`, `css`, `default`) VALUES(15, \'Theme 04 red\', \'.wdform-page-and-images .other_input\r\n{\r\nmax-width: none;\r\n}\r\nbutton,\r\ninput,\r\nselect,\r\ntextarea\r\n{\r\nfont-size:14px;\r\n}\r\n.warning,\r\n.error\r\n{\r\nbackground-color: #F0EFEF;\r\nborder: 1px solid #CEE4E4;\r\nmargin-bottom: 10px;\r\ncolor: #CEE4E4;\r\npadding: 5px;\r\n}\r\n.warning *,\r\n.error *\r\n{\r\nmargin:0;\r\n}\r\n.recaptcha_input_area input\r\n{\r\nheight:initial !important;\r\n}\r\na.ui-slider-handle {\r\n width: 15px;\r\n height: 15px;\r\n top: -5px;\r\n}\r\n.ui-slider {\r\n height: 6px;\r\n background: #fff !important;\r\n margin: 7px 0px;\r\n}\r\n.wdform_grading input {\r\n width: 100px;\r\n}\r\n.wdform-matrix-cell input[type="text"] {\r\n width: 100px;\r\n}\r\n.wdform-matrix-cell select {\r\n width: 60px;\r\n}\r\n.wdform_section .wdform_column:last-child {\r\n padding-right: 0px !important;\r\n}\r\n.wdform_preload {\r\n display: none;\r\n}\r\n@font-face {\r\n font-family: ArTarumianHandes;\r\n src: url([SITE_ROOT]/css/HANDES.ttf);\r\n}\r\n.wdform_grading {\r\n padding: 3px 0px;\r\n}\r\n.wdform-matrix-table {\r\n display: table;\r\n border-spacing: 0px;\r\n}\r\n.wdform-matrix-column {\r\n text-align: left;\r\n display: table-cell;\r\n}\r\n.wdform-matrix-cell {\r\n text-align: center;\r\n display: table-cell;\r\n padding: 6px 10px;\r\n}\r\n.wdform-matrix-head>div {\r\n display: table-cell;\r\n text-align: center;\r\n}\r\n.wdform-matrix-head {\r\n display: table-row;\r\n}\r\n.wdform-matrix-row0 {\r\n background: #DFDFDF;\r\n display: table-row;\r\n}\r\n.wdform-matrix-row1 {\r\n background: #EDE5DA;\r\n display: table-row;\r\n}\r\n.selected-text {\r\n text-align: left;\r\n}\r\n.wdform-quantity {\r\n width: 30px;\r\n margin: 2px 0px;\r\n}\r\n.wdform_scale_rating label {\r\n vertical-align: middle;\r\n}\r\n.ui-corner-all {\r\n border-radius: 3px;\r\n}\r\n.ui-widget-content {\r\n border: 0px;\r\n background: transparent;\r\n}\r\na.ui-spinner-button:hover{\r\n background: #8A6B63 !important;\r\n color: #fff;\r\n}\r\na.ui-spinner-button:active{\r\n background: #8A6B63 !important;\r\n color: #fff;\r\n}\r\na.ui-spinner-button:focus{\r\n background: #8A6B63 !important;\r\n color: #fff;\r\n}\r\na.ui-slider-handle:hover{\r\n background: #8A6B63 !important;\r\n color: #fff;\r\n}\r\na.ui-slider-handle:active{\r\n background: #8A6B63 !important;\r\n color: #fff;\r\n}\r\na.ui-slider-handle:focus{\r\n background: #8A6B63 !important;\r\n color: #fff;\r\n}\r\nui-state-hover {\r\n background: #8A6B63 !important;\r\n color: #fff;\r\n}\r\n.ui-state-default{\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-widget-content .ui-state-default{\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-widget-header .ui-state-default {\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-slider-range {\r\n background: #E5E5E5 !important;\r\n}\r\n.wdform_map {\r\n border: 6px solid #DCDCDC;\r\n}\r\n.wdform-page-and-images {\r\n width: 100%;\r\n border: 0px !important;\r\n}\r\n.paypal-property {\r\n display: inline-block;\r\n margin-right: 15px;\r\n vertical-align: middle;\r\n}\r\n.sel-wrap {\r\n display: inline-block;\r\n vertical-align: middle;\r\n width:100%;\r\n}\r\n.sel-wrap select {\r\n position: absolute;\r\n z-index:-1;\r\n width: 0px !important;\r\n}\r\n.sel-imul {\r\n display: inline-block;\r\n}\r\n.sel-imul .sel-selected {\r\n cursor: pointer;\r\n position: relative;\r\n display: inline-block;\r\n padding: 2px 0px 2px 2px;\r\n font-size: 13px;\r\n height: 20px;\r\n line-height: 22px;\r\n overflow: hidden;\r\n background: #fff;\r\n border: 1px solid #ccc;\r\n background-position: right 2px center;\r\n width: 100%;\r\n}\r\n.sel-imul.act .sel-selected {\r\n background: #fff;\r\n}\r\n.sel-selected .sel-arraw {\r\n height: 20px;\r\n width: 22px;\r\n background: url([SITE_ROOT]/images/04/01.png) 50% 50% no-repeat;\r\n position: absolute;\r\n top: 0px;\r\n right: 0px;\r\n padding: 2px;\r\n}\r\n.sel-imul .sel-options {\r\n background: #fff;\r\n border: 1px solid #dbdbdb;\r\n border-top: none;\r\n position: absolute;\r\n width: inherit;\r\n display: none;\r\n z-index: 10;\r\n max-height: 200px;\r\n overflow-y: auto;\r\n overflow-x: hidden;\r\n}\r\n.sel-options .sel-option {\r\n padding: 3px 4px;\r\n font-size: 13px;\r\n border: 1px solid #fff;\r\n border-right: none;\r\n border-left: none;\r\n text-align: left;\r\n}\r\n.sel-options .sel-option:hover {\r\n border-color: #dbdbdb;\r\n cursor: pointer;\r\n}\r\n.sel-options .sel-option.sel-ed {\r\n background: #dbdbdb;\r\n border-color: #dbdbdb;\r\n}\r\ninput[type=text] {\r\n margin: 0px;\r\n}\r\ninput[type=password] {\r\n margin: 0px;\r\n}\r\ninput[type=url] {\r\n margin: 0px;\r\n}\r\ninput[type=email] {\r\n margin: 0px;\r\n}\r\ninput.text {\r\n margin: 0px;\r\n}\r\ninput.title {\r\n margin: 0px;\r\n}\r\ntextarea {\r\n margin: 0px;\r\n}\r\nselect {\r\n margin: 0px;\r\n}\r\n.form-error {\r\n border-color: red !important;\r\n}\r\n.form-error:focus {\r\n border-color: red !important;\r\n}\r\n\r\n.wdform-field {\r\n display: table-cell;\r\n padding: 5px 0px;\r\n}\r\n.wdform-label-section{\r\n text-align: left;\r\n display: table-cell;\r\n}\r\n.wdform-element-section {\r\n text-align: left;\r\n display: table-cell;\r\n min-width: 140px;\r\n}\r\n.file-upload input {\r\n position: absolute;\r\n visibility: hidden;\r\n}\r\n.file-upload-status {\r\n margin-left: 10px;\r\n max-width: 200px;\r\n font-weight: bold;\r\n font-size: 16px;\r\n color: #888;\r\n background: #fff;\r\n position: absolute;\r\n border-radius: 4px;\r\n height: 24px;\r\n border: 1px solid #ccc;\r\n padding-left: 5px;\r\n padding-right: 5px;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n direction: rtl;\r\n padding-top: 3px;\r\n margin-top: 2px;\r\n}\r\n.file-picker {\r\n width: 45px;\r\n height: 44px;\r\n background: url([SITE_ROOT]/images/04/upload.png);\r\n display: inline-block;\r\n}\r\ndiv.wdform-page-button {\r\n color: #424242;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 39px;\r\n line-height: 35px;\r\n padding: 0px 20px;\r\n vertical-align: middle;\r\n font-weight: 400;\r\n font-size: 20px;\r\n border: 1px solid #959595;\r\n border-radius: 5px;\r\n}\r\ndiv.wdform-page-button:hover {\r\ncolor: #fff;\r\nborder: 1px solid #C09F97;\r\nbackground: #86A0A7;\r\nbackground: -moz-linear-gradient(bottom, #E0B8AF 0%, #CAA298 49%, #BD9E96 84%, #B6958E 95%);\r\nbackground: -webkit-linear-gradient(bottom, #E0B8AF 0%, #CAA298 49%, #BD9E96 84%, #B6958E 95%);\r\nbackground: -o-linear-gradient(bottom, #E0B8AF 0%, #CAA298 49%, #BD9E96 84%, #B6958E 95%);\r\nbackground: -ms-linear-gradient(bottom, #E0B8AF 0%, #CAA298 49%, #BD9E96 84%, #B6958E 95%);\r\nbackground: linear-gradient(to bottom, #E0B8AF 0%, #CAA298 49%, #BD9E96 84%, #B6958E 95%);\r\nbox-shadow: 0px 0px 5px 0px rgb(221, 221, 221) inset;\r\n}\r\n.button-submit {\r\n color: #767676 !important;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 39px;\r\n line-height: 32px;\r\n padding: 0px 20px 5px;\r\n vertical-align: middle;\r\n font-weight: 400 !important;\r\n font-size: 20px;\r\n border: 1px solid #959595;\r\n border-radius: 5px;\r\n font-family: Segoe UI;\r\nbackground:transparent;\r\n}\r\n.button-submit:hover {\r\ncolor: #fff !important;\r\nborder: 1px solid #C09F97;\r\nbackground: #86A0A7;\r\nbackground: -moz-linear-gradient(bottom, #E0B8AF 0%, #CAA298 49%, #BD9E96 84%, #B6958E 95%);\r\nbackground: -webkit-linear-gradient(bottom, #E0B8AF 0%, #CAA298 49%, #BD9E96 84%, #B6958E 95%);\r\nbackground: -o-linear-gradient(bottom, #E0B8AF 0%, #CAA298 49%, #BD9E96 84%, #B6958E 95%);\r\nbackground: -ms-linear-gradient(bottom, #E0B8AF 0%, #CAA298 49%, #BD9E96 84%, #B6958E 95%);\r\nbackground: linear-gradient(to bottom, #E0B8AF 0%, #CAA298 49%, #BD9E96 84%, #B6958E 95%);\r\nbox-shadow: 0px 0px 5px 0px rgb(221, 221, 221) inset;\r\n}\r\n.button-reset {\r\n background: transparent;\r\n cursor: pointer;\r\n font-size: 18px;\r\n min-width: 80px;\r\n min-height: 34px;\r\n color: #787878;\r\n border: 0px;\r\n margin: 5px;\r\n font-family: Segoe UI;\r\n text-decoration: underline;\r\n}\r\n.wdform_page {\r\n background: #E0D0CD;\r\n padding: 15px 15px 15px 50px;\r\n border-radius: 0px;\r\n font-family: Segoe UI;\r\n}\r\n.wdform_column {\r\n padding-right: 30px !important;\r\n float: left;\r\n border-spacing: 2px;\r\n border-collapse: separate !important;\r\n}\r\n.wdform_column>div {\r\n border-bottom: 0px solid #E7E7E7;\r\n}\r\n.wdform_column>.wdform_row:last-child {\r\n border-bottom: 0px solid #E7E7E7;\r\n}\r\n.wdform-field-section-break {\r\n text-align: center;\r\n}\r\n.wdform_section_break2 {\r\nmargin: 16px 10px 16px 0px;\r\ndisplay: inline-block;\r\nbackground: url([SITE_ROOT]/images/04/03/bg.png) no-repeat;\r\ntext-align: left;\r\nborder-radius: 0px;\r\nwidth: 300px;\r\npadding: 5px 10px;\r\ntext-align: center;\r\nfont-size: 18px;\r\n}\r\n.wdform_section_break\r\n{\r\nmargin: 16px 10px 16px 0px;\r\ntext-align: left;\r\nfont-size: 18px;\r\n}\r\n.wdform_section {\r\n display: table-row\r\n}\r\nselect {\r\n border-radius: 0px;\r\n height: 24px;\r\n overflow: hidden;\r\n padding: 2px;\r\nborder: 1px solid #ccc;\r\n outline: none;\r\n}\r\ninput[type="text"]{\r\n border-radius: 0px;\r\n height: 22px;\r\n border: 1px solid #ccc;\r\n padding:0 3px !important;\r\n}\r\ninput[type="password"]{\r\n border-radius: 0px;\r\n height: 22px;\r\n border: 1px solid #ccc;\r\n padding:0 3px !important;\r\n}\r\ntextarea {\r\n border-radius: 0px;\r\n height: 22px;\r\n border: 1px solid #ccc;\r\n padding:0 3px !important;\r\n}\r\ninput[type="text"]:focus {\r\n border-color: #8A6B63;\r\n outline: none;\r\n}\r\ninput[type="password"]:focus {\r\n border-color: #8A6B63;\r\n outline: none;\r\n}\r\ntextarea:focus {\r\n border-color: #8A6B63;\r\n outline: none;\r\n}\r\n\r\n.input_deactive {\r\n color: #999999;\r\n font-style: italic;\r\n}\r\n.input_active {\r\n color: #000000;\r\n font-style: normal;\r\n}\r\n.am_pm_select {\r\n width: 30px;\r\n vertical-align: middle;\r\n}\r\n.checkbox-div input[type=checkbox] {\r\n position : absolute;\r\n z-index: -1;\r\n}\r\n.checkbox-div {\r\n width: 14px;\r\n height: 14px;\r\n background: #fff;\r\n border: 1px solid #ccc;\r\n border-radius: 7px;\r\n position: relative;\r\n display: inline-block;\r\n box-shadow: 0px 3px 8px 1px rgb(213, 213, 213) inset;\r\n}\r\n.checkbox-div label {\r\n cursor: pointer;\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\r\n filter: alpha(opacity=0);\r\n opacity: 0;\r\n content: "";\r\n position: absolute;\r\n width: 16px;\r\n height: 13px;\r\n background: url([SITE_ROOT]/images/02/checkbox.png);\r\n border-radius: 0px;\r\n top: -3px;\r\n left: 2px;\r\n}\r\n.checkbox-div label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.checkbox-div .wdform-ch-rad-label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.wdform-ch-rad-label:hover + .checkbox-div label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.checkbox-div input[type=checkbox]:checked + label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";\r\n filter: alpha(opacity=100);\r\n opacity: 1;\r\n}\r\n.wdform-calendar-button,\r\n.wdform-calendar-button:hover {\r\n display:inline-block;\r\n background: transparent url([SITE_ROOT]/images/04/date.png) no-repeat left 50% !important;\r\n border: 0px;\r\n color: transparent;\r\n width: 20px;\r\n height: 24px;\r\n position: relative;\r\n left: -22px;\r\n vertical-align: top;\r\n outline: none;\r\n}\r\n.radio-div input[type=radio] {\r\n position : absolute;\r\n z-index: -1;\r\n}\r\n.forlabs {\r\n float: right;\r\n margin-right: 20px;\r\n}\r\n.radio-div {\r\n width: 14px;\r\n height: 14px;\r\n background: #fff;\r\n border: 1px solid #ccc;\r\n border-radius: 7px;\r\n position: relative;\r\n display: inline-block;\r\n box-shadow: 0px 3px 8px 1px rgb(213, 213, 213) inset;\r\n}\r\n.radio-div label {\r\ncursor: pointer;\r\n-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\r\nfilter: alpha(opacity=0);\r\nopacity: 0;\r\ncontent: "";\r\nposition: absolute;\r\nwidth: 10px;\r\nheight: 10px;\r\nbackground: #B98476 ;\r\nbackground: -moz-linear-gradient(bottom, #CA9B8F 0%, #DBACA0 49%, #B98476 84%, #A38279 95%);\r\nbackground: -webkit-linear-gradient(bottom, #CA9B8F 0%, #DBACA0 49%, #B98476 84%, #A38279 95%);\r\nbackground: -o-linear-gradient(bottom, #CA9B8F 0%, #DBACA0 49%, #B98476 84%, #A38279 95%);\r\nbackground: -ms-linear-gradient(bottom, #CA9B8F 0%, #DBACA0 49%, #B98476 84%, #A38279 95%);\r\nbackground: linear-gradient(to bottom, #CA9B8F 0%, #DBACA0 49%, #B98476 84%, #A38279 95%);\r\nbox-shadow: 0px 0px 5px 0px rgb(214, 214, 214) inset;\r\nborder-radius: 7px;\r\ntop: 1px;\r\nleft: 1px;\r\nborder: 1px solid #9B766D;\r\n}\r\n.radio-div label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.5;\r\n}\r\n.radio-div .wdform-ch-rad-label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.5;\r\n}\r\n.wdform-ch-rad-label:hover + .radio-div label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.5;\r\n}\r\n.radio-div input[type=radio]:checked + label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";\r\n filter: alpha(opacity=100);\r\n opacity: 1;\r\n}\r\n.if-ie-div-label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)" !important;\r\n filter: alpha(opacity=100) !important;\r\n opacity: 1 !important;\r\n}\r\n.wdform-ch-rad-label {\r\n display: inline;\r\n margin: -4px 5px 5px 5px;\r\n float: left;\r\n color: #000;\r\n cursor: pointer\r\n}\r\ntextarea {\r\n padding-top: 5px;\r\n}\r\n.wdform-date {\r\n display:inline-block;\r\n width: 105px\r\n}\r\n.wdform_footer {\r\n padding-top: 5px;\r\n margin-top: 15px;\r\n}\r\n.page-numbers {\r\n vertical-align: middle;\r\n}\r\n.time_box {\r\n text-align: right;\r\n width: 30px;\r\n vertical-align: middle\r\n}\r\n.mini_label {\r\n font-size: 10px;\r\n font-family: "Lucida Grande", Tahoma, Arial, Verdana, sans-serif;\r\n color: #000;\r\n}\r\n.wdform-label {\r\n border: none;\r\n color: #000;\r\n vertical-align: top;\r\n line-height: 17px;\r\n}\r\n.wdform_colon {\r\n color: #000\r\n}\r\n.wdform_separator {\r\n font-style: bold;\r\n vertical-align: middle;\r\n color: #000;\r\n}\r\n.wdform_line {\r\n color: #000\r\n}\r\n.wdform-required {\r\n border: none;\r\n color: red;\r\n vertical-align: top;\r\n}\r\n.captcha_img {\r\n border-width: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n cursor: pointer;\r\n}\r\n.captcha_refresh {\r\n width: 30px;\r\n height: 30px;\r\n border-width: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n vertical-align: middle;\r\n cursor: pointer;\r\n background-image: url([SITE_ROOT]/images/refresh_black.png);\r\n}\r\n.captcha_input {\r\n height: 20px;\r\n border-width: 1px;\r\n margin: 0px;\r\n padding: 0px;\r\n vertical-align: middle;\r\n}\r\n.file_upload {\r\n border: 0px solid white;\r\n border-radius: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n color: black;\r\n background-color: white;\r\n}\r\n.page_deactive {\r\n font-size: 12px;\r\n color: #ffffff;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 20px;\r\n text-align: center;\r\n vertical-align: bottom;\r\n padding: 5px 20px 0px 20px;\r\n font-weight: bold;\r\n background-color: #CCAAA3;\r\n margin-left: 1px;\r\n}\r\n.page_active {\r\n color: #fff;\r\n cursor: pointer;\r\n background-color: #8A6B63;\r\n display: inline-block;\r\n vertical-align: bottom;\r\n height: 25px;\r\n text-align: center;\r\n font-size: 16px;\r\n padding: 5px 20px 0px 20px;\r\n margin-left: 1px;\r\n}\r\n.page_percentage_active {\r\n padding: 0px;\r\n margin: 0px;\r\n border-spacing: 0px;\r\n height: 23px;\r\n line-height: 23px;\r\n font-size: 15px;\r\n float: left;\r\n text-align: right !important;\r\n z-index: 1;\r\n position: relative;\r\n background: #8A6B63;\r\n vertical-align: middle;\r\n font-family: ArTarumianHandes;\r\n}\r\n.page_percentage_deactive {\r\n height: 23px;\r\n line-height: 23px;\r\n background-color: #CCAAA3;\r\n text-align: left !important;\r\n margin-bottom: 1px;\r\n}\r\n.page_numbers {\r\n font-size: 14px;\r\n color: #000;\r\n}\r\n.phone_area_code {\r\n width: 50px;\r\n}\r\n.phone_number {\r\n width: 100px;\r\n}\r\nbutton {\r\n cursor: pointer;\r\n}\r\n.other_input {\r\n border-radius: 0px;\r\n border-width: 1px;\r\n height: 16px;\r\n font-size: 12px;\r\n padding: 1px;\r\n margin: 1px;\r\n margin-left: 25px;\r\n z-index: 100;\r\n position: absolute;\r\n}\r\n.wdform_page_navigation {\r\n text-align: right !important;\r\n margin-bottom: 0px;\r\n}\r\n.wdform_percentage_text {\r\n margin: 3px 5px 3px 9px;\r\n color: #FFFFFF;\r\n font-weight: bold;\r\n}\r\n.wdform_percentage_title {\r\n color: #000000;\r\n font-style: italic;\r\n margin: 0px 0px 0px 40px;\r\n display: inline-block;\r\n line-height: 20px;\r\n height: 20px;\r\n vertical-align: middle;\r\n}\r\n.wdform_percentage_arrow {\r\n display: inline-block;\r\n width: 20px;\r\n height: 23px;\r\n background-color: #8A6B63;\r\n position: relative;\r\n left: -14px;\r\n z-index: 0;\r\n vertical-align: middle;\r\n -moz-transform: scale(1) rotate(0deg) translateX(0px) translateY(0px) skewX(-25deg) skewY(0deg);\r\n -webkit-transform: scale(1) rotate(0deg) translateX(0px) translateY(0px) skewX(-25deg) skewY(0deg);\r\n -o-transform: scale(1) rotate(0deg) translateX(0px) translateY(0px) skewX(-25deg) skewY(0deg);\r\n -ms-transform: scale(1) rotate(0deg) translateX(0px) translateY(0px) skewX(-25deg) skewY(0deg);\r\n transform: scale(1) rotate(0deg) translateX(0px) translateY(0px) skewX(-25deg) skewY(0deg);\r\n}\r\n.wdform_button button {\r\n background: #0E4D92;\r\n cursor: pointer;\r\n font-size: 17px;\r\n border-radius: 4px;\r\n min-width: 80px;\r\n min-height: 27px;\r\n color: #fff;\r\n border: 2px solid #0E3F77;\r\n margin: 5px;\r\n box-shadow: 0px 0px 2px #c9c9c9;\r\n font-family: Segoe UI;\r\n}\r\n.wdform_button button:active {\r\n border: 2px solid #0B2D52;\r\n background: #0E3F77;\r\n}\', 0)');
99
- $wpdb->query('INSERT INTO `' . $wpdb->prefix . 'contactformmaker_themes` (`id`, `title`, `css`, `default`) VALUES(16, \'Theme 04 transparent (gray button)\', \'.radio-div input[type="radio"],\r\n.checkbox-div input[type="checkbox"]\r\n{\r\nvisibility: hidden;\r\n}\r\n.wdform-page-and-images .other_input\r\n{\r\nmax-width: none;\r\n}\r\nbutton,\r\ninput,\r\nselect,\r\ntextarea\r\n{\r\nfont-size:14px;\r\n}\r\n.warning,\r\n.error\r\n{\r\nbackground-color: #FFFFFF;\r\nborder: 1px solid #A6A6A6;\r\nmargin-bottom: 10px;\r\ncolor: #A6A6A6;\r\npadding: 5px;\r\n}\r\n.warning *,\r\n.error *\r\n{\r\nmargin:0;\r\n}\r\n.recaptcha_input_area input\r\n{\r\nheight:initial !important;\r\n}\r\na.ui-slider-handle {\r\n width: 15px;\r\n height: 15px;\r\n top: -5px;\r\n}\r\n.ui-slider {\r\n height: 6px;\r\n background: #fff !important;\r\n margin: 7px 0px;\r\n}\r\n.wdform_grading input {\r\n width: 100px;\r\n}\r\n.wdform-matrix-cell input[type="text"] {\r\n width: 100px;\r\n}\r\n.wdform-matrix-cell select {\r\n width: 60px;\r\n}\r\n.wdform_section .wdform_column:last-child {\r\n padding-right: 0px !important;\r\n}\r\n.wdform_preload {\r\n display: none;\r\n}\r\n@font-face {\r\n font-family: ArTarumianHandes;\r\n src: url([SITE_ROOT]/css/HANDES.ttf);\r\n}\r\n.wdform_grading {\r\n padding: 3px 0px;\r\n}\r\n.wdform-matrix-table {\r\n display: table;\r\n border-spacing: 0px;\r\n}\r\n.wdform-matrix-column {\r\n text-align: left;\r\n display: table-cell;\r\n}\r\n.wdform-matrix-cell {\r\n text-align: center;\r\n display: table-cell;\r\n padding: 6px 10px;\r\n}\r\n.wdform-matrix-head>div {\r\n display: table-cell;\r\n text-align: center;\r\n}\r\n.wdform-matrix-head {\r\n display: table-row;\r\n}\r\n.wdform-matrix-row0 {\r\n background: #DFDFDF;\r\n display: table-row;\r\n}\r\n.wdform-matrix-row1 {\r\n background: #EDE5DA;\r\n display: table-row;\r\n}\r\n.selected-text {\r\n text-align: left;\r\n}\r\n.wdform-quantity {\r\n width: 30px;\r\n margin: 2px 0px;\r\n}\r\n.wdform_scale_rating label {\r\n vertical-align: middle;\r\n}\r\n.ui-corner-all {\r\n border-radius: 3px;\r\n}\r\n.ui-widget-content {\r\n border: 0px;\r\n background: transparent;\r\n}\r\na.ui-spinner-button:hover{\r\n background: #B3B3B3 !important;\r\n color: #fff;\r\n}\r\na.ui-spinner-button:active{\r\n background: #B3B3B3 !important;\r\n color: #fff;\r\n}\r\na.ui-spinner-button:focus{\r\n background: #B3B3B3 !important;\r\n color: #fff;\r\n}\r\na.ui-slider-handle:hover{\r\n background: #B3B3B3 !important;\r\n color: #fff;\r\n}\r\na.ui-slider-handle:active{\r\n background: #B3B3B3 !important;\r\n color: #fff;\r\n}\r\na.ui-slider-handle:focus{\r\n background: #B3B3B3 !important;\r\n color: #fff;\r\n}\r\nui-state-hover {\r\n background: #B3B3B3 !important;\r\n color: #fff;\r\n}\r\n.ui-state-default{\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-widget-content .ui-state-default{\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-widget-header .ui-state-default {\r\n border: 1px solid #d3d3d3;\r\n background: #DFDDDD;\r\n font-weight: normal;\r\n color: #555555;\r\n}\r\n.ui-slider-range {\r\n background: #E5E5E5 !important;\r\n}\r\n.wdform_map {\r\n border: 6px solid #DCDCDC;\r\n}\r\n.wdform-page-and-images {\r\n width: 100%;\r\n border: 0px !important;\r\n}\r\n.paypal-property {\r\n display: inline-block;\r\n margin-right: 15px;\r\n vertical-align: middle;\r\n}\r\n.sel-wrap {\r\n display: inline-block;\r\n vertical-align: middle;\r\n width:100%;\r\n}\r\n.sel-wrap select {\r\n position: absolute;\r\n z-index:-1;\r\n width: 0px !important;\r\n}\r\n.sel-imul {\r\n display: inline-block;\r\n}\r\n.sel-imul .sel-selected {\r\n cursor: pointer;\r\n position: relative;\r\n display: inline-block;\r\n padding: 2px 0px 2px 2px;\r\n font-size: 13px;\r\n height: 20px;\r\n line-height: 22px;\r\n overflow: hidden;\r\n background: #fff;\r\n border: 1px solid #ccc;\r\n background-position: right 2px center;\r\n width: 100%;\r\n}\r\n.sel-imul.act .sel-selected {\r\n background: #fff;\r\n}\r\n.sel-selected .sel-arraw {\r\n height: 20px;\r\n width: 22px;\r\n background: url([SITE_ROOT]/images/04/01.png) 50% 50% no-repeat;\r\n position: absolute;\r\n top: 0px;\r\n right: 0px;\r\n padding: 2px;\r\n}\r\n.sel-imul .sel-options {\r\n background: #fff;\r\n border: 1px solid #dbdbdb;\r\n border-top: none;\r\n position: absolute;\r\n width: inherit;\r\n display: none;\r\n z-index: 10;\r\n max-height: 200px;\r\n overflow-y: auto;\r\n overflow-x: hidden;\r\n}\r\n.sel-options .sel-option {\r\n padding: 3px 4px;\r\n font-size: 13px;\r\n border: 1px solid #fff;\r\n border-right: none;\r\n border-left: none;\r\n text-align: left;\r\n}\r\n.sel-options .sel-option:hover {\r\n border-color: #dbdbdb;\r\n cursor: pointer;\r\n}\r\n.sel-options .sel-option.sel-ed {\r\n background: #dbdbdb;\r\n border-color: #dbdbdb;\r\n}\r\ninput[type=text] {\r\n margin: 0px;\r\n}\r\ninput[type=password] {\r\n margin: 0px;\r\n}\r\ninput[type=url] {\r\n margin: 0px;\r\n}\r\ninput[type=email] {\r\n margin: 0px;\r\n}\r\ninput.text {\r\n margin: 0px;\r\n}\r\ninput.title {\r\n margin: 0px;\r\n}\r\ntextarea {\r\n margin: 0px;\r\n}\r\nselect {\r\n margin: 0px;\r\n}\r\n.form-error {\r\n border-color: red !important;\r\n}\r\n.form-error:focus {\r\n border-color: red !important;\r\n}\r\n\r\n.wdform-field {\r\n display: table-cell;\r\n padding: 5px 0px;\r\n}\r\n.wdform-label-section{\r\n text-align: left;\r\n display: table-cell;\r\n}\r\n.wdform-element-section {\r\n text-align: left;\r\n display: table-cell;\r\n min-width: 140px;\r\n}\r\n.file-upload input {\r\n position: absolute;\r\n visibility: hidden;\r\n}\r\n.file-upload-status {\r\n margin-left: 10px;\r\n max-width: 200px;\r\n font-weight: bold;\r\n font-size: 16px;\r\n color: #888;\r\n background: #fff;\r\n position: absolute;\r\n border-radius: 4px;\r\n height: 24px;\r\n border: 1px solid #ccc;\r\n padding-left: 5px;\r\n padding-right: 5px;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n direction: rtl;\r\n padding-top: 3px;\r\n margin-top: 2px;\r\n}\r\n.file-picker {\r\n width: 45px;\r\n height: 44px;\r\n background: url([SITE_ROOT]/images/04/upload.png);\r\n display: inline-block;\r\n}\r\ndiv.wdform-page-button {\r\n color: #424242;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 39px;\r\n line-height: 35px;\r\n padding: 0px 20px;\r\n vertical-align: middle;\r\n font-weight: 400;\r\n font-size: 20px;\r\n border: 1px solid #959595;\r\n border-radius: 5px;\r\n}\r\ndiv.wdform-page-button:hover {\r\ncolor: #fff;\r\nborder: 1px solid #919191;\r\nbackground: #7A7A7A ;\r\nbackground: -moz-linear-gradient(bottom, #C7C7C7 0%, #A0A0A0 49%, #7A7A7A 84%, #858585 95%);\r\nbackground: -webkit-linear-gradient(bottom, #C7C7C7 0%, #A0A0A0 49%, #7A7A7A 84%, #858585 95%);\r\nbackground: -o-linear-gradient(bottom, #C7C7C7 0%, #A0A0A0 49%, #7A7A7A 84%, #858585 95%);\r\nbackground: -ms-linear-gradient(bottom, #C7C7C7 0%, #A0A0A0 49%, #7A7A7A 84%, #858585 95%);\r\nbackground: linear-gradient(to bottom, #C7C7C7 0%, #A0A0A0 49%, #7A7A7A 84%, #858585 95%);\r\nbox-shadow: 0px 0px 5px 0px rgb(221, 221, 221) inset;\r\n}\r\n.button-submit {\r\n color: #767676 !important;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 39px;\r\n line-height: 32px;\r\n padding: 0px 20px 5px;\r\n vertical-align: middle;\r\n font-weight: 400 !important;\r\n font-size: 20px;\r\n border: 1px solid #959595;\r\n border-radius: 5px;\r\n font-family: Segoe UI;\r\nbackground:transparent;\r\n}\r\n.button-submit:hover {\r\ncolor: #fff !important;\r\nborder: 1px solid #919191;\r\nbackground: #7A7A7A ;\r\nbackground: -moz-linear-gradient(bottom, #C7C7C7 0%, #A0A0A0 49%, #7A7A7A 84%, #858585 95%);\r\nbackground: -webkit-linear-gradient(bottom, #C7C7C7 0%, #A0A0A0 49%, #7A7A7A 84%, #858585 95%);\r\nbackground: -o-linear-gradient(bottom, #C7C7C7 0%, #A0A0A0 49%, #7A7A7A 84%, #858585 95%);\r\nbackground: -ms-linear-gradient(bottom, #C7C7C7 0%, #A0A0A0 49%, #7A7A7A 84%, #858585 95%);\r\nbackground: linear-gradient(to bottom, #C7C7C7 0%, #A0A0A0 49%, #7A7A7A 84%, #858585 95%);\r\nbox-shadow: 0px 0px 5px 0px rgb(221, 221, 221) inset;\r\n}\r\n.button-reset {\r\n background: transparent;\r\n cursor: pointer;\r\n font-size: 18px;\r\n min-width: 80px;\r\n min-height: 34px;\r\n color: #787878;\r\n border: 0px;\r\n margin: 5px;\r\n font-family: Segoe UI;\r\n text-decoration: underline;\r\n}\r\n.wdform_page {\r\n background: transparent;\r\n padding: 15px 15px 15px 50px;\r\n border-radius: 0px;\r\n font-family: Segoe UI;\r\n}\r\n.wdform_column {\r\n padding-right: 30px !important;\r\n float: left;\r\n border-spacing: 2px;\r\n border-collapse: separate !important;\r\n}\r\n.wdform_column>div {\r\n border-bottom: 0px solid #E7E7E7;\r\n}\r\n.wdform_column>.wdform_row:last-child {\r\n border-bottom: 0px solid #E7E7E7;\r\n}\r\n.wdform-field-section-break {\r\n text-align: center;\r\n}\r\n.wdform_section_break2 {\r\n margin: 16px 10px 16px 0px;\r\n display: inline-block;\r\n background: url([SITE_ROOT]/images/04/02/bg.png) no-repeat;\r\n text-align: left;\r\n border-radius: 0px;\r\n width: 300px;\r\npadding: 5px;\r\n text-align: center;\r\nfont-size: 16px;\r\n}\r\n.wdform_section_break\r\n{\r\nmargin: 16px 10px 16px 0px;\r\ntext-align: left;\r\nfont-size: 18px;\r\n}\r\n.wdform_section {\r\n display: table-row\r\n}\r\nselect {\r\n border-radius: 0px;\r\n height: 24px;\r\n overflow: hidden;\r\n padding: 2px;\r\nborder: 1px solid #ccc;\r\n outline: none;\r\n}\r\ninput[type="text"]{\r\n border-radius: 0px;\r\n height: 22px;\r\n border: 1px solid #ccc;\r\n padding:0 3px !important;\r\n}\r\ninput[type="password"]{\r\n border-radius: 0px;\r\n height: 22px;\r\n border: 1px solid #ccc;\r\n padding:0 3px !important;\r\n}\r\ntextarea {\r\n border-radius: 0px;\r\n height: 22px;\r\n border: 1px solid #ccc;\r\n padding:0 3px !important;\r\n}\r\ninput[type="text"]:focus {\r\n border-color: #B3B3B3;\r\n outline: none;\r\n}\r\ninput[type="password"]:focus {\r\n border-color: #B3B3B3;\r\n outline: none;\r\n}\r\ntextarea:focus {\r\n border-color: #B3B3B3;\r\n outline: none;\r\n}\r\n\r\n.input_deactive {\r\n color: #999999;\r\n font-style: italic;\r\n}\r\n.input_active {\r\n color: #000000;\r\n font-style: normal;\r\n}\r\n.am_pm_select {\r\n width: 30px;\r\n vertical-align: middle;\r\n}\r\n.checkbox-div input[type=checkbox] {\r\n position : absolute;\r\n z-index: -1;\r\n}\r\n.checkbox-div {\r\n width: 14px;\r\n height: 14px;\r\n background: #fff;\r\n border: 1px solid #ccc;\r\n border-radius: 7px;\r\n position: relative;\r\n display: inline-block;\r\n box-shadow: 0px 3px 8px 1px rgb(213, 213, 213) inset;\r\n}\r\n.checkbox-div label {\r\n cursor: pointer;\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\r\n filter: alpha(opacity=0);\r\n opacity: 0;\r\n content: "";\r\n position: absolute;\r\n width: 16px;\r\n height: 13px;\r\n background: url([SITE_ROOT]/images/02/checkbox.png);\r\n border-radius: 0px;\r\n top: -3px;\r\n left: 2px;\r\n}\r\n.checkbox-div label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.checkbox-div .wdform-ch-rad-label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.wdform-ch-rad-label:hover + .checkbox-div label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.3;\r\n}\r\n.checkbox-div input[type=checkbox]:checked + label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";\r\n filter: alpha(opacity=100);\r\n opacity: 1;\r\n}\r\n.wdform-calendar-button,\r\n.wdform-calendar-button:hover {\r\n display:inline-block;\r\n background: transparent url([SITE_ROOT]/images/04/date.png) no-repeat left 50% !important;\r\n border: 0px;\r\n color: transparent;\r\n width: 20px;\r\n height: 24px;\r\n position: relative;\r\n left: -22px;\r\n vertical-align: top;\r\n outline: none;\r\n}\r\n.radio-div input[type=radio] {\r\n position : absolute;\r\n z-index: -1;\r\n}\r\n.forlabs {\r\n float: right;\r\n margin-right: 20px;\r\n}\r\n.radio-div {\r\n width: 14px;\r\n height: 14px;\r\n background: #fff;\r\n border: 1px solid #ccc;\r\n border-radius: 7px;\r\n position: relative;\r\n display: inline-block;\r\n box-shadow: 0px 3px 8px 1px rgb(213, 213, 213) inset;\r\n}\r\n.radio-div label {\r\ncursor: pointer;\r\n-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";\r\nfilter: alpha(opacity=0);\r\nopacity: 0;\r\ncontent: "";\r\nposition: absolute;\r\nwidth: 10px;\r\nheight: 10px;\r\nbackground: #63929E ;\r\nbackground: -moz-linear-gradient(bottom, #84B8C5 0%, #75A1AC 49%, #63929E 84%, #377483 95%);\r\nbackground: -webkit-linear-gradient(bottom, #84B8C5 0%, #75A1AC 49%, #63929E 84%, #377483 95%);\r\nbackground: -o-linear-gradient(bottom, #84B8C5 0%, #75A1AC 49%, #63929E 84%, #377483 95%);\r\nbackground: -ms-linear-gradient(bottom, #84B8C5 0%, #75A1AC 49%, #63929E 84%, #377483 95%);\r\nbackground: linear-gradient(to bottom, #84B8C5 0%, #75A1AC 49%, #63929E 84%, #377483 95%);\r\nbox-shadow: 0px 0px 5px 0px rgb(214, 214, 214) inset;\r\nborder-radius: 7px;\r\ntop: 1px;\r\nleft: 1px;\r\nborder: 1px solid #678B94;\r\n}\r\n.radio-div label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.5;\r\n}\r\n.radio-div .wdform-ch-rad-label:hover {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.5;\r\n}\r\n.wdform-ch-rad-label:hover + .radio-div label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";\r\n filter: alpha(opacity=30);\r\n opacity: 0.5;\r\n}\r\n.radio-div input[type=radio]:checked + label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";\r\n filter: alpha(opacity=100);\r\n opacity: 1;\r\n}\r\n.if-ie-div-label {\r\n -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)" !important;\r\n filter: alpha(opacity=100) !important;\r\n opacity: 1 !important;\r\n}\r\n.wdform-ch-rad-label {\r\n display: inline;\r\n margin: -4px 5px 5px 5px;\r\n float: left;\r\n color: #000;\r\n cursor: pointer\r\n}\r\ntextarea {\r\n padding-top: 5px;\r\n}\r\n.wdform-date {\r\n display:inline-block;\r\n width: 105px\r\n}\r\n.wdform_footer {\r\n padding-top: 5px;\r\n margin-top: 15px;\r\n}\r\n.page-numbers {\r\n vertical-align: middle;\r\n}\r\n.time_box {\r\n text-align: right;\r\n width: 30px;\r\n vertical-align: middle\r\n}\r\n.mini_label {\r\n font-size: 10px;\r\n font-family: "Lucida Grande", Tahoma, Arial, Verdana, sans-serif;\r\n color: #000;\r\n}\r\n.wdform-label {\r\n border: none;\r\n color: #000;\r\n vertical-align: top;\r\n line-height: 17px;\r\n}\r\n.wdform_colon {\r\n color: #000\r\n}\r\n.wdform_separator {\r\n font-style: bold;\r\n vertical-align: middle;\r\n color: #000;\r\n}\r\n.wdform_line {\r\n color: #000\r\n}\r\n.wdform-required {\r\n border: none;\r\n color: red;\r\n vertical-align: top;\r\n}\r\n.captcha_img {\r\n border-width: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n cursor: pointer;\r\n}\r\n.captcha_refresh {\r\n width: 30px;\r\n height: 30px;\r\n border-width: 0px;\r\n margin: 0px;\r\n padding: 0px;\r\n vertical-align: middle;\r\n cursor: pointer;\r\n background-image: url([SITE_ROOT]/images/refresh_black.png);\r\n}\r\n.captcha_input {\r\n height: 20px;\r\n border-width: 1px;\r\n margin: 0px;\r\n padding: 0px;\r\n vertical-align: middle;\r\n}\r\n.file_upload {\r\n border: 0px solid white;\r\n border-rad