MSV FM

dot.antimicrobial@66.96.161.157: ~ $
Path : /hermes/sb_web/b2432/saktishree15304.ipage.com/ChemIntel/
File Upload :
Current < : /hermes/sb_web/b2432/saktishree15304.ipage.com/ChemIntel/report-subcategory.php

<?php 
ob_start();
include("config.php");
 ?>
<!DOCTYPE html>
<!-- LOCAL -->
<html lang="en" class="no-js">

<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-type" content="text/html; charset=UTF-8">
    <title>ChemIntel360 l Chemical Research and Consulting</title>
    <link href="css/style.css"  rel="stylesheet">
    <link href="css/custom-css.css"  rel="stylesheet" media="screen">
    <link href="css/custom-style.css"  rel="stylesheet" rel="stylesheet" media="print">
    <link href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,500,700,900" rel="stylesheet">
<link rel='stylesheet' href='css/bootstrap.css'>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="shortcut icon" href="images/logo.png" />
  <meta name="google-site-verification" content="hZC2AGqRI58WpmyzDIgaYXemBpLe4wbUA2OLlaVDHVM" />
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-LNK78L652Q"></script>
<script>

 $(document).ready(function () {
            $('.collapse.in').prev('.panel-heading').addClass('active');
            $('#accordion, #bs-collapse')
                .on('show.bs.collapse', function (a) {
                    $(a.target).prev('.panel-heading').addClass('active');
                })
                .on('hide.bs.collapse', function (a) {
                    $(a.target).prev('.panel-heading').removeClass('active');
                });
        });
</script>
    <style type="text/css">
        main .hero-home.relative {
            min-height: 400px !important;
        }

        .toast-editor {
            min-height: 82px !important;
        }

        .toast-editor .toast {
            bottom: -83px;
        }

        .uneditable {
            -ms-opacity: 0.5;
            opacity: 0.5;
        }
    </style>

    <script>document.documentElement.className = document.documentElement.className.split('no-js').join('');</script>
<body class="show-cart-toggle">
    <div class="skip">
        <a class="btn btn-skip" tabindex="0" href="#content">Skip to main content</a>
    </div>


    <?php include"header.php"; ?>
    
    <div class="breadcrumbs">

        <div class="wrap">
            <ol>
                <li>
                    <a href="index.php">Home</a>
                </li>
                <li>
                    <a href="report.php">Reports</a>
                </li>
            </ol>
        </div>

    </div>
    <main id="content" class="store_landing">
        <div class="hero-store bg-blue-grey push--bottom">
            <div class="wrap relative">
                <div class="hero-store__summary report-banner-left-text">
                    <h1 class="white tera push-half--bottom fade-in-up fade-in-up--1">Get better at decision making with our reports</h1>
                    <form class="search-inset search-inset--store push-half--bottom fade-in-up fade-in-up--1"
                        action="search.php" method="post" novalidate="">
                        <label class="visuallyhidden">Search for reports</label>
                        <input class="search-inset__input search-inset__input--flush" type="text" name="q"
                            placeholder="Search for reports available to buy">
                        <button class="search-inset__btn" type="Submit">
                            <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="22" height="22"
                                viewBox="0 0 16 16">
                                <title>Search</title>
                                <path fill="#4D4D4D"
                                    d="M15.6 14.9L10.8 10c1.1-1.1 1.8-2.5 1.8-4.2C12.6 2.6 10 0 6.8 0S1 2.6 1 5.8c0 3.2 2.6 5.8 5.8 5.8 1 0 1.9-.3 2.7-.7l5 5.1 1.1-1.1zm-13-9.1c0-2.3 1.9-4.2 4.2-4.2S11 3.5 11 5.8 9.1 10 6.8 10 2.6 8.2 2.6 5.8z">
                                </path>
                            </svg>
                        </button>
                    </form>
<br/>
                    <p class="white alpha fade-in-up fade-in-up--2 push--bottom">Address chemical industry challenges and make better commercial decisions with our objective insights, analyses and data.</p>
                   
                </div>
                <div class="report-banner-right-img">
                <img src="images/bg-store-hero.png">
                </div>
            </div>
        </div>
        <div class="wrap">
            <div class="col small-12">
                <h2 class="mega push--ends">Featured Reports</h2>
            </div>
            <div class="flex__equal-height">
               <?php
				$sql="select * from report_details order by id DESC Limit 0,3";
				$lessonQ=mysqli_query($con,$sql);
				$a=1;
				while ($r=mysqli_fetch_array($lessonQ))
				{
				$sql1="select * from report_category where id='".$r['cat_id']."' order by id DESC";
				$lessonQ1=mysqli_query($con,$sql1);
				$r1=mysqli_fetch_array($lessonQ1);
				?> 
                
                
                <div class="col small-12 medium-4 store-featured soft fade-in-up fade-in-up--1">
                    <a class="block" href="report-details.php?id=<?php print $r['id']; ?>">
                        <picture>
                            <source data-srcset="" media="(min-width: 1200px)">
                            <source data-srcset="" media="(min-width: 768px)">
                            <img class="image-cover lazyload" data-src="" alt="">
                        </picture>
                        <div class="row">
                            <div class="col small-12 small-medium-12 medium-12 xlarge-12 relative z2">
                                <span class="badge push-half--bottom"><?php print $r1['category_name'];?></span>
                                <h3 class="store-featured__title push-half--bottom white"><?php print $r['title'];?></h3>
                            </div>

                            <div class="col small-12  store-featured__summary">
                                
                                <p class="gamma font-regular push-half--bottom white" style="padding-bottom:10px"><?php print substr($r['sub_title'],0,120);?>...</p>
                                
                                <div class="author push-half--bottom">
                                    <div class="author__content author__content--white" style="padding-bottom:10px">
                                        <time class="gamma font-bold white"><?php print date('dS',strtotime($r['entry_date']));?></strong><?php print date('M,Y',strtotime($r['entry_date']));?></time>
                                    </div>
                                </div>
                                
                                <div class="store-featured__report push-half--bottom">
                                    <img src="upload_image/<?php echo $r['image']; ?>" width="180" height="232">
                                </div>
                            </div>
                        </div>
                    </a></div>
         <?php $a++; } ?>
           
                
                
   			
              
            </div>
        </div>



        

        <div class="wrap">
            <div class="col small-12">
                <h2 class="mega push--bottom">Recent Reports</h2>
            </div>
            <div class="flex__equal-height">
            <div class="row rec-repo">
            		<div class="col small-12 medium-4">
<form class="example" action="search.php" method="post">
  <input type="text" placeholder="Search by Keyword" name="search2">
  <input type="submit" name="submit" value="Submit" style="border: 1px solid grey;">
</form>
<br/>
                    	 <div class="panel-group" id="bs-collapse">
             <?php
				$sql="select * from report_category order by id ASC ";
				$lessonQ=mysqli_query($con,$sql);
				$a=1;
				while ($r=mysqli_fetch_array($lessonQ))
				{
				    ?>
                <div class="panel">
                    <div class="panel-heading">
                        <h4 class="panel-title">
        <a data-toggle="collapse" data-parent="#bs-collapse" href="#<?php echo $r['id']; ?>">
         
         <?php echo $r['category_name']; ?>
        </a>
      </h4>
                    </div>
                    <div id="<?php echo $r['id']; ?>" class="panel-collapse collapse">
                         <?php
				$sql2="select * from report_subcategory where c_id=".$r['id']." order by id ASC ";
				$lessonQ2=mysqli_query($con,$sql2);
				$a=1;
				while ($r2=mysqli_fetch_array($lessonQ2))
				{
				    ?>
                        <div class="panel-body">

<a href="report-subcategory.php?sid=<?php echo $r2['id']; ?>"><?php echo $r2['sname']; ?></a>
</div>
                        <?php $a++; } ?>
                    </div>

                </div>
                <!-- end of panel -->

                
                 <?php $a++; } ?>

            </div>
            
            <?php
				$sql="select * from report_details where scat_id='".$_REQUEST['sid']."' order by id DESC";
				$lessonQ=mysqli_query($con,$sql);
				$num2=mysqli_num_rows($lessonQ);

                               
				$r2=mysqli_fetch_array($lessonQ2);
				?>
            <!-- end of #bs-collapse  -->
                    </div>
                    <div class="col small-12 medium-8">
                    <div class="row sl-dw">
                    	<div class="col small-12 medium-8">
                    <h3>Search : <?php print $r2['category_name'];?> Reports</h3>
                    <h3>Total Reports <span>(<?php echo $num2; ?>)</span></h3>
                    	</div>
                        <div class="col small-12 medium-4">
                    <h4><form action="#">
  <label for="cars">Page Size: </label>
  <select name="page-size" id="page-size">
    <option value="20">10</option>
    
  </select>
</form></h4>
                    	</div>
                    </div>
                    
                     <?php
				$sql="select * from report_details where scat_id='".$_REQUEST['sid']."' order by id DESC";
				$lessonQ=mysqli_query($con,$sql);
				$a=1;
				while ($r=mysqli_fetch_array($lessonQ))
				{
				$sql1="select * from report_subcategory where id='".$r['scat_id']."' order by id DESC";
				$lessonQ1=mysqli_query($con,$sql1);
				$r1=mysqli_fetch_array($lessonQ1);
				?> 
                
                 <div class="col small-12 medium-12">
                    
                        <div class="row re-row">
                            <div class="col small-12 small-medium-3 report-popular__cover">
                                <a class="dark-link report-popular block" href="report-details.php?id=<?php print $r['id']; ?>">
                                <img src="upload_image/<?php echo $r['image']; ?>" width="158" height="217">
                                </a>
                            </div>
                            <div class="col small-12 small-medium-9">
                                <span class="badge push-half--bottom"><?php print $r1['sname'];?></span>
                                <h3 class="report-popular__title"><a class="dark-link report-popular block" href="report-details.php?id=<?php print $r['id']; ?>"><?php print $r['title'];?></a></h3>
                               
                                <p class="off-black gamma font-regular push-half--bottom"><a class="dark-link report-popular block" href="report-details.php?id=<?php print $r['id']; ?>"><?php print substr($r['sub_title'],0,190);?>.....</a></p>
                                 <div class="author push-half--bottom">
                                    <div class="author__content">
                                        <time class="gamma font-bold">Publish Date : <?php print date('dS',strtotime($r['entry_date']));?></strong><?php print date('M,Y',strtotime($r['entry_date']));?></time>
                                    </div>
                                </div>
                                <span
                                    class="off-black giga font-bold push--right push-half--bottom inline-block">
                                   <a class="btn btn--store rm-btn" style="width:120px;float:right;" href="report-details.php?id=<?php print $r['id']; ?>">Read more </a> 
                                    </span>
                                
                            </div>
                        </div>
                    
                 </div>
                
                <?php $a++; } ?>
              
                    </div>
            </div>

                
                
                
            </div>
        </div>    
         
    </main>
    
   <?php include"footer.php"; ?>
        <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>

    <script type="text/javascript" src="js/custom-js.js"></script>
</body>

</html>