-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmovement.html
87 lines (72 loc) · 2.51 KB
/
movement.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
<!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>Kitabın Hareketleri</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/font-awesome.css"/>
<link rel="stylesheet" href="resources/css/w2ui-1.4.2.css"/>
<script src="resources/js/jquery-2.1.4.min.js"></script>
<script src="resources/js/bootstrap.js"></script>
<script src="resources/js/w2ui-1.4.2.js"></script>
</head>
<body>
<nav id="navbar">
</nav>
<div id="grid" style=" margin: 8em; height: 700px;">
</div>
</center>
<script>
$(function () {
$('#navbar').w2toolbar({
name: 'toolbar',
items: [
{type: 'button', id: 'homePage', caption: 'Main Page', icon: 'fa fa-diamond'}
],
onClick: function (target, data) {
if ( target === 'homePage' ) {
window.location.href = 'AdminPanel.html';
}
}
});
$('#grid').w2grid({
name: 'grid',
header: '<h4>Book History</h4>',
show: {
header: true,
toolbar: true,
footer: true
},
columns: [
{
field: 'name', caption: 'Name', size: '25%', sortable: true, resizable: true,
editable: {type: 'text', inTag: 'maxlength=30'}
},
{
field: 'pDate', caption: 'Purchase Date', size: '25%', style: 'text-align: center', resizable: true,
editable: {type: 'date', style: 'text-align: center'}
},
{
field: 'rDate', caption: 'Return Date', size: '25%', style: 'text-align: center', resizable: true,
editable: {type: 'date', style: 'text-align: center'}
},
{
field: 'rTime',
caption: 'Residence Time',
size: '25%',
resizable: true,
style: "text-align: center",
editable: {type: 'int', inTag: "maxlength=3", style: 'text-align: center'}
}
]
});
});
</script>
</body>
</html>