/
rentofhire_view.php
65 lines (55 loc) · 1.83 KB
/
rentofhire_view.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
<?php
include "header.php";
include "subheader.php";
require_once "common/class/mysql.class.php";
require_once "common/class/service.class.php";
$rentorhire=new rentorhire;
$rentorhire_data = $rentorhire->getbyid($_GET['id']);
//print_r($rentorhire_data);
$user=new user();
?>
<h3 class="heading"> <?php echo $rentorhire_data['name']; ?> - Rent or Hire</h3>
<div style="margin:3px 0 0 0;"><strong>Rent or Hire ID:</strong> <?php echo $_GET['id']; ?></div>
<table border="0" class="tableDetails" align="center">
<tr height="20"></tr>
<tr class="fir">
<th> Title : </th> <td><b><?php echo $rentorhire_data['name'];?></b></td>
</tr>
<tr>
<th width="200"> Status :</th> <td> <?php echo $rentorhire_data['status'];?></td>
</tr>
<tr class="fir">
<th> Posted On :</th> <td> <?php echo $rentorhire_data['posted_time'];?></td>
</tr>
<tr>
<th > By Username :</th> <td > <?php echo $user->getUserNameFromUserId($rentorhire_data['userid']);?></td>
</tr>
<tr class="fir">
<th> Category Listing :</th> <td> Category Listing..</td>
</tr>
<tr>
<th valign="top"> Description:</th> <td valign="top"><?php echo $rentorhire_data['description'];?></td>
</tr>
<tr>
<th valign="top"> Related photos:</th>
<td><?php
$photos=$rentorhire->getPhotos($_GET['id']);
if($photos)
{
echo "<ul style=\"list-style:none\">";
$ph=new photo;
foreach($photos as $photo)
{
$img=$ph->getPhotoById($photo['photo_id'],2);
echo '<li><a href="javascript:;" onclick="loadPage(\'/ajax/display_image.php?id='.$photo['photo_id'].'\')"><img src="'.$img.'" border="0"></a></li>';
}
echo "</ul>";
}
?>
</td>
</tr>
</table>
<?php
include "subfooter.php";
include "footer.php";
?>