Mercurial > bins
view templates.joi/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/)"> <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> <script language="JavaScript" type="text/javascript" src="<TMPL_VAR NAME=STATIC_PATH>/joi.js"> </script> </head> <TMPL_VAR NAME=BINS_ID> <body <TMPL_IF NAME="BG_IMAGE"> background="<TMPL_VAR NAME="BG_IMAGE">" </TMPL_IF>> <table cellpadding="5" border="0" cellspacing="2" width="100%"> <tr class="path"> <td colspan="2"> <TMPL_INCLUDE NAME="path.html"> </td> </tr> <tr> <td class="numinfo"> <TMPL_VAR NAME=NUM_INFO> </td> <td class="albumdesc" width="100%"> <TMPL_VAR NAME=ALBUM_DESC> </td> </tr> <tr> <td class="navbar"> <!-- Navigation box --> <TMPL_INCLUDE NAME="navbar.html"> </td> <td> <!-- Content Area --> <table width="100%" cellpadding="3" border="0" cellspacing="0"> <TMPL_LOOP NAME=IMAGE_LIST_TABLE> <tr class="contentBG"> <!-- Description --> <td colspan="2"> <TMPL_VAR NAME=TITLE> </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%"> <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" class="contentBG"> <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 --> <td colspan="2"> </td> </tr> <tr><td> </td></tr> </TMPL_LOOP> </table> <TMPL_INCLUDE NAME="xlink.html"> </td> <!-- End of Image List Page --> </tr> <tr class="footer"> <td colspan="2"> <TMPL_INCLUDE NAME="footer.html"> </td> </tr> </table> </body> </html>