<script type='text/javascript'>
	jQuery(document).ready(function($){
	
	
	$('.infokat').click(function(){
		var allapot = $('#infokformdoboz').css("display");
		if(allapot == "none")
			$('#infokformdoboz').css({'display': 'block'});
		else
			$('#infokformdoboz').css({'display': 'none'});
	});
	
	$('.videokat').click(function(){
		var allapot = $('#videokformdoboz').css("display");
		if(allapot == "none")
			$('#videokformdoboz').css({'display': 'block'});
		else
			$('#videokformdoboz').css({'display': 'none'});
	});
	
	
	$('.ujvideo').click(function(){
		var allapot = $('#ujvideodoboz').css("display");
		var ujdel = document.getElementById('ujviddel');
		
		if(allapot == "none"){
			$('#ujvideodoboz').css({'display': 'block'});
			$('.ujvideo').val("Mégsem");
			ujdel.checked = "";
		}
		else{
			$('#ujvideodoboz').css({'display': 'none'});
			$('.ujvideo').val("Hozzáad");
			ujdel.checked = "checked";
		}
	});
	
	
	$('.flasheket').click(function(){
		var allapot = $('#fokep').css("display");
		if(allapot == "none")
			$('#fokep').css({'display': 'block'});
		else
			$('#fokep').css({'display': 'none'});
	});
	
	
	$('.kepeket').click(function(){
		var allapot = $('#kiskepekdoboz').css("display");
		if(allapot == "none")
			$('#kiskepekdoboz').css({'display': 'block'});
		else
			$('#kiskepekdoboz').css({'display': 'none'});
	});
	
	
	
	
	
	//create the info and their details from json
    var info_object = {
        getAllInfo: function(){
            return <?=$info_json?>;
        },
        getInfoByID: function(info_id){
            var allinfo = this.getAllInfo();
            var len = allinfo.length;
            
            for(var i = 0; i < len; i++){
				var len2 = allinfo[i].infok.length;
				
				for(var j = 0; j < len2; j++){
					if(allinfo[i].infok[j].info_id == info_id){
						return allinfo[i].infok[j];
					}
				}
            }
            
            return false;
        }
    };
	
	var fo_info_object = <?=$info_fo_json?>;
	
	// create the edit/new box dialog
    $('#box_dialog_edit').dialog({
        autoOpen: false,
        modal: true,
        width: 400,
        buttons: {
            'Módosítás': function(){
                $('#form_box_edit').submit();
                $('#box_dialog_edit').dialog('close');
            },
            'Mégsem': function(){
                $('#box_dialog_edit').dialog('close');
            }
        }
    });
	
	// edit the box details
    $('.edit_doboz').click(function(){
        //populate the dialog
        var con = $('#form_box_edit');
        var box = $(this).parents('.box-li');
        
        $('#doboz_cim', con).val(box.attr('doboz_nev'));
        $('#doboz_sorszam', con).val(box.attr('doboz_sorszam'));
        $('#id', con).val(box.attr('doboz_id'));
        
        
        //open the dialog
        $('#box_dialog_edit').dialog('open');
        
        return false;
    });
	
	// new the box details
    $('.new-box').click(function(){
        //populate the dialog
        var con = $('#form_box_edit');
        
        $('#doboz_cim', con).val('');
        $('#doboz_sorszam', con).val('');
        $('#id', con).val('uj');
        
        
        //open the dialog
        $('#box_dialog_edit').dialog('open');
        
        return false;
    });
	
	
	
	//create the edit info dialog
    $('#info_dialog_edit').dialog({
        autoOpen: false,
        modal: true,
        width: 450,
        buttons: {
            'Módosítás': function(){
                $('#form_info_edit').submit();
                $('#info_dialog_edit').dialog('close');
            },
            'Mégsem': function(){
                $('#info_dialog_edit').dialog('close');
            }
        }
    });
	
	//edit the info details
    $('.edit_info').click(function(){
        //populate the dialog
        var con     = $('#form_info_edit');
        var info_id = $(this).parents('.info-li').attr('info_id');
        var info    = info_object.getInfoByID(info_id);
		
        $('#info_sorszam', con).val(info.sorszam);
        $('#info_cim', con).val(info.cim_2014);
        $('#info_info', con).val(info.info);
        $('#info_link', con).val(info.link);
        $('#info_link_cim', con).val(info.link_cim);
        $('#info_id', con).val(info_id);
        
        
		$('#info_doboz option', con).each(function(){
			if( $(this).val() == info.doboz ){
				$(this).attr('selected','selected');
			}
		});
		
		
        //open the dialog
        $('#info_dialog_edit').dialog('open');
        
        return false;
    });
	
	//new the info details
    $('.new-text').click(function(){
        //populate the dialog
        var con     = $('#form_info_edit');
		
        $('#info_sorszam', con).val('');
        $('#info_cim', con).val('');
        $('#info_info', con).val('');
        $('#info_link', con).val('');
        $('#info_link_cim', con).val('');
        $('#info_id', con).val('uj');
        
        //open the dialog
        $('#info_dialog_edit').dialog('open');
        
        return false;
    });
	
	
	// első info szövege
	//create the edit info dialog
    $('#fo_info_dialog_edit').dialog({
        autoOpen: false,
        modal: true,
        width: 450,
        buttons: {
            'Módosítás': function(){
                $('#form_fo_info_edit').submit();
                $('#fo_info_dialog_edit').dialog('close');
            },
            'Mégsem': function(){
                $('#fo_info_dialog_edit').dialog('close');
            }
        }
    });
	
	$('.edit-baltext').click(function(){
		//populate the dialog
		var con     = $('#form_fo_info_edit');
		var info    = fo_info_object[0];
		
		$('#info_cim', con).val(info.cim_2014);
		$('#info_info', con).val(info.info);
		$('#info_link', con).val(info.link);
		$('#info_id', con).val(info.info_id);
		
		
		//open the dialog
		$('#fo_info_dialog_edit').dialog('open');
		
		return false;
	});
	
	
	
	//alert("betoltve");
});

</script>



<h1><?=$this->lang->line('settings_h1')?></h1>
<?if($settings):?>
	<?=form_open('admin/set_settings')?>
	<table border="0" width="100%">
		<?foreach($settings as $setting):?>
			<tr>
				<td width="150">
					<?if($setting->desc != ''):?>
						<?=$setting->desc?>
					<?else:?>
						<?=$setting->name?>
					<?endif;?>
				</td>
				<td width="auto">
					<input type="text" value="<?=$setting->value?>" size="60" maxlength="256" name="<?=$setting->name?>" />
				</td>
			</tr>
		<?endforeach;?>
		<tr>
			<td></td>
			<td><?=form_submit('','OK')?></td>
		</tr>
	</table>
	
	</form>
	
	
	<br /><br />
	<br /><br />
	<style>
		#fokep{
			width: 550px;
			border: 1px solid black;
			background: #CCCCCC;
			padding: 5px;
			margin: 10px;
		}
		
		#fokep input[type=text]{
			width: 300px;
		}
		
		div.kepek{
			margin-top: 40px;
		}
		
		div.kepek input{
			width: 300px;
			height: 25px;
			background: #CCCCCC;
		}
		
		div.kepek td{
			border-bottom: 2px dotted #000000;
			vertical-align: top;
		}
		
		div.kepek div.ut{
			margin-bottom: 20px;
		}
		
		div.kepek div.koz{
			width: 100px;
			height: 10px;
			clear: both;
		}
		
		div.bemenet{
			width: 70px; float: left; padding-top: 5px;
		}
		
		div.keret{
			background: #DDDDDD;
			border: 2px solid #222222;
			padding: 10px;
		}
		
		.col_szint1, .col_szint2{
			float: left;
		}
		
		.col_szint1{
			width: 180px;
		}
		
		.col_szint2{
			width: 160px;
		}
		
		.infok{
			margin-bottom: 10px;
		}
		
		#info_dialog_edit, #fo_info_dialog_edit{
			text-align: left;
		}
		
		#info_dialog_edit input, textarea, #fo_info_dialog_edit input{
			width: 300px;
		}
		
		.new-box, .new-text, .edit-baltext{
			border: 1px solid black;
			padding: 3px;
			width: 170px;
			list-style-type: none;
			margin-bottom: 2px;
			text-align: center;
			cursor: pointer;
		}
		
		.edit_doboz, .edit_info{
			cursor: pointer;
		}
		
		.info-li, .box-li{
			clear: both;
		}
		
	</style>
	
	
	
<div id="box_dialog_edit" style="display: none;" title="Doboz szerkesztése">
	<form action="/admin/boxedit" method="post" id="form_box_edit" enctype="multipart/form-data">
	<input type="hidden" name="do" id="do" value="true" />
	<input type="hidden" name="id" id="id" value="" />
	<table cellspacing="0" cellpadding="10" border="0" align="center">
		<tr class="neccessary">
			<td>Név:</td>
			<td>
				<input type=text name='cim_2014' id='doboz_cim' value='' />
			</td>
		</tr>
		<tr>
			<td>Sorszám:</td>
			<td>
				<input type="text" name="sorszam_2014" id="doboz_sorszam" />
			</td>
		</tr>
		<tr>
			<td>Ikon kép: (41x41px) Alsó részben levő dobozokhoz</td>
			<td>
				<input type="file" name="kep" />
			</td>
		</tr>
	</table>
	</form>
</div>

<div id="info_dialog_edit" style="display: none;" title="Tartalom szerkesztése">
	<form action="/admin/infoedit" method="post" id="form_info_edit" enctype="multipart/form-data">
	<input type="hidden" name="do" id="do" value="true" />
	<input type="hidden" name="info_id" id="info_id" value="" />
	<table cellspacing="0" cellpadding="10" border="0" align="left">
		<tr>
			<td>Doboz:</td>
			<td>
				<select name="doboz" id="info_doboz">
				<?foreach($fooldalinfok as $doboz):?>
				<option value="<?=$doboz->id?>"><?=$doboz->cim_2014?></option>
				<?endforeach;?>
				</select>
			</td>
		</tr>
		<tr>
			<td>Sorszám:</td>
			<td>
				<input type="text" name="sorszam" id="info_sorszam" />
			</td>
		</tr>
		<tr>
			<td>Cím:</td>
			<td>
				<input type="text" name="cim_2014" id="info_cim" />
			</td>
		</tr>
		<tr>
			<td>Tartalom: (ha fölé viszik az egeret)</td>
			<td>
				<textarea name="info" id="info_info" rows="3" cols="20"></textarea>
			</td>
		</tr>
		<tr>
			<td>Link:</td>
			<td>
				<input type="text" name="link" id="info_link" />
			</td>
		</tr>
		<tr style="display: none;">
			<td>Link címe:</td>
			<td>
				<input type="text" name="link_cim" id="info_link_cim" />
			</td>
		</tr>
		<tr style="display: none;">
			<td>
				Kép csere:<br />
				110 x 60 px
			</td>
			<td valign="top">
				<input type="file" name="kep" id="info_kep" />
			</td>
		</tr>
	</table>
	</form>
</div>


<div id="fo_info_dialog_edit" style="display: none;" title="Tartalom szerkesztése">
	<form action="/admin/foinfoedit" method="post" id="form_fo_info_edit">
	<input type="hidden" name="do" id="do" value="true" />
	<input type="hidden" name="info_id" id="info_id" value="" />
	<table cellspacing="0" cellpadding="10" border="0" align="left">
		<tr>
			<td>Cím:</td>
			<td>
				<input type="text" name="cim_2014" id="info_cim" />
			</td>
		</tr>
		<tr>
			<td>Tartalom:</td>
			<td>
				<textarea name="info" id="info_info" rows="3" cols="20"></textarea>
			</td>
		</tr>
		<tr style="display: none;">
			<td>Link:</td>
			<td>
				<input type="text" name="link" id="info_link" />
			</td>
		</tr>
	</table>
	</form>
</div>
	
	
	
	
	<div class="infokat" style="cursor: pointer; margin-bottom: 20px; padding: 3px; border: 1px solid black; width: 200px;"><strong>Főoldali tartalmak szerkesztése</strong></div>
	<div id="infokformdoboz" style="margin: 10px 0px 20px 0px; background: #ffd; width: 450px;">
	
	<div class="edit-baltext" style="margin-left: 20px;">Jobb felső tartalom szerkesztése</div>
	
	<ul class="main_events">
	<?foreach($fooldalinfok as $k => $doboz):?>
	<li class="box-li" doboz_nev="<?=$doboz->cim_2014?>" doboz_id="<?=$doboz->id?>" doboz_sorszam="<?=$doboz->sorszam_2014?>">
		<div class="col_szint1">
		<span class="main_event_name"><b><?=$doboz->cim_2014?></b></span>
		</div>
		<span class="view-link">
			<a class="edit_doboz">szerkesztés</a>
		</span>
		<span class="delete-link">
			<a href="#" class="del_anchor" onclick="delQue('admin/delwelbox/<?=$doboz->id?>', <?if(hun()):?>'Biztosan törölni akarod a dobozt?'<?else:?>'Are You sure?'<?endif;?>)">törlés</a>
		</span>
	</li>
		<ul class="infok">
			<?if($doboz->infok):?>
			<?foreach($doboz->infok as $info):?>
			<li class="info-li" info_id="<?=$info->info_id?>">
				<div class="col_szint2">
				<span class="event_name"><?=$info->cim_2014?></span>
				</div>
				<span class="edit-link edit_info">szerkesztés</span>
				<span class="delete-link">
					<a href="#" class="del_anchor" onclick="delQue('admin/delwelinfo/<?=$info->info_id?>', <?if(hun()):?>'Biztosan törölni akarod?'<?else:?>'Are You sure?'<?endif;?>)">törlés</a>
				</span>
			</li>
			<?endforeach;?>
			<?endif;?>
		</ul>
	<?if($k==0):?><hr><hr><?endif;?>
	<?endforeach;?>
	<li class="new-box" style="margin-top: 20px;"><u>Új doboz létrehozása</u></li>
	<li class="new-text"><u><b>Új tartalom rögzítése</b></u></li>
</ul>
	
	</div>
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="videokat" style="cursor: pointer; margin-bottom: 20px; padding: 3px; border: 1px solid black; width: 200px;"><strong>Főoldali videók szerkesztése</strong></div>
	<div id="videokformdoboz" style="margin: 10px 0px 20px 0px; background: #ffd; width: 450px; display:none;">
	<form action="/admin/set_settings_video" enctype="multipart/form-data" method="post" name="vidik">
		<?php $vidik = $this->muser->get_welcome_video(); $i=0;?>
		<input type="hidden" name="videokdb" id="videokdb" value="<?=count($vidik)?>">
		<?foreach($vidik as $video):?>
		<div style="padding: 5px; background: #eed; border: 1px solid #777; margin: 2px;">
		<input type="hidden" name="vidwelvid_id<?=$i?>" id="vidwelvid_id<?=$i?>" value="<?=$video->welvid_id?>">
		<table>
			<tr>
				<td>Pozíció: </td>
				<td>
					<input type="text" name="vidsorszam<?=$i?>" id="vidsorszam<?=$i?>" size="2" value="<?=$video->sorszam?>">
				</td>
			</tr>
			<tr>
				<td>Youtube azonosító: </td>
				<td><input type="text" name="vidyoutube<?=$i?>" id="vidyoutube<?=$i?>" value="<?=$video->youtubeid?>" /></td>
			</tr>
			<tr>
				<td>Cím: </td>
				<td><input type="text" name="vidcim<?=$i?>" id="vidcim<?=$i?>" value="<?=$video->cim?>" /></td>
			</tr>
			<tr>
				<td>Leírás: </td>
				<td>
					<textarea cols="40" rows="4" name="vidleiras<?=$i?>" id="vidleiras<?=$i?>"><?=$video->leiras?></textarea>
				</td>
			</tr>
			<tr>
				<td><a href="/<?=$video->kep?>" target="_blank">Kép:</a> </td>
				<td><input type="file" name="vidkep<?=$i?>" id="vidkep<?=$i?>"></td>
			</tr>
			<tr>
				<td>Törlés: </td>
				<td><input type="checkbox" name="viddel<?=$i?>" id="viddel<?=$i?>"></td>
			</tr>
		</table>
		</div>
		<?$i++;?>
		<?endforeach;?>
		
		<input type="button" value="Hozzáad" class="ujvideo">
		<div id="ujvideodoboz" style="padding: 5px; background: #ddc; border: 1px solid #977; margin: 2px; display: none;">
		<table>
			<tr>
				<td>Pozíció: </td>
				<td>
					<input type="text" name="ujvidsorszam" id="ujvidsorszam" size="2" value="<?=(($vidik[count($vidik)-1]->sorszam)+1)?>" />
				</td>
			</tr>
			<tr>
				<td>Youtube azonosító: </td>
				<td><input type="text" name="ujvidyoutube" id="ujvidyoutube" value="" /></td>
			</tr>
			<tr>
				<td>Cím: </td>
				<td><input type="text" name="ujvidcim" id="ujvidcim" value="" /></td>
			</tr>
			<tr>
				<td>Leírás: </td>
				<td>
					<textarea cols="40" rows="4" name="ujvidleiras" id="ujvidleiras"></textarea>
				</td>
			</tr>
			<tr>
				<td>Kép: </td>
				<td><input type="file" name="ujvidkep" id="ujvidkep"></td>
			</tr>
			<tr style="display: none;">
				<td>Törlés: </td>
				<td><input type="checkbox" name="ujviddel" id="ujviddel" checked="true"></td>
			</tr>
		</table>
		</div>
		
		<input type="submit" value="Mentés" name="videovalt">
	</form>
	</div>
	
	
	
	
	<div class="flasheket" style="cursor: pointer; margin-bottom: 20px; padding: 3px; border: 1px solid black; width: 200px;"><strong>Főoldali banner képek szerkesztése</strong></div>
	<form action="/admin/set_settings_img" enctype="multipart/form-data" method="POST" name="kiskepek11">
	<div id="fokep" style="">
	<table style="margin: auto;">
		<?/*     képek     */?>
		<?if($bannerek):?>
			<?$i=1;?>
			<?foreach($bannerek as $finfo):?>
		<tr>
			<td valign="top" style="border-top: 1px solid black; width: 30px;">
				<input type="hidden" name="idk[<?=$finfo->id?>]" id="idk[<?=$finfo->id?>]" value="<?=$finfo->id?>">
				<?=$i?>. kép: 
			</td>
			<td style="border-top: 1px solid black;">
				<table>
					<tr>
						<td>Cím: </td>
						<td><input type="text" name="title[<?=$finfo->id?>]" id="title[<?=$finfo->id?>]" size="2" value="<?=$finfo->title?>"></td>
					<tr>
						<td>Pozíció: </td>
						<td><input type="text" name="poz[<?=$finfo->id?>]" id="poz[<?=$finfo->id?>]" size="2" value="<?=$finfo->position?>"></td>
					</tr>
					<tr>
						<td>Fájl: </td>
						<td><input type="text" name="fajl[<?=$finfo->id?>]" id="fajl[<?=$finfo->id?>]" value="<?=$finfo->filename?>"></td>
					</tr>
					<tr>
						<td>Fájl feltöltés: </td>
						<td><input type="file" name="fajlfel[<?=$finfo->id?>]" id="fajlfel[<?=$finfo->id?>]"></td>
					</tr>
					<tr>
						<td>Link: </td>
						<td><input type="text" name="link[<?=$finfo->id?>]" id="link[<?=$finfo->id?>]" value="<?=$finfo->link?>"></td>
					</tr>
					<tr>
						<td>Kezdet: </td>
						<td><input type="text" name="start[<?=$finfo->id?>]" id="start[<?=$finfo->id?>]" value="<?=date("Y-m-d h:i:s",$finfo->start_date)?>" class="datetime"></td>
					</tr>
					<tr>
						<td>Vége: </td>
						<td><input type="text" name="stop[<?=$finfo->id?>]" id="stop[<?=$finfo->id?>]" value="<?=date("Y-m-d h:i:s",$finfo->stop_date)?>" class="datetime"></td>
					</tr>
					<tr>
						<td>Törlés: </td>
						<td><input type="checkbox" name="del[<?=$finfo->id?>]" id="del[<?=$finfo->id?>]"></td>
					</tr>
				</table>
			</td>
		</tr>
			
			<?$i++;?>
			<?endforeach;?>
		<?endif;?>
		<?/*     end flash adatok    */?>
		
		<tr id="ujgomb">
			<td><input type="button" value="Hozzáad" onclick="ujmutat()"></td>
			<td></td>
		</tr>
		
		<?  /* bővítés */  ?>
		<tr id="ujflash" style="display: none;">
			<td valign="top" style="border-top: 1px solid black;">Új kép: </td>
			<td style="border-top: 1px solid black;">
				<table>
					<tr>
						<td>Cím: </td>
						<td><input type="text" name="uj_title" id="uj_title" value="" /></td>
					</tr>
					<tr>
						<td>Pozíció: </td>
						<td><input type="text" name="uj_poz" id="uj_poz" size="2" value="<?=((end($flashinfok)->position)+1)?>" /></td>
					</tr>
					<tr>
						<td>Fájl: </td>
						<td><input type="text" name="uj_fajl" id="uj_fajl" value="" /></td>
					</tr>
					<tr>
						<td>Fájl feltöltés: </td>
						<td><input type="file" name="uj_fajlfel" id="uj_fajlfel" value=""></td>
					</tr>
					<tr>
						<td>Link: </td>
						<td><input type="text" name="uj_link" id="uj_link" value=""></td>
					</tr>
					<tr>
						<td>Kezdet: </td>
						<td><input type="text" name="uj_start" id="uj_start" value="<?=date('Y-m-d H:i:s',time())?>"></td>
					</tr>
					<tr>
						<td>Vége: </td>
						<td><input type="text" name="uj_stop" id="uj_stop" value="<?=date('Y-m-d H:i:s',time()+31536000)?>"></td>
					</tr>
					<tr style="display: none;">
						<td>Törlés: </td>
						<td><input type="checkbox" name="uj_del" id="uj_del" checked="checked"></td>
					</tr>
				</table>
			</td>
		</tr>
		<tr id="ujmegse" style="display: none;">
			<td><input type="button" value="Mégsem" onclick="ujmutat()"></td>
			<td></td>
		</tr>
		<?  /* end bővítés */  ?>
		<tr>
			<td style="border-bottom: 0px none;">&nbsp;</td>
			<td style="border-bottom: 0px none;" align="right">
				<input  name="" value="OK" type="submit" onclick="flashcheck(<?=count($flashinfok)?>,[1,3])" style="width: 50px; height: 25px;">
			</td>
		</tr>
		
		
	</table>
	</div>
	
	
	<?/*<div class="kepeket" style="cursor: pointer; margin-bottom: 20px; padding: 3px; border: 1px solid black; width: 200px;"><strong>Főoldali alsó négy kép szerkesztése</strong></div>*/?>
	<div id="kiskepekdoboz" class="kepek" style="display: none;">
	
	<div style="padding-left: 10px; height: 25px; color: #DD0000;">A főoldalon megjelenő kis képek mérete: 150 x 113 pixel</div>
	<table border="0">
		<? for($i=1;$i<=4;$i++){ ?>
		<tr>
			<td style="width: 70px;">
				<input type="hidden" id="img_id<?=$i?>" name="img_id<?=$i?>" value="<?=$kepek[($i-1)]->img_id?>">
				<b><?=$i?>. <?=$this->lang->line('kep_kep')?></b>
			</td>
			<td style="width: 430px;">
				<div class="bemenet"><?=$this->lang->line('kep_cim')?>:</div> <input type="text" name="kepcim<?=$i?>" id="kepcim<?=$i?>" value="<?=$kepek[($i-1)]->img_cim?>">
				<div class="koz"></div>
				<div class="bemenet"><?=$this->lang->line('kep_kkephely')?>:</div> <input type="text" name="kep<?=$i?>" id="kep<?=$i?>" value="<?=$kepek[($i-1)]->img_url?>">
				<div class="koz"></div>
				<div class="bemenet"><?=$this->lang->line('kep_ujkep')?>:</div> <input type="file" name="kepuj<?=$i?>" id="kepuj<?=$i?>">
				<div class="koz"></div>
				
				<div class="keret">
				<div class="bemenet"><?=$this->lang->line('kep_nkephely')?>:</div> <input type="text" name="kepn<?=$i?>" id="kepn<?=$i?>" value="<?=$kepek[($i-1)]->img_nagy?>">
				<div class="koz"></div>
				<div class="bemenet"><?=$this->lang->line('kep_ujkep')?>:</div> <input type="file" name="kepnuj<?=$i?>" id="kepnuj<?=$i?>">
				<div class="koz"></div>
				<div class="bemenet"><?=$this->lang->line('kep_nagyit')?>:</div> <input type="checkbox" name="kep<?=$i?>_urlnagy" id="kep<?=$i?>_urlnagy" <?if($kepek[($i-1)]->nagyit == 1):?> checked="checked" <?endif;?>>
				</div>
				
				<div style="padding: 10px; font-weight: bold;"><?if(hun()):?>VAGY<?else:?>OR<?endif;?></div>
				
				<div class="keret">
				<div class="koz"></div>
				<div class="bemenet">URL:</div> <input type="text" name="kep<?=$i?>_url" id="kep<?=$i?>_url" value="<?=$kepek[($i-1)]->url?>">
				</div>
				
				<div class="koz"></div>
				<div class="ut" style="width: 70px; float: left; padding-top: 5px;"><?=$this->lang->line('kep_tipus')?>:</div>
					<select name="kep<?=$i?>_tip" id="kep<?=$i?>_tip" onchange="keptipus(this.value,<?=$i?>,<?=$kepek[($i-1)]->tipus?>)">
						<option value="1" <?if($kepek[($i-1)]->tipus == 1):?> selected="selected"<?endif;?> ><?=$this->lang->line('kep_kep')?></option>
						<option value="2" <?if($kepek[($i-1)]->tipus == 2):?> selected="selected"<?endif;?> ><?=$this->lang->line('kep_flash')?></option>
						<option value="3" <?if($kepek[($i-1)]->tipus == 3):?> selected="selected"<?endif;?> ><?=$this->lang->line('kep_youtube')?></option>
					</select>
			</td>
		</tr>
		<? } ?>
		<tr>
			<td style="border-bottom: 0px none;">&nbsp;</td>
			<td style="border-bottom: 0px none;">
				<input  name="" value="OK" type="submit" onclick="flashcheck(<?=count($flashinfok)?>,[1,3])" style="width: 50px; height: 25px;">
			</td>
		</tr>
	</table>
	
	</div>
	</form>

	
	

	
	<?endif;?>