PluginProbe
Property Hive / 1.4.6
Property Hive v1.4.6
2.3.1 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 All 261 releases
propertyhive / includes / admin / views / html-admin-matching-properties-email.php

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

116 lines 4.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 $current_user = wp_get_current_user();
3 ?>
4 <div class="wrap propertyhive">
5
6 <h1>Emailing <?php echo count($_POST['email_property_id']); ?> Suitable Properties To <?php echo get_the_title($contact_id); ?></h1>
7
8 <div id="poststuff">
9
10 <?php /*<div style="float:left; width:50%;">*/ ?>
11
12 <form method="post" id="mainform" action="" enctype="multipart/form-data">
13
14 <table class="form-table">
15
16 <tr valign="top">
17 <th scope="row" class="titledesc"><?php echo __( 'To', 'propertyhive' ); ?></th>
18 <td class="forminp">
19 <input type="text" name="to_email_address" value="<?php echo get_post_meta( $contact_id, '_email_address', TRUE ); ?>" style="width:100%;">
20 </td>
21 </tr>
22
23 <tr valign="top">
24 <th scope="row" class="titledesc"><?php echo __( 'From Name', 'propertyhive' ); ?></th>
25 <td class="forminp">
26 <input type="text" name="from_name" value="<?php
27
28 echo get_bloginfo('name');
29
30 ?>" style="width:100%;">
31 </td>
32 </tr>
33
34 <tr valign="top">
35 <th scope="row" class="titledesc"><?php echo __( 'From Email Address', 'propertyhive' ); ?></th>
36 <td class="forminp">
37 <input type="text" name="from_email_address" value="<?php
38
39 if ( trim($current_user->user_email) != '' )
40 {
41 echo $current_user->user_email;
42 }
43
44 ?>" style="width:100%;">
45 </td>
46 </tr>
47
48 <tr valign="top">
49 <th scope="row" class="titledesc"><?php echo __( 'Subject', 'propertyhive' ); ?></th>
50 <td class="forminp">
51 <input type="text" name="subject" value="<?php echo $subject; ?>" style="width:100%;">
52 </td>
53 </tr>
54
55 <tr valign="top">
56 <th scope="row" class="titledesc"><?php echo __( 'Email Body', 'propertyhive' ); ?></th>
57 <td class="forminp">
58 <textarea name="body" style="width:100%; height:300px;"><?php echo $body; ?></textarea>
59 </td>
60 </tr>
61
62 </table>
63
64 <p class="submit">
65
66 <input name="save" class="button-primary" type="submit" value="<?php echo __( 'Send Email', 'propertyhive' ); ?>" />
67 <input name="preview" id="preview_email" class="button" type="button" value="<?php echo __( 'Preview Email', 'propertyhive' ); ?>" />
68
69 <input type="hidden" name="step" value="two" />
70 <input type="hidden" name="email_property_id" value="<?php echo implode(",", $_POST['email_property_id']); ?>" />
71 <?php wp_nonce_field( 'propertyhive-matching-properties' ); ?>
72
73 </p>
74
75 <p>
76 <?php echo __( 'When sending out lots of emails we recommend using <a href="https://en-gb.wordpress.org/plugins/tags/smtp" target="_blank">a plugin</a> to send them out using SMTP. Your web developer or hosting company should be able to advise on this.', 'propertyhive' );
77 ?>
78 </p>
79
80 </form>
81
82 <?php /*</div>
83
84 <div style="float:right; width:50%;">
85
86 <iframe name="previewFrame" src="" height="500" width="100%" style="border:1px solid #CCC;" frameborder="0" scrolling="auto">Your browser does not support iFrames</iframe>
87
88 </div>*/ ?>
89
90 </div>
91
92 </div>
93
94 <script>
95
96 jQuery(document).ready(function()
97 {
98 jQuery('#preview_email').click(function(e)
99 {
100 e.preventDefault();
101
102 showPreview();
103 });
104 });
105
106 function showPreview()
107 {
108 jQuery('#mainform').attr('target', '_blank');
109 jQuery('#mainform').attr('action', '<?php echo admin_url( '?preview_propertyhive_email=true&contact_id=' . $_GET['contact_id'] . '&applicant_profile=' . $_GET['applicant_profile'] ); ?>');
110
111 jQuery('#mainform').submit();
112 jQuery('#mainform').attr('target', '_self');
113 jQuery('#mainform').attr('action', '');
114 }
115
116 </script>