Version Description
- Advanced Security for Plugin Implemented
Download this release
Release Info
Developer | contact-banker |
Plugin | Contact Bank: WordPress Form Builder for Contact Forms |
Version | 2.0.47 |
Comparing to | |
See all releases |
Code changes from version 2.0.46 to 2.0.47
- contact-bank.php +20 -60
- lib/contact_bank_email-class.php +15 -0
- lib/contact_frontend_data_class.php +135 -107
- readme.txt +6 -2
- views/add_contact_email.php +358 -328
- views/contact-bank-system-report.php +31 -1
- views/contact_bank_form_preview.php +490 -460
- views/contact_bank_layout_settings.php +34 -1
- views/contact_bank_pro_version.php +394 -364
- views/contact_controls_files.php +34 -0
- views/contact_documentation.php +34 -1
- views/contact_email_settings.php +35 -1
- views/contact_frontend_data.php +35 -1
- views/contact_view.php +32 -2
- views/dashboard.php +338 -381
- views/shortcode.php +34 -1
contact-bank.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Contact Bank Standard Edition
|
|
4 |
Plugin URI: http://tech-banker.com
|
5 |
Description: Build Complex, Powerful Contact Forms in Just Seconds. No Programming Knowledge Required! Yeah, It's Really That Easy.
|
6 |
Author: Tech Banker
|
7 |
-
Version: 2.0.
|
8 |
Author URI: http://tech-banker.com
|
9 |
*/
|
10 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
@@ -85,26 +85,23 @@ function create_global_menus_for_contact_bank()
|
|
85 |
break;
|
86 |
case "author":
|
87 |
add_menu_page("Contact Bank", __("Contact Bank", contact_bank), "read", "dashboard","",CONTACT_BK_PLUGIN_URL . "/assets/images/icon.png");
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
|
|
|
|
93 |
add_submenu_page("dashboard", "Purchase PRO Edition", __("Purchase PRO Edition", contact_bank), "read", "pro_version", "pro_version" );
|
94 |
-
|
95 |
add_submenu_page("","","", "read", "form_preview", "form_preview" );
|
96 |
break;
|
97 |
case "contributor":
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
add_submenu_page("dashboard", "Global Settings", __("Global Settings", contact_bank), "read", "layout_settings", "layout_settings");
|
104 |
-
add_submenu_page("dashboard", "Purchase PRO Edition", __("Purchase PRO Edition", contact_bank), "read", "pro_version", "pro_version" );
|
105 |
-
add_submenu_page("","","", "read", "add_contact_email_settings", "add_contact_email_settings" );
|
106 |
-
add_submenu_page("","","", "read", "form_preview", "form_preview" );
|
107 |
-
break;
|
108 |
}
|
109 |
}
|
110 |
/* Function Name : contact_bank
|
@@ -502,51 +499,14 @@ function add_contact_bank_icon($meta = TRUE)
|
|
502 |
"href" => site_url() ."/wp-admin/admin.php?page=pro_version",
|
503 |
"title" => __("Purchase PRO Edition", contact_bank)) /* set the sub-menu name */
|
504 |
);
|
505 |
-
break;
|
506 |
case "contributor":
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
|
513 |
-
$wp_admin_bar->add_menu( array(
|
514 |
-
"parent" => "contact_bank_links",
|
515 |
-
"id" => "dashboard_links",
|
516 |
-
"href" => site_url() ."/wp-admin/admin.php?page=dashboard",
|
517 |
-
"title" => __( "Dashboard", contact_bank) ) /* set the sub-menu name */
|
518 |
-
);
|
519 |
-
$wp_admin_bar->add_menu( array(
|
520 |
-
"parent" => "contact_bank_links",
|
521 |
-
"id" => "short_code_links",
|
522 |
-
"href" => site_url() ."/wp-admin/admin.php?page=short_code",
|
523 |
-
"title" => __( "Short-Codes", contact_bank)) /* set the sub-menu name */
|
524 |
-
);
|
525 |
-
$wp_admin_bar->add_menu( array(
|
526 |
-
"parent" => "contact_bank_links",
|
527 |
-
"id" => "frontend_data_links",
|
528 |
-
"href" => site_url() ."/wp-admin/admin.php?page=frontend_data",
|
529 |
-
"title" => __( "Form Entries", contact_bank)) /* set the sub-menu name */
|
530 |
-
);
|
531 |
-
$wp_admin_bar->add_menu( array(
|
532 |
-
"parent" => "contact_bank_links",
|
533 |
-
"id" => "email_links",
|
534 |
-
"href" => site_url() ."/wp-admin/admin.php?page=contact_email",
|
535 |
-
"title" => __( "Email Settings", contact_bank) ) /* set the sub-menu name */
|
536 |
-
);
|
537 |
-
$wp_admin_bar->add_menu( array(
|
538 |
-
"parent" => "contact_bank_links",
|
539 |
-
"id" => "form_settings_data_links",
|
540 |
-
"href" => site_url() ."/wp-admin/admin.php?page=layout_settings",
|
541 |
-
"title" => __( "Global Settings", contact_bank)) /* set the sub-menu name */
|
542 |
-
);
|
543 |
-
$wp_admin_bar->add_menu( array(
|
544 |
-
"parent" => "contact_bank_links",
|
545 |
-
"id" => "pro_version_data_links",
|
546 |
-
"href" => site_url() ."/wp-admin/admin.php?page=pro_version",
|
547 |
-
"title" => __("Purchase PRO Edition", contact_bank)) /* set the sub-menu name */
|
548 |
-
);
|
549 |
-
break;
|
550 |
}
|
551 |
}
|
552 |
add_action( "media_buttons_context", "add_contact_shortcode_button", 1);
|
4 |
Plugin URI: http://tech-banker.com
|
5 |
Description: Build Complex, Powerful Contact Forms in Just Seconds. No Programming Knowledge Required! Yeah, It's Really That Easy.
|
6 |
Author: Tech Banker
|
7 |
+
Version: 2.0.47
|
8 |
Author URI: http://tech-banker.com
|
9 |
*/
|
10 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
85 |
break;
|
86 |
case "author":
|
87 |
add_menu_page("Contact Bank", __("Contact Bank", contact_bank), "read", "dashboard","",CONTACT_BK_PLUGIN_URL . "/assets/images/icon.png");
|
88 |
+
add_submenu_page("dashboard", "Dashboard", __("Dashboard", contact_bank), "read", "dashboard","dashboard");
|
89 |
+
add_submenu_page("","","", "read", "contact_bank","contact_bank");
|
90 |
+
add_submenu_page("dashboard", "Short-Codes", __("Short-Codes", contact_bank), "read", "short_code", "short_code" );
|
91 |
+
add_submenu_page("dashboard", "Form Entries", __("Form Entries", contact_bank), "read", "frontend_data","frontend_data");
|
92 |
+
add_submenu_page("dashboard", "Email Settings", __("Email Settings", contact_bank), "read", "contact_email", "contact_email");
|
93 |
+
add_submenu_page("dashboard", "Global Settings", __("Global Settings", contact_bank), "read", "layout_settings", "layout_settings");
|
94 |
+
add_submenu_page("dashboard", "System Status", __("System Status", contact_bank), "read", "system_status", "system_status" );
|
95 |
add_submenu_page("dashboard", "Purchase PRO Edition", __("Purchase PRO Edition", contact_bank), "read", "pro_version", "pro_version" );
|
96 |
+
add_submenu_page("","","", "read", "add_contact_email_settings", "add_contact_email_settings" );
|
97 |
add_submenu_page("","","", "read", "form_preview", "form_preview" );
|
98 |
break;
|
99 |
case "contributor":
|
100 |
+
break;
|
101 |
+
|
102 |
+
case "subscriber":
|
103 |
+
break;
|
104 |
+
|
|
|
|
|
|
|
|
|
|
|
105 |
}
|
106 |
}
|
107 |
/* Function Name : contact_bank
|
499 |
"href" => site_url() ."/wp-admin/admin.php?page=pro_version",
|
500 |
"title" => __("Purchase PRO Edition", contact_bank)) /* set the sub-menu name */
|
501 |
);
|
502 |
+
break;
|
503 |
case "contributor":
|
504 |
+
break;
|
505 |
+
|
506 |
+
case "subscriber":
|
507 |
+
break;
|
508 |
+
|
509 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
510 |
}
|
511 |
}
|
512 |
add_action( "media_buttons_context", "add_contact_shortcode_button", 1);
|
lib/contact_bank_email-class.php
CHANGED
@@ -71,6 +71,21 @@ else
|
|
71 |
</a>
|
72 |
<?php
|
73 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
|
75 |
}
|
76 |
?>
|
71 |
</a>
|
72 |
<?php
|
73 |
break;
|
74 |
+
case "author":
|
75 |
+
?>
|
76 |
+
<a href="admin.php?page=add_contact_email_settings&email_id=<?php echo $email_settings[$flag]->email_id;?>&form_id=<?php echo $form_id ?>" class="btn hovertip" data-original-title="<?php _e("Edit Email Settings",contact_bank)?>">
|
77 |
+
<i class="icon-pencil"></i>
|
78 |
+
</a>
|
79 |
+
<a herf="#" onclick="delete_email_settings(<?php echo $email_settings[$flag]->email_id;?>)" class="btn hovertip" data-original-title="<?php _e("Delete Email Settings",contact_bank)?>">
|
80 |
+
<i class="icon-trash"></i>
|
81 |
+
</a>
|
82 |
+
<?php
|
83 |
+
break;
|
84 |
+
case "contributor":
|
85 |
+
break;
|
86 |
+
|
87 |
+
case "subscriber":
|
88 |
+
break;
|
89 |
|
90 |
}
|
91 |
?>
|
lib/contact_frontend_data_class.php
CHANGED
@@ -1,124 +1,152 @@
|
|
1 |
<?php
|
2 |
-
global $wpdb;
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
{
|
5 |
-
if($_REQUEST["param"]
|
6 |
{
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
$wpdb->
|
11 |
(
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
<
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
$
|
25 |
-
|
26 |
-
$wpdb->
|
27 |
(
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
$wpdb->
|
46 |
(
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
$
|
59 |
-
(
|
60 |
-
$wpdb->prepare
|
61 |
-
(
|
62 |
-
"SELECT dynamic_frontend_value FROM " .frontend_controls_data_Table()." WHERE dynamic_control_id = %d AND form_id = %d AND form_submit_id = %d",
|
63 |
-
$form_data[$flag2]->control_id,
|
64 |
-
$form_id,
|
65 |
-
$form_submit_count[$flag1]->submit_id
|
66 |
-
)
|
67 |
-
);
|
68 |
-
if($form_data[$flag2]->field_id == 5)
|
69 |
{
|
70 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
{
|
72 |
-
$
|
73 |
-
|
74 |
-
|
75 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
}
|
77 |
-
|
|
|
78 |
{
|
79 |
?>
|
80 |
-
<td
|
81 |
<?php
|
82 |
}
|
83 |
}
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
},
|
116 |
-
"aaSorting": [[ 0, "asc" ]]
|
117 |
-
});
|
118 |
-
|
119 |
-
</script>
|
120 |
-
<?php
|
121 |
-
die();
|
122 |
}
|
123 |
}
|
124 |
?>
|
1 |
<?php
|
2 |
+
global $wpdb,$current_user,$cb_user_role_permission;
|
3 |
+
$cb_role = $wpdb->prefix . "capabilities";
|
4 |
+
$current_user->role = array_keys($current_user->$cb_role);
|
5 |
+
$cb_role = $current_user->role[0];
|
6 |
+
switch($cb_role)
|
7 |
+
{
|
8 |
+
case "administrator":
|
9 |
+
$cb_user_role_permission = "manage_options";
|
10 |
+
break;
|
11 |
+
case "editor":
|
12 |
+
$cb_user_role_permission = "publish_pages";
|
13 |
+
break;
|
14 |
+
case "author":
|
15 |
+
$cb_user_role_permission = "publish_posts";
|
16 |
+
break;
|
17 |
+
case "contributor":
|
18 |
+
$cb_user_role_permission = "edit_posts";
|
19 |
+
break;
|
20 |
+
case "subscriber":
|
21 |
+
$cb_user_role_permission = "read";
|
22 |
+
break;
|
23 |
+
}
|
24 |
+
if(!current_user_can($cb_user_role_permission))
|
25 |
+
{
|
26 |
+
return;
|
27 |
+
}
|
28 |
+
else
|
29 |
{
|
30 |
+
if(isset($_REQUEST["param"]))
|
31 |
{
|
32 |
+
if($_REQUEST["param"] == "frontend_form_data")
|
33 |
+
{
|
34 |
+
$form_id = intval($_REQUEST["form_id"]);
|
35 |
+
$form_data = $wpdb->get_results
|
36 |
(
|
37 |
+
$wpdb->prepare
|
38 |
+
(
|
39 |
+
"SELECT * FROM " .create_control_Table()." WHERE form_id = %d ORDER BY sorting_order ASC",
|
40 |
+
$form_id
|
41 |
+
)
|
42 |
+
);
|
43 |
+
?>
|
44 |
+
<div id="dvData">
|
45 |
+
<table class="table table-striped" id="data-table-frontend" style="width:100%;">
|
46 |
+
<thead>
|
47 |
+
<tr>
|
48 |
+
<?php
|
49 |
+
for($flag=0;$flag<count($form_data);$flag++)
|
50 |
+
{
|
51 |
+
$form_control_labels = $wpdb->get_var
|
52 |
(
|
53 |
+
$wpdb->prepare
|
54 |
+
(
|
55 |
+
"SELECT dynamic_settings_value FROM " .contact_bank_dynamic_settings_form()." WHERE dynamicId = %d AND dynamic_settings_key = %s",
|
56 |
+
$form_data[$flag]->control_id,
|
57 |
+
"cb_label_value"
|
58 |
+
)
|
59 |
+
);
|
60 |
+
?>
|
61 |
+
<td><?php echo $form_control_labels ?></td>
|
62 |
+
<?php
|
63 |
+
}
|
64 |
+
?>
|
65 |
+
<td></td>
|
66 |
+
</tr>
|
67 |
+
</thead>
|
68 |
+
<tbody>
|
69 |
+
<?php
|
70 |
+
$form_submit_count = $wpdb->get_results
|
71 |
(
|
72 |
+
$wpdb->prepare
|
73 |
+
(
|
74 |
+
"SELECT * FROM ".contact_bank_frontend_forms_Table()." WHERE form_id = %d",
|
75 |
+
$form_id
|
76 |
+
)
|
77 |
+
);
|
78 |
+
for($flag1=0;$flag1<count($form_submit_count);$flag1++)
|
79 |
+
{
|
80 |
+
?>
|
81 |
+
<tr>
|
82 |
+
<?php
|
83 |
+
for($flag2=0;$flag2<count($form_data);$flag2++)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
{
|
85 |
+
$form_control_labels_values = $wpdb->get_var
|
86 |
+
(
|
87 |
+
$wpdb->prepare
|
88 |
+
(
|
89 |
+
"SELECT dynamic_frontend_value FROM " .frontend_controls_data_Table()." WHERE dynamic_control_id = %d AND form_id = %d AND form_submit_id = %d",
|
90 |
+
$form_data[$flag2]->control_id,
|
91 |
+
$form_id,
|
92 |
+
$form_submit_count[$flag1]->submit_id
|
93 |
+
)
|
94 |
+
);
|
95 |
+
if($form_data[$flag2]->field_id == 5)
|
96 |
{
|
97 |
+
if($form_control_labels_values != "")
|
98 |
+
{
|
99 |
+
$chk_options = str_replace("-",", ", $form_control_labels_values);
|
100 |
+
?>
|
101 |
+
<td><?php echo $chk_options; ?></td>
|
102 |
+
<?php
|
103 |
+
}
|
104 |
+
else
|
105 |
+
{
|
106 |
+
?>
|
107 |
+
<td ></td>
|
108 |
+
<?php
|
109 |
+
}
|
110 |
}
|
111 |
+
|
112 |
+
else
|
113 |
{
|
114 |
?>
|
115 |
+
<td ><?php echo $form_control_labels_values; ?></td>
|
116 |
<?php
|
117 |
}
|
118 |
}
|
119 |
+
?>
|
120 |
+
<td style="vertical-align: middle;">
|
121 |
+
<a herf="#" onclick="delete_form_entry()" class="btn hovertip" data-original-title="<?php _e("Delete Form Entry",contact_bank)?>">
|
122 |
+
<i class="icon-trash"></i>
|
123 |
+
</a>
|
124 |
+
</td>
|
125 |
+
</tr>
|
126 |
+
<?php
|
127 |
+
}
|
128 |
+
?>
|
129 |
+
</tbody>
|
130 |
+
</table>
|
131 |
+
</div>
|
132 |
+
<script type="text/javascript">
|
133 |
+
oTable = jQuery('#data-table-frontend').dataTable
|
134 |
+
({
|
135 |
+
"bJQueryUI": false,
|
136 |
+
"bAutoWidth": true,
|
137 |
+
"sPaginationType": "full_numbers",
|
138 |
+
"sDom": '<"datatable-header"fl>t<"datatable-footer"ip>',
|
139 |
+
"oLanguage":
|
140 |
+
{
|
141 |
+
"sLengthMenu": "<span>Show entries:</span> _MENU_"
|
142 |
+
},
|
143 |
+
"aaSorting": [[ 0, "asc" ]]
|
144 |
+
});
|
145 |
+
|
146 |
+
</script>
|
147 |
+
<?php
|
148 |
+
die();
|
149 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
}
|
151 |
}
|
152 |
?>
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: contact-banker, Gallery-Bank
|
|
3 |
Tags: admin, advanced form, AJAX, best contact form plugin, buddypress, category, comment, comments, contact, contact bank, contact form, contact form 7, contact form builder, contact form plugin, contact forms, contact me, contact us, contacts, content, easy contact form, easy contact plugin, email, Facebook, feed, feedback, feedback form, form, form builder, forms, gallery, google, image, images, javascript, jquery, link, links, login, media, page, pages, plugin, Post, posts, request, rss, seo, shortcode, sidebar, stats, text, web form, widget, wordpress
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 3.9.1
|
6 |
-
Stable tag: 2.0.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -29,7 +29,7 @@ It provides a powerful engine for uploading and managing dynamic forms with more
|
|
29 |
|
30 |
***The Contact Bank WordPress Plugin is now proudly maintained by <a href="http://www.tech-banker.com">Tech Banker Pte Ltd.</a> since March 2014.***
|
31 |
|
32 |
-
***July
|
33 |
|
34 |
<a href="http://tech-banker.com/forum/contact-bank-support/" target="_blank">Support Desk - feel free to ask your Queries</a>
|
35 |
|
@@ -522,6 +522,10 @@ In order to set Shortcode for a Form, you need to follow these steps :
|
|
522 |
|
523 |
== Changelog ==
|
524 |
|
|
|
|
|
|
|
|
|
525 |
= 2.0.46 =
|
526 |
|
527 |
* Major Bugs Fixed Related to Frontend
|
3 |
Tags: admin, advanced form, AJAX, best contact form plugin, buddypress, category, comment, comments, contact, contact bank, contact form, contact form 7, contact form builder, contact form plugin, contact forms, contact me, contact us, contacts, content, easy contact form, easy contact plugin, email, Facebook, feed, feedback, feedback form, form, form builder, forms, gallery, google, image, images, javascript, jquery, link, links, login, media, page, pages, plugin, Post, posts, request, rss, seo, shortcode, sidebar, stats, text, web form, widget, wordpress
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 3.9.1
|
6 |
+
Stable tag: 2.0.47
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
29 |
|
30 |
***The Contact Bank WordPress Plugin is now proudly maintained by <a href="http://www.tech-banker.com">Tech Banker Pte Ltd.</a> since March 2014.***
|
31 |
|
32 |
+
***July 18, 2014: We're happy to announce that Contact Bank reached 67,700+ plugin downloads in only 10 months. We frequently receive positive feedback from people using our Contact Bank Plugin for WordPress. Thanks so much for your support!***
|
33 |
|
34 |
<a href="http://tech-banker.com/forum/contact-bank-support/" target="_blank">Support Desk - feel free to ask your Queries</a>
|
35 |
|
522 |
|
523 |
== Changelog ==
|
524 |
|
525 |
+
= 2.0.47 =
|
526 |
+
|
527 |
+
* Advanced Security for Plugin Implemented
|
528 |
+
|
529 |
= 2.0.46 =
|
530 |
|
531 |
* Major Bugs Fixed Related to Frontend
|
views/add_contact_email.php
CHANGED
@@ -1,218 +1,246 @@
|
|
1 |
<?php
|
2 |
-
global $wpdb;
|
3 |
-
$
|
4 |
-
|
5 |
-
$
|
6 |
-
(
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
(
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
$wpdb->
|
17 |
(
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
<
|
32 |
-
|
33 |
-
<
|
34 |
-
|
35 |
-
<
|
36 |
-
|
37 |
-
|
38 |
-
<
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
|
|
|
|
|
|
55 |
</div>
|
56 |
</div>
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
if(isset($email_data->send_to))
|
63 |
-
{
|
64 |
-
if($email_data->send_to == "0")
|
65 |
{
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
<
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
}
|
75 |
else
|
76 |
{
|
77 |
?>
|
78 |
<div class="layout-controls" style="padding-top:5px;">
|
79 |
-
<input type="radio" name="ux_rdl_send_to" id="ux_rdl_email" value="0"
|
80 |
<label class="rdl"><?php _e( "Enter Email", contact_bank ); ?></label>
|
81 |
-
<input type="radio" name="ux_rdl_send_to" id="ux_rdl_field" value="1"
|
82 |
<label class="rdl"><?php _e( "Select a Field", contact_bank ); ?></label>
|
83 |
</div>
|
84 |
<?php
|
85 |
}
|
86 |
-
}
|
87 |
-
else
|
88 |
-
{
|
89 |
?>
|
90 |
-
<div class="layout-controls" style="padding-top:5px;">
|
91 |
-
<input type="radio" name="ux_rdl_send_to" id="ux_rdl_email" value="0" checked="checked" onclick="show_send_to_div();">
|
92 |
-
<label class="rdl"><?php _e( "Enter Email", contact_bank ); ?></label>
|
93 |
-
<input type="radio" name="ux_rdl_send_to" id="ux_rdl_field" value="1" onclick="show_send_to_div(); ">
|
94 |
-
<label class="rdl"><?php _e( "Select a Field", contact_bank ); ?></label>
|
95 |
-
</div>
|
96 |
-
<?php
|
97 |
-
}
|
98 |
-
?>
|
99 |
-
</div>
|
100 |
-
</div>
|
101 |
-
<div class="widget-layout-body">
|
102 |
-
<div class="layout-control-group" id="div_email" style="display: none;">
|
103 |
-
<label class="layout-control-label"><?php _e( "Email", contact_bank ); ?> :
|
104 |
-
<span class="error">*</span>
|
105 |
-
</label>
|
106 |
-
<div class="layout-controls">
|
107 |
-
<input type="text" class="layout-span12" id="ux_txt_email" name="ux_txt_email" value="<?php echo isset($email_data->email_to) ? $email_data->email_to : ""; ?>" placeholder="<?php _e( "Enter Email ", contact_bank ); ?>"/>
|
108 |
</div>
|
109 |
</div>
|
110 |
-
<div class="layout-
|
111 |
-
<
|
112 |
-
<
|
113 |
-
|
114 |
-
|
115 |
-
<
|
116 |
-
|
117 |
-
|
118 |
-
</select>
|
119 |
</div>
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
<option value=""><?php _e("Select a field", contact_bank);?></option>
|
131 |
-
</select>
|
132 |
</div>
|
133 |
</div>
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
</
|
145 |
</div>
|
146 |
</div>
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
<
|
153 |
-
|
154 |
-
<
|
155 |
-
|
|
|
|
|
156 |
</div>
|
157 |
</div>
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
</
|
167 |
</div>
|
168 |
</div>
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
</
|
178 |
</div>
|
179 |
</div>
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
<option value=""><?php _e("Select a field", contact_bank);?></option>
|
190 |
-
</select>
|
191 |
</div>
|
192 |
</div>
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
<div class="layout-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
?>
|
203 |
-
</div>
|
204 |
-
<div class="layout-span4">
|
205 |
-
<select class="layout-span12" id="ux_ddl_message" name="ux_ddl_message" style=" float: right;" onchange="append_add_control_shortcode(this.id);">
|
206 |
-
<option value=""><?php _e("Insert a Field into Your Form Message", contact_bank);?></option>
|
207 |
</select>
|
208 |
</div>
|
209 |
</div>
|
210 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
211 |
</div>
|
212 |
</div>
|
|
|
|
|
213 |
</div>
|
214 |
-
<div class="separator-doubled"></div>
|
215 |
-
<input style="margin-bottom: 10px;" class="btn btn-info layout-span1" type="submit" id="submit_button" name="submit_button" value="<?php _e("Save", contact_bank); ?>" />
|
216 |
</div>
|
217 |
</div>
|
218 |
</div>
|
@@ -220,187 +248,189 @@ $email_data = $wpdb->get_row
|
|
220 |
</div>
|
221 |
</div>
|
222 |
</div>
|
223 |
-
</
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
$fields_email_controls = $wpdb->get_results
|
228 |
-
(
|
229 |
-
$wpdb->prepare
|
230 |
-
(
|
231 |
-
"SELECT dynamicId, dynamic_settings_value FROM ". contact_bank_dynamic_settings_form(). " JOIN " . create_control_Table(). " ON " . contact_bank_dynamic_settings_form().". dynamicId = ". create_control_Table(). ".control_id WHERE `dynamic_settings_key` = 'cb_admin_label' and field_id = 3 and form_id = %d",
|
232 |
-
$form_id
|
233 |
-
)
|
234 |
-
);
|
235 |
-
|
236 |
-
$fields_controls = $wpdb->get_results
|
237 |
-
(
|
238 |
-
$wpdb->prepare
|
239 |
-
(
|
240 |
-
"SELECT dynamicId, dynamic_settings_value FROM ". contact_bank_dynamic_settings_form(). " JOIN " . create_control_Table(). " ON " . contact_bank_dynamic_settings_form().". dynamicId = ". create_control_Table(). ".control_id WHERE `dynamic_settings_key` = 'cb_admin_label' and form_id = %d Order By ".create_control_Table().".sorting_order",
|
241 |
-
$form_id
|
242 |
-
)
|
243 |
-
);
|
244 |
-
for($flag = 0; $flag < count($fields_email_controls); $flag++)
|
245 |
-
{
|
246 |
-
$show_in_email = $wpdb->get_var
|
247 |
(
|
248 |
$wpdb->prepare
|
249 |
(
|
250 |
-
"SELECT dynamic_settings_value FROM ". contact_bank_dynamic_settings_form(). " WHERE `dynamic_settings_key` = '
|
251 |
-
$
|
252 |
)
|
253 |
);
|
254 |
-
|
255 |
-
|
256 |
-
?>
|
257 |
-
jQuery("#ux_ddl_from_email").append(jQuery("<option></option>").attr("value", "<?php echo $fields_email_controls[$flag]->dynamicId; ?>").text("<?php echo $fields_email_controls[$flag]->dynamic_settings_value; ?>"));
|
258 |
-
jQuery("#ux_ddl_send_to_field").append(jQuery("<option></option>").attr("value", "<?php echo $fields_email_controls[$flag]->dynamicId; ?>").text("<?php echo $fields_email_controls[$flag]->dynamic_settings_value; ?>"));
|
259 |
-
jQuery("#ux_ddl_reply_to").append(jQuery("<option></option>").attr("value", "<?php echo $fields_email_controls[$flag]->dynamicId; ?>").text("<?php echo $fields_email_controls[$flag]->dynamic_settings_value; ?>"));
|
260 |
-
jQuery("#ux_ddl_cc").append(jQuery("<option></option>").attr("value", "<?php echo $fields_email_controls[$flag]->dynamicId; ?>").text("<?php echo $fields_email_controls[$flag]->dynamic_settings_value; ?>"));
|
261 |
-
jQuery("#ux_ddl_bcc").append(jQuery("<option></option>").attr("value", "<?php echo $fields_email_controls[$flag]->dynamicId; ?>").text("<?php echo $fields_email_controls[$flag]->dynamic_settings_value; ?>"));
|
262 |
-
<?php
|
263 |
-
}
|
264 |
-
}
|
265 |
-
for($flag = 0; $flag < count($fields_controls); $flag++)
|
266 |
-
{
|
267 |
-
$show_in_email = $wpdb->get_var
|
268 |
(
|
269 |
$wpdb->prepare
|
270 |
(
|
271 |
-
"SELECT dynamic_settings_value FROM ". contact_bank_dynamic_settings_form(). " WHERE `dynamic_settings_key` = '
|
272 |
-
$
|
273 |
)
|
274 |
);
|
275 |
-
|
276 |
{
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
282 |
}
|
283 |
-
|
284 |
-
?>
|
285 |
-
jQuery("#ux_frm_add_email").validate
|
286 |
-
({
|
287 |
-
rules:
|
288 |
{
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
ux_txt_send_to_field :
|
299 |
-
{
|
300 |
-
required : true
|
301 |
-
},
|
302 |
-
ux_txt_from_name :
|
303 |
{
|
304 |
-
|
305 |
-
|
306 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
307 |
{
|
308 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
309 |
},
|
310 |
-
|
311 |
-
{
|
312 |
-
required : true
|
313 |
-
}
|
314 |
-
},
|
315 |
-
errorPlacement: function(error, element)
|
316 |
-
{
|
317 |
-
if(jQuery(element).attr("id") == "ux_txt_email" || jQuery(element).attr("id") == "ux_txt_name")
|
318 |
{
|
319 |
-
|
320 |
-
|
321 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
322 |
{
|
323 |
-
var
|
324 |
-
|
325 |
-
|
326 |
-
jQuery("
|
327 |
-
jQuery("
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
328 |
}
|
329 |
-
}
|
330 |
-
|
331 |
{
|
332 |
-
var
|
333 |
-
|
334 |
-
jQuery("#email_success_message").css("display","block");
|
335 |
-
jQuery("body,html").animate({
|
336 |
-
scrollTop: jQuery("body,html").position().top}, "slow");
|
337 |
-
if (jQuery("#wp-uxEmailTemplate-wrap").hasClass("tmce-active"))
|
338 |
{
|
339 |
-
|
|
|
340 |
}
|
341 |
else
|
342 |
{
|
343 |
-
|
|
|
344 |
}
|
345 |
-
jQuery.post(ajaxurl, jQuery(form).serialize() +"&form_id="+form_id+"&email_id="+email_id+"&uxEmailTemplate="+uxEmailTemplate+"¶m=insert_email_controls&action=email_contact_form_library", function(data)
|
346 |
-
{
|
347 |
-
setTimeout(function()
|
348 |
-
{
|
349 |
-
jQuery("#email_success_message").css("display","none");
|
350 |
-
window.location.href = "admin.php?page=dashboard";
|
351 |
-
}, 2000);
|
352 |
-
});
|
353 |
-
}
|
354 |
-
});
|
355 |
-
function show_send_to_div()
|
356 |
-
{
|
357 |
-
var ux_rdl_email = jQuery("#ux_rdl_email").prop("checked");
|
358 |
-
if(ux_rdl_email == true)
|
359 |
-
{
|
360 |
-
jQuery("#div_field").css("display","none");
|
361 |
-
jQuery("#div_email").css("display","block");
|
362 |
-
}
|
363 |
-
else
|
364 |
-
{
|
365 |
-
jQuery("#div_email").css("display","none");
|
366 |
-
jQuery("#div_field").css("display","block");
|
367 |
}
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
if(dynamicId != "")
|
374 |
-
{
|
375 |
-
var selected_fields = jQuery("#"+input_id).val();
|
376 |
-
var fields_shortCodes = selected_fields +"[control_"+dynamicId+"]";
|
377 |
-
jQuery("#"+input_id).val(fields_shortCodes);
|
378 |
-
jQuery("#"+ddl_id).val("");
|
379 |
-
}
|
380 |
-
}
|
381 |
-
function append_add_control_shortcode(ddl_id)
|
382 |
-
{
|
383 |
-
var dynamicId = jQuery("#"+ddl_id).val();
|
384 |
-
var label = jQuery("#"+ddl_id+" option:selected").text();
|
385 |
-
if(dynamicId != "")
|
386 |
-
{
|
387 |
-
if (jQuery("#wp-uxEmailTemplate-wrap").hasClass("tmce-active"))
|
388 |
{
|
389 |
-
var selected_fields
|
390 |
-
var fields_shortCodes =
|
391 |
-
|
|
|
392 |
}
|
393 |
-
|
|
|
|
|
|
|
|
|
|
|
394 |
{
|
395 |
-
|
396 |
-
|
397 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
398 |
}
|
399 |
-
jQuery("#"+ddl_id).val("");
|
400 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
401 |
}
|
402 |
-
|
403 |
-
{
|
404 |
-
show_send_to_div();
|
405 |
-
});
|
406 |
-
</script>
|
1 |
<?php
|
2 |
+
global $wpdb,$current_user,$cb_user_role_permission;
|
3 |
+
$cb_role = $wpdb->prefix . "capabilities";
|
4 |
+
$current_user->role = array_keys($current_user->$cb_role);
|
5 |
+
$cb_role = $current_user->role[0];
|
6 |
+
switch($cb_role)
|
7 |
+
{
|
8 |
+
case "administrator":
|
9 |
+
$cb_user_role_permission = "manage_options";
|
10 |
+
break;
|
11 |
+
case "editor":
|
12 |
+
$cb_user_role_permission = "publish_pages";
|
13 |
+
break;
|
14 |
+
case "author":
|
15 |
+
$cb_user_role_permission = "publish_posts";
|
16 |
+
break;
|
17 |
+
case "contributor":
|
18 |
+
$cb_user_role_permission = "edit_posts";
|
19 |
+
break;
|
20 |
+
case "subscriber":
|
21 |
+
$cb_user_role_permission = "read";
|
22 |
+
break;
|
23 |
+
}
|
24 |
+
if (!current_user_can($cb_user_role_permission))
|
25 |
+
{
|
26 |
+
return;
|
27 |
+
}
|
28 |
+
else
|
29 |
+
{
|
30 |
+
$form_id = intval($_REQUEST["form_id"]);
|
31 |
+
isset($_REQUEST["email_id"]) ? $email_id = intval($_REQUEST["email_id"]) : $email_id = "";
|
32 |
+
$fields_email = $wpdb->get_results
|
33 |
(
|
34 |
+
$wpdb->prepare
|
35 |
+
(
|
36 |
+
"SELECT * FROM " .create_control_Table()." WHERE form_id = %d and field_id = %d ORDER BY " .create_control_Table().".sorting_order",
|
37 |
+
$form_id,
|
38 |
+
3
|
39 |
+
)
|
40 |
+
);
|
41 |
+
$email_data = $wpdb->get_row
|
42 |
(
|
43 |
+
$wpdb->prepare
|
44 |
+
(
|
45 |
+
"SELECT * FROM " .contact_bank_email_template_admin(). " where form_id= %d and email_id = %d",
|
46 |
+
$form_id,
|
47 |
+
$email_id
|
48 |
+
)
|
49 |
+
);
|
50 |
+
?>
|
51 |
+
<form id="ux_frm_add_email" class="layout-form">
|
52 |
+
<div id="poststuff" style="width: 99% !important;">
|
53 |
+
<div id="post-body" class="metabox-holder">
|
54 |
+
<div id="postbox-container" class="postbox-container">
|
55 |
+
<div id="advanced" class="meta-box-sortables">
|
56 |
+
<div id="contact_bank_get_started" class="postbox" >
|
57 |
+
<div class="handlediv" data-target="#ux_form_email_div" title="Click to toggle" data-toggle="collapse"><br></div>
|
58 |
+
<h3 class="hndle"><span><?php _e( "Email Confirmation", contact_bank ); ?></span></h3>
|
59 |
+
<div class="inside">
|
60 |
+
<div id="ux_form_email_div" class="contact_bank_layout">
|
61 |
+
<a class="btn btn-info" href="admin.php?page=contact_email"><?php _e("Back to Email Settings", contact_bank);?></a>
|
62 |
+
<input class="btn btn-info layout-span1" type="submit" id="submit_button" name="submit_button" style="float: right;" value="<?php _e("Save", contact_bank); ?>" />
|
63 |
+
<div class="separator-doubled"></div>
|
64 |
+
<div id="email_success_message" class="message green" style="display: none;">
|
65 |
+
<span>
|
66 |
+
<strong><?php _e("Email Settings Saved. Kindly wait for the redirect.", contact_bank); ?></strong>
|
67 |
+
</span>
|
68 |
+
</div>
|
69 |
+
<div class="fluid-layout">
|
70 |
+
<div class="layout-span12">
|
71 |
+
<div class="widget-layout">
|
72 |
+
<div class="widget-layout-title">
|
73 |
+
<h4><?php _e( "Email", contact_bank); ?></h4>
|
74 |
+
</div>
|
75 |
+
<div class="widget-layout-body">
|
76 |
+
<div class="layout-control-group">
|
77 |
+
<label class="layout-control-label"><?php _e( "Name", contact_bank ); ?> :
|
78 |
+
<span class="error">*</span>
|
79 |
+
</label>
|
80 |
+
<div class="layout-controls">
|
81 |
+
<input type="text" class="layout-span12" id="ux_txt_name" name="ux_txt_name" value="<?php echo isset($email_data->name) ? $email_data->name : ""; ?>" placeholder="<?php _e( "Enter Name", contact_bank ); ?>"/>
|
82 |
+
</div>
|
83 |
</div>
|
84 |
</div>
|
85 |
+
<div class="widget-layout-body">
|
86 |
+
<div class="layout-control-group">
|
87 |
+
<label class="layout-control-label"><?php _e( "Send To", contact_bank ); ?> :</label>
|
88 |
+
<?php
|
89 |
+
if(isset($email_data->send_to))
|
|
|
|
|
|
|
90 |
{
|
91 |
+
if($email_data->send_to == "0")
|
92 |
+
{
|
93 |
+
?>
|
94 |
+
<div class="layout-controls" style="padding-top:5px;">
|
95 |
+
<input type="radio" name="ux_rdl_send_to" id="ux_rdl_email" value="0" checked="checked" onclick="show_send_to_div();">
|
96 |
+
<label class="rdl"><?php _e( "Enter Email", contact_bank ); ?></label>
|
97 |
+
<input type="radio" name="ux_rdl_send_to" id="ux_rdl_field" value="1" onclick="show_send_to_div(); ">
|
98 |
+
<label class="rdl"><?php _e( "Select a Field", contact_bank ); ?></label>
|
99 |
+
</div>
|
100 |
+
<?php
|
101 |
+
}
|
102 |
+
else
|
103 |
+
{
|
104 |
+
?>
|
105 |
+
<div class="layout-controls" style="padding-top:5px;">
|
106 |
+
<input type="radio" name="ux_rdl_send_to" id="ux_rdl_email" value="0" onclick="show_send_to_div();">
|
107 |
+
<label class="rdl"><?php _e( "Enter Email", contact_bank ); ?></label>
|
108 |
+
<input type="radio" name="ux_rdl_send_to" id="ux_rdl_field" value="1" checked="checked" onclick="show_send_to_div(); ">
|
109 |
+
<label class="rdl"><?php _e( "Select a Field", contact_bank ); ?></label>
|
110 |
+
</div>
|
111 |
+
<?php
|
112 |
+
}
|
113 |
}
|
114 |
else
|
115 |
{
|
116 |
?>
|
117 |
<div class="layout-controls" style="padding-top:5px;">
|
118 |
+
<input type="radio" name="ux_rdl_send_to" id="ux_rdl_email" value="0" checked="checked" onclick="show_send_to_div();">
|
119 |
<label class="rdl"><?php _e( "Enter Email", contact_bank ); ?></label>
|
120 |
+
<input type="radio" name="ux_rdl_send_to" id="ux_rdl_field" value="1" onclick="show_send_to_div(); ">
|
121 |
<label class="rdl"><?php _e( "Select a Field", contact_bank ); ?></label>
|
122 |
</div>
|
123 |
<?php
|
124 |
}
|
|
|
|
|
|
|
125 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
</div>
|
127 |
</div>
|
128 |
+
<div class="widget-layout-body">
|
129 |
+
<div class="layout-control-group" id="div_email" style="display: none;">
|
130 |
+
<label class="layout-control-label"><?php _e( "Email", contact_bank ); ?> :
|
131 |
+
<span class="error">*</span>
|
132 |
+
</label>
|
133 |
+
<div class="layout-controls">
|
134 |
+
<input type="text" class="layout-span12" id="ux_txt_email" name="ux_txt_email" value="<?php echo isset($email_data->email_to) ? $email_data->email_to : ""; ?>" placeholder="<?php _e( "Enter Email ", contact_bank ); ?>"/>
|
135 |
+
</div>
|
|
|
136 |
</div>
|
137 |
+
<div class="layout-control-group" id="div_field" style="display: none;">
|
138 |
+
<label class="layout-control-label"><?php _e( "Send To Field", contact_bank ); ?> :
|
139 |
+
<span class="error">*</span>
|
140 |
+
</label>
|
141 |
+
<div class="layout-controls">
|
142 |
+
<input type="text" class="layout-span8" id="ux_txt_send_to_field" name="ux_txt_send_to_field" value="<?php echo isset($email_data->email_to) ? $email_data->email_to : ""; ?>" placeholder="<?php _e( "Enter Field ", contact_bank ); ?>"/>
|
143 |
+
<select class="layout-span4" id="ux_ddl_send_to_field" name="ux_ddl_send_to_field" style="float: right;" onchange="append_control_shortcode(this.id,'ux_txt_send_to_field');">
|
144 |
+
<option value=""><?php _e("Select a field", contact_bank);?></option>
|
145 |
+
</select>
|
146 |
+
</div>
|
|
|
|
|
147 |
</div>
|
148 |
</div>
|
149 |
+
<div class="widget-layout-body">
|
150 |
+
<div class="layout-control-group">
|
151 |
+
<label class="layout-control-label"><?php _e( "From Name", contact_bank ); ?> :
|
152 |
+
<span class="error">*</span>
|
153 |
+
</label>
|
154 |
+
<div class="layout-controls">
|
155 |
+
<input type="text" class="layout-span8" id="ux_txt_from_name" name="ux_txt_from_name" value="<?php echo isset($email_data->from_name) ? stripslashes($email_data->from_name) : ""; ?>" placeholder="<?php _e( "Enter from name ", contact_bank ); ?>"/>
|
156 |
+
<select class="layout-span4" id="ux_ddl_from_name" name="ux_ddl_from_name" style=" float: right; " onchange="append_control_shortcode(this.id,'ux_txt_from_name');">
|
157 |
+
<option value=""><?php _e("Select a field", contact_bank);?></option>
|
158 |
+
</select>
|
159 |
+
</div>
|
160 |
</div>
|
161 |
</div>
|
162 |
+
<div class="widget-layout-body">
|
163 |
+
<div class="layout-control-group">
|
164 |
+
<label class="layout-control-label"><?php _e( "From Email", contact_bank ); ?> :
|
165 |
+
<span class="error" >*</span>
|
166 |
+
</label>
|
167 |
+
<div class="layout-controls">
|
168 |
+
<input type="text" class="layout-span8" id="ux_txt_from_email" name="ux_txt_from_email" value="<?php echo isset($email_data->email_from) ? $email_data->email_from : ""; ?>" placeholder="<?php _e( "Enter from email", contact_bank ); ?>"/>
|
169 |
+
<select class="layout-span4" id="ux_ddl_from_email" name="ux_ddl_from_email" style=" float: right;" onchange="append_control_shortcode(this.id,'ux_txt_from_email');">
|
170 |
+
<option value=""><?php _e("Select a field", contact_bank);?></option>
|
171 |
+
</select>
|
172 |
+
</div>
|
173 |
</div>
|
174 |
</div>
|
175 |
+
<div class="widget-layout-body">
|
176 |
+
<div class="layout-control-group">
|
177 |
+
<label class="layout-control-label"><?php _e( "Reply To", contact_bank ); ?> :</label>
|
178 |
+
<div class="layout-controls">
|
179 |
+
<input type="text" class="layout-span8" id="ux_txt_reply_to" name="ux_txt_reply_to" value="<?php echo isset($email_data->reply_to) ? $email_data->reply_to : ""; ?>" placeholder="<?php _e( "Enter Email", contact_bank ); ?>"/>
|
180 |
+
<select class="layout-span4" id="ux_ddl_reply_to" name="ux_ddl_replt_to" style=" float: right;" onchange="append_control_shortcode(this.id,'ux_txt_reply_to');">
|
181 |
+
<option value=""><?php _e("Select a field", contact_bank);?></option>
|
182 |
+
</select>
|
183 |
+
</div>
|
184 |
</div>
|
185 |
</div>
|
186 |
+
<div class="widget-layout-body">
|
187 |
+
<div class="layout-control-group">
|
188 |
+
<label class="layout-control-label"><?php _e( "CC", contact_bank ); ?> :</label>
|
189 |
+
<div class="layout-controls">
|
190 |
+
<input type="text" class="layout-span8" id="ux_txt_cc" name="ux_txt_cc" value="<?php echo isset($email_data->cc) ? $email_data->cc : ""; ?>" placeholder="<?php _e( "Enter CC Email ", contact_bank ); ?>"/>
|
191 |
+
<select class="layout-span4" id="ux_ddl_cc" name="ux_ddl_cc" style=" float: right;" onchange="append_control_shortcode(this.id,'ux_txt_cc');">
|
192 |
+
<option value=""><?php _e("Select a field", contact_bank);?></option>
|
193 |
+
</select>
|
194 |
+
</div>
|
195 |
</div>
|
196 |
</div>
|
197 |
+
<div class="widget-layout-body">
|
198 |
+
<div class="layout-control-group">
|
199 |
+
<label class="layout-control-label"><?php _e( "BCC", contact_bank ); ?> :</label>
|
200 |
+
<div class="layout-controls">
|
201 |
+
<input type="text" class="layout-span8" id="ux_txt_bcc" name="ux_txt_bcc" value="<?php echo isset($email_data->bcc) ? $email_data->bcc : ""; ?>" placeholder="<?php _e( "Enter Bcc Email", contact_bank ); ?>"/>
|
202 |
+
<select class="layout-span4" id="ux_ddl_bcc" name="ux_ddl_bcc" style=" float: right;" onchange="append_control_shortcode(this.id,'ux_txt_bcc');">
|
203 |
+
<option value=""><?php _e("Select a field", contact_bank);?></option>
|
204 |
+
</select>
|
205 |
+
</div>
|
|
|
|
|
206 |
</div>
|
207 |
</div>
|
208 |
+
<div class="widget-layout-body">
|
209 |
+
<div class="layout-control-group">
|
210 |
+
<label class="layout-control-label"><?php _e( "Subject", contact_bank ); ?> :
|
211 |
+
<span class="error">*</span>
|
212 |
+
</label>
|
213 |
+
<div class="layout-controls">
|
214 |
+
<input type="text" class="layout-span8" id="ux_txt_subject" name="ux_txt_subject" value="<?php echo isset($email_data->subject) ? stripslashes($email_data->subject) : ""; ?>" placeholder="<?php _e( "Enter Subject", contact_bank ); ?>"/>
|
215 |
+
<select class="layout-span4" id="ux_ddl_subject" name="ux_ddl_subject" style=" float: right;" onchange="append_control_shortcode(this.id,'ux_txt_subject');">
|
216 |
+
<option value=""><?php _e("Select a field", contact_bank);?></option>
|
|
|
|
|
|
|
|
|
|
|
217 |
</select>
|
218 |
</div>
|
219 |
</div>
|
220 |
</div>
|
221 |
+
<div class="widget-layout-body">
|
222 |
+
<div class="layout-control-group">
|
223 |
+
<label class="layout-control-label"><?php _e( "Message", contact_bank ); ?> :</label>
|
224 |
+
<div class="layout-controls">
|
225 |
+
<div class="layout-span8">
|
226 |
+
<?php
|
227 |
+
$distribution = isset($email_data->body_content) ? stripslashes($email_data->body_content) : "";
|
228 |
+
wp_editor( $distribution, $id ="uxEmailTemplate", array("media_buttons" => true, "textarea_rows" => 8, "tabindex" => 4 ) );
|
229 |
+
?>
|
230 |
+
</div>
|
231 |
+
<div class="layout-span4">
|
232 |
+
<select class="layout-span12" id="ux_ddl_message" name="ux_ddl_message" style=" float: right;" onchange="append_add_control_shortcode(this.id);">
|
233 |
+
<option value=""><?php _e("Insert a Field into Your Form Message", contact_bank);?></option>
|
234 |
+
</select>
|
235 |
+
</div>
|
236 |
+
</div>
|
237 |
+
</div>
|
238 |
+
</div>
|
239 |
</div>
|
240 |
</div>
|
241 |
+
<div class="separator-doubled"></div>
|
242 |
+
<input style="margin-bottom: 10px;" class="btn btn-info layout-span1" type="submit" id="submit_button" name="submit_button" value="<?php _e("Save", contact_bank); ?>" />
|
243 |
</div>
|
|
|
|
|
244 |
</div>
|
245 |
</div>
|
246 |
</div>
|
248 |
</div>
|
249 |
</div>
|
250 |
</div>
|
251 |
+
</form>
|
252 |
+
<script type="text/javascript">
|
253 |
+
<?php
|
254 |
+
$fields_email_controls = $wpdb->get_results
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
255 |
(
|
256 |
$wpdb->prepare
|
257 |
(
|
258 |
+
"SELECT dynamicId, dynamic_settings_value FROM ". contact_bank_dynamic_settings_form(). " JOIN " . create_control_Table(). " ON " . contact_bank_dynamic_settings_form().". dynamicId = ". create_control_Table(). ".control_id WHERE `dynamic_settings_key` = 'cb_admin_label' and field_id = 3 and form_id = %d",
|
259 |
+
$form_id
|
260 |
)
|
261 |
);
|
262 |
+
|
263 |
+
$fields_controls = $wpdb->get_results
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
264 |
(
|
265 |
$wpdb->prepare
|
266 |
(
|
267 |
+
"SELECT dynamicId, dynamic_settings_value FROM ". contact_bank_dynamic_settings_form(). " JOIN " . create_control_Table(). " ON " . contact_bank_dynamic_settings_form().". dynamicId = ". create_control_Table(). ".control_id WHERE `dynamic_settings_key` = 'cb_admin_label' and form_id = %d Order By ".create_control_Table().".sorting_order",
|
268 |
+
$form_id
|
269 |
)
|
270 |
);
|
271 |
+
for($flag = 0; $flag < count($fields_email_controls); $flag++)
|
272 |
{
|
273 |
+
$show_in_email = $wpdb->get_var
|
274 |
+
(
|
275 |
+
$wpdb->prepare
|
276 |
+
(
|
277 |
+
"SELECT dynamic_settings_value FROM ". contact_bank_dynamic_settings_form(). " WHERE `dynamic_settings_key` = 'cb_show_email' and dynamicId = %d",
|
278 |
+
$fields_email_controls[$flag]->dynamicId
|
279 |
+
)
|
280 |
+
);
|
281 |
+
if($show_in_email == "0")
|
282 |
+
{
|
283 |
+
?>
|
284 |
+
jQuery("#ux_ddl_from_email").append(jQuery("<option></option>").attr("value", "<?php echo $fields_email_controls[$flag]->dynamicId; ?>").text("<?php echo $fields_email_controls[$flag]->dynamic_settings_value; ?>"));
|
285 |
+
jQuery("#ux_ddl_send_to_field").append(jQuery("<option></option>").attr("value", "<?php echo $fields_email_controls[$flag]->dynamicId; ?>").text("<?php echo $fields_email_controls[$flag]->dynamic_settings_value; ?>"));
|
286 |
+
jQuery("#ux_ddl_reply_to").append(jQuery("<option></option>").attr("value", "<?php echo $fields_email_controls[$flag]->dynamicId; ?>").text("<?php echo $fields_email_controls[$flag]->dynamic_settings_value; ?>"));
|
287 |
+
jQuery("#ux_ddl_cc").append(jQuery("<option></option>").attr("value", "<?php echo $fields_email_controls[$flag]->dynamicId; ?>").text("<?php echo $fields_email_controls[$flag]->dynamic_settings_value; ?>"));
|
288 |
+
jQuery("#ux_ddl_bcc").append(jQuery("<option></option>").attr("value", "<?php echo $fields_email_controls[$flag]->dynamicId; ?>").text("<?php echo $fields_email_controls[$flag]->dynamic_settings_value; ?>"));
|
289 |
+
<?php
|
290 |
+
}
|
291 |
}
|
292 |
+
for($flag = 0; $flag < count($fields_controls); $flag++)
|
|
|
|
|
|
|
|
|
293 |
{
|
294 |
+
$show_in_email = $wpdb->get_var
|
295 |
+
(
|
296 |
+
$wpdb->prepare
|
297 |
+
(
|
298 |
+
"SELECT dynamic_settings_value FROM ". contact_bank_dynamic_settings_form(). " WHERE `dynamic_settings_key` = 'cb_show_email' and dynamicId = %d",
|
299 |
+
$fields_controls[$flag]->dynamicId
|
300 |
+
)
|
301 |
+
);
|
302 |
+
if($show_in_email == "0")
|
|
|
|
|
|
|
|
|
|
|
303 |
{
|
304 |
+
?>
|
305 |
+
jQuery("#ux_ddl_from_name").append(jQuery("<option></option>").attr("value", "<?php echo $fields_controls[$flag]->dynamicId; ?>").text("<?php echo $fields_controls[$flag]->dynamic_settings_value; ?>"));
|
306 |
+
jQuery("#ux_ddl_subject").append(jQuery("<option></option>").attr("value", "<?php echo $fields_controls[$flag]->dynamicId; ?>").text("<?php echo $fields_controls[$flag]->dynamic_settings_value; ?>"));
|
307 |
+
jQuery("#ux_ddl_message").append(jQuery("<option></option>").attr("value", "<?php echo $fields_controls[$flag]->dynamicId; ?>").text("<?php echo $fields_controls[$flag]->dynamic_settings_value; ?>"));
|
308 |
+
<?php
|
309 |
+
}
|
310 |
+
}
|
311 |
+
?>
|
312 |
+
jQuery("#ux_frm_add_email").validate
|
313 |
+
({
|
314 |
+
rules:
|
315 |
{
|
316 |
+
ux_txt_name :
|
317 |
+
{
|
318 |
+
required : true
|
319 |
+
},
|
320 |
+
ux_txt_email :
|
321 |
+
{
|
322 |
+
required : true,
|
323 |
+
email : true
|
324 |
+
},
|
325 |
+
ux_txt_send_to_field :
|
326 |
+
{
|
327 |
+
required : true
|
328 |
+
},
|
329 |
+
ux_txt_from_name :
|
330 |
+
{
|
331 |
+
required : true
|
332 |
+
},
|
333 |
+
ux_txt_from_email :
|
334 |
+
{
|
335 |
+
required : true
|
336 |
+
},
|
337 |
+
ux_txt_subject :
|
338 |
+
{
|
339 |
+
required : true
|
340 |
+
}
|
341 |
},
|
342 |
+
errorPlacement: function(error, element)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
343 |
{
|
344 |
+
if(jQuery(element).attr("id") == "ux_txt_email" || jQuery(element).attr("id") == "ux_txt_name")
|
345 |
+
{
|
346 |
+
error.insertAfter(element);
|
347 |
+
}
|
348 |
+
else
|
349 |
+
{
|
350 |
+
var ctrl = element.next();
|
351 |
+
if(ctrl != undefined)
|
352 |
+
error.insertAfter(ctrl);
|
353 |
+
jQuery(".error_field").css("float","left");
|
354 |
+
jQuery(".error_field").css("position","static");
|
355 |
+
}
|
356 |
+
},
|
357 |
+
submitHandler: function(form)
|
358 |
{
|
359 |
+
var form_id = "<?php echo $form_id;?>";
|
360 |
+
var email_id = "<?php echo $email_id; ?>";
|
361 |
+
jQuery("#email_success_message").css("display","block");
|
362 |
+
jQuery("body,html").animate({
|
363 |
+
scrollTop: jQuery("body,html").position().top}, "slow");
|
364 |
+
if (jQuery("#wp-uxEmailTemplate-wrap").hasClass("tmce-active"))
|
365 |
+
{
|
366 |
+
var uxEmailTemplate = encodeURIComponent(tinyMCE.get("uxEmailTemplate").getContent());
|
367 |
+
}
|
368 |
+
else
|
369 |
+
{
|
370 |
+
var uxEmailTemplate = encodeURIComponent(jQuery("#uxEmailTemplate").val());
|
371 |
+
}
|
372 |
+
jQuery.post(ajaxurl, jQuery(form).serialize() +"&form_id="+form_id+"&email_id="+email_id+"&uxEmailTemplate="+uxEmailTemplate+"¶m=insert_email_controls&action=email_contact_form_library", function(data)
|
373 |
+
{
|
374 |
+
setTimeout(function()
|
375 |
+
{
|
376 |
+
jQuery("#email_success_message").css("display","none");
|
377 |
+
window.location.href = "admin.php?page=dashboard";
|
378 |
+
}, 2000);
|
379 |
+
});
|
380 |
}
|
381 |
+
});
|
382 |
+
function show_send_to_div()
|
383 |
{
|
384 |
+
var ux_rdl_email = jQuery("#ux_rdl_email").prop("checked");
|
385 |
+
if(ux_rdl_email == true)
|
|
|
|
|
|
|
|
|
386 |
{
|
387 |
+
jQuery("#div_field").css("display","none");
|
388 |
+
jQuery("#div_email").css("display","block");
|
389 |
}
|
390 |
else
|
391 |
{
|
392 |
+
jQuery("#div_email").css("display","none");
|
393 |
+
jQuery("#div_field").css("display","block");
|
394 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
395 |
}
|
396 |
+
function append_control_shortcode(ddl_id,input_id)
|
397 |
+
{
|
398 |
+
var dynamicId = jQuery("#"+ddl_id).val();
|
399 |
+
var label = jQuery("#"+ddl_id+" option:selected").text();
|
400 |
+
if(dynamicId != "")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
401 |
{
|
402 |
+
var selected_fields = jQuery("#"+input_id).val();
|
403 |
+
var fields_shortCodes = selected_fields +"[control_"+dynamicId+"]";
|
404 |
+
jQuery("#"+input_id).val(fields_shortCodes);
|
405 |
+
jQuery("#"+ddl_id).val("");
|
406 |
}
|
407 |
+
}
|
408 |
+
function append_add_control_shortcode(ddl_id)
|
409 |
+
{
|
410 |
+
var dynamicId = jQuery("#"+ddl_id).val();
|
411 |
+
var label = jQuery("#"+ddl_id+" option:selected").text();
|
412 |
+
if(dynamicId != "")
|
413 |
{
|
414 |
+
if (jQuery("#wp-uxEmailTemplate-wrap").hasClass("tmce-active"))
|
415 |
+
{
|
416 |
+
var selected_fields = tinyMCE.get("uxEmailTemplate").getContent();
|
417 |
+
var fields_shortCodes = "<strong>"+selected_fields+label +"</strong> : [control_"+dynamicId+"]<br />";
|
418 |
+
tinyMCE.get("uxEmailTemplate").setContent(fields_shortCodes);
|
419 |
+
}
|
420 |
+
else
|
421 |
+
{
|
422 |
+
var selected_fields = jQuery("#uxEmailTemplate").val();
|
423 |
+
var fields_shortCodes = selected_fields+label +" : [control_"+dynamicId+"]<br />";
|
424 |
+
jQuery("#uxEmailTemplate").val(fields_shortCodes);
|
425 |
+
}
|
426 |
+
jQuery("#"+ddl_id).val("");
|
427 |
}
|
|
|
428 |
}
|
429 |
+
jQuery(document).ready(function()
|
430 |
+
{
|
431 |
+
show_send_to_div();
|
432 |
+
});
|
433 |
+
</script>
|
434 |
+
<?php
|
435 |
}
|
436 |
+
?>
|
|
|
|
|
|
|
|
views/contact-bank-system-report.php
CHANGED
@@ -1,5 +1,32 @@
|
|
1 |
<?php
|
2 |
-
global $wp_version;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
?>
|
4 |
<form id="system_settings" class="layout-form" method="post">
|
5 |
<div id="poststuff" style="width: 99% !important;">
|
@@ -532,3 +559,6 @@ global $wp_version;
|
|
532 |
})
|
533 |
</script>
|
534 |
|
|
|
|
|
|
1 |
<?php
|
2 |
+
global $wpdb,$current_user,$cb_user_role_permission,$wp_version;
|
3 |
+
$cb_role = $wpdb->prefix . "capabilities";
|
4 |
+
$current_user->role = array_keys($current_user->$cb_role);
|
5 |
+
$cb_role = $current_user->role[0];
|
6 |
+
switch($cb_role)
|
7 |
+
{
|
8 |
+
case "administrator":
|
9 |
+
$cb_user_role_permission = "manage_options";
|
10 |
+
break;
|
11 |
+
case "editor":
|
12 |
+
$cb_user_role_permission = "publish_pages";
|
13 |
+
break;
|
14 |
+
case "author":
|
15 |
+
$cb_user_role_permission = "publish_posts";
|
16 |
+
break;
|
17 |
+
case "contributor":
|
18 |
+
$cb_user_role_permission = "edit_posts";
|
19 |
+
break;
|
20 |
+
case "subscriber":
|
21 |
+
$cb_user_role_permission = "read";
|
22 |
+
break;
|
23 |
+
}
|
24 |
+
if (!current_user_can($cb_user_role_permission))
|
25 |
+
{
|
26 |
+
return;
|
27 |
+
}
|
28 |
+
else
|
29 |
+
{
|
30 |
?>
|
31 |
<form id="system_settings" class="layout-form" method="post">
|
32 |
<div id="poststuff" style="width: 99% !important;">
|
559 |
})
|
560 |
</script>
|
561 |
|
562 |
+
<?php
|
563 |
+
}
|
564 |
+
?>
|
views/contact_bank_form_preview.php
CHANGED
@@ -1,486 +1,515 @@
|
|
1 |
<?php
|
2 |
-
global $wpdb;
|
3 |
-
$
|
4 |
-
$
|
5 |
-
$
|
6 |
-
$
|
7 |
-
$form_name = $wpdb->get_var
|
8 |
-
(
|
9 |
-
$wpdb->prepare
|
10 |
-
(
|
11 |
-
"SELECT form_name FROM " .contact_bank_contact_form()." WHERE form_id = %d",
|
12 |
-
$form_id
|
13 |
-
)
|
14 |
-
);
|
15 |
-
$form_fields = $wpdb->get_results
|
16 |
-
(
|
17 |
-
$wpdb->prepare
|
18 |
-
(
|
19 |
-
"SELECT control_id,column_dynamicId,field_id,sorting_order FROM " .create_control_Table()." WHERE form_id = %d ORDER BY sorting_order asc",
|
20 |
-
$form_id
|
21 |
-
)
|
22 |
-
);
|
23 |
-
for($flag=0;$flag<count($form_fields);$flag++)
|
24 |
{
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
$
|
36 |
-
|
37 |
-
|
|
|
|
|
38 |
}
|
39 |
-
|
40 |
-
$form_settings = $wpdb->get_results
|
41 |
-
(
|
42 |
-
$wpdb->prepare
|
43 |
-
(
|
44 |
-
"SELECT form_message_key,form_message_value FROM " .contact_bank_form_settings_Table()." WHERE form_id = %d",
|
45 |
-
$form_id
|
46 |
-
)
|
47 |
-
);
|
48 |
-
for($flag2=0;$flag2<count($form_settings);$flag2++)
|
49 |
{
|
50 |
-
|
51 |
}
|
52 |
-
|
53 |
-
$forms_layout_settings = $wpdb->get_results
|
54 |
-
(
|
55 |
-
$wpdb->prepare
|
56 |
-
(
|
57 |
-
"SELECT form_settings_key,form_settings_value FROM " .contact_bank_layout_settings_Table()." WHERE form_id = %d",
|
58 |
-
$form_id
|
59 |
-
)
|
60 |
-
);
|
61 |
-
for($flag3=0;$flag3<count($forms_layout_settings);$flag3++)
|
62 |
{
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
$
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
)
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
<?php
|
98 |
-
}
|
99 |
-
else
|
100 |
-
{
|
101 |
-
?>
|
102 |
-
font-weight: <?php echo $layout_settings_array[$form_id]["label_setting_font_style"]; ?> !important;
|
103 |
-
<?php
|
104 |
-
}
|
105 |
-
if($layout_settings_array[$form_id]["label_setting_label_position"] == "top")
|
106 |
-
{
|
107 |
-
?>
|
108 |
-
float: none !important;
|
109 |
-
text-align: <?php echo $layout_settings_array[$form_id]["label_setting_font_align_left"] == "0" ? "left" : "right"; ?> !important;
|
110 |
-
<?php
|
111 |
}
|
112 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
?>
|
115 |
-
|
116 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
}
|
118 |
-
|
119 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
?>
|
121 |
-
text-align: <?php echo $layout_settings_array[$form_id]["label_setting_font_align_left"] == "0" ? "left" : "right"; ?> !important;
|
122 |
-
<?php
|
123 |
}
|
124 |
-
|
125 |
-
font-size: <?php echo $layout_settings_array[$form_id]["label_setting_font_size"] . "px"; ?> !important;
|
126 |
-
|
127 |
-
display: <?php echo $layout_settings_array[$form_id]["label_setting_hide_label"] == "0" ? "inline-block" : "none"; ?> !important;
|
128 |
-
direction: <?php echo $layout_settings_array[$form_id]["label_setting_text_direction"]; ?> !important;
|
129 |
-
}
|
130 |
-
.input_control
|
131 |
-
{
|
132 |
-
|
133 |
-
font-family: <?php echo $layout_settings_array[$form_id]["input_field_font_family"]; ?> !important;
|
134 |
-
color: <?php echo $layout_settings_array[$form_id]["input_field_font_color"]; ?> !important;
|
135 |
-
<?php
|
136 |
-
if($layout_settings_array[$form_id]["input_field_font_style"] == "italic")
|
137 |
{
|
138 |
-
|
139 |
-
font-style:
|
140 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
}
|
142 |
-
|
143 |
{
|
144 |
-
|
145 |
-
|
146 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
}
|
148 |
-
|
149 |
-
background-color: <?php echo $layout_settings_array[$form_id]["input_field_clr_bg_color"]; ?> !important;
|
150 |
-
font-size: <?php echo $layout_settings_array[$form_id]["input_field_font_size"] . "px"; ?> !important;
|
151 |
-
border: <?php echo $layout_settings_array[$form_id]["input_field_border_size"] . "px ".$layout_settings_array[$form_id]["input_field_border_style"].$layout_settings_array[$form_id]["input_field_border_color"]; ?> !important;
|
152 |
-
border-radius: <?php echo $layout_settings_array[$form_id]["input_field_border_radius"] . "px"; ?> !important;
|
153 |
-
-moz-border-radius: <?php echo $layout_settings_array[$form_id]["input_field_border_radius"] . "px"; ?> !important;
|
154 |
-
-webkit-border-radius: <?php echo $layout_settings_array[$form_id]["input_field_border_radius"] . "px"; ?> !important;
|
155 |
-
-khtml-border-radius: <?php echo $layout_settings_array[$form_id]["input_field_border_radius"] . "px"; ?> !important;
|
156 |
-
-o-border-radius: <?php echo $layout_settings_array[$form_id]["input_field_border_radius"] . "px"; ?> !important;
|
157 |
-
text-align: <?php echo $layout_settings_array[$form_id]["input_field_rdl_text_align"] == "0" ? "left" : "right"; ?> !important;
|
158 |
-
direction: <?php echo $layout_settings_array[$form_id]["input_field_text_direction"]; ?> !important;
|
159 |
-
}
|
160 |
-
.layout_according_label_position
|
161 |
-
{
|
162 |
-
<?php
|
163 |
-
if($layout_settings_array[$form_id]["label_setting_label_position"] == "top")
|
164 |
-
{
|
165 |
-
?>
|
166 |
-
margin-left: 0px !important;
|
167 |
-
<?php
|
168 |
-
}
|
169 |
-
|
170 |
-
?>
|
171 |
-
}
|
172 |
-
.field_description
|
173 |
-
{
|
174 |
-
font-family: <?php echo $layout_settings_array[$form_id]["label_setting_font_family"]; ?> !important;
|
175 |
-
font-style: italic !important;
|
176 |
-
color: <?php echo $layout_settings_array[$form_id]["label_setting_font_color"]; ?> !important;
|
177 |
-
<?php
|
178 |
-
if($layout_settings_array[$form_id]["label_setting_font_style"] == "italic")
|
179 |
{
|
180 |
-
|
181 |
-
font-style: <?php echo $layout_settings_array[$form_id]["label_setting_font_style"]; ?> !important;
|
182 |
-
<?php
|
183 |
}
|
184 |
-
|
185 |
{
|
186 |
-
|
187 |
-
|
188 |
-
|
|
|
|
|
|
|
|
|
189 |
}
|
190 |
-
|
191 |
-
font-size: <?php echo $layout_settings_array[$form_id]["label_setting_field_size"] . "px"; ?> !important;
|
192 |
-
text-align: <?php echo $layout_settings_array[$form_id]["label_setting_field_align"]; ?> !important;
|
193 |
-
}
|
194 |
-
.btn_submit
|
195 |
-
{
|
196 |
-
<?php
|
197 |
-
if($layout_settings_array[$form_id]["submit_button_font_style"] == "italic")
|
198 |
{
|
199 |
-
|
200 |
-
|
201 |
-
<?php
|
202 |
}
|
203 |
-
|
204 |
{
|
205 |
-
|
206 |
-
|
207 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
208 |
}
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
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 |
-
background-color: <?php echo $layout_settings_array[$form_id]["error_msg_bg_color"]; ?> !important;
|
248 |
-
border: <?php echo "2px Solid ".$layout_settings_array[$form_id]["error_msg_border_color"]; ?> !important;
|
249 |
-
color: <?php echo $layout_settings_array[$form_id]["error_msg_text_color"]; ?> !important;
|
250 |
-
text-align: <?php echo $layout_settings_array[$form_id]["error_msg_rdl_text_align"] == "0" ? "left" : "right"; ?> !important;
|
251 |
-
direction: <?php echo $layout_settings_array[$form_id]["error_msg_text_direction"]; ?> !important;
|
252 |
-
<?php
|
253 |
-
if($layout_settings_array[$form_id]["label_setting_label_position"] == "left")
|
254 |
-
{
|
255 |
-
?>
|
256 |
-
margin-left: 10px;
|
257 |
-
<?php
|
258 |
-
}
|
259 |
-
else if($layout_settings_array[$form_id]["label_setting_label_position"] == "right")
|
260 |
-
{
|
261 |
-
?>
|
262 |
-
margin-right: 10px;
|
263 |
-
<?php
|
264 |
-
}
|
265 |
-
?>
|
266 |
-
}
|
267 |
-
</style>
|
268 |
-
<div class="cb_form_wrapper" id="cb_form_wrapper_<?php echo $form_id; ?>">
|
269 |
-
<form id="ux_frm_front_end_form" method="post" action="#" class="layout-form">
|
270 |
-
<div id="poststuff" style="width: 99% !important;">
|
271 |
-
<div id="post-body" class="metabox-holder">
|
272 |
-
<div id="postbox-container" class="postbox-container">
|
273 |
-
<div id="advanced" class="meta-box-sortables">
|
274 |
-
<div id="contact_bank_get_started" class="postbox" >
|
275 |
-
<div class="handlediv" data-target="#ux_form_email_div" title="Click to toggle" data-toggle="collapse"><br></div>
|
276 |
-
<h3 class="hndle"><span><?php _e( "Form Preview", contact_bank ); ?></span></h3>
|
277 |
-
<div class="inside">
|
278 |
-
<div id="ux_form_email_div" class="contact_bank_layout">
|
279 |
-
<a class="btn btn-info" href="admin.php?page=dashboard"><?php _e("Back to Dashboard", contact_bank);?></a>
|
280 |
-
<div class="separator-doubled"></div>
|
281 |
-
<div id="form_success_message_frontend" class="message success_message" style="display: none;margin-bottom: 10px;">
|
282 |
-
<span class="sucess_message_text" >
|
283 |
-
<strong><?php echo $form_settings_array[$form_id]["success_message"]; ?></strong>
|
284 |
-
</span>
|
285 |
-
</div>
|
286 |
-
<div class="fluid-layout">
|
287 |
-
<div class="layout-span12">
|
288 |
-
<div class="widget-layout">
|
289 |
-
<div class="widget-layout-title">
|
290 |
-
<h4><?php echo $form_name ;?></h4>
|
291 |
-
</div>
|
292 |
-
<div style="margin-left: 15px;" class="layout-control-group">
|
293 |
-
<span class="<?php echo $layout_settings_array[$form_id]["input_field_input_size"]; ?>"><?php echo $form_settings_array[$form_id]["form_description"]; ?></span>
|
294 |
-
</div>
|
295 |
-
<?php
|
296 |
-
for($flag=0;$flag<count($form_fields);$flag++)
|
297 |
-
{
|
298 |
-
?>
|
299 |
-
<div class="widget-layout-body">
|
300 |
-
<div class="layout-control-group">
|
301 |
-
<label class="label_control layout-control-label">
|
302 |
-
<?php
|
303 |
-
echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_label_value"] . " :";
|
304 |
-
if($control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_control_required"] == "1")
|
305 |
-
{
|
306 |
-
?>
|
307 |
-
<span class="error">*</span>
|
308 |
-
<?php
|
309 |
-
}
|
310 |
-
?>
|
311 |
-
</label>
|
312 |
-
<?php
|
313 |
-
switch($form_fields[$flag]->field_id)
|
314 |
-
{
|
315 |
-
|
316 |
-
case 1:
|
317 |
-
?>
|
318 |
-
<div class="layout-controls layout_according_label_position">
|
319 |
-
<input class="hovertip input_control <?php echo $layout_settings_array[$form_id]["input_field_input_size"]; ?>"
|
320 |
-
type="text" id="ux_txt_control_<?php echo $form_fields[$flag]->column_dynamicId; ?>"
|
321 |
-
name="ux_txt_control_<?php echo $form_fields[$flag]->column_dynamicId; ?>"
|
322 |
-
data-original-title="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_tooltip_txt"]; ?>"
|
323 |
-
placeholder="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_default_txt_val"];?>"
|
324 |
-
data-alpha="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_checkbox_alpha_filter"];?>"
|
325 |
-
data-alpha_num="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_ux_checkbox_alpha_num_filter"];?>"
|
326 |
-
data-digit="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_checkbox_digit_filter"];?>"
|
327 |
-
data-strip="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_checkbox_strip_tag_filter"];?>"
|
328 |
-
data-trim="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_checkbox_trim_filter"];?>"
|
329 |
-
|
330 |
-
onfocus="prevent_paste(this.id);"/>
|
331 |
-
<br/>
|
332 |
-
<span class="field_description" id="txt_description_"><?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_description"]; ?></span>
|
333 |
-
</div>
|
334 |
-
<?php
|
335 |
-
break;
|
336 |
-
case 2:
|
337 |
-
?>
|
338 |
-
<div class="layout-controls layout_according_label_position">
|
339 |
-
<textarea class="hovertip input_control <?php echo $layout_settings_array[$form_id]["input_field_input_size"]; ?>" id="ux_textarea_control_<?php echo $form_fields[$flag]->column_dynamicId; ?>"
|
340 |
-
placeholder="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_default_txt_val"];?>" name="ux_textarea_control_<?php echo $form_fields[$flag]->column_dynamicId; ?>"
|
341 |
-
onfocus="prevent_paste(this.id);"
|
342 |
-
data-alpha="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_checkbox_alpha_filter"];?>"
|
343 |
-
data-alpha_num="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_ux_checkbox_alpha_num_filter"];?>"
|
344 |
-
data-digit="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_checkbox_digit_filter"];?>"
|
345 |
-
data-strip="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_checkbox_strip_tag_filter"];?>"
|
346 |
-
data-trim="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_checkbox_trim_filter"];?>"
|
347 |
-
|
348 |
-
data-original-title="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_tooltip_txt"]; ?>"></textarea>
|
349 |
-
<br/>
|
350 |
-
<span class="field_description" id="txt_description_"><?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_description"]; ?></span>
|
351 |
-
</div>
|
352 |
-
<?php
|
353 |
-
break;
|
354 |
-
case 3:
|
355 |
-
?>
|
356 |
-
<div class="layout-controls layout_according_label_position">
|
357 |
-
<input class="hovertip input_control <?php echo $layout_settings_array[$form_id]["input_field_input_size"]; ?>"
|
358 |
-
type="text" id="ux_txt_email_<?php echo $form_fields[$flag]->column_dynamicId; ?>"
|
359 |
-
name="ux_txt_email_<?php echo $form_fields[$flag]->column_dynamicId; ?>"
|
360 |
-
data-original-title="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_tooltip_txt"]; ?>"
|
361 |
-
placeholder="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_default_txt_val"];?>"
|
362 |
-
onfocus="prevent_paste(this.id);"/>
|
363 |
-
<br/>
|
364 |
-
<span class="field_description" id="txt_description_"><?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_description"]; ?></span>
|
365 |
-
</div>
|
366 |
-
<?php
|
367 |
-
break;
|
368 |
-
case 4:
|
369 |
-
$ddl_values = unserialize($control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_dropdown_option_val"]);
|
370 |
-
$ddl_ids = unserialize($control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_dropdown_option_id"]);
|
371 |
-
?>
|
372 |
-
|
373 |
-
<div class="layout-controls layout_according_label_position">
|
374 |
-
<select class="hovertip input_control <?php echo $layout_settings_array[$form_id]["input_field_input_size"]; ?>" type="select" id="ux_select_default_<?php echo $form_fields[$flag]->column_dynamicId; ?>"
|
375 |
-
data-original-title="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_tooltip_txt"]; ?>"
|
376 |
-
name="ux_select_default_<?php echo $form_fields[$flag]->column_dynamicId; ?>">
|
377 |
-
<option value=""><?php _e("Select Option", contact_bank); ?></option>
|
378 |
-
<?php
|
379 |
-
foreach($ddl_ids as $key => $value )
|
380 |
-
{
|
381 |
-
?>
|
382 |
-
<option value="<?php echo $ddl_values[$key]; ?>"><?php echo $ddl_values[$key]; ?></option>
|
383 |
-
<?php
|
384 |
-
}
|
385 |
-
?>
|
386 |
-
</select>
|
387 |
-
</div>
|
388 |
-
<?php
|
389 |
-
break;
|
390 |
-
case 5:
|
391 |
-
$chk_values = unserialize($control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_checkbox_option_val"]);
|
392 |
-
$chk_ids = unserialize($control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_checkbox_option_id"]);
|
393 |
-
if(count($chk_ids) > 0)
|
394 |
-
{
|
395 |
-
?>
|
396 |
-
<div class="layout-controls layout_according_label_position">
|
397 |
-
<?php
|
398 |
-
foreach($chk_ids as $key => $value )
|
399 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
400 |
?>
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
|
|
|
|
|
|
|
|
|
|
410 |
<?php
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
436 |
{
|
437 |
?>
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
446 |
}
|
447 |
-
else
|
448 |
{
|
449 |
?>
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
value ="<?php echo $rdl_values[$key]; ?>" />
|
455 |
-
<label style="margin:0px;vertical-align: middle;" id="rdl_id_<?php echo $value; ?>">
|
456 |
-
<?php echo $rdl_values[$key]; ?>
|
457 |
-
</label>
|
458 |
-
|
459 |
-
|
460 |
-
<?php
|
461 |
}
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
474 |
}
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
?>
|
484 |
</div>
|
485 |
</div>
|
486 |
</div>
|
@@ -489,18 +518,19 @@ $forms_email_settings = $wpdb->get_row
|
|
489 |
</div>
|
490 |
</div>
|
491 |
</div>
|
492 |
-
</
|
493 |
</div>
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
{
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
|
|
|
|
504 |
}
|
505 |
-
|
506 |
-
</script>
|
1 |
<?php
|
2 |
+
global $wpdb,$current_user,$cb_user_role_permission;
|
3 |
+
$cb_role = $wpdb->prefix . "capabilities";
|
4 |
+
$current_user->role = array_keys($current_user->$cb_role);
|
5 |
+
$cb_role = $current_user->role[0];
|
6 |
+
switch($cb_role)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
{
|
8 |
+
case "administrator":
|
9 |
+
$cb_user_role_permission = "manage_options";
|
10 |
+
break;
|
11 |
+
case "editor":
|
12 |
+
$cb_user_role_permission = "publish_pages";
|
13 |
+
break;
|
14 |
+
case "author":
|
15 |
+
$cb_user_role_permission = "publish_posts";
|
16 |
+
break;
|
17 |
+
case "contributor":
|
18 |
+
$cb_user_role_permission = "edit_posts";
|
19 |
+
break;
|
20 |
+
case "subscriber":
|
21 |
+
$cb_user_role_permission = "read";
|
22 |
+
break;
|
23 |
}
|
24 |
+
if (!current_user_can($cb_user_role_permission))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
{
|
26 |
+
return;
|
27 |
}
|
28 |
+
else
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
{
|
30 |
+
$form_id = $_REQUEST['form_id'];
|
31 |
+
$control_settings_array = array();
|
32 |
+
$form_settings_array = array();
|
33 |
+
$layout_settings_array = array();
|
34 |
+
$form_name = $wpdb->get_var
|
35 |
+
(
|
36 |
+
$wpdb->prepare
|
37 |
+
(
|
38 |
+
"SELECT form_name FROM " .contact_bank_contact_form()." WHERE form_id = %d",
|
39 |
+
$form_id
|
40 |
+
)
|
41 |
+
);
|
42 |
+
$form_fields = $wpdb->get_results
|
43 |
+
(
|
44 |
+
$wpdb->prepare
|
45 |
+
(
|
46 |
+
"SELECT control_id,column_dynamicId,field_id,sorting_order FROM " .create_control_Table()." WHERE form_id = %d ORDER BY sorting_order asc",
|
47 |
+
$form_id
|
48 |
+
)
|
49 |
+
);
|
50 |
+
for($flag=0;$flag<count($form_fields);$flag++)
|
51 |
+
{
|
52 |
+
$control_settings = $wpdb->get_results
|
53 |
+
(
|
54 |
+
$wpdb->prepare
|
55 |
+
(
|
56 |
+
"SELECT * FROM " .contact_bank_dynamic_settings_form()." WHERE dynamicId = %d",
|
57 |
+
$form_fields[$flag]->control_id
|
58 |
+
)
|
59 |
+
);
|
60 |
+
for($flag1=0;$flag1<count($control_settings);$flag1++)
|
61 |
+
{
|
62 |
+
$column_dynamicId = $form_fields[$flag]->column_dynamicId;
|
63 |
+
$control_settings_array[$column_dynamicId][$control_settings[$flag1]->dynamic_settings_key] = $control_settings[$flag1]->dynamic_settings_value;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
}
|
65 |
+
}
|
66 |
+
|
67 |
+
$form_settings = $wpdb->get_results
|
68 |
+
(
|
69 |
+
$wpdb->prepare
|
70 |
+
(
|
71 |
+
"SELECT form_message_key,form_message_value FROM " .contact_bank_form_settings_Table()." WHERE form_id = %d",
|
72 |
+
$form_id
|
73 |
+
)
|
74 |
+
);
|
75 |
+
for($flag2=0;$flag2<count($form_settings);$flag2++)
|
76 |
+
{
|
77 |
+
$form_settings_array[$form_id][$form_settings[$flag2]->form_message_key] = $form_settings[$flag2]->form_message_value;
|
78 |
+
}
|
79 |
+
|
80 |
+
$forms_layout_settings = $wpdb->get_results
|
81 |
+
(
|
82 |
+
$wpdb->prepare
|
83 |
+
(
|
84 |
+
"SELECT form_settings_key,form_settings_value FROM " .contact_bank_layout_settings_Table()." WHERE form_id = %d",
|
85 |
+
$form_id
|
86 |
+
)
|
87 |
+
);
|
88 |
+
for($flag3=0;$flag3<count($forms_layout_settings);$flag3++)
|
89 |
+
{
|
90 |
+
$layout_settings_array[$form_id][$forms_layout_settings[$flag3]->form_settings_key] = $forms_layout_settings[$flag3]->form_settings_value;
|
91 |
+
}
|
92 |
+
|
93 |
+
$forms_email_settings = $wpdb->get_row
|
94 |
+
(
|
95 |
+
$wpdb->prepare
|
96 |
+
(
|
97 |
+
"SELECT * FROM " .contact_bank_email_template_admin()." WHERE form_id = %d",
|
98 |
+
$form_id
|
99 |
+
)
|
100 |
+
);
|
101 |
+
?>
|
102 |
+
<style type="text/css">
|
103 |
+
|
104 |
+
.main_container_form
|
105 |
+
{
|
106 |
+
display: inline-block !important;
|
107 |
+
width: 100% !important;
|
108 |
+
}
|
109 |
+
.cb_form_wrapper
|
110 |
+
{
|
111 |
+
overflow: inherit;
|
112 |
+
margin: 10px 0;
|
113 |
+
max-width: 98%
|
114 |
+
}
|
115 |
+
.label_control
|
116 |
+
{
|
117 |
+
font-family: <?php echo $layout_settings_array[$form_id]["label_setting_font_family"]; ?> !important;
|
118 |
+
color: <?php echo $layout_settings_array[$form_id]["label_setting_font_color"]; ?> !important;
|
119 |
+
<?php
|
120 |
+
if($layout_settings_array[$form_id]["label_setting_font_style"] == "italic")
|
121 |
+
{
|
122 |
+
?>
|
123 |
+
font-style: <?php echo $layout_settings_array[$form_id]["label_setting_font_style"]; ?> !important;
|
124 |
+
<?php
|
125 |
+
}
|
126 |
+
else
|
127 |
+
{
|
128 |
+
?>
|
129 |
+
font-weight: <?php echo $layout_settings_array[$form_id]["label_setting_font_style"]; ?> !important;
|
130 |
+
<?php
|
131 |
+
}
|
132 |
+
if($layout_settings_array[$form_id]["label_setting_label_position"] == "top")
|
133 |
+
{
|
134 |
+
?>
|
135 |
+
float: none !important;
|
136 |
+
text-align: <?php echo $layout_settings_array[$form_id]["label_setting_font_align_left"] == "0" ? "left" : "right"; ?> !important;
|
137 |
+
<?php
|
138 |
+
}
|
139 |
+
else if($layout_settings_array[$form_id]["label_setting_label_position"] == "right")
|
140 |
+
{
|
141 |
+
?>
|
142 |
+
text-align: right !important;
|
143 |
+
<?php
|
144 |
+
}
|
145 |
+
else
|
146 |
+
{
|
147 |
+
?>
|
148 |
+
text-align: <?php echo $layout_settings_array[$form_id]["label_setting_font_align_left"] == "0" ? "left" : "right"; ?> !important;
|
149 |
+
<?php
|
150 |
+
}
|
151 |
+
?>
|
152 |
+
font-size: <?php echo $layout_settings_array[$form_id]["label_setting_font_size"] . "px"; ?> !important;
|
153 |
+
|
154 |
+
display: <?php echo $layout_settings_array[$form_id]["label_setting_hide_label"] == "0" ? "inline-block" : "none"; ?> !important;
|
155 |
+
direction: <?php echo $layout_settings_array[$form_id]["label_setting_text_direction"]; ?> !important;
|
156 |
+
}
|
157 |
+
.input_control
|
158 |
{
|
159 |
+
|
160 |
+
font-family: <?php echo $layout_settings_array[$form_id]["input_field_font_family"]; ?> !important;
|
161 |
+
color: <?php echo $layout_settings_array[$form_id]["input_field_font_color"]; ?> !important;
|
162 |
+
<?php
|
163 |
+
if($layout_settings_array[$form_id]["input_field_font_style"] == "italic")
|
164 |
+
{
|
165 |
+
?>
|
166 |
+
font-style: <?php echo $layout_settings_array[$form_id]["input_field_font_style"]; ?> !important;
|
167 |
+
<?php
|
168 |
+
}
|
169 |
+
else
|
170 |
+
{
|
171 |
?>
|
172 |
+
font-weight: <?php echo $layout_settings_array[$form_id]["input_field_font_style"]; ?> !important;
|
173 |
<?php
|
174 |
+
}
|
175 |
+
?>
|
176 |
+
background-color: <?php echo $layout_settings_array[$form_id]["input_field_clr_bg_color"]; ?> !important;
|
177 |
+
font-size: <?php echo $layout_settings_array[$form_id]["input_field_font_size"] . "px"; ?> !important;
|
178 |
+
border: <?php echo $layout_settings_array[$form_id]["input_field_border_size"] . "px ".$layout_settings_array[$form_id]["input_field_border_style"].$layout_settings_array[$form_id]["input_field_border_color"]; ?> !important;
|
179 |
+
border-radius: <?php echo $layout_settings_array[$form_id]["input_field_border_radius"] . "px"; ?> !important;
|
180 |
+
-moz-border-radius: <?php echo $layout_settings_array[$form_id]["input_field_border_radius"] . "px"; ?> !important;
|
181 |
+
-webkit-border-radius: <?php echo $layout_settings_array[$form_id]["input_field_border_radius"] . "px"; ?> !important;
|
182 |
+
-khtml-border-radius: <?php echo $layout_settings_array[$form_id]["input_field_border_radius"] . "px"; ?> !important;
|
183 |
+
-o-border-radius: <?php echo $layout_settings_array[$form_id]["input_field_border_radius"] . "px"; ?> !important;
|
184 |
+
text-align: <?php echo $layout_settings_array[$form_id]["input_field_rdl_text_align"] == "0" ? "left" : "right"; ?> !important;
|
185 |
+
direction: <?php echo $layout_settings_array[$form_id]["input_field_text_direction"]; ?> !important;
|
186 |
}
|
187 |
+
.layout_according_label_position
|
188 |
{
|
189 |
+
<?php
|
190 |
+
if($layout_settings_array[$form_id]["label_setting_label_position"] == "top")
|
191 |
+
{
|
192 |
+
?>
|
193 |
+
margin-left: 0px !important;
|
194 |
+
<?php
|
195 |
+
}
|
196 |
+
|
197 |
?>
|
|
|
|
|
198 |
}
|
199 |
+
.field_description
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
200 |
{
|
201 |
+
font-family: <?php echo $layout_settings_array[$form_id]["label_setting_font_family"]; ?> !important;
|
202 |
+
font-style: italic !important;
|
203 |
+
color: <?php echo $layout_settings_array[$form_id]["label_setting_font_color"]; ?> !important;
|
204 |
+
<?php
|
205 |
+
if($layout_settings_array[$form_id]["label_setting_font_style"] == "italic")
|
206 |
+
{
|
207 |
+
?>
|
208 |
+
font-style: <?php echo $layout_settings_array[$form_id]["label_setting_font_style"]; ?> !important;
|
209 |
+
<?php
|
210 |
+
}
|
211 |
+
else
|
212 |
+
{
|
213 |
+
?>
|
214 |
+
font-weight: <?php echo $layout_settings_array[$form_id]["label_setting_font_style"]; ?> !important;
|
215 |
+
<?php
|
216 |
+
}
|
217 |
+
?>
|
218 |
+
font-size: <?php echo $layout_settings_array[$form_id]["label_setting_field_size"] . "px"; ?> !important;
|
219 |
+
text-align: <?php echo $layout_settings_array[$form_id]["label_setting_field_align"]; ?> !important;
|
220 |
}
|
221 |
+
.btn_submit
|
222 |
{
|
223 |
+
<?php
|
224 |
+
if($layout_settings_array[$form_id]["submit_button_font_style"] == "italic")
|
225 |
+
{
|
226 |
+
?>
|
227 |
+
font-style: <?php echo $layout_settings_array[$form_id]["submit_button_font_style"]; ?> !important;
|
228 |
+
<?php
|
229 |
+
}
|
230 |
+
else
|
231 |
+
{
|
232 |
+
?>
|
233 |
+
font-weight: <?php echo $layout_settings_array[$form_id]["submit_button_font_style"]; ?> !important;
|
234 |
+
<?php
|
235 |
+
}
|
236 |
+
?>
|
237 |
+
font-family: <?php echo $layout_settings_array[$form_id]["submit_button_font_family"]; ?> !important;
|
238 |
+
font-size: <?php echo $layout_settings_array[$form_id]["submit_button_font_size"] . "px"; ?> !important;
|
239 |
+
width: <?php echo $layout_settings_array[$form_id]["submit_button_button_width"] . "px"; ?> !important;
|
240 |
+
background-color: <?php echo $layout_settings_array[$form_id]["submit_button_bg_color"]; ?> !important;
|
241 |
+
color: <?php echo $layout_settings_array[$form_id]["submit_button_text_color"]; ?> !important;
|
242 |
+
border: <?php echo $layout_settings_array[$form_id]["submit_button_border_size"] . "px Solid".$layout_settings_array[$form_id]["submit_button_border_color"]; ?> !important;
|
243 |
+
border-radius: <?php echo $layout_settings_array[$form_id]["submit_button_border_radius"] . "px"; ?> !important;
|
244 |
+
-moz-border-radius: <?php echo $layout_settings_array[$form_id]["submit_button_border_radius"] . "px"; ?> !important;
|
245 |
+
-webkit-border-radius: <?php echo $layout_settings_array[$form_id]["submit_button_border_radius"] . "px"; ?> !important;
|
246 |
+
-khtml-border-radius: <?php echo $layout_settings_array[$form_id]["submit_button_border_radius"] . "px"; ?> !important;
|
247 |
+
-o-border-radius: <?php echo $layout_settings_array[$form_id]["submit_button_border_radius"] . "px"; ?> !important;
|
248 |
+
text-align: <?php echo $layout_settings_array[$form_id]["submit_button_rdl_text_align"] == "0" ? "left" : "right"; ?> !important;
|
249 |
+
direction: <?php echo $layout_settings_array[$form_id]["submit_button_text_direction"]; ?> !important;
|
250 |
}
|
251 |
+
.btn_submit:hover
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
252 |
{
|
253 |
+
background-color: <?php echo $layout_settings_array[$form_id]["submit_button_hover_bg_color"]; ?> !important;
|
|
|
|
|
254 |
}
|
255 |
+
.success_message
|
256 |
{
|
257 |
+
|
258 |
+
background-color: <?php echo $layout_settings_array[$form_id]["success_msg_bg_color"]; ?> !important;
|
259 |
+
border: <?php echo "2px Solid ".$layout_settings_array[$form_id]["success_msg_border_color"]; ?> !important;
|
260 |
+
color: <?php echo $layout_settings_array[$form_id]["success_msg_text_color"]; ?> !important;
|
261 |
+
text-align: <?php echo $layout_settings_array[$form_id]["success_msg_rdl_text_align"] == "0" ? "left" : "right"; ?> !important;
|
262 |
+
direction: <?php echo $layout_settings_array[$form_id]["success_msg_text_direction"]; ?> !important;
|
263 |
+
background: url(<?php echo CONTACT_BK_PLUGIN_URL."/assets/images/icons/icon-succes.png"?>) no-repeat 1px 8px #EBF9E2;
|
264 |
}
|
265 |
+
.sucess_message_text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
266 |
{
|
267 |
+
font-family: <?php echo $layout_settings_array[$form_id]["success_msg_font_family"]; ?> !important;
|
268 |
+
font-size: <?php echo $layout_settings_array[$form_id]["success_msg_font_size"] . "px"; ?> !important;
|
|
|
269 |
}
|
270 |
+
label.error_field
|
271 |
{
|
272 |
+
font-family: <?php echo $layout_settings_array[$form_id]["error_msg_font_family"]; ?> !important;
|
273 |
+
font-size: <?php echo $layout_settings_array[$form_id]["error_msg_font_size"] . "px"; ?> !important;
|
274 |
+
background-color: <?php echo $layout_settings_array[$form_id]["error_msg_bg_color"]; ?> !important;
|
275 |
+
border: <?php echo "2px Solid ".$layout_settings_array[$form_id]["error_msg_border_color"]; ?> !important;
|
276 |
+
color: <?php echo $layout_settings_array[$form_id]["error_msg_text_color"]; ?> !important;
|
277 |
+
text-align: <?php echo $layout_settings_array[$form_id]["error_msg_rdl_text_align"] == "0" ? "left" : "right"; ?> !important;
|
278 |
+
direction: <?php echo $layout_settings_array[$form_id]["error_msg_text_direction"]; ?> !important;
|
279 |
+
<?php
|
280 |
+
if($layout_settings_array[$form_id]["label_setting_label_position"] == "left")
|
281 |
+
{
|
282 |
+
?>
|
283 |
+
margin-left: 10px;
|
284 |
+
<?php
|
285 |
+
}
|
286 |
+
else if($layout_settings_array[$form_id]["label_setting_label_position"] == "right")
|
287 |
+
{
|
288 |
+
?>
|
289 |
+
margin-right: 10px;
|
290 |
+
<?php
|
291 |
+
}
|
292 |
+
?>
|
293 |
}
|
294 |
+
</style>
|
295 |
+
<div class="cb_form_wrapper" id="cb_form_wrapper_<?php echo $form_id; ?>">
|
296 |
+
<form id="ux_frm_front_end_form" method="post" action="#" class="layout-form">
|
297 |
+
<div id="poststuff" style="width: 99% !important;">
|
298 |
+
<div id="post-body" class="metabox-holder">
|
299 |
+
<div id="postbox-container" class="postbox-container">
|
300 |
+
<div id="advanced" class="meta-box-sortables">
|
301 |
+
<div id="contact_bank_get_started" class="postbox" >
|
302 |
+
<div class="handlediv" data-target="#ux_form_email_div" title="Click to toggle" data-toggle="collapse"><br></div>
|
303 |
+
<h3 class="hndle"><span><?php _e( "Form Preview", contact_bank ); ?></span></h3>
|
304 |
+
<div class="inside">
|
305 |
+
<div id="ux_form_email_div" class="contact_bank_layout">
|
306 |
+
<a class="btn btn-info" href="admin.php?page=dashboard"><?php _e("Back to Dashboard", contact_bank);?></a>
|
307 |
+
<div class="separator-doubled"></div>
|
308 |
+
<div id="form_success_message_frontend" class="message success_message" style="display: none;margin-bottom: 10px;">
|
309 |
+
<span class="sucess_message_text" >
|
310 |
+
<strong><?php echo $form_settings_array[$form_id]["success_message"]; ?></strong>
|
311 |
+
</span>
|
312 |
+
</div>
|
313 |
+
<div class="fluid-layout">
|
314 |
+
<div class="layout-span12">
|
315 |
+
<div class="widget-layout">
|
316 |
+
<div class="widget-layout-title">
|
317 |
+
<h4><?php echo $form_name ;?></h4>
|
318 |
+
</div>
|
319 |
+
<div style="margin-left: 15px;" class="layout-control-group">
|
320 |
+
<span class="<?php echo $layout_settings_array[$form_id]["input_field_input_size"]; ?>"><?php echo $form_settings_array[$form_id]["form_description"]; ?></span>
|
321 |
+
</div>
|
322 |
+
<?php
|
323 |
+
for($flag=0;$flag<count($form_fields);$flag++)
|
324 |
+
{
|
325 |
+
?>
|
326 |
+
<div class="widget-layout-body">
|
327 |
+
<div class="layout-control-group">
|
328 |
+
<label class="label_control layout-control-label">
|
329 |
+
<?php
|
330 |
+
echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_label_value"] . " :";
|
331 |
+
if($control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_control_required"] == "1")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
332 |
{
|
333 |
+
?>
|
334 |
+
<span class="error">*</span>
|
335 |
+
<?php
|
336 |
+
}
|
337 |
+
?>
|
338 |
+
</label>
|
339 |
+
<?php
|
340 |
+
switch($form_fields[$flag]->field_id)
|
341 |
+
{
|
342 |
+
|
343 |
+
case 1:
|
344 |
+
?>
|
345 |
+
<div class="layout-controls layout_according_label_position">
|
346 |
+
<input class="hovertip input_control <?php echo $layout_settings_array[$form_id]["input_field_input_size"]; ?>"
|
347 |
+
type="text" id="ux_txt_control_<?php echo $form_fields[$flag]->column_dynamicId; ?>"
|
348 |
+
name="ux_txt_control_<?php echo $form_fields[$flag]->column_dynamicId; ?>"
|
349 |
+
data-original-title="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_tooltip_txt"]; ?>"
|
350 |
+
placeholder="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_default_txt_val"];?>"
|
351 |
+
data-alpha="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_checkbox_alpha_filter"];?>"
|
352 |
+
data-alpha_num="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_ux_checkbox_alpha_num_filter"];?>"
|
353 |
+
data-digit="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_checkbox_digit_filter"];?>"
|
354 |
+
data-strip="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_checkbox_strip_tag_filter"];?>"
|
355 |
+
data-trim="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_checkbox_trim_filter"];?>"
|
356 |
+
|
357 |
+
onfocus="prevent_paste(this.id);"/>
|
358 |
+
<br/>
|
359 |
+
<span class="field_description" id="txt_description_"><?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_description"]; ?></span>
|
360 |
+
</div>
|
361 |
+
<?php
|
362 |
+
break;
|
363 |
+
case 2:
|
364 |
?>
|
365 |
+
<div class="layout-controls layout_according_label_position">
|
366 |
+
<textarea class="hovertip input_control <?php echo $layout_settings_array[$form_id]["input_field_input_size"]; ?>" id="ux_textarea_control_<?php echo $form_fields[$flag]->column_dynamicId; ?>"
|
367 |
+
placeholder="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_default_txt_val"];?>" name="ux_textarea_control_<?php echo $form_fields[$flag]->column_dynamicId; ?>"
|
368 |
+
onfocus="prevent_paste(this.id);"
|
369 |
+
data-alpha="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_checkbox_alpha_filter"];?>"
|
370 |
+
data-alpha_num="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_ux_checkbox_alpha_num_filter"];?>"
|
371 |
+
data-digit="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_checkbox_digit_filter"];?>"
|
372 |
+
data-strip="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_checkbox_strip_tag_filter"];?>"
|
373 |
+
data-trim="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_checkbox_trim_filter"];?>"
|
374 |
+
|
375 |
+
data-original-title="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_tooltip_txt"]; ?>"></textarea>
|
376 |
+
<br/>
|
377 |
+
<span class="field_description" id="txt_description_"><?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_description"]; ?></span>
|
378 |
+
</div>
|
379 |
<?php
|
380 |
+
break;
|
381 |
+
case 3:
|
382 |
+
?>
|
383 |
+
<div class="layout-controls layout_according_label_position">
|
384 |
+
<input class="hovertip input_control <?php echo $layout_settings_array[$form_id]["input_field_input_size"]; ?>"
|
385 |
+
type="text" id="ux_txt_email_<?php echo $form_fields[$flag]->column_dynamicId; ?>"
|
386 |
+
name="ux_txt_email_<?php echo $form_fields[$flag]->column_dynamicId; ?>"
|
387 |
+
data-original-title="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_tooltip_txt"]; ?>"
|
388 |
+
placeholder="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_default_txt_val"];?>"
|
389 |
+
onfocus="prevent_paste(this.id);"/>
|
390 |
+
<br/>
|
391 |
+
<span class="field_description" id="txt_description_"><?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_description"]; ?></span>
|
392 |
+
</div>
|
393 |
+
<?php
|
394 |
+
break;
|
395 |
+
case 4:
|
396 |
+
$ddl_values = unserialize($control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_dropdown_option_val"]);
|
397 |
+
$ddl_ids = unserialize($control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_dropdown_option_id"]);
|
398 |
+
?>
|
399 |
+
|
400 |
+
<div class="layout-controls layout_according_label_position">
|
401 |
+
<select class="hovertip input_control <?php echo $layout_settings_array[$form_id]["input_field_input_size"]; ?>" type="select" id="ux_select_default_<?php echo $form_fields[$flag]->column_dynamicId; ?>"
|
402 |
+
data-original-title="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_tooltip_txt"]; ?>"
|
403 |
+
name="ux_select_default_<?php echo $form_fields[$flag]->column_dynamicId; ?>">
|
404 |
+
<option value=""><?php _e("Select Option", contact_bank); ?></option>
|
405 |
+
<?php
|
406 |
+
foreach($ddl_ids as $key => $value )
|
407 |
+
{
|
408 |
+
?>
|
409 |
+
<option value="<?php echo $ddl_values[$key]; ?>"><?php echo $ddl_values[$key]; ?></option>
|
410 |
+
<?php
|
411 |
+
}
|
412 |
+
?>
|
413 |
+
</select>
|
414 |
+
</div>
|
415 |
+
<?php
|
416 |
+
break;
|
417 |
+
case 5:
|
418 |
+
$chk_values = unserialize($control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_checkbox_option_val"]);
|
419 |
+
$chk_ids = unserialize($control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_checkbox_option_id"]);
|
420 |
+
if(count($chk_ids) > 0)
|
421 |
{
|
422 |
?>
|
423 |
+
<div class="layout-controls layout_according_label_position">
|
424 |
+
<?php
|
425 |
+
foreach($chk_ids as $key => $value )
|
426 |
+
{
|
427 |
+
?>
|
428 |
+
|
429 |
+
<input type="checkbox" class="hovertip" id="ux_chk_control_<?php echo $value; ?>"
|
430 |
+
data-original-title="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_tooltip_txt"]; ?>"
|
431 |
+
name="<?php echo $form_fields[$flag]->column_dynamicId; ?>_chk[]"
|
432 |
+
value ="<?php echo $chk_values[$key]; ?>" />
|
433 |
+
<label style="margin:0px;vertical-align: middle;" id="chk_id_<?php echo $value; ?>">
|
434 |
+
<?php echo $chk_values[$key]; ?>
|
435 |
+
</label>
|
436 |
+
|
437 |
+
<?php
|
438 |
+
}
|
439 |
+
?>
|
440 |
+
</div>
|
441 |
+
<?php
|
442 |
}
|
443 |
+
else
|
444 |
{
|
445 |
?>
|
446 |
+
<div class="layout-controls layout_according_label_position">
|
447 |
+
<input type="checkbox" id="ux_chk_control_" />
|
448 |
+
</div>
|
449 |
+
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
450 |
}
|
451 |
+
break;
|
452 |
+
case 6:
|
453 |
+
$rdl_values = unserialize($control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_radio_option_val"]);
|
454 |
+
$rdl_ids = unserialize($control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_radio_option_id"]);
|
455 |
+
if(count($rdl_ids) > 0)
|
456 |
+
{
|
457 |
+
?>
|
458 |
+
<div class="layout-controls layout_according_label_position">
|
459 |
+
<?php
|
460 |
+
foreach($rdl_ids as $key => $value )
|
461 |
+
{
|
462 |
+
if($layout_settings_array[$form_id]["input_field_rdl_multiple_row"] == "0")
|
463 |
+
{
|
464 |
+
?>
|
465 |
+
<input type="radio" class="hovertip" id="ux_rdl_control_<?php echo $value; ?>"
|
466 |
+
name="<?php echo $form_fields[$flag]->column_dynamicId; ?>_rdl"
|
467 |
+
data-original-title="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_tooltip_txt"]; ?>"
|
468 |
+
value ="<?php echo $rdl_values[$key]; ?>" />
|
469 |
+
<label style="margin:0px;vertical-align: middle;" id="rdl_id_<?php echo $value; ?>">
|
470 |
+
<?php echo $rdl_values[$key]; ?>
|
471 |
+
</label><br>
|
472 |
+
<?php
|
473 |
+
}
|
474 |
+
else
|
475 |
+
{
|
476 |
+
?>
|
477 |
+
|
478 |
+
<input type="radio" class="hovertip" id="ux_rdl_control_<?php echo $value; ?>"
|
479 |
+
name="<?php echo $form_fields[$flag]->column_dynamicId; ?>_rdl"
|
480 |
+
data-original-title="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_tooltip_txt"]; ?>"
|
481 |
+
value ="<?php echo $rdl_values[$key]; ?>" />
|
482 |
+
<label style="margin:0px;vertical-align: middle;" id="rdl_id_<?php echo $value; ?>">
|
483 |
+
<?php echo $rdl_values[$key]; ?>
|
484 |
+
</label>
|
485 |
+
|
486 |
+
|
487 |
+
<?php
|
488 |
+
}
|
489 |
+
}
|
490 |
+
?>
|
491 |
+
</div>
|
492 |
+
<?php
|
493 |
+
}
|
494 |
+
else
|
495 |
+
{
|
496 |
+
?>
|
497 |
+
<div class="layout-controls layout_according_label_position">
|
498 |
+
<input type="radio" id="ux_rdl_control_" />
|
499 |
+
</div>
|
500 |
+
<?php
|
501 |
+
}
|
502 |
+
|
503 |
+
break;
|
504 |
}
|
505 |
+
?>
|
506 |
+
</div>
|
507 |
+
</div>
|
508 |
+
<?php
|
509 |
+
}
|
510 |
+
?>
|
511 |
+
</div>
|
512 |
+
</div>
|
|
|
513 |
</div>
|
514 |
</div>
|
515 |
</div>
|
518 |
</div>
|
519 |
</div>
|
520 |
</div>
|
521 |
+
</form>
|
522 |
</div>
|
523 |
+
|
524 |
+
<script type="text/javascript">
|
525 |
+
function prevent_paste(control_id)
|
526 |
+
{
|
527 |
+
jQuery("#"+control_id).live("paste",function(e)
|
528 |
+
{
|
529 |
+
e.preventDefault();
|
530 |
+
});
|
531 |
+
}
|
532 |
+
|
533 |
+
</script>
|
534 |
+
<?php
|
535 |
}
|
536 |
+
?>
|
|
views/contact_bank_layout_settings.php
CHANGED
@@ -1,3 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<form id="ux_frm_form_settings" class="layout-form">
|
2 |
<div id="poststuff" style="width: 99% !important;">
|
3 |
<div id="post-body" class="metabox-holder">
|
@@ -1137,4 +1167,7 @@ jQuery(document).ready(function()
|
|
1137 |
select_form_layout();
|
1138 |
}
|
1139 |
});
|
1140 |
-
</script>
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
global $wpdb,$current_user,$cb_user_role_permission;
|
3 |
+
$cb_role = $wpdb->prefix . "capabilities";
|
4 |
+
$current_user->role = array_keys($current_user->$cb_role);
|
5 |
+
$cb_role = $current_user->role[0];
|
6 |
+
switch($cb_role)
|
7 |
+
{
|
8 |
+
case "administrator":
|
9 |
+
$cb_user_role_permission = "manage_options";
|
10 |
+
break;
|
11 |
+
case "editor":
|
12 |
+
$cb_user_role_permission = "publish_pages";
|
13 |
+
break;
|
14 |
+
case "author":
|
15 |
+
$cb_user_role_permission = "publish_posts";
|
16 |
+
break;
|
17 |
+
case "contributor":
|
18 |
+
$cb_user_role_permission = "edit_posts";
|
19 |
+
break;
|
20 |
+
case "subscriber":
|
21 |
+
$cb_user_role_permission = "read";
|
22 |
+
break;
|
23 |
+
}
|
24 |
+
if (!current_user_can($cb_user_role_permission))
|
25 |
+
{
|
26 |
+
return;
|
27 |
+
}
|
28 |
+
else
|
29 |
+
{
|
30 |
+
?>
|
31 |
<form id="ux_frm_form_settings" class="layout-form">
|
32 |
<div id="poststuff" style="width: 99% !important;">
|
33 |
<div id="post-body" class="metabox-holder">
|
1167 |
select_form_layout();
|
1168 |
}
|
1169 |
});
|
1170 |
+
</script>
|
1171 |
+
<?php
|
1172 |
+
}
|
1173 |
+
?>
|
views/contact_bank_pro_version.php
CHANGED
@@ -1,382 +1,412 @@
|
|
1 |
<?php
|
2 |
-
|
|
|
|
|
|
|
|
|
3 |
{
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
{
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
|
|
|
|
|
|
15 |
}
|
16 |
-
|
17 |
-
|
18 |
-
<
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
</
|
92 |
-
</
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
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 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
</
|
154 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
</div>
|
156 |
-
|
157 |
-
<div class="column_ribbon ribbon_style2_best"></div>
|
158 |
-
<ul>
|
159 |
-
<li style="text-align: center;" class="css3_grid_row_0 header_row_1 align_center css3_grid_row_0_responsive">
|
160 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h2 class="col1">Pro</h2></span></span>
|
161 |
-
</li>
|
162 |
-
<li style="text-align: center;" class="css3_grid_row_1 header_row_2 css3_grid_row_1_responsive align_center">
|
163 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h1 class="col1"> £<span>18</span></h1><h3 class="col1">one time</h3></span></span>
|
164 |
-
</li>
|
165 |
-
<li style="text-align: center;" class="css3_grid_row_2 row_style_3 css3_grid_row_2_responsive align_center">
|
166 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>1</span></span></span>
|
167 |
-
</li>
|
168 |
-
<li style="text-align: center;" class="css3_grid_row_3 row_style_1 css3_grid_row_3_responsive align_center">
|
169 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
170 |
-
</li>
|
171 |
-
<li style="text-align: center;" class="css3_grid_row_4 row_style_3 css3_grid_row_4_responsive align_center">
|
172 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>1 Month </span></span></span>
|
173 |
-
</li>
|
174 |
-
<li style="text-align: center;" class="css3_grid_row_5 row_style_1 css3_grid_row_5_responsive align_center">
|
175 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
176 |
-
</li>
|
177 |
-
<li style="text-align: center;" class="css3_grid_row_6 row_style_3 css3_grid_row_6_responsive align_center">
|
178 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>Unlimited</span></span></span>
|
179 |
-
</li>
|
180 |
-
<li style="text-align: center;" class="css3_grid_row_7 row_style_1 css3_grid_row_7_responsive align_center">
|
181 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
182 |
-
</li>
|
183 |
-
<li style="text-align: center;" class="css3_grid_row_8 row_style_3 css3_grid_row_8_responsive align_center">
|
184 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
185 |
-
</li>
|
186 |
-
<li style="text-align: center;" class="css3_grid_row_9 row_style_1 css3_grid_row_9_responsive align_center">
|
187 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
188 |
-
</li>
|
189 |
-
<li style="text-align: center;" class="css3_grid_row_10 row_style_3 css3_grid_row_10_responsive align_center">
|
190 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
191 |
-
</li>
|
192 |
-
<li style="text-align: center;" class="css3_grid_row_11 row_style_1 css3_grid_row_11_responsive align_center">
|
193 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
194 |
-
</li>
|
195 |
-
<li style="text-align: center;" class="css3_grid_row_12 row_style_3 css3_grid_row_12_responsive align_center">
|
196 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
197 |
-
</li>
|
198 |
-
<li style="text-align: center;" class="css3_grid_row_13 row_style_1 css3_grid_row_13_responsive align_center">
|
199 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
200 |
-
</li>
|
201 |
-
<li style="text-align: center;" class="css3_grid_row_14 row_style_3 css3_grid_row_14_responsive align_center">
|
202 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
203 |
-
</li>
|
204 |
-
<li style="text-align: center;" class="css3_grid_row_15 row_style_1 css3_grid_row_15_responsive align_center">
|
205 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
206 |
-
</li>
|
207 |
-
<li style="text-align: center;" class="css3_grid_row_16 row_style_3 css3_grid_row_16_responsive align_center">
|
208 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
209 |
-
</li>
|
210 |
-
<li style="text-align: center;" class="css3_grid_row_17 row_style_1 css3_grid_row_17_responsive align_center">
|
211 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
212 |
-
</li>
|
213 |
-
<li style="text-align: center;" class="css3_grid_row_18 footer_row css3_grid_row_18_responsive">
|
214 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><a href="http://tech-banker.com/product/contact-bank-pro-edition/" target="_blank" class="sign_up sign_up_yellow radius3">Order Now!</a></span></span>
|
215 |
-
</li>
|
216 |
-
</ul>
|
217 |
-
</div>
|
218 |
-
<div class="column_4 column_4_responsive">
|
219 |
-
<div class="column_ribbon ribbon_style1_off30"></div>
|
220 |
-
<ul>
|
221 |
-
<li class="css3_grid_row_0 header_row_1 align_center css3_grid_row_0_responsive">
|
222 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h2 class="col1">Developer</h2></span></span>
|
223 |
-
</li>
|
224 |
-
<li class="css3_grid_row_1 header_row_2 css3_grid_row_1_responsive align_center">
|
225 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h1 class="col1"> £<span>63</span></h1><h3 class="col1">one time</h3></span></span>
|
226 |
-
</li>
|
227 |
-
<li class="css3_grid_row_2 row_style_4 css3_grid_row_2_responsive align_center">
|
228 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>5</span></span></span>
|
229 |
-
</li>
|
230 |
-
<li class="css3_grid_row_3 row_style_2 css3_grid_row_3_responsive align_center">
|
231 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
232 |
-
</li>
|
233 |
-
<li class="css3_grid_row_4 row_style_4 css3_grid_row_4_responsive align_center">
|
234 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>1 Year </span></span></span>
|
235 |
-
</li>
|
236 |
-
<li class="css3_grid_row_5 row_style_2 css3_grid_row_5_responsive align_center">
|
237 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
238 |
-
</li>
|
239 |
-
<li class="css3_grid_row_6 row_style_4 css3_grid_row_6_responsive align_center">
|
240 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>Unlimited </span></span></span>
|
241 |
-
</li>
|
242 |
-
<li class="css3_grid_row_7 row_style_2 css3_grid_row_7_responsive align_center">
|
243 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
244 |
-
</li>
|
245 |
-
<li class="css3_grid_row_8 row_style_4 css3_grid_row_8_responsive align_center">
|
246 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
247 |
-
</li>
|
248 |
-
<li class="css3_grid_row_9 row_style_2 css3_grid_row_9_responsive align_center">
|
249 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
250 |
-
</li>
|
251 |
-
<li class="css3_grid_row_10 row_style_4 css3_grid_row_10_responsive align_center">
|
252 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
253 |
-
</li>
|
254 |
-
<li class="css3_grid_row_11 row_style_2 css3_grid_row_11_responsive align_center">
|
255 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
256 |
-
</li>
|
257 |
-
<li class="css3_grid_row_12 row_style_4 css3_grid_row_12_responsive align_center">
|
258 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
259 |
-
</li>
|
260 |
-
<li class="css3_grid_row_13 row_style_2 css3_grid_row_13_responsive align_center">
|
261 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
262 |
-
</li>
|
263 |
-
<li class="css3_grid_row_14 row_style_4 css3_grid_row_14_responsive align_center">
|
264 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
265 |
-
</li>
|
266 |
-
<li class="css3_grid_row_15 row_style_2 css3_grid_row_15_responsive align_center">
|
267 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
268 |
-
</li>
|
269 |
-
<li class="css3_grid_row_16 row_style_4 css3_grid_row_16_responsive align_center">
|
270 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
271 |
-
</li>
|
272 |
-
<li class="css3_grid_row_17 row_style_2 css3_grid_row_17_responsive align_center">
|
273 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
274 |
-
</li>
|
275 |
-
<li class="css3_grid_row_18 footer_row css3_grid_row_18_responsive">
|
276 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><a href="http://tech-banker.com/product/contact-bank-developer-edition/" target="_blank" class="sign_up sign_up_yellow radius3">Order Now!</a></span></span>
|
277 |
-
</li>
|
278 |
-
</ul>
|
279 |
-
</div>
|
280 |
-
<div class="column_1 column_5_responsive">
|
281 |
-
<div class="column_ribbon ribbon_style1_off35"></div>
|
282 |
-
<ul>
|
283 |
-
<li class="css3_grid_row_0 header_row_1 align_center css3_grid_row_0_responsive radius5_topright">
|
284 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h2 class="col1">Extended</h2></span></span>
|
285 |
-
</li>
|
286 |
-
<li class="css3_grid_row_1 header_row_2 css3_grid_row_1_responsive align_center">
|
287 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h1 class="col1"> £<span>549</span></h1><h3 class="col1">one time</h3></span></span>
|
288 |
-
</li>
|
289 |
-
<li class="css3_grid_row_2 row_style_3 css3_grid_row_2_responsive align_center">
|
290 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>50</span></span></span>
|
291 |
-
</li>
|
292 |
-
<li class="css3_grid_row_3 row_style_1 css3_grid_row_3_responsive align_center">
|
293 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
294 |
-
</li>
|
295 |
-
<li class="css3_grid_row_4 row_style_3 css3_grid_row_4_responsive align_center">
|
296 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
297 |
-
</li>
|
298 |
-
<li class="css3_grid_row_5 row_style_1 css3_grid_row_5_responsive align_center">
|
299 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
300 |
-
</li>
|
301 |
-
<li class="css3_grid_row_6 row_style_3 css3_grid_row_6_responsive align_center">
|
302 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
303 |
-
</li>
|
304 |
-
<li class="css3_grid_row_7 row_style_1 css3_grid_row_7_responsive align_center">
|
305 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
306 |
-
</li>
|
307 |
-
<li class="css3_grid_row_8 row_style_3 css3_grid_row_8_responsive align_center">
|
308 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
309 |
-
</li>
|
310 |
-
<li class="css3_grid_row_9 row_style_1 css3_grid_row_9_responsive align_center">
|
311 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
312 |
-
</li>
|
313 |
-
<li class="css3_grid_row_10 row_style_3 css3_grid_row_10_responsive align_center">
|
314 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
315 |
-
</li>
|
316 |
-
<li class="css3_grid_row_11 row_style_1 css3_grid_row_11_responsive align_center">
|
317 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
318 |
-
</li>
|
319 |
-
<li class="css3_grid_row_12 row_style_3 css3_grid_row_12_responsive align_center">
|
320 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
321 |
-
</li>
|
322 |
-
<li class="css3_grid_row_13 row_style_1 css3_grid_row_13_responsive align_center">
|
323 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
324 |
-
</li>
|
325 |
-
<li class="css3_grid_row_14 row_style_3 css3_grid_row_14_responsive align_center">
|
326 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
327 |
-
</li>
|
328 |
-
<li class="css3_grid_row_15 row_style_1 css3_grid_row_15_responsive align_center">
|
329 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
330 |
-
</li>
|
331 |
-
<li class="css3_grid_row_16 row_style_3 css3_grid_row_16_responsive align_center">
|
332 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
333 |
-
</li>
|
334 |
-
<li class="css3_grid_row_17 row_style_1 css3_grid_row_17_responsive align_center">
|
335 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
336 |
-
</li>
|
337 |
-
<li class="css3_grid_row_18 footer_row css3_grid_row_18_responsive">
|
338 |
-
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><a href="http://tech-banker.com/product/contact-bank-extended-edition/" target="_blank" class="sign_up sign_up_yellow radius3">Order Now!</a></span></span>
|
339 |
-
</li>
|
340 |
-
</ul>
|
341 |
-
</div>
|
342 |
-
</div>
|
343 |
</div>
|
344 |
</div>
|
345 |
-
</div>
|
346 |
</div>
|
347 |
</div>
|
348 |
</div>
|
349 |
</div>
|
350 |
</div>
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
</
|
374 |
</div>
|
375 |
</div>
|
376 |
</div>
|
377 |
</div>
|
378 |
</div>
|
379 |
</div>
|
380 |
-
</
|
381 |
-
|
382 |
-
|
|
1 |
<?php
|
2 |
+
global $wpdb,$current_user,$cb_user_role_permission;
|
3 |
+
$cb_role = $wpdb->prefix . "capabilities";
|
4 |
+
$current_user->role = array_keys($current_user->$cb_role);
|
5 |
+
$cb_role = $current_user->role[0];
|
6 |
+
switch($cb_role)
|
7 |
{
|
8 |
+
case "administrator":
|
9 |
+
$cb_user_role_permission = "manage_options";
|
10 |
+
break;
|
11 |
+
case "editor":
|
12 |
+
$cb_user_role_permission = "publish_pages";
|
13 |
+
break;
|
14 |
+
case "author":
|
15 |
+
$cb_user_role_permission = "publish_posts";
|
16 |
+
break;
|
17 |
+
case "contributor":
|
18 |
+
$cb_user_role_permission = "edit_posts";
|
19 |
+
break;
|
20 |
+
case "subscriber":
|
21 |
+
$cb_user_role_permission = "read";
|
22 |
+
break;
|
23 |
+
}
|
24 |
+
if (!current_user_can($cb_user_role_permission))
|
25 |
+
{
|
26 |
+
return;
|
27 |
+
}
|
28 |
+
else
|
29 |
+
{
|
30 |
+
if(isset($_REQUEST["msg"]))
|
31 |
{
|
32 |
+
if(esc_attr($_REQUEST["msg"]) == "no")
|
33 |
+
{
|
34 |
+
update_option("contact-bank-banner", "no");
|
35 |
+
?>
|
36 |
+
<style type="text/css" >
|
37 |
+
#ux_buy_pro
|
38 |
+
{
|
39 |
+
display:none;
|
40 |
+
}
|
41 |
+
</style>
|
42 |
+
<?php
|
43 |
+
}
|
44 |
}
|
45 |
+
?>
|
46 |
+
<form id="contact_bank_pricing" class="layout-form">
|
47 |
+
<div id="poststuff" style="width: 99% !important;">
|
48 |
+
<div id="post-body" class="metabox-holder columns-2">
|
49 |
+
<div id="postbox-container-2" class="postbox-container">
|
50 |
+
<div id="advanced" class="meta-box-sortables">
|
51 |
+
<div id="contact_bank_get_started" class="postbox" >
|
52 |
+
<div class="handlediv" data-target="#ux_contact_bank_pricing" title="Click to toggle" data-toggle="collapse"><br></div>
|
53 |
+
<h3 class="hndle"><span><?php _e("Contact Bank Pricing", contact_bank); ?></span></h3>
|
54 |
+
<div class="inside">
|
55 |
+
<div id="ux_contact_bank_pricing" class="contact_bank_layout">
|
56 |
+
<div class="wpb_row wf-container" style="margin: 15px 0 15px 0;">
|
57 |
+
<div class="wf-cell wf-span-12 wpb_column column_container ">
|
58 |
+
<div class="wpb_text_column wpb_content_element ">
|
59 |
+
<div class="wpb_wrapper">
|
60 |
+
<div id="contact_pricing" class="p_table_responsive p_table_1 p_table_1_11 css3_grid_clearfix p_table_hover_disabled">
|
61 |
+
<div class="caption_column column_0_responsive">
|
62 |
+
<ul>
|
63 |
+
<li style="text-align: left;" class="css3_grid_row_0 header_row_1 align_center css3_grid_row_0_responsive radius5_topleft">
|
64 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"></span></span>
|
65 |
+
</li>
|
66 |
+
<li style="text-align: left;" class="css3_grid_row_1 header_row_2 css3_grid_row_1_responsive">
|
67 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h2 class="caption">Choose <span>your</span> Plan</h2></span></span>
|
68 |
+
</li>
|
69 |
+
<li style="text-align: left;" class="css3_grid_row_2 row_style_4 css3_grid_row_2_responsive">
|
70 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Number of websites that can use the plugin on purchase of a License.</span>Domains per License</span></span></span></span>
|
71 |
+
</li>
|
72 |
+
<li style="text-align: left;" class="css3_grid_row_3 row_style_2 css3_grid_row_3_responsive">
|
73 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Automatic Plugin Update Notification with New Features, Bug Fixing and much more....</span><strong>Plugin Updates</strong></span></span></span></span>
|
74 |
+
</li>
|
75 |
+
<li style="text-align: left;" class="css3_grid_row_4 row_style_4 css3_grid_row_4_responsive">
|
76 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Technical Support by the Development Team for Installation, Bug Fixing, Plugin Compatibility Issues.</span><strong>Technical Support</strong></span></span></span></span>
|
77 |
+
</li>
|
78 |
+
<li style="text-align: left;" class="css3_grid_row_5 row_style_2 css3_grid_row_5_responsive">
|
79 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Multi-Lingual Facility allows the plugin to be used in 25 languages.</span>Multi-Lingual</span></span></span></span>
|
80 |
+
</li>
|
81 |
+
<li style="text-align: left;" class="css3_grid_row_6 row_style_4 css3_grid_row_6_responsive">
|
82 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Number of Forms allowed to be Published.</span>Number of Forms</span></span></span></span>
|
83 |
+
</li>
|
84 |
+
<li style="text-align: left;" class="css3_grid_row_7 row_style_2 css3_grid_row_7_responsive">
|
85 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Standard Fields allowed to be created in Contact Bank.</span>Standard Fields</span></span></span></span>
|
86 |
+
</li>
|
87 |
+
<li style="text-align: left;" class="css3_grid_row_8 row_style_4 css3_grid_row_8_responsive">
|
88 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Advanced Fields allowed to be created in Contact Bank.</span>Advanced Fields </span></span></span></span>
|
89 |
+
</li>
|
90 |
+
<li style="text-align: left;" class="css3_grid_row_9 row_style_2 css3_grid_row_9_responsive">
|
91 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Notifications to Admin and Confirmation Notification to Clients are enabled.</span>Notifications</span></span></span></span>
|
92 |
+
</li>
|
93 |
+
<li style="text-align: left;" class="css3_grid_row_10 row_style_4 css3_grid_row_10_responsive">
|
94 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Form Settings allows to modify and customize the controls according to your requirements.</span>Form Settings</span></span></span></span>
|
95 |
+
</li>
|
96 |
+
<li style="text-align: left;" class="css3_grid_row_11 row_style_2 css3_grid_row_11_responsive">
|
97 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Email Settings would allow to edit and customize the emails sent automatically by the system.</span>Email Settings</span></span></span></span>
|
98 |
+
</li>
|
99 |
+
<li style="text-align: left;" class="css3_grid_row_12 row_style_4 css3_grid_row_12_responsive">
|
100 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Customization to the layout of your Form.</span>Customization</span></span></span></span>
|
101 |
+
</li>
|
102 |
+
<li style="text-align: left;" class="css3_grid_row_13 row_style_2 css3_grid_row_13_responsive">
|
103 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Entry Management to overview forms submitted by the customer.</span>Entry Management</span></span></span></span>
|
104 |
+
</li>
|
105 |
+
<li style="text-align: left;" class="css3_grid_row_14 row_style_4 css3_grid_row_14_responsive">
|
106 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Limit Entries to maximize number of clients which could fill up the form.</span>Limit Entries</span></span></span></span>
|
107 |
+
</li>
|
108 |
+
<li style="text-align: left;" class="css3_grid_row_15 row_style_2 css3_grid_row_15_responsive">
|
109 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Style & Layout would allow customization of control and descriptions.</span>Style & Layout</span></span></span></span>
|
110 |
+
</li>
|
111 |
+
<li style="text-align: left;" class="css3_grid_row_16 row_style_4 css3_grid_row_16_responsive">
|
112 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Optional Filters to filter the User Input.</span>Optional Filters</span></span></span></span>
|
113 |
+
</li>
|
114 |
+
<li style="text-align: left;" class="css3_grid_row_17 row_style_2 css3_grid_row_17_responsive">
|
115 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Tooltip to display relevant information for each control.</span>Tooltip</span></span></span></span>
|
116 |
+
</li>
|
117 |
+
<li style="text-align: left;" class="css3_grid_row_18 footer_row css3_grid_row_18_responsive">
|
118 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"></span></span>
|
119 |
+
</li>
|
120 |
+
</ul>
|
121 |
+
</div>
|
122 |
+
<div class="column_2 column_2_responsive">
|
123 |
+
<div class="column_ribbon ribbon_style1_save"></div>
|
124 |
+
<ul>
|
125 |
+
<li style="text-align: center;" class="css3_grid_row_0 header_row_1 align_center css3_grid_row_0_responsive">
|
126 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h2 class="col2">Eco</h2></span></span>
|
127 |
+
</li>
|
128 |
+
<li style="text-align: center;" class="css3_grid_row_1 header_row_2 css3_grid_row_1_responsive align_center">
|
129 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h1 class="col1"> £<span>11</span></h1><h3 class="col1">one time</h3></span></span>
|
130 |
+
</li>
|
131 |
+
<li style="text-align: center;" class="css3_grid_row_2 row_style_4 css3_grid_row_2_responsive align_center">
|
132 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>1</span></span></span>
|
133 |
+
</li>
|
134 |
+
<li style="text-align: center;" class="css3_grid_row_3 row_style_2 css3_grid_row_3_responsive align_center">
|
135 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/cross_02.png" alt="no"></span></span></span>
|
136 |
+
</li>
|
137 |
+
<li style="text-align: center;" class="css3_grid_row_4 row_style_4 css3_grid_row_4_responsive align_center">
|
138 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>1 Week</span></span></span>
|
139 |
+
</li>
|
140 |
+
<li style="text-align: center;" class="css3_grid_row_5 row_style_2 css3_grid_row_5_responsive align_center">
|
141 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
142 |
+
</li>
|
143 |
+
<li style="text-align: center;" class="css3_grid_row_6 row_style_4 css3_grid_row_6_responsive align_center">
|
144 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>Unlimited</span></span></span>
|
145 |
+
</li>
|
146 |
+
<li style="text-align: center;" class="css3_grid_row_7 row_style_2 css3_grid_row_7_responsive align_center">
|
147 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
148 |
+
</li>
|
149 |
+
<li style="text-align: center;" class="css3_grid_row_8 row_style_4 css3_grid_row_8_responsive align_center">
|
150 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
151 |
+
</li>
|
152 |
+
<li style="text-align: center;" class="css3_grid_row_9 row_style_2 css3_grid_row_9_responsive align_center">
|
153 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
154 |
+
</li>
|
155 |
+
<li style="text-align: center;" class="css3_grid_row_10 row_style_4 css3_grid_row_10_responsive align_center">
|
156 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
157 |
+
</li>
|
158 |
+
<li style="text-align: center;" class="css3_grid_row_11 row_style_2 css3_grid_row_11_responsive align_center">
|
159 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
160 |
+
</li>
|
161 |
+
<li style="text-align: center;" class="css3_grid_row_12 row_style_4 css3_grid_row_12_responsive align_center">
|
162 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
163 |
+
</li>
|
164 |
+
<li style="text-align: center;" class="css3_grid_row_13 row_style_2 css3_grid_row_13_responsive align_center">
|
165 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
166 |
+
</li>
|
167 |
+
<li style="text-align: center;" class="css3_grid_row_14 row_style_4 css3_grid_row_14_responsive align_center">
|
168 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
169 |
+
</li>
|
170 |
+
<li style="text-align: center;" class="css3_grid_row_15 row_style_2 css3_grid_row_15_responsive align_center">
|
171 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
172 |
+
</li>
|
173 |
+
<li style="text-align: center;" class="css3_grid_row_16 row_style_4 css3_grid_row_16_responsive align_center">
|
174 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
175 |
+
</li>
|
176 |
+
<li style="text-align: center;" class="css3_grid_row_17 row_style_2 css3_grid_row_17_responsive align_center">
|
177 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
178 |
+
</li>
|
179 |
+
<li style="text-align: center;" class="css3_grid_row_18 footer_row css3_grid_row_18_responsive">
|
180 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><a href="http://tech-banker.com/product/contact-bank-eco-edition/" target="_blank" class="sign_up sign_up_yellow radius3">Order Now!</a></span></span>
|
181 |
+
</li>
|
182 |
+
</ul>
|
183 |
+
</div>
|
184 |
+
<div class="column_3 column_3_responsive">
|
185 |
+
<div class="column_ribbon ribbon_style2_best"></div>
|
186 |
+
<ul>
|
187 |
+
<li style="text-align: center;" class="css3_grid_row_0 header_row_1 align_center css3_grid_row_0_responsive">
|
188 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h2 class="col1">Pro</h2></span></span>
|
189 |
+
</li>
|
190 |
+
<li style="text-align: center;" class="css3_grid_row_1 header_row_2 css3_grid_row_1_responsive align_center">
|
191 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h1 class="col1"> £<span>18</span></h1><h3 class="col1">one time</h3></span></span>
|
192 |
+
</li>
|
193 |
+
<li style="text-align: center;" class="css3_grid_row_2 row_style_3 css3_grid_row_2_responsive align_center">
|
194 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>1</span></span></span>
|
195 |
+
</li>
|
196 |
+
<li style="text-align: center;" class="css3_grid_row_3 row_style_1 css3_grid_row_3_responsive align_center">
|
197 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
198 |
+
</li>
|
199 |
+
<li style="text-align: center;" class="css3_grid_row_4 row_style_3 css3_grid_row_4_responsive align_center">
|
200 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>1 Month </span></span></span>
|
201 |
+
</li>
|
202 |
+
<li style="text-align: center;" class="css3_grid_row_5 row_style_1 css3_grid_row_5_responsive align_center">
|
203 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
204 |
+
</li>
|
205 |
+
<li style="text-align: center;" class="css3_grid_row_6 row_style_3 css3_grid_row_6_responsive align_center">
|
206 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>Unlimited</span></span></span>
|
207 |
+
</li>
|
208 |
+
<li style="text-align: center;" class="css3_grid_row_7 row_style_1 css3_grid_row_7_responsive align_center">
|
209 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
210 |
+
</li>
|
211 |
+
<li style="text-align: center;" class="css3_grid_row_8 row_style_3 css3_grid_row_8_responsive align_center">
|
212 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
213 |
+
</li>
|
214 |
+
<li style="text-align: center;" class="css3_grid_row_9 row_style_1 css3_grid_row_9_responsive align_center">
|
215 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
216 |
+
</li>
|
217 |
+
<li style="text-align: center;" class="css3_grid_row_10 row_style_3 css3_grid_row_10_responsive align_center">
|
218 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
219 |
+
</li>
|
220 |
+
<li style="text-align: center;" class="css3_grid_row_11 row_style_1 css3_grid_row_11_responsive align_center">
|
221 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
222 |
+
</li>
|
223 |
+
<li style="text-align: center;" class="css3_grid_row_12 row_style_3 css3_grid_row_12_responsive align_center">
|
224 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
225 |
+
</li>
|
226 |
+
<li style="text-align: center;" class="css3_grid_row_13 row_style_1 css3_grid_row_13_responsive align_center">
|
227 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
228 |
+
</li>
|
229 |
+
<li style="text-align: center;" class="css3_grid_row_14 row_style_3 css3_grid_row_14_responsive align_center">
|
230 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
231 |
+
</li>
|
232 |
+
<li style="text-align: center;" class="css3_grid_row_15 row_style_1 css3_grid_row_15_responsive align_center">
|
233 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
234 |
+
</li>
|
235 |
+
<li style="text-align: center;" class="css3_grid_row_16 row_style_3 css3_grid_row_16_responsive align_center">
|
236 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
237 |
+
</li>
|
238 |
+
<li style="text-align: center;" class="css3_grid_row_17 row_style_1 css3_grid_row_17_responsive align_center">
|
239 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
240 |
+
</li>
|
241 |
+
<li style="text-align: center;" class="css3_grid_row_18 footer_row css3_grid_row_18_responsive">
|
242 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><a href="http://tech-banker.com/product/contact-bank-pro-edition/" target="_blank" class="sign_up sign_up_yellow radius3">Order Now!</a></span></span>
|
243 |
+
</li>
|
244 |
+
</ul>
|
245 |
+
</div>
|
246 |
+
<div class="column_4 column_4_responsive">
|
247 |
+
<div class="column_ribbon ribbon_style1_off30"></div>
|
248 |
+
<ul>
|
249 |
+
<li class="css3_grid_row_0 header_row_1 align_center css3_grid_row_0_responsive">
|
250 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h2 class="col1">Developer</h2></span></span>
|
251 |
+
</li>
|
252 |
+
<li class="css3_grid_row_1 header_row_2 css3_grid_row_1_responsive align_center">
|
253 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h1 class="col1"> £<span>63</span></h1><h3 class="col1">one time</h3></span></span>
|
254 |
+
</li>
|
255 |
+
<li class="css3_grid_row_2 row_style_4 css3_grid_row_2_responsive align_center">
|
256 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>5</span></span></span>
|
257 |
+
</li>
|
258 |
+
<li class="css3_grid_row_3 row_style_2 css3_grid_row_3_responsive align_center">
|
259 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
260 |
+
</li>
|
261 |
+
<li class="css3_grid_row_4 row_style_4 css3_grid_row_4_responsive align_center">
|
262 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>1 Year </span></span></span>
|
263 |
+
</li>
|
264 |
+
<li class="css3_grid_row_5 row_style_2 css3_grid_row_5_responsive align_center">
|
265 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
266 |
+
</li>
|
267 |
+
<li class="css3_grid_row_6 row_style_4 css3_grid_row_6_responsive align_center">
|
268 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>Unlimited </span></span></span>
|
269 |
+
</li>
|
270 |
+
<li class="css3_grid_row_7 row_style_2 css3_grid_row_7_responsive align_center">
|
271 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
272 |
+
</li>
|
273 |
+
<li class="css3_grid_row_8 row_style_4 css3_grid_row_8_responsive align_center">
|
274 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
275 |
+
</li>
|
276 |
+
<li class="css3_grid_row_9 row_style_2 css3_grid_row_9_responsive align_center">
|
277 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
278 |
+
</li>
|
279 |
+
<li class="css3_grid_row_10 row_style_4 css3_grid_row_10_responsive align_center">
|
280 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
281 |
+
</li>
|
282 |
+
<li class="css3_grid_row_11 row_style_2 css3_grid_row_11_responsive align_center">
|
283 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
284 |
+
</li>
|
285 |
+
<li class="css3_grid_row_12 row_style_4 css3_grid_row_12_responsive align_center">
|
286 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
287 |
+
</li>
|
288 |
+
<li class="css3_grid_row_13 row_style_2 css3_grid_row_13_responsive align_center">
|
289 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
290 |
+
</li>
|
291 |
+
<li class="css3_grid_row_14 row_style_4 css3_grid_row_14_responsive align_center">
|
292 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
293 |
+
</li>
|
294 |
+
<li class="css3_grid_row_15 row_style_2 css3_grid_row_15_responsive align_center">
|
295 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
296 |
+
</li>
|
297 |
+
<li class="css3_grid_row_16 row_style_4 css3_grid_row_16_responsive align_center">
|
298 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
299 |
+
</li>
|
300 |
+
<li class="css3_grid_row_17 row_style_2 css3_grid_row_17_responsive align_center">
|
301 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
302 |
+
</li>
|
303 |
+
<li class="css3_grid_row_18 footer_row css3_grid_row_18_responsive">
|
304 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><a href="http://tech-banker.com/product/contact-bank-developer-edition/" target="_blank" class="sign_up sign_up_yellow radius3">Order Now!</a></span></span>
|
305 |
+
</li>
|
306 |
+
</ul>
|
307 |
+
</div>
|
308 |
+
<div class="column_1 column_5_responsive">
|
309 |
+
<div class="column_ribbon ribbon_style1_off35"></div>
|
310 |
+
<ul>
|
311 |
+
<li class="css3_grid_row_0 header_row_1 align_center css3_grid_row_0_responsive radius5_topright">
|
312 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h2 class="col1">Extended</h2></span></span>
|
313 |
+
</li>
|
314 |
+
<li class="css3_grid_row_1 header_row_2 css3_grid_row_1_responsive align_center">
|
315 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h1 class="col1"> £<span>549</span></h1><h3 class="col1">one time</h3></span></span>
|
316 |
+
</li>
|
317 |
+
<li class="css3_grid_row_2 row_style_3 css3_grid_row_2_responsive align_center">
|
318 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>50</span></span></span>
|
319 |
+
</li>
|
320 |
+
<li class="css3_grid_row_3 row_style_1 css3_grid_row_3_responsive align_center">
|
321 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
322 |
+
</li>
|
323 |
+
<li class="css3_grid_row_4 row_style_3 css3_grid_row_4_responsive align_center">
|
324 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
325 |
+
</li>
|
326 |
+
<li class="css3_grid_row_5 row_style_1 css3_grid_row_5_responsive align_center">
|
327 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
328 |
+
</li>
|
329 |
+
<li class="css3_grid_row_6 row_style_3 css3_grid_row_6_responsive align_center">
|
330 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
331 |
+
</li>
|
332 |
+
<li class="css3_grid_row_7 row_style_1 css3_grid_row_7_responsive align_center">
|
333 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
334 |
+
</li>
|
335 |
+
<li class="css3_grid_row_8 row_style_3 css3_grid_row_8_responsive align_center">
|
336 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
337 |
+
</li>
|
338 |
+
<li class="css3_grid_row_9 row_style_1 css3_grid_row_9_responsive align_center">
|
339 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
340 |
+
</li>
|
341 |
+
<li class="css3_grid_row_10 row_style_3 css3_grid_row_10_responsive align_center">
|
342 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
343 |
+
</li>
|
344 |
+
<li class="css3_grid_row_11 row_style_1 css3_grid_row_11_responsive align_center">
|
345 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
346 |
+
</li>
|
347 |
+
<li class="css3_grid_row_12 row_style_3 css3_grid_row_12_responsive align_center">
|
348 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
349 |
+
</li>
|
350 |
+
<li class="css3_grid_row_13 row_style_1 css3_grid_row_13_responsive align_center">
|
351 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
352 |
+
</li>
|
353 |
+
<li class="css3_grid_row_14 row_style_3 css3_grid_row_14_responsive align_center">
|
354 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
355 |
+
</li>
|
356 |
+
<li class="css3_grid_row_15 row_style_1 css3_grid_row_15_responsive align_center">
|
357 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
358 |
+
</li>
|
359 |
+
<li class="css3_grid_row_16 row_style_3 css3_grid_row_16_responsive align_center">
|
360 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
361 |
+
</li>
|
362 |
+
<li class="css3_grid_row_17 row_style_1 css3_grid_row_17_responsive align_center">
|
363 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
|
364 |
+
</li>
|
365 |
+
<li class="css3_grid_row_18 footer_row css3_grid_row_18_responsive">
|
366 |
+
<span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><a href="http://tech-banker.com/product/contact-bank-extended-edition/" target="_blank" class="sign_up sign_up_yellow radius3">Order Now!</a></span></span>
|
367 |
+
</li>
|
368 |
+
</ul>
|
369 |
+
</div>
|
370 |
</div>
|
371 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
372 |
</div>
|
373 |
</div>
|
374 |
+
</div>
|
375 |
</div>
|
376 |
</div>
|
377 |
</div>
|
378 |
</div>
|
379 |
</div>
|
380 |
+
<div id="postbox-container-1" class="postbox-container">
|
381 |
+
<div id="priority_side" class="meta-box-sortables">
|
382 |
+
<div id="contact_bank_get_started" class="postbox" >
|
383 |
+
<div class="handlediv" data-target="#uxdownload" title="Click to toggle" data-toggle="collapse"><br></div>
|
384 |
+
<h3 class="hndle"><span><?php _e("Need Support Help?", contact_bank); ?></span></h3>
|
385 |
+
<div class="inside">
|
386 |
+
<div id="uxdownload" class="contact_bank_getting_started">
|
387 |
+
<p>
|
388 |
+
We’re interested in hearing from you.</p>
|
389 |
+
|
390 |
+
<p>We will help you through the process and try to provide the answers.</p>
|
391 |
+
|
392 |
+
<p>If you need to know more about our services or have something to share, please feel free to contact us.
|
393 |
+
</p>
|
394 |
+
<p>We commit to responses within 24 hours on weekdays – generally within hours during week day work hours.</p>
|
395 |
+
<p>
|
396 |
+
<a class="btn btn-danger" href="http://tech-banker.com/get-in-touch/" target="_blank" style="text-decoration: none;"><?php _e("Lets get in touch!", contact_bank); ?></a>
|
397 |
+
</p>
|
398 |
+
<img src="<?php echo CONTACT_BK_PLUGIN_URL . "/assets/images/img.png";?>" style="max-width:100%;cursor: pointer;" />
|
399 |
+
<p>
|
400 |
+
<a class="btn btn-danger" href="http://tech-banker.com/contact-bank/" target="_blank" style="text-decoration: none;"><?php _e("Order Now!", contact_bank); ?></a>
|
401 |
+
</p>
|
402 |
+
</div>
|
403 |
</div>
|
404 |
</div>
|
405 |
</div>
|
406 |
</div>
|
407 |
</div>
|
408 |
</div>
|
409 |
+
</form>
|
410 |
+
<?php
|
411 |
+
}
|
412 |
+
?>
|
views/contact_controls_files.php
CHANGED
@@ -1,3 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<div class="layout-control-group div_border" id="div_1_1" style="display: none;">
|
2 |
<label class="layout-control-label" id="control_label_">
|
3 |
<?php _e("Untitled", contact_bank); ?> :
|
@@ -97,3 +128,6 @@
|
|
97 |
</div>
|
98 |
</div>
|
99 |
</div>
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
global $wpdb,$current_user,$cb_user_role_permission;
|
3 |
+
$cb_role = $wpdb->prefix . "capabilities";
|
4 |
+
$current_user->role = array_keys($current_user->$cb_role);
|
5 |
+
$cb_role = $current_user->role[0];
|
6 |
+
switch($cb_role)
|
7 |
+
{
|
8 |
+
case "administrator":
|
9 |
+
$cb_user_role_permission = "manage_options";
|
10 |
+
break;
|
11 |
+
case "editor":
|
12 |
+
$cb_user_role_permission = "publish_pages";
|
13 |
+
break;
|
14 |
+
case "author":
|
15 |
+
$cb_user_role_permission = "publish_posts";
|
16 |
+
break;
|
17 |
+
case "contributor":
|
18 |
+
$cb_user_role_permission = "edit_posts";
|
19 |
+
break;
|
20 |
+
case "subscriber":
|
21 |
+
$cb_user_role_permission = "read";
|
22 |
+
break;
|
23 |
+
}
|
24 |
+
if (!current_user_can($cb_user_role_permission))
|
25 |
+
{
|
26 |
+
return;
|
27 |
+
}
|
28 |
+
else
|
29 |
+
{
|
30 |
+
?>
|
31 |
+
|
32 |
<div class="layout-control-group div_border" id="div_1_1" style="display: none;">
|
33 |
<label class="layout-control-label" id="control_label_">
|
34 |
<?php _e("Untitled", contact_bank); ?> :
|
128 |
</div>
|
129 |
</div>
|
130 |
</div>
|
131 |
+
<?php
|
132 |
+
}
|
133 |
+
?>
|
views/contact_documentation.php
CHANGED
@@ -1,3 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<div class="fluid-layout" >
|
2 |
<div class="layout-span12">
|
3 |
<div class="widget-layout">
|
@@ -10,4 +41,6 @@
|
|
10 |
</div>
|
11 |
</div>
|
12 |
</div>
|
13 |
-
|
|
|
|
1 |
+
<?php
|
2 |
+
global $wpdb,$current_user,$cb_user_role_permission;
|
3 |
+
$cb_role = $wpdb->prefix . "capabilities";
|
4 |
+
$current_user->role = array_keys($current_user->$cb_role);
|
5 |
+
$cb_role = $current_user->role[0];
|
6 |
+
switch($cb_role)
|
7 |
+
{
|
8 |
+
case "administrator":
|
9 |
+
$cb_user_role_permission = "manage_options";
|
10 |
+
break;
|
11 |
+
case "editor":
|
12 |
+
$cb_user_role_permission = "publish_pages";
|
13 |
+
break;
|
14 |
+
case "author":
|
15 |
+
$cb_user_role_permission = "publish_posts";
|
16 |
+
break;
|
17 |
+
case "contributor":
|
18 |
+
$cb_user_role_permission = "edit_posts";
|
19 |
+
break;
|
20 |
+
case "subscriber":
|
21 |
+
$cb_user_role_permission = "read";
|
22 |
+
break;
|
23 |
+
}
|
24 |
+
if (!current_user_can($cb_user_role_permission))
|
25 |
+
{
|
26 |
+
return;
|
27 |
+
}
|
28 |
+
else
|
29 |
+
{
|
30 |
+
|
31 |
+
?>
|
32 |
<div class="fluid-layout" >
|
33 |
<div class="layout-span12">
|
34 |
<div class="widget-layout">
|
41 |
</div>
|
42 |
</div>
|
43 |
</div>
|
44 |
+
<?php
|
45 |
+
}
|
46 |
+
?>
|
views/contact_email_settings.php
CHANGED
@@ -1,3 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<form id="contact_bank_pricing" class="layout-form">
|
2 |
<div id="poststuff" style="width: 99% !important;">
|
3 |
<div id="post-body" class="metabox-holder">
|
@@ -155,4 +186,7 @@ function add_new_settings()
|
|
155 |
alert("<?php _e( "Please select the Form first.", contact_bank ); ?>");
|
156 |
}
|
157 |
}
|
158 |
-
</script>
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
global $wpdb,$current_user,$cb_user_role_permission;
|
3 |
+
$cb_role = $wpdb->prefix . "capabilities";
|
4 |
+
$current_user->role = array_keys($current_user->$cb_role);
|
5 |
+
$cb_role = $current_user->role[0];
|
6 |
+
switch($cb_role)
|
7 |
+
{
|
8 |
+
case "administrator":
|
9 |
+
$cb_user_role_permission = "manage_options";
|
10 |
+
break;
|
11 |
+
case "editor":
|
12 |
+
$cb_user_role_permission = "publish_pages";
|
13 |
+
break;
|
14 |
+
case "author":
|
15 |
+
$cb_user_role_permission = "publish_posts";
|
16 |
+
break;
|
17 |
+
case "contributor":
|
18 |
+
$cb_user_role_permission = "edit_posts";
|
19 |
+
break;
|
20 |
+
case "subscriber":
|
21 |
+
$cb_user_role_permission = "read";
|
22 |
+
break;
|
23 |
+
}
|
24 |
+
if (!current_user_can($cb_user_role_permission))
|
25 |
+
{
|
26 |
+
return;
|
27 |
+
}
|
28 |
+
else
|
29 |
+
{
|
30 |
+
?>
|
31 |
+
|
32 |
<form id="contact_bank_pricing" class="layout-form">
|
33 |
<div id="poststuff" style="width: 99% !important;">
|
34 |
<div id="post-body" class="metabox-holder">
|
186 |
alert("<?php _e( "Please select the Form first.", contact_bank ); ?>");
|
187 |
}
|
188 |
}
|
189 |
+
</script>
|
190 |
+
<?php
|
191 |
+
}
|
192 |
+
?>
|
views/contact_frontend_data.php
CHANGED
@@ -1,3 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<form id="" class="layout-form">
|
2 |
<div id="poststuff" style="width: 99% !important;">
|
3 |
<div id="post-body" class="metabox-holder">
|
@@ -153,4 +184,7 @@ function delete_form_entry()
|
|
153 |
|
154 |
|
155 |
|
156 |
-
</script>
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
global $wpdb,$current_user,$cb_user_role_permission;
|
3 |
+
$cb_role = $wpdb->prefix . "capabilities";
|
4 |
+
$current_user->role = array_keys($current_user->$cb_role);
|
5 |
+
$cb_role = $current_user->role[0];
|
6 |
+
switch($cb_role)
|
7 |
+
{
|
8 |
+
case "administrator":
|
9 |
+
$cb_user_role_permission = "manage_options";
|
10 |
+
break;
|
11 |
+
case "editor":
|
12 |
+
$cb_user_role_permission = "publish_pages";
|
13 |
+
break;
|
14 |
+
case "author":
|
15 |
+
$cb_user_role_permission = "publish_posts";
|
16 |
+
break;
|
17 |
+
case "contributor":
|
18 |
+
$cb_user_role_permission = "edit_posts";
|
19 |
+
break;
|
20 |
+
case "subscriber":
|
21 |
+
$cb_user_role_permission = "read";
|
22 |
+
break;
|
23 |
+
}
|
24 |
+
if (!current_user_can($cb_user_role_permission))
|
25 |
+
{
|
26 |
+
return;
|
27 |
+
}
|
28 |
+
else
|
29 |
+
{
|
30 |
+
?>
|
31 |
+
|
32 |
<form id="" class="layout-form">
|
33 |
<div id="poststuff" style="width: 99% !important;">
|
34 |
<div id="post-body" class="metabox-holder">
|
184 |
|
185 |
|
186 |
|
187 |
+
</script>
|
188 |
+
<?php
|
189 |
+
}
|
190 |
+
?>
|
views/contact_view.php
CHANGED
@@ -1,6 +1,33 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
$form_settings = array();
|
3 |
-
global $wpdb;
|
4 |
$form_id = intval($_REQUEST["form_id"]);
|
5 |
$count_forms = $wpdb->get_var
|
6 |
(
|
@@ -586,4 +613,7 @@ jQuery("#ux_dynamic_form_submit").validate
|
|
586 |
});
|
587 |
}
|
588 |
});
|
589 |
-
</script>
|
|
|
|
|
|
1 |
<?php
|
2 |
+
global $wpdb,$current_user,$cb_user_role_permission;
|
3 |
+
$cb_role = $wpdb->prefix . "capabilities";
|
4 |
+
$current_user->role = array_keys($current_user->$cb_role);
|
5 |
+
$cb_role = $current_user->role[0];
|
6 |
+
switch($cb_role)
|
7 |
+
{
|
8 |
+
case "administrator":
|
9 |
+
$cb_user_role_permission = "manage_options";
|
10 |
+
break;
|
11 |
+
case "editor":
|
12 |
+
$cb_user_role_permission = "publish_pages";
|
13 |
+
break;
|
14 |
+
case "author":
|
15 |
+
$cb_user_role_permission = "publish_posts";
|
16 |
+
break;
|
17 |
+
case "contributor":
|
18 |
+
$cb_user_role_permission = "edit_posts";
|
19 |
+
break;
|
20 |
+
case "subscriber":
|
21 |
+
$cb_user_role_permission = "read";
|
22 |
+
break;
|
23 |
+
}
|
24 |
+
if (!current_user_can($cb_user_role_permission))
|
25 |
+
{
|
26 |
+
return;
|
27 |
+
}
|
28 |
+
else
|
29 |
+
{
|
30 |
$form_settings = array();
|
|
|
31 |
$form_id = intval($_REQUEST["form_id"]);
|
32 |
$count_forms = $wpdb->get_var
|
33 |
(
|
613 |
});
|
614 |
}
|
615 |
});
|
616 |
+
</script>
|
617 |
+
<?php
|
618 |
+
}
|
619 |
+
?>
|
views/dashboard.php
CHANGED
@@ -1,101 +1,123 @@
|
|
1 |
<?php
|
2 |
-
global $wpdb,$current_user;
|
3 |
-
$
|
4 |
-
$current_user->role = array_keys($current_user->$
|
5 |
-
$
|
6 |
-
$
|
7 |
-
(
|
8 |
-
"SELECT form_id FROM " .contact_bank_contact_form(). " order by form_id desc limit 1"
|
9 |
-
);
|
10 |
-
$contact_id = count($last_form_id) == 0 ? 1 : $last_form_id + 1;
|
11 |
-
$popup = get_option("contact-bank-info-popup");
|
12 |
-
if($popup == "")
|
13 |
{
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
</p>
|
30 |
-
<a href="http://tech-banker.com/contact-bank/documentation/frequently-asked-questions-others-contact-bank/" target="_blank" class="button gb_buttons">Read More</a>
|
31 |
-
</li>
|
32 |
-
<li class="Upgrade" id="Upgrade">
|
33 |
-
<h4>Upgrade to Pro Version</h4>
|
34 |
-
<p>
|
35 |
-
Contact Bank is an one time Investment.<br> To enjoy full features of Contact Bank,
|
36 |
-
upgrade to Premium Version Now! Starting at 10£/- only.
|
37 |
-
</p>
|
38 |
-
<a href="http://tech-banker.com/contact-bank" target="_blank" class="button gb_buttons">Upgrade Now</a>
|
39 |
-
</li>
|
40 |
-
<li class="help" id="help">
|
41 |
-
<h4>Help to Improve</h4>
|
42 |
-
<p>
|
43 |
-
Contact Bank would like to collect anonymous data about features you use to help improve this plugin.
|
44 |
-
</p>
|
45 |
-
<a href="http://tech-banker.com/forum/contact-bank-support/" target="_blank" class="button gb_buttons">Read More</a>
|
46 |
-
</li>
|
47 |
-
<a href="javascript:void(o);" onclick="close_popup()" class="gb_close_popup">Dismiss</a>
|
48 |
-
</ol>
|
49 |
-
<?php
|
50 |
}
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
</div>
|
81 |
</div>
|
82 |
</div>
|
83 |
</div>
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
);
|
96 |
-
switch ($role)
|
97 |
-
{
|
98 |
-
case "administrator":
|
99 |
if($form_count < 1)
|
100 |
{
|
101 |
?>
|
@@ -104,169 +126,102 @@ if($popup == "")
|
|
104 |
</a>
|
105 |
<?php
|
106 |
}
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
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 |
-
<a class="btn btn-danger" href="#"
|
141 |
-
onclick="restore_factory_settings();"><?php _e("Restore Factory Settings", contact_bank); ?>
|
142 |
-
</a>
|
143 |
-
<div class="separator-doubled" style="margin-bottom: 5px;"></div>
|
144 |
-
<a rel="prettyPhoto[contact]" href="<?php echo CONTACT_BK_PLUGIN_URL . "/assets/images/how-to-setup-short-code-cb.png";?>">How to setup Short-Codes for Contact Bank into your WordPress Page/Post?</a>
|
145 |
-
<div class="fluid-layout">
|
146 |
-
<div class="layout-span12" >
|
147 |
-
<div class="widget-layout">
|
148 |
-
<div class="widget-layout-title">
|
149 |
-
<h4>
|
150 |
-
<?php _e("Form", contact_bank); ?>
|
151 |
-
</h4>
|
152 |
-
</div>
|
153 |
-
<div class="widget-layout-body">
|
154 |
-
<table class="table table-striped" id="data-table-form">
|
155 |
-
<thead>
|
156 |
-
<tr>
|
157 |
-
<th style="width: 15%"><?php _e("Form", contact_bank); ?></th>
|
158 |
-
<th style="width: 30%"><?php _e("Shortcode", contact_bank); ?></th>
|
159 |
-
<th style="width: 15%"><?php _e("Total Controls", contact_bank); ?></th>
|
160 |
-
<th style="width: 40%" style="padding-left: 5%;"></th>
|
161 |
-
</tr>
|
162 |
-
</thead>
|
163 |
-
<tbody>
|
164 |
-
<?php
|
165 |
-
global $wpdb;
|
166 |
-
$form_data = $wpdb->get_results
|
167 |
-
(
|
168 |
-
"SELECT * FROM " . contact_bank_contact_form()
|
169 |
-
);
|
170 |
-
for ($flag = 0; $flag < count($form_data); $flag++)
|
171 |
-
{
|
172 |
-
$total_control = $wpdb->get_var
|
173 |
(
|
174 |
-
|
175 |
-
(
|
176 |
-
" SELECT count(" . contact_bank_contact_form() . ".form_id) FROM " . contact_bank_contact_form() . " JOIN ". create_control_Table() . " ON " . create_control_Table() .".form_id = ".contact_bank_contact_form().
|
177 |
-
".form_id WHERE " . contact_bank_contact_form() . ".form_id = %d",
|
178 |
-
$form_data[$flag]->form_id
|
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 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
<i class="icon-tasks"></i>
|
231 |
-
</a>
|
232 |
-
<a href="admin.php?page=form_preview&form_id=<?php echo $form_data[$flag]->form_id; ?>"
|
233 |
class="btn hovertip"
|
234 |
-
data-original-title="<?php _e("Form
|
235 |
-
<i class="icon-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
<i class="icon-trash"></i>
|
247 |
-
</a>
|
248 |
-
<?php
|
249 |
-
break;
|
250 |
-
case "editor":
|
251 |
-
?>
|
252 |
-
<a herf="#"
|
253 |
-
onclick="delete_form(<?php echo $form_data[$flag]->form_id; ?>);"
|
254 |
-
class="btn hovertip"
|
255 |
-
data-original-title="<?php _e("Delete Form", contact_bank) ?>">
|
256 |
-
<i class="icon-trash"></i>
|
257 |
-
</a>
|
258 |
-
<?php
|
259 |
-
break;
|
260 |
-
}
|
261 |
-
?>
|
262 |
-
|
263 |
-
</td>
|
264 |
-
</tr>
|
265 |
-
<?php
|
266 |
-
}
|
267 |
-
?>
|
268 |
-
</tbody>
|
269 |
-
</table>
|
270 |
</div>
|
271 |
</div>
|
272 |
</div>
|
@@ -275,148 +230,150 @@ if($popup == "")
|
|
275 |
</div>
|
276 |
</div>
|
277 |
</div>
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
</
|
301 |
</div>
|
302 |
</div>
|
303 |
</div>
|
304 |
</div>
|
305 |
</div>
|
306 |
</div>
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
jQuery( ".contact-bank-video-link").click( function( event ) {
|
313 |
-
|
314 |
-
event.preventDefault();
|
315 |
-
|
316 |
-
var target = jQuery( this ).data( "video-id" );
|
317 |
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
jQuery(this).
|
332 |
-
}
|
|
|
|
|
|
|
|
|
|
|
333 |
}
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
340 |
({
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
347 |
});
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
?>
|
352 |
-
jQuery("#contact_bank_popup").dialog(
|
353 |
-
{
|
354 |
-
dialogClass: "wp-dialog contact_bank_popup_box",
|
355 |
-
modal: true,
|
356 |
-
closeOnEscape: true,
|
357 |
-
title: contact_bank_popup.title,
|
358 |
-
width: "auto",
|
359 |
-
resizable: true,
|
360 |
-
draggable: false,
|
361 |
-
create: function ( event, ui ) {
|
362 |
-
jQuery( this ).css( "maxWidth", "600px" );
|
363 |
-
},
|
364 |
-
close: function(event)
|
365 |
-
{
|
366 |
-
jQuery( "#contact_bank_popup" ).dialog( "close" );
|
367 |
-
jQuery.post(ajaxurl, "param=update_option&action=add_contact_form_library", function(data)
|
368 |
-
{
|
369 |
-
});
|
370 |
-
}
|
371 |
-
|
372 |
-
});
|
373 |
-
<?php
|
374 |
-
}
|
375 |
-
?>
|
376 |
-
});
|
377 |
-
oTable = jQuery("#data-table-form").dataTable
|
378 |
-
({
|
379 |
-
"bJQueryUI": false,
|
380 |
-
"bAutoWidth": true,
|
381 |
-
"sPaginationType": "full_numbers",
|
382 |
-
"sDom": "<\"datatable-header\"fl>t<\"datatable-footer\"ip>",
|
383 |
-
"oLanguage": {
|
384 |
-
"sLengthMenu": "<span>Show entries:</span> _MENU_"
|
385 |
-
},
|
386 |
-
"aaSorting": [
|
387 |
-
[ 0, "asc" ]
|
388 |
-
],
|
389 |
-
"aoColumnDefs": [
|
390 |
-
{ "bSortable": false, "aTargets": [2] }
|
391 |
-
]
|
392 |
-
});
|
393 |
-
function delete_form(form_Id) {
|
394 |
-
var check_str = confirm("<?php _e( "Are you sure, you want to delete this Form?", contact_bank ); ?>");
|
395 |
-
if (check_str == true)
|
396 |
-
{
|
397 |
-
jQuery.post(ajaxurl, "id=" + form_Id + "¶m=delete_form&action=add_contact_form_library", function (data)
|
398 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
399 |
location.reload();
|
400 |
-
|
|
|
401 |
}
|
402 |
-
|
403 |
-
|
404 |
-
var checkstr = confirm("<?php _e( "Are you sure, you want to delete all Forms?", contact_bank ); ?>");
|
405 |
-
if (checkstr == true)
|
406 |
-
{
|
407 |
-
jQuery.post(ajaxurl, "param=delete_forms&action=add_contact_form_library", function (data) {
|
408 |
-
location.reload();
|
409 |
-
});
|
410 |
}
|
411 |
-
|
412 |
-
function restore_factory_settings() {
|
413 |
-
alert("<?php _e("This Feature is only available in Paid Premium Edition!", contact_bank ); ?>");
|
414 |
-
}
|
415 |
-
function close_popup()
|
416 |
-
{
|
417 |
-
jQuery( "#contact_bank_popup" ).dialog( "close" );
|
418 |
-
jQuery.post(ajaxurl, "param=update_option&action=add_new_album_library", function()
|
419 |
{
|
420 |
-
|
421 |
-
|
422 |
-
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
2 |
+
global $wpdb,$current_user,$cb_user_role_permission;
|
3 |
+
$cb_role = $wpdb->prefix . "capabilities";
|
4 |
+
$current_user->role = array_keys($current_user->$cb_role);
|
5 |
+
$cb_role = $current_user->role[0];
|
6 |
+
switch($cb_role)
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
{
|
8 |
+
case "administrator":
|
9 |
+
$cb_user_role_permission = "manage_options";
|
10 |
+
break;
|
11 |
+
case "editor":
|
12 |
+
$cb_user_role_permission = "publish_pages";
|
13 |
+
break;
|
14 |
+
case "author":
|
15 |
+
$cb_user_role_permission = "publish_posts";
|
16 |
+
break;
|
17 |
+
case "contributor":
|
18 |
+
$cb_user_role_permission = "edit_posts";
|
19 |
+
break;
|
20 |
+
case "subscriber":
|
21 |
+
$cb_user_role_permission = "read";
|
22 |
+
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
}
|
24 |
+
if (!current_user_can($cb_user_role_permission))
|
25 |
+
{
|
26 |
+
return;
|
27 |
+
}
|
28 |
+
else
|
29 |
+
{
|
30 |
+
|
31 |
+
$last_form_id = $wpdb->get_var
|
32 |
+
(
|
33 |
+
"SELECT form_id FROM " .contact_bank_contact_form(). " order by form_id desc limit 1"
|
34 |
+
);
|
35 |
+
$contact_id = count($last_form_id) == 0 ? 1 : $last_form_id + 1;
|
36 |
+
$popup = get_option("contact-bank-info-popup");
|
37 |
+
if($popup == "")
|
38 |
+
{
|
39 |
+
?>
|
40 |
+
<ol id="contact_bank_popup" title="Important First Steps" style="display:none;">
|
41 |
+
<li class="add_new_album" id="add_new_album">
|
42 |
+
<h4>Add New Form</h4>
|
43 |
+
<p>
|
44 |
+
Contact Bank is designed to create Powerful Contact Forms with multiple controls within few seconds.
|
45 |
+
<br>Just click on <strong>Add New Form</strong> button located at the top of the <strong> Contact Bank - Dashboard </strong> page to Add New Form.
|
46 |
+
</p>
|
47 |
+
<a href="http://tech-banker.com/contact-bank/documentation/" target="_blank" class="button gb_buttons">Read More</a>
|
48 |
+
</li>
|
49 |
+
<li class="shortcode" id="shortcode">
|
50 |
+
<h4>Implement Shortcode</h4>
|
51 |
+
<p>
|
52 |
+
Easy and simple way to implement Shortcode on your Wordpress Page / Post.<br>Use the button below and just try it out!
|
53 |
+
|
54 |
+
</p>
|
55 |
+
<a href="http://tech-banker.com/contact-bank/documentation/frequently-asked-questions-others-contact-bank/" target="_blank" class="button gb_buttons">Read More</a>
|
56 |
+
</li>
|
57 |
+
<li class="Upgrade" id="Upgrade">
|
58 |
+
<h4>Upgrade to Pro Version</h4>
|
59 |
+
<p>
|
60 |
+
Contact Bank is an one time Investment.<br> To enjoy full features of Contact Bank,
|
61 |
+
upgrade to Premium Version Now! Starting at 10£/- only.
|
62 |
+
</p>
|
63 |
+
<a href="http://tech-banker.com/contact-bank" target="_blank" class="button gb_buttons">Upgrade Now</a>
|
64 |
+
</li>
|
65 |
+
<li class="help" id="help">
|
66 |
+
<h4>Help to Improve</h4>
|
67 |
+
<p>
|
68 |
+
Contact Bank would like to collect anonymous data about features you use to help improve this plugin.
|
69 |
+
</p>
|
70 |
+
<a href="http://tech-banker.com/forum/contact-bank-support/" target="_blank" class="button gb_buttons">Read More</a>
|
71 |
+
</li>
|
72 |
+
<a href="javascript:void(o);" onclick="close_popup()" class="gb_close_popup">Dismiss</a>
|
73 |
+
</ol>
|
74 |
+
<?php
|
75 |
+
}
|
76 |
+
?>
|
77 |
+
<div id="poststuff" style="width: 99% !important;">
|
78 |
+
<div id="post-body" class="metabox-holder columns-2">
|
79 |
+
<div id="postbox-container-2" class="postbox-container">
|
80 |
+
<div id="contact_bank_dashboard" class="meta-box-sortables">
|
81 |
+
<div id="contact_bank_get_started" class="postbox" >
|
82 |
+
<div class="handlediv" data-target="#uxgetting_started" title="Click to toggle" data-toggle="collapse"><br></div>
|
83 |
+
<h3 class="hndle"><span><?php _e("Getting Started", contact_bank); ?></span></h3>
|
84 |
+
<div class="inside">
|
85 |
+
<div id="uxgetting_started" class="contact_bank_getting_started">
|
86 |
+
<div class="column">
|
87 |
+
<h2><?php _e("Watch the Walk-Through Video", contact_bank); ?></h2>
|
88 |
+
<a class="contact-bank-video-link" href="#" data-video-id="contact_bank_video"><img src="http://i.vimeocdn.com/video/472227221_200x150.jpg" style="border:2px solid #ebebeb;"/></a>
|
89 |
+
<p class="contact-bank-video-description">
|
90 |
+
In this short video, we walk through, how to add forms to your contact form using Contact Bank Standard Edition.</p>
|
91 |
+
<p class="contact_bank_video">
|
92 |
+
<iframe src="//player.vimeo.com/video/92488992?title=0&byline=0&portrait=0" width="853" height="480" frameborder="0" ></iframe>
|
93 |
+
</p>
|
94 |
+
</div>
|
95 |
+
<div class="column two">
|
96 |
+
<h2 style="line-height: 29px;"><?php _e("Contact Bank, a Superlative High quality WordPress Plugin!", contact_bank); ?></h2>
|
97 |
+
<p>
|
98 |
+
Contact Bank is the only available WordPress Plugin with extra-ordinary features.It build Contact Form on any WordPress site.
|
99 |
+
</p>
|
100 |
+
<p>
|
101 |
+
Upgrade to Pro Version to take your Contact Bank to the next level.</p>
|
102 |
+
<p>
|
103 |
+
<a class="button-primary" href="http://tech-banker.com/contact-bank/" target="_blank"><?php _e("Get Contact Bank Pro Features", contact_bank); ?></a>
|
104 |
+
</p>
|
105 |
+
</div>
|
106 |
</div>
|
107 |
</div>
|
108 |
</div>
|
109 |
</div>
|
110 |
+
<div id="advanced" class="meta-box-sortables">
|
111 |
+
<div id="contact_bank_get_started" class="postbox" >
|
112 |
+
<div class="handlediv" data-target="#ux_dashboard" title="Click to toggle" data-toggle="collapse"><br></div>
|
113 |
+
<h3 class="hndle"><span><?php _e("Dashboard", contact_bank); ?></span></h3>
|
114 |
+
<div class="inside">
|
115 |
+
<div id="ux_dashboard" class="contact_bank_layout">
|
116 |
+
<?php
|
117 |
+
$form_count = $wpdb->get_var
|
118 |
+
(
|
119 |
+
"SELECT count(form_id) FROM ".contact_bank_contact_form()
|
120 |
+
);
|
|
|
|
|
|
|
|
|
121 |
if($form_count < 1)
|
122 |
{
|
123 |
?>
|
126 |
</a>
|
127 |
<?php
|
128 |
}
|
129 |
+
?>
|
130 |
+
<a class="btn btn-info" href="#"
|
131 |
+
onclick="delete_forms();"><?php _e("Delete All Forms", contact_bank); ?>
|
132 |
+
</a>
|
133 |
+
<a class="btn btn-danger" href="#"
|
134 |
+
onclick="restore_factory_settings();"><?php _e("Restore Factory Settings", contact_bank); ?>
|
135 |
+
</a>
|
136 |
+
<div class="separator-doubled" style="margin-bottom: 5px;"></div>
|
137 |
+
<a rel="prettyPhoto[contact]" href="<?php echo CONTACT_BK_PLUGIN_URL . "/assets/images/how-to-setup-short-code-cb.png";?>">How to setup Short-Codes for Contact Bank into your WordPress Page/Post?</a>
|
138 |
+
<div class="fluid-layout">
|
139 |
+
<div class="layout-span12" >
|
140 |
+
<div class="widget-layout">
|
141 |
+
<div class="widget-layout-title">
|
142 |
+
<h4>
|
143 |
+
<?php _e("Form", contact_bank); ?>
|
144 |
+
</h4>
|
145 |
+
</div>
|
146 |
+
<div class="widget-layout-body">
|
147 |
+
<table class="table table-striped" id="data-table-form">
|
148 |
+
<thead>
|
149 |
+
<tr>
|
150 |
+
<th style="width: 15%"><?php _e("Form", contact_bank); ?></th>
|
151 |
+
<th style="width: 30%"><?php _e("Shortcode", contact_bank); ?></th>
|
152 |
+
<th style="width: 15%"><?php _e("Total Controls", contact_bank); ?></th>
|
153 |
+
<th style="width: 40%" style="padding-left: 5%;"></th>
|
154 |
+
</tr>
|
155 |
+
</thead>
|
156 |
+
<tbody>
|
157 |
+
<?php
|
158 |
+
global $wpdb;
|
159 |
+
$form_data = $wpdb->get_results
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
(
|
161 |
+
"SELECT * FROM " . contact_bank_contact_form()
|
|
|
|
|
|
|
|
|
|
|
162 |
);
|
163 |
+
for ($flag = 0; $flag < count($form_data); $flag++)
|
164 |
+
{
|
165 |
+
$total_control = $wpdb->get_var
|
166 |
+
(
|
167 |
+
$wpdb->prepare
|
168 |
+
(
|
169 |
+
" SELECT count(" . contact_bank_contact_form() . ".form_id) FROM " . contact_bank_contact_form() . " JOIN ". create_control_Table() . " ON " . create_control_Table() .".form_id = ".contact_bank_contact_form().
|
170 |
+
".form_id WHERE " . contact_bank_contact_form() . ".form_id = %d",
|
171 |
+
$form_data[$flag]->form_id
|
172 |
+
)
|
173 |
+
);
|
174 |
+
?>
|
175 |
+
<tr>
|
176 |
+
<td>
|
177 |
+
<?php echo $form_data[$flag]->form_name; ?>
|
178 |
+
</td>
|
179 |
+
<td>
|
180 |
+
<?php echo "[contact_bank form_id=" . $form_data[$flag]->form_id . "]"; ?>
|
181 |
+
</td>
|
182 |
+
<td>
|
183 |
+
<?php echo $total_control;?>
|
184 |
+
</td>
|
185 |
+
<td>
|
186 |
+
<a href="admin.php?page=contact_bank&form_id=<?php echo $form_data[$flag]->form_id; ?>"
|
187 |
+
class="btn hovertip"
|
188 |
+
data-original-title="<?php _e("Edit Form", contact_bank) ?>">
|
189 |
+
<i class="icon-pencil"></i>
|
190 |
+
</a>
|
191 |
+
<a href="admin.php?page=layout_settings&form_id=<?php echo $form_data[$flag]->form_id; ?>"
|
192 |
+
class="btn hovertip"
|
193 |
+
data-original-title="<?php _e("Global Settings", contact_bank) ?>">
|
194 |
+
<i class="icon-wrench"></i>
|
195 |
+
</a>
|
196 |
+
<a href="admin.php?page=contact_email&form_id=<?php echo $form_data[$flag]->form_id; ?>"
|
197 |
+
class="btn hovertip"
|
198 |
+
data-original-title="<?php _e("Email Settings", contact_bank) ?>">
|
199 |
+
<i class="icon-envelope"></i>
|
200 |
+
</a>
|
201 |
+
<a href="admin.php?page=frontend_data&form_id=<?php echo $form_data[$flag]->form_id; ?>"
|
202 |
+
class="btn hovertip"
|
203 |
+
data-original-title="<?php _e("Form Entries", contact_bank) ?>">
|
204 |
+
<i class="icon-tasks"></i>
|
205 |
+
</a>
|
206 |
+
<a href="admin.php?page=form_preview&form_id=<?php echo $form_data[$flag]->form_id; ?>"
|
207 |
+
class="btn hovertip"
|
208 |
+
data-original-title="<?php _e("Form Preview", contact_bank) ?>">
|
209 |
+
<i class="icon-eye-open"></i>
|
210 |
+
</a>
|
211 |
+
<a herf="#" onclick="delete_form(<?php echo $form_data[$flag]->form_id; ?>);"
|
|
|
|
|
|
|
212 |
class="btn hovertip"
|
213 |
+
data-original-title="<?php _e("Delete Form", contact_bank) ?>">
|
214 |
+
<i class="icon-trash"></i>
|
215 |
+
</a>
|
216 |
+
|
217 |
+
</td>
|
218 |
+
</tr>
|
219 |
+
<?php
|
220 |
+
}
|
221 |
+
?>
|
222 |
+
</tbody>
|
223 |
+
</table>
|
224 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
225 |
</div>
|
226 |
</div>
|
227 |
</div>
|
230 |
</div>
|
231 |
</div>
|
232 |
</div>
|
233 |
+
<div id="postbox-container-1" class="postbox-container">
|
234 |
+
<div id="priority_side" class="meta-box-sortables">
|
235 |
+
<div id="contact_bank_get_started" class="postbox" >
|
236 |
+
<div class="handlediv" data-target="#uxdownload" title="Click to toggle" data-toggle="collapse"><br></div>
|
237 |
+
<h3 class="hndle"><span><?php _e("Need Support Help?", contact_bank); ?></span></h3>
|
238 |
+
<div class="inside">
|
239 |
+
<div id="uxdownload" class="contact_bank_getting_started">
|
240 |
+
<p>
|
241 |
+
We’re interested in hearing from you.</p>
|
242 |
+
|
243 |
+
<p>We will help you through the process and try to provide the answers.</p>
|
244 |
+
|
245 |
+
<p>If you need to know more about our services or have something to share, please feel free to contact us.
|
246 |
+
</p>
|
247 |
+
<p>We commit to responses within 24 hours on weekdays – generally within hours during week day work hours.</p>
|
248 |
+
<p>
|
249 |
+
<a class="btn btn-danger" href="http://tech-banker.com/get-in-touch/" target="_blank" style="text-decoration: none;"><?php _e("Let's get in touch!", contact_bank); ?></a>
|
250 |
+
</p>
|
251 |
+
<img src="<?php echo CONTACT_BK_PLUGIN_URL . "/assets/images/img.png";?>" style="max-width:100%;cursor: pointer;" />
|
252 |
+
<p>
|
253 |
+
<a class="btn btn-danger" href="http://tech-banker.com/contact-bank/" target="_blank" style="text-decoration: none;"><?php _e("Order Now!", contact_bank); ?></a>
|
254 |
+
</p>
|
255 |
+
</div>
|
256 |
</div>
|
257 |
</div>
|
258 |
</div>
|
259 |
</div>
|
260 |
</div>
|
261 |
</div>
|
262 |
+
<script type="text/javascript">
|
263 |
+
jQuery(".hovertip").tooltip();
|
264 |
+
jQuery(document).ready(function()
|
265 |
+
{
|
266 |
+
jQuery( ".contact-bank-video-link").click( function( event ) {
|
|
|
|
|
|
|
|
|
|
|
267 |
|
268 |
+
event.preventDefault();
|
269 |
+
|
270 |
+
var target = jQuery( this ).data( "video-id" );
|
271 |
+
|
272 |
+
jQuery( "." + target ).dialog(
|
273 |
+
{
|
274 |
+
dialogClass: "wp-dialog contact-bank-video-popup",
|
275 |
+
modal: true,
|
276 |
+
closeOnEscape: true,
|
277 |
+
width: "auto",
|
278 |
+
resizable: false,
|
279 |
+
draggable: false,
|
280 |
+
create: function( event, ui ) {
|
281 |
+
jQuery(this).css("maxWidth", "853px");
|
282 |
+
},
|
283 |
+
open: function(event, ui) {
|
284 |
+
jQuery(".ui-widget-overlay").bind("click", function () {
|
285 |
+
jQuery(this).siblings(".ui-dialog").find(".ui-dialog-content").dialog("close");
|
286 |
+
});
|
287 |
+
}
|
288 |
}
|
289 |
+
);
|
290 |
+
jQuery(".ui-dialog :button").blur();
|
291 |
+
|
292 |
+
});
|
293 |
+
jQuery("a[rel^=\"prettyPhoto\"]").prettyPhoto
|
294 |
+
({
|
295 |
+
animation_speed: 1000,
|
296 |
+
slideshow: 4000,
|
297 |
+
autoplay_slideshow: false,
|
298 |
+
opacity: 0.80,
|
299 |
+
show_title: false,
|
300 |
+
allow_resize: true
|
301 |
+
});
|
302 |
+
<?php
|
303 |
+
if($popup == "")
|
304 |
+
{
|
305 |
+
?>
|
306 |
+
jQuery("#contact_bank_popup").dialog(
|
307 |
+
{
|
308 |
+
dialogClass: "wp-dialog contact_bank_popup_box",
|
309 |
+
modal: true,
|
310 |
+
closeOnEscape: true,
|
311 |
+
title: contact_bank_popup.title,
|
312 |
+
width: "auto",
|
313 |
+
resizable: true,
|
314 |
+
draggable: false,
|
315 |
+
create: function ( event, ui ) {
|
316 |
+
jQuery( this ).css( "maxWidth", "600px" );
|
317 |
+
},
|
318 |
+
close: function(event)
|
319 |
+
{
|
320 |
+
jQuery( "#contact_bank_popup" ).dialog( "close" );
|
321 |
+
jQuery.post(ajaxurl, "param=update_option&action=add_contact_form_library", function(data)
|
322 |
+
{
|
323 |
+
});
|
324 |
+
}
|
325 |
+
|
326 |
+
});
|
327 |
+
<?php
|
328 |
+
}
|
329 |
+
?>
|
330 |
+
});
|
331 |
+
oTable = jQuery("#data-table-form").dataTable
|
332 |
({
|
333 |
+
"bJQueryUI": false,
|
334 |
+
"bAutoWidth": true,
|
335 |
+
"sPaginationType": "full_numbers",
|
336 |
+
"sDom": "<\"datatable-header\"fl>t<\"datatable-footer\"ip>",
|
337 |
+
"oLanguage": {
|
338 |
+
"sLengthMenu": "<span>Show entries:</span> _MENU_"
|
339 |
+
},
|
340 |
+
"aaSorting": [
|
341 |
+
[ 0, "asc" ]
|
342 |
+
],
|
343 |
+
"aoColumnDefs": [
|
344 |
+
{ "bSortable": false, "aTargets": [2] }
|
345 |
+
]
|
346 |
});
|
347 |
+
function delete_form(form_Id) {
|
348 |
+
var check_str = confirm("<?php _e( "Are you sure, you want to delete this Form?", contact_bank ); ?>");
|
349 |
+
if (check_str == true)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
350 |
{
|
351 |
+
jQuery.post(ajaxurl, "id=" + form_Id + "¶m=delete_form&action=add_contact_form_library", function (data)
|
352 |
+
{
|
353 |
+
location.reload();
|
354 |
+
});
|
355 |
+
}
|
356 |
+
}
|
357 |
+
function delete_forms() {
|
358 |
+
var checkstr = confirm("<?php _e( "Are you sure, you want to delete all Forms?", contact_bank ); ?>");
|
359 |
+
if (checkstr == true)
|
360 |
+
{
|
361 |
+
jQuery.post(ajaxurl, "param=delete_forms&action=add_contact_form_library", function (data) {
|
362 |
location.reload();
|
363 |
+
});
|
364 |
+
}
|
365 |
}
|
366 |
+
function restore_factory_settings() {
|
367 |
+
alert("<?php _e("This Feature is only available in Paid Premium Edition!", contact_bank ); ?>");
|
|
|
|
|
|
|
|
|
|
|
|
|
368 |
}
|
369 |
+
function close_popup()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
370 |
{
|
371 |
+
jQuery( "#contact_bank_popup" ).dialog( "close" );
|
372 |
+
jQuery.post(ajaxurl, "param=update_option&action=add_new_album_library", function()
|
373 |
+
{
|
374 |
+
});
|
375 |
+
}
|
376 |
+
</script>
|
377 |
+
<?php
|
378 |
+
}
|
379 |
+
?>
|
views/shortcode.php
CHANGED
@@ -1,3 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<form id="shortcode" class="layout-form" method="post">
|
2 |
<div id="poststuff" style="width: 99% !important;">
|
3 |
<div id="post-body" class="metabox-holder">
|
@@ -16,4 +46,7 @@
|
|
16 |
</div>
|
17 |
</div>
|
18 |
</div>
|
19 |
-
</form>
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
global $wpdb,$current_user,$cb_user_role_permission;
|
3 |
+
$cb_role = $wpdb->prefix . "capabilities";
|
4 |
+
$current_user->role = array_keys($current_user->$cb_role);
|
5 |
+
$cb_role = $current_user->role[0];
|
6 |
+
switch($cb_role)
|
7 |
+
{
|
8 |
+
case "administrator":
|
9 |
+
$cb_user_role_permission = "manage_options";
|
10 |
+
break;
|
11 |
+
case "editor":
|
12 |
+
$cb_user_role_permission = "publish_pages";
|
13 |
+
break;
|
14 |
+
case "author":
|
15 |
+
$cb_user_role_permission = "publish_posts";
|
16 |
+
break;
|
17 |
+
case "contributor":
|
18 |
+
$cb_user_role_permission = "edit_posts";
|
19 |
+
break;
|
20 |
+
case "subscriber":
|
21 |
+
$cb_user_role_permission = "read";
|
22 |
+
break;
|
23 |
+
}
|
24 |
+
if (!current_user_can($cb_user_role_permission))
|
25 |
+
{
|
26 |
+
return;
|
27 |
+
}
|
28 |
+
else
|
29 |
+
{
|
30 |
+
?>
|
31 |
<form id="shortcode" class="layout-form" method="post">
|
32 |
<div id="poststuff" style="width: 99% !important;">
|
33 |
<div id="post-body" class="metabox-holder">
|
46 |
</div>
|
47 |
</div>
|
48 |
</div>
|
49 |
+
</form>
|
50 |
+
<?php
|
51 |
+
}
|
52 |
+
?>
|