	<?php
	$ket1 = ''; $ket2 = ''; $notes1 = $ket1;
	$notes2 = ''; $notes3 = $ket2; $notes4 = $ket2;

	$array_tab = array (
		1 => "Post Show 2019", 
		2 => "Post Show 2018", 
		3 => "Post Show 2017"
	);
	
	echo '
	<div style="margin-top:8px">
		<div class="tabsy">';
			foreach ($array_tab as $key => $value) {
				$table = '';
				$function_ = '';	
				$expl = explode (" ", $value);
				foreach ($expl as $val) {
					if ($function_) $function_ .= '_';
					$function_ .= $val;
				}
				
				$function_ = strtolower($function_);
				$content = $function_($table, ${"notes$key"});
				
				echo '
				<input type="radio" id="tab'.$key.'" name="tab" '.($key == 1 ? "checked" : "").'>
				<label style="margin:0;" class="tabButton" for="tab'.$key.'">'.$value.'</label>
				<div class="tab">
					<div class="content">	
						<h2 style="margin-bottom:5px; padding:10px 0px 0px 0px;">'.strtoupper($value).'</h2>
						'.$content[0].'
						'.$content[1].'
					</div>
				</div>';	
			}
			echo '
		</div>
	</div>';

	function post_show_2019(&$table, &$notes) {
		global $thisPage;
		$table = '';
		$array_link = array (
			array (
				"pdf" => $thisPage."press_release/2019/press_release_Tei2019_25Oktober2019.pdf",
				"zip" => $thisPage."press_release/2019/press_release_Tei2019_25Oktober2019.zip"
			)
		);
		foreach ($array_link as $arrLink) {
			if ($table) 
			$table .= '
			<hr class="style15"><br>';			
			$table .= '
			<object data="'.$arrLink["pdf"].'" type="application/pdf" width="100%" height="500px"> 
				<p>It appears you don\'t have a PDF plugin for this browser.
				No biggie... you can <a href="'.$arrLink["pdf"].'">click here to download the PDF file.</a></p>  
			</object>';
			$table .= '
			<div align="center" style="padding:15px 0px 20px 0px">
				<a href="'.$arrLink["zip"].'" class="hvr-sweep-to-right">
					Click to download
				</a>
			</div>';
		}
		$notes = '';
		return array ($table, $notes);
	}

	function post_show_2017(&$table, &$notes) {
		global $thisPage, $menusLink;
		$table = '
		<div>';
			$imageContentMobile = $thisPage.$menusLink."images/TEI-2017-PostShowReport.jpg"; 
			$imageContentTablet = $thisPage.$menusLink."images/TEI-2017-PostShowReport.jpg"; 
			$imageContentRetina = $thisPage.$menusLink."images/TEI-2017-PostShowReport.jpg";  
			$pdfContent 		= $thisPage.$menusLink."download/TEI-2017-PostShowReport.pdf";  
			//echo $imageContent;
			$table .= '
			<a href="'.$pdfContent.'" target="_blank">
				<img src="'.$thisPage.'images/spacer.png" data-srcset="'.$imageContentMobile.' 720w, '.$imageContentMobile.' 720w 2x, '.$imageContentTablet.' 1000w, '.$imageContentRetina.' 1000w 2x, '.$imageContentRetina.'" alt="Post Show TEI 2017" title="Post Show TEI 2017" />';
				$table .= '
			</a>
		</div>';
		return array($table, $notes) ;
	}
	
	function post_show_2018(&$table, &$notes) {
		global $thisPage;
		$table = '';
		$array_link = array (
			array (
				"pdf" => $thisPage."press_release/lewati-target-tei-2018-optimis-dorong-pencapaian-target-ekspor-nonmigas-id0-1541756908.pdf", 
				"zip" => $thisPage."press_release/lewati-target-tei-2018-optimis-dorong-pencapaian-target-ekspor-nonmigas-id0-1541756908.zip"
			),
			array (
				"pdf" => $thisPage."press_release/preskon_TEI_2018.pdf",
				"zip" => $thisPage."press_release/preskon_TEI_2018.zip"
			)
		);
		foreach ($array_link as $arrLink) {
			if ($table) 
			$table .= '
			<hr class="style15"><br>';			
			$table .= '
			<object data="'.$arrLink["pdf"].'" type="application/pdf" width="100%" height="500px"> 
				<p>It appears you don\'t have a PDF plugin for this browser.
				No biggie... you can <a href="'.$arrLink["pdf"].'">click here to download the PDF file.</a></p>  
			</object>';
			$table .= '
			<div align="center" style="padding:15px 0px 20px 0px">
				<a href="'.$arrLink["zip"].'" class="hvr-sweep-to-right">
					Click to download
				</a>
			</div>';
		}
		$notes = '';
		return array ($table, $notes);
	}
	?>