view templates.marc/image.html @ 6:3021deef1599

Encoding related fixes * chomp encoding string * reformat else (seems someone hacked it in) * debug print encoding * do not use :utf8 binmode ("re-encode") on written file if the input is _already_ UTF-8
author Peter Gervai <grin@grin.hu>
date Thu, 16 Oct 2008 00:02:14 +0200
parents a84c32f131df
children
line wrap: on
line source

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<meta http-equiv="content-type"
	content="text/html;charset=<TMPL_VAR NAME=ENCODING>">
<meta name="GENERATOR"
	content="BINS <TMPL_VAR NAME=BINS_VERSION> (http://bins.sautret.org/)">
<TMPL_IF NAME=CUSTOM_CSS>
<link rel="stylesheet"
	href="<TMPL_VAR NAME=STATIC_PATH>/<TMPL_VAR NAME=CUSTOM_CSS>"
	type="text/css">
<TMPL_ELSE>
<link rel="stylesheet"
	href="<TMPL_VAR NAME=STATIC_PATH>/joi.css"
	type="text/css">
</TMPL_IF>

    <!-- TMPL_IF NAME="NEXT_IMAGE_PAGE" -->
    <link
	  rel="next"
	  href="<TMPL_VAR NAME=NEXT_IMAGE>"
	  title="<TMPL_VAR NAME=NEXT_TITLE>">
    <link
	  rel="last"
	  href="<TMPL_VAR NAME=LAST_IMAGE>"
	  title="<TMPL_VAR NAME=STRING_LAST>">
    <!-- /TMPL_IF -->
    <!-- TMPL_IF NAME="PREV_IMAGE_PAGE" -->
    <link
	  rel="prev"
	  href="<TMPL_VAR NAME=PREV_IMAGE>"
	  title="<TMPL_VAR NAME=PREV_TITLE>">
    <link
	  rel="first"
	  href="<TMPL_VAR NAME=FIRST_IMAGE>"
	  title="<TMPL_VAR NAME=STRING_FIRST>">
    <!-- /TMPL_IF -->
    <TMPL_IF NAME="UP_LINK">
      <link
	    rel="up"
	    href="<TMPL_VAR NAME=UP_LINK>"
	    title="<TMPL_VAR NAME=STRING_UP>">
    </TMPL_IF>
    <link
	  rel="parent"
	  href="<TMPL_VAR NAME=THUMB_PAGE>"
	  title="<TMPL_VAR NAME=STRING_THUMBNAILS>">
    <link
	  rel="Start"
	  href="<TMPL_VAR NAME=STATIC_PATH>/.."
	  title="<TMPL_VAR NAME=STRING_HOME>">
    <link
	  rel="Index"
	  href="<TMPL_VAR NAME=TREE_LINK>"
	  title="<TMPL_VAR NAME=TREE_TITLE>">

<title><TMPL_VAR NAME=TITLE></title>
<script language="JavaScript"
	type="text/javascript"
	src="<TMPL_VAR NAME=STATIC_PATH>/joi.js">
</script>
</head>

<body <TMPL_IF NAME="BG_IMAGE">
	background="<TMPL_VAR NAME="BG_IMAGE">"
</TMPL_IF>
<!-- TMPL_IF NAME=IMG_PRELOAD -->
	onload="PreloadNextImage('<!-- TMPL_VAR NAME=IMG_PRELOAD -->')"<!-- /TMPL_IF -->>

<div class="path">			<TMPL_INCLUDE NAME="path.html">		</div>
<div class="imagenavbar.html">	<TMPL_INCLUDE NAME="imagenavbar.html">	</div>

<center>
	<table cellspacing="0" border="0" cellpadding="0" width="<TMPL_VAR NAME=WIDTH>px">
	<tr>
	<td>
		<TMPL_IF NAME="PREV_IMAGE_PAGE">
		<a href="<TMPL_VAR NAME=PREV_IMAGE>"
		onMouseOver="showPreview('prev', 'nw');"
		onMouseOut="hidePreview();">
		<img src="<TMPL_VAR NAME=STATIC_PATH>/prev.png"
			alt="<TMPL_VAR NAME=STRING_PREV>"></a>
		<TMPL_ELSE>
		<img src="<TMPL_VAR NAME=STATIC_PATH>/prevInactive.png"
		alt="<TMPL_VAR NAME=STRING_PREV>">
		</TMPL_IF>
		<TMPL_IF NAME="NEXT_IMAGE_PAGE">
		<a href="<TMPL_VAR NAME=NEXT_IMAGE>"
		onMouseOver="showPreview('next', 'nw')"
		onMouseOut="hidePreview()">
		<img src="<TMPL_VAR NAME=STATIC_PATH>/next.png"
			alt="<TMPL_VAR NAME=STRING_NEXT>"></a>
		<TMPL_ELSE>
		<img src="<TMPL_VAR NAME=STATIC_PATH>/nextInactive.png"
		alt="<TMPL_VAR NAME=STRING_NEXT>">
		</TMPL_IF>
	</td>
	<td align="center">
		<TMPL_LOOP NAME=SIZE_LINKS>
		<TMPL_IF NAME=SIZE_LINK>
		<a href="<TMPL_VAR NAME=SIZE_LINK>"
		title="<TMPL_VAR NAME=SIZE_TITLE>">
		<img src="<TMPL_VAR NAME=STATIC_PATH>/<TMPL_VAR NAME=SIZE_FILE>"
			alt="<TMPL_VAR NAME=SIZE_TITLE>"
			title="<TMPL_VAR NAME=SIZE_TITLE>"></a>
		<TMPL_ELSE>
		<img src="<TMPL_VAR NAME=STATIC_PATH>/<TMPL_VAR NAME=SIZE_FILE>"
			alt="<TMPL_VAR NAME=SIZE_TITLE>"
			title="<TMPL_VAR NAME=SIZE_TITLE>">
		</TMPL_IF>
		</TMPL_LOOP>
		&nbsp;&nbsp;
		<TMPL_IF NAME=DETAILS_LINK>
		<a href="<TMPL_VAR NAME=DETAILS_LINK>"
		onMouseOver="showPreview('info', 'nc')"
		onMouseOut="hidePreview()">
		<img src="<TMPL_VAR NAME=STATIC_PATH>/info.png"
			alt=""></a>
		<TMPL_ELSE>
		<img src="<TMPL_VAR NAME=STATIC_PATH>/info.png"
		alt=""
		onMouseOver="showPreview('info', 'nc')"
		onMouseOut="hidePreview()">
		</TMPL_IF>
	</td>
	<td align="right">
		<TMPL_IF NAME="PREV_IMAGE_PAGE">
		<a href="<TMPL_VAR NAME=PREV_IMAGE>"
		onMouseOver="showPreview('prev', 'ne');"
		onMouseOut="hidePreview();">
		<img src="<TMPL_VAR NAME=STATIC_PATH>/prev.png"
			alt="<TMPL_VAR NAME=STRING_PREV>"></a>
		<TMPL_ELSE>
		<img src="<TMPL_VAR NAME=STATIC_PATH>/prevInactive.png"
		alt="<TMPL_VAR NAME=STRING_PREV>">
		</TMPL_IF>
		<TMPL_IF NAME="NEXT_IMAGE_PAGE">
		<a href="<TMPL_VAR NAME=NEXT_IMAGE>"
		onMouseOver="showPreview('next', 'ne')"
		onMouseOut="hidePreview()">
		<img src="<TMPL_VAR NAME=STATIC_PATH>/next.png"
			alt="<TMPL_VAR NAME=STRING_NEXT>"></a>
		<TMPL_ELSE>
		<img src="<TMPL_VAR NAME=STATIC_PATH>/nextInactive.png"
		alt="<TMPL_VAR NAME=STRING_NEXT>">
		</TMPL_IF>
	</td>
	</tr>
	</table>
	
	<div id="contentdiv" style="position:relative;">
		<img src="<TMPL_VAR NAME=IMAGE_TO_DISPLAY>"
		alt="<TMPL_VAR NAME=STRING_IMAGE>"
		width="<TMPL_VAR NAME=WIDTH>px"
		height="<TMPL_VAR NAME=HEIGHT>px">
		<script type="text/javascript">
		<TMPL_IF NAME="PREV_IMAGE_PAGE">
		makePreview('prev', '<TMPL_VAR NAME=PREV_THUMB>', true);
		</TMPL_IF>
		<TMPL_IF NAME="NEXT_IMAGE_PAGE">
		makePreview('next', '<TMPL_VAR NAME=NEXT_THUMB>', true);
		</TMPL_IF>
		infoStart('info');
		<TMPL_LOOP NAME=DESC_TABLE>
		infoAdd('<TMPL_VAR NAME=DESC_FIELD_NAME>',
			'<TMPL_VAR NAME=DESC_FIELD_VALUE>');
		</TMPL_LOOP>
		infoAdd('File name', '<TMPL_VAR NAME=FILE_NAME>');
		infoAdd('File info', '<TMPL_VAR NAME=PICTURE_INFO>');
		infoEnd();
		</script>
	</div>
	
	<table cellspacing="0" border="0" cellpadding="0" width="<TMPL_VAR NAME=WIDTH>px">
	<tr>
	<td>
		<TMPL_IF NAME="PREV_IMAGE_PAGE">
		<a href="<TMPL_VAR NAME=PREV_IMAGE>"
		onMouseOver="showPreview('prev', 'sw');"
		onMouseOut="hidePreview();">
		<img src="<TMPL_VAR NAME=STATIC_PATH>/prev.png"
			alt="<TMPL_VAR NAME=STRING_PREV>"></a>
		<TMPL_ELSE>
		<img src="<TMPL_VAR NAME=STATIC_PATH>/prevInactive.png"
		alt="<TMPL_VAR NAME=STRING_PREV>">
		</TMPL_IF>
		<TMPL_IF NAME="NEXT_IMAGE_PAGE">
		<a href="<TMPL_VAR NAME=NEXT_IMAGE>"
		onMouseOver="showPreview('next', 'sw')"
		onMouseOut="hidePreview()">
		<img src="<TMPL_VAR NAME=STATIC_PATH>/next.png"
			alt="<TMPL_VAR NAME=STRING_NEXT>"></a>
		<TMPL_ELSE>
		<img src="<TMPL_VAR NAME=STATIC_PATH>/nextInactive.png"
		alt="<TMPL_VAR NAME=STRING_NEXT>">
		</TMPL_IF>
	</td>
	<td align="center">
		<TMPL_LOOP NAME=SIZE_LINKS>
		<TMPL_IF NAME=SIZE_LINK>
		<a href="<TMPL_VAR NAME=SIZE_LINK>"
		title="<TMPL_VAR NAME=SIZE_TITLE>">
		<img src="<TMPL_VAR NAME=STATIC_PATH>/<TMPL_VAR NAME=SIZE_FILE>"
			alt="<TMPL_VAR NAME=SIZE_TITLE>"
			title="<TMPL_VAR NAME=SIZE_TITLE>"></a>
		<TMPL_ELSE>
		<img src="<TMPL_VAR NAME=STATIC_PATH>/<TMPL_VAR NAME=SIZE_FILE>"
			alt="<TMPL_VAR NAME=SIZE_TITLE>"
			title="<TMPL_VAR NAME=SIZE_TITLE>">
		</TMPL_IF>
		</TMPL_LOOP>
		&nbsp;&nbsp;
		<TMPL_IF NAME=DETAILS_LINK>
		<a href="<TMPL_VAR NAME=DETAILS_LINK>"
		onMouseOver="showPreview('info', 'sc')"
		onMouseOut="hidePreview()">
		<img src="<TMPL_VAR NAME=STATIC_PATH>/info.png"
			alt="Information"></a>
		<TMPL_ELSE>
		<img src="<TMPL_VAR NAME=STATIC_PATH>/info.png"
		alt="Information"
		onMouseOver="showPreview('info', 'sc')"
		onMouseOut="hidePreview()">
		</TMPL_IF>
	</td>
	<td align="right">
		<TMPL_IF NAME="PREV_IMAGE_PAGE">
		<a href="<TMPL_VAR NAME=PREV_IMAGE>"
		onMouseOver="showPreview('prev', 'se');"
		onMouseOut="hidePreview();">
		<img src="<TMPL_VAR NAME=STATIC_PATH>/prev.png"
			alt="<TMPL_VAR NAME=STRING_PREV>"></a>
		<TMPL_ELSE>
		<img src="<TMPL_VAR NAME=STATIC_PATH>/prevInactive.png"
		alt="<TMPL_VAR NAME=STRING_PREV>">
		</TMPL_IF>
		<TMPL_IF NAME="NEXT_IMAGE_PAGE">
		<a href="<TMPL_VAR NAME=NEXT_IMAGE>"
		onMouseOver="showPreview('next', 'se')"
		onMouseOut="hidePreview()">
		<img src="<TMPL_VAR NAME=STATIC_PATH>/next.png"
			alt="<TMPL_VAR NAME=STRING_NEXT>"></a>
		<TMPL_ELSE>
		<img src="<TMPL_VAR NAME=STATIC_PATH>/nextInactive.png"
		alt="<TMPL_VAR NAME=STRING_NEXT>">
		</TMPL_IF>
	</td>
	</tr>
	</table>
</center>

<TMPL_INCLUDE NAME="footer.html">

</body>
</html>