Mercurial > bins
view templates.petrus/imagelist.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/)"> <meta name="template" content="imagelist.html"> <title><TMPL_VAR NAME=ALBUM_TITLE></title> <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> <link rel="stylesheet" href="<TMPL_VAR NAME=STATIC_PATH>/petrus.css" type="text/css"> <script language="JavaScript" type="text/javascript" src="<TMPL_VAR NAME=STATIC_PATH>/joi.js"> </script> </head> <TMPL_VAR NAME=BINS_ID> <!-- imagelist.html --> <body <TMPL_IF NAME="BG_IMAGE"> background="<TMPL_VAR NAME="BG_IMAGE">" </TMPL_IF>> <!-- Menu Title --> <TMPL_INCLUDE NAME="title1.html"> <!-- Navigation box --> <TMPL_INCLUDE NAME="navbar.html"> <!-- Navigation bar --> <TMPL_INCLUDE NAME="path.html"> <!-- More informations --> <TMPL_INCLUDE NAME="moreinfos.html"> <div id="mainBody"> <!-- Description --> <p class="normal"><TMPL_VAR NAME=ALBUM_DESC></p> <!-- Content Area --> <TMPL_LOOP NAME=IMAGE_LIST_TABLE> <table width="100%" cellpadding="3" border="0" cellspacing="2" class="contentBG"> <tr> <!-- Description --> <td colspan="2"> <p class="titre2"><TMPL_VAR NAME=TITLE> </p> </td> </tr> <TMPL_IF NAME=THUMB_LINK> <tr> <!-- Image and Data --> <td align="center" class="contentBG" id="id<TMPL_VAR NAME=THUMB_ID>" <TMPL_IF NAME=THUMB_DEFAULT_SIZE> onmouseover="hlon(this, 'dflt<TMPL_VAR NAME=THUMB_ID>');" onmouseout="hloff();"> <a href="<TMPL_VAR NAME=THUMB_DEFAULT_SIZE>"> <TMPL_ELSE> > </TMPL_IF> <img src="<TMPL_VAR NAME=THUMB_LINK>" width="<TMPL_VAR NAME=THUMB_WIDTH>" height="<TMPL_VAR NAME=THUMB_HEIGHT>" alt="<TMPL_VAR NAME=THUMB_ALT>" title="<TMPL_VAR NAME=THUMB_LINK_TITLE>"><TMPL_IF NAME=THUMB_DEFAULT_SIZE></a></TMPL_IF> </td> <td width="100%" class="contentDesc" rowspan="2"> <table border="0" cellpadding="2"> <TMPL_LOOP NAME=DESC_TABLE> <tr> <td class="descrTitle"> <TMPL_VAR NAME=DESC_FIELD_NAME> </td> <td class="descrContent"> <TMPL_VAR NAME=DESC_FIELD_VALUE> </td> </tr> </TMPL_LOOP> <TMPL_UNLESS NAME=DESC_TABLE> <!-- to prevent the table to be empty (not accepted by HTML 4) --> <tr><td> </td></tr> </TMPL_UNLESS> </table> </td> </tr> </TMPL_IF> <tr> <!-- Size Names --> <td align="center"> <TMPL_LOOP NAME=SIZE_LINKS> <span <TMPL_IF NAME=SIZE_DFLT> id="dflt<TMPL_VAR NAME=THUMB_ID>" </TMPL_IF> onmouseover="hlon(this, 'id<TMPL_VAR NAME=THUMB_ID>');" onmouseout="hloff();"> <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> </span> </TMPL_LOOP> </td> <!-- End of Size Names --> </tr> </table> <br /> </TMPL_LOOP> <TMPL_INCLUDE NAME="xlink.html"> <!-- End of Image List Page --> </div> <TMPL_INCLUDE NAME="footer.html"> </body> </html>