Bugfix for Bug 1618: First Installment
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / picture-upload.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Tools &rsaquo; Upload Patron Images</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 </head>
5 <body>
6 <!-- TMPL_INCLUDE NAME="header.inc" -->
7 <!-- TMPL_INCLUDE NAME="patron-search.inc"-->
8
9 <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; Upload Patron Images </div>
10
11 <div id="doc3" class="yui-t2">
12
13    <div id="bd">
14     <div id="yui-main">
15 <!-- TMPL_IF name="TOTAL" -->
16     <div class="yui-b">
17     <h1>Patron Images Successfully Uploaded</h1>
18     <div class="yui-g">
19     <div class="yui-u first">
20         <ul class="data">
21             <li>Unpacking completed</li>
22             <li><!-- TMPL_VAR NAME ="TOTAL" --> directories scanned.</li>
23             <li><!-- TMPL_VAR NAME="HANDLED" --> directories processed.</li>
24         </ul>
25         <!-- TMPL_LOOP name="COUNTS" -->
26             <ul class="data">
27                 <li><!-- TMPL_VAR name="TCOUNTS" --> image(s) moved from <!-- TMPL_VAR name="source" --> to <!-- TMPL_VAR name="dest" -->:</li>
28             </ul>
29                 <!-- TMPL_LOOP name="filenames" -->
30                     <ul class="data">
31                     <li><!-- TMPL_VAR name="source" --> To <!-- TMPL_VAR name="dest" --></li>
32                     </ul>
33                 <!-- /TMPL_LOOP -->
34     <!-- /TMPL_LOOP -->
35     </div>
36     </div>
37     <div class="yui-u">
38     <a id="uploadmore" class="btn blue" href="/cgi-bin/koha/tools/picture-upload.pl">Upload Images</a>
39     <a id="doneupload" class="btn blue" href="/cgi-bin/koha/tools/tools-home.pl">Return to Tools</a>
40     </div>
41 <!-- TMPL_ELSE -->
42
43 <div class="yui-b">
44 <h1>Upload Patron Images</h1>
45 <div class="yui-g">
46 <div class="yui-u first">
47     <!-- TMPL_IF name="ERRORS" -->
48         <div class="dialog alert"><ul>
49         <!-- TMPL_LOOP name="ERRORS" -->
50                 <!-- TMPL_IF NAME="NODIR" -->
51                         <li>The <span class="ex">patronimages/</span> directory isn't present on your server, please ask your systems administrator to create it</li>
52                 <!-- /TMPL_IF -->
53         <!-- TMPL_IF name="NOTZIP" -->
54             <li>The upload file does not appear to be a zip file.  The extention is not '.zip'.</li>
55         <!-- /TMPL_IF -->
56         <!-- TMPL_IF name="NOWRITETEMP" -->
57             <li>This script is not able to create/write to the necessary temporary directory.</li>
58         <!-- /TMPL_IF -->
59         <!-- TMPL_IF name="NOWRITEDEST" -->
60             <li>This script is not able to write to the patron image storage directory.</li>
61         <!-- /TMPL_IF -->
62         <!-- TMPL_IF name="EMPTYUPLOAD" -->
63             <li>The upload file appears to be empty.</li>
64         <!-- /TMPL_IF -->
65         <!-- /TMPL_LOOP -->
66                 </ul></div>
67     <!-- /TMPL_IF -->
68         
69         <form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">
70         <fieldset class="brief">
71             <ol>
72         <li>
73             <label for="uploadfile">Select the .zip file to unpack: </label><input type="file" id="uploadfile" name="uploadfile" />
74         </li>
75         </ol>
76         </fieldset>
77     <fieldset class="action"><input type="submit" value="Unpack" class="submit" /> <a href="/cgi-bin/koha/tools/picture-upload.pl" class="cancel">Cancel</a></fieldset>
78     </form>
79         
80 </div>  
81 <div class="yui-u">
82     <ul>
83         <li>Select a file to upload to the server. Each .jpg file contained therein will be copied to the appropriate place on the server for patron pictures.</li>
84         <li>You can include multiple pictures in a .zip file.</li>
85         <li>There should be a DATALINK.TXT or IDLINK.TXT file for each group of pictures that has the cardnumber of the patron and the file containing that patrons picture.  One patron per line seperated by either commas or tabs.  Quotes around the fields are ignored.</li>
86     </ul>
87 </div>
88 </div>
89 </div>
90 </div>
91 <!-- /TMPL_IF -->
92 </div>
93 </div>
94
95 <div class="yui-b">
96 <!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
97 </div>
98 </div>
99 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->