	<?php
	$array_tab = array (
		1 => "Bahasa Indonesia", 
		2 => "English"
	);
	echo '
	<div class="col l-col12 m-col12 s-col12">
		<h3 class="h3-teaser">TEI 2018 e-Journal</h3>
	</div>
	<div class="col l-col12 m-col12 s-col12">
		<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_);
				
				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>
						'.$function_($table).'
					</div>
				</div>';	
			}
			echo '
		</div>
	</div>';

	function bahasa_indonesia (&$table) {
		global $thisPage;
		$table = '
		<div style="overflow-x:auto;">
			<table class="custom" width="100%">
				<thead>
					<tr height="43">
						<th width="10%" style="text-align:center"><strong>NO</strong></th>
						<th width="55%" style="text-align:left"><strong>KETERANGAN</strong></th>
						<th width="35%" style="text-align:center"><strong>LINKS</strong></th>
					</tr>
				</thead>
				<tbody>
					<tr height="40">
						<td style="text-align:center">1.</td>
						<td>Jurnal TEI Edisi No. 1, 24 Oktober 2018 </td>
						<td style="text-align:center">
							<a href="'.$thisPage.'jurnal/indonesia/1/jurnal_hari_1_tei2018.pdf" target="_blank">
								<strong>Baca Selengkapnya</strong>
							</a>
						</td>
					</tr>
					<tr height="40">
						<td style="text-align:center">2.</td>
						<td>Jurnal TEI Edisi No. 2, 25 Oktober 2018</td>
						<td style="text-align:center">
							<a href="'.$thisPage.'jurnal/indonesia/2/jurnal_hari_2_tei2018.pdf" target="_blank">
								<strong>Baca Selengkapnya</strong>
							</a>
						</td>
					</tr>
					<tr height="40">
						<td style="text-align:center">3.</td>
						<td>Jurnal TEI Edisi No. 3, 26 Oktober 2018</td>
						<td style="text-align:center">
							<a href="'.$thisPage.'jurnal/indonesia/3/jurnal_hari_3_tei2018.pdf" target="_blank">
								<strong>Baca Selengkapnya</strong>
							</a>
						</td>
					</tr>
					<tr height="40">
						<td style="text-align:center">4.</td>
						<td>Jurnal TEI Edisi No. 4, 27 Oktober 2018</td>
						<td style="text-align:center">
							<a href="'.$thisPage.'jurnal/indonesia/4/jurnal_hari_4_tei2018.pdf" target="_blank">
								<strong>Baca Selengkapnya</strong>
							</a>
						</td>
					</tr>
					<tr height="40">
						<td style="text-align:center">5.</td>
						<td>Jurnal TEI Edisi No. 5, 28 Oktober 2018</td>
						<td style="text-align:center">
							<a href="'.$thisPage.'jurnal/indonesia/5/jurnal_hari_5_tei2018.pdf" target="_blank">
								<strong>Baca Selengkapnya</strong>
							</a>
						</td>
					</tr>
				</tbody>
			</table>
		</div>';
		return $table;
	}
	function english (&$table) {
		global $thisPage;
		$table = '
		<div style="overflow-x:auto;">
			<table class="custom" width="100%">
				<thead>
					<tr height="43">
						<th width="10%" style="text-align:center"><strong>NO</strong></th>
						<th width="55%" style="text-align:left"><strong>KETERANGAN</strong></th>
						<th width="35%" style="text-align:center"><strong>LINKS</strong></th>
					</tr>
				</thead>
				<tbody>
					<tr height="40">
						<td style="text-align:center">1.</td>
						<td>1<sup>st</sup> Edition Journal, 24<sup>th</sup> October 2018</td>
						<td style="text-align:center">
							<a href="'.$thisPage.'jurnal/english/1/1stEdition_journal_tei2018.pdf" target="_blank">
								<strong>Read the journal</strong>
							</a>
						</td>
					</tr>
					<tr height="40">
						<td style="text-align:center">2.</td>
						<td>2<sup>nd</sup> Edition Journal, 25<sup>th</sup> October 2018</td>
						<td style="text-align:center">
							<a href="'.$thisPage.'jurnal/english/2/2ndEdition_journal_tei2018.pdf" target="_blank">
								<strong>Read the journal</strong>
							</a>
						</td>
					</tr>
					<tr height="40">
						<td style="text-align:center">3.</td>
						<td>3<sup>rd</sup> Edition Journal, 26<sup>th</sup> October 2018</td>
						<td style="text-align:center">
							<a href="'.$thisPage.'jurnal/english/3/3rdEdition_journal_tei2018.pdf" target="_blank">
								<strong>Read the journal</strong>
							</a>
						</td>
					</tr>
					<tr height="40">
						<td style="text-align:center">4.</td>
						<td>4<sup>th</sup> Edition Journal, 27<sup>th</sup> October 2018</td>
						<td style="text-align:center">
							<a href="'.$thisPage.'jurnal/english/4/4thEdition_journal_tei2018.pdf" target="_blank">
								<strong>Read the journal</strong>
							</a>
						</td>
					</tr>
					<tr height="40">
						<td style="text-align:center">5.</td>
						<td>5<sup>th</sup> Edition Journal, 28<sup>th</sup> October 2018</td>
						<td style="text-align:center">
							<a href="'.$thisPage.'jurnal/english/5/5thEdition_journal_tei2018.pdf" target="_blank">
								<strong>Read the journal</strong>
							</a>
						</td>
					</tr>
				</tbody>
			</table>
		</div>';
		return $table;
	}
	?>


