forked from if-itb/IF3110-2015-T1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
52 lines (40 loc) · 1.27 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
<?php
require_once "connection.php";
include "functions.php";
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>StackExchange</title>
<link href='https://fonts.googleapis.com/css?family=Titillium+Web|Source+Sans+Pro|Droid+Sans' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="css/styles.css">
<script type="text/javascript" src="js/validation.js"></script>
</head>
<body>
<div class="container">
<div class="header">
<h1>
<a href="index.php">Simple StackExchange</a>
</h1>
</div>
<div class="wrapper">
<form role="form" method="get" action="search-question.php" onsubmit="return validateForms()" class="search-bar">
<input name="keyword" type="text" class="search-text" placeholder="Search question by topic or content">
<input name="search-button" type="submit" value="Search" class="search-button">
</form>
<div class="text-center">
<p>Cannot find what you are looking for? <a href="form-question.php">Ask here</a></p>
</div>
<div class="title">
<h3>Recently Asked Question</h3>
</div>
<?php
getQuestions();
?>
</div>
</div>
</body>
</html>