<style type="text/css">

    table#kulcsok{
    	background: #DDDDDD;
    	padding: 0 170px 0 20px;
    	margin-top: 10px;
    }
    
    table#kulcsok tr.activ td{
        color: green;
    }
    
    table#kulcsok tr.inactiv td{
        color: red !important;
    }

</style>


<?if( isset($error) || isset($hibak2) ):?>
	<div style="color: #FF0000; margin-bottom: 10px;">
		<?if(hun() && isset($error)):?>
			<?=$error?>
		<?elseif(eng() && isset($hibak2)):?>
			<?foreach($hibak2 as $hiba):?>
				<?=$hibak[$hiba]?><br />
			<?endforeach;?>
		<?endif;?>
	</div>
<?endif;?>


<div align="right"><div class="gombst" style="width: 150px; float: right;"><b><a href="<?=$_SERVER['HTTP_REFERER']?>"><?=lang('forum_viszfelh')?></a></b></div></div>
<?=form_open('/forum/edit_user')?>
	<input type="hidden" name="uid" id="uid" value="<?=$szemadat->user_id?>">
	<input type="hidden" name="edituser" id="edituser" value="true">
	
	<div class="medium_top"></div>
	<div class="medium">
	<h2><?=lang('forum_felhszerk')?></h2>
	<table>
	<tr>
		<td style="width: 90px"><b>Login: </b></td>
		<td><input type="text" style="width: 310px;" name="login" id="login" value="<?=$szemadat->login?>"/></td>
	</tr>
	<tr>
		<td><b><?=lang('name')?>: </b></td>
		<td><input type="text" style="width: 310px;" name="nev" id="nev" value="<?=$szemadat->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>
	<tr>
		<td><b><?=lang('forum_viewelofiz')?>: </b></td>
		<td><input type="checkbox" name="viewsub" id="viewsub" <?if($szemadat->viewsub):?>checked="checed"<?endif;?> /></td>
	</tr>
	<tr>
		<td><b>E-mail: </b></td>
		<td><?=$szemadat->email?></td>
	</tr>
	<tr>
		<td><b><?=lang('forum_rang')?>: </b></td>
		<td><select name="rang" id="rang" style="width: 184px;">
				<option value="guest" <?if($szemadat->rang == "guest"):?> selected="selected" <?endif;?>>guest</option>
				<option value="user" <?if($szemadat->rang == "user"):?> selected="selected" <?endif;?>>user</option>
				<option value="moderator" <?if($szemadat->rang == "moderator"):?> selected="selected" <?endif;?>>moderator</option>
			</select>
		</td>
	</tr>
	</table><br />
	<div style="width: auto; text-align: right; padding-right: 15px; margin-top: 7px;">
	<input class="ngomb" style="width: 120px;" 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: default;" value="<?=lang('forum_megsem')?>" onclick="window.location.href='/forum/users'" />
	</div>
	</div>
	<div class="medium_bottom"></div>
</form>
	
	
	<?if(isset($kulcsok) && is_array($kulcsok) && !empty($kulcsok)):?>
<div class="medium_top"></div>
<div class="medium">
<b><u><?=lang('forum_progad')?>:</u></b>
<?foreach($kulcsok as $kulcs):?>
<table id="kulcsok">
    <tr><td colspan="2">&nbsp;</td></tr>
    <tr>
	   <td style="color: #000;"><b><?=lang('forum_kulcs')?>:</b></td>
	   <td style="color: #000;"><?=$kulcs->kulcs_kod?></td>
	</tr>
    <tr><td colspan="2">&nbsp;</td></tr>
    <?foreach($kulcs->programok as $program):?>
	<tr<?if($program->prStat==0):?> class="activ"<?else:?> class="inactiv"<?endif;?>>
	   <td><b><?=lang('forum_verzio')?>:</b></td><td><?=$program->verName?></td>
	</tr>
	<tr<?if($program->prStat==0):?> class="activ"<?else:?> class="inactiv"<?endif;?>>
	   <td><b><?=lang('forum_progtipus')?>:</b></td><td><?=$program->typeName?></td>
	</tr>
	<tr<?if($program->prStat==0):?> class="activ"<?else:?> class="inactiv"<?endif;?>>
	   <td><b><?=lang('forum_sorozatsz')?>:</b></td><td><?=$program->prPass?></td>
	</tr>
	<tr<?if($program->prStat==0):?> class="activ"<?else:?> class="inactiv"<?endif;?>>
	   <td><b><?=lang('forum_aktivkod')?>:</b></td><td><?=$program->prActCode?></td>
	</tr>
	
	<?if(!empty($program->modulok)):?>
	<tr<?if($program->prStat==0):?> class="activ"<?else:?> class="inactiv"<?endif;?>>
    	<td valign="top"><b><?=lang('forum_modulok')?>:</b></td>
        <td><?foreach($program->modulok as $modul):?><?if(hun()):?><?=$modul->mdtName?><?else:?><?=$modul->mdtNameEng?><?endif;?><br /><?=$modul->mdCode?><br /><br /><?endforeach;?></td>
	</tr>
	<?endif;?>
    <tr><td colspan="2"><hr /></td></tr>
    <?endforeach;?>
</table>
<?endforeach;?>
</div>
<div class="medium_bottom"></div>
<?endif;?>
