From: <ara...@us...> - 2008-08-20 17:33:36
|
Revision: 228 http://easybox-mod.svn.sourceforge.net/easybox-mod/?rev=228&view=rev Author: aragornis Date: 2008-08-20 17:33:23 +0000 (Wed, 20 Aug 2008) Log Message: ----------- Possibilit?\195?\169 d'ajouter le tag "selected" ?\195?\160 un Item.Mosaique ou Item.liste : mise en valeur de l'?\195?\169l?\195?\169ment en question Mise en valeur de l'?\195?\169l?\195?\169ment en cours de lecture dans l'explorateur de fichiers (audio et vid?\195?\169o) Modified Paths: -------------- trunk/http/_framework/framework.php trunk/http/_framework/lib/Explorateur.class.php trunk/http/_framework/lib/Item.Liste.class.php trunk/http/_framework/lib/Item.Mosaique.class.php trunk/http/skin/mediacenter/item_liste.tpl trunk/http/skin/mediacenter/item_mosaique.tpl trunk/http/skin/mediacenter/sources/fond30x30.png Added Paths: ----------- trunk/http/skin/mediacenter/interface/fond30x30s.gif trunk/http/skin/mediacenter/interface/fond530x30s.gif trunk/http/skin/mediacenter/interface/fond90x130s.gif trunk/http/skin/mediacenter/sources/fond30x30s.png trunk/http/skin/mediacenter/sources/fond530x30s.png trunk/http/skin/mediacenter/sources/fond90x130s.png Removed Paths: ------------- trunk/http/_utilisateur/contentVLC Modified: trunk/http/_framework/framework.php =================================================================== --- trunk/http/_framework/framework.php 2008-08-20 16:49:17 UTC (rev 227) +++ trunk/http/_framework/framework.php 2008-08-20 17:33:23 UTC (rev 228) @@ -149,8 +149,6 @@ require_once(LIBRARIES_REP.'Explorateur.class.php'); //- D\xE9finition du menu par d\xE9faut -$Easybox->menu(MODULE.'_menu/menu.php', INTERFACE_REP.'easybox.gif', 'Easybox', 'Retour au menu principal', 5); - if(($VLC->play or $VLC->pause) AND $VLC->type=='video'){ $Easybox->menu(MODULE.'films/lecture.php', '', 'Cacher', 'Cacher', 201); $Easybox->menu(MODULE.'films/info.php', '', 'Lecteur', 'En cours...', 200); Modified: trunk/http/_framework/lib/Explorateur.class.php =================================================================== --- trunk/http/_framework/lib/Explorateur.class.php 2008-08-20 16:49:17 UTC (rev 227) +++ trunk/http/_framework/lib/Explorateur.class.php 2008-08-20 17:33:23 UTC (rev 228) @@ -63,7 +63,7 @@ } function lister_fichiers(){ - global $Easybox, $smarty; + global $Easybox, $smarty, $VLC; $this->rep = ($_GET['rep']!='' ? stripslashes(urldecode($_GET['rep'])) : $this->rep_par_defaut); @@ -91,11 +91,11 @@ break; case 'Video': - $resultats[] = new ItemMosaique($e['nom'], MODULE.'films/play.php?play='.urlencode($e['path']), 'image', ''); + $resultats[] = new ItemMosaique($e['nom'], MODULE.'films/play.php?play='.urlencode($e['path']), 'image', '', ($VLC->url == $e['path'])); break; case 'Audio': - $resultats[] = new ItemMosaique($e['nom'], $this->page_explorateur.'?rep='.urlencode($e['path']), 'image', ''); + $resultats[] = new ItemMosaique($e['nom'], $this->page_explorateur.'?rep='.urlencode($e['path']), 'image', '', ($VLC->url == $e['path'])); break; case 'Photo': @@ -109,11 +109,11 @@ break; case 'Video': - $resultats[] = new ItemListe($e['nom'], MODULE.'films/play.php?play='.urlencode($e['path']), INTERFACE_REP.'information.gif', MODULE.'films/fichefilm.php?film='.urlencode($e['nom_sans_extension']).'&fichier='.urlencode($e['path'])); + $resultats[] = new ItemListe($e['nom'], MODULE.'films/play.php?play='.urlencode($e['path']), INTERFACE_REP.'information.gif', MODULE.'films/fichefilm.php?film='.urlencode($e['nom_sans_extension']).'&fichier='.urlencode($e['path']), '', '', ($VLC->url == $e['path'])); break; case 'Audio': - $resultats[] = new ItemListe($e['nom'], $this->page_explorateur.'?rep='.urlencode($e['path']), INTERFACE_REP.'audio.gif', ''); + $resultats[] = new ItemListe($e['nom'], $this->page_explorateur.'?rep='.urlencode($e['path']), INTERFACE_REP.'audio.gif', '', '', '', ($VLC->url == $e['path'])); break; case 'Photo': @@ -122,7 +122,6 @@ break; } } - } $this->nb_elements = count($resultats); Modified: trunk/http/_framework/lib/Item.Liste.class.php =================================================================== --- trunk/http/_framework/lib/Item.Liste.class.php 2008-08-20 16:49:17 UTC (rev 227) +++ trunk/http/_framework/lib/Item.Liste.class.php 2008-08-20 17:33:23 UTC (rev 228) @@ -7,14 +7,16 @@ var $lien_icone; var $javacript; var $javascript_icone; + var $selected; - function __construct($texte='', $lien='', $icone='', $lien_icone='', $javascript='', $javascript_icone=''){ + function __construct($texte='', $lien='', $icone='', $lien_icone='', $javascript='', $javascript_icone='', $selected=false){ $this->texte = $texte; $this->lien = $lien; $this->icone = $icone; $this->lien_icone = $lien_icone; $this->javascript = $javascript; $this->javascript_icone = $javascript_icone; + $this->selected = $selected; } function output(){ @@ -26,6 +28,7 @@ $smarty->assign('lien_icone', $this->lien_icone); $smarty->assign('javascript', $this->javascript); $smarty->assign('javascript_icone', $this->javascript_icone); + $smarty->assign('selected', $this->selected); $content = $smarty->fetch('item_liste.tpl'); @@ -35,6 +38,7 @@ $smarty->clear_assign('lien_icone'); $smarty->clear_assign('javascript'); $smarty->clear_assign('javascript_icone'); + $smarty->clear_assign('selected'); return $content; } Modified: trunk/http/_framework/lib/Item.Mosaique.class.php =================================================================== --- trunk/http/_framework/lib/Item.Mosaique.class.php 2008-08-20 16:49:17 UTC (rev 227) +++ trunk/http/_framework/lib/Item.Mosaique.class.php 2008-08-20 17:33:23 UTC (rev 228) @@ -5,14 +5,16 @@ var $lien; var $image; var $javacript; + var $selected; - function __construct($texte='', $lien='', $image='', $javascript=''){ + function __construct($texte='', $lien='', $image='', $javascript='', $selected=false){ $this->texte = $texte; $this->lien = $lien; $this->image = $image; $this->javascript = $javascript; + $this->selected = $selected; } - + function output(){ global $smarty; @@ -20,13 +22,15 @@ $smarty->assign('lien', $this->lien); $smarty->assign('image', $this->image); $smarty->assign('javascript', $this->javascript); - + $smarty->assign('selected', $this->selected); + $content = $smarty->fetch('item_mosaique.tpl'); $smarty->clear_assign('texte'); $smarty->clear_assign('lien'); $smarty->clear_assign('image'); $smarty->clear_assign('javascript'); + $smarty->clear_assign('selected'); return $content; } Deleted: trunk/http/_utilisateur/contentVLC =================================================================== --- trunk/http/_utilisateur/contentVLC 2008-08-20 16:49:17 UTC (rev 227) +++ trunk/http/_utilisateur/contentVLC 2008-08-20 17:33:23 UTC (rev 228) @@ -1,33 +0,0 @@ -<!-- saved from url=(0022)http://internet.e-mail --> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -|00:00:00|fake:|00:00:00|stop|C:\Program Files\Easyboxv3\http\skin\mediacenter\background\bg.png Property changes on: trunk/http/skin/mediacenter/interface/fond30x30s.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Property changes on: trunk/http/skin/mediacenter/interface/fond530x30s.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Property changes on: trunk/http/skin/mediacenter/interface/fond90x130s.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: trunk/http/skin/mediacenter/item_liste.tpl =================================================================== --- trunk/http/skin/mediacenter/item_liste.tpl 2008-08-20 16:49:17 UTC (rev 227) +++ trunk/http/skin/mediacenter/item_liste.tpl 2008-08-20 17:33:23 UTC (rev 228) @@ -2,7 +2,7 @@ <tr height="30"> {if $icone}<td width="35" heigth="30"> {if $lien_icone}<a href="{$lien_icone}" {$javascript_icone}>{/if} - <table width="30" height="30" border="0" cellpadding="0" cellspacing="0" background="{$INTERFACE_REP}fond30x30.gif" once rollover> + <table width="30" height="30" border="0" cellpadding="0" cellspacing="0" background="{$INTERFACE_REP}fond30x30{if $selected}s{/if}.gif" once rollover> <tr height="30"> <td width="30" height="30" align="center" valign="middle"> <img src="{$icone}" border="0" width="25" height="25"> @@ -14,8 +14,8 @@ <td height="30"> {if $lien} - <a href="{$lien}" {$javascript}> - <table height="30" background="{$INTERFACE_REP}fond530x30.gif" once rollover cellpadding="0" cellspacing="0"> + <a href="{$lien}" {$javascript} {if $selected}focused{/if}> + <table height="30" background="{$INTERFACE_REP}fond530x30{if $selected}s{/if}.gif" once rollover cellpadding="0" cellspacing="0"> <tr> <td width="570" height="30"> {$texte|strip_delimiters|truncate:52} Modified: trunk/http/skin/mediacenter/item_mosaique.tpl =================================================================== --- trunk/http/skin/mediacenter/item_mosaique.tpl 2008-08-20 16:49:17 UTC (rev 227) +++ trunk/http/skin/mediacenter/item_mosaique.tpl 2008-08-20 17:33:23 UTC (rev 228) @@ -1,5 +1,5 @@ -{if $lien}<a href="{$lien}" {$javascript}>{/if} - <table border="0" cellpadding="0" cellspacing="0" width="90" height="130" background="{$INTERFACE_REP}fond90x130.gif" once rollover> +{if $lien}<a href="{$lien}" {$javascript} {if $selected}focused{/if}>{/if} + <table border="0" cellpadding="0" cellspacing="0" width="90" height="130" background="{$INTERFACE_REP}fond90x130{if $selected}s{/if}.gif" once rollover> <tr height="90"> <td width="90" height="90" valign="middle" align="center"> <img border="0" width="80" height="80" src="{$IMG2FBX}?img={$image|urlencode}&width=80&height=80&cache=1"> Property changes on: trunk/http/skin/mediacenter/sources/fond30x30s.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Property changes on: trunk/http/skin/mediacenter/sources/fond530x30s.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Property changes on: trunk/http/skin/mediacenter/sources/fond90x130s.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |