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