Pages vues depuis 25/05/2001 : 107 944 185
Index du forum »» Mods, Trucs, Astuces »» Comment Réaliser un central board en natif NPDS
echo "<table width=\"100%\" border=\"0\"><tr>";
if ($op=="edito") {
echo "<td colspan=\"3\">";
aff_edito();
echo "<td></tr><tr>";
}
echo "<td valign=\"top\" align=\"left\" width=\"50%\">";
aff_news("News","","");
echo "</td><td width=\"5\"></td>";
echo "<td valign=\"top\" align=\"right\" width=\"50%\">";
aff_news("categories",1,"");
echo "</td></tr></table>";
<?php
/************************************************************************/
/* Modification par Jireck */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
global $theme; $rep=false;
if (file_exists("themes/".$theme."/html/central.html")) {$rep=$theme;}
elseif (file_exists("themes/default/html/central.html")) {$rep="default";}
else {
echo "central.html manquant / not find !<br />";
die();
}
if ($rep) {
ob_start();
!include!("themes/".$rep."/html/central.html");
$Xcontent=ob_get_contents();
ob_end_clean();
echo meta_lang(aff_langue($Xcontent));
}
?>
!PHP!<!--meta
<?php
if ($op=="edito") {
aff_edito();
}
aff_news("News","","");
?>
meta-->
<table>
<tr>
<td colspan="3">
!edito!
<td>
</tr>
<tr>
<td valign="top" align="left" width="50%">
<table>
top_stories(5)
</table>
</td>
<td valign="top" align="right" width="50%">
<table>
top_authors(5)
</table>
</td>
</tr>
<tr>
<td>
top_categories(5)
</td>
<td>
top_polls(5)
</td>
</tr>
</table>
Message édité par : B-Mag / 27-06-2009 09:54
Message édité par : B-Mag / 27-06-2009 09:56
Message édité par : B-Mag / 27-06-2009 09:58