Repository navigation
Expand file tree
/
Copy pathblog.php
More file actions
136 lines (110 loc) · 4.11 KB
/
Copy pathblog.php
File metadata and controls
136 lines (110 loc) · 4.11 KB
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<!DOCTYPE html><!--[if IE 8 ]>
<html lang="en" class="no-js ie8"></html><![endif]-->
<!--[if IE 9 ]>
<html lang="en" class="no-js ie9"></html><![endif]-->
<html class="no-js" lang="en">
<head>
<meta charset="UTF-8">
<meta name="description" content="Sella - Creative html Template">
<meta name="author" content="createIT">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, maximum-scale=1, shrink-to-fit=no">
<meta name="format-detection" content="telephone=no">
<link rel="shortcut icon" href="assets/images/favicon.ico">
<link rel="apple-touch-icon" href="assets/images/HyperloopIcon.png">
<title>Hyperloop UC | Press</title>
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/font-awesome.min.css">
<link rel="stylesheet" href="assets/css/style.css"><!--[if lt IE 9]>
<script src="assets/js/html5shiv.min.js"></script>
<script src="assets/js/respond.min.js"></script>
<script src="assets/js/es5-shim.min.js"></script><![endif]-->
<?php
include 'config.php';
?>
</head>
<body class="cssAnimate">
<div id="ct-js-wrapper" class="ct-pageWrapper">
<div id="header"></div>
<section>
<header data-height="30%" class="ct-u-display-tablex text-center whiteGradient paddingBottom60">
<div class="inner text-uppercase" style="color: #000">
<div class="container ct-u-color--black text-center">
<h1 class="h1 text-uppercase pageHeading" >Blog</h1>
<br>
</div>
</div>
</header>
<section class="whiteGradient" style="margin-top:15px;padding-top:10px;padding-bottom:30PX">
<div class="container">
<!--
<div class="ct-section-header ct-section-header-decoration-center ct-u-margin-bottom-30" style="padding-top: 30px">
<h1 class="h1 about-hyperloop-h1 fontHeading" >Blogs published by us</h1>
</div>
-->
<?php
$sql = 'select * from blog order by publishedDate';
$count = 1;
$result = $conn->query($sql);
if( $result->num_rows > 0 )
{
while($row = $result->fetch_assoc())
{
if($row['showFlag'] == "true")
{
$string = mb_strimwidth($row['blogDescription'], 0, 97, '...');
if($count % 3 == 0){
?>
<div class="row" style="">
<?php
}
?>
<div class="row">
<a href="blog-single.php?id=<?php echo $row['blogId']; ?>" >
<div class="text-center mediaDiv" >
<div>
<span class="fontBody" style="color: #E00122"><b><?php echo $row['title'] ; ?></b> </span>
</div>
<br/>
<div class="row" style="padding-right:5px;padding-left:5px">
<span class="fontBody"style="color:#444"><?php echo $string; ?> </span> <br/>
</div>
</div>
</a>
</div>
</div>
<?php
if($count % 3 == 0){
?>
</div>
<?php
}
?>
<?php
$count = $count + 1;
}
}
}
?>
</section>
</section>
</div>
<!-- Footer-->
<footer class="ct-footer" >
<div class="container" id="footerContainer">
</div>
</footer>
<!-- JavaScripts-->
<script src="assets/js/sella.min.js"></script>
<script src="assets/js/main.js"></script>
<script src="assets/form/js/contact-form.js"></script>
<script>
$(function(){
$("#footerContainer").load("footer.html");
});
$(function(){
$("#header").load("header.html");
});
</script>
</body>
</html>