Жұма, 19 Сәуір 2024
Жаңалықтар 5311 0 пікір 27 Тамыз, 2009 сағат 15:39

Последние добавленные публикации


$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;
?>

0 пікір