owen's fixes to picture upload

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Joshua Ferraro 2007-12-14 08:47:36 -06:00
parent d9a9e06556
commit 0dd6825a81

View file

@ -1,81 +1,83 @@
<!-- 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" -->
<!-- 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">
<h1>Upload Patron Images</h1>
<div class="yui-g">
<div class="yui-u first">
<!-- 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" -->
<div class="dialog alert"><ul>
<!-- TMPL_LOOP name="ERRORS" -->
<!-- TMPL_IF NAME="NODIR" -->
<li>The <span class="ex">patronimages/</span> 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 patron image storage directory.</li>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="EMPTYUPLOAD" -->
<li>The upload file appears to be empty.</li>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
</ul></div>
<!-- /TMPL_IF -->
<form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">
<fieldset class="brief">
<ol>
<li>
<label for="uploadfile">Select the .zip file to unpack: </label><input type="file" id="uploadfile" name="uploadfile" />
</li>
</ol>
</fieldset>
<fieldset class="action"><input type="submit" value="Unpack" class="submit" /> <a href="/cgi-bin/koha/tools/picture-upload.pl" class="cancel">Cancel</a></fieldset>
</form>
</div>
<div class="yui-u">
<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 commas or tabs. Quotes around the fields are ignored.</li>
</ul>
</div>
</div>
<!-- /TMPL_IF -->
</div>
</div>
<div class="yui-b">
<!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
</div>
</div>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->