<?if(!isset($support)):?>
	<?=$this->load->view('downloads/tabs')?>
<?else:?>
	<?=$this->load->view('support/tabs')?>
<?endif;?>


<h1><?=$heading?></h1>

<?if(!$downloads):?>
	
<?else:?>
	<ul class="downloads-ul">
		<?foreach($downloads as $dl):?>
		<?php
			if($dl->download_size < 1024*1024)
			{
				$dl->download_size = ceil($dl->download_size/1024).' KB';
			}
			else
			{
				$dl->download_size = round($dl->download_size/(1024*1024),1).' MB';
			}
		?>
		
			<li>
				<a href="/downloads/get/<?=$dl->download_id?>">
					<img alt="" src="<?=$this->mdownloads->types[$dl->download_type]['icon']?>">&nbsp;&nbsp;&nbsp;<strong><?=$dl->download_title?></strong>
				</a>
			
				<p><?=date('Y. m. d.',$dl->download_date)?></p>
				<p>
					<?=$dl->download_short?>
				</p>
				
				<span class="download-list-button">
					<a href="/downloads/get/<?=$dl->download_id?>">
						<img src="/public/img/gombok/btnDown_icon.gif" alt="">
						<strong>
							<?if(hun()):?>Letöltés indítása<?elseif(jap()):?>ダウンロード開始<?else:?>Start download<?endif;?>
							<?if($dl->download_size!='0 KB'):?>
							(<?=$dl->download_size?>)
							<?endif;?>
							</strong>
					</a>
				</span>
			
				<?if($dl->download_issuu):?>
					<span class="download-list-button">
						<a href="<?=$dl->download_issuu?>" target="blank">
							<img src="/public/img/gombok/read.jpg" alt="">
							<strong><?if(hun()):?>Dokumentum olvasása<?elseif(jap()):?>参照<?else:?>Read document<?endif;?></strong>
						</a>
					</span>
				<?endif;?>
					
				<div class="clear"></div>
			</li>
		<?endforeach;?>
	</ul>
<?endif;?>