forked from ivancho-ifa/adventure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdetail.php
99 lines (78 loc) · 3.51 KB
/
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
95
96
97
98
99
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Детайли</title>
<link href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,400italic,700italic,900italic' rel='stylesheet' type='text/css'>
<link href="css/stylecss.css" rel='stylesheet' type='text/css'/>
<link href="css/style.css" rel="stylesheet" type="text/css" media="all"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<?php include('connect-to-db.php'); ?>
<?php include('navigation.php'); ?>
<img src="images/beach2.jpg" width="100%" />
<div style="height:50px"></div>
<div style="width:1000px; margin:auto" >
<div style="width:200px; font-size:18px; color:#09F; float:left">
<table cellpadding="0" cellspacing="0" width="1000px" >
<tr><td style="font-size:18px" color="#09F">Категория</td></tr>
<?php
$s="select * from category";
$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);
while($data=mysqli_fetch_array($result))
{
echo "<tr><td style=' padding:5px;'><a href='subcat.php?catid=$data[0]'>$data[1]</a></td></tr>";
}
?>
</table>
</div>
</div>
<div style="width:800px; float:left">
<table cellpadding="0px" cellspacing="0" width="1000px" >
<tr><td class="headingText">Пакет</td></tr>
<tr>
<td class="paraText" width="900px">
<table cellpadding="0" cellspacing="0" width="900px" border="0">
<tr>
<td>
<table border="0" width="600px" height="400px" align="center" >
<?php
$s="select * from package,category,subcategory where package.category=category.cat_id and package.subcategory=subcategory.subcatid and package.packid='" . $_GET["pid"] ."'";
$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);
$data=mysqli_fetch_array($result);
mysqli_close($cn);
?>
<tr>
<td colspan="3"><span class="middletext">Пакет:</span> <?php echo $data[1];?></td>
</tr>
<tr>
<td class="middletext"><img src="../images/packimages/<?php echo $data[5];?>" width="200px" height="200px" /></td>
<td class="middletext" style="padding-left:15px"><img src="../images/packimages/<?php echo $data[6];?>" width="200px" height="200px" /></td>
<td class="middletext" style="padding-left:15px"><img src="../images/packimages/<?php echo $data[7];?>" width="200px" height="200px" /></td>
</tr>
<tr><td colspan="3" height="90px"><span class="middletext">Категория:</span>
<?php echo $data[10];?>
<br/>
<span class="middletext">Подкатегория:</span>
<?php echo $data[12];?>
<br/>
<span class="middletext">Цена:</span>
<?php echo $data[4];?>
</td></tr>
<tr><td colspan="3"><p><?php echo $data[8];?></p></td></tr>
<tr><td align="left" colspan="3" height="50px"><a href="enquiry.php?pid=<?php echo $data[0]; ?>"><input type="button" value="Записване" name="sbmt" /></a></td></tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
<div style="clear:both"></div>
</body>
</html>