-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
379 lines (277 loc) · 8.32 KB
/
index.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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
<!doctype html>
<head>
<style>
p{
display:inline;
}
*{
margin:0;
padding:0;
}
button.buttoon22
{
position:fixed;top:500px;right:0px;
background-color:#4CAF50;
color: white;
font-family: verdana;
font-size: 17px;
height:45px;
width:105px;
cursor: pointer;
transition-duration: 0.4s;
transition:width 2s;
}
button.buttoon22:hover
{
background-color:#2A88AD;
color:white;
width:200px;
}
div.xx{
margin-left:80px;
font-size: 25px;
color: white;
}
div.xz{
float:right;
margin-right: 50px;
margin-top: -100px;
font-size: 20px;
color: white;
}
input.mc
{
width: 75%;
height: 43px;
padding: 12px 20px;
margin-left: 80px;
margin-top: 25px;
display: inline-block;
border: 1px solid #ccc;
border-bottom-left-radius: 4px;
border-top-left-radius: 4px;
box-sizing: border-box;
font-style: courier;
}
button.buttoon
{
float: right;
margin-right: 97px;
margin-top: -43px;
background-color:green;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
color: white;
font-family: verdana;
font-size: 17px;
height:43px;
width:160px;
cursor: pointer;
border: 2px solid green;
}
li a, .dropbtn {
display: inline-block;
color: white;
text-align: center;
text-decoration: none;
}
li.dropdown {
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #2A88AD;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
}
.dropdown-content a {
color: white;
padding: 12px 16px;
text-decoration: none;
display: block;
text-align: left;
}
.dropdown-content a:hover {background-color: #f1f1f1}
.dropdown:hover .dropdown-content {
display: block;
}
.dropbtn:hover{
}
#menu {
width:1350px;
height: 50px;
font-size: 25px;
color:white;
font-family: Arial, Helvetica, sans-serif;
font-weight:bold;
text-shadow: 1.5px 1.5px 1.5px #333333;
background-color:#2A88AD;
border-radius: 8px;
}
#menu ul {
height: 0px;
padding-right: 15px;
padding-left: 15px;
padding-top: 5px;
margin: 0px;
}
#menu li {
display: inline;
padding-top: 5px;
text-align: left;
}
/*#menu a {
text-decoration: overline;
color: #00F;
padding: 8px 8px 8px 8px;
}*/
#menu li:hover {
background-color:;
cursor:pointer;
padding: 5px 5px 5px 5px;
}
</style>
<script>
function validateForm() {
var y = document.forms["myForm"]["subscribe_mail"].value; /*value of entered email stored in y*/
if(y=="")
{
alert("Enter your email");
return false;
}
}
</script>
<title>
homepage
</title>
</head>
<body>
<div id="menu">
<ul>
<li style="float: left;"><a href="#">Home </a></li>
<li class="dropdown" style="float: left;"><a href="#" class="dropbtn">Categories </a>
<div class="dropdown-content">
<a href="category/web.php">Web Development</a>
<a href="category/android.php">Android Development</a>
<a href="category/comp.php">Computer Technology</a>
<a href="category/others.php">Others</a>
</div>
</li>
<li style="float: left;"><a href="posts.php">Post<a></li>
<li style="float: left;"><a href="team.php"> team<a></li>
<li style="float: right;">
<?php
include 'connect.php';
session_start();
//$name=$_SESSION['username'];
if(isset($_SESSION['signed_in'])==true)
{
$name=$_SESSION['username'];
echo "<a href='profile.php'>Hello ".$name." </a>";
}
else
{
echo '<a href="signin.php">LogIn</a>';
}
?>
</li>
<li style="float: right;">
<?php
if(isset($_SESSION['signed_in'])==true)
{
echo '<a href="signout.php">LogOut</a>';
}
else
{
echo '<a href="signup.php">SignUp</a>';
}
?>
 </li>
</ul>
</div>
<img height="380px" width="100%" src="images/background.jpg">
<br><br>
<div style="background-color:white;height: 250px;width:100%;font-family:Harlow Solid Italic; font-size:40px;border-radius:10px;">
<p style="margin-left: 550px;font-weight:bold">ABOUT US</p><br>
<div style="margin-left:20px">
<p style="font-family:normal; font-size:25px;"><i>Technology has played a role in exploring and understanding the ocean for thousands of years, and it will continue to do so.We allow you,to get educational information on our site, to increase traffic through repeat visitors, to gain more creditability. Members of forums are very knowledgeable about the topic at hand. With lots of information and discussion being exchanged in your forums you will return again and again to see replies to your posts, read others posts and basically to see if anything has changed</i></p>
</div>
</div>
<br>
<br>
<br>
<div style="background-color:silver;height: 270px;width:100%;border-radius:10px;">
<h1 style=";margin-top: 0px;margin-left:560px;margin-top:10px;font-weight: bold;font-size: 40px;font-family: verdana">JOIN US</h1>
<br>
<div style="margin-left:10px;margin-right:10px">
<div style="font-family:normal; font-size:25px;margin-right: 15px;margin-left:10px;">
<i>
<p>TechOn.com provides discussions on different technical topics like web development ,android development. Lets interact with people</p>
<p>worldwide so you will be getting your problem solved easily</p></i></div>
</div><br><br>
<p align="center" style="text-align:center;font-family:courier;font-size:33px;font-weight: bold;color: white;margin-top:-5px; float:center;margin-left:260px;" >"join today and get benifitted everyday"</p>
</div>
<a href="feedback.php">
<button type="button" class="buttoon22" >FEEDBACK</button>
</a>
<center>
<div style="background-color:powderblue;">
<p style="color:White; font-size:300%; font-family:verdana; background-color:powderblue;">Latest Posts</p></div>
</center>
<br><br><br>
<?php
include 'connect.php';
$query=mysql_query("SELECT * FROM topics ORDER BY topic_date DESC LIMIT 3");
while($row = mysql_fetch_assoc($query))
{
$topic=$row['topic_subject'];
$id=$row['topic_id'];
$cat=$row['topic_cat'];
// echo "<p>$topic</p><br>";
echo "<p ><a href='topic.php?posts_topic=$id' style='text-decoration:none; color:black; font-size:32px; font-weight:bold; margin-left: 20px; '>   
".$topic." </a><br><br><p style='color:black; font-size:25px; font-weight:bold; margin-left: 50px;'>In</p><p style='text-decoration:none; color:blue; font-size:25px; font-weight:bold; margin-left: 0px; '> $cat</p><br><br><br>";
}
?>
<br>
<br>
<center>
<div style="background-color:powderblue">
<p style="color:White; font-size:300%; font-family:verdana; background-color:powderblue;width:100%;text-align:center">Users Feedback</p>
</div>
</center>
<br><br><br>
<?php
include 'connect.php';
$query=mysql_query("SELECT * FROM feedback ORDER BY feedback_id DESC LIMIT 3");
while($row = mysql_fetch_assoc($query))
{
$topic=$row['feedback_descr'];
echo "<p ><a style='text-decoration:none; color:black; font-size:32px; font-weight:bold; margin-left: 20px; '>   
".$topic." </a><br><br><br>";
}
?>
<div style="background-color:black;border-radius: 6px;width: 100%; height: 340px">
<form method="post" action="subscribe.php" onsubmit="return validateForm()" name="myForm">
<input class="mc" type="text" name="subscribe_mail" placeholder="Email..." ><br>
<button type="submit" class="buttoon" >Subscribe</button>
</form>
<br><br>
<div class="xx">
<h3>Contact Us:</h3>
<p style="font-size: 20px">Room No. 152,BH-2,<br>IIITM Gwalior,<br>474015</p>
</div>
<div class="xz">
:7441183308<br>
:7898378532<br>
:techon.services@gmail.com<br>
</div>
<div style="float: right;margin-right: 280px;margin-top:-100px">
<img src="icons/call.png" style="width: 22px"><br>
<img src="icons/whatsapp.png" style="width: 22px;"><br>
<img src="icons/gmail.png" style="width: 22px"><br>
</div>
<p align="center" style="text-align:center; float:center; margin-left:500px; font-size: 20px; font-weight:bold; color:white;">All Rights Reserved || TechOn.com</p>
</div>
</body>