<?php
include_once("include/main.inc.php");
@extract($_REQUEST);
if (preg_match('webpulse\.co$/', $_SERVER['HTTP_HOST'], $match)) {
    $match1=$match[1];
    $vanity_url='http://'.$_SERVER['HTTP_HOST'];
}
$actual_link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$ee=explode('/',$actual_link);
$mm=$ee[3];
$ss=explode('.',$mm);
$cc=$ss[0];
$cat=str_replace("-", " ", $cc);
$cats=ucfirst($cat);
$cat_s="select * from category_tbl where catName='$cats'";
$cat_q=mysqli_query($dbconn,$cat_s);
$num=mysqli_num_rows($cat_q);
$cat_r=mysqli_fetch_array($cat_q);
$category_id=$cat_r['catID'];
$hover=$category_id;
$catn=$cat_r['catName'];
$cat_sql="select * from category_tbl where parentID='$category_id' and status='Y'";
$cat_qry=mysqli_query($dbconn,$cat_sql);
$cccnum=mysqli_num_rows($cat_qry);
$cat_sql1="select * from category_tbl where catID='$category_id'";
$cat_qry1=mysqli_query($dbconn,$cat_sql1);
$cat_res=mysqli_fetch_array($cat_qry1);
$page_metatitle=$cat_res['pageTitle'];
$page_metakey=$cat_res['pageKeywords'];
$page_metadesc=$cat_res['pageDescription'];
$pageTitles=$cat_res['catName'];
$disTitles=$cat_res['displayName'];
$pdes=$cat_res['catDesc'];
$pdes1=$cat_res['catDesc1'];
$parent=$cat_res['parentID'];
$cat_sql2="select * from category_tbl where catID='$parent'";
$cat_qry2=mysqli_query($dbconn,$cat_sql2);
$num2=mysqli_num_rows($cat_qry2);
$cat_res2=mysqli_fetch_array($cat_qry2);
$mparent=$cat_res2['parentID'];
$cat_sql3="select * from category_tbl where catID='$mparent'";
$cat_qry3=mysqli_query($dbconn,$cat_sql3);
$num3=mysqli_num_rows($cat_qry3);
$cat_res3=mysqli_fetch_array($cat_qry3);
$mmparent=$cat_res3['parentID'];
$cat_sql4="select * from category_tbl where catID='$mmparent'";
$cat_qry4=mysqli_query($dbconn,$cat_sql4);
$num4=mysqli_num_rows($cat_qry4);
$cat_res4=mysqli_fetch_array($cat_qry4);
$admin_sql=mysqli_query($dbconn,"select * from admin_details");
$admin_res=mysqli_fetch_array($admin_sql);
$mobile=$admin_res['mobile'];
$city=$admin_res['city'];
$state=$admin_res['state'];
$country=$admin_res['country'];
$companyName=$admin_res['companyName'];
$address=$admin_res['address'];
$alt=explode(',',$page_metatitle);
if(mysqli_num_rows($cat_q) > 0)
{
    $page_metatitle = ($page_metatitle) ? $page_metatitle : $admin_res['companyName'];
    $page_metadesc = ($page_metadesc) ? $page_metadesc : $admin_res['companyName'];
    $page_metakey = ($page_metakey) ? $page_metakey : $admin_res['companyName'];

?>

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title><?= $page_metatitle; ?></title>
    <meta name="description" content="<?= $page_metadesc; ?>" >
     <meta name="keywords" content="<?= $page_metakey; ?>" >

 <?php include "app_top.php"; ?>
</head>

<body>

    <?php include "app_header.php"; ?>
 <?php
    if($cat_res['catBanner']!=''){ ?>
    <section class="heading_banner" style="background-image:url(<?=site_url;?>/uploaded-files/category/banners/<?php echo $cat_res['catBanner'];?>)">
<?php } else { ?>
    <section class="heading_banner" style="background-image: url(<?=theme_url;?>/images/category-banner.jpg)">
        <?php } ?>
        <div class="container">
            <div class="row">
                <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 text-center">
                    <h1 class="cat_title"><?php echo $cat_res['catName'];?></h1>
                    <div class="clearfix"></div>
                </div>
            </div>
        </div>
    </section>

    <div class="inner_breadcrumb hidden_xs">
        <div class="container">
            <div class="row">
                <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                    <ul class="breadcrumb">
                        <li><a href="<?=site_url;?>" title="Home">Home</a></li>
                        <?php if($num4 > 0) {?>
                            <li><a href="<?=site_url;?>/<?=getValidFileName($cat_res4['catName']);?>.htm" title="<?php echo $cat_res4['catName']; ?> "><?php echo $cat_res4['catName']; ?></a>
                            </li>
                            <?php } ?>
                            <?php if($num3 > 0) {?>
                            <li><a href="<?=site_url;?>/<?=getValidFileName($cat_res3['catName']);?>.htm" title="<?php echo $cat_res3['catName']; ?>"><?php echo $cat_res3['catName']; ?></a></li>
                            <?php } ?>
                            <?php if($num2 > 0) {?>
                            <li><a href="<?=site_url;?>/<?=getValidFileName($cat_res2['catName']);?>.htm" title="<?php echo $cat_res2['catName']; ?>"><?php echo $cat_res2['catName']; ?></a></li>
                            <?php } ?>
                        <li class="active"><?php echo $cat_res['catName'];?></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>

    <?php
if($cat_res['parentID'] == '0')
{?>
    <section class="category_page">
        <div class="container">
            <h2 class="title_2"><?php echo $cat_res['catName'];?> in Uttar Pradesh</h2>
            <div class="clearfix"></div>
            <div class="row">
                <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                    <div class="wps_right">
                        <div class="product_right_image">
                            <a href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#productID" onclick="$('#catID').val('<?php echo $cat_res['catID']; ?>');
                                 $('#catName').val('<?php echo $cat_res['catName']; ?>');
                                 $('.catName').html('<?php echo $cat_res['catName']; ?>');  $('.catImg').attr('src',$('.mycatimg_<?php echo $cat_res['catID'];?> ').attr('src'));">
                                <div class="detail_image">
                                    <img class="img-responsive mycatimg_<?php echo $cat_res['catID'];?>" src="<?=site_url;?>/uploaded-files/category/images/<?php echo $cat_res['catImage'];?>" alt="<?php echo $alt[0];?>" title="<?php echo $alt[0];?>">
                                </div>
                                <span class="read_more_1 bg_btn_1" title="Get Best Quote"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
                                        <path d="M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414.05 3.555ZM0 4.697v7.104l5.803-3.558L0 4.697ZM6.761 8.83l-6.57 4.027A2 2 0 0 0 2 14h12a2 2 0 0 0 1.808-1.144l-6.57-4.027L8 9.586l-1.239-.757Zm3.436-.586L16 11.801V4.697l-5.803 3.546Z"></path>
                                    </svg> Get Best Quote  <span></span><span></span><span></span><span></span></span>
                            </a>

                        </div>

                            <?php echo html_entity_decode($cat_res['catDesc1']);?>


                        <h4 class="you_may">Categories Related To <?php echo $cat_res['catName'];?></h4>
                        <div class="allListing">

                        <?php

while($sub_res=mysqli_fetch_array($cat_qry)) {
    if($sub_res['catImage'] != ''){
        $img_link = getImage($sub_res[catImage], 374, 374, $sub_res[catName],"/uploaded-files/category/images/");
        $img_link1 = getImage($sub_res[catImage], 500, 500, $sub_res[catName],"/uploaded-files/category/images/");
    }else{
        $img_link = NO_IMG_URL;
        $img_link1 = NO_IMG_URL;
    }
?>

                            <div class="product_listing">
                                <div class="row">
                                    <div class="col-xxl-4 col-xl-4 col-lg-4 col-md-4 col-sm-5 col-12">
                                        <div class="product">
                                            <a href="<?=site_url;?>/<?=getValidFileName($sub_res['catName']);?>.htm" title="<?php echo $sub_res['displayName'];?>">
                                                <div class="image1">
                                                    <img src="<?=$img_link;?>" alt="<?php echo $sub_res['displayName'];?> Manufacturers in Uttar Pradesh" title="<?php echo $sub_res['displayName'];?> Manufacturers in Uttar Pradesh" class="img-responsive mycatimg_<?php echo $sub_res['catID'];?>">
                                                </div>
                                            </a>
                                        </div>
                                    </div>
                                    <div class="col-xxl-8 col-xl-8 col-lg-8 col-md-8 col-sm-7 col-12">
                                        <div class="right-content">
                                            <h4><a href="<?=site_url;?>/<?=getValidFileName($sub_res['catName']);?>.htm" title="<?php echo $sub_res['displayName'];?> in Uttar Pradesh"><?php echo $sub_res['catName'];?></a></h4>
                                            <div class="blue-line1"></div>
                                            <div class="more_info">
                                            <?php echo html_entity_decode($sub_res['catDesc']);?>

                                            </div>

                                            <div class="clearfix"></div>
                                            <a class="read_more_1 bg_btn_1" href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#productID" onclick="$('#catID').val('<?php echo $sub_res['catID']; ?>');
                                 $('#catName').val('<?php echo $sub_res['catName']; ?>');
                                 $('.catName').html('<?php echo $sub_res['catName']; ?>');  $('.catImg').attr('src','<?=$img_link1;?>');" title="Get Best Quote"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
                                                    <path d="M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414.05 3.555ZM0 4.697v7.104l5.803-3.558L0 4.697ZM6.761 8.83l-6.57 4.027A2 2 0 0 0 2 14h12a2 2 0 0 0 1.808-1.144l-6.57-4.027L8 9.586l-1.239-.757Zm3.436-.586L16 11.801V4.697l-5.803 3.546Z" />
                                                </svg> Get Best Quote <span></span><span></span><span></span><span></span></a>
                                            <a href="<?=site_url;?>/<?=getValidFileName($sub_res['catName']);?>.htm" title="Read More" class="read_more_1 bg_btn_1">Read More <span></span><span></span><span></span><span></span></a>

                                        </div>
                                    </div>
                                </div>
                            </div>
                        <?php } ?>


                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <?php } else {

        if($cat_res['catImage'] != ''){
        $img_link = getImage($cat_res[catImage], 500, 500, $cat_res[catName],"/uploaded-files/category/images/");
        $img_link1 = getImage($cat_res[catImage], 500, 500, $cat_res[catName],"/uploaded-files/category/images/");
    }else{
        $img_link = NO_IMG_URL;
        $img_link1 = NO_IMG_URL;
    } ?>
    <section class="category_page">
			<div class="container">
				<div class="row">
					<div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
						<div class="right_side">
							<h2 class="title_h2"><?php echo $cat_res['catName'];?> in Uttar Pradesh</h2>
							<div class="wps_right">
								<div class="product_right_image">
									<a href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#productID" onclick="$('#catID').val('<?php echo $cat_res['catID']; ?>');
                                 $('#catName').val('<?php echo $cat_res['catName']; ?>');
                                 $('.catName').html('<?php echo $cat_res['catName']; ?>');  $('.catImg').attr('src','<?=$img_link1;?>');">
										<div class="detail_image"> <img class="img-responsive mycatimg_<?php echo $cat_res['catID'];?>" src="<?=site_url;?>/uploaded-files/category/images/<?php echo ($cat_res['catImage']);?>" alt="<?php echo $cat_res['catName'];?> in Uttar Pradesh" title="<?php echo $cat_res['catName'];?> in Uttar Pradesh"> </div> <span class="read_more_1 bg_btn_1"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">

                                            <path d="M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414.05 3.555ZM0 4.697v7.104l5.803-3.558L0 4.697ZM6.761 8.83l-6.57 4.027A2 2 0 0 0 2 14h12a2 2 0 0 0 1.808-1.144l-6.57-4.027L8 9.586l-1.239-.757Zm3.436-.586L16 11.801V4.697l-5.803 3.546Z"></path>

                                        </svg> Get Best Quote</span> </a>
								</div>

								<?php echo html_entity_decode($cat_res['catDesc1']);?>

								<div class="clearfix"></div>
								  <?php
$sql_pros=mysqli_query($dbconn,"select * from product_tbl where prodcut_subcat='$category_id' or product_subsubcat='$category_id'");
$num=mysqli_num_rows($sql_pros);
                                if($num > 0)
                                { ?>
									<div class="you_may">Related Product To <?php echo $cat_res['catName'];?></div>

								<?php
                                    $sno = 0;
                                while($res_pros=mysqli_fetch_array($sql_pros))
                                {
                                    $sno++;
                                ?>

                            <div class="allListing">
                                <div class="product_listing">
                                    <div class="row">
                                        <div class="col-xxl-5 col-xl-5 col-lg-5 col-md-5 col-sm-5 col-12">
                                            <div class="product"><?php
                                            $pr_images = explode(",", $res_pros['product_image']);
                                            $prno = 0;
                                            $eqno = 1;
                                            foreach($pr_images as $image){
                                                $prno++;
                                                if($prno == $eqno){
                                                    if( $image != ''){
                                                        // getImage($image, 500, 500, $image,"/uploaded-files/product/images/")
                                        ?>
                                                <div class="single_image">
                                                    <a class="largeImage product_pop_up" id="bigImage<?= $sno; ?>" href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#productID" title="<?= $res_pros['product_title']; ?> Manufacturers, Suppliers and Exporters in Uttar Pradesh"><input type="hidden" class="product_id" value="<?= $res_pros['product_id']; ?>" >
                                                        <img class="activeImage<?= $sno; ?> product_image<?= $res_pros['product_id']; ?>" src="<?= site_url.'/uploaded-files/product/images/'.$image; ?>" alt="<?= $res_pros['product_title']; ?> Manufacturers, Suppliers and Exporters in Uttar Pradesh" title="<?= $res_pros['product_title']; ?> Manufacturers, Suppliers and Exporters in Uttar Pradesh">
                                                    </a>
                                                </div>
                                                <?php }else { $eqno++; } } } ?>
                                                <div id="small<?= $sno; ?>" class="small">
                                                    <?php $prno = 0; foreach($pr_images as $image){ $prno++; if($image != '') { ?>
                                                    <span data-name="<?= site_url.'/uploaded-files/product/images/'.$image; ?>" class="item product_aimage <?= ($prno == 1) ? 'active': ''; ?>">
                                                        <img src="<?= site_url.'/uploaded-files/product/images/'.$image; ?>" alt="<?= $res_pros['product_title']; ?> Manufacturers, Suppliers and Exporters in Uttar Pradesh" title="<?= $res_pros['product_title']; ?> Manufacturers, Suppliers and Exporters in Uttar Pradesh">
                                                        </span>
                                                        <?php } } ?>
                                                    <input type="hidden" class="pr_sno" value="<?= $sno; ?>">
                                                    <?php if($res_pros['product_video']){ ?>
                                                    <div class="item youtube">
                                                        <a data-fancybox href="<?= $res_pros['product_video']; ?>" title="<?= $res_pros['product_title']; ?> Manufacturers, Suppliers and Exporters in Uttar Pradesh">
                                                            <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
                                                                <path d="m11.596 8.697-6.363 3.692c-.54.313-1.233-.066-1.233-.697V4.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 0 1 0 1.393z" />
                                                            </svg></a>
                                                    </div>
                                                    <?php } ?>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="col-xxl-7 col-xl-7 col-lg-7 col-md-7 col-sm-7 col-12">
                                            <div class="right-content">
                                                <h4><a class="main_heading<?= $res_pros['product_id']; ?>" href="javascript:void(0);" title="<?= $res_pros['product_title']; ?> Manufacturers, Suppliers and Exporters in Uttar Pradesh"><?= $res_pros['product_title']; ?></a></h4>
                                                <div class="blue-line1"></div>
                                                <div class="more_info">
                                                    <?= $res_pros['product_specfi']; ?>
                                                </div>

                                                <div class="clearfix"></div>
                                                <a class="read_more_1 bg_btn_1 product_pop_up" href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#productID" title="Get Best Quote"><input type="hidden" class="product_id" value="<?= $res_pros['product_id']; ?>" ><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
                                                        <path d="M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414.05 3.555ZM0 4.697v7.104l5.803-3.558L0 4.697ZM6.761 8.83l-6.57 4.027A2 2 0 0 0 2 14h12a2 2 0 0 0 1.808-1.144l-6.57-4.027L8 9.586l-1.239-.757Zm3.436-.586L16 11.801V4.697l-5.803 3.546Z" />
                                                    </svg> Get Best Quote </a>
                                                <a class="read_more_1 bg_btn_1 callback Request_call_back" href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#callback" title="Request A Callback"><input type="hidden" class="product_id" value="<?= $res_pros['product_id']; ?>" >
                                                    <svg fill="currentColor" width="24px" height="24px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
                                                        <g data-name="Layer 2">
                                                            <g data-name="phone-call">
                                                                <rect width="24" height="24" opacity="0" />
                                                                <path d="M13 8a3 3 0 0 1 3 3 1 1 0 0 0 2 0 5 5 0 0 0-5-5 1 1 0 0 0 0 2z" />
                                                                <path d="M13 4a7 7 0 0 1 7 7 1 1 0 0 0 2 0 9 9 0 0 0-9-9 1 1 0 0 0 0 2z" />
                                                                <path d="M21.75 15.91a1 1 0 0 0-.72-.65l-6-1.37a1 1 0 0 0-.92.26c-.14.13-.15.14-.8 1.38a9.91 9.91 0 0 1-4.87-4.89C9.71 10 9.72 10 9.85 9.85a1 1 0 0 0 .26-.92L8.74 3a1 1 0 0 0-.65-.72 3.79 3.79 0 0 0-.72-.18A3.94 3.94 0 0 0 6.6 2 4.6 4.6 0 0 0 2 6.6 15.42 15.42 0 0 0 17.4 22a4.6 4.6 0 0 0 4.6-4.6 4.77 4.77 0 0 0-.06-.76 4.34 4.34 0 0 0-.19-.73zM17.4 20A13.41 13.41 0 0 1 4 6.6 2.61 2.61 0 0 1 6.6 4h.33L8 8.64l-.54.28c-.86.45-1.54.81-1.18 1.59a11.85 11.85 0 0 0 7.18 7.21c.84.34 1.17-.29 1.62-1.16l.29-.55L20 17.07v.33a2.61 2.61 0 0 1-2.6 2.6z" />
                                                            </g>
                                                        </g>
                                                    </svg> Request A Callback </a>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <?php } } ?>

							<div class="clearfix"></div>
								<h4 class="you_may">Categories Related to <?php echo $cat_res['catName'];?></h4>
								<div class="allListing">
                                     <?php
    $category_id = $cat_res['catID'];
    $cat_final=mysqli_query($dbconn,"select * from category_tbl where parentID='$parent' and status='Y' and catID!='$category_id' order by catOrder Asc");

while($sub_res=mysqli_fetch_array($cat_final)) {
    if($sub_res['catImage'] != ''){
        $img_link = getImage($sub_res[catImage], 500, 500, $sub_res[catName],"/uploaded-files/category/images/");
        $img_link1 = getImage($sub_res[catImage], 500, 500, $sub_res[catName],"/uploaded-files/category/images/");
    }else{
        $img_link = NO_IMG_URL;
        $img_link1 = NO_IMG_URL;
    }
?>
									<div class="product_listing">
										<div class="row">
											<div class="col-xxl-5 col-xl-5 col-lg-5 col-md-5 col-sm-5 col-12">
												<div class="product">
													<a href="<?=site_url;?>/<?=getValidFileName($sub_res['catName']);?>.htm" title="<?php echo $sub_res['displayName'];?> in Uttar Pradesh">
														<div class="image1"> <img src="<?=$img_link;?>" alt="<?php echo $sub_res['displayName'];?> Manufacturers in Uttar Pradesh" title="<?php echo $sub_res['displayName'];?> Manufacturers in Uttar Pradesh" class="img-responsive mycatimg_<?php echo $sub_res['catID'];?>"> </div>
													</a>
													<p>Interested in this product?</p>
													<a class="read_more_1 bg_btn_1" href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#productID" onclick="$('#catID').val('<?php echo $sub_res['catID']; ?>');
                                                    $('#catName').val('<?php echo $sub_res['catName']; ?>');
                                                    $('.catName').html('<?php echo $sub_res['catName']; ?>');  $('.catImg').attr('src','<?=$img_link1;?>');" title="Get Best Quote">
														<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
															<path d="M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414.05 3.555ZM0 4.697v7.104l5.803-3.558L0 4.697ZM6.761 8.83l-6.57 4.027A2 2 0 0 0 2 14h12a2 2 0 0 0 1.808-1.144l-6.57-4.027L8 9.586l-1.239-.757Zm3.436-.586L16 11.801V4.697l-5.803 3.546Z" /> </svg> Get Best Quote</a>
												</div>
											</div>
											<div class="col-xxl-7 col-xl-7 col-lg-7 col-md-7 col-sm-7 col-12">
												<div class="right-content">
													<h4><a href="<?=site_url;?>/<?=getValidFileName($sub_res['catName']);?>.htm" title="<?php echo $sub_res['displayName'];?> in Uttar Pradesh"><?php echo $sub_res['catName'];?></a></h4>
													<div class="blue-line1"></div>
													<div class="more_info">
														<?php echo html_entity_decode($sub_res['catDesc']);?>

													</div>
													<div class="clearfix"></div> <a href="<?=site_url;?>/<?=getValidFileName($sub_res['catName']);?>.htm" title="Read More" class="read_more_1 bg_btn_1">Read More</a> </div>
											</div>
										</div>
									</div>
									<?php } ?>

								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</section>

    <?php } ?>

    <!-- <?php include "app_clients.php"; ?> -->
    <!-- <?php include "app_faq.php"; ?> -->
    <?php include "app_footer.php"; ?>
    <?php include "app_bottom.php"; ?>
<script>
    $(document).ready(function(){
        $('.product_aimage').click(function(){
            $('.product_aimage').removeClass('active');
            var pr_image = $(this).attr('data-name');
            var s_no = $(this).siblings('.pr_sno').val();
            $('.activeImage'+s_no).attr('src', pr_image);
            $(this).addClass('active');
        });


        $('.product_pop_up').click(function(){
            var product_id = $(this).find('.product_id').val();
            var imagepr = $('.product_image'+product_id).attr('src');
            var image_title = $('.product_image'+product_id).attr('title');
            var product_title =  $('.main_heading'+product_id).text();
            $('.product_popup_image').find("img").attr("src", imagepr);
            $('.catName').text(product_title);
            $('.product_popup_image').find("img").attr("alt", image_title);
            $('.product_popup_image').find("img").attr("title", image_title);
        });
        $('.Request_call_back').click(function(){
            var product_id = $(this).find('.product_id').val();
            var imagepr = $('.product_image'+product_id).attr('src');
            var image_title = $('.product_image'+product_id).attr('title');
            var product_title =  $('.main_heading'+product_id).text();
            $('.product_cat_image').find("img").attr("src", imagepr);
            $('.catHeading').text(product_title);
            $('.product_cat_image').find("img").attr("alt", image_title);
            $('.product_cat_image').find("img").attr("title", image_title);
        });
    });
</script>
</body>

</html>
<?php
}
else
{
    header("Location: ".site_url);
    exit;
}
?>
