-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·134 lines (129 loc) · 4.7 KB
/
index.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
<?php include('inc/header.php'); ?>
<?php include('inc/nav.php') ?>
<div class="banner_section">
<div class="container-fluid">
<section class="slide-wrapper">
<div class="container-fluid">
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="carousel-item active">
<div class="row">
<div class="col-sm-2 padding_0"></div>
<div class="col-sm-5" id="title_box">
<div class="col-sm-5">
<div class="banner_taital">
<h1 class="mens_text">PowerPoint </h1>
<h1 class="banner_text"><strong>Marketplace</strong></h1>
<p class="lorem_text">Gratis PowerPoints Herunterladen</p>
<button class="buy_bt">Kategorien</button>
<button class="more_bt">Top</button>
</div>
<div class="col-sm-5">
<div class="shoes_img"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
</div>
</div>
<!-- header section end -->
<!-- Beliebteste Kategorien -->
<div class="layout_padding gallery_section">
<div class="container">
<div class="row">
<h1 class="new_text" style="color: white; margin-left: 20px;"><strong>Beliebteste Kategorien</strong></h1>
<?php
for($i=1; $i<=6; $i++) {
?>
<div class="col-sm-4">
<a href="powerpoints?class=<?php echo $i; ?>">
<div class="best_shoes">
<p class="best_text"><?php echo $fach[$i]; ?></p>
</div>
</a>
</div>
<?php
}
?>
</div>
<div class="buy_now_bt">
<a href="categories"><button class="buy_text" style="width:200px"> Mehr Kategorien </button></a>
</div>
</div>
</div>
<!-- Beliebteste Kategorien ende -->
<!-- Neuste Powerpoints -->
<div class="collection_section layout_padding" style="padding-bottom:90px;">
<div class="container">
<div class="row">
<h1 class="new_text" style="margin-left:20px;"><strong>Neuste Powerpoints</strong></h1>
<?php
// get newest pps
$sql = "SELECT * FROM powerpoints WHERE active LIKE 1 ORDER BY created DESC";
$result = $mysqli->query($sql);
$counter = 1;
if ($result->num_rows > 0) {
while($row = $result->fetch_assoc()) {
if ($counter == 1) echo '<div class="row">';
?>
<a href="ppinfo.php?id=<?php echo $row["id"] ?>">
<div class="col-sm-4 pp-link">
<div class="best_shoes">
<p class="best_text"><?php echo $row["title"] ?> </p>
<div class="shoes_icon"><img src="storage/images/<?php echo $row["img"]; ?>/Slide1.PNG" width="280" max-height="183" style="margin-left:17px"></div>
<div class="star_text">
<div class="left_part">
<ul>
<?php for($i=0; $i<$row["stars"]; $i++) { ?>
<li><a href="#"><img src="images/star-icon.png"></a></li>
<?php }
if ($row["stars"] <= 0) { ?>
<li><a href="#"></a></li>
<?php } ?>
</ul>
</div>
<div class="right_part">
<div class="shoes_price"><img src="images/download.svg"> <span style="color: #ff4e5b;"><?php echo $row["downloads"]; ?></span></div>
</div>
</div>
</div>
</div>
</a>
<?php
if ($counter == 3) {
echo '</div>';
$counter = 0;
}
$counter++;
}
}
?>
</div>
<div class="buy_now_bt">
<a href="powerpoints.php?cat=new"><button class="buy_text" style="width:200px"> Mehr PowerPoints </button></a>
</div>
</div>
</div>
<!-- Neuste Powerpoints ende -->
<!-- info text start -->
<div class="gallery_section">
<div class="container">
<br><br><br><br>
<h1 class="new_text" style="color:#ffffff"><strong>Über PP-Marketplace</strong></h1>
<p class="info_text" style="color:#ffffff">Wir sind ein Marktplatz für PowerPoints aller Art. </p>
<p class="info_text" style="color:#ffffff">Brauchst du eine PowerPoint für Geographie?
<li class="info_text" style="margin-top: 5px; color:#ffffff;"> 1. Gehe einfach zur <a href="powerpoints.php?class=1" style="border-bottom:2px solid #ffffff;color:#ffffff;">Kategorie Geographie</a></li>
<li class="info_text" style="color:#ffffff"> 2. Such dir eine passende PowerPoint aus</li>
<li class="info_text" style="color:#ffffff"> 3. Und lade sie herunter. Fertig :D</li></p>
<p> </p>
<p> </p>
</div>
</div>
<!-- info text end -->
<?php include('inc/footer.php'); ?>