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


$sql = "select naslov,opis from b7_rubrika where id_rubrika='$id_rub'";
$rez = mysql_query($sql, $conn);
$row = mysql_fetch_array($rez);
$rubrika_naslov= $row[0];
$rubrika_opis= $row[1];



//parametri
?>
<div id="main_content">
<h1>Promjeni parametre za rubriku <em><?php echo $rubrika_naslov;?></em></h1>

<form method="post" action="glavna.php?modul=<?php echo $modul;?>&amp;akcija=update_rubrika&amp;id_rub=<?php echo $id_rub;?>" enctype="multipart/form-data" onSubmit="return checkrequired(this)">
<p>
<label><a href="#" class="help" onMouseover="ddrivetip('Naziv kategorije', 200)"; onMouseout="hideddrivetip()">Naziv rubrike</a>:</label>
<input tabindex="1" type="text" size="40" maxlength="250" name="q_naslov" value="<?php echo $rubrika_naslov;?>" id="requiredNaziv rubrike" /><br />
</p>
<p>
<label><a href="#" class="help" onMouseover="ddrivetip('Opis rubrike', 200)"; onMouseout="hideddrivetip()">Opis</a>:</label>
<input tabindex="2" type="text" size="40" maxlength="250" name="q_opis" value="<?php echo $rubrika_opis;?>"  /><br />
</p>
	
<p>
<input tabindex="14" name="posalji" class="submit" type="submit" value="Pošalji" />
</p>
</form>
<br />
<br />
<?php
if ($kategorija!='0') {
	?>    
	<a class="gray_normal" href="glavna.php?modul=<?php echo $modul; ?>&amp;akcija=display_rubrike"><img src="slike/action_back.gif" width="16" height="16" alt="" border="0" /> <b>Odustani!</b></a>
	<?php
	}
?>
<br />
<br />
</div>