code cleaning : removing useless package (everything needed copied in Accounts2.pm)
[koha.git] / koha-tmpl / intranet-tmpl / default / en / parameters / viewlog.tmpl
1 <!-- TMPL_INCLUDE NAME="parameters-top.inc" -->
2 <div id="mainbloc" >
3
4 <!-- TMPL_IF NAME="do_it" -->
5 <script language="JavaScript" type="text/javascript">
6 function Dopop(link) {
7         newin=window.open(link,'width=500,height=400,toolbar=false,scrollbars=yes');
8 }
9 </script>
10                 <h1 class="parameters">Koha : Hisory view for <!-- TMPL_VAR NAME="modulename"--> </h1>
11                 <!-- TMPL_IF NAME="loopfilter"-->
12                         <p>Filtered on</p>
13                         <!-- TMPL_LOOP NAME="loopfilter" -->
14                                         <p><!-- TMPL_IF NAME="err" --> <font color="red"> <b><!--/TMPL_IF --><label class="label100"> <!-- TMPL_VAR NAME="name"--> =</label><!-- TMPL_VAR NAME="value"--><!-- TMPL_IF NAME="err" --> </font> </b><!--/TMPL_IF --></p>
15                         <!-- /TMPL_LOOP -->
16                 <!-- /TMPL_IF NAME="loopfilter"-->
17                 <br>
18                 <table border="1">
19                         <!-- TMPL_IF NAME="catalogue" -->
20                                 <tr >
21                                                         <th class="parameters">Modified on
22                                                         </th>
23                                                         <th class="parameters">Title
24                                                         </th>
25                                                         <th class="parameters">Librarian
26                                                         </th>
27                                                         <th class="parameters">Action
28                                                         </th>
29                                                         <th class="parameters">Info
30                                                         </th>
31                                 </tr>
32                                 <!-- TMPL_LOOP NAME="looprow" -->
33                                         <!-- TMPL_IF NAME="hilighted" --><tr class="higlighted"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
34                                                 <td><!-- TMPL_VAR NAME="day" --><br/>(<!-- TMPL_VAR NAME="timestamp" -->)
35                                                 </td>
36                                                 <td><!-- TMPL_VAR NAME="title" -->, <!-- TMPL_VAR NAME="author" -->
37                                                 </td>
38                                                 <td><!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" -->
39                                                 </td>
40                                                 <td><!-- TMPL_IF NAME="action" --><!-- TMPL_VAR NAME="action" --><!-- /TMPL_IF -->
41                                                 </td>
42                                                 <td><!-- TMPL_IF NAME="info" --><!-- TMPL_VAR NAME="info" --><!-- /TMPL_IF -->
43                                                 </td>
44                                         </tr>
45                                 <!-- /TMPL_LOOP -->
46                                 <!-- /TMPL_IF -->
47                                 <!-- TMPL_IF NAME="acqui" -->
48                                 <tr >
49                                                         <th class="parameters">Timestamp
50                                                         </th>
51                                                         <th class="parameters">Firstname
52                                                         </th>
53                                                         <th class="parameters">Surname
54                                                         </th>
55                                                         <th class="parameters">Action
56                                                         </th>
57                                                         <th class="parameters">Info
58                                                         </th>
59                                                         <th class="parameters">Title
60                                                         </th>
61                                                         <th class="parameters">Author
62                                                         </th>
63                                 </tr>
64                                 <!-- TMPL_LOOP NAME="looprow" -->
65                                         <!-- TMPL_IF NAME="hilighted" --><tr class="higlighted"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
66                                                 <!-- TMPL_IF NAME="hilighted" --><td class="hilighted"><!-- TMPL_ELSE --><td><!-- /TMPL_IF -->
67                                                 <!-- TMPL_VAR NAME="rowtitle" --></td>
68                                                 <!-- TMPL_LOOP NAME="loopcell" -->
69                                                         <!-- TMPL_IF NAME="hilighted" --><td class="hilighted"><!-- TMPL_ELSE --><td ><!-- /TMPL_IF -->
70                                                                 <!-- TMPL_IF NAME="reference" --><a href="javascript:Dopop('../members/moremember.pl?bornum=<!-- TMPL_VAR NAME="reference" -->')" ><!-- /TMPL_IF -->
71                                                                 <!-- TMPL_IF NAME="value" --><!-- TMPL_VAR NAME="value" --><!-- /TMPL_IF -->
72                                                                 <!-- TMPL_IF NAME="reference" --></a><!-- /TMPL_IF -->
73                                                         </td>
74                                                         <!-- TMPL_IF NAME="hilighted" --><td class="hilighted"><!-- TMPL_ELSE --><td ><!-- /TMPL_IF -->
75                                                                 <!-- TMPL_IF NAME="count" --><!-- TMPL_VAR NAME="count" --><!-- /TMPL_IF -->
76                                                         </td>
77                                                 <!-- /TMPL_LOOP -->
78                                         </tr>
79                                 <!-- /TMPL_LOOP NAME="looprow" -->
80                                 <!-- /TMPL_IF -->
81                                 <!-- TMPL_IF NAME="members" -->
82                                 <tr >
83                                                         <th class="parameters">Timestamp
84                                                         </th>
85                                                         <th class="parameters">Firstname
86                                                         </th>
87                                                         <th class="parameters">Surname
88                                                         </th>
89                                                         <th class="parameters">Action
90                                                         </th>
91                                                         <th class="parameters">Info
92                                                         </th>
93                                                         <th class="parameters">Title
94                                                         </th>
95                                                         <th class="parameters">Author
96                                                         </th>
97                                 </tr>
98                                 <!-- TMPL_LOOP NAME="looprow" -->
99                                         <!-- TMPL_IF NAME="hilighted" --><tr class="higlighted"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
100                                                 <td><!-- TMPL_IF NAME="timestamp" --><!-- TMPL_VAR NAME="timestamp" --><!-- /TMPL_IF -->
101                                                 </td>
102                                                 <td><!-- TMPL_IF NAME="value" --><!-- TMPL_VAR NAME="value" --><!-- /TMPL_IF -->
103                                                 </td>
104                                                 <td><!-- TMPL_IF NAME="value" --><!-- TMPL_VAR NAME="value" --><!-- /TMPL_IF -->
105                                                 </td>
106                                                 <td><!-- TMPL_IF NAME="value" --><!-- TMPL_VAR NAME="value" --><!-- /TMPL_IF -->
107                                                 </td>
108                                                 <td><!-- TMPL_IF NAME="value" --><!-- TMPL_VAR NAME="value" --><!-- /TMPL_IF -->
109                                                 </td>
110                                                 <td><!-- TMPL_IF NAME="value" --><!-- TMPL_VAR NAME="value" --><!-- /TMPL_IF -->
111                                                 </td>
112                                                 <td><!-- TMPL_IF NAME="value" --><!-- TMPL_VAR NAME="value" --><!-- /TMPL_IF -->
113                                                 </td>
114                                                 <td><!-- TMPL_IF NAME="value" --><!-- TMPL_VAR NAME="value" --><!-- /TMPL_IF -->
115                                                 </td>
116                                         </tr>
117                                 <!-- /TMPL_LOOP NAME="looprow" -->
118                                 <!-- /TMPL_IF -->
119                 </table>
120 <!-- TMPL_ELSE -->
121         <h1 class = "parameters">Koha : Display Logs </h1>
122         <form method="post">
123         
124         <table>
125                 <thead>
126                         <tr>
127                         <th class="parameters">On Module</th>
128                         <th class="parameters">User/Action Filters</th>
129                         <th class="parameters">Object Filter</th>
130                         </tr>
131                 </thead>
132                 <tbody>
133                         <tr>
134                                 <td>
135                                         <select name="module">
136                                                 <option value ="catalogue" checked>Catalogue</option>
137                                                 <option value ="members">Borrowers</option>
138                                                 <option value ="acqui">Acquisitions</option>
139                                         </select>
140                                 </td>
141                                 <td>
142                                 <p>
143                                         Koha User : <input type="text" name="user" value="">
144                                 </p>
145                                 <p>     Action type : <select name="action">
146                                                 <option value ="">All</option>
147                                                 <option value ="add">Add</option>
148                                                 <option value ="del">Delete</option>
149                                                 <option value ="mod">Modify</option>
150                                         </select>
151                                 </p>
152                                 <p> From <input type="text" readonly="readonly" size="10" id="from" name="from" >
153                                                         <img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" border="0" hspace="0" vspace="0" id="openCalendarFrom" style="cursor: pointer;" valign="top">
154                                                                 <script language="JavaScript" type="text/javascript">
155                                                                         function validate1(date) {
156                                                                                 var day = date.getDate();
157                                                                                 var month = date.getMonth() + 1;
158                                                                                 var year = date.getFullYear();
159                                                                                 var weekDay = date.getDay();
160                                                                                 var dayMonth = month + '-' + day;
161                                                                                 var dateString = year + '-' + month + '-' + day;
162                                                                                 var dateTo = document.getElementById('to').value.split("-");
163                                                                                 var limitDate = new Date(dateTo[0], (dateTo[1] - 1), dateTo[2]);
164                                                                                 if (date > limitDate) {
165                                                                                         return true;
166                                                                                 } else {
167                                                                                         return false;
168                                                                                 }
169                                                                         }
170                                         
171                                                                         Calendar.setup(
172                                                                                 {
173                                                                                         inputField : "from",
174                                                                                         ifFormat : "%Y-%m-%d",
175                                                                                         button : "openCalendarFrom",
176                                                                                         disableFunc : validate1,
177                                                                                         dateStatusFunc : validate1
178                                                                                 }
179                                                                         );
180                                                                 </script>
181                                         To <input readonly="readonly" size="10" id="to" name="Filter" value="" type="to">
182                                                 <img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" id="openCalendarTo" style="cursor: pointer;" valign="top" border="0" hspace="0" vspace="0">
183                                                         <script type="text/javascript">
184                                                                 function validate2(date) {
185                                                                         var day = date.getDate();
186                                                                         var month = date.getMonth() + 1;
187                                                                         var year = date.getFullYear();
188                                                                         var weekDay = date.getDay();
189                                                                         var dayMonth = month + '-' + day;
190                                                                         var dateString = year + '-' + month + '-' + day;
191                                                                         var dateFrom = document.getElementById('from').value.split("-");
192                                                                         var limitDate = new Date(dateFrom[0], (dateFrom[1] - 1), dateFrom[2]);
193                                                                         if (limitDate > date) {
194                                                                                 return true;
195                                                                         } else {
196                                                                                 return false;
197                                                                         }
198                                                                 }
199                 
200                                                                 Calendar.setup(
201                                                                         {
202                                                                                 inputField : "to",
203                                                                                 ifFormat : "%Y-%m-%d",
204                                                                                 button : "openCalendarTo",
205                                                                                 disableFunc : validate2,
206                                                                                 dateStatusFunc : validate2
207                                                                         }
208                                                                 );
209                                                         </script>
210                                 </td>
211                         </tr>
212         </table>
213         
214         <div id="bloc25">
215                 <h3 class="parameters"> Output </h3>
216                 <input type="radio" checked name="output" value="screen" > To screen into the browser
217                 <br>
218                 <input type="radio" name="output" value="file"> To file <input type="text" name="basename" value="Export"> into an application  
219                 <!-- TMPL_VAR NAME="CGIextChoice" -->
220                 <!-- TMPL_VAR NAME="CGIsepChoice" -->
221         </p>
222         </div>
223         <p>
224         <input TYPE="submit" value="OK" class="button parameters">
225         <input type="hidden" name="report_name" value="<!--TMPL_VAR NAME="report_name" -->">
226         <input type="hidden" name="do_it" value="1">
227         </form>
228 <!-- /TMPL_IF -->
229 </div>
230 <!-- TMPL_INCLUDE NAME="parameters-bottom.inc" -->