-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·65 lines (62 loc) · 1.79 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
<?php
require('HtmlGen.php');
?>
<!DOCTYPE HTML>
<html>
<head>
<link href='https://fonts.googleapis.com/css?family=Oswald:300|Roboto+Condensed:300|Roboto:300' rel='stylesheet' type='text/css'>
<link href="./stylesheets/main.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="page">
<header>
<img src="images/header.jpg">
<img id="logo" src="images/logo.png">
<div id="nav">
<ul>
<li id="overview">ÖVERSIKT</li>
<li id="add-new">LÄGG TILL</li>
</ul>
</div>
</header>
<div id="content">
<div id="content-overview">
<?php echo HtmlGen::getMovies('mosaic') ?>
</div>
<div id="content-add-new">
<div id="table">
<table>
<thead>
<tr>
<th>TITEL</th>
<th>BESKRIVNING</th>
<th>BETYG</th>
<th></th>
</tr>
</thead>
<tbody>
<?php echo HtmlGen::getMovies('table'); ?>
</tbody>
</table>
</div>
<form id="add-form">
<label for="movie-title">Lägg till ny film</label>
<input type="text" name="movie-title" id="movie-title" placeholder="Titel"/>
<textarea name="movie-desc" id="movie-desc" placeholder="Beskrivning"></textarea>
<select name="movie-rating" id="movie-rating">
<option value="" disabled selected>Betyg</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
<input type="file" name="poster" id="poster"/>
<input class="button" type="submit" value="Lägg till ny"/>
</form>
</div>
</div>
</div>
<script src="./js/main.js"></script>
</body>
</html>