-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathview_item.php
49 lines (43 loc) · 1.77 KB
/
view_item.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
<?php
require_once 'header.php';
try {
$item = new Item($_REQUEST['item_id']);
$images = explode('@', $item->getImages());
$item_user = new User($item->getUserId());
} catch (Exception $e) {
}
?>
<div id="content">
<div class="articlesFull" style="cursor:auto;">
<div class="img_articles" style="float:left">
<div id="images_container" class="">
<?php
foreach ($images as $image) {
echo '<img width="205" class="item_image_in_view" src="' . $image . '" />';
}
?>
</div>
</div>
<div>
<div class="article-title" style="height: 230px;">
<h2 class="h2-contact"><?php echo $item->getName();?></h2>
<h2 class="h2-contact">Цена: <?php echo $item->getPrice() . $item->getCurrency();?></h2>
<h3>Допълнителна информация:<h3>
<h2 class="h2-contact"><?php echo $item->getInfo();?></h2>
<br>
<h3>Информация за продавача:<h3>
<h2 class="h2-contact"><a href="profile.php?id=<?php echo $item_user->getId();?>">Име: <?php echo $item_user->getUserName();?></a></h2>
<h2 class="h2-contact">Имейл: <?php echo $item_user->getEmail();?></h2>
<h2 class="h2-contact">Телефон: <?php echo $item_user->getPhone();?></h2>
<h2 class="h2-contact">Адрес: <?php echo $item_user->getAddress();?></h2>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function() {
});
</script>
<?php
require_once 'footer.php';
?>