-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathlibrary.php
87 lines (72 loc) · 3.21 KB
/
library.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
<?php
require_once './functions.php';
if (!isLoggedIn()) {
//This page is for registered users only
header("Location: login.php");
} else {
$searchQuery = "";
$request = filter_input(INPUT_POST, "submit");
if (isset($request)) {
$searchQuery = filter_input(INPUT_POST, "search");
//Process query
}
}
?>
<!DOCTYPE html>
<!--
Copyright 2015 NACOSS UNN Developers Group (NDG).
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="description" content="NACOSS UNN official website">
<meta name="author" content="NACOSS UNN Developers">
<meta name="keywords" content=" metro ui, NDG, NACOSS UNN">
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link href="css/metro-bootstrap.css" rel="stylesheet">
<link href="css/metro-bootstrap-responsive.css" rel="stylesheet">
<link href="css/iconFont.css" rel="stylesheet">
<link href="js/prettify/prettify.css" rel="stylesheet">
<script src="js/metro/metro.min.js"></script>
<!-- Load JavaScript Libraries -->
<script src="js/jquery/jquery.min.js"></script>
<script src="js/jquery/jquery.widget.min.js"></script>
<script src="js/jquery/jquery.mousewheel.js"></script>
<script src="js/prettify/prettify.js"></script>
<!-- Metro UI CSS JavaScript plugins -->
<script src="js/load-metro.js"></script>
<!-- Local JavaScript -->
<script src="js/docs.js"></script>
<script src="js/github.info.js"></script>
<!-- Page Title -->
<title>NACOSS UNN : Library</title>
</head>
<body class="metro" style="background-image: url(img/bg.jpg); background-repeat: repeat;">
<div class="container bg-white">
<?php require_once './header.php'; ?>
<br/>
<div class="padding20">
<form method="post" action="library.php">
<div class="input-control text" data-role="input-control">
<input type="text" value="<?=$searchQuery?>" placeholder="Search" name="search"/>
<button class="btn-search" name="submit" type="submit"></button>
</div>
</form>
<!--Your code goes here-->
</div>
<br/>
<?php require_once './footer.php'; ?>
</div>
</body>
</html>