Second installment on moving patronimages into the database
[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     <div id="bd">
13         <div id="yui-main">
14 <!-- TMPL_IF name="TOTAL" -->
15     <div class="yui-b">
16         <div class="yui-g">
17             <div class="yui-u first">
18             <!-- TMPL_IF name="ERRORS" -->
19                 <div class="dialog alert">
20                 <h1>Patron Images Uploaded With Some Errors</h1>
21                 </div>
22             <!-- TMPL_ELSE -->
23                 <div class="dialog message">
24                 <h1>Patron Images Successfully Uploaded</h1>
25                 </div>
26             <!-- /TMPL_IF -->
27                 <ul class="data">
28                     <li>Unpacking completed</li>
29                   <li><!-- TMPL_VAR NAME ="TOTAL" --> directories scanned.</li>
30                     <li><!-- TMPL_VAR NAME="HANDLED" --> directories processed.</li>
31                 </ul>
32                 <!-- TMPL_LOOP name="COUNTS" -->
33                     <ul class="data">
34                         <li><!-- TMPL_VAR name="TCOUNTS" --> image(s) moved into the database:</li>
35                         <!-- TMPL_LOOP name="filenames" -->
36                             <li><!-- TMPL_VAR name="source" --> - Cardnumber: <!-- TMPL_VAR name="cardnumber" -->
37                                     <!-- TMPL_IF NAME="filerrors" --><br /> <b>WARNING:</b> This image <i>not</i> imported because 
38                                     <!-- TMPL_LOOP NAME="filerrors" -->
39                                         <!-- TMPL_IF NAME="DBERR" -->the database returned an error.</li><!-- /TMPL_IF -->
40                                         <!-- TMPL_IF NAME="MIMERR" -->the image format is unrecognized.</li><!-- /TMPL_IF -->
41                                         <!-- TMPL_IF NAME="OPNERR" -->Koha was unable to open the image for reading.</li>
42                                         <!-- TMPL_ELSE -->of an unknown error. Please refer to the error log for more details.</li><!-- /TMPL_IF -->
43                                     <!-- /TMPL_LOOP -->
44                                         <!--TMPL_ELSE --> imported successfully.</li>
45                                     <!-- /TMPL_IF -->
46                         <!-- /TMPL_LOOP -->
47                         </ul>
48                 <!-- /TMPL_LOOP -->
49                 <a id="uploadmore" href="/cgi-bin/koha/tools/picture-upload.pl">Upload More Images</a>
50                 <a id="doneupload" href="/cgi-bin/koha/tools/tools-home.pl">Return to Tools</a>
51             </div>
52 <!-- TMPL_ELSE -->
53     <div class="yui-b">
54         <div class="yui-g">
55             <div class="yui-u first">
56                 <h1>Upload Patron Images</h1>
57                 <!-- TMPL_IF name="ERRORS" -->
58                 <div class="dialog alert">
59                     <!-- TMPL_LOOP name="ERRORS" -->
60                         <!-- TMPL_IF name="NOTZIP" -->
61                             <li><b>The upload file does not appear to be a zip file.  The extention is not '.zip'.</b></li>
62                         <!-- /TMPL_IF -->
63                         <!-- TMPL_IF name="NOWRITETEMP" -->
64                             <li><b>This script is not able to create/write to the necessary temporary directory.</b></li>
65                         <!-- /TMPL_IF -->
66                         <!-- TMPL_IF name="EMPTYUPLOAD" -->
67                             <li><b>The upload file appears to be empty.</b></li>
68                         <!-- /TMPL_IF -->
69                         <!-- TMPL_IF name="OPNLINK" -->
70                             <li><b>Cannot open <!-- TMPL_VAR NAME="OPNLINK" --> to read.<br />Please verify that it exists.</b></li>
71                         <!-- /TMPL_IF -->
72                         <!-- TMPL_IF name="OPNIMG" -->
73                             <li><b>Cannot open <!-- TMPL_VAR NAME="OPNIMG" --> to read.<br />Please verify that it exists.</b></li>
74                         <!-- /TMPL_IF -->
75                         <!-- TMPL_IF name="DELERR" -->
76                             <li><b>Unrecognized or missing field delimeter.<br />Please verify that you are using either a single quote or a tab.</b></li>
77                         <!-- /TMPL_IF -->
78                         <!-- TMPL_IF name="UZIPFAIL" -->
79                             <li><b><!-- TMPL_VAR name="UZIPFAIL" --> failed to unpack.<br />Please verify the integrity of the zip file and retry.</b></li>
80                         <!-- /TMPL_IF -->
81                         <!-- TMPL_IF name="" -->
82                             <li><b>An unknown error has occurred.<br />Please review the error log for more details.</b></li>
83                         <!-- /TMPL_IF -->
84                     <!-- /TMPL_LOOP -->
85                 </div>
86                 <!-- /TMPL_IF -->
87                 <form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">
88                     <fieldset class="brief">
89                         <ol>
90                             <li>
91                                 <label for="uploadfile">Select the .zip file to unpack: </label><input type="file" id="uploadfile" name="uploadfile" />
92                             </li>
93                         </ol>
94                     </fieldset>
95                     <fieldset class="action"><input type="submit" value="Unpack" class="submit" /> <a href="/cgi-bin/koha/tools/picture-upload.pl" class="cancel">Cancel</a>
96                     </fieldset>
97                 </form>
98         
99             </div>      
100 <!-- /TMPL_IF -->
101         </div>
102     </div>
103 </div>
104 <div class="yui-b noprint">
105     <!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
106 </div>
107 </div>
108 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->