Monkey Albino

Linux altar53.supremepanel53.com 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
/ home/ bdapparelinfo/ krugertexbd.com/

/home/bdapparelinfo/krugertexbd.com/product.php


	<?php include 'header.php';?> 
    
<div id="content" class="site-content"><div class="container"><div class="inner-wrapper">    

	<div id="" class="content-area">
		<main id="main" class="site-main" role="main">

			
				
<article id="post-4" class="post-4 page type-page status-publish hentry"> 
 
	<header class="entry-header">
		<h1 class="entry-title"><?=$Pages;?></h1>	
	</header><!-- .entry-header -->

<hr>

   					   <?php  
					$SQL_pro_img = mysql_fetch_array(mysql_query("select * from pages_content where content_pages_name='$Pages' and post_position='Product Image' ORDER BY `Id` ASC"));
					$SQL_pro_video = mysql_fetch_array(mysql_query("select * from pages_content where content_pages_name='$Pages' and post_position='Product Video' ORDER BY `Id` ASC"));
					$SQL_pro_catelog = mysql_fetch_array(mysql_query("select * from pages_content where content_pages_name='$Pages' and post_position='Product Catelog' ORDER BY `Id` ASC"));
					$SQL = "select * from pages_content where content_pages_name='$Pages' and post_position='Body' ORDER BY `Id` ASC";
					$proVideo_arry = explode('=',$SQL_pro_video['title']);
					$proVideo = end($proVideo_arry);
						?>

	<header class="entry-header"> </header><!-- .entry-header -->

	<div class="entry-content">
		<div class="recent-events">
			<img src="media/<?=$SQL_pro_img['image'];?>" style="padding-right:2px; max-width:500px; margin-bottom:50px; float:left;" alt=""/>
			<?php
				if(empty($proVideo)){ }else{
			?> 
			<iframe width="600" height="337" wmode="transparent" src="https://www.youtube.com/embed/<?=$proVideo;?>" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
			<?php }?>
		</div>
    		<div id="" class="recent-news">
				 
				 <!-- Tab links -->
<div class="tab">
   					   <?php  			$tabID = 1;		
					$query = mysql_query($SQL);	 	
					while ($result = mysql_fetch_array($query))
					{	
						?>
  <button class="tablinks" onclick="openCity(event, 'tab<?=$tabID++;?>')" id="defaultOpen"><?php echo $result['title'];?></button> 
		<?php
			}
		?>
  <button class="tablinks" onclick="openCity(event, 'tab_catalog')" id="defaultOpen">Download Catalog</button> 
</div>

   					   <?php  			$tabCID = 1;	 				 	 
					$query2 = mysql_query($SQL);
					while ($result2 = mysql_fetch_array($query2))
					{	
						?>
<div id="tab<?=$tabCID++;?>" class="tabcontent">
	<span onclick="this.parentElement.style.display='none'" class="topright">&times</span> 
	<div class="siteorigin-widget-tinymce textwidget">  
			<?php
				if(preg_match('/(\.jpg|\.png|\.gif|\.bmp)$/i',$result2['image'])){
			?>
			<img src="media/<?=$result2['image'];?>" style="padding:0 10px 10px 0; max-width:100%;" alt=""/>
				<?php  }else{ } ?>
		<?=$result2['description'];?>
	</div>
</div> 
<?php }?>
<div id="tab_catalog" class="tabcontent">
	<span onclick="this.parentElement.style.display='none'" class="topright">&times</span> 
	<div class="siteorigin-widget-tinymce textwidget">  
		<?php 
				if(!empty($SQL_pro_catelog)){ echo '<a href="media/'.$SQL_pro_catelog['image'].'" target="_blank"><img src="images/download_catalog.png"></a>'; }else{}
		?>
	</div>
</div> 
 <!-- Tab links --> 
 

			</div>			
	</div><!-- .entry-content -->
	 
</article><!-- #post-## -->

				
			
		</main><!-- #main -->
	</div><!-- #primary -->

 

</div><!-- .inner-wrapper --></div><!-- .container --></div><!-- #content -->
<script>
function openCity(evt, cityName) {
    var i, tabcontent, tablinks;
    tabcontent = document.getElementsByClassName("tabcontent");
    for (i = 0; i < tabcontent.length; i++) {
        tabcontent[i].style.display = "none";
    }
    tablinks = document.getElementsByClassName("tablinks");
    for (i = 0; i < tablinks.length; i++) {
        tablinks[i].className = tablinks[i].className.replace(" active", "");
    }
    document.getElementById(cityName).style.display = "block";
    evt.currentTarget.className += " active";
}

// Get the element with id="defaultOpen" and click on it
document.getElementById("defaultOpen").click();
</script>

  
    <?php include 'footer.php';?>