-
Notifications
You must be signed in to change notification settings - Fork 0
/
header_log.php
98 lines (84 loc) · 2.63 KB
/
header_log.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
<?php
session_start();
echo "<!DOCTYPE html> \n <html lang=\"zh-CN\"> <head>";
require_once 'function.php';
$userstr = ' (未登录)';
//未登录状态
if (isset($_SESSION['username'])) {
$user = $_SESSION['username'];
$userstr = "";
$dir = "#";
} else {
$dir = "signin.html";
$user = "未登录";
}
echo <<<END
<head>
<title>$appname$userstr</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="validator/dist/jquery.validator.css" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css?family=Inconsolata:400,700" rel="stylesheet">
<!-- Animate.css -->
<link rel="stylesheet" href="css/animate.css">
<!-- Icomoon Icon Fonts-->
<link rel="stylesheet" href="css/icomoon.css">
<!-- Bootstrap -->
<link rel="stylesheet" href="css/bootstrap.css">
<!-- Flexslider -->
<link rel="stylesheet" href="css/flexslider.css">
<!-- Theme style -->
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/style_lr.css">
<!-- Modernizr JS -->
<script src="js/modernizr-2.6.2.min.js"></script>
<script src="js/jquery-3.1.1.min.js"></script>
<script src="validator/dist/jquery.validator.js"></script>
<script src="validator/dist/local/zh-CN.js"></script>
<script src="js/jquery.easing.1.3.js"></script>
<!-- Bootstrap -->
<script src="js/bootstrap.min.js"></script>
<!-- Waypoints -->
<script src="js/jquery.waypoints.min.js"></script>
<!-- Flexslider -->
<script src="js/jquery.flexslider-min.js"></script>
<!-- Main -->
<script src="js/main.js"></script>
<style>
.col-center-block {
float: none;
display: block;
margin-left: auto;
margin-right: auto;
}
</style>
<script>
$(function() {
// Custom theme
$.validator.setTheme('bootstrap', {
validClass: 'has-success',
invalidClass: 'has-error',
bindClassTo: '.form-group',
formClass: 'n-default n-bootstrap',
msgClass: 'n-right'
});
});
</script>
</head>
<body>
<div class="fh5co-loader"></div>
<nav class="fh5co-nav" role="navigation">
<div class="top-menu">
<div class="container">
<div class="row">
<div class="col-xs-2">
<div id="fh5co-logo">
<a href="index.php">Go<span>Bus</span></a>
</div>
</div>
</div>
</div>
</div>
</nav>
END;
?>