Mercurial > bins
view templates.swigs/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/)"> <title><!-- TMPL_VAR NAME=TITLE --></title> <!-- TMPL_IF NAME=IMG_PRELOAD --> <!-- preload next image of same size to speed up the album browsing --> <script type="text/javascript" language="javascript"> <!-- hide from non JavaScript Browsers function PreloadNextImage() { nextimg = new Image(); nextimg.src = "<!-- TMPL_VAR NAME=IMG_PRELOAD -->"; } // End hiding --> </script> <!-- /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>"> </head> <!--$Id: image.html,v 1.25 2004/05/08 20:18:28 jerome Exp $--> <!-- TMPL_VAR NAME=BINS_ID --> <body bgcolor="<TMPL_VAR NAME=PAGE_BACKCOLOR>" vlink="#000000" link="#000000" alink="0000FF" <!-- TMPL_IF NAME=IMG_PRELOAD --> onload="PreloadNextImage()"<!-- /TMPL_IF -->> <!-- MAIN TABLE (Title, Image, Description)--> <table border="0" cellpadding="0" cellspacing="10" align="center"> <tr><td> <!-- Image Title --> <table cellpadding="6" cellspacing="0" border="0" width="100%" bgcolor="<TMPL_VAR NAME=MAINBAR_BACKCOLOR>"> <tr> <td> <table width="100%" border="0" cellpadding="0" cellspacing="0" align="center" bgcolor="<TMPL_VAR NAME=MAINBAR_BACKCOLOR>"> <tr> <td colspan="1" align="left"> <font size="4" color="<TMPL_VAR NAME=MAINBAR_TITLECOLOR>"> <b><!-- TMPL_VAR NAME=TITLE --></b></font> </td> <td align="right" valign = "bottom"> <a href = "<TMPL_VAR NAME=THUMB_PAGE>" accesskey="u"> <font size="2" color="<TMPL_VAR NAME=MAINBAR_LINKCOLOR>"> <!-- TMPL_VAR NAME=STRING_THUMBNAILS --></font> </a> </td> </tr> <tr> <td align="left"> <!-- TMPL_INCLUDE NAME="path.html" --> </td> <td align="right" valign = "bottom"> <a href = "imagelist.html" accesskey="l"><font size="2" color="<TMPL_VAR NAME=MAINBAR_LINKCOLOR>"> <!-- TMPL_VAR NAME=STRING_IMAGELIST --></font> </a> </td> </table> </td> </tr> </table> </td> </tr> <tr > <td align="center"> <table border="0" cellpadding="1" cellspacing="0" align="center"> <tr> <td align="left" bgcolor="<TMPL_VAR NAME=SUBBAR_BACKCOLOR>"> <!-- TMPL_IF NAME="PREV_IMAGE_PAGE" --> <a href="<TMPL_VAR NAME=PREV_IMAGE>" accesskey="p" title="<TMPL_VAR NAME=PREV_TITLE>"> <font size="2" color="<TMPL_VAR NAME=SUBBAR_LINKCOLOR>"> <!-- TMPL_VAR NAME=STRING_PREV --></font></a> <!-- TMPL_ELSE --> <!-- /TMPL_IF --> </td> <!-- Sizes --> <td align="center" bgcolor="<TMPL_VAR NAME=SUBBAR_BACKCOLOR>"> <font size="2"> <!-- TMPL_LOOP NAME=SIZE_LINKS --> <!-- TMPL_IF NAME=SIZE_LINK --> <a href="<TMPL_VAR NAME=SIZE_LINK>" title="<TMPL_VAR NAME=SIZE_TITLE>"> <font color="<TMPL_VAR NAME=MAINBAR_LINKCOLOR>"> <!-- TMPL_VAR NAME=SIZE_NAME --></font></a> <!-- TMPL_ELSE --> <font color="<TMPL_VAR NAME=MAINBAR_CURRENTPAGECOLOR>"> <!-- TMPL_VAR NAME=SIZE_NAME --> </font> <!-- /TMPL_IF --> <!-- /TMPL_LOOP --> </font> </td> <!-- End of Sizes --> <td align="right" bgcolor="<TMPL_VAR NAME=SUBBAR_BACKCOLOR>"> <!-- TMPL_IF NAME="NEXT_IMAGE_PAGE" --> <a href="<TMPL_VAR NAME=NEXT_IMAGE>" accesskey="n" title="<TMPL_VAR NAME=NEXT_TITLE>"> <font size="2" color="<TMPL_VAR NAME=SUBBAR_LINKCOLOR>"> <!-- TMPL_VAR NAME=STRING_NEXT --></font></a> <!-- TMPL_ELSE --> <!-- /TMPL_IF --> </td> </tr> <tr align="center"> <td colspan="3" bgcolor="#000000"> <a href="<TMPL_VAR NAME=IMAGE_TO_DISPLAY>"> <img src="<TMPL_VAR NAME=IMAGE_TO_DISPLAY>" alt="<TMPL_VAR NAME=STRING_IMAGE>" width="<TMPL_VAR NAME=WIDTH>" height="<TMPL_VAR NAME=HEIGHT>"> </a> </td> </tr> <tr> <td colspan="3"> <table width="100%" cellpadding="0" cellspacing="0"> <tr> <td align="left"> <font color="<TMPL_VAR NAME=PAGE_TITLECOLOR>" size="2"> <!-- TMPL_VAR NAME=FILE_NAME --> </font> </td> <td align = "right"> <font color="<TMPL_VAR NAME=PAGE_TITLECOLOR>" size="2"> <!-- TMPL_VAR NAME=PICTURE_INFO --> </font> </td> </tr> </table> </td> </tr> </table> <tr> <td> <!-- Desc Table --> <!-- TMPL_IF NAME=DESC_TABLE --> <table border="0" cellpadding="2" cellspacing="0" align="left"> <!-- TMPL_LOOP NAME=DESC_TABLE --> <tr> <td valign="top"> <font color="<TMPL_VAR NAME=PAGE_TITLECOLOR>"> <b><!-- TMPL_VAR NAME=DESC_FIELD_NAME --> :</b> </font> </td> <td> <font color="<TMPL_VAR NAME=PAGE_TITLECOLOR>"> <!-- TMPL_VAR NAME=DESC_FIELD_VALUE --> </font> </td> </tr> <!-- /TMPL_LOOP --> </table> <!-- /TMPL_IF --> <font size="0"> </font> <!-- End of Desc Table --> </td> </tr> <!-- TMPL_IF NAME=DETAILS_LINK --> <tr> <td align="center"> <a href="<TMPL_VAR NAME=DETAILS_LINK>"> <font color="<TMPL_VAR NAME=PAGE_TITLECOLOR>"> <!-- TMPL_VAR NAME=STRING_DETAILS --></font></a> </td> </tr> <!-- /TMPL_IF --> <tr> <td> <table cellspacing="0" cellpadding="7" width="100%" border="0" bgcolor ="<TMPL_VAR NAME=MAINBAR_BACKCOLOR>"> <tr> <!-- TMPL_IF NAME="PREV_IMAGE_PAGE" --> <!-- TMPL_IF NAME=PREV_THUMB --> <td align="left"> <a href="<TMPL_VAR NAME=PREV_IMAGE>"> <img src="<TMPL_VAR NAME=PREV_THUMB>" title="<TMPL_VAR NAME=PREV_TITLE>" alt="<TMPL_VAR NAME=STRING_PREV>"> </a> </td> <!-- /TMPL_IF --> <td valign="top" align="left" width="20%"> <a href="<TMPL_VAR NAME=PREV_IMAGE>" title="<TMPL_VAR NAME=PREV_TITLE>"> <font color="<TMPL_VAR NAME=MAINBAR_LINKCOLOR>"> <!-- TMPL_VAR NAME=STRING_PREV --></font></a><br> <a href="<TMPL_VAR NAME=FIRST_IMAGE>" title="<TMPL_VAR NAME=STRING_FIRST>"> <font color="<TMPL_VAR NAME=MAINBAR_LINKCOLOR>"> <!-- TMPL_VAR NAME=STRING_FIRST --> </font> </a> </td> <!-- TMPL_ELSE --> <td width="40%"> </td> <!-- /TMPL_IF --> <td valign="top" align="right" width="20%"> <a href = "<TMPL_VAR NAME=THUMB_PAGE>"> <font color="<TMPL_VAR NAME=MAINBAR_LINKCOLOR>"> <!-- TMPL_VAR NAME=STRING_THUMBNAILS --></font></a> </td> <!-- --> <td valign="top" align="left" width="20%"> <a href="imagelist.html"> <font color="<TMPL_VAR NAME=MAINBAR_LINKCOLOR>"> <!-- TMPL_VAR NAME=STRING_IMAGELIST --></font></a> </td> <!-- TMPL_IF NAME="NEXT_IMAGE_PAGE" --> <td valign="top" align="right" width="20%"> <a href="<TMPL_VAR NAME=NEXT_IMAGE>" title="<TMPL_VAR NAME=NEXT_TITLE>"> <font color="<TMPL_VAR NAME=MAINBAR_LINKCOLOR>"> <!-- TMPL_VAR NAME=STRING_NEXT --></font></a><br> <a href="<TMPL_VAR NAME=LAST_IMAGE>" title="<TMPL_VAR NAME=STRING_LAST>"> <font color="<TMPL_VAR NAME=MAINBAR_LINKCOLOR>"> <!-- TMPL_VAR NAME=STRING_LAST --> </font> </a> </td> <!-- TMPL_IF NAME=NEXT_THUMB --> <td align="right"> <a href="<TMPL_VAR NAME=NEXT_IMAGE>"> <img src="<TMPL_VAR NAME=NEXT_THUMB>" title="<TMPL_VAR NAME=NEXT_TITLE>" alt="<TMPL_VAR NAME=STRING_NEXT>"> </a> </td> <!-- /TMPL_IF --> <!-- TMPL_ELSE --> <td width="40%"> </td> <!-- /TMPL_IF --> </tr> </table> </td> </tr> </table> <!-- TMPL_INCLUDE NAME="footer.html" --> </body> </html>