fix all templates errors reported by xt/author/valid-templates.t
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / viewlog.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>
3         Koha &rsaquo; Tools &rsaquo;
4         <!-- TMPL_IF NAME="do_it" -->
5                 Logs &rsaquo; Results
6         <!-- TMPL_ELSE -->
7                 Logs
8         <!-- /TMPL_IF -->
9 </title>
10 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
11 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
12 </head>
13 <body>
14 <!-- TMPL_INCLUDE NAME="header.inc" -->
15 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
16
17 <div id="breadcrumbs">
18         <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
19         <!-- TMPL_IF NAME="do_it" -->
20                 <a href="/cgi-bin/koha/tools/viewlog.pl">Logs</a> &rsaquo; Results
21         <!-- TMPL_ELSE -->
22                 Logs
23         <!-- /TMPL_IF -->
24 </div>
25
26 <div id="doc3" class="yui-t2">
27         <div id="bd">
28                 <div id="yui-main">
29                         <div class="yui-b">
30                                 <h1>Browse system logs</h1>
31                                 <form method="post" action="/cgi-bin/koha/tools/viewlog.pl">
32                                         <!-- TMPL_IF NAME="do_it" -->
33                                                 <input type="hidden" name="do_it" value="<!--TMPL_VAR NAME="do_it" -->" />
34                                         <!-- /TMPL_IF -->
35                                         <input type="hidden" name="src" value="<!--TMPL_VAR NAME="src" -->" />
36                                         <fieldset class="rows">
37                                                 <ol>
38                                                         <li>
39                                                                 <label for="user">Librarian:</label>
40                                                                 <input type="text" name="user" id="user" value="<!-- TMPL_VAR NAME="user"-->" />
41                                                         </li>
42                                                         <li>
43                                                                 <label for="module">Module:</label>
44                                                                 <select name="modules" id="modules" multiple="multiple">
45                                                                         <option value="" selected="selected">All</option>
46                                                                         <option value ="CATALOGUING">Catalog</option>
47                                                                         <option value ="MEMBERS">Members</option>
48                                                                         <option value ="ACQUISITION">Acquisitions</option>
49                                                                         <option value ="SERIAL">Serial</option>
50                                                                         <option value="CIRCULATION">Circulation</option>
51                                                                         <option value="LETTER">Letter</option>
52                                                                         <option value="FINES">Fines</option>
53                                                                         <option value="SYSTEMPREFERENCE">System Prefs</option>
54                                                                 </select>
55                                                         </li>
56                                                         <li>
57                                                                 <label for="action">Action:</label>
58                                                                 <select name="action" id="action">
59                                                                         <option value ="">All</option>
60                                                                         <option value ="add">Add</option>
61                                                                         <option value ="del">Delete</option>
62                                                                         <option value ="mod">Modify</option>
63                                                                         <option value="issue">Issue</option>
64                                                                         <option value="return">Return</option>
65                                                                 </select>
66                                                         </li>
67                                                         <li>
68                                                                 <label for="object">Object</label>
69                                                                 <input type="text" id="object" name="object" value="<!-- TMPL_VAR NAME="object"-->" />
70                                                         </li>
71                                                         <li>
72                                                                 <label for="info">Info:</label>
73                                                                 <input type="text" name="info" value="<!-- TMPL_VAR NAME="info"-->" />
74                                                         </li>
75                                                         <li>
76                                                                 <label for="from"> Display from</label> <input type="text" size="10" id="from" name="from" value="<!-- TMPL_VAR NAME="datefrom"-->" />
77                                                                 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" border="0" alt="Show Calendar" id="openCalendarFrom" style="cursor: pointer;" />
78                                                                 <label for="to">to</label> <input size="10" id="to" name="to" type="text" value="<!-- TMPL_VAR NAME="dateto"-->" />
79                                                                 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="openCalendarTo" alt="Show Calendar" style="cursor: pointer;" border="0" />
80                                                                         <script type="text/javascript">
81                                                                         //<![CDATA[
82                                                                         // function submit_check (from_id,to_id) {
83                                                                         //      var dateFrom = Date_from_syspref(document.getElementById(from_id).value);
84                                                                         //      var dateTo   = Date_from_syspref(document.getElementById(  to_id).value);
85                                                                         //      var today = new Date();
86                                                                         //      if (dateFrom < dateTo) { 
87                                                                         //              alert("The starting date cannot be after the ending date.");
88                                                                         //              document.getElementById(to_id).select();
89                                                                         //              return false;
90                                                                         //      }
91                                                                         //      if (dateFrom > today) { 
92                                                                         //              alert("The starting date cannot be in the future.");
93                                                                         //              document.getElementById(from_id).select();
94                                                                         //              return false;
95                                                                         //      }
96                                                                         // }
97                                                                         
98                                                                         // return true if the date is blocked.
99                                                                         function disable_from(date) {var limit = get_Calendar_limit(date,'to'  ); return (limit && limit < date);}
100                                                                         function disable_to  (date) {var limit = get_Calendar_limit(date,'from'); return (limit && limit > date);}
101                                                                         
102                                                                         Calendar.setup({
103                                                                         inputField : "from",
104                                                                         ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
105                                                                         button : "openCalendarFrom",
106                                                                         disableFunc : disable_from,
107                                                                         dateStatusFunc : disable_from
108                                                                         });
109                                                                         Calendar.setup({
110                                                                         inputField : "to",
111                                                                         ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
112                                                                         button : "openCalendarTo",
113                                                                         disableFunc : disable_to,
114                                                                         dateStatusFunc : disable_to
115                                                                         });
116                                                                         //]]>
117                                                                         </script>
118                                                         </li>
119                                                 </ol>
120                                         </fieldset>
121                                         <fieldset class="rows">
122                                                 <legend>Output</legend>
123                                                 <ol>
124                                                         <li>
125                                                                 <label for="screen" >To screen in the browser:</label> <input id="screen" type="radio" checked="checked" name="output" value="screen" />
126                                                         </li>
127                                                         <li>
128                                                                 <label for="file">To a file:</label>
129                                                                 <input id="file" type="radio" name="output" value="file" />
130                                                                 <label class="inline" for="basename">Named:</label>
131                                                                 <input type="text" name="basename" id="basename" value="Export" />
132                                                                 <!--
133                                                                         <label for="MIME" class="inline">Into an application:</label>
134                                                                         <!-- TMPL_VAR NAME="CGIextChoice" -->
135                                                                         <!-- TMPL_VAR NAME="CGIsepChoice" -->
136                                                                 -->
137                                                                 <input type="hidden" name="report_name" value="<!--TMPL_VAR NAME="report_name" -->" />
138                                                         </li>
139                                                 </ol>
140                                         </fieldset>
141                                         <fieldset class="action">
142                                                 <input type="submit" value="Submit" />
143                                                 <input type="hidden" name="do_it" value="1" />
144                                         </fieldset>
145                                         <!-- TMPL_IF NAME="do_it" -->
146                                                 <!-- TMPL_IF NAME="total" -->
147                                                         <h4><!-- TMPL_VAR NAME="total" --> lines found.</h4>
148                                                         <table>
149                                                                 <tr>
150                                                                         <th>Date</th>
151                                                                         <th>Librarian</th>
152                                                                         <th>Module</th>
153                                                                         <th>Action</th>
154                                                                         <th>Object</th>
155                                                                         <th>Info</th>
156                                                                 </tr>
157                                                                 <!-- TMPL_LOOP NAME="looprow" -->
158                                                                         <tr>
159                                                                                 <td><!-- TMPL_VAR NAME="timestamp" --></td>
160                                                                                 <td>
161                                                                                         <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="user" -->" title="display detail for this librarian."> <!-- TMPL_VAR NAME="user" --> </a>
162                                                                                 </td>
163                                                                                 <td><!-- TMPL_VAR NAME="module" --></td>
164                                                                                 <td><!-- TMPL_VAR NAME="action" --></td>
165                                                                                 <td>
166                                                                                         <!-- TMPL_IF EXPR="module eq 'MEMBERS'"-->
167                                                                                                 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="object" -->" title="Display member details."> member <!-- TMPL_VAR NAME="object" --> </a>
168                                                                                         <!-- TMPL_ELSE -->
169                                                                                                 <!-- TMPL_IF EXPR="module eq 'CIRCULATION'" -->
170                                                                                                         <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="object" -->" title="Display member details.">
171                                                                                                                 <!-- TMPL_IF NAME="object" -->
172                                                                                                                         member <!-- TMPL_VAR NAME="object" -->
173                                                                                                                 <!-- /TMPL_IF -->
174                                                                                                         </a>
175                                                                                                 <!-- TMPL_ELSE -->
176                                                                                                         <!-- TMPL_IF EXPR="module eq 'CATALOGUING'" -->
177                                                                                                                 <!-- TMPL_IF EXPR="info eq 'item'" -->
178                                                                                                                         <a href="/cgi-bin/koha/catalogue/moredetail.pl?item=<!-- TMPL_VAR NAME="object" -->&biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&bi=<!-- TMPL_VAR NAME="biblioitemnumber" -->#item<!-- TMPL_VAR NAME="object" -->">Item <!-- TMPL_VAR NAME="object" --></a>
179                                                                                                                 <!-- TMPL_ELSE -->
180                                                                                                                         <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>
181                                                                                                                 <!-- /TMPL_IF -->
182                                                                                                         <!-- TMPL_ELSE-->
183                                                                                                                 <!-- TMPL_IF EXPR="module eq 'SERIAL'" -->
184                                                                                                                         <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=<!-- TMPL_VAR NAME="object" -->"> <!-- TMPL_VAR NAME="object" --> </a>
185                                                                                                                 <!-- TMPL_ELSE -->
186                                                                                                                         <!-- TMPL_VAR NAME="object" -->
187                                                                                                                 <!-- /TMPL_IF -->
188                                                                                                         <!-- /TMPL_IF -->
189                                                                                                 <!-- /TMPL_IF -->
190                                                                                         <!-- /TMPL_IF -->
191                                                                                 </td>
192                                                                                 <td>
193                                                                                         <!-- TMPL_IF NAME="CIRCULATION" -->
194                                                                                                 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="info" -->" title="Display detail for this biblio">biblio <!-- TMPL_VAR NAME="info" escape="html" --></a>
195                                                                                         <!-- TMPL_ELSE -->
196                                                                                                 <!-- TMPL_VAR NAME="info" escape="html"-->
197                                                                                         <!-- /TMPL_IF -->
198                                                                                 </td>
199                                                                         </tr>
200                                                                 <!-- /TMPL_LOOP -->
201                                                         </table>
202                                                 <!-- TMPL_ELSE -->
203                                                         <div class="dialog alert">
204                                                                 No log found
205                                                                 <!-- TMPL_IF NAME="CATALOGUING" -->
206                                                                         for <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="object" -->">Bibliographic Record <!-- TMPL_VAR NAME="object" --></a>
207                                                                 <!-- /TMPL_IF -->
208                                                                 <!-- TMPL_IF NAME="MEMBERS" -->
209                                                                         for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="object" -->"><!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)</a>
210                                                                 <!-- /TMPL_IF -->
211                                                                 .
212                                                         </div>
213                                                 <!-- /TMPL_IF -->
214                                         <!-- /TMPL_IF -->
215                                 </form>
216                         </div>
217                 </div>
218                 <div class="yui-b noprint">
219                         <!-- TMPL_IF NAME="menu" -->
220                                 <!-- TMPL_INCLUDE NAME="circ-menu.inc" -->
221                         <!-- TMPL_ELSE -->
222                                 <!-- TMPL_IF NAME="CATALOGUING" -->
223                                         <!-- TMPL_INCLUDE NAME="biblio-view-menu.inc" -->
224                                 <!-- TMPL_ELSE -->
225                                         <!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
226                                 <!-- /TMPL_IF -->
227                         <!-- /TMPL_IF -->
228                 </div>
229         </div>
230 </div>
231 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->