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

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

<p><a href="<?=base_url()?><?=$hodnocenicontroller?>/<?=$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 class="second">
		<th class="reg  <?php if(!empty($error['hodnoceni'])) echo 'red'; ?>"><?=$words[65]?><span class="red">*</span></th>
		<td class="reg">
			<?php
				for($i = 1; $i < 11; $i++)
				{
					echo '<input type="radio" name="hodnoceni" id="hodnoceni_'.$i.'" value="'.$i.'"><label for="hodnoceni_'.$i.'">'.$i.'</label>';
				}
			?>
		</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 class="second <?php if(!empty($error['captcha'])) echo 'red'; ?>"><th class="reg"><?=$words[88]?><span class="red">*</span></th>
		<td class="reg" valign="top"><?=$_SESSION['captcha']['image']?><br><input type="text" maxlength="60" size="15" class="captchaInput" name="word"></td>
	</tr>
	<tr class="second"><td class="reg centered" colspan="2"><input type="submit" value="<?=$words[66]?> <?=$words[65]?>"></td></tr>
	</table>

	</form>
	<p class="info"><?=$words[89]?><br><u><?=$words[90]?></u></p>
<?php 
}elseif($stav) echo '<p class="allright">'.$words[73].'</p>';
else echo '<p class="error">'.$words[74].'</p>';//Uz nemoze hlasovat
 ?>


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