Contact Bank: WordPress Form Builder for Contact Forms - Version 2.0.105

Version Description

  • Formatting Issue Fixed.
Download this release

Release Info

Developer contact-banker
Plugin Icon 128x128 Contact Bank: WordPress Form Builder for Contact Forms
Version 2.0.105
Comparing to
See all releases

Code changes from version 2.0.104 to 2.0.105

contact-bank.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Contact Bank Lite 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.104
8
  Author URI: http://tech-banker.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -580,136 +580,154 @@ function frontend_plugin_css_styles_contact_bank()
580
  }
581
  if(isset($_REQUEST["action"]))
582
  {
583
- switch($_REQUEST["action"])
584
- {
585
- case "add_contact_form_library":
586
- add_action( "admin_init", "add_contact_form_library");
587
- function add_contact_form_library()
588
- {
589
- global $wpdb,$current_user,$cb_user_role_permission;
590
- if (is_super_admin())
591
- {
592
- $cb_role = "administrator";
593
- }
594
- else
595
- {
596
- $cb_role = $wpdb->prefix . "capabilities";
597
- $current_user->role = array_keys($current_user->$cb_role);
598
- $cb_role = $current_user->role[0];
599
- }
600
- if(file_exists(CONTACT_BK_PLUGIN_DIR ."/lib/contact_view-class.php"))
601
- {
602
- include_once CONTACT_BK_PLUGIN_DIR . "/lib/contact_view-class.php";
603
- }
604
- }
605
- break;
606
- case "frontend_contact_form_library":
607
- add_action( "admin_init", "frontend_contact_form_library");
608
- function frontend_contact_form_library()
609
- {
610
- if(file_exists(CONTACT_BK_PLUGIN_DIR ."/lib/contact_bank_frontend-class.php"))
611
- {
 
 
 
 
612
  include_once CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_frontend-class.php";
613
- }
614
- }
615
- break;
616
- case "email_contact_form_library":
617
- add_action( "admin_init", "email_contact_form_library");
618
- function email_contact_form_library()
619
- {
620
- global $wpdb,$current_user,$cb_user_role_permission;
621
- if (is_super_admin())
622
- {
623
- $cb_role = "administrator";
624
- }
625
- else
626
- {
627
- $cb_role = $wpdb->prefix . "capabilities";
628
- $current_user->role = array_keys($current_user->$cb_role);
629
- $cb_role = $current_user->role[0];
630
- }
631
- if(file_exists(CONTACT_BK_PLUGIN_DIR ."/lib/contact_bank_email-class.php"))
632
- {
633
- include_once CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_email-class.php";
634
- }
635
- }
636
- break;
637
- case "email_management_contact_form_library":
638
- add_action( "admin_init", "email_management_contact_form_library");
639
- function email_management_contact_form_library()
640
- {
641
- if(file_exists(CONTACT_BK_PLUGIN_DIR ."/lib/contact_bank_email_management.php"))
642
- {
643
- include_once CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_email_management.php";
644
-
645
- }
646
- }
647
- break;
648
- case "frontend_data_contact_library":
649
- add_action( "admin_init", "frontend_data_contact_library");
650
- function frontend_data_contact_library()
651
- {
652
- global $wpdb,$current_user,$cb_user_role_permission;
653
- if (is_super_admin())
654
- {
655
- $cb_role = "administrator";
656
- }
657
- else
658
- {
659
- $cb_role = $wpdb->prefix . "capabilities";
660
- $current_user->role = array_keys($current_user->$cb_role);
661
- $cb_role = $current_user->role[0];
662
- }
663
- if(file_exists(CONTACT_BK_PLUGIN_DIR ."/lib/contact_frontend_data_class.php"))
664
- {
665
- include CONTACT_BK_PLUGIN_DIR . "/lib/contact_frontend_data_class.php";
666
- }
667
- }
668
- break;
669
-
 
 
 
 
 
 
 
 
 
670
  case "show_form_control_data_contact_library":
671
- add_action( "admin_init", "show_form_control_data_contact_library");
672
- function show_form_control_data_contact_library()
673
- {
674
- global $wpdb,$current_user,$cb_user_role_permission;
675
- if (is_super_admin())
676
- {
677
- $cb_role = "administrator";
678
- }
679
- else
680
- {
681
- $cb_role = $wpdb->prefix . "capabilities";
682
- $current_user->role = array_keys($current_user->$cb_role);
683
- $cb_role = $current_user->role[0];
684
- }
685
- if(file_exists(CONTACT_BK_PLUGIN_DIR ."/lib/contact_bank_show_form_control_data-class.php"))
686
- {
687
- include CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_show_form_control_data-class.php";
688
- }
689
- }
690
- break;
691
- case "layout_settings_contact_library":
692
- add_action( "admin_init", "layout_settings_contact_library");
693
- function layout_settings_contact_library()
694
- {
695
- global $wpdb,$current_user,$cb_user_role_permission;
696
- if (is_super_admin())
697
- {
698
- $cb_role = "administrator";
699
- }
700
- else
701
- {
702
- $cb_role = $wpdb->prefix . "capabilities";
703
- $current_user->role = array_keys($current_user->$cb_role);
704
- $cb_role = $current_user->role[0];
705
- }
706
- if(file_exists(CONTACT_BK_PLUGIN_DIR ."/lib/contact_bank_layout_settings-class.php"))
707
- {
708
- include CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_layout_settings-class.php";
709
- }
710
- }
711
- break;
712
- }
 
 
 
 
 
713
  }
714
  /*
715
  * Description : THESE FUNCTIONS USED FOR REPLACING TABLE NAMES
@@ -1212,19 +1230,19 @@ class Contact_Bank_Widget extends WP_Widget
1212
  ?>
1213
  <p><label for="<?php echo $this->get_field_id("title"); ?>"> Widget Title: <input class="widefat" id="<?php echo $this->get_field_id("title"); ?>" name="<?php echo $this->get_field_name("title"); ?>" type="text" value="<?php echo esc_attr($title); ?>" /></label></p>
1214
  <p><label for="<?php echo $this->get_field_id("form_id"); ?>"><?php _e("Select Form :", contact_bank); ?></label>
1215
- <select size="1" name="<?php echo $this->get_field_name("form_id"); ?>" id="<?php echo $this->get_field_id("form_id"); ?>" class="widefat">
1216
- <option value="0" ><?php _e("Select Form", contact_bank); ?></option>
1217
- <?php
1218
- if($form_data) {
1219
- foreach($form_data as $form)
1220
- {
1221
- echo "<option value=\"" . $form->form_id . "\"";
1222
- if ($form->form_id == $instance["form_id"]) echo "selected=\"selected\"";
1223
- echo ">" . stripslashes(html_entity_decode($form->form_name)) . "</option>" . "\n\t";
1224
- }
1225
- }
1226
- ?>
1227
- </select>
1228
  </p>
1229
  <?php
1230
  }
@@ -1239,26 +1257,26 @@ class Contact_Bank_Widget extends WP_Widget
1239
  {
1240
  global $wpdb;
1241
  $form_data = $wpdb->get_var
1242
- (
1243
- $wpdb->prepare
1244
- (
1245
- "SELECT count(*) FROM " .contact_bank_contact_form() . " WHERE form_id = %d",
1246
- $instance["form_id"]
1247
- )
1248
- );
1249
 
1250
  extract($args, EXTR_SKIP);
1251
  echo $before_widget;
1252
  $title = empty($instance["title"]) ? " " : apply_filters("widget_title", $instance["title"]);
1253
  if($form_data > 0)
1254
  {
1255
- if($instance["form_id"] != 0)
1256
- {
1257
- echo $before_title . $title . $after_title;
1258
- $shortcode_for_contact_bank_form = "[contact_bank form_id=" . $instance["form_id"] . " ]";
1259
- echo do_shortcode( $shortcode_for_contact_bank_form );
1260
- echo $after_widget;
1261
- }
1262
  }
1263
  }
1264
  }
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.105
8
  Author URI: http://tech-banker.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
580
  }
581
  if(isset($_REQUEST["action"]))
582
  {
583
+ switch($_REQUEST["action"])
584
+ {
585
+ case "add_contact_form_library":
586
+
587
+ add_action( "admin_init", "add_contact_form_library");
588
+ function add_contact_form_library()
589
+ {
590
+ global $wpdb,$current_user,$cb_user_role_permission;
591
+ if (is_super_admin())
592
+ {
593
+ $cb_role = "administrator";
594
+ }
595
+ else
596
+ {
597
+ $cb_role = $wpdb->prefix . "capabilities";
598
+ $current_user->role = array_keys($current_user->$cb_role);
599
+ $cb_role = $current_user->role[0];
600
+ }
601
+ if(file_exists(CONTACT_BK_PLUGIN_DIR ."/lib/contact_view-class.php"))
602
+ {
603
+ include_once CONTACT_BK_PLUGIN_DIR . "/lib/contact_view-class.php";
604
+ }
605
+ }
606
+
607
+ break;
608
+
609
+ case "frontend_contact_form_library":
610
+
611
+ add_action( "admin_init", "frontend_contact_form_library");
612
+ function frontend_contact_form_library()
613
+ {
614
+ if(file_exists(CONTACT_BK_PLUGIN_DIR ."/lib/contact_bank_frontend-class.php"))
615
+ {
616
  include_once CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_frontend-class.php";
617
+ }
618
+ }
619
+
620
+ break;
621
+
622
+ case "email_contact_form_library":
623
+
624
+ add_action( "admin_init", "email_contact_form_library");
625
+ function email_contact_form_library()
626
+ {
627
+ global $wpdb,$current_user,$cb_user_role_permission;
628
+ if (is_super_admin())
629
+ {
630
+ $cb_role = "administrator";
631
+ }
632
+ else
633
+ {
634
+ $cb_role = $wpdb->prefix . "capabilities";
635
+ $current_user->role = array_keys($current_user->$cb_role);
636
+ $cb_role = $current_user->role[0];
637
+ }
638
+ if(file_exists(CONTACT_BK_PLUGIN_DIR ."/lib/contact_bank_email-class.php"))
639
+ {
640
+ include_once CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_email-class.php";
641
+ }
642
+ }
643
+
644
+ break;
645
+
646
+ case "email_management_contact_form_library":
647
+
648
+ add_action( "admin_init", "email_management_contact_form_library");
649
+ function email_management_contact_form_library()
650
+ {
651
+ if(file_exists(CONTACT_BK_PLUGIN_DIR ."/lib/contact_bank_email_management.php"))
652
+ {
653
+ include_once CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_email_management.php";
654
+ }
655
+ }
656
+
657
+ break;
658
+
659
+ case "frontend_data_contact_library":
660
+
661
+ add_action( "admin_init", "frontend_data_contact_library");
662
+ function frontend_data_contact_library()
663
+ {
664
+ global $wpdb,$current_user,$cb_user_role_permission;
665
+ if (is_super_admin())
666
+ {
667
+ $cb_role = "administrator";
668
+ }
669
+ else
670
+ {
671
+ $cb_role = $wpdb->prefix . "capabilities";
672
+ $current_user->role = array_keys($current_user->$cb_role);
673
+ $cb_role = $current_user->role[0];
674
+ }
675
+ if(file_exists(CONTACT_BK_PLUGIN_DIR ."/lib/contact_frontend_data_class.php"))
676
+ {
677
+ include CONTACT_BK_PLUGIN_DIR . "/lib/contact_frontend_data_class.php";
678
+ }
679
+ }
680
+
681
+ break;
682
+
683
  case "show_form_control_data_contact_library":
684
+
685
+ add_action( "admin_init", "show_form_control_data_contact_library");
686
+ function show_form_control_data_contact_library()
687
+ {
688
+ global $wpdb,$current_user,$cb_user_role_permission;
689
+ if (is_super_admin())
690
+ {
691
+ $cb_role = "administrator";
692
+ }
693
+ else
694
+ {
695
+ $cb_role = $wpdb->prefix . "capabilities";
696
+ $current_user->role = array_keys($current_user->$cb_role);
697
+ $cb_role = $current_user->role[0];
698
+ }
699
+ if(file_exists(CONTACT_BK_PLUGIN_DIR ."/lib/contact_bank_show_form_control_data-class.php"))
700
+ {
701
+ include CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_show_form_control_data-class.php";
702
+ }
703
+ }
704
+
705
+ break;
706
+
707
+ case "layout_settings_contact_library":
708
+
709
+ add_action( "admin_init", "layout_settings_contact_library");
710
+ function layout_settings_contact_library()
711
+ {
712
+ global $wpdb,$current_user,$cb_user_role_permission;
713
+ if (is_super_admin())
714
+ {
715
+ $cb_role = "administrator";
716
+ }
717
+ else
718
+ {
719
+ $cb_role = $wpdb->prefix . "capabilities";
720
+ $current_user->role = array_keys($current_user->$cb_role);
721
+ $cb_role = $current_user->role[0];
722
+ }
723
+ if(file_exists(CONTACT_BK_PLUGIN_DIR ."/lib/contact_bank_layout_settings-class.php"))
724
+ {
725
+ include CONTACT_BK_PLUGIN_DIR . "/lib/contact_bank_layout_settings-class.php";
726
+ }
727
+ }
728
+
729
+ break;
730
+ }
731
  }
732
  /*
733
  * Description : THESE FUNCTIONS USED FOR REPLACING TABLE NAMES
1230
  ?>
1231
  <p><label for="<?php echo $this->get_field_id("title"); ?>"> Widget Title: <input class="widefat" id="<?php echo $this->get_field_id("title"); ?>" name="<?php echo $this->get_field_name("title"); ?>" type="text" value="<?php echo esc_attr($title); ?>" /></label></p>
1232
  <p><label for="<?php echo $this->get_field_id("form_id"); ?>"><?php _e("Select Form :", contact_bank); ?></label>
1233
+ <select size="1" name="<?php echo $this->get_field_name("form_id"); ?>" id="<?php echo $this->get_field_id("form_id"); ?>" class="widefat">
1234
+ <option value="0" ><?php _e("Select Form", contact_bank); ?></option>
1235
+ <?php
1236
+ if($form_data) {
1237
+ foreach($form_data as $form)
1238
+ {
1239
+ echo "<option value=\"" . $form->form_id . "\"";
1240
+ if ($form->form_id == $instance["form_id"]) echo "selected=\"selected\"";
1241
+ echo ">" . stripslashes(html_entity_decode($form->form_name)) . "</option>" . "\n\t";
1242
+ }
1243
+ }
1244
+ ?>
1245
+ </select>
1246
  </p>
1247
  <?php
1248
  }
1257
  {
1258
  global $wpdb;
1259
  $form_data = $wpdb->get_var
1260
+ (
1261
+ $wpdb->prepare
1262
+ (
1263
+ "SELECT count(*) FROM " .contact_bank_contact_form() . " WHERE form_id = %d",
1264
+ $instance["form_id"]
1265
+ )
1266
+ );
1267
 
1268
  extract($args, EXTR_SKIP);
1269
  echo $before_widget;
1270
  $title = empty($instance["title"]) ? " " : apply_filters("widget_title", $instance["title"]);
1271
  if($form_data > 0)
1272
  {
1273
+ if($instance["form_id"] != 0)
1274
+ {
1275
+ echo $before_title . $title . $after_title;
1276
+ $shortcode_for_contact_bank_form = "[contact_bank form_id=" . $instance["form_id"] . " ]";
1277
+ echo do_shortcode( $shortcode_for_contact_bank_form );
1278
+ echo $after_widget;
1279
+ }
1280
  }
1281
  }
1282
  }
frontend_views/contact_bank_forms.php CHANGED
@@ -273,7 +273,6 @@ $rand_value = RAND(10,10000);
273
  <strong><?php echo $form_settings_array[$form_id]["success_message"]; ?></strong>
274
  </span>
275
  </div>
276
-
277
  <div>
278
  <?php
279
  if($show_title == "true")
@@ -392,7 +391,7 @@ $rand_value = RAND(10,10000);
392
  ?>
393
  <div class="layout-controls layout_according_label_position hovertip" data-original-title="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_tooltip_txt"]; ?>">
394
  <?php
395
- foreach($rdl_ids as $key => $value )
396
  {
397
  if($key == "0")
398
  {
@@ -576,4 +575,4 @@ jQuery("#ux_frm_front_end_form_<?php echo $form_id ."_". $rand_value; ?>").valid
576
  });
577
  }
578
  });
579
- </script>
273
  <strong><?php echo $form_settings_array[$form_id]["success_message"]; ?></strong>
274
  </span>
275
  </div>
 
276
  <div>
277
  <?php
278
  if($show_title == "true")
391
  ?>
392
  <div class="layout-controls layout_according_label_position hovertip" data-original-title="<?php echo $control_settings_array[$form_fields[$flag]->column_dynamicId]["cb_tooltip_txt"]; ?>">
393
  <?php
394
+ foreach($rdl_ids as $key => $value )
395
  {
396
  if($key == "0")
397
  {
575
  });
576
  }
577
  });
578
+ </script>
includes/cb_checkbox.php CHANGED
@@ -21,30 +21,30 @@ else
21
  $form_settings = array();
22
  $control_id = $wpdb->get_var
23
  (
24
- $wpdb->prepare
25
- (
26
- "SELECT control_id FROM " .create_control_Table(). " where form_id= %d and field_id = %d and column_dynamicId = %d",
27
- $form_id,
28
- $field_type,
29
- $dynamicId
30
- )
31
  );
32
  if(count($control_id) != 0)
33
  {
34
- $form_data = $wpdb->get_results
35
- (
36
- $wpdb->prepare
37
- (
38
- "SELECT * FROM " .contact_bank_dynamic_settings_form(). " where dynamicId= %d",
39
- $control_id
40
- )
41
- );
42
- $form_settings[$dynamicId]["dynamic_id"] = $dynamicId;
43
- $form_settings[$dynamicId]["control_type"] = "1";
44
- for($flag = 0; $flag<count($form_data);$flag++)
45
- {
46
- $form_settings[$dynamicId][$form_data[$flag]->dynamic_settings_key] = $form_data[$flag]->dynamic_settings_value;
47
- }
48
  }
49
  ?>
50
  <form id="ux_frm_check_box_control" action="#" method="post" class="layout-form">
@@ -135,37 +135,37 @@ else
135
  }
136
  else
137
  {
138
- ?>
139
  <div class="layout-control-group" style="overflow: hidden;max-height: 110px;display:none" id="bind_dropdown_<?php echo $dynamicId; ?>">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
140
  <?php
141
  }
142
  ?>
 
 
143
  <div class="layout-controls">
144
- <select id="dropdown_ddl_option_<?php echo $dynamicId; ?>" class="layout-span9">
145
- <?php
146
- foreach(unserialize($form_settings[$dynamicId]["cb_checkbox_option_id"]) as $key => $value )
147
- {
148
- ?>
149
- <option value="<?php echo $value; ?>"><?php echo $options_value[$key]; ?></option>
150
- <?php
151
- }
152
- ?>
153
- </select>
154
- <input class="btn btn-info layout-span2" style="margin-left:10px;" value="<?php _e( "Delete", contact_bank ); ?>" type="button" id="ddl_options_btn_del_<?php echo $dynamicId; ?>" onclick="delete_ddl_options(<?php echo $dynamicId; ?>);" name="ddl_options_btn_del_<?php echo $dynamicId; ?>" />
155
  </div>
156
  </div>
157
- <?php
158
- }
159
- ?>
160
- <div class="layout-control-group">
161
- <label class="layout-control-label"><?php _e( "Admin Label", contact_bank ); ?> :</label>
162
- <div class="layout-controls">
163
- <input type="text" value="<?php echo isset($form_settings[$dynamicId]["cb_admin_label"]) ? $form_settings[$dynamicId]["cb_admin_label"] : _e( "Untitled", contact_bank ); ?>" class="layout-span12" id="ux_admin_label_<?php echo $dynamicId; ?>" class="layout-span12" id="ux_admin_label_<?php echo $dynamicId; ?>" placeholder="<?php _e( "Enter Admin Label", contact_bank ); ?>" name="ux_admin_label_<?php echo $dynamicId; ?>" />
164
- </div>
165
- </div>
166
- <div class="layout-control-group">
167
- <label class="layout-control-label"><?php _e( "Do not show in the email", contact_bank ); ?> :</label>
168
- <div class="layout-controls">
169
  <?php
170
  if(isset($form_settings[$dynamicId]["cb_show_email"]))
171
  {
@@ -189,11 +189,11 @@ else
189
  <?php
190
  }
191
  ?>
 
192
  </div>
 
193
  </div>
194
- <input type="hidden" id="ux_hd_textbox_dynamic_id" name="ux_hd_textbox_dynamic_id" value="<?php echo $dynamicId; ?>"/>
195
  </div>
196
- </div>
197
  <div class="layout-control-group">
198
  <input type="submit" class="btn btn-info layout-span3" value="<?php _e( "Save Settings", contact_bank ); ?>" />
199
  </div>
21
  $form_settings = array();
22
  $control_id = $wpdb->get_var
23
  (
24
+ $wpdb->prepare
25
+ (
26
+ "SELECT control_id FROM " .create_control_Table(). " where form_id= %d and field_id = %d and column_dynamicId = %d",
27
+ $form_id,
28
+ $field_type,
29
+ $dynamicId
30
+ )
31
  );
32
  if(count($control_id) != 0)
33
  {
34
+ $form_data = $wpdb->get_results
35
+ (
36
+ $wpdb->prepare
37
+ (
38
+ "SELECT * FROM " .contact_bank_dynamic_settings_form(). " where dynamicId= %d",
39
+ $control_id
40
+ )
41
+ );
42
+ $form_settings[$dynamicId]["dynamic_id"] = $dynamicId;
43
+ $form_settings[$dynamicId]["control_type"] = "1";
44
+ for($flag = 0; $flag<count($form_data);$flag++)
45
+ {
46
+ $form_settings[$dynamicId][$form_data[$flag]->dynamic_settings_key] = $form_data[$flag]->dynamic_settings_value;
47
+ }
48
  }
49
  ?>
50
  <form id="ux_frm_check_box_control" action="#" method="post" class="layout-form">
135
  }
136
  else
137
  {
138
+ ?>
139
  <div class="layout-control-group" style="overflow: hidden;max-height: 110px;display:none" id="bind_dropdown_<?php echo $dynamicId; ?>">
140
+ <?php
141
+ }
142
+ ?>
143
+ <div class="layout-controls">
144
+ <select id="dropdown_ddl_option_<?php echo $dynamicId; ?>" class="layout-span9">
145
+ <?php
146
+ foreach(unserialize($form_settings[$dynamicId]["cb_checkbox_option_id"]) as $key => $value )
147
+ {
148
+ ?>
149
+ <option value="<?php echo $value; ?>"><?php echo $options_value[$key]; ?></option>
150
+ <?php
151
+ }
152
+ ?>
153
+ </select>
154
+ <input class="btn btn-info layout-span2" style="margin-left:10px;" value="<?php _e( "Delete", contact_bank ); ?>" type="button" id="ddl_options_btn_del_<?php echo $dynamicId; ?>" onclick="delete_ddl_options(<?php echo $dynamicId; ?>);" name="ddl_options_btn_del_<?php echo $dynamicId; ?>" />
155
+ </div>
156
+ </div>
157
  <?php
158
  }
159
  ?>
160
+ <div class="layout-control-group">
161
+ <label class="layout-control-label"><?php _e( "Admin Label", contact_bank ); ?> :</label>
162
  <div class="layout-controls">
163
+ <input type="text" value="<?php echo isset($form_settings[$dynamicId]["cb_admin_label"]) ? $form_settings[$dynamicId]["cb_admin_label"] : _e( "Untitled", contact_bank ); ?>" class="layout-span12" id="ux_admin_label_<?php echo $dynamicId; ?>" class="layout-span12" id="ux_admin_label_<?php echo $dynamicId; ?>" placeholder="<?php _e( "Enter Admin Label", contact_bank ); ?>" name="ux_admin_label_<?php echo $dynamicId; ?>" />
 
 
 
 
 
 
 
 
 
 
164
  </div>
165
  </div>
166
+ <div class="layout-control-group">
167
+ <label class="layout-control-label"><?php _e( "Do not show in the email", contact_bank ); ?> :</label>
168
+ <div class="layout-controls">
 
 
 
 
 
 
 
 
 
169
  <?php
170
  if(isset($form_settings[$dynamicId]["cb_show_email"]))
171
  {
189
  <?php
190
  }
191
  ?>
192
+ </div>
193
  </div>
194
+ <input type="hidden" id="ux_hd_textbox_dynamic_id" name="ux_hd_textbox_dynamic_id" value="<?php echo $dynamicId; ?>"/>
195
  </div>
 
196
  </div>
 
197
  <div class="layout-control-group">
198
  <input type="submit" class="btn btn-info layout-span3" value="<?php _e( "Save Settings", contact_bank ); ?>" />
199
  </div>
includes/cb_dropdown.php CHANGED
@@ -130,13 +130,13 @@ else
130
  if(count($options_values) > 0)
131
  {
132
  ?>
133
- <div class="layout-control-group" style="overflow: hidden;max-height: 110px;" id="bind_dropdown_<?php echo $dynamicId; ?>">
134
  <?php
135
  }
136
  else
137
  {
138
  ?>
139
- <div class="layout-control-group" style="overflow: hidden;max-height: 110px;display:none" id="bind_dropdown_<?php echo $dynamicId; ?>">
140
  <?php
141
  }
142
  ?>
130
  if(count($options_values) > 0)
131
  {
132
  ?>
133
+ <div class="layout-control-group" style="overflow: hidden;max-height: 110px;" id="bind_dropdown_<?php echo $dynamicId; ?>">
134
  <?php
135
  }
136
  else
137
  {
138
  ?>
139
+ <div class="layout-control-group" style="overflow: hidden;max-height: 110px;display:none" id="bind_dropdown_<?php echo $dynamicId; ?>">
140
  <?php
141
  }
142
  ?>
includes/cb_textarea.php CHANGED
@@ -48,202 +48,177 @@ else
48
  }
49
  ?>
50
  <form id="ux_frm_text_area_control" action="#" method="post" class="layout-form">
51
- <div class="fluid-layout">
52
- <div class="layout-span12">
53
- <div class="widget-layout">
54
- <div class="widget-layout-title">
55
- <h4><?php _e( "Paragraph Text", contact_bank ); ?></h4>
56
- </div>
57
- <div class="widget-layout-body">
58
- <div class="layout-control-group">
59
- <label class="layout-control-label"><?php _e( "Label", contact_bank ); ?> :</label>
60
- <div class="layout-controls">
61
- <input value="<?php echo isset($form_settings[$dynamicId]["cb_label_value"]) ? $form_settings[$dynamicId]["cb_label_value"] : _e( "Untitled", contact_bank ); ?>"
62
- onkeyup="enter_admin_label(<?php echo $dynamicId; ?>);" placeholder="<?php _e( "Enter label", contact_bank);?>"
63
- type="text" class="layout-span12" id="ux_label_text_<?php echo $dynamicId; ?>" name="ux_label_text_<?php echo $dynamicId; ?>" />
64
- </div>
65
- </div>
66
- <div class="layout-control-group">
67
- <label class="layout-control-label"><?php _e("Description", contact_bank); ?> :</label>
68
- <div class="layout-controls">
69
- <textarea placeholder="<?php _e( "Enter Description", contact_bank);?>"
70
- class="layout-span12" id="ux_description_control_<?php echo $dynamicId; ?>"
71
- name="ux_description_control_<?php echo $dynamicId; ?>" ><?php echo isset($form_settings[$dynamicId]["cb_description"]) ? $form_settings[$dynamicId]["cb_description"] : ""; ?></textarea>
72
- </div>
73
- </div>
74
- <div class="layout-control-group">
75
- <label class="layout-control-label"><?php _e( "Required", contact_bank ); ?> :</label>
76
- <div class="layout-controls" style="margin-top:7px;">
77
- <?php
78
- if(isset($form_settings[$dynamicId]["cb_control_required"]))
79
- {
80
- if($form_settings[$dynamicId]["cb_control_required"] == "1")
81
- {
82
- ?>
83
- <input type="radio" id="ux_required_control_<?php echo $dynamicId; ?>"
84
- name="ux_required_control_radio_<?php echo $dynamicId; ?>" value="1" checked="checked" />
85
- <label style="vertical-align: text-bottom;">
86
- <?php _e( "Required", contact_bank ); ?>
87
- </label>
88
- <input type="radio" id="ux_required_<?php echo $dynamicId; ?>"
89
- name="ux_required_control_radio_<?php echo $dynamicId; ?>" value="0"/>
90
- <label style="vertical-align: text-bottom;">
91
- <?php _e( "Not Required", contact_bank ); ?>
92
- </label>
93
- <?php
94
- }
95
- else if($form_settings[$dynamicId]["cb_control_required"] == "0")
96
- {
97
- ?>
98
- <input type="radio" id="ux_required_control_<?php echo $dynamicId; ?>"
99
- name="ux_required_control_radio_<?php echo $dynamicId; ?>" value="1" />
100
- <label style="vertical-align: text-bottom;">
101
- <?php _e( "Required", contact_bank ); ?>
102
- </label>
103
- <input type="radio" id="ux_required_<?php echo $dynamicId; ?>"
104
- name="ux_required_control_radio_<?php echo $dynamicId; ?>" value="0" checked="checked" />
105
- <label style="vertical-align: text-bottom;">
106
- <?php _e( "Not Required", contact_bank ); ?>
107
- </label>
108
- <?php
109
- }
110
- }
111
- else
112
- {
113
- ?>
114
- <input type="radio" id="ux_required_control_<?php echo $dynamicId; ?>"
115
- name="ux_required_control_radio_<?php echo $dynamicId; ?>" value="1" />
116
- <label style="vertical-align: text-bottom;">
117
- <?php _e( "Required", contact_bank ); ?>
118
- </label>
119
- <input type="radio" id="ux_required_<?php echo $dynamicId; ?>"
120
- name="ux_required_control_radio_<?php echo $dynamicId; ?>" value="0" checked="checked" />
121
- <label style="vertical-align: text-bottom;">
122
- <?php _e( "Not Required", contact_bank ); ?>
123
- </label>
124
- <?php
125
- }
126
- ?>
127
- </div>
128
- </div>
129
- <div class="layout-control-group">
130
- <label class="layout-control-label"><?php _e("Tooltip text", contact_bank); ?> :</label>
131
- <div class="layout-controls">
132
- <input placeholder="<?php _e( "This Feature is only available in Paid Premium Edition!", contact_bank);?>" type="text"
133
- class="layout-span12" id="ux_tooltip_control_<?php echo $dynamicId; ?>"
134
- name="ux_tooltip_control_<?php echo $dynamicId; ?>" readonly="readonly"
135
- />
136
- </div>
137
- </div>
138
- <div class="layout-control-group">
139
- <label class="layout-control-label"><?php _e( "Place Holder", contact_bank ); ?> :</label>
140
- <div class="layout-controls">
141
- <input placeholder="<?php _e( "Enter Place Holder", contact_bank);?>" class="layout-span12"
142
- type="text" id="ux_default_value_<?php echo $dynamicId; ?>" name="ux_default_value_<?php echo $dynamicId; ?>"
143
- value="<?php echo isset($form_settings[$dynamicId]["cb_default_txt_val"]) ? $form_settings[$dynamicId]["cb_default_txt_val"] : ""; ?>"/>
144
- </div>
145
- </div>
146
- <div class="layout-control-group">
147
- <label class="layout-control-label"><?php _e( "Admin Label", contact_bank ); ?> : </label>
148
- <div class="layout-controls">
149
- <input value="<?php echo isset($form_settings[$dynamicId]["cb_admin_label"]) ? $form_settings[$dynamicId]["cb_admin_label"] : _e( "Untitled", contact_bank ); ?>"
150
- placeholder="<?php _e( "Enter Admin Label", contact_bank);?>" class="layout-span12" type="text" id="ux_admin_label_<?php echo $dynamicId; ?>" name="ux_admin_label_<?php echo $dynamicId; ?>" />
151
- </div>
152
- </div>
153
- <div class="layout-control-group">
154
- <label class="layout-control-label"><?php _e( "Do not show in the email", contact_bank ); ?> : </label>
155
- <div class="layout-controls">
156
- <?php
157
- if(isset($form_settings[$dynamicId]["cb_show_email"]))
158
- {
159
- if($form_settings[$dynamicId]["cb_show_email"] == "1")
160
- {
161
- ?>
162
- <input type="checkbox" checked="checked" id="ux_show_email_<?php echo $dynamicId; ?>"
163
- name="ux_show_email_<?php echo $dynamicId; ?>" style="margin-top: 10px;" value="1">
164
- <?php
165
- }
166
- else
167
- {
168
- ?>
169
- <input type="checkbox" id="ux_show_email_<?php echo $dynamicId; ?>"
170
- name="ux_show_email_<?php echo $dynamicId; ?>" style="margin-top: 10px;" value="0">
171
- <?php
172
- }
173
- }
174
- else
175
- {
176
- ?>
177
- <input type="checkbox" id="ux_show_email_<?php echo $dynamicId; ?>"
178
- name="ux_show_email_<?php echo $dynamicId; ?>" style="margin-top: 10px;" value="0">
179
- <?php
180
- }
181
- ?>
182
- </div>
183
- </div>
184
- <div class="layout-control-group">
185
- <label class="layout-control-label" style="padding-top: 5px"><?php _e( "Add a filter", contact_bank ); ?> :</label>
186
- <div class="layout-controls" style="padding-top:5px;">
187
- <input type="checkbox" value="0" id="ux_checkbox_alpha_filter"
188
- name="ux_checkbox_alpha_filter"/>
189
- <span class="rdl"><?php _e( "Alpha", contact_bank ); ?></span>
190
 
191
- <input type="checkbox" id="ux_checkbox_alpha_num_filter"
192
- name="ux_checkbox_alpha_num_filter" value="0" />
193
- <span class="rdl"><?php _e( "Alpha Numeric", contact_bank ); ?></span>
194
-
195
- <input type="checkbox" value="0" id="ux_checkbox_digit_filter"
196
- name="ux_checkbox_digit_filter" value="Digits" />
197
- <span class="rdl"><?php _e( "Digits", contact_bank ); ?></span>
198
-
199
- <input type="checkbox" id="ux_checkbox_strip_tag_filter"
200
- name="ux_checkbox_strip_tag_filter" value="0" />
201
- <span class="rdl"><?php _e( "Strip Tags", contact_bank ); ?></span>
202
-
203
- <input type="checkbox" id="ux_checkbox_trim_filter"
204
- name="ux_checkbox_trim_filter" value="0" />
205
- <span class="rdl"><?php _e( "Trim", contact_bank ); ?></span>
206
- <br>
207
- <i class="widget_premium_feature_contact"><?php _e(" (Available in Premium Edition)", contact_bank); ?></i>
208
- </div>
209
-
210
- </div>
211
- <input type="hidden" id="ux_hd_textbox_dynamic_id" name="ux_hd_textbox_dynamic_id" value="<?php echo $dynamicId; ?>"/>
212
- </div>
213
- </div>
214
- <div class="layout-control-group">
215
- <input type="submit" class="btn btn-info layout-span3" value="<?php _e( "Save Settings", contact_bank ); ?>" />
216
- </div>
217
- </div>
218
- </div>
219
  </form>
220
  <a class="closeButtonLightbox" onclick="CloseLightbox();"></a>
221
  <script type="text/javascript">
222
- var dynamicId = "<?php echo $dynamicId; ?>";
223
- var controlId = "<?php echo $control_id; ?>";
224
- jQuery("#ux_frm_text_area_control").validate
225
- ({
226
- submitHandler: function(form)
227
- {
228
- jQuery.post(ajaxurl, jQuery(form).serialize() + "&controlId="+controlId+"&form_id="+form_id+"&form_settings="+JSON.stringify(<?php echo json_encode($form_settings) ?>)+"&event=update&param=save_textarea_control&action=add_contact_form_library", function()
229
- {
230
- jQuery("#control_label_"+dynamicId).html(jQuery("#ux_label_text_"+dynamicId).val()+" :");
231
- jQuery("#txt_description_"+dynamicId).html(jQuery("#ux_description_control_"+dynamicId).val());
232
- jQuery("#ux_textarea_control_"+dynamicId).attr("placeholder",jQuery("#ux_default_value_"+dynamicId).val());
233
- jQuery("#show_tooltip"+dynamicId).attr("data-original-title",jQuery("#ux_tooltip_control_"+dynamicId).val());
234
- if(jQuery("#ux_required_control_"+dynamicId).prop("checked") == true)
235
- {
236
- jQuery("#control_label_"+dynamicId).append("<span class=\"error\">*</span>");
237
- }
238
- CloseLightbox();
239
- });
240
- }
241
- });
242
- jQuery("#ux_checkbox_alpha_filter").attr("disabled","disabled");
243
- jQuery("#ux_checkbox_alpha_num_filter").attr("disabled","disabled");
244
- jQuery("#ux_checkbox_digit_filter").attr("disabled","disabled");
245
- jQuery("#ux_checkbox_strip_tag_filter").attr("disabled","disabled");
246
- jQuery("#ux_checkbox_trim_filter").attr("disabled","disabled");
247
  </script>
248
  <?php
249
  }
48
  }
49
  ?>
50
  <form id="ux_frm_text_area_control" action="#" method="post" class="layout-form">
51
+ <div class="fluid-layout">
52
+ <div class="layout-span12">
53
+ <div class="widget-layout">
54
+ <div class="widget-layout-title">
55
+ <h4><?php _e( "Paragraph Text", contact_bank ); ?></h4>
56
+ </div>
57
+ <div class="widget-layout-body">
58
+ <div class="layout-control-group">
59
+ <label class="layout-control-label"><?php _e( "Label", contact_bank ); ?> :</label>
60
+ <div class="layout-controls">
61
+ <input value="<?php echo isset($form_settings[$dynamicId]["cb_label_value"]) ? $form_settings[$dynamicId]["cb_label_value"] : _e( "Untitled", contact_bank ); ?>" onkeyup="enter_admin_label(<?php echo $dynamicId; ?>);" placeholder="<?php _e( "Enter label", contact_bank);?>" type="text" class="layout-span12" id="ux_label_text_<?php echo $dynamicId; ?>" name="ux_label_text_<?php echo $dynamicId; ?>" />
62
+ </div>
63
+ </div>
64
+ <div class="layout-control-group">
65
+ <label class="layout-control-label"><?php _e("Description", contact_bank); ?> :</label>
66
+ <div class="layout-controls">
67
+ <textarea placeholder="<?php _e( "Enter Description", contact_bank);?>" class="layout-span12" id="ux_description_control_<?php echo $dynamicId; ?>" name="ux_description_control_<?php echo $dynamicId; ?>" ><?php echo isset($form_settings[$dynamicId]["cb_description"]) ? $form_settings[$dynamicId]["cb_description"] : ""; ?></textarea>
68
+ </div>
69
+ </div>
70
+ <div class="layout-control-group">
71
+ <label class="layout-control-label"><?php _e( "Required", contact_bank ); ?> :</label>
72
+ <div class="layout-controls" style="margin-top:7px;">
73
+ <?php
74
+ if(isset($form_settings[$dynamicId]["cb_control_required"]))
75
+ {
76
+ if($form_settings[$dynamicId]["cb_control_required"] == "1")
77
+ {
78
+ ?>
79
+ <input type="radio" id="ux_required_control_<?php echo $dynamicId; ?>" name="ux_required_control_radio_<?php echo $dynamicId; ?>" value="1" checked="checked" />
80
+ <label style="vertical-align: text-bottom;">
81
+ <?php _e( "Required", contact_bank ); ?>
82
+ </label>
83
+ <input type="radio" id="ux_required_<?php echo $dynamicId; ?>" name="ux_required_control_radio_<?php echo $dynamicId; ?>" value="0"/>
84
+ <label style="vertical-align: text-bottom;">
85
+ <?php _e( "Not Required", contact_bank ); ?>
86
+ </label>
87
+ <?php
88
+ }
89
+ else if($form_settings[$dynamicId]["cb_control_required"] == "0")
90
+ {
91
+ ?>
92
+ <input type="radio" id="ux_required_control_<?php echo $dynamicId; ?>" name="ux_required_control_radio_<?php echo $dynamicId; ?>" value="1" />
93
+ <label style="vertical-align: text-bottom;">
94
+ <?php _e( "Required", contact_bank ); ?>
95
+ </label>
96
+ <input type="radio" id="ux_required_<?php echo $dynamicId; ?>" name="ux_required_control_radio_<?php echo $dynamicId; ?>" value="0" checked="checked" />
97
+ <label style="vertical-align: text-bottom;">
98
+ <?php _e( "Not Required", contact_bank ); ?>
99
+ </label>
100
+ <?php
101
+ }
102
+ }
103
+ else
104
+ {
105
+ ?>
106
+ <input type="radio" id="ux_required_control_<?php echo $dynamicId; ?>" name="ux_required_control_radio_<?php echo $dynamicId; ?>" value="1" />
107
+ <label style="vertical-align: text-bottom;">
108
+ <?php _e( "Required", contact_bank ); ?>
109
+ </label>
110
+ <input type="radio" id="ux_required_<?php echo $dynamicId; ?>" name="ux_required_control_radio_<?php echo $dynamicId; ?>" value="0" checked="checked" />
111
+ <label style="vertical-align: text-bottom;">
112
+ <?php _e( "Not Required", contact_bank ); ?>
113
+ </label>
114
+ <?php
115
+ }
116
+ ?>
117
+ </div>
118
+ </div>
119
+ <div class="layout-control-group">
120
+ <label class="layout-control-label"><?php _e("Tooltip text", contact_bank); ?> :</label>
121
+ <div class="layout-controls">
122
+ <input placeholder="<?php _e( "This Feature is only available in Paid Premium Edition!", contact_bank);?>" type="text" class="layout-span12" id="ux_tooltip_control_<?php echo $dynamicId; ?>" name="ux_tooltip_control_<?php echo $dynamicId; ?>" readonly="readonly" />
123
+ </div>
124
+ </div>
125
+ <div class="layout-control-group">
126
+ <label class="layout-control-label"><?php _e( "Place Holder", contact_bank ); ?> :</label>
127
+ <div class="layout-controls">
128
+ <input placeholder="<?php _e( "Enter Place Holder", contact_bank);?>" class="layout-span12" type="text" id="ux_default_value_<?php echo $dynamicId; ?>" name="ux_default_value_<?php echo $dynamicId; ?>" value="<?php echo isset($form_settings[$dynamicId]["cb_default_txt_val"]) ? $form_settings[$dynamicId]["cb_default_txt_val"] : ""; ?>"/>
129
+ </div>
130
+ </div>
131
+ <div class="layout-control-group">
132
+ <label class="layout-control-label"><?php _e( "Admin Label", contact_bank ); ?> : </label>
133
+ <div class="layout-controls">
134
+ <input value="<?php echo isset($form_settings[$dynamicId]["cb_admin_label"]) ? $form_settings[$dynamicId]["cb_admin_label"] : _e( "Untitled", contact_bank ); ?>" placeholder="<?php _e( "Enter Admin Label", contact_bank);?>" class="layout-span12" type="text" id="ux_admin_label_<?php echo $dynamicId; ?>" name="ux_admin_label_<?php echo $dynamicId; ?>" />
135
+ </div>
136
+ </div>
137
+ <div class="layout-control-group">
138
+ <label class="layout-control-label"><?php _e( "Do not show in the email", contact_bank ); ?> : </label>
139
+ <div class="layout-controls">
140
+ <?php
141
+ if(isset($form_settings[$dynamicId]["cb_show_email"]))
142
+ {
143
+ if($form_settings[$dynamicId]["cb_show_email"] == "1")
144
+ {
145
+ ?>
146
+ <input type="checkbox" checked="checked" id="ux_show_email_<?php echo $dynamicId; ?>" name="ux_show_email_<?php echo $dynamicId; ?>" style="margin-top: 10px;" value="1">
147
+ <?php
148
+ }
149
+ else
150
+ {
151
+ ?>
152
+ <input type="checkbox" id="ux_show_email_<?php echo $dynamicId; ?>" name="ux_show_email_<?php echo $dynamicId; ?>" style="margin-top: 10px;" value="0">
153
+ <?php
154
+ }
155
+ }
156
+ else
157
+ {
158
+ ?>
159
+ <input type="checkbox" id="ux_show_email_<?php echo $dynamicId; ?>" name="ux_show_email_<?php echo $dynamicId; ?>" style="margin-top: 10px;" value="0">
160
+ <?php
161
+ }
162
+ ?>
163
+ </div>
164
+ </div>
165
+ <div class="layout-control-group">
166
+ <label class="layout-control-label" style="padding-top: 5px"><?php _e( "Add a filter", contact_bank ); ?> :</label>
167
+ <div class="layout-controls" style="padding-top:5px;">
168
+ <input type="checkbox" value="0" id="ux_checkbox_alpha_filter" name="ux_checkbox_alpha_filter"/>
169
+ <span class="rdl"><?php _e( "Alpha", contact_bank ); ?></span>
170
+
171
+ <input type="checkbox" id="ux_checkbox_alpha_num_filter" name="ux_checkbox_alpha_num_filter" value="0" />
172
+ <span class="rdl"><?php _e( "Alpha Numeric", contact_bank ); ?></span>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
173
 
174
+ <input type="checkbox" value="0" id="ux_checkbox_digit_filter" name="ux_checkbox_digit_filter" value="Digits" />
175
+ <span class="rdl"><?php _e( "Digits", contact_bank ); ?></span>
176
+
177
+ <input type="checkbox" id="ux_checkbox_strip_tag_filter" name="ux_checkbox_strip_tag_filter" value="0" />
178
+ <span class="rdl"><?php _e( "Strip Tags", contact_bank ); ?></span>
179
+
180
+ <input type="checkbox" id="ux_checkbox_trim_filter" name="ux_checkbox_trim_filter" value="0" />
181
+ <span class="rdl"><?php _e( "Trim", contact_bank ); ?></span>
182
+ <br>
183
+ <i class="widget_premium_feature_contact"><?php _e(" (Available in Premium Edition)", contact_bank); ?></i>
184
+ </div>
185
+ </div>
186
+ <input type="hidden" id="ux_hd_textbox_dynamic_id" name="ux_hd_textbox_dynamic_id" value="<?php echo $dynamicId; ?>"/>
187
+ </div>
188
+ </div>
189
+ <div class="layout-control-group">
190
+ <input type="submit" class="btn btn-info layout-span3" value="<?php _e( "Save Settings", contact_bank ); ?>" />
191
+ </div>
192
+ </div>
193
+ </div>
 
 
 
 
 
 
 
 
194
  </form>
195
  <a class="closeButtonLightbox" onclick="CloseLightbox();"></a>
196
  <script type="text/javascript">
197
+ var dynamicId = "<?php echo $dynamicId; ?>";
198
+ var controlId = "<?php echo $control_id; ?>";
199
+ jQuery("#ux_frm_text_area_control").validate
200
+ ({
201
+ submitHandler: function(form)
202
+ {
203
+ jQuery.post(ajaxurl, jQuery(form).serialize() + "&controlId="+controlId+"&form_id="+form_id+"&form_settings="+JSON.stringify(<?php echo json_encode($form_settings) ?>)+"&event=update&param=save_textarea_control&action=add_contact_form_library", function()
204
+ {
205
+ jQuery("#control_label_"+dynamicId).html(jQuery("#ux_label_text_"+dynamicId).val()+" :");
206
+ jQuery("#txt_description_"+dynamicId).html(jQuery("#ux_description_control_"+dynamicId).val());
207
+ jQuery("#ux_textarea_control_"+dynamicId).attr("placeholder",jQuery("#ux_default_value_"+dynamicId).val());
208
+ jQuery("#show_tooltip"+dynamicId).attr("data-original-title",jQuery("#ux_tooltip_control_"+dynamicId).val());
209
+ if(jQuery("#ux_required_control_"+dynamicId).prop("checked") == true)
210
+ {
211
+ jQuery("#control_label_"+dynamicId).append("<span class=\"error\">*</span>");
212
+ }
213
+ CloseLightbox();
214
+ });
215
+ }
216
+ });
217
+ jQuery("#ux_checkbox_alpha_filter").attr("disabled","disabled");
218
+ jQuery("#ux_checkbox_alpha_num_filter").attr("disabled","disabled");
219
+ jQuery("#ux_checkbox_digit_filter").attr("disabled","disabled");
220
+ jQuery("#ux_checkbox_strip_tag_filter").attr("disabled","disabled");
221
+ jQuery("#ux_checkbox_trim_filter").attr("disabled","disabled");
222
  </script>
223
  <?php
224
  }
lib/contact_bank_frontend-class.php CHANGED
@@ -170,4 +170,4 @@ if(isset($_REQUEST["param"]))
170
  die();
171
  }
172
  }
173
- ?>
170
  die();
171
  }
172
  }
173
+ ?>
lib/contact_bank_layout_settings-class.php CHANGED
@@ -24,7 +24,7 @@ else
24
  if($_REQUEST["param"] == "fetch_control_values")
25
  {
26
  $form_id = intval($_REQUEST["form_id"]);
27
- $layout_settings = array();
28
  $form_settings_controls = $wpdb->get_results
29
  (
30
  $wpdb->prepare
@@ -32,11 +32,11 @@ else
32
  "SELECT form_settings_key,form_settings_value FROM " .contact_bank_layout_settings_Table()." WHERE form_id = %d order by id ASC",
33
  $form_id
34
  )
35
- );
36
- for($flag = 0; $flag<count($form_settings_controls);$flag++)
37
- {
38
- $layout_settings[$form_settings_controls[$flag]->form_settings_key] = $form_settings_controls[$flag]->form_settings_value;
39
- }
40
  echo json_encode($layout_settings);
41
  die();
42
  }
24
  if($_REQUEST["param"] == "fetch_control_values")
25
  {
26
  $form_id = intval($_REQUEST["form_id"]);
27
+ $layout_settings = array();
28
  $form_settings_controls = $wpdb->get_results
29
  (
30
  $wpdb->prepare
32
  "SELECT form_settings_key,form_settings_value FROM " .contact_bank_layout_settings_Table()." WHERE form_id = %d order by id ASC",
33
  $form_id
34
  )
35
+ );
36
+ for($flag = 0; $flag<count($form_settings_controls);$flag++)
37
+ {
38
+ $layout_settings[$form_settings_controls[$flag]->form_settings_key] = $form_settings_controls[$flag]->form_settings_value;
39
+ }
40
  echo json_encode($layout_settings);
41
  die();
42
  }
lib/contact_view-class.php CHANGED
@@ -79,6 +79,7 @@ else
79
  }
80
  die();
81
  break;
 
82
  case "delete_form":
83
  $form_id = intval($_REQUEST["id"]);
84
  $control_id = $wpdb->get_results
@@ -163,7 +164,9 @@ else
163
  );
164
  die();
165
  break;
 
166
  case "delete_forms":
 
167
  global $wpdb;
168
  $wpdb->query
169
  (
@@ -199,7 +202,9 @@ else
199
  );
200
  die();
201
  break;
 
202
  case "submit_form_messages_settings":
 
203
  $sql= "";
204
  $labels_for_email = "";
205
  $sql1=array();
@@ -333,11 +338,16 @@ else
333
  );
334
  die();
335
  break;
 
336
  case "restore_factory_settings":
 
337
  include_once CONTACT_BK_PLUGIN_DIR ."/lib/restore_factory_settings.php";
338
  die();
 
339
  break;
 
340
  case "save_text_control":
 
341
  $dynamic_Id = intval($_REQUEST["ux_hd_textbox_dynamic_id"]);
342
  $form_id = intval($_REQUEST["form_id"]);
343
  $event = esc_attr($_REQUEST["event"]);
@@ -432,7 +442,9 @@ else
432
  }
433
  die();
434
  break;
 
435
  case "save_textarea_control":
 
436
  $dynamic_Id = intval($_REQUEST["ux_hd_textbox_dynamic_id"]);
437
  $form_id = intval($_REQUEST["form_id"]);
438
  $event = esc_attr($_REQUEST["event"]);
@@ -528,7 +540,9 @@ else
528
  }
529
  die();
530
  break;
 
531
  case "save_email_control":
 
532
  $dynamic_Id = intval($_REQUEST["ux_hd_textbox_dynamic_id"]);
533
  $form_id = intval($_REQUEST["form_id"]);
534
  $event = esc_attr($_REQUEST["event"]);
@@ -619,7 +633,9 @@ else
619
  }
620
  die();
621
  break;
 
622
  case "save_drop_down_control":
 
623
  $dynamic_Id = intval($_REQUEST["ux_hd_textbox_dynamic_id"]);
624
  $form_id = intval($_REQUEST["form_id"]);
625
  $event = esc_attr($_REQUEST["event"]);
@@ -713,7 +729,9 @@ else
713
  }
714
  die();
715
  break;
 
716
  case "save_check_box_control":
 
717
  $dynamic_Id = intval($_REQUEST["ux_hd_textbox_dynamic_id"]);
718
  $form_id = intval($_REQUEST["form_id"]);
719
  $event = esc_attr($_REQUEST["event"]);
@@ -900,7 +918,9 @@ else
900
  }
901
  die();
902
  break;
 
903
  case "":
 
904
  $form_id = intval($_REQUEST["form_id"]);
905
  $field_dynamic_id = isset($_REQUEST["field_dynamic_id"]) ? json_decode(stripcslashes($_REQUEST["field_dynamic_id"]),true) : array();
906
  $sql= "";
@@ -918,10 +938,13 @@ else
918
  );
919
  die();
920
  break;
 
921
  case "update_option":
 
922
  update_option("contact-bank-info-popup", "no");
923
  die();
924
  break;
 
925
  case "form_fields_sorting_order":
926
 
927
  $form_id = intval($_REQUEST["form_id"]);
@@ -941,7 +964,9 @@ else
941
  );
942
  die();
943
  break;
 
944
  case "contact_plugin_updates":
 
945
  $contact_updates = intval($_REQUEST["contact_updates"]);
946
  update_option("contact-bank-automatic_update",$contact_updates);
947
  die();
79
  }
80
  die();
81
  break;
82
+
83
  case "delete_form":
84
  $form_id = intval($_REQUEST["id"]);
85
  $control_id = $wpdb->get_results
164
  );
165
  die();
166
  break;
167
+
168
  case "delete_forms":
169
+
170
  global $wpdb;
171
  $wpdb->query
172
  (
202
  );
203
  die();
204
  break;
205
+
206
  case "submit_form_messages_settings":
207
+
208
  $sql= "";
209
  $labels_for_email = "";
210
  $sql1=array();
338
  );
339
  die();
340
  break;
341
+
342
  case "restore_factory_settings":
343
+
344
  include_once CONTACT_BK_PLUGIN_DIR ."/lib/restore_factory_settings.php";
345
  die();
346
+
347
  break;
348
+
349
  case "save_text_control":
350
+
351
  $dynamic_Id = intval($_REQUEST["ux_hd_textbox_dynamic_id"]);
352
  $form_id = intval($_REQUEST["form_id"]);
353
  $event = esc_attr($_REQUEST["event"]);
442
  }
443
  die();
444
  break;
445
+
446
  case "save_textarea_control":
447
+
448
  $dynamic_Id = intval($_REQUEST["ux_hd_textbox_dynamic_id"]);
449
  $form_id = intval($_REQUEST["form_id"]);
450
  $event = esc_attr($_REQUEST["event"]);
540
  }
541
  die();
542
  break;
543
+
544
  case "save_email_control":
545
+
546
  $dynamic_Id = intval($_REQUEST["ux_hd_textbox_dynamic_id"]);
547
  $form_id = intval($_REQUEST["form_id"]);
548
  $event = esc_attr($_REQUEST["event"]);
633
  }
634
  die();
635
  break;
636
+
637
  case "save_drop_down_control":
638
+
639
  $dynamic_Id = intval($_REQUEST["ux_hd_textbox_dynamic_id"]);
640
  $form_id = intval($_REQUEST["form_id"]);
641
  $event = esc_attr($_REQUEST["event"]);
729
  }
730
  die();
731
  break;
732
+
733
  case "save_check_box_control":
734
+
735
  $dynamic_Id = intval($_REQUEST["ux_hd_textbox_dynamic_id"]);
736
  $form_id = intval($_REQUEST["form_id"]);
737
  $event = esc_attr($_REQUEST["event"]);
918
  }
919
  die();
920
  break;
921
+
922
  case "":
923
+
924
  $form_id = intval($_REQUEST["form_id"]);
925
  $field_dynamic_id = isset($_REQUEST["field_dynamic_id"]) ? json_decode(stripcslashes($_REQUEST["field_dynamic_id"]),true) : array();
926
  $sql= "";
938
  );
939
  die();
940
  break;
941
+
942
  case "update_option":
943
+
944
  update_option("contact-bank-info-popup", "no");
945
  die();
946
  break;
947
+
948
  case "form_fields_sorting_order":
949
 
950
  $form_id = intval($_REQUEST["form_id"]);
964
  );
965
  die();
966
  break;
967
+
968
  case "contact_plugin_updates":
969
+
970
  $contact_updates = intval($_REQUEST["contact_updates"]);
971
  update_option("contact-bank-automatic_update",$contact_updates);
972
  die();
lib/uninstall-script.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- global $wpdb;
3
  $sql = "DROP TABLE " .contact_bank_contact_form();
4
  $wpdb->query($sql);
5
 
@@ -31,6 +31,6 @@
31
  $wpdb->query($sql);
32
 
33
  delete_option("contact-bank-info-popup");
34
- delete_option("contact-bank-version-number");
35
- delete_option("contact-bank-automatic_update");
36
  ?>
1
  <?php
2
+ global $wpdb;
3
  $sql = "DROP TABLE " .contact_bank_contact_form();
4
  $wpdb->query($sql);
5
 
31
  $wpdb->query($sql);
32
 
33
  delete_option("contact-bank-info-popup");
34
+ delete_option("contact-bank-version-number");
35
+ delete_option("contact-bank-automatic_update");
36
  ?>
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: contact-banker, Gallery-Bank
3
  Tags: admin, advanced form, Attachment, best contact form plugin, buddypress, category, cnotact, conact, contact, contact button, contact form, contact form builder, Contact Form Builder with recaptcha, contact form manager, contact form plugin, contact form with google map, contact forms, contact forms plugin, contact manager, contact me, contact us, contact us form, contacts, contacts form plugin, contatc, copy, custom form, email, email form, feedback, feedback form, feedback forms, form, forms, forms plugin, insert the shortcode, multiple contact forms, post feedback, request, send, send copy, send messages, shortcode, text, web form, web-page feedback, wordpress contact form
4
  Requires at least: 3.3
5
  Tested up to: 4.1.1
6
- Stable tag: 2.0.104
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -549,6 +549,10 @@ In order to set Shortcode for a Form, you need to follow these steps :
549
 
550
  == Changelog ==
551
 
 
 
 
 
552
  = 2.0.104 =
553
 
554
  * Minor Bugs Fixed
3
  Tags: admin, advanced form, Attachment, best contact form plugin, buddypress, category, cnotact, conact, contact, contact button, contact form, contact form builder, Contact Form Builder with recaptcha, contact form manager, contact form plugin, contact form with google map, contact forms, contact forms plugin, contact manager, contact me, contact us, contact us form, contacts, contacts form plugin, contatc, copy, custom form, email, email form, feedback, feedback form, feedback forms, form, forms, forms plugin, insert the shortcode, multiple contact forms, post feedback, request, send, send copy, send messages, shortcode, text, web form, web-page feedback, wordpress contact form
4
  Requires at least: 3.3
5
  Tested up to: 4.1.1
6
+ Stable tag: 2.0.105
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
549
 
550
  == Changelog ==
551
 
552
+ = 2.0.105 =
553
+
554
+ * Formatting Issue Fixed.
555
+
556
  = 2.0.104 =
557
 
558
  * Minor Bugs Fixed
views/add_contact_email.php CHANGED
@@ -17,7 +17,7 @@ if (!current_user_can($cb_user_role_permission))
17
  {
18
  return;
19
  }
20
- else
21
  {
22
  $form_id = intval($_REQUEST["form_id"]);
23
  isset($_REQUEST["email_id"]) ? $email_id = intval($_REQUEST["email_id"]) : $email_id = "";
17
  {
18
  return;
19
  }
20
+ else
21
  {
22
  $form_id = intval($_REQUEST["form_id"]);
23
  isset($_REQUEST["email_id"]) ? $email_id = intval($_REQUEST["email_id"]) : $email_id = "";
views/contact_bank_layout_settings.php CHANGED
@@ -18,7 +18,7 @@ if (!current_user_can($cb_user_role_permission))
18
  }
19
  else
20
  {
21
- ?>
22
  <form id="ux_frm_form_settings" class="layout-form">
23
  <div id="poststuff" style="width: 99% !important;">
24
  <div id="post-body" class="metabox-holder">
18
  }
19
  else
20
  {
21
+ ?>
22
  <form id="ux_frm_form_settings" class="layout-form">
23
  <div id="poststuff" style="width: 99% !important;">
24
  <div id="post-body" class="metabox-holder">
views/contact_bank_pro_version.php CHANGED
@@ -17,7 +17,7 @@ if (!current_user_can($cb_user_role_permission))
17
  return;
18
  }
19
  else
20
- {
21
  if(isset($_REQUEST["msg"]))
22
  {
23
  if(esc_attr($_REQUEST["msg"]) == "no")
17
  return;
18
  }
19
  else
20
+ {
21
  if(isset($_REQUEST["msg"]))
22
  {
23
  if(esc_attr($_REQUEST["msg"]) == "no")
views/contact_controls_files.php CHANGED
@@ -29,7 +29,7 @@ if (!current_user_can($cb_user_role_permission))
29
  }
30
  else
31
  {
32
- ?>
33
 
34
  <div class="layout-control-group div_border" id="div_1_1" style="display: none;">
35
  <label class="layout-control-label" id="control_label_">
29
  }
30
  else
31
  {
32
+ ?>
33
 
34
  <div class="layout-control-group div_border" id="div_1_1" style="display: none;">
35
  <label class="layout-control-label" id="control_label_">
views/contact_documentation.php CHANGED
@@ -18,20 +18,19 @@ if (!current_user_can($cb_user_role_permission))
18
  }
19
  else
20
  {
21
-
22
- ?>
23
- <div class="fluid-layout" >
24
- <div class="layout-span12">
25
- <div class="widget-layout">
26
- <div class="widget-layout-title">
27
- <h4><?php _e( "Documentation - Contact Bank", contact_bank ); ?></h4>
28
- </div>
29
- <div class="widget-layout-body">
30
- <iframe width="560" height="315" src="//www.youtube.com/embed/EcqbsXmPbaI" frameborder="0" allowfullscreen></iframe>
31
  </div>
32
  </div>
33
  </div>
34
- </div>
35
- <?php
36
  }
37
  ?>
18
  }
19
  else
20
  {
21
+ ?>
22
+ <div class="fluid-layout" >
23
+ <div class="layout-span12">
24
+ <div class="widget-layout">
25
+ <div class="widget-layout-title">
26
+ <h4><?php _e( "Documentation - Contact Bank", contact_bank ); ?></h4>
27
+ </div>
28
+ <div class="widget-layout-body">
29
+ <iframe width="560" height="315" src="//www.youtube.com/embed/EcqbsXmPbaI" frameborder="0" allowfullscreen></iframe>
30
+ </div>
31
  </div>
32
  </div>
33
  </div>
34
+ <?php
 
35
  }
36
  ?>
views/contact_email_settings.php CHANGED
@@ -18,8 +18,7 @@ if (!current_user_can($cb_user_role_permission))
18
  }
19
  else
20
  {
21
- ?>
22
-
23
  <form id="contact_bank_pricing" class="layout-form">
24
  <div id="poststuff" style="width: 99% !important;">
25
  <div id="post-body" class="metabox-holder">
18
  }
19
  else
20
  {
21
+ ?>
 
22
  <form id="contact_bank_pricing" class="layout-form">
23
  <div id="poststuff" style="width: 99% !important;">
24
  <div id="post-body" class="metabox-holder">
views/contact_frontend_data.php CHANGED
@@ -19,8 +19,7 @@ if (!current_user_can($cb_user_role_permission))
19
  }
20
  else
21
  {
22
- ?>
23
-
24
  <form id="" class="layout-form">
25
  <div id="poststuff" style="width: 99% !important;">
26
  <div id="post-body" class="metabox-holder">
19
  }
20
  else
21
  {
22
+ ?>
 
23
  <form id="" class="layout-form">
24
  <div id="poststuff" style="width: 99% !important;">
25
  <div id="post-body" class="metabox-holder">
views/purchase_pro_version.php CHANGED
@@ -17,7 +17,7 @@ if (!current_user_can($user_role_permission))
17
  }
18
  else
19
  {
20
- ?>
21
  <form id="frm_purchase_pro" class="layout-form">
22
  <div id="poststuff" style="width: 99% !important;">
23
  <div id="post-body" class="metabox-holder">
17
  }
18
  else
19
  {
20
+ ?>
21
  <form id="frm_purchase_pro" class="layout-form">
22
  <div id="poststuff" style="width: 99% !important;">
23
  <div id="post-body" class="metabox-holder">
views/recommended-plugins.php CHANGED
@@ -14,7 +14,7 @@ switch($cb_role)
14
  if (!current_user_can($user_role_permission))
15
  {
16
  return;
17
- }
18
  else
19
  {
20
  include( ABSPATH . "wp-admin/includes/plugin-install.php" );
14
  if (!current_user_can($user_role_permission))
15
  {
16
  return;
17
+ }
18
  else
19
  {
20
  include( ABSPATH . "wp-admin/includes/plugin-install.php" );
views/shortcode.php CHANGED
@@ -17,7 +17,7 @@ if (!current_user_can($cb_user_role_permission))
17
  return;
18
  }
19
  else
20
- {
21
  ?>
22
  <form id="shortcode" class="layout-form" method="post">
23
  <div id="poststuff" style="width: 99% !important;">
17
  return;
18
  }
19
  else
20
+ {
21
  ?>
22
  <form id="shortcode" class="layout-form" method="post">
23
  <div id="poststuff" style="width: 99% !important;">