-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
117 lines (89 loc) · 4.09 KB
/
header.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
<?php include_once "database.php" ?>
<?php session_start(); ?>
<!DOCTYPE html>
<!--[if lt IE 8 ]><html class="no-js ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="no-js ie ie8" lang="en"> <![endif]-->
<!--[if IE 9 ]><html class="no-js ie ie9" lang="en"> <![endif]-->
<!--[if (gte IE 8)|!(IE)]><!--><html class="no-js" lang="en"> <!--<![endif]-->
<head>
<!--- Basic Page Needs
================================================== -->
<meta charset="utf-8">
<title>İbrahim KURT</title>
<meta name="description" content="">
<meta name="author" content="">
<!-- mobile specific metas
================================================== -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- CSS
================================================== -->
<link rel="stylesheet" href="css/default.css">
<link rel="stylesheet" href="css/layout.css">
<link rel="stylesheet" href="css/media-queries.css">
<!-- Script
================================================== -->
<script src="js/modernizr.js"></script>
<!-- Favicons
================================================== -->
<link rel="shortcut icon" href="favicon.png" >
</head>
<body>
<!-- Header
================================================== -->
<header id="top">
<div class="row">
<div class="header-content twelve columns">
<?php
$sorgu = $db->query("SELECT * FROM header_yazi " , PDO::FETCH_ASSOC);
if($sorgu -> rowCount()){
foreach ($sorgu as $row) {
?>
<h1 id="logo-text"><a href="index.php" title=""><?php echo $row['Baslik'] ?></a></h1>
<p id='intro'><?php echo $row['Slogan'] ?></p>;
<?php
}
}
?>
</div>
</div>
<nav id="nav-wrap">
<a class="mobile-btn" href="#nav-wrap" title="Show navigation">Show Menu</a>
<a class="mobile-btn" href="#" title="Hide navigation">Hide Menu</a>
<div class="row">
<?php
$sorgu = $db->query("SELECT * FROM menuler " , PDO::FETCH_ASSOC);
if($sorgu -> rowCount()){
foreach ($sorgu as $row) {
?>
<ul id="nav" class="nav">
<li <?php if($_SERVER['PHP_SELF'] == "/staj_proje/index.php") print "class='current'"; ?>><a href="index.php"><?php echo $row['Menu1'] ?></a></li>
<li <?php if($_SERVER['PHP_SELF'] == "/staj_proje/archives.php") print "class='current'"; ?>><a href="archives.php"><?php echo $row['Menu3'] ?></a></li>
<li <?php if($_SERVER['PHP_SELF'] == "/staj_proje/blog.php") print "class='current has-children'"; ?>><a href="blog.php"><?php echo $row['Menu4'] ?></a>
<ul>
<li><a href="blog.php">Blog Entries</a></li>
<li><a href="single.php">Single Blog</a></li>
</ul>
</li>
<li <?php if($_SERVER['PHP_SELF'] == "/staj_proje/page.php") print "class='current'"; ?>><a href="page.php"><?php echo $row['Menu5'] ?></a></li>
<?php
if(isset($_SESSION["adi"]))
echo "<li><a style='font-size:11px; position:absolute ; left: 430px; width: 300px; text-align: right;'> $_SESSION[adi]</a></li>";
?>
<?php
if(isset($_SESSION["adi"]) and $_SESSION["tip"]==1 ) {
echo "<li><a href='adminPanel/index.php' style='font-size:10px; color:#3CB371; position:absolute ; left: 300px; width: 300px; text-align: right;'>Admin Paneline Git</a></li>";
}
?>
<?php if (isset($_SESSION["login"]))
echo "<li><a href='logout.php' class='fa fa-sign-out' aria-hidden='true' style='font-size:30px; position:absolute ; left:720px;'></a></li>";
else
echo "<li><a href='giris.php' class='fa fa-sign-in' aria-hidden='true' style='font-size:30px; position:absolute ; left:720px;'></a></li>";
?>
</ul> <!-- end #nav -->
<?php
}
}
?>
</div>
</nav> <!-- end #nav-wrap -->
</header> <!-- Header End -->