<?php include_once('header.php'); ?>

<h1><?=$h1?></h1>

<p><a href="<?=base_url()?><?=$diskusecontroller?>/<?=$firma['uri']?>/"><?=$words[67]?></a></p>

<?php if(empty($ok)){ ?>
	<form method="post" action="">
	<table class="reg">
	<?php if(!empty($error) and count($error) > 0){ ?>
		<tr>
			<td colspan="2" class="reg error"><?=$words[56]?></td>
		</tr>
	<?php } ?>
	<tr>
		<th class="reg"><?=$words[64]?></th>
		<td class="reg"><input type="text" maxlength="50" size="30" name="autor" <?php if(!empty($user_data['autor']))echo 'value="'.$user_data['autor'].'"'?>></td>
	</tr>
	<tr>
		<th class="reg <?php if(!empty($error['email'])) echo 'red'; ?>"><?=$words[12]?><span class="red">*</span></th>
		<td class="reg"><input type="text" maxlength="30" size="30" name="email" <?php if(!empty($user_data['email']))echo 'value="'.$user_data['email'].'"'?>></td>
	</tr>
	<tr>
		<th class="reg <?php if(!empty($error['text'])) echo 'red'; ?>"><?=$words[63]?><span class="red">*</span></th>
		<td class="reg"><textarea cols="70" rows="15" name="text"><?php if(!empty($user_data['text']))echo $user_data['text'];?></textarea></td>
	</tr>
	<tr><th class="reg <?php if(!empty($error['captcha'])) echo 'red'; ?>"><?=$words[88]?><span class="red">*</span></th><td class="reg"><?=$_SESSION['captcha']['image']?><br><input type="text" maxlength="60" size="15" class="captchaInput" name="word"></td></tr>
	<tr class="second"><td class="reg" colspan="2"></td></tr>
	<tr><td class="reg" colspan="2"><small class="red">* - <?=$words[51]?></small></td></tr>
	<tr><td class="reg centered" colspan="2"><input type="submit" value="<?=$words[62]?>"></td></tr>
	</table>

	</form>
	<p class="info"><?=$words[91]?></p>
<?php }else echo '<p class="info">'.$words[68].'</p>' ?>


<?php include_once('footer.php'); ?>
