Mercurial > bins
view templates.martin/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.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <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>/martin.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> </head> <body <TMPL_IF NAME="BG_IMAGE"> background="<TMPL_VAR NAME="BG_IMAGE">" </TMPL_IF> > <div class="path"><TMPL_INCLUDE NAME="path.html"></div> <div class="navbar"><TMPL_INCLUDE NAME="imagenavbar.html"></div> <center> <table cellspacing="0" border="0" cellpadding="0" width="<TMPL_VAR NAME=WIDTH>px"> <tr> <td align="center"> <TMPL_IF NAME="PREV_IMAGE_PAGE"> <a href="<TMPL_VAR NAME=FIRST_IMAGE>"> <img src="<TMPL_VAR NAME=STATIC_PATH>/first.png" alt="<TMPL_VAR NAME=STRING_FIRST>"></a> <TMPL_ELSE> <img src="<TMPL_VAR NAME=STATIC_PATH>/firstInactive.png" alt="<TMPL_VAR NAME=STRING_FIRST>"> </TMPL_IF> <TMPL_IF NAME="PREV_IMAGE_PAGE"> <a href="<TMPL_VAR NAME=PREV_IMAGE>"> <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>"> <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> <TMPL_IF NAME="NEXT_IMAGE_PAGE"> <a href="<TMPL_VAR NAME=LAST_IMAGE>"> <img src="<TMPL_VAR NAME=STATIC_PATH>/last.png" alt="<TMPL_VAR NAME=STRING_LAST>"></a> <TMPL_ELSE> <img src="<TMPL_VAR NAME=STATIC_PATH>/lastInactive.png" alt="<TMPL_VAR NAME=STRING_LAST>"> </TMPL_IF> <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> <TMPL_IF NAME=DETAILS_LINK> <a href="<TMPL_VAR NAME=DETAILS_LINK>"> <img src="<TMPL_VAR NAME=STATIC_PATH>/info.png" alt=""> </a> <TMPL_ELSE> <img src="<TMPL_VAR NAME=STATIC_PATH>/info.png" alt=""> </TMPL_IF> </td> </tr> </table> <div id="content"> <img src="<TMPL_VAR NAME=IMAGE_TO_DISPLAY>" alt="<TMPL_VAR NAME=STRING_IMAGE>"> </div> <TMPL_VAR NAME=IMAGE_COMMENT> </center> <TMPL_INCLUDE NAME="footer.html"> </body> </html>