
<script>
	function bejelol(p){
		if(p=="ki"){
			for(i=0;i<document.forms["urlap"]["temak[]"].length;i++){
				document.forms["urlap"]["temak[]"].options[i].selected = "";
			}
		}
		else{
			for(i=0;i<document.forms["urlap"]["temak[]"].length;i++){
				document.forms["urlap"]["temak[]"].options[i].selected = "true";
			}
		}
	}
</script>


<? $hibak = lang('forum_hibak'); ?>


<?if( $error2 || $hibak2 ):?>
	<div style="background: url('/public/img/collection/box_login_error.png');color: #ff8e8e; margin-bottom: 10px; position: absolute; margin-left: 450px; width: 214px; height: 82px; padding: 15px 10px 5px 50px; font-weight: bold;">
		<?if(hun()):?>
			<?=$error2?>
		<?elseif(eng()):?>
			<?foreach($hibak2 as $hiba):?>
				<?=$hibak[$hiba]?><br />
			<?endforeach;?>
		<?endif;?>
	</div>
<?endif;?>
<div class="medium_top"></div>
<div class="medium">
<h2><?=lang('forum_felhszerk')?></h2>
<form action="/forum/myedit" method="post" name="urlap">
	<input type="hidden" name="uid" id="uid" value="<?=$user_id?>">
	<input type="hidden" name="mysave" id="mysave" value="true">
	<table>
	<tr style="display: none;">
		<td><b>Login: </b></td>
		<td><input type="hidden" name="login" id="login" value="<?=$cucc[0]->login?>"/></td>
	</tr>
	<tr>
		<td style="width: 90px"><b><?=lang('name')?>: </b></td>
		<td><input type="text" style="width: 310px;" name="nev" id="nev" value="<?=$cucc[0]->nev?>"/></td>
	</tr>
	<tr>
		<td><b><?=lang('forum_ujjsz')?>: </b></td>
		<td><input type="password" style="width: 310px;" name="jelszo1" id="jelszo1" /></td>
	</tr>
	<tr>
		<td><b><?=lang('forum_jszujra')?>: </b></td>
		<td><input type="password" style="width: 310px;" name="jelszo2" id="jelszo2" /></td>
	</tr>
	<?if( isset($moderator) && $moderator ):?>
	<tr>
		<td valign="top">
			<?if(hun()):?>E-mail küldés új hozzászólás esetén a következő témáknál:
			<?else:?>If new post -> send e-mail:
			<?endif;?>
		</td>
		<td>
			<? $ertesitestemak = explode(';',$cucc[0]->ertesites); ?>
			<div>
			<select size="7" multiple="true" name="temak[]">
				<?foreach( $temak as $tema):?>
				<option value="<?=$tema->tema_id?>"<?if( $cucc[0]->ertesites == "mind" || in_array($tema->tema_id,$ertesitestemak)):?> selected="selected"<?endif;?>>(<?=$tema->tkcim?>) - <?=$tema->cim?></option>
				<?endforeach;?>
			</select>
			</div>
			<div style="cursor: pointer; height: 15px; margin-top: 3px; width: 50px; float: left;" class="gombst" onclick="bejelol()"><?if(hun()):?>Mind<?else:?>All<?endif;?></div>
			<div style="cursor: pointer; height: 15px; margin: 3px 0px 0px 70px; width: 50px;" class="gombst" onclick="bejelol('ki')"><?if(hun()):?>Semmi<?else:?>None<?endif;?></div>
			<div class="clear"></div>
		</td>
	</tr>
	<?endif;?>
	</table>
	<div style="width: auto; text-align: right; padding-right: 15px; margin-top: 7px;">
	<input class="ngomb" style="width: 120px; cursor: pointer;" type="submit" value="<?=lang('forum_ment')?>" />
	<input class="ngomb" style="background: url('/public/img/forum/stilus/button_grey.png'); width: 110px; height: 25px; text-align: center; cursor: pointer;" value="<?=lang('forum_megsem')?>" onclick="window.location.href='/forum/myuser'" />
	</div>
</form>
</div>
<div class="medium_bottom"></div>
