forked from yongri/heliosinformatika
-
Notifications
You must be signed in to change notification settings - Fork 0
/
press_detail.php
69 lines (69 loc) · 2.17 KB
/
press_detail.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
<?php
session_start();
include "connection.php";
include "cons.php";
include"header.php";
?>
<div class="container overviewnews">
<div class="container overviewmidle">
<div class="col-lg-12">
<div class="col-lg-8 pull-left">
<ol class="breadcrumb">
<li><a href="#" class="jejak">Home</a></li>
<li class="active">Press Release</li>
</ol>
</div>
<div class="col-lg-4">
<!-- Title Product --> <h3 class="press_release">Press Release</h3>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="col-lg-4">
<div class="box leftmenu">
<?php include "menu_left_news.php"; ?>
</div>
<div class="row kosong"></div>
<div class="col-lg-12 leftbanner">
<div class="col-lg-4">
<div class="box">
<?php $sql="SELECT * FROM banner ORDER BY Banner_id DESC";
$query=mysql_query($sql);
while($row=mysql_fetch_array($query))
{
?>
<div class="box-gray banner">
<img src="http://<?php echo BASE_URL; ?>/img/banner/<?php echo $row['Image']; ?>">
</div>
<div class="row kosong"></div>
<?php } ?>
</div>
</div>
</div>
</div>
<div class="col-lg-8">
<div class="box">
<div class="box-gray newscontent">
<?php $sql="SELECT * FROM news WHERE News_id='{$_GET['id']}'";
$query=mysql_query($sql);
while($data=mysql_fetch_array($query))
{
$news=$data['News_name'];
$img=$data['News_image'];
$content=$data['Content'];
$description=$data['Description'];
$create=$data['Created_at'];
}
?>
<p align="justify"><h4 class="location"><?php echo $news; ?></h4></p><br/>
<img src="http://<?php echo BASE_URL; ?>/img/news/<?php echo $img; ?>"><br/><br/>
<p align="justify"><?php echo $description; ?></p><br/>
<p align="justify"><?php echo $content; ?></p><br/>
<?php echo '<i>Posted On : '.date('d M Y',strtotime($create)).'</i>'; ?> <strong>by Admin</strong>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include "footer.php"; ?>