Koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools/picture-upload.tmpl
Joshua Ferraro defb2eec57 adding a pre-check for patronimages/ dir, which won't be there by
default

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-25 16:27:52 -06:00

81 lines
3.2 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Tools &rsaquo; Upload Patron Images</title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
</head>
<body>
<!-- TMPL_INCLUDE NAME="header.inc" -->
<!-- TMPL_INCLUDE NAME="patron-search.inc"-->
<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>
<div id="doc3" class="yui-t2">
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<div class="yui-g">
<div class="yui-u first">
<h1>Upload Patron Images</h1>
<!-- TMPL_IF name="total" -->
<ul class="data">
<li>Unpacking completed</li>
</ul>
<!-- TMPL_VAR NAME="total" --> Scanned
<!-- TMPL_VAR NAME="handled" --> Processed
<!-- TMPL_LOOP name="counts" -->
<!-- TMPL_VAR name="count" --> Images moved from <!-- TMPL_VAR name="source" --> to <!-- TMPL_VAR name="dest" -->
<!-- TMPL_LOOP name="filenames" -->
<!-- TMPL_VAR name="source" --> To <!-- TMPL_VAR name="dest" -->
<!-- /TMPL_LOOP -->
<!-- /TMPL_LOOP -->
<!-- TMPL_ELSE -->
<!-- TMPL_IF name="ERRORS" -->
<!-- TMPL_LOOP name="ERRORS" -->
<ul class="error">
<!-- TMPL_IF NAME="NODIR" -->
<li>The patronimages/ directory isn't present on your server, please ask your systems administrator to create it</li>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="NOTZIP" -->
<li>The upload file does not appear to be a zip file. The extention is not '.zip'.</li>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="NOWRITETEMP" -->
<li>This script is not able to create/write to the necessary temporary directory.</li>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="NOWRITEDEST" -->
<li>This script is not able to write to the patronpictures holding directory.</li>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="EMPTYUPLOAD" -->
<li>The upload file appears to be empty.</li>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
<!-- /TMPL_IF -->
<form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">
<ul>
<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>
<li>You can include multiple pictures in a .zip file.</li>
<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 ,'s or tabs. Quotes around the fields are ignored.</li>
</ul>
<table>
<tr>
<th><label for="uploadfile">Select the .zip file to unpack: </label></th>
<td>
<input type="file" id="uploadfile" name="uploadfile" /><br />
</td>
</tr>
</table>
<input type="submit" value="Unpack" class="submit" />
</form>
<!-- /TMPL_IF -->
</div>
</div>
</div>
</div>
<div class="yui-b">
<!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
</div>
</div>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->