<?php
include('../inc/globals.php');
require('../inc/sql_connect.php');
include('../inc/template.php');

define('THIS_PAGE_ID', 0);

$user_info = user_logged_in();

$hide_bc = true;

$META_DATA  = '<meta name="robots" content="noindex,follow" >';


function build($parent_id=0) {
 global $TABEL_SISUKORD;

	$result = mysql_query('SELECT * FROM '.$TABEL_SISUKORD.' WHERE parent_id="'.$parent_id.'" ORDER BY sort_index ASC');
	if (mysql_num_rows($result)) {
		echo '<ul class="c">';
		while ($r = mysql_fetch_assoc($result)) {
			echo '<li><A HREF="'.$r['url'].'">'.$r['name'].'</A>';
			build($r['id']);
		}
		echo '</ul>';
	}
}


show_header('', $LANG[109]);

echo '<table align="center" width="80%">';
echo '<tr><td><B><H4>'.$LANG[109].'</H4></B></td></tr>';
echo '<tr><td>';
build();
echo '</td></tr>';
echo '</table>';

show_footer();

?>