		<?php
		$thisPageSql = "select * from content_link_group as a, content_group as b, content as c,  
						menus_level_0 as d, menus_level_1 as e, menus_level_2 as f 
						where level_0 = d.id and level_1 = e.id_level_1 and level_2 = f.id_level_2
						and link_to_group=b.groupNameID and link_to_content=c.idContent 
						and link_to_level_1 = '".$id_level_1." ' 
						and c.idContent <> '".$idContent."' limit 0, 4";
		//echo "<br>".$thisPageSql;
		if ($thisPageHasil = mysql_query($thisPageSql)) {
			$text_more = '';
			while ($thisPageData = mysql_fetch_array($thisPageHasil)) {				
				//echo "<br>".$thisPageSql;
				if ($text_more == '') 
					$text_more = '
					<section class="M00601 M0060104 teaserModule backgroundMedium layout-centered" data-modul="M00601">
						<div class="row 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 class="row">
							<div class="rowInner">
								<div class="col s-col12 m-col12 l-col12">
									<h2 class="h2-teaser">'.$thisPageData["groupNameLabel"].'</h2>	
									<div class="s-nested12 m-nested12 l-nested12">
										<div clas-s="teasers">';
											if (!$thisPageData["level_2"])
												$gambar = $thisPage.$thisPageData["link_lv_2"].'/images/'.$thisPageData["gambar1"];
												//$gambar = $thisPage.$link_lv_2."images/".$thisPageData["gambar1"]; 
											else 
												$gambar = $thisPage.$thisPageData["targetPage"].'/images/'.$thisPageData["gambar1"];
												//$gambar = $thisPage.$targetPage."/images/".$thisPageData["gambar1"]; 
												//echo "<br> Gambar : ".$gambar;
												//echo "<br> link_lv_2 : ".$thisPageData["link_lv_2"];
												//echo "<br> targetPage : ".$thisPageData["targetPage"];
											
											$text_more .= '
											<div class="col l-col3 m-col6 s-col12">				            		
												<article class="teaser-item">
													<a href="'.$thisPage.$thisPageData["targetPage"].'" title="'.$thisPageData["pageTitle"].'">				              					
														<div class="teaserImageBlock">
															<img class="teaserImage" src="'.$gambar.'" alt="" title="" />
														</div>					                			
														<div class="teaserTextBlock">
															<div class="teaserCategory">'.$thisPageData["title"].'</div>
															<h3>'.$thisPageData["pageTitle"].'</h3>
														</div>
													</a>
												</article>
											</div>
											';
			}
			if ($text_more != '') { 
				$text_more .= '			</div>
									</div>
								</div>
							</div>
						</div>
					</section>';
				echo $text_more;	
			}
		
		}
        ?>
