<style>
	.head-table td{
		background-color:#000000;
		color:#FFFFFF;
		font-weight:bold;
	}
</style>
<?php
include ($thisUrl."adm1n/functions/php_functions.php");

function table_content ($var, $table_content = '', $dir_) {
	$counter = 0; 
	foreach ($var as $value) {
		$counter++;
		$table_content .= '
		<tr>
			<td width="7%" align="center" style="text-align:center">'.$counter.'</td>
			<td width="40%"><strong>'.(isset($value["title"])!="" ? $value["title"] : null).'</strong></td>
			<td width="35%">
				<strong>'.(isset($value["speaker"])!="" ? $value["speaker"] : null).'</strong><br>
				'.(isset($value["position"])!="" ? $value["position"] : null).'
			</td>
			<td width="18%" align="center" style="text-align:center">
				<a target="_blank" href="pdf/'.$dir_.(isset($value["fileName"])!="" ? $value["fileName"] : null).'">Download Now</a>
			</td>
		</tr>';
	}
	$table_content = '
	<table width="100%" cellpadding="10" cellspacing="1" border="0" bgcolor="#CCCCCC">
		<tr class="head-table">
			<td align="center" style="text-align:center">NO</td>
			<td>TITLE</td>
			<td>SPEAKER</td>
			<td align="center" style="text-align:center">ACTION</td>
		</tr>'.$table_content.'
	</table>';
	return $table_content;
}

//var_dump($array_tab);
$tti_seminar = array(
  array (
  	"title"    => "Indonesia to be The Global Top 10 Economy by 2030 Through Making Indonesia 4.0",
	"speaker"  => "Airlangga Hartarto",
	"position" => "Minister of Industry",
	"fileName" => "materi-menperin-Seminar-TTI-2019.pdf"
  ),
  array (
  	"title"    => "Indonesia Investment Landscape: Progress and Outlook",
	"speaker"  => "Thomas Trikasih Lembong",
	"position" => "Chairman of BKPM",
	"fileName" => "TTI-Seminar-TEI2019-BKPM.pdf"	
  ),
  array (
  	"title"    => "Building 10 + 1 New Bali",
	"speaker"  => "Hiramsyah S. Thaib",	
	"position" => "Team Leader Acceleration for The Development of Priority Tourism Destination",
	"fileName" => "Trade-Tourism-Investment-Kemenpar.pdf"
  ),
  array (
  	"title"    => "Trade, Tourism and Investment",
	"speaker"  => "Rosan P. Roeslani",	
	"position" => "Chairman of Kadin Indonesia",
	"fileName" => "Materi-KADIN-TTI-TEI2019.pdf"
  ),
  array (
  	"title"    => "Indonesia's Creative Economy Ecosystem",
	"speaker"  => "Triawan Munaf",	
	"position" => "Chairman of Indonesian Agency for Creative Economy",
	"fileName" => "Bktaf.pdf"
  ),
  array (
  	"title"    => "Indonesia's Trade Strategy: Moving Forward to Serve the World",
	"speaker"  => "Indrasari Wisnu Wardhana",
	"position" => "Director General of Foreign Trade, Ministry of Trade",
	"fileName" => "Kemendag.pdf"
  )
);
function tti_seminar($var) {
	global $$var;
	$table_content = table_content ($$var, $table_content = '', $var."/");
	return $table_content;
}

$garuda_5a = array(
  array (
  	"title"    => "Potensi Pendaftaran Merek Melalui Protokol Madrid Dalam Rangka Mempermudah Akses Bagi Pelaku Usaha Nasional Yang Berorientasi Ekspor",
	"speaker"  => "Direktorat Merek dan Indikasi Geografis",	
	"position" => "",
	"fileName" => "4._Madrid_Protocol_R1.pdf"
  ), 
  array (
  	"title"    => "Doing Business with Taiwan",
	"speaker"  => "Jack Chen-Huan HSIAO",	
	"position" => "Deputy Representative <br> Taipei Economic and Trade Office, Jakarta, Indonesia",
	"fileName" => "Jack-Chen-Huan-HSIAO.pdf"
  ), 
  array (
  	"title"    => "Food and beverages Industry in Japan",
	"speaker"  => "",	
	"position" => "",
	"fileName" => "資料10.11.pdf"
  ) 
);
function garuda_5a($var) {
	global $$var;
	$table_content = table_content ($$var, $table_content = '', $var."/");
	return $table_content;
}

$garuda_5b = array(
  array (
  	"title"    => "Malaysia Market Opportunities",
	"speaker"  => "Frankie Ridzal",	
	"position" => "Vice President & Founder of Indonesia Trade Association (ITA) - Malaysia",
	"fileName" => "2a._Frankie-ITE2019SemiFinal.pdf"
  ), 
  array (
  	"title"    => "Malaysia Market Penetration and Stategy for Herbal Product",
	"speaker"  => "Kandi Rahayu",	
	"position" => "3<sup>rd</sup> Vice President of Indonesia Trade Association (ITA) Malaysia",
	"fileName" => "2b._Malaysia-KANDI-RAHAYU.pdf"
  ), 
  array (
  	"title"    => "How to Enter United States Market (Food & Beverage Products)",
	"speaker"  => "Ira Damayanti & Tengku Irham",	
	"position" => "Indonesia Diaspora Network SME-SMI Export Empowerment & Development",
	"fileName" => "PRESENTASI_TEI-17-OKTOBER2019.pdf"
  ) 
);
function garuda_5b($var) {
	global $$var;
	$table_content = table_content ($$var, $table_content = '',$var."/");
	return $table_content;
}

$garuda_6a = array(
  array (
  	"title"    => "European Market Potential for Indonesian Lightwood Products",
	"speaker"  => "Frank Maul",	
	"position" => "IPD Expert Markets & Sourcing",
	"fileName" => "1.FrankMaul-191017_Europ._MarketforLightwoodProducts-IPD.pdf"
  ), 
  array (
  	"title"    => "The Whole Utilization of Indonesian Light Wood and Fast Growing Species",
	"speaker"  => "Dede Hermawan",	
	"position" => "Indonesian Light Wood Association",
	"fileName" => "ITE-Dede-2019.pdf"
  )
);
function garuda_6a($var) {
	global $$var;
	$table_content = table_content ($$var, $table_content = '', $var."/");
	return $table_content;
}

$garuda_6b_8a = array(
  array (
  	"title"    => "Kekayaan Intelektual",
	"speaker"  => "Benny Muliawan, M.H.",	
	"position" => "Konsultan Kekayaan Intelektual",
	"fileName" => "indah-golden.pdf"
  ), 
  array (
  	"title"    => "Tips & Tricks to Enter Middle East Market",
	"speaker"  => "Fakih Group of Companies",	
	"position" => "",
	"fileName" => "INDONESIA-PRESENTATION-MR._FAKIH-2019.pdf"
  ) 
);
function garuda_6b_8a($var) {
	global $$var;
	$table_content = table_content ($$var, $table_content = '', $var."/");
	return $table_content;
}

$garuda_7a = array(
  array (
  	"title"    => "Trade Relationship between Egypt and Indonesia",
	"speaker"  => "",	
	"position" => "",
	"fileName" => "haggag.pdf"
  ),
  array (
  	"title"    => "Trade With South Africa",
	"speaker"  => "Ebrahim Patel",	
	"position" => "",
	"fileName" => "johanessburg_afsel.pdf"
  ), 
  array (
  	"title"    => "Investment Opportunities in Nigeria",
	"speaker"  => "Executive Secretary",
	"position" => "Nigeria - Indonesia Commercial Association (NICA)",
	"fileName" => "nigeria.pdf"
  ), 
  array (
  	"title"    => "Indonesia Eximbank's Role to Support Trade and Investment Between Indonesia and Africa",
	"speaker"  => "Indonesia Eximbank",	
	"position" => "",
	"fileName" => "TEI_2019_Regional_Discussion_Africa.pdf"
  )    
);
function garuda_7a($var) {
	global $$var;
	$table_content = table_content ($$var, $table_content = '', $var."/");
	return $table_content;
}

$garuda_7b = array(
  array (
  	"title"    => "<strong>LAND ETHICS IN CACAO </strong><br>Trading and Sourcing Differently: <br>a Balinese Success Story",
	"speaker"  => "Mathieu Bours",	
	"position" => "Associé, Le Cercle du Cacao",
	"fileName" => "brussel-Présentation-TRADEXPO-Jakarta-17102019.pdf"
  ),
  array (
  	"title"    => "Bumbu Rendang & Indonesian Coffee Going World Wide: <span style='font-weight:normal'>Understanding the process for importing food product into the USA</span>",
	"speaker"  => "Dr. Asnul Bahar",	
	"position" => "Rendang & Co., LLC,",
	"fileName" => "Presentation-AsnulBahar-TEI-17-Oct.pdf"
  ),
  array (
  	"title"    => "Overview of Indonesia Eximbank <span style='font-weight:normal'>(Lembaga Pembiayaan Ekspor Indonesia / LPEI)</span>",
	"speaker"  => "Jogi Ardana",	
	"position" => "Indonesia Eximbank",
	"fileName" => "TEI-Presentation-Jogi.pdf"
  ),
  array (
  	"title"    => "Export to Russia Workshop",
	"speaker"  => "B2B Export",	
	"position" => "",
	"fileName" => "Trade-with-Russia-B2B-Export.pdf"
  )
);
function garuda_7b($var) {
	global $$var;
	$table_content = table_content ($$var, $table_content = '', $var."/");
	return $table_content;
}

$garuda_10b = array(
  array (
  	"title"    => "Doing Business in The Philippines",
	"speaker"  => "Jeremiah C. Reyes",	
	"position" => "Commercial Attaché (Atase Perdagangan) Philippine Trade and Investment Center - Jakarta Embassy of the Philippines",
	"fileName" => "191014_TEI_Presentation_JReyes.pdf"
  ),
  array (
  	"title"    => "Opportunities, Challenges and Market Breakthroughs to Export in Asia (India) Market",
	"speaker"  => "Saurabh Shah",	
	"position" => "CEO Universal Business and Corporate Services Centre",
	"fileName" => "india.pdf"
  ),
  array (
  	"title"    => "Regional Discussion 34<sup>th</sup> Trade Expo Indonesia 2019: Export to Asia",
	"speaker"  => "Raden Gerald S. Grisanto",	
	"position" => "Head of Advisory Services Division <br> Lembaga Pembiayaan Ekspor Indonesia (Indonesia Eximbank)",
	"fileName" => "TEI_34th_2019_Asia_Regional_Discussion_LPEI.pdf"
  ),
  array (
  	"title"    => "Vietnam Economic Opportunity",
	"speaker"  => "Edwin Setiawan Tjie",	
	"position" => "Vice Chairman Kadin",
	"fileName" => "Vietnam_Presentation.pdf"
  ) 
);
function garuda_10b($var) {
	global $$var;
	$table_content = table_content ($$var, $table_content = '', $var."/");
	return $table_content;
}

$kemenkum = array(
  array (
  	"title"    => "",
	"speaker"  => "",	
	"position" => "",
	"fileName" => ""
  ) 
);
function kemenkum($var) {
	global $$var;
	$table_content = table_content ($$var, $table_content = '', $var."/");
	return $table_content;
}

$array_tab = array (
  array ("id" => 1, "nmtab"	=> "TTI Seminar", 	"nmvar"	=> "tti_seminar"), 
  array ("id" => 2, "nmtab"	=> "garuda 5a",   	"nmvar"	=> "garuda_5a"),
  array ("id" => 3, "nmtab"	=> "garuda 5b",   	"nmvar"	=> "garuda_5b"),
  array ("id" => 4, "nmtab"	=> "garuda 6a",		"nmvar"	=> "garuda_6a"),
  array ("id" => 5, "nmtab"	=> "garuda 6b & 8a","nmvar"	=> "garuda_6b_8a"),
  array ("id" => 6, "nmtab"	=> "garuda 7a", 	"nmvar"	=> "garuda_7a"),
  array ("id" => 7, "nmtab"	=> "garuda 7b", 	"nmvar"	=> "garuda_7b"),
  array ("id" => 8, "nmtab"	=> "garuda 10b", 	"nmvar"	=> "garuda_10b")
 // array ("id" => 9, "nmtab"	=> "kemenkum", 		"nmvar"	=> "kemenkum")
);

echo '
<div class="col l-col12 m-col12 s-col12">
	<div class="tabsy">';
		foreach ($array_tab as $value) {
			echo '
			<input type="radio" id="tab'.$value["id"].'" name="tab" '.($value["id"] == 1 ? "checked" : "").'>
			<label style="margin:0;" class="tabButton" for="tab'.$value["id"].'">'.strtoupper($value["nmtab"]).'</label>
			<div class="tab">
				<div class="content">	
					<h2 style="padding:10px 0px 5px 0px; margin:0">'.strtoupper($value["nmtab"]).'</h2>
					'.$value["nmvar"]($value["nmvar"]).'		
				</div>
			</div>';
		}
		echo '
	</div>
</div>';
?>