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

Version Description

  • bug in ReCaptcha fixed
Download this release

Release Info

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

Code changes from version 1.0.13 to 1.0.16

Files changed (30) hide show
  1. admin/controllers/CFMControllerBlocked_ips_cfm.php +139 -139
  2. admin/controllers/CFMControllerCFMShortcode.php +42 -42
  3. admin/controllers/CFMControllerContactFormMakerPreview.php +42 -42
  4. admin/controllers/CFMControllerContactFormmakerwdcaptcha.php +42 -42
  5. admin/controllers/CFMControllerLicensing_cfm.php +48 -48
  6. admin/controllers/CFMControllerManage_cfm.php +572 -572
  7. admin/controllers/CFMControllerSubmissions_cfm.php +51 -51
  8. admin/controllers/CFMControllerThemes_cfm.php +51 -51
  9. admin/controllers/CFMControllerUninstall_cfm.php +56 -56
  10. admin/controllers/CFMControllerWidget.php +60 -60
  11. admin/models/CFMModelBlocked_ips_cfm.php +72 -72
  12. admin/models/CFMModelCFMShortcode.php +35 -35
  13. admin/models/CFMModelContactFormMakerPreview.php +30 -30
  14. admin/models/CFMModelContactFormmakerwdcaptcha.php +30 -30
  15. admin/models/CFMModelLicensing_cfm.php +29 -29
  16. admin/models/CFMModelManage_cfm.php +753 -753
  17. admin/models/CFMModelThemes_cfm.php +30 -30
  18. admin/models/CFMModelUninstall_cfm.php +38 -38
  19. admin/models/CFMModelWidget.php +36 -36
  20. admin/views/CFMViewBlocked_ips_cfm.php +147 -147
  21. admin/views/CFMViewCFMShortcode.php +112 -112
  22. admin/views/CFMViewContactFormMakerPreview.php +54 -54
  23. admin/views/CFMViewContactFormmakerwdcaptcha.php +92 -92
  24. admin/views/CFMViewLicensing_cfm.php +152 -152
  25. admin/views/CFMViewManage_cfm.php +1523 -1523
  26. admin/views/CFMViewSubmissions_cfm.php +47 -47
  27. admin/views/CFMViewThemes_cfm.php +62 -62
  28. admin/views/CFMViewUninstall_cfm.php +116 -116
  29. admin/views/CFMViewWidget.php +83 -83
  30. contact-form-builder-insert.php +0 -98
admin/controllers/CFMControllerBlocked_ips_cfm.php CHANGED
@@ -1,140 +1,140 @@
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
- $this->$task($id);
28
- }
29
- else {
30
- $this->display();
31
- }
32
- }
33
-
34
- public function display() {
35
- require_once WD_CFM_DIR . "/admin/models/CFMModelBlocked_ips_cfm.php";
36
- $model = new CFMModelBlocked_ips_cfm();
37
-
38
- require_once WD_CFM_DIR . "/admin/views/CFMViewBlocked_ips_cfm.php";
39
- $view = new CFMViewBlocked_ips_cfm($model);
40
- $view->display();
41
- }
42
-
43
- public function save() {
44
- $message = $this->save_db();
45
- $page = WDW_CFM_Library::get('page');
46
- WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
47
- }
48
-
49
- public function save_db() {
50
- global $wpdb;
51
- $id = (isset($_POST['current_id']) ? (int) $_POST['current_id'] : 0);
52
- $ip = (isset($_POST['ip']) ? esc_html(stripslashes($_POST['ip'])) : '');
53
- if ($id != 0) {
54
- $save = $wpdb->update($wpdb->prefix . 'contactformmaker_blocked', array(
55
- 'ip' => $ip,
56
- ), array('id' => $id));
57
- }
58
- else {
59
- $save = $wpdb->insert($wpdb->prefix . 'contactformmaker_blocked', array(
60
- 'ip' => $ip,
61
- ), array(
62
- '%s',
63
- ));
64
- }
65
- if ($save !== FALSE) {
66
- $message = 1;
67
- }
68
- else {
69
- $message = 2;
70
- }
71
- }
72
-
73
- public function save_all() {
74
- global $wpdb;
75
- $flag = FALSE;
76
- $ips_id_col = $wpdb->get_col('SELECT id FROM ' . $wpdb->prefix . 'contactformmaker_blocked');
77
- foreach ($ips_id_col as $ip_id) {
78
- if (isset($_POST['ip' . $ip_id])) {
79
- $ip = esc_html(stripslashes($_POST['ip' . $ip_id]));
80
- if ($ip == '') {
81
- $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_blocked WHERE id="%d"', $ip_id));
82
- }
83
- else {
84
- $flag = TRUE;
85
- $wpdb->update($wpdb->prefix . 'contactformmaker_blocked', array(
86
- 'ip' => $ip,
87
- ), array('id' => $ip_id));
88
- }
89
- }
90
- }
91
- if ($flag) {
92
- $message = 1;
93
- }
94
- $page = WDW_CFM_Library::get('page');
95
- WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
96
- }
97
-
98
- public function delete($id) {
99
- global $wpdb;
100
- $query = $wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_blocked WHERE id="%d"', $id);
101
- if ($wpdb->query($query)) {
102
- $message = 3;
103
- }
104
- else {
105
- $message = 2;
106
- }
107
- $page = WDW_CFM_Library::get('page');
108
- WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
109
- }
110
-
111
- public function delete_all() {
112
- global $wpdb;
113
- $flag = FALSE;
114
- $ips_id_col = $wpdb->get_col('SELECT id FROM ' . $wpdb->prefix . 'contactformmaker_blocked');
115
- foreach ($ips_id_col as $ip_id) {
116
- if (isset($_POST['check_' . $ip_id])) {
117
- $flag = TRUE;
118
- $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_blocked WHERE id="%d"', $ip_id));
119
- }
120
- }
121
- if ($flag) {
122
- $message = 5;
123
- }
124
- else {
125
- $message = 2;
126
- }
127
- $page = WDW_CFM_Library::get('page');
128
- WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
129
- }
130
-
131
- ////////////////////////////////////////////////////////////////////////////////////////
132
- // Getters & Setters //
133
- ////////////////////////////////////////////////////////////////////////////////////////
134
- ////////////////////////////////////////////////////////////////////////////////////////
135
- // Private Methods //
136
- ////////////////////////////////////////////////////////////////////////////////////////
137
- ////////////////////////////////////////////////////////////////////////////////////////
138
- // Listeners //
139
- ////////////////////////////////////////////////////////////////////////////////////////
140
  }
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
+ $this->$task($id);
28
+ }
29
+ else {
30
+ $this->display();
31
+ }
32
+ }
33
+
34
+ public function display() {
35
+ require_once WD_CFM_DIR . "/admin/models/CFMModelBlocked_ips_cfm.php";
36
+ $model = new CFMModelBlocked_ips_cfm();
37
+
38
+ require_once WD_CFM_DIR . "/admin/views/CFMViewBlocked_ips_cfm.php";
39
+ $view = new CFMViewBlocked_ips_cfm($model);
40
+ $view->display();
41
+ }
42
+
43
+ public function save() {
44
+ $message = $this->save_db();
45
+ $page = WDW_CFM_Library::get('page');
46
+ WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
47
+ }
48
+
49
+ public function save_db() {
50
+ global $wpdb;
51
+ $id = (isset($_POST['current_id']) ? (int) $_POST['current_id'] : 0);
52
+ $ip = (isset($_POST['ip']) ? esc_html(stripslashes($_POST['ip'])) : '');
53
+ if ($id != 0) {
54
+ $save = $wpdb->update($wpdb->prefix . 'contactformmaker_blocked', array(
55
+ 'ip' => $ip,
56
+ ), array('id' => $id));
57
+ }
58
+ else {
59
+ $save = $wpdb->insert($wpdb->prefix . 'contactformmaker_blocked', array(
60
+ 'ip' => $ip,
61
+ ), array(
62
+ '%s',
63
+ ));
64
+ }
65
+ if ($save !== FALSE) {
66
+ $message = 1;
67
+ }
68
+ else {
69
+ $message = 2;
70
+ }
71
+ }
72
+
73
+ public function save_all() {
74
+ global $wpdb;
75
+ $flag = FALSE;
76
+ $ips_id_col = $wpdb->get_col('SELECT id FROM ' . $wpdb->prefix . 'contactformmaker_blocked');
77
+ foreach ($ips_id_col as $ip_id) {
78
+ if (isset($_POST['ip' . $ip_id])) {
79
+ $ip = esc_html(stripslashes($_POST['ip' . $ip_id]));
80
+ if ($ip == '') {
81
+ $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_blocked WHERE id="%d"', $ip_id));
82
+ }
83
+ else {
84
+ $flag = TRUE;
85
+ $wpdb->update($wpdb->prefix . 'contactformmaker_blocked', array(
86
+ 'ip' => $ip,
87
+ ), array('id' => $ip_id));
88
+ }
89
+ }
90
+ }
91
+ if ($flag) {
92
+ $message = 1;
93
+ }
94
+ $page = WDW_CFM_Library::get('page');
95
+ WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
96
+ }
97
+
98
+ public function delete($id) {
99
+ global $wpdb;
100
+ $query = $wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_blocked WHERE id="%d"', $id);
101
+ if ($wpdb->query($query)) {
102
+ $message = 3;
103
+ }
104
+ else {
105
+ $message = 2;
106
+ }
107
+ $page = WDW_CFM_Library::get('page');
108
+ WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
109
+ }
110
+
111
+ public function delete_all() {
112
+ global $wpdb;
113
+ $flag = FALSE;
114
+ $ips_id_col = $wpdb->get_col('SELECT id FROM ' . $wpdb->prefix . 'contactformmaker_blocked');
115
+ foreach ($ips_id_col as $ip_id) {
116
+ if (isset($_POST['check_' . $ip_id])) {
117
+ $flag = TRUE;
118
+ $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_blocked WHERE id="%d"', $ip_id));
119
+ }
120
+ }
121
+ if ($flag) {
122
+ $message = 5;
123
+ }
124
+ else {
125
+ $message = 2;
126
+ }
127
+ $page = WDW_CFM_Library::get('page');
128
+ WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
129
+ }
130
+
131
+ ////////////////////////////////////////////////////////////////////////////////////////
132
+ // Getters & Setters //
133
+ ////////////////////////////////////////////////////////////////////////////////////////
134
+ ////////////////////////////////////////////////////////////////////////////////////////
135
+ // Private Methods //
136
+ ////////////////////////////////////////////////////////////////////////////////////////
137
+ ////////////////////////////////////////////////////////////////////////////////////////
138
+ // Listeners //
139
+ ////////////////////////////////////////////////////////////////////////////////////////
140
  }
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/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,573 +1,573 @@
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
- $this->$task($id);
28
- }
29
- else {
30
- $this->display();
31
- }
32
- }
33
-
34
- public function display() {
35
- require_once WD_CFM_DIR . "/admin/models/CFMModelManage_cfm.php";
36
- $model = new CFMModelManage_cfm();
37
-
38
- require_once WD_CFM_DIR . "/admin/views/CFMViewManage_cfm.php";
39
- $view = new CFMViewManage_cfm($model);
40
- $view->display();
41
- }
42
-
43
- public function add() {
44
- require_once WD_CFM_DIR . "/admin/models/CFMModelManage_cfm.php";
45
- $model = new CFMModelManage_cfm();
46
-
47
- require_once WD_CFM_DIR . "/admin/views/CFMViewManage_cfm.php";
48
- $view = new CFMViewManage_cfm($model);
49
- $view->edit(0);
50
- }
51
-
52
- public function edit() {
53
- require_once WD_CFM_DIR . "/admin/models/CFMModelManage_cfm.php";
54
- $model = new CFMModelManage_cfm();
55
-
56
- require_once WD_CFM_DIR . "/admin/views/CFMViewManage_cfm.php";
57
- $view = new CFMViewManage_cfm($model);
58
- $id = WDW_CFM_Library::get('current_id', 0);
59
- $view->edit($id);
60
- }
61
-
62
- public function form_layout() {
63
- if (!isset($_GET['task'])) {
64
- $this->save_db();
65
- }
66
- require_once WD_CFM_DIR . "/admin/models/CFMModelManage_cfm.php";
67
- $model = new CFMModelManage_cfm();
68
-
69
- require_once WD_CFM_DIR . "/admin/views/CFMViewManage_cfm.php";
70
- $view = new CFMViewManage_cfm($model);
71
- global $wpdb;
72
- $id = WDW_CFM_Library::get('current_id', $wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "contactformmaker"));
73
- $view->form_layout($id);
74
- }
75
-
76
- public function save_layout() {
77
- $message = $this->save_db_layout();
78
- $page = WDW_CFM_Library::get('page');
79
- $current_id = WDW_CFM_Library::get('current_id', 0);
80
- WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'edit', 'current_id' => $current_id, 'message' => $message), admin_url('admin.php')));
81
- }
82
-
83
- public function apply_layout() {
84
- $message = $this->save_db_layout();
85
- require_once WD_CFM_DIR . "/admin/models/CFMModelManage_cfm.php";
86
- $model = new CFMModelManage_cfm();
87
-
88
- require_once WD_CFM_DIR . "/admin/views/CFMViewManage_cfm.php";
89
- $view = new CFMViewManage_cfm($model);
90
- $page = WDW_CFM_Library::get('page');
91
- $current_id = WDW_CFM_Library::get('current_id', 0);
92
- WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'form_layout', 'current_id' => $current_id, 'message' => $message), admin_url('admin.php')));
93
- }
94
-
95
- public function save_db_layout() {
96
- global $wpdb;
97
- $id = WDW_CFM_Library::get('current_id', 0);
98
- $custom_front = (isset($_POST['custom_front']) ? stripslashes($_POST['custom_front']) : '');
99
- $autogen_layout = (isset($_POST['autogen_layout']) ? 1 : 0);
100
- $save = $wpdb->update($wpdb->prefix . 'contactformmaker', array(
101
- 'custom_front' => $custom_front,
102
- 'autogen_layout' => $autogen_layout
103
- ), array('id' => $id));
104
- if ($save !== FALSE) {
105
- return 1;
106
- }
107
- else {
108
- return 2;
109
- }
110
- }
111
-
112
- public function form_options() {
113
- if (!isset($_GET['task'])) {
114
- $this->save_db();
115
- }
116
- require_once WD_CFM_DIR . "/admin/models/CFMModelManage_cfm.php";
117
- $model = new CFMModelManage_cfm();
118
-
119
- require_once WD_CFM_DIR . "/admin/views/CFMViewManage_cfm.php";
120
- $view = new CFMViewManage_cfm($model);
121
- global $wpdb;
122
- $id = WDW_CFM_Library::get('current_id', $wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "contactformmaker"));
123
- $view->form_options($id);
124
- }
125
-
126
- public function save_options() {
127
- $message = $this->save_db_options();
128
- $page = WDW_CFM_Library::get('page');
129
- $current_id = WDW_CFM_Library::get('current_id', 0);
130
- WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'edit', 'current_id' => $current_id, 'message' => $message), admin_url('admin.php')));
131
- }
132
-
133
- public function apply_options() {
134
- $message = $this->save_db_options();
135
- require_once WD_CFM_DIR . "/admin/models/CFMModelManage_cfm.php";
136
- $model = new CFMModelManage_cfm();
137
-
138
- require_once WD_CFM_DIR . "/admin/views/CFMViewManage_cfm.php";
139
- $view = new CFMViewManage_cfm($model);
140
- $page = WDW_CFM_Library::get('page');
141
- $current_id = WDW_CFM_Library::get('current_id', 0);
142
- $fieldset_id = WDW_CFM_Library::get('fieldset_id', 'general');
143
- 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')));
144
- }
145
-
146
- public function cancel_options() {
147
- $this->edit();
148
- }
149
-
150
- public function save_db_options() {
151
- global $wpdb;
152
- $id = WDW_CFM_Library::get('current_id', 0);
153
- $mail = (isset($_POST['mail']) ? esc_html(stripslashes($_POST['mail'])) : '');
154
- if (isset($_POST['mailToAdd']) && esc_html(stripslashes($_POST['mailToAdd'])) != '') {
155
- $mail .= esc_html(stripslashes($_POST['mailToAdd'])) . ',';
156
- }
157
- $submit_text = (isset($_POST['submit_text']) ? stripslashes($_POST['submit_text']) : '');
158
- $article_id = (isset($_POST['article_id']) ? stripslashes($_POST['article_id']) : '');
159
- $url = (isset($_POST['url']) ? esc_html(stripslashes($_POST['url'])) : '');
160
- $script_mail = (isset($_POST['script_mail']) ? stripslashes($_POST['script_mail']) : '%all%');
161
- $script_mail_user = (isset($_POST['script_mail_user']) ? stripslashes($_POST['script_mail_user']) : '%all%');
162
- $published = (isset($_POST['published']) ? esc_html(stripslashes($_POST['published'])) : 1);
163
- $savedb = (isset($_POST['savedb']) ? esc_html(stripslashes($_POST['savedb'])) : 1);
164
- $sendemail = (isset($_POST['sendemail']) ? esc_html(stripslashes($_POST['sendemail'])) : 1);
165
- $requiredmark = (isset($_POST['requiredmark']) ? esc_html(stripslashes($_POST['requiredmark'])) : '*');
166
- $mail_from = (isset($_POST['mail_from']) ? esc_html(stripslashes($_POST['mail_from'])) : '');
167
- $mail_from_name = (isset($_POST['mail_from_name']) ? esc_html(stripslashes($_POST['mail_from_name'])) : '');
168
- $reply_to = (isset($_POST['reply_to']) ? esc_html(stripslashes($_POST['reply_to'])) : '');
169
- if ($mail_from == "other") {
170
- $mail_from = (isset($_POST['mail_from_other']) ? esc_html(stripslashes($_POST['mail_from_other'])) : '');
171
- }
172
- if ($reply_to == "other") {
173
- $reply_to = (isset($_POST['reply_to_other']) ? esc_html(stripslashes($_POST['reply_to_other'])) : '');
174
- }
175
- $mail_from_user = (isset($_POST['mail_from_user']) ? esc_html(stripslashes($_POST['mail_from_user'])) : '');
176
- $mail_from_name_user = (isset($_POST['mail_from_name_user']) ? esc_html(stripslashes($_POST['mail_from_name_user'])) : '');
177
- $reply_to_user = (isset($_POST['reply_to_user']) ? esc_html(stripslashes($_POST['reply_to_user'])) : '');
178
- $send_to = '';
179
- for ($i = 0; $i < 20; $i++) {
180
- if (isset($_POST['send_to' . $i])) {
181
- $send_to .= '*' . esc_html(stripslashes($_POST['send_to' . $i])) . '*';
182
- }
183
- }
184
- if (isset($_POST['submit_text_type'])) {
185
- $submit_text_type = esc_html(stripslashes($_POST['submit_text_type']));
186
- if ($submit_text_type == 5) {
187
- $article_id = (isset($_POST['page_name']) ? stripslashes($_POST['page_name']) : 0);
188
- }
189
- else {
190
- $article_id = (isset($_POST['post_name']) ? stripslashes($_POST['post_name']) : 0);
191
- }
192
- }
193
- else {
194
- $submit_text_type = 0;
195
- $article_id = '';
196
- }
197
- $mail_cc = (isset($_POST['mail_cc']) ? esc_html(stripslashes($_POST['mail_cc'])) : '');
198
- $mail_cc_user = (isset($_POST['mail_cc_user']) ? esc_html(stripslashes($_POST['mail_cc_user'])) : '');
199
- $mail_bcc = (isset($_POST['mail_bcc']) ? esc_html(stripslashes($_POST['mail_bcc'])) : '');
200
- $mail_bcc_user = (isset($_POST['mail_bcc_user']) ? esc_html(stripslashes($_POST['mail_bcc_user'])) : '');
201
- $mail_subject = (isset($_POST['mail_subject']) ? esc_html(stripslashes($_POST['mail_subject'])) : '');
202
- $mail_subject_user = (isset($_POST['mail_subject_user']) ? esc_html(stripslashes($_POST['mail_subject_user'])) : '');
203
- $mail_mode = (isset($_POST['mail_mode']) ? esc_html(stripslashes($_POST['mail_mode'])) : 1);
204
- $mail_mode_user = (isset($_POST['mail_mode_user']) ? esc_html(stripslashes($_POST['mail_mode_user'])) : 1);
205
- $save = $wpdb->update($wpdb->prefix . 'contactformmaker', array(
206
- 'mail' => $mail,
207
- 'submit_text' => $submit_text,
208
- 'url' => $url,
209
- 'submit_text_type' => $submit_text_type,
210
- 'article_id' => $article_id,
211
- 'script_mail' => $script_mail,
212
- 'script_mail_user' => $script_mail_user,
213
- 'published' => $published,
214
- 'savedb' => $savedb,
215
- 'sendemail' => $sendemail,
216
- 'requiredmark' => $requiredmark,
217
- 'mail_from' => $mail_from,
218
- 'mail_from_name' => $mail_from_name,
219
- 'reply_to' => $reply_to,
220
- 'send_to' => $send_to,
221
- 'mail_from_user' => $mail_from_user,
222
- 'mail_from_name_user' => $mail_from_name_user,
223
- 'reply_to_user' => $reply_to_user,
224
- 'mail_cc' => $mail_cc,
225
- 'mail_cc_user' => $mail_cc_user,
226
- 'mail_bcc' => $mail_bcc,
227
- 'mail_bcc_user' => $mail_bcc_user,
228
- 'mail_subject' => $mail_subject,
229
- 'mail_subject_user' => $mail_subject_user,
230
- 'mail_mode' => $mail_mode,
231
- 'mail_mode_user' => $mail_mode_user,
232
- ), array('id' => $id));
233
- if ($save !== FALSE) {
234
- return 8;
235
- }
236
- else {
237
- return 2;
238
- }
239
- }
240
-
241
- public function save_as_copy() {
242
- $message = $this->save_db_as_copy();
243
- $page = WDW_CFM_Library::get('page');
244
- WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
245
- }
246
-
247
- public function save() {
248
- $message = $this->save_db();
249
- $page = WDW_CFM_Library::get('page');
250
- WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
251
- }
252
-
253
- public function apply() {
254
- $message = $this->save_db();
255
- global $wpdb;
256
- $id = (int) $wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "contactformmaker");
257
- $current_id = WDW_CFM_Library::get('current_id', $id);
258
- $page = WDW_CFM_Library::get('page');
259
- WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'edit', 'current_id' => $current_id, 'message' => $message), admin_url('admin.php')));
260
- }
261
-
262
- public function save_db() {
263
- global $wpdb;
264
- $id = WDW_CFM_Library::get('current_id', 0);
265
- $title = (isset($_POST['title']) ? esc_html(stripslashes($_POST['title'])) : '');
266
- $form_front = (isset($_POST['form_front']) ? stripslashes($_POST['form_front']) : '');
267
- $counter = (isset($_POST['counter']) ? (int) stripslashes($_POST['counter']) : 0);
268
- $label_order = (isset($_POST['label_order']) ? stripslashes($_POST['label_order']) : '');
269
- $label_order_current = (isset($_POST['label_order_current']) ? stripslashes($_POST['label_order_current']) : '');
270
- $public_key = (isset($_POST['public_key']) ? esc_html(stripslashes($_POST['public_key'])) : '');
271
- $private_key = (isset($_POST['private_key']) ? esc_html(stripslashes($_POST['private_key'])) : '');
272
- $recaptcha_theme = (isset($_POST['recaptcha_theme']) ? esc_html(stripslashes($_POST['recaptcha_theme'])) : '');
273
- $form_fields = (isset($_POST['form_fields']) ? stripslashes($_POST['form_fields']) : '');
274
- $disabled_fields = (isset($_POST['disabled_fields']) ? stripslashes($_POST['disabled_fields']) : '');
275
-
276
- $label_id = array();
277
- $label_label = array();
278
- $label_all = explode('#****#', $label_order_current);
279
- $label_all = array_slice($label_all, 0, count($label_all) - 1);
280
- foreach ($label_all as $key => $label_each) {
281
- $label_id_each = explode('#**id**#', $label_each);
282
- if ($label_id_each[0] == 22) {
283
- $default_subject = $key;
284
- }
285
- array_push($label_id, $label_id_each[0]);
286
- $label_order_each = explode('#**label**#', $label_id_each[1]);
287
- array_push($label_label, $label_order_each[0]);
288
- }
289
- $disabled_fields_array = explode(',', $disabled_fields);
290
- $disabled_fields_array = array_slice($disabled_fields_array, 0, count($disabled_fields_array) - 1);
291
- $subject = $wpdb->get_row($wpdb->prepare('SELECT mail_subject,mail_subject_user FROM ' . $wpdb->prefix . 'contactformmaker WHERE id="%d"', $id));
292
- if (!in_array($label_id[$default_subject], $disabled_fields_array)) {
293
- $mail_subject = ($subject->mail_subject == '') ? '%' . $label_label[$default_subject] . '%' : $subject->mail_subject;
294
- $mail_subject_user = ($subject->mail_subject_user == '') ? '%' . $label_label[$default_subject] . '%' : $subject->mail_subject_user;
295
- }
296
- else {
297
- $mail_subject = $subject->mail_subject;
298
- $mail_subject_user = $subject->mail_subject_user;
299
- }
300
-
301
- if ($id != 0) {
302
- $save = $wpdb->update($wpdb->prefix . 'contactformmaker', array(
303
- 'title' => $title,
304
- 'form_front' => $form_front,
305
- 'counter' => $counter,
306
- 'label_order' => $label_order,
307
- 'label_order_current' => $label_order_current,
308
- 'public_key' => $public_key,
309
- 'private_key' => $private_key,
310
- 'recaptcha_theme' => $recaptcha_theme,
311
- 'form_fields' => $form_fields,
312
- 'disabled_fields' => $disabled_fields,
313
- 'mail_subject' => $mail_subject,
314
- 'mail_subject_user' => $mail_subject_user,
315
- ), array('id' => $id));
316
- }
317
- else {
318
- $save = $wpdb->insert($wpdb->prefix . 'contactformmaker', array(
319
- 'title' => $title,
320
- 'mail' => '',
321
- 'form_front' => $form_front,
322
- 'theme' => 0,
323
- 'submit_text' => '',
324
- 'url' => '',
325
- 'submit_text_type' => 0,
326
- 'script_mail' => '',
327
- 'script_mail_user' => '',
328
- 'counter' => $counter,
329
- 'published' => 1,
330
- 'label_order' => $label_order,
331
- 'label_order_current' => $label_order_current,
332
- 'public_key' => $public_key,
333
- 'private_key' => $private_key,
334
- 'recaptcha_theme' => $recaptcha_theme,
335
- 'form_fields' => $form_fields,
336
- 'savedb' => 1,
337
- 'sendemail' => 1,
338
- 'requiredmark' => '*',
339
- 'mail_from' => '',
340
- 'mail_from_name' => '',
341
- 'reply_to' => '',
342
- 'send_to' => '',
343
- 'autogen_layout' => 1,
344
- 'custom_front' => '',
345
- 'mail_from_user' => '',
346
- 'mail_from_name_user' => '',
347
- 'reply_to_user' => '',
348
- 'disabled_fields' => $disabled_fields,
349
- 'mail_cc' => '',
350
- 'mail_cc_user' => '',
351
- 'mail_bcc' => '',
352
- 'mail_bcc_user' => '',
353
- 'mail_subject' => '',
354
- 'mail_subject_user' => '',
355
- 'mail_mode' => 1,
356
- 'mail_mode_user' => 1,
357
- ), array(
358
- '%s',
359
- '%s',
360
- '%s',
361
- '%d',
362
- '%s',
363
- '%s',
364
- '%d',
365
- '%s',
366
- '%s',
367
- '%d',
368
- '%d',
369
- '%s',
370
- '%s',
371
- '%s',
372
- '%s',
373
- '%s',
374
- '%s',
375
- '%d',
376
- '%d',
377
- '%s',
378
- '%s',
379
- '%s',
380
- '%s',
381
- '%s',
382
- '%d',
383
- '%s',
384
- '%s',
385
- '%s',
386
- '%s',
387
- '%s',
388
- '%s',
389
- '%s',
390
- '%s',
391
- '%s',
392
- '%s',
393
- '%s',
394
- '%d',
395
- '%d',
396
- ));
397
- $id = $wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "contactformmaker");
398
- $wpdb->insert($wpdb->prefix . 'contactformmaker_views', array(
399
- 'form_id' => $id,
400
- 'views' => 0
401
- ), array(
402
- '%d',
403
- '%d'
404
- ));
405
- }
406
- if ($save !== FALSE) {
407
- return 1;
408
- }
409
- else {
410
- return 2;
411
- }
412
- }
413
-
414
- public function save_db_as_copy() {
415
- global $wpdb;
416
- $id = WDW_CFM_Library::get('current_id', 0);
417
- $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'contactformmaker WHERE id="%d"', $id));
418
- $title = (isset($_POST['title']) ? esc_html(stripslashes($_POST['title'])) : '');
419
- $form_front = (isset($_POST['form_front']) ? stripslashes($_POST['form_front']) : '');
420
- $counter = (isset($_POST['counter']) ? (int) stripslashes($_POST['counter']) : 0);
421
- $label_order = (isset($_POST['label_order']) ? esc_html(stripslashes($_POST['label_order'])) : '');
422
- $label_order_current = (isset($_POST['label_order_current']) ? esc_html(stripslashes($_POST['label_order_current'])) : '');
423
- $public_key = (isset($_POST['public_key']) ? esc_html(stripslashes($_POST['public_key'])) : '');
424
- $private_key = (isset($_POST['private_key']) ? esc_html(stripslashes($_POST['private_key'])) : '');
425
- $recaptcha_theme = (isset($_POST['recaptcha_theme']) ? esc_html(stripslashes($_POST['recaptcha_theme'])) : '');
426
- $form_fields = (isset($_POST['form_fields']) ? stripslashes($_POST['form_fields']) : '');
427
- $disabled_fields = (isset($_POST['disabled_fields']) ? stripslashes($_POST['disabled_fields']) : '');
428
-
429
- $save = $wpdb->insert($wpdb->prefix . 'contactformmaker', array(
430
- 'title' => $title,
431
- 'mail' => $row->mail,
432
- 'form_front' => $form_front,
433
- 'theme' => $row->theme,
434
- 'submit_text' => $row->submit_text,
435
- 'url' => $row->url,
436
- 'submit_text_type' => $row->submit_text_type,
437
- 'script_mail' => $row->script_mail,
438
- 'script_mail_user' => $row->script_mail_user,
439
- 'counter' => $counter,
440
- 'published' => $row->published,
441
- 'label_order' => $label_order,
442
- 'label_order_current' => $label_order_current,
443
- 'article_id' => $row->article_id,
444
- 'public_key' => $public_key,
445
- 'private_key' => $private_key,
446
- 'recaptcha_theme' => $recaptcha_theme,
447
- 'form_fields' => $form_fields,
448
- 'savedb' => $row->savedb,
449
- 'sendemail' => $row->sendemail,
450
- 'requiredmark' => $row->requiredmark,
451
- 'mail_from' => $row->mail_from,
452
- 'mail_from_name' => $row->mail_from_name,
453
- 'reply_to' => $row->reply_to,
454
- 'send_to' => $row->send_to,
455
- 'autogen_layout' => $row->autogen_layout,
456
- 'custom_front' => $row->custom_front,
457
- 'mail_from_user' => $row->mail_from_user,
458
- 'mail_from_name_user' => $row->mail_from_name_user,
459
- 'reply_to_user' => $row->reply_to_user,
460
- 'disabled_fields' => $disabled_fields,
461
- 'mail_cc' => $row->mail_cc,
462
- 'mail_cc_user' => $row->mail_cc_user,
463
- 'mail_bcc' => $row->mail_bcc,
464
- 'mail_bcc_user' => $row->mail_bcc_user,
465
- 'mail_subject' => $row->mail_subject,
466
- 'mail_subject_user' => $row->mail_subject_user,
467
- 'mail_mode' => $row->mail_mode,
468
- 'mail_mode_user' => $row->mail_mode_user,
469
- ), array(
470
- '%s',
471
- '%s',
472
- '%s',
473
- '%d',
474
- '%s',
475
- '%s',
476
- '%d',
477
- '%s',
478
- '%s',
479
- '%d',
480
- '%d',
481
- '%s',
482
- '%s',
483
- '%s',
484
- '%s',
485
- '%s',
486
- '%s',
487
- '%s',
488
- '%d',
489
- '%d',
490
- '%s',
491
- '%s',
492
- '%s',
493
- '%s',
494
- '%s',
495
- '%d',
496
- '%s',
497
- '%s',
498
- '%s',
499
- '%s',
500
- '%s',
501
- '%s',
502
- '%s',
503
- '%s',
504
- '%s',
505
- '%s',
506
- '%s',
507
- '%d',
508
- '%d',
509
- ));
510
- $id = $wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "contactformmaker");
511
- $wpdb->insert($wpdb->prefix . 'contactformmaker_views', array(
512
- 'form_id' => $id,
513
- 'views' => 0
514
- ), array(
515
- '%d',
516
- '%d'
517
- ));
518
- if ($save !== FALSE) {
519
- return 1;
520
- }
521
- else {
522
- return 2;
523
- }
524
- }
525
-
526
- public function delete($id) {
527
- global $wpdb;
528
- $query = $wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker WHERE id="%d"', $id);
529
- if ($wpdb->query($query)) {
530
- $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_views WHERE form_id="%d"', $id));
531
- $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_submits WHERE form_id="%d"', $id));
532
- $message = 3;
533
- }
534
- else {
535
- $message = 2;
536
- }
537
- $page = WDW_CFM_Library::get('page');
538
- WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
539
- }
540
-
541
- public function delete_all() {
542
- global $wpdb;
543
- $flag = FALSE;
544
- $isDefault = FALSE;
545
- $form_ids_col = $wpdb->get_col('SELECT id FROM ' . $wpdb->prefix . 'contactformmaker');
546
- foreach ($form_ids_col as $form_id) {
547
- if (isset($_POST['check_' . $form_id])) {
548
- $flag = TRUE;
549
- $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker WHERE id="%d"', $form_id));
550
- $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_views WHERE form_id="%d"', $form_id));
551
- $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_submits WHERE form_id="%d"', $form_id));
552
- }
553
- }
554
- if ($flag) {
555
- $message = 5;
556
- }
557
- else {
558
- $message = 6;
559
- }
560
- $page = WDW_CFM_Library::get('page');
561
- WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
562
- }
563
-
564
- ////////////////////////////////////////////////////////////////////////////////////////
565
- // Getters & Setters //
566
- ////////////////////////////////////////////////////////////////////////////////////////
567
- ////////////////////////////////////////////////////////////////////////////////////////
568
- // Private Methods //
569
- ////////////////////////////////////////////////////////////////////////////////////////
570
- ////////////////////////////////////////////////////////////////////////////////////////
571
- // Listeners //
572
- ////////////////////////////////////////////////////////////////////////////////////////
573
  }
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
+ $this->$task($id);
28
+ }
29
+ else {
30
+ $this->display();
31
+ }
32
+ }
33
+
34
+ public function display() {
35
+ require_once WD_CFM_DIR . "/admin/models/CFMModelManage_cfm.php";
36
+ $model = new CFMModelManage_cfm();
37
+
38
+ require_once WD_CFM_DIR . "/admin/views/CFMViewManage_cfm.php";
39
+ $view = new CFMViewManage_cfm($model);
40
+ $view->display();
41
+ }
42
+
43
+ public function add() {
44
+ require_once WD_CFM_DIR . "/admin/models/CFMModelManage_cfm.php";
45
+ $model = new CFMModelManage_cfm();
46
+
47
+ require_once WD_CFM_DIR . "/admin/views/CFMViewManage_cfm.php";
48
+ $view = new CFMViewManage_cfm($model);
49
+ $view->edit(0);
50
+ }
51
+
52
+ public function edit() {
53
+ require_once WD_CFM_DIR . "/admin/models/CFMModelManage_cfm.php";
54
+ $model = new CFMModelManage_cfm();
55
+
56
+ require_once WD_CFM_DIR . "/admin/views/CFMViewManage_cfm.php";
57
+ $view = new CFMViewManage_cfm($model);
58
+ $id = WDW_CFM_Library::get('current_id', 0);
59
+ $view->edit($id);
60
+ }
61
+
62
+ public function form_layout() {
63
+ if (!isset($_GET['task'])) {
64
+ $this->save_db();
65
+ }
66
+ require_once WD_CFM_DIR . "/admin/models/CFMModelManage_cfm.php";
67
+ $model = new CFMModelManage_cfm();
68
+
69
+ require_once WD_CFM_DIR . "/admin/views/CFMViewManage_cfm.php";
70
+ $view = new CFMViewManage_cfm($model);
71
+ global $wpdb;
72
+ $id = WDW_CFM_Library::get('current_id', $wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "contactformmaker"));
73
+ $view->form_layout($id);
74
+ }
75
+
76
+ public function save_layout() {
77
+ $message = $this->save_db_layout();
78
+ $page = WDW_CFM_Library::get('page');
79
+ $current_id = WDW_CFM_Library::get('current_id', 0);
80
+ WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'edit', 'current_id' => $current_id, 'message' => $message), admin_url('admin.php')));
81
+ }
82
+
83
+ public function apply_layout() {
84
+ $message = $this->save_db_layout();
85
+ require_once WD_CFM_DIR . "/admin/models/CFMModelManage_cfm.php";
86
+ $model = new CFMModelManage_cfm();
87
+
88
+ require_once WD_CFM_DIR . "/admin/views/CFMViewManage_cfm.php";
89
+ $view = new CFMViewManage_cfm($model);
90
+ $page = WDW_CFM_Library::get('page');
91
+ $current_id = WDW_CFM_Library::get('current_id', 0);
92
+ WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'form_layout', 'current_id' => $current_id, 'message' => $message), admin_url('admin.php')));
93
+ }
94
+
95
+ public function save_db_layout() {
96
+ global $wpdb;
97
+ $id = WDW_CFM_Library::get('current_id', 0);
98
+ $custom_front = (isset($_POST['custom_front']) ? stripslashes($_POST['custom_front']) : '');
99
+ $autogen_layout = (isset($_POST['autogen_layout']) ? 1 : 0);
100
+ $save = $wpdb->update($wpdb->prefix . 'contactformmaker', array(
101
+ 'custom_front' => $custom_front,
102
+ 'autogen_layout' => $autogen_layout
103
+ ), array('id' => $id));
104
+ if ($save !== FALSE) {
105
+ return 1;
106
+ }
107
+ else {
108
+ return 2;
109
+ }
110
+ }
111
+
112
+ public function form_options() {
113
+ if (!isset($_GET['task'])) {
114
+ $this->save_db();
115
+ }
116
+ require_once WD_CFM_DIR . "/admin/models/CFMModelManage_cfm.php";
117
+ $model = new CFMModelManage_cfm();
118
+
119
+ require_once WD_CFM_DIR . "/admin/views/CFMViewManage_cfm.php";
120
+ $view = new CFMViewManage_cfm($model);
121
+ global $wpdb;
122
+ $id = WDW_CFM_Library::get('current_id', $wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "contactformmaker"));
123
+ $view->form_options($id);
124
+ }
125
+
126
+ public function save_options() {
127
+ $message = $this->save_db_options();
128
+ $page = WDW_CFM_Library::get('page');
129
+ $current_id = WDW_CFM_Library::get('current_id', 0);
130
+ WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'edit', 'current_id' => $current_id, 'message' => $message), admin_url('admin.php')));
131
+ }
132
+
133
+ public function apply_options() {
134
+ $message = $this->save_db_options();
135
+ require_once WD_CFM_DIR . "/admin/models/CFMModelManage_cfm.php";
136
+ $model = new CFMModelManage_cfm();
137
+
138
+ require_once WD_CFM_DIR . "/admin/views/CFMViewManage_cfm.php";
139
+ $view = new CFMViewManage_cfm($model);
140
+ $page = WDW_CFM_Library::get('page');
141
+ $current_id = WDW_CFM_Library::get('current_id', 0);
142
+ $fieldset_id = WDW_CFM_Library::get('fieldset_id', 'general');
143
+ 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')));
144
+ }
145
+
146
+ public function cancel_options() {
147
+ $this->edit();
148
+ }
149
+
150
+ public function save_db_options() {
151
+ global $wpdb;
152
+ $id = WDW_CFM_Library::get('current_id', 0);
153
+ $mail = (isset($_POST['mail']) ? esc_html(stripslashes($_POST['mail'])) : '');
154
+ if (isset($_POST['mailToAdd']) && esc_html(stripslashes($_POST['mailToAdd'])) != '') {
155
+ $mail .= esc_html(stripslashes($_POST['mailToAdd'])) . ',';
156
+ }
157
+ $submit_text = (isset($_POST['submit_text']) ? stripslashes($_POST['submit_text']) : '');
158
+ $article_id = (isset($_POST['article_id']) ? stripslashes($_POST['article_id']) : '');
159
+ $url = (isset($_POST['url']) ? esc_html(stripslashes($_POST['url'])) : '');
160
+ $script_mail = (isset($_POST['script_mail']) ? stripslashes($_POST['script_mail']) : '%all%');
161
+ $script_mail_user = (isset($_POST['script_mail_user']) ? stripslashes($_POST['script_mail_user']) : '%all%');
162
+ $published = (isset($_POST['published']) ? esc_html(stripslashes($_POST['published'])) : 1);
163
+ $savedb = (isset($_POST['savedb']) ? esc_html(stripslashes($_POST['savedb'])) : 1);
164
+ $sendemail = (isset($_POST['sendemail']) ? esc_html(stripslashes($_POST['sendemail'])) : 1);
165
+ $requiredmark = (isset($_POST['requiredmark']) ? esc_html(stripslashes($_POST['requiredmark'])) : '*');
166
+ $mail_from = (isset($_POST['mail_from']) ? esc_html(stripslashes($_POST['mail_from'])) : '');
167
+ $mail_from_name = (isset($_POST['mail_from_name']) ? esc_html(stripslashes($_POST['mail_from_name'])) : '');
168
+ $reply_to = (isset($_POST['reply_to']) ? esc_html(stripslashes($_POST['reply_to'])) : '');
169
+ if ($mail_from == "other") {
170
+ $mail_from = (isset($_POST['mail_from_other']) ? esc_html(stripslashes($_POST['mail_from_other'])) : '');
171
+ }
172
+ if ($reply_to == "other") {
173
+ $reply_to = (isset($_POST['reply_to_other']) ? esc_html(stripslashes($_POST['reply_to_other'])) : '');
174
+ }
175
+ $mail_from_user = (isset($_POST['mail_from_user']) ? esc_html(stripslashes($_POST['mail_from_user'])) : '');
176
+ $mail_from_name_user = (isset($_POST['mail_from_name_user']) ? esc_html(stripslashes($_POST['mail_from_name_user'])) : '');
177
+ $reply_to_user = (isset($_POST['reply_to_user']) ? esc_html(stripslashes($_POST['reply_to_user'])) : '');
178
+ $send_to = '';
179
+ for ($i = 0; $i < 20; $i++) {
180
+ if (isset($_POST['send_to' . $i])) {
181
+ $send_to .= '*' . esc_html(stripslashes($_POST['send_to' . $i])) . '*';
182
+ }
183
+ }
184
+ if (isset($_POST['submit_text_type'])) {
185
+ $submit_text_type = esc_html(stripslashes($_POST['submit_text_type']));
186
+ if ($submit_text_type == 5) {
187
+ $article_id = (isset($_POST['page_name']) ? stripslashes($_POST['page_name']) : 0);
188
+ }
189
+ else {
190
+ $article_id = (isset($_POST['post_name']) ? stripslashes($_POST['post_name']) : 0);
191
+ }
192
+ }
193
+ else {
194
+ $submit_text_type = 0;
195
+ $article_id = '';
196
+ }
197
+ $mail_cc = (isset($_POST['mail_cc']) ? esc_html(stripslashes($_POST['mail_cc'])) : '');
198
+ $mail_cc_user = (isset($_POST['mail_cc_user']) ? esc_html(stripslashes($_POST['mail_cc_user'])) : '');
199
+ $mail_bcc = (isset($_POST['mail_bcc']) ? esc_html(stripslashes($_POST['mail_bcc'])) : '');
200
+ $mail_bcc_user = (isset($_POST['mail_bcc_user']) ? esc_html(stripslashes($_POST['mail_bcc_user'])) : '');
201
+ $mail_subject = (isset($_POST['mail_subject']) ? esc_html(stripslashes($_POST['mail_subject'])) : '');
202
+ $mail_subject_user = (isset($_POST['mail_subject_user']) ? esc_html(stripslashes($_POST['mail_subject_user'])) : '');
203
+ $mail_mode = (isset($_POST['mail_mode']) ? esc_html(stripslashes($_POST['mail_mode'])) : 1);
204
+ $mail_mode_user = (isset($_POST['mail_mode_user']) ? esc_html(stripslashes($_POST['mail_mode_user'])) : 1);
205
+ $save = $wpdb->update($wpdb->prefix . 'contactformmaker', array(
206
+ 'mail' => $mail,
207
+ 'submit_text' => $submit_text,
208
+ 'url' => $url,
209
+ 'submit_text_type' => $submit_text_type,
210
+ 'article_id' => $article_id,
211
+ 'script_mail' => $script_mail,
212
+ 'script_mail_user' => $script_mail_user,
213
+ 'published' => $published,
214
+ 'savedb' => $savedb,
215
+ 'sendemail' => $sendemail,
216
+ 'requiredmark' => $requiredmark,
217
+ 'mail_from' => $mail_from,
218
+ 'mail_from_name' => $mail_from_name,
219
+ 'reply_to' => $reply_to,
220
+ 'send_to' => $send_to,
221
+ 'mail_from_user' => $mail_from_user,
222
+ 'mail_from_name_user' => $mail_from_name_user,
223
+ 'reply_to_user' => $reply_to_user,
224
+ 'mail_cc' => $mail_cc,
225
+ 'mail_cc_user' => $mail_cc_user,
226
+ 'mail_bcc' => $mail_bcc,
227
+ 'mail_bcc_user' => $mail_bcc_user,
228
+ 'mail_subject' => $mail_subject,
229
+ 'mail_subject_user' => $mail_subject_user,
230
+ 'mail_mode' => $mail_mode,
231
+ 'mail_mode_user' => $mail_mode_user,
232
+ ), array('id' => $id));
233
+ if ($save !== FALSE) {
234
+ return 8;
235
+ }
236
+ else {
237
+ return 2;
238
+ }
239
+ }
240
+
241
+ public function save_as_copy() {
242
+ $message = $this->save_db_as_copy();
243
+ $page = WDW_CFM_Library::get('page');
244
+ WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
245
+ }
246
+
247
+ public function save() {
248
+ $message = $this->save_db();
249
+ $page = WDW_CFM_Library::get('page');
250
+ WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
251
+ }
252
+
253
+ public function apply() {
254
+ $message = $this->save_db();
255
+ global $wpdb;
256
+ $id = (int) $wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "contactformmaker");
257
+ $current_id = WDW_CFM_Library::get('current_id', $id);
258
+ $page = WDW_CFM_Library::get('page');
259
+ WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'edit', 'current_id' => $current_id, 'message' => $message), admin_url('admin.php')));
260
+ }
261
+
262
+ public function save_db() {
263
+ global $wpdb;
264
+ $id = WDW_CFM_Library::get('current_id', 0);
265
+ $title = (isset($_POST['title']) ? esc_html(stripslashes($_POST['title'])) : '');
266
+ $form_front = (isset($_POST['form_front']) ? stripslashes($_POST['form_front']) : '');
267
+ $counter = (isset($_POST['counter']) ? (int) stripslashes($_POST['counter']) : 0);
268
+ $label_order = (isset($_POST['label_order']) ? stripslashes($_POST['label_order']) : '');
269
+ $label_order_current = (isset($_POST['label_order_current']) ? stripslashes($_POST['label_order_current']) : '');
270
+ $public_key = (isset($_POST['public_key']) ? esc_html(stripslashes($_POST['public_key'])) : '');
271
+ $private_key = (isset($_POST['private_key']) ? esc_html(stripslashes($_POST['private_key'])) : '');
272
+ $recaptcha_theme = (isset($_POST['recaptcha_theme']) ? esc_html(stripslashes($_POST['recaptcha_theme'])) : '');
273
+ $form_fields = (isset($_POST['form_fields']) ? stripslashes($_POST['form_fields']) : '');
274
+ $disabled_fields = (isset($_POST['disabled_fields']) ? stripslashes($_POST['disabled_fields']) : '');
275
+
276
+ $label_id = array();
277
+ $label_label = array();
278
+ $label_all = explode('#****#', $label_order_current);
279
+ $label_all = array_slice($label_all, 0, count($label_all) - 1);
280
+ foreach ($label_all as $key => $label_each) {
281
+ $label_id_each = explode('#**id**#', $label_each);
282
+ if ($label_id_each[0] == 22) {
283
+ $default_subject = $key;
284
+ }
285
+ array_push($label_id, $label_id_each[0]);
286
+ $label_order_each = explode('#**label**#', $label_id_each[1]);
287
+ array_push($label_label, $label_order_each[0]);
288
+ }
289
+ $disabled_fields_array = explode(',', $disabled_fields);
290
+ $disabled_fields_array = array_slice($disabled_fields_array, 0, count($disabled_fields_array) - 1);
291
+ $subject = $wpdb->get_row($wpdb->prepare('SELECT mail_subject,mail_subject_user FROM ' . $wpdb->prefix . 'contactformmaker WHERE id="%d"', $id));
292
+ if (!in_array($label_id[$default_subject], $disabled_fields_array)) {
293
+ $mail_subject = ($subject->mail_subject == '') ? '%' . $label_label[$default_subject] . '%' : $subject->mail_subject;
294
+ $mail_subject_user = ($subject->mail_subject_user == '') ? '%' . $label_label[$default_subject] . '%' : $subject->mail_subject_user;
295
+ }
296
+ else {
297
+ $mail_subject = $subject->mail_subject;
298
+ $mail_subject_user = $subject->mail_subject_user;
299
+ }
300
+
301
+ if ($id != 0) {
302
+ $save = $wpdb->update($wpdb->prefix . 'contactformmaker', array(
303
+ 'title' => $title,
304
+ 'form_front' => $form_front,
305
+ 'counter' => $counter,
306
+ 'label_order' => $label_order,
307
+ 'label_order_current' => $label_order_current,
308
+ 'public_key' => $public_key,
309
+ 'private_key' => $private_key,
310
+ 'recaptcha_theme' => $recaptcha_theme,
311
+ 'form_fields' => $form_fields,
312
+ 'disabled_fields' => $disabled_fields,
313
+ 'mail_subject' => $mail_subject,
314
+ 'mail_subject_user' => $mail_subject_user,
315
+ ), array('id' => $id));
316
+ }
317
+ else {
318
+ $save = $wpdb->insert($wpdb->prefix . 'contactformmaker', array(
319
+ 'title' => $title,
320
+ 'mail' => '',
321
+ 'form_front' => $form_front,
322
+ 'theme' => 0,
323
+ 'submit_text' => '',
324
+ 'url' => '',
325
+ 'submit_text_type' => 0,
326
+ 'script_mail' => '',
327
+ 'script_mail_user' => '',
328
+ 'counter' => $counter,
329
+ 'published' => 1,
330
+ 'label_order' => $label_order,
331
+ 'label_order_current' => $label_order_current,
332
+ 'public_key' => $public_key,
333
+ 'private_key' => $private_key,
334
+ 'recaptcha_theme' => $recaptcha_theme,
335
+ 'form_fields' => $form_fields,
336
+ 'savedb' => 1,
337
+ 'sendemail' => 1,
338
+ 'requiredmark' => '*',
339
+ 'mail_from' => '',
340
+ 'mail_from_name' => '',
341
+ 'reply_to' => '',
342
+ 'send_to' => '',
343
+ 'autogen_layout' => 1,
344
+ 'custom_front' => '',
345
+ 'mail_from_user' => '',
346
+ 'mail_from_name_user' => '',
347
+ 'reply_to_user' => '',
348
+ 'disabled_fields' => $disabled_fields,
349
+ 'mail_cc' => '',
350
+ 'mail_cc_user' => '',
351
+ 'mail_bcc' => '',
352
+ 'mail_bcc_user' => '',
353
+ 'mail_subject' => '',
354
+ 'mail_subject_user' => '',
355
+ 'mail_mode' => 1,
356
+ 'mail_mode_user' => 1,
357
+ ), array(
358
+ '%s',
359
+ '%s',
360
+ '%s',
361
+ '%d',
362
+ '%s',
363
+ '%s',
364
+ '%d',
365
+ '%s',
366
+ '%s',
367
+ '%d',
368
+ '%d',
369
+ '%s',
370
+ '%s',
371
+ '%s',
372
+ '%s',
373
+ '%s',
374
+ '%s',
375
+ '%d',
376
+ '%d',
377
+ '%s',
378
+ '%s',
379
+ '%s',
380
+ '%s',
381
+ '%s',
382
+ '%d',
383
+ '%s',
384
+ '%s',
385
+ '%s',
386
+ '%s',
387
+ '%s',
388
+ '%s',
389
+ '%s',
390
+ '%s',
391
+ '%s',
392
+ '%s',
393
+ '%s',
394
+ '%d',
395
+ '%d',
396
+ ));
397
+ $id = $wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "contactformmaker");
398
+ $wpdb->insert($wpdb->prefix . 'contactformmaker_views', array(
399
+ 'form_id' => $id,
400
+ 'views' => 0
401
+ ), array(
402
+ '%d',
403
+ '%d'
404
+ ));
405
+ }
406
+ if ($save !== FALSE) {
407
+ return 1;
408
+ }
409
+ else {
410
+ return 2;
411
+ }
412
+ }
413
+
414
+ public function save_db_as_copy() {
415
+ global $wpdb;
416
+ $id = WDW_CFM_Library::get('current_id', 0);
417
+ $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'contactformmaker WHERE id="%d"', $id));
418
+ $title = (isset($_POST['title']) ? esc_html(stripslashes($_POST['title'])) : '');
419
+ $form_front = (isset($_POST['form_front']) ? stripslashes($_POST['form_front']) : '');
420
+ $counter = (isset($_POST['counter']) ? (int) stripslashes($_POST['counter']) : 0);
421
+ $label_order = (isset($_POST['label_order']) ? esc_html(stripslashes($_POST['label_order'])) : '');
422
+ $label_order_current = (isset($_POST['label_order_current']) ? esc_html(stripslashes($_POST['label_order_current'])) : '');
423
+ $public_key = (isset($_POST['public_key']) ? esc_html(stripslashes($_POST['public_key'])) : '');
424
+ $private_key = (isset($_POST['private_key']) ? esc_html(stripslashes($_POST['private_key'])) : '');
425
+ $recaptcha_theme = (isset($_POST['recaptcha_theme']) ? esc_html(stripslashes($_POST['recaptcha_theme'])) : '');
426
+ $form_fields = (isset($_POST['form_fields']) ? stripslashes($_POST['form_fields']) : '');
427
+ $disabled_fields = (isset($_POST['disabled_fields']) ? stripslashes($_POST['disabled_fields']) : '');
428
+
429
+ $save = $wpdb->insert($wpdb->prefix . 'contactformmaker', array(
430
+ 'title' => $title,
431
+ 'mail' => $row->mail,
432
+ 'form_front' => $form_front,
433
+ 'theme' => $row->theme,
434
+ 'submit_text' => $row->submit_text,
435
+ 'url' => $row->url,
436
+ 'submit_text_type' => $row->submit_text_type,
437
+ 'script_mail' => $row->script_mail,
438
+ 'script_mail_user' => $row->script_mail_user,
439
+ 'counter' => $counter,
440
+ 'published' => $row->published,
441
+ 'label_order' => $label_order,
442
+ 'label_order_current' => $label_order_current,
443
+ 'article_id' => $row->article_id,
444
+ 'public_key' => $public_key,
445
+ 'private_key' => $private_key,
446
+ 'recaptcha_theme' => $recaptcha_theme,
447
+ 'form_fields' => $form_fields,
448
+ 'savedb' => $row->savedb,
449
+ 'sendemail' => $row->sendemail,
450
+ 'requiredmark' => $row->requiredmark,
451
+ 'mail_from' => $row->mail_from,
452
+ 'mail_from_name' => $row->mail_from_name,
453
+ 'reply_to' => $row->reply_to,
454
+ 'send_to' => $row->send_to,
455
+ 'autogen_layout' => $row->autogen_layout,
456
+ 'custom_front' => $row->custom_front,
457
+ 'mail_from_user' => $row->mail_from_user,
458
+ 'mail_from_name_user' => $row->mail_from_name_user,
459
+ 'reply_to_user' => $row->reply_to_user,
460
+ 'disabled_fields' => $disabled_fields,
461
+ 'mail_cc' => $row->mail_cc,
462
+ 'mail_cc_user' => $row->mail_cc_user,
463
+ 'mail_bcc' => $row->mail_bcc,
464
+ 'mail_bcc_user' => $row->mail_bcc_user,
465
+ 'mail_subject' => $row->mail_subject,
466
+ 'mail_subject_user' => $row->mail_subject_user,
467
+ 'mail_mode' => $row->mail_mode,
468
+ 'mail_mode_user' => $row->mail_mode_user,
469
+ ), array(
470
+ '%s',
471
+ '%s',
472
+ '%s',
473
+ '%d',
474
+ '%s',
475
+ '%s',
476
+ '%d',
477
+ '%s',
478
+ '%s',
479
+ '%d',
480
+ '%d',
481
+ '%s',
482
+ '%s',
483
+ '%s',
484
+ '%s',
485
+ '%s',
486
+ '%s',
487
+ '%s',
488
+ '%d',
489
+ '%d',
490
+ '%s',
491
+ '%s',
492
+ '%s',
493
+ '%s',
494
+ '%s',
495
+ '%d',
496
+ '%s',
497
+ '%s',
498
+ '%s',
499
+ '%s',
500
+ '%s',
501
+ '%s',
502
+ '%s',
503
+ '%s',
504
+ '%s',
505
+ '%s',
506
+ '%s',
507
+ '%d',
508
+ '%d',
509
+ ));
510
+ $id = $wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "contactformmaker");
511
+ $wpdb->insert($wpdb->prefix . 'contactformmaker_views', array(
512
+ 'form_id' => $id,
513
+ 'views' => 0
514
+ ), array(
515
+ '%d',
516
+ '%d'
517
+ ));
518
+ if ($save !== FALSE) {
519
+ return 1;
520
+ }
521
+ else {
522
+ return 2;
523
+ }
524
+ }
525
+
526
+ public function delete($id) {
527
+ global $wpdb;
528
+ $query = $wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker WHERE id="%d"', $id);
529
+ if ($wpdb->query($query)) {
530
+ $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_views WHERE form_id="%d"', $id));
531
+ $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_submits WHERE form_id="%d"', $id));
532
+ $message = 3;
533
+ }
534
+ else {
535
+ $message = 2;
536
+ }
537
+ $page = WDW_CFM_Library::get('page');
538
+ WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
539
+ }
540
+
541
+ public function delete_all() {
542
+ global $wpdb;
543
+ $flag = FALSE;
544
+ $isDefault = FALSE;
545
+ $form_ids_col = $wpdb->get_col('SELECT id FROM ' . $wpdb->prefix . 'contactformmaker');
546
+ foreach ($form_ids_col as $form_id) {
547
+ if (isset($_POST['check_' . $form_id])) {
548
+ $flag = TRUE;
549
+ $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker WHERE id="%d"', $form_id));
550
+ $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_views WHERE form_id="%d"', $form_id));
551
+ $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'contactformmaker_submits WHERE form_id="%d"', $form_id));
552
+ }
553
+ }
554
+ if ($flag) {
555
+ $message = 5;
556
+ }
557
+ else {
558
+ $message = 6;
559
+ }
560
+ $page = WDW_CFM_Library::get('page');
561
+ WDW_CFM_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
562
+ }
563
+
564
+ ////////////////////////////////////////////////////////////////////////////////////////
565
+ // Getters & Setters //
566
+ ////////////////////////////////////////////////////////////////////////////////////////
567
+ ////////////////////////////////////////////////////////////////////////////////////////
568
+ // Private Methods //
569
+ ////////////////////////////////////////////////////////////////////////////////////////
570
+ ////////////////////////////////////////////////////////////////////////////////////////
571
+ // Listeners //
572
+ ////////////////////////////////////////////////////////////////////////////////////////
573
  }
admin/controllers/CFMControllerSubmissions_cfm.php CHANGED
@@ -1,52 +1,52 @@
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
- $this->$task($id);
27
- }
28
- else {
29
- $this->display($form_id);
30
- }
31
- }
32
-
33
- public function display($form_id) {
34
- $form_id = ((isset($_POST['form_id']) && esc_html($_POST['form_id']) != '') ? esc_html($_POST['form_id']) : 0);
35
- require_once WD_CFM_DIR . "/admin/models/CFMModelSubmissions_cfm.php";
36
- $model = new CFMModelSubmissions_cfm();
37
-
38
- require_once WD_CFM_DIR . "/admin/views/CFMViewSubmissions_cfm.php";
39
- $view = new CFMViewSubmissions_cfm($model);
40
- $view->display($form_id);
41
- }
42
-
43
- ////////////////////////////////////////////////////////////////////////////////////////
44
- // Getters & Setters //
45
- ////////////////////////////////////////////////////////////////////////////////////////
46
- ////////////////////////////////////////////////////////////////////////////////////////
47
- // Private Methods //
48
- ////////////////////////////////////////////////////////////////////////////////////////
49
- ////////////////////////////////////////////////////////////////////////////////////////
50
- // Listeners //
51
- ////////////////////////////////////////////////////////////////////////////////////////
52
  }
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
+ $this->$task($id);
27
+ }
28
+ else {
29
+ $this->display($form_id);
30
+ }
31
+ }
32
+
33
+ public function display($form_id) {
34
+ $form_id = ((isset($_POST['form_id']) && esc_html($_POST['form_id']) != '') ? esc_html($_POST['form_id']) : 0);
35
+ require_once WD_CFM_DIR . "/admin/models/CFMModelSubmissions_cfm.php";
36
+ $model = new CFMModelSubmissions_cfm();
37
+
38
+ require_once WD_CFM_DIR . "/admin/views/CFMViewSubmissions_cfm.php";
39
+ $view = new CFMViewSubmissions_cfm($model);
40
+ $view->display($form_id);
41
+ }
42
+
43
+ ////////////////////////////////////////////////////////////////////////////////////////
44
+ // Getters & Setters //
45
+ ////////////////////////////////////////////////////////////////////////////////////////
46
+ ////////////////////////////////////////////////////////////////////////////////////////
47
+ // Private Methods //
48
+ ////////////////////////////////////////////////////////////////////////////////////////
49
+ ////////////////////////////////////////////////////////////////////////////////////////
50
+ // Listeners //
51
+ ////////////////////////////////////////////////////////////////////////////////////////
52
  }
admin/controllers/CFMControllerThemes_cfm.php CHANGED
@@ -1,52 +1,52 @@
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
- $this->$task($id);
28
- }
29
- else {
30
- $this->display();
31
- }
32
- }
33
-
34
- public function display() {
35
- require_once WD_CFM_DIR . "/admin/models/CFMModelThemes_cfm.php";
36
- $model = new CFMModelThemes_cfm();
37
-
38
- require_once WD_CFM_DIR . "/admin/views/CFMViewThemes_cfm.php";
39
- $view = new CFMViewThemes_cfm($model);
40
- $view->display();
41
- }
42
-
43
- ////////////////////////////////////////////////////////////////////////////////////////
44
- // Getters & Setters //
45
- ////////////////////////////////////////////////////////////////////////////////////////
46
- ////////////////////////////////////////////////////////////////////////////////////////
47
- // Private Methods //
48
- ////////////////////////////////////////////////////////////////////////////////////////
49
- ////////////////////////////////////////////////////////////////////////////////////////
50
- // Listeners //
51
- ////////////////////////////////////////////////////////////////////////////////////////
52
  }
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
+ $this->$task($id);
28
+ }
29
+ else {
30
+ $this->display();
31
+ }
32
+ }
33
+
34
+ public function display() {
35
+ require_once WD_CFM_DIR . "/admin/models/CFMModelThemes_cfm.php";
36
+ $model = new CFMModelThemes_cfm();
37
+
38
+ require_once WD_CFM_DIR . "/admin/views/CFMViewThemes_cfm.php";
39
+ $view = new CFMViewThemes_cfm($model);
40
+ $view->display();
41
+ }
42
+
43
+ ////////////////////////////////////////////////////////////////////////////////////////
44
+ // Getters & Setters //
45
+ ////////////////////////////////////////////////////////////////////////////////////////
46
+ ////////////////////////////////////////////////////////////////////////////////////////
47
+ // Private Methods //
48
+ ////////////////////////////////////////////////////////////////////////////////////////
49
+ ////////////////////////////////////////////////////////////////////////////////////////
50
+ // Listeners //
51
+ ////////////////////////////////////////////////////////////////////////////////////////
52
  }
admin/controllers/CFMControllerUninstall_cfm.php CHANGED
@@ -1,57 +1,57 @@
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
- $this->$task();
25
- }
26
- else {
27
- $this->display();
28
- }
29
- }
30
-
31
- public function display() {
32
- require_once WD_CFM_DIR . "/admin/models/CFMModelUninstall_cfm.php";
33
- $model = new CFMModelUninstall_cfm();
34
-
35
- require_once WD_CFM_DIR . "/admin/views/CFMViewUninstall_cfm.php";
36
- $view = new CFMViewUninstall_cfm($model);
37
- $view->display();
38
- }
39
-
40
- public function uninstall() {
41
- require_once WD_CFM_DIR . "/admin/models/CFMModelUninstall_cfm.php";
42
- $model = new CFMModelUninstall_cfm();
43
-
44
- require_once WD_CFM_DIR . "/admin/views/CFMViewUninstall_cfm.php";
45
- $view = new CFMViewUninstall_cfm($model);
46
- $view->uninstall();
47
- }
48
- ////////////////////////////////////////////////////////////////////////////////////////
49
- // Getters & Setters //
50
- ////////////////////////////////////////////////////////////////////////////////////////
51
- ////////////////////////////////////////////////////////////////////////////////////////
52
- // Private Methods //
53
- ////////////////////////////////////////////////////////////////////////////////////////
54
- ////////////////////////////////////////////////////////////////////////////////////////
55
- // Listeners //
56
- ////////////////////////////////////////////////////////////////////////////////////////
57
  }
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
+ $this->$task();
25
+ }
26
+ else {
27
+ $this->display();
28
+ }
29
+ }
30
+
31
+ public function display() {
32
+ require_once WD_CFM_DIR . "/admin/models/CFMModelUninstall_cfm.php";
33
+ $model = new CFMModelUninstall_cfm();
34
+
35
+ require_once WD_CFM_DIR . "/admin/views/CFMViewUninstall_cfm.php";
36
+ $view = new CFMViewUninstall_cfm($model);
37
+ $view->display();
38
+ }
39
+
40
+ public function uninstall() {
41
+ require_once WD_CFM_DIR . "/admin/models/CFMModelUninstall_cfm.php";
42
+ $model = new CFMModelUninstall_cfm();
43
+
44
+ require_once WD_CFM_DIR . "/admin/views/CFMViewUninstall_cfm.php";
45
+ $view = new CFMViewUninstall_cfm($model);
46
+ $view->uninstall();
47
+ }
48
+ ////////////////////////////////////////////////////////////////////////////////////////
49
+ // Getters & Setters //
50
+ ////////////////////////////////////////////////////////////////////////////////////////
51
+ ////////////////////////////////////////////////////////////////////////////////////////
52
+ // Private Methods //
53
+ ////////////////////////////////////////////////////////////////////////////////////////
54
+ ////////////////////////////////////////////////////////////////////////////////////////
55
+ // Listeners //
56
+ ////////////////////////////////////////////////////////////////////////////////////////
57
  }
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 Maker widget.'
22
- );
23
- // Widget Control Settings.
24
- $control_ops = array('id_base' => 'contact_form_maker_widget');
25
- // Create the widget.
26
- $this->WP_Widget('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 Maker widget.'
22
+ );
23
+ // Widget Control Settings.
24
+ $control_ops = array('id_base' => 'contact_form_maker_widget');
25
+ // Create the widget.
26
+ $this->WP_Widget('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,73 +1,73 @@
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']) : 'desc');
25
- $order_by = ' ORDER BY ' . ((isset($_POST['order_by']) && esc_html($_POST['order_by']) != '') ? esc_html($_POST['order_by']) : 'id') . ' ' . $asc_or_desc;
26
- if (isset($_POST['page_number']) && $_POST['page_number']) {
27
- $limit = ((int) $_POST['page_number'] - 1) * 20;
28
- }
29
- else {
30
- $limit = 0;
31
- }
32
- $query = "SELECT * FROM " . $wpdb->prefix . "contactformmaker_blocked " . $where . $order_by . " LIMIT " . $limit . ",20";
33
- $rows = $wpdb->get_results($query);
34
- return $rows;
35
- }
36
-
37
- public function get_row_data($id) {
38
- global $wpdb;
39
- if ($id != 0) {
40
- $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'contactformmaker_blocked WHERE id="%d"', $id));
41
- }
42
- else {
43
- $row->id = 0;
44
- $row->ip = '';
45
- }
46
- return $row;
47
- }
48
-
49
- public function page_nav() {
50
- global $wpdb;
51
- $where = ((isset($_POST['search_value']) && (esc_html($_POST['search_value']) != '')) ? 'WHERE `ip` LIKE "%' . esc_html($_POST['search_value']) . '%"' : '');
52
- $query = "SELECT COUNT(*) FROM " . $wpdb->prefix . "contactformmaker_blocked " . $where;
53
- $total = $wpdb->get_var($query);
54
- $page_nav['total'] = $total;
55
- if (isset($_POST['page_number']) && $_POST['page_number']) {
56
- $limit = ((int) $_POST['page_number'] - 1) * 20;
57
- }
58
- else {
59
- $limit = 0;
60
- }
61
- $page_nav['limit'] = (int) ($limit / 20 + 1);
62
- return $page_nav;
63
- }
64
- ////////////////////////////////////////////////////////////////////////////////////////
65
- // Getters & Setters //
66
- ////////////////////////////////////////////////////////////////////////////////////////
67
- ////////////////////////////////////////////////////////////////////////////////////////
68
- // Private Methods //
69
- ////////////////////////////////////////////////////////////////////////////////////////
70
- ////////////////////////////////////////////////////////////////////////////////////////
71
- // Listeners //
72
- ////////////////////////////////////////////////////////////////////////////////////////
73
  }
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']) : 'desc');
25
+ $order_by = ' ORDER BY ' . ((isset($_POST['order_by']) && esc_html($_POST['order_by']) != '') ? esc_html($_POST['order_by']) : 'id') . ' ' . $asc_or_desc;
26
+ if (isset($_POST['page_number']) && $_POST['page_number']) {
27
+ $limit = ((int) $_POST['page_number'] - 1) * 20;
28
+ }
29
+ else {
30
+ $limit = 0;
31
+ }
32
+ $query = "SELECT * FROM " . $wpdb->prefix . "contactformmaker_blocked " . $where . $order_by . " LIMIT " . $limit . ",20";
33
+ $rows = $wpdb->get_results($query);
34
+ return $rows;
35
+ }
36
+
37
+ public function get_row_data($id) {
38
+ global $wpdb;
39
+ if ($id != 0) {
40
+ $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'contactformmaker_blocked WHERE id="%d"', $id));
41
+ }
42
+ else {
43
+ $row->id = 0;
44
+ $row->ip = '';
45
+ }
46
+ return $row;
47
+ }
48
+
49
+ public function page_nav() {
50
+ global $wpdb;
51
+ $where = ((isset($_POST['search_value']) && (esc_html($_POST['search_value']) != '')) ? 'WHERE `ip` LIKE "%' . esc_html($_POST['search_value']) . '%"' : '');
52
+ $query = "SELECT COUNT(*) FROM " . $wpdb->prefix . "contactformmaker_blocked " . $where;
53
+ $total = $wpdb->get_var($query);
54
+ $page_nav['total'] = $total;
55
+ if (isset($_POST['page_number']) && $_POST['page_number']) {
56
+ $limit = ((int) $_POST['page_number'] - 1) * 20;
57
+ }
58
+ else {
59
+ $limit = 0;
60
+ }
61
+ $page_nav['limit'] = (int) ($limit / 20 + 1);
62
+ return $page_nav;
63
+ }
64
+ ////////////////////////////////////////////////////////////////////////////////////////
65
+ // Getters & Setters //
66
+ ////////////////////////////////////////////////////////////////////////////////////////
67
+ ////////////////////////////////////////////////////////////////////////////////////////
68
+ // Private Methods //
69
+ ////////////////////////////////////////////////////////////////////////////////////////
70
+ ////////////////////////////////////////////////////////////////////////////////////////
71
+ // Listeners //
72
+ ////////////////////////////////////////////////////////////////////////////////////////
73
  }
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/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,754 +1,754 @@
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']) : 'asc');
25
- $order_by = ' ORDER BY ' . ((isset($_POST['order_by']) && esc_html($_POST['order_by']) != '') ? esc_html($_POST['order_by']) : 'id') . ' ' . $asc_or_desc;
26
- if (isset($_POST['page_number']) && $_POST['page_number']) {
27
- $limit = ((int) $_POST['page_number'] - 1) * 20;
28
- }
29
- else {
30
- $limit = 0;
31
- }
32
- $query = "SELECT * FROM " . $wpdb->prefix . "contactformmaker " . $where . $order_by . " LIMIT " . $limit . ",20";
33
- $rows = $wpdb->get_results($query);
34
- return $rows;
35
- }
36
-
37
- public function get_row_data($id) {
38
- global $wpdb;
39
- if ($id != 0) {
40
- $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'contactformmaker WHERE id="%d"', $id));
41
- $labels2 = array();
42
- $label_id = array();
43
- $label_order_original = array();
44
- $label_type = array();
45
- $label_all = explode('#****#', $row->label_order);
46
- $label_all = array_slice($label_all, 0, count($label_all) - 1);
47
- foreach ($label_all as $key => $label_each) {
48
- $label_id_each = explode('#**id**#', $label_each);
49
- array_push($label_id, $label_id_each[0]);
50
- $label_oder_each = explode('#**label**#', $label_id_each[1]);
51
- array_push($label_order_original, addslashes($label_oder_each[0]));
52
- array_push($label_type, $label_oder_each[1]);
53
- }
54
- $labels2['id'] = '"' . implode('","', $label_id) . '"';
55
- $labels2['label'] = '"' . implode('","', $label_order_original) . '"';
56
- $labels2['type'] = '"' . implode('","', $label_type) . '"';
57
- $ids = array();
58
- $types = array();
59
- $labels = array();
60
- $paramss = array();
61
- $fields = explode('*:*new_field*:*', $row->form_fields);
62
- $fields = array_slice($fields, 0, count($fields) - 1);
63
- foreach ($fields as $field) {
64
- $temp = explode('*:*id*:*', $field);
65
- array_push($ids, $temp[0]);
66
- $temp = explode('*:*type*:*', $temp[1]);
67
- array_push($types, $temp[0]);
68
- $temp = explode('*:*w_field_label*:*', $temp[1]);
69
- array_push($labels, $temp[0]);
70
- array_push($paramss, $temp[1]);
71
- }
72
- $form = $row->form_front;
73
- foreach ($ids as $ids_key => $id) {
74
- $label = $labels[$ids_key];
75
- $type = $types[$ids_key];
76
- $params = $paramss[$ids_key];
77
- if (strpos($form, '%' . $id . ' - ' . $label . '%') || strpos($form, '%' . $id . ' -' . $label . '%')) {
78
- $rep = '';
79
- $param = array();
80
- $param['attributes'] = '';
81
- switch ($type) {
82
- case 'type_section_break': {
83
- $params_names = array('w_editor');
84
- $temp = $params;
85
- foreach ($params_names as $params_name) {
86
- $temp = explode('*:*' . $params_name . '*:*', $temp);
87
- $param[$params_name] = $temp[0];
88
- $temp = $temp[1];
89
- }
90
- $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>';
91
- break;
92
- }
93
- case 'type_editor': {
94
- $params_names = array('w_editor');
95
- $temp = $params;
96
- foreach ($params_names as $params_name ) {
97
- $temp = explode('*:*' . $params_name . '*:*', $temp);
98
- $param[$params_name] = $temp[0];
99
- $temp = $temp[1];
100
- }
101
- $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>';
102
- break;
103
- }
104
- case 'type_send_copy': {
105
- $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_first_val', 'w_required');
106
- $temp = $params;
107
- foreach ($params_names as $params_name ) {
108
- $temp = explode('*:*' . $params_name . '*:*', $temp);
109
- $param[$params_name] = $temp[0];
110
- $temp = $temp[1];
111
- }
112
- if ($temp) {
113
- $temp = explode('*:*w_attr_name*:*', $temp);
114
- $attrs = array_slice($temp, 0, count($temp) - 1);
115
- foreach ($attrs as $attr) {
116
- $param['attributes'] = $param['attributes'] . ' add_' . $attr;
117
- }
118
- }
119
- $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
120
- $input_active = ($param['w_first_val'] == 'true' ? "checked='checked'" : "");
121
- $required_sym = ($param['w_required'] == "yes" ? " *" : "");
122
- $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'].'></div></div>';
123
- break;
124
- }
125
- case 'type_text': {
126
- $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_size', 'w_first_val', 'w_title', 'w_required', 'w_unique');
127
- $temp = $params;
128
- foreach ($params_names as $params_name) {
129
- $temp = explode('*:*' . $params_name . '*:*', $temp);
130
- $param[$params_name] = $temp[0];
131
- $temp = $temp[1];
132
- }
133
- if ($temp) {
134
- $temp = explode('*:*w_attr_name*:*', $temp);
135
- $attrs = array_slice($temp, 0, count($temp) - 1);
136
- foreach ($attrs as $attr) {
137
- $param['attributes'] = $param['attributes'] . ' add_' . $attr;
138
- }
139
- }
140
- $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
141
- $input_active = ($param['w_first_val'] == $param['w_title'] ? "input_deactive" : "input_active");
142
- $required_sym = ($param['w_required'] == "yes" ? " *" : "");
143
- $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_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'].'></div></div>';
144
- break;
145
- }
146
- case 'type_number': {
147
- $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_size', 'w_first_val', 'w_title', 'w_required', 'w_unique', 'w_class');
148
- $temp = $params;
149
- foreach ($params_names as $params_name) {
150
- $temp = explode('*:*' . $params_name . '*:*', $temp);
151
- $param[$params_name] = $temp[0];
152
- $temp = $temp[1];
153
- }
154
- if ($temp) {
155
- $temp = explode('*:*w_attr_name*:*', $temp);
156
- $attrs = array_slice($temp, 0, count($temp) - 1);
157
- foreach ($attrs as $attr) {
158
- $param['attributes'] = $param['attributes'] . ' add_' . $attr;
159
- }
160
- }
161
- $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
162
- $input_active = ($param['w_first_val'] == $param['w_title'] ? "input_deactive" : "input_active");
163
- $required_sym = ($param['w_required'] == "yes" ? " *" : "");
164
- $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'].'></div></div>';
165
- break;
166
- }
167
- case 'type_password': {
168
- $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_size', 'w_required', 'w_unique', 'w_class');
169
- $temp = $params;
170
- foreach ($params_names as $params_name) {
171
- $temp = explode('*:*' . $params_name . '*:*', $temp);
172
- $param[$params_name] = $temp[0];
173
- $temp = $temp[1];
174
- }
175
- if ($temp) {
176
- $temp = explode('*:*w_attr_name*:*', $temp);
177
- $attrs = array_slice($temp, 0, count($temp) - 1);
178
- foreach ($attrs as $attr) {
179
- $param['attributes'] = $param['attributes'] . ' add_' . $attr;
180
- }
181
- }
182
- $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
183
- $required_sym = ($param['w_required'] == "yes" ? " *" : "");
184
- $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'].'></div></div>';
185
- break;
186
- }
187
- case 'type_textarea': {
188
- $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');
189
- $temp = $params;
190
- foreach ($params_names as $params_name) {
191
- $temp = explode('*:*' . $params_name . '*:*', $temp);
192
- $param[$params_name] = $temp[0];
193
- $temp = $temp[1];
194
- }
195
- if ($temp) {
196
- $temp = explode('*:*w_attr_name*:*', $temp);
197
- $attrs = array_slice($temp, 0, count($temp) - 1);
198
- foreach ($attrs as $attr) {
199
- $param['attributes'] = $param['attributes'] . ' add_' . $attr;
200
- }
201
- }
202
- $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
203
- $input_active = ($param['w_first_val'] == $param['w_title'] ? "input_deactive" : "input_active");
204
- $required_sym = ($param['w_required'] == "yes" ? " *" : "");
205
- $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'].'>'.$param['w_first_val'].'</textarea></div></div>';
206
- break;
207
- }
208
- case 'type_phone': {
209
- $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');
210
- $temp = $params;
211
- foreach ($params_names as $params_name) {
212
- $temp = explode('*:*' . $params_name . '*:*', $temp);
213
- $param[$params_name] = $temp[0];
214
- $temp = $temp[1];
215
- }
216
- if ($temp) {
217
- $temp = explode('*:*w_attr_name*:*', $temp);
218
- $attrs = array_slice($temp, 0, count($temp) - 1);
219
- foreach ($attrs as $attr) {
220
- $param['attributes'] = $param['attributes'].' add_'.$attr;
221
- }
222
- }
223
- $w_first_val = explode('***', $param['w_first_val']);
224
- $w_title = explode('***', $param['w_title']);
225
- $w_mini_labels = explode('***', $param['w_mini_labels']);
226
- $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
227
- $input_active = ($param['w_first_val'] == $param['w_title'] ? "input_deactive" : "input_active");
228
- $required_sym = ($param['w_required'] == "yes" ? " *" : "");
229
- $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'].'><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'].'></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>';
230
- break;
231
- }
232
- case 'type_name': {
233
- $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');
234
- $temp = $params;
235
- foreach ($params_names as $params_name) {
236
- $temp = explode('*:*' . $params_name . '*:*', $temp);
237
- $param[$params_name] = $temp[0];
238
- $temp = $temp[1];
239
- }
240
- if ($temp) {
241
- $temp = explode('*:*w_attr_name*:*', $temp);
242
- $attrs = array_slice($temp, 0, count($temp) - 1);
243
- foreach ($attrs as $attr) {
244
- $param['attributes'] = $param['attributes'] . ' add_' . $attr;
245
- }
246
- }
247
- $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
248
- $required_sym = ($param['w_required'] == "yes" ? " *" : "");
249
- $w_first_val = explode('***', $param['w_first_val']);
250
- $w_title = explode('***', $param['w_title']);
251
- $w_mini_labels = explode('***', $param['w_mini_labels']);
252
- if ($param['w_name_format'] == 'normal') {
253
- $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'].'></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'].'></div>';
254
- $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>';
255
- }
256
- else {
257
- $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>';
258
- $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>';
259
- }
260
- $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>';
261
- break;
262
- }
263
- case 'type_address': {
264
- $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_size', 'w_mini_labels', 'w_disabled_fields', 'w_required', 'w_class');
265
- $temp = $params;
266
- foreach ($params_names as $params_name) {
267
- $temp = explode('*:*' . $params_name . '*:*', $temp);
268
- $param[$params_name] = $temp[0];
269
- $temp = $temp[1];
270
- }
271
- if ($temp) {
272
- $temp = explode('*:*w_attr_name*:*', $temp);
273
- $attrs = array_slice($temp, 0, count($temp) - 1);
274
- foreach ($attrs as $attr) {
275
- $param['attributes'] = $param['attributes'] . ' add_' . $attr;
276
- }
277
- }
278
- $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
279
- $required_sym = ($param['w_required'] == "yes" ? " *" : "");
280
- $w_mini_labels = explode('***', $param['w_mini_labels']);
281
- $w_disabled_fields = explode('***',$param['w_disabled_fields']);
282
- $hidden_inputs = '';
283
- $labels_for_id = array('street1', 'street2', 'city', 'state', 'postal', 'country');
284
- foreach ($w_disabled_fields as $key => $w_disabled_field) {
285
- if ($key != 6) {
286
- if ($w_disabled_field == 'yes') {
287
- $hidden_inputs .= '<input type="hidden" id="'.$id.'_'.$labels_for_id[$key].'form_id_temp" value="'.$w_mini_labels[$key].'" id_for_label="'.($id+$key).'">';
288
- }
289
- }
290
- }
291
- $address_fields = '';
292
- $g = 0;
293
- if ($w_disabled_fields[0] == 'no') {
294
- $g += 2;
295
- $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'].'><label class="mini_label" id="'.$id.'_mini_label_street1" style="display: block;">'.$w_mini_labels[0].'</label></span>';
296
- }
297
- if ($w_disabled_fields[1] == 'no') {
298
- $g += 2;
299
- $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'].'><label class="mini_label" style="display: block;" id="'.$id.'_mini_label_street2">'.$w_mini_labels[1].'</label></span>';
300
- }
301
- if ($w_disabled_fields[2] == 'no') {
302
- $g++;
303
- $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'].'><label class="mini_label" style="display: block;" id="'.$id.'_mini_label_city">'.$w_mini_labels[2].'</label></span>';
304
- }
305
- if ($w_disabled_fields[3] == 'no') {
306
- $g++;
307
- if ($w_disabled_fields[5] == 'yes' && $w_disabled_fields[6] == 'yes') {
308
- $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'].'><option value=""></option><option value="Alabama">Alabama</option><option value="Alaska">Alaska</option><option value="Arizona">Arizona</option><option value="Arkansas">Arkansas</option><option value="California">California</option><option value="Colorado">Colorado</option><option value="Connecticut">Connecticut</option><option value="Delaware">Delaware</option><option value="Florida">Florida</option><option value="Georgia">Georgia</option><option value="Hawaii">Hawaii</option><option value="Idaho">Idaho</option><option value="Illinois">Illinois</option><option value="Indiana">Indiana</option><option value="Iowa">Iowa</option><option value="Kansas">Kansas</option><option value="Kentucky">Kentucky</option><option value="Louisiana">Louisiana</option><option value="Maine">Maine</option><option value="Maryland">Maryland</option><option value="Massachusetts">Massachusetts</option><option value="Michigan">Michigan</option><option value="Minnesota">Minnesota</option><option value="Mississippi">Mississippi</option><option value="Missouri">Missouri</option><option value="Montana">Montana</option><option value="Nebraska">Nebraska</option><option value="Nevada">Nevada</option><option value="New Hampshire">New Hampshire</option><option value="New Jersey">New Jersey</option><option value="New Mexico">New Mexico</option><option value="New York">New York</option><option value="North Carolina">North Carolina</option><option value="North Dakota">North Dakota</option><option value="Ohio">Ohio</option><option value="Oklahoma">Oklahoma</option><option value="Oregon">Oregon</option><option value="Pennsylvania">Pennsylvania</option><option value="Rhode Island">Rhode Island</option><option value="South Carolina">South Carolina</option><option value="South Dakota">South Dakota</option><option value="Tennessee">Tennessee</option><option value="Texas">Texas</option><option value="Utah">Utah</option><option value="Vermont">Vermont</option><option value="Virginia">Virginia</option><option value="Washington">Washington</option><option value="West Virginia">West Virginia</option><option value="Wisconsin">Wisconsin</option><option value="Wyoming">Wyoming</option></select><label class="mini_label" style="display: block;" id="'.$id.'_mini_label_state">'.$w_mini_labels[3].'</label></span>';
309
- }
310
- else {
311
- $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'].'><label class="mini_label" style="display: block;" id="'.$id.'_mini_label_state">'.$w_mini_labels[3].'</label></span>';
312
- }
313
- }
314
- if ($w_disabled_fields[4] == 'no') {
315
- $g++;
316
- $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'].'><label class="mini_label" style="display: block;" id="'.$id.'_mini_label_postal">'.$w_mini_labels[4].'</label></span>';
317
- }
318
- if ($w_disabled_fields[5] == 'no') {
319
- $g++;
320
- $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'].'><option value=""></option><option value="Afghanistan">Afghanistan</option><option value="Albania">Albania</option><option value="Algeria">Algeria</option><option value="Andorra">Andorra</option><option value="Angola">Angola</option><option value="Antigua and Barbuda">Antigua and Barbuda</option><option value="Argentina">Argentina</option><option value="Armenia">Armenia</option><option value="Australia">Australia</option><option value="Austria">Austria</option><option value="Azerbaijan">Azerbaijan</option><option value="Bahamas">Bahamas</option><option value="Bahrain">Bahrain</option><option value="Bangladesh">Bangladesh</option><option value="Barbados">Barbados</option><option value="Belarus">Belarus</option><option value="Belgium">Belgium</option><option value="Belize">Belize</option><option value="Benin">Benin</option><option value="Bhutan">Bhutan</option><option value="Bolivia">Bolivia</option><option value="Bosnia and Herzegovina">Bosnia and Herzegovina</option><option value="Botswana">Botswana</option><option value="Brazil">Brazil</option><option value="Brunei">Brunei</option><option value="Bulgaria">Bulgaria</option><option value="Burkina Faso">Burkina Faso</option><option value="Burundi">Burundi</option><option value="Cambodia">Cambodia</option><option value="Cameroon">Cameroon</option><option value="Canada">Canada</option><option value="Cape Verde">Cape Verde</option><option value="Central African Republic">Central African Republic</option><option value="Chad">Chad</option><option value="Chile">Chile</option><option value="China">China</option><option value="Colombi">Colombi</option><option value="Comoros">Comoros</option><option value="Congo (Brazzaville)">Congo (Brazzaville)</option><option value="Congo">Congo</option><option value="Costa Rica">Costa Rica</option><option value="Cote d\'Ivoire">Cote d\'Ivoire</option><option value="Croatia">Croatia</option><option value="Cuba">Cuba</option><option value="Cyprus">Cyprus</option><option value="Czech Republic">Czech Republic</option><option value="Denmark">Denmark</option><option value="Djibouti">Djibouti</option><option value="Dominica">Dominica</option><option value="Dominican Republic">Dominican Republic</option><option value="East Timor (Timor Timur)">East Timor (Timor Timur)</option><option value="Ecuador">Ecuador</option><option value="Egypt">Egypt</option><option value="El Salvador">El Salvador</option><option value="Equatorial Guinea">Equatorial Guinea</option><option value="Eritrea">Eritrea</option><option value="Estonia">Estonia</option><option value="Ethiopia">Ethiopia</option><option value="Fiji">Fiji</option><option value="Finland">Finland</option><option value="France">France</option><option value="Gabon">Gabon</option><option value="Gambia, The">Gambia, The</option><option value="Georgia">Georgia</option><option value="Germany">Germany</option><option value="Ghana">Ghana</option><option value="Greece">Greece</option><option value="Grenada">Grenada</option><option value="Guatemala">Guatemala</option><option value="Guinea">Guinea</option><option value="Guinea-Bissau">Guinea-Bissau</option><option value="Guyana">Guyana</option><option value="Haiti">Haiti</option><option value="Honduras">Honduras</option><option value="Hungary">Hungary</option><option value="Iceland">Iceland</option><option value="India">India</option><option value="Indonesia">Indonesia</option><option value="Iran">Iran</option><option value="Iraq">Iraq</option><option value="Ireland">Ireland</option><option value="Israel">Israel</option><option value="Italy">Italy</option><option value="Jamaica">Jamaica</option><option value="Japan">Japan</option><option value="Jordan">Jordan</option><option value="Kazakhstan">Kazakhstan</option><option value="Kenya">Kenya</option><option value="Kiribati">Kiribati</option><option value="Korea, North">Korea, North</option><option value="Korea, South">Korea, South</option><option value="Kuwait">Kuwait</option><option value="Kyrgyzstan">Kyrgyzstan</option><option value="Laos">Laos</option><option value="Latvia">Latvia</option><option value="Lebanon">Lebanon</option><option value="Lesotho">Lesotho</option><option value="Liberia">Liberia</option><option value="Libya">Libya</option><option value="Liechtenstein">Liechtenstein</option><option value="Lithuania">Lithuania</option><option value="Luxembourg">Luxembourg</option><option value="Macedonia">Macedonia</option><option value="Madagascar">Madagascar</option><option value="Malawi">Malawi</option><option value="Malaysia">Malaysia</option><option value="Maldives">Maldives</option><option value="Mali">Mali</option><option value="Malta">Malta</option><option value="Marshall Islands">Marshall Islands</option><option value="Mauritania">Mauritania</option><option value="Mauritius">Mauritius</option><option value="Mexico">Mexico</option><option value="Micronesia">Micronesia</option><option value="Moldova">Moldova</option><option value="Monaco">Monaco</option><option value="Mongolia">Mongolia</option><option value="Morocco">Morocco</option><option value="Mozambique">Mozambique</option><option value="Myanmar">Myanmar</option><option value="Namibia">Namibia</option><option value="Nauru">Nauru</option><option value="Nepa">Nepa</option><option value="Netherlands">Netherlands</option><option value="New Zealand">New Zealand</option><option value="Nicaragua">Nicaragua</option><option value="Niger">Niger</option><option value="Nigeria">Nigeria</option><option value="Norway">Norway</option><option value="Oman">Oman</option><option value="Pakistan">Pakistan</option><option value="Palau">Palau</option><option value="Panama">Panama</option><option value="Papua New Guinea">Papua New Guinea</option><option value="Paraguay">Paraguay</option><option value="Peru">Peru</option><option value="Philippines">Philippines</option><option value="Poland">Poland</option><option value="Portugal">Portugal</option><option value="Qatar">Qatar</option><option value="Romania">Romania</option><option value="Russia">Russia</option><option value="Rwanda">Rwanda</option><option value="Saint Kitts and Nevis">Saint Kitts and Nevis</option><option value="Saint Lucia">Saint Lucia</option><option value="Saint Vincent">Saint Vincent</option><option value="Samoa">Samoa</option><option value="San Marino">San Marino</option><option value="Sao Tome and Principe">Sao Tome and Principe</option><option value="Saudi Arabia">Saudi Arabia</option><option value="Senegal">Senegal</option><option value="Serbia and Montenegro">Serbia and Montenegro</option><option value="Seychelles">Seychelles</option><option value="Sierra Leone">Sierra Leone</option><option value="Singapore">Singapore</option><option value="Slovakia">Slovakia</option><option value="Slovenia">Slovenia</option><option value="Solomon Islands">Solomon Islands</option><option value="Somalia">Somalia</option><option value="South Africa">South Africa</option><option value="Spain">Spain</option><option value="Sri Lanka">Sri Lanka</option><option value="Sudan">Sudan</option><option value="Suriname">Suriname</option><option value="Swaziland">Swaziland</option><option value="Sweden">Sweden</option><option value="Switzerland">Switzerland</option><option value="Syria">Syria</option><option value="Taiwan">Taiwan</option><option value="Tajikistan">Tajikistan</option><option value="Tanzania">Tanzania</option><option value="Thailand">Thailand</option><option value="Togo">Togo</option><option value="Tonga">Tonga</option><option value="Trinidad and Tobago">Trinidad and Tobago</option><option value="Tunisia">Tunisia</option><option value="Turkey">Turkey</option><option value="Turkmenistan">Turkmenistan</option><option value="Tuvalu">Tuvalu</option><option value="Uganda">Uganda</option><option value="Ukraine">Ukraine</option><option value="United Arab Emirates">United Arab Emirates</option><option value="United Kingdom">United Kingdom</option><option value="United States">United States</option><option value="Uruguay">Uruguay</option><option value="Uzbekistan">Uzbekistan</option><option value="Vanuatu">Vanuatu</option><option value="Vatican City">Vatican City</option><option value="Venezuela">Venezuela</option><option value="Vietnam">Vietnam</option><option value="Yemen">Yemen</option><option value="Zambia">Zambia</option><option value="Zimbabwe">Zimbabwe</option></select><label class="mini_label" style="display: block;" id="'.$id.'_mini_label_country">'.$w_mini_labels[5].'</span>';
321
- }
322
- $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>';
323
- break;
324
- }
325
- case 'type_submitter_mail': {
326
- $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_size', 'w_first_val', 'w_title', 'w_required', 'w_unique', 'w_class');
327
- $temp = $params;
328
- foreach ($params_names as $params_name) {
329
- $temp = explode('*:*' . $params_name . '*:*', $temp);
330
- $param[$params_name] = $temp[0];
331
- $temp = $temp[1];
332
- }
333
- if ($temp) {
334
- $temp = explode('*:*w_attr_name*:*', $temp);
335
- $attrs = array_slice($temp, 0, count($temp) - 1);
336
- foreach ($attrs as $attr) {
337
- $param['attributes'] = $param['attributes'] . ' add_' . $attr;
338
- }
339
- }
340
- $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
341
- $input_active = ($param['w_first_val'] == $param['w_title'] ? "input_deactive" : "input_active");
342
- $required_sym = ($param['w_required'] == "yes" ? " *" : "");
343
- $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'].'></div></div>';
344
- break;
345
- }
346
- case 'type_checkbox': {
347
- $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');
348
- $temp = $params;
349
- foreach ($params_names as $params_name) {
350
- $temp = explode('*:*' . $params_name . '*:*', $temp);
351
- $param[$params_name] = $temp[0];
352
- $temp = $temp[1];
353
- }
354
- if ($temp) {
355
- $temp = explode('*:*w_attr_name*:*', $temp);
356
- $attrs = array_slice($temp, 0, count($temp) - 1);
357
- foreach ($attrs as $attr) {
358
- $param['attributes'] = $param['attributes'] . ' add_' . $attr;
359
- }
360
- }
361
- $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
362
- $required_sym = ($param['w_required'] == "yes" ? " *" : "");
363
- $param['w_choices'] = explode('***', $param['w_choices']);
364
- $param['w_choices_checked'] = explode('***',$param['w_choices_checked']);
365
- foreach ($param['w_choices_checked'] as $key => $choices_checked) {
366
- if ($choices_checked == 'true') {
367
- $param['w_choices_checked'][$key] = 'checked="checked"';
368
- }
369
- else {
370
- $param['w_choices_checked'][$key] = '';
371
- }
372
- }
373
- $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"' : '').'>';
374
- if ($param['w_flow'] == 'hor') {
375
- $j = 0;
376
- for ($i = 0; $i < (int) $param['w_rowcol']; $i++) {
377
- $rep .= '<div id="'.$id.'_element_tr'.$i.'" style="display: table-row;">';
378
- for ($l = 0; $l <= (int)(count($param['w_choices']) / $param['w_rowcol']); $l++) {
379
- if ($j >= count($param['w_choices']) % $param['w_rowcol'] && $l == (int) (count($param['w_choices']) / $param['w_rowcol'])) {
380
- continue;
381
- }
382
- if ($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == (int) $param['w_rowcol'] * $i + $l) {
383
- $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'].'><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>';
384
- }
385
- else {
386
- $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'].'><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>';
387
- }
388
- }
389
- $j++;
390
- $rep .= '</div>';
391
- }
392
- }
393
- else {
394
- for ($i = 0; $i < (int) (count($param['w_choices']) / $param['w_rowcol']); $i++) {
395
- $rep .= '<div id="'.$id.'_element_tr'.$i.'" style="display: table-row;">';
396
- if (count($param['w_choices']) > (int)$param['w_rowcol']) {
397
- for ($l = 0; $l < $param['w_rowcol']; $l++) {
398
- if ($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == (int) $param['w_rowcol'] * $i + $l) {
399
- $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'].'><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>';
400
- }
401
- else {
402
- $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'].'><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>';
403
- }
404
- }
405
- }
406
- else {
407
- for ($l = 0; $l < count($param['w_choices']); $l++) {
408
- if ($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == (int) $param['w_rowcol'] * $i + $l) {
409
- $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'].'><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>';
410
- }
411
- else {
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).'" 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'].'><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
- }
415
- }
416
- $rep .= '</div>';
417
- }
418
- if (count($param['w_choices']) % $param['w_rowcol'] != 0) {
419
- $rep .= '<div id="'.$id.'_element_tr'.((int) (count($param['w_choices']) / (int)$param['w_rowcol'])).'" style="display: table-row;">';
420
- for ($k = 0; $k < count($param['w_choices']) % $param['w_rowcol']; $k++) {
421
- $l = count($param['w_choices']) - count($param['w_choices']) % $param['w_rowcol'] + $k;
422
- if ($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == $l) {
423
- $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'].'><label id="'.$id.'_label_element'.$l.'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.$l.'">'.$param['w_choices'][$l].'</label></div>';
424
- }
425
- else {
426
- $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'].'><label id="'.$id.'_label_element'.$l.'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.$l.'">'.$param['w_choices'][$l].'</label></div>';
427
- }
428
- }
429
- $rep .= '</div>';
430
- }
431
- }
432
- $rep .= '</div></div></div></div>';
433
- break;
434
- }
435
- case 'type_radio': {
436
- $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');
437
- $temp = $params;
438
- foreach ($params_names as $params_name) {
439
- $temp = explode('*:*' . $params_name . '*:*', $temp);
440
- $param[$params_name] = $temp[0];
441
- $temp = $temp[1];
442
- }
443
- if ($temp) {
444
- $temp = explode('*:*w_attr_name*:*', $temp);
445
- $attrs = array_slice($temp, 0, count($temp) - 1);
446
- foreach ($attrs as $attr) {
447
- $param['attributes'] = $param['attributes'] . ' add_' . $attr;
448
- }
449
- }
450
- $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
451
- $required_sym = ($param['w_required'] == "yes" ? " *" : "");
452
- $param['w_choices'] = explode('***', $param['w_choices']);
453
- $param['w_choices_checked'] = explode('***', $param['w_choices_checked']);
454
- foreach ($param['w_choices_checked'] as $key => $choices_checked) {
455
- if ($choices_checked == 'true') {
456
- $param['w_choices_checked'][$key] = 'checked="checked"';
457
- }
458
- else {
459
- $param['w_choices_checked'][$key] = '';
460
- }
461
- }
462
- $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"' : '').'>';
463
- if ($param['w_flow'] == 'hor') {
464
- $j = 0;
465
- for ($i = 0; $i < (int) $param['w_rowcol']; $i++) {
466
- $rep .= '<div id="'.$id.'_element_tr'.$i.'" style="display: table-row;">';
467
- for($l=0; $l<=(int)(count($param['w_choices'])/$param['w_rowcol']); $l++) {
468
- if ($j >= count($param['w_choices'])%$param['w_rowcol'] && $l == (int) (count($param['w_choices']) / $param['w_rowcol'])) {
469
- continue;
470
- }
471
- if ($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == (int) $param['w_rowcol'] * $i + $l) {
472
- $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'].'><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>';
473
- }
474
- else {
475
- $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'].'><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>';
476
- }
477
- }
478
- $j++;
479
- $rep .= '</div>';
480
- }
481
- }
482
- else {
483
- for ($i = 0; $i < (int) (count($param['w_choices']) / $param['w_rowcol']); $i++) {
484
- $rep .= '<div id="'.$id.'_element_tr'.$i.'" style="display: table-row;">';
485
- if (count($param['w_choices']) > (int) $param['w_rowcol']) {
486
- for ($l = 0; $l < $param['w_rowcol']; $l++) {
487
- if ($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == (int) $param['w_rowcol'] * $i + $l) {
488
- $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'].'><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>';
489
- }
490
- else {
491
- $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'].'><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>';
492
- }
493
- }
494
- }
495
- else {
496
- for ($l = 0; $l < count($param['w_choices']); $l++) {
497
- if ($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == (int) $param['w_rowcol'] * $i + $l) {
498
- $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'].'><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>';
499
- }
500
- else {
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" 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'].'><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
- }
504
- }
505
- $rep .= '</div>';
506
- }
507
- if (count($param['w_choices']) % $param['w_rowcol'] != 0) {
508
- $rep .= '<div id="'.$id.'_element_tr'.((int)(count($param['w_choices'])/(int)$param['w_rowcol'])).'" style="display: table-row;">';
509
- for ($k = 0; $k < count($param['w_choices']) % $param['w_rowcol']; $k++) {
510
- $l = count($param['w_choices']) - count($param['w_choices']) % $param['w_rowcol'] + $k;
511
- if ($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == $l) {
512
- $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'].'><label id="'.$id.'_label_element'.$l.'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.$l.'">'.$param['w_choices'][$l].'</label></div>';
513
- }
514
- else {
515
- $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'].'><label id="'.$id.'_label_element'.$l.'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.$l.'">'.$param['w_choices'][$l].'</label></div>';
516
- }
517
- }
518
- $rep .= '</div>';
519
- }
520
- }
521
- $rep .= '</div></div></div></div>';
522
- break;
523
- }
524
- case 'type_own_select': {
525
- $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');
526
- $temp = $params;
527
- foreach ($params_names as $params_name) {
528
- $temp = explode('*:*' . $params_name . '*:*', $temp);
529
- $param[$params_name] = $temp[0];
530
- $temp = $temp[1];
531
- }
532
- if ($temp) {
533
- $temp = explode('*:*w_attr_name*:*', $temp);
534
- $attrs = array_slice($temp, 0, count($temp) - 1);
535
- foreach ($attrs as $attr) {
536
- $param['attributes'] = $param['attributes'] . ' add_' . $attr;
537
- }
538
- }
539
- $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
540
- $required_sym = ($param['w_required'] == "yes" ? " *" : "");
541
- $param['w_choices'] = explode('***', $param['w_choices']);
542
- $param['w_choices_checked'] = explode('***',$param['w_choices_checked']);
543
- $param['w_choices_disabled'] = explode('***',$param['w_choices_disabled']);
544
- foreach ($param['w_choices_checked'] as $key => $choices_checked) {
545
- if ($choices_checked == 'true') {
546
- $param['w_choices_checked'][$key] = 'selected="selected"';
547
- }
548
- else {
549
- $param['w_choices_checked'][$key] = '';
550
- }
551
- }
552
- $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'].'>';
553
- foreach ($param['w_choices'] as $key => $choice) {
554
- if ($param['w_choices_disabled'][$key] == "true") {
555
- $choice_value = '';
556
- }
557
- else {
558
- $choice_value = $choice;
559
- }
560
- $rep .= '<option id="'.$id.'_option'.$key.'" value="'.$choice_value.'" onselect="set_select(&quot;'.$id.'_option'.$key.'&quot;)" '.$param['w_choices_checked'][$key].'>'.$choice.'</option>';
561
- }
562
- $rep .= '</select></div></div>';
563
- break;
564
- }
565
- case 'type_captcha': {
566
- $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_digit', 'w_class');
567
- $temp = $params;
568
- foreach ($params_names as $params_name) {
569
- $temp = explode('*:*' . $params_name . '*:*', $temp);
570
- $param[$params_name] = $temp[0];
571
- $temp = $temp[1];
572
- }
573
- if ($temp) {
574
- $temp = explode('*:*w_attr_name*:*', $temp);
575
- $attrs = array_slice($temp, 0, count($temp) - 1);
576
- foreach ($attrs as $attr) {
577
- $param['attributes'] = $param['attributes'] . ' add_' . $attr;
578
- }
579
- }
580
- $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
581
- $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'].'></div></div></div></div></div>';
582
- break;
583
- }
584
- case 'type_recaptcha': {
585
- $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_public', 'w_private', 'w_theme', 'w_class');
586
- $temp = $params;
587
- foreach ($params_names as $params_name) {
588
- $temp = explode('*:*' . $params_name . '*:*', $temp);
589
- $param[$params_name] = $temp[0];
590
- $temp = $temp[1];
591
- }
592
- if ($temp) {
593
- $temp = explode('*:*w_attr_name*:*', $temp);
594
- $attrs = array_slice($temp, 0, count($temp) - 1);
595
- foreach ($attrs as $attr) {
596
- $param['attributes'] = $param['attributes'] . ' add_' . $attr;
597
- }
598
- }
599
- $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
600
- $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>';
601
- break;
602
- }
603
- case 'type_map': {
604
- $params_names = array('w_center_x', 'w_center_y', 'w_long', 'w_lat', 'w_zoom', 'w_width', 'w_height', 'w_info', 'w_class');
605
- $temp = $params;
606
- foreach ($params_names as $params_name) {
607
- $temp = explode('*:*' . $params_name . '*:*', $temp);
608
- $param[$params_name] = $temp[0];
609
- $temp = $temp[1];
610
- }
611
- if ($temp) {
612
- $temp = explode('*:*w_attr_name*:*', $temp);
613
- $attrs = array_slice($temp, 0, count($temp) - 1);
614
- foreach ($attrs as $attr) {
615
- $param['attributes'] = $param['attributes'] . ' add_' . $attr;
616
- }
617
- }
618
- $marker = '';
619
- $param['w_long'] = explode('***', $param['w_long']);
620
- $param['w_lat'] = explode('***', $param['w_lat']);
621
- $param['w_info'] = explode('***', $param['w_info']);
622
- foreach ($param['w_long'] as $key => $w_long) {
623
- $marker .= 'long'.$key.'="'.$w_long.'" lat'.$key.'="'.$param['w_lat'][$key].'" info'.$key.'="'.$param['w_info'][$key].'"';
624
- }
625
- $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>';
626
- break;
627
- }
628
- case 'type_submit_reset': {
629
- $params_names = array('w_submit_title', 'w_reset_title', 'w_class', 'w_act');
630
- $temp = $params;
631
- foreach ($params_names as $params_name) {
632
- $temp = explode('*:*' . $params_name . '*:*', $temp);
633
- $param[$params_name] = $temp[0];
634
- $temp = $temp[1];
635
- }
636
- if ($temp) {
637
- $temp = explode('*:*w_attr_name*:*', $temp);
638
- $attrs = array_slice($temp, 0, count($temp) - 1);
639
- foreach ($attrs as $attr) {
640
- $param['attributes'] = $param['attributes'] . ' add_' . $attr;
641
- }
642
- }
643
- $param['w_act'] = ($param['w_act'] == "false" ? 'style="display: none;"' : "");
644
- $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>';
645
- break;
646
- }
647
- }
648
- // Arrows.
649
- switch ($type) {
650
- case 'type_submit_reset': {
651
- $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" 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" 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" 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" 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" onclick="edit(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;edit&quot;)" onmouseout="chnage_icons_src(this,&quot;edit&quot;)"></div><div id="X_'.$id.'" valign="middle" align="right" class="element_toolbar" style="visibility:hidden;"><input type="checkbox" id="disable_field'.$id.'" title="Disable the field" onclick="remove_row(&quot;'.$id.'&quot;)" style="vertical-align:top; margin-left: 5px;"></div></div>';
652
- break;
653
- }
654
- case 'type_section_break': {
655
- $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" onclick="edit(&quot;'.$id.'&quot;)"><span id="'.$id.'_element_labelform_id_temp" style="display: none;">custom_'.$id.'</span></div><div id="X_'.$id.'" class="element_toolbar"><input type="checkbox" id="disable_field'.$id.'" title="Disable the field" onclick="remove_row(&quot;'.$id.'&quot;)" style="vertical-align: top; margin-left: 5px;"></div><div class="element_toolbar" style="color:red; vertical-align: top;">(section break)</div></div>';
656
- break;
657
- }
658
- case 'type_captcha':
659
- case 'type_recaptcha': {
660
- $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" 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" 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" 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" 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" onclick="edit(&quot;'.$id.'&quot;)"></div><div id="X_'.$id.'" valign="middle" align="right" class="element_toolbar"><input type="checkbox" id="disable_field'.$id.'" title="Disable the field" onclick="remove_row(&quot;'.$id.'&quot;)" style="vertical-align: top; margin-left: 5px;"></div></div>';
661
- break;
662
- }
663
- case 'type_editor': {
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" 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" 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" 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" 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" onclick="edit(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;edit&quot;)" onmouseout="chnage_icons_src(this,&quot;edit&quot;)"></div><div id="X_'.$id.'" valign="middle" align="right" class="element_toolbar"><input type="checkbox" id="disable_field'.$id.'" title="Disable the field" onclick="remove_row(&quot;'.$id.'&quot;)" style="vertical-align: top; margin-left: 5px;"></div><div class="element_toolbar" style="color:red; vertical-align:top;">(custom HTML)</div></div>';
665
- break;
666
- }
667
- default: {
668
- $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" 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" 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" 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" 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" onclick="edit(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;edit&quot;)" onmouseout="chnage_icons_src(this,&quot;edit&quot;)"></div><div id="X_'.$id.'" valign="middle" align="right" class="element_toolbar"><input type="checkbox" id="disable_field'.$id.'" title="Disable the field" onclick="remove_row(&quot;'.$id.'&quot;)" style="vertical-align: top; margin-left: 5px;"></div></div>';
669
- break;
670
- }
671
- }
672
- $form = str_replace('%' . $id . ' - ' . $labels[$ids_key] . '%', $rep, $form);
673
- $form = str_replace('%' . $id . ' -' . $labels[$ids_key] . '%', $rep, $form);
674
- }
675
- }
676
- $row->form_front = $form;
677
- }
678
- else {
679
- $row = new stdClass();
680
- $row->id = 0;
681
- $row->title = '';
682
- $row->mail = '';
683
- $row->form_front = '';
684
- $row->theme = 0;
685
- $row->submit_text = '';
686
- $row->url = '';
687
- $row->submit_text_type = 0;
688
- $row->script_mail = '';
689
- $row->script_mail_user = '';
690
- $row->counter = 0;
691
- $row->published = 1;
692
- $row->label_order = '';
693
- $row->label_order_current = '';
694
- $row->article_id = 0;
695
- $row->public_key = '';
696
- $row->private_key = '';
697
- $row->recaptcha_theme = '';
698
- $row->form_fields = '';
699
- $row->savedb = 1;
700
- $row->sendemail = 1;
701
- $row->requiredmark = '*';
702
- $row->mail_from = '';
703
- $row->mail_from_name = '';
704
- $row->reply_to = '';
705
- $row->send_to = '';
706
- $row->autogen_layout = 1;
707
- $row->custom_front = '';
708
- $row->mail_from_user = '';
709
- $row->mail_from_name_user = '';
710
- $row->reply_to_user = '';
711
- $row->disabled_fields = '';
712
- $row->mail_cc = '';
713
- $row->mail_cc_user = '';
714
- $row->mail_bcc = '';
715
- $row->mail_bcc_user = '';
716
- $row->mail_subject = '';
717
- $row->mail_subject_user = '';
718
- $row->mail_mode = 1;
719
- $row->mail_mode_user = 1;
720
- }
721
- return $row;
722
- }
723
-
724
- public function get_theme_rows_data() {
725
- global $wpdb;
726
- $rows = $wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "contactformmaker_themes ORDER BY title");
727
- return $rows;
728
- }
729
-
730
- public function page_nav() {
731
- global $wpdb;
732
- $where = ((isset($_POST['search_value']) && (esc_html($_POST['search_value']) != '')) ? 'WHERE title LIKE "%' . esc_html($_POST['search_value']) . '%"' : '');
733
- $query = "SELECT COUNT(*) FROM " . $wpdb->prefix . "contactformmaker " . $where;
734
- $total = $wpdb->get_var($query);
735
- $page_nav['total'] = $total;
736
- if (isset($_POST['page_number']) && $_POST['page_number']) {
737
- $limit = ((int) $_POST['page_number'] - 1) * 20;
738
- }
739
- else {
740
- $limit = 0;
741
- }
742
- $page_nav['limit'] = (int) ($limit / 20 + 1);
743
- return $page_nav;
744
- }
745
- ////////////////////////////////////////////////////////////////////////////////////////
746
- // Getters & Setters //
747
- ////////////////////////////////////////////////////////////////////////////////////////
748
- ////////////////////////////////////////////////////////////////////////////////////////
749
- // Private Methods //
750
- ////////////////////////////////////////////////////////////////////////////////////////
751
- ////////////////////////////////////////////////////////////////////////////////////////
752
- // Listeners //
753
- ////////////////////////////////////////////////////////////////////////////////////////
754
  }
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']) : 'asc');
25
+ $order_by = ' ORDER BY ' . ((isset($_POST['order_by']) && esc_html($_POST['order_by']) != '') ? esc_html($_POST['order_by']) : 'id') . ' ' . $asc_or_desc;
26
+ if (isset($_POST['page_number']) && $_POST['page_number']) {
27
+ $limit = ((int) $_POST['page_number'] - 1) * 20;
28
+ }
29
+ else {
30
+ $limit = 0;
31
+ }
32
+ $query = "SELECT * FROM " . $wpdb->prefix . "contactformmaker " . $where . $order_by . " LIMIT " . $limit . ",20";
33
+ $rows = $wpdb->get_results($query);
34
+ return $rows;
35
+ }
36
+
37
+ public function get_row_data($id) {
38
+ global $wpdb;
39
+ if ($id != 0) {
40
+ $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'contactformmaker WHERE id="%d"', $id));
41
+ $labels2 = array();
42
+ $label_id = array();
43
+ $label_order_original = array();
44
+ $label_type = array();
45
+ $label_all = explode('#****#', $row->label_order);
46
+ $label_all = array_slice($label_all, 0, count($label_all) - 1);
47
+ foreach ($label_all as $key => $label_each) {
48
+ $label_id_each = explode('#**id**#', $label_each);
49
+ array_push($label_id, $label_id_each[0]);
50
+ $label_oder_each = explode('#**label**#', $label_id_each[1]);
51
+ array_push($label_order_original, addslashes($label_oder_each[0]));
52
+ array_push($label_type, $label_oder_each[1]);
53
+ }
54
+ $labels2['id'] = '"' . implode('","', $label_id) . '"';
55
+ $labels2['label'] = '"' . implode('","', $label_order_original) . '"';
56
+ $labels2['type'] = '"' . implode('","', $label_type) . '"';
57
+ $ids = array();
58
+ $types = array();
59
+ $labels = array();
60
+ $paramss = array();
61
+ $fields = explode('*:*new_field*:*', $row->form_fields);
62
+ $fields = array_slice($fields, 0, count($fields) - 1);
63
+ foreach ($fields as $field) {
64
+ $temp = explode('*:*id*:*', $field);
65
+ array_push($ids, $temp[0]);
66
+ $temp = explode('*:*type*:*', $temp[1]);
67
+ array_push($types, $temp[0]);
68
+ $temp = explode('*:*w_field_label*:*', $temp[1]);
69
+ array_push($labels, $temp[0]);
70
+ array_push($paramss, $temp[1]);
71
+ }
72
+ $form = $row->form_front;
73
+ foreach ($ids as $ids_key => $id) {
74
+ $label = $labels[$ids_key];
75
+ $type = $types[$ids_key];
76
+ $params = $paramss[$ids_key];
77
+ if (strpos($form, '%' . $id . ' - ' . $label . '%') || strpos($form, '%' . $id . ' -' . $label . '%')) {
78
+ $rep = '';
79
+ $param = array();
80
+ $param['attributes'] = '';
81
+ switch ($type) {
82
+ case 'type_section_break': {
83
+ $params_names = array('w_editor');
84
+ $temp = $params;
85
+ foreach ($params_names as $params_name) {
86
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
87
+ $param[$params_name] = $temp[0];
88
+ $temp = $temp[1];
89
+ }
90
+ $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>';
91
+ break;
92
+ }
93
+ case 'type_editor': {
94
+ $params_names = array('w_editor');
95
+ $temp = $params;
96
+ foreach ($params_names as $params_name ) {
97
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
98
+ $param[$params_name] = $temp[0];
99
+ $temp = $temp[1];
100
+ }
101
+ $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>';
102
+ break;
103
+ }
104
+ case 'type_send_copy': {
105
+ $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_first_val', 'w_required');
106
+ $temp = $params;
107
+ foreach ($params_names as $params_name ) {
108
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
109
+ $param[$params_name] = $temp[0];
110
+ $temp = $temp[1];
111
+ }
112
+ if ($temp) {
113
+ $temp = explode('*:*w_attr_name*:*', $temp);
114
+ $attrs = array_slice($temp, 0, count($temp) - 1);
115
+ foreach ($attrs as $attr) {
116
+ $param['attributes'] = $param['attributes'] . ' add_' . $attr;
117
+ }
118
+ }
119
+ $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
120
+ $input_active = ($param['w_first_val'] == 'true' ? "checked='checked'" : "");
121
+ $required_sym = ($param['w_required'] == "yes" ? " *" : "");
122
+ $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'].'></div></div>';
123
+ break;
124
+ }
125
+ case 'type_text': {
126
+ $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_size', 'w_first_val', 'w_title', 'w_required', 'w_unique');
127
+ $temp = $params;
128
+ foreach ($params_names as $params_name) {
129
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
130
+ $param[$params_name] = $temp[0];
131
+ $temp = $temp[1];
132
+ }
133
+ if ($temp) {
134
+ $temp = explode('*:*w_attr_name*:*', $temp);
135
+ $attrs = array_slice($temp, 0, count($temp) - 1);
136
+ foreach ($attrs as $attr) {
137
+ $param['attributes'] = $param['attributes'] . ' add_' . $attr;
138
+ }
139
+ }
140
+ $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
141
+ $input_active = ($param['w_first_val'] == $param['w_title'] ? "input_deactive" : "input_active");
142
+ $required_sym = ($param['w_required'] == "yes" ? " *" : "");
143
+ $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_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'].'></div></div>';
144
+ break;
145
+ }
146
+ case 'type_number': {
147
+ $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_size', 'w_first_val', 'w_title', 'w_required', 'w_unique', 'w_class');
148
+ $temp = $params;
149
+ foreach ($params_names as $params_name) {
150
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
151
+ $param[$params_name] = $temp[0];
152
+ $temp = $temp[1];
153
+ }
154
+ if ($temp) {
155
+ $temp = explode('*:*w_attr_name*:*', $temp);
156
+ $attrs = array_slice($temp, 0, count($temp) - 1);
157
+ foreach ($attrs as $attr) {
158
+ $param['attributes'] = $param['attributes'] . ' add_' . $attr;
159
+ }
160
+ }
161
+ $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
162
+ $input_active = ($param['w_first_val'] == $param['w_title'] ? "input_deactive" : "input_active");
163
+ $required_sym = ($param['w_required'] == "yes" ? " *" : "");
164
+ $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'].'></div></div>';
165
+ break;
166
+ }
167
+ case 'type_password': {
168
+ $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_size', 'w_required', 'w_unique', 'w_class');
169
+ $temp = $params;
170
+ foreach ($params_names as $params_name) {
171
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
172
+ $param[$params_name] = $temp[0];
173
+ $temp = $temp[1];
174
+ }
175
+ if ($temp) {
176
+ $temp = explode('*:*w_attr_name*:*', $temp);
177
+ $attrs = array_slice($temp, 0, count($temp) - 1);
178
+ foreach ($attrs as $attr) {
179
+ $param['attributes'] = $param['attributes'] . ' add_' . $attr;
180
+ }
181
+ }
182
+ $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
183
+ $required_sym = ($param['w_required'] == "yes" ? " *" : "");
184
+ $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'].'></div></div>';
185
+ break;
186
+ }
187
+ case 'type_textarea': {
188
+ $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');
189
+ $temp = $params;
190
+ foreach ($params_names as $params_name) {
191
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
192
+ $param[$params_name] = $temp[0];
193
+ $temp = $temp[1];
194
+ }
195
+ if ($temp) {
196
+ $temp = explode('*:*w_attr_name*:*', $temp);
197
+ $attrs = array_slice($temp, 0, count($temp) - 1);
198
+ foreach ($attrs as $attr) {
199
+ $param['attributes'] = $param['attributes'] . ' add_' . $attr;
200
+ }
201
+ }
202
+ $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
203
+ $input_active = ($param['w_first_val'] == $param['w_title'] ? "input_deactive" : "input_active");
204
+ $required_sym = ($param['w_required'] == "yes" ? " *" : "");
205
+ $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'].'>'.$param['w_first_val'].'</textarea></div></div>';
206
+ break;
207
+ }
208
+ case 'type_phone': {
209
+ $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');
210
+ $temp = $params;
211
+ foreach ($params_names as $params_name) {
212
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
213
+ $param[$params_name] = $temp[0];
214
+ $temp = $temp[1];
215
+ }
216
+ if ($temp) {
217
+ $temp = explode('*:*w_attr_name*:*', $temp);
218
+ $attrs = array_slice($temp, 0, count($temp) - 1);
219
+ foreach ($attrs as $attr) {
220
+ $param['attributes'] = $param['attributes'].' add_'.$attr;
221
+ }
222
+ }
223
+ $w_first_val = explode('***', $param['w_first_val']);
224
+ $w_title = explode('***', $param['w_title']);
225
+ $w_mini_labels = explode('***', $param['w_mini_labels']);
226
+ $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
227
+ $input_active = ($param['w_first_val'] == $param['w_title'] ? "input_deactive" : "input_active");
228
+ $required_sym = ($param['w_required'] == "yes" ? " *" : "");
229
+ $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'].'><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'].'></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>';
230
+ break;
231
+ }
232
+ case 'type_name': {
233
+ $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');
234
+ $temp = $params;
235
+ foreach ($params_names as $params_name) {
236
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
237
+ $param[$params_name] = $temp[0];
238
+ $temp = $temp[1];
239
+ }
240
+ if ($temp) {
241
+ $temp = explode('*:*w_attr_name*:*', $temp);
242
+ $attrs = array_slice($temp, 0, count($temp) - 1);
243
+ foreach ($attrs as $attr) {
244
+ $param['attributes'] = $param['attributes'] . ' add_' . $attr;
245
+ }
246
+ }
247
+ $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
248
+ $required_sym = ($param['w_required'] == "yes" ? " *" : "");
249
+ $w_first_val = explode('***', $param['w_first_val']);
250
+ $w_title = explode('***', $param['w_title']);
251
+ $w_mini_labels = explode('***', $param['w_mini_labels']);
252
+ if ($param['w_name_format'] == 'normal') {
253
+ $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'].'></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'].'></div>';
254
+ $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>';
255
+ }
256
+ else {
257
+ $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>';
258
+ $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>';
259
+ }
260
+ $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>';
261
+ break;
262
+ }
263
+ case 'type_address': {
264
+ $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_size', 'w_mini_labels', 'w_disabled_fields', 'w_required', 'w_class');
265
+ $temp = $params;
266
+ foreach ($params_names as $params_name) {
267
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
268
+ $param[$params_name] = $temp[0];
269
+ $temp = $temp[1];
270
+ }
271
+ if ($temp) {
272
+ $temp = explode('*:*w_attr_name*:*', $temp);
273
+ $attrs = array_slice($temp, 0, count($temp) - 1);
274
+ foreach ($attrs as $attr) {
275
+ $param['attributes'] = $param['attributes'] . ' add_' . $attr;
276
+ }
277
+ }
278
+ $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
279
+ $required_sym = ($param['w_required'] == "yes" ? " *" : "");
280
+ $w_mini_labels = explode('***', $param['w_mini_labels']);
281
+ $w_disabled_fields = explode('***',$param['w_disabled_fields']);
282
+ $hidden_inputs = '';
283
+ $labels_for_id = array('street1', 'street2', 'city', 'state', 'postal', 'country');
284
+ foreach ($w_disabled_fields as $key => $w_disabled_field) {
285
+ if ($key != 6) {
286
+ if ($w_disabled_field == 'yes') {
287
+ $hidden_inputs .= '<input type="hidden" id="'.$id.'_'.$labels_for_id[$key].'form_id_temp" value="'.$w_mini_labels[$key].'" id_for_label="'.($id+$key).'">';
288
+ }
289
+ }
290
+ }
291
+ $address_fields = '';
292
+ $g = 0;
293
+ if ($w_disabled_fields[0] == 'no') {
294
+ $g += 2;
295
+ $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'].'><label class="mini_label" id="'.$id.'_mini_label_street1" style="display: block;">'.$w_mini_labels[0].'</label></span>';
296
+ }
297
+ if ($w_disabled_fields[1] == 'no') {
298
+ $g += 2;
299
+ $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'].'><label class="mini_label" style="display: block;" id="'.$id.'_mini_label_street2">'.$w_mini_labels[1].'</label></span>';
300
+ }
301
+ if ($w_disabled_fields[2] == 'no') {
302
+ $g++;
303
+ $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'].'><label class="mini_label" style="display: block;" id="'.$id.'_mini_label_city">'.$w_mini_labels[2].'</label></span>';
304
+ }
305
+ if ($w_disabled_fields[3] == 'no') {
306
+ $g++;
307
+ if ($w_disabled_fields[5] == 'yes' && $w_disabled_fields[6] == 'yes') {
308
+ $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'].'><option value=""></option><option value="Alabama">Alabama</option><option value="Alaska">Alaska</option><option value="Arizona">Arizona</option><option value="Arkansas">Arkansas</option><option value="California">California</option><option value="Colorado">Colorado</option><option value="Connecticut">Connecticut</option><option value="Delaware">Delaware</option><option value="Florida">Florida</option><option value="Georgia">Georgia</option><option value="Hawaii">Hawaii</option><option value="Idaho">Idaho</option><option value="Illinois">Illinois</option><option value="Indiana">Indiana</option><option value="Iowa">Iowa</option><option value="Kansas">Kansas</option><option value="Kentucky">Kentucky</option><option value="Louisiana">Louisiana</option><option value="Maine">Maine</option><option value="Maryland">Maryland</option><option value="Massachusetts">Massachusetts</option><option value="Michigan">Michigan</option><option value="Minnesota">Minnesota</option><option value="Mississippi">Mississippi</option><option value="Missouri">Missouri</option><option value="Montana">Montana</option><option value="Nebraska">Nebraska</option><option value="Nevada">Nevada</option><option value="New Hampshire">New Hampshire</option><option value="New Jersey">New Jersey</option><option value="New Mexico">New Mexico</option><option value="New York">New York</option><option value="North Carolina">North Carolina</option><option value="North Dakota">North Dakota</option><option value="Ohio">Ohio</option><option value="Oklahoma">Oklahoma</option><option value="Oregon">Oregon</option><option value="Pennsylvania">Pennsylvania</option><option value="Rhode Island">Rhode Island</option><option value="South Carolina">South Carolina</option><option value="South Dakota">South Dakota</option><option value="Tennessee">Tennessee</option><option value="Texas">Texas</option><option value="Utah">Utah</option><option value="Vermont">Vermont</option><option value="Virginia">Virginia</option><option value="Washington">Washington</option><option value="West Virginia">West Virginia</option><option value="Wisconsin">Wisconsin</option><option value="Wyoming">Wyoming</option></select><label class="mini_label" style="display: block;" id="'.$id.'_mini_label_state">'.$w_mini_labels[3].'</label></span>';
309
+ }
310
+ else {
311
+ $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'].'><label class="mini_label" style="display: block;" id="'.$id.'_mini_label_state">'.$w_mini_labels[3].'</label></span>';
312
+ }
313
+ }
314
+ if ($w_disabled_fields[4] == 'no') {
315
+ $g++;
316
+ $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'].'><label class="mini_label" style="display: block;" id="'.$id.'_mini_label_postal">'.$w_mini_labels[4].'</label></span>';
317
+ }
318
+ if ($w_disabled_fields[5] == 'no') {
319
+ $g++;
320
+ $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'].'><option value=""></option><option value="Afghanistan">Afghanistan</option><option value="Albania">Albania</option><option value="Algeria">Algeria</option><option value="Andorra">Andorra</option><option value="Angola">Angola</option><option value="Antigua and Barbuda">Antigua and Barbuda</option><option value="Argentina">Argentina</option><option value="Armenia">Armenia</option><option value="Australia">Australia</option><option value="Austria">Austria</option><option value="Azerbaijan">Azerbaijan</option><option value="Bahamas">Bahamas</option><option value="Bahrain">Bahrain</option><option value="Bangladesh">Bangladesh</option><option value="Barbados">Barbados</option><option value="Belarus">Belarus</option><option value="Belgium">Belgium</option><option value="Belize">Belize</option><option value="Benin">Benin</option><option value="Bhutan">Bhutan</option><option value="Bolivia">Bolivia</option><option value="Bosnia and Herzegovina">Bosnia and Herzegovina</option><option value="Botswana">Botswana</option><option value="Brazil">Brazil</option><option value="Brunei">Brunei</option><option value="Bulgaria">Bulgaria</option><option value="Burkina Faso">Burkina Faso</option><option value="Burundi">Burundi</option><option value="Cambodia">Cambodia</option><option value="Cameroon">Cameroon</option><option value="Canada">Canada</option><option value="Cape Verde">Cape Verde</option><option value="Central African Republic">Central African Republic</option><option value="Chad">Chad</option><option value="Chile">Chile</option><option value="China">China</option><option value="Colombi">Colombi</option><option value="Comoros">Comoros</option><option value="Congo (Brazzaville)">Congo (Brazzaville)</option><option value="Congo">Congo</option><option value="Costa Rica">Costa Rica</option><option value="Cote d\'Ivoire">Cote d\'Ivoire</option><option value="Croatia">Croatia</option><option value="Cuba">Cuba</option><option value="Cyprus">Cyprus</option><option value="Czech Republic">Czech Republic</option><option value="Denmark">Denmark</option><option value="Djibouti">Djibouti</option><option value="Dominica">Dominica</option><option value="Dominican Republic">Dominican Republic</option><option value="East Timor (Timor Timur)">East Timor (Timor Timur)</option><option value="Ecuador">Ecuador</option><option value="Egypt">Egypt</option><option value="El Salvador">El Salvador</option><option value="Equatorial Guinea">Equatorial Guinea</option><option value="Eritrea">Eritrea</option><option value="Estonia">Estonia</option><option value="Ethiopia">Ethiopia</option><option value="Fiji">Fiji</option><option value="Finland">Finland</option><option value="France">France</option><option value="Gabon">Gabon</option><option value="Gambia, The">Gambia, The</option><option value="Georgia">Georgia</option><option value="Germany">Germany</option><option value="Ghana">Ghana</option><option value="Greece">Greece</option><option value="Grenada">Grenada</option><option value="Guatemala">Guatemala</option><option value="Guinea">Guinea</option><option value="Guinea-Bissau">Guinea-Bissau</option><option value="Guyana">Guyana</option><option value="Haiti">Haiti</option><option value="Honduras">Honduras</option><option value="Hungary">Hungary</option><option value="Iceland">Iceland</option><option value="India">India</option><option value="Indonesia">Indonesia</option><option value="Iran">Iran</option><option value="Iraq">Iraq</option><option value="Ireland">Ireland</option><option value="Israel">Israel</option><option value="Italy">Italy</option><option value="Jamaica">Jamaica</option><option value="Japan">Japan</option><option value="Jordan">Jordan</option><option value="Kazakhstan">Kazakhstan</option><option value="Kenya">Kenya</option><option value="Kiribati">Kiribati</option><option value="Korea, North">Korea, North</option><option value="Korea, South">Korea, South</option><option value="Kuwait">Kuwait</option><option value="Kyrgyzstan">Kyrgyzstan</option><option value="Laos">Laos</option><option value="Latvia">Latvia</option><option value="Lebanon">Lebanon</option><option value="Lesotho">Lesotho</option><option value="Liberia">Liberia</option><option value="Libya">Libya</option><option value="Liechtenstein">Liechtenstein</option><option value="Lithuania">Lithuania</option><option value="Luxembourg">Luxembourg</option><option value="Macedonia">Macedonia</option><option value="Madagascar">Madagascar</option><option value="Malawi">Malawi</option><option value="Malaysia">Malaysia</option><option value="Maldives">Maldives</option><option value="Mali">Mali</option><option value="Malta">Malta</option><option value="Marshall Islands">Marshall Islands</option><option value="Mauritania">Mauritania</option><option value="Mauritius">Mauritius</option><option value="Mexico">Mexico</option><option value="Micronesia">Micronesia</option><option value="Moldova">Moldova</option><option value="Monaco">Monaco</option><option value="Mongolia">Mongolia</option><option value="Morocco">Morocco</option><option value="Mozambique">Mozambique</option><option value="Myanmar">Myanmar</option><option value="Namibia">Namibia</option><option value="Nauru">Nauru</option><option value="Nepa">Nepa</option><option value="Netherlands">Netherlands</option><option value="New Zealand">New Zealand</option><option value="Nicaragua">Nicaragua</option><option value="Niger">Niger</option><option value="Nigeria">Nigeria</option><option value="Norway">Norway</option><option value="Oman">Oman</option><option value="Pakistan">Pakistan</option><option value="Palau">Palau</option><option value="Panama">Panama</option><option value="Papua New Guinea">Papua New Guinea</option><option value="Paraguay">Paraguay</option><option value="Peru">Peru</option><option value="Philippines">Philippines</option><option value="Poland">Poland</option><option value="Portugal">Portugal</option><option value="Qatar">Qatar</option><option value="Romania">Romania</option><option value="Russia">Russia</option><option value="Rwanda">Rwanda</option><option value="Saint Kitts and Nevis">Saint Kitts and Nevis</option><option value="Saint Lucia">Saint Lucia</option><option value="Saint Vincent">Saint Vincent</option><option value="Samoa">Samoa</option><option value="San Marino">San Marino</option><option value="Sao Tome and Principe">Sao Tome and Principe</option><option value="Saudi Arabia">Saudi Arabia</option><option value="Senegal">Senegal</option><option value="Serbia and Montenegro">Serbia and Montenegro</option><option value="Seychelles">Seychelles</option><option value="Sierra Leone">Sierra Leone</option><option value="Singapore">Singapore</option><option value="Slovakia">Slovakia</option><option value="Slovenia">Slovenia</option><option value="Solomon Islands">Solomon Islands</option><option value="Somalia">Somalia</option><option value="South Africa">South Africa</option><option value="Spain">Spain</option><option value="Sri Lanka">Sri Lanka</option><option value="Sudan">Sudan</option><option value="Suriname">Suriname</option><option value="Swaziland">Swaziland</option><option value="Sweden">Sweden</option><option value="Switzerland">Switzerland</option><option value="Syria">Syria</option><option value="Taiwan">Taiwan</option><option value="Tajikistan">Tajikistan</option><option value="Tanzania">Tanzania</option><option value="Thailand">Thailand</option><option value="Togo">Togo</option><option value="Tonga">Tonga</option><option value="Trinidad and Tobago">Trinidad and Tobago</option><option value="Tunisia">Tunisia</option><option value="Turkey">Turkey</option><option value="Turkmenistan">Turkmenistan</option><option value="Tuvalu">Tuvalu</option><option value="Uganda">Uganda</option><option value="Ukraine">Ukraine</option><option value="United Arab Emirates">United Arab Emirates</option><option value="United Kingdom">United Kingdom</option><option value="United States">United States</option><option value="Uruguay">Uruguay</option><option value="Uzbekistan">Uzbekistan</option><option value="Vanuatu">Vanuatu</option><option value="Vatican City">Vatican City</option><option value="Venezuela">Venezuela</option><option value="Vietnam">Vietnam</option><option value="Yemen">Yemen</option><option value="Zambia">Zambia</option><option value="Zimbabwe">Zimbabwe</option></select><label class="mini_label" style="display: block;" id="'.$id.'_mini_label_country">'.$w_mini_labels[5].'</span>';
321
+ }
322
+ $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>';
323
+ break;
324
+ }
325
+ case 'type_submitter_mail': {
326
+ $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_size', 'w_first_val', 'w_title', 'w_required', 'w_unique', 'w_class');
327
+ $temp = $params;
328
+ foreach ($params_names as $params_name) {
329
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
330
+ $param[$params_name] = $temp[0];
331
+ $temp = $temp[1];
332
+ }
333
+ if ($temp) {
334
+ $temp = explode('*:*w_attr_name*:*', $temp);
335
+ $attrs = array_slice($temp, 0, count($temp) - 1);
336
+ foreach ($attrs as $attr) {
337
+ $param['attributes'] = $param['attributes'] . ' add_' . $attr;
338
+ }
339
+ }
340
+ $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
341
+ $input_active = ($param['w_first_val'] == $param['w_title'] ? "input_deactive" : "input_active");
342
+ $required_sym = ($param['w_required'] == "yes" ? " *" : "");
343
+ $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'].'></div></div>';
344
+ break;
345
+ }
346
+ case 'type_checkbox': {
347
+ $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');
348
+ $temp = $params;
349
+ foreach ($params_names as $params_name) {
350
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
351
+ $param[$params_name] = $temp[0];
352
+ $temp = $temp[1];
353
+ }
354
+ if ($temp) {
355
+ $temp = explode('*:*w_attr_name*:*', $temp);
356
+ $attrs = array_slice($temp, 0, count($temp) - 1);
357
+ foreach ($attrs as $attr) {
358
+ $param['attributes'] = $param['attributes'] . ' add_' . $attr;
359
+ }
360
+ }
361
+ $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
362
+ $required_sym = ($param['w_required'] == "yes" ? " *" : "");
363
+ $param['w_choices'] = explode('***', $param['w_choices']);
364
+ $param['w_choices_checked'] = explode('***',$param['w_choices_checked']);
365
+ foreach ($param['w_choices_checked'] as $key => $choices_checked) {
366
+ if ($choices_checked == 'true') {
367
+ $param['w_choices_checked'][$key] = 'checked="checked"';
368
+ }
369
+ else {
370
+ $param['w_choices_checked'][$key] = '';
371
+ }
372
+ }
373
+ $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"' : '').'>';
374
+ if ($param['w_flow'] == 'hor') {
375
+ $j = 0;
376
+ for ($i = 0; $i < (int) $param['w_rowcol']; $i++) {
377
+ $rep .= '<div id="'.$id.'_element_tr'.$i.'" style="display: table-row;">';
378
+ for ($l = 0; $l <= (int)(count($param['w_choices']) / $param['w_rowcol']); $l++) {
379
+ if ($j >= count($param['w_choices']) % $param['w_rowcol'] && $l == (int) (count($param['w_choices']) / $param['w_rowcol'])) {
380
+ continue;
381
+ }
382
+ if ($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == (int) $param['w_rowcol'] * $i + $l) {
383
+ $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'].'><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>';
384
+ }
385
+ else {
386
+ $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'].'><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>';
387
+ }
388
+ }
389
+ $j++;
390
+ $rep .= '</div>';
391
+ }
392
+ }
393
+ else {
394
+ for ($i = 0; $i < (int) (count($param['w_choices']) / $param['w_rowcol']); $i++) {
395
+ $rep .= '<div id="'.$id.'_element_tr'.$i.'" style="display: table-row;">';
396
+ if (count($param['w_choices']) > (int)$param['w_rowcol']) {
397
+ for ($l = 0; $l < $param['w_rowcol']; $l++) {
398
+ if ($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == (int) $param['w_rowcol'] * $i + $l) {
399
+ $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'].'><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>';
400
+ }
401
+ else {
402
+ $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'].'><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>';
403
+ }
404
+ }
405
+ }
406
+ else {
407
+ for ($l = 0; $l < count($param['w_choices']); $l++) {
408
+ if ($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == (int) $param['w_rowcol'] * $i + $l) {
409
+ $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'].'><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>';
410
+ }
411
+ else {
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).'" 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'].'><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
+ }
415
+ }
416
+ $rep .= '</div>';
417
+ }
418
+ if (count($param['w_choices']) % $param['w_rowcol'] != 0) {
419
+ $rep .= '<div id="'.$id.'_element_tr'.((int) (count($param['w_choices']) / (int)$param['w_rowcol'])).'" style="display: table-row;">';
420
+ for ($k = 0; $k < count($param['w_choices']) % $param['w_rowcol']; $k++) {
421
+ $l = count($param['w_choices']) - count($param['w_choices']) % $param['w_rowcol'] + $k;
422
+ if ($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == $l) {
423
+ $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'].'><label id="'.$id.'_label_element'.$l.'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.$l.'">'.$param['w_choices'][$l].'</label></div>';
424
+ }
425
+ else {
426
+ $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'].'><label id="'.$id.'_label_element'.$l.'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.$l.'">'.$param['w_choices'][$l].'</label></div>';
427
+ }
428
+ }
429
+ $rep .= '</div>';
430
+ }
431
+ }
432
+ $rep .= '</div></div></div></div>';
433
+ break;
434
+ }
435
+ case 'type_radio': {
436
+ $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');
437
+ $temp = $params;
438
+ foreach ($params_names as $params_name) {
439
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
440
+ $param[$params_name] = $temp[0];
441
+ $temp = $temp[1];
442
+ }
443
+ if ($temp) {
444
+ $temp = explode('*:*w_attr_name*:*', $temp);
445
+ $attrs = array_slice($temp, 0, count($temp) - 1);
446
+ foreach ($attrs as $attr) {
447
+ $param['attributes'] = $param['attributes'] . ' add_' . $attr;
448
+ }
449
+ }
450
+ $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
451
+ $required_sym = ($param['w_required'] == "yes" ? " *" : "");
452
+ $param['w_choices'] = explode('***', $param['w_choices']);
453
+ $param['w_choices_checked'] = explode('***', $param['w_choices_checked']);
454
+ foreach ($param['w_choices_checked'] as $key => $choices_checked) {
455
+ if ($choices_checked == 'true') {
456
+ $param['w_choices_checked'][$key] = 'checked="checked"';
457
+ }
458
+ else {
459
+ $param['w_choices_checked'][$key] = '';
460
+ }
461
+ }
462
+ $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"' : '').'>';
463
+ if ($param['w_flow'] == 'hor') {
464
+ $j = 0;
465
+ for ($i = 0; $i < (int) $param['w_rowcol']; $i++) {
466
+ $rep .= '<div id="'.$id.'_element_tr'.$i.'" style="display: table-row;">';
467
+ for($l=0; $l<=(int)(count($param['w_choices'])/$param['w_rowcol']); $l++) {
468
+ if ($j >= count($param['w_choices'])%$param['w_rowcol'] && $l == (int) (count($param['w_choices']) / $param['w_rowcol'])) {
469
+ continue;
470
+ }
471
+ if ($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == (int) $param['w_rowcol'] * $i + $l) {
472
+ $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'].'><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>';
473
+ }
474
+ else {
475
+ $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'].'><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>';
476
+ }
477
+ }
478
+ $j++;
479
+ $rep .= '</div>';
480
+ }
481
+ }
482
+ else {
483
+ for ($i = 0; $i < (int) (count($param['w_choices']) / $param['w_rowcol']); $i++) {
484
+ $rep .= '<div id="'.$id.'_element_tr'.$i.'" style="display: table-row;">';
485
+ if (count($param['w_choices']) > (int) $param['w_rowcol']) {
486
+ for ($l = 0; $l < $param['w_rowcol']; $l++) {
487
+ if ($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == (int) $param['w_rowcol'] * $i + $l) {
488
+ $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'].'><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>';
489
+ }
490
+ else {
491
+ $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'].'><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>';
492
+ }
493
+ }
494
+ }
495
+ else {
496
+ for ($l = 0; $l < count($param['w_choices']); $l++) {
497
+ if ($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == (int) $param['w_rowcol'] * $i + $l) {
498
+ $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'].'><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>';
499
+ }
500
+ else {
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" 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'].'><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
+ }
504
+ }
505
+ $rep .= '</div>';
506
+ }
507
+ if (count($param['w_choices']) % $param['w_rowcol'] != 0) {
508
+ $rep .= '<div id="'.$id.'_element_tr'.((int)(count($param['w_choices'])/(int)$param['w_rowcol'])).'" style="display: table-row;">';
509
+ for ($k = 0; $k < count($param['w_choices']) % $param['w_rowcol']; $k++) {
510
+ $l = count($param['w_choices']) - count($param['w_choices']) % $param['w_rowcol'] + $k;
511
+ if ($param['w_allow_other'] == "yes" && $param['w_allow_other_num'] == $l) {
512
+ $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'].'><label id="'.$id.'_label_element'.$l.'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.$l.'">'.$param['w_choices'][$l].'</label></div>';
513
+ }
514
+ else {
515
+ $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'].'><label id="'.$id.'_label_element'.$l.'" class="ch_rad_label" for="'.$id.'_elementform_id_temp'.$l.'">'.$param['w_choices'][$l].'</label></div>';
516
+ }
517
+ }
518
+ $rep .= '</div>';
519
+ }
520
+ }
521
+ $rep .= '</div></div></div></div>';
522
+ break;
523
+ }
524
+ case 'type_own_select': {
525
+ $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');
526
+ $temp = $params;
527
+ foreach ($params_names as $params_name) {
528
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
529
+ $param[$params_name] = $temp[0];
530
+ $temp = $temp[1];
531
+ }
532
+ if ($temp) {
533
+ $temp = explode('*:*w_attr_name*:*', $temp);
534
+ $attrs = array_slice($temp, 0, count($temp) - 1);
535
+ foreach ($attrs as $attr) {
536
+ $param['attributes'] = $param['attributes'] . ' add_' . $attr;
537
+ }
538
+ }
539
+ $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
540
+ $required_sym = ($param['w_required'] == "yes" ? " *" : "");
541
+ $param['w_choices'] = explode('***', $param['w_choices']);
542
+ $param['w_choices_checked'] = explode('***',$param['w_choices_checked']);
543
+ $param['w_choices_disabled'] = explode('***',$param['w_choices_disabled']);
544
+ foreach ($param['w_choices_checked'] as $key => $choices_checked) {
545
+ if ($choices_checked == 'true') {
546
+ $param['w_choices_checked'][$key] = 'selected="selected"';
547
+ }
548
+ else {
549
+ $param['w_choices_checked'][$key] = '';
550
+ }
551
+ }
552
+ $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'].'>';
553
+ foreach ($param['w_choices'] as $key => $choice) {
554
+ if ($param['w_choices_disabled'][$key] == "true") {
555
+ $choice_value = '';
556
+ }
557
+ else {
558
+ $choice_value = $choice;
559
+ }
560
+ $rep .= '<option id="'.$id.'_option'.$key.'" value="'.$choice_value.'" onselect="set_select(&quot;'.$id.'_option'.$key.'&quot;)" '.$param['w_choices_checked'][$key].'>'.$choice.'</option>';
561
+ }
562
+ $rep .= '</select></div></div>';
563
+ break;
564
+ }
565
+ case 'type_captcha': {
566
+ $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_digit', 'w_class');
567
+ $temp = $params;
568
+ foreach ($params_names as $params_name) {
569
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
570
+ $param[$params_name] = $temp[0];
571
+ $temp = $temp[1];
572
+ }
573
+ if ($temp) {
574
+ $temp = explode('*:*w_attr_name*:*', $temp);
575
+ $attrs = array_slice($temp, 0, count($temp) - 1);
576
+ foreach ($attrs as $attr) {
577
+ $param['attributes'] = $param['attributes'] . ' add_' . $attr;
578
+ }
579
+ }
580
+ $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
581
+ $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'].'></div></div></div></div></div>';
582
+ break;
583
+ }
584
+ case 'type_recaptcha': {
585
+ $params_names = array('w_field_label_size', 'w_field_label_pos', 'w_public', 'w_private', 'w_theme', 'w_class');
586
+ $temp = $params;
587
+ foreach ($params_names as $params_name) {
588
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
589
+ $param[$params_name] = $temp[0];
590
+ $temp = $temp[1];
591
+ }
592
+ if ($temp) {
593
+ $temp = explode('*:*w_attr_name*:*', $temp);
594
+ $attrs = array_slice($temp, 0, count($temp) - 1);
595
+ foreach ($attrs as $attr) {
596
+ $param['attributes'] = $param['attributes'] . ' add_' . $attr;
597
+ }
598
+ }
599
+ $param['w_field_label_pos'] = ($param['w_field_label_pos'] == "left" ? "table-cell" : "block");
600
+ $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>';
601
+ break;
602
+ }
603
+ case 'type_map': {
604
+ $params_names = array('w_center_x', 'w_center_y', 'w_long', 'w_lat', 'w_zoom', 'w_width', 'w_height', 'w_info', 'w_class');
605
+ $temp = $params;
606
+ foreach ($params_names as $params_name) {
607
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
608
+ $param[$params_name] = $temp[0];
609
+ $temp = $temp[1];
610
+ }
611
+ if ($temp) {
612
+ $temp = explode('*:*w_attr_name*:*', $temp);
613
+ $attrs = array_slice($temp, 0, count($temp) - 1);
614
+ foreach ($attrs as $attr) {
615
+ $param['attributes'] = $param['attributes'] . ' add_' . $attr;
616
+ }
617
+ }
618
+ $marker = '';
619
+ $param['w_long'] = explode('***', $param['w_long']);
620
+ $param['w_lat'] = explode('***', $param['w_lat']);
621
+ $param['w_info'] = explode('***', $param['w_info']);
622
+ foreach ($param['w_long'] as $key => $w_long) {
623
+ $marker .= 'long'.$key.'="'.$w_long.'" lat'.$key.'="'.$param['w_lat'][$key].'" info'.$key.'="'.$param['w_info'][$key].'"';
624
+ }
625
+ $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>';
626
+ break;
627
+ }
628
+ case 'type_submit_reset': {
629
+ $params_names = array('w_submit_title', 'w_reset_title', 'w_class', 'w_act');
630
+ $temp = $params;
631
+ foreach ($params_names as $params_name) {
632
+ $temp = explode('*:*' . $params_name . '*:*', $temp);
633
+ $param[$params_name] = $temp[0];
634
+ $temp = $temp[1];
635
+ }
636
+ if ($temp) {
637
+ $temp = explode('*:*w_attr_name*:*', $temp);
638
+ $attrs = array_slice($temp, 0, count($temp) - 1);
639
+ foreach ($attrs as $attr) {
640
+ $param['attributes'] = $param['attributes'] . ' add_' . $attr;
641
+ }
642
+ }
643
+ $param['w_act'] = ($param['w_act'] == "false" ? 'style="display: none;"' : "");
644
+ $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>';
645
+ break;
646
+ }
647
+ }
648
+ // Arrows.
649
+ switch ($type) {
650
+ case 'type_submit_reset': {
651
+ $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" 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" 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" 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" 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" onclick="edit(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;edit&quot;)" onmouseout="chnage_icons_src(this,&quot;edit&quot;)"></div><div id="X_'.$id.'" valign="middle" align="right" class="element_toolbar" style="visibility:hidden;"><input type="checkbox" id="disable_field'.$id.'" title="Disable the field" onclick="remove_row(&quot;'.$id.'&quot;)" style="vertical-align:top; margin-left: 5px;"></div></div>';
652
+ break;
653
+ }
654
+ case 'type_section_break': {
655
+ $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" onclick="edit(&quot;'.$id.'&quot;)"><span id="'.$id.'_element_labelform_id_temp" style="display: none;">custom_'.$id.'</span></div><div id="X_'.$id.'" class="element_toolbar"><input type="checkbox" id="disable_field'.$id.'" title="Disable the field" onclick="remove_row(&quot;'.$id.'&quot;)" style="vertical-align: top; margin-left: 5px;"></div><div class="element_toolbar" style="color:red; vertical-align: top;">(section break)</div></div>';
656
+ break;
657
+ }
658
+ case 'type_captcha':
659
+ case 'type_recaptcha': {
660
+ $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" 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" 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" 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" 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" onclick="edit(&quot;'.$id.'&quot;)"></div><div id="X_'.$id.'" valign="middle" align="right" class="element_toolbar"><input type="checkbox" id="disable_field'.$id.'" title="Disable the field" onclick="remove_row(&quot;'.$id.'&quot;)" style="vertical-align: top; margin-left: 5px;"></div></div>';
661
+ break;
662
+ }
663
+ case 'type_editor': {
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" 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" 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" 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" 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" onclick="edit(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;edit&quot;)" onmouseout="chnage_icons_src(this,&quot;edit&quot;)"></div><div id="X_'.$id.'" valign="middle" align="right" class="element_toolbar"><input type="checkbox" id="disable_field'.$id.'" title="Disable the field" onclick="remove_row(&quot;'.$id.'&quot;)" style="vertical-align: top; margin-left: 5px;"></div><div class="element_toolbar" style="color:red; vertical-align:top;">(custom HTML)</div></div>';
665
+ break;
666
+ }
667
+ default: {
668
+ $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" 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" 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" 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" 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" onclick="edit(&quot;'.$id.'&quot;)" onmouseover="chnage_icons_src(this,&quot;edit&quot;)" onmouseout="chnage_icons_src(this,&quot;edit&quot;)"></div><div id="X_'.$id.'" valign="middle" align="right" class="element_toolbar"><input type="checkbox" id="disable_field'.$id.'" title="Disable the field" onclick="remove_row(&quot;'.$id.'&quot;)" style="vertical-align: top; margin-left: 5px;"></div></div>';
669
+ break;
670
+ }
671
+ }
672
+ $form = str_replace('%' . $id . ' - ' . $labels[$ids_key] . '%', $rep, $form);
673
+ $form = str_replace('%' . $id . ' -' . $labels[$ids_key] . '%', $rep, $form);
674
+ }
675
+ }
676
+ $row->form_front = $form;
677
+ }
678
+ else {
679
+ $row = new stdClass();
680
+ $row->id = 0;
681
+ $row->title = '';
682
+ $row->mail = '';
683
+ $row->form_front = '';
684
+ $row->theme = 0;
685
+ $row->submit_text = '';
686
+ $row->url = '';
687
+ $row->submit_text_type = 0;
688
+ $row->script_mail = '';
689
+ $row->script_mail_user = '';
690
+ $row->counter = 0;
691
+ $row->published = 1;
692
+ $row->label_order = '';
693
+ $row->label_order_current = '';
694
+ $row->article_id = 0;
695
+ $row->public_key = '';
696
+ $row->private_key = '';
697
+ $row->recaptcha_theme = '';
698
+ $row->form_fields = '';
699
+ $row->savedb = 1;
700
+ $row->sendemail = 1;
701
+ $row->requiredmark = '*';
702
+ $row->mail_from = '';
703
+ $row->mail_from_name = '';
704
+ $row->reply_to = '';
705
+ $row->send_to = '';
706
+ $row->autogen_layout = 1;
707
+ $row->custom_front = '';
708
+ $row->mail_from_user = '';
709
+ $row->mail_from_name_user = '';
710
+ $row->reply_to_user = '';
711
+ $row->disabled_fields = '';
712
+ $row->mail_cc = '';
713
+ $row->mail_cc_user = '';
714
+ $row->mail_bcc = '';
715
+ $row->mail_bcc_user = '';
716
+ $row->mail_subject = '';
717
+ $row->mail_subject_user = '';
718
+ $row->mail_mode = 1;
719
+ $row->mail_mode_user = 1;
720
+ }
721
+ return $row;
722
+ }
723
+
724
+ public function get_theme_rows_data() {
725
+ global $wpdb;
726
+ $rows = $wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "contactformmaker_themes ORDER BY title");
727
+ return $rows;
728
+ }
729
+
730
+ public function page_nav() {
731
+ global $wpdb;
732
+ $where = ((isset($_POST['search_value']) && (esc_html($_POST['search_value']) != '')) ? 'WHERE title LIKE "%' . esc_html($_POST['search_value']) . '%"' : '');
733
+ $query = "SELECT COUNT(*) FROM " . $wpdb->prefix . "contactformmaker " . $where;
734
+ $total = $wpdb->get_var($query);
735
+ $page_nav['total'] = $total;
736
+ if (isset($_POST['page_number']) && $_POST['page_number']) {
737
+ $limit = ((int) $_POST['page_number'] - 1) * 20;
738
+ }
739
+ else {
740
+ $limit = 0;
741
+ }
742
+ $page_nav['limit'] = (int) ($limit / 20 + 1);
743
+ return $page_nav;
744
+ }
745
+ ////////////////////////////////////////////////////////////////////////////////////////
746
+ // Getters & Setters //
747
+ ////////////////////////////////////////////////////////////////////////////////////////
748
+ ////////////////////////////////////////////////////////////////////////////////////////
749
+ // Private Methods //
750
+ ////////////////////////////////////////////////////////////////////////////////////////
751
+ ////////////////////////////////////////////////////////////////////////////////////////
752
+ // Listeners //
753
+ ////////////////////////////////////////////////////////////////////////////////////////
754
  }
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,148 +1,148 @@
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 style="clear: both; float: left; width: 99%;">
36
- <div style="float: left; font-size: 14px; font-weight: bold;">
37
- This section allows you to block IPs.
38
- <a style="color: blue; text-decoration: none;" target="_blank" href="http://web-dorado.com/wordpress-contact-form-builder-guide-6.html">Read More in User Manual</a>
39
- </div>
40
- <div style="float: right; text-align: right;">
41
- <a style="text-decoration: none;" target="_blank" href="http://web-dorado.com/files/fromContactFormBuilder.php">
42
- <img width="215" border="0" alt="web-dorado.com" src="<?php echo WD_CFM_URL . '/images/wd_logo.png'; ?>" />
43
- </a>
44
- </div>
45
- </div>
46
- <form onkeypress="spider_doNothing(event)" class="wrap" id="blocked_ips" method="post" action="admin.php?page=blocked_ips_cfm" style="float: left; width: 99%;">
47
- <span class="block_icon"></span>
48
- <h2>Blocked IPs</h2>
49
- <div class="buttons_div">
50
- <input class="button-primary" type="submit" value="Save" onclick="spider_set_input_value('task', 'save_all');" />
51
- <input class="button-secondary" type="submit" value="Delete" onclick="if (confirm('Do you want to unblock selected IPs?')) {
52
- spider_set_input_value('task', 'delete_all');
53
- } else {
54
- return false;
55
- }" />
56
- </div>
57
- <div class="tablenav top">
58
- <?php
59
- WDW_CFM_Library::search('IP', $search_value, 'blocked_ips');
60
- WDW_CFM_Library::html_page_nav($page_nav['total'], $page_nav['limit'], 'blocked_ips');
61
- ?>
62
- </div>
63
- <table class="wp-list-table widefat fixed pages">
64
- <thead>
65
- <tr>
66
- <th class="manage-column column-cb check-column table_small_col"><input id="check_all" type="checkbox" style="margin: 0;" /></th>
67
- <th class="table_small_col <?php if ($order_by == 'id') {echo $order_class;} ?>">
68
- <a onclick="spider_set_input_value('task', '');
69
- spider_set_input_value('order_by', 'id');
70
- 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'); ?>');
71
- spider_form_submit(event, 'blocked_ips')" href="">
72
- <span>ID</span><span class="sorting-indicator"></span></th>
73
- </a>
74
- <th class="<?php if ($order_by == 'ip') {echo $order_class;} ?>">
75
- <a onclick="spider_set_input_value('task', '');
76
- spider_set_input_value('order_by', 'ip');
77
- 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'); ?>');
78
- spider_form_submit(event, 'blocked_ips')" href="">
79
- <span>IP</span><span class="sorting-indicator"></span>
80
- </a>
81
- </th>
82
- <th class="table_big_col">Edit</th>
83
- <th class="table_big_col">Delete</th>
84
- </tr>
85
- <tr id="tr">
86
- <th></th>
87
- <th></th>
88
- <th class="edit_input"><input type="text" class="input_th" id="ip" name="ip" onkeypress="return spider_check_isnum(event)"></th>
89
- <th class="table_big_col">
90
- <a class="add_tag_th button-primary button button-small" onclick="if (spider_check_required('ip', 'IP')) {return false;}
91
- spider_set_input_value('task', 'save');
92
- spider_set_input_value('current_id', '');
93
- spider_form_submit(event, 'blocked_ips')" href="">Add IP</a>
94
- </th>
95
- <th></th>
96
- </tr>
97
- </thead>
98
- <tbody id="tbody_arr">
99
- <?php
100
- if ($rows_data) {
101
- foreach ($rows_data as $row_data) {
102
- $alternate = (!isset($alternate) || $alternate == 'class="alternate"') ? '' : 'class="alternate"';
103
- ?>
104
- <tr id="tr_<?php echo $row_data->id; ?>" <?php echo $alternate; ?>>
105
- <td class="table_small_col check-column" id="td_check_<?php echo $row_data->id; ?>" >
106
- <input id="check_<?php echo $row_data->id; ?>" name="check_<?php echo $row_data->id; ?>" type="checkbox" />
107
- </td>
108
- <td class="table_small_col" id="td_id_<?php echo $row_data->id; ?>" ><?php echo $row_data->id; ?></td>
109
- <td id="td_ip_<?php echo $row_data->id; ?>" >
110
- <a class="pointer" id="ip<?php echo $row_data->id; ?>"
111
- onclick="spider_edit_ip(<?php echo $row_data->id; ?>)"
112
- title="Edit"><?php echo $row_data->ip; ?></a>
113
- </td>
114
- <td class="table_big_col" id="td_edit_<?php echo $row_data->id; ?>">
115
- <a onclick="spider_edit_ip(<?php echo $row_data->id; ?>)">Edit</a>
116
- </td>
117
- <td class="table_big_col" id="td_delete_<?php echo $row_data->id; ?>">
118
- <a onclick="spider_set_input_value('task', 'delete');
119
- spider_set_input_value('current_id', <?php echo $row_data->id; ?>);
120
- spider_form_submit(event, 'blocked_ips')" href="">Delete</a>
121
- </td>
122
- </tr>
123
- <?php
124
- $ids_string .= $row_data->id . ',';
125
- }
126
- }
127
- ?>
128
- </tbody>
129
- </table>
130
- <input id="task" name="task" type="hidden" value="" />
131
- <input id="current_id" name="current_id" type="hidden" value="" />
132
- <input id="ids_string" name="ids_string" type="hidden" value="<?php echo $ids_string; ?>" />
133
- <input id="asc_or_desc" name="asc_or_desc" type="hidden" value="<?php echo $asc_or_desc; ?>" />
134
- <input id="order_by" name="order_by" type="hidden" value="<?php echo $order_by; ?>" />
135
- </form>
136
- <?php
137
- }
138
-
139
- ////////////////////////////////////////////////////////////////////////////////////////
140
- // Getters & Setters //
141
- ////////////////////////////////////////////////////////////////////////////////////////
142
- ////////////////////////////////////////////////////////////////////////////////////////
143
- // Private Methods //
144
- ////////////////////////////////////////////////////////////////////////////////////////
145
- ////////////////////////////////////////////////////////////////////////////////////////
146
- // Listeners //
147
- ////////////////////////////////////////////////////////////////////////////////////////
148
  }
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 style="clear: both; float: left; width: 99%;">
36
+ <div style="float: left; font-size: 14px; font-weight: bold;">
37
+ This section allows you to block IPs.
38
+ <a style="color: blue; text-decoration: none;" target="_blank" href="http://web-dorado.com/wordpress-contact-form-builder-guide-6.html">Read More in User Manual</a>
39
+ </div>
40
+ <div style="float: right; text-align: right;">
41
+ <a style="text-decoration: none;" target="_blank" href="http://web-dorado.com/files/fromContactFormBuilder.php">
42
+ <img width="215" border="0" alt="web-dorado.com" src="<?php echo WD_CFM_URL . '/images/wd_logo.png'; ?>" />
43
+ </a>
44
+ </div>
45
+ </div>
46
+ <form onkeypress="spider_doNothing(event)" class="wrap" id="blocked_ips" method="post" action="admin.php?page=blocked_ips_cfm" style="float: left; width: 99%;">
47
+ <span class="block_icon"></span>
48
+ <h2>Blocked IPs</h2>
49
+ <div class="buttons_div">
50
+ <input class="button-primary" type="submit" value="Save" onclick="spider_set_input_value('task', 'save_all');" />
51
+ <input class="button-secondary" type="submit" value="Delete" onclick="if (confirm('Do you want to unblock selected IPs?')) {
52
+ spider_set_input_value('task', 'delete_all');
53
+ } else {
54
+ return false;
55
+ }" />
56
+ </div>
57
+ <div class="tablenav top">
58
+ <?php
59
+ WDW_CFM_Library::search('IP', $search_value, 'blocked_ips');
60
+ WDW_CFM_Library::html_page_nav($page_nav['total'], $page_nav['limit'], 'blocked_ips');
61
+ ?>
62
+ </div>
63
+ <table class="wp-list-table widefat fixed pages">
64
+ <thead>
65
+ <tr>
66
+ <th class="manage-column column-cb check-column table_small_col"><input id="check_all" type="checkbox" style="margin: 0;" /></th>
67
+ <th class="table_small_col <?php if ($order_by == 'id') {echo $order_class;} ?>">
68
+ <a onclick="spider_set_input_value('task', '');
69
+ spider_set_input_value('order_by', 'id');
70
+ 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'); ?>');
71
+ spider_form_submit(event, 'blocked_ips')" href="">
72
+ <span>ID</span><span class="sorting-indicator"></span></th>
73
+ </a>
74
+ <th class="<?php if ($order_by == 'ip') {echo $order_class;} ?>">
75
+ <a onclick="spider_set_input_value('task', '');
76
+ spider_set_input_value('order_by', 'ip');
77
+ 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'); ?>');
78
+ spider_form_submit(event, 'blocked_ips')" href="">
79
+ <span>IP</span><span class="sorting-indicator"></span>
80
+ </a>
81
+ </th>
82
+ <th class="table_big_col">Edit</th>
83
+ <th class="table_big_col">Delete</th>
84
+ </tr>
85
+ <tr id="tr">
86
+ <th></th>
87
+ <th></th>
88
+ <th class="edit_input"><input type="text" class="input_th" id="ip" name="ip" onkeypress="return spider_check_isnum(event)"></th>
89
+ <th class="table_big_col">
90
+ <a class="add_tag_th button-primary button button-small" onclick="if (spider_check_required('ip', 'IP')) {return false;}
91
+ spider_set_input_value('task', 'save');
92
+ spider_set_input_value('current_id', '');
93
+ spider_form_submit(event, 'blocked_ips')" href="">Add IP</a>
94
+ </th>
95
+ <th></th>
96
+ </tr>
97
+ </thead>
98
+ <tbody id="tbody_arr">
99
+ <?php
100
+ if ($rows_data) {
101
+ foreach ($rows_data as $row_data) {
102
+ $alternate = (!isset($alternate) || $alternate == 'class="alternate"') ? '' : 'class="alternate"';
103
+ ?>
104
+ <tr id="tr_<?php echo $row_data->id; ?>" <?php echo $alternate; ?>>
105
+ <td class="table_small_col check-column" id="td_check_<?php echo $row_data->id; ?>" >
106
+ <input id="check_<?php echo $row_data->id; ?>" name="check_<?php echo $row_data->id; ?>" type="checkbox" />
107
+ </td>
108
+ <td class="table_small_col" id="td_id_<?php echo $row_data->id; ?>" ><?php echo $row_data->id; ?></td>
109
+ <td id="td_ip_<?php echo $row_data->id; ?>" >
110
+ <a class="pointer" id="ip<?php echo $row_data->id; ?>"
111
+ onclick="spider_edit_ip(<?php echo $row_data->id; ?>)"
112
+ title="Edit"><?php echo $row_data->ip; ?></a>
113
+ </td>
114
+ <td class="table_big_col" id="td_edit_<?php echo $row_data->id; ?>">
115
+ <a onclick="spider_edit_ip(<?php echo $row_data->id; ?>)">Edit</a>
116
+ </td>
117
+ <td class="table_big_col" id="td_delete_<?php echo $row_data->id; ?>">
118
+ <a onclick="spider_set_input_value('task', 'delete');
119
+ spider_set_input_value('current_id', <?php echo $row_data->id; ?>);
120
+ spider_form_submit(event, 'blocked_ips')" href="">Delete</a>
121
+ </td>
122
+ </tr>
123
+ <?php
124
+ $ids_string .= $row_data->id . ',';
125
+ }
126
+ }
127
+ ?>
128
+ </tbody>
129
+ </table>
130
+ <input id="task" name="task" type="hidden" value="" />
131
+ <input id="current_id" name="current_id" type="hidden" value="" />
132
+ <input id="ids_string" name="ids_string" type="hidden" value="<?php echo $ids_string; ?>" />
133
+ <input id="asc_or_desc" name="asc_or_desc" type="hidden" value="<?php echo $asc_or_desc; ?>" />
134
+ <input id="order_by" name="order_by" type="hidden" value="<?php echo $order_by; ?>" />
135
+ </form>
136
+ <?php
137
+ }
138
+
139
+ ////////////////////////////////////////////////////////////////////////////////////////
140
+ // Getters & Setters //
141
+ ////////////////////////////////////////////////////////////////////////////////////////
142
+ ////////////////////////////////////////////////////////////////////////////////////////
143
+ // Private Methods //
144
+ ////////////////////////////////////////////////////////////////////////////////////////
145
+ ////////////////////////////////////////////////////////////////////////////////////////
146
+ // Listeners //
147
+ ////////////////////////////////////////////////////////////////////////////////////////
148
  }
admin/views/CFMViewCFMShortcode.php CHANGED
@@ -1,113 +1,113 @@
1
- <?php
2
-
3
- class CFMViewCFMShortcode {
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
- $rows = $this->model->get_form_data();
27
- ?>
28
- <html xmlns="http://www.w3.org/1999/xhtml">
29
- <head>
30
- <title>Contact Form Builder</title>
31
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
32
- <script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script>
33
- <script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/utils/mctabs.js"></script>
34
- <script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/utils/form_utils.js"></script>
35
-
36
- <?php
37
- wp_print_scripts('jquery');
38
- ?>
39
- <base target="_self">
40
- </head>
41
- <body id="link" onLoad="tinyMCEPopup.executeOnLoad('init();');document.body.style.display='';" dir="ltr" class="forceColors">
42
- <div class="tabs" role="tablist" tabindex="-1">
43
- <ul>
44
- <li id="display_tab" class="current" role="tab" tabindex="0">
45
- <span>
46
- <a href="javascript:mcTabs.displayTab('display_tab','display_panel');" onMouseDown="return false;" tabindex="-1">Contact Form Builder</a>
47
- </span>
48
- </li>
49
- </ul>
50
- </div>
51
- <style>
52
- .panel_wrapper {
53
- height: 170px !important;
54
- }
55
- </style>
56
- <div class="panel_wrapper">
57
- <div id="display_panel" class="panel current">
58
- <table>
59
- <tr>
60
- <td style="vertical-align: middle; text-align: left;">Select a Form</td>
61
- <td style="vertical-align: middle; text-align: left;">
62
- <select name="form_maker_id" id="form_maker_id" style="width: 230px; text-align: left;">
63
- <option value="- Select Form -" selected="selected">- Select a Form -</option>
64
- <?php
65
- foreach ($rows as $row) {
66
- ?>
67
- <option value="<?php echo $row->id; ?>"><?php echo $row->title; ?></option>
68
- <?php
69
- }
70
- ?>
71
- </select>
72
- </td>
73
- </tr>
74
- </table>
75
- </div>
76
- </div>
77
- <div class="mceActionPanel">
78
- <div style="float: left;">
79
- <input type="button" id="cancel" name="cancel" value="Cancel" onClick="tinyMCEPopup.close();"/>
80
- </div>
81
- <div style="float: right;">
82
- <input type="submit" id="insert" name="insert" value="Insert" onClick="form_maker_insert_shortcode();"/>
83
- </div>
84
- </div>
85
- <script type="text/javascript">
86
- function form_maker_insert_shortcode() {
87
- if (document.getElementById('form_maker_id').value == '- Select Form -') {
88
- tinyMCEPopup.close();
89
- }
90
- else {
91
- var tagtext;
92
- tagtext = '[Contact_Form_Builder id="' + document.getElementById('form_maker_id').value + '"]';
93
- window.tinyMCE.execCommand('mceInsertContent', false, tagtext);
94
- tinyMCEPopup.close();
95
- }
96
- }
97
- </script>
98
- </body>
99
- </html>
100
- <?php
101
- die();
102
- }
103
-
104
- ////////////////////////////////////////////////////////////////////////////////////////
105
- // Getters & Setters //
106
- ////////////////////////////////////////////////////////////////////////////////////////
107
- ////////////////////////////////////////////////////////////////////////////////////////
108
- // Private Methods //
109
- ////////////////////////////////////////////////////////////////////////////////////////
110
- ////////////////////////////////////////////////////////////////////////////////////////
111
- // Listeners //
112
- ////////////////////////////////////////////////////////////////////////////////////////
113
  }
1
+ <?php
2
+
3
+ class CFMViewCFMShortcode {
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
+ $rows = $this->model->get_form_data();
27
+ ?>
28
+ <html xmlns="http://www.w3.org/1999/xhtml">
29
+ <head>
30
+ <title>Contact Form Builder</title>
31
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
32
+ <script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script>
33
+ <script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/utils/mctabs.js"></script>
34
+ <script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/utils/form_utils.js"></script>
35
+
36
+ <?php
37
+ wp_print_scripts('jquery');
38
+ ?>
39
+ <base target="_self">
40
+ </head>
41
+ <body id="link" onLoad="tinyMCEPopup.executeOnLoad('init();');document.body.style.display='';" dir="ltr" class="forceColors">
42
+ <div class="tabs" role="tablist" tabindex="-1">
43
+ <ul>
44
+ <li id="display_tab" class="current" role="tab" tabindex="0">
45
+ <span>
46
+ <a href="javascript:mcTabs.displayTab('display_tab','display_panel');" onMouseDown="return false;" tabindex="-1">Contact Form Builder</a>
47
+ </span>
48
+ </li>
49
+ </ul>
50
+ </div>
51
+ <style>
52
+ .panel_wrapper {
53
+ height: 170px !important;
54
+ }
55
+ </style>
56
+ <div class="panel_wrapper">
57
+ <div id="display_panel" class="panel current">
58
+ <table>
59
+ <tr>
60
+ <td style="vertical-align: middle; text-align: left;">Select a Form</td>
61
+ <td style="vertical-align: middle; text-align: left;">
62
+ <select name="form_maker_id" id="form_maker_id" style="width: 230px; text-align: left;">
63
+ <option value="- Select Form -" selected="selected">- Select a Form -</option>
64
+ <?php
65
+ foreach ($rows as $row) {
66
+ ?>
67
+ <option value="<?php echo $row->id; ?>"><?php echo $row->title; ?></option>
68
+ <?php
69
+ }
70
+ ?>
71
+ </select>
72
+ </td>
73
+ </tr>
74
+ </table>
75
+ </div>
76
+ </div>
77
+ <div class="mceActionPanel">
78
+ <div style="float: left;">
79
+ <input type="button" id="cancel" name="cancel" value="Cancel" onClick="tinyMCEPopup.close();"/>
80
+ </div>
81
+ <div style="float: right;">
82
+ <input type="submit" id="insert" name="insert" value="Insert" onClick="form_maker_insert_shortcode();"/>
83
+ </div>
84
+ </div>
85
+ <script type="text/javascript">
86
+ function form_maker_insert_shortcode() {
87
+ if (document.getElementById('form_maker_id').value == '- Select Form -') {
88
+ tinyMCEPopup.close();
89
+ }
90
+ else {
91
+ var tagtext;
92
+ tagtext = '[Contact_Form_Builder id="' + document.getElementById('form_maker_id').value + '"]';
93
+ window.tinyMCE.execCommand('mceInsertContent', false, tagtext);
94
+ tinyMCEPopup.close();
95
+ }
96
+ }
97
+ </script>
98
+ </body>
99
+ </html>
100
+ <?php
101
+ die();
102
+ }
103
+
104
+ ////////////////////////////////////////////////////////////////////////////////////////
105
+ // Getters & Setters //
106
+ ////////////////////////////////////////////////////////////////////////////////////////
107
+ ////////////////////////////////////////////////////////////////////////////////////////
108
+ // Private Methods //
109
+ ////////////////////////////////////////////////////////////////////////////////////////
110
+ ////////////////////////////////////////////////////////////////////////////////////////
111
+ // Listeners //
112
+ ////////////////////////////////////////////////////////////////////////////////////////
113
  }
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/CFMViewLicensing_cfm.php CHANGED
@@ -1,153 +1,153 @@
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">Features of the Contact form builder</th>
32
- <th class="top notranslate" nowrap="nowrap" scope="col">Free</th>
33
- <th class="top notranslate" nowrap="nowrap" scope="col">Pro Version</th>
34
- </tr>
35
- </thead>
36
- <tbody>
37
- <tr class="alt">
38
- <td>Responsive design and layout</td>
39
- <td class="icon-replace yes">yes</td>
40
- <td class="icon-replace yes">yes</td>
41
- </tr>
42
- <tr>
43
- <td>Email Options</td>
44
- <td class="icon-replace yes">yes</td>
45
- <td class="icon-replace yes">yes</td>
46
- </tr>
47
- <tr class="alt">
48
- <td>Customizable labels and attributes</td>
49
- <td class="icon-replace yes">yes</td>
50
- <td class="icon-replace yes">yes</td>
51
- </tr>
52
- <tr>
53
- <td>Custom HTML field</td>
54
- <td class="icon-replace yes">yes</td>
55
- <td class="icon-replace yes">yes</td>
56
- </tr>
57
- <tr class="alt">
58
- <td>Possibility to send a copy of message to user</td>
59
- <td class="icon-replace yes">yes</td>
60
- <td class="icon-replace yes">yes</td>
61
- </tr>
62
- <tr>
63
- <td>Activation/deactivation of fields</td>
64
- <td class="icon-replace yes">yes</td>
65
- <td class="icon-replace yes">yes</td>
66
- </tr>
67
- <tr class="alt">
68
- <td>Customizable form layout</td>
69
- <td class="icon-replace yes">yes</td>
70
- <td class="icon-replace yes">yes</td>
71
- </tr>
72
- <tr>
73
- <td>Captcha/Repatcha protection</td>
74
- <td class="icon-replace yes">yes</td>
75
- <td class="icon-replace yes">yes</td>
76
- </tr>
77
- <tr class="alt">
78
- <td>Blocking IPs</td>
79
- <td class="icon-replace yes">yes</td>
80
- <td class="icon-replace yes">yes</td>
81
- </tr>
82
- <tr>
83
- <td>Sample Forms</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>Possibility to create new forms based on the samples</td>
89
- <td class="icon-replace yes">yes</td>
90
- <td class="icon-replace yes">yes</td>
91
- </tr>
92
- <tr>
93
- <td>Google Map Integration</td>
94
- <td class="icon-replace yes">yes</td>
95
- <td class="icon-replace yes">yes</td>
96
- </tr>
97
- <tr class="alt">
98
- <td>Themes</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>Possibility to add themes</td>
104
- <td class="icon-replace no">no</td>
105
- <td class="icon-replace yes">yes</td>
106
- </tr>
107
- <tr>
108
- <td>Submissions page</td>
109
- <td class="icon-replace no">no</td>
110
- <td class="icon-replace yes">yes</td>
111
- </tr>
112
- <tr class="alt">
113
- <td>Statistical Data</td>
114
- <td class="icon-replace no">no</td>
115
- <td class="icon-replace yes">yes</td>
116
- </tr>
117
- <tr>
118
- <td>Data Import in CSV/XML</td>
119
- <td class="icon-replace no">no</td>
120
- <td class="icon-replace yes">yes</td>
121
- </tr>
122
- </tbody>
123
- </table>
124
- </div>
125
- <div style="float: right; text-align: right;">
126
- <a style="text-decoration: none;" target="_blank" href="http://web-dorado.com/files/fromContactFormBuilder.php">
127
- <img width="215" border="0" alt="web-dorado.com" src="<?php echo WD_CFM_URL . '/images/wd_logo.png'; ?>" />
128
- </a>
129
- </div>
130
- <div style="float: left; clear: both;">
131
- <p>After the purchasing the commercial version follow this steps:</p>
132
- <ol>
133
- <li>Deactivate Contact Form Builder Plugin.</li>
134
- <li>Delete Contact Form Builder Plugin.</li>
135
- <li>Install the downloaded commercial version of the plugin.</li>
136
- </ol>
137
- <br/>
138
- <p>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.</p>
139
- <br/>
140
- <a href="http://web-dorado.com/files/donate_redirect.php" target="_blank"><img src="<?php echo WD_CFM_URL . '/images/btn_donateCC_LG.gif'; ?>" /></a>
141
- </div>
142
- <?php
143
- }
144
- ////////////////////////////////////////////////////////////////////////////////////////
145
- // Getters & Setters //
146
- ////////////////////////////////////////////////////////////////////////////////////////
147
- ////////////////////////////////////////////////////////////////////////////////////////
148
- // Private Methods //
149
- ////////////////////////////////////////////////////////////////////////////////////////
150
- ////////////////////////////////////////////////////////////////////////////////////////
151
- // Listeners //
152
- ////////////////////////////////////////////////////////////////////////////////////////
153
  }
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">Features of the Contact form builder</th>
32
+ <th class="top notranslate" nowrap="nowrap" scope="col">Free</th>
33
+ <th class="top notranslate" nowrap="nowrap" scope="col">Pro Version</th>
34
+ </tr>
35
+ </thead>
36
+ <tbody>
37
+ <tr class="alt">
38
+ <td>Responsive design and layout</td>
39
+ <td class="icon-replace yes">yes</td>
40
+ <td class="icon-replace yes">yes</td>
41
+ </tr>
42
+ <tr>
43
+ <td>Email Options</td>
44
+ <td class="icon-replace yes">yes</td>
45
+ <td class="icon-replace yes">yes</td>
46
+ </tr>
47
+ <tr class="alt">
48
+ <td>Customizable labels and attributes</td>
49
+ <td class="icon-replace yes">yes</td>
50
+ <td class="icon-replace yes">yes</td>
51
+ </tr>
52
+ <tr>
53
+ <td>Custom HTML field</td>
54
+ <td class="icon-replace yes">yes</td>
55
+ <td class="icon-replace yes">yes</td>
56
+ </tr>
57
+ <tr class="alt">
58
+ <td>Possibility to send a copy of message to user</td>
59
+ <td class="icon-replace yes">yes</td>
60
+ <td class="icon-replace yes">yes</td>
61
+ </tr>
62
+ <tr>
63
+ <td>Activation/deactivation of fields</td>
64
+ <td class="icon-replace yes">yes</td>
65
+ <td class="icon-replace yes">yes</td>
66
+ </tr>
67
+ <tr class="alt">
68
+ <td>Customizable form layout</td>
69
+ <td class="icon-replace yes">yes</td>
70
+ <td class="icon-replace yes">yes</td>
71
+ </tr>
72
+ <tr>
73
+ <td>Captcha/Repatcha protection</td>
74
+ <td class="icon-replace yes">yes</td>
75
+ <td class="icon-replace yes">yes</td>
76
+ </tr>
77
+ <tr class="alt">
78
+ <td>Blocking IPs</td>
79
+ <td class="icon-replace yes">yes</td>
80
+ <td class="icon-replace yes">yes</td>
81
+ </tr>
82
+ <tr>
83
+ <td>Sample Forms</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>Possibility to create new forms based on the samples</td>
89
+ <td class="icon-replace yes">yes</td>
90
+ <td class="icon-replace yes">yes</td>
91
+ </tr>
92
+ <tr>
93
+ <td>Google Map Integration</td>
94
+ <td class="icon-replace yes">yes</td>
95
+ <td class="icon-replace yes">yes</td>
96
+ </tr>
97
+ <tr class="alt">
98
+ <td>Themes</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>Possibility to add themes</td>
104
+ <td class="icon-replace no">no</td>
105
+ <td class="icon-replace yes">yes</td>
106
+ </tr>
107
+ <tr>
108
+ <td>Submissions page</td>
109
+ <td class="icon-replace no">no</td>
110
+ <td class="icon-replace yes">yes</td>
111
+ </tr>
112
+ <tr class="alt">
113
+ <td>Statistical Data</td>
114
+ <td class="icon-replace no">no</td>
115
+ <td class="icon-replace yes">yes</td>
116
+ </tr>
117
+ <tr>
118
+ <td>Data Import in CSV/XML</td>
119
+ <td class="icon-replace no">no</td>
120
+ <td class="icon-replace yes">yes</td>
121
+ </tr>
122
+ </tbody>
123
+ </table>
124
+ </div>
125
+ <div style="float: right; text-align: right;">
126
+ <a style="text-decoration: none;" target="_blank" href="http://web-dorado.com/files/fromContactFormBuilder.php">
127
+ <img width="215" border="0" alt="web-dorado.com" src="<?php echo WD_CFM_URL . '/images/wd_logo.png'; ?>" />
128
+ </a>
129
+ </div>
130
+ <div style="float: left; clear: both;">
131
+ <p>After the purchasing the commercial version follow this steps:</p>
132
+ <ol>
133
+ <li>Deactivate Contact Form Builder Plugin.</li>
134
+ <li>Delete Contact Form Builder Plugin.</li>
135
+ <li>Install the downloaded commercial version of the plugin.</li>
136
+ </ol>
137
+ <br/>
138
+ <p>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.</p>
139
+ <br/>
140
+ <a href="http://web-dorado.com/files/donate_redirect.php" target="_blank"><img src="<?php echo WD_CFM_URL . '/images/btn_donateCC_LG.gif'; ?>" /></a>
141
+ </div>
142
+ <?php
143
+ }
144
+ ////////////////////////////////////////////////////////////////////////////////////////
145
+ // Getters & Setters //
146
+ ////////////////////////////////////////////////////////////////////////////////////////
147
+ ////////////////////////////////////////////////////////////////////////////////////////
148
+ // Private Methods //
149
+ ////////////////////////////////////////////////////////////////////////////////////////
150
+ ////////////////////////////////////////////////////////////////////////////////////////
151
+ // Listeners //
152
+ ////////////////////////////////////////////////////////////////////////////////////////
153
  }
admin/views/CFMViewManage_cfm.php CHANGED
@@ -1,1524 +1,1524 @@
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 style="clear: both; float: left; width: 99%;">
36
- <div style="float: left; font-size: 14px; font-weight: bold;">
37
- This section allows you to edit forms.
38
- <a style="color: blue; text-decoration: none;" target="_blank" href="http://web-dorado.com/wordpress-contact-form-builder-guide-2.html">Read More in User Manual</a>
39
- <p>There is no possibility of adding new form fields, whereas you can edit, enable/disable the current fields included in each form.</p>
40
- </div>
41
- <div style="float: right; text-align: right;">
42
- <a style="text-decoration: none;" target="_blank" href="http://web-dorado.com/files/fromContactFormBuilder.php">
43
- <img width="215" border="0" alt="web-dorado.com" src="<?php echo WD_CFM_URL . '/images/wd_logo.png'; ?>" />
44
- </a>
45
- </div>
46
- </div>
47
- <form onkeypress="spider_doNothing(event)" class="wrap" id="manage_form" method="post" action="admin.php?page=manage_cfm" style="float: left; width: 99%;">
48
- <span class="form_maker_icon"></span>
49
- <h2>Contact Form Builder</h2>
50
- <div class="tablenav top">
51
- <?php
52
- WDW_CFM_Library::search('Title', $search_value, 'manage_form');
53
- WDW_CFM_Library::html_page_nav($page_nav['total'], $page_nav['limit'], 'manage_form');
54
- ?>
55
- </div>
56
- <table class="wp-list-table widefat fixed pages">
57
- <thead>
58
- <th class="manage-column column-cb check-column table_small_col"><input id="check_all" type="checkbox" style="margin:0;"/></th>
59
- <th class="table_small_col <?php if ($order_by == 'id') { echo $order_class; } ?>">
60
- <a onclick="spider_set_input_value('task', '');
61
- spider_set_input_value('order_by', 'id');
62
- 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'); ?>');
63
- spider_form_submit(event, 'manage_form')" href="">
64
- <span>ID</span><span class="sorting-indicator"></span></a>
65
- </th>
66
- <th class="<?php if ($order_by == 'title') { echo $order_class; } ?>">
67
- <a onclick="spider_set_input_value('task', '');
68
- spider_set_input_value('order_by', 'title');
69
- 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'); ?>');
70
- spider_form_submit(event, 'manage_form')" href="">
71
- <span>Title</span><span class="sorting-indicator"></span></a>
72
- </th>
73
- <th class="<?php if ($order_by == 'mail') { echo $order_class; } ?>">
74
- <a onclick="spider_set_input_value('task', '');
75
- spider_set_input_value('order_by', 'mail');
76
- 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'); ?>');
77
- spider_form_submit(event, 'manage_form')" href="">
78
- <span>Email to send submissions to</span><span class="sorting-indicator"></span></a>
79
- </th>
80
- <th class="table_xxl_col">Shortcode</th>
81
- <th class="table_big_col">Preview</th>
82
- <th class="table_big_col">Edit</th>
83
- <th class="table_big_col"><a title="Delete selected items" href="" onclick="if (confirm('Do you want to delete selected items?')) {
84
- spider_set_input_value('task', 'delete_all');
85
- spider_form_submit(event, 'manage_form');
86
- } else {
87
- return false;
88
- }">Delete</a></th>
89
- </thead>
90
- <tbody id="tbody_arr">
91
- <?php
92
- if ($rows_data) {
93
- foreach ($rows_data as $row_data) {
94
- $alternate = (!isset($alternate) || $alternate == 'class="alternate"') ? '' : 'class="alternate"';
95
- $old = '';
96
- if (isset($row_data->form) && ($row_data->form != '')) {
97
- $old = '_old';
98
- }
99
- ?>
100
- <tr id="tr_<?php echo $row_data->id; ?>" <?php echo $alternate; ?>>
101
- <td class="table_small_col check-column">
102
- <input id="check_<?php echo $row_data->id; ?>" name="check_<?php echo $row_data->id; ?>" type="checkbox"/>
103
- </td>
104
- <td class="table_small_col"><?php echo $row_data->id; ?></td>
105
- <td>
106
- <a onclick="spider_set_input_value('task', 'edit<?php echo $old; ?>');
107
- spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
108
- spider_form_submit(event, 'manage_form')" href="" title="Edit"><?php echo $row_data->title; ?></a>
109
- </td>
110
- <td><?php echo $row_data->mail; ?></td>
111
- <td class="table_xxl_col" style="padding-left: 0; padding-right: 0;">
112
- <input type="text" value='[Contact_Form_Builder id="<?php echo $row_data->id; ?>"]' onclick="spider_select_value(this)" size="29" readonly="readonly" style="padding-left: 1px; padding-right: 1px;"/>
113
- </td>
114
- <td class="table_big_col">
115
- <a href="<?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')); ?>" class="thickbox thickbox-preview" title="Form Preview" onclick="return false;">
116
- Preview
117
- </a>
118
- </td>
119
- <td class="table_big_col">
120
- <a onclick="spider_set_input_value('task', 'edit<?php echo $old; ?>');
121
- spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
122
- spider_form_submit(event, 'manage_form')" href="">Edit</a>
123
- </td>
124
- <td class="table_big_col">
125
- <a onclick="spider_set_input_value('task', 'delete');
126
- spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
127
- spider_form_submit(event, 'manage_form')" href="">Delete</a>
128
- </td>
129
- </tr>
130
- <?php
131
- $ids_string .= $row_data->id . ',';
132
- }
133
- }
134
- ?>
135
- </tbody>
136
- </table>
137
- <input id="task" name="task" type="hidden" value=""/>
138
- <input id="current_id" name="current_id" type="hidden" value=""/>
139
- <input id="ids_string" name="ids_string" type="hidden" value="<?php echo $ids_string; ?>"/>
140
- <input id="asc_or_desc" name="asc_or_desc" type="hidden" value="asc"/>
141
- <input id="order_by" name="order_by" type="hidden" value="<?php echo $order_by; ?>"/>
142
- </form>
143
- <?php
144
- }
145
-
146
- public function edit($id) {
147
- $row = $this->model->get_row_data($id);
148
- $labels = array();
149
- $label_id = array();
150
- $label_order_original = array();
151
- $label_type = array();
152
- $label_all = explode('#****#', $row->label_order);
153
- $label_all = array_slice($label_all, 0, count($label_all) - 1);
154
- foreach ($label_all as $key => $label_each) {
155
- $label_id_each = explode('#**id**#', $label_each);
156
- array_push($label_id, $label_id_each[0]);
157
- $label_oder_each = explode('#**label**#', $label_id_each[1]);
158
- array_push($label_order_original, addslashes($label_oder_each[0]));
159
- array_push($label_type, $label_oder_each[1]);
160
- }
161
- $labels['id'] = '"' . implode('","', $label_id) . '"';
162
- $labels['label'] = '"' . implode('","', $label_order_original) . '"';
163
- $labels['type'] = '"' . implode('","', $label_type) . '"';
164
- $page_title = (($id != 0) ? 'Edit form ' . $row->title : 'Create new form');
165
- ?>
166
- <script type="text/javascript">
167
- var contact_form_maker_plugin_url = "<?php echo WD_CFM_URL; ?>";
168
- </script>
169
- <script type="text/javascript">
170
- form_view = 1;
171
- form_view_count = 1;
172
- form_view_max = 1;
173
- function submitbutton() {
174
- <?php
175
- if ($id) {
176
- ?>
177
- if (!document.getElementById('araqel') || (document.getElementById('araqel').value == '0')) {
178
- alert('Please wait while page loading.');
179
- return false;
180
- }
181
- <?php
182
- }
183
- ?>
184
- tox = '';
185
- form_fields = '';
186
- disabled_ids = '';
187
- l_id_array = [<?php echo $labels['id']?>];
188
- l_label_array = [<?php echo $labels['label']?>];
189
- l_type_array = [<?php echo $labels['type']?>];
190
- l_id_removed = [];
191
- document.getElementById('take').style.display = "none";
192
- document.getElementById('saving').style.display = "block";
193
- remove_whitespace(document.getElementById('take'));
194
- for (x = 0; x < l_id_array.length; x++) {
195
- l_id_removed[l_id_array[x]] = true;
196
- }
197
- if (document.getElementById('form_id_tempform_view1')) {
198
- wdform_page = document.getElementById('form_id_tempform_view1');
199
- remove_whitespace(wdform_page);
200
- n = wdform_page.childNodes.length - 2;
201
- for (q = 0; q <= n; q++) {
202
- if (!wdform_page.childNodes[q].getAttribute("wdid")) {
203
- wdform_section = wdform_page.childNodes[q];
204
- for (x = 0; x < wdform_section.childNodes.length; x++) {
205
- wdform_column = wdform_section.childNodes[x];
206
- if (wdform_column.firstChild) {
207
- for (y=0; y < wdform_column.childNodes.length; y++) {
208
- is_in_old = false;
209
- wdform_row = wdform_column.childNodes[y];
210
- if (wdform_row.nodeType == 3) {
211
- continue;
212
- }
213
- wdid = wdform_row.getAttribute("wdid");
214
- if (!wdid) {
215
- continue;
216
- }
217
- l_id = wdid;
218
- l_label = document.getElementById(wdid + '_element_labelform_id_temp').innerHTML;
219
- l_label = l_label.replace(/(\r\n|\n|\r)/gm," ");
220
- wdtype = wdform_row.firstChild.getAttribute('type');
221
- if (wdform_row.getAttribute("disabled")) {
222
- if (wdtype != "type_address") {
223
- disabled_ids += wdid + ',';
224
- }
225
- else {
226
- disabled_ids += wdid + ',' + (parseInt(wdid)+1) + ','+(parseInt(wdid)+2)+ ',' +(parseInt(wdid)+3)+ ',' +(parseInt(wdid)+4)+ ','+(parseInt(wdid)+5) + ',';
227
- }
228
- }
229
- for (z = 0; z < l_id_array.length; z++) {
230
- if (l_id_array[z] == wdid) {
231
- if (l_type_array[z] == "type_address") {
232
- if (document.getElementById(l_id + "_mini_label_street1")) {
233
- l_id_removed[l_id_array[z]] = false;
234
- }
235
- if (document.getElementById(l_id + "_mini_label_street2")) {
236
- l_id_removed[parseInt(l_id_array[z]) + 1] = false;
237
- }
238
- if (document.getElementById(l_id + "_mini_label_city")) {
239
- l_id_removed[parseInt(l_id_array[z]) + 2] = false;
240
- }
241
- if (document.getElementById(l_id + "_mini_label_state")) {
242
- l_id_removed[parseInt(l_id_array[z]) + 3] = false;
243
- }
244
- if (document.getElementById(l_id+"_mini_label_postal")) {
245
- l_id_removed[parseInt(l_id_array[z]) + 4] = false;
246
- }
247
- if (document.getElementById(l_id+"_mini_label_country")) {
248
- l_id_removed[parseInt(l_id_array[z]) + 5] = false;
249
- }
250
- z = z + 5;
251
- }
252
- else {
253
- l_id_removed[l_id] = false;
254
- }
255
- }
256
- }
257
- if (wdtype == "type_address") {
258
- addr_id = parseInt(wdid);
259
- id_for_country = addr_id;
260
- if (document.getElementById(id_for_country + "_mini_label_street1"))
261
- tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_street1").innerHTML + '#**label**#type_address#****#';
262
- addr_id++;
263
- if (document.getElementById(id_for_country + "_mini_label_street2"))
264
- tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_street2").innerHTML + '#**label**#type_address#****#';
265
- addr_id++;
266
- if (document.getElementById(id_for_country+"_mini_label_city"))
267
- tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_city").innerHTML + '#**label**#type_address#****#';
268
- addr_id++;
269
- if (document.getElementById(id_for_country + "_mini_label_state"))
270
- tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_state").innerHTML + '#**label**#type_address#****#';
271
- addr_id++;
272
- if (document.getElementById(id_for_country + "_mini_label_postal"))
273
- tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_postal").innerHTML + '#**label**#type_address#****#';
274
- addr_id++;
275
- if (document.getElementById(id_for_country+"_mini_label_country")) {
276
- tox=tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_country").innerHTML + '#**label**#type_address#****#';
277
- }
278
- }
279
- else {
280
- tox = tox + wdid + '#**id**#' + l_label + '#**label**#' + wdtype + '#****#';
281
- }
282
- id = wdid;
283
- form_fields += wdid + "*:*id*:*";
284
- form_fields += wdtype + "*:*type*:*";
285
- w_choices = new Array();
286
- w_choices_checked = new Array();
287
- w_choices_disabled = new Array();
288
- w_allow_other_num = 0;
289
- w_property = new Array();
290
- w_property_type = new Array();
291
- w_property_values = new Array();
292
- w_choices_price = new Array();
293
- if (document.getElementById(id+'_element_labelform_id_temp').innerHTML) {
294
- w_field_label = document.getElementById(id + '_element_labelform_id_temp').innerHTML.replace(/(\r\n|\n|\r)/gm," ");
295
- }
296
- else {
297
- w_field_label = " ";
298
- }
299
- if (document.getElementById(id + '_label_sectionform_id_temp')) {
300
- if (document.getElementById(id + '_label_sectionform_id_temp').style.display == "block") {
301
- w_field_label_pos = "top";
302
- }
303
- else {
304
- w_field_label_pos = "left";
305
- }
306
- }
307
- if (document.getElementById(id + "_elementform_id_temp")) {
308
- s = document.getElementById(id + "_elementform_id_temp").style.width;
309
- w_size=s.substring(0,s.length - 2);
310
- }
311
- if (document.getElementById(id + "_label_sectionform_id_temp")) {
312
- s = document.getElementById(id + "_label_sectionform_id_temp").style.width;
313
- w_field_label_size = s.substring(0, s.length - 2);
314
- }
315
- if (document.getElementById(id + "_requiredform_id_temp")) {
316
- w_required = document.getElementById(id + "_requiredform_id_temp").value;
317
- }
318
- if (document.getElementById(id + "_uniqueform_id_temp")) {
319
- w_unique = document.getElementById(id + "_uniqueform_id_temp").value;
320
- }
321
- if (document.getElementById(id + '_label_sectionform_id_temp')) {
322
- w_class = document.getElementById(id + '_label_sectionform_id_temp').getAttribute("class");
323
- if (!w_class) {
324
- w_class = "";
325
- }
326
- }
327
- gen_form_fields();
328
- wdform_row.innerHTML = "%" + id + " - " + l_label + "%";
329
- }
330
- }
331
- }
332
- }
333
- else {
334
- id = wdform_page.childNodes[q].getAttribute("wdid");
335
- if (wdform_page.childNodes[q].getAttribute("disabled")) {
336
- disabled_ids += id + ',';
337
- }
338
- w_editor = document.getElementById(id + "_element_sectionform_id_temp").innerHTML;
339
- form_fields += id + "*:*id*:*";
340
- form_fields += "type_section_break" + "*:*type*:*";
341
- form_fields += "custom_" + id + "*:*w_field_label*:*";
342
- form_fields += w_editor + "*:*w_editor*:*";
343
- form_fields += "*:*new_field*:*";
344
- wdform_page.childNodes[q].innerHTML = "%" + id + " - " + "custom_" + id + "%";
345
- }
346
- }
347
- }
348
- document.getElementById('disabled_fields').value = disabled_ids;
349
- document.getElementById('label_order_current').value = tox;
350
- for (x = 0; x < l_id_array.length; x++) {
351
- if (l_id_removed[l_id_array[x]]) {
352
- tox = tox + l_id_array[x] + '#**id**#' + l_label_array[x] + '#**label**#' + l_type_array[x] + '#****#';
353
- }
354
- }
355
- document.getElementById('label_order').value = tox;
356
- document.getElementById('form_fields').value = form_fields;
357
- refresh_();
358
- return true;
359
- }
360
-
361
- gen = <?php echo (($id != 0) ? $row->counter : 1); ?>;
362
-
363
- function enable() {
364
- if (document.getElementById('formMakerDiv').style.display == 'block') {
365
- jQuery('#formMakerDiv').slideToggle(200);}else{jQuery('#formMakerDiv').slideToggle(400);
366
- }
367
- if (document.getElementById('formMakerDiv').offsetWidth) {
368
- document.getElementById('formMakerDiv1').style.width = (document.getElementById('formMakerDiv').offsetWidth - 60) + 'px';
369
- }
370
- if (document.getElementById('formMakerDiv1').style.display == 'block') {
371
- jQuery('#formMakerDiv1').slideToggle(200);
372
- }
373
- else {
374
- jQuery('#formMakerDiv1').slideToggle(400);
375
- }
376
- }
377
- function enable2() {
378
- if (document.getElementById('formMakerDiv').style.display == 'block') {
379
- jQuery('#formMakerDiv').slideToggle(200);
380
- }
381
- else {
382
- jQuery('#formMakerDiv').slideToggle(400);
383
- }
384
- if (document.getElementById('formMakerDiv').offsetWidth) {
385
- document.getElementById('formMakerDiv1').style.width = (document.getElementById('formMakerDiv').offsetWidth - 60) + 'px';
386
- }
387
- if (document.getElementById('formMakerDiv1').style.display == 'block') {
388
- jQuery('#formMakerDiv1').slideToggle(200);
389
- }
390
- else {
391
- jQuery('#formMakerDiv1').slideToggle(400);
392
- }
393
- }
394
- </script>
395
- <div style="clear: both; float: left; width: 99%;">
396
- <div style="float: left; font-size: 14px; font-weight: bold;">
397
- This section allows you to enable/disable fields in your form.
398
- <a style="color: blue; text-decoration: none;" target="_blank" href="http://web-dorado.com/wordpress-contact-form-builder-guide-4.html">Read More in User Manual</a>
399
- </div>
400
- <div style="float: right; text-align: right;">
401
- <a style="text-decoration: none;" target="_blank" href="http://web-dorado.com/files/fromContactFormBuilder.php">
402
- <img width="215" border="0" alt="web-dorado.com" src="<?php echo WD_CFM_URL . '/images/wd_logo.png'; ?>" />
403
- </a>
404
- </div>
405
- </div>
406
- <form class="wrap" id="manage_form" method="post" action="admin.php?page=manage_cfm" style="float: left; width: 99%;">
407
- <h2><?php echo $page_title; ?></h2>
408
- <div style="float: right; margin: 0 5px 0 0;">
409
- <input class="button-primary" type="submit" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'form_options');" value="Form Options"/>
410
- <input class="button-primary" type="submit" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'form_layout');" value="Form Layout"/>
411
- <?php
412
- if ($id) {
413
- ?>
414
- <input class="button-secondary" type="submit" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'save_as_copy')" value="Save as Copy"/>
415
- <?php
416
- }
417
- ?>
418
- <input class="button-secondary" type="submit" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'save')" value="Save"/>
419
- <input class="button-secondary" type="submit" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'apply');" value="Apply"/>
420
- <input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'cancel')" value="Cancel"/>
421
- </div>
422
-
423
- <div class="formmaker_table">
424
- <div style="float: left;">
425
- <span class="cfm_logo cfm_black">Contact</span><span class="cfm_logo cfm_white">Form</span><span class="cfm_logo cfm_black">Builder</span><br /><br />
426
- <img src="<?php echo WD_CFM_URL . '/images/contact_form_maker_logo48.png'; ?>" />
427
- </div>
428
- <div style="float: right;">
429
- <span style="font-size: 16.76pt; font-family: tahoma; color: #FFFFFF; vertical-align: middle;">Form title:&nbsp;&nbsp;</span>
430
- <input id="title" name="title" class="form_maker_title" value="<?php echo $row->title; ?>" />
431
- <br /><br />
432
- <img src="<?php echo WD_CFM_URL . '/images/formoptions.png'; ?>" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'form_options'); spider_form_submit(event, 'manage_form');" style="cursor: pointer; margin: 10px 0 10px 10px; float: right;"/>
433
- </div>
434
- </div>
435
-
436
- <div id="formMakerDiv" onclick="close_window()"></div>
437
- <div id="formMakerDiv1" style="padding-top: 20px;" align="center">
438
- <table border="0" width="100%" cellpadding="0" cellspacing="0" height="100%" style="border: 6px #00aeef solid; background-color: #FFF;">
439
- <tr>
440
- <td style="padding:0px">
441
- <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
442
- <tr valign="top">
443
- <td width="50%" height="100%" align="left">
444
- <div id="edit_table" style="padding:0px; overflow-y:scroll; height:535px"></div>
445
- </td>
446
- <td align="center" valign="top" style="background: url("<?php echo WD_CFM_URL . '/images/border2.png'; ?>") repeat-y;">&nbsp;</td>
447
- <td style="padding:15px">
448
- <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
449
- <tr>
450
- <td align="right">
451
- <img alt="ADD" title="add" style="cursor:pointer; vertical-align:middle; margin:5px" src="<?php echo WD_CFM_URL . '/images/save.png'; ?>" onClick="add(0)"/>
452
- <img alt="CANCEL" title="cancel" style="cursor: pointer; vertical-align:middle; margin:5px" src="<?php echo WD_CFM_URL . '/images/cancel_but.png'; ?>" onClick="close_window()"/>
453
- <hr style=" margin-bottom:10px" />
454
- </td>
455
- </tr>
456
- <tr height="100%" valign="top">
457
- <td id="show_table"></td>
458
- </tr>
459
- </table>
460
- </td>
461
- </tr>
462
- </table>
463
- </td>
464
- </tr>
465
- </table>
466
- <input type="hidden" id="old" />
467
- <input type="hidden" id="old_selected" />
468
- <input type="hidden" id="element_type" />
469
- <input type="hidden" id="editing_id" />
470
- <input type="hidden" value="<?php echo WD_CFM_URL; ?>" id="form_plugins_url" />
471
- <div id="main_editor" style="position: absolute; display: none; z-index: 140;">
472
- <?php
473
- if (user_can_richedit()) {
474
- wp_editor('', 'form_maker_editor', array('teeny' => FALSE, 'textarea_name' => 'form_maker_editor', 'media_buttons' => FALSE, 'textarea_rows' => 5));
475
- }
476
- else {
477
- ?>
478
- <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>
479
- <?php
480
- }
481
- ?>
482
- </div>
483
- </div>
484
- <?php
485
- if (!function_exists('the_editor')) {
486
- ?>
487
- <iframe id="tinymce" style="display: none;"></iframe>
488
- <?php
489
- }
490
- ?>
491
- <br /><br />
492
- <fieldset>
493
- <legend><h2 style="color: #00aeef;">Form</h2></legend>
494
- <div id="saving" style="display: none;">
495
- <div id="saving_text">Saving</div>
496
- <div id="fadingBarsG">
497
- <div id="fadingBarsG_1" class="fadingBarsG"></div>
498
- <div id="fadingBarsG_2" class="fadingBarsG"></div>
499
- <div id="fadingBarsG_3" class="fadingBarsG"></div>
500
- <div id="fadingBarsG_4" class="fadingBarsG"></div>
501
- <div id="fadingBarsG_5" class="fadingBarsG"></div>
502
- <div id="fadingBarsG_6" class="fadingBarsG"></div>
503
- <div id="fadingBarsG_7" class="fadingBarsG"></div>
504
- <div id="fadingBarsG_8" class="fadingBarsG"></div>
505
- </div>
506
- </div>
507
- <?php
508
- if ($id) {
509
- ?>
510
- <div id="take">
511
- <?php
512
- echo $row->form_front;
513
- ?>
514
- </div>
515
- <?php
516
- }
517
- ?>
518
- </fieldset>
519
- <input type="hidden" name="form_front" id="form_front" />
520
- <input type="hidden" name="form_fields" id="form_fields" />
521
- <input type="hidden" name="public_key" id="public_key" />
522
- <input type="hidden" name="private_key" id="private_key" />
523
- <input type="hidden" name="recaptcha_theme" id="recaptcha_theme" />
524
- <input type="hidden" id="label_order" name="label_order" value="<?php echo $row->label_order; ?>" />
525
- <input type="hidden" id="label_order_current" name="label_order_current" value="<?php echo $row->label_order_current; ?>" />
526
- <input type="hidden" name="counter" id="counter" value="<?php echo $row->counter; ?>" />
527
- <input type="hidden" id="araqel" value="0" />
528
- <input type="hidden" name="disabled_fields" id="disabled_fields" value="<?php echo $row->disabled_fields; ?>">
529
- <?php
530
- if ($id) {
531
- ?>
532
- <script type="text/javascript">
533
- function formOnload() {
534
- for (t = 0; t < <?php echo $row->counter; ?>; t++) {
535
- if (document.getElementById("wdform_field" + t)) {
536
- if (document.getElementById("wdform_field" + t).parentNode.getAttribute("disabled")) {
537
- if (document.getElementById("wdform_field" + t).getAttribute("type") != 'type_section_break') {
538
- document.getElementById("wdform_field" + t).style.cssText = 'display: table-cell;';
539
- }
540
- document.getElementById("disable_field" + t).checked = false;
541
- document.getElementById("disable_field" + t).setAttribute("title", "Enable the field");
542
- document.getElementById("wdform_field" + t).parentNode.style.cssText = 'opacity: 0.4;';
543
- }
544
- else {
545
- document.getElementById( "disable_field" + t).checked = true;
546
- }
547
- }
548
- }
549
- for (t = 0; t < <?php echo $row->counter; ?>; t++) {
550
- if (document.getElementById(t + "_typeform_id_temp")) {
551
- if (document.getElementById(t + "_typeform_id_temp").value == "type_map") {
552
- if_gmap_init(t);
553
- for (q = 0; q < 20; q++) {
554
- if (document.getElementById(t + "_elementform_id_temp").getAttribute("long" + q)) {
555
- w_long = parseFloat(document.getElementById(t + "_elementform_id_temp").getAttribute("long" + q));
556
- w_lat = parseFloat(document.getElementById(t + "_elementform_id_temp").getAttribute("lat" + q));
557
- w_info = parseFloat(document.getElementById(t + "_elementform_id_temp").getAttribute("info" + q));
558
- add_marker_on_map(t, q, w_long, w_lat, w_info, false);
559
- }
560
- }
561
- }
562
- else if (document.getElementById(t + "_typeform_id_temp").value == "type_name") {
563
- var myu = t;
564
- jQuery(document).ready(function() {
565
- jQuery("#" + myu + "_mini_label_first").click(function() {
566
- if (jQuery(this).children('input').length == 0) {
567
- var first = "<input type='text' id='first' class='first' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
568
- jQuery(this).html(first);
569
- jQuery("input.first").focus();
570
- jQuery("input.first").blur(function() {
571
- var id_for_blur = document.getElementById('first').parentNode.id.split('_');
572
- var value = jQuery(this).val();
573
- jQuery("#" + id_for_blur[0] + "_mini_label_first").text(value);
574
- });
575
- }
576
- });
577
- jQuery("label#" + myu + "_mini_label_last").click(function() {
578
- if (jQuery(this).children('input').length == 0) {
579
- var last = "<input type='text' id='last' class='last' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
580
- jQuery(this).html(last);
581
- jQuery("input.last").focus();
582
- jQuery("input.last").blur(function() {
583
- var id_for_blur = document.getElementById('last').parentNode.id.split('_');
584
- var value = jQuery(this).val();
585
- jQuery("#" + id_for_blur[0] + "_mini_label_last").text(value);
586
- });
587
- }
588
- });
589
- jQuery("label#" + myu + "_mini_label_title").click(function() {
590
- if (jQuery(this).children('input').length == 0) {
591
- var title_ = "<input type='text' id='title_' class='title_' style='outline:none; border:none; background:none; width:50px;' value=\""+jQuery(this).text()+"\">";
592
- jQuery(this).html(title_);
593
- jQuery("input.title_").focus();
594
- jQuery("input.title_").blur(function() {
595
- var id_for_blur = document.getElementById('title_').parentNode.id.split('_');
596
- var value = jQuery(this).val();
597
- jQuery("#" + id_for_blur[0] + "_mini_label_title").text(value);
598
- });
599
- }
600
- });
601
- jQuery("label#" + myu + "_mini_label_middle").click(function() {
602
- if (jQuery(this).children('input').length == 0) {
603
- var middle = "<input type='text' id='middle' class='middle' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
604
- jQuery(this).html(middle);
605
- jQuery("input.middle").focus();
606
- jQuery("input.middle").blur(function() {
607
- var id_for_blur = document.getElementById('middle').parentNode.id.split('_');
608
- var value = jQuery(this).val();
609
- jQuery("#"+id_for_blur[0]+"_mini_label_middle").text(value);
610
- });
611
- }
612
- });
613
- });
614
- }
615
- else if (document.getElementById(t + "_typeform_id_temp").value == "type_phone") {
616
- var myu = t;
617
- jQuery(document).ready(function() {
618
- jQuery("label#"+myu+"_mini_label_area_code").click(function() {
619
- if (jQuery(this).children('input').length == 0) {
620
- 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()+"\">";
621
- jQuery(this).html(area_code);
622
- jQuery("input.area_code").focus();
623
- jQuery("input.area_code").blur(function() {
624
- var id_for_blur = document.getElementById('area_code').parentNode.id.split('_');
625
- var value = jQuery(this).val();
626
- jQuery("#"+id_for_blur[0]+"_mini_label_area_code").text(value);
627
- });
628
- }
629
- });
630
- jQuery("label#"+myu+"_mini_label_phone_number").click(function() {
631
- if (jQuery(this).children('input').length == 0) {
632
- var phone_number = "<input type='text' id='phone_number' class='phone_number' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
633
- jQuery(this).html(phone_number);
634
- jQuery("input.phone_number").focus();
635
- jQuery("input.phone_number").blur(function() {
636
- var id_for_blur = document.getElementById('phone_number').parentNode.id.split('_');
637
- var value = jQuery(this).val();
638
- jQuery("#"+id_for_blur[0]+"_mini_label_phone_number").text(value);
639
- });
640
- }
641
- });
642
- });
643
- }
644
- else if (document.getElementById(t+"_typeform_id_temp").value == "type_address") {
645
- var myu = t;
646
- jQuery(document).ready(function() {
647
- jQuery("label#"+myu+"_mini_label_street1").click(function() {
648
- if (jQuery(this).children('input').length == 0) {
649
- var street1 = "<input type='text' id='street1' class='street1' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
650
- jQuery(this).html(street1);
651
- jQuery("input.street1").focus();
652
- jQuery("input.street1").blur(function() {
653
- var id_for_blur = document.getElementById('street1').parentNode.id.split('_');
654
- var value = jQuery(this).val();
655
- jQuery("#"+id_for_blur[0]+"_mini_label_street1").text(value);
656
- });
657
- }
658
- });
659
- jQuery("label#"+myu+"_mini_label_street2").click(function() {
660
- if (jQuery(this).children('input').length == 0) {
661
- var street2 = "<input type='text' id='street2' class='street2' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
662
- jQuery(this).html(street2);
663
- jQuery("input.street2").focus();
664
- jQuery("input.street2").blur(function() {
665
- var id_for_blur = document.getElementById('street2').parentNode.id.split('_');
666
- var value = jQuery(this).val();
667
- jQuery("#"+id_for_blur[0]+"_mini_label_street2").text(value);
668
- });
669
- }
670
- });
671
- jQuery("label#"+myu+"_mini_label_city").click(function() {
672
- if (jQuery(this).children('input').length == 0) {
673
- var city = "<input type='text' id='city' class='city' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
674
- jQuery(this).html(city);
675
- jQuery("input.city").focus();
676
- jQuery("input.city").blur(function() {
677
- var id_for_blur = document.getElementById('city').parentNode.id.split('_');
678
- var value = jQuery(this).val();
679
- jQuery("#"+id_for_blur[0]+"_mini_label_city").text(value);
680
- });
681
- }
682
- });
683
- jQuery("label#"+myu+"_mini_label_state").click(function() {
684
- if (jQuery(this).children('input').length == 0) {
685
- var state = "<input type='text' id='state' class='state' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
686
- jQuery(this).html(state);
687
- jQuery("input.state").focus();
688
- jQuery("input.state").blur(function() {
689
- var id_for_blur = document.getElementById('state').parentNode.id.split('_');
690
- var value = jQuery(this).val();
691
- jQuery("#"+id_for_blur[0]+"_mini_label_state").text(value);
692
- });
693
- }
694
- });
695
- jQuery("label#"+myu+"_mini_label_postal").click(function() {
696
- if (jQuery(this).children('input').length == 0) {
697
- var postal = "<input type='text' id='postal' class='postal' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
698
- jQuery(this).html(postal);
699
- jQuery("input.postal").focus();
700
- jQuery("input.postal").blur(function() {
701
- var id_for_blur = document.getElementById('postal').parentNode.id.split('_');
702
- var value = jQuery(this).val();
703
- jQuery("#"+id_for_blur[0]+"_mini_label_postal").text(value);
704
- });
705
- }
706
- });
707
- jQuery("label#"+myu+"_mini_label_country").click(function() {
708
- if (jQuery(this).children('input').length == 0) {
709
- var country = "<input type='country' id='country' class='country' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
710
- jQuery(this).html(country);
711
- jQuery("input.country").focus();
712
- jQuery("input.country").blur(function() {
713
- var id_for_blur = document.getElementById('country').parentNode.id.split('_');
714
- var value = jQuery(this).val();
715
- jQuery("#"+id_for_blur[0]+"_mini_label_country").text(value);
716
- });
717
- }
718
- });
719
- });
720
- }
721
- }
722
- }
723
- remove_whitespace(document.getElementById('take'));
724
- form_view = 1;
725
- form_view_count = 0;
726
- document.getElementById('araqel').value = 1;
727
- }
728
- jQuery(window).load(function () {
729
- formOnload();
730
- });
731
- </script>
732
- <?php
733
- }
734
- ?>
735
- <input type="hidden" name="id" value="<?php echo $row->id; ?>" />
736
- <input type="hidden" name="cid[]" value="<?php echo $row->id; ?>" />
737
- <input type="hidden" id="task" name="task" value=""/>
738
- <input type="hidden" id="current_id" name="current_id" value="<?php echo $row->id; ?>" />
739
- </form>
740
- <?php
741
- }
742
-
743
- public function form_options($id) {
744
- $row = $this->model->get_row_data($id);
745
- $themes = $this->model->get_theme_rows_data();
746
- $page_title = $row->title . ' form options';
747
- $label_id = array();
748
- $label_label = array();
749
- $label_type = array();
750
- $label_all = explode('#****#', $row->label_order_current);
751
- $label_all = array_slice($label_all, 0, count($label_all) - 1);
752
- foreach ($label_all as $key => $label_each) {
753
- $label_id_each = explode('#**id**#', $label_each);
754
- if ($label_id_each[0] == 22) {
755
- $default_subject = $key;
756
- }
757
- array_push($label_id, $label_id_each[0]);
758
- $label_order_each = explode('#**label**#', $label_id_each[1]);
759
- array_push($label_label, $label_order_each[0]);
760
- array_push($label_type, $label_order_each[1]);
761
- }
762
- $fields = explode('*:*id*:*type_submitter_mail*:*type*:*', $row->form_fields);
763
- $fields_count = count($fields);
764
- $disabled_fields = explode(',', $row->disabled_fields);
765
- $disabled_fields = array_slice($disabled_fields, 0, count($disabled_fields) - 1);
766
- $field_exist = array();
767
- for ($i = 0; $i < count($label_label); $i++) {
768
- 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)) {
769
- $field_exist[$i] = FALSE;
770
- }
771
- else {
772
- $field_exist[$i] = TRUE;
773
- }
774
- }
775
- ?>
776
- <script>
777
- gen = "<?php echo $row->counter; ?>";
778
- form_view_max = 20;
779
- function set_preview() {
780
- jQuery("#preview_form").attr("href", '<?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');
781
- jQuery("#edit_css").attr("href", '<?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');
782
- }
783
- </script>
784
- <div style="font-size: 14px; font-weight: bold;">
785
- This section allows you to edit form options.
786
- <a style="color: blue; text-decoration: none;" target="_blank" href="http://web-dorado.com/wordpress-contact-form-builder-guide-3.html">Read More in User Manual</a>
787
- </div>
788
- <form class="wrap" method="post" action="admin.php?page=manage_cfm" style="width: 99%;" name="adminForm" id="adminForm">
789
- <h2><?php echo $page_title; ?></h2>
790
- <div style="float: right; margin: 0 5px 0 0;">
791
- <input class="button-secondary" type="submit" onclick="if (spider_check_email('mailToAdd') ||
792
- spider_check_email('mail_from_other') ||
793
- spider_check_email('reply_to_other') ||
794
- spider_check_email('mail_cc') ||
795
- spider_check_email('mail_bcc') ||
796
- spider_check_email('mail_from_user') ||
797
- spider_check_email('reply_to_user') ||
798
- spider_check_email('mail_cc_user') ||
799
- spider_check_email('mail_bcc_user') ||
800
- spider_check_email('mail_from') ||
801
- spider_check_email('reply_to')) { return false; }; spider_set_input_value('task', 'save_options')" value="Save"/>
802
- <input class="button-secondary" type="submit" onclick="if (spider_check_email('mailToAdd') ||
803
- spider_check_email('mail_from_other') ||
804
- spider_check_email('reply_to_other') ||
805
- spider_check_email('mail_cc') ||
806
- spider_check_email('mail_bcc') ||
807
- spider_check_email('mail_from_user') ||
808
- spider_check_email('reply_to_user') ||
809
- spider_check_email('mail_cc_user') ||
810
- spider_check_email('mail_bcc_user') ||
811
- spider_check_email('mail_from') ||
812
- spider_check_email('reply_to')) { return false; }; spider_set_input_value('task', 'apply_options')" value="Apply"/>
813
- <input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'cancel_options')" value="Cancel"/>
814
- </div>
815
- <div class="submenu-box" style="width: 99%; float: left; margin: 15px 0 0 0;">
816
- <div class="submenu-pad">
817
- <ul id="submenu" class="configuration">
818
- <li>
819
- <a id="general" class="fm_fieldset_tab" onclick="form_maker_options_tabs('general')" href="#">General Options</a>
820
- </li>
821
- <li>
822
- <a id="custom" class="fm_fieldset_tab" onclick="form_maker_options_tabs('custom')" href="#">Email Options</a>
823
- </li>
824
- <li>
825
- <a id="actions" class="fm_fieldset_tab" onclick="form_maker_options_tabs('actions')" href="#">Actions after Submission</a>
826
- </li>
827
- </ul>
828
- </div>
829
- </div>
830
- <fieldset id="general_fieldset" class="adminform fm_fieldset_deactive">
831
- <legend style="color: #0B55C4; font-weight: bold;">General Options</legend>
832
- <table class="admintable" style="float: left;">
833
- <tr valign="top">
834
- <td class="fm_options_label">
835
- <label>Published</label>
836
- </td>
837
- <td class="fm_options_value">
838
- <input type="radio" name="published" id="published_yes" value="1" <?php echo ($row->published) ? 'checked="checked"' : ''; ?> /><label for="published_yes">Yes</label>
839
- <input type="radio" name="published" id="published_no" value="0" <?php echo (!$row->published) ? 'checked="checked"' : ''; ?> /><label for="published_no">No</label>
840
- </td>
841
- </tr>
842
- <tr valign="top">
843
- <td class="fm_options_label">
844
- <label>Save data(to database)</label>
845
- </td>
846
- <td class="fm_options_value">
847
- <input type="radio" name="savedb" id="savedb_yes" value="1" <?php echo ($row->savedb) ? 'checked="checked"' : ''; ?> /><label for="savedb_yes">Yes</label>
848
- <input type="radio" name="savedb" id="savedb_no" value="0" <?php echo (!$row->savedb) ? 'checked="checked"' : ''; ?> /><label for="savedb_no">No</label>
849
- </td>
850
- </tr>
851
- <tr valign="top">
852
- <td class="fm_options_label">
853
- <label for="theme">Theme</label>
854
- </td>
855
- <td class="fm_options_value">
856
- <select id="theme" name="theme" style="width:260px;" onChange="set_preview()">
857
- <?php
858
- foreach ($themes as $theme) {
859
- ?>
860
- <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>
861
- <?php
862
- }
863
- ?>
864
- </select>
865
- <a href="<?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')); ?>" class="button-primary thickbox thickbox-preview" id="preview_form" title="Form Preview" onclick="return false;">
866
- Preview
867
- </a>
868
- <a onclick="alert('This option is disabled in free version.'); return false;" href="#" class="button-secondary" id="edit_css" title="Edit CSS">
869
- Edit CSS
870
- </a>
871
- <div class="spider_description spider_free_desc">Themes are disabled in free version.</div>
872
- </td>
873
- </tr>
874
- <tr valign="top">
875
- <td class="fm_options_label">
876
- <label for="requiredmark">Required fields mark</label>
877
- </td>
878
- <td class="fm_options_value">
879
- <input type="text" id="requiredmark" name="requiredmark" value="<?php echo $row->requiredmark; ?>" style="width: 250px;" />
880
- </td>
881
- </tr>
882
- </table>
883
- </fieldset>
884
- <fieldset id="custom_fieldset" class="adminform fm_fieldset_deactive">
885
- <legend style="color: #0B55C4; font-weight: bold;">Email Options</legend>
886
- <table class="admintable">
887
- <tr valign="top">
888
- <td style="padding: 15px;">
889
- <label>Send E-mail</label>
890
- </td>
891
- <td style="padding: 15px;">
892
- <input type="radio" name="sendemail" id="sendemail_yes" value="1" <?php echo ($row->sendemail) ? 'checked="checked"' : ''; ?> /><label for="sendemail_yes">Yes</label>
893
- <input type="radio" name="sendemail" id="sendemail_no" value="0" <?php echo (!$row->sendemail) ? 'checked="checked"' : ''; ?> /><label for="sendemail_no">No</label>
894
- </td>
895
- </tr>
896
- </table>
897
- <fieldset class="fm_mail_options">
898
- <legend style="color: #0B55C4; font-weight: bold;">Email to Administrator</legend>
899
- <table class="admintable">
900
- <tr valign="top">
901
- <td class="fm_options_label">
902
- <label for="mailToAdd">Email to send submissions to</label>
903
- </td>
904
- <td class="fm_options_value">
905
- <input type="text" id="mailToAdd" name="mailToAdd" style="width: 250px;" />
906
- <input type="hidden" id="mail" name="mail" value="<?php echo $row->mail; ?>" />
907
- <img src="<?php echo WD_CFM_URL . '/images/add.png'; ?>"
908
- style="vertical-align: middle; cursor: pointer;"
909
- title="Add more emails"
910
- onclick="if (spider_check_email('mailToAdd')) {return false;};cfm_create_input('mail', 'mailToAdd', 'cfm_mail_div', '<?php echo WD_CFM_URL; ?>')" />
911
- <div id="cfm_mail_div">
912
- <?php
913
- $mail_array = explode(',', $row->mail);
914
- foreach ($mail_array as $mail) {
915
- if ($mail && $mail != ',') {
916
- ?>
917
- <div class="fm_mail_input">
918
- <?php echo $mail; ?>
919
- <img src="<?php echo WD_CFM_URL; ?>/images/delete.png" class="fm_delete_img" onclick="fm_delete_mail(this, '<?php echo $mail; ?>')" title="Delete Email" />
920
- </div>
921
- <?php
922
- }
923
- }
924
- ?>
925
- </div>
926
- </td>
927
- </tr>
928
- <tr valign="top">
929
- <td class="fm_options_label">
930
- <label for="mail_from">Email From</label>
931
- </td>
932
- <td class="fm_options_value">
933
- <?php
934
- $is_other = TRUE;
935
- $field_disabled = TRUE;
936
- for ($i = 0; $i < $fields_count - 1; $i++) {
937
- $field_id = substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*') + 15, strlen($fields[$i]));
938
- if (!in_array($field_id, $disabled_fields)) {
939
- $field_disabled = FALSE;
940
- ?>
941
- <div>
942
- <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')" />
943
- <label for="mail_from<?php echo $i; ?>"><?php echo substr($fields[$i + 1], 0, strpos($fields[$i + 1], '*:*w_field_label*:*')); ?></label>
944
- </div>
945
- <?php
946
- if ($field_id == $row->mail_from) {
947
- $is_other = FALSE;
948
- }
949
- }
950
- }
951
- ?>
952
- <div style="<?php echo ($fields_count == 1 || $field_disabled) ? 'display:none;' : ''; ?>">
953
- <input type="radio" id="other" name="mail_from" value="other" <?php echo ($is_other) ? 'checked="checked"' : ''; ?> onclick="wdshow('mail_from_other')" />
954
- <label for="other">Other</label>
955
- </div>
956
- <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 : ''; ?>" />
957
- </td>
958
- </tr>
959
- <tr valign="top">
960
- <td class="fm_options_label">
961
- <label for="mail_from_name">From Name</label>
962
- </td>
963
- <td class="fm_options_value">
964
- <input type="text" id="mail_from_name" name="mail_from_name" value="<?php echo $row->mail_from_name; ?>" style="width: 250px;" />
965
- <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;" />
966
- <div style="position: relative; top: -3px;">
967
- <div id="mail_from_labels" class="email_labels" style="display: none;">
968
- <?php
969
- $choise = "document.getElementById('mail_from_name')";
970
- for ($i = 0; $i < count($label_label); $i++) {
971
- if (!$field_exist[$i]) {
972
- continue;
973
- }
974
- $param = htmlspecialchars(addslashes($label_label[$i]));
975
- $fld_label = htmlspecialchars($label_label[$i]);
976
- if (strlen($fld_label) > 30) {
977
- $fld_label = wordwrap($fld_label, 30);
978
- $fld_label = explode("\n", $fld_label);
979
- $fld_label = $fld_label[0] . ' ...';
980
- }
981
- ?>
982
- <a onClick="insertAtCursor(<?php echo $choise; ?>,'<?php echo $param; ?>'); document.getElementById('mail_from_labels').style.display='none';" style="display: block; text-decoration:none;"><?php echo $fld_label; ?></a>
983
- <?php
984
- }
985
- ?>
986
- </div>
987
- </div>
988
- </td>
989
- </tr>
990
- <tr valign="top">
991
- <td class="fm_options_label">
992
- <label for="reply_to">Reply to<br/>(if different from "Email From") </label>
993
- </td>
994
- <td class="fm_options_value">
995
- <?php
996
- $is_other = TRUE;
997
- $field_disabled = TRUE;
998
- for ($i = 0; $i < $fields_count - 1; $i++) {
999
- $field_id = substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*') + 15, strlen($fields[$i]));
1000
- if (!in_array($field_id, $disabled_fields)) {
1001
- $field_disabled = FALSE;
1002
- ?>
1003
- <div>
1004
- <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')" />
1005
- <label for="reply_to<?php echo $i; ?>"><?php echo substr($fields[$i + 1], 0, strpos($fields[$i + 1], '*:*w_field_label*:*')); ?></label>
1006
- </div>
1007
- <?php
1008
- if ($field_id == $row->reply_to) {
1009
- $is_other = FALSE;
1010
- }
1011
- }
1012
- }
1013
- ?>
1014
- <div style="<?php echo ($fields_count == 1 || $field_disabled) ? 'display: none;' : ''; ?>">
1015
- <input type="radio" id="other1" name="reply_to" value="other" <?php echo ($is_other) ? 'checked="checked"' : ''; ?> onclick="wdshow('reply_to_other')" />
1016
- <label for="other1">Other</label>
1017
- </div>
1018
- <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 : ''; ?>" />
1019
- </td>
1020
- </tr>
1021
- <tr valign="top">
1022
- <td class="fm_options_label">
1023
- <label for="mail_cc">CC: </label>
1024
- </td>
1025
- <td class="fm_options_value">
1026
- <input type="text" id="mail_cc" name="mail_cc" value="<?php echo $row->mail_cc; ?>" style="width: 250px;" />
1027
- </td>
1028
- </tr>
1029
- <tr valign="top">
1030
- <td class="fm_options_label">
1031
- <label for="mail_bcc">BCC: </label>
1032
- </td>
1033
- <td class="fm_options_value">
1034
- <input type="text" id="mail_bcc" name="mail_bcc" value="<?php echo $row->mail_bcc; ?>" style="width: 250px;" />
1035
- </td>
1036
- </tr>
1037
- <tr valign="top">
1038
- <td class="fm_options_label">
1039
- <label for="mail_subject">Subject: </label>
1040
- </td>
1041
- <td class="fm_options_value">
1042
- <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;" />
1043
- <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;" />
1044
- <div style="position: relative; top: -3px;">
1045
- <div id="mail_subject_labels" class="email_labels" style="display: none;" >
1046
- <?php
1047
- $choise = "document.getElementById('mail_subject')";
1048
- for ($i = 0; $i < count($label_label); $i++) {
1049
- if (!$field_exist[$i]) {
1050
- continue;
1051
- }
1052
- $param = htmlspecialchars(addslashes($label_label[$i]));
1053
- $fld_label = htmlspecialchars($label_label[$i]);
1054
- if (strlen($fld_label) > 30) {
1055
- $fld_label = wordwrap($fld_label, 30);
1056
- $fld_label = explode("\n", $fld_label);
1057
- $fld_label = $fld_label[0] . ' ...';
1058
- }
1059
- ?>
1060
- <a onClick="insertAtCursor(<?php echo $choise; ?>,'<?php echo $param; ?>'); document.getElementById('mail_subject_labels').style.display='none';" style="display: block; text-decoration: none;"><?php echo $fld_label; ?></a>
1061
- <?php
1062
- }
1063
- ?>
1064
- </div>
1065
- </div>
1066
- </td>
1067
- </tr>
1068
- <tr valign="top">
1069
- <td class="fm_options_label" style="vertical-align: middle;">
1070
- <label>Mode: </label>
1071
- </td>
1072
- <td class="fm_options_value">
1073
- <input type="radio" name="mail_mode" id="htmlmode" value="1" <?php if ($row->mail_mode == 1 ) echo 'checked="checked"'; ?> /><label for="htmlmode">HTML</label>
1074
- <input type="radio" name="mail_mode" id="textmode" value="0" <?php if ($row->mail_mode == 0 ) echo 'checked="checked"'; ?> /><label for="textmode">Text</label>
1075
- </td>
1076
- </tr>
1077
- <tr>
1078
- <td class="fm_options_label" valign="top">
1079
- <label>Custom Text in Email For Administrator</label>
1080
- </td>
1081
- <td class="fm_options_value">
1082
- <div style="margin-bottom:5px">
1083
- <?php
1084
- $choise = "document.getElementById('script_mail')";
1085
- for ($i = 0; $i < count($label_label); $i++) {
1086
- if (!$field_exist[$i]) {
1087
- continue;
1088
- }
1089
- $param = htmlspecialchars(addslashes($label_label[$i]));
1090
- ?>
1091
- <input style="border: 1px solid silver; font-size: 10px;" type="button" value="<?php echo htmlspecialchars($label_label[$i]); ?>" onClick="insertAtCursor(<?php echo $choise; ?>, '<?php echo $param; ?>')" />
1092
- <?php
1093
- }
1094
- ?>
1095
- <input style="border: 1px solid silver; font-size: 11px; font-weight: bold; display: block;" type="button" value="All fields list" onClick="insertAtCursor(<?php echo $choise; ?>, 'all')" />
1096
- </div>
1097
- <?php
1098
- if (user_can_richedit()) {
1099
- wp_editor($row->script_mail, 'script_mail', array('teeny' => FALSE, 'textarea_name' => 'script_mail', 'media_buttons' => FALSE, 'textarea_rows' => 5));
1100
- }
1101
- else {
1102
- ?>
1103
- <textarea name="script_mail" id="script_mail" cols="20" rows="10" style="width: 300px; height: 450px;"><?php echo $row->script_mail; ?></textarea>
1104
- <?php
1105
- }
1106
- ?>
1107
- </td>
1108
- </tr>
1109
- </table>
1110
- </fieldset>
1111
- <fieldset class="fm_mail_options">
1112
- <legend style="color: #0B55C4; font-weight: bold;">Email to User</legend>
1113
- <table class="admintable">
1114
- <tr valign="top">
1115
- <td class="fm_options_label">
1116
- <label for="mail">Send to</label>
1117
- </td>
1118
- <td class="fm_options_value">
1119
- <?php
1120
- $fields = explode('*:*id*:*type_submitter_mail*:*type*:*', $row->form_fields);
1121
- $fields_count = count($fields);
1122
- if ($fields_count == 1) {
1123
- ?>There is no email field<?php
1124
- }
1125
- else {
1126
- for ($i = 0; $i < $fields_count - 1; $i++) {
1127
- ?>
1128
- <div>
1129
- <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"' : '' ); ?> />
1130
- <label for="send_to<?php echo $i; ?>"><?php echo substr($fields[$i + 1], 0, strpos($fields[$i + 1], '*:*w_field_label*:*')); ?></label>
1131
- </div>
1132
- <?php
1133
- }
1134
- }
1135
- ?>
1136
- </td>
1137
- </tr>
1138
- <tr valign="top">
1139
- <td class="fm_options_label">
1140
- <label for="mail_from_user">Email From</label>
1141
- </td>
1142
- <td class="fm_options_value">
1143
- <input type="text" id="mail_from_user" name="mail_from_user" value="<?php echo $row->mail_from_user; ?>" style="width: 250px;" />
1144
- </td>
1145
- </tr>
1146
- <tr valign="top">
1147
- <td class="fm_options_label">
1148
- <label for="mail_from_name_user">From Name</label>
1149
- </td>
1150
- <td class="fm_options_value">
1151
- <input type="text" id="mail_from_name_user" name="mail_from_name_user" value="<?php echo $row->mail_from_name_user; ?>" style="width: 250px;"/>
1152
- <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;" />
1153
- <div style="position: relative; top: -3px;">
1154
- <div id="mail_from_name_user_labels" class="email_labels" style="display:none;">
1155
- <?php
1156
- $choise = "document.getElementById('mail_from_name_user')";
1157
- for ($i = 0; $i < count($label_label); $i++) {
1158
- if (!$field_exist[$i]) {
1159
- continue;
1160
- }
1161
- $param = htmlspecialchars(addslashes($label_label[$i]));
1162
- $fld_label = htmlspecialchars($label_label[$i]);
1163
- if (strlen($fld_label) > 30) {
1164
- $fld_label = wordwrap($fld_label, 30);
1165
- $fld_label = explode("\n", $fld_label);
1166
- $fld_label = $fld_label[0] . ' ...';
1167
- }
1168
- ?>
1169
- <a onClick="insertAtCursor(<?php echo $choise; ?>,'<?php echo $param; ?>'); document.getElementById('mail_from_name_user_labels').style.display='none';" style="display: block; text-decoration: none;"><?php echo $fld_label; ?></a>
1170
- <?php
1171
- }
1172
- ?>
1173
- </div>
1174
- </div>
1175
- </td>
1176
- </tr>
1177
- <tr valign="top">
1178
- <td class="fm_options_label">
1179
- <label for="reply_to_user">Reply to<br />(if different from "Email From")</label>
1180
- </td>
1181
- <td class="fm_options_value">
1182
- <input type="text" id="reply_to_user" name="reply_to_user" value="<?php echo $row->reply_to_user; ?>" style="width: 250px;" />
1183
- </td>
1184
- </tr>
1185
- <tr valign="top">
1186
- <td class="fm_options_label">
1187
- <label for="mail_cc_user">CC: </label>
1188
- </td>
1189
- <td class="fm_options_value">
1190
- <input type="text" id="mail_cc_user" name="mail_cc_user" value="<?php echo $row->mail_cc_user; ?>" style="width: 250px;" />
1191
- </td>
1192
- </tr>
1193
- <tr valign="top">
1194
- <td class="fm_options_label">
1195
- <label for="mail_bcc_user">BCC: </label>
1196
- </td>
1197
- <td class="fm_options_value">
1198
- <input type="text" id="mail_bcc_user" name="mail_bcc_user" value="<?php echo $row->mail_bcc_user; ?>" style="width: 250px;" />
1199
- </td>
1200
- </tr>
1201
- <tr valign="top">
1202
- <td class="fm_options_label">
1203
- <label for="mail_subject_user">Subject: </label>
1204
- </td>
1205
- <td class="fm_options_value">
1206
- <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;" />
1207
- <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;" />
1208
- <div style="position: relative; top: -3px;">
1209
- <div id="mail_subject_user_labels" class="email_labels" style="display: none;">
1210
- <?php
1211
- $choise = "document.getElementById('mail_subject_user')";
1212
- for ($i = 0; $i < count($label_label); $i++) {
1213
- if (!$field_exist[$i]) {
1214
- continue;
1215
- }
1216
- $param = htmlspecialchars(addslashes($label_label[$i]));
1217
- $fld_label = htmlspecialchars($label_label[$i]);
1218
- if (strlen($fld_label) > 30) {
1219
- $fld_label = wordwrap($fld_label, 30);
1220
- $fld_label = explode("\n", $fld_label);
1221
- $fld_label = $fld_label[0] . ' ...';
1222
- }
1223
- ?>
1224
- <a onClick="insertAtCursor(<?php echo $choise; ?>,'<?php echo $param; ?>'); document.getElementById('mail_subject_user_labels').style.display='none';" style="display: block; text-decoration: none;"><?php echo $fld_label; ?></a>
1225
- <?php
1226
- }
1227
- ?>
1228
- </div>
1229
- </div>
1230
- </td>
1231
- </tr>
1232
- <tr valign="top">
1233
- <td class="fm_options_label" style="vertical-align: middle;">
1234
- <label>Mode: </label>
1235
- </td>
1236
- <td class="fm_options_value">
1237
- <input type="radio" name="mail_mode_user" id="htmlmode_user" value="1" <?php if ($row->mail_mode_user == 1 ) echo 'checked="checked"'; ?> /><label for="htmlmode_user">HTML</label>
1238
- <input type="radio" name="mail_mode_user" id="textmode_user" value="0" <?php if ($row->mail_mode_user == 0 ) echo 'checked="checked"'; ?> /><label for="textmode_user">Text</label>
1239
- </td>
1240
- </tr>
1241
- <tr>
1242
- <td class="fm_options_label" valign="top">
1243
- <label>Custom Text in Email For User</label>
1244
- </td>
1245
- <td class="fm_options_value">
1246
- <div style="margin-bottom:5px">
1247
- <?php
1248
- $choise = "document.getElementById('script_mail_user')";
1249
- for ($i = 0; $i < count($label_label); $i++) {
1250
- if (!$field_exist[$i]) {
1251
- continue;
1252
- }
1253
- $param = htmlspecialchars(addslashes($label_label[$i]));
1254
- ?>
1255
- <input style="border: 1px solid silver; font-size: 10px;" type="button" value="<?php echo htmlspecialchars($label_label[$i]); ?>" onClick="insertAtCursor(<?php echo $choise; ?>, '<?php echo $param; ?>')" />
1256
- <?php
1257
- }
1258
- ?>
1259
- <input style="border: 1px solid silver; font-size: 11px; font-weight: bold; display: block;" type="button" value="All fields list" onClick="insertAtCursor(<?php echo $choise; ?>, 'all')" />
1260
- </div>
1261
- <?php
1262
- if (user_can_richedit()) {
1263
- wp_editor($row->script_mail_user, 'script_mail_user', array('teeny' => FALSE, 'textarea_name' => 'script_mail_user', 'media_buttons' => FALSE, 'textarea_rows' => 5));
1264
- }
1265
- else {
1266
- ?>
1267
- <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>
1268
- <?php
1269
- }
1270
- ?>
1271
- </td>
1272
- </tr>
1273
- </table>
1274
- </fieldset>
1275
- </fieldset>
1276
- <fieldset id="actions_fieldset" class="adminform fm_fieldset_deactive">
1277
- <legend style="color: #0B55C4; font-weight: bold;">Actions after submission</legend>
1278
- <table class="admintable">
1279
- <tr valign="top">
1280
- <td class="fm_options_label">
1281
- <label>Action type</label>
1282
- </td>
1283
- <td class="fm_options_value">
1284
- <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">Stay on Form</label></div>
1285
- <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">Post</label></label></div>
1286
- <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">Page</label></label></div>
1287
- <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">Custom Text</label></label></div>
1288
- <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>
1289
- </td>
1290
- </tr>
1291
- <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"' : ''); ?>>
1292
- <td class="fm_options_label">
1293
- <label>Stay on Form</label>
1294
- </td>
1295
- <td class="fm_options_value">
1296
- <img src="<?php echo WD_CFM_URL . '/images/tick.png'; ?>" border="0">
1297
- </td>
1298
- </tr>
1299
- <tr id="post" <?php echo (($row->submit_text_type != 2) ? 'style="display: none"' : ''); ?>>
1300
- <td class="fm_options_label">
1301
- <label for="post_name">Post</label>
1302
- </td>
1303
- <td class="fm_options_value">
1304
- <select id="post_name" name="post_name" style="width: 153px; font-size: 11px;">
1305
- <option value="0">- Select Post -</option>
1306
- <?php
1307
- // The Query.
1308
- $args = array('posts_per_page' => 10000);
1309
- query_posts($args);
1310
- // The Loop.
1311
- while (have_posts()) : the_post(); ?>
1312
- <option value="<?php $x = get_permalink(get_the_ID()); echo $x; ?>" <?php echo (($row->article_id == $x) ? 'selected="selected"' : ''); ?>><?php the_title(); ?></option>
1313
- <?php
1314
- endwhile;
1315
- // Reset Query.
1316
- wp_reset_query();
1317
- ?>
1318
- </select>
1319
- </td>
1320
- </tr>
1321
- <tr id="page" <?php echo (($row->submit_text_type != 5) ? 'style="display: none"' : ''); ?>>
1322
- <td class="fm_options_label">
1323
- <label for="page_name">Page</label>
1324
- </td>
1325
- <td class="fm_options_value">
1326
- <select id="page_name" name="page_name" style="width: 153px; font-size: 11px;">
1327
- <option value="0">- Select Page -</option>
1328
- <?php
1329
- // The Query.
1330
- $pages = get_pages();
1331
- // The Loop.
1332
- foreach ($pages as $page) {
1333
- $page_id = get_page_link($page->ID);
1334
- ?>
1335
- <option value="<?php echo $page_id; ?>" <?php echo (($row->article_id == $page_id) ? 'selected="selected"' : ''); ?>><?php echo $page->post_title; ?></option>
1336
- <?php
1337
- }
1338
- // Reset Query.
1339
- wp_reset_query();
1340
- ?>
1341
- </select>
1342
- </td>
1343
- </tr>
1344
- <tr id="custom_text" <?php echo (($row->submit_text_type != 3) ? 'style="display: none;"' : ''); ?>>
1345
- <td class="fm_options_label">
1346
- <label for="submit_text">Text</label>
1347
- </td>
1348
- <td class="fm_options_value">
1349
- <?php
1350
- if (user_can_richedit()) {
1351
- wp_editor($row->submit_text, 'submit_text', array('teeny' => FALSE, 'textarea_name' => 'submit_text', 'media_buttons' => FALSE, 'textarea_rows' => 5));
1352
- }
1353
- else {
1354
- ?>
1355
- <textarea cols="36" rows="5" id="submit_text" name="submit_text" style="resize: vertical;">
1356
- <?php echo $row->submit_text; ?>
1357
- </textarea>
1358
- <?php
1359
- }
1360
- ?>
1361
- </td>
1362
- </tr>
1363
- <tr id="url" <?php echo (($row->submit_text_type != 4 ) ? 'style="display:none"' : ''); ?>>
1364
- <td class="fm_options_label">
1365
- <label for="url">URL</label>
1366
- </td>
1367
- <td class="fm_options_value">
1368
- <input type="text" id="url" name="url" style="width:300px" value="<?php echo $row->url; ?>" />
1369
- </td>
1370
- </tr>
1371
- </table>
1372
- </fieldset>
1373
-
1374
- <input type="hidden" name="fieldset_id" id="fieldset_id" value="<?php echo WDW_CFM_Library::get('fieldset_id', 'general'); ?>" />
1375
- <input type="hidden" id="task" name="task" value=""/>
1376
- <input type="hidden" id="current_id" name="current_id" value="<?php echo $row->id; ?>" />
1377
- </form>
1378
- <script>
1379
- jQuery(window).load(function () {
1380
- form_maker_options_tabs(jQuery("#fieldset_id").val());
1381
- spider_popup();
1382
- jQuery("#mail_from_labels, #mail_from_name_user_labels, #mail_subject_labels, #mail_subject_user_labels").mouseleave(function() {
1383
- jQuery(this).hide();
1384
- });
1385
- });
1386
- </script>
1387
- <?php
1388
- }
1389
-
1390
- public function form_layout($id) {
1391
- $row = $this->model->get_row_data($id);
1392
- $ids = array();
1393
- $types = array();
1394
- $labels = array();
1395
- $fields = explode('*:*new_field*:*', $row->form_fields);
1396
- $fields = array_slice($fields, 0, count($fields) - 1);
1397
- foreach ($fields as $field) {
1398
- $temp = explode('*:*id*:*', $field);
1399
- array_push($ids, $temp[0]);
1400
- $temp = explode('*:*type*:*', $temp[1]);
1401
- array_push($types, $temp[0]);
1402
- $temp = explode('*:*w_field_label*:*', $temp[1]);
1403
- array_push($labels, $temp[0]);
1404
- }
1405
- ?>
1406
- <script>
1407
- var form_front = '<?php echo addslashes($row->form_front);?>';
1408
- var custom_front = '<?php echo addslashes($row->custom_front);?>';
1409
- if (custom_front == '') {
1410
- custom_front = form_front;
1411
- }
1412
- function submitbutton() {
1413
- if (jQuery('#autogen_layout').is(':checked')) {
1414
- jQuery('#custom_front').val(custom_front.replace(/\s+/g, ' ').replace(/> </g, '><'));
1415
- }
1416
- else {
1417
- jQuery('#custom_front').val(editor.getValue().replace(/\s+/g, ' ').replace(/> </g, '><'));
1418
- }
1419
- }
1420
- function insertAtCursor_form(myId, myLabel) {
1421
- if (jQuery('#autogen_layout').is(':checked')) {
1422
- alert("Uncheck the Auto-Generate Layout box.");
1423
- return;
1424
- }
1425
- myValue = '<div wdid="' + myId + '" class="wdform_row">%' + myId + ' - ' + myLabel + '%</div>';
1426
- line = editor.getCursor().line;
1427
- ch = editor.getCursor().ch;
1428
- text = editor.getLine(line);
1429
- text1 = text.substr(0, ch);
1430
- text2 = text.substr(ch);
1431
- text = text1 + myValue + text2;
1432
- editor.setLine(line, text);
1433
- editor.focus();
1434
- }
1435
- function autogen(status) {
1436
- if (status) {
1437
- custom_front = editor.getValue();
1438
- editor.setValue(form_front);
1439
- editor.setOption('readOnly', true);
1440
- autoFormat();
1441
- }
1442
- else {
1443
- editor.setValue(custom_front);
1444
- editor.setOption('readOnly', false);
1445
- autoFormat();
1446
- }
1447
- }
1448
- function autoFormat() {
1449
- CodeMirror.commands["selectAll"](editor);
1450
- editor.autoFormatRange(editor.getCursor(true), editor.getCursor(false));
1451
- editor.scrollTo(0,0);
1452
- }
1453
- </script>
1454
-
1455
- <div class="fm_layout" style="width: 99%;">
1456
- <form action="admin.php?page=manage_cfm" method="post" name="adminForm" enctype="multipart/form-data">
1457
- <div class="buttons_div">
1458
- <input class="button-secondary" type="submit" onclick="submitbutton(); spider_set_input_value('task', 'save_layout')" value="Save"/>
1459
- <input class="button-secondary" type="submit" onclick="submitbutton(); spider_set_input_value('task', 'apply_layout')" value="Apply"/>
1460
- <input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'cancel_options')" value="Cancel"/>
1461
- </div>
1462
- <h2 style="clear: both;">Description</h2>
1463
- <p>To customize the layout of the form fields uncheck the Auto-Generate Layout box and edit the HTML.</p>
1464
- <p>You can change positioning, add in-line styles and etc. Click on the provided buttons to add the corresponding field.<br /> This will add the following line:
1465
- <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>
1466
- , where <b><span class="cm-tag">&lt;div&gt;</span></b> is used to set a row.</p>
1467
- <p>To return to the default settings you should check Auto-Generate Layout box.</p>
1468
- <h3 style="color:red">Notice</h3>
1469
- <p>Make sure not to publish the same field twice. This will cause malfunctioning of the form.</p>
1470
- <hr/>
1471
- <label for="autogen_layout" style="font-size: 20px; line-height: 45px; margin-left: 10px;">Auto Generate Layout? </label>
1472
- <input type="checkbox" value="1" name="autogen_layout" id="autogen_layout" <?php echo (($row->autogen_layout) ? 'checked="checked"' : ''); ?> />
1473
- <input type="hidden" name="custom_front" id="custom_front" value="" />
1474
-
1475
- <input type="hidden" id="task" name="task" value=""/>
1476
- <input type="hidden" id="current_id" name="current_id" value="<?php echo $row->id; ?>" />
1477
- </form>
1478
- <br/>
1479
- <?php
1480
- foreach($ids as $key => $id) {
1481
- if ($types[$key] != "type_section_break") {
1482
- ?>
1483
- <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>
1484
- <?php
1485
- }
1486
- }
1487
- ?>
1488
- <br /><br />
1489
- <button class="fm_submit_layout button button-secondary button-hero" onclick="autoFormat()"><strong>Apply Source Formatting</strong> <em>(ctrl-enter)</em></button>
1490
- <textarea id="source" name="source" style="display: none;"></textarea>
1491
- </div>
1492
- <script>
1493
- var editor = CodeMirror.fromTextArea(document.getElementById("source"), {
1494
- lineNumbers: true,
1495
- lineWrapping: true,
1496
- mode: "htmlmixed",
1497
- value: form_front
1498
- });
1499
- if (jQuery('#autogen_layout').is(':checked')) {
1500
- editor.setOption('readOnly', true);
1501
- editor.setValue(form_front);
1502
- }
1503
- else {
1504
- editor.setOption('readOnly', false);
1505
- editor.setValue(custom_front);
1506
- }
1507
- jQuery('#autogen_layout').click(function() {
1508
- autogen(jQuery(this).is(':checked'));
1509
- });
1510
- autoFormat();
1511
- </script>
1512
- <?php
1513
- }
1514
-
1515
- ////////////////////////////////////////////////////////////////////////////////////////
1516
- // Getters & Setters //
1517
- ////////////////////////////////////////////////////////////////////////////////////////
1518
- ////////////////////////////////////////////////////////////////////////////////////////
1519
- // Private Methods //
1520
- ////////////////////////////////////////////////////////////////////////////////////////
1521
- ////////////////////////////////////////////////////////////////////////////////////////
1522
- // Listeners //
1523
- ////////////////////////////////////////////////////////////////////////////////////////
1524
  }
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 style="clear: both; float: left; width: 99%;">
36
+ <div style="float: left; font-size: 14px; font-weight: bold;">
37
+ This section allows you to edit forms.
38
+ <a style="color: blue; text-decoration: none;" target="_blank" href="http://web-dorado.com/wordpress-contact-form-builder-guide-2.html">Read More in User Manual</a>
39
+ <p>There is no possibility of adding new form fields, whereas you can edit, enable/disable the current fields included in each form.</p>
40
+ </div>
41
+ <div style="float: right; text-align: right;">
42
+ <a style="text-decoration: none;" target="_blank" href="http://web-dorado.com/files/fromContactFormBuilder.php">
43
+ <img width="215" border="0" alt="web-dorado.com" src="<?php echo WD_CFM_URL . '/images/wd_logo.png'; ?>" />
44
+ </a>
45
+ </div>
46
+ </div>
47
+ <form onkeypress="spider_doNothing(event)" class="wrap" id="manage_form" method="post" action="admin.php?page=manage_cfm" style="float: left; width: 99%;">
48
+ <span class="form_maker_icon"></span>
49
+ <h2>Contact Form Builder</h2>
50
+ <div class="tablenav top">
51
+ <?php
52
+ WDW_CFM_Library::search('Title', $search_value, 'manage_form');
53
+ WDW_CFM_Library::html_page_nav($page_nav['total'], $page_nav['limit'], 'manage_form');
54
+ ?>
55
+ </div>
56
+ <table class="wp-list-table widefat fixed pages">
57
+ <thead>
58
+ <th class="manage-column column-cb check-column table_small_col"><input id="check_all" type="checkbox" style="margin:0;"/></th>
59
+ <th class="table_small_col <?php if ($order_by == 'id') { echo $order_class; } ?>">
60
+ <a onclick="spider_set_input_value('task', '');
61
+ spider_set_input_value('order_by', 'id');
62
+ 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'); ?>');
63
+ spider_form_submit(event, 'manage_form')" href="">
64
+ <span>ID</span><span class="sorting-indicator"></span></a>
65
+ </th>
66
+ <th class="<?php if ($order_by == 'title') { echo $order_class; } ?>">
67
+ <a onclick="spider_set_input_value('task', '');
68
+ spider_set_input_value('order_by', 'title');
69
+ 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'); ?>');
70
+ spider_form_submit(event, 'manage_form')" href="">
71
+ <span>Title</span><span class="sorting-indicator"></span></a>
72
+ </th>
73
+ <th class="<?php if ($order_by == 'mail') { echo $order_class; } ?>">
74
+ <a onclick="spider_set_input_value('task', '');
75
+ spider_set_input_value('order_by', 'mail');
76
+ 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'); ?>');
77
+ spider_form_submit(event, 'manage_form')" href="">
78
+ <span>Email to send submissions to</span><span class="sorting-indicator"></span></a>
79
+ </th>
80
+ <th class="table_xxl_col">Shortcode</th>
81
+ <th class="table_big_col">Preview</th>
82
+ <th class="table_big_col">Edit</th>
83
+ <th class="table_big_col"><a title="Delete selected items" href="" onclick="if (confirm('Do you want to delete selected items?')) {
84
+ spider_set_input_value('task', 'delete_all');
85
+ spider_form_submit(event, 'manage_form');
86
+ } else {
87
+ return false;
88
+ }">Delete</a></th>
89
+ </thead>
90
+ <tbody id="tbody_arr">
91
+ <?php
92
+ if ($rows_data) {
93
+ foreach ($rows_data as $row_data) {
94
+ $alternate = (!isset($alternate) || $alternate == 'class="alternate"') ? '' : 'class="alternate"';
95
+ $old = '';
96
+ if (isset($row_data->form) && ($row_data->form != '')) {
97
+ $old = '_old';
98
+ }
99
+ ?>
100
+ <tr id="tr_<?php echo $row_data->id; ?>" <?php echo $alternate; ?>>
101
+ <td class="table_small_col check-column">
102
+ <input id="check_<?php echo $row_data->id; ?>" name="check_<?php echo $row_data->id; ?>" type="checkbox"/>
103
+ </td>
104
+ <td class="table_small_col"><?php echo $row_data->id; ?></td>
105
+ <td>
106
+ <a onclick="spider_set_input_value('task', 'edit<?php echo $old; ?>');
107
+ spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
108
+ spider_form_submit(event, 'manage_form')" href="" title="Edit"><?php echo $row_data->title; ?></a>
109
+ </td>
110
+ <td><?php echo $row_data->mail; ?></td>
111
+ <td class="table_xxl_col" style="padding-left: 0; padding-right: 0;">
112
+ <input type="text" value='[Contact_Form_Builder id="<?php echo $row_data->id; ?>"]' onclick="spider_select_value(this)" size="29" readonly="readonly" style="padding-left: 1px; padding-right: 1px;"/>
113
+ </td>
114
+ <td class="table_big_col">
115
+ <a href="<?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')); ?>" class="thickbox thickbox-preview" title="Form Preview" onclick="return false;">
116
+ Preview
117
+ </a>
118
+ </td>
119
+ <td class="table_big_col">
120
+ <a onclick="spider_set_input_value('task', 'edit<?php echo $old; ?>');
121
+ spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
122
+ spider_form_submit(event, 'manage_form')" href="">Edit</a>
123
+ </td>
124
+ <td class="table_big_col">
125
+ <a onclick="spider_set_input_value('task', 'delete');
126
+ spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
127
+ spider_form_submit(event, 'manage_form')" href="">Delete</a>
128
+ </td>
129
+ </tr>
130
+ <?php
131
+ $ids_string .= $row_data->id . ',';
132
+ }
133
+ }
134
+ ?>
135
+ </tbody>
136
+ </table>
137
+ <input id="task" name="task" type="hidden" value=""/>
138
+ <input id="current_id" name="current_id" type="hidden" value=""/>
139
+ <input id="ids_string" name="ids_string" type="hidden" value="<?php echo $ids_string; ?>"/>
140
+ <input id="asc_or_desc" name="asc_or_desc" type="hidden" value="asc"/>
141
+ <input id="order_by" name="order_by" type="hidden" value="<?php echo $order_by; ?>"/>
142
+ </form>
143
+ <?php
144
+ }
145
+
146
+ public function edit($id) {
147
+ $row = $this->model->get_row_data($id);
148
+ $labels = array();
149
+ $label_id = array();
150
+ $label_order_original = array();
151
+ $label_type = array();
152
+ $label_all = explode('#****#', $row->label_order);
153
+ $label_all = array_slice($label_all, 0, count($label_all) - 1);
154
+ foreach ($label_all as $key => $label_each) {
155
+ $label_id_each = explode('#**id**#', $label_each);
156
+ array_push($label_id, $label_id_each[0]);
157
+ $label_oder_each = explode('#**label**#', $label_id_each[1]);
158
+ array_push($label_order_original, addslashes($label_oder_each[0]));
159
+ array_push($label_type, $label_oder_each[1]);
160
+ }
161
+ $labels['id'] = '"' . implode('","', $label_id) . '"';
162
+ $labels['label'] = '"' . implode('","', $label_order_original) . '"';
163
+ $labels['type'] = '"' . implode('","', $label_type) . '"';
164
+ $page_title = (($id != 0) ? 'Edit form ' . $row->title : 'Create new form');
165
+ ?>
166
+ <script type="text/javascript">
167
+ var contact_form_maker_plugin_url = "<?php echo WD_CFM_URL; ?>";
168
+ </script>
169
+ <script type="text/javascript">
170
+ form_view = 1;
171
+ form_view_count = 1;
172
+ form_view_max = 1;
173
+ function submitbutton() {
174
+ <?php
175
+ if ($id) {
176
+ ?>
177
+ if (!document.getElementById('araqel') || (document.getElementById('araqel').value == '0')) {
178
+ alert('Please wait while page loading.');
179
+ return false;
180
+ }
181
+ <?php
182
+ }
183
+ ?>
184
+ tox = '';
185
+ form_fields = '';
186
+ disabled_ids = '';
187
+ l_id_array = [<?php echo $labels['id']?>];
188
+ l_label_array = [<?php echo $labels['label']?>];
189
+ l_type_array = [<?php echo $labels['type']?>];
190
+ l_id_removed = [];
191
+ document.getElementById('take').style.display = "none";
192
+ document.getElementById('saving').style.display = "block";
193
+ remove_whitespace(document.getElementById('take'));
194
+ for (x = 0; x < l_id_array.length; x++) {
195
+ l_id_removed[l_id_array[x]] = true;
196
+ }
197
+ if (document.getElementById('form_id_tempform_view1')) {
198
+ wdform_page = document.getElementById('form_id_tempform_view1');
199
+ remove_whitespace(wdform_page);
200
+ n = wdform_page.childNodes.length - 2;
201
+ for (q = 0; q <= n; q++) {
202
+ if (!wdform_page.childNodes[q].getAttribute("wdid")) {
203
+ wdform_section = wdform_page.childNodes[q];
204
+ for (x = 0; x < wdform_section.childNodes.length; x++) {
205
+ wdform_column = wdform_section.childNodes[x];
206
+ if (wdform_column.firstChild) {
207
+ for (y=0; y < wdform_column.childNodes.length; y++) {
208
+ is_in_old = false;
209
+ wdform_row = wdform_column.childNodes[y];
210
+ if (wdform_row.nodeType == 3) {
211
+ continue;
212
+ }
213
+ wdid = wdform_row.getAttribute("wdid");
214
+ if (!wdid) {
215
+ continue;
216
+ }
217
+ l_id = wdid;
218
+ l_label = document.getElementById(wdid + '_element_labelform_id_temp').innerHTML;
219
+ l_label = l_label.replace(/(\r\n|\n|\r)/gm," ");
220
+ wdtype = wdform_row.firstChild.getAttribute('type');
221
+ if (wdform_row.getAttribute("disabled")) {
222
+ if (wdtype != "type_address") {
223
+ disabled_ids += wdid + ',';
224
+ }
225
+ else {
226
+ disabled_ids += wdid + ',' + (parseInt(wdid)+1) + ','+(parseInt(wdid)+2)+ ',' +(parseInt(wdid)+3)+ ',' +(parseInt(wdid)+4)+ ','+(parseInt(wdid)+5) + ',';
227
+ }
228
+ }
229
+ for (z = 0; z < l_id_array.length; z++) {
230
+ if (l_id_array[z] == wdid) {
231
+ if (l_type_array[z] == "type_address") {
232
+ if (document.getElementById(l_id + "_mini_label_street1")) {
233
+ l_id_removed[l_id_array[z]] = false;
234
+ }
235
+ if (document.getElementById(l_id + "_mini_label_street2")) {
236
+ l_id_removed[parseInt(l_id_array[z]) + 1] = false;
237
+ }
238
+ if (document.getElementById(l_id + "_mini_label_city")) {
239
+ l_id_removed[parseInt(l_id_array[z]) + 2] = false;
240
+ }
241
+ if (document.getElementById(l_id + "_mini_label_state")) {
242
+ l_id_removed[parseInt(l_id_array[z]) + 3] = false;
243
+ }
244
+ if (document.getElementById(l_id+"_mini_label_postal")) {
245
+ l_id_removed[parseInt(l_id_array[z]) + 4] = false;
246
+ }
247
+ if (document.getElementById(l_id+"_mini_label_country")) {
248
+ l_id_removed[parseInt(l_id_array[z]) + 5] = false;
249
+ }
250
+ z = z + 5;
251
+ }
252
+ else {
253
+ l_id_removed[l_id] = false;
254
+ }
255
+ }
256
+ }
257
+ if (wdtype == "type_address") {
258
+ addr_id = parseInt(wdid);
259
+ id_for_country = addr_id;
260
+ if (document.getElementById(id_for_country + "_mini_label_street1"))
261
+ tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_street1").innerHTML + '#**label**#type_address#****#';
262
+ addr_id++;
263
+ if (document.getElementById(id_for_country + "_mini_label_street2"))
264
+ tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_street2").innerHTML + '#**label**#type_address#****#';
265
+ addr_id++;
266
+ if (document.getElementById(id_for_country+"_mini_label_city"))
267
+ tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_city").innerHTML + '#**label**#type_address#****#';
268
+ addr_id++;
269
+ if (document.getElementById(id_for_country + "_mini_label_state"))
270
+ tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_state").innerHTML + '#**label**#type_address#****#';
271
+ addr_id++;
272
+ if (document.getElementById(id_for_country + "_mini_label_postal"))
273
+ tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_postal").innerHTML + '#**label**#type_address#****#';
274
+ addr_id++;
275
+ if (document.getElementById(id_for_country+"_mini_label_country")) {
276
+ tox=tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_country").innerHTML + '#**label**#type_address#****#';
277
+ }
278
+ }
279
+ else {
280
+ tox = tox + wdid + '#**id**#' + l_label + '#**label**#' + wdtype + '#****#';
281
+ }
282
+ id = wdid;
283
+ form_fields += wdid + "*:*id*:*";
284
+ form_fields += wdtype + "*:*type*:*";
285
+ w_choices = new Array();
286
+ w_choices_checked = new Array();
287
+ w_choices_disabled = new Array();
288
+ w_allow_other_num = 0;
289
+ w_property = new Array();
290
+ w_property_type = new Array();
291
+ w_property_values = new Array();
292
+ w_choices_price = new Array();
293
+ if (document.getElementById(id+'_element_labelform_id_temp').innerHTML) {
294
+ w_field_label = document.getElementById(id + '_element_labelform_id_temp').innerHTML.replace(/(\r\n|\n|\r)/gm," ");
295
+ }
296
+ else {
297
+ w_field_label = " ";
298
+ }
299
+ if (document.getElementById(id + '_label_sectionform_id_temp')) {
300
+ if (document.getElementById(id + '_label_sectionform_id_temp').style.display == "block") {
301
+ w_field_label_pos = "top";
302
+ }
303
+ else {
304
+ w_field_label_pos = "left";
305
+ }
306
+ }
307
+ if (document.getElementById(id + "_elementform_id_temp")) {
308
+ s = document.getElementById(id + "_elementform_id_temp").style.width;
309
+ w_size=s.substring(0,s.length - 2);
310
+ }
311
+ if (document.getElementById(id + "_label_sectionform_id_temp")) {
312
+ s = document.getElementById(id + "_label_sectionform_id_temp").style.width;
313
+ w_field_label_size = s.substring(0, s.length - 2);
314
+ }
315
+ if (document.getElementById(id + "_requiredform_id_temp")) {
316
+ w_required = document.getElementById(id + "_requiredform_id_temp").value;
317
+ }
318
+ if (document.getElementById(id + "_uniqueform_id_temp")) {
319
+ w_unique = document.getElementById(id + "_uniqueform_id_temp").value;
320
+ }
321
+ if (document.getElementById(id + '_label_sectionform_id_temp')) {
322
+ w_class = document.getElementById(id + '_label_sectionform_id_temp').getAttribute("class");
323
+ if (!w_class) {
324
+ w_class = "";
325
+ }
326
+ }
327
+ gen_form_fields();
328
+ wdform_row.innerHTML = "%" + id + " - " + l_label + "%";
329
+ }
330
+ }
331
+ }
332
+ }
333
+ else {
334
+ id = wdform_page.childNodes[q].getAttribute("wdid");
335
+ if (wdform_page.childNodes[q].getAttribute("disabled")) {
336
+ disabled_ids += id + ',';
337
+ }
338
+ w_editor = document.getElementById(id + "_element_sectionform_id_temp").innerHTML;
339
+ form_fields += id + "*:*id*:*";
340
+ form_fields += "type_section_break" + "*:*type*:*";
341
+ form_fields += "custom_" + id + "*:*w_field_label*:*";
342
+ form_fields += w_editor + "*:*w_editor*:*";
343
+ form_fields += "*:*new_field*:*";
344
+ wdform_page.childNodes[q].innerHTML = "%" + id + " - " + "custom_" + id + "%";
345
+ }
346
+ }
347
+ }
348
+ document.getElementById('disabled_fields').value = disabled_ids;
349
+ document.getElementById('label_order_current').value = tox;
350
+ for (x = 0; x < l_id_array.length; x++) {
351
+ if (l_id_removed[l_id_array[x]]) {
352
+ tox = tox + l_id_array[x] + '#**id**#' + l_label_array[x] + '#**label**#' + l_type_array[x] + '#****#';
353
+ }
354
+ }
355
+ document.getElementById('label_order').value = tox;
356
+ document.getElementById('form_fields').value = form_fields;
357
+ refresh_();
358
+ return true;
359
+ }
360
+
361
+ gen = <?php echo (($id != 0) ? $row->counter : 1); ?>;
362
+
363
+ function enable() {
364
+ if (document.getElementById('formMakerDiv').style.display == 'block') {
365
+ jQuery('#formMakerDiv').slideToggle(200);}else{jQuery('#formMakerDiv').slideToggle(400);
366
+ }
367
+ if (document.getElementById('formMakerDiv').offsetWidth) {
368
+ document.getElementById('formMakerDiv1').style.width = (document.getElementById('formMakerDiv').offsetWidth - 60) + 'px';
369
+ }
370
+ if (document.getElementById('formMakerDiv1').style.display == 'block') {
371
+ jQuery('#formMakerDiv1').slideToggle(200);
372
+ }
373
+ else {
374
+ jQuery('#formMakerDiv1').slideToggle(400);
375
+ }
376
+ }
377
+ function enable2() {
378
+ if (document.getElementById('formMakerDiv').style.display == 'block') {
379
+ jQuery('#formMakerDiv').slideToggle(200);
380
+ }
381
+ else {
382
+ jQuery('#formMakerDiv').slideToggle(400);
383
+ }
384
+ if (document.getElementById('formMakerDiv').offsetWidth) {
385
+ document.getElementById('formMakerDiv1').style.width = (document.getElementById('formMakerDiv').offsetWidth - 60) + 'px';
386
+ }
387
+ if (document.getElementById('formMakerDiv1').style.display == 'block') {
388
+ jQuery('#formMakerDiv1').slideToggle(200);
389
+ }
390
+ else {
391
+ jQuery('#formMakerDiv1').slideToggle(400);
392
+ }
393
+ }
394
+ </script>
395
+ <div style="clear: both; float: left; width: 99%;">
396
+ <div style="float: left; font-size: 14px; font-weight: bold;">
397
+ This section allows you to enable/disable fields in your form.
398
+ <a style="color: blue; text-decoration: none;" target="_blank" href="http://web-dorado.com/wordpress-contact-form-builder-guide-4.html">Read More in User Manual</a>
399
+ </div>
400
+ <div style="float: right; text-align: right;">
401
+ <a style="text-decoration: none;" target="_blank" href="http://web-dorado.com/files/fromContactFormBuilder.php">
402
+ <img width="215" border="0" alt="web-dorado.com" src="<?php echo WD_CFM_URL . '/images/wd_logo.png'; ?>" />
403
+ </a>
404
+ </div>
405
+ </div>
406
+ <form class="wrap" id="manage_form" method="post" action="admin.php?page=manage_cfm" style="float: left; width: 99%;">
407
+ <h2><?php echo $page_title; ?></h2>
408
+ <div style="float: right; margin: 0 5px 0 0;">
409
+ <input class="button-primary" type="submit" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'form_options');" value="Form Options"/>
410
+ <input class="button-primary" type="submit" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'form_layout');" value="Form Layout"/>
411
+ <?php
412
+ if ($id) {
413
+ ?>
414
+ <input class="button-secondary" type="submit" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'save_as_copy')" value="Save as Copy"/>
415
+ <?php
416
+ }
417
+ ?>
418
+ <input class="button-secondary" type="submit" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'save')" value="Save"/>
419
+ <input class="button-secondary" type="submit" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'apply');" value="Apply"/>
420
+ <input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'cancel')" value="Cancel"/>
421
+ </div>
422
+
423
+ <div class="formmaker_table">
424
+ <div style="float: left;">
425
+ <span class="cfm_logo cfm_black">Contact</span><span class="cfm_logo cfm_white">Form</span><span class="cfm_logo cfm_black">Builder</span><br /><br />
426
+ <img src="<?php echo WD_CFM_URL . '/images/contact_form_maker_logo48.png'; ?>" />
427
+ </div>
428
+ <div style="float: right;">
429
+ <span style="font-size: 16.76pt; font-family: tahoma; color: #FFFFFF; vertical-align: middle;">Form title:&nbsp;&nbsp;</span>
430
+ <input id="title" name="title" class="form_maker_title" value="<?php echo $row->title; ?>" />
431
+ <br /><br />
432
+ <img src="<?php echo WD_CFM_URL . '/images/formoptions.png'; ?>" onclick="if (spider_check_required('title', 'Form title') || !submitbutton()) {return false;}; spider_set_input_value('task', 'form_options'); spider_form_submit(event, 'manage_form');" style="cursor: pointer; margin: 10px 0 10px 10px; float: right;"/>
433
+ </div>
434
+ </div>
435
+
436
+ <div id="formMakerDiv" onclick="close_window()"></div>
437
+ <div id="formMakerDiv1" style="padding-top: 20px;" align="center">
438
+ <table border="0" width="100%" cellpadding="0" cellspacing="0" height="100%" style="border: 6px #00aeef solid; background-color: #FFF;">
439
+ <tr>
440
+ <td style="padding:0px">
441
+ <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
442
+ <tr valign="top">
443
+ <td width="50%" height="100%" align="left">
444
+ <div id="edit_table" style="padding:0px; overflow-y:scroll; height:535px"></div>
445
+ </td>
446
+ <td align="center" valign="top" style="background: url("<?php echo WD_CFM_URL . '/images/border2.png'; ?>") repeat-y;">&nbsp;</td>
447
+ <td style="padding:15px">
448
+ <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
449
+ <tr>
450
+ <td align="right">
451
+ <img alt="ADD" title="add" style="cursor:pointer; vertical-align:middle; margin:5px" src="<?php echo WD_CFM_URL . '/images/save.png'; ?>" onClick="add(0)"/>
452
+ <img alt="CANCEL" title="cancel" style="cursor: pointer; vertical-align:middle; margin:5px" src="<?php echo WD_CFM_URL . '/images/cancel_but.png'; ?>" onClick="close_window()"/>
453
+ <hr style=" margin-bottom:10px" />
454
+ </td>
455
+ </tr>
456
+ <tr height="100%" valign="top">
457
+ <td id="show_table"></td>
458
+ </tr>
459
+ </table>
460
+ </td>
461
+ </tr>
462
+ </table>
463
+ </td>
464
+ </tr>
465
+ </table>
466
+ <input type="hidden" id="old" />
467
+ <input type="hidden" id="old_selected" />
468
+ <input type="hidden" id="element_type" />
469
+ <input type="hidden" id="editing_id" />
470
+ <input type="hidden" value="<?php echo WD_CFM_URL; ?>" id="form_plugins_url" />
471
+ <div id="main_editor" style="position: absolute; display: none; z-index: 140;">
472
+ <?php
473
+ if (user_can_richedit()) {
474
+ wp_editor('', 'form_maker_editor', array('teeny' => FALSE, 'textarea_name' => 'form_maker_editor', 'media_buttons' => FALSE, 'textarea_rows' => 5));
475
+ }
476
+ else {
477
+ ?>
478
+ <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>
479
+ <?php
480
+ }
481
+ ?>
482
+ </div>
483
+ </div>
484
+ <?php
485
+ if (!function_exists('the_editor')) {
486
+ ?>
487
+ <iframe id="tinymce" style="display: none;"></iframe>
488
+ <?php
489
+ }
490
+ ?>
491
+ <br /><br />
492
+ <fieldset>
493
+ <legend><h2 style="color: #00aeef;">Form</h2></legend>
494
+ <div id="saving" style="display: none;">
495
+ <div id="saving_text">Saving</div>
496
+ <div id="fadingBarsG">
497
+ <div id="fadingBarsG_1" class="fadingBarsG"></div>
498
+ <div id="fadingBarsG_2" class="fadingBarsG"></div>
499
+ <div id="fadingBarsG_3" class="fadingBarsG"></div>
500
+ <div id="fadingBarsG_4" class="fadingBarsG"></div>
501
+ <div id="fadingBarsG_5" class="fadingBarsG"></div>
502
+ <div id="fadingBarsG_6" class="fadingBarsG"></div>
503
+ <div id="fadingBarsG_7" class="fadingBarsG"></div>
504
+ <div id="fadingBarsG_8" class="fadingBarsG"></div>
505
+ </div>
506
+ </div>
507
+ <?php
508
+ if ($id) {
509
+ ?>
510
+ <div id="take">
511
+ <?php
512
+ echo $row->form_front;
513
+ ?>
514
+ </div>
515
+ <?php
516
+ }
517
+ ?>
518
+ </fieldset>
519
+ <input type="hidden" name="form_front" id="form_front" />
520
+ <input type="hidden" name="form_fields" id="form_fields" />
521
+ <input type="hidden" name="public_key" id="public_key" />
522
+ <input type="hidden" name="private_key" id="private_key" />
523
+ <input type="hidden" name="recaptcha_theme" id="recaptcha_theme" />
524
+ <input type="hidden" id="label_order" name="label_order" value="<?php echo $row->label_order; ?>" />
525
+ <input type="hidden" id="label_order_current" name="label_order_current" value="<?php echo $row->label_order_current; ?>" />
526
+ <input type="hidden" name="counter" id="counter" value="<?php echo $row->counter; ?>" />
527
+ <input type="hidden" id="araqel" value="0" />
528
+ <input type="hidden" name="disabled_fields" id="disabled_fields" value="<?php echo $row->disabled_fields; ?>">
529
+ <?php
530
+ if ($id) {
531
+ ?>
532
+ <script type="text/javascript">
533
+ function formOnload() {
534
+ for (t = 0; t < <?php echo $row->counter; ?>; t++) {
535
+ if (document.getElementById("wdform_field" + t)) {
536
+ if (document.getElementById("wdform_field" + t).parentNode.getAttribute("disabled")) {
537
+ if (document.getElementById("wdform_field" + t).getAttribute("type") != 'type_section_break') {
538
+ document.getElementById("wdform_field" + t).style.cssText = 'display: table-cell;';
539
+ }
540
+ document.getElementById("disable_field" + t).checked = false;
541
+ document.getElementById("disable_field" + t).setAttribute("title", "Enable the field");
542
+ document.getElementById("wdform_field" + t).parentNode.style.cssText = 'opacity: 0.4;';
543
+ }
544
+ else {
545
+ document.getElementById( "disable_field" + t).checked = true;
546
+ }
547
+ }
548
+ }
549
+ for (t = 0; t < <?php echo $row->counter; ?>; t++) {
550
+ if (document.getElementById(t + "_typeform_id_temp")) {
551
+ if (document.getElementById(t + "_typeform_id_temp").value == "type_map") {
552
+ if_gmap_init(t);
553
+ for (q = 0; q < 20; q++) {
554
+ if (document.getElementById(t + "_elementform_id_temp").getAttribute("long" + q)) {
555
+ w_long = parseFloat(document.getElementById(t + "_elementform_id_temp").getAttribute("long" + q));
556
+ w_lat = parseFloat(document.getElementById(t + "_elementform_id_temp").getAttribute("lat" + q));
557
+ w_info = parseFloat(document.getElementById(t + "_elementform_id_temp").getAttribute("info" + q));
558
+ add_marker_on_map(t, q, w_long, w_lat, w_info, false);
559
+ }
560
+ }
561
+ }
562
+ else if (document.getElementById(t + "_typeform_id_temp").value == "type_name") {
563
+ var myu = t;
564
+ jQuery(document).ready(function() {
565
+ jQuery("#" + myu + "_mini_label_first").click(function() {
566
+ if (jQuery(this).children('input').length == 0) {
567
+ var first = "<input type='text' id='first' class='first' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
568
+ jQuery(this).html(first);
569
+ jQuery("input.first").focus();
570
+ jQuery("input.first").blur(function() {
571
+ var id_for_blur = document.getElementById('first').parentNode.id.split('_');
572
+ var value = jQuery(this).val();
573
+ jQuery("#" + id_for_blur[0] + "_mini_label_first").text(value);
574
+ });
575
+ }
576
+ });
577
+ jQuery("label#" + myu + "_mini_label_last").click(function() {
578
+ if (jQuery(this).children('input').length == 0) {
579
+ var last = "<input type='text' id='last' class='last' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
580
+ jQuery(this).html(last);
581
+ jQuery("input.last").focus();
582
+ jQuery("input.last").blur(function() {
583
+ var id_for_blur = document.getElementById('last').parentNode.id.split('_');
584
+ var value = jQuery(this).val();
585
+ jQuery("#" + id_for_blur[0] + "_mini_label_last").text(value);
586
+ });
587
+ }
588
+ });
589
+ jQuery("label#" + myu + "_mini_label_title").click(function() {
590
+ if (jQuery(this).children('input').length == 0) {
591
+ var title_ = "<input type='text' id='title_' class='title_' style='outline:none; border:none; background:none; width:50px;' value=\""+jQuery(this).text()+"\">";
592
+ jQuery(this).html(title_);
593
+ jQuery("input.title_").focus();
594
+ jQuery("input.title_").blur(function() {
595
+ var id_for_blur = document.getElementById('title_').parentNode.id.split('_');
596
+ var value = jQuery(this).val();
597
+ jQuery("#" + id_for_blur[0] + "_mini_label_title").text(value);
598
+ });
599
+ }
600
+ });
601
+ jQuery("label#" + myu + "_mini_label_middle").click(function() {
602
+ if (jQuery(this).children('input').length == 0) {
603
+ var middle = "<input type='text' id='middle' class='middle' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
604
+ jQuery(this).html(middle);
605
+ jQuery("input.middle").focus();
606
+ jQuery("input.middle").blur(function() {
607
+ var id_for_blur = document.getElementById('middle').parentNode.id.split('_');
608
+ var value = jQuery(this).val();
609
+ jQuery("#"+id_for_blur[0]+"_mini_label_middle").text(value);
610
+ });
611
+ }
612
+ });
613
+ });
614
+ }
615
+ else if (document.getElementById(t + "_typeform_id_temp").value == "type_phone") {
616
+ var myu = t;
617
+ jQuery(document).ready(function() {
618
+ jQuery("label#"+myu+"_mini_label_area_code").click(function() {
619
+ if (jQuery(this).children('input').length == 0) {
620
+ 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()+"\">";
621
+ jQuery(this).html(area_code);
622
+ jQuery("input.area_code").focus();
623
+ jQuery("input.area_code").blur(function() {
624
+ var id_for_blur = document.getElementById('area_code').parentNode.id.split('_');
625
+ var value = jQuery(this).val();
626
+ jQuery("#"+id_for_blur[0]+"_mini_label_area_code").text(value);
627
+ });
628
+ }
629
+ });
630
+ jQuery("label#"+myu+"_mini_label_phone_number").click(function() {
631
+ if (jQuery(this).children('input').length == 0) {
632
+ var phone_number = "<input type='text' id='phone_number' class='phone_number' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
633
+ jQuery(this).html(phone_number);
634
+ jQuery("input.phone_number").focus();
635
+ jQuery("input.phone_number").blur(function() {
636
+ var id_for_blur = document.getElementById('phone_number').parentNode.id.split('_');
637
+ var value = jQuery(this).val();
638
+ jQuery("#"+id_for_blur[0]+"_mini_label_phone_number").text(value);
639
+ });
640
+ }
641
+ });
642
+ });
643
+ }
644
+ else if (document.getElementById(t+"_typeform_id_temp").value == "type_address") {
645
+ var myu = t;
646
+ jQuery(document).ready(function() {
647
+ jQuery("label#"+myu+"_mini_label_street1").click(function() {
648
+ if (jQuery(this).children('input').length == 0) {
649
+ var street1 = "<input type='text' id='street1' class='street1' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
650
+ jQuery(this).html(street1);
651
+ jQuery("input.street1").focus();
652
+ jQuery("input.street1").blur(function() {
653
+ var id_for_blur = document.getElementById('street1').parentNode.id.split('_');
654
+ var value = jQuery(this).val();
655
+ jQuery("#"+id_for_blur[0]+"_mini_label_street1").text(value);
656
+ });
657
+ }
658
+ });
659
+ jQuery("label#"+myu+"_mini_label_street2").click(function() {
660
+ if (jQuery(this).children('input').length == 0) {
661
+ var street2 = "<input type='text' id='street2' class='street2' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
662
+ jQuery(this).html(street2);
663
+ jQuery("input.street2").focus();
664
+ jQuery("input.street2").blur(function() {
665
+ var id_for_blur = document.getElementById('street2').parentNode.id.split('_');
666
+ var value = jQuery(this).val();
667
+ jQuery("#"+id_for_blur[0]+"_mini_label_street2").text(value);
668
+ });
669
+ }
670
+ });
671
+ jQuery("label#"+myu+"_mini_label_city").click(function() {
672
+ if (jQuery(this).children('input').length == 0) {
673
+ var city = "<input type='text' id='city' class='city' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
674
+ jQuery(this).html(city);
675
+ jQuery("input.city").focus();
676
+ jQuery("input.city").blur(function() {
677
+ var id_for_blur = document.getElementById('city').parentNode.id.split('_');
678
+ var value = jQuery(this).val();
679
+ jQuery("#"+id_for_blur[0]+"_mini_label_city").text(value);
680
+ });
681
+ }
682
+ });
683
+ jQuery("label#"+myu+"_mini_label_state").click(function() {
684
+ if (jQuery(this).children('input').length == 0) {
685
+ var state = "<input type='text' id='state' class='state' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
686
+ jQuery(this).html(state);
687
+ jQuery("input.state").focus();
688
+ jQuery("input.state").blur(function() {
689
+ var id_for_blur = document.getElementById('state').parentNode.id.split('_');
690
+ var value = jQuery(this).val();
691
+ jQuery("#"+id_for_blur[0]+"_mini_label_state").text(value);
692
+ });
693
+ }
694
+ });
695
+ jQuery("label#"+myu+"_mini_label_postal").click(function() {
696
+ if (jQuery(this).children('input').length == 0) {
697
+ var postal = "<input type='text' id='postal' class='postal' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
698
+ jQuery(this).html(postal);
699
+ jQuery("input.postal").focus();
700
+ jQuery("input.postal").blur(function() {
701
+ var id_for_blur = document.getElementById('postal').parentNode.id.split('_');
702
+ var value = jQuery(this).val();
703
+ jQuery("#"+id_for_blur[0]+"_mini_label_postal").text(value);
704
+ });
705
+ }
706
+ });
707
+ jQuery("label#"+myu+"_mini_label_country").click(function() {
708
+ if (jQuery(this).children('input').length == 0) {
709
+ var country = "<input type='country' id='country' class='country' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
710
+ jQuery(this).html(country);
711
+ jQuery("input.country").focus();
712
+ jQuery("input.country").blur(function() {
713
+ var id_for_blur = document.getElementById('country').parentNode.id.split('_');
714
+ var value = jQuery(this).val();
715
+ jQuery("#"+id_for_blur[0]+"_mini_label_country").text(value);
716
+ });
717
+ }
718
+ });
719
+ });
720
+ }
721
+ }
722
+ }
723
+ remove_whitespace(document.getElementById('take'));
724
+ form_view = 1;
725
+ form_view_count = 0;
726
+ document.getElementById('araqel').value = 1;
727
+ }
728
+ jQuery(window).load(function () {
729
+ formOnload();
730
+ });
731
+ </script>
732
+ <?php
733
+ }
734
+ ?>
735
+ <input type="hidden" name="id" value="<?php echo $row->id; ?>" />
736
+ <input type="hidden" name="cid[]" value="<?php echo $row->id; ?>" />
737
+ <input type="hidden" id="task" name="task" value=""/>
738
+ <input type="hidden" id="current_id" name="current_id" value="<?php echo $row->id; ?>" />
739
+ </form>
740
+ <?php
741
+ }
742
+
743
+ public function form_options($id) {
744
+ $row = $this->model->get_row_data($id);
745
+ $themes = $this->model->get_theme_rows_data();
746
+ $page_title = $row->title . ' form options';
747
+ $label_id = array();
748
+ $label_label = array();
749
+ $label_type = array();
750
+ $label_all = explode('#****#', $row->label_order_current);
751
+ $label_all = array_slice($label_all, 0, count($label_all) - 1);
752
+ foreach ($label_all as $key => $label_each) {
753
+ $label_id_each = explode('#**id**#', $label_each);
754
+ if ($label_id_each[0] == 22) {
755
+ $default_subject = $key;
756
+ }
757
+ array_push($label_id, $label_id_each[0]);
758
+ $label_order_each = explode('#**label**#', $label_id_each[1]);
759
+ array_push($label_label, $label_order_each[0]);
760
+ array_push($label_type, $label_order_each[1]);
761
+ }
762
+ $fields = explode('*:*id*:*type_submitter_mail*:*type*:*', $row->form_fields);
763
+ $fields_count = count($fields);
764
+ $disabled_fields = explode(',', $row->disabled_fields);
765
+ $disabled_fields = array_slice($disabled_fields, 0, count($disabled_fields) - 1);
766
+ $field_exist = array();
767
+ for ($i = 0; $i < count($label_label); $i++) {
768
+ 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)) {
769
+ $field_exist[$i] = FALSE;
770
+ }
771
+ else {
772
+ $field_exist[$i] = TRUE;
773
+ }
774
+ }
775
+ ?>
776
+ <script>
777
+ gen = "<?php echo $row->counter; ?>";
778
+ form_view_max = 20;
779
+ function set_preview() {
780
+ jQuery("#preview_form").attr("href", '<?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');
781
+ jQuery("#edit_css").attr("href", '<?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');
782
+ }
783
+ </script>
784
+ <div style="font-size: 14px; font-weight: bold;">
785
+ This section allows you to edit form options.
786
+ <a style="color: blue; text-decoration: none;" target="_blank" href="http://web-dorado.com/wordpress-contact-form-builder-guide-3.html">Read More in User Manual</a>
787
+ </div>
788
+ <form class="wrap" method="post" action="admin.php?page=manage_cfm" style="width: 99%;" name="adminForm" id="adminForm">
789
+ <h2><?php echo $page_title; ?></h2>
790
+ <div style="float: right; margin: 0 5px 0 0;">
791
+ <input class="button-secondary" type="submit" onclick="if (spider_check_email('mailToAdd') ||
792
+ spider_check_email('mail_from_other') ||
793
+ spider_check_email('reply_to_other') ||
794
+ spider_check_email('mail_cc') ||
795
+ spider_check_email('mail_bcc') ||
796
+ spider_check_email('mail_from_user') ||
797
+ spider_check_email('reply_to_user') ||
798
+ spider_check_email('mail_cc_user') ||
799
+ spider_check_email('mail_bcc_user') ||
800
+ spider_check_email('mail_from') ||
801
+ spider_check_email('reply_to')) { return false; }; spider_set_input_value('task', 'save_options')" value="Save"/>
802
+ <input class="button-secondary" type="submit" onclick="if (spider_check_email('mailToAdd') ||
803
+ spider_check_email('mail_from_other') ||
804
+ spider_check_email('reply_to_other') ||
805
+ spider_check_email('mail_cc') ||
806
+ spider_check_email('mail_bcc') ||
807
+ spider_check_email('mail_from_user') ||
808
+ spider_check_email('reply_to_user') ||
809
+ spider_check_email('mail_cc_user') ||
810
+ spider_check_email('mail_bcc_user') ||
811
+ spider_check_email('mail_from') ||
812
+ spider_check_email('reply_to')) { return false; }; spider_set_input_value('task', 'apply_options')" value="Apply"/>
813
+ <input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'cancel_options')" value="Cancel"/>
814
+ </div>
815
+ <div class="submenu-box" style="width: 99%; float: left; margin: 15px 0 0 0;">
816
+ <div class="submenu-pad">
817
+ <ul id="submenu" class="configuration">
818
+ <li>
819
+ <a id="general" class="fm_fieldset_tab" onclick="form_maker_options_tabs('general')" href="#">General Options</a>
820
+ </li>
821
+ <li>
822
+ <a id="custom" class="fm_fieldset_tab" onclick="form_maker_options_tabs('custom')" href="#">Email Options</a>
823
+ </li>
824
+ <li>
825
+ <a id="actions" class="fm_fieldset_tab" onclick="form_maker_options_tabs('actions')" href="#">Actions after Submission</a>
826
+ </li>
827
+ </ul>
828
+ </div>
829
+ </div>
830
+ <fieldset id="general_fieldset" class="adminform fm_fieldset_deactive">
831
+ <legend style="color: #0B55C4; font-weight: bold;">General Options</legend>
832
+ <table class="admintable" style="float: left;">
833
+ <tr valign="top">
834
+ <td class="fm_options_label">
835
+ <label>Published</label>
836
+ </td>
837
+ <td class="fm_options_value">
838
+ <input type="radio" name="published" id="published_yes" value="1" <?php echo ($row->published) ? 'checked="checked"' : ''; ?> /><label for="published_yes">Yes</label>
839
+ <input type="radio" name="published" id="published_no" value="0" <?php echo (!$row->published) ? 'checked="checked"' : ''; ?> /><label for="published_no">No</label>
840
+ </td>
841
+ </tr>
842
+ <tr valign="top">
843
+ <td class="fm_options_label">
844
+ <label>Save data(to database)</label>
845
+ </td>
846
+ <td class="fm_options_value">
847
+ <input type="radio" name="savedb" id="savedb_yes" value="1" <?php echo ($row->savedb) ? 'checked="checked"' : ''; ?> /><label for="savedb_yes">Yes</label>
848
+ <input type="radio" name="savedb" id="savedb_no" value="0" <?php echo (!$row->savedb) ? 'checked="checked"' : ''; ?> /><label for="savedb_no">No</label>
849
+ </td>
850
+ </tr>
851
+ <tr valign="top">
852
+ <td class="fm_options_label">
853
+ <label for="theme">Theme</label>
854
+ </td>
855
+ <td class="fm_options_value">
856
+ <select id="theme" name="theme" style="width:260px;" onChange="set_preview()">
857
+ <?php
858
+ foreach ($themes as $theme) {
859
+ ?>
860
+ <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>
861
+ <?php
862
+ }
863
+ ?>
864
+ </select>
865
+ <a href="<?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')); ?>" class="button-primary thickbox thickbox-preview" id="preview_form" title="Form Preview" onclick="return false;">
866
+ Preview
867
+ </a>
868
+ <a onclick="alert('This option is disabled in free version.'); return false;" href="#" class="button-secondary" id="edit_css" title="Edit CSS">
869
+ Edit CSS
870
+ </a>
871
+ <div class="spider_description spider_free_desc">Themes are disabled in free version.</div>
872
+ </td>
873
+ </tr>
874
+ <tr valign="top">
875
+ <td class="fm_options_label">
876
+ <label for="requiredmark">Required fields mark</label>
877
+ </td>
878
+ <td class="fm_options_value">
879
+ <input type="text" id="requiredmark" name="requiredmark" value="<?php echo $row->requiredmark; ?>" style="width: 250px;" />
880
+ </td>
881
+ </tr>
882
+ </table>
883
+ </fieldset>
884
+ <fieldset id="custom_fieldset" class="adminform fm_fieldset_deactive">
885
+ <legend style="color: #0B55C4; font-weight: bold;">Email Options</legend>
886
+ <table class="admintable">
887
+ <tr valign="top">
888
+ <td style="padding: 15px;">
889
+ <label>Send E-mail</label>
890
+ </td>
891
+ <td style="padding: 15px;">
892
+ <input type="radio" name="sendemail" id="sendemail_yes" value="1" <?php echo ($row->sendemail) ? 'checked="checked"' : ''; ?> /><label for="sendemail_yes">Yes</label>
893
+ <input type="radio" name="sendemail" id="sendemail_no" value="0" <?php echo (!$row->sendemail) ? 'checked="checked"' : ''; ?> /><label for="sendemail_no">No</label>
894
+ </td>
895
+ </tr>
896
+ </table>
897
+ <fieldset class="fm_mail_options">
898
+ <legend style="color: #0B55C4; font-weight: bold;">Email to Administrator</legend>
899
+ <table class="admintable">
900
+ <tr valign="top">
901
+ <td class="fm_options_label">
902
+ <label for="mailToAdd">Email to send submissions to</label>
903
+ </td>
904
+ <td class="fm_options_value">
905
+ <input type="text" id="mailToAdd" name="mailToAdd" style="width: 250px;" />
906
+ <input type="hidden" id="mail" name="mail" value="<?php echo $row->mail; ?>" />
907
+ <img src="<?php echo WD_CFM_URL . '/images/add.png'; ?>"
908
+ style="vertical-align: middle; cursor: pointer;"
909
+ title="Add more emails"
910
+ onclick="if (spider_check_email('mailToAdd')) {return false;};cfm_create_input('mail', 'mailToAdd', 'cfm_mail_div', '<?php echo WD_CFM_URL; ?>')" />
911
+ <div id="cfm_mail_div">
912
+ <?php
913
+ $mail_array = explode(',', $row->mail);
914
+ foreach ($mail_array as $mail) {
915
+ if ($mail && $mail != ',') {
916
+ ?>
917
+ <div class="fm_mail_input">
918
+ <?php echo $mail; ?>
919
+ <img src="<?php echo WD_CFM_URL; ?>/images/delete.png" class="fm_delete_img" onclick="fm_delete_mail(this, '<?php echo $mail; ?>')" title="Delete Email" />
920
+ </div>
921
+ <?php
922
+ }
923
+ }
924
+ ?>
925
+ </div>
926
+ </td>
927
+ </tr>
928
+ <tr valign="top">
929
+ <td class="fm_options_label">
930
+ <label for="mail_from">Email From</label>
931
+ </td>
932
+ <td class="fm_options_value">
933
+ <?php
934
+ $is_other = TRUE;
935
+ $field_disabled = TRUE;
936
+ for ($i = 0; $i < $fields_count - 1; $i++) {
937
+ $field_id = substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*') + 15, strlen($fields[$i]));
938
+ if (!in_array($field_id, $disabled_fields)) {
939
+ $field_disabled = FALSE;
940
+ ?>
941
+ <div>
942
+ <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')" />
943
+ <label for="mail_from<?php echo $i; ?>"><?php echo substr($fields[$i + 1], 0, strpos($fields[$i + 1], '*:*w_field_label*:*')); ?></label>
944
+ </div>
945
+ <?php
946
+ if ($field_id == $row->mail_from) {
947
+ $is_other = FALSE;
948
+ }
949
+ }
950
+ }
951
+ ?>
952
+ <div style="<?php echo ($fields_count == 1 || $field_disabled) ? 'display:none;' : ''; ?>">
953
+ <input type="radio" id="other" name="mail_from" value="other" <?php echo ($is_other) ? 'checked="checked"' : ''; ?> onclick="wdshow('mail_from_other')" />
954
+ <label for="other">Other</label>
955
+ </div>
956
+ <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 : ''; ?>" />
957
+ </td>
958
+ </tr>
959
+ <tr valign="top">
960
+ <td class="fm_options_label">
961
+ <label for="mail_from_name">From Name</label>
962
+ </td>
963
+ <td class="fm_options_value">
964
+ <input type="text" id="mail_from_name" name="mail_from_name" value="<?php echo $row->mail_from_name; ?>" style="width: 250px;" />
965
+ <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;" />
966
+ <div style="position: relative; top: -3px;">
967
+ <div id="mail_from_labels" class="email_labels" style="display: none;">
968
+ <?php
969
+ $choise = "document.getElementById('mail_from_name')";
970
+ for ($i = 0; $i < count($label_label); $i++) {
971
+ if (!$field_exist[$i]) {
972
+ continue;
973
+ }
974
+ $param = htmlspecialchars(addslashes($label_label[$i]));
975
+ $fld_label = htmlspecialchars($label_label[$i]);
976
+ if (strlen($fld_label) > 30) {
977
+ $fld_label = wordwrap($fld_label, 30);
978
+ $fld_label = explode("\n", $fld_label);
979
+ $fld_label = $fld_label[0] . ' ...';
980
+ }
981
+ ?>
982
+ <a onClick="insertAtCursor(<?php echo $choise; ?>,'<?php echo $param; ?>'); document.getElementById('mail_from_labels').style.display='none';" style="display: block; text-decoration:none;"><?php echo $fld_label; ?></a>
983
+ <?php
984
+ }
985
+ ?>
986
+ </div>
987
+ </div>
988
+ </td>
989
+ </tr>
990
+ <tr valign="top">
991
+ <td class="fm_options_label">
992
+ <label for="reply_to">Reply to<br/>(if different from "Email From") </label>
993
+ </td>
994
+ <td class="fm_options_value">
995
+ <?php
996
+ $is_other = TRUE;
997
+ $field_disabled = TRUE;
998
+ for ($i = 0; $i < $fields_count - 1; $i++) {
999
+ $field_id = substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*') + 15, strlen($fields[$i]));
1000
+ if (!in_array($field_id, $disabled_fields)) {
1001
+ $field_disabled = FALSE;
1002
+ ?>
1003
+ <div>
1004
+ <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')" />
1005
+ <label for="reply_to<?php echo $i; ?>"><?php echo substr($fields[$i + 1], 0, strpos($fields[$i + 1], '*:*w_field_label*:*')); ?></label>
1006
+ </div>
1007
+ <?php
1008
+ if ($field_id == $row->reply_to) {
1009
+ $is_other = FALSE;
1010
+ }
1011
+ }
1012
+ }
1013
+ ?>
1014
+ <div style="<?php echo ($fields_count == 1 || $field_disabled) ? 'display: none;' : ''; ?>">
1015
+ <input type="radio" id="other1" name="reply_to" value="other" <?php echo ($is_other) ? 'checked="checked"' : ''; ?> onclick="wdshow('reply_to_other')" />
1016
+ <label for="other1">Other</label>
1017
+ </div>
1018
+ <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 : ''; ?>" />
1019
+ </td>
1020
+ </tr>
1021
+ <tr valign="top">
1022
+ <td class="fm_options_label">
1023
+ <label for="mail_cc">CC: </label>
1024
+ </td>
1025
+ <td class="fm_options_value">
1026
+ <input type="text" id="mail_cc" name="mail_cc" value="<?php echo $row->mail_cc; ?>" style="width: 250px;" />
1027
+ </td>
1028
+ </tr>
1029
+ <tr valign="top">
1030
+ <td class="fm_options_label">
1031
+ <label for="mail_bcc">BCC: </label>
1032
+ </td>
1033
+ <td class="fm_options_value">
1034
+ <input type="text" id="mail_bcc" name="mail_bcc" value="<?php echo $row->mail_bcc; ?>" style="width: 250px;" />
1035
+ </td>
1036
+ </tr>
1037
+ <tr valign="top">
1038
+ <td class="fm_options_label">
1039
+ <label for="mail_subject">Subject: </label>
1040
+ </td>
1041
+ <td class="fm_options_value">
1042
+ <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;" />
1043
+ <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;" />
1044
+ <div style="position: relative; top: -3px;">
1045
+ <div id="mail_subject_labels" class="email_labels" style="display: none;" >
1046
+ <?php
1047
+ $choise = "document.getElementById('mail_subject')";
1048
+ for ($i = 0; $i < count($label_label); $i++) {
1049
+ if (!$field_exist[$i]) {
1050
+ continue;
1051
+ }
1052
+ $param = htmlspecialchars(addslashes($label_label[$i]));
1053
+ $fld_label = htmlspecialchars($label_label[$i]);
1054
+ if (strlen($fld_label) > 30) {
1055
+ $fld_label = wordwrap($fld_label, 30);
1056
+ $fld_label = explode("\n", $fld_label);
1057
+ $fld_label = $fld_label[0] . ' ...';
1058
+ }
1059
+ ?>
1060
+ <a onClick="insertAtCursor(<?php echo $choise; ?>,'<?php echo $param; ?>'); document.getElementById('mail_subject_labels').style.display='none';" style="display: block; text-decoration: none;"><?php echo $fld_label; ?></a>
1061
+ <?php
1062
+ }
1063
+ ?>
1064
+ </div>
1065
+ </div>
1066
+ </td>
1067
+ </tr>
1068
+ <tr valign="top">
1069
+ <td class="fm_options_label" style="vertical-align: middle;">
1070
+ <label>Mode: </label>
1071
+ </td>
1072
+ <td class="fm_options_value">
1073
+ <input type="radio" name="mail_mode" id="htmlmode" value="1" <?php if ($row->mail_mode == 1 ) echo 'checked="checked"'; ?> /><label for="htmlmode">HTML</label>
1074
+ <input type="radio" name="mail_mode" id="textmode" value="0" <?php if ($row->mail_mode == 0 ) echo 'checked="checked"'; ?> /><label for="textmode">Text</label>
1075
+ </td>
1076
+ </tr>
1077
+ <tr>
1078
+ <td class="fm_options_label" valign="top">
1079
+ <label>Custom Text in Email For Administrator</label>
1080
+ </td>
1081
+ <td class="fm_options_value">
1082
+ <div style="margin-bottom:5px">
1083
+ <?php
1084
+ $choise = "document.getElementById('script_mail')";
1085
+ for ($i = 0; $i < count($label_label); $i++) {
1086
+ if (!$field_exist[$i]) {
1087
+ continue;
1088
+ }
1089
+ $param = htmlspecialchars(addslashes($label_label[$i]));
1090
+ ?>
1091
+ <input style="border: 1px solid silver; font-size: 10px;" type="button" value="<?php echo htmlspecialchars($label_label[$i]); ?>" onClick="insertAtCursor(<?php echo $choise; ?>, '<?php echo $param; ?>')" />
1092
+ <?php
1093
+ }
1094
+ ?>
1095
+ <input style="border: 1px solid silver; font-size: 11px; font-weight: bold; display: block;" type="button" value="All fields list" onClick="insertAtCursor(<?php echo $choise; ?>, 'all')" />
1096
+ </div>
1097
+ <?php
1098
+ if (user_can_richedit()) {
1099
+ wp_editor($row->script_mail, 'script_mail', array('teeny' => FALSE, 'textarea_name' => 'script_mail', 'media_buttons' => FALSE, 'textarea_rows' => 5));
1100
+ }
1101
+ else {
1102
+ ?>
1103
+ <textarea name="script_mail" id="script_mail" cols="20" rows="10" style="width: 300px; height: 450px;"><?php echo $row->script_mail; ?></textarea>
1104
+ <?php
1105
+ }
1106
+ ?>
1107
+ </td>
1108
+ </tr>
1109
+ </table>
1110
+ </fieldset>
1111
+ <fieldset class="fm_mail_options">
1112
+ <legend style="color: #0B55C4; font-weight: bold;">Email to User</legend>
1113
+ <table class="admintable">
1114
+ <tr valign="top">
1115
+ <td class="fm_options_label">
1116
+ <label for="mail">Send to</label>
1117
+ </td>
1118
+ <td class="fm_options_value">
1119
+ <?php
1120
+ $fields = explode('*:*id*:*type_submitter_mail*:*type*:*', $row->form_fields);
1121
+ $fields_count = count($fields);
1122
+ if ($fields_count == 1) {
1123
+ ?>There is no email field<?php
1124
+ }
1125
+ else {
1126
+ for ($i = 0; $i < $fields_count - 1; $i++) {
1127
+ ?>
1128
+ <div>
1129
+ <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"' : '' ); ?> />
1130
+ <label for="send_to<?php echo $i; ?>"><?php echo substr($fields[$i + 1], 0, strpos($fields[$i + 1], '*:*w_field_label*:*')); ?></label>
1131
+ </div>
1132
+ <?php
1133
+ }
1134
+ }
1135
+ ?>
1136
+ </td>
1137
+ </tr>
1138
+ <tr valign="top">
1139
+ <td class="fm_options_label">
1140
+ <label for="mail_from_user">Email From</label>
1141
+ </td>
1142
+ <td class="fm_options_value">
1143
+ <input type="text" id="mail_from_user" name="mail_from_user" value="<?php echo $row->mail_from_user; ?>" style="width: 250px;" />
1144
+ </td>
1145
+ </tr>
1146
+ <tr valign="top">
1147
+ <td class="fm_options_label">
1148
+ <label for="mail_from_name_user">From Name</label>
1149
+ </td>
1150
+ <td class="fm_options_value">
1151
+ <input type="text" id="mail_from_name_user" name="mail_from_name_user" value="<?php echo $row->mail_from_name_user; ?>" style="width: 250px;"/>
1152
+ <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;" />
1153
+ <div style="position: relative; top: -3px;">
1154
+ <div id="mail_from_name_user_labels" class="email_labels" style="display:none;">
1155
+ <?php
1156
+ $choise = "document.getElementById('mail_from_name_user')";
1157
+ for ($i = 0; $i < count($label_label); $i++) {
1158
+ if (!$field_exist[$i]) {
1159
+ continue;
1160
+ }
1161
+ $param = htmlspecialchars(addslashes($label_label[$i]));
1162
+ $fld_label = htmlspecialchars($label_label[$i]);
1163
+ if (strlen($fld_label) > 30) {
1164
+ $fld_label = wordwrap($fld_label, 30);
1165
+ $fld_label = explode("\n", $fld_label);
1166
+ $fld_label = $fld_label[0] . ' ...';
1167
+ }
1168
+ ?>
1169
+ <a onClick="insertAtCursor(<?php echo $choise; ?>,'<?php echo $param; ?>'); document.getElementById('mail_from_name_user_labels').style.display='none';" style="display: block; text-decoration: none;"><?php echo $fld_label; ?></a>
1170
+ <?php
1171
+ }
1172
+ ?>
1173
+ </div>
1174
+ </div>
1175
+ </td>
1176
+ </tr>
1177
+ <tr valign="top">
1178
+ <td class="fm_options_label">
1179
+ <label for="reply_to_user">Reply to<br />(if different from "Email From")</label>
1180
+ </td>
1181
+ <td class="fm_options_value">
1182
+ <input type="text" id="reply_to_user" name="reply_to_user" value="<?php echo $row->reply_to_user; ?>" style="width: 250px;" />
1183
+ </td>
1184
+ </tr>
1185
+ <tr valign="top">
1186
+ <td class="fm_options_label">
1187
+ <label for="mail_cc_user">CC: </label>
1188
+ </td>
1189
+ <td class="fm_options_value">
1190
+ <input type="text" id="mail_cc_user" name="mail_cc_user" value="<?php echo $row->mail_cc_user; ?>" style="width: 250px;" />
1191
+ </td>
1192
+ </tr>
1193
+ <tr valign="top">
1194
+ <td class="fm_options_label">
1195
+ <label for="mail_bcc_user">BCC: </label>
1196
+ </td>
1197
+ <td class="fm_options_value">
1198
+ <input type="text" id="mail_bcc_user" name="mail_bcc_user" value="<?php echo $row->mail_bcc_user; ?>" style="width: 250px;" />
1199
+ </td>
1200
+ </tr>
1201
+ <tr valign="top">
1202
+ <td class="fm_options_label">
1203
+ <label for="mail_subject_user">Subject: </label>
1204
+ </td>
1205
+ <td class="fm_options_value">
1206
+ <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;" />
1207
+ <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;" />
1208
+ <div style="position: relative; top: -3px;">
1209
+ <div id="mail_subject_user_labels" class="email_labels" style="display: none;">
1210
+ <?php
1211
+ $choise = "document.getElementById('mail_subject_user')";
1212
+ for ($i = 0; $i < count($label_label); $i++) {
1213
+ if (!$field_exist[$i]) {
1214
+ continue;
1215
+ }
1216
+ $param = htmlspecialchars(addslashes($label_label[$i]));
1217
+ $fld_label = htmlspecialchars($label_label[$i]);
1218
+ if (strlen($fld_label) > 30) {
1219
+ $fld_label = wordwrap($fld_label, 30);
1220
+ $fld_label = explode("\n", $fld_label);
1221
+ $fld_label = $fld_label[0] . ' ...';
1222
+ }
1223
+ ?>
1224
+ <a onClick="insertAtCursor(<?php echo $choise; ?>,'<?php echo $param; ?>'); document.getElementById('mail_subject_user_labels').style.display='none';" style="display: block; text-decoration: none;"><?php echo $fld_label; ?></a>
1225
+ <?php
1226
+ }
1227
+ ?>
1228
+ </div>
1229
+ </div>
1230
+ </td>
1231
+ </tr>
1232
+ <tr valign="top">
1233
+ <td class="fm_options_label" style="vertical-align: middle;">
1234
+ <label>Mode: </label>
1235
+ </td>
1236
+ <td class="fm_options_value">
1237
+ <input type="radio" name="mail_mode_user" id="htmlmode_user" value="1" <?php if ($row->mail_mode_user == 1 ) echo 'checked="checked"'; ?> /><label for="htmlmode_user">HTML</label>
1238
+ <input type="radio" name="mail_mode_user" id="textmode_user" value="0" <?php if ($row->mail_mode_user == 0 ) echo 'checked="checked"'; ?> /><label for="textmode_user">Text</label>
1239
+ </td>
1240
+ </tr>
1241
+ <tr>
1242
+ <td class="fm_options_label" valign="top">
1243
+ <label>Custom Text in Email For User</label>
1244
+ </td>
1245
+ <td class="fm_options_value">
1246
+ <div style="margin-bottom:5px">
1247
+ <?php
1248
+ $choise = "document.getElementById('script_mail_user')";
1249
+ for ($i = 0; $i < count($label_label); $i++) {
1250
+ if (!$field_exist[$i]) {
1251
+ continue;
1252
+ }
1253
+ $param = htmlspecialchars(addslashes($label_label[$i]));
1254
+ ?>
1255
+ <input style="border: 1px solid silver; font-size: 10px;" type="button" value="<?php echo htmlspecialchars($label_label[$i]); ?>" onClick="insertAtCursor(<?php echo $choise; ?>, '<?php echo $param; ?>')" />
1256
+ <?php
1257
+ }
1258
+ ?>
1259
+ <input style="border: 1px solid silver; font-size: 11px; font-weight: bold; display: block;" type="button" value="All fields list" onClick="insertAtCursor(<?php echo $choise; ?>, 'all')" />
1260
+ </div>
1261
+ <?php
1262
+ if (user_can_richedit()) {
1263
+ wp_editor($row->script_mail_user, 'script_mail_user', array('teeny' => FALSE, 'textarea_name' => 'script_mail_user', 'media_buttons' => FALSE, 'textarea_rows' => 5));
1264
+ }
1265
+ else {
1266
+ ?>
1267
+ <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>
1268
+ <?php
1269
+ }
1270
+ ?>
1271
+ </td>
1272
+ </tr>
1273
+ </table>
1274
+ </fieldset>
1275
+ </fieldset>
1276
+ <fieldset id="actions_fieldset" class="adminform fm_fieldset_deactive">
1277
+ <legend style="color: #0B55C4; font-weight: bold;">Actions after submission</legend>
1278
+ <table class="admintable">
1279
+ <tr valign="top">
1280
+ <td class="fm_options_label">
1281
+ <label>Action type</label>
1282
+ </td>
1283
+ <td class="fm_options_value">
1284
+ <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">Stay on Form</label></div>
1285
+ <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">Post</label></label></div>
1286
+ <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">Page</label></label></div>
1287
+ <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">Custom Text</label></label></div>
1288
+ <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>
1289
+ </td>
1290
+ </tr>
1291
+ <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"' : ''); ?>>
1292
+ <td class="fm_options_label">
1293
+ <label>Stay on Form</label>
1294
+ </td>
1295
+ <td class="fm_options_value">
1296
+ <img src="<?php echo WD_CFM_URL . '/images/tick.png'; ?>" border="0">
1297
+ </td>
1298
+ </tr>
1299
+ <tr id="post" <?php echo (($row->submit_text_type != 2) ? 'style="display: none"' : ''); ?>>
1300
+ <td class="fm_options_label">
1301
+ <label for="post_name">Post</label>
1302
+ </td>
1303
+ <td class="fm_options_value">
1304
+ <select id="post_name" name="post_name" style="width: 153px; font-size: 11px;">
1305
+ <option value="0">- Select Post -</option>
1306
+ <?php
1307
+ // The Query.
1308
+ $args = array('posts_per_page' => 10000);
1309
+ query_posts($args);
1310
+ // The Loop.
1311
+ while (have_posts()) : the_post(); ?>
1312
+ <option value="<?php $x = get_permalink(get_the_ID()); echo $x; ?>" <?php echo (($row->article_id == $x) ? 'selected="selected"' : ''); ?>><?php the_title(); ?></option>
1313
+ <?php
1314
+ endwhile;
1315
+ // Reset Query.
1316
+ wp_reset_query();
1317
+ ?>
1318
+ </select>
1319
+ </td>
1320
+ </tr>
1321
+ <tr id="page" <?php echo (($row->submit_text_type != 5) ? 'style="display: none"' : ''); ?>>
1322
+ <td class="fm_options_label">
1323
+ <label for="page_name">Page</label>
1324
+ </td>
1325
+ <td class="fm_options_value">
1326
+ <select id="page_name" name="page_name" style="width: 153px; font-size: 11px;">
1327
+ <option value="0">- Select Page -</option>
1328
+ <?php
1329
+ // The Query.
1330
+ $pages = get_pages();
1331
+ // The Loop.
1332
+ foreach ($pages as $page) {
1333
+ $page_id = get_page_link($page->ID);
1334
+ ?>
1335
+ <option value="<?php echo $page_id; ?>" <?php echo (($row->article_id == $page_id) ? 'selected="selected"' : ''); ?>><?php echo $page->post_title; ?></option>
1336
+ <?php
1337
+ }
1338
+ // Reset Query.
1339
+ wp_reset_query();
1340
+ ?>
1341
+ </select>
1342
+ </td>
1343
+ </tr>
1344
+ <tr id="custom_text" <?php echo (($row->submit_text_type != 3) ? 'style="display: none;"' : ''); ?>>
1345
+ <td class="fm_options_label">
1346
+ <label for="submit_text">Text</label>
1347
+ </td>
1348
+ <td class="fm_options_value">
1349
+ <?php
1350
+ if (user_can_richedit()) {
1351
+ wp_editor($row->submit_text, 'submit_text', array('teeny' => FALSE, 'textarea_name' => 'submit_text', 'media_buttons' => FALSE, 'textarea_rows' => 5));
1352
+ }
1353
+ else {
1354
+ ?>
1355
+ <textarea cols="36" rows="5" id="submit_text" name="submit_text" style="resize: vertical;">
1356
+ <?php echo $row->submit_text; ?>
1357
+ </textarea>
1358
+ <?php
1359
+ }
1360
+ ?>
1361
+ </td>
1362
+ </tr>
1363
+ <tr id="url" <?php echo (($row->submit_text_type != 4 ) ? 'style="display:none"' : ''); ?>>
1364
+ <td class="fm_options_label">
1365
+ <label for="url">URL</label>
1366
+ </td>
1367
+ <td class="fm_options_value">
1368
+ <input type="text" id="url" name="url" style="width:300px" value="<?php echo $row->url; ?>" />
1369
+ </td>
1370
+ </tr>
1371
+ </table>
1372
+ </fieldset>
1373
+
1374
+ <input type="hidden" name="fieldset_id" id="fieldset_id" value="<?php echo WDW_CFM_Library::get('fieldset_id', 'general'); ?>" />
1375
+ <input type="hidden" id="task" name="task" value=""/>
1376
+ <input type="hidden" id="current_id" name="current_id" value="<?php echo $row->id; ?>" />
1377
+ </form>
1378
+ <script>
1379
+ jQuery(window).load(function () {
1380
+ form_maker_options_tabs(jQuery("#fieldset_id").val());
1381
+ spider_popup();
1382
+ jQuery("#mail_from_labels, #mail_from_name_user_labels, #mail_subject_labels, #mail_subject_user_labels").mouseleave(function() {
1383
+ jQuery(this).hide();
1384
+ });
1385
+ });
1386
+ </script>
1387
+ <?php
1388
+ }
1389
+
1390
+ public function form_layout($id) {
1391
+ $row = $this->model->get_row_data($id);
1392
+ $ids = array();
1393
+ $types = array();
1394
+ $labels = array();
1395
+ $fields = explode('*:*new_field*:*', $row->form_fields);
1396
+ $fields = array_slice($fields, 0, count($fields) - 1);
1397
+ foreach ($fields as $field) {
1398
+ $temp = explode('*:*id*:*', $field);
1399
+ array_push($ids, $temp[0]);
1400
+ $temp = explode('*:*type*:*', $temp[1]);
1401
+ array_push($types, $temp[0]);
1402
+ $temp = explode('*:*w_field_label*:*', $temp[1]);
1403
+ array_push($labels, $temp[0]);
1404
+ }
1405
+ ?>
1406
+ <script>
1407
+ var form_front = '<?php echo addslashes($row->form_front);?>';
1408
+ var custom_front = '<?php echo addslashes($row->custom_front);?>';
1409
+ if (custom_front == '') {
1410
+ custom_front = form_front;
1411
+ }
1412
+ function submitbutton() {
1413
+ if (jQuery('#autogen_layout').is(':checked')) {
1414
+ jQuery('#custom_front').val(custom_front.replace(/\s+/g, ' ').replace(/> </g, '><'));
1415
+ }
1416
+ else {
1417
+ jQuery('#custom_front').val(editor.getValue().replace(/\s+/g, ' ').replace(/> </g, '><'));
1418
+ }
1419
+ }
1420
+ function insertAtCursor_form(myId, myLabel) {
1421
+ if (jQuery('#autogen_layout').is(':checked')) {
1422
+ alert("Uncheck the Auto-Generate Layout box.");
1423
+ return;
1424
+ }
1425
+ myValue = '<div wdid="' + myId + '" class="wdform_row">%' + myId + ' - ' + myLabel + '%</div>';
1426
+ line = editor.getCursor().line;
1427
+ ch = editor.getCursor().ch;
1428
+ text = editor.getLine(line);
1429
+ text1 = text.substr(0, ch);
1430
+ text2 = text.substr(ch);
1431
+ text = text1 + myValue + text2;
1432
+ editor.setLine(line, text);
1433
+ editor.focus();
1434
+ }
1435
+ function autogen(status) {
1436
+ if (status) {
1437
+ custom_front = editor.getValue();
1438
+ editor.setValue(form_front);
1439
+ editor.setOption('readOnly', true);
1440
+ autoFormat();
1441
+ }
1442
+ else {
1443
+ editor.setValue(custom_front);
1444
+ editor.setOption('readOnly', false);
1445
+ autoFormat();
1446
+ }
1447
+ }
1448
+ function autoFormat() {
1449
+ CodeMirror.commands["selectAll"](editor);
1450
+ editor.autoFormatRange(editor.getCursor(true), editor.getCursor(false));
1451
+ editor.scrollTo(0,0);
1452
+ }
1453
+ </script>
1454
+
1455
+ <div class="fm_layout" style="width: 99%;">
1456
+ <form action="admin.php?page=manage_cfm" method="post" name="adminForm" enctype="multipart/form-data">
1457
+ <div class="buttons_div">
1458
+ <input class="button-secondary" type="submit" onclick="submitbutton(); spider_set_input_value('task', 'save_layout')" value="Save"/>
1459
+ <input class="button-secondary" type="submit" onclick="submitbutton(); spider_set_input_value('task', 'apply_layout')" value="Apply"/>
1460
+ <input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'cancel_options')" value="Cancel"/>
1461
+ </div>
1462
+ <h2 style="clear: both;">Description</h2>
1463
+ <p>To customize the layout of the form fields uncheck the Auto-Generate Layout box and edit the HTML.</p>
1464
+ <p>You can change positioning, add in-line styles and etc. Click on the provided buttons to add the corresponding field.<br /> This will add the following line:
1465
+ <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>
1466
+ , where <b><span class="cm-tag">&lt;div&gt;</span></b> is used to set a row.</p>
1467
+ <p>To return to the default settings you should check Auto-Generate Layout box.</p>
1468
+ <h3 style="color:red">Notice</h3>
1469
+ <p>Make sure not to publish the same field twice. This will cause malfunctioning of the form.</p>
1470
+ <hr/>
1471
+ <label for="autogen_layout" style="font-size: 20px; line-height: 45px; margin-left: 10px;">Auto Generate Layout? </label>
1472
+ <input type="checkbox" value="1" name="autogen_layout" id="autogen_layout" <?php echo (($row->autogen_layout) ? 'checked="checked"' : ''); ?> />
1473
+ <input type="hidden" name="custom_front" id="custom_front" value="" />
1474
+
1475
+ <input type="hidden" id="task" name="task" value=""/>
1476
+ <input type="hidden" id="current_id" name="current_id" value="<?php echo $row->id; ?>" />
1477
+ </form>
1478
+ <br/>
1479
+ <?php
1480
+ foreach($ids as $key => $id) {
1481
+ if ($types[$key] != "type_section_break") {
1482
+ ?>
1483
+ <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>
1484
+ <?php
1485
+ }
1486
+ }
1487
+ ?>
1488
+ <br /><br />
1489
+ <button class="fm_submit_layout button button-secondary button-hero" onclick="autoFormat()"><strong>Apply Source Formatting</strong> <em>(ctrl-enter)</em></button>
1490
+ <textarea id="source" name="source" style="display: none;"></textarea>
1491
+ </div>
1492
+ <script>
1493
+ var editor = CodeMirror.fromTextArea(document.getElementById("source"), {
1494
+ lineNumbers: true,
1495
+ lineWrapping: true,
1496
+ mode: "htmlmixed",
1497
+ value: form_front
1498
+ });
1499
+ if (jQuery('#autogen_layout').is(':checked')) {
1500
+ editor.setOption('readOnly', true);
1501
+ editor.setValue(form_front);
1502
+ }
1503
+ else {
1504
+ editor.setOption('readOnly', false);
1505
+ editor.setValue(custom_front);
1506
+ }
1507
+ jQuery('#autogen_layout').click(function() {
1508
+ autogen(jQuery(this).is(':checked'));
1509
+ });
1510
+ autoFormat();
1511
+ </script>
1512
+ <?php
1513
+ }
1514
+
1515
+ ////////////////////////////////////////////////////////////////////////////////////////
1516
+ // Getters & Setters //
1517
+ ////////////////////////////////////////////////////////////////////////////////////////
1518
+ ////////////////////////////////////////////////////////////////////////////////////////
1519
+ // Private Methods //
1520
+ ////////////////////////////////////////////////////////////////////////////////////////
1521
+ ////////////////////////////////////////////////////////////////////////////////////////
1522
+ // Listeners //
1523
+ ////////////////////////////////////////////////////////////////////////////////////////
1524
  }
admin/views/CFMViewSubmissions_cfm.php CHANGED
@@ -1,47 +1,47 @@
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 style="clear: both; float: left; width: 99%;">
28
- <div style="float: left; font-size: 14px; font-weight: bold;">
29
- <br />
30
- This section allows you to view form submissions.
31
- <a style="color: blue; text-decoration: none;" target="_blank" href="http://web-dorado.com/wordpress-contact-form-builder-guide-7.html">Read More in User Manual</a><br /><br />
32
- <span style="color: #FF0000;">This feature is disabled for the non-commercial version.</span>
33
- </div>
34
- <div style="float: right; text-align: right;">
35
- <a style="text-decoration: none;" target="_blank" href="http://web-dorado.com/files/fromContactFormBuilder.php">
36
- <img width="215" border="0" alt="web-dorado.com" src="<?php echo WD_CFM_URL . '/images/wd_logo.png'; ?>" />
37
- </a>
38
- </div>
39
- </div>
40
- <div style="clear: both; float: left; width: 99%;">
41
- <img style="max-width: 100%;" src="<?php echo WD_CFM_URL . '/images/screenshots/sub.png'; ?>" />
42
- </div>
43
- <?php
44
- }
45
- }
46
-
47
- ?>
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 style="clear: both; float: left; width: 99%;">
28
+ <div style="float: left; font-size: 14px; font-weight: bold;">
29
+ <br />
30
+ This section allows you to view form submissions.
31
+ <a style="color: blue; text-decoration: none;" target="_blank" href="http://web-dorado.com/wordpress-contact-form-builder-guide-7.html">Read More in User Manual</a><br /><br />
32
+ <span style="color: #FF0000;">This feature is disabled for the non-commercial version.</span>
33
+ </div>
34
+ <div style="float: right; text-align: right;">
35
+ <a style="text-decoration: none;" target="_blank" href="http://web-dorado.com/files/fromContactFormBuilder.php">
36
+ <img width="215" border="0" alt="web-dorado.com" src="<?php echo WD_CFM_URL . '/images/wd_logo.png'; ?>" />
37
+ </a>
38
+ </div>
39
+ </div>
40
+ <div style="clear: both; float: left; width: 99%;">
41
+ <img style="max-width: 100%;" src="<?php echo WD_CFM_URL . '/images/screenshots/sub.png'; ?>" />
42
+ </div>
43
+ <?php
44
+ }
45
+ }
46
+
47
+ ?>
admin/views/CFMViewThemes_cfm.php CHANGED
@@ -1,63 +1,63 @@
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 style="clear: both; float: left; width: 99%;">
28
- <div style="float: left; font-size: 14px; font-weight: bold;">
29
- This section allows you to edit form themes.
30
- <a style="color: blue; text-decoration: none;" target="_blank" href="http://web-dorado.com/wordpress-contact-form-builder-guide-2.html">Read More in User Manual</a><br /><br />
31
- <span style="color: #FF0000;">This feature is disabled for the non-commercial version.</span><br /><br />
32
- Here are some examples standard templates included in the commercial version.
33
- <a style="color: blue; text-decoration: none;" target="_blank" href="http://wpdemo.web-dorado.com/contact-form-builder">Demo</a>
34
- </div>
35
- <div style="float: right; text-align: right;">
36
- <a style="text-decoration: none;" target="_blank" href="http://web-dorado.com/files/fromContactFormBuilder.php">
37
- <img width="215" border="0" alt="web-dorado.com" src="<?php echo WD_CFM_URL . '/images/wd_logo.png'; ?>" />
38
- </a>
39
- </div>
40
- </div>
41
- <div style="clear: both; float: left; width: 99%;">
42
- <img style="max-width: 50%;float: left;" src="<?php echo WD_CFM_URL . '/images/screenshots/form2.png'; ?>" />
43
- <img style="max-width: 50%;float: left;" src="<?php echo WD_CFM_URL . '/images/screenshots/form1.png'; ?>" />
44
- <img style="max-width: 50%;float: left;" src="<?php echo WD_CFM_URL . '/images/screenshots/form3.png'; ?>" />
45
- <img style="max-width: 50%;float: left;" src="<?php echo WD_CFM_URL . '/images/screenshots/form5.png'; ?>" />
46
- <img style="max-width: 50%;float: left;" src="<?php echo WD_CFM_URL . '/images/screenshots/form4.png'; ?>" />
47
- </div>
48
- <?php
49
- }
50
-
51
- public function edit($id, $reset) {
52
- }
53
-
54
- ////////////////////////////////////////////////////////////////////////////////////////
55
- // Getters & Setters //
56
- ////////////////////////////////////////////////////////////////////////////////////////
57
- ////////////////////////////////////////////////////////////////////////////////////////
58
- // Private Methods //
59
- ////////////////////////////////////////////////////////////////////////////////////////
60
- ////////////////////////////////////////////////////////////////////////////////////////
61
- // Listeners //
62
- ////////////////////////////////////////////////////////////////////////////////////////
63
  }
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 style="clear: both; float: left; width: 99%;">
28
+ <div style="float: left; font-size: 14px; font-weight: bold;">
29
+ This section allows you to edit form themes.
30
+ <a style="color: blue; text-decoration: none;" target="_blank" href="http://web-dorado.com/wordpress-contact-form-builder-guide-2.html">Read More in User Manual</a><br /><br />
31
+ <span style="color: #FF0000;">This feature is disabled for the non-commercial version.</span><br /><br />
32
+ Here are some examples standard templates included in the commercial version.
33
+ <a style="color: blue; text-decoration: none;" target="_blank" href="http://wpdemo.web-dorado.com/contact-form-builder">Demo</a>
34
+ </div>
35
+ <div style="float: right; text-align: right;">
36
+ <a style="text-decoration: none;" target="_blank" href="http://web-dorado.com/files/fromContactFormBuilder.php">
37
+ <img width="215" border="0" alt="web-dorado.com" src="<?php echo WD_CFM_URL . '/images/wd_logo.png'; ?>" />
38
+ </a>
39
+ </div>
40
+ </div>
41
+ <div style="clear: both; float: left; width: 99%;">
42
+ <img style="max-width: 50%;float: left;" src="<?php echo WD_CFM_URL . '/images/screenshots/form2.png'; ?>" />
43
+ <img style="max-width: 50%;float: left;" src="<?php echo WD_CFM_URL . '/images/screenshots/form1.png'; ?>" />
44
+ <img style="max-width: 50%;float: left;" src="<?php echo WD_CFM_URL . '/images/screenshots/form3.png'; ?>" />
45
+ <img style="max-width: 50%;float: left;" src="<?php echo WD_CFM_URL . '/images/screenshots/form5.png'; ?>" />
46
+ <img style="max-width: 50%;float: left;" src="<?php echo WD_CFM_URL . '/images/screenshots/form4.png'; ?>" />
47
+ </div>
48
+ <?php
49
+ }
50
+
51
+ public function edit($id, $reset) {
52
+ }
53
+
54
+ ////////////////////////////////////////////////////////////////////////////////////////
55
+ // Getters & Setters //
56
+ ////////////////////////////////////////////////////////////////////////////////////////
57
+ ////////////////////////////////////////////////////////////////////////////////////////
58
+ // Private Methods //
59
+ ////////////////////////////////////////////////////////////////////////////////////////
60
+ ////////////////////////////////////////////////////////////////////////////////////////
61
+ // Listeners //
62
+ ////////////////////////////////////////////////////////////////////////////////////////
63
  }
admin/views/CFMViewUninstall_cfm.php CHANGED
@@ -1,117 +1,117 @@
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" style="width:95%;">
30
- <?php wp_nonce_field('contact_form_maker uninstall');?>
31
- <div class="wrap">
32
- <span class="uninstall_icon"></span>
33
- <h2>Uninstall Contact Form Builder</h2>
34
- <p>
35
- 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.
36
- </p>
37
- <p style="color: red;">
38
- <strong>WARNING:</strong>
39
- Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first.
40
- </p>
41
- <p style="color: red">
42
- <strong>The following WordPress Options/Tables will be DELETED:</strong>
43
- </p>
44
- <table class="widefat">
45
- <thead>
46
- <tr>
47
- <th>Database Tables</th>
48
- </tr>
49
- </thead>
50
- <tr>
51
- <td valign="top">
52
- <ol>
53
- <li><?php echo $prefix; ?>contactformmaker</li>
54
- <li><?php echo $prefix; ?>contactformmaker_submits</li>
55
- <li><?php echo $prefix; ?>contactformmaker_themes</li>
56
- <li><?php echo $prefix; ?>contactformmaker_views</li>
57
- <li><?php echo $prefix; ?>contactformmaker_blocked</li>
58
- </ol>
59
- </td>
60
- </tr>
61
- </table>
62
- <p style="text-align: center;">
63
- Do you really want to uninstall Conatct Form Builder?
64
- </p>
65
- <p style="text-align: center;">
66
- <input type="checkbox" name="Contact Form Builder" id="check_yes" value="yes" />&nbsp;<label for="check_yes">Yes</label>
67
- </p>
68
- <p style="text-align: center;">
69
- <input type="submit" value="UNINSTALL" class="button-primary" onclick="if (check_yes.checked) {
70
- if (confirm('You are About to Uninstall Contact Form Builder from WordPress.\nThis Action Is Not Reversible.')) {
71
- spider_set_input_value('task', 'uninstall');
72
- } else {
73
- return false;
74
- }
75
- }
76
- else {
77
- return false;
78
- }" />
79
- </p>
80
- </div>
81
- <input id="task" name="task" type="hidden" value="" />
82
- </form>
83
- <?php
84
- }
85
-
86
- public function uninstall() {
87
- $this->model->delete_db_tables();
88
- global $wpdb;
89
- $prefix = $wpdb->prefix;
90
- $deactivate_url = wp_nonce_url('plugins.php?action=deactivate&amp;plugin=contact-form-builder/contact-form-builder.php', 'deactivate-plugin_contact-form-builder/contact-form-builder.php');
91
- ?>
92
- <div id="message" class="updated fade">
93
- <p>The following Database Tables succesfully deleted:</p>
94
- <p><?php echo $prefix; ?>contactformmaker,</p>
95
- <p><?php echo $prefix; ?>contactformmaker_submits,</p>
96
- <p><?php echo $prefix; ?>contactformmaker_themes,</p>
97
- <p><?php echo $prefix; ?>contactformmaker_views,</p>
98
- <p><?php echo $prefix; ?>contactformmaker_blocked.</p>
99
- </div>
100
- <div class="wrap">
101
- <h2>Uninstall Conact Form Builder</h2>
102
- <p><strong><a href="<?php echo $deactivate_url; ?>">Click Here</a> To Finish the Uninstallation and Contact Form Builder will be Deactivated Automatically.</strong></p>
103
- <input id="task" name="task" type="hidden" value="" />
104
- </div>
105
- <?php
106
- }
107
-
108
- ////////////////////////////////////////////////////////////////////////////////////////
109
- // Getters & Setters //
110
- ////////////////////////////////////////////////////////////////////////////////////////
111
- ////////////////////////////////////////////////////////////////////////////////////////
112
- // Private Methods //
113
- ////////////////////////////////////////////////////////////////////////////////////////
114
- ////////////////////////////////////////////////////////////////////////////////////////
115
- // Listeners //
116
- ////////////////////////////////////////////////////////////////////////////////////////
117
  }
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" style="width:95%;">
30
+ <?php wp_nonce_field('contact_form_maker uninstall');?>
31
+ <div class="wrap">
32
+ <span class="uninstall_icon"></span>
33
+ <h2>Uninstall Contact Form Builder</h2>
34
+ <p>
35
+ 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.
36
+ </p>
37
+ <p style="color: red;">
38
+ <strong>WARNING:</strong>
39
+ Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first.
40
+ </p>
41
+ <p style="color: red">
42
+ <strong>The following WordPress Options/Tables will be DELETED:</strong>
43
+ </p>
44
+ <table class="widefat">
45
+ <thead>
46
+ <tr>
47
+ <th>Database Tables</th>
48
+ </tr>
49
+ </thead>
50
+ <tr>
51
+ <td valign="top">
52
+ <ol>
53
+ <li><?php echo $prefix; ?>contactformmaker</li>
54
+ <li><?php echo $prefix; ?>contactformmaker_submits</li>
55
+ <li><?php echo $prefix; ?>contactformmaker_themes</li>
56
+ <li><?php echo $prefix; ?>contactformmaker_views</li>
57
+ <li><?php echo $prefix; ?>contactformmaker_blocked</li>
58
+ </ol>
59
+ </td>
60
+ </tr>
61
+ </table>
62
+ <p style="text-align: center;">
63
+ Do you really want to uninstall Conatct Form Builder?
64
+ </p>
65
+ <p style="text-align: center;">
66
+ <input type="checkbox" name="Contact Form Builder" id="check_yes" value="yes" />&nbsp;<label for="check_yes">Yes</label>
67
+ </p>
68
+ <p style="text-align: center;">
69
+ <input type="submit" value="UNINSTALL" class="button-primary" onclick="if (check_yes.checked) {
70
+ if (confirm('You are About to Uninstall Contact Form Builder from WordPress.\nThis Action Is Not Reversible.')) {
71
+ spider_set_input_value('task', 'uninstall');
72
+ } else {
73
+ return false;
74
+ }
75
+ }
76
+ else {
77
+ return false;
78
+ }" />
79
+ </p>
80
+ </div>
81
+ <input id="task" name="task" type="hidden" value="" />
82
+ </form>
83
+ <?php
84
+ }
85
+
86
+ public function uninstall() {
87
+ $this->model->delete_db_tables();
88
+ global $wpdb;
89
+ $prefix = $wpdb->prefix;
90
+ $deactivate_url = wp_nonce_url('plugins.php?action=deactivate&amp;plugin=contact-form-builder/contact-form-builder.php', 'deactivate-plugin_contact-form-builder/contact-form-builder.php');
91
+ ?>
92
+ <div id="message" class="updated fade">
93
+ <p>The following Database Tables succesfully deleted:</p>
94
+ <p><?php echo $prefix; ?>contactformmaker,</p>
95
+ <p><?php echo $prefix; ?>contactformmaker_submits,</p>
96
+ <p><?php echo $prefix; ?>contactformmaker_themes,</p>
97
+ <p><?php echo $prefix; ?>contactformmaker_views,</p>
98
+ <p><?php echo $prefix; ?>contactformmaker_blocked.</p>
99
+ </div>
100
+ <div class="wrap">
101
+ <h2>Uninstall Conact Form Builder</h2>
102
+ <p><strong><a href="<?php echo $deactivate_url; ?>">Click Here</a> To Finish the Uninstallation and Contact Form Builder will be Deactivated Automatically.</strong></p>
103
+ <input id="task" name="task" type="hidden" value="" />
104
+ </div>
105
+ <?php
106
+ }
107
+
108
+ ////////////////////////////////////////////////////////////////////////////////////////
109
+ // Getters & Setters //
110
+ ////////////////////////////////////////////////////////////////////////////////////////
111
+ ////////////////////////////////////////////////////////////////////////////////////////
112
+ // Private Methods //
113
+ ////////////////////////////////////////////////////////////////////////////////////////
114
+ ////////////////////////////////////////////////////////////////////////////////////////
115
+ // Listeners //
116
+ ////////////////////////////////////////////////////////////////////////////////////////
117
  }
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; ?>">Title:</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; ?>">Select a form:</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">- Select a Form -</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; ?>">Title:</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; ?>">Select a form:</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">- Select a Form -</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,132 +1,132 @@
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
- PRIMARY KEY (`id`)
47
- ) DEFAULT CHARSET=utf8;";
48
- $wpdb->query($contactformmaker);
49
- $contact_form_maker_row = $wpdb->get_var("SELECT * FROM " . $wpdb->prefix . "contactformmaker");
50
- if (!$contact_form_maker_row) {
51
- $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 - Type the characters you see here%</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 enquiries please call us on one of the telephone numbers 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**#Type the characters you see here#**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**#Type the characters you see here#**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*:*Type the characters you see here*:*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)');
52
- $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 - Type the characters you see here%</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 enquiries please call us on one of the telephone numbers 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 enquiries please call us on one of the telephone numbers 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**#Type the characters you see here#**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**#Type the characters you see here#**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*:*Type the characters you see here*:*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)');
53
- $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 - Type the characters you see here%</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 enquiries please call us on one of the telephone numbers 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 enquiries please call us on one of the telephone numbers 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**#Type the characters you see here#**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**#Type the characters you see here#**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*:*Type the characters you see here*:*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)');
54
- $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 - Type the characters you see here%</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 enquiries please call us on one of the telephone numbers 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 enquiries please call us on one of the telephone numbers 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**#Type the characters you see here#**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**#Type the characters you see here#**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*:*Type the characters you see here*:*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)');
55
- $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 - Type the characters you see here%</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 enquiries please call us on one of the telephone numbers 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 enquiries please call us on one of the telephone numbers 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**#Type the characters you see here#**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**#Type the characters you see here#**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*:*Type the characters you see here*:*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)');
56
- $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 - Type the characters you see here%</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 enquiries please call us on one of the telephone numbers 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 enquiries please call us on one of the telephone numbers 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**#Type the characters you see here#**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**#Type the characters you see here#**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*:*Type the characters you see here*:*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)');
57
- $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 - Type the characters you see here%</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 enquiries please call us on one of the telephone numbers 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 enquiries please call us on one of the telephone numbers 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**#Type the characters you see here#**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**#Type the characters you see here#**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*:*Type the characters you see here*:*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)');
58
- $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 - Type the characters you see here%</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 enquiries please call us on one of the telephone numbers 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 enquiries please call us on one of the telephone numbers 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**#Type the characters you see here#**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**#Type the characters you see here#**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*:*Type the characters you see here*:*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)');
59
- $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 - Type the characters you see here%</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 enquiries please call us on one of the telephone numbers 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 enquiries please call us on one of the telephone numbers 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**#Type the characters you see here#**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**#Type the characters you see here#**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*:*Type the characters you see here*:*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)');
60
- $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 - 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" 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 enquiries please call us on one of the telephone numbers 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 enquiries please call us on one of the telephone numbers 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**#Type the characters you see here#**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**#Type the characters you see here#**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*:*Type the characters you see here*:*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)');
61
- }
62
- $contactformmaker_submits = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix . "contactformmaker_submits` (
63
- `id` int(11) NOT NULL AUTO_INCREMENT,
64
- `form_id` int(11) NOT NULL,
65
- `element_label` varchar(128) NOT NULL,
66
- `element_value` varchar(600) NOT NULL,
67
- `group_id` int(11) NOT NULL,
68
- `date` datetime NOT NULL,
69
- `ip` varchar(32) NOT NULL,
70
- PRIMARY KEY (`id`)) DEFAULT CHARSET=utf8;";
71
- $wpdb->query($contactformmaker_submits);
72
- $contactformmaker_themes = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix . "contactformmaker_themes` (
73
- `id` int(11) NOT NULL AUTO_INCREMENT,
74
- `title` varchar(200) NOT NULL,
75
- `css` text NOT NULL,
76
- `default` tinyint(4) NOT NULL,
77
- PRIMARY KEY (`id`)
78
- ) DEFAULT CHARSET=utf8;";
79
- $wpdb->query($contactformmaker_themes);
80
- $contact_form_maker_theme_row = $wpdb->get_var("SELECT * FROM `" . $wpdb->prefix . "contactformmaker_themes`");
81
- if (!$contact_form_maker_theme_row) {
82
- $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:hover .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\r\n}\r\n.sel-imul.act .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\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)');
83
- $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:hover .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\r\n}\r\n.sel-imul.act .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\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)');
84
- $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:hover .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\r\n}\r\n.sel-imul.act .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\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)');
85
- $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:hover .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\r\n}\r\n.sel-imul.act .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\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)');
86
- $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:hover .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\r\n}\r\n.sel-imul.act .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\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)');
87
- $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:hover .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\r\n}\r\n.sel-imul.act .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\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)');
88
- $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:hover .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\r\n}\r\n.sel-imul.act .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\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)');
89
- $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:hover .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\r\n}\r\n.sel-imul.act .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\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)');
90
- $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:hover .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\r\n}\r\n.sel-imul.act .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\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)');
91
- $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:hover .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\r\n}\r\n.sel-imul.act .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\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)');
92
- $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:hover .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\r\n}\r\n.sel-imul.act .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\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)');
93
- $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:hover .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\r\n}\r\n.sel-imul.act .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\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)');
94
- $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:hover .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\r\n}\r\n.sel-imul.act .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\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)');
95
- $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:hover .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\r\n}\r\n.sel-imul.act .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\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)');
96
- $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:hover .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\r\n}\r\n.sel-imul.act .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\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)');
97
- $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:hover .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\r\n}\r\n.sel-imul.act .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\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-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: #C0C0C0;\r\n margin-left: 1px;\r\n}\r\n.page_active {\r\n color: #fff;\r\n cursor: pointer;\r\n background-color: #A8A8A8;\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(17, \'Theme 05 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: #0E7297;\r\nborder: 1px solid #A0CBDB;\r\nmargin-bottom: 10px;\r\ncolor: #A0CBDB;\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: 14px;\r\n height: 14px;\r\n top: -6px;\r\n border: 2px solid #ccc;\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 content: url([SITE_ROOT]/images/05/01/nextbg_hover.png) url([SITE_ROOT]/images/05/01/previousbg_hover.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: #CECECE;\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: #00B4F6 !important;\r\n color: #fff;\r\n}\r\na.ui-spinner-button:active{\r\n background: #00B4F6 !important;\r\n color: #fff;\r\n}\r\na.ui-spinner-button:focus{\r\n background: #00B4F6 !important;\r\n color: #fff;\r\n}\r\na.ui-slider-handle:hover{\r\n background: #00B4F6 !important;\r\n color: #fff;\r\noutline:none;\r\n}\r\na.ui-slider-handle:active{\r\n background: #00B4F6 !important;\r\n color: #fff;\r\noutline:none;\r\n}\r\na.ui-slider-handle:focus{\r\n background: #00B4F6 !important;\r\n color: #fff;\r\noutline:none;\r\n}\r\nui-state-hover {\r\n background: #00B4F6 !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\nborder-radius: 0px;\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: 20px;\r\n overflow: hidden;\r\n background: #fff;\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: 27px;\r\n background: url([SITE_ROOT]/images/05/01.png) 50% 50% no-repeat;\r\n position: absolute;\r\n top: -1px;\r\n right: 0px;\r\n padding: 2px;\r\n}\r\n.sel-imul:hover .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\r\n}\r\n.sel-imul.act .sel-selected .sel-arraw {\r\n// background-color:#e0e0e0;\r\n// border-left:1px solid #bbb;\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/05/01/upload.png) no-repeat;\r\n display: inline-block;\r\n}\r\n.next-page div.wdform-page-button {\r\n color: #ffffff;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 32px;\r\n line-height: 28px;\r\n background: url([SITE_ROOT]/images/05/01/nextbg.png) no-repeat;\r\n padding: 0px 20px 0 0;\r\n vertical-align: middle;\r\n font-size: 18px;\r\n margin-right: 20px;\r\n margin-left: 20px;\r\n width: 90px;\r\n}\r\n.next-page div.wdform-page-button:hover {\r\n background: url([SITE_ROOT]/images/05/01/nextbg_hover.png) no-repeat;\r\n width: 113px;\r\n}\r\n.previous-page div.wdform-page-button {\r\n color: #ffffff;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 32px;\r\n line-height: 28px;\r\n background: url([SITE_ROOT]/images/05/01/previousbg.png) no-repeat;\r\n padding: 0px 0 0 20px;\r\n vertical-align: middle;\r\n font-size: 18px;\r\n margin-right: 20px;\r\n margin-left: 20px;\r\n width: 90px;\r\n}\r\n.previous-page div.wdform-page-button:hover {\r\n background: url([SITE_ROOT]/images/05/01/previousbg_hover.png) no-repeat;\r\n width: 113px;\r\n}\r\n.button-submit {\r\n background: url([SITE_ROOT]/images/05/01/submit.png) no-repeat;\r\n cursor: pointer;\r\n font-size: 17px;\r\n border-radius: 0px;\r\n min-width: 80px;\r\n min-height: 32px;\r\n color: #fff;\r\n margin: 5px;\r\n border: 0px;\r\n font-family: Segoe UI;\r\n font-weight: 500;\r\n padding: 0 12px 0 24px;\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: #A0CBDB;\r\n padding:15px 20px;\r\n border-radius: 0px;\r\n font-family: Segoe UI;\r\n}\r\n.wdform_column {\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 0px;\r\n background: #006A91;\r\n border-radius: 0px;\r\npadding: 6px 10px 15px;\r\ntext-align: center;\r\nfont-size: 18px;\r\ncolor: #fff;\r\nbox-shadow: 0px 3px 5px #4B4B4B;\r\n}\r\n\r\n.wdform-field-section-break2:after {\r\n content: " ";\r\n position: relative;\r\n width: 97.7%;\r\n right: 0px;\r\n bottom: 20px;\r\n height: 4px;\r\n -webkit-box-shadow: 0 2px 3px #444141;\r\n -moz-box-shadow: 0 2px 3px #444141;\r\n box-shadow: 0 2px 3px #444141;\r\n display: inline-block;\r\n}\r\n\r\n.wdform_section_break {\r\n margin: 16px 0px;\r\n border-radius: 0px;\r\n text-align: left;\r\nfont-size: 18px;\r\ncolor: #3F3F3F;\r\n}\r\n.wdform_section {\r\n display: table-row;\r\n}\r\nselect {\r\n border-radius: 0px;\r\n height: 22px;\r\n overflow: hidden;\r\nborder: 1px solid transparent;\r\n padding: 2px;\r\n outline: none;\r\n}\r\ninput[type="text"]{\r\n border-radius: 0px;\r\n border: 1px solid transparent;\r\n height: 20px;\r\n padding:0 3px !important;\r\n}\r\ninput[type="password"]{\r\n border-radius: 0px;\r\n border: 1px solid transparent;\r\n height: 20px;\r\n padding:0 3px !important;\r\n}\r\ntextarea {\r\n border-radius: 0px;\r\n border: 1px solid transparent;\r\n height: 20px;\r\n padding:0 3px !important;\r\n}\r\ninput[type="text"]:focus{\r\n border: 1px solid #006A91;\r\n outline: none;\r\n}\r\ninput[type="password"]:focus{\r\n border: 1px solid #006A91;\r\n outline: none;\r\n}\r\ntextarea:focus{\r\n border: 1px solid #006A91;\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 #026994;\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/05/date.png) no-repeat left 50% !important;\r\n border: 0px;\r\n color: transparent;\r\n width: 20px;\r\n height: 21px;\r\n position: relative;\r\n left: -19px;\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: 13px;\r\n height: 12px;\r\n background: transparent;\r\n border: 1px solid #026994;\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: #026994;\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 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 25px 0px 25px;\r\n font-weight: bold;\r\n background-color: #006A91;\r\n margin-left: 1px;\r\n}\r\n.page_active {\r\n color: #fff;\r\n cursor: pointer;\r\n background-color: #01B4F6;\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 25px 0px 25px;\r\n margin-left: 1px;\r\n line-height: 25px;\r\n}\r\n.page_percentage_active {\r\n padding: 0px;\r\n margin: 0px;\r\n border-spacing: 0px;\r\n height: 27px;\r\n line-height: 27px;\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 vertical-align: middle;\r\n background: #018ABE;\r\n background: -moz-linear-gradient(left, #0079A6 0%, #018ABE 39%, #00B6FA 100%);\r\n background: -webkit-gradient(linear, left top, right top, color-stop(0%, #0079A6), color-stop(39%, #018ABE ), color-stop(100%, #00B6FA ));\r\n background: -webkit-linear-gradient(left, #0079A6 0%, #018ABE 39%, #00B6FA 100%);\r\n background: -o-linear-gradient(left, #0079A6 0%, #018ABE 39%, #00B6FA 100%);\r\n background: -ms-linear-gradient(left, #0079A6 0%, #018ABE 39%, #00B6FA 100%);\r\n background: linear-gradient(to right, #0079A6 0%, #018ABE 39%, #00B6FA 100%);\r\n border-top-right-radius: 9px;\r\n border-bottom-right-radius: 9px;\r\n box-shadow: 2px 0px 7px #9E9B9B;\r\n}\r\n.page_percentage_deactive {\r\n height: 27px;\r\n line-height: 27px;\r\n background-color: #C4D5DF;\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