-
Notifications
You must be signed in to change notification settings - Fork 3
/
header.php
56 lines (50 loc) · 1.96 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Nabaztag</title>
<link href="css/bootstrap.css" rel="stylesheet"/>
<link href="css/bootstrap-responsive.css" rel="stylesheet"/>
<link href="css/docs.css" rel="stylesheet"/>
<link href="css/jquery.mobile.css" rel="stylesheet"/>
<link href="css/jquery.mobile.structure.css" rel="stylesheet"/>
<link href="css/jquery.mobile.theme.css" rel="stylesheet"/>
<link href="css/app.css" rel="stylesheet"/>
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/bootstrap.js"></script>
<script type="text/javascript" src="js/jquery.mobile.js"></script>
<script type="text/javascript" src="js/jquery.validate.js"></script>
<script type="text/javascript" src="js/app.js"></script>
</head>
<body data-ajax="false">
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<span class="brand"><?php
if(isset($db)){
$count = rabbit_online_count($db);
if($count == 1) {
echo $count." rabbit online";
} else {
echo $count." rabbits online";
}
}
?>
</span>
<a href="index.php" class="brand">Nabaztag Server</a>
<?php require('links.php'); ?>
</div>
</div>
<?php if(isset($error)) { ?>
<div class="alert alert-error"><?php echo $error; ?></div>
<?php } ?>
<?php if(isset($info)) { ?>
<div class="alert alert-info"><?php echo $info; ?></div>
<?php } ?>
</div>
<div class="container">