
  <?php 
  include "common/header.php";
  include "common/navbar.php";
   ?> 


  <!-- Main Container Starts -->
  <div class="main-container" >
    <!-- Product Container Starts -->
    <div id="product-product" class="container" style="background-image: url(image/bg.jpg); ">
      <!-- <ul class="breadcrumb">
        <li><a href="index.php"><i class="fa fa-home"></i></a></li>
        <li><a href="#"><?php //echo $row_dtl['item_name']; ?></a></li>
      </ul> -->
      <!-- Row Starts -->  
      <div class="row">

        <?php include "common/sidebar.php"; ?> 

        <!-- Content Area Starts -->
        <div id="content" class="col-sm-9">

          <!-- Nested Row Starts -->
          <div class="row"> 
            <!-- Product Image Area Starts -->
            <div class="col-sm-5 product-image-wrap">        
              <!-- Product Image Starts -->
              <div class="product-image">
                <a href="image/images/<?php echo $row_dtl['f_img']; ?>" title="<?php echo $row_dtl['item_name']; ?>"><img src="image/images/<?php echo $row_dtl['f_img']; ?>" title="<?php echo $row_dtl['item_name']; ?>" alt="<?php echo $row_dtl['item_name']; ?>" class="img-responsive img-center" /></a>
              </div>
              <!-- Product Image Ends -->
              <!-- Additional Images Starts -->
              <ul class="list-unstyled list-inline product-image-additional">   

                <?php
                $sql_img  = mysqli_query($conn,"SELECT * FROM item_imgs WHERE item_code = '$itm_code' ");
                while($row_img = mysqli_fetch_array($sql_img)){
                 ?>         

                 <li><a href="image/images/<?php echo $row_dtl['img']; ?>" title="<?php echo $row_dtl['item_code']; ?>"> <img src="image/images/<?php echo $row_dtl['img']; ?>" title="<?php echo $row_dtl['item_code']; ?>" alt="<?php echo $row_dtl['item_code']; ?>" class="img-responsive img-center" /></a></li>

               <?php } ?>

             </ul>
             <!-- Additional Images Ends -->          
           </div>
           <!-- Product Image Area Ends -->   
           <!-- Product Info Starts -->  
           <div id="product" class="col-sm-7 product-info">
            <!-- Product Title Starts -->
            <h3 class="product-info-title"><?php echo $row_dtl['item_name']; ?></h3>
            <!-- Product Title Ends -->
            <!-- Reviews Starts -->
            <div class="product-info-rating">
              <ul class="list-unstyled list-inline product-info-rating-list">
               <li class="product-info-rating-list-star"><span class="fa fa-stack"><i class="fa fa-star-o fa-stack-1x"></i></span></li>
               <li class="product-info-rating-list-star"><span class="fa fa-stack"><i class="fa fa-star-o fa-stack-1x"></i></span></li>
               <li class="product-info-rating-list-star"><span class="fa fa-stack"><i class="fa fa-star-o fa-stack-1x"></i></span></li>
               <li class="product-info-rating-list-star"><span class="fa fa-stack"><i class="fa fa-star-o fa-stack-1x"></i></span></li>
               <li class="product-info-rating-list-star"><span class="fa fa-stack"><i class="fa fa-star-o fa-stack-1x"></i></span></li>
               <li class="product-info-rating-list-review">
                <a href="#" onclick="$('a[href=\'#tab-review\']').trigger('click'); return false;">
                  0 reviews
                </a>
              </li>
              <li class="product-info-rating-list-review">
                <a href="#" onclick="$('a[href=\'#tab-review\']').trigger('click'); return false;">
                 <i class="fa fa-edit"></i>Write a review
               </a>
             </li>
           </ul>
         </div>

         <?php
         $cat_id =  $row_dtl['cat_id'];
         $check =  mysqli_query($conn,"SELECT menu_id FROM cat WHERE cat_id = $cat_id");
         $row_val = mysqli_fetch_array($check);
         $val = $row_val['menu_id'];
         if ($val == '1') {
           $hidden = '';
         } else {
            $hidden = 'hidden';
         }
          ?>
         

         <!-- Reviews Ends -->
         <!-- Product Details Starts -->
         <ul class="list-unstyled product-info-details">
          <li <?php echo $hidden; ?>>AUTHOR(S)&nbsp; <a href="#"><?php echo $row_dtl['author']; ?></a></li>
          <li <?php echo $hidden; ?>>PUBLISHER(S)&nbsp; <a href="#"><?php echo $row_dtl['publisher']; ?></a></li>
          <li <?php echo $hidden; ?>>IBSN:&nbsp; <span><?php echo $row_dtl['item_code']; ?></span></li>
          <li>Reward Points:&nbsp; <span>700</span></li>
          <li>Availability:&nbsp; <span>In Stock</span></li>
        </ul>
        <!-- Product Details Ends -->
        <!-- Price Starts -->
        <div class="product-info-price clearfix">
          <span class="price-new">Rs.<?php echo $row_dtl['price']; ?></span>
          <!-- <p class="product-info-price-tax">Ex Tax: $1,000.00</p> -->
        </div>
        <!-- Price Ends -->
        <!-- Qty & Product Add Buttons Starts -->
        <div class="product-info-cart">
          <div class="form-group">
            <label class="control-label" for="input-quantity">Qty</label>
            <input type="text" name="quantity" value="1" size="2" id="input-quantity" class="form-control" />
            <!-- <input type="hidden" name="product_id" value=" <?php //echo $row_dtl['id']; ?>" /> -->
          </div>            
          <div class="button-group product-info-cart-btns-wrap">
            <button type="button" id="button-cart" data-loading-text="Loading..." class="btn btn_cart" value="<?php echo $row_dtl['id']; ?>"><i class="fa fa-shopping-cart"></i><span>Add to Cart</span></button>
            <button type="button" data-toggle="tooltip" class="btn" title="Add to Wish List" onclick="wishlist.add('44');"><i class="fa fa-heart"></i></button>
            <button type="button" data-toggle="tooltip" class="btn" title="Compare this Product" onclick="compare.add('44');"><i class="fa fa-exchange"></i></button>
          </div>
        </div>
        <!-- Qty & Product Add Buttons Ends -->
        <!-- AddThis Button BEGIN -->
        <div class="addthis_toolbox addthis_default_style" data-url="indexd94c.html?route=product/product&amp;product_id=44"><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a> <a class="addthis_button_tweet"></a> <a class="addthis_button_pinterest_pinit"></a> <a class="addthis_counter addthis_pill_style"></a></div>
        <!-- <script type="text/javascript" src="https://s7.addthis.com/js/300/addthis_widget.js"></script>  -->
        <!-- AddThis Button END --> 
      </div>
      <!-- Product Info Ends -->   
    </div>
    <!-- Nested Row Ends -->
    <!-- Product Tabs Wrap Starts -->
    <div class="product-tabs-wrap">
      <!-- Product Tabs Starts -->
      <ul class="nav nav-tabs">
        <li class="active"><a href="#tab-description" data-toggle="tab">Description</a></li>
        <li><a href="#tab-review" data-toggle="tab">Reviews (0)</a></li>
      </ul>
      <!-- Product Tabs Ends -->
      <!-- Product Tab Content Starts -->
      <div class="tab-content">
        <!-- Product Description Starts -->
        <div class="tab-pane active" id="tab-description">
          <div>
            <?php echo $row_dtl['description_more']; ?></div>

          </div>
          <!-- Product Description Ends -->
          <!-- Product Review Starts -->
          <div class="tab-pane" id="tab-review">
            <form class="form-horizontal" id="form-review">
              <div id="review"></div><br>
              <h4>Write a review</h4><hr>
              <div class="form-group required">
                <div class="col-sm-12">
                  <label class="control-label" for="input-name">Your Name</label>
                  <input type="text" name="name" value="" id="input-name" class="form-control" />
                </div>
              </div>
              <div class="form-group required">
                <div class="col-sm-12">
                  <label class="control-label" for="input-review">Your Review</label>
                  <textarea name="text" rows="5" id="input-review" class="form-control"></textarea>
                  <div class="help-block"><span class="text-danger">Note:</span> HTML is not translated!</div>
                </div>
              </div>
              <div class="form-group required">
                <div class="col-sm-12">
                  <label class="control-label">Rating</label>
                  &nbsp;&nbsp;&nbsp; Bad&nbsp;
                  <input type="radio" name="rating" value="1" />
                  &nbsp;
                  <input type="radio" name="rating" value="2" />
                  &nbsp;
                  <input type="radio" name="rating" value="3" />
                  &nbsp;
                  <input type="radio" name="rating" value="4" />
                  &nbsp;
                  <input type="radio" name="rating" value="5" />
                &nbsp;Good</div>
              </div>

              <div class="buttons clearfix">
                <div class="pull-right">
                  <button type="button" id="button-review" data-loading-text="Loading..." class="btn btn-primary">Continue</button>
                </div>
              </div>
            </form>
          </div>
          <!-- Product Review Ends -->
        </div>
        <!-- Product Tab Content Ends -->
      </div>
      <!-- Product Tabs Wrap Ends -->

    </div>
    <!-- Content Area Ends -->    
  </div>
  <!-- Row Ends -->  
</div>
<!-- Product Container Ends -->

</div>
<!-- Main Container Ends -->
<!-- Footer Starts -->
<?php include "common/footer.php"; ?> 
<!-- Footer Ends -->