Bug 11317: Add a way to access files from the intranet
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / access_files.tt
1 [% SET footerjs = 1 %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Report/log files</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
6 </head>
7 <body>
8 [% INCLUDE 'header.inc' %]
9 [% INCLUDE 'cat-search.inc' %]
10
11 <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; Report/log files</div>
12
13 <div id="doc3" class="yui-t2">
14    <div id="bd">
15     <div id="yui-main">
16     <div class="yui-b">
17
18     <h1>Report/log files</h1>
19
20 [% IF ( error_no_dir ) %]
21     <div class="dialog alert"><strong>Error : </strong>Report/log files could not be found because the "access_dir" option was not set in "koha-conf.xml". Contact your system administrator to add this option.</div>
22 [% ELSE %]
23     [% IF ( files_loop ) %]
24         <table id="files">
25             <thead>
26                 <tr>
27                     <th>Name</th>
28                     <th>Size (bytes)</th>
29                     <th>Date last modified</th>
30                 </tr>
31             </thead>
32             <tbody>
33                 [% FOREACH file IN files_loop %]
34                 <tr>
35                     <td><a href="/cgi-bin/koha/tools/access_files.pl?id=[% file.id |url %]">[% file.name %]</a></td>
36                     <td align="right">[% file.size %]</td>
37                     <td>[% file.date %]</td>
38                 </tr>
39                 [% END %]
40             </tbody>
41         </table>
42     [% ELSE %]
43         No file found.
44     [% END %]
45 [% END %]
46
47 </div>
48 </div>
49 <div class="yui-b">
50 [% INCLUDE 'tools-menu.inc' %]
51 </div>
52 </div>
53
54 [% MACRO jsinclude BLOCK %]
55     <script type="text/javascript" src="[% interface %]/[% theme %]/js/tools-menu_[% KOHA_VERSION %].js"></script>
56     [% INCLUDE 'datatables.inc' %]
57     <script type="text/javascript">
58     //<![CDATA[
59         $(document).ready(function() {
60             $("#files").dataTable($.extend(true, {}, dataTablesDefaults, {
61                 "sDom": 't',
62                 "aoColumnDefs": [
63                     { "aTargets": [ -1 ], "asSorting" : [ "desc", "asc" ], "bSearchable": false }
64                 ],
65                 "bPaginate": false
66             }));
67     });
68     //]]>
69 </script>
70 [% END %]
71 [% INCLUDE 'intranet-bottom.inc' %]