|
From: <ara...@us...> - 2006-10-27 10:45:56
|
Revision: 41
http://svn.sourceforge.net/easybox-mod/?rev=41&view=rev
Author: aragornis
Date: 2006-10-27 03:45:42 -0700 (Fri, 27 Oct 2006)
Log Message:
-----------
Ajout de la table "templates"
Correction d'un bug graphique dans l'explorateur
Correction d'un bug sur l'appel du template pour l'arret d'un film
Modified Paths:
--------------
trunk/configuration/bases.xml
trunk/module/_explorateur/explorateur.tpl
trunk/module/films/lecture.php
Modified: trunk/configuration/bases.xml
===================================================================
--- trunk/configuration/bases.xml 2006-10-26 19:33:36 UTC (rev 40)
+++ trunk/configuration/bases.xml 2006-10-27 10:45:42 UTC (rev 41)
@@ -83,6 +83,10 @@
<syntax>CREATE TABLE var (var VARCHAR, value LONGTEXT)</syntax>
</table>
<table>
+ <name>templates</name>
+ <syntax>CREATE TABLE templates (template VARCHAR, url TEXT)</syntax>
+ </table>
+ <table>
<name>cinemas</name>
<syntax>CREATE TABLE cinemas ( timestamp INT, cinema LONGTEXT, page VARCHAR )</syntax>
</table>
Modified: trunk/module/_explorateur/explorateur.tpl
===================================================================
--- trunk/module/_explorateur/explorateur.tpl 2006-10-26 19:33:36 UTC (rev 40)
+++ trunk/module/_explorateur/explorateur.tpl 2006-10-27 10:45:42 UTC (rev 41)
@@ -1 +1 @@
-{assign var=rep_encoded value=$REP|urlencode}
{section name=disques loop=$DISQUES}
{if $smarty.section.disques.first}
<table cellspacing="2" align="center" width="498" valign="middle"><tr valign="middle">
{/if}
{if $DISQUES[disques].path == 'reload'}
<td valign="middle"><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}">Rafra\xEEchir</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}
{if $smarty.section.disques.last}
</tr></table>
{/if}
{/section}
{section name=path loop=$CHEMIN_REP}
{if $smarty.section.path.first}
<center><font size="1">
{/if}
<a href="{$PAGE_EXPLO}?directory={$CHEMIN_REP[path].0}&mode={$MODE}">{$CHEMIN_REP[path].1|strip_delimiters}/</a>
{if $smarty.section.path.last}
</font></center>
{/if}
{/section}
{if $AFF_CDDA}
<a href="playdb.php?type=cdda&disque={$LETTRE_CDDA}">Lire {$LETTRE_CDDA}: en tant que cd</a>
{/if}
{assign var=NUM_ROW_AFFICH value=15}
<table width="498" cellpadding="0" cellspacing="0" align="center" valign="middle">
{if $PLAYREP OR $AFF_FAVORIS}
<tr><td colspan="2"><center>
{/if}
{if $PLAYREP}
<img src="{$SKIN_REP}dossier/rep_all.gif" border="0" width="20" height="20"><a href="{$PAGE_LECT_REP}?toplay={$REP|urlencode}&type=playrep"> {$PLAYREP_TEXT|default:"Lire le r\xE9pertoire complet"}</a>
{/if}
{if $PLAYREP AND $AFF_FAVORIS}
-
{/if}
{if $AFF_FAVORIS}
<img src="{$SKIN_REP}dossier/favoris.gif" width="20" height="20"> <a href="{$RACINE_REP}module/favoris/index1.php?ajout={$REP|urlencode}&nom={$REP}">Ajouter aux favoris</a>
{/if}
{if $PLAYREP OR $AFF_FAVORIS}
</center></td></tr>
{/if}
{if $MIN!=0}
{assign var=temp value=$MIN-$NUM_ROW_AFFICH|max:0}
<tr><td colspan="2"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN-$NUM_ROW_AFFICH|max:0}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Pr\xE9c\xE9dent</font></a> <a href="{$PAGE_EXPLO}?start=0&directory={$REP|urlencode}&mode={$MODE}"><font size=2>D\xE9but du r\xE9pertoire</font></a></td></tr>
{attribbouton touche="green" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"}
{/if}
{if $Nb_rep_path >='2' AND $MIN==0}
{assign var=temp value=$REP|dirname|realpath|urlencode}
<tr><td colspan="2"><img src="{$INTERFACE_REP}btn_jaune.gif" border="0"> <a focused href="{$PAGE_EXPLO}?directory={$REP|dirname|realpath|urlencode}&mode={$MODE}">Dossier parent</a></td></tr>
{attribbouton touche="yellow" lien="$PAGE_EXPLO?directory=$temp&mode=$MODE"}
{elseif $Nb_rep_path >='2'}
{assign var=temp value=$REP|dirname|realpath|urlencode}
{attribbouton touche="yellow" lien="$PAGE_EXPLO?directory=$temp&mode=$MODE"}
{/if}
{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}">{$T_affich[files]|truncate:55|strip_delimiters}</a></font></td></tr>
{else}
<tr><td><img src="{$SKIN_REP}dossier/{$ICONE_FICHIER}" width="16" height="16"> <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}">{$T_affich[files]|strip_delimiters|truncate:52}</a>
</font></td><td width="35">
{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}"><font size="1">info</font></a>
{/if}
</td></tr>
{/if}
{/section}
{assign var=N_affich value=$T_affich|@count}
{assign var=N_affich_reste value=$NUM_ROW_AFFICH|max:15}
{if $MIN+$smarty.section.files.total<count($T_affich)}
<tr><td colspan="2"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN+$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Suivant</font></a> - <font size=2><a href="{$PAGE_EXPLO}?start={$N_affich-$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}">Fin du r\xE9pertoire</a> - Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr>
{assign var=temp value=$MIN+$smarty.section.files.total}
{attribbouton touche="blue" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"}
{else}
<tr><td colspan="2"><font size=2>Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr>
{/if}
</table>
{$FOOTER}
\ No newline at end of file
+{assign var=rep_encoded value=$REP|urlencode}
{section name=disques loop=$DISQUES}
{if $smarty.section.disques.first}
<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>
{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}
{if $smarty.section.disques.last}
</tr></table>
{/if}
{/section}
{section name=path loop=$CHEMIN_REP}
{if $smarty.section.path.first}
<center><font size="1">
{/if}
<a href="{$PAGE_EXPLO}?directory={$CHEMIN_REP[path].0}&mode={$MODE}">{$CHEMIN_REP[path].1|strip_delimiters}/</a>
{if $smarty.section.path.last}
</font></center>
{/if}
{/section}
{if $AFF_CDDA}
<a href="playdb.php?type=cdda&disque={$LETTRE_CDDA}">Lire {$LETTRE_CDDA}: en tant que cd</a>
{/if}
{assign var=NUM_ROW_AFFICH value=15}
<table width="498" cellpadding="0" cellspacing="0" align="center" valign="middle">
{if $PLAYREP OR $AFF_FAVORIS}
<tr><td colspan="2"><center>
{/if}
{if $PLAYREP}
<img src="{$SKIN_REP}dossier/rep_all.gif" border="0" width="20" height="20"><a href="{$PAGE_LECT_REP}?toplay={$REP|urlencode}&type=playrep"> {$PLAYREP_TEXT|default:"Lire le r\xE9pertoire complet"}</a>
{/if}
{if $PLAYREP AND $AFF_FAVORIS}
-
{/if}
{if $AFF_FAVORIS}
<img src="{$SKIN_REP}dossier/favoris.gif" width="20" height="20"> <a href="{$RACINE_REP}module/favoris/index1.php?ajout={$REP|urlencode}&nom={$REP}">Ajouter aux favoris</a>
{/if}
{if $PLAYREP OR $AFF_FAVORIS}
</center></td></tr>
{/if}
{if $MIN!=0}
{assign var=temp value=$MIN-$NUM_ROW_AFFICH|max:0}
<tr><td colspan="2"><img src="{$INTERFACE_REP}btn_vert.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN-$NUM_ROW_AFFICH|max:0}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Pr\xE9c\xE9dent</font></a> <a href="{$PAGE_EXPLO}?start=0&directory={$REP|urlencode}&mode={$MODE}"><font size=2>D\xE9but du r\xE9pertoire</font></a></td></tr>
{attribbouton touche="green" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"}
{/if}
{if $Nb_rep_path >='2' AND $MIN==0}
{assign var=temp value=$REP|dirname|realpath|urlencode}
<tr><td colspan="2"><img src="{$INTERFACE_REP}btn_jaune.gif" border="0"> <a focused href="{$PAGE_EXPLO}?directory={$REP|dirname|realpath|urlencode}&mode={$MODE}">Dossier parent</a></td></tr>
{attribbouton touche="yellow" lien="$PAGE_EXPLO?directory=$temp&mode=$MODE"}
{elseif $Nb_rep_path >='2'}
{assign var=temp value=$REP|dirname|realpath|urlencode}
{attribbouton touche="yellow" lien="$PAGE_EXPLO?directory=$temp&mode=$MODE"}
{/if}
{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}">{$T_affich[files]|truncate:55|strip_delimiters}</a></font></td></tr>
{else}
<tr><td><img src="{$SKIN_REP}dossier/{$ICONE_FICHIER}" width="16" height="16"> <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}">{$T_affich[files]|strip_delimiters|truncate:52}</a>
</font></td><td width="35">
{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}"><font size="1">info</font></a>
{/if}
</td></tr>
{/if}
{/section}
{assign var=N_affich value=$T_affich|@count}
{assign var=N_affich_reste value=$NUM_ROW_AFFICH|max:15}
{if $MIN+$smarty.section.files.total<count($T_affich)}
<tr><td colspan="2"><img src="{$INTERFACE_REP}btn_bleu.gif" border="0"> <a href="{$PAGE_EXPLO}?start={$MIN+$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}"><font size=2>Suivant</font></a> - <font size=2><a href="{$PAGE_EXPLO}?start={$N_affich-$smarty.section.files.total}&directory={$REP|urlencode}&mode={$MODE}">Fin du r\xE9pertoire</a> - Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr>
{assign var=temp value=$MIN+$smarty.section.files.total}
{attribbouton touche="blue" lien="$PAGE_EXPLO?start=$temp&directory=$rep_encoded&mode=$MODE"}
{else}
<tr><td colspan="2"><font size=2>Page {$MIN/$NUM_ROW_AFFICH+1|ceil} / {$N_affich/$NUM_ROW_AFFICH|ceil}</font></td></tr>
{/if}
</table>
{$FOOTER}
\ No newline at end of file
Modified: trunk/module/films/lecture.php
===================================================================
--- trunk/module/films/lecture.php 2006-10-26 19:33:36 UTC (rev 40)
+++ trunk/module/films/lecture.php 2006-10-27 10:45:42 UTC (rev 41)
@@ -70,11 +70,7 @@
} else
{
// Micht : Utilisation d'une page de skin
- if (($message = file_get_contents($SKIN_REP.'signet_ask.tpl')) === FALSE)
- {
- $message.= '<center>Le film n\'est pas fini ! <br>Voulez-vous placer un signet pour y revenir rapidement plus tard ?<br><br>';
- $message.= '<a href="lecture.php?control=stop&signet=load"><box border=2 width=35 height=18 align=center text="Oui"></a> <a href="lecture.php?control=stop&signet=noload"><box border=2 width=35 height=18 align=center text="Non"></a></center>';
- }
+ $message = $smarty->fetch('signet_ask.tpl');
}
} elseif($control!='seek')
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|