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. |
From: <ara...@us...> - 2007-03-03 21:43:13
|
Revision: 87 http://svn.sourceforge.net/easybox-mod/?rev=87&view=rev Author: aragornis Date: 2007-03-03 13:43:07 -0800 (Sat, 03 Mar 2007) Log Message: ----------- Module guidetv remis en ?\195?\169tat et superok maintenant Correction de journaux de tf1 (on prend bien ceux de 2007 ^^) Correction sur le multiposte Correction de la zik sur diaporama Modified Paths: -------------- trunk/module/diaporama/index1.php trunk/module/guidetv/guidetv.tpl trunk/module/guidetv/tvprogram.php trunk/module/jt/flux.xml trunk/module/multiposte/enregistrement.tpl trunk/module/multiposte/index1.php Modified: trunk/module/diaporama/index1.php =================================================================== --- trunk/module/diaporama/index1.php 2007-02-25 10:13:33 UTC (rev 86) +++ trunk/module/diaporama/index1.php 2007-03-03 21:43:07 UTC (rev 87) @@ -5,7 +5,6 @@ $FORCED = 1; } - $extension = $ini['explorateur']['ext_photo']; $ext_ok = explode(",",$extension); $ext = $ext_ok; @@ -193,13 +192,11 @@ save_variable('photomin', $min); - if(isset($aff)){ if ($_GET['start_play']=='oui') { - $smarty->assign('start_play','non'); + save_variable('playing_audio', 'oui'); - if($pisteaudio=='TV'){ $play = 'type=1'; }elseif($pisteaudio=='PC'){ @@ -235,6 +232,12 @@ save_variable('num_playlist', get_variable('num_playlist')+1); }elseif($_GET['start_play']=='non'){ $file1 = file_get_contents("http://127.0.0.1:8081/lecteur/action.html?control=stop"); + save_variable('playing_audio', 'non'); +} + +if(get_variable('playing_audio')=='oui'){ + $smarty->assign('start_play','non'); +}else{ $smarty->assign('start_play','oui'); } Modified: trunk/module/guidetv/guidetv.tpl =================================================================== --- trunk/module/guidetv/guidetv.tpl 2007-02-25 10:13:33 UTC (rev 86) +++ trunk/module/guidetv/guidetv.tpl 2007-03-03 21:43:07 UTC (rev 87) @@ -1,8 +1,8 @@ {if isset($EMISSION)} <table border="0" cellpadding="2" cellspacing="0"> - <tr><td colspan="2">De {$EMISSION.debut|date_format:"%H:%M"} \xE0 {$EMISSION.fin|date_format:"%H:%M"}, le {$cboDate|date_format:"%A %e %B %Y"} sur {$cboCateg}</td></tr> - <tr><td>{if $EMISSION.icone}<img src="{$IMG2FBX}{$EMISSION.icone|urlencode}&cache=1">{else} {/if}</td> - <td width="369"> + <tr><td colspan="2">De {$EMISSION.debut|date_format:"%H:%M"} \xE0 {$EMISSION.fin|date_format:"%H:%M"}, le {$EMISSION.debut|date_format:"%A %e %B %Y"} sur {$chaine.nom}</td></tr> + <tr><td>{if $EMISSION.icone!='http://static.digitalmondadori.fr/gtv/visu'}<img src="{$IMG2FBX}{$EMISSION.icone|urlencode}&cache=1">{else}<img src="{$INTERFACE_REP}noimage.gif">{/if}</td> + <td width="369"> <font size="4">{$EMISSION.titre}</font>{if $EMISSION.note!=''} <img src="{$INTERFACE_REP}star{$EMISSION.note}.gif">{/if}<br> {if $info_chaine.id!='inc'} {assign var=tempo value=$info_chaine.id|cat:"|"|cat:$info_chaine.nom|cat:"|"|cat:$info_chaine.num} @@ -10,13 +10,11 @@ {assign var=tempi value=$EMISSION.debut-600} {assign var=temps value=$EMISSION.fin+600} {attribbouton touche="rec" lien=$MODULE|cat:"multiposte/add.php?etape=4&chaine=$tempo&debtime=$tempi&endtime=$temps"} - <a href="{$MODULE}multiposte/add.php?etape=4&chaine={$info_chaine.id|cat:"|"|cat:$info_chaine.nom|cat:"|"|cat:$info_chaine.num|urlencode}&debtime={$EMISSION.debut-600}&endtime={$EMISSION.fin+600}">Enregistrer avec Easybox</a><br> + <a href="{$MODULE}multiposte/add.php?etape=4&chaine={$chaine.id|cat:"|"|cat:$chaine.nom|cat:"|"|cat:$chaine.num|urlencode}&debtime={$EMISSION.debut-600}&endtime={$EMISSION.fin+600}">Enregistrer avec Easybox</a><br> {/if} - {if $EMISSION.soustitre}(<font size="1">{$EMISSION.soustitre}</font>)<br>{/if} <i>{$EMISSION.categorie|ucfirst} {if $EMISSION.realisateur} - R\xE9alis\xE9 par {$EMISSION.realisateur}{/if} {if $EMISSION.presentateur} - Pr\xE9sent\xE9 par {$EMISSION.presentateur}{/if} - {if $EMISSION.acteur} - Avec {$EMISSION.acteur}{/if} </i><br> {if $EMISSION.duree}<i>Dur\xE9e : {$EMISSION.duree}min</i>{/if} </td><tr><td colspan="2"> @@ -26,34 +24,39 @@ <table><tr><td align=left> {if $MIN!=0} {assign var=temp value=$MIN-16} - {attribbouton touche="green" lien="tvprogram.php?cboDate=$cboDate&cboCateg=$cboCateg&min=$temp"} - <a href="tvprogram.php?cboDate={$cboDate}&cboCateg={$cboCateg}&min={$temp}"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> Pr\xE9c\xE9dent</a><br> + {assign var=temp2 value=$chaine.id} + {attribbouton touche="green" lien="tvprogram.php?jour=$jour&chaine=$temp2&min=$temp"} + <a href="tvprogram.php?jour={$jour}&chaine={$chaine.id}&min={$temp}"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> Pr\xE9c\xE9dent</a><br> {/if} {section name=emiss loop=$EMISSIONS max=16 start=$MIN} - <a href="tvprogram.php?cboDate={$cboDate}&cboCateg={$cboCateg}&min={$MIN}&indic_name={$EMISSIONS[emiss].specialid}">{$EMISSIONS[emiss].debut|date_format:"%H:%M"} - {$EMISSIONS[emiss].titre}</a><br> + {if $EMISSIONS[emiss].fin >= time()} + <a href="tvprogram.php?jour={$jour}&chaine={$chaine.id}&min={$MIN}&emission={$EMISSIONS[emiss].fiche}&debut={$EMISSIONS[emiss].debut}&fin={$EMISSIONS[emiss].fin}">{$EMISSIONS[emiss].debut|date_format:"%H:%M"} - {$EMISSIONS[emiss].titre}</a><br> + {else} + {$EMISSIONS[emiss].debut|date_format:"%H:%M"} - {$EMISSIONS[emiss].titre}<br> + {/if} {/section} {if $MIN+$smarty.section.emiss.total < count($EMISSIONS)} {assign var=temp value=$MIN+16} - {attribbouton touche="blue" lien="tvprogram.php?cboDate=$cboDate&cboCateg=$cboCateg&min=$temp"} - <a href="tvprogram.php?cboDate={$cboDate}&cboCateg={$cboCateg}&min={$temp}"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> Suivant</a> + {assign var=temp2 value=$chaine.id} + {attribbouton touche="blue" lien="tvprogram.php?jour=$jour&chaine=$temp2&min=$temp"} + <a href="tvprogram.php?jour={$jour}&chaine={$chaine.id}&min={$temp}"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> Suivant</a> {/if} </td></tr></table> {else} - {attribbouton touche="red" lien="index1.php"} {if $MIN!=0} {assign var=temp value=$MIN-20} - {attribbouton touche="green" lien="tvprogram.php?min=$temp"} - <a href="tvprogram.php?min={$temp}"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> Pr\xE9c\xE9dent</a> + {attribbouton touche="green" lien="tvprogram.php?min=$temp&jour=$jour"} + <a href="tvprogram.php?min={$temp}&jour={$jour}"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> Pr\xE9c\xE9dent</a> {/if} - {section name=chaine loop=$CHAINE max=20 start=$MIN} + {section name=chaine loop=$CHAINES max=20 start=$MIN} {if $smarty.section.chaine.first} <table width="480" height="400" border="0" cellpadding="0" cellspacing="0"><tr> {/if} - <td width="96" height="80"><a href="tvprogram.php?cboDate={$DATE}&cboCateg={$CHAINE[chaine].nom|urlencode}"><table border="0" cellpadding="0" cellspacing="0" width="96" height="80" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="40"><td align=center width="96" height="40" valign="middle"><img width="36" height="36" border="0" src="{$CHAINE_REP}{$CHAINE[chaine].ico}"></td></tr><tr height="40"><td align=center width="96" height="40"><font size="1">{$CHAINE[chaine].nom}</font></td></tr></table></a></td> + <td width="96" height="80"><a href="tvprogram.php?jour={$jour}&chaine={$CHAINES[chaine].id}"><table border="0" cellpadding="0" cellspacing="0" width="96" height="80" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="40"><td align=center width="96" height="40" valign="middle"><img width="36" height="36" border="0" src="{$CHAINE_REP}{$CHAINES[chaine].ico}"></td></tr><tr height="40"><td align=center width="96" height="40"><font size="1">{$CHAINES[chaine].nom}</font></td></tr></table></a></td> {if $smarty.section.chaine.iteration is div by 5 AND NOT $smarty.section.chaine.last} </tr><tr> {/if} @@ -62,9 +65,9 @@ {/if} {/section} - {if $MIN+$smarty.section.chaine.total < count($CHAINE)} + {if $MIN+$smarty.section.chaine.total < count($CHAINES)} {assign var=temp value=$MIN+20} - {attribbouton touche="blue" lien="tvprogram.php?min=$temp"} - <a href="tvprogram.php?min={$temp}"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> Suivant</a> + {attribbouton touche="blue" lien="tvprogram.php?min=$temp&jour=$jour"} + <a href="tvprogram.php?min={$temp}&jour={$jour}"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> Suivant</a> {/if} {/if} Modified: trunk/module/guidetv/tvprogram.php =================================================================== --- trunk/module/guidetv/tvprogram.php 2007-02-25 10:13:33 UTC (rev 86) +++ trunk/module/guidetv/tvprogram.php 2007-03-03 21:43:07 UTC (rev 87) @@ -1,293 +1,161 @@ <?php $RACINE_REP = "../../"; require($RACINE_REP.'_framework/framework.php'); +setlocale(LC_TIME, 'french'); +(isset($_GET['min']))?$min=$_GET['min']:$min=0; +(isset($_GET['jour'])&&$_GET['jour'])?$jour=$_GET['jour']:$jour=2; -if(isset($_GET['min'])){ - $min = $_GET['min']; -}else{ - $min = 0; + $contenu_xml = file_get_contents('listechainetelepoche.txt'); + $ereg = '"(.{1,3})" = "(.{1,30})"\[end\]'; + preg_match_all("/$ereg/s", $contenu_xml, $valeur); + +function multiarray_search($arrayVet, $campo, $valor){ + while(isset($arrayVet[key($arrayVet)])){ + if($arrayVet[key($arrayVet)][$campo] == $valor){ + return key($arrayVet); + } + next($arrayVet); + } + return -1; } -if(filemtime('epg.xml')+86400<time()){ -$value = file_get_contents('http://easybobox.free.fr/epg.xml'); -file_put_contents('epg.xml', $value); +foreach($valeur[1] as $key => $val){ + $cat = explode('|',$valeur[2][$key]); + $ico = $cat[1]; + if(eregi("France 3",$cat[1])){ + $ico = "France 3"; + }elseif(eregi("nantes",$cat[1])){ + $ico = "Telenantes_Nantes 7"; + } + $CHAINES[] = array('id'=>intval($valeur[1][$key]), 'num'=>$cat[2], 'nom'=>utf8_decode($cat[1]), 'ico'=>trim(str_replace(array('>',' !',' ','\xE9','\xEE','\xF4'),array('','','','e','i','o'),$ico)).'.gif'); } - - $contenu = @file_get_contents ($USER.'multiposte.m3u'); - $ereg = '#EXTINF:0,(.{1,3}) - (.{1,40})rtsp:\/\/mafreebox.freebox.fr\/freeboxtv\/s?t?r?e?a?m?\??i?d?=?(.{1,3})'; - preg_match_all("/$ereg/s", $contenu, $valeur); + +if(isset($_GET['chaine'])){ + $chaine=$_GET['chaine']; + // R\xE9cup\xE9ration du canal et n\xB0 chaine freebox + $key = multiarray_search($CHAINES, 'id', $chaine); + $chaine = $CHAINES[$key]; +} + +function infos_emissions($id,$debut,$fin){ + if($id!=''){ + $infos = true; + $contenu_html = file_get_contents ('http://telepoche.guidetele.com/fiche/emi_'.$id); + $ereg = "<span class=\"noir11\">(.{1,1000})<\/span><br \/>"; + preg_match("/$ereg/s",$contenu_html, $content); -function search_chan($chan){ -global $USER, $valeur; - if($chan=='tf1' OR $chan=='canalplus'){ - $CHAINE=array('id'=>'inc', 'nom'=>$chan, 'num'=>'inc', 'ico'=>$chan.'.gif'); - }else{ - $id=0; - $chgmt=intval(abs(count($valeur[1]) / 2)); - - foreach($valeur[2] as $key => $value){ + $ereg = '<td width="343" class="ro15">(.{1,50})<\/td>'; + preg_match("/$ereg/s",$contenu_html, $titre); - $ico = utf8_decode($valeur[2][$key]); - if (eregi("France 3",$valeur[2][$key])){ - $ico = "France 3"; - }elseif (eregi("nantes",$valeur[2][$key])){ - $ico = "Telenantes_Nantes 7"; - } - - if(eregi($chan,str_replace(' ','',trim(utf8_decode($valeur[2][$key]))))){ - $CHAINE=array('id'=>trim($valeur[1][$key]), 'nom'=>trim(utf8_decode($valeur[2][$key])), 'num'=>trim($valeur[3][$key]), 'ico'=>trim(str_replace(array('>',' !',' ','\xE9','\xEE','\xF4'),array('','','','e','i','o'),$ico)).'.gif'); - } - } - } -return $CHAINE; + $ereg = "<span class=\"noir11\">Pr\xE9sentateur<\/span><span class=\"noir11r\"> : (.{1,30})<\/span><br \/>"; + preg_match("/$ereg/s",$contenu_html, $presentateur); + + $ereg = '<td width="200" valign="top"><img src="(.{1,100})"><\/td>'; + preg_match("/$ereg/s",$contenu_html, $icone); + + $ereg = "<img src='\/img\/(.)e.gif' height='10' width='22'>"; + preg_match("/$ereg/s",$contenu_html, $note); + + $ereg = '<span class="noir11">Réalisateur<\/span><span class="noir11r"> : (.{1,40})<\/span><br \/>'; + preg_match("/$ereg/s",$contenu_html, $realisateur); + + $ereg = '<span class="noir11">(.{1,75})<\/span><br\/>'; + preg_match("/$ereg/s",$contenu_html, $categorie); + + $ereg = '<span class="noir11">HISTOIRE<\/span> <span class="noir11r">: (.{1,300})<\/span><\/p>'; + preg_match("/$ereg/s",$contenu_html, $histoire1); + + $ereg = '<span class="noir11">RESUME<\/span> <span class="noir11r">: (.{1,600})<\/span><\/p>'; + preg_match("/$ereg/s",$contenu_html, $histoire2); + + $ereg = '<span class="noir11">AVIS<\/span> <span class="noir11r">: (.{1,600})<\/span><\/p>'; + preg_match("/$ereg/s",$contenu_html, $histoire3); + + $ereg = '<span class="noir11r">Nationalit\xE9 : (.{1,75})<\/span><br>'; + preg_match("/$ereg/s",$contenu_html, $nationalite); + }else{ + $infos = false; + } + $EMISSION=array('debut'=>$debut, + 'fin'=>$fin, + 'titre'=>$titre[1], + 'description'=>strip_tags($histoire1[1]).'<br> <br>'.strip_tags($histoire2[1]).'<br> <br>'.strip_tags($histoire3[1]), + 'categorie'=>$categorie[1], + 'realisateur'=>$realisateur[1], + 'duree'=>floatval(date('i',($fin-$debut)))+60*(floatval(date('G',($fin-$debut)))-1), + 'nationalite'=>$nationalite[1], + 'note'=>$note[1], + 'icone'=>'http://static.digitalmondadori.fr/gtv/visu'.str_replace('/c_img','',$icone[1]), + 'presentateur'=>$presentateur[1], + 'infos'=>$infos); + RETURN $EMISSION; } +function programme_chaine($chaine, $jour){ - include "class.phxmltvparser.php"; - include "class.collection.php"; - include_once "phxpconfig.php"; + $contenu_html = file_get_contents('http://telepoche.guidetele.com/gtvnew/journee?openagent&c='.$chaine['id'].'&d='.$jour.'&h=0'); + $ereg = "showmenu\('(.{1,3})h(.{1,3})-(.{1,3})h(.{1,3})<br> (.{1,40})<br> Showview : (.{1,8})','(.{1,100})'\)\" onMouseout=\"hidemenu\(\)\" onclick=\"(.{1,80})\""; + preg_match_all("/$ereg/s", utf8_encode($contenu_html), $valeurs); + $tmp = array_unique($valeurs[7]); -/* function getLink($prgItem) - { - $title = $prgItem->title; - $title = eregi_replace('\xE4', 'ae', $title); - $title = eregi_replace('\xF6', 'oe', $title); - $title = eregi_replace('\xFC', 'ue', $title); - $title = eregi_replace('\xEE', 'ss', $title); + foreach($tmp as $key => $value){ + + $ereg = "fiche\('(.{1,8})'\);"; + unset($val); + preg_match("/$ereg/s",$valeurs[8][$key], $val); + + $debut = mktime($valeurs[1][$key],$valeurs[2][$key],0,date('m'),date('d')+($jour-2),date('Y')); + $fin = mktime($valeurs[3][$key],$valeurs[4][$key],0,date('m'),date('d')+($jour-2),date('Y')); - $title = ucwords($title); //ucase first letter - - $title = eregi_replace("[^a-z0-9_]","",$title); //strip all special chars - - $paras = '&chan=' . $prgItem->channel; - $paras .= '&date=' . $prgItem->date; - $paras .= '&start=' . htmlspecialchars($prgItem->formatStartTime()); - $paras .= '&stop=' . htmlspecialchars($prgItem->formatStopTime()); - $paras .= '&title=' . $title; - - $call = '<A class="prg_title" href="' . PRG_CALL . $paras . '" name="record" target="blank">' . $prgItem->title . '</A>'; - - return($call); - } - - - // view ordered by channel - - function dump($prgObj, $date, $catFilter) - { - echo '<div class="prg_date">' . substr($date,6,2) . '.' . substr($date,4,2) . '</div>'; - - - echo "<table>"; - - foreach ($prgObj->arrData as $channel => $arrItems) { - echo "<tr>"; - - echo '<td class="prg_channel">'; - echo "$channel<br>"; - echo "</td>"; - - foreach ($arrItems as $start => $item) { - if(strlen($catFilter) > 0) - $hit = eregi($catFilter, $item->category); - else - $hit = true; - - - if($hit) - { - echo '<td class="prg_cell">'; - - $title = $item->title; - $title = eregi_replace('\xE4', 'ae', $title); - $title = eregi_replace('\xF6', 'oe', $title); - $title = eregi_replace('\xFC', 'ue', $title); - $title = eregi_replace('\xEE', 'ss', $title); - - $title =ucwords($title); //ucase first letter - - $title = eregi_replace("[^a-z0-9_]","",$title); //strip all special characters - - $paras = '&chan=' . $channel; - $paras .= '&date=' . $item->date; - $paras .= '&start=' . htmlspecialchars($item->formatStartTime()); - $paras .= '&stop=' . htmlspecialchars($item->formatStopTime()); - $paras .= '&title=' . $title; - - $call = '<A class="prg_title" href="neu.php?action=show' . $paras . '" name="record" target="blank">' . $item->title . '</A>'; - - echo $call . "<br>"; - echo '<div class="prg_subtitle">' . $item->subtitle . '</div>'; - echo '<div class="prg_extra_data">'; - echo $item->formatStartTime() . "-" . $item->formatStopTime() . "<br>"; - echo $item->category ; - echo '</div>'; - - echo '<div class="prg_desc">'; - echo $item->desc; - echo '</div>'; - - echo "</td>"; - } - } - - echo "</tr>"; - - - } - - echo "</table>"; - } - -*/ - - -//=================================================================================================================================================== -//--- main function --- -//=================================================================================================================================================== - - $xml = xml_parser_create(); - $xtvp = new PHxmltvParser; - - //$xtvp->setDate($date); - - xml_set_object($xml, $xtvp); - xml_set_element_handler($xml, 'start_element', 'end_element'); - xml_set_character_data_handler($xml, 'character_data'); - xml_parser_set_option($xml, XML_OPTION_CASE_FOLDING, false); - -// $file = "../programm.xml"; -// $file = "test.xml"; - //$file="http://www.tuyaux-turf.com/divers/TVguide.xml"; - $file="epg.xml"; - $fp = fopen($file, 'r') or die("unable to open file!"); - - while($data = fread($fp, 4096)) { - xml_parse($xml, $data, feof($fp)) or die("unable to parse data!"); - } - - fclose($fp); - - xml_parser_free($xml); - - //------------------------ - $PrgDataObj = $xtvp->getPrgDataObj(); - //dump($PrgDataObj, $date, $catFilter); - - $channels = new collection; - $dates = new collection; - $categories = new collection; - - //echo "$PrgDataObj->idxMax<br>"; - $prgitem = $PrgDataObj->getFirst(); - - while(!is_null($prgitem)) { - $channels->add($prgitem->channel); - $dates->add($prgitem->date); - $categories->add($prgitem->category); - - $prgitem = $PrgDataObj->getNext(); - } - - $channels->sort(); - $dates->sort(); - $categories->sort(); - $PrgDataObj->orderByDateTime(); - - $firstdate = $dates->getFirst(); - - if(isset($_GET['cboDate']) AND isset($_GET['cboCateg'])){ - $dat = $dates->getFirst(); - while(!is_null($dat)) { - if($dat == $_GET['cboDate'] || $_GET['cboDate'] == OPT_ALL){ - $prgitem = $PrgDataObj->getFirst(); - while(!is_null($prgitem)) { - if($prgitem->date == $dat && ($prgitem->channel == $_GET['cboCateg'] || $_GET['cboCateg'] == OPT_ALL)) { - $EMISSIONS[] = array('debut'=>$prgitem->start, 'fin'=>$prgitem->stop, 'titre'=>utf8_decode($prgitem->title), 'specialid'=>md5(utf8_decode($prgitem->title).$prgitem->start.$prgitem->stop.$prgitem->channel)); - } - if(md5(utf8_decode($prgitem->title).$prgitem->start.$prgitem->stop.$prgitem->channel) == $_GET['indic_name']){ - $EMISSION=array('debut'=>$prgitem->start, - 'fin'=>$prgitem->stop, - 'titre'=>utf8_decode($prgitem->title), - 'soustitre'=>utf8_decode($prgitem->subtitle), - 'description'=>utf8_decode($prgitem->desc), - 'categorie'=>utf8_decode($prgitem->category), - 'episode'=>utf8_decode($prgitem->episode), - 'realisateur'=>utf8_decode($prgitem->director), - 'duree'=>utf8_decode($prgitem->lenght), - 'acteur'=>utf8_decode($prgitem->acteur), - 'note'=>utf8_decode($prgitem->note), - 'icone'=>utf8_decode($prgitem->icon), - 'presentateur'=>utf8_decode($prgitem->presentateur)); - } - $prgitem = $PrgDataObj->getNext(); - - } - } - $dat = $dates->getNext(); - } - - }else{ - $categ = $channels->getFirst(); - while(!is_null($categ)) { - $info_chaine = search_chan($categ); - $CHAINES[]=array('nom'=>$categ, 'indicatif'=>$categ, 'ico'=>$info_chaine['ico'], 'recordable'=>true); - $categ = $channels->getNext(); - } - } - - // Cr\xE9e la liste des jours disponibles - $dat = $dates->getFirst(); - while(!is_null($dat)) { - $DATES[]=$dat; - $dat = $dates->getNext(); - } - - // Fonction permettant de transformer les dates comme il faut - function rebuild_date($date){ - $year = substr($date, 0, 4); - $month = substr($date, 4, 2); - $day = substr($date, 6, 2); - return($day.'/'.$month.'/'.$year); + if($debut<mktime(4,0,0,date('m'),date('d')+($jour-2),date('Y')) AND $key>=(count($tmp)/2)){ + $debut = mktime($valeurs[1][$key],$valeurs[2][$key],0,date('m'),date('d')+($jour-1),date('Y')); + $fin = mktime($valeurs[3][$key],$valeurs[4][$key],0,date('m'),date('d')+($jour-1),date('Y')); + }elseif($fin<=mktime(4,0,0,date('m'),date('d')+($jour-2),date('Y')) AND $key>=(count($tmp)/2)){ + $fin = mktime($valeurs[3][$key],$valeurs[4][$key],0,date('m'),date('d')+($jour-1),date('Y')); } - - $smarty->assign('cboDate',$_GET['cboDate']); - $smarty->assign('cboCateg',$_GET['cboCateg']); - $smarty->assign('MIN',$_GET['min']); - - if(isset($EMISSION)){ - $info_chaine = search_chan($_GET['cboCateg']); - $smarty->assign('info_chaine',$info_chaine); - $LINK['red'] = 'tvprogram.php?cboDate='.$_GET['cboDate'].'&cboCateg='.urlencode($_GET['cboCateg']).'&min='.$min; - $smarty->assign('TITRE','Programme t\xE9l\xE9 - '.urldecode($_GET['cboCateg']).' - '.date('d/m/Y', $_GET['cboDate'])); - $smarty->assign('EMISSION',$EMISSION); - $smarty->assign('CONTENT',$smarty->fetch('guidetv.tpl')); + $EMISSION[] = array('debut'=>$debut, + 'fin'=>$fin, + 'titre'=>utf8_decode($valeurs[7][$key]), + 'fiche'=>$val[1]); + } +RETURN $EMISSION; +} - }elseif(isset($EMISSIONS)) { +$smarty->assign('jour',$jour); +$smarty->assign('chaine',$chaine); +$smarty->assign('CHAINES',$CHAINES); +$smarty->assign('MIN',$min); + + if(isset($_GET['emission'])){ - $info_chaine = search_chan($_GET['cboCateg']); - $smarty->assign('info_chaine',$info_chaine); + $LINK['red'] = 'tvprogram.php?jour='.$jour.'&chaine='.$chaine['id'].'&min='.$min; + $smarty->assign('TITRE','Programme t\xE9l\xE9 - '.$chaine['nom'].' - '.strftime("%A",mktime(0,0,0,date('m'),date('d')+($jour-1),date('Y'))).' '.date("d",mktime(0,0,0,date('m'),date('d')+($jour-1),date('Y')))); + $smarty->assign('EMISSION',infos_emissions($_GET['emission'],$_GET['debut'],$_GET['fin'])); + $smarty->assign('CONTENT',$smarty->fetch('guidetv.tpl')); + + }elseif(isset($chaine)){ $LINK['red'] = 'tvprogram.php'; + $info_chaine = '&chaine='.$chaine['id']; - foreach($DATES as $dat_new){ - $MENU_ALT[] = array('lien'=>'tvprogram.php?cboDate='.$dat_new.'&cboCateg='.$_GET['cboCateg'], 'nom'=>date('d/m/Y', $dat_new), 'selected'=>$dat_new==$_GET['cboDate']); - } - - $year = substr($_GET['cboDate'], 0, 4); - $month = substr($_GET['cboDate'], 4, 2); - $day = substr($_GET['cboDate'], 6, 2); - $smarty->assign('TITRE','Programme t\xE9l\xE9 - '.$_GET['cboCateg'].' - '.date('d/m/Y', $_GET['cboDate'])); - $smarty->assign('EMISSIONS',$EMISSIONS); + $smarty->assign('TITRE','Programme t\xE9l\xE9 - '.$chaine['nom'].' - '.strftime("%A",mktime(0,0,0,date('m'),date('d')+($jour-1),date('Y'))).' '.date("d",mktime(0,0,0,date('m'),date('d')+($jour-1),date('Y')))); + $smarty->assign('EMISSIONS',programme_chaine($chaine,$jour)); $smarty->assign('CONTENT',$smarty->fetch('guidetv.tpl')); + }else{ - - $smarty->assign('DATE',$firstdate); - $smarty->assign('CHAINE',$CHAINES); + $LINK['red'] = page_retour_menu(); $smarty->assign('CONTENT',$smarty->fetch('guidetv.tpl')); } + + +$MENU_ALT[] = array('lien'=>'tvprogram.php?jour=2'.$info_chaine, 'nom'=>'Aujourd\'hui', 'selected'=>$date==2); +$MENU_ALT[] = array('lien'=>'tvprogram.php?jour=3'.$info_chaine, 'nom'=>'Demain', 'selected'=>$date==3); +for($i = 4; $i <= 7 ;$i++){ + $MENU_ALT[] = array('lien'=>'tvprogram.php?jour='.$i.$info_chaine, 'nom'=>ucfirst(strftime("%a",mktime(0,0,0,date('m'),date('d')+($i-2),date('Y')))).' '.date("d",mktime(0,0,0,date('m'),date('d')+($i-1),date('Y'))), 'selected'=>$date==$i); +} + $smarty->display('interface.tpl'); ?> Modified: trunk/module/jt/flux.xml =================================================================== --- trunk/module/jt/flux.xml 2007-02-25 10:13:33 UTC (rev 86) +++ trunk/module/jt/flux.xml 2007-03-03 21:43:07 UTC (rev 87) @@ -2,8 +2,8 @@ <rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"> <channel> <chaine name="TF1"> - <flux name="Journal de 13h" jours="0,1,2,3,4,5,6" heure="15" datetype="dm">http://viptf1.yacast.net/tf1jt/jt20d##2006.asf</flux> - <flux name="Journal de 20h" jours="0,1,2,3,4,5,6" heure="21" datetype="dm">http://viptf1.yacast.net/tf1jt/jt20d##2006.asf</flux> + <flux name="Journal de 13h" jours="0,1,2,3,4,5,6" heure="15" datetype="dm">http://viptf1.yacast.net/tf1jt/jt20d##2007.asf</flux> + <flux name="Journal de 20h" jours="0,1,2,3,4,5,6" heure="21" datetype="dm">http://viptf1.yacast.net/tf1jt/jt20d##2007.asf</flux> </chaine> <chaine name="France 2"> <flux name="Journal de 8h" jours="1,2,3,4,5,6" heure="9" datetype="Ymd">mms://sdmc.contents.edgestreams.net/horsgv/regions/siege/infos/f2/8h/HD_8h_##.wmv</flux> Modified: trunk/module/multiposte/enregistrement.tpl =================================================================== --- trunk/module/multiposte/enregistrement.tpl 2007-02-25 10:13:33 UTC (rev 86) +++ trunk/module/multiposte/enregistrement.tpl 2007-03-03 21:43:07 UTC (rev 87) @@ -21,7 +21,7 @@ <tr height="20"> <td align=center width="20" height="20" align="center" valign="middle"> {if $ENREGISTREMENT[enregistrement].statut == 'En attente'} - <img src="{$INTERFACE_REP}cancelled.gif" border="0" width="20" height="20"> + <img src="{$INTERFACE_REP}delete.gif" border="0" width="20" height="20"> {else} <img src="{$INTERFACE_REP}finished.gif" border="0" width="20" height="20"> {/if} @@ -34,7 +34,7 @@ <table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{$COLOR}" abgcolor="{#COULEUR_ALINK#}"> <tr height="20"> <td align=center width="20" height="20" align="center" valign="middle"> - <img src="{$INTERFACE_REP}encours.gif" border="0" width="20" height="20"> + <img src="{$INTERFACE_REP}delete.gif" border="0" width="20" height="20"> </td> </tr> </table> Modified: trunk/module/multiposte/index1.php =================================================================== --- trunk/module/multiposte/index1.php 2007-02-25 10:13:33 UTC (rev 86) +++ trunk/module/multiposte/index1.php 2007-03-03 21:43:07 UTC (rev 87) @@ -13,26 +13,20 @@ switch($module){ case 'suppr' : //arr\xEAt d'un enregistrement en cours - if(isset($_GET['id'])){ - $db = sqlite_open('../../_utilisateur/records.db', 0666); - $requete='SELECT * from records WHERE id='.$_GET['id']; - $result = sqlite_query($db,$requete); - $result = sqlite_fetch_array($result); + if(isset($_GET['id'])){ + if(isset($_GET['valide'])){ - $at=exec('at '.$result['task'].' /delete'); - $at.=exec('at '.$result['taskend'].' /delete'); - - - $requete='UPDATE records SET statut=\'Enregistr\xE9\' WHERE id='.$_GET['id']; - $result = sqlite_query($db,$requete); - sqlite_close($db); - $file1 = @file_get_contents("http://127.0.0.1:8082/lecteur/action.html?control=shutdown"); - - $META['refresh']= '2;url=index1.php?module=see'; - - $smarty->assign('AVERTISSEMENT',"Enregistrement interrompu"); - $smarty->display('avertissement.tpl'); - } + $file1 = @file_get_contents('http://localhost:8080/lecteur/stop_rec.php?id='.$_GET['id']); + + $META['refresh']= '2;url=index1.php?module=see'; + + $smarty->assign('AVERTISSEMENT',"Enregistrement interrompu"); + $smarty->display('avertissement.tpl'); + }else{ + $smarty->assign('AVERTISSEMENT','Vous allez supprimer un enregistrement en cours. L\'enregistrement sera interrompu mais la partie d\xE9j\xE0 enregistr\xE9e sera conserv\xE9e. Voulez-vous confirmer ?<br> <br><a href="index1.php?module=suppr&valide=1">Oui</a> - <a href="index1.php">Non</a>'); + $smarty->display('avertissement.tpl'); + } + } break; case 'delete': This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-03-11 07:55:20
|
Revision: 98 http://svn.sourceforge.net/easybox-mod/?rev=98&view=rev Author: aragornis Date: 2007-03-10 23:55:18 -0800 (Sat, 10 Mar 2007) Log Message: ----------- Belles modifs sur le lecteur mp3 Modified Paths: -------------- trunk/module/_explorateur/explorateur.tpl trunk/module/_explorateur/index1.php trunk/module/mp3/catalogue_audio.tpl trunk/module/mp3/index1.php trunk/module/mp3/playlist_audio.tpl Modified: trunk/module/_explorateur/explorateur.tpl =================================================================== --- trunk/module/_explorateur/explorateur.tpl 2007-03-10 13:27:23 UTC (rev 97) +++ trunk/module/_explorateur/explorateur.tpl 2007-03-11 07:55:18 UTC (rev 98) @@ -119,13 +119,29 @@ {assign var="rep_a_affich" value=$REP|cat:'/'|cat:$T_affich[files]} <tr><td colspan="2"><img src="{$SKIN_REP}dossier/folder.gif"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_EXPLO}?directory={$rep_a_affich|realpath|urlencode}&mode={$MODE}" onfocus='aide="Explorer {$T_affich[files]|strip_delimiters|escape:"htmlall"}";'>{$T_affich[files]|truncate:55|strip_delimiters}</a></font></td></tr> {else} -<tr><td width="35"> +<tr> {if $AFF_INFO} - {assign var="nb" value=$T_affich[files]|strrpos:"."} - <a href="fichefilm.php?start={$MIN}&comeback=expl&film={$T_affich[files]|substr:0:$nb|urlencode}&fichier={$REP|cat:'/'|cat:$T_affich[files]|realpath|urlencode}"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}/information.gif" border="0" width="20" height="20"></td></tr></table></a> + <td width="35"> + {assign var="nb" value=$T_affich[files]|strrpos:"."} + <a href="fichefilm.php?start={$MIN}&comeback=expl&film={$T_affich[files]|substr:0:$nb|urlencode}&fichier={$REP|cat:'/'|cat:$T_affich[files]|realpath|urlencode}"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}/information.gif" border="0" width="20" height="20"></td></tr></table></a> + </td> + {elseif $LECTEUR_AUDIO} + <td width="60"> + <table cellpadding="0" cellspacing="0" width="60"><tr><td width="30"> + <a href="{$PAGE_LECT}?{$OPT_LIENS}toplay_file={$T_affich[files]|urlencode}&toplay_rep={$REP|urlencode}"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}/jouer.gif" border="0" width="20" height="20"></td></tr></table></a> + </td><td width="30"> + <a href="{$PAGE_LECT}?{$OPT_LIENS}toplay_file={$T_affich[files]|urlencode}&toplay_rep={$REP|urlencode}&option=1"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}/ajouter.gif" border="0" width="20" height="20"></td></tr></table></a> + </td></tr></table> + </td> + {else} + <td></td> {/if} - </td><td>{if NOT $AFF_INFO}<img src="{$SKIN_REP}dossier/{$ICONE_FICHIER}" width="16" height="16"> {/if}<font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_LECT}?{$OPT_LIENS}toplay_file={$T_affich[files]|urlencode}&toplay_rep={$REP|urlencode}" onfocus='aide="Jouer {$T_affich[files]|strip_delimiters|escape:"htmlall"}";'>{$T_affich[files]|strip_delimiters|truncate:52}</a> -</font></td></tr> + + <td> + {if (NOT $AFF_INFO) AND (NOT $LECTEUR_AUDIO)}<img src="{$SKIN_REP}dossier/{$ICONE_FICHIER}" width="16" height="16"> {/if} + <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_LECT}?{$OPT_LIENS}toplay_file={$T_affich[files]|urlencode}&toplay_rep={$REP|urlencode}" onfocus='aide="Jouer {$T_affich[files]|strip_delimiters|escape:"htmlall"}";'>{$T_affich[files]|strip_delimiters|truncate:52}</a></font> + + </td></tr> {/if} {/section} @@ -146,6 +162,9 @@ {if $AFF_FAVORIS} <a href="{$RACINE_REP}module/favoris/index1.php?ajout={$REP|urlencode}&nom={$REP}" onfocus='aide="Ajouter le dossier aux favoris";'><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$SKIN_REP}dossier/favoris.gif" border="0" width="20" height="20"></td></tr></table></a> {/if} +{if $LECTEUR_AUDIO} +<var name=aide width=250> +{/if} </td></tr></table> </td></tr> Modified: trunk/module/_explorateur/index1.php =================================================================== --- trunk/module/_explorateur/index1.php 2007-03-10 13:27:23 UTC (rev 97) +++ trunk/module/_explorateur/index1.php 2007-03-11 07:55:18 UTC (rev 98) @@ -182,6 +182,7 @@ $smarty->assign('LETTRE_CDDA',$rep_copy{0}); $smarty->assign('ICONE_FICHIER',$icone_fichier); $smarty->assign('OPT_LIENS',$option_liens); +$smarty->assign('LECTEUR_AUDIO',$lecteur_audio); $path=PATH(); $smarty->assign('CHEMIN_REP',$path); Modified: trunk/module/mp3/catalogue_audio.tpl =================================================================== --- trunk/module/mp3/catalogue_audio.tpl 2007-03-10 13:27:23 UTC (rev 97) +++ trunk/module/mp3/catalogue_audio.tpl 2007-03-11 07:55:18 UTC (rev 98) @@ -37,16 +37,25 @@ {cycle name=color assign=COLOR print=false values="`$smarty.config.COULEUR_INTERFACE1`,`$smarty.config.COULEUR_INTERFACE2`"} - <tr><td width="480" bgcolor="{$COLOR}"><img src="{$SKIN_REP}dossier/mp3.gif"> - + <tr> {if $type=='ch'} - - <a href="playdb.php?toplay={$rows[fichiers].filename|realpath|urlencode}"><font color=#0000003f>{$rows[fichiers].name|truncate:60}</font></a></td> - {else} - - <a href="playdb.php?wf={$field}&wl={$rows[fichiers].affichage|truncate:60|urlencode}"><font color=#0000003f family="Symbol">T</font></a> <a hRef="lecteuraudio.php?mode=bib&t={$t}&wf={$field}&wl={$rows[fichiers].affichage|truncate:60|urlencode}"><font color=#0000003f>{$rows[fichiers].affichage|truncate:60}</font></a></td></tr> - {/if} - + <td width="30" bgcolor="{$COLOR}"> + <a href="playdb.php?toplay={$rows[fichiers].filename|realpath|urlencode}"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{$COLOR}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}/jouer.gif" border="0" width="20" height="20"></td></tr></table></a> + </td><td width="30" bgcolor="{$COLOR}"> + <a href="playdb.php?toplay={$rows[fichiers].filename|realpath|urlencode}&option=1"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{$COLOR}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}/ajouter.gif" border="0" width="20" height="20"></td></tr></table></a> + </td><td width="420" bgcolor="{$COLOR}"> + <font color=#0000003f>{$rows[fichiers].name|truncate:60}</font> + </td> + {else} + <td width="30" bgcolor="{$COLOR}"> + <a href="playdb.php?wf={$field}&wl={$rows[fichiers].affichage|truncate:60|urlencode}"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{$COLOR}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}/jouer.gif" border="0" width="20" height="20"></td></tr></table></a> + </td><td width="30" bgcolor="{$COLOR}"> + <a href="playdb.php?wf={$field}&wl={$rows[fichiers].affichage|truncate:60|urlencode}&option=1"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{$COLOR}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}/ajouter.gif" border="0" width="20" height="20"></td></tr></table></a> + </td><td width="420" bgcolor="{$COLOR}"> + <a hRef="lecteuraudio.php?mode=bib&t={$t}&wf={$field}&wl={$rows[fichiers].affichage|truncate:60|urlencode}"><font color=#0000003f>{$rows[fichiers].affichage|truncate:60}</font></a> + </td> + {/if} + </tr> {sectionelse} Modified: trunk/module/mp3/index1.php =================================================================== --- trunk/module/mp3/index1.php 2007-03-10 13:27:23 UTC (rev 97) +++ trunk/module/mp3/index1.php 2007-03-11 07:55:18 UTC (rev 98) @@ -16,6 +16,7 @@ $page_lect_rep = 'playdb.php'; $play_rep_txt = "Lire tout le dossier r\xE9cursivement"; $aff_cdda = "1"; +$lecteur_audio = true; include($EXPLORATEUR); Modified: trunk/module/mp3/playlist_audio.tpl =================================================================== --- trunk/module/mp3/playlist_audio.tpl 2007-03-10 13:27:23 UTC (rev 97) +++ trunk/module/mp3/playlist_audio.tpl 2007-03-11 07:55:18 UTC (rev 98) @@ -9,7 +9,7 @@ Auteur : {$info.auteur_flux|strip_tags}<br> Description : {$info.description|strip_tags}<br> - <img src="{$IMG2FBX}{$info.image}&cache=1" border="0"><br> <br> + <img src="{$IMG2FBX}{$info.image}&cache=1&new_width=150&new_height=150" border="0" width="150" height="150"><br> <br> <center><u>En cours d'\xE9coute</u></center><br> @@ -25,7 +25,7 @@ <img src="{$SKIN_REP}dossier/mp3.gif" width="16" height="16"> <a href=lecteuraudio.php?action=save&m3u_save=1&play_m3u={$playlists[pl]|realpath|urlencode}>{$playlists[pl]|realpath|extract_name|truncate:130:''}.m3u</a><br> {/section} -{elseif count($pl)==0 OR $action=='load' OR $VLC.etat=='stop'} +{elseif count($pl)==0 OR $action=='load'} {section name=pl loop=$playlists} {if $smarty.section.pl.first} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-04-28 07:57:14
|
Revision: 130 http://svn.sourceforge.net/easybox-mod/?rev=130&view=rev Author: aragornis Date: 2007-04-28 00:57:07 -0700 (Sat, 28 Apr 2007) Log Message: ----------- Rajout des titres dans mes 3 modules Modified Paths: -------------- trunk/module/clips/index1.php trunk/module/dailymotion/index1.php trunk/module/youtube/index1.php Modified: trunk/module/clips/index1.php =================================================================== --- trunk/module/clips/index1.php 2007-04-27 19:24:05 UTC (rev 129) +++ trunk/module/clips/index1.php 2007-04-28 07:57:07 UTC (rev 130) @@ -11,6 +11,8 @@ array('lien'=>'index1.php?show=tous', 'nom'=>'Tous', 'selected'=>$show=='tous'), array('lien'=>'index1.php?show=rec', 'nom'=>'Recherche', 'selected'=>$show=='rec')); +$title = array('hit'=>'Le Hit 100', 'new'=>'Les nouveaut\xE9s', 'tous'=>'Tous', 'rec'=>'Recherche'); +$smarty->assign('TITRE','Clips - '.$title[$show]); function get_videos_id($page){ $contenu = str_replace("\r\n",'',@file_get_contents($page)); Modified: trunk/module/dailymotion/index1.php =================================================================== --- trunk/module/dailymotion/index1.php 2007-04-27 19:24:05 UTC (rev 129) +++ trunk/module/dailymotion/index1.php 2007-04-28 07:57:07 UTC (rev 130) @@ -11,6 +11,8 @@ array('lien'=>'index1.php?show=note', 'nom'=>'Mieux not\xE9s', 'selected'=>$show=='note'), array('lien'=>'index1.php?show=rec', 'nom'=>'Recherche', 'selected'=>$show=='rec')); +$title = array('hit'=>'Les plus r\xE9cents', 'new'=>'Les plus vus', 'tous'=>'Les mieux not\xE9s', 'rec'=>'Recherche'); +$smarty->assign('TITRE','Vid\xE9os Youtube - '.$title[$show]); function get_videos_id($page){ $xml = simplexml_load_file($page); Modified: trunk/module/youtube/index1.php =================================================================== --- trunk/module/youtube/index1.php 2007-04-27 19:24:05 UTC (rev 129) +++ trunk/module/youtube/index1.php 2007-04-28 07:57:07 UTC (rev 130) @@ -11,6 +11,8 @@ array('lien'=>'index1.php?show=note', 'nom'=>'Mieux not\xE9s', 'selected'=>$show=='note'), array('lien'=>'index1.php?show=rec', 'nom'=>'Recherche', 'selected'=>$show=='rec')); +$title = array('hit'=>'Les plus r\xE9cents', 'new'=>'Les plus vus', 'tous'=>'Les mieux not\xE9s', 'rec'=>'Recherche'); +$smarty->assign('TITRE','Vid\xE9os Youtube - '.$title[$show]); function get_videos_id($page){ $contenu = str_replace("\n",'',@file_get_contents($page)); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-06-02 21:05:13
|
Revision: 177 http://svn.sourceforge.net/easybox-mod/?rev=177&view=rev Author: aragornis Date: 2007-06-02 14:05:12 -0700 (Sat, 02 Jun 2007) Log Message: ----------- - t?\195?\169l?\195?\169sites presque compl?\195?\169tement fonctionnels - r?\195?\169paration d'un pti bug sur la gestion multipage du catalogue audio Modified Paths: -------------- trunk/module/mp3/catalogue.php trunk/module/telesites/index1.php Modified: trunk/module/mp3/catalogue.php =================================================================== --- trunk/module/mp3/catalogue.php 2007-06-02 13:10:16 UTC (rev 176) +++ trunk/module/mp3/catalogue.php 2007-06-02 21:05:12 UTC (rev 177) @@ -116,7 +116,7 @@ $smarty->assign('rows',$RESULT); sqlite_close($db); - start_multi('lecteuraudio.php?mode=bib&t='.$type.'&l='.$l.'&wf='.$wherefield.'&wl='.$wherelike,10,$rows); + start_multi('lecteuraudio.php?mode=bib&t='.$type.'&l='.$letter.'&wf='.$wherefield.'&wl='.$wherelike,10,$rows); $smarty->assign('CONTENT',$smarty->fetch('catalogue_audio.tpl')); } Modified: trunk/module/telesites/index1.php =================================================================== --- trunk/module/telesites/index1.php 2007-06-02 13:10:16 UTC (rev 176) +++ trunk/module/telesites/index1.php 2007-06-02 21:05:12 UTC (rev 177) @@ -32,12 +32,21 @@ $base = $sites[$_GET['siteid']]['url']; } -$contenu = file_get_contents($base); +$contenu = stripslashes(file_get_contents($base)); $info_url = ParseURLplus($base); - -$contenu = preg_replace('/href="(.{1,300})"/se', "'href=\"index1.php?siteid={$_GET['siteid']}&url='.urlencode('http://{$info_url['host']}').stripslashes('$1').'\"';", $contenu); -$contenu = preg_replace('/src="(.{1,300})"/se', "'src=\"{$IMG2FBX}?cache=1&img='.urlencode('http://{$info_url['host']}').'$1'.'\"';", $contenu); +function formaterurl($url){ +global $info_url; + if(eregi('http://',$url)){ + return false; + }elseif(substr($url,0,1)=='/'){ + return urlencode('http://'.$info_url['host']); + }else{ + return urlencode('http://'.$info_url['host'].$info_url['dir'].'/'); + } +} +$contenu = preg_replace('/href="(.{1,100})">/se', "'href=\"index1.php?siteid={$_GET['siteid']}&url='.formaterurl('$1').str_replace('\\\\\\\\','','$1').'\">';", $contenu); +$contenu = preg_replace('/src="(.{1,300})(" \/>|">|"\/>)/se', "'src=\"{$IMG2FBX}?cache=1&img='.formaterurl('$1').str_replace('\\\\\\\\','','$1').'\">';", $contenu); $contenu = str_replace('</body>', '<script language="javascript" src="/fb2ie.js"></script></body>', $contenu); $ereg = '<source>(.{1,800})<\/source>'; @@ -50,14 +59,17 @@ $xml = simplexml_load_string($commandes); $xml2 = simplexml_load_string($commandes2); + +if($res2 = @$xml2->xpath('/backgroundContent/settings')){ +$forcerimage = $res2[0]['stopCurrentlyPlaying']; +} if($res = @$xml->xpath('/url')){ play_fichier('type=20&temps=8000',$res[0],0,'photo'); } -$res2 = $xml2->xpath('/backgroundContent/settings'); -$forcerimage = $res2[0]['stopCurrentlyPlaying']; + echo $contenu; }else{ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-03-18 13:30:36
|
Revision: 107 http://svn.sourceforge.net/easybox-mod/?rev=107&view=rev Author: aragornis Date: 2007-03-17 06:18:47 -0700 (Sat, 17 Mar 2007) Log Message: ----------- la v4 ? Modified Paths: -------------- trunk/module/_explorateur/explorateur.tpl trunk/module/diaporama/explorateur_photo.tpl trunk/module/films/catalogue.php trunk/module/films/catalogue_video.tpl trunk/module/films/films.tpl trunk/module/films/info.php Modified: trunk/module/_explorateur/explorateur.tpl =================================================================== --- trunk/module/_explorateur/explorateur.tpl 2007-03-16 14:27:24 UTC (rev 106) +++ trunk/module/_explorateur/explorateur.tpl 2007-03-17 13:18:47 UTC (rev 107) @@ -4,7 +4,7 @@ <table cellspacing="2" align="center" width="498" valign="middle"><tr valign="middle"> {/if} {if $DISQUES[disques].path == 'reload'} - <td valign="middle" width="50"><img src="{$SKIN_REP}dossier/{$DISQUES[disques].gif}.gif" width="16" height="16"><font size='1'><a href="{$PAGE_EXPLO}?directory={$REP|urlencode}&mode={$MODE}&reload=1&start={$MIN}">Rafr.</a></font></td> + <td valign="middle" width="50"><img src="{$SKIN_REP}dossier/{$DISQUES[disques].gif}.gif" width="16" height="16"><font size='1'><a href="{$PAGE_EXPLO}?directory={$REP|urlencode}&mode={$MODE}&reload=1&start={$MIN}" onfocus='aide="Scanner \xE0 nouveau les disques et lecteurs disponibles'>Rafr.</a></font></td> {else} <td valign="middle"><img src="{$SKIN_REP}dossier/{$DISQUES[disques].gif}.gif" width="16" height="16"><font size='1'><a href="{$PAGE_EXPLO}?directory={$DISQUES[disques].path|urlencode}&mode={$MODE}">{$DISQUES[disques].lettre|strtolower}</a></font></td> {/if} @@ -117,13 +117,13 @@ {section name=files loop=$T_affich max=$NUM_ROW_AFFICH start=$MIN} {if $T_affich[files]|in_array:$T_rep} {assign var="rep_a_affich" value=$REP|cat:'/'|cat:$T_affich[files]} -<tr><td colspan="2"><img src="{$SKIN_REP}dossier/folder.gif"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_EXPLO}?directory={$rep_a_affich|realpath|urlencode}&mode={$MODE}" onfocus='aide="Explorer {$T_affich[files]|strip_delimiters|escape:"htmlall"}";'>{$T_affich[files]|truncate:55|strip_delimiters}</a></font></td></tr> +<tr><td colspan="2"><img src="{$SKIN_REP}dossier/folder.gif"> <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_EXPLO}?directory={$rep_a_affich|realpath|urlencode}&mode={$MODE}" onfocus='aide="Explorer {$T_affich[files]|strip_delimiters|replace:"'":"`"}";'>{$T_affich[files]|truncate:55|strip_delimiters}</a></font></td></tr> {else} <tr> {if $AFF_INFO} <td width="35"> {assign var="nb" value=$T_affich[files]|strrpos:"."} - <a href="fichefilm.php?start={$MIN}&comeback=expl&film={$T_affich[files]|substr:0:$nb|urlencode}&fichier={$REP|cat:'/'|cat:$T_affich[files]|realpath|urlencode}"><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}/information.gif" border="0" width="20" height="20"></td></tr></table></a> + <a href="fichefilm.php?start={$MIN}&comeback=expl&film={$T_affich[files]|substr:0:$nb|urlencode}&fichier={$REP|cat:'/'|cat:$T_affich[files]|realpath|urlencode}" onfocus='aide="Afficher les informations sur {$T_affich[files]|strip_delimiters|replace:"'":"`"}";'><table width="20" height="20" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_ALINK#}"><tr height="20"><td align=center width="20" height="20" align="center" valign="middle"><img src="{$INTERFACE_REP}/information.gif" border="0" width="20" height="20"></td></tr></table></a> </td> {elseif $LECTEUR_AUDIO} <td width="60"> @@ -139,7 +139,7 @@ <td> {if (NOT $AFF_INFO) AND (NOT $LECTEUR_AUDIO)}<img src="{$SKIN_REP}dossier/{$ICONE_FICHIER}" width="16" height="16"> {/if} - <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_LECT}?{$OPT_LIENS}toplay_file={$T_affich[files]|urlencode}&toplay_rep={$REP|urlencode}" onfocus='aide="Jouer {$T_affich[files]|strip_delimiters|escape:"htmlall"}";'>{$T_affich[files]|strip_delimiters|truncate:52}</a></font> + <font size="1"><a {if $smarty.section.disques.first==1}focused {/if}href="{$PAGE_LECT}?{$OPT_LIENS}toplay_file={$T_affich[files]|urlencode}&toplay_rep={$REP|urlencode}" onfocus='aide="Jouer {$T_affich[files]|strip_delimiters|replace:"'":"`"}";'>{$T_affich[files]|strip_delimiters|truncate:52}</a></font> </td></tr> {/if} Modified: trunk/module/diaporama/explorateur_photo.tpl =================================================================== --- trunk/module/diaporama/explorateur_photo.tpl 2007-03-16 14:27:24 UTC (rev 106) +++ trunk/module/diaporama/explorateur_photo.tpl 2007-03-17 13:18:47 UTC (rev 107) @@ -35,15 +35,15 @@ {if $files[files]|in_array:$T_repertoire} {if $DOS} - <td width="100" height="130"><a href="index1.php?rep={$files[files].path|urlencode}" onfocus='aide="{$files[files]|strip_delimiters|replace:"'":"'"}";'><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center"><img border=0 width="64" height="64" src="lecteur.gif"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$files[files].nom} ({$files[files].lettre|strtolower}:)</font></td></tr></table></a></td> + <td width="100" height="130"><a href="index1.php?rep={$files[files].path|urlencode}" onfocus='aide="{$files[files]|strip_delimiters|replace:"'":"`"}";'><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center"><img border=0 width="64" height="64" src="lecteur.gif"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$files[files].nom} ({$files[files].lettre|strtolower}:)</font></td></tr></table></a></td> {else} - <td width="100" height="130"><a href="index1.php?rep={$REP|cat:'/'|cat:$files[files]|urlencode}" onfocus='aide="{$files[files]|strip_delimiters|replace:"'":"'"}";'><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center"><img border=0 width="64" height="64" src="big_dossier.gif"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$files[files]|truncate:20:"":true|wordwrap:10:"<br>":true|strip_delimiters}</font></td></tr></table></a></td> + <td width="100" height="130"><a href="index1.php?rep={$REP|cat:'/'|cat:$files[files]|urlencode}" onfocus='aide="{$files[files]|strip_delimiters|replace:"'":"`"}";'><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center"><img border=0 width="64" height="64" src="big_dossier.gif"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$files[files]|truncate:20:"":true|wordwrap:10:"<br>":true|strip_delimiters}</font></td></tr></table></a></td> {/if} {else} {assign var="dim" value=$REP|cat:'/'|cat:$files[files]|getimagesize} {assign var="newdim" value=$dim.0|get_size:$dim.1} - <td width="100" height="130" valign="middle" align="center"><a href="index1.php?image={$smarty.section.files.index}&rep={$rep_encoded}&start={$MIN}" onfocus='aide="{$files[files]|strip_delimiters|replace:"'":"'"}";'><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center" background="fond_cell.gif"><img width="{$newdim.0}" height="{$newdim.1}" border="0" src="{$RACINE_REP}_framework/lib/img_cr.php?local=1&formatw=88&formath=68&img={$REP|cat:'/'|cat:$files[files]|urlencode}"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$files[files]|truncate:20:"":true|wordwrap:10:"<br>":true|strip_delimiters}</font></td></tr></table></a></td> + <td width="100" height="130" valign="middle" align="center"><a href="index1.php?image={$smarty.section.files.index}&rep={$rep_encoded}&start={$MIN}" onfocus='aide="{$files[files]|strip_delimiters|replace:"'":"`"}";'><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align="center" background="fond_cell.gif"><img width="{$newdim.0}" height="{$newdim.1}" border="0" src="{$RACINE_REP}_framework/lib/img_cr.php?local=1&formatw=88&formath=68&img={$REP|cat:'/'|cat:$files[files]|urlencode}"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$files[files]|truncate:20:"":true|wordwrap:10:"<br>":true|strip_delimiters}</font></td></tr></table></a></td> {/if} Modified: trunk/module/films/catalogue.php =================================================================== --- trunk/module/films/catalogue.php 2007-03-16 14:27:24 UTC (rev 106) +++ trunk/module/films/catalogue.php 2007-03-17 13:18:47 UTC (rev 107) @@ -31,7 +31,20 @@ $sens1['name'] = $sens1['perso'] = $sens1['date'] = $sens1['film'] = $sens1['genre'] = $sens1['id'] = $sens; $sens1[$tri] = $sens_contraire; - + $META['titre'] = ''; + $META['real'] = ''; + $META['avec'] = ''; + $META['film'] = ''; + $META['dure'] = ''; + $META['genr'] = ''; + $META['syno'] = ''; + $META['realisateur'] = ''; + $META['acteurs'] = ''; + $META['nationalite'] = ''; + $META['duree'] = ''; + $META['genre'] = ''; + $META['synopsis'] = ''; + save_variable('lastexpl', 'bibliotheque'); save_variable('bib_min', $min); save_variable('retour_fiche_film', 'bibliotheque'); Modified: trunk/module/films/catalogue_video.tpl =================================================================== --- trunk/module/films/catalogue_video.tpl 2007-03-16 14:27:24 UTC (rev 106) +++ trunk/module/films/catalogue_video.tpl 2007-03-17 13:18:47 UTC (rev 107) @@ -1,19 +1,19 @@ {if $tri=="name" OR $tri=="date" OR $tri=="perso" OR $tri=="id"} - {assign var=NUM_ROW_AFFICH value=15} + {assign var=NUM_ROW_AFFICH value=10} {section name=files loop=$result max=$NUM_ROW_AFFICH start=$MIN} {cycle name=place assign=place print=false values="4,3,2,1,0"} {if $smarty.section.files.first} - <table border="0" cellpadding="0" cellspacing="0" width="500" height="436" align="center"><tr> + <table border="0" cellpadding="0" cellspacing="0" width="500" align="center"><tr> {if $MIN!=0} {assign var=temp value=$MIN-$NUM_ROW_AFFICH} {attribbouton touche="green" lien="catalogue.php?start=$temp&tri=$tri&sens=$sens"} - <td colspan="5" align=center><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> <a href="catalogue.php?start={$temp}&tri={$tri}&sens={$sens}">Pr\xE9c\xE9dent</a> <a href="catalogue.php?start=0&tri={$tri}&sens={$sens}">D\xE9but</a></td></tr><tr> + <td colspan="5" align=center><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> <a href="catalogue.php?start={$temp}&tri={$tri}&sens={$sens}" onfocus='real="";avec="";film="";dure="";genr="";syno="";realisateur="";acteurs="";nationalite="";duree="";genre="";synopsis="";'>Pr\xE9c\xE9dent</a> <a href="catalogue.php?start=0&tri={$tri}&sens={$sens}" onfocus='real="";avec="";film="";dure="";genr="";syno="";realisateur="";acteurs="";nationalite="";duree="";genre="";synopsis="";'>D\xE9but</a></td></tr><tr> {/if} {/if} {if $tri=="name" OR $tri=="date" OR $tri=="id"} - <td width="100" height="130"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}"><tr height="80"><td width="100" height="80" valign="middle" align=center><img width="60" height="80" border="0" src="{$IMG2FBX}{$result[files].img|urlencode}&new_width=60&new_height=80&cache=1"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><a href="play.php?toplay={$result[files].dir|realpath|urlencode}"><font size="1">{$result[files].name|truncate:12:'..':true}</font></a><br><font size="1">{if $result[files].sortie != 2}({$result[files].sortie|default:200|date_format:"%Y"}) - {/if}<a href="fichefilm.php?film={$result[files].name|urlencode}&fichier={$result[files].dir|realpath|urlencode}&start={$MIN}">Infos</a></font></td></tr></table></td> + <td width="100" height="130"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}"><tr height="80"><td width="100" height="80" valign="middle" align=center><img width="60" height="80" border="0" src="{$IMG2FBX}{$result[files].img|urlencode}&new_width=60&new_height=80&cache=1"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><a href="play.php?toplay={$result[files].dir|realpath|urlencode}" onfocus='real="R\xE9alisateur";avec="Avec";film="Film";dure="Dur\xE9e";genr="Genre";syno="Synopsis";synopsis="{$result[files].Synopsis|strip_delimiters|replace:"'":"`"|replace:"\"":"``"}";titre="{$result[files].name|strip_delimiters|replace:"'":"`"|replace:"\"":"``"} ({$result[files].sortie|date_format:"%d/%m/%Y"|strip_delimiters|replace:"'":"`"|replace:"\"":"``"})";realisateur="{$result[files].realisateur|strip_delimiters|replace:"'":"`"|replace:"\"":"``"}";acteurs="{$result[files].avec|strip_delimiters|replace:"'":"`"|replace:"\"":"``"}";nationalite="{$result[files].film|strip_delimiters|replace:"'":"`"|replace:"\"":"``"} ({$result[files].production})";genre="{$result[files].genre|strip_delimiters|replace:"'":"`"|replace:"\"":"``"}";duree="{$result[files].Duree|strip_delimiters|replace:"'":"`"|replace:"\"":"``"}";'><font size="1">{$result[files].name|truncate:12:'..':true}</font></a><br><font size="1">{if $result[files].sortie != 2}({$result[files].sortie|default:200|date_format:"%Y"}) - {/if}<a href="fichefilm.php?film={$result[files].name|urlencode}&fichier={$result[files].dir|realpath|urlencode}&start={$MIN}">Infos</a></font></td></tr></table></td> {elseif $tri=="perso"} <td width="100" height="130"><a href="catalogue.php?tri=perso&start={$MIN}&sens={$sens}&suiv={$result[files].nom|urlencode}"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="80"><td width="100" height="80" valign="middle" align=center><img width="60" height="80" border="0" src="{$IMG2FBX}{$result[files].img|urlencode}&new_width=60&new_height=80&cache=1"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$result[files].nom|wordwrap:18:"<br>":true}</font></td></tr></table></a></td> {/if} @@ -39,13 +39,24 @@ {if $MIN+$NUM_ROW_AFFICH < $rows} {assign var=temp value=$MIN+$NUM_ROW_AFFICH} {attribbouton touche="blue" lien="catalogue.php?start=$temp&tri=$tri&sens=$sens"} - <tr><td colspan="5" align=center height=25 valign=bottom><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a href="catalogue.php?start={$temp}&tri={$tri}&sens={$sens}">Suivant</a> <a href="catalogue.php?start={$rows-$NUM_ROW_AFFICH}&tri={$tri}&sens={$sens}">Fin</a></td></tr> + <tr><td colspan="5" align=center height=25 valign=bottom><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a href="catalogue.php?start={$temp}&tri={$tri}&sens={$sens}" onfocus='real="";avec="";film="";dure="";genr="";syno="";realisateur="";acteurs="";nationalite="";duree="";genre="";synopsis="";'>Suivant</a> <a href="catalogue.php?start={$rows-$NUM_ROW_AFFICH}&tri={$tri}&sens={$sens}" onfocus='real="";avec="";film="";dure="";genr="";syno="";realisateur="";acteurs="";nationalite="";duree="";genre="";synopsis="";'>Fin</a></td></tr> {/if} </table> {/if} {/section} + + {if $tri=="name" OR $tri=="date" OR $tri=="id"} + <font size="4"><var name=titre width=500></font><br> + <u><var name=real width=100></u> <font size="1"><var name=realisateur width=400></font><br> + <u><var name=avec width=100></u> <font size="1"><var name=acteurs width=400></font><br> + <u><var name=film width=100></u> <font size="1"><var name=nationalite width=400></font><br> + <u><var name=dure width=100></u> <font size="1"><var name=duree width=400></font><br> + <u><var name=genr width=100></u> <font size="1"><var name=genre width=400></font><br> + <u><var name=syno width=100></u> <font size="1"><var name=synopsis width=400></font><br> + {/if} + {elseif $tri=="perso_suiv"} <table border="0" cellpadding="0" cellspacing="0" align="center"> <tr><td width="120" height="160"><img src="{$IMG2FBX}{$info.img|urlencode}&cache=1"></td> @@ -110,7 +121,7 @@ {/if} {/if} - <td width="100" height="130"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}"><tr height="80"><td width="100" height="80" valign="middle" align=center><img width="60" height="80" border="0" src="{$IMG2FBX}{$result[files].img|urlencode}&new_width=60&new_height=80&cache=1"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><a href="play.php?toplay={$result[files].dir|realpath|urlencode}"><font size="1">{$result[files].name|truncate:12:'..':true}</font></a><br><font size="1">{if $result[files].sortie != 2}({$result[files].sortie|default:200|date_format:"%Y"}) - {/if}<a href="fichefilm.php?film={$result[files].name|urlencode}&fichier={$result[files].dir|realpath|urlencode}&start={$MIN}">Infos</a></font></td></tr></table></td> + <td width="100" height="130"><table border="0" cellpadding="0" cellspacing="0" width="100" height="120" bgcolor="{#COULEUR_FOND1#}"><tr height="80"><td width="100" height="80" valign="middle" align=center><img width="60" height="80" border="0" src="{$IMG2FBX}{$result[files].img|urlencode}&new_width=60&new_height=80&cache=1"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><a href="play.php?toplay={$result[files].dir|realpath|urlencode}" onfocus='real="R\xE9alisateur";avec="Avec";film="Film";dure="Dur\xE9e";genr="Genre";syno="Synopsis";synopsis="{$result[files].Synopsis|strip_delimiters|replace:"'":"`"|replace:"\"":"``"}";titre="{$result[files].name|strip_delimiters|replace:"'":"`"|replace:"\"":"``"} ({$result[files].sortie|date_format:"%d/%m/%Y"|strip_delimiters|replace:"'":"`"|replace:"\"":"``"})";realisateur="{$result[files].realisateur|strip_delimiters|replace:"'":"`"|replace:"\"":"``"}";acteurs="{$result[files].avec|strip_delimiters|replace:"'":"`"|replace:"\"":"``"}";nationalite="{$result[files].film|strip_delimiters|replace:"'":"`"|replace:"\"":"``"} ({$result[files].production})";genre="{$result[files].genre|strip_delimiters|replace:"'":"`"|replace:"\"":"``"}";duree="{$result[files].Duree|strip_delimiters|replace:"'":"`"|replace:"\"":"``"}";'><font size="1">{$result[files].name|truncate:12:'..':true}</font></a><br><font size="1">{if $result[files].sortie != 2}({$result[files].sortie|default:200|date_format:"%Y"}) - {/if}<a href="fichefilm.php?film={$result[files].name|urlencode}&fichier={$result[files].dir|realpath|urlencode}&start={$MIN}">Infos</a></font></td></tr></table></td> {if $smarty.section.files.iteration is div by 5 AND NOT $smarty.section.files.last} </tr><tr> @@ -138,6 +149,13 @@ </table> {/if} - {/section} + + <font size="4"><var name=titre width=500></font><br> + <u><var name=real width=100></u> <font size="1"><var name=realisateur width=400></font><br> + <u><var name=avec width=100></u> <font size="1"><var name=acteurs width=400></font><br> + <u><var name=film width=100></u> <font size="1"><var name=nationalite width=400></font><br> + <u><var name=dure width=100></u> <font size="1"><var name=duree width=400></font><br> + <u><var name=genr width=100></u> <font size="1"><var name=genre width=400></font><br> + <u><var name=syno width=100></u> <font size="1"><var name=synopsis width=400></font><br> {/if} Modified: trunk/module/films/films.tpl =================================================================== --- trunk/module/films/films.tpl 2007-03-16 14:27:24 UTC (rev 106) +++ trunk/module/films/films.tpl 2007-03-17 13:18:47 UTC (rev 107) @@ -59,7 +59,7 @@ <tr><td width="90">Lumi\xE9re</td><td width="5">:</td><td><input bgcolor="{#COULEUR_FOND_RADIO#}" type=hslider name=denc_brightness min=0 max=255 grad=16></td></tr> <tr><td width="90">Contraste</td><td width="5">:</td><td><input bgcolor="{#COULEUR_FOND_RADIO#}" type=hslider name=denc_contrast min='-128' max=127 grad=16></td></tr> <tr><td width="90">Couleur</td><td width="5">:</td><td><input bgcolor="{#COULEUR_FOND_RADIO#}" type=hslider name=denc_saturation min=0 max=255 grad=16></td></tr> -<tr><td width="90">Zoom</td><td width="5">:</td><td><input bgcolor="{#COULEUR_FOND_RADIO#}" type=hslider name=video_output_scale min=25 max=150 grad=5></td></tr> +<tr><td width="90">Zoom</td><td width="5">:</td><td><input bgcolor="{#COULEUR_FOND_RADIO#}" type=hslider name=video_output_scale min=25 max=175 grad=5> - <a href="none" onSelect='video_output_scale="100";'>R\xE9initialiser</a></td></tr> </table> <br> <input bgcolor="{#COULEUR_TEXTBOX#}" type=submit value="Valider les modifications"> @@ -72,7 +72,6 @@ <select name="audio"> {foreach from=$audio item=pistea key=key name=audio} <option value={$key} {if $pistea.1}selected{/if}>{$pistea.0} - {*<input type=radio name=audio bgcolor="{#COULEUR_FOND_RADIO#}" value="{$key}" {if $pistea.1} checked{/if}>{$pistea.0}<br>*} {/foreach} </select> <br> <br> Modified: trunk/module/films/info.php =================================================================== --- trunk/module/films/info.php 2007-03-16 14:27:24 UTC (rev 106) +++ trunk/module/films/info.php 2007-03-17 13:18:47 UTC (rev 107) @@ -157,9 +157,11 @@ if($_ffontsize==""){ $_ffontzise = '32'; } - foreach($sstitre as $key => $value){ - if($value[1]){ - $META['sstitre']=$key; + if(count($sstitre)){ + foreach($sstitre as $key => $value){ + if($value[1]){ + $META['sstitre']=$key; + } } } $smarty->assign('ffontsize',convert_size($_ffontsize)); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-05-01 10:45:57
|
Revision: 136 http://svn.sourceforge.net/easybox-mod/?rev=136&view=rev Author: aragornis Date: 2007-05-01 03:45:52 -0700 (Tue, 01 May 2007) Log Message: ----------- L?\195?\160 c'est bon ;) Added Paths: ----------- trunk/module/allocine/ trunk/module/allocine/allocine.tpl trunk/module/allocine/cache/ trunk/module/allocine/icone.gif trunk/module/allocine/index1.php trunk/module/allocine/jf_extralib.php trunk/module/allocine/playba_allocine.php trunk/module/allocine/video.gif Added: trunk/module/allocine/allocine.tpl =================================================================== --- trunk/module/allocine/allocine.tpl (rev 0) +++ trunk/module/allocine/allocine.tpl 2007-05-01 10:45:52 UTC (rev 136) @@ -0,0 +1,36 @@ +{section name=films loop=$FILMS max=3 start=$MIN} + + {cycle name=place assign=place print=false values="1,0"} + {if $smarty.section.films.first} + {if $MIN==0} + {$DESCRIPTION} + {/if} + + {if $MIN!=0} + {assign var=temp value=$MIN-3} + {attribbouton touche="green" lien="index1.php?start=$temp"} + <a href="index1.php?&start={$temp}"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> Pr\xE9c\xE9dent</a> + {/if} + <table border="0" cellpadding="2" cellspacing="0" width="500" height="360" align="center"><tr> + {/if} + <tr><td width="90" valign="top"><img width="90" height="120" border="0" src="{$IMG2FBX}{$FILMS[films].image|urlencode}&new_width=90&new_height=120&cache=1"></td> + <td valign=top align=left width="410"> + {if $FILMS[films].video!= ''} + <a onfocus='front_panel="{$FILMS[films].titre|truncate:12|replace:"'":"`"|replace:"\"":"``"}";' href="playba_allocine.php?url={$FILMS[films].video|urlencode}&from_start={$MIN}">{$FILMS[films].titre|truncate:40} <img src="video.gif" border=0 width=20 height=20></a> + {else} + {$FILMS[films].titre|truncate:40} + {/if} + <br> + <font size="1">{$FILMS[films].desc|truncate:400}</font> + </td> + </tr> +{/section} +</table> + +{if $MIN+$smarty.section.films.total<count($FILMS)} + {assign var=temp value=$MIN+3} + {attribbouton touche="blue" lien="index1.php?start=$temp"} + <a href="index1.php?start={$temp}"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> Suivant</a> + +{/if} + Added: trunk/module/allocine/icone.gif =================================================================== (Binary files differ) Property changes on: trunk/module/allocine/icone.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/module/allocine/index1.php =================================================================== --- trunk/module/allocine/index1.php (rev 0) +++ trunk/module/allocine/index1.php 2007-05-01 10:45:52 UTC (rev 136) @@ -0,0 +1,50 @@ +<?php +$RACINE_REP = "../../"; +require($RACINE_REP.'_framework/framework.php'); + +include_once('jf_extralib.php'); + +$rss = 'http://rss.allocine.fr/bandesannonces/archos'; +$xml = file_get_contentsJF($rss, true); +$xml = simplexml_load_string($xml); + +$title = utf8_decode($xml->channel->title); +$description = utf8_decode($xml->channel->description); + +$films=array(); +$contents = '<table border="0" cellpadding="0" cellspacing="0" width="500" height="360" align="center">'; +foreach($xml->channel->item as $item) +{ + + $attr = $item->enclosure->attributes(); + $fvideo = ''; + foreach($attr as $k=>$v) + { + if ($k == 'url') + { + $fvideo = (string)$v; + break; + } + } + $ftitre = utf8_decode((string)$item->title); + $fdesc = strip_tags( + utf8_decode((string)$item->description) + ,'<b><br><br/><br />'); + + $fimage = (string)$item->image->url; + $films[] = array('titre'=>$ftitre, 'desc'=>$fdesc, 'video'=>$fvideo, 'image'=>$fimage); + +} + +$LINK['red'] = page_retour_menu(); + +$smarty->assign('content', $contents); + +$smarty->assign('FILMS', $films); +$smarty->assign('TITRE',$title); +$smarty->assign('DESCRIPTION', $description); +$smarty->assign('MIN',$_GET['start']); + +$smarty->assign('CONTENT',$smarty->fetch('allocine.tpl')); +$smarty->display('interface.tpl'); +?> \ No newline at end of file Added: trunk/module/allocine/jf_extralib.php =================================================================== --- trunk/module/allocine/jf_extralib.php (rev 0) +++ trunk/module/allocine/jf_extralib.php 2007-05-01 10:45:52 UTC (rev 136) @@ -0,0 +1,84 @@ +<? +define('PROXY_NAME', ''); +//define('PROXY_NAME', '172.18.234.15'); // +//define('PROXY_PORT', 3128); +define('CACHE_DIR', dirname(__FILE__).'/cache/'); + +function __log($str) +{ +return; +/* + $fd = fopen(dirname(__FILE__).'/log.txt', 'a'); + fputs($fd, date('r').'>'); + fputs($fd, $str); + fputs($fd, "\n"); + fclose($fd); + */ +} + +function proxy_urlJF($proxy_url) +{ + $proxy_cont = ''; + + $proxy_fp = fsockopen(PROXY_NAME, PROXY_PORT); + if (!$proxy_fp) {return false;} + fputs($proxy_fp, "GET $proxy_url HTTP/1.0\r\nHost: $proxy_name\r\n\r\n"); + while(!feof($proxy_fp)) + { + $proxy_cont .= fread($proxy_fp,4096); + } + fclose($proxy_fp); + $proxy_cont = substr($proxy_cont, strpos($proxy_cont,"\r\n\r\n")+4); + return $proxy_cont; +} + +/** + * Cette fonction retourne sous forme de string le contenu d'un fichier ($url). + * Si le fichier est distant, on peut utiliser un cache ($usecache = true) qui + * expirera au bout d'un certain temps ($cachetimeout) + **/ +function file_get_contentsJF($url, $usecache = false, $cachetimeout = 3600) +{ + __log("file_get_contents($url, $usecache, $cachetimeout)"); + if(strpos($url, 'http:') === 0 || + strpos($url, 'https:') === 0 || + strpos($url, 'ftp:') === 0) + { + // Distant. + if ($usecache === false) + { + if (PROXY_NAME != '') + $content = proxy_urlJF($url); + else + $content = file_get_contents($url); + return $content; + } + else + { + // On regarde dans le cache d'abord + $md5url = md5($url); + if (@filemtime(CACHE_DIR.$md5url) < time() - $cachetimeout) + { + if (PROXY_NAME != '') + $content = proxy_urlJF($url); + else + $content = file_get_contents($url); + $fd = fopen(CACHE_DIR.$md5url, 'wb'); + fputs($fd, $content); + fclose($fd); + touch(CACHE_DIR.$md5url); + return $content; + } + else + { + return file_get_contents(CACHE_DIR.$md5url); + } + } + } + else + { + // local + return file_get_contents($url); + } +} +?> \ No newline at end of file Added: trunk/module/allocine/playba_allocine.php =================================================================== --- trunk/module/allocine/playba_allocine.php (rev 0) +++ trunk/module/allocine/playba_allocine.php 2007-05-01 10:45:52 UTC (rev 136) @@ -0,0 +1,49 @@ +<?php /// __JF + +$RACINE_REP = "../../"; +require($RACINE_REP.'_framework/framework.php'); +$BACKGROUND='none'; + +$url = $_REQUEST['url']; + +if ($url == '') +{ +} +else +{ + save_variable('start', $_REQUEST['from_start']); + save_variable('backToURL', dirname($_SERVER['SCRIPT_NAME']).'/index1.php?start='.$_REQUEST['from_start']); + play_fichier('type=40', + str_replace(' ','%20',$url), + 0, + 'backToURL', + $_REQUEST['titre']); + //echo $basename; +} + $LINK['stop']=$MODULE.'films/lecture.php?control=stop'; + $LINK['play']=$MODULE.'films/lecture.php?control=play'; + $LINK['pause']=$MODULE.'films/lecture.php?control=pause'; + $LINK['info']=$MODULE.'films/info.php'; + $LINK['options']=$MODULE.'films/info.php'; + $LINK['blue']=$MODULE.'films/lecture.php?savesignet=1'; + $LINK['red']=$MODULE.'films/lecture.php?next_ss=1'; + $LINK['yellow']=$MODULE.'films/info.php?module=infos'; + $LINK['up']=$MODULE.'films/lecture.php?seek_value=plus'; + $LINK['down']=$MODULE.'films/lecture.php?seek_value=moins'; + + // BDE - RequestID 1588902 + $LINK['next']=$MODULE.'films/lecture.php?control=next'; + $LINK['prev']=$MODULE.'films/lecture.php?control=previous'; + $LINK['rev']=$MODULE.'films/lecture.php?seek_value=moins'; + $LINK['fwd']=$MODULE.'films/lecture.php?seek_value=plus'; + +?> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<html> +<head> +<meta name="refresh" content="0;url=../films/lecture.php"> +<script language="javascript" src="/fb2ie.js"> +</script> +</head> +<body></body></html> + Added: trunk/module/allocine/video.gif =================================================================== (Binary files differ) Property changes on: trunk/module/allocine/video.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |