-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnews.php
100 lines (79 loc) · 3.98 KB
/
news.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
99
100
<!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 : Title</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'; ?>
<?php require_once './functions.php'; ?>
<br/>
<div class="padding20">
<h1>News / Events</h1>
<?php
$array = getNews();
for ($index = 0; $index < count($array); $index++) {
?>
<div class="listview-outlook" data-role="listview">
<div class="list-group">
<a href=" $array[$index]['content']" class="group-title"><?= "Headline: " . $array[$index]['headline'] ?></a>
<div class="group-content">
<a href="content.php?id=<?= $array[$index]['id'] ?>" class="list">
<div class="list-content"><?= "Posted: " . $array[$index]['time_of_post'] ?></div>
</a>
</div>
</div>
<div class="list-group collapsed">
<a href="" class="group-title"><?= "Yersterday " . $array[$index]['headline'] ?></a>
<div class="group-content">
<a href="<?= $array[$index]['id'] ?>" class="list">
<div class="list-content"><?= "Posted: " . $array[$index]['time_of_post'] ?></div>
</a>
<?= $array[$index]['content'] ?>
</div>
</div>
</div>
<?php
}
?>
</div>
<br/>
<?php require_once './footer.php'; ?>
</div>
</body>
</html>