fix all templates errors reported by xt/author/valid-templates.t
[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 <script type="text/javascript">
5  $(document).ready(function() {
6         $("#zipfile").click(function(){
7                 $("#cardnum").hide();
8         });
9         $("#image").click(function(){
10                 $("#cardnum").show();
11         });
12 });
13 </script>
14 </head>
15 <body>
16
17 <!-- TMPL_INCLUDE NAME="header.inc" -->
18 <!-- TMPL_INCLUDE NAME="patron-search.inc"-->
19
20 <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>
21
22 <div id="doc3" class="yui-t2">
23     <div id="bd">
24         <div id="yui-main">
25 <!-- TMPL_IF name="TOTAL" -->
26     <div class="yui-b">
27         <div class="yui-g">
28             <div class="yui-u first">
29             <!-- TMPL_IF name="ERRORS" -->
30                                 <!-- TMPL_IF name = "TCOUNTS" -->
31                                         <div class="dialog alert">
32                                         <h3>Patron Image(s) Uploaded With Some Errors</h3>
33                                 <!-- TMPL_ELSE -->
34                                         <div class="dialog alert">
35                                         <h3>Patron Image Failed to Upload</h3>
36                                 <!-- /TMPL_IF -->
37             <!-- TMPL_ELSE -->
38                 <div class="dialog message">
39                 <h3>Patron Image(s) Successfully Uploaded</h3>
40             <!-- /TMPL_IF -->
41                 <ul class="data">
42                     <li>Unpacking completed</li>
43                   <li><!-- TMPL_VAR NAME ="TOTAL" --> directorie(s) scanned.</li>
44                     <li><!-- TMPL_VAR NAME="HANDLED" --> directorie(s) processed.</li>
45                 </ul>
46                 <!-- TMPL_LOOP name="COUNTS" -->
47                     <ul class="data">
48                         <!-- TMPL_IF name = "TCOUNTS" --><li><!-- TMPL_VAR name="TCOUNTS" --> image(s) moved into the database:</li><!-- /TMPL_IF -->
49                         <!-- TMPL_LOOP name="filenames" -->
50                             <li><!-- TMPL_VAR name="source" --> - Cardnumber: <!-- TMPL_VAR name="cardnumber" -->
51                                     <!-- TMPL_IF NAME="filerrors" --><br /> <b>WARNING:</b> This image <i>not</i> imported because 
52                                     <!-- TMPL_LOOP NAME="filerrors" -->
53                                         <!-- TMPL_IF NAME="DBERR" -->the database returned an error. Please refer to the error log for more details.</li>
54                                         <!-- TMPL_ELSIF NAME="IMGEXISTS" -->this patron does not exist in the database.</li>
55                                         <!-- TMPL_ELSIF NAME="MIMERR" -->the image format is unrecognized.</li>
56                                         <!-- TMPL_ELSIF NAME="CORERR" -->the image file is corrupted.</li>
57                                         <!-- TMPL_ELSIF NAME="OPNERR" -->Koha was unable to open the image for reading.</li>
58                                         <!-- TMPL_ELSIF NAME="OVRSIZ" -->the image file is too big.</li>
59                                         <!-- TMPL_ELSIF NAME="CRDFIL" -->the <!-- TMPL_VAR NAME="CRDFIL" --> is missing.</li>
60                                         <!-- TMPL_ELSE -->of an unknown error. Please refer to the error log for more details.</li><!-- /TMPL_IF -->
61                                     <!-- /TMPL_LOOP -->
62                                         <!--TMPL_ELSE --> imported successfully.</li>
63                                     <!-- /TMPL_IF -->
64                         <!-- /TMPL_LOOP -->
65                         </ul>
66                 <!-- /TMPL_LOOP -->
67
68                                 </div>
69                                 <!-- TMPL_IF name = "borrowernumber" -->
70                                         <a id="member" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR name = "borrowernumber" -->">Return to Patron Detail</a>
71                                 <!-- TMPL_ELSE -->
72                                         <a id="uploadmore" href="/cgi-bin/koha/tools/picture-upload.pl">Upload More Images</a>
73                                         <a id="doneupload" href="/cgi-bin/koha/tools/tools-home.pl">Return to Tools</a>
74                 <!-- /TMPL_IF -->
75             </div>
76 <!-- TMPL_ELSE -->
77     <div class="yui-b">
78         <div class="yui-g">
79             <div class="yui-u first">
80                 <h1>Upload Patron Images</h1>
81                 <!-- TMPL_IF name="ERRORS" -->
82                 <div class="dialog alert">
83                     <!-- TMPL_LOOP name="ERRORS" -->
84                         <!-- TMPL_IF name="NOTZIP" --><li><b>The upload file does not appear to be a zip file.  The extention is not '.zip'.</b></li>
85                         <!-- TMPL_ELSIF name="NOWRITETEMP" --><li><b>This script is not able to create/write to the necessary temporary directory.</b></li>
86                         <!-- TMPL_ELSIF name="EMPTYUPLOAD" --><li><b>The upload file appears to be empty.</b></li>
87                         <!-- TMPL_ELSIF name="OPNLINK" --><li><b>Cannot open <!-- TMPL_VAR NAME="OPNLINK" --> to read.<br />Please verify that it exists.</b></li>
88                         <!-- TMPL_ELSIF name="OPNIMG" --><li><b>Cannot open <!-- TMPL_VAR NAME="OPNIMG" --> to read.<br />Please verify that it exists.</b></li>
89                         <!-- TMPL_ELSIF name="DELERR" --><li><b>Unrecognized or missing field delimeter.<br />Please verify that you are using either a single quote or a tab.</b></li>
90                         <!-- TMPL_ELSIF name="UZIPFAIL" --><li><b><!-- TMPL_VAR name="UZIPFAIL" --> failed to unpack.<br />Please verify the integrity of the zip file and retry.</b></li>
91                         <!-- TMPL_ELSE --><li><b><!-- TMPL_VAR name ="CORERR" --> An unknown error has occurred.<br />Please review the error log for more details.</b></li><!-- /TMPL_IF -->
92                     <!-- /TMPL_LOOP -->
93                 </div>
94                 <!-- /TMPL_IF -->
95                 <form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">
96                     <fieldset class="brief">
97                          <div class="hint"><b>NOTE:</b> Only PNG, GIF, JPEG, XPM formats are supported.</div>
98                         <ol class="radio">
99                             <li class="radio">
100                                 <label for="zipfile"><input type="radio" id="zipfile" name="filetype" value="zip" checked="checked" /> zip file</label></li>
101                                 <li>
102                                 <label for="image">
103                                                                 <!-- TMPL_IF EXPR="filetype eq 'image'" --><input type="radio" id="image" name="filetype" value="image" checked="checked" /><!-- TMPL_ELSE --><input type="radio" id="image" name="filetype" value="image" /><!-- /TMPL_IF -->
104                                                                  image file</label>
105                         <ol>
106                             <li>
107                                 <label for="uploadfile">Select the file to upload: </label><input type="file" id="uploadfile" name="uploadfile" />
108                                 <!-- TMPL_IF EXPR="filetype eq 'image'" --><span id="cardnum"><!-- TMPL_ELSE --><span id="cardnum" style="display: none"><!-- /TMPL_IF --><label for="cardnumber">Enter patron cardnumber: </label><input type="text" id="cardnumber" name="cardnumber" value="<!-- TMPL_VAR NAME="cardnumber" -->" size="15" /></span>
109                             </li>
110                         </ol>
111                                         </li></ol>
112                     </fieldset>
113                     <fieldset class="action">
114                         <input type="hidden" name="op" value="Upload" />
115                         <input type="submit" value="Upload" class="submit" />
116                                                 <a href="/cgi-bin/koha/tools/tools-home.pl" class="cancel">Cancel</a>
117                     </fieldset>
118                 </form>
119         
120             </div>      
121 <!-- /TMPL_IF -->
122         </div>
123     </div>
124 </div>
125 <div class="yui-b noprint">
126     <!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
127 </div>
128 </div>
129 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->