-
Notifications
You must be signed in to change notification settings - Fork 0
/
sblog.php
162 lines (160 loc) · 3.73 KB
/
sblog.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
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Blog</title>
</head>
<?php
include"menu.php";
$id=$_GET['id'];
$query=mysqli_query($conn,"select * from blog where id='$id' ");
$qu=mysqli_query($conn,"select * from gallery where blog='$id' ");
$x=mysqli_fetch_assoc($query);
?>
<script>
var b="b";
</script>
<body onload="changecolor(b)">
<h3 class="text-uppercase text-center da">
<?php echo $x['title'];?>
</h3>
<p class="text-uppercase text-center i">
<?php echo $x['highlight']; ?>
</p>
<div class="icon-bar text-center">
<?php
$fb=$x['fb'];
if($fb!=" "&&$fb!=""){
?>
<a href="<?php echo $x['fb']; ?>"><i class="fab fa-facebook fa-1x text-primary"></i></a>
<?php } ?>
<?php
$t=$x['twitter'];
if($t!=" "&&$t!=""){
?>
<a href="<?php echo $x['twitter']; ?>"><i class="fab fa-twitter fa-1x text-primary"></i></a>
<?php } ?>
<?php
$t=$x['telegram'];
if($t!=" "&&$t!=""){
?>
<a href="<?php echo $x['telegram']; ?>"><i class="fab fa-telegram fa-1x text-primary"></i></a>
<?php } ?>
<?php
$i=$x['instagram'];
if($i!=" "&&$i!=""){
?>
<a href="<?php echo $x['instagram']; ?>"><i class="fab fa-instagram fa-1x text-danger"></i></a>
<?php }
?>
</div>
<div class="container py-2">
<div class="row no-gutter">
<div class="col-sm-12 col-md-4 col-lg-4">
<div class="card float-right">
<img src="photo/<?php echo $x['photo1']; ?>" alt="" height="275" class="card-img-top">
</div>
</div>
<?php
$p2=$x['photo2'];
if($p2!=" "&&$p2!=""){
?>
<div class="col-sm-12 col-md-4 col-lg-4">
<div class="card float-right">
<img src="photo/<?php echo $x['photo2']; ?>" alt="" height="275" class="card-img-top">
</div>
</div>
<?php } ?>
<?php
$p3=$x['photo3'];
if($p3!=" "&&$p3!=""&&$p3!=' '){
?>
<div class="col-sm-12 col-md-4 col-lg-4">
<div class="card float-right">
<img src="photo/<?php echo $x['photo3']; ?>" alt="" height="275" class="card-img-top">
</div>
</div>
<?php } ?>
</div>
</div>
<div class="container">
<div class="row">
<p class="z">
<?php
echo $x['Description'];
?>
</p>
</div>
</div>
<?php
$i=$x['video'];
if($i!=" "&&$i!=""){
?>
<div class="container my-5">
<div class="row">
<div class="col md-12 col-lg-12">
<div class="card">
<video controls height="500">
<source src="video/<?php echo $x['video']; ?>" >
</video>
<?php
$i=$x['youtube'];
if($i!=" "&&$i!=""){
?>
<p class="text-center">
<a href="<?php echo$x['youtube']; ?>"> see in youtube <i class="fab fa-youtube text-danger"></i></a>
<?php } ?>
</p>
</div>
</div>
</div>
</div>
<?php } ?>
<div class="container-fluid">
<div class="row no-gutter">
<?php
$p4=$x['photo4'];
if($p4!=" "&&$p4!=""){
?>
<div class="col-sm-12 col-md-4 col-lg-4">
<div class="card">
<img src="photo/<?php echo $x['photo4']; ?>" alt="" height="325" class="card-img-top">
</div>
</div>
<?php }
$p5=$x['photo5'];
if($p5!=" "&&$p5!=""){
?>
<div class="col-sm-12 col-md-4 col-lg-4">
<div class="card float-right">
<img src="photo/<?php echo $x['photo5']; ?>" alt="" height="325" class="card-img-top">
</div>
</div>
<?php }
$p6=$x['photo6'];
if($p6!=" "&&$p6!=""){
?>
<div class="col-sm-12 col-md-4 col-lg-4">
<div class="card float-right">
<img src="photo/<?php echo $x['photo6']; ?>" alt="" height="325" class="card-img-top">
</div>
</div>
<?php } ?>
</div>
</div>
<div class="container-fluid">
<div class="row no-gutter">
<?php while($q=mysqli_fetch_assoc($qu))
{ ?>
<div class="col-md-6 col-lg-4 mx-auto">
<img src="gphoto/<?php echo $q['name'];?>" alt="" height="325" class="card-img-top">
</div>
<?php
} ?>
</div>
</div>
<?php
include"footer.php";
?>
</body>
</html>