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
|
<? include('../_init.php');?> <? $type = $_GET['type']; $array = array(1=>'Certificate & Report','News','Success Case'); $sql="SELECT * FROM news where type = '".$type."' and status = 1 order by sort asc"; $records_news = $SQL->resultManyArr($sql); ?> <!DOCTYPE html> <html dir="ltr" lang="en-US"> <head> <? include('_head.php');?> </head>
<body class="stretched no-transition">
<!-- Document Wrapper ============================================= --> <div id="wrapper" class="clearfix">
<!-- Header ============================================= --> <? include('_header.php');?> <!-- #header end -->
<!-- Page Title ============================================= --> <section id="page-title" class="page-title-dark" style="background-color:#8bc53f;">
<div class="container clearfix"> <h1><?=$array[$type]?></h1> <ol class="breadcrumb"> <li><a href="index.php">Home</a></li> <li class="active"><?=$array[$type]?></li> </ol> </div>
</section><!-- #page-title end -->
<!-- Content ============================================= --> <section id="content">
<div class="content-wrap"> <div class="container-fullwidth clearfix"> <? foreach($records_news as $record_news){ ?> <div style="border-bottom: 1px solid #EEE; margin-bottom:20px; cursor:pointer;" onClick="location.href='news_details.php?id=<?=$record_news['refid']?>'" class="clearfix"> <div class="dark"><h4 style="margin-bottom:0;"><span><?=$record_news['title_en']?></span></h4></div><i class="icon-chevron-right pull-right"></i> <ul class="entry-meta clearfix notopmargin"> <li><i class="icon-calendar3"></i> <?=date('d',strtotime($record_news['date']))?><sup><?=date('S',strtotime($record_news['date']))?></sup> <?=date('F Y',strtotime($record_news['date']))?></li> </ul> </div> <? }?> </div> </div> </section><!-- #content end -->
<!-- Footer ============================================= --> <? include('_footer.php');?><!-- #footer end -->
</div><!-- #wrapper end -->
<? include('_footer_scripts.php');?>
</body> </html>
|