$data = get_objects(); function get_objects() { GLOBAL $db; $objects = false; $tpl = new dle_template(); $tpl->dir = TEMPLATE_DIR; $tpl->load_template('spider/intern.tpl'); //$row = $db->super_query( "SELECT * FROM " . USERPREFIX . "_intern_list"); $tpl->set("{intern_list_1}", get_intern_list(0)); $tpl->set("{intern_list_2}", get_intern_list(1)); $tpl->set("{info}", get_info()); $tpl->compile('ss'); $table = $tpl->result['ss']; return $tpl->result['ss']; } function get_intern_list($planned) { GLOBAL $db; $objects = false; include ('engine/api/api.class.php'); $itemprop = "internationalDog"; if ($planned == 0) $itemprop = ' itemprop="internationalDog"'; $rows = $db->query("SELECT * FROM " . USERPREFIX . "_intern_list WHERE planned={$planned} ORDER BY gos_name, id"); $table = ""; $i = 1; if ($rows->num_rows > 0) { while ($row = $db->get_row()) { $table .= "