1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
5 <title>Upload plugin</title>
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7 <script type="text/javascript" src="[% interface %]/lib/jquery/jquery.js"></script>
8 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/staff-global.css" />
14 <script type="text/javascript">
16 var doc = opener.document;
17 var field = doc.getElementById("[% index %]");
18 field.value = "[% return %]";
20 $(document).ready(function() {
26 The file [% uploaded_file | html %] has been successfully uploaded.
27 <p><input type="button" value="close" onclick="window.close();" /></p>
32 <p>Error: Failed to upload file. See logs for details.</p>
33 <input type="button" value="close" onclick="window.close();" />
35 [%# This block display recursively a directory tree in variable 'dirs' %]
39 [% FOREACH dir IN dirs %]
40 <li style="list-style-type:none">
41 <input type="radio" name="dir" id="[% dir.value %]" value="[% dir.value %]">
42 <label for="[% dir.value %]">
43 [% IF (dir.name == '/') %]
50 [% INCLUDE list_dirs dirs=dir.dirs %]
57 [% IF (error_upload_path_not_configured) %]
58 <h2>Configuration error</h2>
59 <p>Configuration variable 'upload_path' is not configured.</p>
60 <p>Please configure it in your koha-conf.xml</p>
62 <h2>Please select the file to upload : </h2>
63 <form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/cataloguing/plugin_launcher.pl">
65 <h3>Choose where to upload file</h3>
66 [% INCLUDE list_dirs dirs = dirs_tree %]
67 <input type="hidden" name="plugin_name" value="upload.pl" />
68 <input type="hidden" name="index" value="[% index %]" />