-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
130 lines (112 loc) · 4.65 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Prodavachnik</title>
<script src="scripts/jquery-3.1.1.min.js"></script>
<script src="scripts/prodavachnik.js"></script>
<link rel="stylesheet" type="text/css" href="styles/prodavachnik.css" />
<link href="https://fonts.googleapis.com/css?family=Lato|Open+Sans" rel="stylesheet">
</head>
<body>
<header id="menu" class="menu">
<a href="#" id="linkHome" class="menu-item" data-target="viewHome">Home</a>
<a href="#" id="linkLogin" class="menu-item" data-target="viewLogin">Login</a>
<a href="#" id="linkRegister" class="menu-item" data-target="viewRegister">Register</a>
<a href="#" id="linkListAds" class="menu-item" data-target="viewAds">List Advertisements</a>
<a href="#" id="linkCreateAd" class="menu-item" data-target="viewCreateAd">Create Advertisement</a>
<a href="#" id="linkLogout" class="menu-item" >Logout</a>
<span id="loggedInUser" class="menu-item"></span>
<div></div>
</header>
<main>
<div id="loadingBox" class="loadingBox notification">Loading ...</div>
<div id="infoBox" class="infoBox notification">Info</div>
<div id="errorBox" class="errorBox notification">Error</div>
<section id="viewHome" class="viewHome">
<h1 class="title">Welcome</h1>
<p class="body-text">Welcome to our advertisement site.</p>
</section>
<section id="viewLogin" class="viewLogin">
<h1 class="titleForm">Please login</h1>
<form id="formLogin" class="form">
<div>Username:</div>
<div><input type="text" name="username" required /></div>
<div>Password:</div>
<div><input type="password" name="passwd" required /></div>
<div><input type="button" id="buttonLoginUser" value="Login" /></div>
</form>
</section>
<section id="viewRegister" class="viewRegister">
<h1 class="titleForm">Please register here</h1>
<form id="formRegister" class="form">
<div>Username:</div>
<div><input type="text" name="username" required /></div>
<div>Password:</div>
<div><input type="password" name="passwd" required /></div>
<div><input type="button" id="buttonRegisterUser" value="Register" /></div>
</form>
</section>
<section id="viewAds" class="viewAds">
<h1 class="titleForm">Advertisements</h1>
<div id="ads" class="ads">
<table>
<tr>
<th>Title</th>
<th>Publisher</th>
<th>Description</th>
<th>Price</th>
<th>Date Published</th>
</tr>
<tr>
<td>Ad title</td>
<td>Ad author</td>
<td>Ad description</td>
<td>Price</td>
<td>Date published</td>
<td>
<a href="#">[Delete]</a>
<a href="#">[Edit]</a>
</td>
</tr>
</table>
</div>
</section>
<section id="viewCreateAd" class="viewCreateAd">
<h1 class="titleForm">Create new Advertisement</h1>
<form id="formCreateAd" class="form">
<div>Title:</div>
<div><input type="text" name="title" required /></div>
<div>Description:</div>
<div><textarea name="description" rows="10" required></textarea></div>
<div>Price:</div>
<div><input type="number" step="0.01" name="price" required /></div>
<div>Image:</div>
<div><input type="text" name="image" required></div>
<div><input type="button" id="buttonCreateAd" value="Create" /></div>
</form>
</section>
<section id="viewEditAd" class="viewEditAd">
<h1 class="titleForm">Edit existing advertisement</h1>
<form id="formEditAd" class="form">
<div><input type="hidden" name="id" required /></div>
<div><input type="hidden" name="publisher" required /></div>
<div>Title:</div>
<div><input type="text" name="title" required /></div>
<div>Description:</div>
<div><textarea name="description" rows="10" required></textarea></div>
<div>Price:</div>
<div><input type="number" step="0.01" name="price" required /></div>
<div><input type="button" id="buttonEditAd" value="Edit" /></div>
</form>
</section>
<section id="viewMoreAd" class="viewMoreAd">
</section>
</main>
<footer>
Biotrade - T. Stoyanov</footer>
<script>
startApp();
</script>
</body>
</html>