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

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/irshadwoodenscrap.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
// change only db_query to mysqli_query for dropdown 
  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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<?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="<?=$site_url?>/css/styles.css" rel="stylesheet" type="text/css" />
<link href="<?=$site_url?>/css/menu-top.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="<?=$site_url?>/engine1/style.css" />
<script type="text/javascript" src="<?=$site_url?>/engine1/jquery.js"></script>
<script type="text/javascript" src="<?=$site_url?>/jquery/multi-level-menu.js"></script>
<script type="text/javascript">
$(document).ready(function() {
	//Default Action
	$(".tab_content").hide(); //Hide all content
	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$(".tab_content:first").show(); //Show first tab content	
	//On Click Event
	$("ul.tabs li").click(function() {
		$("ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content").hide(); //Hide all tab content
		var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active content
		return false;
	});
});
</script>
<script type="text/javascript">
  $.noConflict();
  // Code that uses other library's $ can follow here.
</script>
<link href="<?=$site_url?>/pop-up/style.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="<?=$site_url?>/pop-up/script.js"></script>
<style type="text/css">
div#page {margin-left: auto;margin-right: auto;}		
.scrollToTop {position:fixed;bottom:2em;right:40px;background:url(<?=$site_url?>/images/up1.png);height:16px;width:16px;padding: 1em;display: none;}
</style>
<script language="javascript">
function getXMLHTTP() { //fuction to return the xml http object
var xmlhttp=false;	
try{
xmlhttp=new XMLHttpRequest();
}
catch(e){		
try{			
xmlhttp= new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e){
try{
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e1){
xmlhttp=false;
}
}
}
return xmlhttp;
}
function quck_enq(){   
var mynamee=document.getElementById('enquiry_name').value;
var mymobilee=document.getElementById('enquiry_mobile').value;
var myemaile=document.getElementById('enquiry_email').value;
var myefor=document.getElementById('enquiry_subject').value;
var mymsge=document.getElementById('enquiry_detail').value;
var mycaptcha=document.getElementById('security_code').value;
error=1;
function trim(str){				
	 return str.replace(/^\s*|\s*$/g,'');
	}	
if(trim(document.getElementById('enquiry_name').value)==0){		
alert("Enter Your Name !");
document.getElementById('enquiry_name').focus();
error++;
return false;
}	
if (!mynamee.match(/^[a-zA-Z-,]+(\s{0,1}[a-zA-Z-, ])*$/))
{
alert("Please enter only alphabets !");
document.getElementById('enquiry_name').value='';
document.getElementById('enquiry_name').focus();
error++;
return false;
}
var mobno=trim(document.getElementById('enquiry_mobile').value);
if(trim(document.getElementById('enquiry_mobile').value)==0){
	alert("Enter your mobile no.!");
	document.getElementById('enquiry_mobile').focus();
	error++;
	return false;
}
if(isNaN(document.getElementById('enquiry_mobile').value)){
	alert("Mobile no. should be no.!");
	document.getElementById('enquiry_mobile').focus();
	error++;
	return false;
}
if(mobno.length < 10){
    alert("Mobile no. should be 10 digit long !");
	document.getElementById('enquiry_mobile').focus();
	error++;
	return false;
}

var email=trim(document.getElementById('enquiry_email').value);
var mailformat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
if(email=='')
  {
	  alert('Please Enter Email Id');
	  document.getElementById('enquiry_email').focus();
	  return false;
  }else if(!email.match(mailformat)){
alert("You have entered an invalid email address!");
document.getElementById('enquiry_email').focus();
return false;
}

if(trim(document.getElementById('enquiry_subject').value)==0){
	alert("Enter your subject !");
	document.getElementById('enquiry_subject').focus();
	error++;
	return false;
 }

if(trim(document.getElementById('enquiry_detail').value)==0){
	alert("Enter your message !");
	document.getElementById('enquiry_detail').focus();
	error++;
	return false;
 }
if(trim(document.getElementById('security_code').value)==0){
	alert("Enter security code !");
	document.getElementById('security_code').focus();
	error++;
	return false;
 }
if(error==1){
var req=new getXMLHTTP();
var str="<?=$site_url?>/insert_prd_enq_detail.php?username="+mynamee+"&usermobile="+mymobilee+"&useremail="+myemaile+"&userefr="+myefor+"&mcptch="+mycaptcha+"&usermsg="+mymsge;
//alert(str);
req.onreadystatechange = function() {
if(req.readyState==4){
if(req.status==200){

if(req.responseText==1){
   document.getElementById('er_msg').innerHTML="Invalid captcha code !";
}else{
 document.getElementById('er_msg').style.display="none";
 document.getElementById('divHD').style.display="none";
 document.getElementById('showconfirm').style.display="block"; 
   }
  } 
 }
}
req.open("GET",str,true);
req.send(null);
return false;
 }
}
</script>
<?php if($compDATA['admin_google_analytic_code']!=''){
 echo $compDATA['admin_google_analytic_code'];
}
?>
</head>
<body style="background:url(<?=$site_url?>/images/bg.gif) repeat-x;">

<form id="form2" name="form2" method="post" action="">
<div id="toPopup">
<div class="close2"></div>
<div>
<p></p>
<p id="er_msg" style="font-weight:bold; color:#FF0000; font-size:12px; margin-left:50px; height:20px; line-height:20px;"></p>
<div class="w320px  ml20px vv bd  fl w radius3" id="popup_content" style="margin-left:10px;">

<div class="p10px ml20px" id="divHD">
<p class="gray b ">Name<b class="red">*</b></p>
<p class="pt5px">
<input type="text" name="enquiry_name" id="enquiry_name" maxlength="70" class="bd2 radius3" style="height:28px; width:250px;"  />
</p>
<p class="gray mt5px b">Mobile No<b class="red">*</b></p>
<p class="pt5px">
<input type="text" name="enquiry_mobile" id="enquiry_mobile" maxlength="15" class="bd2 radius3" style="height:28px; width:250px;" />
</p>
<p class="gray b mt5px">Email<b class="red">*</b></p>
<p class="pt5px">
<input type="text" name="enquiry_email" id="enquiry_email" maxlength="70" class="bd2 radius3" style="height:28px; width:250px;" />
</p>
<p class="gray b mt5px">Enquiry For<b class="red">*</b></p>
<p class="pt5px">
<input type="text" name="enquiry_subject" value="<?=ucwords(strtolower(db_scalar("select category_name from tbl_category where category_status='Active' and category_id='$catgoryID'")));?>" id="enquiry_subject" maxlength="70" class="bd2 radius3" style="height:28px; width:250px;" />
</p>

<p class="gray b mt5px">Product Details<b class="red">*</b></p>
<p class="pt5px">
<textarea  class="bd2 radius3" name="enquiry_detail" id="enquiry_detail" style="resize:none; width:247px; height:35px;" ></textarea>
</p>


<p class="gray b mt5px">Security Code<b class="red">*</b></p>
<p class="pt5px">
<input type="text" name="captcha" maxlength="4" autocomplete="off" id="security_code" class="bd2 radius3" style="height:28px; width:187px;" />
<img src="amitabhcaptcha.php" class="vam" width="60" height="31" alt="Captcha" id="imgcaptchaid" />
</p>


<p class="mb5px mr20px mt10px" align="center">
<input type="submit" name="EnqSubmit" value="Submit" onclick="return quck_enq();" class="bbnt2" style="width:80px; height:30px;" />
<input type="reset" value="Clear" class="bbnt3" style="width:80px; height:30px;" />
</p>
</div>
<div id="showconfirm" style="font-size:14px; display:none; padding-top:160px; font-weight:bold; margin-top:30px; margin-left:10px;min-height:230px;padding-left:2px; padding-right:2px; text-align:center;">Your enquiry has been sent successfully.<br/>We will contact you soon !</div>
</div>
<?php $ctnm=db_scalar("select category_name from tbl_category where category_status='Active' and category_id='$catgoryID'");
       $ctimgnm=db_scalar("select category_image_name from tbl_category where category_status='Active' and category_id='$catgoryID'");
?>
<div class="fr w300px ml20px" >

<p style="margin-top:25px;"><img src="<?=$site_url?>/uploaded_files/<?=$ctimgnm?>" alt="<?=$ctnm?>" title="<?=ucwords(strtolower($ctnm));?>" width="300" height="300" class="radius5" /></p>

<p class="b xlarge" style="margin-top:25px; text-align:center"><?=ucwords(strtolower($ctnm));?></p>
</div>

<p class="cb"></p>
</div>
</div>
</form>
<?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);
}
?>
<div class="main-div">
<div>
  <div class="w400px fr">
    <div class="fr mt15px">
      <?php include("site-follow-us.php");?>
      <p class="cb"></p>
       <?php if($compDATA['admin_search_option']=='Yes'){ ?>
      <?php include("site-search.php");?>
      <? } ?>
      <p class="cb"></p>
    </div>
  </div>
  <div class="w600px fl">
    <p class="mt15px"><a 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></p>
  </div>
  <p class="cb"></p>
</div>
<div class="mt5px">
  <?php include("site-header-menu.php");?>
</div>
<p class="cb"></p>
<?php if($page_name!='error'){ ?>
<?php include("site-header-flash.php");?>
<? } ?>

MMCT - 2023