From: <ara...@us...> - 2007-03-11 12:32:06
|
Revision: 99 http://svn.sourceforge.net/easybox-mod/?rev=99&view=rev Author: aragornis Date: 2007-03-11 05:31:55 -0700 (Sun, 11 Mar 2007) Log Message: ----------- Nouveau panneau de configuration pour changer les pistes audio/vid?\195?\169o/ss-titres/signets/titres/chapitres... Modifs sur le module dvd par titou75 Corrections sur le module mp3 Modified Paths: -------------- trunk/_framework/fonctions_partagees.inc.php trunk/module/_explorateur/explorateur.tpl trunk/module/diaporama/photo.tpl trunk/module/dvd/dvd.tpl trunk/module/dvd/index1.php trunk/module/ephemeride/ephemeride.tpl trunk/module/films/films.tpl trunk/module/films/info.php trunk/module/mp3/audio.tpl trunk/module/mp3/catalogue_audio.tpl Modified: trunk/_framework/fonctions_partagees.inc.php =================================================================== --- trunk/_framework/fonctions_partagees.inc.php 2007-03-11 07:55:18 UTC (rev 98) +++ trunk/_framework/fonctions_partagees.inc.php 2007-03-11 12:31:55 UTC (rev 99) @@ -259,8 +259,7 @@ } } -function calcul_hours($temps) -{ +function calcul_hours($temps){ $hours = floor($temps / 3600); $min = floor(($temps - ($hours * 3600)) / 60); if ($min < 10) @@ -272,6 +271,13 @@ RETURN $hours."h".$min."m".$sec; } +function calcul_hours_complet($temps){ +global $VLC; + $nv_pourcentage = round($temps/($VLC['duree_totale']+1)*100); + RETURN(calcul_hours($temps).' / '.calcul_hours($VLC['duree_totale']).' ('.$nv_pourcentage.'%)'); +} + + //############################### GESTION DES MODULES ##############################// function add_module($nom, $repertoire, $lien, $actif1, $actif2, $actif3, $actif4, $actif5, $version, $description, $type, $dependance, $cat){ Modified: trunk/module/_explorateur/explorateur.tpl =================================================================== --- trunk/module/_explorateur/explorateur.tpl 2007-03-11 07:55:18 UTC (rev 98) +++ trunk/module/_explorateur/explorateur.tpl 2007-03-11 12:31:55 UTC (rev 99) @@ -162,9 +162,6 @@ {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/diaporama/photo.tpl =================================================================== --- trunk/module/diaporama/photo.tpl 2007-03-11 07:55:18 UTC (rev 98) +++ trunk/module/diaporama/photo.tpl 2007-03-11 12:31:55 UTC (rev 99) @@ -23,7 +23,7 @@ <table border="0" cellpadding="0" cellspacing="0" width="580" bgcolor="#A3B7CD3f"><tr> <td width="80" align="center">{if $aff >=1}<img src="{$INTERFACE_REP}btn_vert.gif" border="0"> <a href="index1.php?image={$prec}&start={$MIN}&rep={$rep_encoded}&delais={$delais}&tourne={$tourne}"><font size="1">Prec.</font></a>{else} {/if}</td> - <td width="187" align="center"><font size="1">{if $delais==0}<form name="form1" method="get" action="index1.php">Diapo : <input name="delais" bgcolor="{#COULEUR_TEXTBOX#}" type=text value="" size=2 maxlength=2> sec<input name=image type=hidden value="{if $aff+1 == count($files)}0{else}{$aff}{/if}"><input name=rep type=hidden value="{$REP}"><input name=tourne type=hidden value="{$tourne}"><input name=start type=hidden value="{$MIN}"></form>{else}<a href="index1.php?rep={$REP|urlencode}&start={$MIN}&image={$aff}">Arr\xE9ter le diaporama</a> ({$delais}sec){/if}</font></td> + <td width="187" align="center"><font size="1">{if $delais==0}<form name="form1" method="get" action="index1.php">Diapo : <input name="delais" bgcolor="{#COULEUR_TEXTBOX#}" type=text size=2 maxlength=2 value="5"> sec<input name=image type=hidden value="{if $aff+1 == count($files)}0{else}{$aff}{/if}"><input name=rep type=hidden value="{$REP}"><input name=tourne type=hidden value="{$tourne}"><input name=start type=hidden value="{$MIN}"></form>{else}<a href="index1.php?rep={$REP|urlencode}&start={$MIN}&image={$aff}">Arr\xE9ter le diaporama</a> ({$delais}sec){/if}</font></td> <td width="135" align="center"><a href="index1.php?start={$MIN}&rep={$REP|urlencode}&tosee={$aff}&force_back=1"><img src="{$INTERFACE_REP}btn_rouge.gif" border="0"><font size="1"> Expl.</font></a></td> <td width="40" align="center"><font size="1">{$aff+1}/{$files|@count}</font></td> <td width="16" align="center"><a href="index1.php?image={$aff}&start={$MIN}&rep={$REP|urlencode}&delais={$delais}&tourne={$tourne-90}"><table border="0" cellpadding="0" cellspacing="0" width="16" bgcolor="#A3B7CD3f" abgcolor="#4491CA3f"><tr><td width="16"><img src="gauche.gif" border="0" width="16"></td></tr></table></a></td> Modified: trunk/module/dvd/dvd.tpl =================================================================== --- trunk/module/dvd/dvd.tpl 2007-03-11 07:55:18 UTC (rev 98) +++ trunk/module/dvd/dvd.tpl 2007-03-11 12:31:55 UTC (rev 99) @@ -1,9 +1,9 @@ -{section name=dop loop=$disques_dispo} +{section name=dop loop=$disques_optique} {cycle name=place assign=place print=false values="4,3,2,1,0"} {if $smarty.section.dop.first} <table border="0" cellpadding="0" cellspacing="0" width="500" align="center"><tr> {/if} - <td width="100" height="130"><a href="playrep.php?toplay={$disques_dispo[dop].path|urlencode}&type=playrep"><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="lecteurdvd.gif"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$disques_dispo[dop].nom} ({$disques_dispo[dop].lettre}:)</font></td></tr></table></a></td> + <td width="100" height="130"><a href="playrep.php?toplay={$disques_optique[dop].path|urlencode}&type=playrep"><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="lecteurdvd.gif"></td></tr><tr height="50"><td width="100" height="50" valign="middle" align=center><font size="1">{$disques_optique[dop].nom} ({$disques_optique[dop].lettre}:)</font></td></tr></table></a></td> {if $smarty.section.dop.iteration is div by 5 AND NOT $smarty.section.dop.last} </tr><tr> @@ -31,6 +31,10 @@ {/if} {sectionelse} -Aucun lecteur DVD n'est disponible. +Aucun lecteur DVD physique n'est disponible. +<br> +<br> +<br> +<a href="index1.php?status=explorateur">Cliquez ici pour lire des dvd ripp\xE9s ou au format image depuis l'explorateur.</a> {/section} Modified: trunk/module/dvd/index1.php =================================================================== --- trunk/module/dvd/index1.php 2007-03-11 07:55:18 UTC (rev 98) +++ trunk/module/dvd/index1.php 2007-03-11 12:31:55 UTC (rev 99) @@ -10,7 +10,7 @@ $rep_default = $ini['explorateur']['dvd']; } -$smarty->assign('TITRE','Choisissez un lecteur DVD'); +$smarty->assign('TITRE','Selectionnez votre DVD'); $status = get_variable('statutdvd'); @@ -24,13 +24,16 @@ }else{ $DISQUES = unserialize(get_variable('disques')); $disques_dispo = array(); + $disques_optique = array(); foreach($DISQUES as $d){ - if($d['type'] == 'Disque optique' OR $d['type'] == 'Disque r\xE9seau'){ - $disques_dispo[] = $d; + $disques_dispo[] = $d; + if($d['type'] == 'Disque optique'){ + $disques_optique[] = $d; } } save_variable('statutdvd', 'disques'); $smarty->assign('disques_dispo',$disques_dispo); + $smarty->assign('disques_optique',$disques_optique); $smarty->assign('CONTENT',$smarty->fetch('dvd.tpl')); $smarty->display('interface.tpl'); } Modified: trunk/module/ephemeride/ephemeride.tpl =================================================================== --- trunk/module/ephemeride/ephemeride.tpl 2007-03-11 07:55:18 UTC (rev 98) +++ trunk/module/ephemeride/ephemeride.tpl 2007-03-11 12:31:55 UTC (rev 99) @@ -9,4 +9,4 @@ <u>Dicton du jour</u> :<br>{$dicton}<br> <br> <u>Aujourd'hui, on f\xEAte</u> les {$fetes} -<br> <br><img src="{$INTERFACE_REP}anniv.gif" width="60" height="60"><a href="anivdujour.php">Les anniversaires du jour</a><br></center> +<br> <br><a href="anivdujour.php">Les anniversaires du jour</a></center> Modified: trunk/module/films/films.tpl =================================================================== --- trunk/module/films/films.tpl 2007-03-11 07:55:18 UTC (rev 98) +++ trunk/module/films/films.tpl 2007-03-11 12:31:55 UTC (rev 99) @@ -9,7 +9,7 @@ <table width="600" height="510" border="0" cellpadding="0" cellspacing="0"><tr> <td height="370" align="left" cellpadding="3" cellspacing="0" valign="top"{if $module!=''} bgcolor="{#COULEUR_FOND2#}"{/if}> - {math equation="x/y+1" x="600" y=7 assign=width} + {math equation="x/y+1" x="600" y=6 assign=width} <table width="600" height="25" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="{$width}" align=center><a href="info.php?module=infos" {if $module=='infos'}focused{/if}><table width="{$width}" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td width="{$width}" align=center height="25">Infos</td></tr></table></a></td> @@ -17,7 +17,6 @@ <td width="{$width}" align=center><a href="info.php?module=audio" {if $module=='audio'}focused{/if}><table width="{$width}" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td width="{$width}" align=center height="25">Audio</td></tr></table></a></td> <td width="{$width}" align=center><a href="info.php?module=sstitre" {if $module=='sstitre'}focused{/if}><table width="{$width}" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td width="{$width}" align=center height="25">Sous-titres</td></tr></table></a></td> <td width="{$width}" align=center><a href="info.php?module=navigation" {if $module=='navigation'}focused{/if}><table width="{$width}" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td width="{$width}" align=center height="25">Chapitres</td></tr></table></a></td> - <td width="{$width}" align=center><a href="info.php?module=signets" {if $module=='signets'}focused{/if}><table width="{$width}" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td width="{$width}" align=center height="25">Signets</td></tr></table></a></td> <td width="{$width}" align=center><a href="info.php"><table width="{$width}" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="{#COULEUR_FOND2#}" abgcolor="{#COULEUR_TABLE_SELECTED#}"><tr height="25"><td width="{$width}" align=center height="25">Fermer</td></tr></table></a></td> </tr> </table> @@ -29,8 +28,8 @@ {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} <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>*} @@ -76,8 +75,7 @@ {*<input type=radio name=audio bgcolor="{#COULEUR_FOND_RADIO#}" value="{$key}" {if $pistea.1} checked{/if}>{$pistea.0}<br>*} {/foreach} </select> - </form> - <br> <br><form action="none"> + <br> <br> <input type="radio" name="aud" value="69(en,mp2)" bgcolor="{#COULEUR_FOND_RADIO#}"> Son st\xE9r\xE9o<br> <input type="radio" name="aud" value="69(en,ac3)" bgcolor="{#COULEUR_FOND_RADIO#}"> Dolby Digital (S/PDIF)<br> <br><input bgcolor="{#COULEUR_TEXTBOX#}" type=submit value="Valider les modifications"> @@ -86,9 +84,12 @@ {elseif $module=='sstitre'} <font size="3"><u>Sous-titres</u></font><br> <form action="info.php" method="get"><input type=hidden name=module value=sstitre><br> - {foreach from=$sstitre item=pistess key=key name=sstitre} - <input type=radio name=sstitre bgcolor="{#COULEUR_FOND_RADIO#}" value="{$key}"{if $pistess.1} checked{/if}>{$pistess.0}<br> + + <select name="sstitre"> + {foreach from=$sstitre item=pistess key=key name=sstitre} + <option value={$key} {if $pistess.1}selected{/if}>{$pistess.0} {/foreach} + </select> Les param\xE8tres suivants ne seront pris en compte qu'apr\xE8s le red\xE9marage du films. Ils seront sauvegard\xE9s dans Easybox pour les prochaines utilisations de easybox<br /> <font size="3"><u>Position</u></font> : @@ -105,27 +106,52 @@ <input bgcolor="{#COULEUR_TEXTBOX#}" type=submit value="Valider les modifications"></form> {elseif $module=='navigation'} +<font size="3"><u>Titres</u></font><br> + {if count($title)} + <form action="info.php" method="get"><input type=hidden name=module value=navigation><br> + <select name="chap"> + {foreach from=$title item=chap key=key name=chap} + <option value={$key} {if $chap.1}selected{/if}>{$chap.0} + {/foreach} + </select> + <input bgcolor="{#COULEUR_TEXTBOX#}" type=submit value="Valider les modifications"></form> + {else} + Aucun titre n'est d\xE9fini pour ce film + {/if} + +<br> <br> + <font size="3"><u>Chapitres</u></font><br> -{assign var=keyb value=1} -<table><tr><td> - {foreach from=$chapitre item=chap key=key name=chap} - <a href="info.php?module=navigation&chap={$key}">{if $chap.1}<font family="Symbol">T</font>{/if}<font size="1">{$chap.0}</font></a><br> - {assign var=keyb value=$keyb+1} - {if $keyb is div by 17}</td><td>{/if} - {/foreach} -</td></tr></table> + {if count($chapitre)} + <form action="info.php" method="get"><input type=hidden name=module value=navigation><br> + <select name="chap"> + {foreach from=$chapitre item=chap key=key name=chap} + <option value={$key} {if $chap.1}selected{/if}>{$chap.0} + {/foreach} + </select> + <input bgcolor="{#COULEUR_TEXTBOX#}" type=submit value="Valider les modifications"></form> + {else} + Aucun chapitre n'est d\xE9fini pour ce film + {/if} -{elseif $module=='signets'} +<br> <br> + <font size="3"><u>Signets</u></font><br> -{assign var=keyb value=1} -<table><tr><td> - {foreach from=$SIGNETS item=signet key=key name=signet} - <a href="info.php?module=signets&seek_value={$signet.2}"><font size="1">{$signet.2}</font></a><br> - {assign var=keyb value=$keyb+1} - {if $keyb is div by 17}</td><td>{/if} - {/foreach} -</td></tr></table><br> -<img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a href="{$MODULE}films/info.php?module=signets&savesignet=1">Ajouter un nouveau signet</a> + {if count($SIGNETS)} + <form action="info.php" method="get"><input type=hidden name=module value=navigation><br> + <select name="seek_value"> + {foreach from=$SIGNETS item=signet key=key name=signet} + <option value={$signet.2}>{$signet.2} + {/foreach} + </select> + <input bgcolor="{#COULEUR_TEXTBOX#}" type=submit value="Valider les modifications"></form> + {else} + Aucun signet enregistr\xE9 pour ce film + {/if} + +<br> +<img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a href="{$MODULE}films/info.php?module=navigation&savesignet=1">Ajouter un nouveau signet</a> + {/if} @@ -168,7 +194,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}";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> +<td width="5"><a onfocus='front_panel="{$time|calcul_hours|cleanaff}";temps_affich="{$time|calcul_hours_complet}";' onBlur='front_panel="{$VLC.duree_courante|calcul_hours|cleanaff}";temps_affich="{$VLC.duree_courante|calcul_hours_complet}";' 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} @@ -177,7 +203,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}";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> +<td width="5"><a onfocus='front_panel="{$time|calcul_hours|cleanaff}";temps_affich="{$time|calcul_hours_complet}";' onBlur='front_panel="{$VLC.duree_courante|calcul_hours|cleanaff}";temps_affich="{$VLC.duree_courante|calcul_hours_complet}";' 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-11 07:55:18 UTC (rev 98) +++ trunk/module/films/info.php 2007-03-11 12:31:55 UTC (rev 99) @@ -1,4 +1,47 @@ <? + +// On se d\xE9place dans le fichier avant de charger les infos sur la piste en cours +if (isset($_REQUEST['seek_value'])){ + $value=$_REQUEST['seek_value']; + $file1 = file_get_contents('http://127.0.0.1:8081/lecteur/action.html?control=seek&seek_value='.$value); +} +if (isset($_REQUEST['heures']) OR isset($_REQUEST['minutes']) OR isset($_REQUEST['secondes'])) { + $heure = '0'; + $minutes = '0'; + $secondes = '0'; + if (isset($_REQUEST['heures'])){ $heures = $_REQUEST['heures']; } + if (isset($_REQUEST['minutes'])){ $minutes = $_REQUEST['minutes']; } + if (isset($_REQUEST['secondes'])){ $secondes = $_REQUEST['secondes']; } + if ($heures < 10){ $heures = "0$heures"; } + if ($minutes < 10){ $minutes = "0$minutes"; } + if ($secondes < 10){ $secondes = "0$secondes"; } + $value = "$heures:$minutes:$secondes"; + + $file1 = file_get_contents("http://127.0.0.1:8081/lecteur/action.html?control=seek&seek_value=$value"); +} + + // Changement des options vid\xE9o + if (isset($_GET['video'])){ + @readfile('http://localhost:8081/lecteur/modif-config.html?type=3&video='.$_GET['video'].'&pp='.$_GET['pp']); + } + // Changement des options audio + if (isset($_GET['audio'])){ + @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=1&var=audio-es&value='.$_GET['audio']); + } + // Changement des options de sous-titre + if (isset($_GET['sstitre'])){ + @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=4&var=spu-es&value='.$_GET['sstitre']); + }elseif(isset($_GET['fontcolor'])){ + @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=2&color='.$_GET['fontcolor']); + }elseif(isset($_GET['sub_margin'])){ + @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=2&size='.convert_size($_GET['fontsize']).'&sub_margin='.$_GET['sub_margin']); + } + // Changement de chapitre + if (isset($_GET['chap'])){ + @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=3&var=chapter&value='.$_GET['chap']); + } + + $RACINE_REP = "../../"; require($RACINE_REP.'_framework/framework.php'); @@ -23,10 +66,6 @@ $file1 = file_get_contents("http://127.0.0.1:8081/lecteur/action.html?control=$control"); } -if (isset($_REQUEST['seek_value'])){ - $value=$_REQUEST['seek_value']; - $file1 = file_get_contents('http://127.0.0.1:8081/lecteur/action.html?control=seek&seek_value='.$value); -} if($VLC['etat']=='playing'){ $META['front_panel'] = calcul_hours($VLC['duree_courante']); @@ -35,22 +74,8 @@ } $smarty->assign('original_front',$META['front_panel']); -//-- Ce deplac\xE9 a un temps definie par l'utilisateur. -if (isset($_REQUEST['heures']) OR isset($_REQUEST['minutes']) OR isset($_REQUEST['secondes'])) { - $heure = '0'; - $minutes = '0'; - $secondes = '0'; - if (isset($_REQUEST['heures'])){ $heures = $_REQUEST['heures']; } - if (isset($_REQUEST['minutes'])){ $minutes = $_REQUEST['minutes']; } - if (isset($_REQUEST['secondes'])){ $secondes = $_REQUEST['secondes']; } - if ($heures < 10){ $heures = "0$heures"; } - if ($minutes < 10){ $minutes = "0$minutes"; } - if ($secondes < 10){ $secondes = "0$secondes"; } - $value = "$heures:$minutes:$secondes"; - - $file1 = file_get_contents("http://127.0.0.1:8081/lecteur/action.html?control=seek&seek_value=$value"); -} + function convert_size($size){ $assoc[0] = '12'; $assoc[1] = '24'; @@ -67,26 +92,6 @@ RETURN($assoc[$size]); } - // Changement des options vid\xE9o - if (isset($_GET['video'])){ - @readfile('http://localhost:8081/lecteur/modif-config.html?type=3&video='.$_GET['video'].'&pp='.$_GET['pp']); - } - // Changement des options audio - if (isset($_GET['audio'])){ - @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=1&var=audio-es&value='.$_GET['audio']); - } - // Changement des options de sous-titre - if (isset($_GET['sstitre'])){ - @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=4&var=spu-es&value='.$_GET['sstitre']); - }elseif(isset($_GET['fontcolor'])){ - @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=2&color='.$_GET['fontcolor']); - }elseif(isset($_GET['sub_margin'])){ - @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=2&size='.convert_size($_GET['fontsize']).'&sub_margin='.$_GET['sub_margin']); - } - // Changement de chapitre - if (isset($_GET['chap'])){ - @readfile('http://localhost:8081/lecteur/modif-config.html?type=2&type2=3&var=chapter&value='.$_GET['chap']); - } //-- R\xE9cuperation des donn\xE9es de VLC $contenu_html = @file_get_contents('http://localhost:8081/lecteur/options_vlc.html'); @@ -111,15 +116,25 @@ foreach($pp_video as $key => $value){ $_pp_video = $key; } + foreach($video as $key => $value){ + if($value[1]){ + $META['video']=$key; + } + } $META['pp']=$_pp_video; - $META['pp']=$video; + $smarty->assign('video',$video); $smarty->assign('pp_video',$_pp_video); } //Choix de la piste audio if($module=='audio'){ - $smarty->assign('audio',$audio); + foreach($audio as $key => $value){ + if($value[1]){ + $META['audio']=$key; + } + } + $smarty->assign('audio',$audio); } //Choix du fichier de sous-titre @@ -139,6 +154,11 @@ if($_ffontsize==""){ $_ffontzise = '32'; } + foreach($sstitre as $key => $value){ + if($value[1]){ + $META['sstitre']=$key; + } + } $smarty->assign('ffontsize',convert_size($_ffontsize)); $smarty->assign('fontcolor',$_fontcolor); $smarty->assign('sub_margin',$_sub_margin); @@ -147,21 +167,33 @@ //Choix du chapitre if($module=='navigation'){ - $smarty->assign('chapitre',$chapitre); - } - - if($module=='signets'){ - //Signets pour ce film + + if(count($title)){ + foreach($title as $key => $value){ + if($value[1]){ + $META['title']=$key; + } + } + } + if(count($chapitre)){ + foreach($chapitre as $key => $value){ + if($value[1]){ + $META['chap']=$key; + } + } + } + //Signets pour ce film $db = sqlite_open($USER.'utilisateur.db', 0666); - - //$mov = new ffmpeg_movie(realpath($VLC['url_current'])); - //echo $mov->getFrameCount(); - $requete='SELECT * FROM signet WHERE lien="'.$signetsav[2].'" ORDER BY duree'; $result = sqlite_query($db,$requete); $smarty->assign('SIGNETS',sqlite_fetch_all($result)); + + $smarty->assign('title',$title); + $smarty->assign('chapitre',$chapitre); + } + //--Fin des options // Synth\xE8se du nom du fichier @@ -175,15 +207,14 @@ $nomcourant = trim(substr($nomcourant,0,strrpos($nomcourant,'.'))); } - $temps_affich=calcul_hours($VLC['duree_courante']).' / '.calcul_hours($VLC['duree_totale']).' ('.$VLC['pourcentage_courant'].'%)'; - $META['temps_affich']= $temps_affich; + $META['temps_affich']=calcul_hours_complet($VLC['duree_courante']); $LINK['stop']=$MODULE.'films/lecture.php?control=stop'; $LINK['play']=$MODULE.'films/lecture.php?control=pause'; $LINK['pause']=$MODULE.'films/lecture.php?control=pause'; $LINK['info']=$MODULE.'films/lecture.php'; $LINK['options']=$MODULE.'films/lecture.php'; - $LINK['blue']=$MODULE.'films/info.php?module=signets&savesignet=1'; + $LINK['blue']=$MODULE.'films/info.php?module=navigation&savesignet=1'; $LINK['red']=$MODULE.'films/lecture.php?next_ss=1'; $LINK['yellow']=$MODULE.'films/info.php?module=infos'; @@ -192,7 +223,6 @@ } $smarty->assign('nomcourant',$nomcourant); -$smarty->assign('temps_affich',$temps_affich); $smarty->display('films.tpl'); ?> Modified: trunk/module/mp3/audio.tpl =================================================================== --- trunk/module/mp3/audio.tpl 2007-03-11 07:55:18 UTC (rev 98) +++ trunk/module/mp3/audio.tpl 2007-03-11 12:31:55 UTC (rev 99) @@ -128,6 +128,8 @@ {eval var=$CONTENT} + <var name=aide width=450> + </td></tr> </table> </td><td width="5" height="493"></td></tr> Modified: trunk/module/mp3/catalogue_audio.tpl =================================================================== --- trunk/module/mp3/catalogue_audio.tpl 2007-03-11 07:55:18 UTC (rev 98) +++ trunk/module/mp3/catalogue_audio.tpl 2007-03-11 12:31:55 UTC (rev 99) @@ -32,7 +32,7 @@ <TABLE cellspacing=0 width="480"> -{section name=fichiers loop=$rows start=$f max=15} +{section name=fichiers loop=$rows start=$f max=10} {cycle name=color assign=COLOR print=false values="`$smarty.config.COULEUR_INTERFACE1`,`$smarty.config.COULEUR_INTERFACE2`"} @@ -72,13 +72,13 @@ <TD align=center width="180">{$recherche}</TD> {if $f!='0' AND $f!=''} - {assign var=New_Min value=$f-15|max:0} + {assign var=New_Min value=$f-10|max:0} <TD align=center width="120"><IMG SRC="{$FRAMEWORK_REP}aide/images/btn_jaune.gif"> <font size=1><A hRef="lecteuraudio.php?mode=bib&t={$type}&l={$l}&f={$New_Min}&wf={$wherefield}&wl={$wherelike|urlencode}"><B>Pr\xE9c\xE9dent</B></A></font></TD> {attribbouton touche="yellow" lien="lecteuraudio.php?mode=bib&t=$type&l=$l&f=$New_Min&wf=$wherefield&wl=$wherelike"} {/if} {if $f+$smarty.section.fichiers.total<count($rows)} - {assign var=New_Min value=$f+15} + {assign var=New_Min value=$f+10} <TD align=center width="100"><IMG SRC="{$FRAMEWORK_REP}aide/images/btn_bleu.gif"> <font size=1><A hRef="lecteuraudio.php?mode=bib&t={$type}&l={$l}&f={$New_Min}&wf={$wherefield}&wl={$wherelike|urlencode}"><B>Suivant</B></A></font></TD> {attribbouton touche="blue" lien="lecteuraudio.php?mode=bib&t=$type&l=$l&f=$New_Min&wf=$wherefield&wl=$wherelike"} {/if} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |