-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
183 lines (166 loc) · 6.53 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
<!DOCTYPE html>
<html lang="tr" data-bs-theme="dark">
<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>Rant A Book</title>
<link rel="stylesheet" href="assets/styles/style.css">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-aFq/bzH65dt+w6FI2ooMVUpc+21e0SRygnTpmBvdBgSdnuTN7QbdgL+OapgHtvPp" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/toastify-js/src/toastify.min.css">
</head>
<body onload="loadPage()">
<!-- Begin Header-->
<header class="p-4 mb-4 border-bottom">
<div class="container d-flex flex-wrap align-items-center justify-content-center justify-content-md-between">
<div class="col-md-3 mb-2 mb-md-0">
<h1>Rent a Book</h1>
</div>
<ul class="nav col-12 col-md-auto mb-2 justify-content-center mb-md-0">
<li><a href="#users" class="nav-link px-2 link-secondary">Kullanıcılar</a></li>
<li><a href="#books" class="nav-link px-2">Kitaplar</a></li>
<li><a href="#leased-books" class="nav-link px-2">Kiralanmış Kitaplar</a></li>
</ul>
</div>
</header>
<!-- Finish Header-->
<!-- Begin Users (İsmail)-->
<section class="container p-4" id="users">
<h1 class="bd-title mb-0">Kullanıcılar</h1>
<p class="bd-lead">Kullanıcı ekleyebilir ve kullanıcıları görebilirsiniz.</p>
<div class="row">
<div class="col">
<div class="mb-3">
<label for="userFullName" class="form-label">Ad Soyad</label>
<input type="text" class="form-control" id="userFullName" placeholder="Ad soyad giriniz">
</div>
<fieldset class="row mb-3">
<legend class="col-form-label col-sm-2 pt-0">Cinsiyet</legend>
<div class="col-sm-10">
<div class="form-check">
<input class="form-check-input" type="radio" name="gender" id="userMan" value="erkek">
<label class="form-check-label" for="userMan">
Erkek
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="gender" id="userWoman" value="kadın">
<label class="form-check-label" for="userWoman">
Kadın
</label>
</div>
</div>
</fieldset>
<button type="button" class="w-100 btn btn-success" onclick="addUser()">Kullanıcı Ekle</button>
</div>
<div class="col">
<table class="table">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Ad Soyad</th>
<th scope="col">Cinsiyet</th>
<th scope="col">Kitap Kiraladı mı?</th>
</tr>
</thead>
<tbody class="table-group-divider" id="users-table">
<th scope="row" colspan="4">Kullanıcı bulunamadı.</th>
</tbody>
</table>
</div>
</div>
</section>
<!-- Finish Users -->
<!-- Begin Books (Adem)-->
<section class="container p-4" id="books">
<h1 class="bd-title mb-0">Kitaplar
</h1>
<p class="bd-lead">Kitaplar ekleyebilir ve kitapları görebilirsiniz.</p>
<div class="row">
<div class="col-md-6">
<form>
<div class="mb-3">
<label for="bookTitle" class="form-label">Kitap Adı</label>
<input type="text" class="form-control" id="bookTitle">
</div>
<div class="mb-3">
<label for="authorName" class="form-label">Yazar Adı</label>
<input type="text" class="form-control" id="authorName">
</div>
<div class="mb-3">
<label for="dailyPrice" class="form-label">Kiralama Ücreti</label>
<input type="number" class="form-control" id="dailyPrice">
</div>
<button type="button" onclick="addBook()" class="w-100 btn btn-success">Kitap Ekle</button>
</form>
</div>
<div class="col-md-6">
<table class="table">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Kitap Adı</th>
<th scope="col">Yazar Adı</th>
<th scope="col">Kiralama Ücreti</th>
<th scope="col">Kiralandımı</th>
</tr>
</thead>
<tbody id="book_table">
<tr>
<th scope="row" colspan="6">Kitap bulunamadı.</th>
</tr>
</tbody>
</table>
</div>
</div>
</section>
<!-- Finish Books -->
<!-- Begin LeasedBooks (Onur) -->
<section id="leased-books" class="container p-4">
<h1 class="bd-title mb-0">Kiralanmış Kitaplar</h1>
<p class="bd-lead">Kitap kirayabilir ve Kiralanmış kitapları görüntüleyebilirsiniz.</p>
<div class="row">
<div class="col">
<form action="" id="leasedBookForm">
<div class="form-group mb-3">
<label for="book" class="form-label">Kitap seçiniz:</label>
<select class="form-control" id="book">
<option value="" selected disabled>Kitap seçiniz</option>
</select>
</div>
<div class="form-group mb-3">
<label for="user" class="form-label">Kullanıcı seçiniz:</label>
<select class="form-control" id="user">
<option value="" selected disabled>Kullanıcı seçiniz</option>
</select>
</div>
<div class="form-group mb-3">
<label for="day" class="form-label">Gün giriniz</label>
<input type="text" class="form-control" id="day" placeholder="Gün giriniz">
</div>
<button type="submit" id="leasedSubmit"class="w-100 btn btn-success">Kitabı kirala</button>
</form>
</div>
<div class="col">
<table class="table">
<thead>
<tr>
<th scope="col">Kitap</th>
<th scope="col">Kullanıcı</th>
<th scope="col">Gün sayısı</th>
<th scope="col">Toplam ücret</th>
</tr>
</thead>
<tbody id="leasedTable">
</tbody>
</table>
</div>
</div>
</section>
<!-- Finish LeasedBooks -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/toastify-js"></script>
<script src="assets/scripts/index.js"></script>
</body>
</html>