<?
	$l_datum = strtotime(u_godina().'-'.u_mjesec(0, 1).'-'.u_datum(0, 1)) - 30 * 24 * 60 * 60;
	$l_datum_str = date('d', $l_datum).'-'.date('m', $l_datum).'-'.date('Y', $l_datum);
	
	$l_datum_str_2 = u_datum(0, 1).'-'.u_mjesec(0, 1).'-'.u_godina();
?>
	<div class="reportWrap">
		<form name="formaasdf2" method="post" action="print.php?a=<?=$_GET['a']?>&b=<?=$_GET['b']?>&addition=<?=$_GET['addition']?>" target="_blank">
		
		<input type="radio" name="knjiga_popisa_radio" value="1" checked id="komplet_knjiga_popisa" onclick="checks_3_clear();" style="margin-top:20px; "> Komplet knjiga popisa<br>
		<br>
		
		
		<input type="radio" name="knjiga_popisa_radio" value="2" onclick="checks_3_clear();" style="margin-top:25px; "> Pregled knjige za odredjeno razdoblje<br>
		<span id="kpr_2" style="padding:5px 15px 5px 15px; background:#e1c1a1; display:block; overflow:hidden; margin:5px 0 15px 23px; ">
			<p><span>Od: </span><input type="text" name="primka_od" id="primka_od" value="<?=$l_datum_str_2?>"><img src="<?=$g_path_sl_res
				?>js/datetimepicker_css/cal.gif" class="datetimepicker" onclick="NewCssCal('primka_od', 'ddMMyyyy', 'arrow'); return false;"></p>
			<p><span>Do: </span><input type="text" name="primka_do" id="primka_do" value="<?=$l_datum_str_2
				?>"><img src="<?=$g_path_sl_res
				?>js/datetimepicker_css/cal.gif" class="datetimepicker" onclick="NewCssCal('primka_do', 'ddMMyyyy', 'arrow'); return false;"></p>
		</span>
		
		
		<div id="kpr_3_wrap" style="width:100%; margin-top:25px; ">
			<input type="radio" name="knjiga_popisa_radio" value="3" id="pregled_odredjenog_dokumenta"> Pregled odredjenog dokumenta<br>
			<span id="kpr_3" style="padding:5px 15px 5px 15px; background:#e1c1a1; display:block; overflow:hidden; margin:5px 0 45px 23px; ">
				<input type="radio" name="kp_dokument_radio" value="1" id="za_robe_1" onclick="za_robe()"> Primke<br>
				<input type="radio" name="kp_dokument_radio" value="2" id="za_robe_2" onclick="za_robe()"> Povratnice<br>
				<input type="radio" name="kp_dokument_radio" value="3" id="za_robe_3" onclick="za_robe()"> Medjuskladisnice<br>
				<input type="radio" name="kp_dokument_radio" value="5" id="za_robe_5" onclick="za_robe()"> Otpisi<br>
				<input type="radio" name="kp_dokument_radio" value="7" id="za_robe_7" onclick="za_robe()"> Inventure<br>
				<input type="radio" name="kp_dokument_radio" value="6" id="za_robe_6" onclick="za_robe()"> Zapisnik o promjeni cijene (Ulazne kalkulacije)<br>
				<input type="radio" name="kp_dokument_radio" value="9" id="za_robe_9" onclick="za_robe()"> Zapisnik o promjeni cijene (Promjena cijene)<br>
				<input type="radio" name="kp_dokument_radio" value="8" id="za_robe_8" onclick="za_robe()"> Dnevni promet<br>
				<?/*?><input type="radio" name="kp_dokument_radio" value="10"> <span style="color:blue">Knjiga prometa usluga</span><br><?*/?>
				<?/*?><input type="radio" name="kp_dokument_radio" value="4"> Izdatnice<br><?*/?>
				
<?
				
				$l_dokument_datum = strtotime(u_godina().'-'.u_mjesec(0, 1).'-'.u_datum(0, 1));
				$l_dokument_datum_str = '01-01-'.u_godina();
				$l_dokument_datum_str_2 = date('d', $l_dokument_datum).'-'.date('m', $l_dokument_datum).'-'.date('Y', $l_dokument_datum);
?>

				<span id="kpr_3B" style="padding:5px 15px 5px 15px; display:block; overflow:hidden; margin:5px 0 5px 23px; ">
					<p><span>Od: </span><input type="text" name="dokument_primka_od" id="dokument_primka_od" value="<?=$l_dokument_datum_str?>"><img src="<?=$g_path_sl_res
						?>js/datetimepicker_css/cal.gif" class="datetimepicker" onclick="NewCssCal('dokument_primka_od', 'ddMMyyyy', 'arrow'); return false;"></p>
					<p><span>Do: </span><input type="text" name="dokument_primka_do" id="dokument_primka_do" value="<?=$l_dokument_datum_str_2
						?>"><img src="<?=$g_path_sl_res
						?>js/datetimepicker_css/cal.gif" class="datetimepicker" onclick="NewCssCal('dokument_primka_do', 'ddMMyyyy', 'arrow'); return false;"></p>
				</span>
				
			</span>
		</div>
		
		
		<span id="kpr_4" style="padding:5px 15px 5px 15px; background:#e1c1a1; display:block; overflow:hidden; margin:5px 0 15px 23px; ">
			<input type="radio" name="kp_promet_roba_usluga" value="1" checked onclick="kp_robeusluge(1); "> Knjiga prometa roba<br>
			<input type="radio" name="kp_promet_roba_usluga" value="2" onclick="kp_robeusluge(2); "> Knjiga prometa usluga<br>
		</span>
		
		<p><input type="submit" value="Izradi izvjesce" class="sbm"></p>
		</form>
	</div>
