-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathraporlar.html
90 lines (70 loc) · 2.77 KB
/
raporlar.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
<!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>Raporlar</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> <!-- Kendi import yaptığım -->
<script src="resources/js/bootstrap.js"></script>
<script src="resources/js/w2ui-1.4.2.js"></script>
</head>
<div id="toolbar" style="padding: 4px; border: 1px solid silver; border-radius: 3px"></div>
<div id="grid" style="margin:8em; height: 400px;"></div>
<body>
<!-- <center>
<h2>Raporlar</h2>
<a href="AdminPanel.html">Anasayfaya dön</a>
</center>-->
<script type="text/javascript">
$(function () {
$('#toolbar').w2toolbar({
name: 'toolbar',
items: [
{ type: 'button', id: 'homePage', caption: 'Main Page', img: 'icon-page' },
{ type: 'break', id: 'break0' },
{ type: 'button', id: 'bookList',caption: ' Retrun Book List', img:'fa fa-star'}
],
onClick: function (target, data) {
if ( target === 'homePage' ) {
window.location.href = 'AdminPanel.html';
}
if( target === 'bookList'){
window.location.href = 'bookList.html';
}
}
});
$('#grid').w2grid({
name: 'grid',
header: '<h4>Reports</h4>',
show: {
header: true,
toolbar: true,
footer: true
},
multiSearch: true,
searches: [
{ field: 'date', caption: 'Date', type: 'date' }
],
columns: [
{ field: 'recid', caption: 'ID', size: '5%', sortable: true, attr: 'align=center' },
{ field: 'bname', caption: 'Book Name', size: '60%', sortable: true },
{ field: 'date', caption: 'Date', render: 'date:mm/dd/yyyy', size: '30%' },
{ field: 'counter', caption: ' Counter', render:'number', size:'5%', sortable: true, searchable: true}
],
records: [
{ recid: 1, bname: 'Jane', date: '12/07/2005',counter:'6' },
{ recid: 2, bname: 'Stuart', date: '08/08/2015',counter:'8' }
]
});
});
</script>
</body>
</html>