<style>
	input{
		border: 2px solid #484848;
		height: 22px;
	}
	
	 textarea{
		border: 2px solid #484848;
	}
</style>
  <?if( $tipus=="project" /* && $_SERVER['REMOTE_ADDR'] != "84.3.53.123"*/ ):?>
  
  
	<?if( !$belepve ):?>
		
		<div style="margin: auto; width: 370px; text-align: left">
			
			
			<div style="position: absolute; background: url('/public/img/collection/box_login_error.png'); margin-left: 375px; width: 214px; height: 82px; padding: 15px 10px 5px 50px; color: #ff8e8e; display: <?if($error):?>block<?else:?>none<?endif;?>;" id="hibadoboz">
				
				<div style="overflow: hidden; height: 80px; color: white; font-decoration: none;">
					<p><?=lang('forum_hibasmailvagyjelszo')?></p>
				</div>
			</div>
			
			<div style="position: absolute; background: url('/public/img/collection/box_infobubble.png'); margin-left: 375px; width: 244px; height: 82px; padding: 15px 10px 5px 20px; color: #ff8e8e; display: <?if($error):?>none<?else:?>block<?endif;?>;" id="infodoboz">
				
				<div style="overflow: hidden; height: 80px; color: white; font-decoration: none;">
					<?=lang('collec_bejelentinfok')?>
				</div>
			</div>
			
			
			<div style="background: url('/public/img/collection/box_fullwidth-expanding_top.png'); width: 370px; height: 12px;">
			</div>
			
			<div style="background: url(/public/img/collection/box_fullwidth-expanding_bg.png); width: 350px; color: white; padding: 0px 5px 0px 15px;">
			
			<form enctype='multipart/form-data' action='/collection/login' method='POST' name="bejelentkezes" id="bejelentkezes">
			
			<table width="100%">
			<tbody>
				<tr>
				<td>
					<h1 style="border: 0 none; margin-bottom: 0;"><?=lang('forum_belepes')?></h1>
				</td>
				<td align="right" valign="bottom">
					<a style="color: rgb(221, 136, 0); text-decoration: none; font-weight: normal;" href="/forum/regisztracio">
						<?=lang('events_form_sub_reg')?>
						<img src="/public/img/link_arrow.png" style="margin: 0;" />
					</a>
				</td>
				</tr>
				</tbody>
			</table>
			
			<table width="100%">
			<tbody>
				<tr>
				<td style="width: 45px;"><?=lang('email')?>:</td>
				<td><input type="text" name="email" id="email" style="width: 271px;" value="<?=$email?>" /></td>
				</tr>
				<tr>
				<td><?=lang('collec_jelszo')?>:</td>
				<td><input type="password" name="jelszo" id="jelszo" style="width: 271px;" /></td>
				</tr>
			</tbody>
			</table>
			
			<table width="100%">
			<tbody>
				<td align="right">
					<a style="color: rgb(221, 136, 0); text-decoration: none; font-weight: normal;" href="/collection/ujjelszo"><?=lang('forum_jszeml')?></a>
				</td>
				<td align="right" style="width: 120px;"><input type="button" style="background: url('/public/img/collection/button_normal.png'); border: 0px none; width: 120px; height: 30px; font-weight: bold; padding-bottom: 2px;" value="OK" onclick="waitMsg()" /></td>
				</tr>
			</tbody>
			</table>
			
			
			</div>
			
			
			<div style="background: url('/public/img/collection/box_fullwidth-expanding_bottom.png'); width: 370px; height: 12px;">
			</div>
			
			
			<div style="padding-left: 6px;">
			
			<input type="checkbox" value="igen" id="elfogadas" />
			<span style="color: white;">
				<?=lang('feltolt_elfogadoma')?> <strong><?=lang('collec_felhfelt')?></strong>:
			</span>
			
			<div style="text-align: justify;"><?=$feltetel->page_body?></div>
			
			</div>
			
		</div>
		
		<div class="clear"></div>
		
		
		</div>
		
		</form>
		
		
		
		
		<div id="message"></div>
	
	
	<?else:?>
	
	
	
	<div style="margin: auto; width: 370px;">
		
		<form enctype='multipart/form-data' action='/collection/submit#ujsubmit' method='POST' name="feltolt" id="feltolt">
		
		<div style="background: url('/public/img/collection/box_fullwidth-expanding_top.png'); width: 370px; height: 12px;">
		</div>
		
		<div style="background: url('/public/img/collection/box_fullwidth-expanding_bg.png'); width: 355px; color: white; padding: 0px 5px 0px 10px;">
		
		<table width="100%">
		<tbody>
			<tr>
			<td>
				<div style="float: left; width: auto;">
					<?=lang('forum_belepve')?>:&nbsp;&nbsp;
				</div>
				<div style="overflow: hidden; width: 180px;">
					<strong><?=$email?></strong>
				</div>
			</td>
			<td align="right">
				<a style="color: rgb(221, 136, 0); text-decoration: none; font-weight: normal;" href="/collection/logout">
					<?=lang('feltolt_kilep')?>
					<img src="/public/img/link_arrow.png" style="margin: 0;" />
				</a>
			</td>
			</tr>
			</tbody>
		</table>
		
		</div>
		
		<div style="background: url('/public/img/collection/box_fullwidth-expanding_bottom.png'); width: 370px; height: 12px;">
		</div>
		
		
		<div style="position: absolute; background: url('/public/img/collection/box_image60.png'); margin-left: -87px; width: 59px; height: 59px; padding: 14px;" id="kepdoboz">
			
			<img src="/<?=$kepalap?>" style="width: 60px; height: 60px; margin: 0px;">
			
		</div>
		
		
		<div style="position: absolute; background: url('/public/img/collection/box_infobubble.png'); margin-left: 375px; width: 214px; height: 82px; padding: 15px 10px 5px 50px; color: #ff8e8e; font-weight: bold; display: none;" id="hibadoboz">
			
			<div style="overflow: hidden; height: 80px;">
				<?=lang('collec_feltoltinfok')?>
			</div>
		
		</div>
		
		<div style="position: absolute; background: url('/public/img/collection/box_infobubble.png'); margin-left: 375px; width: 244px; height: 82px; padding: 15px 10px 5px 20px; color: #ff8e8e;" id="infodoboz">
				
			<div style="overflow: hidden; height: 80px; color: white; font-decoration: none;">
				<?=lang('collec_feltoltinfok')?>
			</div>
		</div>
		
		
		
		
		<div style="background: url('/public/img/collection/box_fullwidth-expanding_top.png'); width: 370px; height: 12px;">
		</div>
		
		<div style="background: url(/public/img/collection/box_fullwidth-expanding_bg.png); width: 355px; color: white; padding: 0px 5px 0px 10px;">
		
			<table style="width: 350px;">
			<tr>
				<td colspan="2"><h1 style="border: 0px none; margin-bottom: 0px;"><?=lang('collec_infok')?></h1></td>
			</tr>
			<tr>
				<td style="width: 80px;"><?=lang('collec_szerzo')?>: *</td>
				<td><input type="text" name="SzerzoField" id="SzerzoField" style="width: 250px;" value="<?=$szerzo?>" /></td>
			</tr>
			<tr>
				<td><?=lang('name')?>: *</td>
				<td><input type="text" name="projhectNameField" id="projhectNameField" value="<?=$cim?>" style="width: 250px;" /></td>
			</tr>
			<tr>
				<td valign="top"><?=lang('collec_leiras')?>:</td>
				<td>
					<textarea cols="3" rows="10" name="projectDescriptionField" id="projectDescriptionField" style="width: 250px; height: 60px;"></textarea>
				</td>
			</tr>
			<tr>
				<td style="width: 65px;"><?=lang('collec_kepcsere')?>:
				</td>
				<td>
					<input type="file" name="kep" id="kep" style="width: 255px;" />
				</td>
			</tr>
			<tr>
				<td><?=lang('collec_kategoria')?>: *</td>
				<td>
					<select name="kategoria" id="kategoria" onchange="valtas(this.value)" style="width: 255px;">
						<option value="999">-- <?=lang('collec_valasszon')?> --</option>
						<?foreach($kategoriak as $kategoria):?>
							<option value="<?=$kategoria->dl_id?>">
								<?=$kategoria->nev?> <?/*(<?=$kategoria->darab?>)*/?>
							</option>
						<?endforeach;?>
						<option value="999999">-- <?=lang('collec_ujkategoria')?> --</option>
					</select>
				</td>
			</tr>
			<tr>
				<td><?if(hun()):?>Új kategória<?else:?>New Category<?endif;?>:</td>
				<td>
					<input type=text name='ujkat' id='ujkat' value='' readonly="readonly" style="width: 250px; background: #2f2f2f;" >
				</td>
			</tr>
			<tr>
				<td colspan="2" align="right">
					<input type="button" value='<?=lang('collec_feltolt')?>' onclick="waitMsg()" style="background: url('/public/img/collection/button_upload.png') no-repeat; width: 120px; height: 32px; border: 0px none; padding-bottom: 3px; padding-left: 25px; font-weight: bold; text-align: left;">
					<input type="button" value='Cancel' onclick="window.location.href='/collection2#cancel'" style="background: url('/public/img/collection/button_cancel.png') no-repeat; width: 98px; height: 32px; border: 0px none; padding-bottom: 3px; font-weight: bold;">
				</td>
			</tr>
			</table>
			
		</div>
		
		<div style="background: url('/public/img/collection/box_fullwidth-expanding_bottom.png'); width: 370px; height: 12px;">
		</div>
		
		
			
			
			<div style="text-align: right; color: #8d8d8d; font-size: 0.8em;">* <?=lang('collec_kozelezomezok')?></div>
			
			<input type="hidden" name="originalFilenameField" id="originalFilenameField" value="<?=$fajl?>">
			<input type="hidden" name="eredetinev" id="eredetinev" value="<?=$eredeti?>">
			<input type="hidden" name="kepalap" id="kepalap" value="<?=$kepalap?>">
			<input type="hidden" name="tipus" id="tipus" value="<?=$tipus?>">
			<input type="hidden" name="archline_nyelv" id="archline_nyelv" value="<?=$archline_nyelv?>">
			
			
		</div>
			
		</form>
		
		<?foreach($kategoriak as $kategoria):?>
			<?$kategorialistaba .= $kategoria->nev.","?>
		<?endforeach;?>
		<?$kategorialistaba = substr($kategorialistaba,0,-1);?>
		
		<div id="kategoriaklista" style="display: none;"><?=$kategorialistaba?></div>
		
		<div id="message"></div>
	
	</div>
	
	
	
	<?endif;?>
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  <?else:?>
  <?		/*  gyártó elemének feltöltése  */		?>

  
  
  
  
  
  
  
  
  
  
  
  
  
  
  <?if( /*false &&*/ !$belepve ):?>
		
		<div style="margin: auto; width: 370px; text-align: left">
			
			
			<div style="position: absolute; background: url('/public/img/collection/box_login_error.png'); margin-left: 375px; width: 214px; height: 82px; padding: 15px 10px 5px 50px; color: #ff8e8e; display: <?if($error):?>block<?else:?>none<?endif;?>;" id="hibadoboz">
				
				<div style="overflow: hidden; height: 80px; color: white; font-decoration: none;">
					<p><?=lang('forum_hibasmailvagyjelszo')?></p>
				</div>
			</div>
			
			<div style="position: absolute; background: url('/public/img/collection/box_infobubble.png'); margin-left: 375px; width: 244px; height: 82px; padding: 15px 10px 5px 20px; color: #ff8e8e; display: <?if($error):?>none<?else:?>block<?endif;?>;" id="infodoboz">
				
				<div style="overflow: hidden; height: 80px; color: white; font-decoration: none;">
					<?=lang('collec_bejelentinfok')?>
				</div>
			</div>
			
			
			<div style="background: url('/public/img/collection/box_fullwidth-expanding_top.png'); width: 370px; height: 12px;">
			</div>
			
			<div style="background: url(/public/img/collection/box_fullwidth-expanding_bg.png); width: 350px; color: white; padding: 0px 5px 0px 15px;">
			
			<form enctype='multipart/form-data' action='/collection/login' method='POST' name="bejelentkezes" id="bejelentkezes">
			
			<table width="100%">
			<tbody>
				<tr>
				<td>
					<h1 style="border: 0 none; margin-bottom: 0;"><?=lang('forum_belepes')?></h1>
				</td>
				<td align="right" valign="bottom">
					<a style="color: rgb(221, 136, 0); text-decoration: none; font-weight: normal;" href="/forum/regisztracio">
						<?=lang('events_form_sub_reg')?>
						<img src="/public/img/link_arrow.png" style="margin: 0;" />
					</a>
				</td>
				</tr>
				</tbody>
			</table>
			
			<table width="100%">
			<tbody>
				<tr>
				<td style="width: 45px;"><?=lang('email')?>:</td>
				<td><input type="text" name="email" id="email" style="width: 271px;" value="<?=$email?>" /></td>
				</tr>
				<tr>
				<td><?=lang('collec_jelszo')?>:</td>
				<td><input type="password" name="jelszo" id="jelszo" style="width: 271px;" /></td>
				</tr>
			</tbody>
			</table>
			
			<table width="100%">
			<tbody>
				<td align="right">
					<a style="color: rgb(221, 136, 0); text-decoration: none; font-weight: normal;" href="/collection/ujjelszo"><?=lang('forum_jszeml')?></a>
				</td>
				<td align="right" style="width: 120px;"><input type="button" style="background: url('/public/img/collection/button_normal.png'); border: 0px none; width: 120px; height: 30px; font-weight: bold; padding-bottom: 2px;" value="OK" onclick="waitMsg()" /></td>
				</tr>
			</tbody>
			</table>
			
			
			</div>
			
			
			<div style="background: url('/public/img/collection/box_fullwidth-expanding_bottom.png'); width: 370px; height: 12px;">
			</div>
			
			
			<div style="padding-left: 6px;">
			
			<input type="checkbox" value="igen" id="elfogadas" />
			<span style="color: white;">
				<?=lang('feltolt_elfogadoma')?> <strong><?=lang('collec_felhfelt')?></strong>:
			</span>
			
			<div style="text-align: justify;"><?=$feltetel->page_body?></div>
			
			</div>
			
		</div>
		
		<div class="clear"></div>
		
		</div>
		
		</form>
		
		
		<div id="message"></div>
	
	
	<?else:?>
	
	
	
	<div style="margin: auto; width: 370px;">
		
		<form enctype='multipart/form-data' action='/collection/ujsubmit' method='POST' name="feltolt" id="feltolt">
		
		
		<div style="background: url('/public/img/collection/box_fullwidth-expanding_top.png'); width: 370px; height: 12px;">
		</div>
		
		<div style="background: url('/public/img/collection/box_fullwidth-expanding_bg.png'); width: 355px; color: white; padding: 0px 5px 0px 10px;">
		
		<table width="100%">
		<tbody>
			<tr>
			<td>
				<div style="float: left; width: auto;">
					<?=lang('forum_belepve')?>:&nbsp;&nbsp;
				</div>
				<div style="overflow: hidden; width: 180px;">
					<strong><?=$email?></strong>
				</div>
			</td>
			<td align="right">
				<a style="color: rgb(221, 136, 0); text-decoration: none; font-weight: normal;" href="/collection/logout">
					<?=lang('feltolt_kilep')?>
					<img src="/public/img/link_arrow.png" style="margin: 0;" />
				</a>
			</td>
			</tr>
			</tbody>
		</table>
		
		</div>
		
		<div style="background: url('/public/img/collection/box_fullwidth-expanding_bottom.png'); width: 370px; height: 12px;">
		</div>
		
		
		<div style="position: absolute; background: url('/public/img/collection/box_image60.png'); margin-left: -87px; width: 59px; height: 59px; padding: 14px;" id="kepdoboz">
			
			<img src="/<?=$kepalap?>" style="width: 60px; height: 60px; margin: 0px;">
			
		</div>
		
		
		<div style="position: absolute; background: url('/public/img/collection/box_infobubble.png'); margin-left: 375px; width: 214px; height: 82px; padding: 15px 10px 5px 50px; color: #ff8e8e; font-weight: bold; display: none;" id="hibadoboz">
			
			<div style="overflow: hidden; height: 80px;">
				<?=lang('collec_feltoltinfok')?>
			</div>
		
		</div>
		
		<div style="position: absolute; background: url('/public/img/collection/box_infobubble.png'); margin-left: 375px; width: 244px; height: 82px; padding: 15px 10px 5px 20px; color: #ff8e8e;" id="infodoboz">
				
			<div style="overflow: hidden; height: 80px; color: white; font-decoration: none;">
				<?=lang('collec_feltoltinfok')?>
			</div>
		</div>
		
		
		
		
		<div style="background: url('/public/img/collection/box_fullwidth-expanding_top.png'); width: 370px; height: 12px;">
		</div>
		
		<div style="background: url(/public/img/collection/box_fullwidth-expanding_bg.png); width: 355px; color: white; padding: 0px 5px 0px 10px;">
		
			<table style="width: 350px;">
			<tr>
				<td colspan="2">
					<?if(hun() || eng()):?>
					<a style="color: rgb(221, 136, 0); text-decoration: none; font-weight: normal; float: right;" href="/collection/uploadhozzaad/<?=$this->uri->segment(3)?>">
						Meglévő elem bővítése (2012/2013 formátum)
					</a>
					<?endif;?>
					<h1 style="border: 0px none; margin-bottom: 0px;"><?=lang('collec_infok')?></h1>
				</td>
			</tr>
			<tr>
				<td><?=lang('name')?>: eng*</td>
				<td><input type="text" name="projhectNameField" id="projhectNameField" value="<?if($tipus!="material") print $cim; else print $cimhun;?>" style="width: 250px;" /></td>
			</tr>
			<?if( isset($limituser[$email]) ):?>
			<tr>
				<td><?=lang('name')?>: <?=$limituser[$email]?>*</td>
				<td><input type="text" name="projhectNameField<?=$limituser[$email]?>" id="projhectNameField<?=$limituser[$email]?>" value="<?if($tipus!="material") print $cim; else print $cimhun;?>" style="width: 250px;" /></td>
			</tr>
			<?elseif(!$archline_nyelv || $archline_nyelv=="eng"):?>
			<tr>
				<td><?=lang('name')?>: hun*</td>
				<td><input type="text" name="projhectNameFieldhun" id="projhectNameFieldhun" value="<?=$cimhun?>" style="width: 250px;" /></td>
			</tr>
			<?else:?>
			<tr>
				<td><?=lang('name')?>: <?=$archline_nyelv?>*</td>
				<td><input type="text" name="projhectNameField<?=$archline_nyelv?>" id="projhectNameField<?=$archline_nyelv?>" value="<?if($tipus!="material") print $cim; else print $cimhun;?>" style="width: 250px;" /></td>
			</tr>
			<?endif;?>
			<tr>
				<td valign="top"><?=lang('collec_leiras')?> eng:</td>
				<td>
					<textarea cols="3" rows="10" name="projectDescriptionField" id="projectDescriptionField" style="width: 250px; height: 60px;"></textarea>
				</td>
			</tr>
			<?if( isset($limituser[$email]) ):?>
			<tr>
				<td valign="top"><?=lang('collec_leiras')?> <?=$limituser[$email]?>:</td>
				<td>
					<textarea cols="3" rows="10" name="projectDescriptionField<?=$limituser[$email]?>" id="projectDescriptionField<?=$limituser[$email]?>" style="width: 250px; height: 60px;"></textarea>
				</td>
			</tr>
			<?elseif( (!$archline_nyelv || $archline_nyelv=="eng") ):?>
			<tr>
				<td valign="top"><?=lang('collec_leiras')?> hun:</td>
				<td>
					<textarea cols="3" rows="10" name="projectDescriptionFieldhun" id="projectDescriptionFieldhun" style="width: 250px; height: 60px;"></textarea>
				</td>
			</tr>
			<?else:?>
			<tr>
				<td valign="top"><?=lang('collec_leiras')?> <?=$archline_nyelv?>:</td>
				<td>
					<textarea cols="3" rows="10" name="projectDescriptionField<?=$archline_nyelv?>" id="projectDescriptionField<?=$archline_nyelv?>" style="width: 250px; height: 60px;"></textarea>
				</td>
			</tr>
			<?endif;?>
			<?/*<tr>
				<td style="width: 65px;"><?=lang('collec2_kiskepcsere')?>:<br />
					<em>79 x 66 px</em>
				</td>
				<td valign="top">
					<input type="file" name="kep" id="kep" style="width: 255px;" />
				</td>
			</tr>*/?>
			<tr>
				<td style="width: 65px;">
					<?=lang('collec2_nagykep')?>:<?if( $tipus!="material" ):?> *<?else:?> change<?endif;?><br />
					<em>480 x 400 px</em>
				</td>
				<td valign="top">
					<input type="file" name="nagykep22" id="nagykep" style="width: 255px;" />
				</td>
			</tr>
			<?if( !isset($limituser[$email]) ):?>
			<tr>
				<td><?=lang('collec2_gyarto')?>: *</td>
				<td>
					<select name="gyarto" id="gyarto" onchange="betolt(this.value)" style="width: 255px;">
						<option value="999">-- <?=lang('collec_valasszon')?> --</option>
						<?foreach($gyartok as $gyarto):?>
							<option value="<?=$gyarto->dir?>"><?=$gyarto->name?></option>
						<?endforeach;?>
					</select>
				</td>
			</tr>
			<?elseif($limituser[$email] == "ita"):?>
			<script type="text/javascript">
				jQuery(document).ready(function() {	betolt('cadlinesw'); });
			</script>
			<tr>
				<td><?=lang('collec2_gyarto')?>: *</td>
				<td>
					<select name="gyarto" id="gyarto" style="width: 255px;">
						<option value="cadlinesw" selected="selected">CadLine Software</option>
					</select>
				</td>
			</tr>
			<?elseif($limituser[$email] == "ger"):?>
			<script type="text/javascript">
				jQuery(document).ready(function() {	betolt('itc'); });
			</script>
			<tr>
				<td><?=lang('collec2_gyarto')?>: *</td>
				<td>
					<select name="gyarto" id="gyarto" style="width: 255px;">
						<option value="itc" selected="selected">ITC</option>
					</select>
				</td>
			</tr>
			<?endif;?>
			<tr>
				<td><?=lang('collec_kategoria')?>: *</td>
				<td id="kategorialista">
					<select name="kategoria" id="kategoria" onchange="katvaltas2(this.value)" style="width: 255px;">
						<option value="999">-- <?=lang('collec_valasszon')?> --</option>
						<?foreach($kategoriak as $kategoria):?>
							<option value="<?=$kategoria->c_id?>">
								<?if($archline_nyelv != "ita"):?><?=$kategoria->nev_hun?> | <?endif;?><?=$kategoria->nev_eng?>
							</option>
						<?endforeach;?>
						<option value="999999">-- <?=lang('collec_ujkategoria')?> --</option>
					</select>
				</td>
			</tr>
			<tr>
				<td><?if(hun()):?>Új kategória<?else:?>New Category<?endif;?>:</td>
				<td>
					<div id="ujkategoriainput" style="display: none">
						<?if($limituser[$email] == "ita" || $limituser[$email] == "ger"):?>
							New Category name
							<input type=text name='ujkat_eng' id='ujkat_eng' value='' style="width: 250px;" /><br />
						<?else:?>
							<?if(hun()):?>Új kategória magyar neve<?else:?>New Category name, hun<?endif;?>
							<input type=text name='ujkat_hun' id='ujkat_hun' value='' style="width: 250px;" /><br />
							<?if(hun()):?>Új kategória angol neve<?else:?>New Category name, eng<?endif;?>
							<input type=text name='ujkat_eng' id='ujkat_eng' value='' style="width: 250px;" /><br />
						<?endif;?>
						<?if(hun()):?>Új kategória kezdőképe<?else:?>New Category image<?endif;?>: (182 x 152 px)<br />
						<input type="file" name="ujkatkep" id="ujkatkep" />
					</div>
					
				</td>
			</tr>
			<tr>
				<td><?=lang('collec2_tipus')?>: *</td>
				<td>
					<select name="tipus" id="tipus" style="width: 255px;">
						<?foreach($tipusok as $tipus2):?>
						<option value="<?=$tipus2->type?>"  <?if($tipus==$tipus2->type):?> selected="selected"<?endif;?>><?=$tipus2->typename?></option>
						<?endforeach;?>
					</select>
				</td>
			</tr>
			<tr>
				<td colspan="2" align="right">
					<input type="button" value='<?=lang('collec_feltolt')?>' onclick="waitMsg()" style="background: url('/public/img/collection/button_upload.png') no-repeat; width: 120px; height: 32px; border: 0px none; padding-bottom: 3px; padding-left: 25px; font-weight: bold; text-align: left;">
					<?/*<input type="button" value='Cancel' onclick="window.location.href='/collection2#cancel'" style="background: url('/public/img/collection/button_cancel.png') no-repeat; width: 98px; height: 32px; border: 0px none; padding-bottom: 3px; font-weight: bold;">*/?>
				</td>
			</tr>
			</table>
			
		</div>
		
		<div style="background: url('/public/img/collection/box_fullwidth-expanding_bottom.png'); width: 370px; height: 12px;">
		</div>
		
		
			
			
			<div style="text-align: right; color: #8d8d8d; font-size: 0.8em;">* <?=lang('collec_kozelezomezok')?></div>
			
			<input type="hidden" name="originalFilenameField" id="originalFilenameField" value="<?=$fajl?>" />
			<input type="hidden" name="eredetinev" id="eredetinev" value="<?=$eredeti?>" />
			<input type="hidden" name="kepalap" id="kepalap" value="<?=$kepalap?>" />
			<input type="hidden" name="prver" id="prver" value="<?=$prver?>" />
			<?if( isset($limituser[$email]) ):?>
			<input type="hidden" name="archline_nyelv" id="archline_nyelv" value="<?=$limituser[$email]?>" />
			<?elseif( (!$archline_nyelv || $archline_nyelv=="eng") ):?>
			<input type="hidden" name="archline_nyelv" id="archline_nyelv" value="hun" />
			<?else:?>
			<input type="hidden" name="archline_nyelv" id="archline_nyelv" value="<?=$archline_nyelv?>" />
			<?endif;?>
			
			
		</div>
			
		</form>
		
		<?foreach($kategoriak as $kategoria):?>
			<?$kategorialistaba .= $kategoria->nev.","?>
		<?endforeach;?>
		<?$kategorialistaba = substr($kategorialistaba,0,-1);?>
		
		<div id="kategoriaklista" style="display: none;"><?=$kategorialistaba?></div>
		
		<div id="message"></div>
	
	</div>
	
	
	
	<?endif;?>
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  


<?endif;?>


<script type="text/javascript">
	
	function betolt(mappa){
		var vurl = '/collection2/ajaxkategoriak/'+mappa;
		
		var betolto = jQuery.ajax({
			url: vurl,
			success: function(data) {
				jQuery('#kategorialista').html(data);
			}
		});
	}
	
	function katvaltas2(ertek){
		if( ertek != "999999" ){
			jQuery("#ujkategoriainput").css('display','none');
			jQuery('#ujkat_hun').val('');
			jQuery('#ujkat_eng').val('');
		}else{
			jQuery("#ujkategoriainput").css('display','block');
			jQuery('#ujkat_hun').val('');
			jQuery('#ujkat_eng').val('');
		}
	}
	
	function waitMsg(){
		
		document.getElementById('message').innerHTML = "Mentés ...<?//=$this->lang->line('downloads_wait')?>";
		
		
		<?if( /*$tipus=="project" &&*/ !$belepve ):?>
			bejelentkezes("<?=lang('feltolt_noemail')?>","<?=lang('feltolt_nojelszo')?>","<?=lang('feltolt_nemfeltetel')?>","<?=lang('feltolt_hiba')?>");
			
			
		<?elseif( $tipus=="project" ):?>
			feltoltesellenorzes("<?=lang('feltolt_noszerzo')?>","<?=lang('feltolt_nocim')?>","<?=lang('feltolt_kathiba1')?>","<?=lang('feltolt_kathiba2')?>","<?=lang('feltolt_vanilyencsoport')?>","<?=lang('feltolt_ujkatmegerosites')?>","<?=lang('feltolt_hiba')?>");
			
			
		<?else:?>
			
			if( jQuery('#projhectNameField').val() == "" ){
				alert("<?=lang('collec2_enameeng')?>");
				return;
			}
			
			if( jQuery('#projhectNameFieldhun').val() == "" ){
				alert("<?=lang('collec2_enamehun')?>");
				return;
			}
			
			<?if( $tipus!="material" ):?>
			if( jQuery('#nagykep').val() == "" ){
				alert("<?=lang('collec2_enincsnk')?>");
				return;
			}
			<?endif;?>
			
			if( jQuery('#gyarto').val() == "999" ){
				alert("<?=lang('collec2_enincsgy')?>");
				return;
			}
			
			if( jQuery('#kategoria').val() == "999" ){
				alert("<?=lang('collec2_enincska')?>");
				return;
			}
			
			if( jQuery('#kategoria').val() == "999999" && jQuery('#ujkat_hun').val() == "" ){
				alert("Az új kategória magyar neve nincs kitöltve!");
				return;
			}
			if( jQuery('#kategoria').val() == "999999" && jQuery('#ujkat_eng').val() == "" ){
				alert("Az új kategória angol neve nincs kitöltve!");
				return;
			}
			
			var feltolt = document.getElementById('feltolt');
			feltolt.submit();
		
		<?endif;?>
		
	}

</script>
