-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsidebar.php
More file actions
69 lines (51 loc) · 2.21 KB
/
sidebar.php
File metadata and controls
69 lines (51 loc) · 2.21 KB
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
<?php include_once "database.php" ?>
<div id="sidebar" class="four columns">
<div class="widget widget_search">
<h3>Search</h3>
<form action="index.php" method="get">
<input type="text" name="arama" value="Search here..." onblur="if(this.value == '') { this.value = 'Search here...'; }" onfocus="if (this.value == 'Search here...') { this.value = ''; }" class="text-search">
<input type="submit" value="" class="submit-search">
</form>
</div>
<div class="widget widget_categories group">
<h3>KATEGORILER</h3>
<ul>
<?php
$sorgu = $db->query("SELECT kategoriler.id , kategoriler.Kategori_Adi,COUNT(*) as sayi
FROM kategoriler INNER JOIN main ON
kategoriler.id=main.kategori_id
GROUP BY main.kategori_id ORDER BY sayi DESC" , PDO::FETCH_ASSOC);
if($sorgu -> rowCount()){
foreach ($sorgu as $row) {
?>
<li><a href="index.php?kategori=<?php echo $row['id'] ?>" title=""><?php echo $row['Kategori_Adi'] ?></a> (<?php echo $row['sayi'] ?>)</li>
<?php
}
}
?>
</ul>
</div>
<div class="widget widget_text group">
<h3>PHP HAKKINDA</h3>
<p>PHP,ya da resmi adıyla "PHP: Hypertext Preprocessor"(PHP: Hipermetin önişlemcisi), HTML'e gömülebilen, sunucu tarafından işlenen kodlar yazabileceğiniz, tamamen açık kaynaklı bir dildir. Yani dinamik içerik oluşturmada tercih edebileceğiniz bir programlama dilidir.</p>
</div>
<div class="widget widget_tags">
<h3>Etiket</h3>
<div class="tagcloud group">
<a href="#">PHP</a>
<a href="#">HTML</a>
<a href="#">CSS</a>
<a href="#">JAVA Script</a>
</div>
</div>
<div class="widget widget_popular">
<h3>Popular Post.</h3>
<ul class="link-list">
<li><a href="#">Sint cillum consectetur voluptate.</a></li>
<li><a href="#">Lorem ipsum Ullamco commodo.</a></li>
<li><a href="#">Fugiat minim eiusmod do.</a></li>
</ul>
</div>
</div> <!-- end sidebar -->
</div> <!-- end row -->
</div> <!-- end content-wrap -->