<?php
//<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
//za sigurnost
if (!defined('SIGURICA')) die();

$data_id = $_REQUEST['data_id'];
$sql="select * from lvl2 where id_lvl2='$data_id'";
$rez99=mysql_query($sql,$conn); 
$row99=mysql_fetch_array($rez99);
$id_lvl1=$row99['id_lvl1'];
$opis_lvl1=$row99['opis_lvl1'];
$id_lvl2=$row99['id_lvl2'];
$opis_lvl2=$row99['opis_lvl2'];
?>
<style type="text/css">
form {
	padding:20px;
	border:1px dotted #CCC;
	background-color:#eee;
	width:700px;
	margin:30px auto;
	
}
form p {
	margin:0 0 15px 0;
}
form label {
	width:200px;
	text-align:right;
	display:block;
	float:left;
	font-family:Verdana, Geneva, sans-serif;
	font-size:13px;
}
input, submit, select {
	font-family:Verdana, Geneva, sans-serif;
	font-size:13px;
}
</style>



<form action="glavna.php" enctype="multipart/form-data" method="post">
<p>
<label>Nivo 1:</label>
  <select name="pogon" class="pogon">
    <option value="0">--odaberi--</option>
    <?php
	$sql=mysql_query("select * from lvl1 where vidljivost='1' order by opis_lvl1 ASC");
	while($row=mysql_fetch_array($sql))
	{
	echo '<option value="'.$row['id_lvl1'].'"';
	if ($row['id_lvl1']==$id_lvl1) echo 'selected="selected"';
	echo '>'.$row['opis_lvl1'].'</option>';
	 } ?>
  </select>
</p>
  
<p>
	<label>Nivo 2 - opis:</label>
	<input tabindex="1" type="text" size="30" maxlength="50" name="q_ime" value="<?php echo $opis_lvl2;?>"  /><br />
</p>

<p>
<input type="submit" value="Pošalji" />
</p>
<input type="hidden" name="akcija" value="lokacije_postrojenje_update" />
<input type="hidden" name="data_id" value="<?php echo $data_id;?>" />
<input type="hidden" name="modul" value="fondovi" />
</form>
