More Consistant terminoligy in stage-marc-import.tmpl
[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; <!-- TMPL_IF NAME="do_it" -->Logs &rsaquo; Results<!-- TMPL_ELSE -->Logs<!-- /TMPL_IF --></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; <!-- TMPL_IF NAME="do_it" --><a href="/cgi-bin/koha/tools/viewlog.pl">Logs</a> &rsaquo; Results<!-- TMPL_ELSE -->Logs<!-- /TMPL_IF --></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             <!-- TMPL_IF NAME="do_it" --><input type="hidden" name="do_it" value="<!--TMPL_VAR NAME="do_it" -->" /><!-- /TMPL_IF -->
23 <!--    These are selects below.
24                 <input type="hidden" name="module" value="<!--TMPL_VAR NAME="module" -->" />
25             <input type="hidden" name="action" value="<!--TMPL_VAR NAME="action" -->" />
26             <input type="hidden" name="object" value="<!--TMPL_VAR NAME="object" -->" />
27 -->         <input type="hidden" name="src" value="<!--TMPL_VAR NAME="src" -->" />
28 <fieldset class="rows">
29 <ol>
30             <li>
31                <label for="user">Librarian:</label> <input type="text" name="user" id="user" value="<!-- TMPL_VAR NAME="user"-->" />
32             </li>
33             <li>
34                 <label for="module">Module:</label>
35                 <select name="module" id="module">
36                             <option value="" selected="selected">All</option>
37                             <option value ="CATALOGUING">Catalog</option>
38                                 <option value ="MEMBERS">Members</option>
39                                 <option value ="ACQUISITION">Acquisitions</option>
40                                 <option value ="SERIAL">Serial</option>
41                                 <option value="CIRCULATION">Circulation</option>
42                                 <option value="LETTER">Letter</option>
43                                 <option value="FINES">Fines</option>
44                                 <option value="SYSTEMPREFERENCE">System Prefs</option>
45                         </select>
46             </li>
47             <li>
48                 <label for="action">Action:</label>
49                 <select name="action" id="action">
50                         <option value ="">All</option>
51                                 <option value ="add">Add</option>
52                                 <option value ="del">Delete</option>
53                                 <option value ="mod">Modify</option>
54                                 <option value="issue">Issue</option>
55                                 <option value="return">Return</option>
56                         </select>
57             </li>
58             <li>
59                 <label for="object">Object</label>
60                 <input type="text" id="object" name="object" value="<!-- TMPL_VAR NAME="object"-->" />
61             </li>
62             <li>
63                 <label for="info">Info:</label>
64                 <input type="text" name="info" value="<!-- TMPL_VAR NAME="info"-->" />
65             </li>
66         <li>
67         <label for="from"> Display from</label> <input type="text" size="10" id="from" name="from" value="<!-- TMPL_VAR NAME="datefrom"-->" />
68                 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" border="0" alt="Show Calendar" id="openCalendarFrom" style="cursor: pointer;" />
69                 <label for="to">to</label> <input size="10" id="to" name="to" type="text" value="<!-- TMPL_VAR NAME="dateto"-->" />
70                 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="openCalendarTo" alt="Show Calendar" style="cursor: pointer;" border="0" />
71                         <script type="text/javascript">
72 //<![CDATA[
73                                 // function submit_check (from_id,to_id) {
74                                 //      var dateFrom = Date_from_syspref(document.getElementById(from_id).value);
75                                 //      var dateTo   = Date_from_syspref(document.getElementById(  to_id).value);
76                                 //      var today = new Date();
77                                 //      if (dateFrom < dateTo) { 
78                                 //              alert("The starting date cannot be after the ending date.");
79                                 //              document.getElementById(to_id).select();
80                                 //              return false;
81                                 //      }
82                                 //      if (dateFrom > today) { 
83                                 //              alert("The starting date cannot be in the future.");
84                             //          document.getElementById(from_id).select();
85                                 //              return false;
86                                 //      }
87                                 // }
88
89                                 // return true if the date is blocked.
90                                 function disable_from(date) {var limit = get_Calendar_limit(date,'to'  ); return (limit && limit < date);}
91                                 function disable_to  (date) {var limit = get_Calendar_limit(date,'from'); return (limit && limit > date);}
92
93                                 Calendar.setup({
94                                         inputField : "from",
95                                         ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
96                                         button : "openCalendarFrom",
97                                         disableFunc : disable_from,
98                                         dateStatusFunc : disable_from
99                                 });
100                                 Calendar.setup({
101                                         inputField : "to",
102                                         ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
103                                         button : "openCalendarTo",
104                                         disableFunc : disable_to,
105                                         dateStatusFunc : disable_to
106                                 });
107 //]]>
108                     </script>
109                 </li>
110                 </ol>
111                 </fieldset>
112         <fieldset class="rows">
113                 <legend>Output</legend>
114                 <ol>
115         <li><label for="screen" >To screen in the browser:</label> <input id="screen" type="radio" checked="checked" name="output" value="screen" />
116         </li>
117                 <li><label for="file">To a file:</label>
118                 <input id="file" type="radio" name="output" value="file" />
119                  <label class="inline" for="basename">Named:</label>
120                 <input type="text" name="basename" id="basename" value="Export" />
121                 <label for="MIME" class="inline">Into an application:</label>
122                 <!-- TMPL_VAR NAME="CGIextChoice" -->
123                 <!-- TMPL_VAR NAME="CGIsepChoice" -->
124             <input type="hidden" name="report_name" value="<!--TMPL_VAR NAME="report_name" -->" />
125             </li>
126                 </ol>
127 </fieldset>
128 <fieldset class="action"><input type="submit" value="Submit" />
129             <input type="hidden" name="do_it" value="1" /></fieldset>
130     
131     <!-- TMPL_IF NAME="do_it" -->
132         <!-- TMPL_IF NAME="total" -->
133             <h4><!-- TMPL_VAR NAME="total" --> lines found.</h4>
134         <!-- TMPL_ELSE -->
135             <div class="dialog alert">No log found
136                         <!-- TMPL_IF EXPR="module eq 'CATALOGUING'" -->for <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="object" -->">Bibliographic Record <!-- TMPL_VAR NAME="object" --></a><!-- /TMPL_IF --><!-- TMPL_IF EXPR="module eq 'MEMBERS'" -->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><!-- /TMPL_IF -->
137                         .</div>
138         <!-- /TMPL_IF -->
139     <!-- /TMPL_IF -->    
140         
141     <!-- TMPL_IF NAME="do_it" -->
142         <!-- TMPL_IF NAME="total" -->
143     <table>
144     <tr>
145         <th>Date</th>
146         <th>Librarian</th>
147         <th>Module</th>
148         <th>Action</th>
149                 <th>Object</th>
150                 <th>Info</th>
151         </tr>
152         
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 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 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                                                         <!-- TMPL_IF EXPR="info eq 'item'" -->
176                                                         <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>
177                                                         <!-- TMPL_ELSE -->
178                                                         <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>
179                                                         <!-- /TMPL_IF -->
180                                                     <!-- TMPL_ELSE-->
181                                                     <!-- TMPL_IF NAME="SERIAL"-->
182                                                         <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=<!-- TMPL_VAR NAME="object" -->">
183                                                             <!-- TMPL_VAR NAME="object" -->
184                                                         </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_IF -->
203 <!-- /TMPL_IF -->
204         </form>
205 </div>
206 </div>
207 <div class="yui-b noprint">
208 <!-- TMPL_IF NAME="menu" -->
209     <!-- TMPL_INCLUDE NAME="circ-menu.inc" -->
210 <!-- TMPL_ELSE -->
211         
212     <!-- TMPL_IF EXPR="module eq 'CATALOGUING'" --><!-- TMPL_INCLUDE NAME="biblio-view-menu.inc" --><!-- TMPL_ELSE --><!-- TMPL_INCLUDE NAME="tools-menu.inc" --><!-- /TMPL_IF -->
213 <!-- /TMPL_IF -->
214 </div>
215 </div>
216 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->