<?
	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";
	
	$x = get_data("select guid, library_guid, FolderName as Naziv, parent_guid from folder where guid = '".$_GET['value']."' ");
	
	//$l_children = substr(get_children($x['guid'], "select guid, FolderName as Naziv, parent_guid from folder where parent_guid = '{_REPLACE_VALUE_}' "), 1);
	//$y = get_data("select guid, FolderName as Naziv from folder where guid not in (".$l_children.") order by FolderName ", 1);
	
	//$var_value_library_guid = $x['library_guid'];
	$var_value_parent_guid = $x['guid'];
	
	//$l_forma = '<p>Dodaj novu (pod)mapu</p>'.gen_form('folder', 'tablica_foldera');
	
	$l_forma = gen_form('folder', 'tablica_foldera');
	
	print $l_forma;
?>
