-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnews.php
57 lines (50 loc) · 1.8 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
<?php
$freePage = 1;
include("meta.php");
include("header.php");
?>
<div id="content">
<div class="container">
<div class="clear space_30"></div>
<div class="wrap" style="height: 100%; overflow-y: scroll;">
<div class="full">
<div class="head-wrap">
<h1>Pengumuman</h1>
</div>
<div class="body-wrap text-left">
<?php
$id=$_GET["id"];
if ($id){
if(isset($infoweb['newsAgent']['id_'.$id])) {
$q = $infoweb['newsAgent']['id_' . $id];
echo "<div class='right pt10'><strong>" . date('d/m/y', strtotime($q["waktu"])) . "</strong></div>";
echo "<div><h3>" . $q["title"] . "</h3></div>";
echo "<div>" . str_replace("\r\n", "<br>", $q["berita"]) . "</div>";
}else{
echo "<div><h3>404 Not Found</h3></div>";
}
}
?>
</div>
</div>
</div>
<div class="clear space_30"></div>
</div>
</div>
<?php
include("footer.php");
?>
<style type="text/css">
.wrap::-webkit-scrollbar {
width: 10px;
}
.wrap::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
border-radius: 10px;
}
.wrap::-webkit-scrollbar-thumb {
border-radius: 10px;
background-color: white;
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}
</style>