Mercurial > bins
view templates.swigs/thumbnail.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=PRELOAD_IMAGES --> <!-- preload thumnails of the next page to speed up the album browsing --> <script type="text/javascript" language="javascript"> <!-- hide from non JavaScript Browsers function PreloadNextImages() { <!-- TMPL_LOOP NAME=PRELOAD_IMAGES --> img<!-- TMPL_VAR NAME=PRELOAD_IMAGE_NB --> = new Image(<!-- TMPL_VAR NAME=PRELOAD_IMAGE_WIDTH -->, <!-- TMPL_VAR NAME=PRELOAD_IMAGE_HEIGHT -->); img<!-- TMPL_VAR NAME=PRELOAD_IMAGE_NB -->.src = "<!-- TMPL_VAR NAME=PRELOAD_IMAGE_NAME -->"; <!-- /TMPL_LOOP --> } // End hiding --> </script> <!-- /TMPL_IF --> <!-- TMPL_IF NAME=NEXT_THUMB_PAGE --> <link rel="next" href="<TMPL_VAR NAME=NEXT_THUMB_PAGE>" title="<TMPL_VAR NAME=STRING_NEXT>"> <link rel="last" href="<TMPL_VAR NAME=LAST_PAGE>" title="<TMPL_VAR NAME=STRING_LAST>"> <!-- /TMPL_IF --> <!-- TMPL_IF NAME=PREV_THUMB_PAGE --> <link rel="prev" href="<TMPL_VAR NAME=PREV_THUMB_PAGE>" title="<TMPL_VAR NAME=STRING_PREV>"> <link rel="first" href="<TMPL_VAR NAME=FIRST_PAGE>" 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=UP_TITLE>"> <link rel="Start" href="<TMPL_VAR NAME=STATIC_PATH>/.." title="<TMPL_VAR NAME=STRING_HOME>"> <!-- /TMPL_IF --> <link rel="Index" href="<TMPL_VAR NAME=TREE_LINK>" title="<TMPL_VAR NAME=TREE_TITLE>"> </head> <!--$Id: thumbnail.html,v 1.20 2004/05/08 20:18:28 jerome Exp $--> <!-- TMPL_VAR NAME=BINS_ID --> <body bgcolor="<TMPL_VAR NAME=PAGE_BACKCOLOR>" vlink="#000000" link="#002085" alink="0000FF" <!-- TMPL_IF NAME=PRELOAD_IMAGES --> onload="PreloadNextImages()"<!-- /TMPL_IF -->> <a accesskey="l" href="imagelist.html"></a> <table border="0" cellpadding="0" cellspacing="0" align="center" width="90%"> <tr> <td> <table cellpadding="6" cellspacing="0" width="100%" border="0" bgcolor="<TMPL_VAR NAME=MAINBAR_BACKCOLOR>" > <tr> <td> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td valign="middle" align="left"> <font size="4" color="<!-- TMPL_VAR NAME=MAINBAR_TITLECOLOR -->"> <!-- TMPL_VAR NAME=ALBUM_TITLE --> </font> </td> <td align="right"> <font size="2" color="<!-- TMPL_VAR NAME=MAINBAR_TITLECOLOR -->"> <!-- TMPL_VAR NAME=NUM_INFO --> </font> </td> </tr> <tr> <td colspan="2"> <!-- TMPL_INCLUDE NAME="path.html" --> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td> <table border="0" cellpadding="4" cellspacing="0" align="left" > <tr> <td valign="top" width="200" bgcolor="<!-- TMPL_VAR NAME=SUBBAR_BACKCOLOR -->"> <table cellpadding="1" cellspacing="0" border="0"> <tr> <td colspan="2"> <!-- TMPL_VAR NAME=STRING_INTHISALBUM -->: </td> </tr> <tr> <td> </td> <td> <table cellpadding="1" cellspacing="0" bgcolor="<TMPL_VAR NAME=SUBBAR_BACKCOLOR>" border="0"> <!-- TMPL_INCLUDE NAME="navbar.html" --> </table> </td> </tr> </table> </td> <td> </td> <td valign="top"> <font color="<TMPL_VAR NAME=PAGE_TITLECOLOR>"> <!-- TMPL_VAR NAME=ALBUM_DESC --> </font> </td> </tr> </table> </td> </tr> <tr> <td> </td> </tr> <tr> <td bgcolor ="<!-- TMPL_VAR NAME=MAINBAR_BACKCOLOR -->"> <table cellpadding="6" cellspacing="0" width="100%" border="0"> <tr> <td> <table cellpadding="0" cellspacing="0" width="100%" border="0"> <tr> <td align="left"> <font size="3" color="<!-- TMPL_VAR NAME=MAINBAR_TITLECOLOR -->"> <!-- TMPL_VAR NAME=STRING_THUMBNAILS --> </font> </td> <td align="right" valign="bottom"> <font size="3" color="<!-- TMPL_VAR NAME=MAINBAR_CURRENTPAGECOLOR -->"> <!-- TMPL_VAR NAME=THUMB_PAGE_NUMBER --> </font> </td> </tr> <tr> <td align="left"> <!-- TMPL_IF NAME=PREV_THUMB_PAGE --> <a href="<TMPL_VAR NAME=PREV_THUMB_PAGE>" accesskey="p"> <font size="2" color="<TMPL_VAR NAME=MAINBAR_LINKCOLOR>"> <!-- TMPL_VAR NAME=STRING_PREV --> </font> </a> <!-- /TMPL_IF --> </td> <td align="right"> <!-- TMPL_IF NAME=NEXT_THUMB_PAGE --> <a href="<TMPL_VAR NAME=NEXT_THUMB_PAGE>" accesskey="n"> <font size="2" color="<TMPL_VAR NAME=MAINBAR_LINKCOLOR>"> <!-- TMPL_VAR NAME=STRING_NEXT --> </font> </a> <!-- /TMPL_IF --> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td> <table border="0" cellpadding="5" cellspacing="0" bgcolor="<TMPL_VAR NAME=PAGE_BACKCOLOR>" width="100%"> <tr> <td valign="top" align="center"> <!-- Thumbnails Table --> <table border="0" cellpadding="5" cellspacing="0" width="100%"> <tr> <!-- TMPL_LOOP NAME=THUMBS_TABLE --> <td align="center" valign="bottom"> <table cellspacing="0" cellpadding="0" border="0"> <!-- TMPL_IF NAME=THUMB_TITLE --> <tr> <td bgcolor="<TMPL_VAR NAME=SUBBAR_BACKCOLOR>" align="center"> <font color="<TMPL_VAR NAME=SUBBAR_TITLECOLOR>"> <!-- TMPL_VAR NAME=THUMB_TITLE --> </font> </td> </tr> <!-- /TMPL_IF --> <tr bgcolor="<TMPL_VAR NAME=THUMB_BACKGROUND>" align="center"> <td> <!-- TMPL_IF NAME=THUMB_DEFAULT_SIZE --> <a href="<TMPL_VAR NAME=THUMB_DEFAULT_SIZE>"> <!-- /TMPL_IF --> <img src="<TMPL_VAR NAME=THUMB_LINK>" width="<TMPL_VAR NAME=THUMB_WIDTH>" height="<TMPL_VAR NAME=THUMB_HEIGHT>" border="0" alt="<TMPL_VAR NAME=THUMB_ALT>" title="<TMPL_VAR NAME=THUMB_LINK_TITLE>"><!-- TMPL_IF NAME=THUMB_DEFAULT_SIZE --></a><!-- /TMPL_IF --></td> </tr> <tr> <!-- Sizes --> <td bgcolor="<TMPL_VAR NAME=SUBBAR_BACKCOLOR>" align="center"> <!-- TMPL_LOOP NAME=THUMB_SIZES --> <a href="<TMPL_VAR NAME=SIZE_LINK>" title="<TMPL_VAR NAME=SIZE_TITLE>"> <font color="<TMPL_VAR NAME=SUBBAR_LINKCOLOR>"> <!-- TMPL_VAR NAME=SIZE_NAME --></font></a><!-- TMPL_UNLESS NAME="__LAST__" --> <!-- /TMPL_UNLESS --> <!-- /TMPL_LOOP --> </td> <!-- End of Sizes --> </tr> </table> </td> <!-- TMPL_IF NAME=THUMB_NEW_LINE --> </tr><tr> <!-- /TMPL_IF --> <!-- /TMPL_LOOP --> </tr> </table> <!-- End of Thumbnails Table --> </td> </tr> </table> </td> </tr> <tr> <td bgcolor="<TMPL_VAR NAME=MAINBAR_BACKCOLOR>"> <table cellpadding="6" cellspacing="0" width="100%" border="0"> <tr> <td> <table cellpadding="0" cellspacing="0" width="100%" border="0"> <tr> <td align="left"> <!-- TMPL_IF NAME=PREV_THUMB_PAGE --> <a href="<TMPL_VAR NAME=PREV_THUMB_PAGE>"> <font size="2" color="<TMPL_VAR NAME=MAINBAR_LINKCOLOR>"> <!-- TMPL_VAR NAME=STRING_PREV --> </font> </a> <!-- /TMPL_IF --> </td> <td align="center" width="100%"> <!-- List of thumbnail page numbers --> <!-- TMPL_LOOP NAME=THUMB_NUMBER_LINKS --> <!-- TMPL_UNLESS NAME="__FIRST__" --> <!-- /TMPL_UNLESS --> <!-- TMPL_IF NAME=NUM_LINK --> <a href=<!-- TMPL_VAR NAME=NUM_LINK -->> <font color="<!-- TMPL_VAR NAME=MAINBAR_LINKCOLOR -->"> <!-- TMPL_VAR NAME=NUMBER --></font></a> <!-- TMPL_ELSE --> <font color="<!-- TMPL_VAR NAME=MAINBAR_CURRENTPAGECOLOR -->"> <!-- TMPL_VAR NAME=NUMBER --> </font> <!-- /TMPL_IF --> <!-- /TMPL_LOOP --> </td> <td align="right"> <!-- TMPL_IF NAME=NEXT_THUMB_PAGE --> <a href="<TMPL_VAR NAME=NEXT_THUMB_PAGE>"> <font size="2" color="<TMPL_VAR NAME=MAINBAR_LINKCOLOR>"> <!-- TMPL_VAR NAME=STRING_NEXT --> </font> </a> <!-- /TMPL_IF --> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> <!-- TMPL_INCLUDE NAME="footer.html" --> </body> </html>