<?
if(!isset($error))
	$error = false;
?>
<div style="margin: auto; width: 370px; text-align: left">
	
	
	<div style="position: absolute; background: url('/public/img/collection/box_login_error.png'); margin-left: 375px; width: 214px; height: 82px; padding: 15px 10px 5px 50px; color: #ff8e8e; display: <?if($error):?>block<?else:?>none<?endif;?>;" id="hibadoboz">
	
		<div style="overflow: hidden; height: 80px; color: white; font-decoration: none;">
			<p><?=lang('forum_hibasmailvagyjelszo')?></p>
		</div>
	</div>
	
	
	<div style="position: absolute; background: url('/public/img/collection/box_infobubble.png'); margin-left: 375px; width: 244px; height: 82px; padding: 15px 10px 5px 20px; color: #ff8e8e; display: <?if($error || $render):?>none<?else:?>block<?endif;?>;" id="infodoboz">
	
		<?if(!$render):?>
		<div style="overflow: hidden; height: 80px; color: white; font-decoration: none;">
			<?=lang('collec_bejelentinfok')?>
		</div>
		<?endif;?>
	</div>
	
	
	<div style="background: url('/public/img/collection/box_fullwidth-expanding_top.png'); width: 370px; height: 12px;">
	</div>
		
	<div style="background: url(/public/img/collection/box_fullwidth-expanding_bg.png); width: 350px; color: white; padding: 0px 5px 0px 15px;">
	
	<form enctype='multipart/form-data' action='/collection/login' method='POST' name="bejelentkezes" id="bejelentkezes">
	
		<table width="100%">
		<tbody>
			<tr>
				<td>
					<h1 style="border: 0 none; margin-bottom: 0;"><?=lang('forum_belepes')?></h1>
				</td>
				<td align="right" valign="bottom">
					<a style="color: rgb(221, 136, 0); text-decoration: none; font-weight: normal;" href="/forum/regisztracio">
						<?=lang('collec_signup')?>
						<img src="/public/img/link_arrow.png" style="margin: 0;" />
					</a>
				</td>
			</tr>
		</tbody>
		</table>
		
		<table width="100%">
		<tbody>
			<tr>
				<td style="width: 45px;"><?=lang('email')?>:</td>
				<td><input type="text" name="email" id="email" style="width: 271px;" value="<?=$email?>" /></td>
			</tr>
			<tr>
				<td><?=lang('collec_jelszo')?>:</td>
				<td><input type="password" name="jelszo" id="jelszo" style="width: 271px;" onKeyPress="return submitenter(this,event)" /></td>
			</tr>
		</tbody>
		</table>
			
			<table width="100%">
			<tbody>
				<td align="right">
					<a style="color: rgb(221, 136, 0); text-decoration: none; font-weight: normal;" href="/collection/ujjelszo"><?=lang('forum_jszeml')?></a>
				</td>
				<td align="right" style="width: 120px;"><input type="button" style="background: url('/public/img/collection/button_normal.png'); border: 0px none; width: 120px; height: 30px; font-weight: bold; padding-bottom: 2px;" value="OK" onclick="waitMsg()" /></td>
				</tr>
			</tbody>
		</table>
		
		
		</div>
		
		
		<div style="background: url('/public/img/collection/box_fullwidth-expanding_bottom.png'); width: 370px; height: 12px;">
		</div>
		
		<?if(!$render):?>
		<div style="padding-left: 6px;">
			
		<input type="checkbox" value="igen" id="elfogadas" />
		<span style="color: white;">
			<?=lang('feltolt_elfogadoma')?> <strong><?=lang('collec_felhfelt')?></strong>:
		</span>
		
		<div style="text-align: justify;"><?=$feltetel->page_body?></div>
		
		</div>
		
		<?else:?>
		<div style="display: none;">
			<input type="checkbox" value="igen" id="elfogadas" checked="checked" />
		</div>
		<?endif;?>
		
		</form>
		
	</div>
	
	<div class="clear"></div>
		
		
	</div>
	
	




<script type="text/javascript">

	function waitMsg(){
		
		bejelentkezes("<?=lang('feltolt_noemail')?>","<?=lang('feltolt_nojelszo')?>","<?=lang('feltolt_nemfeltetel')?>","<?=lang('feltolt_hiba')?>");
		
	}
	
	
	function submitenter(myfield,e){
		
		var keycode;
		if (window.event) keycode = window.event.keyCode;
		else if (e) keycode = e.which;
		else return true;
		
		if (keycode == 13){
			bejelentkezes("<?=lang('feltolt_noemail')?>","<?=lang('feltolt_nojelszo')?>","<?=lang('feltolt_nemfeltetel')?>","<?=lang('feltolt_hiba')?>");
			return false;
		}
		else
			return true;
	}

</script>