<?
	header("Content-Type: text/html; charset=utf-8");
	
	$g_path = '../../my/';
	
	include $g_path."u_globals.php";
	include $g_path."html/f.php";
	include $g_path."u_spoj_na_bazu.php";
	
	include $g_path."u_headers.php";
	
	$la_data = explode('-', $_GET['data']);
	
	$x = get_data('select meta_item.ime_polja, meta_tablica_list.ime_tablice '.
		' from meta_tab, meta_grupa, meta_item, meta_forma, meta_tablica_list '.
		' where meta_item.rbr_meta_grupa = meta_grupa.rbr '.
		' and meta_grupa.rbr_meta_tab = meta_tab.rbr '.
		' and meta_tab.rbr_meta_forma = meta_forma.rbr '. 
		' and meta_forma.rbr_meta_tablica_list = meta_tablica_list.rbr '.
		' and meta_item.rbr = '.$la_data[0].
		' and meta_item.rbr_atribut = '.$la_data[1], 0);
	
	$result = get_item('select '.$x['ime_polja'].' from '.$x['ime_tablice'].' where guid = "'.$_GET['value'].'" ');
	
	print $result;
?>
