<?php
require_once("header.php");
require_once("menu.php");
?>

<!-- Breadcrumbs Start -->
<div class="rs-breadcrumbs sec-spacer">
    <div class="overlay"></div>
    <div class="container">
        <div class="row">
            <div class="col-md-12 text-center">
                <div class="breadcrumbs-inner">
                    <h1 class="page-title">FAQ</h1>
                    <ul>
                        <li>
                            <a class="active" href="https://ethicsprosperity.com">Home</a>
                        </li>
                        <li>FAQ</li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- Breadcrumbs End -->

<!-- FAQ Start -->
<div id="rs-about" class="rs-about loaded faq-page">
    <div class="">

     <?php 
          $ex= $obj->view_faqmenu();
          while($rowc=mysqli_fetch_array($ex))
          {
         ?>
        <div class="faq-box faq-sec"> <!-- section 1 -->
            <div class=" row container">

                <div class="col-lg-8 col-md-6 col-sm-12 my-faq-desc">
                 <div class="faq-datail">
                    <h3 class="faq-title"><?php echo $rowc['faq_menu_name'];?></h3>
                    <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
                       
                       <div class="panel-group" id="Visibility" role="tablist" aria-multiselectable="true">
                           <?php 
                            $eq= $obj->view_faq_content($rowc['faq_menu_id']);
                            if(mysqli_num_rows($eq) > 0)
                            { 
                            while($fet=mysqli_fetch_array($eq))
                            {
                            ?>
              <div class="panel panel-default">
                  <a role="button" data-toggle="collapse" data-parent="#accordion" href="#<?php echo $fet['faq_id'];?>" aria-expanded="flase" aria-controls="VisibilityBox">
                <div class="panel-heading" role="tab" id="VisibilityOne">
                  <h4 class="panel-title">
                    
                     <?php echo $fet['faq_title'];?>
                 
             </h4>
         </div>
         </a>
         <div id="<?php echo $fet['faq_id'];?>" class="panel-collapse collapse" role="tabpanel" aria-labelledby="<?php echo $fet['faq_id'];?>">
          <div class="panel-body" id="text">
		  <p>
           <?php echo $fet['faq_desc'];?></p>
       </div>
   </div>
</div>
<?php } } ?>
</div>

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

<div class="col-lg-4 col-md-6 hidden-xs hidden-sm my-faq-img">
    <div class="about-img">
        <img src="<?php echo $rowc['faq_menu_img'];?>" alt="faq's">
    </div>
</div>
</div>
</div><!-- end section1 -->
 <?php } ?>
 </div>
</div>    
<!--FAQ End -->



<?php
require_once("footer.php");
?>
