/
header.html
80 lines (79 loc) · 3.79 KB
/
header.html
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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inconsolata">
<meta http-equiv="Content-Type" content="test/html; charset=utf-8" />
<meta http-equiv="Expires" content="Tue, 01 Jan 1980 1:00:00 GMT">
<meta http-equiv="Parama" content="no-cache">
<meta charset="utf-8">
<!-- include jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<!-- include Cycle plugin -->
<script type="text/javascript" src="http://malsup.github.com/jquery.cycle.all.js"></script>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="./codemirror-5.46.0/doc/docs.css">
<style>
.top{
font-family: "Inconsolata", sans-serif;
color : white;
background: black;
position:fixed;
top: 0px;
z-index: 7;
height: 40px;
width: 100%;
/*color: cornflowerblue*/
}
.w3-col{
background: black;
color : white;
}
</style>
</head>
<body>
<div class="top" style="color:#fff;">
<div><!-- class="w3-row " w3-padding-->
<div class="w3-col s1">
<a href="home.php" class="w3-button w3-block scroll">HOME</a>
</div>
<div class="w3-col s1">
<a href="index_new.php#C#default" class="w3-button w3-block scroll">START</a>
</div>
<!--<div class="w3-col s1">
<a href="view_article.php?kind=All&OrderBy=TimeNew" class="w3-button w3-block w3-black scroll">ARTICLE</a>
</div>
<div class="w3-col s1">
<a href="prizeTest.php" class="w3-button w3-block scroll">LOTTERY</a>
</div>-->
<!--<?php if(empty($_SESSION['ID'])) {?>
<div id = "pic" class="w3-right w3-hide-small">
<a href="./index.php" class="w3-bar-item w3-button">LOGIN</a>
<a href="./register.php" class="w3-bar-item w3-button">SIGNUP</a>
</div>
<?php }?>
<?php if(!empty($_SESSION['ID'])) { ?>
<div id = "pic" class="w3-right w3-hide-small">
<?php
$ID = $_SESSION['ID'];
$sql = "SELECT * FROM user WHERE '$ID' = user.ID";
$r = mysqli_query($conn, $sql);
$result = mysqli_fetch_array($r);
echo "<font class='w3-bar-item' style='position:center;padding:0px 5px;'align='center' valign='center' face='Inconsolata' size='3'>Hi! ".$result['Fname']."! </font>";
?>
<a href="./logout.php" class="w3-bar-item w3-button">LOGOUT</a>
<a href="./post.php" class="w3-bar-item w3-button">POST</a>
<a href="./update.php" class="w3-bar-item w3-button">USER CENTER</a>
</div>
<?php }?>-->
<?php if(empty($_SESSION['ID'])) {?>
<div id = "pic" class="w3-right w3-hide-small">
<a href="index.php" class="w3-bar-item w3-button" style="background: black; color: aliceblue">LOGIN</a>
<a href="index.php" class="w3-bar-item w3-button" style="color: aliceblue;background: black">SIGNUP</a>
</div>
<?php }?>
</div>
</div>
</body>
</html>