Version Description
- Improved messages list
Download this release
Release Info
Developer | codepeople |
Plugin | Contact Form Email |
Version | 1.2.63 |
Comparing to | |
See all releases |
Code changes from version 1.2.62 to 1.2.63
- README.txt +5 -2
- cp-admin-int-message-list.inc.php +28 -21
- cp-admin-int.inc.php +1 -1
- cp-main-class.inc.php +11 -9
- form-to-email.php +1 -1
README.txt
CHANGED
@@ -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.62 =
|
458 |
* Improved CSS edition area
|
459 |
|
@@ -947,5 +950,5 @@ When you click a field already added into the contact form builder area, you can
|
|
947 |
|
948 |
== Upgrade Notice ==
|
949 |
|
950 |
-
= 1.2.
|
951 |
-
* Improved
|
454 |
|
455 |
== Changelog ==
|
456 |
|
457 |
+
= 1.2.63 =
|
458 |
+
* Improved messages list
|
459 |
+
|
460 |
= 1.2.62 =
|
461 |
* Improved CSS edition area
|
462 |
|
950 |
|
951 |
== Upgrade Notice ==
|
952 |
|
953 |
+
= 1.2.63 =
|
954 |
+
* Improved messages list
|
cp-admin-int-message-list.inc.php
CHANGED
@@ -11,6 +11,7 @@ $records_per_page = 50;
|
|
11 |
|
12 |
global $wpdb;
|
13 |
|
|
|
14 |
$message = "";
|
15 |
|
16 |
if (isset($_GET['delmark']) && $_GET['delmark'] != '')
|
@@ -131,17 +132,15 @@ $nonce = wp_create_nonce( 'cfte_message_actions_plist' );
|
|
131 |
}
|
132 |
</script>
|
133 |
<div class="wrap">
|
134 |
-
<h1><?php echo $this->plugin_name; ?>
|
135 |
|
136 |
-
<
|
137 |
-
|
138 |
-
|
139 |
-
<div id="normal-sortables" class="meta-box-sortables">
|
140 |
-
<hr />
|
141 |
-
<h3>This message list is from: <?php if ($this->item != 0) echo strip_tags($myform[0]->form_name); else echo 'All forms'; ?></h3>
|
142 |
</div>
|
143 |
|
144 |
-
|
|
|
145 |
<form action="admin.php" method="get">
|
146 |
<input type="hidden" name="page" value="<?php echo $this->menu_parameter; ?>" />
|
147 |
<input type="hidden" name="cal" value="<?php echo $this->item; ?>" />
|
@@ -150,18 +149,22 @@ $nonce = wp_create_nonce( 'cfte_message_actions_plist' );
|
|
150 |
<nobr>From: <input type="text" id="dfrom" name="dfrom" style="width:100px;" value="<?php echo esc_attr($_GET["dfrom"]); ?>" /><?php cfte_get_time_field('tfrom');?>
|
151 |
</nobr>
|
152 |
<nobr>To: <input type="text" id="dto" name="dto" value="<?php echo esc_attr($_GET["dto"]); ?>" /><?php cfte_get_time_field('tto'); ?>
|
153 |
-
|
154 |
-
<nobr>Item: <select id="cal" name="cal">
|
155 |
-
<option value="
|
156 |
<?php
|
157 |
$myrows = $wpdb->get_results( "SELECT * FROM ".$wpdb->prefix.$this->table_items );
|
158 |
foreach ($myrows as $item)
|
159 |
echo '<option value="'.$item->id.'"'.(intval($item->id)==intval($this->item)?" selected":"").'>'.strip_tags($item->form_name).'</option>';
|
160 |
?>
|
161 |
</select></nobr>
|
162 |
-
<nobr
|
163 |
-
|
|
|
|
|
164 |
</form>
|
|
|
|
|
165 |
|
166 |
<br />
|
167 |
|
@@ -218,7 +221,7 @@ echo paginate_links( array(
|
|
218 |
echo str_replace("\n","<br />",str_replace('<','<',$data));
|
219 |
?></td>
|
220 |
<td class="cpnopr">
|
221 |
-
<input type="button" name="caldelete_<?php echo $events[$i]->id; ?>" value="Delete" onclick="cp_deleteMessageItem(<?php echo $events[$i]->id; ?>);" />
|
222 |
</td>
|
223 |
</tr>
|
224 |
<?php } ?>
|
@@ -226,12 +229,14 @@ echo paginate_links( array(
|
|
226 |
</table>
|
227 |
</form>
|
228 |
</div>
|
229 |
-
|
230 |
-
<
|
231 |
-
<
|
|
|
|
|
232 |
<div style="clear:both"></div>
|
233 |
-
<p class="submit" style="float:left;"><input type="button" name="pbutton" value="Delete marked items" onclick="cp_deletemarked();" /> </p>
|
234 |
-
<p class="submit" style="float:left;"><input type="button" name="pbutton" value="Delete All Bookings" onclick="cp_deleteall();" /></p>
|
235 |
<div style="clear:both"></div>
|
236 |
|
237 |
</div>
|
@@ -244,8 +249,9 @@ echo paginate_links( array(
|
|
244 |
<div class="inside">
|
245 |
|
246 |
<form name="CPImportForm" action="admin.php?page=cp_contactformtoemail&rsave=<?php echo $nonce; ?>&cal=<?php echo $this->item; ?>&list=1&import=1" method="post" enctype="multipart/form-data">
|
247 |
-
<input type="file" name="importfile" />
|
248 |
-
<input type="submit" name="pbuttonimport" value="Import"/>
|
|
|
249 |
<p>Instructions: Comma separated CSV file. One record per line, one field per column. <strong>Don't use a header row with the field names</strong>.</p>
|
250 |
<p>The first 3 columns into the CSV file are the <strong>time, IP address and email address</strong>, if you don't have this information then leave the first three columns empty.
|
251 |
After those initial columns the fields (columns) must appear in the same order than in the form.</p>
|
@@ -257,6 +263,7 @@ echo paginate_links( array(
|
|
257 |
</form>
|
258 |
</div>
|
259 |
</div>
|
|
|
260 |
<?php } ?>
|
261 |
|
262 |
<script type="text/javascript">
|
11 |
|
12 |
global $wpdb;
|
13 |
|
14 |
+
if ($this->item < 0) $this->setId(0);
|
15 |
$message = "";
|
16 |
|
17 |
if (isset($_GET['delmark']) && $_GET['delmark'] != '')
|
132 |
}
|
133 |
</script>
|
134 |
<div class="wrap">
|
135 |
+
<h1><?php if ($this->item != 0) echo strip_tags($myform[0]->form_name); else echo 'All forms'; ?> - <?php echo $this->plugin_name; ?> Message List</h1>
|
136 |
|
137 |
+
<div class="ahb-buttons-container">
|
138 |
+
<a href="<?php print esc_attr(admin_url('admin.php?page='.$this->menu_parameter));?>" class="ahb-return-link">←Return to the forms list</a>
|
139 |
+
<div class="clear"></div>
|
|
|
|
|
|
|
140 |
</div>
|
141 |
|
142 |
+
<div class="ahb-section-container">
|
143 |
+
<div class="ahb-section">
|
144 |
<form action="admin.php" method="get">
|
145 |
<input type="hidden" name="page" value="<?php echo $this->menu_parameter; ?>" />
|
146 |
<input type="hidden" name="cal" value="<?php echo $this->item; ?>" />
|
149 |
<nobr>From: <input type="text" id="dfrom" name="dfrom" style="width:100px;" value="<?php echo esc_attr($_GET["dfrom"]); ?>" /><?php cfte_get_time_field('tfrom');?>
|
150 |
</nobr>
|
151 |
<nobr>To: <input type="text" id="dto" name="dto" value="<?php echo esc_attr($_GET["dto"]); ?>" /><?php cfte_get_time_field('tto'); ?>
|
152 |
+
</nobr>
|
153 |
+
<nobr>Item: <select id="cal" name="cal" style="vertical-align:baseline;height:auto;">
|
154 |
+
<option value="-1">[All Items]</option>
|
155 |
<?php
|
156 |
$myrows = $wpdb->get_results( "SELECT * FROM ".$wpdb->prefix.$this->table_items );
|
157 |
foreach ($myrows as $item)
|
158 |
echo '<option value="'.$item->id.'"'.(intval($item->id)==intval($this->item)?" selected":"").'>'.strip_tags($item->form_name).'</option>';
|
159 |
?>
|
160 |
</select></nobr>
|
161 |
+
<nobr>
|
162 |
+
<input class="button" type="submit" name="<?php echo $this->prefix; ?>_csv" value="Export to CSV" style="margin-left:10px;float:right;"/>
|
163 |
+
<input class="button-primary button" type="submit" name="ds" value="Filter" style="float:right;" />
|
164 |
+
</nobr>
|
165 |
</form>
|
166 |
+
</div>
|
167 |
+
</div>
|
168 |
|
169 |
<br />
|
170 |
|
221 |
echo str_replace("\n","<br />",str_replace('<','<',$data));
|
222 |
?></td>
|
223 |
<td class="cpnopr">
|
224 |
+
<input class="button" type="button" name="caldelete_<?php echo $events[$i]->id; ?>" value="Delete" onclick="cp_deleteMessageItem(<?php echo $events[$i]->id; ?>);" />
|
225 |
</td>
|
226 |
</tr>
|
227 |
<?php } ?>
|
229 |
</table>
|
230 |
</form>
|
231 |
</div>
|
232 |
+
<input class="button-primary button" type="button" name="pbutton" value="Print" onclick="do_dexapp_print();" />
|
233 |
+
<div class="ahb-buttons-container">
|
234 |
+
<a href="<?php print esc_attr(admin_url('admin.php?page='.$this->menu_parameter));?>" class="ahb-return-link">←Return to the forms list</a>
|
235 |
+
<div class="clear"></div>
|
236 |
+
</div>
|
237 |
<div style="clear:both"></div>
|
238 |
+
<p class="submit" style="float:left;"><input class="button" type="button" name="pbutton" value="Delete marked items" onclick="cp_deletemarked();" /> </p>
|
239 |
+
<p class="submit" style="float:left;"><input class="button" type="button" name="pbutton" value="Delete All Bookings" onclick="cp_deleteall();" /></p>
|
240 |
<div style="clear:both"></div>
|
241 |
|
242 |
</div>
|
249 |
<div class="inside">
|
250 |
|
251 |
<form name="CPImportForm" action="admin.php?page=cp_contactformtoemail&rsave=<?php echo $nonce; ?>&cal=<?php echo $this->item; ?>&list=1&import=1" method="post" enctype="multipart/form-data">
|
252 |
+
<input style="float:left" type="file" name="importfile" />
|
253 |
+
<input class="button" type="submit" name="pbuttonimport" value="Import"/>
|
254 |
+
<div style="clear:both"></div>
|
255 |
<p>Instructions: Comma separated CSV file. One record per line, one field per column. <strong>Don't use a header row with the field names</strong>.</p>
|
256 |
<p>The first 3 columns into the CSV file are the <strong>time, IP address and email address</strong>, if you don't have this information then leave the first three columns empty.
|
257 |
After those initial columns the fields (columns) must appear in the same order than in the form.</p>
|
263 |
</form>
|
264 |
</div>
|
265 |
</div>
|
266 |
+
</div>
|
267 |
<?php } ?>
|
268 |
|
269 |
<script type="text/javascript">
|
cp-admin-int.inc.php
CHANGED
@@ -249,7 +249,7 @@ if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST[$this->prefix.'_post_
|
|
249 |
|
250 |
</script>
|
251 |
|
252 |
-
<div style="background:#fafafa;width:780px;" class="form-builder">
|
253 |
|
254 |
<div class="column width50">
|
255 |
<div id="tabs">
|
249 |
|
250 |
</script>
|
251 |
|
252 |
+
<div style="background:#fafafa;min-width:780px;" class="form-builder">
|
253 |
|
254 |
<div class="column width50">
|
255 |
<div id="tabs">
|
cp-main-class.inc.php
CHANGED
@@ -324,15 +324,17 @@ class CP_ContactFormToEmail extends CP_CFTEMAIL_BaseClass {
|
|
324 |
}
|
325 |
}
|
326 |
function cfte_blink(selector){
|
327 |
-
|
328 |
-
|
329 |
-
$dexQuery(
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
|
|
|
|
336 |
}
|
337 |
function <?php echo $this->prefix; ?>_cerror<?php echo '_'.$this->print_counter; ?>(){$dexQuery = jQuery.noConflict();$dexQuery("#hdcaptcha_error<?php echo '_'.$this->print_counter; ?>").css('top',$dexQuery("#hdcaptcha_<?php echo $this->prefix; ?>_post<?php echo '_'.$this->print_counter; ?>").outerHeight());$dexQuery("#hdcaptcha_error<?php echo '_'.$this->print_counter; ?>").css("display","inline");}
|
338 |
</script>
|
324 |
}
|
325 |
}
|
326 |
function cfte_blink(selector){
|
327 |
+
try {
|
328 |
+
$dexQuery = jQuery.noConflict();
|
329 |
+
$dexQuery(selector).fadeOut(700, function(){
|
330 |
+
$dexQuery(this).fadeIn(700, function(){
|
331 |
+
try {
|
332 |
+
if (document.<?php echo $this->prefix; ?>_pform<?php echo '_'.$this->print_counter; ?>.<?php echo $this->prefix; ?>_pform_status.value != '0')
|
333 |
+
cfte_blink(this);
|
334 |
+
} catch (e) {}
|
335 |
+
});
|
336 |
+
});
|
337 |
+
} catch (e) {}
|
338 |
}
|
339 |
function <?php echo $this->prefix; ?>_cerror<?php echo '_'.$this->print_counter; ?>(){$dexQuery = jQuery.noConflict();$dexQuery("#hdcaptcha_error<?php echo '_'.$this->print_counter; ?>").css('top',$dexQuery("#hdcaptcha_<?php echo $this->prefix; ?>_post<?php echo '_'.$this->print_counter; ?>").outerHeight());$dexQuery("#hdcaptcha_error<?php echo '_'.$this->print_counter; ?>").css("display","inline");}
|
340 |
</script>
|
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.
|
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.63
|
7 |
Author: CodePeople
|
8 |
Author URI: https://form2email.dwbooster.com
|
9 |
Text Domain: contact-form-to-email
|