<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>

<div class="medium_top"></div>
<div class="medium">
<h2><?=lang('forum_szemad')?></h2>
<table width="420px">
	<tr>
	<td width=60px><b>Login:</b></td><td><?=$user?></td>
	</tr>
	<tr>
	<td><b><?=lang('forum_nev')?>:</b></td><td><?=$szemadatok[0]->nev?></td>
	</tr>
	<tr>
	<td valign="top"><b>E-mail:</b></td><td><?=$szemadatok[0]->email?></td>
	</tr>
	<?if($szemadatok[0]->rang == "moderator"):?>
	<tr>
		<td><?=lang('forum_hszertesites')?>: </td><td valign="top"><?if($szemadatok[0]->ertesites != ""):?><?=lang('forum_igen')?><?else:?><?=lang('forum_nem')?><?endif;?></td>
	</tr>
	<?endif;?>
	<tr>
		<td colspan="2" align="right">
			<div class="gombst" style="background: url('/public/img/forum/stilus/button_edit.png'); margin-top: 10px; padding: 5px 5px 0px 15px; cursor: pointer;" onclick="location.href='/forum/myedit'">
				<?=lang('forum_szerk')?>
			</div>
		</td>
	</tr>
</table>
</div>
<div class="medium_bottom"></div>

<?if(isset($kulcsok) && is_array($kulcsok) && !empty($kulcsok)):?>
<div class="medium_top"></div>
<div class="medium">
<h2><?=lang('forum_progad')?></h2>
<?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>
	   <?if(false && $szemadatok[0]->rang == "moderator"):?>
	   <td rowspan="7" valign="top">letöltése</td>
	   <?endif;?>
	</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><?if($program->prSellDate != '0000-00-00') print $program->prPass?></td>
	</tr>
	<tr<?if($program->prStat==0):?> class="activ"<?else:?> class="inactiv"<?endif;?>>
	   <td><b><?=lang('forum_aktivkod')?>:</b></td><td><?if($program->prSellDate != '0000-00-00') print $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 /><?if($program->prSellDate != '0000-00-00') print $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;?>
