<?
	$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";
	
	if(!$_SESSION['__id']){
		exit;
	}
	
	$l_str .= '<tr bgcolor="#555544" style="color:white">';
	$l_str .= '<td>Broj</td>';
	$l_str .= '<td>Datum pokretanja</td>';
	$l_str .= '<td>Tema</td>';
	$l_str .= '<td align="center">Završeno</td>';
	$l_str .= '<td></td>';
	$l_str .= '</tr>'."\n";
	
	$x = get_data('select guid, Broj, DatumPokretanja, Tema, Zavrseno from nesukladnosti where god_plan_un_oc_guid = "'.$_GET['rbr'].'" order by Broj ', 1);
	for($i = 0; $i < sizeof($x['guid']); $i++){
		$l_str .= '<tr bgcolor="#ffffc2">';
		$l_str .= '<td>'.$x['Broj'][$i].'</td>';
		$l_str .= '<td>'.u_datum($x['DatumPokretanja'][$i], 1).'-'.u_mjesec($x['DatumPokretanja'][$i], 1).'-'.u_godina($x['DatumPokretanja'][$i]).'</td>';
		$l_str .= '<td>'.$x['Tema'][$i].'</td>';
		$l_str .= '<td width="60" align="center">'.$x['Zavrseno'][$i].'</td>';
		$l_str .= '<td width="50" align="center"><a href="'.$g_path_sl.'default.php?a=5&b=1&c='.$x['guid'][$i].'" target="_parent"><img src="'.$g_path_sl_res.'images/b-edit-m.gif" border="0"></a></td>';
		$l_str .= '</tr>'."\n";
	}
	
?>
	<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
	<html>
	<head>
		<link rel='stylesheet' type='text/css' href="css/nesukl.css">
	</head>
	<body>
		<table cellpadding="3" cellspacing="1" border="0" width="100%" bgcolor="#cccccc">
		<tr bgcolor="#ffffc2">
			<?=$l_str?>
		</tr>
		</table>
	</body>
	</html>
