|
From: <ara...@us...> - 2007-02-20 17:14:48
|
Revision: 73
http://svn.sourceforge.net/easybox-mod/?rev=73&view=rev
Author: aragornis
Date: 2007-02-20 09:14:31 -0800 (Tue, 20 Feb 2007)
Log Message:
-----------
Modified Paths:
--------------
trunk/_framework/lib/get_info.php
trunk/_utilisateur/modules.db
trunk/module/loto/euromillions.php
trunk/module/loto/keno.php
trunk/module/loto/loto.php
trunk/module/meteo/f2-france-512x384-j0pm.jpg
trunk/module/meteo/f2-france-512x384-j1am.jpg
trunk/module/meteo/f2-france-512x384-j1pm.jpg
trunk/module/meteo/f2-france-512x384-j2am.jpg
trunk/module/meteo/f2-france-512x384-j2pm.jpg
trunk/module/meteo/f2-france-512x384-j3am.jpg
trunk/module/meteo/f2-france-512x384-j3pm.jpg
trunk/module/meteo/fr.gif
trunk/module/reseaufree/idf.png
trunk/module/reseaufree/province.png
trunk/module/seances/listeville.php
trunk/module/signet/signet.tpl
Removed Paths:
-------------
trunk/module/AnnuaireFbx/
Modified: trunk/_framework/lib/get_info.php
===================================================================
--- trunk/_framework/lib/get_info.php 2007-02-19 18:16:41 UTC (rev 72)
+++ trunk/_framework/lib/get_info.php 2007-02-20 17:14:31 UTC (rev 73)
@@ -110,7 +110,7 @@
$res['nom'] = ucwords($valeur[1]);
//Critique visiteurs
- $ereg = 'notepresse=(.{0,10})¬epublic=(.{0,10})" marginwidth';
+ $ereg = 'notepresse=(.{0,10})¬epublic=(.{0,10})';
preg_match("/$ereg/s", $filmrecherche, $valeur);
$res['critique_visiteurs'] = round(ereg_replace(",", ".", $valeur[1]));
$res['critique_presse'] = round(ereg_replace(",", ".", $valeur[2]));
@@ -124,7 +124,7 @@
$res['image'] = 'http://a69.g.akamai.net/n/69/10688/v1/img5.allocine.fr/'.$valeur[1];
}
//R\xE9cup\xE9ration du synopsis
- $ereg = '<td valign="top" style="padding:10 0 0 0"><div align="justify"><h4>(.{1,1000})<\/h4><\/div><\/td>';
+ $ereg = '<td valign="top" style="padding:10 0 0 0"><div align="justify"><h4>(.{1,1500})<\/h4><\/div><\/td>';
preg_match("/$ereg/s", $filmrecherche, $valeur);
$res['synopsis'] = trim(strip_tags($valeur[1]));
Modified: trunk/_utilisateur/modules.db
===================================================================
(Binary files differ)
Modified: trunk/module/loto/euromillions.php
===================================================================
--- trunk/module/loto/euromillions.php 2007-02-19 18:16:41 UTC (rev 72)
+++ trunk/module/loto/euromillions.php 2007-02-20 17:14:31 UTC (rev 73)
@@ -42,12 +42,13 @@
eregi( "$debut1(.*)$fin1", $contenu_numero, $valeur );
+
$string1 = $valeur[1];
-$string1 = ereg_replace('</DIV>', "" ,$string1);
-$string1 = ereg_replace(' CLASS="numeroNN"', "" ,$string1);
-$string1 = ereg_replace(' CLASS="numeroN"', "" ,$string1);
-$string1 = ereg_replace(' CLASS="etoile"', "" ,$string1);
-$string1 = explode('<DIV>',$string1);
+$string1 = ereg_replace('</div>', "" ,$string1);
+$string1 = ereg_replace(' class="numeroNN"', "" ,$string1);
+$string1 = ereg_replace(' class="numeroN"', "" ,$string1);
+$string1 = ereg_replace(' class="etoile"', "" ,$string1);
+$string1 = explode('<div>',$string1);
$n='0';
while(list( , $node) = each($string1)) {
@@ -94,14 +95,14 @@
$txt = ereg_replace(',', "." ,$txt);
$txt = ereg_replace('\xE9', "e" ,$txt);
$txt = ereg_replace("<img alt='' src=\"img/etoile.gif\" width=\"15\" height=\"15\">", "", $txt);
-$txt = ereg_replace("<DIV CLASS=\"spacer\" style=\"height:12px\"><img alt='' src=\"../../img/dot.gif\" width=\"1\" height=\"1\"></DIV>", "", $txt);
+$txt = ereg_replace("<img src=\"img/etoile.gif\" width=\"15\" height=\"15\" alt=\"\">", "", $txt);
+$txt = ereg_replace('<div class="spacer" style="height:12px"><img src="../../img/dot.gif" width="1" height="1" alt=""></div>', '', $txt);
+
$txt1 = <<<XML
$txt
XML;
-
-
$xml = simplexml_load_string($txt1);
/* On cherche <a><b><c> */
Modified: trunk/module/loto/keno.php
===================================================================
--- trunk/module/loto/keno.php 2007-02-19 18:16:41 UTC (rev 72)
+++ trunk/module/loto/keno.php 2007-02-20 17:14:31 UTC (rev 73)
@@ -1,109 +1,108 @@
-<?php
-$RACINE_REP = "../../";
-require($RACINE_REP.'_framework/framework.php');
-
-$output.='<table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr><td align=center>';
-
-$MENU_ALT=array(array('lien'=>'loto.php?tirage=1', 'nom'=>'Loto - 1er t.', 'selected'=>0),
- array('lien'=>'loto.php?tirage=2', 'nom'=>'Loto - 2eme t.', 'selected'=>0),
- array('lien'=>'euromillions.php', 'nom'=>'EuroMillions', 'selected'=>0),
- array('lien'=>'keno.php?tirage=1', 'nom'=>'K\xE9no - 21h', 'selected'=>($_GET['tirage']==1 OR $_GET['tirage']!=2)),
- array('lien'=>'keno.php?tirage=2', 'nom'=>'K\xE9no - 13h45', 'selected'=>$_GET['tirage']==2));
-$LINK['red']= 'index1.php';
-
-$page_web = "http://www.fdjeux.com/jeux/keno/keno_s_tirage.php";
-
-if ($_GET['tirage'] == "2") {
- $ereg = '13H45<\/td>(.{1,600})Tirage dans l\'ordre croissant <br>(.{1,3000})<div style="width:165px;" class="compnjackpot">';
- $heure = '13H45';
-} else {
- $ereg = '21H00<\/td>(.{1,600})Tirage dans l\'ordre croissant <br>(.{1,3000})<div style="width:165px;" class="compnjackpot">';
- $heure = '21H00';
-}
-
-$output.='</td></tr></table>';
-
-$page = @fopen ($page_web, 'r') or die('Service non disponible pour le moment.');
-$contenu_html = '';
-while (!feof ($page)) {
- $contenu_html .= trim(fgets($page, 4096));
-}
-
-
-$ereg2 = "<div class='titretxt'>(.{1,40})<\/div>";
-preg_match("/$ereg2/s", $contenu_html, $valeur );
-$contenu1 = $valeur[1];
-
-preg_match("/$ereg/s", $contenu_html, $donnee );
-$contenu = $donnee[2];
-
-$contenu = ereg_replace('<td align="right" class="txtblanc11g" bgcolor="#DB0032"><a href="loto_s_tirage2.php"><font color="white">2e tirage et JOKER®</font></a> </td></tr></table>', '' ,$contenu);
-$contenu = ereg_replace('<td align="right" class="txtblanc11g" bgcolor="#DB0032"><a href="loto_s_tirage1.php"><font color="white">1er tirage</font></a> </td></tr></table>', '' ,$contenu);
-
-// On reconstruit la page
-$contenu = ereg_replace("<DIV style=\"position:absolute;left:268px;width:130px;padding-top:8px;\"><a href=\"javascript:ordreDeSortie(1)\" onMouseOver=\"amsiswap(document.images['os11'])\" onMouseOut=\"amsiswap(document.images['os11'])\"><img src=\"img/btn_os_0.gif\" border=\"0\" width=\"138\" height=\"18\" alt=\"\" name=\"os11\"></a></DIV>", "", $contenu);
-
-// on explose en tableau chaque ligne
-$tableau_page = explode('>',$contenu);
-$suivant = "";
-// on lit le tableau ligne par ligne
-foreach($tableau_page as $ligne) {
- $newLigne = $ligne;
- if ($newLigne != "") { $newLigne = $newLigne.'>'; } // On remet les > en bout de chaque ligne
-
- $newLigne = ereg_replace("<img alt='' src=\"../../img/dot.gif\" width=\"1\" height=\"4\"><br>", "" ,$newLigne);
-
- $newLigne = ereg_replace('<DIV style="float:left;width:290px;">', '<table width="268" border="0" cellspacing="2" cellpadding="0"><tr><td><b>' ,$newLigne);
- $newLigne = ereg_replace('<DIV CLASS="numero">', '</b></td><td width="35" height="33" align="center" valign="middle" background="images/numero.gif"><b>' ,$newLigne);
- $newLigne = ereg_replace('<DIV CLASS="complementaire">', '</b></td><td width="35" height="33" align="center" valign="middle" background="images/etoile.gif"><b>' ,$newLigne);
-
- $newLigne = ereg_replace('<DIV CLASS="spacer" style="height:10px">', "" ,$newLigne);
- $newLigne = ereg_replace('<DIV CLASS="spacer" style="height:12px">', '' ,$newLigne);
- $newLigne = ereg_replace('<DIV CLASS="spacer" style="height:18px">', '' ,$newLigne);
- $newLigne = ereg_replace('<DIV CLASS="spacer" style="height:1px">', '' ,$newLigne);
- $newLigne = ereg_replace('<DIV CLASS="numero" style="float:left;width:192px;">', '' ,$newLigne);
- $newLigne = ereg_replace('<DIV style="float:right;width:120px;padding-top:4px;padding-right:13px;">', '' ,$newLigne);
- $newLigne = ereg_replace("<a href=\"loto_s_gainsjoker.php\" onMouseOver=\"amsiswap(document.images['lots'])\" onMouseOut=\"amsiswap(document.images['lots'])\">", '' ,$newLigne);
- $newLigne = ereg_replace('<img src="img/btn_lots_0.gif" border="0" width="120" height="18" alt="" name="lots">', '' ,$newLigne);
-
- $newLigne = ereg_replace('<DIV CLASS="spacer" style="height:8px"><DIV CLASS="ctitrer">', '<br>' ,$newLigne);
- $newLigne = ereg_replace('</a>', '' ,$newLigne);
- $newLigne = ereg_replace('<DIV CLASS="spacer" style="height:8px">', '' ,$newLigne);
- $newLigne = ereg_replace('<DIV style="float:left;width:75px;padding-top:2px;">', '' ,$newLigne);
-
- $newLigne = ereg_replace("<img alt='' src=\"../../img/dot.gif\" width=\"1\" height=\"1\">", "" ,$newLigne);
- $newLigne = ereg_replace('<DIV CLASS="ctitrer" style="float:left">', "</b></td></tr></table><br>" ,$newLigne);
- $newLigne = ereg_replace('img/etoile.gif', 'images/petit-etoile.gif' ,$newLigne);
- $newLigne = ereg_replace('img/logo_joker.gif', 'images/logo_joker.gif' ,$newLigne);
-
- $newLigne = ereg_replace('Nombre de grilles gagnantes', 'Gagnants' ,$newLigne);
- $newLigne = ereg_replace('Rapport par grille gagnante pour 0,3 €', "0,3\x80 la grille" ,$newLigne);
- $newLigne = ereg_replace('Bons num\xE9ros', "Neum\xE9ros" ,$newLigne);
- $newLigne = ereg_replace('complémentaire', "compl." ,$newLigne);
- $newLigne = ereg_replace('#3E107C', $_COULEUR['COULEUR_FOND'] ,$newLigne);
- $newLigne = ereg_replace('#FBD1CC', $_COULEUR['COULEUR_FOND'] ,$newLigne);
-
- $newLigne = ereg_replace('<table border="0" cellspacing="1" cellpadding="1" class="tabgain" width="408">', '<table border="0" cellspacing="1" cellpadding="1" width="100%">' ,$newLigne);
-
- $newLigne = ereg_replace('</DIV>', "" ,$newLigne);
- $newTexte.= $newLigne;
-}
-
-
-$titre=$contenu1.' de '.$heure;
-
-$newTexte = ereg_replace('</div><div style="float:left;width:165px;">', "" ,$newTexte);
-$newTexte = ereg_replace("<img alt='' src=\"../../img/dot.gif\" width=\"1\" height=\"4\">", "" ,$newTexte);
-
-if ($newTexte != "") {
- $output.=$newTexte;
-} else {
- $output.="VOUS AVEZ JUSQU'A 20H<br>POUR VALIDER VOTRE BULLETIN";
-}
-
-$smarty->assign('TITRE',$titre);
-$smarty->assign('CONTENT', $output);
-$smarty->display('interface.tpl');
-?>
-
+<?php
+$RACINE_REP = "../../";
+require($RACINE_REP.'_framework/framework.php');
+
+$output.='<table width="100%" border="0" cellpadding="0" cellspacing="0">
+ <tr><td align=center>';
+
+$MENU_ALT=array(array('lien'=>'loto.php?tirage=1', 'nom'=>'Loto - 1er t.', 'selected'=>0),
+ array('lien'=>'loto.php?tirage=2', 'nom'=>'Loto - 2eme t.', 'selected'=>0),
+ array('lien'=>'euromillions.php', 'nom'=>'EuroMillions', 'selected'=>0),
+ array('lien'=>'keno.php?tirage=1', 'nom'=>'K\xE9no - 21h', 'selected'=>($_GET['tirage']==1 OR $_GET['tirage']!=2)),
+ array('lien'=>'keno.php?tirage=2', 'nom'=>'K\xE9no - 13h45', 'selected'=>$_GET['tirage']==2));
+$LINK['red']= 'index1.php';
+
+$page_web = "http://www.fdjeux.com/jeux/keno/keno_s_tirage.php";
+
+if ($_GET['tirage'] == "2") {
+ $ereg = '13H45<\/td>(.{1,600})Tirage dans l\'ordre croissant<br>(.{1,3000})<div style="width:165px;" class="compnjackpot">';
+ $heure = '13H45';
+} else {
+ $ereg = '21H00<\/td>(.{1,600})Tirage dans l\'ordre croissant<br>(.{1,3000})<div style="width:165px;" class="compnjackpot">';
+ $heure = '21H00';
+}
+
+$output.='</td></tr></table>';
+
+$page = @fopen ($page_web, 'r') or die('Service non disponible pour le moment.');
+$contenu_html = '';
+while (!feof ($page)) {
+ $contenu_html .= trim(fgets($page, 4096));
+}
+
+$ereg2 = "<div class='titretxt'>(.{1,40})<\/div>";
+preg_match("/$ereg2/s", $contenu_html, $valeur );
+$contenu1 = $valeur[1];
+
+preg_match("/$ereg/s", $contenu_html, $donnee );
+$contenu = $donnee[2];
+
+$contenu = ereg_replace('<td align="right" class="txtblanc11g" bgcolor="#DB0032"><a href="loto_s_tirage2.php"><font color="white">2e tirage et JOKER®</font></a> </td></tr></table>', '' ,$contenu);
+$contenu = ereg_replace('<td align="right" class="txtblanc11g" bgcolor="#DB0032"><a href="loto_s_tirage1.php"><font color="white">1er tirage</font></a> </td></tr></table>', '' ,$contenu);
+
+// On reconstruit la page
+$contenu = ereg_replace("<DIV style=\"position:absolute;left:268px;width:130px;padding-top:8px;\"><a href=\"javascript:ordreDeSortie(1)\" onMouseOver=\"amsiswap(document.images['os11'])\" onMouseOut=\"amsiswap(document.images['os11'])\"><img src=\"img/btn_os_0.gif\" border=\"0\" width=\"138\" height=\"18\" alt=\"\" name=\"os11\"></a></DIV>", "", $contenu);
+
+// on explose en tableau chaque ligne
+$tableau_page = explode('>',$contenu);
+$suivant = "";
+// on lit le tableau ligne par ligne
+foreach($tableau_page as $ligne) {
+ $newLigne = $ligne;
+ if ($newLigne != "") { $newLigne = $newLigne.'>'; } // On remet les > en bout de chaque ligne
+
+ $newLigne = ereg_replace("<img alt='' src=\"../../img/dot.gif\" width=\"1\" height=\"4\"><br>", "" ,$newLigne);
+
+ $newLigne = ereg_replace('<DIV style="float:left;width:290px;">', '<table width="268" border="0" cellspacing="2" cellpadding="0"><tr><td><b>' ,$newLigne);
+ $newLigne = ereg_replace('<DIV CLASS="numero">', '</b></td><td width="35" height="33" align="center" valign="middle" background="images/numero.gif"><b>' ,$newLigne);
+ $newLigne = ereg_replace('<DIV CLASS="complementaire">', '</b></td><td width="35" height="33" align="center" valign="middle" background="images/etoile.gif"><b>' ,$newLigne);
+
+ $newLigne = ereg_replace('<DIV CLASS="spacer" style="height:10px">', "" ,$newLigne);
+ $newLigne = ereg_replace('<DIV CLASS="spacer" style="height:12px">', '' ,$newLigne);
+ $newLigne = ereg_replace('<DIV CLASS="spacer" style="height:18px">', '' ,$newLigne);
+ $newLigne = ereg_replace('<DIV CLASS="spacer" style="height:1px">', '' ,$newLigne);
+ $newLigne = ereg_replace('<DIV CLASS="numero" style="float:left;width:192px;">', '' ,$newLigne);
+ $newLigne = ereg_replace('<DIV style="float:right;width:120px;padding-top:4px;padding-right:13px;">', '' ,$newLigne);
+ $newLigne = ereg_replace("<a href=\"loto_s_gainsjoker.php\" onMouseOver=\"amsiswap(document.images['lots'])\" onMouseOut=\"amsiswap(document.images['lots'])\">", '' ,$newLigne);
+ $newLigne = ereg_replace('<img src="img/btn_lots_0.gif" border="0" width="120" height="18" alt="" name="lots">', '' ,$newLigne);
+
+ $newLigne = ereg_replace('<DIV CLASS="spacer" style="height:8px"><DIV CLASS="ctitrer">', '<br>' ,$newLigne);
+ $newLigne = ereg_replace('</a>', '' ,$newLigne);
+ $newLigne = ereg_replace('<DIV CLASS="spacer" style="height:8px">', '' ,$newLigne);
+ $newLigne = ereg_replace('<DIV style="float:left;width:75px;padding-top:2px;">', '' ,$newLigne);
+
+ $newLigne = ereg_replace("<img alt='' src=\"../../img/dot.gif\" width=\"1\" height=\"1\">", "" ,$newLigne);
+ $newLigne = ereg_replace('<DIV CLASS="ctitrer" style="float:left">', "</b></td></tr></table><br>" ,$newLigne);
+ $newLigne = ereg_replace('img/etoile.gif', 'images/petit-etoile.gif' ,$newLigne);
+ $newLigne = ereg_replace('img/logo_joker.gif', 'images/logo_joker.gif' ,$newLigne);
+
+ $newLigne = ereg_replace('Nombre de grilles gagnantes', 'Gagnants' ,$newLigne);
+ $newLigne = ereg_replace('Rapport par grille gagnante pour 0,3 €', "0,3\x80 la grille" ,$newLigne);
+ $newLigne = ereg_replace('Bons num\xE9ros', "Neum\xE9ros" ,$newLigne);
+ $newLigne = ereg_replace('complémentaire', "compl." ,$newLigne);
+ $newLigne = ereg_replace('#3E107C', $_COULEUR['COULEUR_FOND'] ,$newLigne);
+ $newLigne = ereg_replace('#FBD1CC', $_COULEUR['COULEUR_FOND'] ,$newLigne);
+
+ $newLigne = ereg_replace('<table border="0" cellspacing="1" cellpadding="1" class="tabgain" width="408">', '<table border="0" cellspacing="1" cellpadding="1" width="100%">' ,$newLigne);
+
+ $newLigne = ereg_replace('</DIV>', "" ,$newLigne);
+ $newTexte.= $newLigne;
+}
+
+
+$titre=$contenu1.' de '.$heure;
+
+$newTexte = ereg_replace('</div><div style="float:left;width:165px;">', "" ,$newTexte);
+$newTexte = ereg_replace("<img alt='' src=\"../../img/dot.gif\" width=\"1\" height=\"4\">", "" ,$newTexte);
+
+if ($newTexte != "") {
+ $output.=$newTexte;
+} else {
+ $output.="VOUS AVEZ JUSQU'A 20H<br>POUR VALIDER VOTRE BULLETIN";
+}
+
+$smarty->assign('TITRE',$titre);
+$smarty->assign('CONTENT', $output);
+$smarty->display('interface.tpl');
+?>
+
Modified: trunk/module/loto/loto.php
===================================================================
--- trunk/module/loto/loto.php 2007-02-19 18:16:41 UTC (rev 72)
+++ trunk/module/loto/loto.php 2007-02-20 17:14:31 UTC (rev 73)
@@ -70,9 +70,9 @@
<p> </p>';
if ($_GET['tirage'] == "2") {
- $ereg = 'Rapports pour le 2e tirage :(.{1,2000})width="1" height="1"><\/div>';
+ $ereg = 'Rapports pour le 2e tirage :(.{1,2000})width="1" height="1" alt=""><\/div>';
}else{
- $ereg = 'Rapports pour le 1er tirage :(.{1,2000})width="1" height="1"><\/div>';
+ $ereg = 'Rapports pour le 1er tirage :(.{1,2000})width="1" height="1" alt=""><\/div>';
}
preg_match("/$ereg/s", $contenu_numero, $selection);
@@ -104,7 +104,7 @@
$n='1';
foreach($xml->xpath('/table/tr/td') as $node){
- if (!eregi('bons numeros',$node)){
+ if (!eregi('bons numeros',$node) OR eregi('Pas de gagnant',$node)){
$list[$n] = ereg_replace("euro", "€" ,$node);
$n++;
}
@@ -121,13 +121,12 @@
</tr>';
$informations=array('6 bons num\xE9ros', '5 bons num\xE9ros + compl\xE9mentaire', '5 bons num\xE9ros', '4 bons num\xE9ros + compl\xE9mentaire', '4 bons num\xE9ros', '3 bons num\xE9ros + compl\xE9mentaire', '3 bons num\xE9ros');
-
for($n=1;$n<=7;$n++){
$output.='<tr bgcolor="{#COULEUR_INTERFACE'.((($n+1)%2)+1).'#}">
<td>'.$informations[$n-1].'</td>';
- if ($list[$n] == 'Pas de gagnant.'){
+ if (eregi('Pas de gagnant.',$list[$n+1])){
$output.='<td colspan="2" align="center">'.$list[(2*$n)].'</td>';
- }else{
+ }else{
$output.='<td width="80" align="right">'.$list[((2*$n)-1)].'</td>
<td width="125" align="right">'.$list[(2*$n)].'</td>';
}
Modified: trunk/module/meteo/f2-france-512x384-j0pm.jpg
===================================================================
(Binary files differ)
Modified: trunk/module/meteo/f2-france-512x384-j1am.jpg
===================================================================
(Binary files differ)
Modified: trunk/module/meteo/f2-france-512x384-j1pm.jpg
===================================================================
(Binary files differ)
Modified: trunk/module/meteo/f2-france-512x384-j2am.jpg
===================================================================
(Binary files differ)
Modified: trunk/module/meteo/f2-france-512x384-j2pm.jpg
===================================================================
(Binary files differ)
Modified: trunk/module/meteo/f2-france-512x384-j3am.jpg
===================================================================
(Binary files differ)
Modified: trunk/module/meteo/f2-france-512x384-j3pm.jpg
===================================================================
(Binary files differ)
Modified: trunk/module/meteo/fr.gif
===================================================================
(Binary files differ)
Modified: trunk/module/reseaufree/idf.png
===================================================================
(Binary files differ)
Modified: trunk/module/reseaufree/province.png
===================================================================
(Binary files differ)
Modified: trunk/module/seances/listeville.php
===================================================================
--- trunk/module/seances/listeville.php 2007-02-19 18:16:41 UTC (rev 72)
+++ trunk/module/seances/listeville.php 2007-02-20 17:14:31 UTC (rev 73)
@@ -20,7 +20,6 @@
}
$debut = 'codepostal=';
-$milieu = '&j=0&version=0" class="link1">';
$fin = '<\/a> - <\/h4><h4 style="color: #666666">';
preg_match_all("/$debut(.{1,75})$fin/s", $contenu_html, $valeur);
@@ -30,7 +29,7 @@
{
foreach ($valeur[1] as $value)
{
-list ($postal, $ville) = split ('&j=0&version=0" class="link1">', $value);
+list ($postal, $ville) = split ('" class="link1">', $value);
$CONTENT .= "<a href=listesalle.php?codepostal=$postal>$ville ($postal)</a><br>";
}
Modified: trunk/module/signet/signet.tpl
===================================================================
--- trunk/module/signet/signet.tpl 2007-02-19 18:16:41 UTC (rev 72)
+++ trunk/module/signet/signet.tpl 2007-02-20 17:14:31 UTC (rev 73)
@@ -1,6 +1,7 @@
{assign var=current_film value=''}
-
-{section name=table loop=$CONTENT_TABLE start=$MIN max=3}
+{assign var=k value=0}
+
+{section name=table loop=$CONTENT_TABLE}
{if $smarty.section.table.first}
Voici le ou les film(s) dont les positions ont \xE9t\xE9 enregistr\xE9es - <a href=supall.php>Purger la liste</a><br \> <br \> <br \>
@@ -14,19 +15,25 @@
{/if}
{if $current_film != $CONTENT_TABLE[table].lien}
- {if $current_film != ''}
- </td></tr></table>
+ {assign var=current_film value=$CONTENT_TABLE[table].lien}
+ {assign var=k value=$k+1}
+ {if $k > $MIN AND $k <= $MIN+3}
+ {if $k == $MIN}
+ {assign var=j value=1}
+ </td></tr></table>
+ {/if}
+ {assign var=j value=$j+1}
+ <table width="450" border="0" cellpadding="0" cellspacing="0"><tr><td colspan=2 bgcolor="{#COULEUR_INTERFACE1#}">{$CONTENT_TABLE[table].lien|extract_name|truncate:55}</td></tr>
{/if}
- <table width="450" border="0" cellpadding="0" cellspacing="0"><tr><td colspan=2 bgcolor="{#COULEUR_INTERFACE1#}">{$CONTENT_TABLE[table].lien|extract_name|truncate:55}</td></tr>
- {assign var=current_film value=$CONTENT_TABLE[table].lien}
{/if}
-
- <tr><td width=434 bgcolor="{#COULEUR_INTERFACE2#}"><a href="playsignet.php?toplay={$CONTENT_TABLE[table].lien|urlencode}&temps={$CONTENT_TABLE[table].duree|urlencode}">{$CONTENT_TABLE[table].duree}</a></td><td width="20" bgcolor="{#COULEUR_INTERFACE2#}"><a href="supsignet.php?toplay={$CONTENT_TABLE[table].id}&temps={$CONTENT_TABLE[table].duree}"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_INTERFACE2#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}delete.gif" border="0" width="20" height="20"></td></tr></table></a></td></tr>
-
+
+ {if $k > $MIN AND $k <= $MIN+3}
+ <tr><td width=434 bgcolor="{#COULEUR_INTERFACE2#}"><a href="playsignet.php?toplay={$CONTENT_TABLE[table].lien|urlencode}&temps={$CONTENT_TABLE[table].duree|urlencode}">{$CONTENT_TABLE[table].duree}</a></td><td width="20" bgcolor="{#COULEUR_INTERFACE2#}"><a href="supsignet.php?toplay={$CONTENT_TABLE[table].id}&temps={$CONTENT_TABLE[table].duree}"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_INTERFACE2#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}delete.gif" border="0" width="20" height="20"></td></tr></table></a></td></tr>
+ {/if}
+
{if $smarty.section.table.last}
</table></td></tr></table>
-
- {if $MIN+$smarty.section.table.total < count($CONTENT_TABLE)}
+ {if $MIN+$j < $k}
{assign var=temp value=$MIN+3}
{attribbouton touche="blue" lien="index1.php?min=$temp"}
<a href="index1.php?min={$temp}"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> Suivant</a>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|