Contact Form Email - Version 1.2.71

Version Description

  • Fixes to form builder area
Download this release

Release Info

Developer codepeople
Plugin Icon 128x128 Contact Form Email
Version 1.2.71
Comparing to
See all releases

Code changes from version 1.2.70 to 1.2.71

README.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: codepeople
3
  Donate link: https://form2email.dwbooster.com/download
4
  Tags: contact form,contact,email,contact form database,form,contact form excel,form to email,form to database,contact form builder,form to csv,form to excel,contact form csv
5
  Requires at least: 3.0.5
6
- Tested up to: 4.9
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -454,6 +454,9 @@ When you click a field already added into the contact form builder area, you can
454
 
455
  == Changelog ==
456
 
 
 
 
457
  = 1.2.70 =
458
  * Improved error detection
459
 
@@ -971,5 +974,5 @@ When you click a field already added into the contact form builder area, you can
971
 
972
  == Upgrade Notice ==
973
 
974
- = 1.2.70 =
975
- * Improved error detection
3
  Donate link: https://form2email.dwbooster.com/download
4
  Tags: contact form,contact,email,contact form database,form,contact form excel,form to email,form to database,contact form builder,form to csv,form to excel,contact form csv
5
  Requires at least: 3.0.5
6
+ Tested up to: 5.0
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
454
 
455
  == Changelog ==
456
 
457
+ = 1.2.71 =
458
+ * Fixes to form builder area
459
+
460
  = 1.2.70 =
461
  * Improved error detection
462
 
974
 
975
  == Upgrade Notice ==
976
 
977
+ = 1.2.71 =
978
+ * Fixes to form builder area
cp-admin-int-list.inc.php CHANGED
@@ -233,16 +233,16 @@ $nonce = wp_create_nonce( 'cfte_update_actions_plist' );
233
  <td nowrap><?php echo $item->id; ?></td>
234
  <td nowrap><input type="text" name="calname_<?php echo $item->id; ?>" id="calname_<?php echo $item->id; ?>" value="<?php echo esc_attr($item->form_name); ?>" /></td>
235
 
236
- <td nowrap>&nbsp; &nbsp;
237
- <input class="button" type="button" name="calupdate_<?php echo $item->id; ?>" value="Rename" onclick="cp_updateItem(<?php echo $item->id; ?>);" /> &nbsp;
238
- <input class="button-primary button" type="button" name="calmanage_<?php echo $item->id; ?>" value="Settings" onclick="cp_manageSettings(<?php echo $item->id; ?>);" /> &nbsp;
239
- <input class="button-primary button" type="button" name="calpublish_<?php echo $item->id; ?>" value="<?php _e('Publish','cpappb'); ?>" onclick="cp_publish(<?php echo $item->id; ?>);" />
240
- <input class="button" type="button" name="calmessages_<?php echo $item->id; ?>" value="Messages" onclick="cp_viewMessages(<?php echo $item->id; ?>);" /> &nbsp;
241
- <input class="button" type="button" name="calreport_<?php echo $item->id; ?>" value="Stats" onclick="cp_viewReport(<?php echo $item->id; ?>);" /> &nbsp;
242
- <input class="button" type="button" name="calclone_<?php echo $item->id; ?>" value="Clone" onclick="cp_cloneItem(<?php echo $item->id; ?>);" /> &nbsp;
243
- <input class="button" type="button" name="caldelete_<?php echo $item->id; ?>" value="Delete" onclick="cp_deleteItem(<?php echo $item->id; ?>);" />
244
  </td>
245
- <td nowrap>[<?php echo $this->shorttag; ?> id="<?php echo $item->id; ?>"]</td>
246
  </tr>
247
  <?php
248
  }
@@ -250,7 +250,7 @@ $nonce = wp_create_nonce( 'cfte_update_actions_plist' );
250
 
251
  </table>
252
 
253
-
254
 
255
  </div>
256
  </div>
233
  <td nowrap><?php echo $item->id; ?></td>
234
  <td nowrap><input type="text" name="calname_<?php echo $item->id; ?>" id="calname_<?php echo $item->id; ?>" value="<?php echo esc_attr($item->form_name); ?>" /></td>
235
 
236
+ <td>
237
+ <input style="margin-bottom:3px" class="button" type="button" name="calupdate_<?php echo $item->id; ?>" value="Rename" onclick="cp_updateItem(<?php echo $item->id; ?>);" />
238
+ <input style="margin-bottom:3px" class="button-primary button" type="button" name="calmanage_<?php echo $item->id; ?>" value="Settings" onclick="cp_manageSettings(<?php echo $item->id; ?>);" />
239
+ <input style="margin-bottom:3px" class="button-primary button" type="button" name="calpublish_<?php echo $item->id; ?>" value="<?php _e('Publish','cpappb'); ?>" onclick="cp_publish(<?php echo $item->id; ?>);" />
240
+ <input style="margin-bottom:3px" class="button" type="button" name="calmessages_<?php echo $item->id; ?>" value="Messages" onclick="cp_viewMessages(<?php echo $item->id; ?>);" />
241
+ <input style="margin-bottom:3px" class="button" type="button" name="calreport_<?php echo $item->id; ?>" value="Stats" onclick="cp_viewReport(<?php echo $item->id; ?>);" />
242
+ <input style="margin-bottom:3px" class="button" type="button" name="calclone_<?php echo $item->id; ?>" value="Clone" onclick="cp_cloneItem(<?php echo $item->id; ?>);" />
243
+ <input style="margin-bottom:3px" class="button" type="button" name="caldelete_<?php echo $item->id; ?>" value="Delete" onclick="cp_deleteItem(<?php echo $item->id; ?>);" />
244
  </td>
245
+ <td><nobr>[<?php echo $this->shorttag; ?> id="<?php echo $item->id; ?>"]</nobr></td>
246
  </tr>
247
  <?php
248
  }
250
 
251
  </table>
252
 
253
+ <div class="clearer"></div>
254
 
255
  </div>
256
  </div>
cp-admin-int-message-list.inc.php CHANGED
@@ -163,6 +163,7 @@ $nonce = wp_create_nonce( 'cfte_message_actions_plist' );
163
  <input class="button-primary button" type="submit" name="ds" value="Filter" style="float:right;" />
164
  </nobr>
165
  </form>
 
166
  </div>
167
  </div>
168
 
@@ -194,8 +195,8 @@ echo paginate_links( array(
194
  <input type="hidden" name="cal" value="<?php echo intval($_GET["cal"]); ?>" />
195
  <input type="hidden" name="list" value="1" />
196
  <input type="hidden" name="delmark" value="1" />
197
- <table class="wp-list-table widefat fixed pages" cellspacing="0" width="100%">
198
- <thead>
199
  <tr>
200
  <th width="30" class="cpnopr"><input type="checkbox" name="cpcontrolck" id="cpcontrolck" value="" onclick="cp_markall();"></th>
201
  <th style="padding-left:7px;font-weight:bold;width:120px;">Date</th>
@@ -209,8 +210,8 @@ echo paginate_links( array(
209
  <tr class='<?php if (!($i%2)) { ?>alternate <?php } ?>author-self status-draft format-default iedit' valign="top">
210
  <td width="1%" class="cpnopr"><input type="checkbox" name="c<?php echo $i-($current_page-1)*$records_per_page; ?>" value="<?php echo $events[$i]->id; ?>" /></td>
211
  <td><?php echo substr($events[$i]->time,0,16); ?></td>
212
- <td><?php echo htmlentities($events[$i]->notifyto); ?></td>
213
- <td><?php
214
  $data = $events[$i]->data;
215
  $posted_data = unserialize($events[$i]->posted_data);
216
  foreach ($posted_data as $item => $value)
163
  <input class="button-primary button" type="submit" name="ds" value="Filter" style="float:right;" />
164
  </nobr>
165
  </form>
166
+ <div class="clearer"></div>
167
  </div>
168
  </div>
169
 
195
  <input type="hidden" name="cal" value="<?php echo intval($_GET["cal"]); ?>" />
196
  <input type="hidden" name="list" value="1" />
197
  <input type="hidden" name="delmark" value="1" />
198
+ <table class=" widefat fixed pages" cellspacing="0" width="100%">
199
+ <thead >
200
  <tr>
201
  <th width="30" class="cpnopr"><input type="checkbox" name="cpcontrolck" id="cpcontrolck" value="" onclick="cp_markall();"></th>
202
  <th style="padding-left:7px;font-weight:bold;width:120px;">Date</th>
210
  <tr class='<?php if (!($i%2)) { ?>alternate <?php } ?>author-self status-draft format-default iedit' valign="top">
211
  <td width="1%" class="cpnopr"><input type="checkbox" name="c<?php echo $i-($current_page-1)*$records_per_page; ?>" value="<?php echo $events[$i]->id; ?>" /></td>
212
  <td><?php echo substr($events[$i]->time,0,16); ?></td>
213
+ <td style="overflow:hidden"><?php echo htmlentities($events[$i]->notifyto); ?></td>
214
+ <td style="overflow:hidden"><?php
215
  $data = $events[$i]->data;
216
  $posted_data = unserialize($events[$i]->posted_data);
217
  foreach ($posted_data as $item => $value)
cp-admin-int.inc.php CHANGED
@@ -252,7 +252,7 @@ if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST[$this->prefix.'_post_
252
 
253
  </script>
254
 
255
- <div style="background:#fafafa;min-width:780px;" class="form-builder">
256
 
257
  <div class="column width50">
258
  <div id="tabs">
252
 
253
  </script>
254
 
255
+ <div style="background:#fafafa;min-width:600px;" class="form-builder">
256
 
257
  <div class="column width50">
258
  <div id="tabs">
cp-feedback.php CHANGED
@@ -38,6 +38,7 @@ function cpcfte_feedback() {
38
  $data['email'] = urlencode($current_user->user_email);
39
  $data['website'] = urlencode($_SERVER['HTTP_HOST']);
40
  $data['url'] = urlencode(get_site_url());
 
41
  $data['theme'] = urlencode(wp_get_theme()->get('Name') . " " .wp_get_theme()->get('Version'));
42
  $plist = "";
43
  $activeplugins = get_option('active_plugins');
38
  $data['email'] = urlencode($current_user->user_email);
39
  $data['website'] = urlencode($_SERVER['HTTP_HOST']);
40
  $data['url'] = urlencode(get_site_url());
41
+ // for detecting theme and plugin conflicts:
42
  $data['theme'] = urlencode(wp_get_theme()->get('Name') . " " .wp_get_theme()->get('Version'));
43
  $plist = "";
44
  $activeplugins = get_option('active_plugins');
cp-main-class.inc.php CHANGED
@@ -1008,7 +1008,10 @@ class CP_ContactFormToEmail extends CP_CFTEMAIL_BaseClass {
1008
 
1009
  $end = count($fields);
1010
  for ($i=0; $i<$end; $i++)
1011
- echo '"'.str_replace('"','""', $this->get_form_field_label($fields[$i],$form)).'",';
 
 
 
1012
  echo "\n";
1013
  foreach ($values as $item)
1014
  {
@@ -1018,6 +1021,7 @@ class CP_ContactFormToEmail extends CP_CFTEMAIL_BaseClass {
1018
  $item[$i] = '';
1019
  if (is_array($item[$i]))
1020
  $item[$i] = implode($item[$i],',');
 
1021
  echo '"'.str_replace('"','""', $item[$i]).'",';
1022
  }
1023
  echo "\n";
@@ -1115,7 +1119,10 @@ class CP_ContactFormToEmail extends CP_CFTEMAIL_BaseClass {
1115
 
1116
  $end = count($fields);
1117
  for ($i=0; $i<$end; $i++)
1118
- $buffer .= '"'.str_replace('"','""', $this->get_form_field_label($fields[$i],$form)).'",';
 
 
 
1119
  $buffer .= "\n";
1120
  foreach ($values as $item)
1121
  {
@@ -1125,6 +1132,7 @@ class CP_ContactFormToEmail extends CP_CFTEMAIL_BaseClass {
1125
  $item[$i] = '';
1126
  if (is_array($item[$i]))
1127
  $item[$i] = implode($item[$i],',');
 
1128
  $buffer .= '"'.str_replace('"','""', $item[$i]).'",';
1129
  }
1130
  $buffer .= "\n";
1008
 
1009
  $end = count($fields);
1010
  for ($i=0; $i<$end; $i++)
1011
+ {
1012
+ $hlabel = iconv("utf-8", "ISO-8859-1//TRANSLIT//IGNORE", $this->get_form_field_label($fields[$i],$form));
1013
+ echo '"'.str_replace('"','""', $hlabel).'",';
1014
+ }
1015
  echo "\n";
1016
  foreach ($values as $item)
1017
  {
1021
  $item[$i] = '';
1022
  if (is_array($item[$i]))
1023
  $item[$i] = implode($item[$i],',');
1024
+ $item[$i] = iconv("utf-8", "ISO-8859-1//TRANSLIT//IGNORE", $item[$i]);
1025
  echo '"'.str_replace('"','""', $item[$i]).'",';
1026
  }
1027
  echo "\n";
1119
 
1120
  $end = count($fields);
1121
  for ($i=0; $i<$end; $i++)
1122
+ {
1123
+ $hlabel = iconv("utf-8", "ISO-8859-1//TRANSLIT//IGNORE", $this->get_form_field_label($fields[$i],$form));
1124
+ $buffer .= '"'.str_replace('"','""', $hlabel).'",';
1125
+ }
1126
  $buffer .= "\n";
1127
  foreach ($values as $item)
1128
  {
1132
  $item[$i] = '';
1133
  if (is_array($item[$i]))
1134
  $item[$i] = implode($item[$i],',');
1135
+ $item[$i] = iconv("utf-8", "ISO-8859-1//TRANSLIT//IGNORE", $item[$i]);
1136
  $buffer .= '"'.str_replace('"','""', $item[$i]).'",';
1137
  }
1138
  $buffer .= "\n";
cp_admin_int_edition.inc.php CHANGED
@@ -149,6 +149,19 @@ jQuery(function(){
149
  </div>
150
  </div>
151
 
 
 
 
 
 
 
 
 
 
 
 
 
 
152
  <div class="ahb-csssample">
153
  <div class="ahb-csssampleheader">
154
  Other styles:
149
  </div>
150
  </div>
151
 
152
+ <div class="ahb-csssample">
153
+ <div class="ahb-csssampleheader">
154
+ Replace submit button text to icon/image:
155
+ </div>
156
+ <div class="ahb-csssamplecode">
157
+ .pbSubmit{
158
+ background-image:url(<span style="color:#0000bb">https://form2email.dwbooster.com/images/logo.png</span>);
159
+ color:transparent;
160
+ }
161
+ </div>
162
+ </div>
163
+
164
+
165
  <div class="ahb-csssample">
166
  <div class="ahb-csssampleheader">
167
  Other styles:
css/newadminlayout.css CHANGED
@@ -27,9 +27,22 @@ label {font-weight:600;}
27
 
28
  .ahb-mssg{margin-left:0 !important; display:none;}
29
 
 
 
 
 
30
  @media screen and (max-width: 710px)
31
  {
32
- table, thead, tbody, th, td, tr {
 
 
 
 
 
 
 
 
 
33
  display: block;
34
  width:100%;
35
  text-align:left;
27
 
28
  .ahb-mssg{margin-left:0 !important; display:none;}
29
 
30
+ .ui-button-text-only .ui-button-text {
31
+ padding: .4em 0em !important;
32
+ }
33
+
34
  @media screen and (max-width: 710px)
35
  {
36
+ .form-builder .button {
37
+ margin: 5px 5px !important;
38
+ }
39
+ .ahb-calendars-list table,
40
+ .ahb-calendars-list thead,
41
+ .ahb-calendars-list tbody,
42
+ .ahb-calendars-list th,
43
+ .ahb-calendars-list td,
44
+ .ahb-calendars-list tr
45
+ {
46
  display: block;
47
  width:100%;
48
  text-align:left;
css/style.css CHANGED
@@ -10,7 +10,7 @@
10
  .button, .form-builder .button{float:left;margin:5px 15px;}
11
  .button.n span{color:#AED0EA}
12
  #tabs{height:620px;overflow:auto}
13
- #fbuilder{height:610px;overflow:auto;position:relative;}
14
  #fbuilder .fields{border:1px solid transparent;padding:3px 10px 14px 10px;margin:5px 0px;display:block;position:relative}
15
  #fbuilder .fields .arrow{position:absolute;left:-15px;top:20px;display:none}
16
  #fbuilder .fields .remove{position:absolute;bottom:0;right:0;display:none;background-color:#fff;cursor:pointer}
10
  .button, .form-builder .button{float:left;margin:5px 15px;}
11
  .button.n span{color:#AED0EA}
12
  #tabs{height:620px;overflow:auto}
13
+ #fbuilder{height:600px;overflow:auto;position:relative;}
14
  #fbuilder .fields{border:1px solid transparent;padding:3px 10px 14px 10px;margin:5px 0px;display:block;position:relative}
15
  #fbuilder .fields .arrow{position:absolute;left:-15px;top:20px;display:none}
16
  #fbuilder .fields .remove{position:absolute;bottom:0;right:0;display:none;background-color:#fff;cursor:pointer}
form-to-email.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Contact Form Email
4
  Plugin URI: https://form2email.dwbooster.com/download
5
  Description: Contact form that sends the data to email and also to a database list and CSV file.
6
- Version: 1.2.70
7
  Author: CodePeople
8
  Author URI: https://form2email.dwbooster.com
9
  Text Domain: contact-form-to-email
3
  Plugin Name: Contact Form Email
4
  Plugin URI: https://form2email.dwbooster.com/download
5
  Description: Contact form that sends the data to email and also to a database list and CSV file.
6
+ Version: 1.2.71
7
  Author: CodePeople
8
  Author URI: https://form2email.dwbooster.com
9
  Text Domain: contact-form-to-email
js/fbuilderf.jquery.js CHANGED
@@ -4,7 +4,7 @@ jQuery(window).on('load', function(){
4
  $.fn.fbuilder = function(options){
5
  var opt = $.extend({},
6
  {
7
- typeList:new Array({id:"ftext",name:"Single Line Text"},{id:"fnumber",name:"Number"},{id:"femail",name:"Email"},{id:"fdate",name:"Date Time"},{id:"ftextarea",name:"Text Area"},{id:"fcurrency",name:"Currency"},{id:"fcheck",name:"Checkboxes"},{id:"fradio",name:"Radio Buttons"},{id:"fdropdown",name:"Dropdown"},{id:"ffile",name:"Upload File"},{id:"fpassword",name:"Password"},{id:"fPhone",name:"Phone field"},{id:"fCommentArea",name:"Instruct. Text"},{id:"fhidden",name:"Hidden"},{id:"fSectionBreak",name:"Section break"},{id:"fPageBreak",name:"Page break"},{id:"fsummary",name:"Summary"},{id:"fMedia",name:"Media"},{id:"fButton",name:"Button"},{id:"fhtml",name:"HTML content"},{id:"facceptance",name:"Accept / GDPR"},{id:"category",name:"Container Controls"},{id:"ffieldset",name:"Fieldset"},{id:"fdiv",name:"Div"},{id:"category",name:"Form Controls with Datasource Connection"},{id:"ftextds",name:"Line Text DS"},{id:"femailds",name:"Email DS"},{id:"ftextareads",name:"Text Area DS"},{id:"fcheckds",name:"Checkboxes DS"},{id:"fradiods",name:"Radio Btns DS"},{id:"fPhoneds",name:"Phone DS"},{id:"fdropdownds",name:"Dropdown DS"},{id:"fhiddends",name:"Hidden DS"},{id:"fnumberds",name:"Number DS"},{id:"fcurrencyds",name:"Currency DS"}),
8
  pub:false,
9
  identifier:"",
10
  title:""
4
  $.fn.fbuilder = function(options){
5
  var opt = $.extend({},
6
  {
7
+ typeList:new Array({id:"ftext",name:"Single Line"},{id:"fnumber",name:"Number"},{id:"femail",name:"Email"},{id:"fdate",name:"Date Time"},{id:"ftextarea",name:"Text Area"},{id:"fcurrency",name:"Currency"},{id:"fcheck",name:"Checkboxes"},{id:"fradio",name:"Radio Buttons"},{id:"fdropdown",name:"Dropdown"},{id:"ffile",name:"Upload File"},{id:"fpassword",name:"Password"},{id:"fPhone",name:"Phone field"},{id:"fCommentArea",name:"Instruct. Text"},{id:"fhidden",name:"Hidden"},{id:"fSectionBreak",name:"Section break"},{id:"fPageBreak",name:"Page break"},{id:"fsummary",name:"Summary"},{id:"fMedia",name:"Media"},{id:"fButton",name:"Button"},{id:"fhtml",name:"HTML content"},{id:"facceptance",name:"Accept / GDPR"},{id:"category",name:"Container Controls"},{id:"ffieldset",name:"Fieldset"},{id:"fdiv",name:"Div"},{id:"category",name:"Form Controls with Datasource Connection"},{id:"ftextds",name:"Line Text DS"},{id:"femailds",name:"Email DS"},{id:"ftextareads",name:"Text Area DS"},{id:"fcheckds",name:"Checkboxes DS"},{id:"fradiods",name:"Radio Btns DS"},{id:"fPhoneds",name:"Phone DS"},{id:"fdropdownds",name:"Dropdown DS"},{id:"fhiddends",name:"Hidden DS"},{id:"fnumberds",name:"Number DS"},{id:"fcurrencyds",name:"Currency DS"}),
8
  pub:false,
9
  identifier:"",
10
  title:""