Последние добавленные публикации
"Последние добавленные публикации" | "https://abai.kz/post/1674"
TITLE: Последние добавленные публикации
URL: https://abai.kz/post/1674
META: "Последние добавленные публикации" | "https://abai.kz/post/1674"
DATE: 27.08.2009
AUTHOR(s): Абай-Ақпарат
TOTAL WORDS: 160
TEXT: $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; ?>
