<?php

$sType = '<section class="add-edit-subgroup type" data-groupname="type">';

	$sType .= '<div class="article-form">';
	
		if(!empty($oMijnOVIS->parsedDetails->id) && !empty($oMijnOVIS->parsedDetails->condition)){
			
			if($oMijnOVIS->parsedDetails->condition == 'new'){
				$sType .= '<input type="hidden" name="set-condition" id="set-condition-new" value="nieuw">';
				
				$sType .= '<div class="select-radio-container type-container active fixed" id="condition-container" data-field="condition">			
					<div class="type" id="sale-condition-container">
						<label class="label-sub">Conditie</label>
						<span class="open-sub-fixed active">Nieuw</span>';
		
					$sType .= '</div>
				</div>';
				
			} else {
				$sType .= '<input type="hidden" name="set-condition" id="set-condition-used" value="gebruikt">';
				
				$sType .= '<div class="select-radio-container type-container active fixed" id="condition-container" data-field="condition">			
					<div class="type" id="sale-condition-container">
						<label class="label-sub">Conditie</label>
						<span class="open-sub-fixed active">Gebruikt</span>';
		
					$sType .= '</div>
				</div>';
			}
			
		} else {
		
			$sType .= '<div class="select-radio-container type-container'.(!empty($oMijnOVIS->parsedDetails->condition) ? ' active' : false).'" id="condition-container" data-field="condition">			
				<div class="type" id="sale-condition-container">
					<label class="label-sub">Conditie</label>
					<span class="open-sub'.(!empty($oMijnOVIS->parsedDetails->condition) ? ' active' : false).'" id="open-sub-condition" data-group="type" data-field="condition" data-title="conditie" data-default="Conditie">'.($oMijnOVIS->parsedDetails->condition == 'used' ? 'Gebruikt' : ($oMijnOVIS->parsedDetails->condition == 'new' ? 'Nieuw' : 'Conditie')).'</span>';

					$sType .= '<div class="sub-container" id="sub-condition">';
						$sType .= '<label for="set-condition-used" id="label-set-condition-used">Gebruikt</label>';
						$sType .= '<input class="select-radio condition-radio" type="checkbox" name="set-condition" id="set-condition-used" value="gebruikt"'.($oMijnOVIS->parsedDetails->condition == 'used' ? ' checked="checked"' : false).'>';
						
						$sType .= '<label for="set-condition-new" id="label-set-condition-new">Nieuw</label>';
						$sType .= '<input class="select-radio condition-radio" type="checkbox" name="set-condition" id="set-condition-new" value="nieuw"'.($oMijnOVIS->parsedDetails->condition == 'new' ? ' checked="checked"' : false).'>';
					$sType .= '</div>';					
							
				$sType .= '</div>
			</div>';
		}
		
		$sType .= '<div class="type-container'.(!empty($oMijnOVIS->parsedDetails->subcategory) ? ' active' : ' not-loaded-yet').'" id="subcategory-container">			
			<div class="type" id="sale-subcategory-container">
						
			</div>
		</div>';
		
		/*
		$sType .= '<div class="type-container" id="type-container">			
			<div class="type" id="sale-type-container">
				<label for="set-type">Uitvoering</label>
				<input class="text-input auto-save" type="text" size="15" name="set-type" id="set-type" value="'.($oMijnOVIS->parsedDetails->version).'">			
			</div>
		</div>';
		
		$sType .= '<div class="type-container" id="toevoeging-container">			
			<div class="type" id="sale-toevoeging-container">
				<label for="set-toevoeging">Titel toevoeging</label>
				<input class="text-input auto-save" type="text" name="set-toevoeging" size="15" maxlength="17" id="set-toevoeging" value="'.($oMijnOVIS->parsedDetails->titleSuffix).'">	
			</div>
		</div>';
		*/
		
		$sType .= '<div class="type-container" id="chassisnummer-container">			
			<div class="type" id="sale-chassisnummer-container">
				<label for="set-chassisnummer">Chassisnummer</label>
				<input autocomplete="false" class="text-input auto-save" type="text" name="set-chassisnummer" size="15" maxlength="17" id="set-chassisnummer" value="'.($oMijnOVIS->parsedDetails->chassisNumber).'">	
			</div>
		</div>';
		
		$sType .= '<div class="type-container" id="mileage-container">			
			<div class="type" id="sale-mileage-container">
				<label for="set-mileage">Kilometerstand</label>
				<input autocomplete="false" class="text-input number-input auto-save" type="tel" size="15" name="set-mileage" inputmode="numeric" maxlength="10" id="set-mileage" value="'.($oMijnOVIS->parsedDetails->mileage).'">		
			</div>
		</div>';
	
		$sType .= '<div class="type-container" id="nap-container">';		
			//$sType .= '<label>NAP (Nationale autopas)</label>';
			$sType .= '<div class="multiple">
				<label for="set-nap" class="switch">
					<input name="set-nap" class="checkboxinput" id="set-nap" type="checkbox" '.(!empty($oMijnOVIS->parsedDetails->NAP) ? ' checked="checked"' : false).'>
					<span class="slider"></span>
				</label>	
			</div>
		</div>';
		
		$sType .= '<div class="type-container" id="car-brand-container">			
			<div class="type" id="sale-car-brand-container">
				<label for="set-car-brand">Merk auto</label>
				<input autocomplete="false" class="text-input auto-save" type="text" name="set-car-brand" size="15" id="set-car-brand" maxlength="255" value="'.$oMijnOVIS->parsedDetails->carBrand.'">			
			</div>
		</div>';
		
		$sType .= '<div class="select-radio-container type-container'.(!empty($oMijnOVIS->parsedDetails->fuel) ? ' active' : false).'" id="fuel-container" data-field="fuel">			
			<div class="type" id="sale-fuel-container">
				<label class="label-sub">Brandstof</label>
				<span class="open-sub'.(!empty($oMijnOVIS->parsedDetails->fuel) ? ' active' : false).'" id="open-sub-fuel" data-group="type" data-field="fuel" data-title="brandstof" data-default="Brandstof">'.(!empty($oMijnOVIS->parsedDetails->fuel) ? $oMijnOVIS->parsedDetails->fuel : 'Brandstof').'</span>';

				$sType .= '<div class="sub-container" id="sub-fuel">';
					
					$aFuels = array('Benzine','Diesel','LPG','Hybride','Elektrisch');
					
					foreach($aFuels as $sFuel){
						$sType .= '<label for="set-fuel-'.strtolower($sFuel).'">'.$sFuel.'</label>';
						$sType .= '<input class="select-radio fuel-radio" type="checkbox" name="set-fuel" id="set-fuel-'.strtolower($sFuel).'" value="'.strtolower($sFuel).'"'.(strtolower($oMijnOVIS->parsedDetails->fuel) == strtolower($sFuel) ? ' checked="checked"' : false).'>';						
					}
					
				$sType .= '</div>';					
						
			$sType .= '</div>
		</div>';
				
		$sType .= '<div class="select-radio-container type-container'.(!empty($oMijnOVIS->parsedDetails->transmission) ? ' active' : false).'" id="transmission-container" data-field="transmission">			
			<div class="type" id="sale-transmission-container">
				<label class="label-sub">Transmissie</label>
				<span class="open-sub'.(!empty($oMijnOVIS->parsedDetails->transmission) ? ' active' : false).'" id="open-sub-transmission" data-group="type" data-field="transmission" data-title="transmissie" data-default="Transmissie">'.(!empty($oMijnOVIS->parsedDetails->transmission) ? $oMijnOVIS->parsedDetails->transmission : 'Transmissie').'</span>';

				$sType .= '<div class="sub-container" id="sub-transmission">';
					
					$aTransmissions = array('Handgeschakeld','Automaat');
					
					foreach($aTransmissions as $sTransmission){
						$sType .= '<label for="set-transmission-'.strtolower($sTransmission).'">'.$sTransmission.'</label>';
						$sType .= '<input class="select-radio transmission-radio" type="checkbox" name="set-transmission" id="set-transmission-'.strtolower($sTransmission).'" value="'.strtolower($sTransmission).'"'.(strtolower($oMijnOVIS->parsedDetails->transmission) == strtolower($sTransmission) ? ' checked="checked"' : false).'>';						
					}
					
				$sType .= '</div>';					
						
			$sType .= '</div>
		</div>';
			
		$sType .= '<div class="select-radio-container type-container'.(!empty($oMijnOVIS->parsedDetails->euroClass) ? ' active' : false).'" id="euro-class-container" data-field="euro-class">			
			<div class="type" id="sale-euro-class-container">
				<label class="label-sub">Euroklasse</label>
				<span class="open-sub'.(!empty($oMijnOVIS->parsedDetails->euroClass) ? ' active' : false).'" id="open-sub-euro-class" data-group="type" data-field="euro-class" data-title="euroklasse" data-default="Euroklasse">'.(!empty($oMijnOVIS->parsedDetails->euroClass) ? 'Klasse ' . $oMijnOVIS->parsedDetails->euroClass : 'Euroklasse').'</span>';

				$sType .= '<div class="sub-container" id="sub-euro-class">';
					
					$aEuroClasses = array('2','3','4','5','6','6d','6d-Temp','6e');
					
					foreach($aEuroClasses as $sEuroClass){
						$sType .= '<label for="set-euro-class-'.strtolower($sEuroClass).'">Klasse '.$sEuroClass.'</label>';
						$sType .= '<input class="select-radio euro-class-radio" type="checkbox" name="set-euro-class" id="set-euro-class-'.strtolower($sEuroClass).'" value="'.strtolower($sEuroClass).'"'.(strtolower($oMijnOVIS->parsedDetails->euroClass) == strtolower($sEuroClass) ? ' checked="checked"' : false).'>';						
					}
					
				$sType .= '</div>';					
						
			$sType .= '</div>
		</div>';
			
		$sType .= '<div class="select-radio-container type-container'.(!empty($oMijnOVIS->parsedDetails->seats) ? ' active' : false).'" id="seats-container" data-field="seats">			
			<div class="type" id="sale-seats-container">
				<label class="label-sub">Zitplaatsen</label>
				<span class="open-sub'.(!empty($oMijnOVIS->parsedDetails->seats) ? ' active' : false).'" id="open-sub-seats" data-group="type" data-field="seats" data-title="zitplaatsen" data-default="Zitplaatsen">'.(!empty($oMijnOVIS->parsedDetails->seats) ? $oMijnOVIS->parsedDetails->seats . ($oMijnOVIS->parsedDetails->seats == '1' ? ' zitplaats' : ' zitplaatsen') : 'Zitplaatsen').'</span>';

				$sType .= '<div class="sub-container" id="sub-seats">';
					
					for($i=1; $i<=10; $i++){
						$sType .= '<label for="set-seats-'.strtolower($i).'">'.$i.'</label>';
						$sType .= '<input class="select-radio seats-radio" type="checkbox" name="set-seats" id="set-seats-'.strtolower($i).'" value="'.strtolower($i).'"'.(strtolower($oMijnOVIS->parsedDetails->seats) == strtolower($i) ? ' checked="checked"' : false).'>';						
					}
					
				$sType .= '</div>';					
						
			$sType .= '</div>
		</div>';
			
		$sType .= '<div class="select-radio-container type-container'.(!empty($oMijnOVIS->parsedDetails->seatbelts) ? ' active' : false).'" id="seatbelts-container" data-field="seatbelts">			
			<div class="type" id="sale-seatbelts-container">
				<label class="label-sub">Gordelplaatsen</label>
				<span class="open-sub'.(!empty($oMijnOVIS->parsedDetails->seatbelts) ? ' active' : false).'" id="open-sub-seatbelts" data-group="type" data-field="seatbelts" data-title="gordelplaatsen" data-default="Gordelplaatsen">'.(!empty($oMijnOVIS->parsedDetails->seatbelts) ? $oMijnOVIS->parsedDetails->seatbelts . ($oMijnOVIS->parsedDetails->seatbelts == '1' ? ' gordel' : ' gordels') : 'Gordelplaatsen').'</span>';

				$sType .= '<div class="sub-container" id="sub-seatbelts">';
					
					for($i=1; $i<=10; $i++){
						$sType .= '<label for="set-seatbelts-'.strtolower($i).'">'.$i.'</label>';
						$sType .= '<input class="select-radio seatbelts-radio" type="checkbox" name="set-seatbelts" id="set-seatbelts-'.strtolower($i).'" value="'.strtolower($i).'"'.(strtolower($oMijnOVIS->parsedDetails->seatbelts) == strtolower($i) ? ' checked="checked"' : false).'>';						
					}
					
				$sType .= '</div>';					
						
			$sType .= '</div>
		</div>';
		
		$sType .= '<div class="type-container" id="power-container">			
			<div class="type" id="sale-power-container">
				<label for="set-power">Vermogen (pk)</label>
				<input class="text-input number-input auto-save" type="tel" name="set-power" size="15" inputmode="numeric" maxlength="10" id="set-power" value="'.($oMijnOVIS->parsedDetails->engineHorsePower).'">			
			</div>
		</div>';
		
		$sType .= '<div class="select-radio-container type-container'.(!empty($oMijnOVIS->parsedDetails->owners) ? ' active' : false).'" id="owners-container" data-field="owners">			
			<div class="type" id="sale-owners-container">
				<label class="label-sub">Aantal eigenaren</label>
				<span class="open-sub'.(!empty($oMijnOVIS->parsedDetails->owners) ? ' active' : false).'" id="open-sub-owners" data-group="type" data-field="owners" data-title="eigenaren" data-default="Eigenaren">'.(!empty($oMijnOVIS->parsedDetails->owners) ? $oMijnOVIS->parsedDetails->owners . ($oMijnOVIS->parsedDetails->owners == '1' ? ' eigenaar' : ' eigenaren') : 'Eigenaren').'</span>';

				$sType .= '<div class="sub-container" id="sub-owners">';
					
					for($i=1; $i<=10; $i++){
						$sType .= '<label for="set-owners-'.strtolower($i).'">'.$i.'</label>';
						$sType .= '<input class="select-radio owners-radio" type="checkbox" name="set-owners" id="set-owners-'.strtolower($i).'" value="'.strtolower($i).'"'.(strtolower($oMijnOVIS->parsedDetails->owners) == strtolower($i) ? ' checked="checked"' : false).'>';						
					}
					
				$sType .= '</div>';					
						
			$sType .= '</div>
		</div>';
		
		$sType .= '<div class="select-radio-container type-container'.(!empty($oMijnOVIS->parsedDetails->walls) ? ' active' : false).'" id="walltype-container" data-field="walltype">			
			<div class="type" id="sale-walltype-container">
				<label class="label-sub">Wanden</label>
				<span class="open-sub'.(!empty($oMijnOVIS->parsedDetails->walls) ? ' active' : false).'" id="open-sub-walltype" data-group="type" data-field="walltype" data-title="wanden" data-default="Wanden">'.(!empty($oMijnOVIS->parsedDetails->walls) ? $oMijnOVIS->parsedDetails->walls : 'Wanden').'</span>';

				$sType .= '<div class="sub-container" id="sub-walltype">';
				
					$aWalltypes = array('Hamerslag','Glad');
					
					foreach($aWalltypes as $sWalltype){
						$sType .= '<label for="set-walltype-'.strtolower($sWalltype).'">'.$sWalltype.'</label>';
						$sType .= '<input class="select-radio walltype-radio" type="checkbox" name="set-walltype" id="set-walltype-'.strtolower($sWalltype).'" value="'.strtolower($sWalltype).'"'.(strtolower($oMijnOVIS->parsedDetails->walls) == strtolower($sWalltype) ? ' checked="checked"' : false).'>';						
					}
					
				$sType .= '</div>';					
						
			$sType .= '</div>
		</div>';
		
		$sType .= '<div class="select-radio-container type-container'.(!empty($oMijnOVIS->parsedDetails->materialTentTrailer) ? ' active' : false).'" id="material-tenttrailer-container" data-field="material-tenttrailer">			
			<div class="type" id="sale-material-tenttrailer-container">
				<label class="label-sub">Materiaal vouwwagen</label>
				<span class="open-sub'.(!empty($oMijnOVIS->parsedDetails->materialTentTrailer) ? ' active' : false).'" id="open-sub-material-tenttrailer" data-group="type" data-field="material-tenttrailer" data-title="materiaal" data-default="Materiaal">'.(!empty($oMijnOVIS->parsedDetails->materialTentTrailer) ? $oMijnOVIS->parsedDetails->materialTentTrailer : 'Materiaal').'</span>';

				$sType .= '<div class="sub-container" id="sub-material-tenttrailer">';
				
					//$aMaterials = false;
				
					//if($oMijnOVIS->parsedDetails->category == 'tenttrailer' || $oMijnOVIS->parsedDetails->category == 'vouwwagen'){						
						$aMaterials = array('Katoen doek','All-season doek');
					//} elseif($oMijnOVIS->parsedDetails->category == 'mobilehome' || $oMijnOVIS->parsedDetails->category == 'stacaravan'){					
					//	$aMaterials = array('Aluminium','Hout','PVC','Canexel','Kunststof');
					//}
					
					if(!empty($aMaterials)){
					
						foreach($aMaterials as $sMaterial){
							$sType .= '<label for="set-material-tenttrailer-'.strtolower($sMaterial).'">'.$sMaterial.'</label>';
							$sType .= '<input class="select-radio material-tenttrailer-radio" type="checkbox" name="set-material-tenttrailer" id="set-material-tenttrailer-'.strtolower($sMaterial).'" value="'.strtolower($sMaterial).'"'.(strtolower($oMijnOVIS->parsedDetails->materialTentTrailer) == strtolower($sMaterial) ? ' checked="checked"' : false).'>';						
						}
					}
					
				$sType .= '</div>';					
						
			$sType .= '</div>
		</div>';
		
		$sType .= '<div class="select-radio-container type-container'.(!empty($oMijnOVIS->parsedDetails->material) ? ' active' : false).'" id="material-container" data-field="material">			
			<div class="type" id="sale-material-container">
				<label class="label-sub">Materiaal</label>
				<span class="open-sub'.(!empty($oMijnOVIS->parsedDetails->material) ? ' active' : false).'" id="open-sub-material" data-group="type" data-field="material" data-title="materiaal" data-default="Materiaal">'.(!empty($oMijnOVIS->parsedDetails->material) ? $oMijnOVIS->parsedDetails->material : 'Materiaal').'</span>';

				$sType .= '<div class="sub-container" id="sub-material">';
				
					//$aMaterials = false;
				
					//if($oMijnOVIS->parsedDetails->category == 'tenttrailer' || $oMijnOVIS->parsedDetails->category == 'vouwwagen'){						
					//	$aMaterials = array('Katoen doek','All-season doek');
					//} elseif($oMijnOVIS->parsedDetails->category == 'mobilehome' || $oMijnOVIS->parsedDetails->category == 'stacaravan'){					
						$aMaterials = array('Aluminium','Hout','PVC','Canexel','Kunststof');
					//}
					
					if(!empty($aMaterials)){
					
						foreach($aMaterials as $sMaterial){
							$sType .= '<label for="set-material-'.strtolower($sMaterial).'">'.$sMaterial.'</label>';
							$sType .= '<input class="select-radio material-radio" type="checkbox" name="set-material" id="set-material-'.strtolower($sMaterial).'" value="'.strtolower($sMaterial).'"'.(strtolower($oMijnOVIS->parsedDetails->material) == strtolower($sMaterial) ? ' checked="checked"' : false).'>';						
						}
					}
					
				$sType .= '</div>';					
						
			$sType .= '</div>
		</div>';		
				
		$sType .= '<div class="select-radio-container type-container'.(!empty($oMijnOVIS->parsedDetails->wallscolor) ? ' active' : false).'" id="color-container" data-field="color">			
			<div class="type" id="sale-color-container">
				<label class="label-sub">Kleur</label>
				<span class="open-sub'.(!empty($oMijnOVIS->parsedDetails->wallscolor) ? ' active' : false).'" id="open-sub-color" data-group="type" data-field="color" data-title="kleur" data-default="Kleur">'.(!empty($oMijnOVIS->parsedDetails->wallscolor) ?$oMijnOVIS->parsedDetails->wallscolor : 'Kleur').'</span>';
				
				$sType .= '<div class="sub-container" id="sub-color">';
					
					$aColors = array('Grijs','Wit','Overig');
					
					foreach($aColors as $sColor){
						$sType .= '<label for="set-color-'.strtolower($sColor).'">'.$sColor.'</label>';
						$sType .= '<input class="select-radio color-radio" type="checkbox" name="set-color" id="set-color-'.strtolower($sColor).'" value="'.strtolower($sColor).'"'.(strtolower($oMijnOVIS->parsedDetails->wallscolor) == strtolower($sColor) ? ' checked="checked"' : false).'>';						
					}
					
				$sType .= '</div>';					
						
			$sType .= '</div>
		</div>';		
				
		$sType .= '<div class="select-radio-container type-container'.(!empty($oMijnOVIS->parsedDetails->colorTrailer) ? ' active' : false).'" id="color-trailer-container" data-field="color-trailer">			
			<div class="type" id="sale-color-trailer-container">
				<label class="label-sub">Kleur</label>
				<span class="open-sub'.(!empty($oMijnOVIS->parsedDetails->colorTrailer) ? ' active' : false).'" id="open-sub-color-trailer" data-group="type" data-field="color-trailer" data-title="kleur" data-default="Kleur">'.(!empty($oMijnOVIS->parsedDetails->colorTrailer) ?$oMijnOVIS->parsedDetails->colorTrailer : 'Kleur').'</span>';
				
				$sType .= '<div class="sub-container" id="sub-color-trailer">';
					
					$aColors = array('Beige','Blauw','Bruin','Brons','Donkerrood','Geel','Goud','Grijs','Grijszwart','Groen','Lichtblauw','Lichtgrijs','Lichtgroen','Oranje','Paars','Rood','Wit','Zilver','Zwart','Overig');
					
					foreach($aColors as $sColor){
						$sType .= '<label for="set-color-trailer-'.strtolower($sColor).'">'.$sColor.'</label>';
						$sType .= '<input class="select-radio color-trailer-radio" type="checkbox" name="set-color-trailer" id="set-color-trailer-'.strtolower($sColor).'" value="'.strtolower($sColor).'"'.(strtolower($oMijnOVIS->parsedDetails->colorTrailer) == strtolower($sColor) ? ' checked="checked"' : false).'>';						
					}
					
				$sType .= '</div>';					
						
			$sType .= '</div>
		</div>';
		
		$sType .= '<div class="type-container" id="metallic-container">';		
			//$sType .= '<label>Type lak</label>';
			$sType .= '<div class="multiple">
				<label for="set-metallic" class="switch">
					<input name="set-metallic" class="checkboxinput" id="set-metallic" type="checkbox" '.(!empty($oMijnOVIS->parsedDetails->metallic) ? ' checked="checked"' : false).'>
					<span class="slider"></span>
				</label>	
			</div>
		</div>';
		
		$sType .= '<div class="type-container" id="particulateFilter-container">';			
			//$sType .= '<label>Roetfilter</label>';
			$sType .= '<div class="multiple">
				<label for="set-particulateFilter" class="switch">
					<input name="set-particulateFilter" class="checkboxinput" id="set-particulateFilter" type="checkbox" '.(!empty($oMijnOVIS->parsedDetails->particulateFilter) ? ' checked="checked"' : false).'>
					<span class="slider"></span>
				</label>	
			</div>
		</div>';
		
		$sType .= '<div class="type-container" id="damaged-container">';			
			//$sType .= '<label>Schadevoertuig</label>';
			$sType .= '<div class="multiple">
				<label for="set-damaged" class="switch">
					<input name="set-damaged" class="checkboxinput" id="set-damaged" type="checkbox" '.(!empty($oMijnOVIS->parsedDetails->damaged) ? ' checked="checked"' : false).'>
					<span class="slider"></span>
				</label>	
			</div>
		</div>';
		
		$sType .= '<div class="type-container" id="hailDamage-container">';			
			//$sType .= '<label>Hagelschade</label>';
			$sType .= '<div class="multiple">
				<label for="set-hailDamage" class="switch">
					<input name="set-hailDamage" class="checkboxinput" id="set-hailDamage" type="checkbox" '.(!empty($oMijnOVIS->parsedDetails->hailDamage) ? ' checked="checked"' : false).'>
					<span class="slider"></span>
				</label>	
			</div>
		</div>';
		
		$sType .= '<div class="type-container" id="demo-container">';		
			//$sType .= '<label>Demovoertuig</label>';
			$sType .= '<div class="multiple">
				<label for="set-demo" class="switch">
					<input name="set-demo" class="checkboxinput" id="set-demo" type="checkbox" '.(!empty($oMijnOVIS->parsedDetails->demo) ? ' checked="checked"' : false).'>
					<span class="slider"></span>
				</label>	
			</div>
		</div>';
		
		$sType .= '<div class="type-container" id="exRental-container">';			
			//$sType .= '<label>Ex verhuur</label>';
			$sType .= '<div class="multiple">
				<label for="set-exRental" class="switch">
					<input name="set-exRental" class="checkboxinput" id="set-exRental" type="checkbox" '.(!empty($oMijnOVIS->parsedDetails->exRental) ? ' checked="checked"' : false).'>
					<span class="slider"></span>
				</label>	
			</div>
		</div>';
		
		$sType .= '<div class="type-container" id="possibleRental-container">';			
			//$sType .= '<label>Verhuur mogelijk</label>';
			$sType .= '<div class="multiple">
				<label for="set-possibleRental" class="switch">
					<input name="set-possibleRental" class="checkboxinput" id="set-possibleRental" type="checkbox" '.(!empty($oMijnOVIS->parsedDetails->possibleRental) ? ' checked="checked"' : false).'>
					<span class="slider"></span>
				</label>	
			</div>
		</div>';
		
		$sType .= '<div class="type-container" id="maintenanceBooklets-container">';			
			//$sType .= '<label>Onderhoudsboekjes</label>';
			$sType .= '<div class="multiple">
				<label for="set-maintenanceBooklets" class="switch">
					<input name="set-maintenanceBooklets" class="checkboxinput" id="set-maintenanceBooklets" type="checkbox" '.(!empty($oMijnOVIS->parsedDetails->maintenanceBooklets) ? ' checked="checked"' : false).'>
					<span class="slider"></span>
				</label>	
			</div>
		</div>';
		
		$sType .= '<div class="type-container" id="suitableForDisabledPeople-container">';			
			//$sType .= '<label>Toegankelijk mindervaliden</label>';
			$sType .= '<div class="multiple">
				<label for="set-suitableForDisabledPeople" class="switch">
					<input name="set-suitableForDisabledPeople" class="checkboxinput" id="set-suitableForDisabledPeople" type="checkbox" '.(!empty($oMijnOVIS->parsedDetails->suitableForDisabledPeople) ? ' checked="checked"' : false).'>
					<span class="slider"></span>
				</label>	
			</div>
		</div>';		
		
		$sType .= '<div class="type-container" id="brakes-container">';			
			//$sType .= '<label>Geremd</label>';
			$sType .= '<div class="multiple">
				<label for="set-brakes" class="switch">
					<input name="set-brakes" class="checkboxinput" id="set-brakes" type="checkbox" '.(!empty($oMijnOVIS->parsedDetails->brakes) ? ' checked="checked"' : false).'>
					<span class="slider"></span>
				</label>	
			</div>
		</div>';
		
		$sType .= '<div class="select-radio-container type-container'.(!empty($oMijnOVIS->parsedDetails->numberOfDoors) ? ' active' : false).'" id="number-of-doors-container" data-field="number-of-doors">			
			<div class="type" id="sale-number-of-doors-container">
				<label class="label-sub">Aantal deuren</label>
				<span class="open-sub'.(!empty($oMijnOVIS->parsedDetails->numberOfDoors) ? ' active' : false).'" id="open-sub-number-of-doors" data-group="type" data-field="number-of-doors" data-title="deuren" data-default="Aantal deuren">'.(!empty($oMijnOVIS->parsedDetails->numberOfDoors) ? $oMijnOVIS->parsedDetails->numberOfDoors . ($oMijnOVIS->parsedDetails->numberOfDoors == '1' ? ' deur' : ' deuren') : 'Aantal deuren').'</span>';

				$sType .= '<div class="sub-container" id="sub-number-of-doors">';
					
					for($i=1; $i<=4; $i++){
						$sType .= '<label for="set-number-of-doors-'.strtolower($i).'">'.$i.' '.($i == 1 ? ' deur' : ' deuren').'</label>';
						$sType .= '<input class="select-radio number-of-doors-radio" type="checkbox" name="set-number-of-doors" id="set-number-of-doors-'.strtolower($i).'" value="'.strtolower($i).'"'.(strtolower($oMijnOVIS->parsedDetails->numberOfDoors) == strtolower($i) ? ' checked="checked"' : false).'>';						
					}
					
				$sType .= '</div>';					
						
			$sType .= '</div>
		</div>';
		
		$sType .= '<div class="select-radio-container type-container'.(!empty($oMijnOVIS->parsedDetails->doorTypes) ? ' active' : false).'" id="door-types-container" data-field="door-types">			
			<div class="type" id="sale-door-types-container">
				<label class="label-sub">Type deuren</label>
				<span class="open-sub'.(!empty($oMijnOVIS->parsedDetails->doorTypes) ? ' active' : false).'" id="open-sub-door-types" data-group="type" data-field="door-types" data-title="deur type" data-default="Deur type">'.(!empty($oMijnOVIS->parsedDetails->doorTypes) ? $oMijnOVIS->parsedDetails->doorTypes : 'Deur type').'</span>';

				$sType .= '<div class="sub-container" id="sub-door-types">';
					
					$aDoorTypes = array('Deur(en)','Deur + zij-schuifdeur','deur + zij-roldeur','roldeur(en)','Roldeur + zij-schuifdeur','Roldeur + zij-deur','schuifdeur(en)');
					
					foreach($aDoorTypes as $key => $sDoorType){
						$sType .= '<label for="set-door-types-'.strtolower($key).'">'.$sDoorType.'</label>';
						$sType .= '<input class="select-radio door-types-radio" type="checkbox" name="set-door-types" id="set-door-types-'.strtolower($key).'" value="'.strtolower($sDoorType).'"'.(strtolower($oMijnOVIS->parsedDetails->doorTypes) == strtolower($sDoorType) ? ' checked="checked"' : false).'>';						
					}
					
				$sType .= '</div>';					
						
			$sType .= '</div>
		</div>';
		
		$sType .= '<div class="select-radio-container type-container'.(!empty($oMijnOVIS->parsedDetails->plug) ? ' active' : false).'" id="plug-container" data-field="plug">			
			<div class="type" id="sale-plug-container">
				<label class="label-sub">Stekker</label>
				<span class="open-sub'.(!empty($oMijnOVIS->parsedDetails->plug) ? ' active' : false).'" id="open-sub-plug" data-group="type" data-field="plug" data-title="Stekker" data-default="Stekker">'.(!empty($oMijnOVIS->parsedDetails->plug) ? $oMijnOVIS->parsedDetails->plug : 'Stekker').'</span>';

				$sType .= '<div class="sub-container" id="sub-plug">';
					
					$aDoorTypes = array('7-polig','13-polig');
					
					foreach($aDoorTypes as $key => $sDoorType){
						$sType .= '<label for="set-plug-'.strtolower($key).'">'.$sDoorType.'</label>';
						$sType .= '<input class="select-radio plug-radio" type="checkbox" name="set-plug" id="set-plug-'.strtolower($key).'" value="'.strtolower($sDoorType).'"'.(strtolower($oMijnOVIS->parsedDetails->plug) == strtolower($sDoorType) ? ' checked="checked"' : false).'>';						
					}
					
				$sType .= '</div>';					
						
			$sType .= '</div>
		</div>';
		
		$sType .= '<div class="type-container" id="kip-angle-container">			
			<div class="type" id="sale-kip-angle-container">
				<label for="set-kip-angle">Kiphoek (&deg;)</label>
				<input autocomplete="false" class="text-input number-input auto-save" type="tel" size="15" name="set-kip-angle" inputmode="numeric" maxlength="3" id="set-kip-angle" value="'.$oMijnOVIS->parsedDetails->kipAngle.'" data-field="kip-angle">			
			</div>
		</div>';
		
		$sType .= '<div class="select-radio-container type-container'.(!empty($oMijnOVIS->parsedDetails->axles) ? ' active' : false).'" id="axles-container" data-field="axles">			
			<div class="type" id="sale-axles-container">
				<label class="label-sub">Assen</label>
				<span class="open-sub'.(!empty($oMijnOVIS->parsedDetails->axles) ? ' active' : false).'" id="open-sub-axles" data-group="type" data-field="axles" data-title="Assen" data-default="Aantal assen">'.(!empty($oMijnOVIS->parsedDetails->axles) ? $oMijnOVIS->parsedDetails->axles : 'Aantal assen').'</span>';

				$sType .= '<div class="sub-container" id="sub-axles">';
					
					for($i=1; $i<=4; $i++){
						$sType .= '<label for="set-axles-'.strtolower($i).'">'.$i.' '.($i == 1 ? ' as' : ' assen').'</label>';
						$sType .= '<input class="select-radio axles-radio" type="checkbox" name="set-axles" id="set-axles-'.strtolower($i).'" value="'.strtolower($i).'"'.(strtolower($oMijnOVIS->parsedDetails->axles) == strtolower($i) ? ' checked="checked"' : false).'>';						
					}
					
				$sType .= '</div>';					
						
			$sType .= '</div>
		</div>';
		
		$sType .= '<div class="select-radio-container type-container'.(!empty($oMijnOVIS->parsedDetails->floorMaterial) ? ' active' : false).'" id="floor-material-container" data-field="floor-material">			
			<div class="type" id="sale-floor-material-container">
				<label class="label-sub">Vloer</label>
				<span class="open-sub'.(!empty($oMijnOVIS->parsedDetails->floorMaterial) ? ' active' : false).'" id="open-sub-floor-material" data-group="type" data-field="floor-material" data-title="Vloer" data-default="Vloer">'.(!empty($oMijnOVIS->parsedDetails->floorMaterial) ? $oMijnOVIS->parsedDetails->floorMaterial : 'Vloer').'</span>';

				$sType .= '<div class="sub-container" id="sub-floor-material">';
					
					$aFloorMaterials = array('Aluminium','Hout','Kunststof','Metaal','Polyester');
					
					foreach($aFloorMaterials as $key => $sFloorMaterial){
						$sType .= '<label for="set-floor-material-'.strtolower($key).'">'.$sFloorMaterial.'</label>';
						$sType .= '<input class="select-radio floor-material-radio" type="checkbox" name="set-floor-material" id="set-floor-material-'.strtolower($key).'" value="'.strtolower($sFloorMaterial).'"'.(strtolower($oMijnOVIS->parsedDetails->floorMaterial) == strtolower($sFloorMaterial) ? ' checked="checked"' : false).'>';						
					}
					
				$sType .= '</div>';					
						
			$sType .= '</div>
		</div>';
		
		$sType .= '<div class="select-radio-container type-container'.(!empty($oMijnOVIS->parsedDetails->wallMaterial) ? ' active' : false).'" id="wall-material-container" data-field="wall-material">			
			<div class="type" id="sale-wall-material-container">
				<label class="label-sub">Wanden/borden</label>
				<span class="open-sub'.(!empty($oMijnOVIS->parsedDetails->wallMaterial) ? ' active' : false).'" id="open-sub-wall-material" data-group="type" data-field="wall-material" data-title="Wanden/bordern" data-default="Wanden">'.(!empty($oMijnOVIS->parsedDetails->wallMaterial) ? $oMijnOVIS->parsedDetails->wallMaterial : 'Wanden').'</span>';

				$sType .= '<div class="sub-container" id="sub-wall-material">';
					
					$aWallMaterials = array('Hout','Kunststof','Metaal','Hout/kunsstof','Hout/metaal','Metaal/kunststof','Aluminium','Polyester');
					
					foreach($aWallMaterials as $key => $sWallMaterial){
						$sType .= '<label for="set-wall-material-'.strtolower($key).'">'.$sWallMaterial.'</label>';
						$sType .= '<input class="select-radio wall-material-radio" type="checkbox" name="set-wall-material" id="set-wall-material-'.strtolower($key).'" value="'.strtolower($sWallMaterial).'"'.(strtolower($oMijnOVIS->parsedDetails->wallMaterial) == strtolower($sWallMaterial) ? ' checked="checked"' : false).'>';						
					}
					
				$sType .= '</div>';					
						
			$sType .= '</div>
		</div>';
		
	$sType .= '</div>';

$sType .= '</section>';

return $sType;