4 visiteur(s) et 0 membre(s) en ligne.
samedi 11 septembre 2010   
Rechercher

Météo suisse
Skype Me!

Mon statut

Newsletter


Votre adresse E-mail



Recevez par mail les nouveautés du site.

Activité du Site
Pages vues depuis 01/03/2008 : 468 431
  • Nb. de Membres : 134
  • Nb. d'Articles : 63
  • Nb. de Forums : 6
  • Nb. de Sujets : 4
  • Nb. de Critiques : 0

Top 10  Statistiques

Audience
Aujourd'hui : 4 connectés à 00:59.

Ce mois ci : 12 connectés le 5/9 05:43.

Cette année : 27 connectés le 15/1 00:46.

Absolu : 100 connectés le 24/12/2007 09:40.

Aujourd'hui

Total
lastarticle

(870 mots dans ce texte )  -   lu : 624 Fois     Page Spéciale pour impression

Ce méta-mot permet d'afficher les 10 derniers articles postés la valeur 10 peut-être modifiée

Meta : *lastarticles*(10)

il faut supprimer les *

Demo

ArticlesActionsLuPosté le
Hordes Page Spéciale pour impression Nécessite une traduction <b>[** Send this  Story to a Friend **]</b>912010-07-03 13:54:17
Shakes & Fidget Page Spéciale pour impression Nécessite une traduction <b>[** Send this  Story to a Friend **]</b>742010-07-03 13:04:38
Labo à thèmes pour npds Page Spéciale pour impression Nécessite une traduction <b>[** Send this  Story to a Friend **]</b>3252010-01-24 15:03:24
Points blancs ou noirs ? Page Spéciale pour impression Nécessite une traduction <b>[** Send this  Story to a Friend **]</b>4052009-11-09 00:31:42
Gagner au loto Page Spéciale pour impression Nécessite une traduction <b>[** Send this  Story to a Friend **]</b>4182009-11-09 00:25:59
Ballons surprise Page Spéciale pour impression Nécessite une traduction <b>[** Send this  Story to a Friend **]</b>3532009-11-09 00:25:07
Fitness pour fénéants Page Spéciale pour impression Nécessite une traduction <b>[** Send this  Story to a Friend **]</b>3632009-11-09 00:24:06
Cercles en mouvement Page Spéciale pour impression Nécessite une traduction <b>[** Send this  Story to a Friend **]</b>3822009-11-09 00:22:54
Voir double Page Spéciale pour impression Nécessite une traduction <b>[** Send this  Story to a Friend **]</b>4212009-11-09 00:21:50
Les mains qui se dessinent Page Spéciale pour impression Nécessite une traduction <b>[** Send this  Story to a Friend **]</b>4722009-11-09 00:20:31


Code

function MM_lastarticles($maxarticles_b1) {
global $NPDS_Prefix, $site_font, $bgcolor4, $bgcolor3, $bgcolor2, $bgcolor1, $textcolor1, $textcolor2, 
$user;
$maxarticles_b1 = arg_filter($maxarticles_b1);    
$maxcount = $maxarticles_b1; 
if ($maxarticles_b1 == '') {    
$maxcount=5; 
}    
$tab_groupe = valid_group($user);
$clausewhere= "WHERE ihome='0' OR ihome='1' "; 
for ($ii=0; $ii<=9; $ii++) {
if($tab_groupe[$ii]) 
$clausewhere .= "OR ihome='$tab_groupe[$ii]'"; 
}
if($user)   
$clausewhere .= "OR ihome='-127' ";   
$chaine_rep .= '<table id="LastArticles">';
$chaine_rep .= '<tr id="enTeteLastArticles">';
$chaine_rep .= '<td>Articles</td>';
$chaine_rep .= '<td>Actions</td>';
$chaine_rep .= '<td>Lu</td>';
$chaine_rep .= '<td>Posté le</td>';
$chaine_rep .= '</tr>'; 
$xtab = news_aff("libre", " $clausewhere ORDER BY sid DESC limit $maxcount", 0, $maxcount); 
$ibid=0; 
$story_limit=0; 
while (($story_limit < $maxcount) and ($story_limit < sizeof($xtab))) { 
list($s_sid, $catid, $aid, $title, $time, $hometext, $bodytext, $comments , $counter, 
$topic, $informant) = $xtab[$story_limit];  
$story_limit++; 
if ($catid!=0) {
list($cattitle) = sql_fetch_row(sql_query("SELECT title FROM ".$NPDS_Prefix."stories_cat 
WHERE catid='".$catid."'"));
}
$printP = '<a href="print.php?sid='.$s_sid.'"><img src="images/print.gif"  border="0" 
Alt="'.translate("Printer Friendly Page").' "width="15" height="11"></a>'; 
$sendF = '<a href="friend.php?op=FriendSend&sid='.$s_sid.'">
<img src="images/friend.gif" border="0" Alt="'.translate("Send this  Story to a Friend").'" 
width="15" height="11"></ a>'; 
setlocale (LC_TIME,$locale); 
ereg ("([0-9]{4})-([0-9] {1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $time, 
$datetime); 
$sid = $s_sid;
$letitre = ''.translate("Posté par ").''.$informant.', le '.$time.'; lu '. $counter.' fois';
if ($catid != 0) { 
$resultm = sql_query("SELECT title FROM ".$NPDS_Prefix."stories_cat WHERE catid='$catid'"); 
list($title1) = sql_fetch_row($resultm); 
$title = "<a href='article.php?sid=$sid'  title='".$letitre."'>".aff_langue($title)."</a>  
<a href='index.php?op=newindex&catid=$catid' title='".$letitre."'[$title1]</a>"; 
} else { 
$title = '<a href="article.php?sid='.$sid.'" title="'.$letitre.'">'.aff_langue($title).'</a>' ; 
}
if($comments) 
$title .= '('.$comments.' comment.)'; 
$class = tablos();
 
$title = str_replace('NPDS', 'npds',$title);
$chaine_rep .= '<tr '.$class.'>'; 
$chaine_rep .= '<td>'.stripslashes($title).' </td>
<td class="centreLastArticles">' .$printP.' '.$sendF.'</td>';
$chaine_rep .= '<td class="centreLastArticles">'.$counter.'</td>';
$chaine_rep .= '<td class="centreLastArticles">'.$time.'</td>';
$chaine_rep .= '</tr>'; 
} 
$chaine_rep .= "</table>"; 
return ($chaine_rep);
}

Pour toutes questions à propos de cet article --> Forums




Retour à la sous-rubrique :
  • NPDS - Meta-mots

  • Autres publications de la sous-rubrique :
  • Top downloads
  • Affiche sondageID
  • det_bloc_rubrique
  • top_rubriqueID
  • last_rubriqueID
  • Flags traduction
  • SkypeMe!
  • Temps : 0.3434 seconde(s)