	<style>
		p {
			margin:0;
			margin-bottom:12px;
		}
	</style>
	<?php
    //echo "<br>Sql Single : ".$sql;
	//echo "<br> Cur Page : ".$curPage;
	//echo "<br> sql : ".$sql;
	
	$max = mysql_num_rows(mysql_query($sql));
	if ($max > 0) {
		if ($hasil = mysql_query($sql)) {
			while ($data = mysql_fetch_array($hasil)) {
				if ($data["title"]) {
					echo '
					<section class="layout-centered" data-modul="M00613" style="padding-bottom:0; margin-bottom:0" >';
						if ($data["gambar1"]) {
							if ($data["gambar1_text"]) {
								$mobile_img  = $thisPage.$curPage.'images/'.$data["gambar1_text"];
							} else {
								$mobile_img  = $thisPage.$curPage.'images/'.$data["gambar1"];
							}							
							$desktop_img = $thisPage.$curPage.'images/'.$data["gambar1"];
							$retina_img  = $thisPage.$curPage.'images/'.$data["gambar1"];
							//echo $mobile_img;
							echo '
							<div class="main-Images s8" style="padding-top:0; margin-top:0">
								<img src="'.$thisPage.'images/spacer-bg.png" data-srcset="'.$mobile_img.' 720w, '.$mobile_img.' 720w 2x, '.$desktop_img.' 1000w, '.$retina_img.' 1000w 2x, '.$retina_img.'" />
							</div>';
							//<img src="images/'.$data["gambar1"].'" border="0">
						}
						echo '
						<div class="rowInner spacerRow" style="padding-bottom:0; margin-bottom:0;">
							<div class="rowInner" style="padding-bottom:0; margin-bottom:0">
								<div class="col l-col12 m-col12 s-col12" style="padding-bottom:0; margin-bottom:0">
									<div class="teasers">
										<div class="col l-col11 m-col12 s-col12" style="padding-bottom:0;margin-bottom:0;">
											<div class="col l-col12 m-col12 s-col12" style="padding-bottom:0; margin-bottom:0;">
												<div class="teasers">
													<div style="height:38px">&nbsp;</div>
													<div class="col l-col12 m-col12 s-col12" style="padding-top:0; margin-top:0">
														<div class="col l-col12 m-col12 s-col12" style="padding-top:0; margin-top:0">
															<article class="main-content module-container" style="text-align:left;">
																<div>
																	<span class="page-intro-topline">
																		'.$data["title"].'
																	</span>';
																	if ($data["pageTitle"])	
																		echo '<h1>'.$data["pageTitle"].'</h1>';
																	echo '	
																</div>
															</article>
														</div>
														<div class="col l-col12 m-col12 s-col12">
															<hr class="style13" />
														</div>
													</div>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
												
						<div class="rowInner spacerRow" style="padding-bottom:0; margin-bottom:0">
							<div class="rowInner" style="padding-bottom:0; margin-bottom:0">
								<div class="col l-col12 m-col12 s-col12" style="padding-bottom:0; margin-bottom:0">
									<div class="teasers">
										<div class="col l-col11 m-col12 s-col12" style="padding-bottom:0;margin-bottom:0;">
											<div class="col l-col12 m-col12 s-col12" style="padding-bottom:0; margin-bottom:0;">
												<div class="teasers">
													<div style="height:38px">&nbsp;</div>
													
													<div class="col l-col12 m-col12 s-col12" style="padding-top:0; margin-top:0">';
														$exclude_list = array('45','11','12','88');
														$colFull = (in_array($data["menusID"], $exclude_list) ? 'col l-col12 m-col12 s-col12' : 'col l-col8 m-col8 s-col12');
														echo '
														<div class="'.$colFull.'" style="padding-top:0; margin-top:0">
															<article class="main-content module-container" style="text-align:left;">
																<div>';
																	if ($data["subPageTitle"]) {	
																		echo '
																		<h2 style="margin:0px 0px 5px 0px;" class="h4-teaser">
																			'.$data["subPageTitle"].'
																		</h2>';
																	}
																	if ($data["short_description"])	{
																		echo '
																		<p class="introcopy page-intro-introcopy">
																			'.$data["short_description"].'
																		</p>';
																	}
																	if ($data["foreword"]) {
																		echo '
																		<p style="line-height:normal">
																			'.$data["foreword"].'
																		</p>';
																	}
																	if ($data["long_description"]) {
																		echo  '
																		<p style="line-height:normal">
																			'.$data["long_description"].'
																		</p>';
																	}
																	$sql5 = 
																	" select * from content_trans, content_type ".
																	" where contentTrans_to_contentID = ".$data["idContent"].
																	" and contentTransType = typeID order by contentTransORDER ";
																	if ($hasil5 = mysql_query($sql5)){
																		while ($data5 = mysql_fetch_array($hasil5)) {
																			$contentTransID = $data5["contentTransID"];
																			$menusLink = $data["menusLink"];
																			$tmp = $thisUrl."functions/show_".$data5["typeName"].".php";
																			include ($tmp);
																			//echo $tmp;
																		}
																	}
																	
																	if ($data["sumber"]) {
																		echo '
																		<p style="color:#999999">
																			<br>
																			Source: <br>'.$data["sumber"].'
																		</p>';
																	}
																	
																	if ($data["file_execute"]) {
																		if ($data["file_execute"] == "signup.php") {
																			include($thisUrl.$data["file_execute"]);
																		} else {
																			include($data["file_execute"]);
																			
																		}	
																		//echo "file_execute: ".$data["file_execute"];																
																	}																	
																	echo '
																</div>
															</article>';
															$download_text = '';
															$sql2 = 
															" select * from content_download ".
															" where to_content_id = '".$data["idContent"]."'";
															if ($hasil2 = mysql_query($sql2)) {
																if (mysql_num_rows($hasil2)) {
																	$download_text = '
																	<div style="margin-top:38px"></div>
																	<section class="layout-centered" data-modul="M00613">
																		<hr class="style15" />
																		<article class="main-content module-container" style="margin:0; padding:0">
																			<h2 class="h1-teaser" style="margin:0; padding:10px 0px">Downloads & Links</h2>
																		</article>';
																		while ($data2 = mysql_fetch_array($hasil2)) {
																			if ($data2["downloadType"] == "PDF") {
																				$downloadLink = $thisPage.$data["menusLink"].'pdf/'.$data2["downloadFile"];
																			} else if ($data2["downloadType"] == "ZIP" ) {
																				$downloadLink = $thisPage.$data["menusLink"].'download/'.$data2["downloadFile"];
																			} else {
																				$downloadLink = $data2["downloadFile"];
																			}
																			$download_text .= '
																			<div class="col l-col6 m-col12 s-col12" style="margin:0; padding:15px 0 25px 0">
																				<article class="teaser M00607 M0060701" style="width:100%; margin:0; padding:0">
																					<a href="'.$downloadLink.'" target="_blank" />
																						<div style="height:40px; display:table; width:100%">
																							<div class="iconListTeaserBlockLeft">
																								<div class="iconListTeaserIcon iconListTeaserIconGrey">v</div>
																							</div>
																							<div style="display:table-cell; vertical-align:middle; padding-left:45px;">
																								<h3 class="teaserHeadline iconListTeaserText">
																									'.$data2["downloadContentName"].'
																								</h3>';
																								if ($data2["downloadIMG"]) {
																									$download_text .= '
																									<img style="width:50%" src="'.$thisPage.$data["menusLink"].'images/'.$data2["downloadIMG"].'" border="0" />';	
																								}
																								$download_text .= '
																								<div class="teaserCopytext iconListTeaserText">
																									('.$data2["downloadType"].', '.$data2["downloadFile"].')
																								</div>';
																								$download_text .= '
																							</div>
																						</div>
																					</a>	
																					<div class="hide-for-medium-up" style="height:10px">
																						<br /><hr class="style14" />
																					</div>
																				</article>					
																			</div>';
																		}
																	$download_text .= '
																	</section>';
																}
															}
															echo $download_text;
															echo '
														</div>';
														
														if (!in_array($data["menusID"], $exclude_list)) {
															echo '	
															<div class="col l-col4 m-col4 s-col12" style="padding-top:0; margin-top:0">
																<div class="rowInner hide-for-medium-up" style="height:25px"></div>';
																include ($thisUrl."functions/directed_to.php");
																echo '
															</div>';
														}
														echo '
													</div>
												</div>
											</div>';
											echo '
										</div>
									</div>
								</div>
							</div>
						</div>
					</section>';
				}
			}
		}
	} else {
		echo '
		<section class="layout-centered" data-modul="M00613" style="padding-bottom:0; margin-bottom:0" >
			<div class="rowInner spacerRow" style="padding-bottom:0; margin-bottom:0">
				<div class="rowInner" style="padding-bottom:0; margin-bottom:0">
					<div class="col l-col12 m-col12 s-col12" style="padding-bottom:0; margin-bottom:0">
						<div class="teasers">
							<div class="col l-col12 m-col12 s-col12" style="padding-bottom:0; margin-bottom:0">
								<div class="col l-col12 m-col12 s-col12" style="padding-bottom:0; margin-bottom:0;">
									<div class="col l-col12 m-col12 s-col12" style="padding-bottom:0; margin-bottom:0;">
										<div class="rowInner spacerRow">
											<div class="rowInner">
												<div class="col l-col12 m-col12 s-col12"><img class="spacerRowImage" src="'.$thisPage.'images/spacer-bg.png" alt="" title=""></div>
											</div>
										</div>
									</div>
								</div>
								<div class="rowInner hide-for-small" style="height:50px"></div>
								<div class="rowInner hide-for-medium-up" style="height:25px"></div>
								<div class="rowInner" style="padding-bottom:0; margin-bottom:0">
									<div class="col l-col12 m-col12 s-col12" style="padding-bottom:0; margin-bottom:0">
										<div class="teasers">
											<div class="col l-col12 m-col12 s-col12" style="padding-bottom:0; margin-bottom:0">
												<article class="main-content module-container">
													<h3>We are uploading .. </h3>
													<p>
														We are uploading our website. <br>
														Please check back later.
													</p>
												</article>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</section>';
	}
    ?>
