Version Description
- add ability to call form with php function
- bug fixed in captcha
Download this release
Release Info
Developer | webdorado |
Plugin | Contact Form Builder – a plugin for creating contact and feedback forms |
Version | 1.0.17 |
Comparing to | |
See all releases |
Code changes from version 1.0.16 to 1.0.17
- admin/controllers/CFMControllerBlocked_ips_cfm.php +139 -139
- admin/controllers/CFMControllerCFMShortcode.php +42 -42
- admin/controllers/CFMControllerContactFormMakerPreview.php +42 -42
- admin/controllers/CFMControllerContactFormmakerwdcaptcha.php +42 -42
- admin/controllers/CFMControllerLicensing_cfm.php +48 -48
- admin/controllers/CFMControllerManage_cfm.php +572 -572
- admin/controllers/CFMControllerSubmissions_cfm.php +51 -51
- admin/controllers/CFMControllerThemes_cfm.php +51 -51
- admin/controllers/CFMControllerUninstall_cfm.php +56 -56
- admin/controllers/CFMControllerWidget.php +60 -60
- admin/models/CFMModelBlocked_ips_cfm.php +72 -72
- admin/models/CFMModelCFMShortcode.php +35 -35
- admin/models/CFMModelContactFormMakerPreview.php +30 -30
- admin/models/CFMModelContactFormmakerwdcaptcha.php +30 -30
- admin/models/CFMModelLicensing_cfm.php +29 -29
- admin/models/CFMModelManage_cfm.php +753 -753
- admin/models/CFMModelThemes_cfm.php +30 -30
- admin/models/CFMModelUninstall_cfm.php +38 -38
- admin/models/CFMModelWidget.php +36 -36
- admin/views/CFMViewBlocked_ips_cfm.php +147 -147
- admin/views/CFMViewCFMShortcode.php +112 -112
- admin/views/CFMViewContactFormMakerPreview.php +54 -54
- admin/views/CFMViewContactFormmakerwdcaptcha.php +92 -92
- admin/views/CFMViewLicensing_cfm.php +152 -152
- admin/views/CFMViewManage_cfm.php +1527 -1523
- admin/views/CFMViewSubmissions_cfm.php +47 -47
- admin/views/CFMViewThemes_cfm.php +62 -62
- admin/views/CFMViewUninstall_cfm.php +116 -116
- admin/views/CFMViewWidget.php +83 -83
- contact-form-builder-insert.php +0 -102
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("'.$id.'","","form_id_temp")" '.$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("'.$id.'_elementform_id_temp")" onblur="return_value("'.$id.'_elementform_id_temp")" onchange="change_value("'.$id.'_elementform_id_temp")" 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("'.$id.'_elementform_id_temp")" onblur="return_value("'.$id.'_elementform_id_temp")" onchange="change_value("'.$id.'_elementform_id_temp")" 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("'.$id.'_elementform_id_temp")" onblur="return_value("'.$id.'_elementform_id_temp")" onchange="change_value("'.$id.'_elementform_id_temp")" 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("'.$id.'_element_firstform_id_temp")"onblur="return_value("'.$id.'_element_firstform_id_temp")"onchange="change_value("'.$id.'_element_firstform_id_temp")" 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("'.$id.'_element_lastform_id_temp")"onblur="return_value("'.$id.'_element_lastform_id_temp")" onchange="change_value("'.$id.'_element_lastform_id_temp")" 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("'.$id.'_element_firstform_id_temp")"onblur="return_value("'.$id.'_element_firstform_id_temp")" onchange="change_value("'.$id.'_element_firstform_id_temp")" 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("'.$id.'_element_lastform_id_temp")"onblur="return_value("'.$id.'_element_lastform_id_temp")" onchange="change_value("'.$id.'_element_lastform_id_temp")" 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("'.$id.'_element_titleform_id_temp")" onblur="return_value("'.$id.'_element_titleform_id_temp")" onchange="change_value("'.$id.'_element_titleform_id_temp")" 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("'.$id.'_element_firstform_id_temp")" onblur="return_value("'.$id.'_element_firstform_id_temp")" onchange="change_value("'.$id.'_element_firstform_id_temp")" 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("'.$id.'_element_lastform_id_temp")" onblur="return_value("'.$id.'_element_lastform_id_temp")" onchange="change_value("'.$id.'_element_lastform_id_temp")" 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("'.$id.'_element_middleform_id_temp")" onblur="return_value("'.$id.'_element_middleform_id_temp")" onchange="change_value("'.$id.'_element_middleform_id_temp")" 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("'.$id.'_street1form_id_temp")" 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("'.$id.'_street2form_id_temp")" 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("'.$id.'_cityform_id_temp")" 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("'.$id.'_stateform_id_temp")" 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("'.$id.'_stateform_id_temp")" 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("'.$id.'_postalform_id_temp")" 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.',"form_id_temp")" 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("'.$id.'_elementform_id_temp")" onblur="return_value("'.$id.'_elementform_id_temp")" onchange="change_value("'.$id.'_elementform_id_temp")" 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("'.$id.'","'.((int)$param['w_rowcol']*$l+$i).'","form_id_temp")) show_other_input("'.$id.'","form_id_temp");" '.$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("'.$id.'","'.((int)$param['w_rowcol']*$l+$i).'","form_id_temp")" '.$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("'.$id.'","'.((int)$param['w_rowcol']*$i+$l).'","form_id_temp")) show_other_input("'.$id.'","form_id_temp");" '.$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("'.$id.'","'.((int)$param['w_rowcol']*$i+$l).'","form_id_temp")" '.$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("'.$id.'","'.((int)$param['w_rowcol']*$i+$l).'","form_id_temp")) show_other_input("'.$id.'","form_id_temp");" '.$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("'.$id.'","'.((int)$param['w_rowcol']*$i+$l).'","form_id_temp")" '.$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("'.$id.'","'.$l.'","form_id_temp")) show_other_input("'.$id.'","form_id_temp");" '.$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("'.$id.'","'.$l.'","form_id_temp")" '.$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("'.$id.'","'.((int)$param['w_rowcol']*$l+$i).'","form_id_temp"); show_other_input("'.$id.'","form_id_temp");" '.$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("'.$id.'","'.((int)$param['w_rowcol']*$l+$i).'","form_id_temp")" '.$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("'.$id.'","'.((int)$param['w_rowcol']*$i+$l).'","form_id_temp"); show_other_input("'.$id.'","form_id_temp");" '.$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("'.$id.'","'.((int)$param['w_rowcol']*$i+$l).'","form_id_temp")" '.$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("'.$id.'","'.((int)$param['w_rowcol']*$i+$l).'","form_id_temp"); show_other_input("'.$id.'","form_id_temp");" '.$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("'.$id.'","'.((int)$param['w_rowcol']*$i+$l).'","form_id_temp")" '.$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("'.$id.'","'.$l.'","form_id_temp"); show_other_input("'.$id.'","form_id_temp");" '.$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("'.$id.'","'.$l.'","form_id_temp")" '.$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("'.$id.'_option'.$key.'")" '.$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("_wd_captcha","form_id_temp")" '.$param['attributes'].'></div><div valign="middle" style="display: table-cell;"><div class="captcha_refresh" id="_element_refreshform_id_temp" onclick="captcha_refresh("_wd_captcha","form_id_temp")" '.$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("submit", "form_id_temp");" '.$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("reset");" '.$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("'.$id.'")" onmouseover="chnage_icons_src(this,"left")" onmouseout="chnage_icons_src(this,"left")"></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("'.$id.'")" onmouseover="chnage_icons_src(this,"up")" onmouseout="chnage_icons_src(this,"up")"></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("'.$id.'")" onmouseover="chnage_icons_src(this,"down")" onmouseout="chnage_icons_src(this,"down")"></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("'.$id.'")" onmouseover="chnage_icons_src(this,"right")" onmouseout="chnage_icons_src(this,"right")"></div><div id="edit_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/edit.png" title="Edit the field" onclick="edit("'.$id.'")" onmouseover="chnage_icons_src(this,"edit")" onmouseout="chnage_icons_src(this,"edit")"></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("'.$id.'")" 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("'.$id.'")"><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("'.$id.'")" 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("'.$id.'")"></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("'.$id.'")"></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("'.$id.'")"></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("'.$id.'")"></div><div id="edit_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/edit.png" title="Edit the field" onclick="edit("'.$id.'")"></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("'.$id.'")" 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("'.$id.'")" onmouseover="chnage_icons_src(this,"left")" onmouseout="chnage_icons_src(this,"left")"></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("'.$id.'")" onmouseover="chnage_icons_src(this,"up")" onmouseout="chnage_icons_src(this,"up")"></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("'.$id.'")" onmouseover="chnage_icons_src(this,"down")" onmouseout="chnage_icons_src(this,"down")"></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("'.$id.'")" onmouseover="chnage_icons_src(this,"right")" onmouseout="chnage_icons_src(this,"right")"></div><div id="edit_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/edit.png" title="Edit the field" onclick="edit("'.$id.'")" onmouseover="chnage_icons_src(this,"edit")" onmouseout="chnage_icons_src(this,"edit")"></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("'.$id.'")" 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("'.$id.'")" onmouseover="chnage_icons_src(this,"left")" onmouseout="chnage_icons_src(this,"left")"></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("'.$id.'")" onmouseover="chnage_icons_src(this,"up")" onmouseout="chnage_icons_src(this,"up")"></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("'.$id.'")" onmouseover="chnage_icons_src(this,"down")" onmouseout="chnage_icons_src(this,"down")"></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("'.$id.'")" onmouseover="chnage_icons_src(this,"right")" onmouseout="chnage_icons_src(this,"right")"></div><div id="edit_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/edit.png" title="Edit the field" onclick="edit("'.$id.'")" onmouseover="chnage_icons_src(this,"edit")" onmouseout="chnage_icons_src(this,"edit")"></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("'.$id.'")" 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("'.$id.'","","form_id_temp")" '.$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("'.$id.'_elementform_id_temp")" onblur="return_value("'.$id.'_elementform_id_temp")" onchange="change_value("'.$id.'_elementform_id_temp")" 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("'.$id.'_elementform_id_temp")" onblur="return_value("'.$id.'_elementform_id_temp")" onchange="change_value("'.$id.'_elementform_id_temp")" 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("'.$id.'_elementform_id_temp")" onblur="return_value("'.$id.'_elementform_id_temp")" onchange="change_value("'.$id.'_elementform_id_temp")" 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("'.$id.'_element_firstform_id_temp")"onblur="return_value("'.$id.'_element_firstform_id_temp")"onchange="change_value("'.$id.'_element_firstform_id_temp")" 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("'.$id.'_element_lastform_id_temp")"onblur="return_value("'.$id.'_element_lastform_id_temp")" onchange="change_value("'.$id.'_element_lastform_id_temp")" 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("'.$id.'_element_firstform_id_temp")"onblur="return_value("'.$id.'_element_firstform_id_temp")" onchange="change_value("'.$id.'_element_firstform_id_temp")" 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("'.$id.'_element_lastform_id_temp")"onblur="return_value("'.$id.'_element_lastform_id_temp")" onchange="change_value("'.$id.'_element_lastform_id_temp")" 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("'.$id.'_element_titleform_id_temp")" onblur="return_value("'.$id.'_element_titleform_id_temp")" onchange="change_value("'.$id.'_element_titleform_id_temp")" 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("'.$id.'_element_firstform_id_temp")" onblur="return_value("'.$id.'_element_firstform_id_temp")" onchange="change_value("'.$id.'_element_firstform_id_temp")" 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("'.$id.'_element_lastform_id_temp")" onblur="return_value("'.$id.'_element_lastform_id_temp")" onchange="change_value("'.$id.'_element_lastform_id_temp")" 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("'.$id.'_element_middleform_id_temp")" onblur="return_value("'.$id.'_element_middleform_id_temp")" onchange="change_value("'.$id.'_element_middleform_id_temp")" 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("'.$id.'_street1form_id_temp")" 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("'.$id.'_street2form_id_temp")" 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("'.$id.'_cityform_id_temp")" 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("'.$id.'_stateform_id_temp")" 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("'.$id.'_stateform_id_temp")" 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("'.$id.'_postalform_id_temp")" 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.',"form_id_temp")" 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("'.$id.'_elementform_id_temp")" onblur="return_value("'.$id.'_elementform_id_temp")" onchange="change_value("'.$id.'_elementform_id_temp")" 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("'.$id.'","'.((int)$param['w_rowcol']*$l+$i).'","form_id_temp")) show_other_input("'.$id.'","form_id_temp");" '.$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("'.$id.'","'.((int)$param['w_rowcol']*$l+$i).'","form_id_temp")" '.$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("'.$id.'","'.((int)$param['w_rowcol']*$i+$l).'","form_id_temp")) show_other_input("'.$id.'","form_id_temp");" '.$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("'.$id.'","'.((int)$param['w_rowcol']*$i+$l).'","form_id_temp")" '.$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("'.$id.'","'.((int)$param['w_rowcol']*$i+$l).'","form_id_temp")) show_other_input("'.$id.'","form_id_temp");" '.$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("'.$id.'","'.((int)$param['w_rowcol']*$i+$l).'","form_id_temp")" '.$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("'.$id.'","'.$l.'","form_id_temp")) show_other_input("'.$id.'","form_id_temp");" '.$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("'.$id.'","'.$l.'","form_id_temp")" '.$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("'.$id.'","'.((int)$param['w_rowcol']*$l+$i).'","form_id_temp"); show_other_input("'.$id.'","form_id_temp");" '.$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("'.$id.'","'.((int)$param['w_rowcol']*$l+$i).'","form_id_temp")" '.$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("'.$id.'","'.((int)$param['w_rowcol']*$i+$l).'","form_id_temp"); show_other_input("'.$id.'","form_id_temp");" '.$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("'.$id.'","'.((int)$param['w_rowcol']*$i+$l).'","form_id_temp")" '.$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("'.$id.'","'.((int)$param['w_rowcol']*$i+$l).'","form_id_temp"); show_other_input("'.$id.'","form_id_temp");" '.$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("'.$id.'","'.((int)$param['w_rowcol']*$i+$l).'","form_id_temp")" '.$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("'.$id.'","'.$l.'","form_id_temp"); show_other_input("'.$id.'","form_id_temp");" '.$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("'.$id.'","'.$l.'","form_id_temp")" '.$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("'.$id.'_option'.$key.'")" '.$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("_wd_captcha","form_id_temp")" '.$param['attributes'].'></div><div valign="middle" style="display: table-cell;"><div class="captcha_refresh" id="_element_refreshform_id_temp" onclick="captcha_refresh("_wd_captcha","form_id_temp")" '.$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("submit", "form_id_temp");" '.$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("reset");" '.$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("'.$id.'")" onmouseover="chnage_icons_src(this,"left")" onmouseout="chnage_icons_src(this,"left")"></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("'.$id.'")" onmouseover="chnage_icons_src(this,"up")" onmouseout="chnage_icons_src(this,"up")"></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("'.$id.'")" onmouseover="chnage_icons_src(this,"down")" onmouseout="chnage_icons_src(this,"down")"></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("'.$id.'")" onmouseover="chnage_icons_src(this,"right")" onmouseout="chnage_icons_src(this,"right")"></div><div id="edit_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/edit.png" title="Edit the field" onclick="edit("'.$id.'")" onmouseover="chnage_icons_src(this,"edit")" onmouseout="chnage_icons_src(this,"edit")"></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("'.$id.'")" 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("'.$id.'")"><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("'.$id.'")" 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("'.$id.'")"></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("'.$id.'")"></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("'.$id.'")"></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("'.$id.'")"></div><div id="edit_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/edit.png" title="Edit the field" onclick="edit("'.$id.'")"></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("'.$id.'")" 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("'.$id.'")" onmouseover="chnage_icons_src(this,"left")" onmouseout="chnage_icons_src(this,"left")"></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("'.$id.'")" onmouseover="chnage_icons_src(this,"up")" onmouseout="chnage_icons_src(this,"up")"></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("'.$id.'")" onmouseover="chnage_icons_src(this,"down")" onmouseout="chnage_icons_src(this,"down")"></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("'.$id.'")" onmouseover="chnage_icons_src(this,"right")" onmouseout="chnage_icons_src(this,"right")"></div><div id="edit_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/edit.png" title="Edit the field" onclick="edit("'.$id.'")" onmouseover="chnage_icons_src(this,"edit")" onmouseout="chnage_icons_src(this,"edit")"></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("'.$id.'")" 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("'.$id.'")" onmouseover="chnage_icons_src(this,"left")" onmouseout="chnage_icons_src(this,"left")"></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("'.$id.'")" onmouseover="chnage_icons_src(this,"up")" onmouseout="chnage_icons_src(this,"up")"></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("'.$id.'")" onmouseover="chnage_icons_src(this,"down")" onmouseout="chnage_icons_src(this,"down")"></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("'.$id.'")" onmouseover="chnage_icons_src(this,"right")" onmouseout="chnage_icons_src(this,"right")"></div><div id="edit_'.$id.'" valign="middle" class="element_toolbar"><img src="' . WD_CFM_URL . '/images/edit.png" title="Edit the field" onclick="edit("'.$id.'")" onmouseover="chnage_icons_src(this,"edit")" onmouseout="chnage_icons_src(this,"edit")"></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("'.$id.'")" 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,1528 @@
|
|
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="
|
82 |
-
<th class="table_big_col">
|
83 |
-
<th class="table_big_col"
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
$
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
<td>
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
<td
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
<input id="
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
$
|
152 |
-
$
|
153 |
-
$
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
if (
|
215 |
-
continue;
|
216 |
-
}
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
addr_id
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
}
|
311 |
-
if (document.getElementById(id + "
|
312 |
-
s = document.getElementById(id + "
|
313 |
-
|
314 |
-
}
|
315 |
-
if (document.getElementById(id + "
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
form_fields += "*:*
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
<div style="float:
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
<
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
<div style="float:
|
429 |
-
<span
|
430 |
-
<
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
<td
|
448 |
-
<
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
<input type="hidden"
|
471 |
-
<
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
<div id="
|
502 |
-
<div id="
|
503 |
-
<div id="
|
504 |
-
<div id="
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
<input type="hidden" name="
|
524 |
-
<input type="hidden"
|
525 |
-
<input type="hidden"
|
526 |
-
<input type="hidden" name="
|
527 |
-
<input type="hidden"
|
528 |
-
<input type="hidden"
|
529 |
-
<?php
|
530 |
-
|
531 |
-
|
532 |
-
<
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
document.getElementById("
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
document.getElementById(
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
|
702 |
-
|
703 |
-
|
704 |
-
|
705 |
-
|
706 |
-
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
|
747 |
-
|
748 |
-
$
|
749 |
-
$
|
750 |
-
$
|
751 |
-
$
|
752 |
-
|
753 |
-
|
754 |
-
|
755 |
-
|
756 |
-
|
757 |
-
|
758 |
-
|
759 |
-
|
760 |
-
|
761 |
-
|
762 |
-
|
763 |
-
|
764 |
-
|
765 |
-
|
766 |
-
$
|
767 |
-
|
768 |
-
|
769 |
-
|
770 |
-
|
771 |
-
|
772 |
-
|
773 |
-
|
774 |
-
|
775 |
-
|
776 |
-
|
777 |
-
|
778 |
-
|
779 |
-
|
780 |
-
|
781 |
-
|
782 |
-
|
783 |
-
|
784 |
-
|
785 |
-
|
786 |
-
|
787 |
-
</
|
788 |
-
<
|
789 |
-
|
790 |
-
<
|
791 |
-
|
792 |
-
|
793 |
-
|
794 |
-
|
795 |
-
|
796 |
-
spider_check_email('
|
797 |
-
spider_check_email('
|
798 |
-
spider_check_email('
|
799 |
-
spider_check_email('
|
800 |
-
spider_check_email('
|
801 |
-
spider_check_email('
|
802 |
-
|
803 |
-
spider_check_email('
|
804 |
-
spider_check_email('
|
805 |
-
spider_check_email('
|
806 |
-
|
807 |
-
spider_check_email('
|
808 |
-
spider_check_email('
|
809 |
-
spider_check_email('
|
810 |
-
spider_check_email('
|
811 |
-
spider_check_email('
|
812 |
-
spider_check_email('
|
813 |
-
|
814 |
-
|
815 |
-
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
-
|
822 |
-
|
823 |
-
|
824 |
-
|
825 |
-
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
-
|
831 |
-
|
832 |
-
|
833 |
-
|
834 |
-
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
-
<
|
840 |
-
</td>
|
841 |
-
|
842 |
-
|
843 |
-
|
844 |
-
|
845 |
-
|
846 |
-
|
847 |
-
|
848 |
-
<
|
849 |
-
</td>
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
|
856 |
-
|
857 |
-
|
858 |
-
|
859 |
-
|
860 |
-
|
861 |
-
|
862 |
-
|
863 |
-
|
864 |
-
|
865 |
-
|
866 |
-
|
867 |
-
|
868 |
-
|
869 |
-
|
870 |
-
|
871 |
-
|
872 |
-
|
873 |
-
|
874 |
-
|
875 |
-
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
881 |
-
|
882 |
-
|
883 |
-
|
884 |
-
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
|
889 |
-
|
890 |
-
|
891 |
-
|
892 |
-
|
893 |
-
<
|
894 |
-
</td>
|
895 |
-
|
896 |
-
|
897 |
-
|
898 |
-
|
899 |
-
|
900 |
-
|
901 |
-
|
902 |
-
|
903 |
-
|
904 |
-
|
905 |
-
|
906 |
-
<
|
907 |
-
|
908 |
-
|
909 |
-
|
910 |
-
|
911 |
-
<
|
912 |
-
|
913 |
-
|
914 |
-
|
915 |
-
|
916 |
-
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
-
|
922 |
-
|
923 |
-
|
924 |
-
|
925 |
-
|
926 |
-
|
927 |
-
|
928 |
-
|
929 |
-
|
930 |
-
|
931 |
-
|
932 |
-
|
933 |
-
|
934 |
-
|
935 |
-
|
936 |
-
|
937 |
-
|
938 |
-
|
939 |
-
|
940 |
-
|
941 |
-
|
942 |
-
|
943 |
-
|
944 |
-
|
945 |
-
|
946 |
-
|
947 |
-
|
948 |
-
|
949 |
-
|
950 |
-
|
951 |
-
|
952 |
-
|
953 |
-
|
954 |
-
|
955 |
-
|
956 |
-
|
957 |
-
|
958 |
-
|
959 |
-
|
960 |
-
|
961 |
-
|
962 |
-
|
963 |
-
|
964 |
-
|
965 |
-
<
|
966 |
-
|
967 |
-
|
968 |
-
|
969 |
-
|
970 |
-
|
971 |
-
|
972 |
-
|
973 |
-
|
974 |
-
|
975 |
-
|
976 |
-
|
977 |
-
|
978 |
-
|
979 |
-
|
980 |
-
|
981 |
-
|
982 |
-
|
983 |
-
|
984 |
-
|
985 |
-
|
986 |
-
|
987 |
-
|
988 |
-
|
989 |
-
|
990 |
-
|
991 |
-
|
992 |
-
|
993 |
-
|
994 |
-
|
995 |
-
|
996 |
-
|
997 |
-
|
998 |
-
|
999 |
-
|
1000 |
-
|
1001 |
-
|
1002 |
-
|
1003 |
-
|
1004 |
-
|
1005 |
-
|
1006 |
-
|
1007 |
-
|
1008 |
-
|
1009 |
-
|
1010 |
-
|
1011 |
-
|
1012 |
-
|
1013 |
-
|
1014 |
-
|
1015 |
-
|
1016 |
-
|
1017 |
-
|
1018 |
-
<
|
1019 |
-
|
1020 |
-
|
1021 |
-
|
1022 |
-
|
1023 |
-
|
1024 |
-
|
1025 |
-
|
1026 |
-
|
1027 |
-
|
1028 |
-
|
1029 |
-
|
1030 |
-
|
1031 |
-
|
1032 |
-
|
1033 |
-
|
1034 |
-
|
1035 |
-
|
1036 |
-
|
1037 |
-
|
1038 |
-
|
1039 |
-
|
1040 |
-
|
1041 |
-
|
1042 |
-
|
1043 |
-
<
|
1044 |
-
|
1045 |
-
|
1046 |
-
|
1047 |
-
|
1048 |
-
|
1049 |
-
|
1050 |
-
|
1051 |
-
|
1052 |
-
|
1053 |
-
|
1054 |
-
|
1055 |
-
|
1056 |
-
|
1057 |
-
|
1058 |
-
|
1059 |
-
|
1060 |
-
|
1061 |
-
|
1062 |
-
|
1063 |
-
|
1064 |
-
|
1065 |
-
|
1066 |
-
|
1067 |
-
|
1068 |
-
|
1069 |
-
|
1070 |
-
|
1071 |
-
|
1072 |
-
|
1073 |
-
|
1074 |
-
<
|
1075 |
-
</td>
|
1076 |
-
|
1077 |
-
|
1078 |
-
|
1079 |
-
|
1080 |
-
|
1081 |
-
|
1082 |
-
|
1083 |
-
|
1084 |
-
|
1085 |
-
|
1086 |
-
|
1087 |
-
|
1088 |
-
|
1089 |
-
|
1090 |
-
|
1091 |
-
|
1092 |
-
|
1093 |
-
|
1094 |
-
|
1095 |
-
|
1096 |
-
|
1097 |
-
|
1098 |
-
|
1099 |
-
|
1100 |
-
|
1101 |
-
|
1102 |
-
|
1103 |
-
|
1104 |
-
|
1105 |
-
|
1106 |
-
|
1107 |
-
|
1108 |
-
|
1109 |
-
|
1110 |
-
|
1111 |
-
|
1112 |
-
|
1113 |
-
|
1114 |
-
|
1115 |
-
|
1116 |
-
|
1117 |
-
|
1118 |
-
|
1119 |
-
|
1120 |
-
|
1121 |
-
|
1122 |
-
|
1123 |
-
|
1124 |
-
|
1125 |
-
|
1126 |
-
|
1127 |
-
|
1128 |
-
|
1129 |
-
|
1130 |
-
|
1131 |
-
|
1132 |
-
|
1133 |
-
|
1134 |
-
|
1135 |
-
|
1136 |
-
|
1137 |
-
|
1138 |
-
|
1139 |
-
|
1140 |
-
|
1141 |
-
|
1142 |
-
|
1143 |
-
|
1144 |
-
|
1145 |
-
|
1146 |
-
|
1147 |
-
|
1148 |
-
|
1149 |
-
|
1150 |
-
|
1151 |
-
|
1152 |
-
<
|
1153 |
-
|
1154 |
-
|
1155 |
-
|
1156 |
-
|
1157 |
-
|
1158 |
-
|
1159 |
-
|
1160 |
-
|
1161 |
-
|
1162 |
-
|
1163 |
-
|
1164 |
-
|
1165 |
-
|
1166 |
-
|
1167 |
-
|
1168 |
-
|
1169 |
-
|
1170 |
-
|
1171 |
-
|
1172 |
-
|
1173 |
-
|
1174 |
-
|
1175 |
-
|
1176 |
-
|
1177 |
-
|
1178 |
-
|
1179 |
-
|
1180 |
-
|
1181 |
-
|
1182 |
-
|
1183 |
-
|
1184 |
-
|
1185 |
-
|
1186 |
-
|
1187 |
-
|
1188 |
-
|
1189 |
-
|
1190 |
-
|
1191 |
-
|
1192 |
-
|
1193 |
-
|
1194 |
-
|
1195 |
-
|
1196 |
-
|
1197 |
-
|
1198 |
-
|
1199 |
-
|
1200 |
-
|
1201 |
-
|
1202 |
-
|
1203 |
-
|
1204 |
-
|
1205 |
-
|
1206 |
-
|
1207 |
-
<
|
1208 |
-
|
1209 |
-
|
1210 |
-
|
1211 |
-
|
1212 |
-
|
1213 |
-
|
1214 |
-
|
1215 |
-
|
1216 |
-
|
1217 |
-
|
1218 |
-
|
1219 |
-
|
1220 |
-
|
1221 |
-
|
1222 |
-
|
1223 |
-
|
1224 |
-
|
1225 |
-
|
1226 |
-
|
1227 |
-
|
1228 |
-
|
1229 |
-
|
1230 |
-
|
1231 |
-
|
1232 |
-
|
1233 |
-
|
1234 |
-
|
1235 |
-
|
1236 |
-
|
1237 |
-
|
1238 |
-
<
|
1239 |
-
</td>
|
1240 |
-
|
1241 |
-
|
1242 |
-
|
1243 |
-
|
1244 |
-
|
1245 |
-
|
1246 |
-
|
1247 |
-
|
1248 |
-
|
1249 |
-
|
1250 |
-
|
1251 |
-
|
1252 |
-
|
1253 |
-
|
1254 |
-
|
1255 |
-
|
1256 |
-
|
1257 |
-
|
1258 |
-
|
1259 |
-
|
1260 |
-
|
1261 |
-
|
1262 |
-
|
1263 |
-
|
1264 |
-
|
1265 |
-
|
1266 |
-
|
1267 |
-
|
1268 |
-
|
1269 |
-
|
1270 |
-
|
1271 |
-
|
1272 |
-
|
1273 |
-
|
1274 |
-
|
1275 |
-
|
1276 |
-
|
1277 |
-
|
1278 |
-
|
1279 |
-
|
1280 |
-
|
1281 |
-
|
1282 |
-
|
1283 |
-
|
1284 |
-
|
1285 |
-
<
|
1286 |
-
|
1287 |
-
|
1288 |
-
<div><input type="radio" name="submit_text_type" id="
|
1289 |
-
|
1290 |
-
|
1291 |
-
|
1292 |
-
|
1293 |
-
|
1294 |
-
|
1295 |
-
|
1296 |
-
|
1297 |
-
|
1298 |
-
|
1299 |
-
|
1300 |
-
|
1301 |
-
|
1302 |
-
|
1303 |
-
|
1304 |
-
|
1305 |
-
|
1306 |
-
|
1307 |
-
|
1308 |
-
|
1309 |
-
|
1310 |
-
|
1311 |
-
|
1312 |
-
|
1313 |
-
|
1314 |
-
|
1315 |
-
|
1316 |
-
|
1317 |
-
|
1318 |
-
|
1319 |
-
|
1320 |
-
|
1321 |
-
|
1322 |
-
|
1323 |
-
|
1324 |
-
|
1325 |
-
|
1326 |
-
|
1327 |
-
|
1328 |
-
|
1329 |
-
|
1330 |
-
|
1331 |
-
|
1332 |
-
|
1333 |
-
|
1334 |
-
|
1335 |
-
|
1336 |
-
|
1337 |
-
|
1338 |
-
|
1339 |
-
|
1340 |
-
|
1341 |
-
|
1342 |
-
|
1343 |
-
|
1344 |
-
|
1345 |
-
|
1346 |
-
|
1347 |
-
|
1348 |
-
|
1349 |
-
|
1350 |
-
|
1351 |
-
|
1352 |
-
|
1353 |
-
|
1354 |
-
|
1355 |
-
|
1356 |
-
|
1357 |
-
|
1358 |
-
|
1359 |
-
|
1360 |
-
|
1361 |
-
|
1362 |
-
|
1363 |
-
|
1364 |
-
|
1365 |
-
|
1366 |
-
|
1367 |
-
|
1368 |
-
|
1369 |
-
|
1370 |
-
|
1371 |
-
|
1372 |
-
|
1373 |
-
|
1374 |
-
|
1375 |
-
|
1376 |
-
|
1377 |
-
|
1378 |
-
|
1379 |
-
|
1380 |
-
|
1381 |
-
|
1382 |
-
|
1383 |
-
|
1384 |
-
|
1385 |
-
|
1386 |
-
|
1387 |
-
|
1388 |
-
|
1389 |
-
|
1390 |
-
|
1391 |
-
|
1392 |
-
|
1393 |
-
|
1394 |
-
|
1395 |
-
$
|
1396 |
-
$
|
1397 |
-
|
1398 |
-
|
1399 |
-
|
1400 |
-
|
1401 |
-
|
1402 |
-
$temp = explode('*:*
|
1403 |
-
array_push($
|
1404 |
-
|
1405 |
-
|
1406 |
-
|
1407 |
-
|
1408 |
-
|
1409 |
-
|
1410 |
-
|
1411 |
-
|
1412 |
-
|
1413 |
-
|
1414 |
-
|
1415 |
-
|
1416 |
-
|
1417 |
-
|
1418 |
-
|
1419 |
-
|
1420 |
-
|
1421 |
-
|
1422 |
-
|
1423 |
-
|
1424 |
-
|
1425 |
-
|
1426 |
-
|
1427 |
-
|
1428 |
-
|
1429 |
-
|
1430 |
-
|
1431 |
-
|
1432 |
-
editor.
|
1433 |
-
|
1434 |
-
|
1435 |
-
|
1436 |
-
|
1437 |
-
|
1438 |
-
|
1439 |
-
|
1440 |
-
|
1441 |
-
|
1442 |
-
|
1443 |
-
editor.
|
1444 |
-
|
1445 |
-
|
1446 |
-
|
1447 |
-
|
1448 |
-
|
1449 |
-
|
1450 |
-
|
1451 |
-
|
1452 |
-
|
1453 |
-
|
1454 |
-
|
1455 |
-
|
1456 |
-
|
1457 |
-
|
1458 |
-
|
1459 |
-
|
1460 |
-
|
1461 |
-
|
1462 |
-
|
1463 |
-
|
1464 |
-
|
1465 |
-
|
1466 |
-
|
1467 |
-
<p>To
|
1468 |
-
<
|
1469 |
-
|
1470 |
-
|
1471 |
-
<
|
1472 |
-
<
|
1473 |
-
<
|
1474 |
-
|
1475 |
-
<
|
1476 |
-
<input type="
|
1477 |
-
|
1478 |
-
|
1479 |
-
|
1480 |
-
|
1481 |
-
|
1482 |
-
|
1483 |
-
|
1484 |
-
|
1485 |
-
|
1486 |
-
|
1487 |
-
|
1488 |
-
|
1489 |
-
|
1490 |
-
|
1491 |
-
|
1492 |
-
|
1493 |
-
|
1494 |
-
|
1495 |
-
|
1496 |
-
|
1497 |
-
|
1498 |
-
|
1499 |
-
|
1500 |
-
|
1501 |
-
|
1502 |
-
}
|
1503 |
-
|
1504 |
-
editor.setOption('readOnly',
|
1505 |
-
editor.setValue(
|
1506 |
-
}
|
1507 |
-
|
1508 |
-
|
1509 |
-
|
1510 |
-
|
1511 |
-
|
1512 |
-
|
1513 |
-
|
1514 |
-
|
1515 |
-
|
1516 |
-
|
1517 |
-
|
1518 |
-
|
1519 |
-
|
1520 |
-
|
1521 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
1522 |
-
|
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_large_col">PHP function</th>
|
82 |
+
<th class="table_big_col">Preview</th>
|
83 |
+
<th class="table_big_col">Edit</th>
|
84 |
+
<th class="table_big_col"><a title="Delete selected items" href="" onclick="if (confirm('Do you want to delete selected items?')) {
|
85 |
+
spider_set_input_value('task', 'delete_all');
|
86 |
+
spider_form_submit(event, 'manage_form');
|
87 |
+
} else {
|
88 |
+
return false;
|
89 |
+
}">Delete</a></th>
|
90 |
+
</thead>
|
91 |
+
<tbody id="tbody_arr">
|
92 |
+
<?php
|
93 |
+
if ($rows_data) {
|
94 |
+
foreach ($rows_data as $row_data) {
|
95 |
+
$alternate = (!isset($alternate) || $alternate == 'class="alternate"') ? '' : 'class="alternate"';
|
96 |
+
$old = '';
|
97 |
+
if (isset($row_data->form) && ($row_data->form != '')) {
|
98 |
+
$old = '_old';
|
99 |
+
}
|
100 |
+
?>
|
101 |
+
<tr id="tr_<?php echo $row_data->id; ?>" <?php echo $alternate; ?>>
|
102 |
+
<td class="table_small_col check-column">
|
103 |
+
<input id="check_<?php echo $row_data->id; ?>" name="check_<?php echo $row_data->id; ?>" type="checkbox"/>
|
104 |
+
</td>
|
105 |
+
<td class="table_small_col"><?php echo $row_data->id; ?></td>
|
106 |
+
<td>
|
107 |
+
<a onclick="spider_set_input_value('task', 'edit<?php echo $old; ?>');
|
108 |
+
spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
|
109 |
+
spider_form_submit(event, 'manage_form')" href="" title="Edit"><?php echo $row_data->title; ?></a>
|
110 |
+
</td>
|
111 |
+
<td><?php echo $row_data->mail; ?></td>
|
112 |
+
<td class="table_xxl_col" style="padding-left: 0; padding-right: 0;">
|
113 |
+
<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;"/>
|
114 |
+
</td>
|
115 |
+
<td class="table_large_col" style="padding-left: 0; padding-right: 0;">
|
116 |
+
<input type="text" value='<?php wd_contact_form_builder(<?php echo $row_data->id; ?>); ?>' onclick="spider_select_value(this)" readonly="readonly" style="padding-left: 1px; padding-right: 1px;" />
|
117 |
+
</td>
|
118 |
+
<td class="table_big_col">
|
119 |
+
<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;">
|
120 |
+
Preview
|
121 |
+
</a>
|
122 |
+
</td>
|
123 |
+
<td class="table_big_col">
|
124 |
+
<a onclick="spider_set_input_value('task', 'edit<?php echo $old; ?>');
|
125 |
+
spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
|
126 |
+
spider_form_submit(event, 'manage_form')" href="">Edit</a>
|
127 |
+
</td>
|
128 |
+
<td class="table_big_col">
|
129 |
+
<a onclick="spider_set_input_value('task', 'delete');
|
130 |
+
spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
|
131 |
+
spider_form_submit(event, 'manage_form')" href="">Delete</a>
|
132 |
+
</td>
|
133 |
+
</tr>
|
134 |
+
<?php
|
135 |
+
$ids_string .= $row_data->id . ',';
|
136 |
+
}
|
137 |
+
}
|
138 |
+
?>
|
139 |
+
</tbody>
|
140 |
+
</table>
|
141 |
+
<input id="task" name="task" type="hidden" value=""/>
|
142 |
+
<input id="current_id" name="current_id" type="hidden" value=""/>
|
143 |
+
<input id="ids_string" name="ids_string" type="hidden" value="<?php echo $ids_string; ?>"/>
|
144 |
+
<input id="asc_or_desc" name="asc_or_desc" type="hidden" value="asc"/>
|
145 |
+
<input id="order_by" name="order_by" type="hidden" value="<?php echo $order_by; ?>"/>
|
146 |
+
</form>
|
147 |
+
<?php
|
148 |
+
}
|
149 |
+
|
150 |
+
public function edit($id) {
|
151 |
+
$row = $this->model->get_row_data($id);
|
152 |
+
$labels = array();
|
153 |
+
$label_id = array();
|
154 |
+
$label_order_original = array();
|
155 |
+
$label_type = array();
|
156 |
+
$label_all = explode('#****#', $row->label_order);
|
157 |
+
$label_all = array_slice($label_all, 0, count($label_all) - 1);
|
158 |
+
foreach ($label_all as $key => $label_each) {
|
159 |
+
$label_id_each = explode('#**id**#', $label_each);
|
160 |
+
array_push($label_id, $label_id_each[0]);
|
161 |
+
$label_oder_each = explode('#**label**#', $label_id_each[1]);
|
162 |
+
array_push($label_order_original, addslashes($label_oder_each[0]));
|
163 |
+
array_push($label_type, $label_oder_each[1]);
|
164 |
+
}
|
165 |
+
$labels['id'] = '"' . implode('","', $label_id) . '"';
|
166 |
+
$labels['label'] = '"' . implode('","', $label_order_original) . '"';
|
167 |
+
$labels['type'] = '"' . implode('","', $label_type) . '"';
|
168 |
+
$page_title = (($id != 0) ? 'Edit form ' . $row->title : 'Create new form');
|
169 |
+
?>
|
170 |
+
<script type="text/javascript">
|
171 |
+
var contact_form_maker_plugin_url = "<?php echo WD_CFM_URL; ?>";
|
172 |
+
</script>
|
173 |
+
<script type="text/javascript">
|
174 |
+
form_view = 1;
|
175 |
+
form_view_count = 1;
|
176 |
+
form_view_max = 1;
|
177 |
+
function submitbutton() {
|
178 |
+
<?php
|
179 |
+
if ($id) {
|
180 |
+
?>
|
181 |
+
if (!document.getElementById('araqel') || (document.getElementById('araqel').value == '0')) {
|
182 |
+
alert('Please wait while page loading.');
|
183 |
+
return false;
|
184 |
+
}
|
185 |
+
<?php
|
186 |
+
}
|
187 |
+
?>
|
188 |
+
tox = '';
|
189 |
+
form_fields = '';
|
190 |
+
disabled_ids = '';
|
191 |
+
l_id_array = [<?php echo $labels['id']?>];
|
192 |
+
l_label_array = [<?php echo $labels['label']?>];
|
193 |
+
l_type_array = [<?php echo $labels['type']?>];
|
194 |
+
l_id_removed = [];
|
195 |
+
document.getElementById('take').style.display = "none";
|
196 |
+
document.getElementById('saving').style.display = "block";
|
197 |
+
remove_whitespace(document.getElementById('take'));
|
198 |
+
for (x = 0; x < l_id_array.length; x++) {
|
199 |
+
l_id_removed[l_id_array[x]] = true;
|
200 |
+
}
|
201 |
+
if (document.getElementById('form_id_tempform_view1')) {
|
202 |
+
wdform_page = document.getElementById('form_id_tempform_view1');
|
203 |
+
remove_whitespace(wdform_page);
|
204 |
+
n = wdform_page.childNodes.length - 2;
|
205 |
+
for (q = 0; q <= n; q++) {
|
206 |
+
if (!wdform_page.childNodes[q].getAttribute("wdid")) {
|
207 |
+
wdform_section = wdform_page.childNodes[q];
|
208 |
+
for (x = 0; x < wdform_section.childNodes.length; x++) {
|
209 |
+
wdform_column = wdform_section.childNodes[x];
|
210 |
+
if (wdform_column.firstChild) {
|
211 |
+
for (y=0; y < wdform_column.childNodes.length; y++) {
|
212 |
+
is_in_old = false;
|
213 |
+
wdform_row = wdform_column.childNodes[y];
|
214 |
+
if (wdform_row.nodeType == 3) {
|
215 |
+
continue;
|
216 |
+
}
|
217 |
+
wdid = wdform_row.getAttribute("wdid");
|
218 |
+
if (!wdid) {
|
219 |
+
continue;
|
220 |
+
}
|
221 |
+
l_id = wdid;
|
222 |
+
l_label = document.getElementById(wdid + '_element_labelform_id_temp').innerHTML;
|
223 |
+
l_label = l_label.replace(/(\r\n|\n|\r)/gm," ");
|
224 |
+
wdtype = wdform_row.firstChild.getAttribute('type');
|
225 |
+
if (wdform_row.getAttribute("disabled")) {
|
226 |
+
if (wdtype != "type_address") {
|
227 |
+
disabled_ids += wdid + ',';
|
228 |
+
}
|
229 |
+
else {
|
230 |
+
disabled_ids += wdid + ',' + (parseInt(wdid)+1) + ','+(parseInt(wdid)+2)+ ',' +(parseInt(wdid)+3)+ ',' +(parseInt(wdid)+4)+ ','+(parseInt(wdid)+5) + ',';
|
231 |
+
}
|
232 |
+
}
|
233 |
+
for (z = 0; z < l_id_array.length; z++) {
|
234 |
+
if (l_id_array[z] == wdid) {
|
235 |
+
if (l_type_array[z] == "type_address") {
|
236 |
+
if (document.getElementById(l_id + "_mini_label_street1")) {
|
237 |
+
l_id_removed[l_id_array[z]] = false;
|
238 |
+
}
|
239 |
+
if (document.getElementById(l_id + "_mini_label_street2")) {
|
240 |
+
l_id_removed[parseInt(l_id_array[z]) + 1] = false;
|
241 |
+
}
|
242 |
+
if (document.getElementById(l_id + "_mini_label_city")) {
|
243 |
+
l_id_removed[parseInt(l_id_array[z]) + 2] = false;
|
244 |
+
}
|
245 |
+
if (document.getElementById(l_id + "_mini_label_state")) {
|
246 |
+
l_id_removed[parseInt(l_id_array[z]) + 3] = false;
|
247 |
+
}
|
248 |
+
if (document.getElementById(l_id+"_mini_label_postal")) {
|
249 |
+
l_id_removed[parseInt(l_id_array[z]) + 4] = false;
|
250 |
+
}
|
251 |
+
if (document.getElementById(l_id+"_mini_label_country")) {
|
252 |
+
l_id_removed[parseInt(l_id_array[z]) + 5] = false;
|
253 |
+
}
|
254 |
+
z = z + 5;
|
255 |
+
}
|
256 |
+
else {
|
257 |
+
l_id_removed[l_id] = false;
|
258 |
+
}
|
259 |
+
}
|
260 |
+
}
|
261 |
+
if (wdtype == "type_address") {
|
262 |
+
addr_id = parseInt(wdid);
|
263 |
+
id_for_country = addr_id;
|
264 |
+
if (document.getElementById(id_for_country + "_mini_label_street1"))
|
265 |
+
tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_street1").innerHTML + '#**label**#type_address#****#';
|
266 |
+
addr_id++;
|
267 |
+
if (document.getElementById(id_for_country + "_mini_label_street2"))
|
268 |
+
tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_street2").innerHTML + '#**label**#type_address#****#';
|
269 |
+
addr_id++;
|
270 |
+
if (document.getElementById(id_for_country+"_mini_label_city"))
|
271 |
+
tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_city").innerHTML + '#**label**#type_address#****#';
|
272 |
+
addr_id++;
|
273 |
+
if (document.getElementById(id_for_country + "_mini_label_state"))
|
274 |
+
tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_state").innerHTML + '#**label**#type_address#****#';
|
275 |
+
addr_id++;
|
276 |
+
if (document.getElementById(id_for_country + "_mini_label_postal"))
|
277 |
+
tox = tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_postal").innerHTML + '#**label**#type_address#****#';
|
278 |
+
addr_id++;
|
279 |
+
if (document.getElementById(id_for_country+"_mini_label_country")) {
|
280 |
+
tox=tox + addr_id + '#**id**#' + document.getElementById(id_for_country + "_mini_label_country").innerHTML + '#**label**#type_address#****#';
|
281 |
+
}
|
282 |
+
}
|
283 |
+
else {
|
284 |
+
tox = tox + wdid + '#**id**#' + l_label + '#**label**#' + wdtype + '#****#';
|
285 |
+
}
|
286 |
+
id = wdid;
|
287 |
+
form_fields += wdid + "*:*id*:*";
|
288 |
+
form_fields += wdtype + "*:*type*:*";
|
289 |
+
w_choices = new Array();
|
290 |
+
w_choices_checked = new Array();
|
291 |
+
w_choices_disabled = new Array();
|
292 |
+
w_allow_other_num = 0;
|
293 |
+
w_property = new Array();
|
294 |
+
w_property_type = new Array();
|
295 |
+
w_property_values = new Array();
|
296 |
+
w_choices_price = new Array();
|
297 |
+
if (document.getElementById(id+'_element_labelform_id_temp').innerHTML) {
|
298 |
+
w_field_label = document.getElementById(id + '_element_labelform_id_temp').innerHTML.replace(/(\r\n|\n|\r)/gm," ");
|
299 |
+
}
|
300 |
+
else {
|
301 |
+
w_field_label = " ";
|
302 |
+
}
|
303 |
+
if (document.getElementById(id + '_label_sectionform_id_temp')) {
|
304 |
+
if (document.getElementById(id + '_label_sectionform_id_temp').style.display == "block") {
|
305 |
+
w_field_label_pos = "top";
|
306 |
+
}
|
307 |
+
else {
|
308 |
+
w_field_label_pos = "left";
|
309 |
+
}
|
310 |
+
}
|
311 |
+
if (document.getElementById(id + "_elementform_id_temp")) {
|
312 |
+
s = document.getElementById(id + "_elementform_id_temp").style.width;
|
313 |
+
w_size=s.substring(0,s.length - 2);
|
314 |
+
}
|
315 |
+
if (document.getElementById(id + "_label_sectionform_id_temp")) {
|
316 |
+
s = document.getElementById(id + "_label_sectionform_id_temp").style.width;
|
317 |
+
w_field_label_size = s.substring(0, s.length - 2);
|
318 |
+
}
|
319 |
+
if (document.getElementById(id + "_requiredform_id_temp")) {
|
320 |
+
w_required = document.getElementById(id + "_requiredform_id_temp").value;
|
321 |
+
}
|
322 |
+
if (document.getElementById(id + "_uniqueform_id_temp")) {
|
323 |
+
w_unique = document.getElementById(id + "_uniqueform_id_temp").value;
|
324 |
+
}
|
325 |
+
if (document.getElementById(id + '_label_sectionform_id_temp')) {
|
326 |
+
w_class = document.getElementById(id + '_label_sectionform_id_temp').getAttribute("class");
|
327 |
+
if (!w_class) {
|
328 |
+
w_class = "";
|
329 |
+
}
|
330 |
+
}
|
331 |
+
gen_form_fields();
|
332 |
+
wdform_row.innerHTML = "%" + id + " - " + l_label + "%";
|
333 |
+
}
|
334 |
+
}
|
335 |
+
}
|
336 |
+
}
|
337 |
+
else {
|
338 |
+
id = wdform_page.childNodes[q].getAttribute("wdid");
|
339 |
+
if (wdform_page.childNodes[q].getAttribute("disabled")) {
|
340 |
+
disabled_ids += id + ',';
|
341 |
+
}
|
342 |
+
w_editor = document.getElementById(id + "_element_sectionform_id_temp").innerHTML;
|
343 |
+
form_fields += id + "*:*id*:*";
|
344 |
+
form_fields += "type_section_break" + "*:*type*:*";
|
345 |
+
form_fields += "custom_" + id + "*:*w_field_label*:*";
|
346 |
+
form_fields += w_editor + "*:*w_editor*:*";
|
347 |
+
form_fields += "*:*new_field*:*";
|
348 |
+
wdform_page.childNodes[q].innerHTML = "%" + id + " - " + "custom_" + id + "%";
|
349 |
+
}
|
350 |
+
}
|
351 |
+
}
|
352 |
+
document.getElementById('disabled_fields').value = disabled_ids;
|
353 |
+
document.getElementById('label_order_current').value = tox;
|
354 |
+
for (x = 0; x < l_id_array.length; x++) {
|
355 |
+
if (l_id_removed[l_id_array[x]]) {
|
356 |
+
tox = tox + l_id_array[x] + '#**id**#' + l_label_array[x] + '#**label**#' + l_type_array[x] + '#****#';
|
357 |
+
}
|
358 |
+
}
|
359 |
+
document.getElementById('label_order').value = tox;
|
360 |
+
document.getElementById('form_fields').value = form_fields;
|
361 |
+
refresh_();
|
362 |
+
return true;
|
363 |
+
}
|
364 |
+
|
365 |
+
gen = <?php echo (($id != 0) ? $row->counter : 1); ?>;
|
366 |
+
|
367 |
+
function enable() {
|
368 |
+
if (document.getElementById('formMakerDiv').style.display == 'block') {
|
369 |
+
jQuery('#formMakerDiv').slideToggle(200);}else{jQuery('#formMakerDiv').slideToggle(400);
|
370 |
+
}
|
371 |
+
if (document.getElementById('formMakerDiv').offsetWidth) {
|
372 |
+
document.getElementById('formMakerDiv1').style.width = (document.getElementById('formMakerDiv').offsetWidth - 60) + 'px';
|
373 |
+
}
|
374 |
+
if (document.getElementById('formMakerDiv1').style.display == 'block') {
|
375 |
+
jQuery('#formMakerDiv1').slideToggle(200);
|
376 |
+
}
|
377 |
+
else {
|
378 |
+
jQuery('#formMakerDiv1').slideToggle(400);
|
379 |
+
}
|
380 |
+
}
|
381 |
+
function enable2() {
|
382 |
+
if (document.getElementById('formMakerDiv').style.display == 'block') {
|
383 |
+
jQuery('#formMakerDiv').slideToggle(200);
|
384 |
+
}
|
385 |
+
else {
|
386 |
+
jQuery('#formMakerDiv').slideToggle(400);
|
387 |
+
}
|
388 |
+
if (document.getElementById('formMakerDiv').offsetWidth) {
|
389 |
+
document.getElementById('formMakerDiv1').style.width = (document.getElementById('formMakerDiv').offsetWidth - 60) + 'px';
|
390 |
+
}
|
391 |
+
if (document.getElementById('formMakerDiv1').style.display == 'block') {
|
392 |
+
jQuery('#formMakerDiv1').slideToggle(200);
|
393 |
+
}
|
394 |
+
else {
|
395 |
+
jQuery('#formMakerDiv1').slideToggle(400);
|
396 |
+
}
|
397 |
+
}
|
398 |
+
</script>
|
399 |
+
<div style="clear: both; float: left; width: 99%;">
|
400 |
+
<div style="float: left; font-size: 14px; font-weight: bold;">
|
401 |
+
This section allows you to enable/disable fields in your form.
|
402 |
+
<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>
|
403 |
+
</div>
|
404 |
+
<div style="float: right; text-align: right;">
|
405 |
+
<a style="text-decoration: none;" target="_blank" href="http://web-dorado.com/files/fromContactFormBuilder.php">
|
406 |
+
<img width="215" border="0" alt="web-dorado.com" src="<?php echo WD_CFM_URL . '/images/wd_logo.png'; ?>" />
|
407 |
+
</a>
|
408 |
+
</div>
|
409 |
+
</div>
|
410 |
+
<form class="wrap" id="manage_form" method="post" action="admin.php?page=manage_cfm" style="float: left; width: 99%;">
|
411 |
+
<h2><?php echo $page_title; ?></h2>
|
412 |
+
<div style="float: right; margin: 0 5px 0 0;">
|
413 |
+
<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"/>
|
414 |
+
<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"/>
|
415 |
+
<?php
|
416 |
+
if ($id) {
|
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_as_copy')" value="Save as Copy"/>
|
419 |
+
<?php
|
420 |
+
}
|
421 |
+
?>
|
422 |
+
<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"/>
|
423 |
+
<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"/>
|
424 |
+
<input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'cancel')" value="Cancel"/>
|
425 |
+
</div>
|
426 |
+
|
427 |
+
<div class="formmaker_table">
|
428 |
+
<div style="float: left;">
|
429 |
+
<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 />
|
430 |
+
<img src="<?php echo WD_CFM_URL . '/images/contact_form_maker_logo48.png'; ?>" />
|
431 |
+
</div>
|
432 |
+
<div style="float: right;">
|
433 |
+
<span style="font-size: 16.76pt; font-family: tahoma; color: #FFFFFF; vertical-align: middle;">Form title: </span>
|
434 |
+
<input id="title" name="title" class="form_maker_title" value="<?php echo $row->title; ?>" />
|
435 |
+
<br /><br />
|
436 |
+
<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;"/>
|
437 |
+
</div>
|
438 |
+
</div>
|
439 |
+
|
440 |
+
<div id="formMakerDiv" onclick="close_window()"></div>
|
441 |
+
<div id="formMakerDiv1" style="padding-top: 20px;" align="center">
|
442 |
+
<table border="0" width="100%" cellpadding="0" cellspacing="0" height="100%" style="border: 6px #00aeef solid; background-color: #FFF;">
|
443 |
+
<tr>
|
444 |
+
<td style="padding:0px">
|
445 |
+
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
|
446 |
+
<tr valign="top">
|
447 |
+
<td width="50%" height="100%" align="left">
|
448 |
+
<div id="edit_table" style="padding:0px; overflow-y:scroll; height:535px"></div>
|
449 |
+
</td>
|
450 |
+
<td align="center" valign="top" style="background: url("<?php echo WD_CFM_URL . '/images/border2.png'; ?>") repeat-y;"> </td>
|
451 |
+
<td style="padding:15px">
|
452 |
+
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
|
453 |
+
<tr>
|
454 |
+
<td align="right">
|
455 |
+
<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)"/>
|
456 |
+
<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()"/>
|
457 |
+
<hr style=" margin-bottom:10px" />
|
458 |
+
</td>
|
459 |
+
</tr>
|
460 |
+
<tr height="100%" valign="top">
|
461 |
+
<td id="show_table"></td>
|
462 |
+
</tr>
|
463 |
+
</table>
|
464 |
+
</td>
|
465 |
+
</tr>
|
466 |
+
</table>
|
467 |
+
</td>
|
468 |
+
</tr>
|
469 |
+
</table>
|
470 |
+
<input type="hidden" id="old" />
|
471 |
+
<input type="hidden" id="old_selected" />
|
472 |
+
<input type="hidden" id="element_type" />
|
473 |
+
<input type="hidden" id="editing_id" />
|
474 |
+
<input type="hidden" value="<?php echo WD_CFM_URL; ?>" id="form_plugins_url" />
|
475 |
+
<div id="main_editor" style="position: absolute; display: none; z-index: 140;">
|
476 |
+
<?php
|
477 |
+
if (user_can_richedit()) {
|
478 |
+
wp_editor('', 'form_maker_editor', array('teeny' => FALSE, 'textarea_name' => 'form_maker_editor', 'media_buttons' => FALSE, 'textarea_rows' => 5));
|
479 |
+
}
|
480 |
+
else {
|
481 |
+
?>
|
482 |
+
<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>
|
483 |
+
<?php
|
484 |
+
}
|
485 |
+
?>
|
486 |
+
</div>
|
487 |
+
</div>
|
488 |
+
<?php
|
489 |
+
if (!function_exists('the_editor')) {
|
490 |
+
?>
|
491 |
+
<iframe id="tinymce" style="display: none;"></iframe>
|
492 |
+
<?php
|
493 |
+
}
|
494 |
+
?>
|
495 |
+
<br /><br />
|
496 |
+
<fieldset>
|
497 |
+
<legend><h2 style="color: #00aeef;">Form</h2></legend>
|
498 |
+
<div id="saving" style="display: none;">
|
499 |
+
<div id="saving_text">Saving</div>
|
500 |
+
<div id="fadingBarsG">
|
501 |
+
<div id="fadingBarsG_1" class="fadingBarsG"></div>
|
502 |
+
<div id="fadingBarsG_2" class="fadingBarsG"></div>
|
503 |
+
<div id="fadingBarsG_3" class="fadingBarsG"></div>
|
504 |
+
<div id="fadingBarsG_4" class="fadingBarsG"></div>
|
505 |
+
<div id="fadingBarsG_5" class="fadingBarsG"></div>
|
506 |
+
<div id="fadingBarsG_6" class="fadingBarsG"></div>
|
507 |
+
<div id="fadingBarsG_7" class="fadingBarsG"></div>
|
508 |
+
<div id="fadingBarsG_8" class="fadingBarsG"></div>
|
509 |
+
</div>
|
510 |
+
</div>
|
511 |
+
<?php
|
512 |
+
if ($id) {
|
513 |
+
?>
|
514 |
+
<div id="take">
|
515 |
+
<?php
|
516 |
+
echo $row->form_front;
|
517 |
+
?>
|
518 |
+
</div>
|
519 |
+
<?php
|
520 |
+
}
|
521 |
+
?>
|
522 |
+
</fieldset>
|
523 |
+
<input type="hidden" name="form_front" id="form_front" />
|
524 |
+
<input type="hidden" name="form_fields" id="form_fields" />
|
525 |
+
<input type="hidden" name="public_key" id="public_key" />
|
526 |
+
<input type="hidden" name="private_key" id="private_key" />
|
527 |
+
<input type="hidden" name="recaptcha_theme" id="recaptcha_theme" />
|
528 |
+
<input type="hidden" id="label_order" name="label_order" value="<?php echo $row->label_order; ?>" />
|
529 |
+
<input type="hidden" id="label_order_current" name="label_order_current" value="<?php echo $row->label_order_current; ?>" />
|
530 |
+
<input type="hidden" name="counter" id="counter" value="<?php echo $row->counter; ?>" />
|
531 |
+
<input type="hidden" id="araqel" value="0" />
|
532 |
+
<input type="hidden" name="disabled_fields" id="disabled_fields" value="<?php echo $row->disabled_fields; ?>">
|
533 |
+
<?php
|
534 |
+
if ($id) {
|
535 |
+
?>
|
536 |
+
<script type="text/javascript">
|
537 |
+
function formOnload() {
|
538 |
+
for (t = 0; t < <?php echo $row->counter; ?>; t++) {
|
539 |
+
if (document.getElementById("wdform_field" + t)) {
|
540 |
+
if (document.getElementById("wdform_field" + t).parentNode.getAttribute("disabled")) {
|
541 |
+
if (document.getElementById("wdform_field" + t).getAttribute("type") != 'type_section_break') {
|
542 |
+
document.getElementById("wdform_field" + t).style.cssText = 'display: table-cell;';
|
543 |
+
}
|
544 |
+
document.getElementById("disable_field" + t).checked = false;
|
545 |
+
document.getElementById("disable_field" + t).setAttribute("title", "Enable the field");
|
546 |
+
document.getElementById("wdform_field" + t).parentNode.style.cssText = 'opacity: 0.4;';
|
547 |
+
}
|
548 |
+
else {
|
549 |
+
document.getElementById( "disable_field" + t).checked = true;
|
550 |
+
}
|
551 |
+
}
|
552 |
+
}
|
553 |
+
for (t = 0; t < <?php echo $row->counter; ?>; t++) {
|
554 |
+
if (document.getElementById(t + "_typeform_id_temp")) {
|
555 |
+
if (document.getElementById(t + "_typeform_id_temp").value == "type_map") {
|
556 |
+
if_gmap_init(t);
|
557 |
+
for (q = 0; q < 20; q++) {
|
558 |
+
if (document.getElementById(t + "_elementform_id_temp").getAttribute("long" + q)) {
|
559 |
+
w_long = parseFloat(document.getElementById(t + "_elementform_id_temp").getAttribute("long" + q));
|
560 |
+
w_lat = parseFloat(document.getElementById(t + "_elementform_id_temp").getAttribute("lat" + q));
|
561 |
+
w_info = parseFloat(document.getElementById(t + "_elementform_id_temp").getAttribute("info" + q));
|
562 |
+
add_marker_on_map(t, q, w_long, w_lat, w_info, false);
|
563 |
+
}
|
564 |
+
}
|
565 |
+
}
|
566 |
+
else if (document.getElementById(t + "_typeform_id_temp").value == "type_name") {
|
567 |
+
var myu = t;
|
568 |
+
jQuery(document).ready(function() {
|
569 |
+
jQuery("#" + myu + "_mini_label_first").click(function() {
|
570 |
+
if (jQuery(this).children('input').length == 0) {
|
571 |
+
var first = "<input type='text' id='first' class='first' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
|
572 |
+
jQuery(this).html(first);
|
573 |
+
jQuery("input.first").focus();
|
574 |
+
jQuery("input.first").blur(function() {
|
575 |
+
var id_for_blur = document.getElementById('first').parentNode.id.split('_');
|
576 |
+
var value = jQuery(this).val();
|
577 |
+
jQuery("#" + id_for_blur[0] + "_mini_label_first").text(value);
|
578 |
+
});
|
579 |
+
}
|
580 |
+
});
|
581 |
+
jQuery("label#" + myu + "_mini_label_last").click(function() {
|
582 |
+
if (jQuery(this).children('input').length == 0) {
|
583 |
+
var last = "<input type='text' id='last' class='last' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
|
584 |
+
jQuery(this).html(last);
|
585 |
+
jQuery("input.last").focus();
|
586 |
+
jQuery("input.last").blur(function() {
|
587 |
+
var id_for_blur = document.getElementById('last').parentNode.id.split('_');
|
588 |
+
var value = jQuery(this).val();
|
589 |
+
jQuery("#" + id_for_blur[0] + "_mini_label_last").text(value);
|
590 |
+
});
|
591 |
+
}
|
592 |
+
});
|
593 |
+
jQuery("label#" + myu + "_mini_label_title").click(function() {
|
594 |
+
if (jQuery(this).children('input').length == 0) {
|
595 |
+
var title_ = "<input type='text' id='title_' class='title_' style='outline:none; border:none; background:none; width:50px;' value=\""+jQuery(this).text()+"\">";
|
596 |
+
jQuery(this).html(title_);
|
597 |
+
jQuery("input.title_").focus();
|
598 |
+
jQuery("input.title_").blur(function() {
|
599 |
+
var id_for_blur = document.getElementById('title_').parentNode.id.split('_');
|
600 |
+
var value = jQuery(this).val();
|
601 |
+
jQuery("#" + id_for_blur[0] + "_mini_label_title").text(value);
|
602 |
+
});
|
603 |
+
}
|
604 |
+
});
|
605 |
+
jQuery("label#" + myu + "_mini_label_middle").click(function() {
|
606 |
+
if (jQuery(this).children('input').length == 0) {
|
607 |
+
var middle = "<input type='text' id='middle' class='middle' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
|
608 |
+
jQuery(this).html(middle);
|
609 |
+
jQuery("input.middle").focus();
|
610 |
+
jQuery("input.middle").blur(function() {
|
611 |
+
var id_for_blur = document.getElementById('middle').parentNode.id.split('_');
|
612 |
+
var value = jQuery(this).val();
|
613 |
+
jQuery("#"+id_for_blur[0]+"_mini_label_middle").text(value);
|
614 |
+
});
|
615 |
+
}
|
616 |
+
});
|
617 |
+
});
|
618 |
+
}
|
619 |
+
else if (document.getElementById(t + "_typeform_id_temp").value == "type_phone") {
|
620 |
+
var myu = t;
|
621 |
+
jQuery(document).ready(function() {
|
622 |
+
jQuery("label#"+myu+"_mini_label_area_code").click(function() {
|
623 |
+
if (jQuery(this).children('input').length == 0) {
|
624 |
+
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()+"\">";
|
625 |
+
jQuery(this).html(area_code);
|
626 |
+
jQuery("input.area_code").focus();
|
627 |
+
jQuery("input.area_code").blur(function() {
|
628 |
+
var id_for_blur = document.getElementById('area_code').parentNode.id.split('_');
|
629 |
+
var value = jQuery(this).val();
|
630 |
+
jQuery("#"+id_for_blur[0]+"_mini_label_area_code").text(value);
|
631 |
+
});
|
632 |
+
}
|
633 |
+
});
|
634 |
+
jQuery("label#"+myu+"_mini_label_phone_number").click(function() {
|
635 |
+
if (jQuery(this).children('input').length == 0) {
|
636 |
+
var phone_number = "<input type='text' id='phone_number' class='phone_number' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
|
637 |
+
jQuery(this).html(phone_number);
|
638 |
+
jQuery("input.phone_number").focus();
|
639 |
+
jQuery("input.phone_number").blur(function() {
|
640 |
+
var id_for_blur = document.getElementById('phone_number').parentNode.id.split('_');
|
641 |
+
var value = jQuery(this).val();
|
642 |
+
jQuery("#"+id_for_blur[0]+"_mini_label_phone_number").text(value);
|
643 |
+
});
|
644 |
+
}
|
645 |
+
});
|
646 |
+
});
|
647 |
+
}
|
648 |
+
else if (document.getElementById(t+"_typeform_id_temp").value == "type_address") {
|
649 |
+
var myu = t;
|
650 |
+
jQuery(document).ready(function() {
|
651 |
+
jQuery("label#"+myu+"_mini_label_street1").click(function() {
|
652 |
+
if (jQuery(this).children('input').length == 0) {
|
653 |
+
var street1 = "<input type='text' id='street1' class='street1' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
|
654 |
+
jQuery(this).html(street1);
|
655 |
+
jQuery("input.street1").focus();
|
656 |
+
jQuery("input.street1").blur(function() {
|
657 |
+
var id_for_blur = document.getElementById('street1').parentNode.id.split('_');
|
658 |
+
var value = jQuery(this).val();
|
659 |
+
jQuery("#"+id_for_blur[0]+"_mini_label_street1").text(value);
|
660 |
+
});
|
661 |
+
}
|
662 |
+
});
|
663 |
+
jQuery("label#"+myu+"_mini_label_street2").click(function() {
|
664 |
+
if (jQuery(this).children('input').length == 0) {
|
665 |
+
var street2 = "<input type='text' id='street2' class='street2' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
|
666 |
+
jQuery(this).html(street2);
|
667 |
+
jQuery("input.street2").focus();
|
668 |
+
jQuery("input.street2").blur(function() {
|
669 |
+
var id_for_blur = document.getElementById('street2').parentNode.id.split('_');
|
670 |
+
var value = jQuery(this).val();
|
671 |
+
jQuery("#"+id_for_blur[0]+"_mini_label_street2").text(value);
|
672 |
+
});
|
673 |
+
}
|
674 |
+
});
|
675 |
+
jQuery("label#"+myu+"_mini_label_city").click(function() {
|
676 |
+
if (jQuery(this).children('input').length == 0) {
|
677 |
+
var city = "<input type='text' id='city' class='city' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
|
678 |
+
jQuery(this).html(city);
|
679 |
+
jQuery("input.city").focus();
|
680 |
+
jQuery("input.city").blur(function() {
|
681 |
+
var id_for_blur = document.getElementById('city').parentNode.id.split('_');
|
682 |
+
var value = jQuery(this).val();
|
683 |
+
jQuery("#"+id_for_blur[0]+"_mini_label_city").text(value);
|
684 |
+
});
|
685 |
+
}
|
686 |
+
});
|
687 |
+
jQuery("label#"+myu+"_mini_label_state").click(function() {
|
688 |
+
if (jQuery(this).children('input').length == 0) {
|
689 |
+
var state = "<input type='text' id='state' class='state' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
|
690 |
+
jQuery(this).html(state);
|
691 |
+
jQuery("input.state").focus();
|
692 |
+
jQuery("input.state").blur(function() {
|
693 |
+
var id_for_blur = document.getElementById('state').parentNode.id.split('_');
|
694 |
+
var value = jQuery(this).val();
|
695 |
+
jQuery("#"+id_for_blur[0]+"_mini_label_state").text(value);
|
696 |
+
});
|
697 |
+
}
|
698 |
+
});
|
699 |
+
jQuery("label#"+myu+"_mini_label_postal").click(function() {
|
700 |
+
if (jQuery(this).children('input').length == 0) {
|
701 |
+
var postal = "<input type='text' id='postal' class='postal' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
|
702 |
+
jQuery(this).html(postal);
|
703 |
+
jQuery("input.postal").focus();
|
704 |
+
jQuery("input.postal").blur(function() {
|
705 |
+
var id_for_blur = document.getElementById('postal').parentNode.id.split('_');
|
706 |
+
var value = jQuery(this).val();
|
707 |
+
jQuery("#"+id_for_blur[0]+"_mini_label_postal").text(value);
|
708 |
+
});
|
709 |
+
}
|
710 |
+
});
|
711 |
+
jQuery("label#"+myu+"_mini_label_country").click(function() {
|
712 |
+
if (jQuery(this).children('input').length == 0) {
|
713 |
+
var country = "<input type='country' id='country' class='country' style='outline:none; border:none; background:none;' value=\""+jQuery(this).text()+"\">";
|
714 |
+
jQuery(this).html(country);
|
715 |
+
jQuery("input.country").focus();
|
716 |
+
jQuery("input.country").blur(function() {
|
717 |
+
var id_for_blur = document.getElementById('country').parentNode.id.split('_');
|
718 |
+
var value = jQuery(this).val();
|
719 |
+
jQuery("#"+id_for_blur[0]+"_mini_label_country").text(value);
|
720 |
+
});
|
721 |
+
}
|
722 |
+
});
|
723 |
+
});
|
724 |
+
}
|
725 |
+
}
|
726 |
+
}
|
727 |
+
remove_whitespace(document.getElementById('take'));
|
728 |
+
form_view = 1;
|
729 |
+
form_view_count = 0;
|
730 |
+
document.getElementById('araqel').value = 1;
|
731 |
+
}
|
732 |
+
jQuery(window).load(function () {
|
733 |
+
formOnload();
|
734 |
+
});
|
735 |
+
</script>
|
736 |
+
<?php
|
737 |
+
}
|
738 |
+
?>
|
739 |
+
<input type="hidden" name="id" value="<?php echo $row->id; ?>" />
|
740 |
+
<input type="hidden" name="cid[]" value="<?php echo $row->id; ?>" />
|
741 |
+
<input type="hidden" id="task" name="task" value=""/>
|
742 |
+
<input type="hidden" id="current_id" name="current_id" value="<?php echo $row->id; ?>" />
|
743 |
+
</form>
|
744 |
+
<?php
|
745 |
+
}
|
746 |
+
|
747 |
+
public function form_options($id) {
|
748 |
+
$row = $this->model->get_row_data($id);
|
749 |
+
$themes = $this->model->get_theme_rows_data();
|
750 |
+
$page_title = $row->title . ' form options';
|
751 |
+
$label_id = array();
|
752 |
+
$label_label = array();
|
753 |
+
$label_type = array();
|
754 |
+
$label_all = explode('#****#', $row->label_order_current);
|
755 |
+
$label_all = array_slice($label_all, 0, count($label_all) - 1);
|
756 |
+
foreach ($label_all as $key => $label_each) {
|
757 |
+
$label_id_each = explode('#**id**#', $label_each);
|
758 |
+
if ($label_id_each[0] == 22) {
|
759 |
+
$default_subject = $key;
|
760 |
+
}
|
761 |
+
array_push($label_id, $label_id_each[0]);
|
762 |
+
$label_order_each = explode('#**label**#', $label_id_each[1]);
|
763 |
+
array_push($label_label, $label_order_each[0]);
|
764 |
+
array_push($label_type, $label_order_each[1]);
|
765 |
+
}
|
766 |
+
$fields = explode('*:*id*:*type_submitter_mail*:*type*:*', $row->form_fields);
|
767 |
+
$fields_count = count($fields);
|
768 |
+
$disabled_fields = explode(',', $row->disabled_fields);
|
769 |
+
$disabled_fields = array_slice($disabled_fields, 0, count($disabled_fields) - 1);
|
770 |
+
$field_exist = array();
|
771 |
+
for ($i = 0; $i < count($label_label); $i++) {
|
772 |
+
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)) {
|
773 |
+
$field_exist[$i] = FALSE;
|
774 |
+
}
|
775 |
+
else {
|
776 |
+
$field_exist[$i] = TRUE;
|
777 |
+
}
|
778 |
+
}
|
779 |
+
?>
|
780 |
+
<script>
|
781 |
+
gen = "<?php echo $row->counter; ?>";
|
782 |
+
form_view_max = 20;
|
783 |
+
function set_preview() {
|
784 |
+
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');
|
785 |
+
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');
|
786 |
+
}
|
787 |
+
</script>
|
788 |
+
<div style="font-size: 14px; font-weight: bold;">
|
789 |
+
This section allows you to edit form options.
|
790 |
+
<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>
|
791 |
+
</div>
|
792 |
+
<form class="wrap" method="post" action="admin.php?page=manage_cfm" style="width: 99%;" name="adminForm" id="adminForm">
|
793 |
+
<h2><?php echo $page_title; ?></h2>
|
794 |
+
<div style="float: right; margin: 0 5px 0 0;">
|
795 |
+
<input class="button-secondary" type="submit" onclick="if (spider_check_email('mailToAdd') ||
|
796 |
+
spider_check_email('mail_from_other') ||
|
797 |
+
spider_check_email('reply_to_other') ||
|
798 |
+
spider_check_email('mail_cc') ||
|
799 |
+
spider_check_email('mail_bcc') ||
|
800 |
+
spider_check_email('mail_from_user') ||
|
801 |
+
spider_check_email('reply_to_user') ||
|
802 |
+
spider_check_email('mail_cc_user') ||
|
803 |
+
spider_check_email('mail_bcc_user') ||
|
804 |
+
spider_check_email('mail_from') ||
|
805 |
+
spider_check_email('reply_to')) { return false; }; spider_set_input_value('task', 'save_options')" value="Save"/>
|
806 |
+
<input class="button-secondary" type="submit" onclick="if (spider_check_email('mailToAdd') ||
|
807 |
+
spider_check_email('mail_from_other') ||
|
808 |
+
spider_check_email('reply_to_other') ||
|
809 |
+
spider_check_email('mail_cc') ||
|
810 |
+
spider_check_email('mail_bcc') ||
|
811 |
+
spider_check_email('mail_from_user') ||
|
812 |
+
spider_check_email('reply_to_user') ||
|
813 |
+
spider_check_email('mail_cc_user') ||
|
814 |
+
spider_check_email('mail_bcc_user') ||
|
815 |
+
spider_check_email('mail_from') ||
|
816 |
+
spider_check_email('reply_to')) { return false; }; spider_set_input_value('task', 'apply_options')" value="Apply"/>
|
817 |
+
<input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'cancel_options')" value="Cancel"/>
|
818 |
+
</div>
|
819 |
+
<div class="submenu-box" style="width: 99%; float: left; margin: 15px 0 0 0;">
|
820 |
+
<div class="submenu-pad">
|
821 |
+
<ul id="submenu" class="configuration">
|
822 |
+
<li>
|
823 |
+
<a id="general" class="fm_fieldset_tab" onclick="form_maker_options_tabs('general')" href="#">General Options</a>
|
824 |
+
</li>
|
825 |
+
<li>
|
826 |
+
<a id="custom" class="fm_fieldset_tab" onclick="form_maker_options_tabs('custom')" href="#">Email Options</a>
|
827 |
+
</li>
|
828 |
+
<li>
|
829 |
+
<a id="actions" class="fm_fieldset_tab" onclick="form_maker_options_tabs('actions')" href="#">Actions after Submission</a>
|
830 |
+
</li>
|
831 |
+
</ul>
|
832 |
+
</div>
|
833 |
+
</div>
|
834 |
+
<fieldset id="general_fieldset" class="adminform fm_fieldset_deactive">
|
835 |
+
<legend style="color: #0B55C4; font-weight: bold;">General Options</legend>
|
836 |
+
<table class="admintable" style="float: left;">
|
837 |
+
<tr valign="top">
|
838 |
+
<td class="fm_options_label">
|
839 |
+
<label>Published</label>
|
840 |
+
</td>
|
841 |
+
<td class="fm_options_value">
|
842 |
+
<input type="radio" name="published" id="published_yes" value="1" <?php echo ($row->published) ? 'checked="checked"' : ''; ?> /><label for="published_yes">Yes</label>
|
843 |
+
<input type="radio" name="published" id="published_no" value="0" <?php echo (!$row->published) ? 'checked="checked"' : ''; ?> /><label for="published_no">No</label>
|
844 |
+
</td>
|
845 |
+
</tr>
|
846 |
+
<tr valign="top">
|
847 |
+
<td class="fm_options_label">
|
848 |
+
<label>Save data(to database)</label>
|
849 |
+
</td>
|
850 |
+
<td class="fm_options_value">
|
851 |
+
<input type="radio" name="savedb" id="savedb_yes" value="1" <?php echo ($row->savedb) ? 'checked="checked"' : ''; ?> /><label for="savedb_yes">Yes</label>
|
852 |
+
<input type="radio" name="savedb" id="savedb_no" value="0" <?php echo (!$row->savedb) ? 'checked="checked"' : ''; ?> /><label for="savedb_no">No</label>
|
853 |
+
</td>
|
854 |
+
</tr>
|
855 |
+
<tr valign="top">
|
856 |
+
<td class="fm_options_label">
|
857 |
+
<label for="theme">Theme</label>
|
858 |
+
</td>
|
859 |
+
<td class="fm_options_value">
|
860 |
+
<select id="theme" name="theme" style="width:260px;" onChange="set_preview()">
|
861 |
+
<?php
|
862 |
+
foreach ($themes as $theme) {
|
863 |
+
?>
|
864 |
+
<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>
|
865 |
+
<?php
|
866 |
+
}
|
867 |
+
?>
|
868 |
+
</select>
|
869 |
+
<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;">
|
870 |
+
Preview
|
871 |
+
</a>
|
872 |
+
<a onclick="alert('This option is disabled in free version.'); return false;" href="#" class="button-secondary" id="edit_css" title="Edit CSS">
|
873 |
+
Edit CSS
|
874 |
+
</a>
|
875 |
+
<div class="spider_description spider_free_desc">Themes are disabled in free version.</div>
|
876 |
+
</td>
|
877 |
+
</tr>
|
878 |
+
<tr valign="top">
|
879 |
+
<td class="fm_options_label">
|
880 |
+
<label for="requiredmark">Required fields mark</label>
|
881 |
+
</td>
|
882 |
+
<td class="fm_options_value">
|
883 |
+
<input type="text" id="requiredmark" name="requiredmark" value="<?php echo $row->requiredmark; ?>" style="width: 250px;" />
|
884 |
+
</td>
|
885 |
+
</tr>
|
886 |
+
</table>
|
887 |
+
</fieldset>
|
888 |
+
<fieldset id="custom_fieldset" class="adminform fm_fieldset_deactive">
|
889 |
+
<legend style="color: #0B55C4; font-weight: bold;">Email Options</legend>
|
890 |
+
<table class="admintable">
|
891 |
+
<tr valign="top">
|
892 |
+
<td style="padding: 15px;">
|
893 |
+
<label>Send E-mail</label>
|
894 |
+
</td>
|
895 |
+
<td style="padding: 15px;">
|
896 |
+
<input type="radio" name="sendemail" id="sendemail_yes" value="1" <?php echo ($row->sendemail) ? 'checked="checked"' : ''; ?> /><label for="sendemail_yes">Yes</label>
|
897 |
+
<input type="radio" name="sendemail" id="sendemail_no" value="0" <?php echo (!$row->sendemail) ? 'checked="checked"' : ''; ?> /><label for="sendemail_no">No</label>
|
898 |
+
</td>
|
899 |
+
</tr>
|
900 |
+
</table>
|
901 |
+
<fieldset class="fm_mail_options">
|
902 |
+
<legend style="color: #0B55C4; font-weight: bold;">Email to Administrator</legend>
|
903 |
+
<table class="admintable">
|
904 |
+
<tr valign="top">
|
905 |
+
<td class="fm_options_label">
|
906 |
+
<label for="mailToAdd">Email to send submissions to</label>
|
907 |
+
</td>
|
908 |
+
<td class="fm_options_value">
|
909 |
+
<input type="text" id="mailToAdd" name="mailToAdd" style="width: 250px;" />
|
910 |
+
<input type="hidden" id="mail" name="mail" value="<?php echo $row->mail; ?>" />
|
911 |
+
<img src="<?php echo WD_CFM_URL . '/images/add.png'; ?>"
|
912 |
+
style="vertical-align: middle; cursor: pointer;"
|
913 |
+
title="Add more emails"
|
914 |
+
onclick="if (spider_check_email('mailToAdd')) {return false;};cfm_create_input('mail', 'mailToAdd', 'cfm_mail_div', '<?php echo WD_CFM_URL; ?>')" />
|
915 |
+
<div id="cfm_mail_div">
|
916 |
+
<?php
|
917 |
+
$mail_array = explode(',', $row->mail);
|
918 |
+
foreach ($mail_array as $mail) {
|
919 |
+
if ($mail && $mail != ',') {
|
920 |
+
?>
|
921 |
+
<div class="fm_mail_input">
|
922 |
+
<?php echo $mail; ?>
|
923 |
+
<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" />
|
924 |
+
</div>
|
925 |
+
<?php
|
926 |
+
}
|
927 |
+
}
|
928 |
+
?>
|
929 |
+
</div>
|
930 |
+
</td>
|
931 |
+
</tr>
|
932 |
+
<tr valign="top">
|
933 |
+
<td class="fm_options_label">
|
934 |
+
<label for="mail_from">Email From</label>
|
935 |
+
</td>
|
936 |
+
<td class="fm_options_value">
|
937 |
+
<?php
|
938 |
+
$is_other = TRUE;
|
939 |
+
$field_disabled = TRUE;
|
940 |
+
for ($i = 0; $i < $fields_count - 1; $i++) {
|
941 |
+
$field_id = substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*') + 15, strlen($fields[$i]));
|
942 |
+
if (!in_array($field_id, $disabled_fields)) {
|
943 |
+
$field_disabled = FALSE;
|
944 |
+
?>
|
945 |
+
<div>
|
946 |
+
<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')" />
|
947 |
+
<label for="mail_from<?php echo $i; ?>"><?php echo substr($fields[$i + 1], 0, strpos($fields[$i + 1], '*:*w_field_label*:*')); ?></label>
|
948 |
+
</div>
|
949 |
+
<?php
|
950 |
+
if ($field_id == $row->mail_from) {
|
951 |
+
$is_other = FALSE;
|
952 |
+
}
|
953 |
+
}
|
954 |
+
}
|
955 |
+
?>
|
956 |
+
<div style="<?php echo ($fields_count == 1 || $field_disabled) ? 'display:none;' : ''; ?>">
|
957 |
+
<input type="radio" id="other" name="mail_from" value="other" <?php echo ($is_other) ? 'checked="checked"' : ''; ?> onclick="wdshow('mail_from_other')" />
|
958 |
+
<label for="other">Other</label>
|
959 |
+
</div>
|
960 |
+
<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 : ''; ?>" />
|
961 |
+
</td>
|
962 |
+
</tr>
|
963 |
+
<tr valign="top">
|
964 |
+
<td class="fm_options_label">
|
965 |
+
<label for="mail_from_name">From Name</label>
|
966 |
+
</td>
|
967 |
+
<td class="fm_options_value">
|
968 |
+
<input type="text" id="mail_from_name" name="mail_from_name" value="<?php echo $row->mail_from_name; ?>" style="width: 250px;" />
|
969 |
+
<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;" />
|
970 |
+
<div style="position: relative; top: -3px;">
|
971 |
+
<div id="mail_from_labels" class="email_labels" style="display: none;">
|
972 |
+
<?php
|
973 |
+
$choise = "document.getElementById('mail_from_name')";
|
974 |
+
for ($i = 0; $i < count($label_label); $i++) {
|
975 |
+
if (!$field_exist[$i]) {
|
976 |
+
continue;
|
977 |
+
}
|
978 |
+
$param = htmlspecialchars(addslashes($label_label[$i]));
|
979 |
+
$fld_label = htmlspecialchars($label_label[$i]);
|
980 |
+
if (strlen($fld_label) > 30) {
|
981 |
+
$fld_label = wordwrap($fld_label, 30);
|
982 |
+
$fld_label = explode("\n", $fld_label);
|
983 |
+
$fld_label = $fld_label[0] . ' ...';
|
984 |
+
}
|
985 |
+
?>
|
986 |
+
<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>
|
987 |
+
<?php
|
988 |
+
}
|
989 |
+
?>
|
990 |
+
</div>
|
991 |
+
</div>
|
992 |
+
</td>
|
993 |
+
</tr>
|
994 |
+
<tr valign="top">
|
995 |
+
<td class="fm_options_label">
|
996 |
+
<label for="reply_to">Reply to<br/>(if different from "Email From") </label>
|
997 |
+
</td>
|
998 |
+
<td class="fm_options_value">
|
999 |
+
<?php
|
1000 |
+
$is_other = TRUE;
|
1001 |
+
$field_disabled = TRUE;
|
1002 |
+
for ($i = 0; $i < $fields_count - 1; $i++) {
|
1003 |
+
$field_id = substr($fields[$i], strrpos($fields[$i], '*:*new_field*:*') + 15, strlen($fields[$i]));
|
1004 |
+
if (!in_array($field_id, $disabled_fields)) {
|
1005 |
+
$field_disabled = FALSE;
|
1006 |
+
?>
|
1007 |
+
<div>
|
1008 |
+
<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')" />
|
1009 |
+
<label for="reply_to<?php echo $i; ?>"><?php echo substr($fields[$i + 1], 0, strpos($fields[$i + 1], '*:*w_field_label*:*')); ?></label>
|
1010 |
+
</div>
|
1011 |
+
<?php
|
1012 |
+
if ($field_id == $row->reply_to) {
|
1013 |
+
$is_other = FALSE;
|
1014 |
+
}
|
1015 |
+
}
|
1016 |
+
}
|
1017 |
+
?>
|
1018 |
+
<div style="<?php echo ($fields_count == 1 || $field_disabled) ? 'display: none;' : ''; ?>">
|
1019 |
+
<input type="radio" id="other1" name="reply_to" value="other" <?php echo ($is_other) ? 'checked="checked"' : ''; ?> onclick="wdshow('reply_to_other')" />
|
1020 |
+
<label for="other1">Other</label>
|
1021 |
+
</div>
|
1022 |
+
<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 : ''; ?>" />
|
1023 |
+
</td>
|
1024 |
+
</tr>
|
1025 |
+
<tr valign="top">
|
1026 |
+
<td class="fm_options_label">
|
1027 |
+
<label for="mail_cc">CC: </label>
|
1028 |
+
</td>
|
1029 |
+
<td class="fm_options_value">
|
1030 |
+
<input type="text" id="mail_cc" name="mail_cc" value="<?php echo $row->mail_cc; ?>" style="width: 250px;" />
|
1031 |
+
</td>
|
1032 |
+
</tr>
|
1033 |
+
<tr valign="top">
|
1034 |
+
<td class="fm_options_label">
|
1035 |
+
<label for="mail_bcc">BCC: </label>
|
1036 |
+
</td>
|
1037 |
+
<td class="fm_options_value">
|
1038 |
+
<input type="text" id="mail_bcc" name="mail_bcc" value="<?php echo $row->mail_bcc; ?>" style="width: 250px;" />
|
1039 |
+
</td>
|
1040 |
+
</tr>
|
1041 |
+
<tr valign="top">
|
1042 |
+
<td class="fm_options_label">
|
1043 |
+
<label for="mail_subject">Subject: </label>
|
1044 |
+
</td>
|
1045 |
+
<td class="fm_options_value">
|
1046 |
+
<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;" />
|
1047 |
+
<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;" />
|
1048 |
+
<div style="position: relative; top: -3px;">
|
1049 |
+
<div id="mail_subject_labels" class="email_labels" style="display: none;" >
|
1050 |
+
<?php
|
1051 |
+
$choise = "document.getElementById('mail_subject')";
|
1052 |
+
for ($i = 0; $i < count($label_label); $i++) {
|
1053 |
+
if (!$field_exist[$i]) {
|
1054 |
+
continue;
|
1055 |
+
}
|
1056 |
+
$param = htmlspecialchars(addslashes($label_label[$i]));
|
1057 |
+
$fld_label = htmlspecialchars($label_label[$i]);
|
1058 |
+
if (strlen($fld_label) > 30) {
|
1059 |
+
$fld_label = wordwrap($fld_label, 30);
|
1060 |
+
$fld_label = explode("\n", $fld_label);
|
1061 |
+
$fld_label = $fld_label[0] . ' ...';
|
1062 |
+
}
|
1063 |
+
?>
|
1064 |
+
<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>
|
1065 |
+
<?php
|
1066 |
+
}
|
1067 |
+
?>
|
1068 |
+
</div>
|
1069 |
+
</div>
|
1070 |
+
</td>
|
1071 |
+
</tr>
|
1072 |
+
<tr valign="top">
|
1073 |
+
<td class="fm_options_label" style="vertical-align: middle;">
|
1074 |
+
<label>Mode: </label>
|
1075 |
+
</td>
|
1076 |
+
<td class="fm_options_value">
|
1077 |
+
<input type="radio" name="mail_mode" id="htmlmode" value="1" <?php if ($row->mail_mode == 1 ) echo 'checked="checked"'; ?> /><label for="htmlmode">HTML</label>
|
1078 |
+
<input type="radio" name="mail_mode" id="textmode" value="0" <?php if ($row->mail_mode == 0 ) echo 'checked="checked"'; ?> /><label for="textmode">Text</label>
|
1079 |
+
</td>
|
1080 |
+
</tr>
|
1081 |
+
<tr>
|
1082 |
+
<td class="fm_options_label" valign="top">
|
1083 |
+
<label>Custom Text in Email For Administrator</label>
|
1084 |
+
</td>
|
1085 |
+
<td class="fm_options_value">
|
1086 |
+
<div style="margin-bottom:5px">
|
1087 |
+
<?php
|
1088 |
+
$choise = "document.getElementById('script_mail')";
|
1089 |
+
for ($i = 0; $i < count($label_label); $i++) {
|
1090 |
+
if (!$field_exist[$i]) {
|
1091 |
+
continue;
|
1092 |
+
}
|
1093 |
+
$param = htmlspecialchars(addslashes($label_label[$i]));
|
1094 |
+
?>
|
1095 |
+
<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; ?>')" />
|
1096 |
+
<?php
|
1097 |
+
}
|
1098 |
+
?>
|
1099 |
+
<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')" />
|
1100 |
+
</div>
|
1101 |
+
<?php
|
1102 |
+
if (user_can_richedit()) {
|
1103 |
+
wp_editor($row->script_mail, 'script_mail', array('teeny' => FALSE, 'textarea_name' => 'script_mail', 'media_buttons' => FALSE, 'textarea_rows' => 5));
|
1104 |
+
}
|
1105 |
+
else {
|
1106 |
+
?>
|
1107 |
+
<textarea name="script_mail" id="script_mail" cols="20" rows="10" style="width: 300px; height: 450px;"><?php echo $row->script_mail; ?></textarea>
|
1108 |
+
<?php
|
1109 |
+
}
|
1110 |
+
?>
|
1111 |
+
</td>
|
1112 |
+
</tr>
|
1113 |
+
</table>
|
1114 |
+
</fieldset>
|
1115 |
+
<fieldset class="fm_mail_options">
|
1116 |
+
<legend style="color: #0B55C4; font-weight: bold;">Email to User</legend>
|
1117 |
+
<table class="admintable">
|
1118 |
+
<tr valign="top">
|
1119 |
+
<td class="fm_options_label">
|
1120 |
+
<label for="mail">Send to</label>
|
1121 |
+
</td>
|
1122 |
+
<td class="fm_options_value">
|
1123 |
+
<?php
|
1124 |
+
$fields = explode('*:*id*:*type_submitter_mail*:*type*:*', $row->form_fields);
|
1125 |
+
$fields_count = count($fields);
|
1126 |
+
if ($fields_count == 1) {
|
1127 |
+
?>There is no email field<?php
|
1128 |
+
}
|
1129 |
+
else {
|
1130 |
+
for ($i = 0; $i < $fields_count - 1; $i++) {
|
1131 |
+
?>
|
1132 |
+
<div>
|
1133 |
+
<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"' : '' ); ?> />
|
1134 |
+
<label for="send_to<?php echo $i; ?>"><?php echo substr($fields[$i + 1], 0, strpos($fields[$i + 1], '*:*w_field_label*:*')); ?></label>
|
1135 |
+
</div>
|
1136 |
+
<?php
|
1137 |
+
}
|
1138 |
+
}
|
1139 |
+
?>
|
1140 |
+
</td>
|
1141 |
+
</tr>
|
1142 |
+
<tr valign="top">
|
1143 |
+
<td class="fm_options_label">
|
1144 |
+
<label for="mail_from_user">Email From</label>
|
1145 |
+
</td>
|
1146 |
+
<td class="fm_options_value">
|
1147 |
+
<input type="text" id="mail_from_user" name="mail_from_user" value="<?php echo $row->mail_from_user; ?>" style="width: 250px;" />
|
1148 |
+
</td>
|
1149 |
+
</tr>
|
1150 |
+
<tr valign="top">
|
1151 |
+
<td class="fm_options_label">
|
1152 |
+
<label for="mail_from_name_user">From Name</label>
|
1153 |
+
</td>
|
1154 |
+
<td class="fm_options_value">
|
1155 |
+
<input type="text" id="mail_from_name_user" name="mail_from_name_user" value="<?php echo $row->mail_from_name_user; ?>" style="width: 250px;"/>
|
1156 |
+
<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;" />
|
1157 |
+
<div style="position: relative; top: -3px;">
|
1158 |
+
<div id="mail_from_name_user_labels" class="email_labels" style="display:none;">
|
1159 |
+
<?php
|
1160 |
+
$choise = "document.getElementById('mail_from_name_user')";
|
1161 |
+
for ($i = 0; $i < count($label_label); $i++) {
|
1162 |
+
if (!$field_exist[$i]) {
|
1163 |
+
continue;
|
1164 |
+
}
|
1165 |
+
$param = htmlspecialchars(addslashes($label_label[$i]));
|
1166 |
+
$fld_label = htmlspecialchars($label_label[$i]);
|
1167 |
+
if (strlen($fld_label) > 30) {
|
1168 |
+
$fld_label = wordwrap($fld_label, 30);
|
1169 |
+
$fld_label = explode("\n", $fld_label);
|
1170 |
+
$fld_label = $fld_label[0] . ' ...';
|
1171 |
+
}
|
1172 |
+
?>
|
1173 |
+
<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>
|
1174 |
+
<?php
|
1175 |
+
}
|
1176 |
+
?>
|
1177 |
+
</div>
|
1178 |
+
</div>
|
1179 |
+
</td>
|
1180 |
+
</tr>
|
1181 |
+
<tr valign="top">
|
1182 |
+
<td class="fm_options_label">
|
1183 |
+
<label for="reply_to_user">Reply to<br />(if different from "Email From")</label>
|
1184 |
+
</td>
|
1185 |
+
<td class="fm_options_value">
|
1186 |
+
<input type="text" id="reply_to_user" name="reply_to_user" value="<?php echo $row->reply_to_user; ?>" style="width: 250px;" />
|
1187 |
+
</td>
|
1188 |
+
</tr>
|
1189 |
+
<tr valign="top">
|
1190 |
+
<td class="fm_options_label">
|
1191 |
+
<label for="mail_cc_user">CC: </label>
|
1192 |
+
</td>
|
1193 |
+
<td class="fm_options_value">
|
1194 |
+
<input type="text" id="mail_cc_user" name="mail_cc_user" value="<?php echo $row->mail_cc_user; ?>" style="width: 250px;" />
|
1195 |
+
</td>
|
1196 |
+
</tr>
|
1197 |
+
<tr valign="top">
|
1198 |
+
<td class="fm_options_label">
|
1199 |
+
<label for="mail_bcc_user">BCC: </label>
|
1200 |
+
</td>
|
1201 |
+
<td class="fm_options_value">
|
1202 |
+
<input type="text" id="mail_bcc_user" name="mail_bcc_user" value="<?php echo $row->mail_bcc_user; ?>" style="width: 250px;" />
|
1203 |
+
</td>
|
1204 |
+
</tr>
|
1205 |
+
<tr valign="top">
|
1206 |
+
<td class="fm_options_label">
|
1207 |
+
<label for="mail_subject_user">Subject: </label>
|
1208 |
+
</td>
|
1209 |
+
<td class="fm_options_value">
|
1210 |
+
<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;" />
|
1211 |
+
<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;" />
|
1212 |
+
<div style="position: relative; top: -3px;">
|
1213 |
+
<div id="mail_subject_user_labels" class="email_labels" style="display: none;">
|
1214 |
+
<?php
|
1215 |
+
$choise = "document.getElementById('mail_subject_user')";
|
1216 |
+
for ($i = 0; $i < count($label_label); $i++) {
|
1217 |
+
if (!$field_exist[$i]) {
|
1218 |
+
continue;
|
1219 |
+
}
|
1220 |
+
$param = htmlspecialchars(addslashes($label_label[$i]));
|
1221 |
+
$fld_label = htmlspecialchars($label_label[$i]);
|
1222 |
+
if (strlen($fld_label) > 30) {
|
1223 |
+
$fld_label = wordwrap($fld_label, 30);
|
1224 |
+
$fld_label = explode("\n", $fld_label);
|
1225 |
+
$fld_label = $fld_label[0] . ' ...';
|
1226 |
+
}
|
1227 |
+
?>
|
1228 |
+
<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>
|
1229 |
+
<?php
|
1230 |
+
}
|
1231 |
+
?>
|
1232 |
+
</div>
|
1233 |
+
</div>
|
1234 |
+
</td>
|
1235 |
+
</tr>
|
1236 |
+
<tr valign="top">
|
1237 |
+
<td class="fm_options_label" style="vertical-align: middle;">
|
1238 |
+
<label>Mode: </label>
|
1239 |
+
</td>
|
1240 |
+
<td class="fm_options_value">
|
1241 |
+
<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>
|
1242 |
+
<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>
|
1243 |
+
</td>
|
1244 |
+
</tr>
|
1245 |
+
<tr>
|
1246 |
+
<td class="fm_options_label" valign="top">
|
1247 |
+
<label>Custom Text in Email For User</label>
|
1248 |
+
</td>
|
1249 |
+
<td class="fm_options_value">
|
1250 |
+
<div style="margin-bottom:5px">
|
1251 |
+
<?php
|
1252 |
+
$choise = "document.getElementById('script_mail_user')";
|
1253 |
+
for ($i = 0; $i < count($label_label); $i++) {
|
1254 |
+
if (!$field_exist[$i]) {
|
1255 |
+
continue;
|
1256 |
+
}
|
1257 |
+
$param = htmlspecialchars(addslashes($label_label[$i]));
|
1258 |
+
?>
|
1259 |
+
<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; ?>')" />
|
1260 |
+
<?php
|
1261 |
+
}
|
1262 |
+
?>
|
1263 |
+
<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')" />
|
1264 |
+
</div>
|
1265 |
+
<?php
|
1266 |
+
if (user_can_richedit()) {
|
1267 |
+
wp_editor($row->script_mail_user, 'script_mail_user', array('teeny' => FALSE, 'textarea_name' => 'script_mail_user', 'media_buttons' => FALSE, 'textarea_rows' => 5));
|
1268 |
+
}
|
1269 |
+
else {
|
1270 |
+
?>
|
1271 |
+
<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>
|
1272 |
+
<?php
|
1273 |
+
}
|
1274 |
+
?>
|
1275 |
+
</td>
|
1276 |
+
</tr>
|
1277 |
+
</table>
|
1278 |
+
</fieldset>
|
1279 |
+
</fieldset>
|
1280 |
+
<fieldset id="actions_fieldset" class="adminform fm_fieldset_deactive">
|
1281 |
+
<legend style="color: #0B55C4; font-weight: bold;">Actions after submission</legend>
|
1282 |
+
<table class="admintable">
|
1283 |
+
<tr valign="top">
|
1284 |
+
<td class="fm_options_label">
|
1285 |
+
<label>Action type</label>
|
1286 |
+
</td>
|
1287 |
+
<td class="fm_options_value">
|
1288 |
+
<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>
|
1289 |
+
<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>
|
1290 |
+
<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>
|
1291 |
+
<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>
|
1292 |
+
<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>
|
1293 |
+
</td>
|
1294 |
+
</tr>
|
1295 |
+
<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"' : ''); ?>>
|
1296 |
+
<td class="fm_options_label">
|
1297 |
+
<label>Stay on Form</label>
|
1298 |
+
</td>
|
1299 |
+
<td class="fm_options_value">
|
1300 |
+
<img src="<?php echo WD_CFM_URL . '/images/tick.png'; ?>" border="0">
|
1301 |
+
</td>
|
1302 |
+
</tr>
|
1303 |
+
<tr id="post" <?php echo (($row->submit_text_type != 2) ? 'style="display: none"' : ''); ?>>
|
1304 |
+
<td class="fm_options_label">
|
1305 |
+
<label for="post_name">Post</label>
|
1306 |
+
</td>
|
1307 |
+
<td class="fm_options_value">
|
1308 |
+
<select id="post_name" name="post_name" style="width: 153px; font-size: 11px;">
|
1309 |
+
<option value="0">- Select Post -</option>
|
1310 |
+
<?php
|
1311 |
+
// The Query.
|
1312 |
+
$args = array('posts_per_page' => 10000);
|
1313 |
+
query_posts($args);
|
1314 |
+
// The Loop.
|
1315 |
+
while (have_posts()) : the_post(); ?>
|
1316 |
+
<option value="<?php $x = get_permalink(get_the_ID()); echo $x; ?>" <?php echo (($row->article_id == $x) ? 'selected="selected"' : ''); ?>><?php the_title(); ?></option>
|
1317 |
+
<?php
|
1318 |
+
endwhile;
|
1319 |
+
// Reset Query.
|
1320 |
+
wp_reset_query();
|
1321 |
+
?>
|
1322 |
+
</select>
|
1323 |
+
</td>
|
1324 |
+
</tr>
|
1325 |
+
<tr id="page" <?php echo (($row->submit_text_type != 5) ? 'style="display: none"' : ''); ?>>
|
1326 |
+
<td class="fm_options_label">
|
1327 |
+
<label for="page_name">Page</label>
|
1328 |
+
</td>
|
1329 |
+
<td class="fm_options_value">
|
1330 |
+
<select id="page_name" name="page_name" style="width: 153px; font-size: 11px;">
|
1331 |
+
<option value="0">- Select Page -</option>
|
1332 |
+
<?php
|
1333 |
+
// The Query.
|
1334 |
+
$pages = get_pages();
|
1335 |
+
// The Loop.
|
1336 |
+
foreach ($pages as $page) {
|
1337 |
+
$page_id = get_page_link($page->ID);
|
1338 |
+
?>
|
1339 |
+
<option value="<?php echo $page_id; ?>" <?php echo (($row->article_id == $page_id) ? 'selected="selected"' : ''); ?>><?php echo $page->post_title; ?></option>
|
1340 |
+
<?php
|
1341 |
+
}
|
1342 |
+
// Reset Query.
|
1343 |
+
wp_reset_query();
|
1344 |
+
?>
|
1345 |
+
</select>
|
1346 |
+
</td>
|
1347 |
+
</tr>
|
1348 |
+
<tr id="custom_text" <?php echo (($row->submit_text_type != 3) ? 'style="display: none;"' : ''); ?>>
|
1349 |
+
<td class="fm_options_label">
|
1350 |
+
<label for="submit_text">Text</label>
|
1351 |
+
</td>
|
1352 |
+
<td class="fm_options_value">
|
1353 |
+
<?php
|
1354 |
+
if (user_can_richedit()) {
|
1355 |
+
wp_editor($row->submit_text, 'submit_text', array('teeny' => FALSE, 'textarea_name' => 'submit_text', 'media_buttons' => FALSE, 'textarea_rows' => 5));
|
1356 |
+
}
|
1357 |
+
else {
|
1358 |
+
?>
|
1359 |
+
<textarea cols="36" rows="5" id="submit_text" name="submit_text" style="resize: vertical;">
|
1360 |
+
<?php echo $row->submit_text; ?>
|
1361 |
+
</textarea>
|
1362 |
+
<?php
|
1363 |
+
}
|
1364 |
+
?>
|
1365 |
+
</td>
|
1366 |
+
</tr>
|
1367 |
+
<tr id="url" <?php echo (($row->submit_text_type != 4 ) ? 'style="display:none"' : ''); ?>>
|
1368 |
+
<td class="fm_options_label">
|
1369 |
+
<label for="url">URL</label>
|
1370 |
+
</td>
|
1371 |
+
<td class="fm_options_value">
|
1372 |
+
<input type="text" id="url" name="url" style="width:300px" value="<?php echo $row->url; ?>" />
|
1373 |
+
</td>
|
1374 |
+
</tr>
|
1375 |
+
</table>
|
1376 |
+
</fieldset>
|
1377 |
+
|
1378 |
+
<input type="hidden" name="fieldset_id" id="fieldset_id" value="<?php echo WDW_CFM_Library::get('fieldset_id', 'general'); ?>" />
|
1379 |
+
<input type="hidden" id="task" name="task" value=""/>
|
1380 |
+
<input type="hidden" id="current_id" name="current_id" value="<?php echo $row->id; ?>" />
|
1381 |
+
</form>
|
1382 |
+
<script>
|
1383 |
+
jQuery(window).load(function () {
|
1384 |
+
form_maker_options_tabs(jQuery("#fieldset_id").val());
|
1385 |
+
spider_popup();
|
1386 |
+
jQuery("#mail_from_labels, #mail_from_name_user_labels, #mail_subject_labels, #mail_subject_user_labels").mouseleave(function() {
|
1387 |
+
jQuery(this).hide();
|
1388 |
+
});
|
1389 |
+
});
|
1390 |
+
</script>
|
1391 |
+
<?php
|
1392 |
+
}
|
1393 |
+
|
1394 |
+
public function form_layout($id) {
|
1395 |
+
$row = $this->model->get_row_data($id);
|
1396 |
+
$ids = array();
|
1397 |
+
$types = array();
|
1398 |
+
$labels = array();
|
1399 |
+
$fields = explode('*:*new_field*:*', $row->form_fields);
|
1400 |
+
$fields = array_slice($fields, 0, count($fields) - 1);
|
1401 |
+
foreach ($fields as $field) {
|
1402 |
+
$temp = explode('*:*id*:*', $field);
|
1403 |
+
array_push($ids, $temp[0]);
|
1404 |
+
$temp = explode('*:*type*:*', $temp[1]);
|
1405 |
+
array_push($types, $temp[0]);
|
1406 |
+
$temp = explode('*:*w_field_label*:*', $temp[1]);
|
1407 |
+
array_push($labels, $temp[0]);
|
1408 |
+
}
|
1409 |
+
?>
|
1410 |
+
<script>
|
1411 |
+
var form_front = '<?php echo addslashes($row->form_front);?>';
|
1412 |
+
var custom_front = '<?php echo addslashes($row->custom_front);?>';
|
1413 |
+
if (custom_front == '') {
|
1414 |
+
custom_front = form_front;
|
1415 |
+
}
|
1416 |
+
function submitbutton() {
|
1417 |
+
if (jQuery('#autogen_layout').is(':checked')) {
|
1418 |
+
jQuery('#custom_front').val(custom_front.replace(/\s+/g, ' ').replace(/> </g, '><'));
|
1419 |
+
}
|
1420 |
+
else {
|
1421 |
+
jQuery('#custom_front').val(editor.getValue().replace(/\s+/g, ' ').replace(/> </g, '><'));
|
1422 |
+
}
|
1423 |
+
}
|
1424 |
+
function insertAtCursor_form(myId, myLabel) {
|
1425 |
+
if (jQuery('#autogen_layout').is(':checked')) {
|
1426 |
+
alert("Uncheck the Auto-Generate Layout box.");
|
1427 |
+
return;
|
1428 |
+
}
|
1429 |
+
myValue = '<div wdid="' + myId + '" class="wdform_row">%' + myId + ' - ' + myLabel + '%</div>';
|
1430 |
+
line = editor.getCursor().line;
|
1431 |
+
ch = editor.getCursor().ch;
|
1432 |
+
text = editor.getLine(line);
|
1433 |
+
text1 = text.substr(0, ch);
|
1434 |
+
text2 = text.substr(ch);
|
1435 |
+
text = text1 + myValue + text2;
|
1436 |
+
editor.setLine(line, text);
|
1437 |
+
editor.focus();
|
1438 |
+
}
|
1439 |
+
function autogen(status) {
|
1440 |
+
if (status) {
|
1441 |
+
custom_front = editor.getValue();
|
1442 |
+
editor.setValue(form_front);
|
1443 |
+
editor.setOption('readOnly', true);
|
1444 |
+
autoFormat();
|
1445 |
+
}
|
1446 |
+
else {
|
1447 |
+
editor.setValue(custom_front);
|
1448 |
+
editor.setOption('readOnly', false);
|
1449 |
+
autoFormat();
|
1450 |
+
}
|
1451 |
+
}
|
1452 |
+
function autoFormat() {
|
1453 |
+
CodeMirror.commands["selectAll"](editor);
|
1454 |
+
editor.autoFormatRange(editor.getCursor(true), editor.getCursor(false));
|
1455 |
+
editor.scrollTo(0,0);
|
1456 |
+
}
|
1457 |
+
</script>
|
1458 |
+
|
1459 |
+
<div class="fm_layout" style="width: 99%;">
|
1460 |
+
<form action="admin.php?page=manage_cfm" method="post" name="adminForm" enctype="multipart/form-data">
|
1461 |
+
<div class="buttons_div">
|
1462 |
+
<input class="button-secondary" type="submit" onclick="submitbutton(); spider_set_input_value('task', 'save_layout')" value="Save"/>
|
1463 |
+
<input class="button-secondary" type="submit" onclick="submitbutton(); spider_set_input_value('task', 'apply_layout')" value="Apply"/>
|
1464 |
+
<input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'cancel_options')" value="Cancel"/>
|
1465 |
+
</div>
|
1466 |
+
<h2 style="clear: both;">Description</h2>
|
1467 |
+
<p>To customize the layout of the form fields uncheck the Auto-Generate Layout box and edit the HTML.</p>
|
1468 |
+
<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:
|
1469 |
+
<b><span class="cm-tag"><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">></span>%example_id - Example%<span class="cm-tag"></div></span></b>
|
1470 |
+
, where <b><span class="cm-tag"><div></span></b> is used to set a row.</p>
|
1471 |
+
<p>To return to the default settings you should check Auto-Generate Layout box.</p>
|
1472 |
+
<h3 style="color:red">Notice</h3>
|
1473 |
+
<p>Make sure not to publish the same field twice. This will cause malfunctioning of the form.</p>
|
1474 |
+
<hr/>
|
1475 |
+
<label for="autogen_layout" style="font-size: 20px; line-height: 45px; margin-left: 10px;">Auto Generate Layout? </label>
|
1476 |
+
<input type="checkbox" value="1" name="autogen_layout" id="autogen_layout" <?php echo (($row->autogen_layout) ? 'checked="checked"' : ''); ?> />
|
1477 |
+
<input type="hidden" name="custom_front" id="custom_front" value="" />
|
1478 |
+
|
1479 |
+
<input type="hidden" id="task" name="task" value=""/>
|
1480 |
+
<input type="hidden" id="current_id" name="current_id" value="<?php echo $row->id; ?>" />
|
1481 |
+
</form>
|
1482 |
+
<br/>
|
1483 |
+
<?php
|
1484 |
+
foreach($ids as $key => $id) {
|
1485 |
+
if ($types[$key] != "type_section_break") {
|
1486 |
+
?>
|
1487 |
+
<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>
|
1488 |
+
<?php
|
1489 |
+
}
|
1490 |
+
}
|
1491 |
+
?>
|
1492 |
+
<br /><br />
|
1493 |
+
<button class="fm_submit_layout button button-secondary button-hero" onclick="autoFormat()"><strong>Apply Source Formatting</strong> <em>(ctrl-enter)</em></button>
|
1494 |
+
<textarea id="source" name="source" style="display: none;"></textarea>
|
1495 |
+
</div>
|
1496 |
+
<script>
|
1497 |
+
var editor = CodeMirror.fromTextArea(document.getElementById("source"), {
|
1498 |
+
lineNumbers: true,
|
1499 |
+
lineWrapping: true,
|
1500 |
+
mode: "htmlmixed",
|
1501 |
+
value: form_front
|
1502 |
+
});
|
1503 |
+
if (jQuery('#autogen_layout').is(':checked')) {
|
1504 |
+
editor.setOption('readOnly', true);
|
1505 |
+
editor.setValue(form_front);
|
1506 |
+
}
|
1507 |
+
else {
|
1508 |
+
editor.setOption('readOnly', false);
|
1509 |
+
editor.setValue(custom_front);
|
1510 |
+
}
|
1511 |
+
jQuery('#autogen_layout').click(function() {
|
1512 |
+
autogen(jQuery(this).is(':checked'));
|
1513 |
+
});
|
1514 |
+
autoFormat();
|
1515 |
+
</script>
|
1516 |
+
<?php
|
1517 |
+
}
|
1518 |
+
|
1519 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
1520 |
+
// Getters & Setters //
|
1521 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
1522 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
1523 |
+
// Private Methods //
|
1524 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
1525 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
1526 |
+
// Listeners //
|
1527 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
1528 |
}
|
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" /> <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&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" /> <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&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_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: #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: #0E4D92;\r\n cursor: pointer;\r\n font-size: 17px;\r\n border-radius: 4px;\r\n min-width: 80px;\r\n min-height: 27px;\r\n color: #fff;\r\n border: 2px solid #0E3F77;\r\n margin: 5px;\r\n box-shadow: 0px 0px 2px #c9c9c9;\r\n font-family: Segoe UI;\r\n}\r\n.wdform_button button:active {\r\n border: 2px solid #0B2D52;\r\n background: #0E3F77;\r\n}\', 0)');
|
99 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'contactformmaker_themes` (`id`, `title`, `css`, `default`) VALUES(18, \'Theme 05 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: #007326;\r\nborder: 1px solid #B6E4CF;\r\nmargin-bottom: 10px;\r\ncolor: #B6E4CF;\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/02/nextbg_hover.png) url([SITE_ROOT]/images/05/02/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: #018D08 !important;\r\n color: #fff;\r\n}\r\na.ui-spinner-button:active{\r\n background: #018D08 !important;\r\n color: #fff;\r\n}\r\na.ui-spinner-button:focus{\r\n background: #018D08 !important;\r\n color: #fff;\r\n}\r\na.ui-slider-handle:hover{\r\n background: #018D08 !important;\r\n color: #fff;\r\noutline:none;\r\n}\r\na.ui-slider-handle:active{\r\n background: #018D08 !important;\r\n color: #fff;\r\noutline:none;\r\n}\r\na.ui-slider-handle:focus{\r\n background: #018D08 !important;\r\n color: #fff;\r\noutline:none;\r\n}\r\nui-state-hover {\r\n background: #018D08 !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/02/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/02/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/02/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/02/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/02/previousbg_hover.png) no-repeat;\r\n width: 113px;\r\n}\r\n.button-submit {\r\n background: url([SITE_ROOT]/images/05/02/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: #B6E4CF;\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: #0D7A31;\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\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 #0D7A31;\r\n outline: none;\r\n}\r\ninput[type="password"]:focus{\r\n border: 1px solid #0D7A31;\r\n outline: none;\r\n}\r\ntextarea:focus{\r\n border: 1px solid #0D7A31;\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 #0D7A31;\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 #0D7A31;\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: #0D7A31;\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: #018D08;\r\n margin-left: 1px;\r\n}\r\n.page_active {\r\n color: #fff;\r\n cursor: pointer;\r\n background-color: #00AC0A;\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: #018F08 ;\r\n background: -moz-linear-gradient(left, #018D08 0%, #018F08 39%, #00BE0A 100%);\r\n background: -webkit-gradient(linear, left top, right top, color-stop(0%, #018D08 ), color-stop(39%, #018F08 ), color-stop(100%, #00BE0A ));\r\n background: -webkit-linear-gradient(left, #018D08 0%, #018F08 39%, #00BE0A 100%);\r\n background: -o-linear-gradient(left, #018D08 0%, #018F08 39%, #00BE0A 100%);\r\n background: -ms-linear-gradient(left, #018D08 0%, #018F08 39%, #00BE0A 100%);\r\nbackground: linear-gradient(to right, #018D08 0%, #018F08 39%, #00BE0A 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: #CEE0D3;\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: #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: #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)');
|
100 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'contactformmaker_themes` (`id`, `title`, `css`, `default`) VALUES(19, \'Theme 05 pink\', \'.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: #B05785;\r\nborder: 1px solid #F6E2ED;\r\nmargin-bottom: 10px;\r\ncolor: #F6E2ED;\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/03/nextbg_hover.png) url([SITE_ROOT]/images/05/03/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: #B05785 !important;\r\n color: #fff;\r\n}\r\na.ui-spinner-button:active{\r\n background: #B05785 !important;\r\n color: #fff;\r\n}\r\na.ui-spinner-button:focus{\r\n background: #B05785 !important;\r\n color: #fff;\r\n}\r\na.ui-slider-handle:hover{\r\n background: #B05785 !important;\r\n color: #fff;\r\noutline:none;\r\n}\r\na.ui-slider-handle:active{\r\n background: #B05785 !important;\r\n color: #fff;\r\noutline:none;\r\n}\r\na.ui-slider-handle:focus{\r\n background: #B05785 !important;\r\n color: #fff;\r\noutline:none;\r\n}\r\nui-state-hover {\r\n background: #B05785 !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/02/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/03/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/03/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/03/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/03/previousbg_hover.png) no-repeat;\r\n width: 113px;\r\n}\r\n.button-submit {\r\n background: url([SITE_ROOT]/images/05/03/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: #F6E2ED;\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: #B05785;\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\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\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 #B05785;\r\n outline: none;\r\n}\r\ninput[type="password"]:focus{\r\n border: 1px solid #B05785;\r\n outline: none;\r\n}\r\ntextarea:focus{\r\n border: 1px solid #B05785;\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 #B05785;\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 #B05785;\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: #B05785;\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: #D7639F;\r\n margin-left: 1px;\r\n}\r\n.page_active {\r\n color: #fff;\r\n cursor: pointer;\r\n background-color: #E47DB3;\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: #D863A0 ;\r\n background: -moz-linear-gradient(left, #D7639F 0%, #D863A0 39%, #F173B4 100%);\r\n background: -webkit-gradient(linear, left top, right top, color-stop(0%, #D7639F ), color-stop(39%, #D863A0 ), color-stop(100%, #F173B4 ));\r\n background: -webkit-linear-gradient(left, #D7639F 0%, #D863A0 39%, #F173B4 100%);\r\n background: -o-linear-gradient(left, #D7639F 0%, #D863A0 39%, #F173B4 100%);\r\n background: -ms-linear-gradient(left, #D7639F 0%, #D863A0 39%, #F173B4 100%);\r\nbackground: linear-gradient(to right, #D7639F 0%, #D863A0 39%, #F173B4 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: #D6CAD2;\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: #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: #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)');
|
101 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'contactformmaker_themes` (`id`, `title`, `css`, `default`) VALUES(20, \'Theme 06 turquoise\', \'.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: #B1EBE9;\r\nborder: 1px solid #018580;\r\nmargin-bottom: 10px;\r\ncolor: #018580;\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: 16px;\r\n height: 16px;\r\n top: -6px;\r\n border: 0px;\r\n border-radius: 13px;\r\n background: #fff;\r\n border: 1px solid #ccc;\r\n}\r\n.ui-slider {\r\n height: 6px;\r\n background: transparent !important;\r\n margin: 7px 0px;\r\nborder:1px solid #ABAAAA !important;\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: #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: 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: #029A95 !important;\r\n color: #fff;\r\n outline: none;\r\n}\r\na.ui-spinner-button:active{\r\n background: #029A95 !important;\r\n color: #fff;\r\n outline: none;\r\n}\r\na.ui-spinner-button:focus{\r\n background: #029A95 !important;\r\n color: #fff;\r\n outline: none;\r\n}\r\na.ui-slider-handle:hover{\r\n background: #029A95 !important;\r\n color: #fff;\r\n outline: none;\r\n}\r\na.ui-slider-handle:active{\r\n background: #029A95 !important;\r\n color: #fff;\r\n outline: none;\r\n}\r\na.ui-slider-handle:focus{\r\n background: #029A95 !important;\r\n color: #fff;\r\n outline: none;\r\n}\r\nui-state-hover {\r\n background: #029A95 !important;\r\n color: #fff;\r\n outline: none;\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 padding: 2px 0px 2px 4px;\r\n font-size: 13px;\r\n height: 23px;\r\n line-height: 20px;\r\n overflow: hidden;\r\n background: transparent;\r\n background-position: right 2px center;\r\n width: 100%;\r\n border: 1px solid #ABAAAA;\r\n border-radius: 7px;\r\n color: #4C4C4C;\r\n}\r\n.sel-imul.act .sel-selected {\r\n background: #fff;\r\n}\r\n.sel-selected .sel-arraw {\r\n height: 25px;\r\n width: 28px;\r\n background: url([SITE_ROOT]/images/06/01.png) no-repeat 0% 50%;\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: 66px;\r\n height: 49px;\r\n background: url([SITE_ROOT]/images/06/upload.png) no-repeat;\r\n display: inline-block;\r\n}\r\n.next-page\r\n{\r\n width:inherit !important;\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: 35px;\r\n line-height: 32px;\r\n background: url([SITE_ROOT]/images/06/next.png) no-repeat right #019993;\r\n padding: 0px 36px 0 20px ;\r\n vertical-align: middle;\r\n font-size: 18px;\r\n margin-right: 20px;\r\n margin-left: 20px;\r\n border: 1px solid #018580;\r\n\r\n}\r\n.next-page div.wdform-page-button:hover {\r\n background: url([SITE_ROOT]/images/06/next.png) no-repeat right #00C5BD;\r\n}\r\n.previous-page\r\n{\r\n width:inherit !important;\r\n}\r\n.previous-page div.wdform-page-button {\r\n color: #A2A2A2;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 35px;\r\n line-height: 35px;\r\n background: url([SITE_ROOT]/images/06/previous.png) no-repeat left #F0EFEF;\r\n padding: 0 20px;\r\n vertical-align: middle;\r\n font-size: 18px;\r\n margin-right: 20px;\r\n margin-left: 20px;\r\n border: 1px solid #959595;\r\n}\r\n.previous-page div.wdform-page-button:hover {\r\n background: url([SITE_ROOT]/images/06/previous.png) no-repeat left #E8E8E8;\r\n}\r\n.previous-page div.wdform-page-button:before {\r\n content: " ";\r\n background: url([SITE_ROOT]/images/06/previous.png) no-repeat left;\r\n height: 19px;\r\n width: 20px;\r\n display: inline-block;\r\n vertical-align: middle;\r\n top: -2px;\r\n position: relative;\r\n}\r\n.button-submit {\r\n color: #ffffff;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 35px;\r\n line-height: 35px;\r\n background: #019993;\r\n padding: 0px 20px;\r\n vertical-align: middle;\r\n font-size: 18px;\r\n border: 1px solid #018580;\r\n}\r\n.button-submit:hover {\r\n background: #00C5BD;\r\n}\r\n.button-reset {\r\n color: #A2A2A2;\r\n cursor: pointer;\r\n display: inline-block;\r\n height: 35px;\r\n line-height: 35px;\r\n background: #F0EFEF;\r\n padding: 0 20px;\r\n vertical-align: middle;\r\n font-size: 18px;\r\n border: 1px solid #959595;\r\n margin-left: 5px;\r\n}\r\n.button-reset:hover {\r\n background: #E8E8E8;\r\n}\r\n.wdform_page {\r\n background: #B1EBE9;\r\n padding: 15px;\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_section_break2 {\r\n margin: 16px 10px 16px 0px;\r\n display: inline-block;\r\n background: #029A95;\r\n color: #ffffff !important;\r\n font-size: 16px;\r\n text-align: left;\r\npadding: 7px 30px 10px;\r\n}\r\n\r\n.wdform_section_break2 p{\r\n color: #ffffff !important;\r\n \r\n}\r\n\r\n.wdform_section_break2:after {\r\n content: " " ;\r\n position: relative;\r\n width: 16px;\r\n height: 13px;\r\n top: -3px;\r\n left: 1px;\r\n box-shadow: 0px 7px 2px #c9c9c9;\r\n}\r\n\r\n.wdform_section_break\r\n{\r\n margin: 16px 10px 16px 0px;\r\ncolor:#4C4C4C;\r\nfont-size: 16px;\r\n}\r\n.wdform_section {\r\n display: table-row;\r\n}\r\nselect {\r\n border-radius: 5px;\r\n height: 27px;\r\n overflow: hidden;\r\n padding: 2px;\r\nborder: 1px solid #ABAAAA;\r\nbackground: transparent;\r\ncolor: #5C5C5C;\r\n outline: none;\r\n}\r\ninput[type="text"]{\r\n border: 1px solid #ABAAAA;\r\n height: 25px;\r\n padding:0 3px !important;\r\n border-radius: 5px;\r\n background: transparent;\r\n color: #5C5C5C;\r\n}\r\ninput[type="password"]{\r\n border: 1px solid #ABAAAA;\r\n height: 25px;\r\n padding:0 3px !important;\r\n border-radius: 5px;\r\n background: transparent;\r\n color: #5C5C5C;\r\n}\r\ntextarea {\r\n border: 1px solid #ABAAAA;\r\n height: 25px;\r\n padding:0 3px !important;\r\n border-radius: 5px;\r\n background: transparent;\r\n color: #5C5C5C;\r\n}\r\ninput[type="text"]:focus{\r\n border: 1px solid #029A95;\r\n outline: none;\r\n}\r\ninput[type="password"]:focus{\r\n border: 1px solid #029A95;\r\n outline: none;\r\n}\r\ntextarea:focus{\r\n border: 1px solid #029A95;\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 #029A95;\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/06/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: 13px;\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 9px 1px rgb(218, 218, 218) 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: 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: 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: #4C4C4C;\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: #4C4C4C;\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: #029A95;\r\n margin-right: 1px;\r\n}\r\n.page_active {\r\n color: #fff;\r\n cursor: pointer;\r\n background-color: #00DAD3;\r\n display: inline-block;\r\n vertical-align: bottom;\r\n height: 20px;\r\n text-align: center;\r\n font-size: 16px;\r\n padding: 5px 25px 0px 25px;\r\n margin-right: 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 vertical-align: middle;\r\n background: #01B3AD ;\r\n background: -moz-linear-gradient(left, #01B3AD 0%, #01CDC6 39%, #02DED6 100%);\r\n background: -webkit-gradient(linear, left top, right top, color-stop(0%, #01B3AD ), color-stop(39%, #01CDC6 ), color-stop(100%, #02DED6 ));\r\n background: -webkit-linear-gradient(left, #01B3AD 0%, #01CDC6 39%, #02DED6 100%);\r\n background: -o-linear-gradient(left, #01B3AD 0%, #01CDC6 39%, #02DED6 100%);\r\n background: -ms-linear-gradient(left, #01B3AD 0%, #01CDC6 39%, #02DED6 100%);\r\nlinear-gradient(to right, #01B3AD 0%, #01CDC6 39%, #02DED6 100%)\r\n}\r\n.page_percentage_deactive {\r\n height: 23px;\r\n line-height: 23px;\r\n background-color: #029A95;\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: left !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: #ffffff;\r\n font-style: italic;\r\n margin: 0px 0px 0px 40px;\r\n display: inline-block;\r\n line-height: 23px;\r\n height: 23px;\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}\r\n\r\n.wdform-section-break-div\r\n{\r\nborder-top:1px solid #ABAAAA !important;\r\n}\', 0)');
|
102 |
-
$wpdb->query('INSERT INTO `' . $wpdb->prefix . 'contactformmaker_themes` (`id`, `title`, `css`, `default`) VALUES(21, \'Theme 06 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: #BBDBE7;\r\nborder: 1px solid #25A5DF;\r\nmargin-bottom: 10px;\r\ncolor: #25A5DF;\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: 16px;\r\n height: 16px;\r\n top: -6px;\r\n border: 0px;\r\n border-radius: 13px;\r\n background: #fff;\r\n border: 1px solid #ccc;\r\n}\r\n.ui-slider {\r\n height: 6px;\r\n background: transparent !important;\r\n margin: 7px 0px;\r\nborder:1px solid #ABAAAA !important;\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: #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: 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: #0176AA !important;\r\n color: #fff;\r\n outline: none;\r\n}\r\na.ui-spinner-button:active{\r\n background: #0176AA !important;\r\n color: #fff;\r\n outline: none;\r\n}\r\na.ui-spinner-button:focus{\r\n background: #0176AA !important;\r\n color: #fff;\r\n outline: none;\r\n}\r\na.ui-slider-handle:hover{\r\n background: #0176AA !important;\r\n color: #fff;\r\n outline: none;\r\n}\r\na.ui-slider-handle:active{\r\n background: #0176AA !important;\r\n color: #fff;\r\n outline: none;\r\n}\r\na.ui-slider-handle:focus{\r\n background: #0176AA !important;\r\n color: #fff;\r\n outline: none;\r\n}\r\nui-state-hover {\r\n background: #0176AA !important;\r\n color: #fff;\r\n outline: none;\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 padding: 2px 0px 2px 4px;\r\n font-size: 13px;\r\n height: 23px;\r\n line-height: 20px;\r\n overflow: hidden;\r\n background: transparent;\r\n background-position: right 2px center;\r\n width: 100%;\r\n border: 1px solid #ABAAAA;\r\n border-radius: 7px;\r\n color: #4C4C4C;\r\n}\r\n.sel-imul.act .sel-selected {\r\n background: #fff;\r\n}\r\n.sel-selected .sel-arraw {\r\n height: 25px;\r\n width: 28px;\r\n background: url([SITE_ROOT]/images/06/01.png) no-repeat 0% 50%;\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.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: 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|