-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
66 lines (54 loc) · 2.37 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
<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>Online test tizimi</title>
<!-- Bootstrap core CSS -->
<link href="Homepage/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="Homepage/css/business-frontpage.css" rel="stylesheet">
</head>
<body>
<div class="container">
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<a class="navbar-brand" href="#">Delux.uz</a>
<button class="navbar-toggler collapsed" type="button" data-toggle="collapse" data-target="#navbarColor02" aria-controls="navbarColor02" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse collapse" id="navbarColor02" style="">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="index.php#">Bosh sahifa <span class="sr-only">(Hozirgi)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="index.php#start">Test topshirish</a>
</li>
<li class="nav-item">
<a class="nav-link" href="index.php#res">Natijalar</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.php">Qayta a'loqa <span class="sr-only"></span></a> </li>
<li class="nav-item">
<a class="nav-link" href="/posts">Darslar <span class="sr-only"></span></a> </li>
<li class="nav-item">
<a class="nav-link" href="index.php#doc">Sayt bo'yicha qollanma <span class="sr-only"></span></a> </li>
</ul>
<?php
if (isset($_SESSION['u_name'])){
echo '<a href="admin/index.php"><button type="button" class="btn btn-round btn-success">Xush kelibsiz '.$_SESSION['u_name'].'</button></a>';
}else{
echo '<form class="form-inline" action="/login.php">
<button class="btn btn-outline-light my-2 my-sm-0" type="submit">Kirish</button>
</form>
<form class="form-inline" action="/registration.php">
<button class="btn btn-outline-light my-2 my-sm-0" type="submit">Ro`yhatdan o`tish</button>
</form>';
}
?>
</div>
</nav>
</div>
<br>
<br>
<!-- MAIN -->