<style type="text/css">
input, select, textarea {
	box-sizing: border-box;
	-ms-box-sizing: content-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
}
</style>

<?
if(!isset($oszlop) || !is_numeric($oszlop))
	$oszlop=1;
	
$dbres    = $this->db->get('countries');
$mezo     = hun() ? 'ctrNameHun' : 'ctrNameEng';
$orszagok = array();

if(!hun())
	$orszagok['-1'] = '--Choose--';
	
foreach($dbres->result_array() as $tablerow) {
	$orszagok[$tablerow[$mezo]] = $tablerow[$mezo];
}
$alaporszag = (!hun() || $this->input->post('nCtrID')>0 ) ? $this->input->post('nCtrID') : 'Magyarország';
$alapfoglalkozas = ( $this->input->post('nUserProf')>0 ) ? $this->input->post('nUserProf') : '-1';
?>

<tr>
	<td><label for="nUserProf"><?=lang('form_foglalkozas')?>*</label></td>
	<td><?=form_dropdown('nUserProf', lang('form_nUserProfs'), $alapfoglalkozas, "id='nUserProf'");?></td>
	<?if($oszlop!=2):?><td>&nbsp;</td><td>&nbsp;</td><?endif;?>
</tr>

<?if(hun()):?>
<tr>
	<td><label for="strName1"><?=lang('form_csaladnev')?>*</label> </td>
	<td><input type="text" name="strName1" id="strName1" value="<?=$this->input->post('strName1')?>" /></td>
<?if($oszlop!=2):?></tr><tr><?endif;?>
	<td><label for="strName2"><?=lang('form_keresztnev')?>*</label> </td>
	<td><input type="text" name="strName2" id="strName2" value="<?=$this->input->post('strName2')?>" /></td>
</tr>
<?else:?>
<tr>
	<td><label for="strName1"><?=lang('form_keresztnev')?>*</label> </td>
	<td><input type="text" name="strName1" id="strName1" value="<?=$this->input->post('strName1')?>" /></td>
<?if($oszlop!=2):?></tr><tr><?endif;?>
	<td><label for="strName2"><?=lang('form_csaladnev')?>*</label> </td>
	<td><input type="text" name="strName2" id="strName2" value="<?=$this->input->post('strName2')?>" /></td>
</tr>
<?endif;?>

<tr>
	<td><label for="strCompany"><?=lang('form_cegnev')?></label> </td>
	<td><input type="text" name="strCompany" id="strCompany" value="<?=$this->input->post('strCompany')?>" /></td>
<?if($oszlop!=2):?></tr><tr><?endif;?>
	<td><label for="strStreet"><?=lang('form_cim')?>*</label> </td>
	<td><input type="text" name="strStreet" id="strStreet" value="<?=$this->input->post('strStreet')?>" /></td>
</tr>
<tr>
	<td><label for="strCity"><?=lang('form_varos')?>*</label> </td>
	<td><input type="text" name="strCity" id="strCity" value="<?=$this->input->post('strCity')?>" /></td>
<?if($oszlop!=2):?></tr><tr><?endif;?>
	<td><label for="strZip"><?=lang('form_irsz')?>*</label> </td>
	<td><input type="text" name="strZip" id="strZip" value="<?=$this->input->post('strZip')?>" /></td>
</tr>
<tr>
	<td><label for="ctrName"><?=lang('form_orszag')?>*</label> </td>
	<td><?=form_dropdown('ctrName', $orszagok, $alaporszag, "id='ctrName'");?></td>
<?if($oszlop!=2):?></tr><tr><?endif;?>
	<td><label for="strEMail"><?=lang('form_email')?>*</label> </td>
	<td><input type="text" name="strEMail" id="strEMail" value="<?=$this->input->post('strEMail')?>" /></td>
</tr>
<tr>
	<td><label for="strTel"><?=lang('form_telefon')?>*</label> </td>
	<td><input type="text" name="strTel" id="strTel" value="<?=$this->input->post('strTel')?>" /></td>
	<?if($oszlop!=2):?><td>&nbsp;</td><td>&nbsp;</td><?endif;?>
</tr>