<div class="temaktop"></div>
<div class="temak">

<h2 style="color: #fff;"><?=lang('forum_userslist')?></h2>
	
	<div class="gombst" style="width: 130px; margin-bottom: 10px"><b><a href="/forum/ujuser"><?=lang('forum_ujuser')?></a></b></div>
	
	<?if(isset($email) && $email):?>
		<b><?=$email?> darab email kicserélve:</b><br /><br />
		<?=$cserek?><br />
	<?elseif(isset($email)):?>
		<b>Nem történt email csere.</b><br />
	<?endif;?>
	<br />
	
	<div><b><?=lang('forum_kereses')?>:</b></div>
	<?=form_open('forum/ukeres')?>
	<table cellspacing=0>
	<tr>
		<td>Login</td>
		<td><?=lang('forum_nev')?></td>
		<td>E-mail</td>
		<td><?=lang('forum_kulcssz')?></td>
		<td><?=lang('forum_belep')?></td>
	</tr>
	<tr>
		<td><input type="text" name="klogin" id="klogin" style="width: 150px;" value="<?=$this->phpsession->get('klogin')?>"/></td>
		<td><input type="text" name="knev" id="knev" style="width: 150px;" value="<?=$this->phpsession->get('knev')?>" /></td>
		<td><input type="text" name="kemail" id="kemail" style="width: 150px;" value="<?=$this->phpsession->get('email')?>" /></td>
		<td><input type="text" name="kulcssz" id="kulcssz" style="width: 150px;" value="<?=$this->phpsession->get('kulcssz')?>" /></td>
		<td><select name="belep" id="belep">
    		<option value="-1"></option>
    		<option value="1"<?if($this->phpsession->get('belep') == 1):?> selected="selected"<?endif;?>><?=lang('forum_igen')?></option>
    		<option value="0"<?if($this->phpsession->get('belep') == "0"):?> selected="selected"<?endif;?>><?=lang('forum_nem')?></option>
    	   </select></td>
	</tr>
	</table>
	<div class="gombst" style="width: 140px; float: right; height: 12px; margin-right: 10px; position: relative; top: 3px; cursor: default;" onclick="javascript:window.location.href='/forum/users'"><?=lang('forum_felttorl')?></div>
	<input type="submit" class="ngomb" style="width: 120px; background: url('/public/img/forum/stilus/button_normal.png'); float: right;" value="<?=lang('forum_kereses')?>" />
	<div class="clear"></div>
	</form>
	
	<br />
	
	<?if($users):?>
		
		
		<?$this->load->view("forum/userlapozas")?>
		<div style="margin-bottom: 7px;"></div>
		
		<table cellspacing=0 cellpadding=5>
			<th class="fej">
				<a href="/forum/<?=$this->uri->segment(2)?>/rendez/login" title="Rendezés login szerint">Login</a>
			</th>
			<th class="fej" width=230px>
				<a href="/forum/<?=$this->uri->segment(2)?>/rendez/nev" title="Rendezés név szerint"><?=lang('forum_nev')?></a>
			</th>
			<th class="fej">
				<a href="/forum/<?=$this->uri->segment(2)?>/rendez/rang" title="Rendezés rang szerint"><?=lang('forum_rang')?></a>
			</th>
			<th class="fej">
				<a href="/forum/<?=$this->uri->segment(2)?>/rendez/szabaly" title="Rendezés bejelentkezés szerint"><?=lang('forum_belep')?></a>
			</th>
			<th class="fej">
				<a href="/forum/<?=$this->uri->segment(2)?>/rendez/deleted" title="Rendezés töröltek szerint"><?=lang('forum_torles')?></a>
			</th>
			
		
		<?php
		$i=0;
		foreach($users as $user){
			print "<tr>";
			if($i%2==0)$bg="#FFEEBB"; else $bg = "#FFFFAA";
			//$bg="#FFEEBB";
			?>
			<td valign="top" bgcolor="<?=$bg?>"><a href="/forum/edit_user/<?=$user->user_id?>"><?=$user->login?></a></td>
			<td bgcolor="<?=$bg?>"><?=$user->nev?></td>
			<td bgcolor="<?=$bg?>"><?=$user->rang?></td>
			<td bgcolor="<?=$bg?>"><?if($user->szabaly == 0):?><?=lang('forum_nem')?> <?else:?><?=lang('forum_igen')?><?endif;?></td>
			<td bgcolor="<?=$bg?>">
				<?if($user->deleted != 1):?><div style="cursor: pointer;" onclick="if(confirm('<?=lang('forum_torlesmegerosites')?>')){window.location='<?$_SERVER['SERVER_NAME']?>/forum/del_user/<?=$user->user_id?>'}else{};"><a ><?=lang('forum_torles')?></a></div>
				<?else:?><div style="color: #FF0000;"><?if(hun()):?>Törölt<?else:?>Deleted<?endif;?></div>
				<?endif;?>
			</td>
			</tr>
			<?$i++;
		}
		?>
		</table>
		
		<div style="height: 7px;"></div>
		<?$this->load->view("forum/userlapozas")?>
		
	<?else:?>
		<b>Nincsenek felhasználók ..</b><br />
	<?endif;?>
	
</div>
<div class="temakbottom"></div>
