minor template changes
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / tools / viewlog.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Tools &rsaquo; Logs</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4
5 <!-- Additions to enable Calendar system -->
6 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/includes/calendar/calendar-system.css">
7 <!-- End of additions --><!-- Additions to enable Calendar system -->
8 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/includes/calendar/calendar.js"></script>
9 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/includes/calendar/calendar-en.js"></script>
10 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/includes/calendar/calendar-setup.js"></script>
11 <!-- End of additions -->
12
13 <!-- TMPL_INCLUDE NAME="menus.inc" -->
14 <!-- TMPL_INCLUDE NAME="menu-tools.inc" -->
15
16 <h1>Browse system logs</h1>
17
18 <form method="POST" action="/cgi-bin/koha/tools/viewlog.pl">
19
20 <fieldset>
21     <legend>Additional infos</legend>
22         <p>
23          Display from <input type="text" size="10" id="from" name="from" value="<!-- TMPL_VAR NAME="datefrom"-->"/>
24                                                         <img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" border="0" hspace="0" vspace="0" id="openCalendarFrom" style="cursor: pointer;" valign="top">
25                                                                 <script language="JavaScript" type="text/javascript">
26                                                                         function validate1(date) {
27                                                                                 var day = date.getDate();
28                                                                                 var month = date.getMonth() + 1;
29                                                                                 var year = date.getFullYear();
30                                                                                 var weekDay = date.getDay();
31                                                                                 var dayMonth = month + '-' + day;
32                                                                                 var dateString = year + '-' + month + '-' + day;
33                                                                                 var dateTo = document.getElementById('to').value.split("-");
34                                                                                 var limitDate = new Date(dateTo[0], (dateTo[1] - 1), dateTo[2]);
35                                                                                 if (date > limitDate) {
36                                                                                         return true;
37                                                                                 } else {
38                                                                                         return false;
39                                                                                 }
40                                                                         }
41                                         
42                                                                         Calendar.setup(
43                                                                                 {
44                                                                                         inputField : "from",
45                                                                                         ifFormat : "%Y-%m-%d",
46                                                                                         button : "openCalendarFrom",
47                                                                                         disableFunc : validate1,
48                                                                                         dateStatusFunc : validate1
49                                                                                 }
50                                                                         );
51                                                                 </script>
52                                         to <input size="10" id="to" name="to" type="text" value="<!-- TMPL_VAR NAME="dateto"-->"/>
53                                                 <img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" id="openCalendarTo" style="cursor: pointer;" valign="top" border="0" hspace="0" vspace="0">
54                                         <script type="text/javascript">
55                                                 function validate2(date) {
56                                                         var day = date.getDate();
57                                                         var month = date.getMonth() + 1;
58                                                         var year = date.getFullYear();
59                                                         var weekDay = date.getDay();
60                                                         var dayMonth = month + '-' + day;
61                                                         var dateString = year + '-' + month + '-' + day;
62                                                         var dateFrom = document.getElementById('from').value.split("-");
63                                                         var limitDate = new Date(dateFrom[0], (dateFrom[1] - 1), dateFrom[2]);
64                                                         if (limitDate > date) {
65                                                                 return true;
66                                                         } else {
67                                                                 return false;
68                                                         }
69                                                 }
70                                                 Calendar.setup(
71                                         {
72                                                         inputField : "to",
73                                                         ifFormat : "%Y-%m-%d",
74                                                         button : "openCalendarTo",
75                                                         disableFunc : validate2,
76                                                         dateStatusFunc : validate2
77                                                 }
78                                         );
79                     </script>
80                 </p>
81                 <p>
82                 <p><b>Export into</b></p>
83         <input id="screen" type="radio" checked name="output" value="screen" />
84         <label for="screen" >To screen into the browser</label>
85                 <br>
86                 <input id="file" type="radio" name="output" value="file" />
87                  <label for="file">To file</label>
88                 <input type="text" name="basename" value="Export"> into an application  
89                 <!-- TMPL_VAR NAME="CGIextChoice" -->
90                 <!-- TMPL_VAR NAME="CGIsepChoice" -->
91             <input type="hidden" name="report_name" value="<!--TMPL_VAR NAME="report_name" -->">
92             <input type="submit" value=" GO " />
93             </p>
94 </fieldset>
95     
96     <!-- TMPL_IF NAME="do_it" -->
97         <p>
98         <!-- TMPL_IF NAME="total" -->
99             <b><!-- TMPL_VAR NAME="total" --> lines found.</b>
100         <!-- TMPL_ELSE -->
101             <b><span class="problem">No log found.</span></b>
102         <!-- /TMPL_IF -->
103         </p>
104     <!-- /TMPL_IF -->
105     <div class="searchresults">
106         <table>
107     <tr>
108         <th>Date</th>
109         <th>Librarian</th>
110         <th>Module</th>
111         <th>Action</th>
112                 <th>Object</th>
113                 <th>Info</th>
114         </tr>
115         <tr>
116             <td>
117             <input type="submit" value="filter" />
118             <input type="hidden" name="do_it" value="1">
119             </td>
120             <td>
121                 <input type="text" name="user" value="<!-- TMPL_VAR NAME="user"-->" />
122             </td>
123             <td>
124                 <select name="module">
125                             <option value="" checked>All</option>
126                             <option value ="CATALOGUING">Catalogue</option>
127                                 <option value ="MEMBERS">Members</option>
128                                 <option value ="ACQUISITION">Acquisitions</option>
129                                 <option value ="SERIAL">Serial</option>
130                                 <option value="CIRCULATION">Circulation</option>
131                                 <option value="LETTER">Letter</option>
132                                 <option value="FINES">Fines</option>
133                         </select>
134             </td>
135             <td>
136                 <select name="action">
137                         <option value ="">All</option>
138                                 <option value ="add">Add</option>
139                                 <option value ="del">Delete</option>
140                                 <option value ="mod">Modify</option>
141                                 <option value="issue">Issue</option>
142                                 <option value="return">Return</option>
143                         </select>
144             </td>
145             <td>
146                 <input type="text" name="object" value="<!-- TMPL_VAR NAME="object"-->" />
147             </td>
148             <td>
149                 <input type="text" name="info" value="<!-- TMPL_VAR NAME="info"-->" />
150             </td>
151         </tr>
152             <!-- TMPL_LOOP NAME="looprow" -->
153                                         <tr>
154                                                 <td><!-- TMPL_VAR NAME="timestamp" --></td>
155                                                 <td>
156                                                     <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="user" -->" title="display detail for this librarian.">
157                                                         <!-- TMPL_VAR NAME="user" -->
158                                                     </a>
159                                                 </td>
160                                                 <td><!-- TMPL_VAR NAME="module" --></td>
161                                                 <td><!-- TMPL_VAR NAME="action" --></td>
162                                                 <td>
163                                                     <!-- TMPL_IF NAME="MEMBERS"-->
164                                                         <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="object" -->" title="display detail for this member." title="Display member details.">
165                                                             member <!-- TMPL_VAR NAME="object" -->
166                                                         </a>
167                                                     <!-- TMPL_ELSE -->
168                                                     <!-- TMPL_IF NAME="CIRCULATION" -->
169                                                         <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="object" -->" title="display detail for this member." title="Display member details.">
170                                                             <!-- TMPL_IF NAME="object"-->member <!-- TMPL_VAR NAME="object" --><!-- /TMPL_IF -->
171                                                         </a>
172                                                     <!-- TMPL_ELSE -->
173                                                     <!-- TMPL_IF NAME="CATALOGUING" -->
174                                                         <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="object" -->" title="Display detail for this biblio">biblio <!-- TMPL_VAR NAME="object" --></a>
175                                                     <!-- TMPL_ELSE-->
176                                                     <!-- TMPL_IF NAME="SERIAL"-->
177                                                         <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=<!-- TMPL_VAR NAME="object" -->">
178                                                             <!-- TMPL_VAR NAME="object" -->
179                                                         </a>
180                                                     <!-- TMPL_ELSE -->
181                                                     <!-- TMPL_VAR NAME="object" -->
182                                                 <!-- /TMPL_IF -->
183                                                 <!-- /TMPL_IF -->
184                                                 <!-- /TMPL_IF -->
185                                                 <!-- /TMPL_IF -->
186                                                 </td>
187                                                 <td>
188                                                     <!-- TMPL_IF NAME="CIRCULATION" -->
189                                                          <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="info" -->" title="Display detail for this biblio">biblio <!-- TMPL_VAR NAME="info" --></a>
190                                                 <!-- TMPL_ELSE -->
191                                                     <!-- TMPL_VAR NAME="info" -->
192                                                 <!-- /TMPL_IF -->
193                                                 </td>
194                                         </tr>
195                 <!-- /TMPL_LOOP -->
196     </table>
197     </div>
198
199 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->