Poslednie dobavlennye publikasiy
	$nlimit = 10;
	$type = "book";
	$result = db_query_range(db_prefix_tables("SELECT n.created, n.title, n.nid FROM {node} AS n, {users} AS u
	WHERE n.type = '$type' AND n.status = 1 AND u.uid=n.uid	ORDER BY n.created DESC "), 0, $nlimit);
	while ($node = db_fetch_object($result)) {
	$items[] = node_view(node_load(array('nid' => $node->nid)), $teaser = TRUE, $page = FALSE, $links = TRUE);
	}
	if (isset($items) && is_array($items) && count($items) > 0) {
	foreach ($items as $item){
        $output .=   $item . "
";
	}
        }
	print $output;
?>
	$nlimit = 10;
	$type = "book";
	$result = db_query_range(db_prefix_tables("SELECT n.created, n.title, n.nid FROM {node} AS n, {users} AS u
	WHERE n.type = '$type' AND n.status = 1 AND u.uid=n.uid	ORDER BY n.created DESC "), 0, $nlimit);
	while ($node = db_fetch_object($result)) {
	$items[] = node_view(node_load(array('nid' => $node->nid)), $teaser = TRUE, $page = FALSE, $links = TRUE);
	}
	if (isset($items) && is_array($items) && count($items) > 0) {
	foreach ($items as $item){
        $output .=   $item . "
";
	}
        }
	print $output;
?>
 
                                                                                                 