MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.131.13.196
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0750) :  /home2/ppcad7no/biocareaqua.org/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/biocareaqua.org/site-header.php
<?php 
ob_start();
require_once("includes/dbsmain.inc.php");
$page_name=basename($_SERVER['PHP_SELF'],'.php');
include("site-main-query.php");
if($compDATA['admin_site_down']=='Yes'){
 header("location:site-down.php");
 exit;
}
$site_url=$compDATA['admin_website_url'];
$author = str_replace("http://","","$site_url");

$prdct_name=$_REQUEST['cat_name'];
$catgoryID=db_scalar("select category_id from tbl_category where 1 and category_url='$prdct_name'");
//************ To Fetch Page Heading ****************//
$pgHeading=db_scalar("select site_pages_name from tbl_site_pages where 1 and site_pages_status='Active' and site_pages_link='$page_name'");
?>
<?php
  function query($pid){
    $query = mysqli_query("select * from tbl_category where 1 and category_parent_id='$pid' and category_status='Active' order by category_order_by asc");
	return $query;
  }  
  function has_child($query){
    $numRows = mysqli_num_rows($query);
	if($numRows > 0){
	return true;
	}else{
	return false;
	}
  }
?>
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<?php if($compDATA['admin_index_follow']=='Yes'){ ?>
<meta name="robots" content="index, follow" />
<? }else{ ?>
<meta name="robots" content="noindex, nofollow" />
<? } ?>
<?php if(!empty($catgoryID)){?>
<title><?=db_scalar("select category_meta_title from  tbl_category where category_status='Active' and category_id='$catgoryID'")?></title>
<META NAME="description" content="<?=db_scalar("select category_meta_description from  tbl_category where category_status='Active' and category_id='$catgoryID'")?>" />
<META NAME="keywords" content="<?=db_scalar("select category_meta_keywords from  tbl_category where category_status='Active' and category_id='$catgoryID'")?>" />
<? }else{?>


<?
$title=db_scalar("select site_pages_meta_title from  tbl_site_pages where site_pages_status='Active' and site_pages_link='$page_name'");
$des=db_scalar("select site_pages_meta_description from  tbl_site_pages where site_pages_status='Active' and site_pages_link='$page_name'");
$key=db_scalar("select site_pages_meta_keyword from  tbl_site_pages where site_pages_status='Active' and site_pages_link='$page_name'");

if($title=="")
{?>
    <title><?=$compDATA['admin_company_name']?></title>
   <? 
}

else
{?>
<title><?=$title?></title>

<?}?>

<?
if($des=="")
{?>
<META NAME="description" content="<?=$compDATA['admin_company_name']?>" />
<? }
else
{
?>
<META NAME="description" content="<?=$des?>" />
<? } ?>

<?
if($key=="")
{?>

<META NAME="keywords" content="<?=$compDATA['admin_company_name']?>" />

<? }
else
{
?>
<META NAME="keywords" content="<?=$key?>" />


<?}?>




<? }?>
<meta name="revisit-after" content="3 days"/>
<meta name="copyright" content="<?=$compDATA['admin_company_name']?>"/>
<meta name="distribution" content="global"/>
<meta name="language" content="english">
<meta name="author" content="<?=$author?>">
<?php if($compDATA['admin_meta_fb_id']!=''){ ?>
<meta property="fb:page_id" content="<?=$compDATA['admin_meta_fb_id']?>" />
<? } ?>
<?php if($compDATA['admin_meta_alexa_id']!=''){ ?>
<meta name="alexaVerifyID" content="<?=$compDATA['admin_meta_alexa_id']?>"/>
<? } ?>
<?php if($compDATA['admin_meta_msvalidate_id']!=''){ ?>
<meta name="msvalidate.01" content="<?=$compDATA['admin_meta_msvalidate_id']?>" />
<? } ?>
<?php if($compDATA['admin_site_verification_code']!=''){ ?>
<meta name="google-site-verification" content="<?=$compDATA['admin_site_verification_code']?>" />
<? } ?>
<link href='https://fonts.googleapis.com/css?family=Roboto:100,200,300,500,700,900' rel='stylesheet' type='text/css'>
<link href='<?=$site_url?>/css/font-awesome.min.css' rel='stylesheet' type='text/css'>
<link href="<?=$site_url?>/css/bootstrap.min.css" rel="stylesheet" type='text/css'>
<link href="<?=$site_url?>/css/material.min.css" rel="stylesheet" type='text/css'>
<link href="<?=$site_url?>/css/owl.carousel.css" rel="stylesheet" type='text/css'>
<link href="<?=$site_url?>/css/magnific-popup.css" rel="stylesheet" type='text/css'>
<link href="<?=$site_url?>/css/animate.min.css" rel="stylesheet" type='text/css'>
<link href="<?=$site_url?>/stylec4ca.css?1" rel="stylesheet" type='text/css'>
<link href="<?=$site_url?>/css/responsive-stylec4ca.css?1" rel="stylesheet" type='text/css'>
<link href="<?=$site_url?>/css/button-color-4.css" rel="stylesheet" type='text/css' id="buttonColorScheme">
<link href="<?=$site_url?>/css/main-color-4.css" rel="stylesheet" type='text/css' id="mainColorScheme">
<!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script><![endif]-->

<!-------------FlexiSlider--------------->
<link rel="stylesheet" href="<?=$site_url?>/flexislider/demo.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?=$site_url?>/flexislider/flexslider.css" type="text/css" media="screen" />
<!-------------FlexiSlider--------------->
<?php if($compDATA['admin_google_analytic_code']!=''){
 echo $compDATA['admin_google_analytic_code'];
}
?>
<?php
$sql_logo_welcome=db_query("select * from tbl_header where 1");
 if(mysqli_num_rows($sql_logo_welcome)>0){
  $DATALOGO=mysqli_fetch_array($sql_logo_welcome);
   @extract($DATALOGO);
}
?>
</head>
<body id="home" data-spy="scroll" data-target="#topNavbar" data-offset="80">
<!--[if lt IE 8]><p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p><![endif]-->
<!--<div id="preloader">-->
<!--  <div class="preloader-logo"><img src="<?=$site_url?>/header_files/<?=$DATALOGO['header_logo']?>" alt="<?=$compDATA['admin_company_name']?>" title="<?=$compDATA['admin_company_name']?>" /></div>-->
<!--  <div class="mdl-progress mdl-progress__indeterminate">-->
<!--    <div class="progressbar bar bar1" style="width: 0%;"></div>-->
<!--    <div class="bufferbar bar bar2" style="width: 0%;"></div>-->
<!--    <div class="auxbar bar bar3" style="width: 0%;"></div>-->
<!--  </div>-->
<!--</div>-->
<div id="primaryNavbar">
  <div class="container">
    <ul class="primary-menu-links nav navbar-nav hidden-xs">
      <!--<li class="hidden-xs"><span>Welcome to matroz html template</span></li>-->
      <li><span class="phone"><i class="fa fa-phone"></i> <?=$compDATA['admin_mobile']?></span></li>
      <li><span class="email"><i class="fa fa-envelope"></i> <a class="__cf_email__" style="color:#fff;"><?=$compDATA['admin_email']?></a></span></li>
    </ul>
   <?php if($compDATA['admin_search_option']=='Yes'){ ?>
    <?php include("site-search.php");?>
    <? } ?>
  </div>
</div>

<nav id="topNav">
  <div class="navbar">
    <div class="container">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#topNavbar"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
        <a class="navbar-brand" href="<?=$site_url?>/index.html">
           <? if($DATALOGO['header_logo_image_alt_title']=="")
{
?>
<img src="<?=$site_url?>/header_files/<?=$DATALOGO['header_logo']?>" alt="<?=$compDATA['admin_company_name']?> - Logo" style="width: 250px;" title="<?=$compDATA['admin_company_name']?> - Logo" />

<? }
else
{?>

<img src="<?=$site_url?>/header_files/<?=$DATALOGO['header_logo']?>" alt="<?=$DATALOGO['header_logo_image_alt_title']?>" title="<?=$DATALOGO['header_logo_image_alt_title']?>" />
<?}?>
            
            
            </a> </div>
        <?php
$shwInHdr = db_scalar("select site_pages_show_in_header from tbl_site_pages where 1 and site_pages_link='$page_name'");
$link_sql=db_query("select * from tbl_site_pages where 1 and site_pages_status='Active' and site_pages_show_in_header='Yes' order by site_pages_order_by asc limit 0,6");
	  if(mysqli_num_rows($link_sql)>0){
?>
      <div id="topNavbar" class="navbar-collapse collapse navbar-right">
        <ul class="nav navbar-nav">
        <?php 
	  while($link_data=mysqli_fetch_array($link_sql)){
$pgName=$link_data['site_pages_link'];
?>
<?php if($pgName=='index'){ ?>
<li <?php if($page_name==$link_data['site_pages_link']){?> class="active"<?php }?>><a href="<?=$site_url?>/<?=$link_data['site_pages_link']?>.html" >
<?=$link_data['site_pages_name']?></a>
</li>
<?php }
//////////////////////////////////
elseif($pgName=='products' && $compDATA['admin_product_option']=='Yes')
{
	?>
<li class="dropdown active">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<?=$link_data['site_pages_name']?>
<b class="caret"></b></a>
								<ul  class="dropdown-menu">
<?php
$sql_cat=db_query("select * from tbl_category where 1 and category_status='Active' and category_is_product='Yes' and category_parent_id=0 order by category_order_by");
if(mysqli_num_rows($sql_cat)>0){
while($CAT_DATA=mysqli_fetch_array($sql_cat)){
@extract($CAT_DATA);
?>             
<li class="dropdown-submenu"><a href="<?=$site_url?>/<?=$CAT_DATA['category_url']?>.html" class="dropdown-submenu-toggle" data-toggle="dropdown-submenu"><?=$category_name?></a>


<?php
///////////////////////////////////////////////  SECOND LEVEL /////////////////////////////////////////
$sql_cat_level2=db_query("select * from tbl_category where 1 and category_status='Active' and category_is_product='Yes' and category_parent_id=$CAT_DATA[category_id] order by category_order_by");
if(mysqli_num_rows($sql_cat_level2)>0){
?>
<ul  class="dropdown-menu" style="position:absolute; left:100px;">
<?php
while($CAT_LEVEL2_DATA=mysqli_fetch_array($sql_cat_level2)){
?>             
<li class="dropdown-submenu"><a href="<?=$site_url?>/<?=$CAT_LEVEL2_DATA['category_url']?>.html"><?=$CAT_LEVEL2_DATA['category_name']?></a>


<?php
///////////////////////////////////////////////  THIRD LEVEL /////////////////////////////////////////
$sql_cat_level3=db_query("select * from tbl_category where 1 and category_status='Active' and category_is_product='Yes' and category_parent_id=$CAT_LEVEL2_DATA[category_id] order by category_order_by");
if(mysqli_num_rows($sql_cat_level3)>0){
?>
<ul id="third-level"  class="dropdown-menu" style="position:absolute; left:150px;">
<?php
while($CAT_LEVEL3_DATA=mysqli_fetch_array($sql_cat_level3)){
?>  
<li><a href="<?=$site_url?>/<?=$CAT_LEVEL3_DATA['category_url']?>.html"><?=$CAT_LEVEL3_DATA['category_name']?></a></li>
<?php
}
?>

<li class="dropdown-submenu"><a href="<?=$site_url?>/<?=$CAT_LEVEL2_DATA['category_url']?>.html" class="view-all-link" >View All</a></li>                           
</ul>
<?php
///////////////////////////////////////////////  THIRD LEVEL END  /////////////////////////////////////////
}
?>





</li>
<?php
}
?>

<li class="dropdown-submenu"><a href="<?=$site_url?>/<?=$CAT_DATA['category_url']?>.html" class="view-all-link" >View All</a></li>                           
</ul>
<?php
///////////////////////////////////////////////  SECOND LEVEL END  /////////////////////////////////////////
}
?>


</li>
<?php
}
}
?>      

<li class="dropdown-submenu"><a href="<?=$site_url?>/products.html" class="view-all-link" >View All</a></li>                     
									
								</ul>
							</li>



<?	}
elseif($pgName=='services' && $compDATA['admin_product_option']=='No') 
{ 
?>
<li class="dropdown active">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<?=$link_data['site_pages_name']?>
<b class="caret"></b></a>
								<ul  class="dropdown-menu">
<?php
$sql_cat=db_query("select * from tbl_category where 1 and category_status='Active' and category_is_product='No' and category_parent_id=0 order by category_order_by");
if(mysqli_num_rows($sql_cat)>0){
while($CAT_DATA=mysqli_fetch_array($sql_cat)){
@extract($CAT_DATA);
?>             
<li class="dropdown-submenu"><a href="<?=$site_url?>/<?=$CAT_DATA['category_url']?>.html" class="dropdown-submenu-toggle" data-toggle="dropdown-submenu"><?=$category_name?></a>


<?php
///////////////////////////////////////////////  SECOND LEVEL /////////////////////////////////////////
$sql_cat_level2=db_query("select * from tbl_category where 1 and category_status='Active' and category_is_product='No' and category_parent_id=$CAT_DATA[category_id] order by category_order_by");
if(mysqli_num_rows($sql_cat_level2)>0){
?>
<ul  class="dropdown-menu" style="position:absolute; left:100px">
<?php
while($CAT_LEVEL2_DATA=mysqli_fetch_array($sql_cat_level2)){
?>             
<li class="dropdown-submenu"><a href="<?=$site_url?>/<?=$CAT_LEVEL2_DATA['category_url']?>.html"><?=$CAT_LEVEL2_DATA['category_name']?></a>


<?php
///////////////////////////////////////////////  THIRD LEVEL /////////////////////////////////////////
$sql_cat_level3=db_query("select * from tbl_category where 1 and category_status='Active' and category_is_product='No' and category_parent_id=$CAT_LEVEL2_DATA[category_id] order by category_order_by");
if(mysqli_num_rows($sql_cat_level3)>0){
?>
<ul id="third-level"  class="dropdown-menu" style="position:absolute; left:150px;">
<?php
while($CAT_LEVEL3_DATA=mysqli_fetch_array($sql_cat_level3)){
?>  
<li><a href="<?=$site_url?>/<?=$CAT_LEVEL3_DATA['category_url']?>.html"><?=$CAT_LEVEL3_DATA['category_name']?></a></li>
<?php
}
?>

<li class="dropdown-submenu"><a href="<?=$site_url?>/<?=$CAT_LEVEL2_DATA['category_url']?>.html" class="view-all-link" >View All</a></li>        
</ul>
<?php
///////////////////////////////////////////////  THIRD LEVEL END  /////////////////////////////////////////
}
?>





</li>
<?php
}
?>

<li class="dropdown-submenu"><a href="<?=$site_url?>/<?=$CAT_DATA['category_url']?>.html" class="view-all-link" >View All</a></li>                           
</ul>
<?php
///////////////////////////////////////////////  SECOND LEVEL END  /////////////////////////////////////////
}
?>


</li>
<?php
}
}
?>      

<li class="dropdown-submenu"><a href="<?=$site_url?>/services.html" class="view-all-link" >View All</a></li>                         
									
								</ul>
							</li>
<?php 
}
elseif($pgName=='products' || $pgName=='services' && $compDATA['admin_product_option']=='Both') 
{
if($pgName=='products' && $compDATA['admin_product_option']=='Both')	
{
    $sql_cat_check1=db_query("select * from tbl_category where 1 and category_status='Active' and category_is_product='Yes' and category_parent_id=0 order by category_order_by");
if(mysqli_num_rows($sql_cat_check1)>0){
    
?>


<li  <?php if($page_name=="products"){?>class="dropdown active"<?php }?>>
<a href="#" class="dropdown-toggle" data-toggle="dropdown">

<?=$link_data['site_pages_name']?><b class="caret"></b></a>
<ul  class="dropdown-menu">
<?php
$sql_cat=db_query("select * from tbl_category where 1 and category_status='Active' and category_is_product='Yes' and category_parent_id=0 order by category_order_by");
if(mysqli_num_rows($sql_cat)>0){
while($CAT_DATA=mysqli_fetch_array($sql_cat)){
@extract($CAT_DATA);
?>             
<li class="dropdown-submenu"><a href="<?=$site_url?>/<?=$CAT_DATA['category_url']?>.html" class="dropdown-submenu-toggle" data-toggle="dropdown-submenu"><?=$category_name?></a>


<?php
///////////////////////////////////////////////  SECOND LEVEL /////////////////////////////////////////
$sql_cat_level2=db_query("select * from tbl_category where 1 and category_status='Active' and category_is_product='Yes' and category_parent_id=$CAT_DATA[category_id] order by category_order_by");
if(mysqli_num_rows($sql_cat_level2)>0){
?>
<ul  class="dropdown-menu" style="position:absolute; left:100px;">
<?php
while($CAT_LEVEL2_DATA=mysqli_fetch_array($sql_cat_level2)){
?>             
<li class="dropdown-submenu"><a href="<?=$site_url?>/<?=$CAT_LEVEL2_DATA['category_url']?>.html"><?=$CAT_LEVEL2_DATA['category_name']?></a>


<?php
///////////////////////////////////////////////  THIRD LEVEL /////////////////////////////////////////
$sql_cat_level3=db_query("select * from tbl_category where 1 and category_status='Active' and category_is_product='Yes' and category_parent_id=$CAT_LEVEL2_DATA[category_id] order by category_order_by");
if(mysqli_num_rows($sql_cat_level3)>0){
?>
<ul id="third-level"  class="dropdown-menu" style="position:absolute; left:150px;">
<?php
while($CAT_LEVEL3_DATA=mysqli_fetch_array($sql_cat_level3)){
?>  
<li><a href="<?=$site_url?>/<?=$CAT_LEVEL3_DATA['category_url']?>.html"><?=$CAT_LEVEL3_DATA['category_name']?></a></li>
<?php
}
?>

<li class="dropdown-submenu"><a href="<?=$site_url?>/<?=$CAT_LEVEL2_DATA['category_url']?>.html" class="view-all-link" >View All</a></li>                          
</ul>
<?php
///////////////////////////////////////////////  THIRD LEVEL END  /////////////////////////////////////////
}
?>





</li>
<?php
}
?>

<li class="dropdown-submenu"><a href="<?=$site_url?>/<?=$CAT_DATA['category_url']?>.html" class="view-all-link" >View All</a></li>   
</ul>
<?php
///////////////////////////////////////////////  SECOND LEVEL END  /////////////////////////////////////////
}
?>


</li>
<?php
}
}
?>      

<li class="dropdown-submenu"><a href="<?=$site_url?>/products.html" class="view-all-link" >View All</a></li>                          
									
								</ul>


</li>   

<?}?>
<?
} elseif($pgName=='services' && $compDATA['admin_product_option']=='Both')	
{
    $sql_cat_check=db_query("select * from tbl_category where 1 and category_status='Active' and category_is_product='No' and category_parent_id=0 order by category_order_by");
if(mysqli_num_rows($sql_cat_check)>0){
    

?>
<li  <?php if($page_name=="services"){?>class="dropdown active"<?php }?>>
<a href="#" class="dropdown-toggle" data-toggle="dropdown">

<?=$link_data['site_pages_name']?><b class="caret"></b></a>

<ul  class="dropdown-menu">
<?php
$sql_cat=db_query("select * from tbl_category where 1 and category_status='Active' and category_is_product='No' and category_parent_id=0 order by category_order_by");
if(mysqli_num_rows($sql_cat)>0){
while($CAT_DATA=mysqli_fetch_array($sql_cat)){
@extract($CAT_DATA);
?>             
<li class="dropdown-submenu"><a href="<?=$site_url?>/<?=$CAT_DATA['category_url']?>.html" class="dropdown-submenu-toggle" data-toggle="dropdown-submenu"><?=$category_name?></a>


<?php
///////////////////////////////////////////////  SECOND LEVEL /////////////////////////////////////////
$sql_cat_level2=db_query("select * from tbl_category where 1 and category_status='Active' and category_is_product='No' and category_parent_id=$CAT_DATA[category_id] order by category_order_by");
if(mysqli_num_rows($sql_cat_level2)>0){
?>
<ul  class="dropdown-menu" style="position:absolute; left:100px">
<?php
while($CAT_LEVEL2_DATA=mysqli_fetch_array($sql_cat_level2)){
?>             
<li class="dropdown-submenu"><a href="<?=$site_url?>/<?=$CAT_LEVEL2_DATA['category_url']?>.html"><?=$CAT_LEVEL2_DATA['category_name']?></a>


<?php
///////////////////////////////////////////////  THIRD LEVEL /////////////////////////////////////////
$sql_cat_level3=db_query("select * from tbl_category where 1 and category_status='Active' and category_is_product='No' and category_parent_id=$CAT_LEVEL2_DATA[category_id] order by category_order_by");
if(mysqli_num_rows($sql_cat_level3)>0){
?>
<ul id="third-level"  class="dropdown-menu" style="position:absolute; left:150px;">
<?php
while($CAT_LEVEL3_DATA=mysqli_fetch_array($sql_cat_level3)){
?>  
<li><a href="<?=$site_url?>/<?=$CAT_LEVEL3_DATA['category_url']?>.html"><?=$CAT_LEVEL3_DATA['category_name']?></a></li>
<?php
}
?>

<li class="dropdown-submenu"><a href="<?=$site_url?>/<?=$CAT_LEVEL2_DATA['category_url']?>.html" class="view-all-link" >View All</a></li>                           
</ul>
<?php
///////////////////////////////////////////////  THIRD LEVEL END  /////////////////////////////////////////
}
?>





</li>
<?php
}
?>

<li class="dropdown-submenu"><a href="<?=$site_url?>/<?=$CAT_DATA['category_url']?>.html" class="view-all-link" >View All</a></li>                           
</ul>
<?php
///////////////////////////////////////////////  SECOND LEVEL END  /////////////////////////////////////////
}
?>


</li>
<?php
}
}
?>      

<li class="dropdown-submenu"><a href="<?=$site_url?>/services.html" class="view-all-link" >View All</a></li>                           
									
								</ul>

</li>     
<?}?>
<?
}



}



elseif($pgName!="services" && $pgName!="products")
{	
?>
<li <?php if($page_name==$link_data['site_pages_link']){?>class="active"<?php }?>><a href="<?=$site_url?>/<?=$link_data['site_pages_link']?>.html" <?php if($page_name==$link_data['site_pages_link']){?> class="activeLink"<?php }?> ><?=$link_data['site_pages_name']?></a>
							</li>
<?
}


?>


	
<?php }?> 	
          <li><a href="<?=$site_url?>/webmail" target="_blank">Webmail Login</a></li>
        </ul>
      </div>
      <? } ?>
    </div>
  </div>
</nav>

MMCT - 2023