-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathviewlog_1.jsp
73 lines (70 loc) · 2.87 KB
/
viewlog_1.jsp
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
<%@include file="logincheck.jsp" %>
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<html>
<%
java.io.File file = new java.io.File(application.getRealPath("/logs/" + request.getParameter("name") + "/" + request.getParameter("logname")));
%>
<head>
<title>visa logg</title>
<style type="text/css">
.default { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 80%; }
.rubrik { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 120%; }
</style>
</head>
<body>
<table cellpadding="0" cellspacing="0" width="700">
<tr>
<td><img src="/exportgui/images/logga.jpg"></td>
</tr>
<tr height="1" bgcolor="#dfdfdf">
<td></td>
</tr>
</table>
<p class="rubrik">exportadministration (<% out.print(request.getParameter("name")); %>)</p>
<table cellpadding="0" cellspacing="0" width="700">
<tr bgcolor="#000000">
<td colspan="6" height="1"></td>
</tr>
<tr bgcolor="#dfdfdf" class="default">
<td nowrap align="center"> <b>BIBID</b> </td>
<td nowrap align="center"> <b>ISBN/ISSN</b> </td>
<td nowrap align="center"> <b>författare</b> </td>
<td nowrap align="center"> <b>titel</b> </td>
<td nowrap align="center"> <b>operatör</b> </td>
<td nowrap align="center"> <b>orsak</b> </td>
</tr>
<tr bgcolor="#000000">
<td colspan="6" height="1"></td>
</tr>
<tr bgcolor="#dfdfdf">
<td colspan="6" height="1"></td>
</tr>
<%
java.io.BufferedReader reader = new java.io.BufferedReader(new java.io.FileReader(file));
reader.readLine();
String line = null;
while ((line = reader.readLine()) != null) {
if (line.trim().equals("")) continue;
String s[] = line.split("\t");
%>
<tr class="default">
<td nowrap align="center"> <% out.print(s[0]); %> </td>
<td nowrap align="center"> <% out.print(s[1]); %> </td>
<td nowrap align="center"> <% out.print(s[2]); %> </td>
<td nowrap align="center"> <% out.print(s[3]); %> </td>
<td nowrap align="center"> <% out.print(s[4]); %> </td>
<td nowrap align="center"> <% out.print(s[5]); %> </td>
</tr>
<tr bgcolor="#dfdfdf">
<td colspan="6" height="1"></td>
</tr>
<%
}
reader.close();
%>
<tr>
<td>
</table>
</body>
</html>