-
Notifications
You must be signed in to change notification settings - Fork 0
/
galeries.php
197 lines (173 loc) · 6.63 KB
/
galeries.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<?php
require_once 'config/db.php';
$server = mysqli_connect($hostDB,$userDB,$passDB,$tableDB);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>TP Makeup</title>
<!-- Bootstrap Core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom Fonts -->
<link href="vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css">
<link href="vendor/simple-line-icons/css/simple-line-icons.css" rel="stylesheet">
<link rel="shortcut icon" type="image/x-icon" href="assets/uploads/tp_icon.png" />
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="btn_ready.js" charset="utf-8"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ekko-lightbox/5.2.0/ekko-lightbox.min.js" charset="utf-8"></script>
<!-- Custom CSS -->
<link href="css/stylish-portfolio.css" rel="stylesheet">
<style media="screen">
.sdw {
text-shadow: 2px 2px 4px #000000;
}
</style>
</head>
<body id="page-top">
<a class="menu-toggle rounded" href="#">
<i class="fa fa-bars"></i>
</a>
<nav id="sidebar-wrapper">
<ul class="sidebar-nav">
<li class="sidebar-nav-item">
<a class="js-scroll-trigger" href="index.php#page-top">Kezdőlap</a>
</li>
<li class="sidebar-nav-item">
<a class="js-scroll-trigger" href="index.php#gallery">Gelléria</a>
</li>
<li class="sidebar-nav-item">
<a class="js-scroll-trigger" href="index.php#services">Bemutatkozás</a>
</li>
<li class="sidebar-nav-item">
<a class="js-scroll-trigger" href="index.php#footer">Elérhetőségek</a>
</li>
</ul>
</nav>
<!-- About -->
<section class="content-section bg-light" id="gallery">
<div class="container text-center">
<div class="row">
<div class="col-lg-10 mx-auto" id="color_btn">
<h2>Nézd meg a kategóriák közül ami tetszik!</h2>
<p></p>
<?php
$q = "SELECT * FROM categories";
$sq = mysqli_query($server, $q);
while ($sqa = mysqli_fetch_assoc($sq)) {
$id = $sqa['cat_id'];
$color = $sqa['color'];
?>
<a class="btn btn-dark btn-xl" placeholder="<?php echo $color ?>" href="galeries.php?cat=<?php echo $id ?>"><span class="sdw"><?php echo $sqa['name'] ?></span></a>
<?php } ?>
</div>
<script type="text/javascript">
$(document).ready(function() {
btn_color();
});
</script>
</div>
</div>
</section>
<?php
$cat_id = $_GET['cat'];
$q = "SELECT * FROM categories WHERE cat_id = '{$cat_id}'";
$sq = mysqli_query($server, $q);
while ($sqa = mysqli_fetch_assoc($sq)) {
$cat_name = $sqa['name'];
$cal_leiras = $sqa['leiras'];
}
?>
<!-- Portfolio -->
<section class="content-section" id="portfolio">
<div class="container">
<div class="content-section-heading text-center">
<h3 class="text-primary mb-0">Portfolio</h3>
<h2 class="mb-5"><?php echo $cat_name ?></h2>
<p align="center"><?php echo $cal_leiras ?></p>
</div>
<div class="row no-gutters">
<?php
$cat_id = $_GET['cat'];
$q = "SELECT * FROM photo WHERE cat = '{$cat_name}'";
$sq = mysqli_query($server, $q);
while ($sqa = mysqli_fetch_assoc($sq)) {
$pat = $sqa['pat'];
$leiras = $sqa['leiras'];
?>
<div class="col-lg-4">
<a class="portfolio-item" data-toggle="lightbox" href="<?php echo $pat ?>">
<span class="caption">
<span class="caption-content">
<p class="mb-0"><?php echo $leiras ?></p>
</span>
</span>
<img class="img-fluid" src="<?php echo $pat ?>" alt="" height="100%">
</a>
</div>
<?php } ?>
</div>
</div>
</section>
<!-- Footer -->
<section id="footer">
<footer class="footer text-center">
<div class="container" align="left">
<h4>Árlista:</h4>
<?php
$q = "SELECT * FROM arlista";
$sq = mysqli_query($server, $q);
while ($sqa = mysqli_fetch_assoc($sq)) {
?>
<p><?php echo $sqa['megnevezes'] ?>: <?php echo $sqa['ar'] ?></p>
<?php
}
?>
</div>
<div class="container">
<p>Telefon: +36 20 551 7754</p>
<p>Email: [email protected]</p>
<ul class="list-inline mb-5">
<li class="list-inline-item">
<a class="social-link rounded-circle text-white mr-3" href="https://www.facebook.com/TakacsPetraSmink/">
<i class="icon-social-facebook"></i>
</a>
</li>
<li class="list-inline-item">
<a class="social-link rounded-circle text-white mr-3" href="https://www.instagram.com/_tp_makeup_/">
<i class="icon-social-instagram"></i>
</a>
</li>
</ul>
<p class="text-muted small mb-0">Copyright © <h4><a href="https://www.facebook.com/balazs.zakany"><span style="color:#f442f4">Z</span><span style="color:#30ff75">K</span><span style="color:#82fff2">N</span><span style="color:#f7ffbf">Y</span></a></h4></p>
</div>
</footer>
<!-- Scroll to Top Button-->
<a class="scroll-to-top rounded js-scroll-trigger" href="#page-top">
<i class="fa fa-angle-up"></i>
</a>
</section>
<!-- Scroll to Top Button-->
<a class="scroll-to-top rounded js-scroll-trigger" href="#page-top">
<i class="fa fa-angle-up"></i>
</a>
<!-- image view model -->
<script type="text/javascript">
$(document).on('click', '[data-toggle="lightbox"]', function(event) {
event.preventDefault();
$(this).ekkoLightbox();
});
</script>
</body>
<!-- Bootstrap core JavaScript -->
<!-- <script src="vendor/jquery/jquery.min.js"></script> -->
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Plugin JavaScript -->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Custom scripts for this template -->
<script src="js/stylish-portfolio.min.js"></script>
</html>