-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbookList.html
124 lines (99 loc) · 3.89 KB
/
bookList.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
<!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>
<link rel="stylesheet" href="main.css">
<title>Kitap Listesi</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- CSS -->
<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"/>
<!-- JS -->
<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>
<center>
<p><a href="bookList.html">Delete Book</a></p>
</center>
<nav id="navbar">
</nav>
<div id="grid" style=" margin:8em; height: 700px;">
</div>
<script>
$(function () {
$('#navbar').w2toolbar({
name: 'toolbar',
items: [
{type: 'button', id: 'homePage', caption: 'Main Page', icon: 'fa fa-diamond'},
{ type: 'break', id: 'break0' },
{type: 'button', id:'editBook', caption: 'Edit Book', icon: 'fa fa-diamond'},
{tpye:'break', id:'break0 '},
{tpye:'button', id:'movement', caption : 'Book Hitory', icon: 'fa fa-diamond'}
],
onClick: function (target, data) {
if ( target === 'homePage' ) {
window.location.href = 'AdminPanel.html';
}
if(target === 'editBook'){
window.location.href = 'newBook.html';
}
if(target === 'movement') {
window.location.href = 'movement.html';
}
}
});
$('#grid').w2grid({
name: 'grid',
header: '<h4>Book List</h4>',
show: {
header: true,
toolbar: true,
footer: true,
lineNumbers: true,
selectColumn: true,
expandColumn: true
},
columns: [
{field: 'id', caption: 'Id', size: '5%', sortable: true, searchable: true},
{field: 'name', caption: 'Name', size: '10%'},
{field: 'author', caption: 'Author', size: '10%'},
{field: 'topic', caption: 'Topic', size: '10%'},
{field: 'language', caption: 'Language', size: '10%'},
{field: 'pressDate', caption: 'Press Date', size: '10%'},
{field: 'recordDate', caption: 'Record Date', size: '10%'},
{field: 'recordId', caption: 'Record Id', size: '10%'},
{field: 'status', caption: 'Status', size: '10%', sortable: true, searchable: true},
{field: 'history', caption: 'History', size: '10%'},
{field: 'actions', caption: 'Actions', size: '15%'}
],
records: [
{ recid: 1,
id: '',
name: 'doe',
author: 'kYLE',
topic: '4/3/2012',
language: 'TR',
pressDate: '12/8/2015',
recordDate: '12/8/2015',
recordId:'asd',
status: 'adsasd',
history: 'asad',
actions: 'asdasd' }
],
onExpand: function (event) {
var template = '<div class="row"><div class="col-xs-4 col-md-3"><a href="#" class="thumbnail"><img src="resources/images/BookCover.jpg" alt="book title" style="width: 20%;"></a></div></div>';
$('#' + event.box_id).html(template).animate({'height': 100}, 50);
}
});
});
</script>
</body>
</html>