<?@header("Content-Type: text/html; charset=UTF-8");?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
	
	<title>ARCHLine.XP 2012 Start dialog</title>
<style type="text/css">
	body{
		text-align: left;
		background: transparent;
	/*	background-color:  #993311; */
		background-image: url("/public/img/collection/iframe_bg.png");
		background-repeat: no-repeat;
		background-attachment: fixed;
		font-family: Arial, Helvetica, sans-serif;
		font-size: 12px;
		margin: 0px;
	}
	
	div{
		margin: 0px;
		padding: 0px;
	}
	
	a{ 
		color: #333333;
		font-weight: bold;
		text-decoration: none;
	}

	a:hover{
		color: #000000;
		font-weight: bold;
		text-decoration: none;
	}
	
	img{
		border: 0px;
		margin: 0px;
	}
	
	/*div.project{
		cursor: pointer;
	}*/
	
	div.radio_on
{
	background: transparent;
	background-image: url("gfx/radiobutton_on.png");
	background-repeat: no-repeat;
	overflow: hidden;
	
	margin: 0px;
	padding: 7px;
	width: 100px;
	height: 36px;
	text-align: center;
	
	float: left;
	
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: bold;
	text-decoration: none;
	color: #ffffff;
}

	div.radio_off
	{
		background: transparent;
		background-image: url("gfx/radiobutton_off.png");
		background-repeat: no-repeat;
		overflow: hidden;
		
		margin: 0px;
		padding: 7px;
		width: 100px;
		height: 36px;
		text-align: center;
		
		float: left;
	}

	div.radio_off a
	{
		font-family: Arial, Helvetica, sans-serif;
		font-size: 12px;
		font-weight: bold;
		text-decoration: none;
		color: #8a8a8a;
	}

	div.radio_off a:hover
	{
		font-family: Arial, Helvetica, sans-serif;
		font-size: 12px;
		font-weight: bold;
		text-decoration: none;
		color: #f37d00;
	}

	img.thumb
	{
		border: 1px solid #8a8a8a;
		margin: 0 0 0 10px;
		width: 230px;
		height: 130px;
	}
	
	div.recent_info
	{
		overflow: hidden;
		
		margin: 0 0 0 240px;/*0px;*/
		padding: 0px 7px 0px 7px;
		width: 300px;
		height: 132px;
		text-align: left;
		
	/*	float: left;*/
		
		font-family: Arial, Helvetica, sans-serif;
		font-size: 10px;
		font-weight: normal;
		text-decoration: none;
		color: #444444;
	}

	div.recent_info a
	{
		font-family: Arial, Helvetica, sans-serif;
		font-size: 14px;
		font-weight: bold;
		text-decoration: none;
		color: #f37d00;
	}

	div.recent_info a:hover
	{
		font-family: Arial, Helvetica, sans-serif;
		font-size: 14px;
		font-weight: bold;
		text-decoration: none;
		color: #444444;
	}

	div.buildinfo
	{
		width: 100%;
		text-align: right;
		font-family: Arial, Helvetica, sans-serif;
		font-size: 9px;
		font-weight: normal;
		text-decoration: none;
		color: #888888;
	}
	
	div.valaszto{
		clear: both;
		height: 5px;
		font-size:0px;
		line-height:0px;
	}
	
	/*div.desc{
		margin-left: 207px;
		padding-right: 5px;
		width: 370px;
		height: 150px;
		overflow: hidden;
	}*/
	
	table{
		width: 559px;
	}
	
	td{
		font-family: Arial, Helvetica, sans-serif;
		font-size: 10px;
		font-weight: normal;
		text-decoration: none;
		color: #444444;
		width: 25%;
		text-align: center;
	}
	
	select{
		width: 120px;
		font-family: Arial, Helvetica, sans-serif;
		font-size: 10px;
		font-weight: normal;
		text-decoration: none;
		color: #444444;
	}
	
</style>
</head>

<body>
<div style="width: 559px;">
<form action="/collection/category_archlinexp/<?=$urllang?>" name="projects" method="post">

<?if($kategoriak):?>
	
	<table style="margin-bottom: 10px;">
		<tr>
			<td><?=$lang->trust_def?></td>
			<td><?=$lang->categorys?></td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td>
				<select name="trust">
					<option value="10"<?if(isset($_POST["trust"]) && $_POST["trust"]=="10"):?> selected="selected"<?endif;?>><?=$lang->trust1?></option>
					<option value="5"<?if(isset($_POST["trust"]) && $_POST["trust"]=="5"):?> selected="selected"<?endif;?>><?=$lang->trust2?></option>
				</select>
			</td>
			<td>
				<select name="category">
				<?foreach($kategoriak as $kategoria):?>	
					<?if($kategoria->darab > 0):?>
					<option value="<?=$kategoria->dl_id?>"<?if( $aktiv == $kategoria->dl_id ):?> selected="selected"<?endif;?>><?=$kategoria->nev?> (<?=$kategoria->darab_gyari?>/<?=$kategoria->darab?>)</option>
					<?endif;?>
				<?endforeach;?>
				</select>
			</td>
			<td>
				<input type="checkbox" name="mycountry" <?if(isset($_POST["mycountry"]) && $_POST["mycountry"]=="on"):?>checked="true"<?endif;?> /> <?=$lang->mycountry?>
			</td>
			<td>
				<input style="margin-left: 10px; width: 90px;" type="submit" value="<?=$lang->ok?>" />
			</td>
		</tr>
	</table>
	
<?endif;?>

</form>


<?if(!$projects):?>
	<div><?=$lang->no_projects?></div>
<?else:?>
	<?foreach($projects as $project):?>
	<div class="project">
		<?php
			if($project->size < 1024*1024){ $project->size = ceil($project->size/1024).' KB'; }
			else{ $project->size = round($project->size/(1024*1024),1).' MB'; }
		?>
		<?if($project->kep!=""):?>
		<a href="/<?=$project->fajl?>?filename=<?=$project->eredeti_nev?>">
			<img src="/<?=$project->kep?>" class="thumb" align="left" alt="<?=$project->title?>" />
		</a>
		<?endif;?>
		<div class="recent_info">
			<?if($project->archline_nyelv != ""):?>
				<img src="/public/img/flags/start_dialog/<?=$project->archline_nyelv?>.gif" width="31px" height="20px" style="float: right;" alt="<?=$project->archline_nyelv?>" />
			<?endif;?>
			<a href="/<?=$project->fajl?><?if($project->tipus == "project"):?>?filename=<?=$project->eredeti_nev?><?endif;?>">
				<strong><?=$project->title?></strong>
			</a><br />
			<?if($project->szerzo != "" && !strstr(strtolower($project->szerzo),"cadline") ):?>
				<div style="margin-top: 5px;"><?=$lang->author?>: <?=$project->szerzo?></div>
			<?endif;?>
			<div style="margin-top: 5px;">
				<?=preg_replace(array("/\n/"),array("<br />"),$project->desc)?>
			</div>
			<br />
			<?if($project->size!='0 KB'):?>(<?=$project->size?>)<?endif;?>
		</div>
	</div>
	<div class="valaszto">&nbsp;</div>
	<?endforeach;?>
<?endif;?>
</div>
</body>
</html>