From: <Mi...@us...> - 2006-10-04 01:47:33
|
Revision: 25 http://svn.sourceforge.net/easybox-mod/?rev=25&view=rev Author: Micht Date: 2006-10-03 00:15:34 -0700 (Tue, 03 Oct 2006) Log Message: ----------- Utilisation de la var de config pour afficher ou non le lien sur les personnes Formatage du code Modified Paths: -------------- trunk/module/films/catalogue.php trunk/module/films/fichefilm.php trunk/module/films/index1.php Modified: trunk/module/films/catalogue.php =================================================================== --- trunk/module/films/catalogue.php 2006-10-03 07:14:10 UTC (rev 24) +++ trunk/module/films/catalogue.php 2006-10-03 07:15:34 UTC (rev 25) @@ -1,67 +1,71 @@ <?php -$RACINE_REP = "../../"; -require($RACINE_REP.'_framework/framework.php'); + $RACINE_REP = "../../"; + require($RACINE_REP.'_framework/framework.php'); + + if (isset($_GET['start'])) $min = max($_GET['start'],0); + else $min = 0; + $smarty->assign('MIN',$min); + + if (isset($_GET['sens'])) $sens = $_GET['sens']; + else $sens = 'bas'; + + if ($sens=='bas') + { + $sens_contraire='haut'; + $sens_rec='asc'; + } else + { + $sens_contraire='bas'; + $sens_rec='desc'; + } + $smarty->assign('sens',$sens); -if (isset($_GET['start'])) { - $min = max($_GET['start'],0); -}else{ - $min = 0; -} - -if (isset($_GET['sens'])) { - $sens = $_GET['sens']; -}else{ - $sens = 'bas'; -} - -($sens=='bas'?$sens_contraire='haut':$sens_contraire='bas'); -$smarty->assign('sens',$sens); - -($sens=='bas'?$sens_rec='asc':$sens_rec='desc'); - -$smarty->assign('MIN',$min); - -($_GET['tri']!=''?$tri=$_GET['tri']:$tri='name'); -$tri = str_replace('_suiv','',$tri); -$smarty->assign('tri',$tri); - -$LINK['red']= $MODULE.'_menu/menu.php'; - -$sens1['name'] = $sens1['perso'] = $sens1['date'] = $sens1['film'] = $sens1['genre'] = $sens; -$sens1[$tri] = $sens_contraire; - - -save_variable('lastexpl', 'bibliotheque'); -save_variable('bib_min', $min); -save_variable('retour_fiche_film', 'bibliotheque'); -save_variable('type_bib', $tri); -save_variable('sens_bib', $sens); -save_variable('suiv_bib', urldecode($_GET['suiv'])); - -$MENU_ALT=array(array('lien'=>'catalogue.php?tri='.$tri.'&sens='.$sens, 'nom'=>'Tri par ', 'selected'=>0), - array('lien'=>'catalogue.php?tri=name&sens='.$sens1['name'], 'nom'=>'<img border="0" src="'.$INTERFACE_REP.$sens.'.gif"> Nom', 'selected'=>$tri=='name', 'front_pannel'=>'NOM'), - array('lien'=>'catalogue.php?tri=date&sens='.$sens1['date'], 'nom'=>'<img border="0" src="'.$INTERFACE_REP.$sens.'.gif"> Date', 'selected'=>$tri=='date', 'front_pannel'=>'DATE'), - array('lien'=>'catalogue.php?tri=perso&sens='.$sens1['perso'], 'nom'=>'<img border="0" src="'.$INTERFACE_REP.$sens.'.gif"> C\xE9l\xE9brit\xE9', 'selected'=>$tri=='perso', 'front_pannel'=>'CELEBRITE'), - array('lien'=>'catalogue.php?tri=film&sens='.$sens1['film'], 'nom'=>'<img border="0" src="'.$INTERFACE_REP.$sens.'.gif"> National.', 'selected'=>$tri=='film', 'front_pannel'=>'NATIONAL.'), - array('lien'=>'catalogue.php?tri=genre&sens='.$sens1['genre'], 'nom'=>'<img border="0" src="'.$INTERFACE_REP.$sens.'.gif"> Genre', 'selected'=>$tri=='genre', 'front_pannel'=>'GENRE')); - - -$db = sqlite_open($USER.'video.db', 0666); - - if($tri=="name"){ + + if ($_GET['tri']!='') $tri=$_GET['tri']; + else $tri='name'; + $tri = str_replace('_suiv','',$tri); + $smarty->assign('tri',$tri); + + $LINK['red']= $MODULE.'_menu/menu.php'; + + $sens1['name'] = $sens1['perso'] = $sens1['date'] = $sens1['film'] = $sens1['genre'] = $sens; + $sens1[$tri] = $sens_contraire; + + + save_variable('lastexpl', 'bibliotheque'); + save_variable('bib_min', $min); + save_variable('retour_fiche_film', 'bibliotheque'); + save_variable('type_bib', $tri); + save_variable('sens_bib', $sens); + save_variable('suiv_bib', urldecode($_GET['suiv'])); + + $MENU_ALT=array(array('lien'=>'catalogue.php?tri='.$tri.'&sens='.$sens, 'nom'=>'Tri par ', 'selected'=>0), + array('lien'=>'catalogue.php?tri=name&sens='.$sens1['name'], 'nom'=>'<img border="0" src="'.$INTERFACE_REP.$sens.'.gif"> Nom', 'selected'=>$tri=='name', 'front_pannel'=>'NOM'), + array('lien'=>'catalogue.php?tri=date&sens='.$sens1['date'], 'nom'=>'<img border="0" src="'.$INTERFACE_REP.$sens.'.gif"> Date', 'selected'=>$tri=='date', 'front_pannel'=>'DATE'), + array('lien'=>'catalogue.php?tri=perso&sens='.$sens1['perso'], 'nom'=>'<img border="0" src="'.$INTERFACE_REP.$sens.'.gif"> C\xE9l\xE9brit\xE9', 'selected'=>$tri=='perso', 'front_pannel'=>'CELEBRITE'), + array('lien'=>'catalogue.php?tri=film&sens='.$sens1['film'], 'nom'=>'<img border="0" src="'.$INTERFACE_REP.$sens.'.gif"> National.', 'selected'=>$tri=='film', 'front_pannel'=>'NATIONAL.'), + array('lien'=>'catalogue.php?tri=genre&sens='.$sens1['genre'], 'nom'=>'<img border="0" src="'.$INTERFACE_REP.$sens.'.gif"> Genre', 'selected'=>$tri=='genre', 'front_pannel'=>'GENRE')); + + $db = sqlite_open($USER.'video.db', 0666); + + if($tri=="name") + { $requete='SELECT * from film WHERE name!=\'\' ORDER BY name '.$sens_rec; $result = sqlite_query($db,$requete); - $smarty->assign('result',sqlite_fetch_all($result)); - $smarty->assign('rows',@sqlite_num_rows($result)); - }elseif($tri=='perso'){ - if (!isset($_GET['suiv']) OR $_GET['suiv']=='') { - $requete='SELECT * from celebrite WHERE nom!=\'\' ORDER BY nom '.$sens_rec; - $result = sqlite_query($db,$requete); - $smarty->assign('result',sqlite_fetch_all($result)); - $smarty->assign('rows',@sqlite_num_rows($result)); - }else{ - $LINK['red']= 'catalogue.php?tri=perso&start='.$min.'&sens='.$sens; - $suiv = urldecode($_GET['suiv']); + $smarty->assign('result',sqlite_fetch_all($result)); + $smarty->assign('rows',@sqlite_num_rows($result)); + } elseif($tri=='perso') + { + if (!isset($_GET['suiv']) OR $_GET['suiv']=='') + { + $requete='SELECT * from celebrite WHERE nom!=\'\' ORDER BY nom '.$sens_rec; + $result = sqlite_query($db,$requete); + $smarty->assign('result',sqlite_fetch_all($result)); + $smarty->assign('rows',@sqlite_num_rows($result)); + } else + { + $LINK['red']= 'catalogue.php?tri=perso&start='.$min.'&sens='.$sens; + $suiv = urldecode($_GET['suiv']); $requete='SELECT * from film WHERE avec LIKE \'%'.sqlite_escape_string($suiv).'%\' OR realisateur LIKE \'%'.sqlite_escape_string($suiv).'%\' ORDER BY name asc'; $requete2='SELECT * from celebrite WHERE nom=\''.$suiv.'\''; $result = sqlite_query($db,$requete); @@ -70,16 +74,21 @@ $smarty->assign('result',sqlite_fetch_all($result)); $smarty->assign('info',sqlite_fetch_array($result2)); } - }elseif($tri=="film" || $tri=="genre"){ - if (!isset($_GET['suiv'])) { + } elseif($tri=="film" || $tri=="genre") + { + if (!isset($_GET['suiv'])) + { $requete='SELECT * from film ORDER BY '.$tri.' '.$sens_rec; $result = sqlite_query($db,$requete); $i="0"; $rea = Array(); - while ($row[$i] = sqlite_fetch_array($result)) { - if(($row[$i][$tri]!=$row[($i-1)][$tri] || $i=="0") && $row[$i][$tri]!="" && strlen($row[$i][$tri])<="100"){ + while ($row[$i] = sqlite_fetch_array($result)) + { + if(($row[$i][$tri]!=$row[($i-1)][$tri] || $i=="0") && $row[$i][$tri]!="" && strlen($row[$i][$tri])<="100") + { $real = explode(", ",$row[$i][$tri]); - foreach($real as $reali){ + foreach($real as $reali) + { array_push ($rea,trim($reali)); } $i++; @@ -87,31 +96,31 @@ } $rea = array_unique($rea); sort($rea); - + $smarty->assign('rea',$rea); - - }else{ + } else + { $suiv = urldecode($_GET['suiv']); $requete='SELECT * from film WHERE '.$tri.' like \'%'.sqlite_escape_string($suiv).'%\' ORDER BY name asc '; - $result = sqlite_query($db,$requete); - $smarty->assign('result',sqlite_fetch_all($result)); - $smarty->assign('rows',@sqlite_num_rows($result)); - $smarty->assign('suiv',$_GET['suiv']); + $result = sqlite_query($db,$requete); + $smarty->assign('result',sqlite_fetch_all($result)); + $smarty->assign('rows',@sqlite_num_rows($result)); + $smarty->assign('suiv',$_GET['suiv']); $smarty->assign('tri',$tri.'_suiv'); -} - }elseif($tri=="date"){ + } + } elseif($tri=="date") + { $requete='SELECT * from film ORDER BY sortie '.$sens_rec.',name '.$sens_rec; $result = sqlite_query($db,$requete); - $smarty->assign('result',sqlite_fetch_all($result)); - $smarty->assign('rows',@sqlite_num_rows($result)); + $smarty->assign('result',sqlite_fetch_all($result)); + $smarty->assign('rows',@sqlite_num_rows($result)); } - -$title = array('film'=>'Nationalit\xE9', 'name'=>'Titre', 'date'=>'ann\xE9e de production', 'perso'=>'Personnalit\xE9', 'genre'=>'Genre'); - -$smarty->assign('TITRE','Biblioth\xE8que de films - Tri par '.$title[$tri]); -$smarty->assign('_GET',$_GET); - -$smarty->assign('CONTENT',$smarty->fetch('catalogue_video.tpl')); -$smarty->display('interface.tpl'); - + + $title = array('film'=>'Nationalit\xE9', 'name'=>'Titre', 'date'=>'ann\xE9e de production', 'perso'=>'Personnalit\xE9', 'genre'=>'Genre'); + + $smarty->assign('TITRE','Biblioth\xE8que de films - Tri par '.$title[$tri]); + $smarty->assign('_GET',$_GET); + + $smarty->assign('CONTENT',$smarty->fetch('catalogue_video.tpl')); + $smarty->display('interface.tpl'); ?> Modified: trunk/module/films/fichefilm.php =================================================================== --- trunk/module/films/fichefilm.php 2006-10-03 07:14:10 UTC (rev 24) +++ trunk/module/films/fichefilm.php 2006-10-03 07:15:34 UTC (rev 25) @@ -1,143 +1,164 @@ <?php + if (!$disable) + { + $RACINE_REP = "../../"; + require($RACINE_REP.'_framework/framework.php'); + + $nettoyer = $ini[explorateur][nettoyer]; + $nettoyer = explode(',',$nettoyer); + + $LINK['red']=page_retour_fiche(); + + $film=stripslashes(urldecode($_REQUEST['film'])); + + if ($film == "") + { + $film = substr(basename($signetsav[2]),0,strrpos(basename($signetsav[2]),".")); + } + } + + if (isset($_REQUEST['filmid'])) + { + $id=$_REQUEST['filmid']; + } else + { + $id = 0; + } + + $film = trim(str_ireplace($nettoyer,' ',$film)); + + save_variable('fiche_film',$film); + + if (isset($_GET['fichier'])) + { + $fichier = stripslashes(urldecode($_GET['fichier'])); + } + + if ($film!="" or $id!=0) + { + $info = info_allocine($film, false,$id); + + if ($info == "Aucun film trouv\xE9") + { + $contenant = "Aucun film trouv\xE9"; + } else if ($info == "erreur") + { + $contenant = "Service indisponible"; + } else + { + if ($info['inbdd']) + { + $expl = Array(); + $explo = explode(", ",$info['realisateur']); + foreach ($explo as $explode) + { + array_push($expl,trim($explode)); + } + sort($expl); + $info['realisateur'] = ''; + foreach ($expl as $exp) + { + if ($info['realisateur']) $info['realisateur'] .= ', '; + if ($ini[explorateur][afficher_personnes] == 'oui') + $info['realisateur'] .= '<a href="catalogue.php?tri=perso&suiv='.urlencode($exp).'">'.$exp.'</a>'; + else + $info['realisateur'] .= $exp; + } + $expl = Array(); + $explo = explode(", ",$info['acteurs']); + foreach ($explo as $explode) + { + array_push($expl,trim($explode)); + } + sort($expl); + $info['acteurs'] = ''; + foreach ($expl as $exp) + { + if ($info['acteurs']) $info['acteurs'] .= ', '; + if ($ini[explorateur][afficher_personnes] == 'oui') + $info['acteurs'] .= '<a href="catalogue.php?tri=perso&suiv='.urlencode($exp).'">'.$exp.'</a>'; + else + $info['acteurs'] .= $exp; + } + $expl = Array(); + $explo = explode(", ",$info['nationalite']); + foreach ($explo as $explode) + { + array_push($expl,trim($explode)); + } + sort($expl); + $info['nationalite'] = ''; + foreach ($expl as $exp) + { + if($info['nationalite']) $info['nationalite'] .= ', '; + $info['nationalite'] .= '<a href="catalogue.php?tri=film&suiv='.urlencode($exp).'">'.$exp.'</a>'; + } + $expl = Array(); + $explo = explode(", ",$info['genre']); + foreach ($explo as $explode) + { + array_push($expl,trim($explode)); + } + sort($expl); + $info['genre'] = ''; + foreach ($expl as $exp) + { + if ($info['genre']) $info['genre'] .= ', '; + $info['genre'] .= '<a href="catalogue.php?tri=genre&suiv='.urlencode($exp).'">'.$exp.'</a>'; + } + } + } + + $flux=explode(";",substr($info['ba'], 0, -1)); + $info['ba']=array(); + + foreach ($flux as $flux1) + { + if($flux1!='') $info['ba'][]=explode(",",$flux1); + } -if(!$disable){ -$RACINE_REP = "../../"; -require($RACINE_REP.'_framework/framework.php'); - -$nettoyer = $ini[explorateur][nettoyer]; -$nettoyer = explode(',',$nettoyer); - -$LINK['red']=page_retour_fiche(); - -$film=stripslashes(urldecode($_REQUEST['film'])); - -if ($film==""){ - $film=substr(basename($signetsav[2]),0,strrpos(basename($signetsav[2]),".")); - }else{ - $film=$film; - } -} - -if(isset($_REQUEST['filmid'])){ - $id=$_REQUEST['filmid']; -}else{ - $id = 0; -} - -$film=trim(str_ireplace($nettoyer,' ',$film)); - -save_variable('fiche_film',$film); - -if(isset($_GET['fichier'])){ - $fichier=stripslashes(urldecode($_GET['fichier'])); -} - -if ($film!="" or $id!=0){ - - $info=info_allocine($film, false,$id); - - if($info == "Aucun film trouv\xE9"){ - $contenant = "Aucun film trouv\xE9"; - }elseif($info == "erreur"){ - $contenant = "Service indisponible"; - }else{ - - if($info['inbdd']){ - - $expl = Array(); - $explo = explode(", ",$info['realisateur']); - foreach($explo as $explode){ - array_push($expl,trim($explode)); - } - sort($expl); - $info['realisateur'] = ''; - foreach($expl as $exp){ - if($info['realisateur']){ $info['realisateur'] .= ', ';} - $info['realisateur'] .= '<a href="catalogue.php?tri=perso&suiv='.urlencode($exp).'">'.$exp.'</a>'; - } - $expl = Array(); - $explo = explode(", ",$info['acteurs']); - foreach($explo as $explode){ - array_push($expl,trim($explode)); - } - sort($expl); - $info['acteurs'] = ''; - foreach($expl as $exp){ - if($info['acteurs']){ $info['acteurs'] .= ', ';} - $info['acteurs'] .= '<a href="catalogue.php?tri=perso&suiv='.urlencode($exp).'">'.$exp.'</a>'; - } - $expl = Array(); - $explo = explode(", ",$info['nationalite']); - foreach($explo as $explode){ - array_push($expl,trim($explode)); - } - sort($expl); - $info['nationalite'] = ''; - foreach($expl as $exp){ - if($info['nationalite']){ $info['nationalite'] .= ', ';} - $info['nationalite'] .= '<a href="catalogue.php?tri=film&suiv='.urlencode($exp).'">'.$exp.'</a>'; - } - $expl = Array(); - $explo = explode(", ",$info['genre']); - foreach($explo as $explode){ - array_push($expl,trim($explode)); - } - sort($expl); - $info['genre'] = ''; - foreach($expl as $exp){ - if($info['genre']){ $info['genre'] .= ', ';} - $info['genre'] .= '<a href="catalogue.php?tri=genre&suiv='.urlencode($exp).'">'.$exp.'</a>'; - } - - } - } - - $flux=explode(";",substr($info['ba'], 0, -1)); - $info['ba']=array(); - - foreach($flux as $flux1){ - - if($flux1!='') - $info['ba'][]=explode(",",$flux1); - - } - - if(is_array($info['ba'])) - array_cleanse($info['ba']); - - if($disable){ - $smarty->assign('more','... <a href="options.php?getmoreinfo=1">Suite</a>'); - }else{ - $smarty->assign('more','... <a href="fichefilm.php?getmoreinfo=1&film='.urlencode($film).'&fichier='.urlencode($fichier).'">Suite</a>'); - } - - - $smarty->assign('ba',$info['ba']); - $smarty->assign('film',$film); - $smarty->assign('fichier',$fichier); - $smarty->assign('disable',$disable); - $smarty->assign('info',$info); - $smarty->assign('_GET',$_GET); - - if(isset($disable)){ - if($_GET['getmoreinfo']==1){ - $CONTENT .= '<font size=4>R\xE9sum\xE9 pour '.$film.'</font><br> <br> <br>'; - $CONTENT .= strip_tags($info['synopsis']); - $CONTENT .= '<br> <br><a href="options.php">Retour</a>'; - $contenant = $CONTENT; - }else{ - $contenant = $smarty->fetch('fichefilm.tpl'); - } - }elseif($_GET['getmoreinfo']){ - $CONTENT .= '<font size=4>R\xE9sum\xE9 pour '.$film.'</font><br> <br> <br>'; - $CONTENT .= strip_tags($info['synopsis']); - $CONTENT .= '<br> <br><a href="fichefilm.php?film='.urlencode($film).'&fichier='.urlencode($fichier).'">Retour</a>'; - $LINK['red'] = 'fichefilm.php?film='.urlencode($film).'&fichier='.urlencode($fichier); - $smarty->assign('AVERTISSEMENT',$CONTENT); - $smarty->display('avertissement.tpl'); - }else{ - $smarty->assign('CONTENT',$smarty->fetch('fichefilm.tpl')); - $smarty->display('interface.tpl'); - } -} + if (is_array($info['ba'])) array_cleanse($info['ba']); + + if ($disable) + { + $smarty->assign('more','... <a href="options.php?getmoreinfo=1">Suite</a>'); + } else + { + $smarty->assign('more','... <a href="fichefilm.php?getmoreinfo=1&film='.urlencode($film).'&fichier='.urlencode($fichier).'">Suite</a>'); + } + + + $smarty->assign('ba',$info['ba']); + $smarty->assign('film',$film); + $smarty->assign('fichier',$fichier); + $smarty->assign('disable',$disable); + $smarty->assign('info',$info); + $smarty->assign('_GET',$_GET); + + if(isset($disable)) + { + if ($_GET['getmoreinfo']==1) + { + $CONTENT .= '<font size=4>R\xE9sum\xE9 pour '.$film.'</font><br> <br> <br>'; + $CONTENT .= strip_tags($info['synopsis']); + $CONTENT .= '<br> <br><a href="options.php">Retour</a>'; + $contenant = $CONTENT; + } else + { + $contenant = $smarty->fetch('fichefilm.tpl'); + } + } else if ($_GET['getmoreinfo']) + { + $CONTENT .= '<font size=4>R\xE9sum\xE9 pour '.$film.'</font><br> <br> <br>'; + $CONTENT .= strip_tags($info['synopsis']); + $CONTENT .= '<br> <br><a href="fichefilm.php?film='.urlencode($film).'&fichier='.urlencode($fichier).'">Retour</a>'; + $LINK['red'] = 'fichefilm.php?film='.urlencode($film).'&fichier='.urlencode($fichier); + $smarty->assign('AVERTISSEMENT',$CONTENT); + $smarty->display('avertissement.tpl'); + } else + { + $smarty->assign('CONTENT',$smarty->fetch('fichefilm.tpl')); + $smarty->display('interface.tpl'); + } + } ?> Modified: trunk/module/films/index1.php =================================================================== --- trunk/module/films/index1.php 2006-10-03 07:14:10 UTC (rev 24) +++ trunk/module/films/index1.php 2006-10-03 07:15:34 UTC (rev 25) @@ -1,20 +1,19 @@ <?php - -$RACINE_REP = "../../"; -require($RACINE_REP.'_framework/framework.php'); - -$LINK['red']= $MODULE.'_menu/menu.php'; - -$rep_default = explode("|",$ini[explorateur][films_defaut]); -$rep_default = $rep_default[0]; -$icone_fichier = "movie.gif"; -$extension = $ini[explorateur][ext]; -$afficher_fichier_cache = $ini[explorateur][afficher_fichier_cache]; - -$play_rep = '1'; -$aff_info = '1'; -$aff_favoris = '1'; - -$smarty->assign('TITRE','Explorateur de films'); -include($EXPLORATEUR); + $RACINE_REP = "../../"; + require($RACINE_REP.'_framework/framework.php'); + + $LINK['red']= $MODULE.'_menu/menu.php'; + + $rep_default = explode("|",$ini[explorateur][films_defaut]); + $rep_default = $rep_default[0]; + $icone_fichier = "movie.gif"; + $extension = $ini[explorateur][ext]; + $afficher_fichier_cache = $ini[explorateur][afficher_fichier_cache]; + + $play_rep = '1'; + $aff_info = '1'; + $aff_favoris = '1'; + + $smarty->assign('TITRE','Explorateur de films'); + include($EXPLORATEUR); ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-03-09 21:54:50
|
Revision: 95 http://svn.sourceforge.net/easybox-mod/?rev=95&view=rev Author: aragornis Date: 2007-03-09 13:54:45 -0800 (Fri, 09 Mar 2007) Log Message: ----------- Encore quelques am?\195?\169liorations grace aux nouvelles options de la fbx Modified Paths: -------------- trunk/module/films/films.tpl trunk/module/films/info.php Modified: trunk/module/films/films.tpl =================================================================== --- trunk/module/films/films.tpl 2007-03-09 18:16:03 UTC (rev 94) +++ trunk/module/films/films.tpl 2007-03-09 21:54:45 UTC (rev 95) @@ -29,19 +29,23 @@ {elseif $module=='video'} <font size="3"><u>Options vid\xE9o</u></font><br> <form action="info.php" method="get"> - <input type=hidden name=module value=video><input type=hidden name=var value="video-es"><br> + <select name="video"> + <input type=hidden name=module value=video><input type=hidden name=var value="video-es"><br> {foreach from=$video item=pistev key=key name=video} - <input type=radio name=video bgcolor="{#COULEUR_FOND_RADIO#}" value="{$key}" {if $pistev.1} checked{/if}>{$pistev.0}<br> + <option value={$key} {if $pistev.1}selected{/if}>{$pistev.0} + {*<input type=radio name=video bgcolor="{#COULEUR_FOND_RADIO#}" value="{$key}" {if $pistev.1} checked{/if}>{$pistev.0}<br>*} {/foreach} - <br>Post-traitement + </select> + <br>Post-traitement : <select name="pp"> +<option value=0 {if $pp_video==1}selected{/if}>0 <option value=1 {if $pp_video==1}selected{/if}>1 <option value=2 {if $pp_video==2}selected{/if}>2 <option value=3 {if $pp_video==3}selected{/if}>3 <option value=4 {if $pp_video==4}selected{/if}>4 <option value=5 {if $pp_video==5}selected{/if}>5 <option value=6 {if $pp_video==6}selected{/if}>6 -</select> +</select><br> Augmenter la qualit\xE9 du traitement de l'image (de 0 vers 6) demande plus de puissance CPU. <br> @@ -164,7 +168,7 @@ {section name=foo1 start=1 loop=$stream_3 step=1} {assign var=time value="`$smarty.section.foo1.iteration*$largeursautmoins`"} {assign var=heure value=$time|date_format:"%H"} -<td width="5"><a onfocus='front_panel="{$time|calcul_hours|cleanaff}";temp_affich="{$time|calcul_hours}";' onBlur='front_panel="{$original_front|calcul_hours|cleanaff}";temp_affich="{$temps_affich}";' href="info.php?heures={$heure-1}&minutes={$time|date_format:"%M"}&secondes={$time|date_format:"%S"}"><table border="0" cellpadding="0" cellspacing="0" bgcolor="#BDBDC23f" abgcolor="#0000003f"><tr><td><img src="" width="5" height="5" border="0"></td></tr></table></a></td> +<td width="5"><a onfocus='front_panel="{$time|calcul_hours|cleanaff}";temps_affich="{$time|calcul_hours}";' onBlur='front_panel="{$original_front|calcul_hours|cleanaff}";temps_affich="{$temps_affich}";' href="info.php?heures={$heure-1}&minutes={$time|date_format:"%M"}&secondes={$time|date_format:"%S"}"><table border="0" cellpadding="0" cellspacing="0" bgcolor="#BDBDC23f" abgcolor="#0000003f"><tr><td><img src="" width="5" height="5" border="0"></td></tr></table></a></td> {/section} @@ -173,7 +177,7 @@ {section name=foo2 start=1 loop=$stream_5 step=1} {assign var=time value="`$VLC.duree_courante+$smarty.section.foo2.iteration*$largeursautplus`"} {assign var=heure value=$time|date_format:"%H"} -<td width="5"><a onfocus='front_panel="{$time|calcul_hours|cleanaff}";' href="info.php?heures={$heure-1}&minutes={$time|date_format:"%M"}&secondes={$time|date_format:"%S"}"><table border="0" cellpadding="0" cellspacing="0" bgcolor="#BDBDC23f" abgcolor="#0000003f"><tr><td><img src="" width="5" height="5" border="0"></td></tr></table></a></td> +<td width="5"><a onfocus='front_panel="{$time|calcul_hours|cleanaff}";temps_affich="{$time|calcul_hours}";' onBlur='front_panel="{$original_front|calcul_hours|cleanaff}";temps_affich="{$temps_affich}";' href="info.php?heures={$heure-1}&minutes={$time|date_format:"%M"}&secondes={$time|date_format:"%S"}"><table border="0" cellpadding="0" cellspacing="0" bgcolor="#BDBDC23f" abgcolor="#0000003f"><tr><td><img src="" width="5" height="5" border="0"></td></tr></table></a></td> {/section} <td width="13"></td> Modified: trunk/module/films/info.php =================================================================== --- trunk/module/films/info.php 2007-03-09 18:16:03 UTC (rev 94) +++ trunk/module/films/info.php 2007-03-09 21:54:45 UTC (rev 95) @@ -111,6 +111,8 @@ foreach($pp_video as $key => $value){ $_pp_video = $key; } + $META['pp']=$_pp_video; + $META['pp']=$video; $smarty->assign('video',$video); $smarty->assign('pp_video',$_pp_video); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ara...@us...> - 2007-03-18 12:36:32
|
Revision: 109 http://svn.sourceforge.net/easybox-mod/?rev=109&view=rev Author: aragornis Date: 2007-03-17 12:55:31 -0700 (Sat, 17 Mar 2007) Log Message: ----------- Modified Paths: -------------- trunk/module/films/films.tpl trunk/module/films/info.php Modified: trunk/module/films/films.tpl =================================================================== --- trunk/module/films/films.tpl 2007-03-17 15:32:09 UTC (rev 108) +++ trunk/module/films/films.tpl 2007-03-17 19:55:31 UTC (rev 109) @@ -111,7 +111,7 @@ <select name="title"> {foreach from=$title item=chap key=key name=chap} <option value={$key} {if $chap.1}selected{/if}>{$chap.0} - {/foreach} + {/foreach} </select> <input bgcolor="{#COULEUR_TEXTBOX#}" type=submit value="Valider les modifications"></form> {else} Modified: trunk/module/films/info.php =================================================================== --- trunk/module/films/info.php 2007-03-17 15:32:09 UTC (rev 108) +++ trunk/module/films/info.php 2007-03-17 19:55:31 UTC (rev 109) @@ -223,6 +223,12 @@ $LINK['red']=$MODULE.'films/lecture.php?next_ss=1'; $LINK['yellow']=$MODULE.'films/info.php?module=infos'; + // BDE - RequestID 1588902 + $LINK['next']=$MODULE.'films/info.php?control=next'; + $LINK['prev']=$MODULE.'films/info.php?control=previous'; + $LINK['rev']=$MODULE.'films/info.php?seek_value=moins'; + $LINK['fwd']=$MODULE.'films/info.php?seek_value=plus'; + if(in_array($VLC['type_current'],array('cd','audio','photo'))){ $META['refresh']= '2;url='.page_retour_film(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |