<?php 
$this->load->view('site/templates/header.php');
//echo '<pre>'; print_r($cartViewResults); die; 


?>
<link rel="stylesheet" type="text/css" href="css/colorbox.css" media="all" />
<script>
$(document).ready(function(){

		$(".cboxClose1").click(function(){
			$("#cboxOverlay,#colorbox").hide();
		});
		
		$(".reg-popup2").colorbox({width:"800px", height:"auto", inline:true, href:"#inline_reg2"});

});
</script>

<div style='display:none'>

  <div id='inline_reg2' style='background:#fff;'>  
	<div class="conversation">
    <div class="conversation_container">
    <h2 class="conversation_headline"><?php if($this->lang->line('cart_conversation') != '') { echo stripslashes($this->lang->line('cart_conversation')); } else echo 'New conversation with Vanessa Painter from DesignMeJewelry New conversation with Vanessa Painter from DesignMeJewelry  New conversation with Vanessa Painter from DesignMeJewelry  New conversation with Vanessa Painter from DesignMeJewelry'; ?>  </h2>
    
    <div class="conversation_thumb">
    <img width="75" height="75" src="images/default_avat.png">
    </div>
    <div class="conversation_right">
    <input class="conversation-subject" type="text" name="subject" placeholder="<?php if($this->lang->line('user_subject') != '') { echo stripslashes($this->lang->line('user_subject')); } else echo 'Subject'; ?>">
    <textarea class="conversation-textarea" rows="11" name="message_text" placeholder="<?php if($this->lang->line('user_msg_txt') != '') { echo stripslashes($this->lang->line('user_msg_txt')); } else echo 'Message text'; ?>"></textarea>
    <input class="subscribe_btn" type="button" value="send" style="height: auto; padding: 7px 10px; margin: 10px 0 7px 20px; font-weight: bold;">
  
    
    </div> 
    
    
    
    </div>
    </div>
      
         
  </div>
  
</div>
<section style="background:#FFF; margin-top:15px;
   border-top: 1px solid #D7D7D4;border-bottom: 1px solid #D7D7D4;">    
  	<div class="main">
        <div class="container" style="margin:0">
            
        	<?php echo $cartViewResults; ?>
            
          	<?php #if($MiniCartViewSet>0){ ?>
            <?php if(!empty($relatedPurchases)){ ?>
            <div class="related-purshaces">
                <h3> <?php if($this->lang->line('cart_purchased') != '') { echo stripslashes($this->lang->line('cart_purchased')); } else echo 'People who purchased items in your cart also bought'; ?>… </h3>
                <ul class="related-purshaces">
                	<?php $count=0; foreach($relatedPurchases as $relatedItems){ $count++; ?>
                    <li class="first">
                        <div class="related-left">
                            <a href="products/<?php echo $relatedItems->seourl; ?>">
                            <?php $imgA=@explode(',',$relatedItems->image); ?>
                            	<img src="images/product/list-image/<?php echo $imgA[0];?>" alt="<?php echo $relatedItems->product_name; ?>"/>
                            </a>
                            <div class="relateditem-text">
                                <a style="color:#333; font-weight:bold; width:100%;" href="products/<?php echo $relatedItems->seourl; ?>"><?php echo $relatedItems->product_name; ?></a>
                                <span class="related-aurtor"><?php if($this->lang->line('cart_by') != '') { echo stripslashes($this->lang->line('cart_by')); } else echo 'By'; ?>
                                	<a href="shop-section/<?php echo $relatedItems->shop_seourl; ?>"><?php echo $relatedItems->shop_name; ?></a>
                                </span>
                            </div>
                        </div>
                        <div class="dolar-tools">
                            <div class="dolar">
                            
                                <span class="dolar-symbol"><?php echo $currencySymbol; ?></span>
                                <span class="dolar-value"><?php  if($relatedItems->price != 0.00) { echo round($currencyValue*$relatedItems->price,2); } else { echo round($currencyValue*$relatedItems->pricing,2); echo '+'; }?></span>
                                <span class="dolar-code"><?php echo $currencyType;?></span>
                            </div>
                            <a href="products/<?php echo $relatedItems->seourl; ?>">
                            <input class="button-green" type="submit" value="<?php if($this->lang->line('cart_detail') != '') { echo stripslashes($this->lang->line('cart_detail')); } else echo 'Detail'; ?>">
                            </a>
                        </div>
                    </li>
                    <?php if($count==6)break; } ?>
                </ul>
            </div>
            <?php } ?>
			<?php #}?>
        </div>
	</div>        
</section>

<?php $this->load->view('site/templates/footer'); ?>
<script type="text/javascript" src="js/site/jquery.validate.js"></script>
</body>
</html>