From: <bed...@us...> - 2006-11-01 22:11:53
|
Revision: 45 http://svn.sourceforge.net/easybox-mod/?rev=45&view=rev Author: bedelaitre Date: 2006-11-01 13:55:13 -0800 (Wed, 01 Nov 2006) Log Message: ----------- [ 1564081 ] Le navigateur html light ne semble pas fonctionner Modified Paths: -------------- trunk/module/htmllight/index1.php Added Paths: ----------- trunk/module/htmllight/htmllight.tpl Added: trunk/module/htmllight/htmllight.tpl =================================================================== --- trunk/module/htmllight/htmllight.tpl (rev 0) +++ trunk/module/htmllight/htmllight.tpl 2006-11-01 21:55:13 UTC (rev 45) @@ -0,0 +1,27 @@ +<BR> +<table cellspacing="2" align="center" width="498" valign="middle" border="0"> + <tr> + <td align="center"> + Pour modifier la liste des flux modifier le fichier _Utilisateur/site_html.txt + </td> + </tr> +</table> +<BR> +{section name=feedSection loop=$T_nonfeed} + {if $smarty.section.feedSection.first} + <table cellspacing="2" align="center" width="498" valign="middle" border="0"> + {/if} + <tr valign="middle"> + <td align="center"> + {if $T_nonfeed[feedSection][1]==''} + <u>{$T_nonfeed[feedSection][0]}</u> + {else} + {assign var=rep_encoded value=$T_nonfeed[feedSection][1]|urlencode} + <a href="index1.php?url={$rep_encoded}">{$T_nonfeed[feedSection][0]}</a> + {/if} + </td> + </tr> + {if $smarty.section.feedSection.last} + </table> + {/if} + {/section} Modified: trunk/module/htmllight/index1.php =================================================================== --- trunk/module/htmllight/index1.php 2006-11-01 21:51:20 UTC (rev 44) +++ trunk/module/htmllight/index1.php 2006-11-01 21:55:13 UTC (rev 45) @@ -1,26 +1,38 @@ <?php $RACINE_REP = "../../"; require($RACINE_REP.'_framework/framework.php'); - $image = $ini[htmllight][image]; -?> -<body text="<?= $_COULEUR[HTML_TEXT]; ?>" link="<?= $_COULEUR[HTML_LINK]; ?>" alink="<?= $_COULEUR[HTML_ALINK]; ?>" vlink="<?= $_COULEUR[HTML_VLINK]; ?>"> -<center><table width="600" bgcolor="<?= $_COULEUR[HTML_FOND]; ?>"><tr><td><center> -<? +$nonfeed=array(); +if (!isset($_GET['url'])){ -if (!isset($_GET['url'])){ $contents =file_get_contents($RACINE_REP."_utilisateur/site_html.txt"); $feed = explode("\r",$contents); - echo '<font size="4">Navigateur html light</font> <br \> <br \>Pour modifier la liste des flux modifier le fichier _Utilisateur/site_html.txt<br \> '; for($i="0"; $i<=(count($feed)-1); $i++){ - $nonfeed = explode("|",$feed[$i]); - if(isset($nonfeed[1])) { - echo '<a href="index1.php?url='.urlencode($nonfeed[1]).'">'.$nonfeed[0].'</a>'; - }else{ - echo ' <br \><u>'.$nonfeed[0].'</u>'; + $toto = explode("|",$feed[$i]); + if(!isset($toto[1])) { + $nonfeed[] = array($toto[0],""); } + else + { + $nonfeed[] = array($toto[0],$toto[1]); + } } -}else{ + + $LINK['red']= $MODULE.'_menu/menu.php?cat=29'; + $META['front_panel'] = 'HTML-LIGHT'; + $smarty->debugging = False; + $smarty->assign('TITRE','Navigateur HTML Light'); + $smarty->assign('T_nonfeed',$nonfeed); + $smarty->assign('CONTENT', $smarty->fetch('htmllight.tpl')); + $smarty->display('interface.tpl'); + + +} + +else{ + + $LINK['red']= $MODULE.'htmllight/index1.php'; + //include($LOAD); $url = rawurldecode($_GET['url']); ini_set('user_agent','MSIE 4\.0b2;'); @@ -77,5 +89,4 @@ echo "Impossible d'ouvrir la page"; } } -echo "</center></td></tr><tr><td align=center><a href=\"/module/_menu/menu.php\">Retour au mod</a></td></tr></table></center>"; ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |