|
||||||||||||
|
||||||||||||
|
||||||||||||
|
|
|||||||||||
$taxo_single_id_name) { $query = “SELECT DISTINCT n.nid, n.title, n.created FROM {node} n INNER JOIN {term_node} tn ON n.nid = tn.nid WHERE tn.tid IN ($taxo_single_id_name) AND n.status = 1 ORDER BY n.created DESC”; $sql = db_rewrite_sql($query); $result = db_query_range(db_rewrite_sql($sql), 0, $list_no_per_term); $items = array(); while ($anode = db_fetch_object($result)) { $term_names = array(); # gather, into $term_names, all the terms because of which this node was selected: foreach (taxonomy_node_get_terms($anode->nid) as $term) { if (in_array($term->tid, $taxo_id_arr)) $term_names[] = $term->name; } $items[]= l($anode->title, “node/$anode->nid”); } if(count($items)) { print theme(‘item_list’,$items); } } ?> |
$taxo_single_id_name) { $query = “SELECT DISTINCT n.nid, n.title, n.created FROM {node} n INNER JOIN {term_node} tn ON n.nid = tn.nid WHERE tn.tid IN ($taxo_single_id_name) AND n.status = 1 ORDER BY n.created DESC”; $sql = db_rewrite_sql($query); $result = db_query_range(db_rewrite_sql($sql), 0, $list_no_per_term); $items = array(); while ($anode = db_fetch_object($result)) { $term_names = array(); # gather, into $term_names, all the terms because of which this node was selected: foreach (taxonomy_node_get_terms($anode->nid) as $term) { if (in_array($term->tid, $taxo_id_arr)) $term_names[] = $term->name; } $items[]= l($anode->title, “node/$anode->nid”); } if(count($items)) { print theme(‘item_list’,$items); } } ?> |
|||||||||||
|
|
|||||||||||
$taxo_single_id_name) { $query = “SELECT DISTINCT n.nid, n.title, n.created FROM {node} n INNER JOIN {term_node} tn ON n.nid = tn.nid WHERE tn.tid IN ($taxo_single_id_name) AND n.status = 1 ORDER BY n.created DESC”; $sql = db_rewrite_sql($query); $result = db_query_range(db_rewrite_sql($sql), 0, $list_no_per_term); $items = array(); while ($anode = db_fetch_object($result)) { $term_names = array(); # gather, into $term_names, all the terms because of which this node was selected: foreach (taxonomy_node_get_terms($anode->nid) as $term) { if (in_array($term->tid, $taxo_id_arr)) $term_names[] = $term->name; } $items[]= l($anode->title, “node/$anode->nid”); } if(count($items)) { print theme(‘item_list’,$items); } } ?> |
$taxo_single_id_name) { $query = “SELECT DISTINCT n.nid, n.title, n.created FROM {node} n INNER JOIN {term_node} tn ON n.nid = tn.nid WHERE tn.tid IN ($taxo_single_id_name) AND n.status = 1 ORDER BY n.created DESC”; $sql = db_rewrite_sql($query); $result = db_query_range(db_rewrite_sql($sql), 0, $list_no_per_term); $items = array(); while ($anode = db_fetch_object($result)) { $term_names = array(); # gather, into $term_names, all the terms because of which this node was selected: foreach (taxonomy_node_get_terms($anode->nid) as $term) { if (in_array($term->tid, $taxo_id_arr)) $term_names[] = $term->name; } $items[]= l($anode->title, “node/$anode->nid”); } if(count($items)) { print theme(‘item_list’,$items); } } ?> |
|||||||||||
|
|
|||||||||||
$taxo_single_id_name) { $query = “SELECT DISTINCT n.nid, n.title, n.created FROM {node} n |
$taxo_single_id_name) { $query = “SELECT DISTINCT n.nid, n.title, n.created FROM {node} n INNER JOIN {term_node} tn ON n.nid = tn.nid WHERE tn.tid IN ($taxo_single_id_name) AND n.status = 1 ORDER BY n.created DESC”; $sql = db_rewrite_sql($query); $result = db_query_range(db_rewrite_sql($sql), 0, $list_no_per_term); $items = array(); while ($anode = db_fetch_object($result)) { $term_names = array(); # gather, into $term_names, all the terms because of which this node was selected: foreach (taxonomy_node_get_terms($anode->nid) as $term) { if (in_array($term->tid, $taxo_id_arr)) $term_names[] = $term->name; } $items[]= l($anode->title, “node/$anode->nid”); } if(count($items)) { print theme(‘item_list’,$items); } } ?> |