-
Notifications
You must be signed in to change notification settings - Fork 10
/
property_detail.php
94 lines (81 loc) · 2.62 KB
/
property_detail.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<table width="275" border="0" cellspacing="0" cellpadding="0" style="float:left;">
<tr>
<td align="center"><?php include('admin/connection.php'); ?>
<?php
$get_id_property=mysql_real_escape_string($_POST['post_item']);
$id_property_sql="SELECT * FROM property WHERE id_property='$get_id_property'";
$id_property_result=mysql_query($id_property_sql) or die(mysql_error());
$id_pro = $_POST['post_item'];
while($row_id_property=mysql_fetch_array($id_property_result)){
$name_property=$row_id_property["name_property"];
$price=$row_id_property["price"];
$type_property=$row_id_property["type_property"];
$beds=$row_id_property["beds"];
$baths=$row_id_property["baths"];
$text=$row_id_property["text"];
$land_area=$row_id_property["land_area"];
$groos_floor_area=$row_id_property["groos_floor_area"];
$image=$row_id_property["name_property"];
$filename = "admin/images/$name_property.jpg";
if (!file_exists($filename)) {
$filename="images/default.png";
}
if ($image==null) {
$filename="images/$name_property.jpg";
}
print<<<HERE
<td align="center"><br><br>
<p align="center"><img src="$filename" width="929" height="619"></p>
</td>
<td valign="top" class="text_menu">
<table width="277" border="0" cellspacing="0" cellpadding="0" class="text_menu">
<tr>
<td align="left" colspan="3">
<br>
<text class="text_menu">/ / Item Code: <text class="highlight">MO$get_id_property</text> / /</text>
<table class="text_menu" width="289" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="95">Item Name :</td>
<td width="188" class="highlight">$name_property</td>
</tr>
<tr>
<td>Item Price :</td>
<td>RM <text class="highlight">$price</text>
</td>
</tr>
<tr>
<td>Land Area :</td>
<td> <text class="highlight">$land_area</text>
</td>
</tr>
<tr>
<td>Groos Floor:</td>
<td><text class="highlight">$groos_floor_area</text>
</td>
</tr>
</table></td>
</tr>
<br><br>
</td></tr></table>
<br>
<u>Description:</u><br><br>
<hr>
<textarea class="text_menu" style="width:300px; height:300px; background:transparent;border:0; resize:none" readonly>
Type Property : $type_property
Land Area : $land_area
Groos Floor Area : $groos_floor_area
Bedrooms : $beds
Bathroom:$baths
Addtional:$text
</textarea>
<hr>
<p align="left"><input type="button" name="back" value="Back"
onClick="location.href='property_listing.php'" /><input type="button" name="Form" value="Form"
onClick="location.href='property_form.php?id_property=$id_pro'" /><input type="hidden" value="$id_pro"></p>
</td>
<br>
</table>
HERE;
}
?></td>
</table>