-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathitemInfo.php
78 lines (63 loc) · 2.62 KB
/
itemInfo.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
<?php
include_once "DataBase.php";
include_once "Autentication/Auth.php";
?>
<!DOCTYPE html>
<html>
<head>
<title>Интернет-магазин</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="css/Styles.css">
<link rel="stylesheet" type="text/css" href="css/Styles_Items.css">
<script src="script/jquery-1.10.2.min.js"></script>
<script src="script/script.js"></script>
</head>
<body class="body">
<!-- Ўапка -->
<div class="header">
<?php include 'Elements/headerMenu.php'; ?>
<!--Скрытый поиск-->
<div class="headerSearchPanel">
<div class="container">
<div class="Search">
<form>
<input class="SearchInput" type="text" placeholder="Поиск">
<input class="ButtonSubmit" type="submit" value="Найти">
</form>
</div>
<div class="closer"></div>
</div>
</div>
<!-- Боковое меню. -->
<?php include 'Elements/leftMenu.php'; ?>
<!-- Товар. -->
<div class="containerItem">
<div class="container">
<div class="ItemsMenu">
<ul>
<li class="ItemList" >
<?php
$item = null;
$db = DBWorkerFabric::GetDataBaseWorker();
$item = $db->getItem(htmlspecialchars($_GET['item_id']));
if (is_null($item)) {
echo '<div class="ErrorText">Такого продукта нет</div>';
} else {
$item->show(ItemElements::getFullItemInfo($auth->isAuth()));
//$item->show(true, );
}
?>
</li>
</ul>
</div>
<div class="closer"></div>
</div>
</div>
</div>
<?php include 'Elements/footerMenu.php'; ?>
<?php include 'Elements/ImgZoomModal.php'; ?>
<?php include 'Elements/UserLoginModalWnd.php'; ?>
<div class="fader"></div>
</body>
</html>