Author: booz@rezo.net
Date: Sat Jun 24 18:20:53 2006
New Revision: 3652
Log:
bug pagination galerie
Modified:
_squelettes_/bloog/_template/__article-photo.html
Modified: _squelettes_/bloog/_template/__article-photo.html
--- _squelettes_/bloog/_template/__article-photo.html (original)
+++ _squelettes_/bloog/_template/__article-photo.html Sat Jun 24 18:20:53 2006
@@ -1,14 +1,3 @@
-<?php
- // Disable caching
- //
- @header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
- @header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
-
- @header("Cache-Control: no-store, no-cache, must-revalidate");
- @header("Cache-Control: post-check=0, pre-check=0", false);
- @header("Pragma: no-cache");
- include 'ecrire/inc_layer.php3';
- ?>
<BOUCLE_principale(ARTICLES){id_article}>
<!-- securité bloOg -->
@@ -20,7 +9,7 @@
<HTML>
<HEAD>
<title>[#NOM_SITE_SPIP] <BOUCLE_titre(ARTICLES){id_article}>#TITRE</BOUCLE_titre></title>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<meta http-equiv="Content-Type" content="text/html; charset=#CHARSET">
<BOUCLE_metatags(ARTICLES){id_article}>
[<META NAME="Description" CONTENT='(#DESCRIPTIF|supprimer_tags|texte_script)'>]
@@ -28,21 +17,9 @@
<meta name="Author" content="<BOUCLE_author(AUTEURS){id_article}{","}>#NOM</BOUCLE_author>">
</BOUCLE_metatags>
-<!-- Utilisé pour popup GALERIEJPG -->
-<script language="JavaScript" type="text/JavaScript">
-<!--
-function popup(photo, titre, largeur, hauteur) { // Ateliers CYM - Paris
- var contenu="<html><head><title>"+titre+"</title></head><body topmargin='0' leftmargin='0'><p><a href='javascript:self.close()'><img border='0' src='"+photo+"'></a><div id='Layer1' style='position:absolute; z-index:1; left: 2; top: 2'><font size='1' color='blue' face='Comic Sans MS, Verdana, Arial, Helvetica, sans-serif'>cliquer pour fermer</font></div></p></body></html>";
- var fenetre=open("","","title="+titre+",resizable=yes,scroll=no,width="+largeur+", height="+hauteur+"");
- fenetre.document.write(contenu);
- }
-// -->
-</script>
-
-
<!-- Appel du fichier feuille de style spipstyle.css pour cette page -->
-<SCRIPT src="IMG/002/_interface.js" type="text/javascript"></SCRIPT>
-<link rel="stylesheet" href="IMG/002/_interface.css" type="text/css">
+<SCRIPT src="./IMG/002/_interface.js" type="text/javascript"></SCRIPT>
+<link rel="stylesheet" href="./IMG/002/_interface.css" type="text/css">
</HEAD>
<BODY topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">
@@ -56,12 +33,12 @@
<div align="center"> <br>
<table border=0 cellpadding=0 cellspacing=0 width="750">
<tr>
- <td width=5><img alt="" height="24" width="5" src="IMG/002/r-hg.gif" /></td>
- <td background="IMG/002/r-h.gif" colspan="2"><img alt="" height="24" width="24" src="IMG/002/photo.gif" /></td>
- <td width=5><img alt="" height="24" width="5" src="IMG/002/r-hd.gif" /></td>
+ <td width=5><img alt="" height="24" width="5" src="./IMG/002/r-hg.gif" /></td>
+ <td background="./IMG/002/r-h.gif" colspan="2"><img alt="" height="24" width="24" src="./IMG/002/photo.gif" /></td>
+ <td width=5><img alt="" height="24" width="5" src="./IMG/002/r-hd.gif" /></td>
</tr>
<tr>
- <td background="IMG/002/r-g.gif" width="5"> </td>
+ <td background="./IMG/002/r-g.gif" width="5"> </td>
<td class="content"> [(#SURTITRE|majuscules)]<br>
<div class="h5">#TITRE</div>
<p>[(#SOUSTITRE|majuscules)] </p>
@@ -88,11 +65,11 @@
[ <a href="article_print.php3?id_article=#ID_ARTICLE">Imprimer cet
article</a> ] </div>
</td>
- <td background="IMG/002/r-d.gif" width="5"> </td>
+ <td background="./IMG/002/r-d.gif" width="5"> </td>
<tr>
- <td><img alt="" width="5" height="5" src="IMG/002/r-bg.gif" /></td>
- <td background="IMG/002/r-b.gif" colspan="2"><img alt="" width="5" height="5" src="IMG/002/rien.gif" /></td>
- <td><img alt="" width="5" height="5" src="IMG/002/r-bd.gif" /></td>
+ <td><img alt="" width="5" height="5" src="./IMG/002/r-bg.gif" /></td>
+ <td background="./IMG/002/r-b.gif" colspan="2"><img alt="" width="5" height="5" src="./IMG/002/rien.gif" /></td>
+ <td><img alt="" width="5" height="5" src="./IMG/002/r-bd.gif" /></td>
</tr>
</table>
@@ -116,8 +93,8 @@
- <td width="79" height="33" align="left" valign="top" class="menuphoto"> <div align="center"><a href="article.php3?id_article=#ID_ARTICLE" ><img src="/IMG/002/photo-vignettes.gif" border="0"></a>
- <a href="article.php3?id_article=#ID_ARTICLE&menu=image&format=0" title="Slideshow"><img src="/IMG/002/photo-diapo.gif" border="0"></a> </div></td>
+ <td width="79" height="33" align="left" valign="top" class="menuphoto"> <div align="center"><a href="article.php3?id_article=#ID_ARTICLE" ><img src="./IMG/002/photo-vignettes.gif" border="0"></a>
+ <a href="article.php3?id_article=#ID_ARTICLE&menu=image&format=0" title="Slideshow"><img src="./IMG/002/photo-diapo.gif" border="0"></a> </div></td>
<td width="575" align="center" valign="top" class="menuphoto">
<?php
@@ -159,10 +136,10 @@
$fin = $nb_vigns;
}
echo "<font size='2'>";
- echo "<a href='article.php3?id_article=#ID_ARTICLE&menu=$menu&debut_img=$dprec&debut_vign=$dprec'> <img alt='' src='IMG/002/stock_media-rew-16.gif' border='0'> </a>";
+ echo "<a href='article.php3?id_article=#ID_ARTICLE&menu=$menu&debut_img=$dprec&debut_vign=$dprec'> <img alt='' src='./IMG/002/stock_media-rew-16.gif' border='0'> </a>";
echo "<a href='article.php3?id_article=#ID_ARTICLE&menu=$menu' >[$debut-$fin]/$nb_vigns</a> ";
- echo "<a href='article.php3?id_article=#ID_ARTICLE&menu=$menu&debut_img=$dsuiv&debut_vign=$dsuiv'><img alt='' src='IMG/002/stock_media-fwd-16.gif' border='0'> </a>";
- echo "<a href='article.php3?id_article=#ID_ARTICLE&menu=image&debut_img=0&format=0&diapo=1#diapo' title='Play'><img src='/IMG/002/stock_media-play-16.gif' border='0'></a> ";
+ echo "<a href='article.php3?id_article=#ID_ARTICLE&menu=$menu&debut_img=$dsuiv&debut_vign=$dsuiv'><img alt='' src='./IMG/002/stock_media-fwd-16.gif' border='0'> </a>";
+ echo "<a href='article.php3?id_article=#ID_ARTICLE&menu=image&debut_img=0&format=0&diapo=1#diapo' title='Play'><img src='./IMG/002/stock_media-play-16.gif' border='0'></a> ";
echo "</font>";
?>
</td>
@@ -174,12 +151,12 @@
<td valign="top" width="250">
<table border=0 cellpadding=0 cellspacing=0 width="100%">
<tr>
- <td width=5><img alt="" height="24" width="5" src="IMG/002/r-hg.gif" /></td>
- <td background="IMG/002/r-h.gif"><img alt="" height="24" width="24" src="IMG/002/fiche-perso.gif" /></td>
- <td width=5><img alt="" height="24" width="5" src="IMG/002/r-hd.gif" /></td>
+ <td width=5><img alt="" height="24" width="5" src="./IMG/002/r-hg.gif" /></td>
+ <td background="./IMG/002/r-h.gif"><img alt="" height="24" width="24" src="./IMG/002/fiche-perso.gif" /></td>
+ <td width=5><img alt="" height="24" width="5" src="./IMG/002/r-hd.gif" /></td>
</tr>
<tr>
- <td background="IMG/002/r-g.gif" width="5"> </td>
+ <td background="./IMG/002/r-g.gif" width="5"> </td>
<td class="content">
[(#LOGO_ARTICLE|majuscules)]
[(#SURTITRE|majuscules)]<br>
@@ -198,11 +175,11 @@
<p>(#NOTES)</p>
] <br>
</td>
- <td background="IMG/002/r-d.gif" width="5"> </td>
+ <td background="./IMG/002/r-d.gif" width="5"> </td>
<tr>
- <td><img alt="" width="5" height="5" src="IMG/002/r-bg.gif" /></td>
- <td background="IMG/002/r-b.gif"><img alt="" width="5" height="5" src="IMG/002/rien.gif" /></td>
- <td><img alt="" width="5" height="5" src="IMG/002/r-bd.gif" /></td>
+ <td><img alt="" width="5" height="5" src="./IMG/002/r-bg.gif" /></td>
+ <td background="./IMG/002/r-b.gif"><img alt="" width="5" height="5" src="./IMG/002/rien.gif" /></td>
+ <td><img alt="" width="5" height="5" src="./IMG/002/r-bd.gif" /></td>
</tr>
</table>
</td>
@@ -213,11 +190,13 @@
$b=0;
$id_article = #ID_ARTICLE ;
?>
-
<BOUCLE_vignettes1(DOCUMENTS){id_article}{extension=jpg}{mode=document}{par titre}{debut_vign,3}{doublons}>
- <?php $b++; ?>
+ <?php
+ $b++;
+ $pasim=$b-1+$debut_img;
+ ?>
<td width="20%" align="center" valign="top">
- <a href="article.php3?id_article=<? echo $id_article ?>&menu=image&debut_img=<? echo $b-1 ?>&format=0#diapo">
+ <a href="article.php3?id_article=<? echo $id_article ?>&menu=image&debut_img=<? echo $pasim ?>&format=0#diapo">
<img src="[./IMG/(#LOGO_DOCUMENT|fichier)]" border="0" alt="[(#TAILLE|taille_en_octets)] ( #LARGEUR x #HAUTEUR ) "></a>
<font size="2">
[<br><b><A HREF="#URL_DOCUMENT" >(#TITRE)</A></b><br>]
@@ -227,9 +206,9 @@
</BOUCLE_vignettes1>
</tr><tr>
<BOUCLE_vignettes2(DOCUMENTS){id_article}{extension=jpg}{mode=document}{par titre}{debut_vign,3}{doublons}>
- <?php $b++; ?>
+ <?php $b++;$pasim=$b-1+$debut_img; ?>
<td width="20%" align="center" valign="top">
- <a href="article.php3?id_article=<? echo $id_article ?>&menu=image&debut_img=<? echo $b-1 ?>&format=0#diapo">
+ <a href="article.php3?id_article=<? echo $id_article ?>&menu=image&debut_img=<? echo $pasim ?>&format=0#diapo">
[... 192 lines stripped ...]