PluginProbe
Property Hive / 2.2.4
Property Hive v2.2.4
2.3.0 2.2.6 2.2.5 2.2.4 2.2.3 2.2.2 1.4.46 1.4.47 1.4.48 1.4.49 1.4.5 1.4.50 1.4.51 1.4.52 1.4.53 1.4.54 1.4.55 1.4.56 1.4.57 1.4.58 1.4.59 1.4.6 1.4.60 1.4.61 1.4.62 All 260 releases
propertyhive / includes / admin / views / html-admin-matching-properties-email.php

html-admin-matching-properties-email.php in Property Hive 2.2.4, at includes/admin/views/html-admin-matching-properties-email.php

84 lines 2.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 exit;
4 }
5 ?>
6
7 <h1>Emailing <?php echo count($_POST['email_property_id']); ?> Suitable Properties To <?php echo esc_html(get_the_title($contact_id)); ?></h1>
8
9 <table class="form-table">
10
11 <tr valign="top">
12 <th scope="row" class="titledesc"><?php echo esc_html(__( 'To', 'propertyhive' )); ?></th>
13 <td class="forminp">
14 <input type="text" name="to_email_address" value="<?php echo get_post_meta( $contact_id, '_email_address', TRUE ); ?>" style="width:100%; margin-bottom:5px;">
15 <a href="" class="show-cc">Show Cc</a> &nbsp;|&nbsp; <a href="" class="show-bcc">Show Bcc</a>
16 </td>
17 </tr>
18
19 <tr valign="top" style="display:none" id="cc_email_address_row">
20 <th scope="row" class="titledesc"><?php echo esc_html(__( 'Cc', 'propertyhive' )); ?></th>
21 <td class="forminp">
22 <input type="text" name="cc_email_address" value="" style="width:100%;">
23 </td>
24 </tr>
25
26 <tr valign="top" style="display:none" id="bcc_email_address_row">
27 <th scope="row" class="titledesc"><?php echo esc_html(__( 'Bcc', 'propertyhive' )); ?></th>
28 <td class="forminp">
29 <input type="text" name="bcc_email_address" value="" style="width:100%;">
30 </td>
31 </tr>
32
33 <tr valign="top">
34 <th scope="row" class="titledesc"><?php echo esc_html(__( 'From Name', 'propertyhive' )); ?></th>
35 <td class="forminp">
36 <input type="text" name="from_name" value="<?php echo esc_attr(get_bloginfo('name')); ?>" style="width:100%;">
37 </td>
38 </tr>
39
40 <tr valign="top">
41 <th scope="row" class="titledesc"><?php echo esc_html(__( 'From Email Address', 'propertyhive' )); ?></th>
42 <td class="forminp">
43 <input type="text" name="from_email_address" value="<?php echo esc_attr(trim($from_email_address)); ?>" style="width:100%;">
44 </td>
45 </tr>
46
47 <tr valign="top">
48 <th scope="row" class="titledesc"><?php echo esc_html(__( 'Subject', 'propertyhive' )); ?></th>
49 <td class="forminp">
50 <input type="text" name="subject" value="<?php echo esc_attr($subject); ?>" style="width:100%;">
51 </td>
52 </tr>
53
54 <tr valign="top">
55 <th scope="row" class="titledesc"><?php echo esc_html(__( 'Email Body', 'propertyhive' )); ?></th>
56 <td class="forminp">
57 <textarea name="body" style="width:100%; height:300px;"><?php echo $body; ?></textarea>
58 </td>
59 </tr>
60
61 </table>
62
63 <script>
64
65 jQuery(document).ready(function()
66 {
67 jQuery('a.show-cc').click(function(e)
68 {
69 e.preventDefault();
70
71 jQuery('#cc_email_address_row').fadeIn('fast');
72 jQuery('#cc_email_address_row input').focus();
73 });
74
75 jQuery('a.show-bcc').click(function(e)
76 {
77 e.preventDefault();
78
79 jQuery('#bcc_email_address_row').fadeIn('fast');
80 jQuery('#bcc_email_address_row input').focus();
81 });
82 });
83
84 </script>