-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnewBook.html
116 lines (93 loc) · 3.97 KB
/
newBook.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
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<title>YENİ KİTAP EKLE</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="resources/css/bootstrap.css"/>
<link rel="stylesheet" href="resources/css/w2ui-1.4.2.css"/>
<link rel="stylesheet" href="resources/css/font-awesome.css"/>
<script src="resources/js/jquery-2.1.0.min.js"></script>
<script src="resources/js/bootstrap.js"></script>
<script src="resources/js/w2ui-1.4.2.js"></script>
</head>
<body>
<!-- <form>
<center> <h2>YENİ KİTAP EKLE</h2>
<p>ADI* :
<input type="text"/> <br/></p>
<p>YAZAR(LAR)* :
<input type="text"/> <br/></p>
<p>KONUSU* :
<input type="number"
min="11"
max="91"
step="10"/> <br/></p>
<p>DİLİ* : TR
<input type="radio" name="group1[]" value="TR" /> EN
<input type="radio" name="group1[]" value="EN"/> </p>
<p>BASIM EVİ* :
<input type="text"/> <br/></p>
<p>YALTES'DE GİRİŞ TARİHİ*:
<input type="date"/></p>
<p>KAYIT NO* :
<input type="number" min="1"/><br/></p>
<p>ISBN NO* :
<input type="number" min="1"/><br/></p>
<p>SAYFA SAYISI* :
<input type="number" min="1"/> <br/></p>
<p>İÇERİK ÖZETİ* :
<input type="text"/> <br/></p>
<p>BULUNDUĞU YER* :
<input type="text"/> <br/></p>
<p>BASKI TARİHİ* :
<input type="date"/></p>
<a href="AdminPanel.html">Add</a> </center>
</form>-->
<div id="form" style="position: absolute; top: 100px; left: 650px; bottom: 100px; right: 10px; margin: 2em; height: 580px;width: 500px"></div>
<script type="text/javascript">
$(function () {
$('#form').w2form({
name : 'form',
header : '<h4>Add New Book</h4>',
fields: [
{ field: 'Book Name', type: 'text', required: true },
{ field: 'Author', type: 'text', required: true },
{ field: 'Subject', type: 'list', required: true,
options: { items: ['Yazılım','Donanım','Hukuk','Finans','İk','Çevre','ISG','İdari','Diğer'] } },
{ field: 'Language', type: 'list', required: true, options: { items: ['TR', 'EN'] } },
{ field: 'Number of Pages', type: 'int', required: true },
{ field: 'Register No', type: 'int', required: true },
{ field: 'ISBN No', type: 'int', required: true },
{ field: 'Printing House', type: 'text', required: true },
{ field: 'Print Date', type: 'date',required: true },
{ field: 'Yaltes Entry Date', type: 'date',required: true },
{ field: 'Location', type: 'alphaNumeric',required: true},
{ field: 'Summery', type: 'textarea'},
{ field: 'Add Image',type:'file'}
],
actions: {
reset: function () {
this.clear();
},
save: function () {
var obj = this;
this.save({}, function (data) {
if (data.status == 'error') {
console.log('ERROR: '+ data.message);
return;
}
obj.clear();
});
}
}
});
});
</script>
</body>
</html>