<?php 
include_once("include/main.inc.php"); 
session_start();
$sesion=session_id();
@extract($_GET);
@extract($_POST);
@extract($_REQUEST);
$chunk = $_REQUEST['keyword'];
$chunk = substr($chunk, 0, 5);
if(!empty($keyword)){
	$query =" SELECT * FROM category_tbl WHERE catName LIKE '%".$keyword."%' or catName LIKE '%".$chunk."%' or displayName LIKE '%".$chunk."%'";
}else{
   $query = "SELECT * FROM category_tbl order by catID desc";
}

$sql_dds = mysqli_query($GLOBALS['dbconn'],$query);
$wnum=mysqli_num_rows($sql_dds);
$page_metatitle = "Search - ".COMPANY_NAME;
$page_metakey = "Search - ".COMPANY_NAME;
$page_metadesc = "Search - ".COMPANY_NAME;
?>

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

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1"> 
    <?php include "app_top.php";?>
</head>

<body>
    <?php include "app_header.php";?>


    <!-- Heading Banner--->
    <section class="heading_banner" style="background-image: url(<?=site_url;?>/designer/images/category-banner.jpg)">
        <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">Search Result For "<?php echo "  " . $keyword." (".$wnum.") "; ?>"</h1>
                    <div class="clearfix"></div>
                    <div class="cat_title2">We Are Available For You</div>
                </div>
            </div>
        </div>
    </section>

    <!-- Breadcrumb--->
    <section 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="index.php" title="Home">Home</a></li>
                        <li class="active">Search</li>
                    </ul>
                </div>
            </div>
        </div>
    </section>


    <!-- Home About--->
    <section class="category_page">
        <div class="container">
            <div class="row">
                <!-- <?php include "app_sidebar.php"; ?> -->
                <div class="col-xxl-9 col-xl-9 col-lg-9 col-md-9 col-sm-9 col-12">
                    <div class="right_side">
                        <h2>Search Result For "<?php echo "  " . $keyword." (".$wnum.") "; ?>"</h2>

                        <?php
$num=mysqli_num_rows($sql_dds);
if($num > 0) { ?>
                        <div class="wps_right">

                        <?php while($row=mysqli_fetch_array($sql_dds)){
                                    ?>
                            <div class="product_listing">
                                <div class="row">
                                    <div class="col-xxl-4 col-xl-4 col-lg-4 col-md-4 col-sm-4 col-12">
                                        <div class="product">
                                            <a href="<?=site_url;?>/<?=getValidFileName($row['catName']);?>.htm" title="<?=$row['catName'];?>">
                                                <div class="image1">
                                                    <img src="<?= getImage($row['catImage'], 267, 267, $row['catName'],"/uploaded-files/category/images/");?>" alt="<?=$row['displayName'];?>" title="<?=$row['displayName'];?>">
                                                </div>
                                            </a>
                                            
                                            <p>Interested in this product?</p>
                                            <a class="read_more_product" href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#productID" onclick="$('#catID').val('<?php echo $row['catID']; ?>');
                                 $('#catName').val('<?php echo $row['catName']; ?>');
                                 $('.catName').html('<?php echo $row['catName']; ?>');  $('.catImg').attr('src','<?=site_url;?>/uploaded-files/category/images/<?=$row['catImage'];?>');" title="Get Best Quote"><i class="fa fa-envelope"></i> Get Best Quote</a>
                                        </div>
                                    </div>
                                    <div class="col-xxl-8 col-xl-8 col-lg-8 col-md-8 col-sm-8 col-12">
                                        <div class="right-content">
                                            <h3><a href="<?=site_url;?>/<?= getValidFileName($row['catName']);?>.htm" title="<?=$row['displayName'];?>"><?=$row['displayName'];?></a></h3>
                                            <div class="blue-line1"></div>
                                            <p><?=$row['catDesc'];?></p>
                                            <!-- <div class="table-responsive">
                                                    <table class="table">
                                                        <tbody>
                                                            <tr>
                                                                <td>Machine Capacity:</td>
                                                                <td>1000 Ltr / Hr</td>
                                                            </tr>
                                                            <tr>
                                                                <td>Tank Cap:</td>
                                                                <td>40 Ltr.  Aluminum Sheet  / S.S. 304</td>
                                                            </tr>
                                                            <tr>
                                                                <td>No of S.S. Discs:</td>
                                                                <td>40</td>
                                                            </tr>
                                                            <tr>
                                                                <td>Motor</td>
                                                                <td>1425 RPM Three Phase Electric Motor 1.00 HP</td>
                                                            </tr>

                                                        </tbody>
                                                    </table>
                                                </div> -->
                                                
                                            <div class="clearfix"></div>
                                            <a href="<?=site_url;?>/<?= getValidFileName($row['catName']);?>.htm" class="read_more_product" title="">Read More <i class="fa fa-long-arrow-right fa-1x"></i></a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <?php } } ?>
                            <!-- <div class="product_listing">
                                <div class="row">
                                    <div class="col-xxl-4 col-xl-4 col-lg-4 col-md-4 col-sm-4 col-12">
                                        <div class="product">
                                            <a href="details.php" title="Milk Cream Separator">
                                                <div class="image1">
                                                    <img src="designer/images/Online-Cream-seperator-Skimmer.jpg" alt="" title="">
                                                </div>
                                            </a>
                                            
                                            <p>Interested in this product?</p>
                                            <a class="read_more_product" href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#productID" title="Get Best Quote"><i class="fa fa-envelope"></i> Get Best Quote</a>
                                        </div>
                                    </div>
                                    <div class="col-xxl-8 col-xl-8 col-lg-8 col-md-8 col-sm-8 col-12">
                                        <div class="right-content">
                                            <h3><a href="details.php" title="Online Cream Separator">Online Cream Separator</a></h3>
                                            <div class="blue-line1"></div>
                                            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Provident ipsa quod vero officiis quibusdam, eligendi hic illum amet animi, impedit reiciendis autem mollitia, sit quas veritatis. Fugit, inventore ex eius.</p>
                                            <div class="table-responsive">
                                                    <table class="table">
                                                        <tbody>
                                                            <tr>
                                                                <td>Machine Capacity:</td>
                                                                <td>1000 Ltr / Hr</td>
                                                            </tr>
                                                            <tr>
                                                                <td>Tank Cap:</td>
                                                                <td>40 Ltr.  Aluminum Sheet  / S.S. 304</td>
                                                            </tr>
                                                            <tr>
                                                                <td>No of S.S. Discs:</td>
                                                                <td>40</td>
                                                            </tr>
                                                            <tr>
                                                                <td>Motor</td>
                                                                <td>1425 RPM Three Phase Electric Motor 1.00 HP</td>
                                                            </tr>

                                                        </tbody>
                                                    </table>
                                                </div>
                                                
                                            <div class="clearfix"></div>
                                            <a href="details.php" class="read_more_product" title="">Read More <i class="fa fa-long-arrow-right fa-1x"></i></a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="product_listing">
                                <div class="row">
                                    <div class="col-xxl-4 col-xl-4 col-lg-4 col-md-4 col-sm-4 col-12">
                                        <div class="product">
                                            <a href="details.php" title="Milk Cream Separator">
                                                <div class="image1">
                                                    <img src="designer/images/Cream-Skimmer.jpg" alt="" title="">
                                                </div>
                                            </a>
                                            
                                            <p>Interested in this product?</p>
                                            <a class="read_more_product" href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#productID" title="Get Best Quote"><i class="fa fa-envelope"></i> Get Best Quote</a>
                                        </div>
                                    </div>
                                    <div class="col-xxl-8 col-xl-8 col-lg-8 col-md-8 col-sm-8 col-12">
                                        <div class="right-content">
                                            <h3><a href="details.php" title="Cream Skimmer">Cream Skimmer</a></h3>
                                            <div class="blue-line1"></div>
                                            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Provident ipsa quod vero officiis quibusdam, eligendi hic illum amet animi, impedit reiciendis autem mollitia, sit quas veritatis. Fugit, inventore ex eius.</p>
                                            <div class="table-responsive">
                                                    <table class="table">
                                                        <tbody>
                                                            <tr>
                                                                <td>Machine Capacity:</td>
                                                                <td>1000 Ltr / Hr</td>
                                                            </tr>
                                                            <tr>
                                                                <td>Tank Cap:</td>
                                                                <td>40 Ltr.  Aluminum Sheet  / S.S. 304</td>
                                                            </tr>
                                                            <tr>
                                                                <td>No of S.S. Discs:</td>
                                                                <td>40</td>
                                                            </tr>
                                                            <tr>
                                                                <td>Motor</td>
                                                                <td>1425 RPM Three Phase Electric Motor 1.00 HP</td>
                                                            </tr>

                                                        </tbody>
                                                    </table>
                                                </div>
                                                
                                            <div class="clearfix"></div>
                                            <a href="details.php" class="read_more_product" title="">Read More <i class="fa fa-long-arrow-right fa-1x"></i></a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="product_listing">
                                <div class="row">
                                    <div class="col-xxl-4 col-xl-4 col-lg-4 col-md-4 col-sm-4 col-12">
                                        <div class="product">
                                            <a href="details.php" title="Milk Cream Separator">
                                                <div class="image1">
                                                    <img src="designer/images/Electric-Cream-Separator.jpg" alt="" title="">
                                                </div>
                                            </a>
                                            
                                            <p>Interested in this product?</p>
                                            <a class="read_more_product" href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#productID" title="Get Best Quote"><i class="fa fa-envelope"></i> Get Best Quote</a>
                                        </div>
                                    </div>
                                    <div class="col-xxl-8 col-xl-8 col-lg-8 col-md-8 col-sm-8 col-12">
                                        <div class="right-content">
                                            <h3><a href="details.php" title="Electric Cream Separator">Electric Cream Separator</a></h3>
                                            <div class="blue-line1"></div>
                                            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Provident ipsa quod vero officiis quibusdam, eligendi hic illum amet animi, impedit reiciendis autem mollitia, sit quas veritatis. Fugit, inventore ex eius.</p>
                                            <div class="table-responsive">
                                                    <table class="table">
                                                        <tbody>
                                                            <tr>
                                                                <td>Machine Capacity:</td>
                                                                <td>1000 Ltr / Hr</td>
                                                            </tr>
                                                            <tr>
                                                                <td>Tank Cap:</td>
                                                                <td>40 Ltr.  Aluminum Sheet  / S.S. 304</td>
                                                            </tr>
                                                            <tr>
                                                                <td>No of S.S. Discs:</td>
                                                                <td>40</td>
                                                            </tr>
                                                            <tr>
                                                                <td>Motor</td>
                                                                <td>1425 RPM Three Phase Electric Motor 1.00 HP</td>
                                                            </tr>

                                                        </tbody>
                                                    </table>
                                                </div>
                                                
                                            <div class="clearfix"></div>
                                            <a href="details.php" class="read_more_product" title="">Read More <i class="fa fa-long-arrow-right fa-1x"></i></a>
                                        </div>
                                    </div>
                                </div>
                            </div> -->



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


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

    <!-- Home Testimonials -->
    <!-- <section class="home_testimonials_webpulse">
        <div class="container">
            <div class="sec-title centered wow fadeInDown" data-wow-delay=".4s">
                <h2>Testimonials</h2>
                <div class="separator"></div>
            </div>

            <div class="clearfix"></div>
            <div class="row">
                <div class="colxxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 wow fadeInLeft" data-wow-delay=".4s">

                    <div id="testimonials" class="owl-carousel web-pulse-testimonials">

                        <div class="item">
                            <div class="testimonials-item">
                                <p>Very nice customer service i felt like I was important, would recommend them very highly to anyone who needs outdoor furniture.</p>
                            </div>
                            <div class="testimonial-info">
                                <img class="rounded-x" src="designer/images/testimonial-1.jpg" alt="Name">
                                <span class="testimonial-author">Customer Name</span><br>
                                <small>Designation</small>
                            </div>
                        </div>

                        <div class="item">
                            <div class="testimonials-item">
                                <p>Very nice customer service i felt like I was important, would recommend them very highly to anyone who needs outdoor furniture.</p>
                            </div>
                            <div class="testimonial-info">
                                <img class="rounded-x" src="designer/images/testimonial-1.jpg" alt="Name">
                                <span class="testimonial-author">Customer Name</span><br>
                                <small>Designation</small>
                            </div>
                        </div>

                        <div class="item">
                            <div class="testimonials-item">
                                <p>Very nice customer service i felt like I was important, would recommend them very highly to anyone who needs outdoor furniture.</p>
                            </div>
                            <div class="testimonial-info">
                                <img class="rounded-x" src="designer/images/testimonial-1.jpg" alt="Name">
                                <span class="testimonial-author">Customer Name</span><br>
                                <small>Designation</small>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section> -->


    <!-- Home Clients -->
    <!-- <section class="webpulse_home_clients">
        <div class="container">
            <div class="sec-title centered wow fadeInDown" data-wow-delay=".4s">
                <h2>Our Clients</h2>
                <div class="separator"></div>
            </div>
            <div class="clearfix"></div>
            <div id="clients" class="owl-carousel trade_partner">
                <div class="item wow fadeInDown" data-wow-delay=".2s">
                    <div class="clients">
                        <div class="image">
                            <img src="designer/images/clients1.png" alt="Client">
                        </div>
                    </div>
                </div>

                <div class="item wow fadeInDown" data-wow-delay=".3s">
                    <div class="clients">
                        <div class="image">
                            <img src="designer/images/clients2.png" alt="Client">
                        </div>
                    </div>
                </div>

                <div class="item wow fadeInDown" data-wow-delay=".4s">
                    <div class="clients">
                        <div class="image">
                            <img src="designer/images/clients3.png" alt="Client">
                        </div>
                    </div>
                </div>

                <div class="item wow fadeInDown" data-wow-delay=".5s">
                    <div class="clients">
                        <div class="image">
                            <img src="designer/images/clients4.png" alt="Client">
                        </div>
                    </div>
                </div>


                <div class="item wow fadeInDown" data-wow-delay=".6s">
                    <div class="clients">
                        <div class="image">
                            <img src="designer/images/clients5.png" alt="Client">
                        </div>
                    </div>
                </div>


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

    <?php include "app_testimonials.php";?>
    <?php include "app_clients.php";?>  


    <?php include "app_footer.php";?>
    <?php include "app_bottom.php";?>
</body>

</html>