PluginProbe
Property Hive / 2.2.5
Property Hive v2.2.5
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-display-enquiries.php

html-display-enquiries.php in Property Hive 2.2.5, at includes/admin/views/html-display-enquiries.php

52 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
4
5 echo '<table style="width:100%">
6 <thead>
7 <tr>
8 <th style="text-align:left;">' . __( 'Date', 'propertyhive' ) . ' / ' . __( 'Time', 'propertyhive' ) . '</th>
9 <th style="text-align:left;">' . __( 'Subject', 'propertyhive' ) . '</th>
10 <th style="text-align:left;">' . __( 'Status', 'propertyhive' ) . '</th>
11 <th style="text-align:left;">' . __( 'Negotiator', 'propertyhive' ) . '</th>
12 <th style="text-align:left;">' . __( 'Office', 'propertyhive' ) . '</th>
13 </tr>
14 </thead>
15 <tbody>';
16
17 while ( $enquiries_query->have_posts() )
18 {
19 $enquiries_query->the_post();
20
21 $the_enquiry = new PH_Enquiry( get_the_ID() );
22
23 echo '<tr' . ( ($the_enquiry->status == 'closed') ? ' style="opacity:0.4"' : '' ) . '>';
24 echo '<td style="text-align:left;"><a href="' . get_edit_post_link( get_the_ID() ) . '">' . get_the_time( 'jS M Y' ) . ' ' . get_the_time( 'H:i' ) . '</a></td>';
25 echo '<td style="text-align:left;">' . get_the_title() . '</td>';
26 echo '<td style="text-align:left;">' . $the_enquiry->status . '</td>';
27 echo '<td style="text-align:left;">';
28 if ($the_enquiry->_negotiator_id == '' || $the_enquiry->_negotiator_id == 0)
29 {
30 echo '<em>-- ' . __( 'Unassigned', 'propertyhive' ) . ' --</em>';
31 }
32 else
33 {
34 $userdata = get_userdata( $the_enquiry->_negotiator_id );
35 if ( $userdata !== FALSE )
36 {
37 echo $userdata->display_name;
38 }
39 else
40 {
41 echo '<em>Unknown user</em>';
42 }
43 }
44 echo '</td>';
45 echo '<td style="text-align:left;">' . get_the_title( $the_enquiry->_office_id ) . '</td>';
46 echo '</tr>';
47 }
48
49 echo '
50 </tbody>
51 </table>
52 <br>';