Aktuality

Kalendárium regionálních osobností (výběr)


--> EOE; if($_GET['r'] == 'history') { $time = time(); $time_cond = "< $time"; } else { $time = time() - $time_reserve; $time_cond = "> $time"; } $output = ''; $ctype = flexinode_load_content_type($ctype_id); if ($ctype_id) { $type = 'flexinode-' . db_escape_string($ctype_id); } else { $type = 'flexinode-%'; } $uz_bylo = ''; /* $result = pager_query(db_rewrite_sql("SELECT n.nid FROM {node} n LEFT JOIN {flexinode_data} f ON n.nid=f.nid WHERE n.status = 1 AND n.type LIKE '%s' AND f.field_id IN(%s) AND f.numeric_data %s AND (language = '' OR language='%s') ORDER BY n.created DESC"), variable_get('default_nodes_main', 10), 0, NULL, $type, $time_field, $time_cond, $locale); */ //řazení podle data dahájení akce $result = pager_query(db_rewrite_sql("SELECT n.nid FROM {node} n LEFT JOIN {flexinode_data} f ON n.nid=f.nid WHERE n.status = 1 AND n.type LIKE '%s' AND f.field_id IN(%s) AND f.numeric_data %s AND (language = '' OR language='%s') ORDER BY f.numeric_data"), variable_get('default_nodes_main', 10), 0, NULL, $type, $time_field, $time_cond, $locale); $counter=0; while ($node = db_fetch_object($result)) { // rca - flexinode_list s parametrem 0 zobrazi cely obsah nodu if (!ereg($node->nid, $uz_bylo)) { if($bbb_list) { $counter++; $output .= node_view(node_load(array('nid' => $node->nid)), 0); } else { $output .= node_view(node_load(array('nid' => $node->nid)), 1); } $i++; $uz_bylo .= "$node->nid,"; } } if ($i) { $output .= $extra_content; $output .= theme('pager', NULL, variable_get('default_nodes_main', 10)); if($_GET['r'] != 'history') { $output .= $extra_content; } } else { $output .= $extra_content; } drupal_set_title(t($ctype->name)); print( $output); ?>