From: <ara...@us...> - 2006-11-26 19:32:21
|
Revision: 51 http://svn.sourceforge.net/easybox-mod/?rev=51&view=rev Author: aragornis Date: 2006-11-26 11:32:14 -0800 (Sun, 26 Nov 2006) Log Message: ----------- Ajout du module recette Added Paths: ----------- trunk/module/recettes/ trunk/module/recettes/images/ trunk/module/recettes/images/10.gif trunk/module/recettes/images/11.gif trunk/module/recettes/images/12.gif trunk/module/recettes/images/13.gif trunk/module/recettes/images/14.gif trunk/module/recettes/images/15.gif trunk/module/recettes/images/1a.gif trunk/module/recettes/images/2.gif trunk/module/recettes/images/3.gif trunk/module/recettes/images/4.gif trunk/module/recettes/images/6.gif trunk/module/recettes/images/7.gif trunk/module/recettes/images/8.gif trunk/module/recettes/images/9.gif trunk/module/recettes/images/abricot.gif trunk/module/recettes/images/autres.gif trunk/module/recettes/images/bas.gif trunk/module/recettes/images/btbleu.gif trunk/module/recettes/images/btjaune.gif trunk/module/recettes/images/btrouge.gif trunk/module/recettes/images/btvert.gif trunk/module/recettes/images/cadreB.gif trunk/module/recettes/images/cadreBD.gif trunk/module/recettes/images/cadreBG.gif trunk/module/recettes/images/cadreD.gif trunk/module/recettes/images/cadreG.gif trunk/module/recettes/images/cadreH.gif trunk/module/recettes/images/cadreHD.gif trunk/module/recettes/images/citron.gif trunk/module/recettes/images/cube.gif trunk/module/recettes/images/fraise.gif trunk/module/recettes/images/incontournable.gif trunk/module/recettes/images/melon.gif trunk/module/recettes/images/photo.gif trunk/module/recettes/images/titreautres.gif trunk/module/recettes/images/titreclassement.gif trunk/module/recettes/index1.php trunk/module/recettes/recettes.php trunk/module/recettes/recettes.tpl trunk/module/recettes/recettes2.tpl Added: trunk/module/recettes/images/10.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/10.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/11.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/11.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/12.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/12.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/13.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/13.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/14.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/14.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/15.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/15.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/1a.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/1a.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/2.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/2.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/3.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/3.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/4.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/4.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/6.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/6.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/7.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/7.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/8.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/8.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/9.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/9.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/abricot.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/abricot.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/autres.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/autres.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/bas.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/bas.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/btbleu.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/btbleu.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/btjaune.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/btjaune.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/btrouge.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/btrouge.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/btvert.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/btvert.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/cadreB.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/cadreB.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/cadreBD.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/cadreBD.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/cadreBG.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/cadreBG.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/cadreD.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/cadreD.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/cadreG.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/cadreG.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/cadreH.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/cadreH.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/cadreHD.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/cadreHD.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/citron.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/citron.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/cube.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/cube.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/fraise.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/fraise.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/incontournable.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/incontournable.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/melon.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/melon.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/photo.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/photo.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/titreautres.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/titreautres.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/images/titreclassement.gif =================================================================== (Binary files differ) Property changes on: trunk/module/recettes/images/titreclassement.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/recettes/index1.php =================================================================== --- trunk/module/recettes/index1.php (rev 0) +++ trunk/module/recettes/index1.php 2006-11-26 19:32:14 UTC (rev 51) @@ -0,0 +1,155 @@ +<?php +/* +* Developp\xE9 par Duponcheel Alban +* Le 14 novembre 2006 +* Pour EasyBox " Le MOD graphique" +* Envoyez vos suggestions ou remarques sur le forum : +* http://www.easybox-mod.org/forums/index.php +* Source d'information : http://www.marmiton.org +*/ +$RACINE_REP = "../../"; +require ($RACINE_REP . '_framework/framework.php'); + +if(get_variable("urlf")){ +del_variable("urlf"); +} +if(get_variable("fromf")){ +del_variable("fromf"); +} + +//Si une categorie de recette est d\xE9finie +if (isset ($_REQUEST['categ'])) { + $categ = $_REQUEST['categ']; + $nomcat = $_REQUEST['nomcat']; + + $adrliens = 'recettes.php?etape=info&url=www.marmiton.org'; + $from2 = urldecode($_REQUEST['from']); + + if (isset ($_REQUEST['numliens'])) // Si Un numero de page de recette est definie le r\xE9cuperer + $numliens = $_REQUEST['numliens']; + else + $numliens = 1; // Sinon alller \xE0 la page 1 + + $fp = fopen($categ, "r"); //lecture du fichier + while (!feof($fp)) { //on parcoure toutes les lignes + $contenu .= fgets($fp, 4096); // lecture du contenu de la ligne + } + + if (isset ($_REQUEST['type'])) { // Si un type pr\xE9cis de liste est donn\xE9 + $type = $_REQUEST['type']; + if ($type == 'TOP') { // Liste TOP50 + $adresseMasque = '<TD><A HREF="..(.*)" class="lientexte"'; + $nomMasque = 'class="liennormal">(.*)<\/A><\/TD>'; + $numeroMasque = '"lientexte"><b>(.*).<\/b><\/A>'; + preg_match_all("/$nomMasque/", $contenu, $nomTabletemp); + preg_match_all("/$numeroMasque/", $contenu, $numeroTable); + + for ($i = 0; $i < 50; $i++) { + $nomTable[1][$i] = $numeroTable[1][$i] . ' - ' . $nomTabletemp[1][$i]; + } + $from = 'index1.php?categ=' . urlencode($categ) . '&numliens=' . $numliens . '&nomcat=' . urlencode($nomcat) . '&type=TOP&from=index1.php'; + + } + elseif ($type == 'INCONTOURNABLES') { //Liste Incontournables + $adrcourante = 'index1.php?categ=' . $categ . '&nomcat=' . $nomcat; + $adresseMasque = '<TD> <A HREF="..(.*)" class='; + $nomMasque = 'class="liennormal">(.*)<\/font><\/A><\/TD>'; + preg_match_all("/$nomMasque/", $contenu, $nomTable); + $adrliens = 'index1.php?nomcat=' . urlencode($nomcat) . '&type=INCONTOURNABLES2&categ=' . urlencode('http://www.marmiton.org'); + $from = 'index1.php?categ=' . urlencode($categ) . '&numliens=' . $numliens . '&nomcat=' . urlencode('Les incontournables') . '&type=INCONTOURNABLES&from=index1.php'; + } + elseif ($type == 'INCONTOURNABLES2') { //Liste Incontournables detaill\xE9s + $adresseMasque = '<LI><a href="(.*)"><b>'; + $nomMasque = 'recette=[0-9]+"><b>(.*)<\/b><\/a><\/LI>'; + preg_match_all("/$nomMasque/", $contenu, $nomTable); + $adresseinc = '/recettes/'; + $from2 = $_REQUEST['from']; + $from = 'index1.php?categ=' . urlencode($categ) . '&numliens=' . $numliens . '&nomcat=' . urlencode($nomcat) . '&type=INCONTOURNABLES2&from=' . urlencode($from2); + + } + elseif ($type == 'LISTE') { //Liste \xE0 partir des differents themes + $adresseMasque = 'bis"><a href="..(.*)">'; + $nomMasque = '">(.*)<\/a><\/div><\/li>'; + preg_match_all("/$nomMasque/", $contenu, $nomTable); + $from = 'index1.php?categ=' . urlencode($categ) . '&numliens=' . $numliens . '&nomcat=' . urlencode($nomcat) . '&type=LISTE&from=index1.php'; + } + } + preg_match_all("/$adresseMasque/", $contenu, $adresseTable); + + $taille = count($adresseTable[1]); + + if ($taille > 10) { // Si le nombre de recettes de la categorie est superieur \xE0 dix : cr\xE9er un index + for ($i = (($numliens * 10) - 10); $i < ($numliens * 10) && $i < $taille; $i++) { // Creation des liens + if (isset ($adresseinc)) + $adresse = stripslashes(urlencode($adresseinc . $adresseTable[1][$i])); + else + $adresse = stripslashes(urlencode($adresseTable[1][$i])); + + $nom = strip_tags(utf8_decode($nomTable[1][$i])); + $entrees .= '<a href="' . $adrliens . $adresse . '&nomcat=' . urlencode($nom) . '&from=' . stripslashes(urlencode($from)) . '">' . $nom .'</a><br>'; + } + + for ($i = 1; $i <= ceil($taille / 10); $i++) { // Cr\xE9ation de l'index + + if (isset ($type)) { + if ($i != $numliens) { // Si le numero du lien n'est pas celui de la page courante + if ($type == 'TOP') { + $lien .= '<a href="index1.php?categ=' . urlencode($categ) . '&nomcat=' . urlencode($nomcat). '&from=' . stripslashes(urlencode($from)) . '&numliens=' . $i . '&type=' . $type . '"><u>[' . (($i * 10) - 9) . '..' . ($i * 10) . ']</u></a> '; + }elseif($type == 'INCONTOURNABLES2') { + $lien .= '<a href="index1.php?categ=' . urlencode($categ) . '&nomcat=' . urlencode($nomcat). '&from=' . stripslashes(urlencode($from)) . '&numliens=' . $i . '&type=' . $type . '"><u>' . $i . '</u></a> '; + }else { + $lien .= '<a href="index1.php?categ=' . urlencode($categ) . '&nomcat=' . urlencode($nomcat). '&from=' . stripslashes(urlencode($from)) . '&numliens=' . $i . '&type=' . $type . '"><u>' . $i . '</u></a> '; + } + } else { // Si le numero du lien est celui de la page courante, le d\xE9sactiver + if ($type == 'TOP') { + $lien .= '[' . (($i * 10) - 9) . '..' . ($i * 10) . '] '; + } else { + $lien .= $numliens . ' '; + } + } + } else { + if ($i != $numliens) { + $lien .= '<a href="index1.php?categ=' . urlencode($categ) . '&nomcat=' . urlencode($nomcat). '&from=' . stripslashes(urlencode($from)) . '&numliens=' . $i . '"><u>' . $i . '</u></a> '; + } else { + $lien .= $numliens . ' '; + } + } + } + } else { // Si le nombre de recettes de la categorie est inferieur \xE0 dix : pas d'index + for ($i = 0; $i <= $taille; $i++) { + if (isset ($adresseinc)) + $adresse = stripslashes(urlencode($adresseinc . $adresseTable[1][$i])); + else + $adresse = stripslashes(urlencode($adresseTable[1][$i])); + + $nom = strip_tags(utf8_decode($nomTable[1][$i])); + $entrees .= '<a href="' . $adrliens . $adresse . '&nomcat=' . urlencode($nom) . '&from=' . stripslashes(urlencode($from)) . '">' . $nom . '</a><br>'; + } + } + + $LINK['red'] = $from2; + +} else { + $categ = ''; + if (isset ($_REQUEST['menu'])) { // Menu \xE0 afficher pass\xE9 en adresse + $menu = $_REQUEST['menu']; + $LINK['red'] = 'index1.php?menu=principal'; + } else { // Menu principal + $menu = 'principal'; + $LINK['red'] = $MODULE . '_menu/menu.php?cat=29'; + } +} + +$smarty->assign('from', $from2); +$smarty->assign('menu', $menu); +$smarty->assign('taille', $taille); +$smarty->assign('lien', $lien); +$smarty->assign('categ', $categ); +$smarty->assign('nomcat', $nomcat); +$smarty->assign('entrees', $entrees); +$smarty->assign('TITRE', 'Recettes'); +$smarty->assign('CONTENT', $smarty->fetch('recettes.tpl')); +$smarty->display('interface.tpl'); +?> + + Added: trunk/module/recettes/recettes.php =================================================================== --- trunk/module/recettes/recettes.php (rev 0) +++ trunk/module/recettes/recettes.php 2006-11-26 19:32:14 UTC (rev 51) @@ -0,0 +1,131 @@ +<?php +$RACINE_REP = "../../"; +require ($RACINE_REP . '_framework/framework.php'); + +//Recuperation de la variable URL pass\xE9 par l'adresse +$urlrecup = $_GET['url']; +$fromrecup = $_GET['from']; +$etape = $_GET['etape']; +$nom = $_GET['nomcat']; + + + +if(!get_variable("urlf")){ + save_variable("urlf", $urlrecup); + +} +if(!get_variable("fromf")){ + save_variable("fromf", $fromrecup); +} + +$url = get_variable("urlf"); +$from = get_variable("fromf"); + + +// Creation de l'URL de l'image associ\xE9e a la recette +$urlimg = urlencode('http://' . str_replace("recettes/recette.cfm?num_recette=", "pix/recettes/photos/normal/", $url) . '.jpg'); + +$fp = fopen('http://' . urldecode($url), "r"); //lecture du fichier +while (!feof($fp)) { //on parcoure toutes les lignes + $contenu .= fgets($fp, 4096); // lecture du contenu de la ligne +} + +// Si le le visiteur demande les informations sur la recette +if ($etape == 'info') { + + // R\xE9cuperation du type de plat + $ereg = 'vspace=5 \/><IMG SRC="..\/pix\/recettes\/recette\/(.{1,15}).gif" BORDER="0"'; + preg_match("/$ereg/s", $contenu, $valeur); + $type = strip_tags(utf8_decode($valeur[1])); + + // R\xE9cuperation de la difficult\xE9e + $ereg = '<table><tr valign="middle"><td><IMG SRC="..\/pix\/recettes\/recette\/(.{1,16}).gif" WIDTH='; + preg_match("/$ereg/s", $contenu, $valeur); + $difficultee = str_replace('_',' ',strip_tags(utf8_decode($valeur[1]))); + + // R\xE9cuperation du cout de la recette + $ereg = 'WIDTH="18" HEIGHT="18" BORDER="0" ALT="(.{1,25})"><\/td><\/tr><\/table>'; + preg_match("/$ereg/s", $contenu, $valeur); + $cout = strip_tags(utf8_decode($valeur[1])); + + // R\xE9cup\xE9ration du temps de pr\xE9paration + $ereg = 'paration :(.{1,20})<BR>'; + preg_match("/$ereg/s", $contenu, $valeur); + $tpsprepa = utf8_decode($valeur[1]); + + // R\xE9cup\xE9ration du temps de cuisson + $ereg = 'Cuisson : (.{1,20})[(<BR><BR>)($)]'; + preg_match("/$ereg/s", $contenu, $valeur); + $tpscui = strip_tags(utf8_decode($valeur[1])); + + // Test si la recette est associ\xE9e \xE0 une image + if (preg_match("/photo.gif/", $contenu)) { + $smarty->assign('urlimg', $urlimg); // Si oui + } else { + $smarty->assign('urlimg', "false"); // Si non + } + + $smarty->assign('nom', $nom); + $smarty->assign('type', $type); + $smarty->assign('difficultee', $difficultee); + $smarty->assign('cout', $cout); + $smarty->assign('tpsprepa', $tpsprepa); + $smarty->assign('tpscui', $tpscui); + +} + +Else { + // Si le visiteur demande les ingredients de la recette + if ($etape == 'ingr') { + $ereg = 'dients (.*)....paration :'; + preg_match("/$ereg/s", $contenu, $valeur); + $ingredients = 'ingr\xE9dients ' . utf8_decode($valeur[1]); + $smarty->assign('ingredients', $ingredients); + } Else { + // Si le visiteur demande la pr\xE9paration de la recette + if ($etape == 'prepa') { + $ereg = 'paration :<BR>(.*). +<\/span><\/TD>'; + preg_match("/$ereg/s", $contenu, $valeur); + $preparation = '<div style="text-align: left">' . utf8_decode($valeur[1]) . '.<\/div>'; + $smarty->assign('preparation', $preparation); + } Else { + // Si le visiteur veux voir la photo de la recette + if ($etape == 'photo') { + $smarty->assign('urlimg', $urlimg); + } + } + } + +} + +$urlphoto = 'recettes.php?etape=photo&url=' . $url; +$urlprepa = 'recettes.php?etape=prepa&from=' . $from . '&url=' . $url; +$urlinfo = 'recettes.php?etape=info&from=' . $from . '&url=' . $url; +$urlingr = 'recettes.php?etape=ingr&from=' . $from . '&url=' . $url; + +if ($etape == 'photo') { + $urlretour = $urlinfo; +} else { + $urlretour = $from; +} + + +$LINK['red'] = $urlretour; +$LINK['blue'] = $urlingr; +$LINK['green'] = $urlprepa; +$LINK['yellow'] = $urlinfo; +$smarty->assign('from', $from); +$smarty->assign('nom', $nom); +$smarty->assign('urlphoto', $urlphoto); +$smarty->assign('urlinfo', $urlinfo); +$smarty->assign('urlprepa', $urlprepa); +$smarty->assign('urlingr', $urlingr); +$smarty->assign('urlretour', $urlretour); +$smarty->assign('etape', $etape); +$smarty->assign('TITRE', $nom); +$smarty->assign('CONTENT', $smarty->fetch('recettes2.tpl')); +$smarty->display('interface.tpl'); +?> + + Added: trunk/module/recettes/recettes.tpl =================================================================== --- trunk/module/recettes/recettes.tpl (rev 0) +++ trunk/module/recettes/recettes.tpl 2006-11-26 19:32:14 UTC (rev 51) @@ -0,0 +1,223 @@ + +{if $categ!=''} + + + +<table border="0" cellpadding="0" cellspacing="0" height="373" width="490"> + <tr> + <td><img src="images/1a.gif" border="0" width="22" height="15" alt=""></td> + <td><img src="images/2.gif" border="0" width="450" height="15" alt=""></td> + <td><img src="images/3.gif" border="0" width="18" height="15" alt=""></td> + </tr> + <tr> + <td><img src="images/4.gif" border="0" width="22" height="24" alt=""></td> + <td height="23" width="450" bgcolor="#ECBF4A" align=center> + <font face="Arial" color="#800000">{$nomcat} ({$taille} recettes)</font></td> + <td><img src="images/6.gif" border="0" width="18" height="24" alt=""></td> + </tr> + <tr> + <td><img src="images/7.gif" border="0" width="22" height="7" alt=""></td> + <td><img src="images/8.gif" border="0" width="450" height="7" alt=""></td> + <td><img src="images/9.gif" border="0" width="18" height="7" alt=""></td> + </tr> + <tr> + <td><img src="images/10.gif" border="0" width="22" height="311" alt=""></td> + <td height="311" width="450" background="images/11.gif"> + <table border="0" width="450" height="275"> + <tr> + <td valign="top" height="275"> +<TABLE class=normal cellSpacing=5 cellPadding=0 align=center border=0 valign="middle"> +<TBODY> +<TR> +<td valign="top" align="left"> +<font face="Arial" size="4"> + +{$entrees} +</font><br /> +</TD></TR> +<TR> +<td valign="bottom" align="center" height=100%> +{$lien} + +</TD></TR></TABLE> + + +</td> + </tr> +</table> +</td> + <td><img src="images/12.gif" border="0" width="18" height="311" alt=""></td> + </tr> + <tr> + <td><img src="images/13.gif" border="0" width="22" height="16" alt=""></td> + <td><img src="images/14.gif" border="0" width="450" height="16" alt=""></td> + <td><img src="images/15.gif" border="0" width="18" height="16" alt=""></td> + </tr> +</table> + + + + + +{else} +{if $menu=='liste'} + +<table border="0" cellpadding="0" cellspacing="0"> + <tr> + <td><img src="images/cube.gif" border="0" width="37" height="38" alt=""></td> + <td background="images/cadreH.gif" height="38"><img src="images/titreautres.gif" border="0" alt=""></td> + <td><img src="images/cadreHD.gif" border="0" width="37" height="38" alt=""></td> + </tr> + <tr> + <td background="images/cadreG.gif" width="37"> </td> + <td> +<table border=0 cellpadding=2 summary=""> + <tr> + <td bgcolor=#FFFF00 align=center>Occasion</td> + <td bgcolor=#FFFF00 align=center>Profil</td> + </tr> + <tr> + <td bgcolor=gray> <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_buffet.cfm'|urlencode}&nomcat={'Buffet'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Buffet</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_petit_dejeuner.cfm'|urlencode}&nomcat={'Brunch et Petit D\xE9jeuner'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Brunch et Petit D\xE9jeuner</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_second_service.cfm'|urlencode}&nomcat={'Second service'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Second service</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_barbecue.cfm'|urlencode}&nomcat={'Do you Barbecue ?'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Do you Barbecue ?</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_chandeleur.cfm'|urlencode}&nomcat={'Chandeleur'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Chandeleur</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_saint_valentin_romeo_et_juliette.cfm'|urlencode}&nomcat={'Saint Valentin'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Saint Valentin</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_mardi_gras.cfm'|urlencode}&nomcat={'Mardi Gras'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Mardi Gras</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_paques.cfm'|urlencode}&nomcat={'P\xE2ques'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">P\xE2ques</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_fete_des_meres.cfm'|urlencode}&nomcat={'F\xEAte des M\xE8res'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">F\xEAte des M\xE8res</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_halloween.cfm'|urlencode}&nomcat={'Halloween'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Halloween</a><br> + <td bgcolor=gray valign=top> <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_debutant.cfm'|urlencode}&nomcat={'Je d\xE9bute'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Je d\xE9bute</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_mincealors.cfm'|urlencode}&nomcat={'Mince alors !'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Mince alors !</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_vegetarien.cfm'|urlencode}&nomcat={'V\xE9g\xE9tarien'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">V\xE9g\xE9tarien</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_pleinlavue.cfm'|urlencode}&nomcat={'Plein la vue !'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Plein la vue !</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_etudiant.cfm'|urlencode}&nomcat={'Etudiant fauch\xE9'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Etudiant fauch\xE9</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_citadin.cfm'|urlencode}&nomcat={'Citadin stress\xE9'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Citadin stress\xE9</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_flemme.cfm'|urlencode}&nomcat={'Flemme'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Flemme</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_enfants.cfm'|urlencode}&nomcat={'Coin Enfant'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Coin Enfant</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_gastronome_econome.cfm'|urlencode}&nomcat={'Gastronome \xE9conome'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Gastronome \xE9conome</a></td> + </tr> + <tr> + <td bgcolor=#FFFF00 align=center>Region</td> + <td bgcolor=#FFFF00 align=center>Pays</td> + </tr> + <tr> + <td bgcolor=gray> <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_alsace.cfm'|urlencode}&nomcat={'Alsace'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Alsace</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_midi.cfm'|urlencode}&nomcat={'Midi'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Midi</a></td> + <td bgcolor=gray rowspan=3> <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_asie.cfm'|urlencode}&nomcat={'Asie'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Asie</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_indienne.cfm'|urlencode}&nomcat={'Indes'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Indes</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_belgique.cfm'|urlencode}&nomcat={'Belgique'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Belgique</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_texmex.cfm'|urlencode}&nomcat={'Tex-Mex'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Tex-Mex</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_iles.cfm'|urlencode}&nomcat={'Tex-Mex'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Iles</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_oasis.cfm'|urlencode}&nomcat={'Oasis'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Oasis</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_italienne.cfm'|urlencode}&nomcat={'Italie'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Italie</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_american_dream.cfm'|urlencode}&nomcat={'Amerique'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Amerique</a> + </td> + </tr> + <tr> + <td bgcolor=#FFFF00 align=center>Saison</td> + </tr> + <tr> + <td bgcolor=gray> <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_printemps.cfm'|urlencode}&nomcat={'Printemps'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Printemps</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_ete.cfm'|urlencode}&nomcat={'Et\xE9'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Et\xE9</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_automne.cfm'|urlencode}&nomcat={'Automne'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Automne</a><br> + <a href="index1.php?categ={'http://www.marmiton.org/recettes/selection_hiver.cfm'|urlencode}&nomcat={'Hiver'|urlencode}&type=LISTE&from={'index1.php?menu=liste'|urlencode}">Hiver</a></td> + </tr> +</table> + </td> + <td background="images/cadreD.gif" width="37"> </td> + </tr> + <tr> + <td><img src="images/cadreBG.gif" border="0" width="37" height="38" alt=""></td> + <td background="images/cadreB.gif" height="38"> </td> + <td><img src="images/cadreBD.gif" border="0" width="37" height="38" alt=""></td> + </tr> +</table> + + +{elseif $menu=='principal'} +<table border="0" cellpadding="0" cellspacing="0"> + <tr> + <td><img src="images/cube.gif" border="0" width="37" height="38" alt=""></td> + <td background="images/cadreH.gif" height="38"><img src="images/titreclassement.gif" border="0" alt=""></td> + <td><img src="images/cadreHD.gif" border="0" width="37" height="38" alt=""></td> + </tr> + <tr> + <td background="images/cadreG.gif" width="37"> </td> + <td> +<table summary="" border="0"> + <tr> + <td align="center"><img src="images/citron.gif" border="0"></td> + <td align="center"><img src="images/melon.gif" border="0"></td> + <td align="center"><img src="images/fraise.gif" border="0"></td> + <td align="center"><img src="images/abricot.gif" border="0"></td> + </tr> + <tr> + <td align="center"><a href="index1.php?categ={'http://www.marmiton.org/recettes/top_50_internautes.cfm'|urlencode}&nomcat={'TOP 50 toutes categories'|urlencode}&type=TOP&from=index1.php">General</a> </td> + <td align="center"><a href="index1.php?categ={'http://www.marmiton.org/recettes/top_50_internautes_entrees.cfm'|urlencode}&nomcat={'TOP 50 des entr\xE9es'|urlencode}&type=TOP&from=index1.php">Entr\xE9es</a> </td> + <td align="center"><a href="index1.php?categ={'http://www.marmiton.org/recettes/top_50_internautes_plats.cfm'|urlencode}&nomcat={'TOP 50 des plats'|urlencode}&type=TOP&from=index1.php">Plats</a> </td> + <td align="center"><a href="index1.php?categ={'http://www.marmiton.org/recettes/top_50_internautes_desserts.cfm'|urlencode}&nomcat={'TOP 50 des desserts'|urlencode}&type=TOP&from=index1.php">Desserts</a> </td> + </tr> + </table> + + </td> + <td background="images/cadreD.gif" width="37"> </td> + </tr> + <tr> + <td><img src="images/cadreBG.gif" border="0" width="37" height="38" alt=""></td> + <td background="images/cadreB.gif" height="38"> </td> + <td><img src="images/cadreBD.gif" border="0" width="37" height="38" alt=""></td> + </tr> +</table> + + + + <table border="0" cellpadding="0" cellspacing="0"> + <tr> + <td><img src="images/cube.gif" border="0" width="37" height="38" alt=""></td> + <td background="images/cadreH.gif" height="38"><img src="images/titreautres.gif" border="0" alt=""></td> + <td><img src="images/cadreHD.gif" border="0" width="37" height="38" alt=""></td> + </tr> + <tr> + <td background="images/cadreG.gif" width="37"> </td> + <td> + + <table summary="" border="0"> + <tr> + <td align="center"><img src="images/incontournable.gif" border="0"></td> + <td align="center"><img src="images/autres.gif" border="0"></td> + </tr> + <tr> + <td align="center"><a href="index1.php?categ={'http://www.marmiton.org/recettes/recettes_incontournables.cfm'|urlencode}&nomcat={'Les incontournables'|urlencode}&type=INCONTOURNABLES&from=index1.php">Incontournables</a></td> + <td align="center"><a href="index1.php?menu=liste">Themes</a></td> + </tr> +</table> + </td> + <td background="images/cadreD.gif" width="37"> </td> + </tr> + <tr> + <td><img src="images/cadreBG.gif" border="0" width="37" height="38" alt=""></td> + <td background="images/cadreB.gif" height="38"> </td> + <td><img src="images/cadreBD.gif" border="0" width="37" height="38" alt=""></td> + </tr> +</table> + +{/if} +{/if} + + + + + + + + + + + + + + + + + Added: trunk/module/recettes/recettes2.tpl =================================================================== --- trunk/module/recettes/recettes2.tpl (rev 0) +++ trunk/module/recettes/recettes2.tpl 2006-11-26 19:32:14 UTC (rev 51) @@ -0,0 +1,130 @@ +{if $etape!='photo'} +<table border="0" cellpadding="0" cellspacing="0" height="373" width="490"> + <tr> + <td><img src="images/1a.gif" border="0" width="22" height="15" alt=""></td> + <td><img src="images/2.gif" border="0" width="450" height="15" alt=""></td> + <td><img src="images/3.gif" border="0" width="18" height="15" alt=""></td> + </tr> + <tr> + <td><img src="images/4.gif" border="0" width="22" height="24" alt=""></td> + <td height="23" width="450" bgcolor="#ECBF4A"> + + + <table width=450 border=0 summary=""> + <tr> + <td width=113><img src="images/btjaune.gif" border="0" align="left"> <a href="{$urlinfo}">Information</a></td> + <td width=113><img src="images/btbleu.gif" border="0" align="left"> <a href="{$urlingr}">Ingr\xE9dients</a></td> + <td width=115><img src="images/btvert.gif" border="0" lign="left"> <a href="{$urlprepa}">Pr\xE9paration</a></td> + <td width=109><img src="images/btrouge.gif" border="0" align="left"> <a href="{$urlretour}">Retour</a></td> + </tr> +</table> + + + </td> + <td><img src="images/6.gif" border="0" width="18" height="24" alt=""></td> + </tr> + <tr> + <td><img src="images/7.gif" border="0" width="22" height="7" alt=""></td> + <td><img src="images/8.gif" border="0" width="450" height="7" alt=""></td> + <td><img src="images/9.gif" border="0" width="18" height="7" alt=""></td> + </tr> + <tr> + <td background="images/10.gif"></td> + <td height="311" width="450" background="images/11.gif"> + <table border="0" width="450" height="275"> + <tr> + <td valign="top" height="275"> + +{if $etape=='info'} +<font face="Arial" size="4"> + + {if $urlimg!="false"} + <table cellpadding="0" cellspacing="0" border="0"> + <tr> +<td valign="top" width=450 height="275"> +<table border="0" width="450" border="0" cellpadding="0" cellspacing="0"> + <tr> + <td width="100" height="49" align=center><img src="images/photo.gif" border="0" width="53" height="49" alt=""> + </td> + </tr> + <tr> + <td align="center" width="100" height="49"> + <a href="{$urlphoto}"><u>Photo</u></a></td> + </tr> + <tr> + <td align="center" width="100" height="30"> </td> + </tr> +</table> + {/if} + + <font face="Arial" size="34"> + +<table summary="" border="0"> + <tr> + <td><b>Type :</b></td> + <td>{$type}</td> + </tr> + <tr> + <td><b>Difficult\xE9e :</b></td> + <td>{$difficultee}</td> + </tr> + <tr> + <td><b>Co\xFBt :</b></td> + <td>{$cout}</td> + </tr> + <tr> + <td><b>Temps de pr\xE9paration :</b></td> + <td><font color="#CC0000">{$tpsprepa}</font></td> + </tr> + <tr> + <td><b>Temps de cuisson :</b></td> + <td><font color="#CC0000">{$tpscui}</font></td> + </tr> +</table> + {if $urlimg!="false"} + + </td> + </tr> +</table> +{/if} + +</font> +{/if} +{if $etape=='ingr'} +<font face="Arial" size="4"> +<div style="text-align: left">{$ingredients}</div> + </font> +{/if} +{if $etape=='prepa'} +<font face="Arial" size="4"> +{$preparation} + </font> +{/if} + + + + +</td> + </tr> +</table> +</td> + <td background="images/12.gif"> </td> + </tr> + <tr> + <td><img src="images/13.gif" border="0" width="22" height="16" alt=""></td> + <td><img src="images/14.gif" border="0" width="450" height="16" alt=""></td> + <td><img src="images/15.gif" border="0" width="18" height="16" alt=""></td> + </tr> +</table> +{else} +<img src="{$IMG2FBX}{$urlimg}" border="0" alt="" width="512" height="384"> +{/if} + + + + + + + + + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |