-
Notifications
You must be signed in to change notification settings - Fork 0
/
Bulletinfinal.php
225 lines (159 loc) · 5.57 KB
/
Bulletinfinal.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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<?php
session_start();
include "header.php";
if(!isset($_SESSION['login_user']))
{
echo 'Please <a href="loginpage.php">sign in</a> to continue';
}
else
{
?>
<!DOCTYPE html>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="description" content="A short description." />
<meta name="keywords" content="put, keywords, here" />
<link rel="stylesheet" href="style.css" type="text/css">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="generator" content="Mobirise v4.6.7, mobirise.com">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
<link rel="shortcut icon" href="assets2/images/logo4.png" type="image/x-icon">
<meta name="description" content="">
<title>CEG BULLETIN</title>
<link rel="stylesheet" href="assets2/tether/tether.min.css">
<link rel="stylesheet" href="assets2/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="assets2/bootstrap/css/bootstrap-grid.min.css">
<link rel="stylesheet" href="assets2/bootstrap/css/bootstrap-reboot.min.css">
<link rel="stylesheet" href="assets2/theme/css/style.css">
<link rel="stylesheet" href="assets2/mobirise/css/mbr-additional.css" type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.button {
border-radius: 4px;
background-color: #47c9af ;
border: none;
color: #FDFEFE;
text-align: center;
font-size: 10px;
padding: 10px;
width: 100px;
transition: all 0.5s;
cursor: pointer;
margin: 5px;
}
.button span {
cursor: pointer;
display: inline-block;
position: relative;
transition: 0.5s;
}
.button span:after {
content: '\00bb';
position: absolute;
opacity: 0;
top: 0;
right: -20px;
transition: 0.5s;
}
.button:hover span {
padding-right: 25px;
}
.button:hover span:after {
opacity: 1;
right: 0;
}
</style>
</head>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('button[type="submit"]').click(function(){
$("#coursedata").hide();
return false;
})
})
function hideMessage() {
document.getElementById("message_div").style.display = "none";
};
setTimeout(hideMessage, 3000);
</script>
</body>
</html>
</script>
<body>
<div id="content">
<?php
$username=$_SESSION['login_user'];
?>
<h1 align=center style="font-size: 40px;background-color:#47c9af;color:white">CEG BULLETIN</h1>
<br>
<?php
if ($_SESSION['Entered']==0)
{
?>
<h2 align=center style="font-size: 40px;color:#47c9af;" id="message_div">Welcome <?php echo $username?></h2>
<?php
$_SESSION['Entered']=1;
}
?>
<?php
$connect=mysql_connect("localhost","id5043997_projectite","ceg.net");
mysql_select_db('id5043997_ceg');
$select="select * from upload order by image_id desc";
$result=mysql_query($select);
while($row=mysql_fetch_array($result))
{
?>
<br>
<br>
<br>
<section class="testimonials3 cid-qNT4sjtf5Q" id="testimonials3-s">
<div class="container">
<div class="media-container-row">
<div class="media-content px-3 align-self-center mbr-white py-2">
<p class="mbr-text testimonial-text mbr-fonts-style display-1"><?php echo $row['img_topic'];?></p>
<p class="mbr-author-name pt-4 mb-2 mbr-fonts-style display-7"><br><?php echo $row['img_description'];?></p></p><p></p><br><p> </p><p></p><p></p>
<?php
if($row['upload_by']==$_SESSION['userid'])
{
?>
<h1 class="mbr-author-name pt-4 mb-2 mbr-fonts-style display-7" style="color:black;">
<form name="change1" action="uploaddel.php" method="POST">
<center><button class="button" name="del" value="<?php echo $row['image_id'];?>">DELETE</button></center>
</form>
<form name="change2" action="uploadedit.php" method="GET">
<center><button class="button" name="edit" value="<?php echo $row['image_id'];?>">EDIT</button></center>
</form>
<br><br>
</h1>
<?php
}
?>
<p class="mbr-author-desc mbr-fonts-style display-7">
<?php echo "UPLOADED BY :";?>
<?php echo $row['uploader_name'];?></p>
</p>
</div>
<div class="mbr-figure pl-lg-5" style="width: 155%;">
<img src="<?php echo $row['image'];?>">
</div>
</div>
</div>
</section>
<section class="engine"><a href="https://mobirise.ws">Mobirise</a></section><script src="assets2/web/assets2/jquery/jquery.min.js"></script>
<script src="assets2/popper/popper.min.js"></script>
<script src="assets2/tether/tether.min.js"></script>
<script src="assets2/bootstrap/js/bootstrap.min.js"></script>
<script src="assets2/smoothscroll/smooth-scroll.js"></script>
<script src="assets2/theme/js/script.js"></script>
<br>
<br>
<?php
}
mysql_close($connect);
}
?>
</body>
</html>