-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
225 lines (195 loc) · 10.3 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>TV Serije - BP</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="css/dataTables.bootstrap.css">
<link rel="stylesheet" href="css/serije_bp.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Slab:400,700">
</head>
<body>
<div class="container">
<!--Table manager za unos serija-->
<div id="tableManager" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Nova serija</h4>
</div>
<div class="modal-body">
<div id="editContent">
<p>Naziv: </p>
<input type="text" class="form-control" placeholder="Naziv serije" id="naziv"><br>
<p>Opis: </p>
<textarea class="form-control" placeholder="Kratki opis serije.." id="opis"></textarea><br>
<p>Vasa ocjena:</p>
<select class="form-control" id="ocjena">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
<input type="hidden" id="editRowID" value="0">
</div>
<div id="showContent" style="display:none;">
<h3>Opis serije</h3>
<div id="opisView"></div>
<hr>
<h3>Ocjena</h3>
<div id="ocjenaView"></div>
<hr>
<h3>Glumac</h3>
<div id="nazivGlumcaView"></div>
<hr>
<h3>TV kuca</h3>
<div id="nazivTVkuceView"></div>
<hr>
<h3>Tagovi</h3>
<div id="TagoviView"></div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Zatvori</button>
<input type="button" id="manageBtn" value="Spremi" onclick="spremiPodatke('dodajNovu')" class="btn btn-success">
</div>
</div>
</div>
</div>
<!--Table Manager za unos glumca-->
<div id="tableManagerGlumac" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Novi glumac</h4>
</div>
<div class="modal-body">
<div id="editContentGlumac">
<input type="text" class="form-control" placeholder="Ime i prezime glumca" id="nazivGlumca"><br>
<p>Spol:</p>
<select class="form-control" id="spolGlumca">
<option>Musko</option>
<option>Zensko</option>
</select><br>
<p>Datum rodenja:</p>
<input type="date" class="form-control" placeholder="Datum Rodenja" id="datumRodenja"><br>
<p>Pridruzi seriji:</p>
<input type="text" class="form-control" placeholder="Serija" id="glumacSerija"><br>
<input type="hidden" id="editRowIDGlumac" value="0">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Zatvori</button>
<input type="button" id="manageBtnGlumac" value="Spremi" onclick="spremiGlumca('dodajGlumca')" class="btn btn-success">
</div>
</div>
</div>
</div>
<!--Table Manager za unos TV kuce-->
<div id="tableManagerTVkuca" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Nova TV kuca</h4>
</div>
<div class="modal-body">
<div id="editContentTVkuca">
<input type="text" class="form-control" placeholder="Naziv TV kuce" id="nazivTVkuce"><br>
<p>Pridruzi seriji:</p>
<input type="text" class="form-control" placeholder="Serija" id="TVkucaSerija"><br>
<input type="hidden" id="editRowIDTVkuca" value="0">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Zatvori</button>
<input type="button" id="manageBtnTVkuca" value="Spremi" onclick="spremiTVkucu('dodajTVkucu')" class="btn btn-success">
</div>
</div>
</div>
</div>
<!--Table Manager za unos Tagova-->
<div id="tableManagerTagovi" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Novi Tagovi</h4>
</div>
<div class="modal-body">
<div id="editContentTagovi">
<p>Unesite tagove odvojene zarezom: </p>
<input type="text" class="form-control" placeholder="Tagovi (sci-fi, akcija, spin-off itd.)" id="Tagovi"><br>
<p>Pridruzi seriji:</p>
<input type="text" class="form-control" placeholder="Serija" id="TagoviSerija"><br>
<input type="hidden" id="editRowIDTagovi" value="0">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Zatvori</button>
<input type="button" id="manageBtnTagovi" value="Spremi" onclick="spremiTagove('dodajTagove')" class="btn btn-success">
</div>
</div>
</div>
</div>
<!--Modal za prikaz statistike-->
<div id="tablicaStatistike" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Statistika</h4>
</div>
<div class="modal-body">
<p>Broj unesenih serija:</p>
<div id="broj_serijaView"></div>
<hr>
<p>Broj unesenih glumaca:</p>
<div id="broj_glumacaView"></div>
<hr>
<p>Broj unesenih TV kuca:</p>
<div id="broj_tvKucaView"></div>
<hr>
<p>Broj unesenih tagova:</p>
<div id="broj_tagovaView"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Zatvori</button>
</div>
</div>
</div>
</div>
<!--Jumbotron (slika) iznad tablice-->
<div class="jumbotron">
</div>
<!--Tablica sa serijama koje smo unijeli-->
<div class="row">
<div class="col-lg-12">
<input style="float: right" type="button" onclick="prikaziStatistiku()" class="btn btn-default odvoji" value="Prikazi statistiku">
<input style="float: right" type="button" id="dodajTagove" class="btn btn-success odvoji" value="Dodaj Tagove">
<input style="float: right" type="button" id="dodajTVkucu" class="btn btn-success odvoji" value="Dodaj TV kucu">
<input style="float: right" type="button" id="dodajGlumca" class="btn btn-success odvoji" value="Dodaj Glumca">
<input style="float: right" type="button" id="dodajNovu" class="btn btn-success odvoji" value="Dodaj Seriju">
<br><br>
<table class="table table-hover table-bordered">
<thead>
<tr>
<td class="col-md-1"><strong>#</strong></td>
<td class="col-md-3"><strong>Naziv</strong></td>
<td class="col-md-4"><strong>Opis</strong></td>
<td class="col-md-1"><strong>Ocjena</strong></td>
<td class="col-md-3"><strong>Opcije</strong></td>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
<!--Skripte koje koristimo-->
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="js/jquery.dataTables.js"></script>
<script src="js/dataTables.bootstrap.js"></script>
<script src="js/funkcije.js"></script>
</body>
</html>