Version Description
- Language updates
Download this release
Release Info
Developer | codepeople |
Plugin | Contact Form Email |
Version | 1.3.35 |
Comparing to | |
See all releases |
Code changes from version 1.3.34 to 1.3.35
- README.txt +5 -2
- cp-admin-int-add-booking.inc.php +1 -4
- cp-admin-int-edit-booking.inc.php +1 -4
- cp-admin-int-list.inc.php +28 -28
- cp-admin-int-message-list.inc.php +26 -26
- cp-admin-int-report.inc.php +8 -8
- cp-admin-int.inc.php +9 -9
- cp-public-int.inc.php +1 -1
- cp-publish-wizzard.inc.php +8 -10
- form-to-email.php +1 -1
- languages/contact-form-to-email-nl_NL.mo +0 -0
- languages/contact-form-to-email-nl_NL.po +70 -70
README.txt
CHANGED
@@ -456,6 +456,9 @@ When you click a field already added into the contact form builder area, you can
|
|
456 |
|
457 |
== Changelog ==
|
458 |
|
|
|
|
|
|
|
459 |
= 1.3.34 =
|
460 |
* Compatible with WP 6.1
|
461 |
|
@@ -1157,5 +1160,5 @@ When you click a field already added into the contact form builder area, you can
|
|
1157 |
|
1158 |
== Upgrade Notice ==
|
1159 |
|
1160 |
-
= 1.3.
|
1161 |
-
*
|
456 |
|
457 |
== Changelog ==
|
458 |
|
459 |
+
= 1.3.35 =
|
460 |
+
* Language updates
|
461 |
+
|
462 |
= 1.3.34 =
|
463 |
* Compatible with WP 6.1
|
464 |
|
1160 |
|
1161 |
== Upgrade Notice ==
|
1162 |
|
1163 |
+
= 1.3.35 =
|
1164 |
+
* Language updates
|
cp-admin-int-add-booking.inc.php
CHANGED
@@ -14,13 +14,10 @@ if ( !is_admin() || (!$current_user_access && !@in_array($current_user->ID, unse
|
|
14 |
$message = '';
|
15 |
|
16 |
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST[$this->prefix.'_pform_process'] ) )
|
17 |
-
|
18 |
|
19 |
$nonce = wp_create_nonce( 'cfte_actions_admin' );
|
20 |
|
21 |
-
|
22 |
-
if ($message) echo "<div id='setting-error-settings_updated' class='updated settings-error'><p><strong>".$message."</strong></p></div>";
|
23 |
-
|
24 |
?>
|
25 |
<style>
|
26 |
.clear{clear:both;}
|
14 |
$message = '';
|
15 |
|
16 |
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST[$this->prefix.'_pform_process'] ) )
|
17 |
+
echo "<div id='setting-error-settings_updated' class='updated settings-error'><p><strong>".'Message added. It appears now in the <a href="?page='.$this->menu_parameter.'&cal='.$this->item.'&list=1">messages list</a>.'."</strong></p></div>";
|
18 |
|
19 |
$nonce = wp_create_nonce( 'cfte_actions_admin' );
|
20 |
|
|
|
|
|
|
|
21 |
?>
|
22 |
<style>
|
23 |
.clear{clear:both;}
|
cp-admin-int-edit-booking.inc.php
CHANGED
@@ -14,13 +14,10 @@ if ( !is_admin() || (!$current_user_access && !@in_array($current_user->ID, unse
|
|
14 |
$message = '';
|
15 |
|
16 |
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST[$this->prefix.'_pform_process'] ) )
|
17 |
-
|
18 |
|
19 |
$nonce = wp_create_nonce( 'cfte_actions_admin' );
|
20 |
|
21 |
-
|
22 |
-
if ($message) echo "<div id='setting-error-settings_updated' class='updated settings-error'><p><strong>".$message."</strong></p></div>";
|
23 |
-
|
24 |
?>
|
25 |
<style>
|
26 |
.clear{clear:both;}
|
14 |
$message = '';
|
15 |
|
16 |
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST[$this->prefix.'_pform_process'] ) )
|
17 |
+
echo "<div id='setting-error-settings_updated' class='updated settings-error'><p><strong>".'Message updated. Can be checked in the <a href="?page='.$this->menu_parameter.'&cal='.$this->item.'&list=1">messages list</a>.'."</strong></p></div>";
|
18 |
|
19 |
$nonce = wp_create_nonce( 'cfte_actions_admin' );
|
20 |
|
|
|
|
|
|
|
21 |
?>
|
22 |
<style>
|
23 |
.clear{clear:both;}
|
cp-admin-int-list.inc.php
CHANGED
@@ -165,62 +165,62 @@ else if (isset($_POST["cp_cfte_rep_enable"]))
|
|
165 |
if (isset($_GET["confirm"]))
|
166 |
$message = 'Settings updated';
|
167 |
|
168 |
-
if ($message) echo "<div id='setting-error-settings_updated' class='updated settings-error'><p><strong>"
|
169 |
|
170 |
$nonce = wp_create_nonce( 'cfte_update_actions_plist' );
|
171 |
|
172 |
?>
|
173 |
<div class="wrap">
|
174 |
-
<h1><?php echo $this->plugin_name; ?></h1>
|
175 |
|
176 |
<script type="text/javascript">
|
177 |
function cp_addItem()
|
178 |
{
|
179 |
var calname = document.getElementById("cp_itemname").value;
|
180 |
-
document.location = 'admin.php?page=<?php echo $this->menu_parameter; ?>&rsave=<?php echo $nonce; ?>&a=1&r='+Math.random()+'&name='+encodeURIComponent(calname);
|
181 |
}
|
182 |
|
183 |
function cp_updateItem(id)
|
184 |
{
|
185 |
var calname = document.getElementById("calname_"+id).value;
|
186 |
-
document.location = 'admin.php?page=<?php echo $this->menu_parameter; ?>&rsave=<?php echo $nonce; ?>&u='+id+'&r='+Math.random()+'&name='+encodeURIComponent(calname);
|
187 |
}
|
188 |
|
189 |
function cp_cloneItem(id)
|
190 |
{
|
191 |
-
document.location = 'admin.php?page=<?php echo $this->menu_parameter; ?>&rsave=<?php echo $nonce; ?>&c='+id+'&r='+Math.random();
|
192 |
}
|
193 |
|
194 |
function cp_manageSettings(id)
|
195 |
{
|
196 |
-
document.location = 'admin.php?page=<?php echo $this->menu_parameter; ?>&cal='+id+'&r='+Math.random();
|
197 |
}
|
198 |
|
199 |
function cp_publish(id)
|
200 |
{
|
201 |
-
document.location = 'admin.php?page=<?php echo $this->menu_parameter; ?>&pwizard=1&cal='+id+'&r='+Math.random();
|
202 |
}
|
203 |
|
204 |
function cp_addbk(id)
|
205 |
{
|
206 |
-
document.location = 'admin.php?page=<?php echo $this->menu_parameter; ?>&addbk=1&cal='+id+'&r='+Math.random();
|
207 |
}
|
208 |
|
209 |
function cp_viewMessages(id)
|
210 |
{
|
211 |
-
document.location = 'admin.php?page=<?php echo $this->menu_parameter; ?>&cal='+id+'&list=1&r='+Math.random();
|
212 |
}
|
213 |
|
214 |
function cp_viewReport(id)
|
215 |
{
|
216 |
-
document.location = 'admin.php?page=<?php echo $this->menu_parameter; ?>&cal='+id+'&report=1&r='+Math.random();
|
217 |
}
|
218 |
|
219 |
function cp_deleteItem(id)
|
220 |
{
|
221 |
if (confirm('Are you sure that you want to delete this item?'))
|
222 |
{
|
223 |
-
document.location = 'admin.php?page=<?php echo $this->menu_parameter; ?>&rsave=<?php echo $nonce; ?>&d='+id+'&r='+Math.random();
|
224 |
}
|
225 |
}
|
226 |
|
@@ -230,7 +230,7 @@ $nonce = wp_create_nonce( 'cfte_update_actions_plist' );
|
|
230 |
{
|
231 |
var scr = document.getElementById("ccscriptload").value;
|
232 |
var chs = document.getElementById("cccharsets").value;
|
233 |
-
document.location = 'admin.php?page=<?php echo $this->menu_parameter; ?>&rsave=<?php echo $nonce; ?>&ac=st&scr='+scr+'&chs='+chs+'&r='+Math.random();
|
234 |
}
|
235 |
}
|
236 |
|
@@ -256,22 +256,22 @@ $nonce = wp_create_nonce( 'cfte_update_actions_plist' );
|
|
256 |
{
|
257 |
?>
|
258 |
<tr>
|
259 |
-
<td nowrap><?php echo $item->id; ?></td>
|
260 |
-
<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>
|
261 |
|
262 |
<td>
|
263 |
-
<input style="margin-bottom:3px" class="button" type="button" name="calupdate_<?php echo $item->id; ?>" value="Rename" onclick="cp_updateItem(<?php echo $item->id; ?>);" />
|
264 |
-
<input style="margin-bottom:3px" class="button-primary button" type="button" name="calmanage_<?php echo $item->id; ?>" value="Edit & Settings" onclick="cp_manageSettings(<?php echo $item->id; ?>);" />
|
265 |
<?php if (current_user_can('manage_options')) { ?>
|
266 |
-
<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; ?>);" />
|
267 |
<?php } ?>
|
268 |
-
<input style="margin-bottom:3px" class="button" type="button" name="calmessages_<?php echo $item->id; ?>" value="Messages" onclick="cp_viewMessages(<?php echo $item->id; ?>);" />
|
269 |
-
<input style="margin-bottom:5px;" class="button" type="button" name="caladdbk_<?php echo $item->id; ?>" value="<?php _e('Add Message','appointment-hour-booking'); ?>" onclick="cp_addbk(<?php echo $item->id; ?>);" />
|
270 |
-
<input style="margin-bottom:3px" class="button" type="button" name="calreport_<?php echo $item->id; ?>" value="Stats" onclick="cp_viewReport(<?php echo $item->id; ?>);" />
|
271 |
-
<input style="margin-bottom:3px" class="button" type="button" name="calclone_<?php echo $item->id; ?>" value="Clone" onclick="cp_cloneItem(<?php echo $item->id; ?>);" />
|
272 |
-
<input style="margin-bottom:3px" class="button" type="button" name="caldelete_<?php echo $item->id; ?>" value="Delete" onclick="cp_deleteItem(<?php echo $item->id; ?>);" />
|
273 |
</td>
|
274 |
-
<td><nobr>[<?php echo $this->shorttag; ?> id="<?php echo $item->id; ?>"]</nobr></td>
|
275 |
</tr>
|
276 |
<?php
|
277 |
}
|
@@ -369,7 +369,7 @@ $nonce = wp_create_nonce( 'cfte_update_actions_plist' );
|
|
369 |
<div class="inside">
|
370 |
<p><strong>Important!</strong>: Use this area <strong>only</strong> if you are experiencing conflicts with third party plugins, with the theme scripts or with the character encoding.</p>
|
371 |
<form name="updatesettings">
|
372 |
-
<input type="hidden" name="rsave" value="<?php echo $nonce; ?>">
|
373 |
Script load method:<br />
|
374 |
<select id="ccscriptload" name="ccscriptload">
|
375 |
<option value="0" <?php if (get_option('CP_CFTE_LOAD_SCRIPTS',"1") == "1") echo 'selected'; ?>>Classic (Recommended)</option>
|
@@ -404,7 +404,7 @@ $nonce = wp_create_nonce( 'cfte_update_actions_plist' );
|
|
404 |
then check into the form <strong>Edit & Settings</strong> button in the list at the at the top of this page.</p>
|
405 |
|
406 |
<form name="updatereportsettings" action="" method="post">
|
407 |
-
<input type="hidden" name="rsave" value="<?php echo $nonce; ?>">
|
408 |
<table class="form-table">
|
409 |
<tr valign="top">
|
410 |
<td scope="row" colspan="2">Enable Reports?
|
@@ -449,7 +449,7 @@ $nonce = wp_create_nonce( 'cfte_update_actions_plist' );
|
|
449 |
</tr>
|
450 |
<tr valign="top">
|
451 |
<th scope="row">Email Text (CSV file will be attached)</th>
|
452 |
-
<td><textarea type="text" name="cp_cfte_rep_message" rows="3" cols="80"><?php echo
|
453 |
</tr>
|
454 |
<tr valign="top">
|
455 |
<th scope="row"></th>
|
@@ -465,7 +465,7 @@ $nonce = wp_create_nonce( 'cfte_update_actions_plist' );
|
|
465 |
<script type="text/javascript">
|
466 |
function cp_editArea(id)
|
467 |
{
|
468 |
-
document.location = 'admin.php?page=<?php echo $this->menu_parameter; ?>&edit=1&cal=1&item='+id+'&r='+Math.random();
|
469 |
}
|
470 |
</script>
|
471 |
|
@@ -485,6 +485,6 @@ $nonce = wp_create_nonce( 'cfte_update_actions_plist' );
|
|
485 |
</div>
|
486 |
|
487 |
|
488 |
-
[<a href="https://wordpress.org/support/plugin/contact-form-to-email#new-post" target="_blank">Support</a>] | [<a href="<?php echo $this->plugin_URL; ?>" target="_blank">Help</a>]
|
489 |
</form>
|
490 |
</div>
|
165 |
if (isset($_GET["confirm"]))
|
166 |
$message = 'Settings updated';
|
167 |
|
168 |
+
if ($message) echo "<div id='setting-error-settings_updated' class='updated settings-error'><p><strong>".esc_html($message)."</strong></p></div>";
|
169 |
|
170 |
$nonce = wp_create_nonce( 'cfte_update_actions_plist' );
|
171 |
|
172 |
?>
|
173 |
<div class="wrap">
|
174 |
+
<h1><?php echo esc_html($this->plugin_name); ?></h1>
|
175 |
|
176 |
<script type="text/javascript">
|
177 |
function cp_addItem()
|
178 |
{
|
179 |
var calname = document.getElementById("cp_itemname").value;
|
180 |
+
document.location = 'admin.php?page=<?php echo esc_js($this->menu_parameter); ?>&rsave=<?php echo esc_js($nonce); ?>&a=1&r='+Math.random()+'&name='+encodeURIComponent(calname);
|
181 |
}
|
182 |
|
183 |
function cp_updateItem(id)
|
184 |
{
|
185 |
var calname = document.getElementById("calname_"+id).value;
|
186 |
+
document.location = 'admin.php?page=<?php echo esc_js($this->menu_parameter); ?>&rsave=<?php echo esc_js($nonce); ?>&u='+id+'&r='+Math.random()+'&name='+encodeURIComponent(calname);
|
187 |
}
|
188 |
|
189 |
function cp_cloneItem(id)
|
190 |
{
|
191 |
+
document.location = 'admin.php?page=<?php echo esc_js($this->menu_parameter); ?>&rsave=<?php echo esc_js($nonce); ?>&c='+id+'&r='+Math.random();
|
192 |
}
|
193 |
|
194 |
function cp_manageSettings(id)
|
195 |
{
|
196 |
+
document.location = 'admin.php?page=<?php echo esc_js($this->menu_parameter); ?>&cal='+id+'&r='+Math.random();
|
197 |
}
|
198 |
|
199 |
function cp_publish(id)
|
200 |
{
|
201 |
+
document.location = 'admin.php?page=<?php echo esc_js($this->menu_parameter); ?>&pwizard=1&cal='+id+'&r='+Math.random();
|
202 |
}
|
203 |
|
204 |
function cp_addbk(id)
|
205 |
{
|
206 |
+
document.location = 'admin.php?page=<?php echo esc_js($this->menu_parameter); ?>&addbk=1&cal='+id+'&r='+Math.random();
|
207 |
}
|
208 |
|
209 |
function cp_viewMessages(id)
|
210 |
{
|
211 |
+
document.location = 'admin.php?page=<?php echo esc_js($this->menu_parameter); ?>&cal='+id+'&list=1&r='+Math.random();
|
212 |
}
|
213 |
|
214 |
function cp_viewReport(id)
|
215 |
{
|
216 |
+
document.location = 'admin.php?page=<?php echo esc_js($this->menu_parameter); ?>&cal='+id+'&report=1&r='+Math.random();
|
217 |
}
|
218 |
|
219 |
function cp_deleteItem(id)
|
220 |
{
|
221 |
if (confirm('Are you sure that you want to delete this item?'))
|
222 |
{
|
223 |
+
document.location = 'admin.php?page=<?php echo esc_js($this->menu_parameter); ?>&rsave=<?php echo esc_js($nonce); ?>&d='+id+'&r='+Math.random();
|
224 |
}
|
225 |
}
|
226 |
|
230 |
{
|
231 |
var scr = document.getElementById("ccscriptload").value;
|
232 |
var chs = document.getElementById("cccharsets").value;
|
233 |
+
document.location = 'admin.php?page=<?php echo esc_js($this->menu_parameter); ?>&rsave=<?php echo esc_js($nonce); ?>&ac=st&scr='+scr+'&chs='+chs+'&r='+Math.random();
|
234 |
}
|
235 |
}
|
236 |
|
256 |
{
|
257 |
?>
|
258 |
<tr>
|
259 |
+
<td nowrap><?php echo intval($item->id); ?></td>
|
260 |
+
<td nowrap><input type="text" name="calname_<?php echo intval($item->id); ?>" id="calname_<?php echo intval($item->id); ?>" value="<?php echo esc_attr($item->form_name); ?>" /></td>
|
261 |
|
262 |
<td>
|
263 |
+
<input style="margin-bottom:3px" class="button" type="button" name="calupdate_<?php echo intval($item->id); ?>" value="Rename" onclick="cp_updateItem(<?php echo intval($item->id); ?>);" />
|
264 |
+
<input style="margin-bottom:3px" class="button-primary button" type="button" name="calmanage_<?php echo intval($item->id); ?>" value="Edit & Settings" onclick="cp_manageSettings(<?php echo intval($item->id); ?>);" />
|
265 |
<?php if (current_user_can('manage_options')) { ?>
|
266 |
+
<input style="margin-bottom:3px" class="button-primary button" type="button" name="calpublish_<?php echo intval($item->id); ?>" value="<?php _e('Publish','cpappb'); ?>" onclick="cp_publish(<?php echo intval($item->id); ?>);" />
|
267 |
<?php } ?>
|
268 |
+
<input style="margin-bottom:3px" class="button" type="button" name="calmessages_<?php echo intval($item->id); ?>" value="Messages" onclick="cp_viewMessages(<?php echo intval($item->id); ?>);" />
|
269 |
+
<input style="margin-bottom:5px;" class="button" type="button" name="caladdbk_<?php echo intval($item->id); ?>" value="<?php _e('Add Message','appointment-hour-booking'); ?>" onclick="cp_addbk(<?php echo intval($item->id); ?>);" />
|
270 |
+
<input style="margin-bottom:3px" class="button" type="button" name="calreport_<?php echo intval($item->id); ?>" value="Stats" onclick="cp_viewReport(<?php echo intval($item->id); ?>);" />
|
271 |
+
<input style="margin-bottom:3px" class="button" type="button" name="calclone_<?php echo intval($item->id); ?>" value="Clone" onclick="cp_cloneItem(<?php echo intval($item->id); ?>);" />
|
272 |
+
<input style="margin-bottom:3px" class="button" type="button" name="caldelete_<?php echo intval($item->id); ?>" value="Delete" onclick="cp_deleteItem(<?php echo intval($item->id); ?>);" />
|
273 |
</td>
|
274 |
+
<td><nobr>[<?php echo esc_html($this->shorttag); ?> id="<?php echo intval($item->id); ?>"]</nobr></td>
|
275 |
</tr>
|
276 |
<?php
|
277 |
}
|
369 |
<div class="inside">
|
370 |
<p><strong>Important!</strong>: Use this area <strong>only</strong> if you are experiencing conflicts with third party plugins, with the theme scripts or with the character encoding.</p>
|
371 |
<form name="updatesettings">
|
372 |
+
<input type="hidden" name="rsave" value="<?php echo esc_attr($nonce); ?>">
|
373 |
Script load method:<br />
|
374 |
<select id="ccscriptload" name="ccscriptload">
|
375 |
<option value="0" <?php if (get_option('CP_CFTE_LOAD_SCRIPTS',"1") == "1") echo 'selected'; ?>>Classic (Recommended)</option>
|
404 |
then check into the form <strong>Edit & Settings</strong> button in the list at the at the top of this page.</p>
|
405 |
|
406 |
<form name="updatereportsettings" action="" method="post">
|
407 |
+
<input type="hidden" name="rsave" value="<?php echo esc_attr($nonce); ?>">
|
408 |
<table class="form-table">
|
409 |
<tr valign="top">
|
410 |
<td scope="row" colspan="2">Enable Reports?
|
449 |
</tr>
|
450 |
<tr valign="top">
|
451 |
<th scope="row">Email Text (CSV file will be attached)</th>
|
452 |
+
<td><textarea type="text" name="cp_cfte_rep_message" rows="3" cols="80"><?php echo esc_textarea(get_option('cp_cfte_rep_message', 'Attached you will find the data from the form submissions.')); ?></textarea></td>
|
453 |
</tr>
|
454 |
<tr valign="top">
|
455 |
<th scope="row"></th>
|
465 |
<script type="text/javascript">
|
466 |
function cp_editArea(id)
|
467 |
{
|
468 |
+
document.location = 'admin.php?page=<?php echo esc_js($this->menu_parameter); ?>&edit=1&cal=1&item='+id+'&r='+Math.random();
|
469 |
}
|
470 |
</script>
|
471 |
|
485 |
</div>
|
486 |
|
487 |
|
488 |
+
[<a href="https://wordpress.org/support/plugin/contact-form-to-email#new-post" target="_blank">Support</a>] | [<a href="<?php echo esc_attr($this->plugin_URL); ?>" target="_blank">Help</a>]
|
489 |
</form>
|
490 |
</div>
|
cp-admin-int-message-list.inc.php
CHANGED
@@ -97,20 +97,20 @@ else if (isset($_GET['import']) && $_GET['import'] == '1')
|
|
97 |
if ($this->item != 0)
|
98 |
$myform = $wpdb->get_results( $wpdb->prepare( 'SELECT * FROM '.$wpdb->prefix.$this->table_items .' WHERE id=%d', intval($this->item) ) );
|
99 |
|
100 |
-
$current_page = intval($_GET["p"]);
|
101 |
if (!$current_page) $current_page = 1;
|
102 |
|
103 |
|
104 |
$cond = '';
|
105 |
-
if (
|
106 |
-
if (
|
107 |
-
if (
|
108 |
if ($this->item != 0) $cond .= " AND formid=".intval($this->item);
|
109 |
|
110 |
$events = $wpdb->get_results( "SELECT * FROM ".$wpdb->prefix.$this->table_messages." WHERE 1=1 ".$cond." ORDER BY `time` DESC" );
|
111 |
$total_pages = ceil(count($events) / $records_per_page);
|
112 |
|
113 |
-
if ($message) echo "<div id='setting-error-settings_updated' class='updated settings-error'><p><strong>"
|
114 |
|
115 |
$nonce = wp_create_nonce( 'cfte_message_actions_plist' );
|
116 |
|
@@ -118,13 +118,13 @@ $nonce = wp_create_nonce( 'cfte_message_actions_plist' );
|
|
118 |
<script type="text/javascript">
|
119 |
function cp_editItem(id)
|
120 |
{
|
121 |
-
document.location = 'admin.php?page=<?php echo $this->menu_parameter; ?>&cal=<?php echo intval($_GET["cal"]); ?>&edititem='+id+'&r='+Math.random( );
|
122 |
}
|
123 |
function cp_deleteMessageItem(id)
|
124 |
{
|
125 |
if (confirm('Are you sure that you want to delete this item?'))
|
126 |
{
|
127 |
-
document.location = 'admin.php?page=<?php echo $this->menu_parameter; ?>&rsave=<?php echo $nonce; ?>&cal=<?php echo $this->item; ?>&list=1&ld='+id+'&r='+Math.random();
|
128 |
}
|
129 |
}
|
130 |
function cp_deletemarked()
|
@@ -136,7 +136,7 @@ $nonce = wp_create_nonce( 'cfte_message_actions_plist' );
|
|
136 |
{
|
137 |
if (confirm('Are you sure that you want to delete ALL messages for this form?'))
|
138 |
{
|
139 |
-
document.location = 'admin.php?page=<?php echo $this->menu_parameter; ?>&cal=<?php echo intval($_GET["cal"]); ?>&rsave=<?php echo $nonce; ?>&list=1&del=all&r='+Math.random();
|
140 |
}
|
141 |
}
|
142 |
function cp_markall()
|
@@ -148,30 +148,30 @@ $nonce = wp_create_nonce( 'cfte_message_actions_plist' );
|
|
148 |
}
|
149 |
</script>
|
150 |
<div class="wrap">
|
151 |
-
<h1><?php if ($this->item != 0) echo
|
152 |
|
153 |
<div class="ahb-buttons-container">
|
154 |
-
<a href="<?php print esc_attr(admin_url('admin.php?page='
|
155 |
<div class="clear"></div>
|
156 |
</div>
|
157 |
|
158 |
<div class="ahb-section-container">
|
159 |
<div class="ahb-section">
|
160 |
<form action="admin.php" method="get">
|
161 |
-
<input type="hidden" name="page" value="<?php echo $this->menu_parameter; ?>" />
|
162 |
-
<input type="hidden" name="cal" value="<?php echo $this->item; ?>" />
|
163 |
<input type="hidden" name="list" value="1" />
|
164 |
-
<nobr>Search for: <input autocomplete="off" type="text" name="search" value="<?php echo esc_attr($_GET["search"]); ?>" /> </nobr>
|
165 |
-
<nobr>From: <input autocomplete="off" type="text" id="dfrom" name="dfrom" style="width:100px;" value="<?php echo esc_attr($_GET["dfrom"]); ?>" /><?php cfte_get_time_field('tfrom');?>
|
166 |
</nobr>
|
167 |
-
<nobr>To: <input type="text" id="dto" name="dto" value="<?php echo esc_attr($_GET["dto"]); ?>" /><?php cfte_get_time_field('tto'); ?>
|
168 |
</nobr>
|
169 |
<nobr>Item: <select id="cal" name="cal" style="vertical-align:baseline;height:auto;">
|
170 |
<option value="-1">[All Items]</option>
|
171 |
<?php
|
172 |
$myrows = $wpdb->get_results( "SELECT * FROM ".$wpdb->prefix.$this->table_items );
|
173 |
foreach ($myrows as $item)
|
174 |
-
echo '<option value="'.$item->id.'"'.(intval($item->id)==intval($this->item)?" selected":"").'>'.
|
175 |
?>
|
176 |
</select></nobr>
|
177 |
<nobr>
|
@@ -188,8 +188,8 @@ $nonce = wp_create_nonce( 'cfte_message_actions_plist' );
|
|
188 |
<?php
|
189 |
|
190 |
|
191 |
-
echo paginate_links( array(
|
192 |
-
'base' => 'admin.php?page='
|
193 |
'format' => '&p=%#%',
|
194 |
'total' => $total_pages,
|
195 |
'current' => $current_page,
|
@@ -207,11 +207,11 @@ echo paginate_links( array(
|
|
207 |
|
208 |
<div id="dex_printable_contents">
|
209 |
<form name="dex_table_form" id="dex_table_form" action="admin.php" method="get">
|
210 |
-
<input type="hidden" name="page" value="<?php echo $this->menu_parameter; ?>" />
|
211 |
<input type="hidden" name="cal" value="<?php echo intval($_GET["cal"]); ?>" />
|
212 |
<input type="hidden" name="list" value="1" />
|
213 |
<input type="hidden" name="delmark" value="1" />
|
214 |
-
<input type="hidden" name="rsave" value="<?php echo $nonce; ?>" />
|
215 |
|
216 |
<table class=" widefat fixed pages" cellspacing="0" width="100%">
|
217 |
<thead >
|
@@ -228,7 +228,7 @@ echo paginate_links( array(
|
|
228 |
<tr class='<?php if (!($i%2)) { ?>alternate <?php } ?>author-self status-draft format-default iedit' valign="top">
|
229 |
<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>
|
230 |
<td><?php echo substr($events[$i]->time,0,16); ?></td>
|
231 |
-
<td style="overflow:hidden"><?php echo
|
232 |
<td style="overflow:hidden"><?php
|
233 |
$data = $events[$i]->data;
|
234 |
$posted_data = unserialize($events[$i]->posted_data);
|
@@ -310,13 +310,13 @@ echo paginate_links( array(
|
|
310 |
|
311 |
function cfte_get_time_field($field)
|
312 |
{
|
313 |
-
echo '<select style="vertical-align:baseline;height:auto;" name="'
|
314 |
for ($i=0; $i<23; $i++)
|
315 |
{
|
316 |
-
echo '<option'.($_GET[$field]==($i<10?'0':'').$i.":00"?' selected':'').'>'.($i<10?'0':'').$i.":00</option>";
|
317 |
-
echo '<option'.($_GET[$field]==($i<10?'0':'').$i.":15"?' selected':'').'>'.($i<10?'0':'').$i.":15</option>";
|
318 |
-
echo '<option'.($_GET[$field]==($i<10?'0':'').$i.":30"?' selected':'').'>'.($i<10?'0':'').$i.":30</option>";
|
319 |
-
echo '<option'.($_GET[$field]==($i<10?'0':'').$i.":45"?' selected':'').'>'.($i<10?'0':'').$i.":45</option>";
|
320 |
}
|
321 |
echo '</select>';
|
322 |
}
|
97 |
if ($this->item != 0)
|
98 |
$myform = $wpdb->get_results( $wpdb->prepare( 'SELECT * FROM '.$wpdb->prefix.$this->table_items .' WHERE id=%d', intval($this->item) ) );
|
99 |
|
100 |
+
$current_page = intval( (isset($_GET["p"]) ? intval($_GET["p"]) : 0) );
|
101 |
if (!$current_page) $current_page = 1;
|
102 |
|
103 |
|
104 |
$cond = '';
|
105 |
+
if (!empty($_GET["search"])) $cond .= " AND (data like '%".esc_sql($_GET["search"])."%' OR posted_data LIKE '%".esc_sql($_GET["search"])."%')";
|
106 |
+
if (!empty($_GET["dfrom"])) $cond .= " AND (`time` >= '".esc_sql($_GET["dfrom"].(@$_GET["tfrom"]?' '.$_GET["tfrom"]:''))."')";
|
107 |
+
if (!empty($_GET["dto"])) $cond .= " AND (`time` <= '".esc_sql($_GET["dto"].(@$_GET["tto"]?' '.$_GET["tto"]:' 23:59:59'))."')";
|
108 |
if ($this->item != 0) $cond .= " AND formid=".intval($this->item);
|
109 |
|
110 |
$events = $wpdb->get_results( "SELECT * FROM ".$wpdb->prefix.$this->table_messages." WHERE 1=1 ".$cond." ORDER BY `time` DESC" );
|
111 |
$total_pages = ceil(count($events) / $records_per_page);
|
112 |
|
113 |
+
if ($message) echo "<div id='setting-error-settings_updated' class='updated settings-error'><p><strong>".esc_html($message)."</strong></p></div>";
|
114 |
|
115 |
$nonce = wp_create_nonce( 'cfte_message_actions_plist' );
|
116 |
|
118 |
<script type="text/javascript">
|
119 |
function cp_editItem(id)
|
120 |
{
|
121 |
+
document.location = 'admin.php?page=<?php echo esc_js($this->menu_parameter); ?>&cal=<?php echo intval($_GET["cal"]); ?>&edititem='+id+'&r='+Math.random( );
|
122 |
}
|
123 |
function cp_deleteMessageItem(id)
|
124 |
{
|
125 |
if (confirm('Are you sure that you want to delete this item?'))
|
126 |
{
|
127 |
+
document.location = 'admin.php?page=<?php echo esc_js($this->menu_parameter); ?>&rsave=<?php echo $nonce; ?>&cal=<?php echo $this->item; ?>&list=1&ld='+id+'&r='+Math.random();
|
128 |
}
|
129 |
}
|
130 |
function cp_deletemarked()
|
136 |
{
|
137 |
if (confirm('Are you sure that you want to delete ALL messages for this form?'))
|
138 |
{
|
139 |
+
document.location = 'admin.php?page=<?php echo esc_js($this->menu_parameter); ?>&cal=<?php echo intval($_GET["cal"]); ?>&rsave=<?php echo $nonce; ?>&list=1&del=all&r='+Math.random();
|
140 |
}
|
141 |
}
|
142 |
function cp_markall()
|
148 |
}
|
149 |
</script>
|
150 |
<div class="wrap">
|
151 |
+
<h1><?php if ($this->item != 0) echo esc_html($myform[0]->form_name); else echo 'All forms'; ?> - <?php echo esc_html($this->plugin_name); ?> Message List</h1>
|
152 |
|
153 |
<div class="ahb-buttons-container">
|
154 |
+
<a href="<?php print esc_attr(admin_url('admin.php?page='.esc_attr($this->menu_parameter)));?>" class="ahb-return-link">←Return to the forms list</a>
|
155 |
<div class="clear"></div>
|
156 |
</div>
|
157 |
|
158 |
<div class="ahb-section-container">
|
159 |
<div class="ahb-section">
|
160 |
<form action="admin.php" method="get">
|
161 |
+
<input type="hidden" name="page" value="<?php echo esc_attr($this->menu_parameter); ?>" />
|
162 |
+
<input type="hidden" name="cal" value="<?php echo esc_attr($this->item); ?>" />
|
163 |
<input type="hidden" name="list" value="1" />
|
164 |
+
<nobr>Search for: <input autocomplete="off" type="text" name="search" value="<?php echo esc_attr( (!empty($_GET["search"]) ? $_GET["search"] : '') ); ?>" /> </nobr>
|
165 |
+
<nobr>From: <input autocomplete="off" type="text" id="dfrom" name="dfrom" style="width:100px;" value="<?php echo esc_attr( (!empty($_GET["dfrom"]) ? $_GET["dfrom"] : '' ) ); ?>" /><?php cfte_get_time_field('tfrom');?>
|
166 |
</nobr>
|
167 |
+
<nobr>To: <input type="text" id="dto" name="dto" value="<?php echo esc_attr( (!empty($_GET["dto"]) ? $_GET["dto"] : '') ); ?>" /><?php esc_html(cfte_get_time_field('tto')); ?>
|
168 |
</nobr>
|
169 |
<nobr>Item: <select id="cal" name="cal" style="vertical-align:baseline;height:auto;">
|
170 |
<option value="-1">[All Items]</option>
|
171 |
<?php
|
172 |
$myrows = $wpdb->get_results( "SELECT * FROM ".$wpdb->prefix.$this->table_items );
|
173 |
foreach ($myrows as $item)
|
174 |
+
echo '<option value="'.$item->id.'"'.(intval($item->id)==intval($this->item)?" selected":"").'>'.esc_html($item->form_name).'</option>';
|
175 |
?>
|
176 |
</select></nobr>
|
177 |
<nobr>
|
188 |
<?php
|
189 |
|
190 |
|
191 |
+
echo paginate_links( array(
|
192 |
+
'base' => 'admin.php?page='.esc_attr($this->menu_parameter).'&cal='.intval($this->item).'&list=1%_%&dfrom='.urlencode((!empty($_GET["dfrom"]) ? $_GET["dfrom"] : '')).'&dto='.urlencode((!empty($_GET["dto"]) ? $_GET["dto"] : '')).'&search='.urlencode((!empty($_GET["search"]) ? $_GET["search"] : '')),
|
193 |
'format' => '&p=%#%',
|
194 |
'total' => $total_pages,
|
195 |
'current' => $current_page,
|
207 |
|
208 |
<div id="dex_printable_contents">
|
209 |
<form name="dex_table_form" id="dex_table_form" action="admin.php" method="get">
|
210 |
+
<input type="hidden" name="page" value="<?php echo esc_attr($this->menu_parameter); ?>" />
|
211 |
<input type="hidden" name="cal" value="<?php echo intval($_GET["cal"]); ?>" />
|
212 |
<input type="hidden" name="list" value="1" />
|
213 |
<input type="hidden" name="delmark" value="1" />
|
214 |
+
<input type="hidden" name="rsave" value="<?php echo esc_attr($nonce); ?>" />
|
215 |
|
216 |
<table class=" widefat fixed pages" cellspacing="0" width="100%">
|
217 |
<thead >
|
228 |
<tr class='<?php if (!($i%2)) { ?>alternate <?php } ?>author-self status-draft format-default iedit' valign="top">
|
229 |
<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>
|
230 |
<td><?php echo substr($events[$i]->time,0,16); ?></td>
|
231 |
+
<td style="overflow:hidden"><?php echo esc_html($events[$i]->notifyto); ?></td>
|
232 |
<td style="overflow:hidden"><?php
|
233 |
$data = $events[$i]->data;
|
234 |
$posted_data = unserialize($events[$i]->posted_data);
|
310 |
|
311 |
function cfte_get_time_field($field)
|
312 |
{
|
313 |
+
echo '<select style="vertical-align:baseline;height:auto;" name="'.esc_attr($field).'"> <option value=""></option>';
|
314 |
for ($i=0; $i<23; $i++)
|
315 |
{
|
316 |
+
echo '<option'.(!empty($_GET[$field]) && $_GET[$field]==($i<10?'0':'').$i.":00"?' selected':'').'>'.($i<10?'0':'').$i.":00</option>";
|
317 |
+
echo '<option'.(!empty($_GET[$field]) && $_GET[$field]==($i<10?'0':'').$i.":15"?' selected':'').'>'.($i<10?'0':'').$i.":15</option>";
|
318 |
+
echo '<option'.(!empty($_GET[$field]) && $_GET[$field]==($i<10?'0':'').$i.":30"?' selected':'').'>'.($i<10?'0':'').$i.":30</option>";
|
319 |
+
echo '<option'.(!empty($_GET[$field]) && $_GET[$field]==($i<10?'0':'').$i.":45"?' selected':'').'>'.($i<10?'0':'').$i.":45</option>";
|
320 |
}
|
321 |
echo '</select>';
|
322 |
}
|
cp-admin-int-report.inc.php
CHANGED
@@ -91,7 +91,7 @@ else
|
|
91 |
|
92 |
?>
|
93 |
|
94 |
-
<h1><?php echo $this->plugin_name; ?> Stats - <?php echo esc_html($this->get_option("form_name","")); ?></h1>
|
95 |
|
96 |
|
97 |
|
@@ -103,8 +103,8 @@ else
|
|
103 |
<div class="ahb-section-container">
|
104 |
<div class="ahb-section">
|
105 |
<form action="admin.php" method="get">
|
106 |
-
<input type="hidden" name="page" value="<?php echo $this->menu_parameter; ?>" />
|
107 |
-
<input type="hidden" name="cal" value="<?php echo $this->item; ?>" />
|
108 |
<input type="hidden" name="report" value="1" />
|
109 |
<input type="hidden" name="field" value="<?php echo esc_attr($_GET["field"]); ?>" />
|
110 |
<nobr><label>Search for:</label> <input type="text" name="search" value="<?php echo esc_attr($_GET["search"]); ?>"> </nobr>
|
@@ -115,7 +115,7 @@ else
|
|
115 |
<?php
|
116 |
$myrows = $wpdb->get_results( "SELECT * FROM ".$wpdb->prefix.$this->table_items );
|
117 |
foreach ($myrows as $item)
|
118 |
-
echo '<option value="'
|
119 |
?>
|
120 |
</select></nobr>
|
121 |
<nobr>
|
@@ -160,8 +160,8 @@ else
|
|
160 |
<div class="ahb-statssection-container" style="background:#f6f6f6;">
|
161 |
<div class="ahb-statssection-header">
|
162 |
<form action="admin.php" name="cfm_formrep" method="get">
|
163 |
-
<input type="hidden" name="page" value="<?php echo $this->menu_parameter; ?>" />
|
164 |
-
<input type="hidden" name="cal" value="<?php echo $this->item; ?>" />
|
165 |
<input type="hidden" name="report" value="1" />
|
166 |
<input type="hidden" name="search" value="<?php echo esc_attr($_GET["search"]); ?>" />
|
167 |
<input type="hidden" name="dfrom" value="<?php echo esc_attr($_GET["dfrom"]); ?>" />
|
@@ -169,7 +169,7 @@ else
|
|
169 |
<h3><?php _e('Select field for the report','cpappb'); ?>: <select name="field" onchange="document.cfm_formrep.submit();">
|
170 |
<?php
|
171 |
foreach ($fields as $item => $value)
|
172 |
-
echo '<option value="'.esc_attr($item).'"'.($_GET["field"]==$item?' selected':'').'>'
|
173 |
?>
|
174 |
</select></h3>
|
175 |
</form>
|
@@ -195,7 +195,7 @@ else
|
|
195 |
$count = 0;
|
196 |
foreach ($arr as $item => $value)
|
197 |
{
|
198 |
-
echo $value.' times: '.(strlen($item)>50?substr($item,1,50).'...':substr($item,1));
|
199 |
echo '<div style="width:'.round($value/$total*100).'%;border:1px solid white;margin-bottom:3px;font-size:9px;text-align:center;font-weight:bold;background-color:#'.$color_array[$count].'">'.round($value/$total*100,2).'%</div>';
|
200 |
$count++;
|
201 |
if ($count >= count($color_array)) $count = count($color_array)-1;
|
91 |
|
92 |
?>
|
93 |
|
94 |
+
<h1><?php echo esc_html($this->plugin_name); ?> Stats - <?php echo esc_html($this->get_option("form_name","")); ?></h1>
|
95 |
|
96 |
|
97 |
|
103 |
<div class="ahb-section-container">
|
104 |
<div class="ahb-section">
|
105 |
<form action="admin.php" method="get">
|
106 |
+
<input type="hidden" name="page" value="<?php echo esc_attr($this->menu_parameter); ?>" />
|
107 |
+
<input type="hidden" name="cal" value="<?php echo esc_attr($this->item); ?>" />
|
108 |
<input type="hidden" name="report" value="1" />
|
109 |
<input type="hidden" name="field" value="<?php echo esc_attr($_GET["field"]); ?>" />
|
110 |
<nobr><label>Search for:</label> <input type="text" name="search" value="<?php echo esc_attr($_GET["search"]); ?>"> </nobr>
|
115 |
<?php
|
116 |
$myrows = $wpdb->get_results( "SELECT * FROM ".$wpdb->prefix.$this->table_items );
|
117 |
foreach ($myrows as $item)
|
118 |
+
echo '<option value="'.intval($item->id).'"'.(intval($item->id)==intval($this->item)?" selected":"").'>'.esc_html($item->form_name).'</option>';
|
119 |
?>
|
120 |
</select></nobr>
|
121 |
<nobr>
|
160 |
<div class="ahb-statssection-container" style="background:#f6f6f6;">
|
161 |
<div class="ahb-statssection-header">
|
162 |
<form action="admin.php" name="cfm_formrep" method="get">
|
163 |
+
<input type="hidden" name="page" value="<?php echo esc_attr($this->menu_parameter); ?>" />
|
164 |
+
<input type="hidden" name="cal" value="<?php echo esc_attr($this->item); ?>" />
|
165 |
<input type="hidden" name="report" value="1" />
|
166 |
<input type="hidden" name="search" value="<?php echo esc_attr($_GET["search"]); ?>" />
|
167 |
<input type="hidden" name="dfrom" value="<?php echo esc_attr($_GET["dfrom"]); ?>" />
|
169 |
<h3><?php _e('Select field for the report','cpappb'); ?>: <select name="field" onchange="document.cfm_formrep.submit();">
|
170 |
<?php
|
171 |
foreach ($fields as $item => $value)
|
172 |
+
echo '<option value="'.esc_attr($item).'"'.($_GET["field"]==$item?' selected':'').'>'.esc_html($this->get_form_field_label($item,$form)).'</option>';
|
173 |
?>
|
174 |
</select></h3>
|
175 |
</form>
|
195 |
$count = 0;
|
196 |
foreach ($arr as $item => $value)
|
197 |
{
|
198 |
+
echo $value.' times: '.esc_html(strlen($item)>50?substr($item,1,50).'...':substr($item,1));
|
199 |
echo '<div style="width:'.round($value/$total*100).'%;border:1px solid white;margin-bottom:3px;font-size:9px;text-align:center;font-weight:bold;background-color:#'.$color_array[$count].'">'.round($value/$total*100,2).'%</div>';
|
200 |
$count++;
|
201 |
if ($count >= count($color_array)) $count = count($color_array)-1;
|
cp-admin-int.inc.php
CHANGED
@@ -38,13 +38,13 @@ if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST[$this->prefix.'_post_
|
|
38 |
|
39 |
</script>
|
40 |
<div class="wrap">
|
41 |
-
<h1><?php _e('Edit','cfte'); ?> - <?php echo esc_html($this->get_option('form_name','Contact Form')); ?> - <?php echo $this->plugin_name; ?></h1>
|
42 |
|
43 |
|
44 |
<form method="post" action="" name="cpformconf">
|
45 |
-
<input name="<?php echo $this->prefix; ?>_post_options" type="hidden" value="1" />
|
46 |
-
<input name="rsave" type="hidden" value="<?php echo $nonce; ?>" />
|
47 |
-
<input name="<?php echo $this->prefix; ?>_id" type="hidden" value="<?php echo $this->item; ?>" />
|
48 |
|
49 |
|
50 |
<div id="topadminsection" class="ahb-buttons-container">
|
@@ -152,7 +152,7 @@ if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST[$this->prefix.'_post_
|
|
152 |
</tr>
|
153 |
<tr valign="top" id="opmsg">
|
154 |
<th scope="row">Message to display after submission</th>
|
155 |
-
<td><textarea name="fp_return_message" cols="80" rows="3"><?php echo
|
156 |
</tr>
|
157 |
|
158 |
<tr><td colspan="2"><hr /></td></tr>
|
@@ -193,7 +193,7 @@ if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST[$this->prefix.'_post_
|
|
193 |
</tr>
|
194 |
<tr valign="top" id="fpemail4">
|
195 |
<th scope="row">Message</th>
|
196 |
-
<td><textarea type="text" name="fp_message" rows="6" cols="80"><?php echo $this->get_option('fp_message', CP_CFEMAIL_DEFAULT_fp_message); ?></textarea></td>
|
197 |
</tr>
|
198 |
</table>
|
199 |
|
@@ -397,7 +397,7 @@ if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST[$this->prefix.'_post_
|
|
397 |
</tr>
|
398 |
<tr valign="top">
|
399 |
<td colspan="2"> - The <em>class="pbSubmit"</em> can be used to modify the button styles. <br />
|
400 |
-
- The styles can be applied into the <a href="?page=cp_contactformtoemail&edit=1&cal=<?php echo $this->item; ?>&item=css">CSS Customization Area</a>. <br />
|
401 |
- For further modifications the submit button is located at the end of the file <em>"cp-public-int.inc.php"</em>.<br />
|
402 |
- For general CSS styles modifications to the form and samples <a href="https://form2email.dwbooster.com/faq#q82" target="_blank">check this FAQ</a>.
|
403 |
</tr>
|
@@ -484,7 +484,7 @@ if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST[$this->prefix.'_post_
|
|
484 |
</tr>
|
485 |
<tr valign="top">
|
486 |
<th scope="row">Message</th>
|
487 |
-
<td><textarea type="text" name="cu_message" rows="6" cols="80"><?php echo $this->get_option('cu_message', CP_CFEMAIL_DEFAULT_cu_message); ?></textarea></td>
|
488 |
</tr>
|
489 |
</table>
|
490 |
</div>
|
@@ -642,7 +642,7 @@ if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST[$this->prefix.'_post_
|
|
642 |
</tr>
|
643 |
<tr valign="top">
|
644 |
<th scope="row">Email Text (CSV file will be attached with the submissions)</th>
|
645 |
-
<td><textarea type="text" name="rep_message" rows="3" cols="80"><?php echo $this->get_option('rep_message', 'Attached you will find the data from the form submissions.'); ?></textarea></td>
|
646 |
</tr>
|
647 |
</table>
|
648 |
</div>
|
38 |
|
39 |
</script>
|
40 |
<div class="wrap">
|
41 |
+
<h1><?php _e('Edit','cfte'); ?> - <?php echo esc_html($this->get_option('form_name','Contact Form')); ?> - <?php echo esc_html($this->plugin_name); ?></h1>
|
42 |
|
43 |
|
44 |
<form method="post" action="" name="cpformconf">
|
45 |
+
<input name="<?php echo esc_attr($this->prefix); ?>_post_options" type="hidden" value="1" />
|
46 |
+
<input name="rsave" type="hidden" value="<?php echo esc_attr($nonce); ?>" />
|
47 |
+
<input name="<?php echo esc_attr($this->prefix); ?>_id" type="hidden" value="<?php echo intval($this->item); ?>" />
|
48 |
|
49 |
|
50 |
<div id="topadminsection" class="ahb-buttons-container">
|
152 |
</tr>
|
153 |
<tr valign="top" id="opmsg">
|
154 |
<th scope="row">Message to display after submission</th>
|
155 |
+
<td><textarea name="fp_return_message" cols="80" rows="3"><?php echo esc_textarea($this->get_option('fp_return_message', 'Your message has been successfully sent. Thank you!')); ?></textarea></td>
|
156 |
</tr>
|
157 |
|
158 |
<tr><td colspan="2"><hr /></td></tr>
|
193 |
</tr>
|
194 |
<tr valign="top" id="fpemail4">
|
195 |
<th scope="row">Message</th>
|
196 |
+
<td><textarea type="text" name="fp_message" rows="6" cols="80"><?php echo esc_textarea($this->get_option('fp_message', CP_CFEMAIL_DEFAULT_fp_message)); ?></textarea></td>
|
197 |
</tr>
|
198 |
</table>
|
199 |
|
397 |
</tr>
|
398 |
<tr valign="top">
|
399 |
<td colspan="2"> - The <em>class="pbSubmit"</em> can be used to modify the button styles. <br />
|
400 |
+
- The styles can be applied into the <a href="?page=cp_contactformtoemail&edit=1&cal=<?php echo intval($this->item); ?>&item=css">CSS Customization Area</a>. <br />
|
401 |
- For further modifications the submit button is located at the end of the file <em>"cp-public-int.inc.php"</em>.<br />
|
402 |
- For general CSS styles modifications to the form and samples <a href="https://form2email.dwbooster.com/faq#q82" target="_blank">check this FAQ</a>.
|
403 |
</tr>
|
484 |
</tr>
|
485 |
<tr valign="top">
|
486 |
<th scope="row">Message</th>
|
487 |
+
<td><textarea type="text" name="cu_message" rows="6" cols="80"><?php echo esc_textarea($this->get_option('cu_message', CP_CFEMAIL_DEFAULT_cu_message)); ?></textarea></td>
|
488 |
</tr>
|
489 |
</table>
|
490 |
</div>
|
642 |
</tr>
|
643 |
<tr valign="top">
|
644 |
<th scope="row">Email Text (CSV file will be attached with the submissions)</th>
|
645 |
+
<td><textarea type="text" name="rep_message" rows="3" cols="80"><?php echo esc_textarea($this->get_option('rep_message', 'Attached you will find the data from the form submissions.')); ?></textarea></td>
|
646 |
</tr>
|
647 |
</table>
|
648 |
</div>
|
cp-public-int.inc.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php if ( !defined('CP_AUTH_INCLUDE') ) { echo 'Direct access not allowed.'; exit; } ?>
|
2 |
<form class="cpp_form" name="<?php echo $this->prefix; ?>_pform<?php echo '_'.$this->print_counter; ?>" id="<?php echo $this->prefix; ?>_pform<?php echo '_'.$this->print_counter; ?>" action="<?php $this->get_site_url(); ?>" method="post" enctype="multipart/form-data" onsubmit="return <?php echo $this->prefix; ?>_pform_doValidate<?php echo '_'.$this->print_counter; ?>(this);"><input type="hidden" name="cp_pform_psequence" value="<?php echo '_'.$this->print_counter; ?>" /><input type="hidden" name="<?php echo $this->prefix; ?>_pform_process" value="1" /><input type="hidden" name="<?php echo $this->prefix; ?>_id" value="<?php echo $this->item; ?>" /><input type="hidden" name="cp_ref_page" value="<?php esc_attr($this->get_site_url()); ?>" /><input type="hidden" name="form_structure<?php echo '_'.$this->print_counter; ?>" id="form_structure<?php echo '_'.$this->print_counter; ?>" size="180" value="<?php echo $raw_form_str; ?>" /><input type="hidden" name="refpage<?php echo '_'.$this->print_counter; ?>" id="refpage<?php echo '_'.$this->print_counter; ?>" value=""><input type="hidden" name="<?php echo $this->prefix; ?>_pform_status" value="0" /><?php if (count($preload_params)) { ?><input type="hidden" name="edititem" value="<?php echo $preload_params["itemnumber"]; ?>" /><?php } ?><input name="anonce" type="hidden" value="<?php echo wp_create_nonce( 'cfte_actions_emailform' ); ?>"/><input name="cftehp" id="cftehp<?php echo '_'.$this->print_counter; ?>" type="hidden" value="1"/>
|
3 |
-
<?php if (is_admin() && !defined('APHOURBK_ELEMENTOR_EDIT_MODE') &&
|
4 |
<fieldset style="border: 1px solid black; -webkit-border-radius: 8px; -moz-border-radius: 8px; border-radius: 8px; padding:15px;">
|
5 |
<legend>Administrator options</legend>
|
6 |
<input type="checkbox" name="sendemails_admin" value="1" vt="1" /> Send notification emails for this booking<br /><br />
|
1 |
<?php if ( !defined('CP_AUTH_INCLUDE') ) { echo 'Direct access not allowed.'; exit; } ?>
|
2 |
<form class="cpp_form" name="<?php echo $this->prefix; ?>_pform<?php echo '_'.$this->print_counter; ?>" id="<?php echo $this->prefix; ?>_pform<?php echo '_'.$this->print_counter; ?>" action="<?php $this->get_site_url(); ?>" method="post" enctype="multipart/form-data" onsubmit="return <?php echo $this->prefix; ?>_pform_doValidate<?php echo '_'.$this->print_counter; ?>(this);"><input type="hidden" name="cp_pform_psequence" value="<?php echo '_'.$this->print_counter; ?>" /><input type="hidden" name="<?php echo $this->prefix; ?>_pform_process" value="1" /><input type="hidden" name="<?php echo $this->prefix; ?>_id" value="<?php echo $this->item; ?>" /><input type="hidden" name="cp_ref_page" value="<?php esc_attr($this->get_site_url()); ?>" /><input type="hidden" name="form_structure<?php echo '_'.$this->print_counter; ?>" id="form_structure<?php echo '_'.$this->print_counter; ?>" size="180" value="<?php echo $raw_form_str; ?>" /><input type="hidden" name="refpage<?php echo '_'.$this->print_counter; ?>" id="refpage<?php echo '_'.$this->print_counter; ?>" value=""><input type="hidden" name="<?php echo $this->prefix; ?>_pform_status" value="0" /><?php if (count($preload_params)) { ?><input type="hidden" name="edititem" value="<?php echo $preload_params["itemnumber"]; ?>" /><?php } ?><input name="anonce" type="hidden" value="<?php echo wp_create_nonce( 'cfte_actions_emailform' ); ?>"/><input name="cftehp" id="cftehp<?php echo '_'.$this->print_counter; ?>" type="hidden" value="1"/>
|
3 |
+
<?php if (is_admin() && !defined('APHOURBK_ELEMENTOR_EDIT_MODE') && (!isset($_GET["action"]) || $_GET["action"] != 'edit')) {?>
|
4 |
<fieldset style="border: 1px solid black; -webkit-border-radius: 8px; -moz-border-radius: 8px; border-radius: 8px; padding:15px;">
|
5 |
<legend>Administrator options</legend>
|
6 |
<input type="checkbox" name="sendemails_admin" value="1" vt="1" /> Send notification emails for this booking<br /><br />
|
cp-publish-wizzard.inc.php
CHANGED
@@ -53,10 +53,10 @@ if ($this->get_param('cp_contactformtoemail_do_action_loaded') == 'wizard') {
|
|
53 |
<div class="ahb-section-container">
|
54 |
<div class="ahb-section ahb-section-active" data-step="1">
|
55 |
<h1>Great! Form successfully published</h1>
|
56 |
-
<p class="cpmvcontainer">The contact form was placed into the page <a href="<?php echo $this->postURL; ?>"><?php echo $this->postURL; ?></a>.</p>
|
57 |
<p class="cpmvcontainer">Now you can:</p>
|
58 |
<div style="clear:both"></div>
|
59 |
-
<button class="button button-primary cpmvcontainer" type="button" id="nextBtn" onclick="window.open('<?php echo $this->postURL; ?>');">View the Published Contact Form</button>
|
60 |
<div style="clear:both"></div>
|
61 |
<!--<p class="cpmvcontainer">* Note: If the form was published in a new page or post it will be a 'draft', you have to publish the page/post in the future if needed.</p>--><br />
|
62 |
<div style="clear:both"></div>
|
@@ -135,10 +135,9 @@ if ($this->get_param('cp_contactformtoemail_do_action_loaded') == 'wizard') {
|
|
135 |
<?php
|
136 |
$pages = get_pages();
|
137 |
foreach ( $pages as $page ) {
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
echo $option;
|
142 |
}
|
143 |
?>
|
144 |
</select>
|
@@ -152,10 +151,9 @@ if ($this->get_param('cp_contactformtoemail_do_action_loaded') == 'wizard') {
|
|
152 |
<?php
|
153 |
$pages = get_posts();
|
154 |
foreach ( $pages as $page ) {
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
echo $option;
|
159 |
}
|
160 |
?>
|
161 |
</select>
|
53 |
<div class="ahb-section-container">
|
54 |
<div class="ahb-section ahb-section-active" data-step="1">
|
55 |
<h1>Great! Form successfully published</h1>
|
56 |
+
<p class="cpmvcontainer">The contact form was placed into the page <a href="<?php echo esc_attr($this->postURL); ?>"><?php echo esc_html($this->postURL); ?></a>.</p>
|
57 |
<p class="cpmvcontainer">Now you can:</p>
|
58 |
<div style="clear:both"></div>
|
59 |
+
<button class="button button-primary cpmvcontainer" type="button" id="nextBtn" onclick="window.open('<?php echo esc_attr($this->postURL); ?>');">View the Published Contact Form</button>
|
60 |
<div style="clear:both"></div>
|
61 |
<!--<p class="cpmvcontainer">* Note: If the form was published in a new page or post it will be a 'draft', you have to publish the page/post in the future if needed.</p>--><br />
|
62 |
<div style="clear:both"></div>
|
135 |
<?php
|
136 |
$pages = get_pages();
|
137 |
foreach ( $pages as $page ) {
|
138 |
+
echo '<option value="' . intval($page->ID) . '">';
|
139 |
+
echo esc_html($page->post_title);
|
140 |
+
echo '</option>';
|
|
|
141 |
}
|
142 |
?>
|
143 |
</select>
|
151 |
<?php
|
152 |
$pages = get_posts();
|
153 |
foreach ( $pages as $page ) {
|
154 |
+
echo '<option value="' . intval($page->ID) . '">';
|
155 |
+
echo esc_html($page->post_title);
|
156 |
+
echo '</option>';
|
|
|
157 |
}
|
158 |
?>
|
159 |
</select>
|
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.3.
|
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.3.35
|
7 |
Author: CodePeople
|
8 |
Author URI: https://form2email.dwbooster.com
|
9 |
Text Domain: contact-form-to-email
|
languages/contact-form-to-email-nl_NL.mo
CHANGED
Binary file
|
languages/contact-form-to-email-nl_NL.po
CHANGED
@@ -1,70 +1,70 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: Contact Form to Email\n"
|
4 |
-
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
-
"PO-Revision-Date:
|
6 |
-
"Last-Translator: \n"
|
7 |
-
"Language-Team: \n"
|
8 |
-
"
|
9 |
-
"
|
10 |
-
"Content-
|
11 |
-
"
|
12 |
-
"X-
|
13 |
-
"
|
14 |
-
"X-Poedit-SearchPath-0: .\n"
|
15 |
-
|
16 |
-
# RevTran=E-mail
|
17 |
-
msgid "Email"
|
18 |
-
msgstr "E-mail"
|
19 |
-
|
20 |
-
msgid "Subject"
|
21 |
-
msgstr "Onderwerp"
|
22 |
-
|
23 |
-
msgid "Message"
|
24 |
-
msgstr "Bericht"
|
25 |
-
|
26 |
-
# RevTran=Enter the captcha verification code.
|
27 |
-
msgid "Please enter the captcha verification code."
|
28 |
-
msgstr "Vul de captcha verificatiecode."
|
29 |
-
|
30 |
-
msgid "Incorrect captcha code. Please try again."
|
31 |
-
msgstr "Onjuiste captcha code. Gelieve opnieuw te proberen."
|
32 |
-
|
33 |
-
msgid "Please enter the security code"
|
34 |
-
msgstr "Vul de beveiligingscode in"
|
35 |
-
|
36 |
-
# RevTran=Security code
|
37 |
-
msgid "Security Code"
|
38 |
-
msgstr "Beveiligingscode"
|
39 |
-
|
40 |
-
msgid "Coupon code"
|
41 |
-
msgstr "Kortingsbon-code"
|
42 |
-
|
43 |
-
msgid "This field is required."
|
44 |
-
msgstr "Dit veld is verplicht."
|
45 |
-
|
46 |
-
msgid "Please enter a valid email address."
|
47 |
-
msgstr "Voer alstublieft een geldig e-mailadres in."
|
48 |
-
|
49 |
-
# RevTran=Please enter a valid security code.
|
50 |
-
msgid "Please enter a valid captcha code."
|
51 |
-
msgstr "Vul een geldig captcha code."
|
52 |
-
|
53 |
-
# RevTran=Please enter a valid date in this format (dd \\/mm \\/yyyy)
|
54 |
-
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
55 |
-
msgstr "Vul een geldige datum met dit formaat (dd/mm/jjjj)"
|
56 |
-
|
57 |
-
msgid "Please enter a valid number."
|
58 |
-
msgstr "Voer alstublieft een geldig getal in."
|
59 |
-
|
60 |
-
# RevTran=Enter only numbers.
|
61 |
-
msgid "Please enter only digits."
|
62 |
-
msgstr "
|
63 |
-
|
64 |
-
# RevTran=Please enter a value less than or equal to 0.
|
65 |
-
msgid "Please enter a value less than or equal to {0}."
|
66 |
-
msgstr "Voer alstublieft een waarde van minder of gelijk aan 0 in."
|
67 |
-
|
68 |
-
# RevTran=Please enter a value greater than or equal to 0.
|
69 |
-
msgid "Please enter a value greater than or equal to {0}."
|
70 |
-
msgstr "Voer alstublieft een waarde groter of gelijk aan 0 in."
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Contact Form to Email\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2022-11-29 16:13+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"Language: nl_NL\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 3.2\n"
|
13 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
# RevTran=E-mail
|
17 |
+
msgid "Email"
|
18 |
+
msgstr "E-mail"
|
19 |
+
|
20 |
+
msgid "Subject"
|
21 |
+
msgstr "Onderwerp"
|
22 |
+
|
23 |
+
msgid "Message"
|
24 |
+
msgstr "Bericht"
|
25 |
+
|
26 |
+
# RevTran=Enter the captcha verification code.
|
27 |
+
msgid "Please enter the captcha verification code."
|
28 |
+
msgstr "Vul de captcha verificatiecode."
|
29 |
+
|
30 |
+
msgid "Incorrect captcha code. Please try again."
|
31 |
+
msgstr "Onjuiste captcha code. Gelieve opnieuw te proberen."
|
32 |
+
|
33 |
+
msgid "Please enter the security code"
|
34 |
+
msgstr "Vul de beveiligingscode in"
|
35 |
+
|
36 |
+
# RevTran=Security code
|
37 |
+
msgid "Security Code"
|
38 |
+
msgstr "Beveiligingscode"
|
39 |
+
|
40 |
+
msgid "Coupon code"
|
41 |
+
msgstr "Kortingsbon-code"
|
42 |
+
|
43 |
+
msgid "This field is required."
|
44 |
+
msgstr "Dit veld is verplicht."
|
45 |
+
|
46 |
+
msgid "Please enter a valid email address."
|
47 |
+
msgstr "Voer alstublieft een geldig e-mailadres in."
|
48 |
+
|
49 |
+
# RevTran=Please enter a valid security code.
|
50 |
+
msgid "Please enter a valid captcha code."
|
51 |
+
msgstr "Vul een geldig captcha code."
|
52 |
+
|
53 |
+
# RevTran=Please enter a valid date in this format (dd \\/mm \\/yyyy)
|
54 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
55 |
+
msgstr "Vul een geldige datum met dit formaat (dd/mm/jjjj)"
|
56 |
+
|
57 |
+
msgid "Please enter a valid number."
|
58 |
+
msgstr "Voer alstublieft een geldig getal in."
|
59 |
+
|
60 |
+
# RevTran=Enter only numbers.
|
61 |
+
msgid "Please enter only digits."
|
62 |
+
msgstr "Gebruik alleen cijfers."
|
63 |
+
|
64 |
+
# RevTran=Please enter a value less than or equal to 0.
|
65 |
+
msgid "Please enter a value less than or equal to {0}."
|
66 |
+
msgstr "Voer alstublieft een waarde van minder of gelijk aan {0} in."
|
67 |
+
|
68 |
+
# RevTran=Please enter a value greater than or equal to 0.
|
69 |
+
msgid "Please enter a value greater than or equal to {0}."
|
70 |
+
msgstr "Voer alstublieft een waarde groter of gelijk aan {0} in."
|