Категории

<?php
global $nolinks;
print '

';

$tids = array();
$res= db_query("SELECT tid, name FROM {term_data} WHERE vid = 1 ORDER BY weight, name");

while ($term = db_fetch_object($res)) {
$tids[$term->tid] = $term->name;
}

$counter = 0;
$linescount = 0;
foreach ($tids as $tid => $name)
{
$counter++;
if ($counter%2==1){
$linescount++;
print '
';
}
print '

';
print '

'.l($name, 'taxonomy/term/'.$tid, array()).'

';
print '

';
print '

';
$nodes_res = taxonomy_select_nodes(array($tid));
$node_counter = 0;
while ($node = db_fetch_object($nodes_res))
{
$node = node_load($node->nid);
print '

'.l($node->title, 'node/'.$node->nid, array()).'

';
$nolinks = true;
// print node_view($node, false);
$nolinks = false;
if (++$node_counter > 7) break;
}
print '

'.l('Все спамы...', 'taxonomy/term/'.$tid, array()).'

';
print '

';
print '

';
if ($counter%2==0) print '

';

}
print '

';
?>Kids Clothes