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

$admin_id=$_GET[admin_id];

$sql99 = "select * from b7_user where id='$admin_id'";
$rez99=mysql_query($sql99,$conn);
if ($rez99) $num99=mysql_num_rows($rez99);
if ($num99==1) {
	$row99=mysql_fetch_array($rez99);
	$id=$row99[0];
	$username=$row99[1];
	$passwd=$row99[2];
	$ime=$row99[3];
	$tel=$row99[4];
	$email=$row99[5];
?>
<div id="main_content">
<h1>Uređivanje korisnika: <?php echo $ime;?></h1>
<form method="post" action="glavna.php?modul=admin&amp;akcija=update_admin" enctype="multipart/form-data" onSubmit="return checkrequired(this)">
<p>
<label><span style="color:#ff0000">*</span><a href="#" class="help" onMouseover="ddrivetip('Ime i prezime korisnika', 200)"; onMouseout="hideddrivetip()">Ime i prezime</a>:</label>
<input tabindex="1" type="text" size="40" maxlength="100" name="q_ime" id="requiredIme i prezime" value="<?php echo $ime;?>"  /><br />
</p>
<p>
<label><span style="color:#ff0000">*</span><a href="#" class="help" onMouseover="ddrivetip('Username', 200)"; onMouseout="hideddrivetip()">Username</a>:</label>
<input tabindex="2" type="text" size="15" maxlength="50" name="q_username" id="requiredUsername" value="<?php echo $username;?>"  /><br />
</p>
<input type="hidden" name="q_passwd" value="<?php echo $passwd;?>"  />
<p>
<label><a href="#" class="help" onMouseover="ddrivetip('e-mail od  korisnika', 200)"; onMouseout="hideddrivetip()">e-mail</a>:</label>
<input tabindex="4" type="text" size="40" maxlength="100" name="q_email" value="<?php echo $email;?>"  /><br />
</p>
<p>
<label><a href="#" class="help" onMouseover="ddrivetip('broj telefona od  korisnika', 200)"; onMouseout="hideddrivetip()">telefon</a>:</label>
<input tabindex="5" type="text" size="40" maxlength="100" name="q_tel" value="<?php echo $tel;?>"  /><br />
</p>
<p>
<input type="hidden" name="admin_id" value="<?php echo $admin_id;?>" />
<input tabindex="6" name="posalji" class="submit" type="submit" value="Pošalji" />
</p>
</form>
<br />
<br />
<a class="gray_normal toggleopacity" href="glavna.php?modul=admin"><img src="slike/action_back.gif" width="16" height="16" alt="" border="0" /> <b>Odustani!</b></a>
<br />
<br />
</div>
<?php
} else {
	echo '<div class="greska">Ne postojeći zapis u bazi!</div>'."\n";
}
?>