MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 18.224.55.193
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/awningsmanufacturenoida.com/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/awningsmanufacturenoida.com/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 = db_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'")?></title>
<META NAME="description" content="<?=db_scalar("select site_pages_meta_description from  tbl_site_pages where site_pages_status='Active' and site_pages_link='$page_name'")?>" />
<META NAME="keywords" content="<?=db_scalar("select site_pages_meta_keyword from  tbl_site_pages where site_pages_status='Active' and site_pages_link='$page_name'")?>" />
<? }?>
<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"><img src="<?=$site_url?>/header_files/<?=$DATALOGO['header_logo']?>" alt="<?=$compDATA['admin_company_name']?>" title="<?=$compDATA['admin_company_name']?>" /></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 class="active"><a href="<?=$site_url?>/<?=$link_data['site_pages_link']?>.html"><?=$link_data['site_pages_name']?></a></li>
           <? }elseif($pgName=='products'){ ?>
          <li class="dropdown"><a href="<?=$site_url?>/<?=$link_data['site_pages_link']?>.html"><?=$link_data['site_pages_name']?> <i class="fa fa-angle-down"></i></a>
            <ul style="height:300px;overflow-y: scroll;">
            <!--Showing N Lable Of Category Start Here.  query() And has_child() Function Initialized in header-->
      <?php
function fetch_header_menu($query) {
$site_url=db_scalar("select admin_website_url from tbl_admin where 1");
	while ( $result = mysqli_fetch_array ( $query ) ) {
		$menu_id = $result ['category_id'];
		$menu_name = ucwords(strtolower($result ['category_name']));
		$menu_cat_link = $result ['category_url'];
		if (has_child ( query ( $menu_id ) )) {
			$menuClass = "dropdown";
		}else{
		   $menuClass = "";
		}
 	  echo "<li class='{$menuClass}'><a href='$site_url/{$menu_cat_link}.html'>{$menu_name}</a>";
		if (has_child ( query ( $menu_id ) )) {
			echo "<ul>";
			fetch_header_menu ( query ( $menu_id ) );
			echo "</ul>";
		}
		echo "</li>";
	}
}
fetch_header_menu (query(0)); //call this function with 0 parent id
?>
      <!--Showing N Lable Of Category End Here.  query() And has_child() Function Initialized in header-->
            </ul>
          </li>
            <? }else{ ?>
          <li><a href="<?=$site_url?>/<?=$link_data['site_pages_link']?>.html"><?=$link_data['site_pages_name']?></a></li>
          <? } ?>          
          <? } ?>
          <li><a href="<?=$site_url?>/webmail" target="_blank">Webmail Login</a></li>
        </ul>
      </div>
      <? } ?>
    </div>
  </div>
</nav>

MMCT - 2023