Beysenbi, 29 Qazan 2020
COVID-19 QAZAQSTANDA. Júqtyrghandar — 110832. Jazylghandar — 105883. Qaytys bolghandar — 1825
Janalyqtar 2652 0 pikir 27 Tamyz, 2009 saghat 15:39

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

0 pikir