
<h2><?=$this->lang->line('events_h1_new')?></h2>
<p>
	<input type="button" value="<?=$this->lang->line('events_button_new')?>" onclick="window.location.href='/admin/eventsedit/new'"/>
</p>
<p>&nbsp;</p>
<h2><?=$this->lang->line('events_h1_list')?></h2>
<?if(!$events):?>

<?else:?>
	<?foreach($events as $esemeny):?>
		<p>
			<a href="#" onclick="delQue('admin/eventsdelete/<?=$esemeny->event_id?>', <?if(hun()):?>'Biztosan törölni akarod?'<?else:?>'Are You sure?'<?endif;?>)"><span class="news-delete"><?=$this->lang->line('news_button_delete')?></span></a>
			<?=anchor('admin/eventsedit/'.$esemeny->event_id,$esemeny->event_title)?>
		</p>
	<?endforeach;?>
<?endif;?>