From: <bed...@us...> - 2006-10-28 21:18:33
|
Revision: 42 http://svn.sourceforge.net/easybox-mod/?rev=42&view=rev Author: bedelaitre Date: 2006-10-28 14:18:18 -0700 (Sat, 28 Oct 2006) Log Message: ----------- [ 1564092 ] Navigation par lettre un d?\195?\169but d'embryon de qque chose. A apporfondir ou oublier .... Modified Paths: -------------- trunk/module/_explorateur/explorateur.tpl Modified: trunk/module/_explorateur/explorateur.tpl =================================================================== --- trunk/module/_explorateur/explorateur.tpl 2006-10-27 10:45:42 UTC (rev 41) +++ trunk/module/_explorateur/explorateur.tpl 2006-10-28 21:18:18 UTC (rev 42) @@ -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" 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 +{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=10} <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} {assign var=curIndex value=1} {assign var=curTD value=0} {assign var=FromValue value=""} {assign var=ToValue value=""} {section name=quickjump loop=$T_affich start=$MIN} {if $smarty.section.quickjump.first} <tr><td> </td></tr><tr><td><table cellspacing="2" align="center" width="600" valign="middle"><tr valign="middle"> {/if} {if $curIndex==1} {assign var=FromValue value=""} {if $T_affich[quickjump]|in_array:$T_rep} {assign var=FromValue value="[rep] "} {/if} {assign var=FromValue value=$FromValue|cat:$T_affich[quickjump]|strip_delimiters|truncate:20} {/if} {assign var=ToValue value=""} {if $T_affich[quickjump]|in_array:$T_rep} {assign var=ToValue value="[rep] "} {/if} {assign var=ToValue value=$ToValue|cat:$T_affich[quickjump]|strip_delimiters|truncate:20} {if $curIndex==$NUM_ROW_AFFICH OR $smarty.section.quickjump.last} {if $curTD<=3} <td valign="middle" border=1><font size='2'><a href="{$PAGE_EXPLO}?start={$MIN+$curTD*$NUM_ROW_AFFICH}&directory={$REP|urlencode}&mode={$MODE}">{$FromValue}-><BR>{$ToValue}</a></font></td> {/if} {assign var=curTD value=$curTD+1} {assign var=curIndex value=0} {/if} {assign var=curIndex value=$curIndex+1} {if $smarty.section.quickjump.last} </tr></table></td></tr><tr><td> </td></tr> {/if} {/section} {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 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bed...@us...> - 2006-10-29 16:00:51
|
Revision: 43 http://svn.sourceforge.net/easybox-mod/?rev=43&view=rev Author: bedelaitre Date: 2006-10-29 08:00:36 -0800 (Sun, 29 Oct 2006) Log Message: ----------- Ajout d'un index dans l'explorateur quand n?\195?\169cessaire. Cet index comporte des lignes de 10 cellules maximum. Le nombre d'?\195?\169lements est ramen?\195?\169 ?\195?\160 14 pour laisser la place ?\195?\160 l'affichage. Modified Paths: -------------- trunk/module/_explorateur/explorateur.tpl Modified: trunk/module/_explorateur/explorateur.tpl =================================================================== --- trunk/module/_explorateur/explorateur.tpl 2006-10-28 21:18:18 UTC (rev 42) +++ trunk/module/_explorateur/explorateur.tpl 2006-10-29 16:00:36 UTC (rev 43) @@ -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" 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=10} <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} {assign var=curIndex value=1} {assign var=curTD value=0} {assign var=FromValue value=""} {assign var=ToValue value=""} {section name=quickjump loop=$T_affich start=$MIN} {if $smarty.section.quickjump.first} <tr><td> </td></tr><tr><td><table cellspacing="2" align="center" width="600" valign="middle"><tr valign="middle"> {/if} {if $curIndex==1} {assign var=FromValue value=""} {if $T_affich[quickjump]|in_array:$T_rep} {assign var=FromValue value="[rep] "} {/if} {assign var=FromValue value=$FromValue|cat:$T_affich[quickjump]|strip_delimiters|truncate:20} {/if} {assign var=ToValue value=""} {if $T_affich[quickjump]|in_array:$T_rep} {assign var=ToValue value="[rep] "} {/if} {assign var=ToValue value=$ToValue|cat:$T_affich[quickjump]|strip_delimiters|truncate:20} {if $curIndex==$NUM_ROW_AFFICH OR $smarty.section.quickjump.last} {if $curTD<=3} <td valign="middle" border=1><font size='2'><a href="{$PAGE_EXPLO}?start={$MIN+$curTD*$NUM_ROW_AFFICH}&directory={$REP|urlencode}&mode={$MODE}">{$FromValue}-><BR>{$ToValue}</a></font></td> {/if} {assign var=curTD value=$curTD+1} {assign var=curIndex value=0} {/if} {assign var=curIndex value=$curIndex+1} {if $smarty.section.quickjump.last} </tr></table></td></tr><tr><td> </td></tr> {/if} {/section} {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} <table align="center" cellpadding="0" cellspacing="0" width="498" valign="middle"><tr valign="middle"><tr><td align="center"><font size="1"> {/if} <a href="{$PAGE_EXPLO}?directory={$CHEMIN_REP[path].0}&mode={$MODE}">{$CHEMIN_REP[path].1|strip_delimiters|truncate:20:"...":true:true}/</a> {if $smarty.section.path.last} </td></tr></table></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=14} <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} {assign var=curIndex value=1} {assign var=curTD value=0} {assign var=curTR value=0} {assign var=FromValue value=""} {assign var=ToValue value=""} {* Il faut d\xE9terminer le nombre de caract\xE8re pour afficher le nom des fichiers dans les blocs d'index*} {if $T_affich|@count/$NUM_ROW_AFFICH<=1} {assign var=indexLength value=0} {elseif $T_affich|@count/$NUM_ROW_AFFICH<=3} {assign var=indexLength value=8} {elseif $T_affich|@count/$NUM_ROW_AFFICH<=5} {assign var=indexLength value=5} {elseif $T_affich|@count/$NUM_ROW_AFFICH<=7} {assign var=indexLength value=2} {else} {assign var=indexLength value=1} {/if} {if $indexLength>0} {section name=quickjump loop=$T_affich start=$0} {if $smarty.section.quickjump.first} <tr><td><table cellspacing="2" align="center" width="498" valign="middle" border="0"><tr valign="middle"> {/if} {if $curIndex==1} {assign var=FromValue value=$T_affich[quickjump]|strip_delimiters|truncate:$indexLength:"":true} {if $T_affich[quickjump]|in_array:$T_rep} {assign var=FromValue value=$FromValue|upper} {else} {assign var=FromValue value=$FromValue|lower} {/if} {/if} {assign var=ToValue value=$T_affich[quickjump]|strip_delimiters|truncate:$indexLength:"":true} {if $T_affich[quickjump]|in_array:$T_rep} {assign var=ToValue value=$ToValue|upper} {else} {assign var=ToValue value=$ToValue|lower} {/if} {* Si l'on a le nombre de fichier par page ou que c'est le dernier, alors il faut \xE9crire le bloc*} {if $curIndex==$NUM_ROW_AFFICH OR $smarty.section.quickjump.last} <td valign="middle" border="1" align="center"><font size='1'><a href="{$PAGE_EXPLO}?start={$curTR*10+$curTD*$NUM_ROW_AFFICH}&directory={$REP|urlencode}&mode={$MODE}">{$FromValue} .. {$ToValue}</a></font></td> {assign var=curTD value=$curTD+1} {* Chaque ligne du tableau ne peut pas d\xE9passer 10 cellules *} {if $curTD==10} </tr><tr> {assign var=curTR value=$curTR+1} {assign var=curTD value=0} {/if} {assign var=curIndex value=0} {/if} {* On incr\xE9mente l'index du fichier trait\xE9*} {assign var=curIndex value=$curIndex+1} {if $smarty.section.quickjump.last} </tr></table></td></tr> {/if} {/section} {/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}"><font size="2">Dossier parent</font></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 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |