
<div style="width: 972px; overflow: hidden;">

<?
$kivhonap = $this->uri->segment(3);
$kivev = (2011 + (int)($kivhonap/12.00009));

$kivhonap = (($kivhonap-1)%12+1);

if( $kivhonap < 10 )
	$utvonal = "/public/img/honapkepe/".$kivev."0";
else
	$utvonal = "/public/img/honapkepe/".$kivev;
?>

<?$i=0;?>
<table style="width: 850px;" width="850">
<?foreach($kepek as $kep):?>
<?if($kep != "." && $kep != ".." && substr($kep,0,4) != "elo_" && $kep != "thumbs" && substr($kep,-4)!=".txt"):?>
	<?if($i%3==0):?>
	<tr>
	<?endif;?>
	<td valign="top" align="right" width="20" style="width: 20px;">
	<div style="margin: 15px 0 0 10px; width: 10px;"><strong><?=($i+1)?>.</strong></div>
	</td>
	<td valign="top" width="100" style="width: 100px;">
	<a href="<?=$utvonal.$kivhonap?>/<?=$kep?>" class="fancy" rel="group" title="<?=($i+1)?>. kép">
	<?$kicsi = substr($utvonal,1).$kivhonap."/thumbs/".$kep;?>
	<?if(file_exists($kicsi)):?>
	<img style="max-height: 150px; max-width: 150px;" src="/<?=$kicsi?>" alt="<?=($i+1)?>." />
	<?else:?>
	<img style="max-height: 150px; max-width: 150px;" src="<?=$utvonal.$kivhonap?>/<?=$kep?>" alt="<?=($i+1)?>." />
	<?endif;?>
	</a>
	</td>
	
	<?if($i%3==2):?>
	</tr>
	<?endif;?>
	<?$i++;?>
<?endif;?>
<?endforeach;?>

<?
$iii = $i-1;
while($iii%3 != 2) { print "<td>&nbsp;</td>\n\t<td>&nbsp;</td>\n\t"; $iii++; }
?>
<?if(($i-1)%3 != 2):?>
	</tr>
<?endif;?>

</table>

</div>
