<?php 
#echo $loginCheck;
$this->load->view('site/templates/header'); 
#echo "<pre>"; print_r($productDetails->row()); die;
?>
<link rel="stylesheet" href="css/demo.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/flexslider.css" type="text/css" media="screen" />
    
<link rel="stylesheet" href="css/lightbox.css">
<script defer src="js/jquery.flexslider.js"></script>
  
  


<script>
$(document).ready(function(){

		$(".cboxClose1").click(function(){
			$("#cboxOverlay,#colorbox").hide();
			});
		
		
			$(".detailreport-popup").colorbox({width:"650px", height:"auto", inline:true, href:"#detailreport_reg"});

			$(".ask-popup").colorbox({width:"748px", height:"auto", inline:true, href:"#ask_reg"});
			
	    	$(".contact-popup").colorbox({width:"448px", height:"auto", inline:true, href:"#contact_reg"});
			
			//Example of preserving a JavaScript event for inline calls.
			$("#onLoad").click(function(){ 
				$('#onLoad').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
				return false;
			});
			

});
</script>
<script type="text/javascript" src="js/lightbox.js"></script>
<section>

	<div  class="main">
    	<div class="container">            
           	<div class="seller-wrapper">
               	<div class="col5 col">
                   	<div class="seller-img">
                       	<?php if($selectedSeller_details[0]['thumbnail']!=""){ $Pro_pic=$selectedSeller_details[0]['thumbnail']; }else { $Pro_pic='profile_pic.png';} ?>
                       	<a href="javascript:void(0);"><img src="images/users/thumb/<?php echo $Pro_pic; ?>" width="75" height="75" /></a>
        			</div>
                    <div class="seller-name">
                    	<a href="shop-section/<?php echo $selectedSeller_details[0]['seourl']; ?>"><?php echo $selectedSeller_details[0]['seller_businessname']; ?></a>
                  	</div>
                    <div class="fav-btn">
                    	<?php if($loginCheck !=''){
							$favArr = $this->product_model->getUserFavoriteShopDetails(stripslashes($selectedSeller_details[0]['seller_id']));
							
							if(empty($favArr)){ ?>
                       		<a href="javascript:void(0);" onclick="return changeShopToFavourite('<?php echo stripslashes($selectedSeller_details[0]['seller_id']); ?>','Fresh');">
                            	<span class="fav-icon"></span>
                            	<span class="status-txt"><?php if($this->lang->line('shop_favshop') != '') { echo stripslashes($this->lang->line('shop_favshop')); } else echo 'Favorite Shop'; ?></span>
                         	</a>
						<?php  } else { ?>                        
                        	<a href="javascript:void(0);" onclick="return changeShopToFavourite('<?php echo stripslashes($selectedSeller_details[0]['seller_id']); ?>','Old');">
                            	<span class="fav-icon-sel"></span>
                                <span class="status-txt"><?php if($this->lang->line('shop_favshop') != '') { echo stripslashes($this->lang->line('shop_favshop')); } else echo 'Favorite Shop'; ?></span>
                            </a>                                       
                        <?php }} else { ?>
                        	<a href="javascript:void(0);" onclick="return changeShopToFavourite('<?php echo stripslashes($selectedSeller_details[0]['seller_id']); ?>','Fresh');">
                            	<span class="fav-icon"></span>
                                <span class="status-txt"><?php if($this->lang->line('shop_favshop') != '') { echo stripslashes($this->lang->line('shop_favshop')); } else echo 'Favorite Shop'; ?></span>
                         	</a>
                        <?php  } ?>
               		</div>
            	</div>
                
                <div class="col7 col shop-listings" style="float:right">
                	<ul class="seller-links">
                    	<?php if(count($shopProductDetails)<4){$c=count($shopProductDetails);}else{ $c=4; } 
							for($i=0;$i<$c;$i++){ 
								$imgArry=explode(',',$shopProductDetails[$i]['image']);
							?>
                        		<li>
                            		<a href="products/<?php echo $shopProductDetails[$i]['seourl']; ?>">
                                	<div class="seller-outer">
                                    	<div class="seller-inner">
                                        	<img src="images/product/list-image/<?php echo $imgArry[0]; ?>"  />
                                        </div>
                                    </div>
                                	</a>
                            	</li>
                    	<?php } ?>
                        <li>
                        	<a href="shop-section/<?php echo $selectedSeller_details[0]['seourl']; ?>">
                               	<div class="seller-outer count-box">
                                   	<div class="seller-inner">
                                       	<span class="count-number"><?php echo count($shopProductDetails)+1; ?></span><?php if($this->lang->line('user_items') != '') { echo stripslashes($this->lang->line('user_items')); } else echo 'items'; ?>
                        			</div>
                              	</div>
                         	</a>
                      	</li>
                   	</ul>
            	</div>
            </div>    
         </div>  
    </div>
                 
                 
            <div class="main2">
                <div class="content-inner">
                	<div class="detail_main allproduct-detail">
                    	<div class="col col7 W570">
                        	<div class="fav-msg">
                            	<div class="fav-left">
                                	<div class="fav-btn">
                        <?php if($loginCheck !=''){
						$favArr = $this->product_model->getUserFavoriteProductDetails(stripslashes($added_item_details[0]['id']));
						
						if(empty($favArr)){ ?>
                        <a href="javascript:void(0);" onclick="return changeProductToFavourite('<?php echo stripslashes($added_item_details[0]['id']); ?>','Fresh');">
                           	<span class="fav-icon" id="fav-icon"></span>
                               <span class="status-txt"><?php if($this->lang->line('user_favorite') != '') { echo stripslashes($this->lang->line('user_favorite')); } else echo 'Favorite'; ?></span>
                        </a>
						<?php  } else { ?>                        
                        <a href="javascript:void(0);" onclick="return changeProductToFavourite('<?php echo stripslashes($added_item_details[0]['id']); ?>','Old');">
                          	<span class="fav-icon-sel" id="fav-icon-sel"></span>
                            <span class="status-txt"><?php if($this->lang->line('user_favorite') != '') { echo stripslashes($this->lang->line('user_favorite')); } else echo 'Favorite'; ?></span>
                        </a>
                        <?php }} else { ?>
                        <a href="javascript:void(0);" onclick="return changeProductToFavourite('<?php echo stripslashes($added_item_details[0]['id']); ?>','Fresh');">
                           	<span class="fav-icon" id="fav-icon"></span>
                               <span class="status-txt"><?php if($this->lang->line('user_favorite') != '') { echo stripslashes($this->lang->line('user_favorite')); } else echo 'Favorite'; ?></span>
                        </a>
                        <?php  } ?> 
                                    </div>
                                </div>
                                <div class="fav-right">
                                	<h2><?php if($this->lang->line('shop_like') != '') { echo stripslashes($this->lang->line('shop_like')); } else echo 'Like this item'; ?>?</h2><?php if($this->lang->line('shop_revisit') != '') { echo stripslashes($this->lang->line('shop_revisit')); } else echo 'Add it to your favorites to revisit it later'; ?>.         
                                </div>
                            </div>
                            
        					<div id="gallery" class="flexslider">
          <ul class="slides">
           <!-- <li data-thumb="images/giftcards/Hydrangeas1.jpg">	<a  href="images/giftcards/Hydrangeas1.jpg" data-lightbox="example-set" >
  	    	    <img src="images/giftcards/Hydrangeas1.jpg" /></a>
  	    		</li>-->
                
                
			<?php $imageArr=explode(',',$added_item_details[0]['image']); ?>
            <?php $imgCount=count($imageArr);
                for($i=0;$i<$imgCount;$i++){ ?>
                
                <li data-thumb="images/product/list-image/<?php echo $imageArr[$i]; ?>"><a rel="example2" href="images/product/org-image/<?php echo $imageArr[$i]; ?>" data-lightbox="example-set">
                        <img src="images/product/<?php echo $imageArr[$i]; ?>" class="image0">
                    </a></li>   

                <?php } ?> 
          </ul>
        </div>
                            
                            <div class="tab-content">
                                  <div id="TabbedPanels1" class="TabbedPanels">
                                       
                                        <ul class="TabbedPanelsTabGroup">
                                          <li class="TabbedPanelsTab " tabindex="0"><?php if($this->lang->line('shop_itemdetails') != '') { echo stripslashes($this->lang->line('shop_itemdetails')); } else echo 'Item Details'; ?></li>
                                          <li class="TabbedPanelsTab " tabindex="0">
                                          	<span class="reviews">
                                                <div class="stars small" style="width: <?php echo $selectedSeller_details[0]['shop_ratting']*17.2 ?>px !important;"> </div>
                                            </span>(<?php echo $selectedSeller_details[0]['review_count']; ?>)
                                          </li>	
                                          <li class="TabbedPanelsTab " tabindex="0"><?php if($this->lang->line('shop_shippingpolicy') != '') { echo stripslashes($this->lang->line('shop_shippingpolicy')); } else echo 'Shipping & Policies'; ?></li>
                                        </ul>
                                        
                                        <div class="TabbedPanelsContentGroup">
                                          <div class="TabbedPanelsContent">
                                                <?php echo $added_item_details[0]['description']; ?>
                                            
												<div style="padding-top:50Px">
                                                <?php if($variations_one == '' && $variations_two == '' && $subProduct->row()->digital_item!=''){?>
                                                <h4><b><u>
                                                <?php if($this->lang->line('prod_buyers') != '') { echo stripslashes($this->lang->line('prod_buyers')); } else echo 'Message to buyers for digital items'; ?> 
												</u></b></h4>
                                                <?php
												echo $selectedSeller_details[0]['msg_to_buyers_for_digiitem'];										
												 } ?>   
                                                 </div>                                                
                                          </div>
                                          <div class="TabbedPanelsContent">
                                            	<div class="reviews-detailpage">
                                                <?php #echo "<pre>"; print_r($productReview); ?>
                                                <?php foreach($productReview as $review){  ?>
                                                <?php if($review['thumbnail']!=''){ $profile_pic='users/thumb/'.$review['thumbnail']; } else { $profile_pic='default_avat.png';}?>
                                                	<div class="review-row">
                                                    	<div class="col col2" style="text-align:center">
                                                        	<div>
                                                            <a href="view-people/<?php echo ''; ?>"><img src="images/<?php echo $profile_pic; ?>" height="45" width="45" /></a>
                                                            <p><?php if($this->lang->line('shop_reviewedby') != '') { echo stripslashes($this->lang->line('shop_reviewedby')); } else echo 'Reviewed by'; ?><br />
                                                            <a href="view-people/<?php echo $review['userName']; ?>"><?php echo $review['fullname'].' '.$review['last_name']; ?></a>
                                                            </p>
                                                            </div>
                                                        </div>
                                                        <div class="col review-right">
                                                        <?php $imaArr=explode(',',$review['image']); ?>
                                                            <span class="reviews">
                                                                <div class="stars small" style="width: <?php echo $review['rating']*17.2 ?>px !important;"> </div>
                                                            </span>
                                                        	<p class="feedback-info"><?php echo date("d M, Y",strtotime($review['dateAdded'])); ?></p>
                                                            <p class="feedback-txt"><?php echo $review['description']; ?></p>
                                                            <a href="products/<?php echo $review['seo_url']; ?>" class="review-img">
                                                            	<img src="images/product/thumb/<?php echo $imaArr[0]; ?>" />
                                                            </a>
                                                            <a href="products/<?php echo $review['seo_url']; ?>	" class="review-title"><?php echo $review['product_name']; ?></a>
                                                        </div>
                                                    </div>   
                                                <?php } ?>                                               
                                                </div>
                                                
                                          </div> 
                                          <div class="TabbedPanelsContent">
                                            <h4><?php if($this->lang->line('prod_payment') != '') { echo stripslashes($this->lang->line('prod_payment')); } else echo 'Payment Methods'; ?></h4>
                                            <div style="float:left; width:100%; margin-bottom:15px;">
                                            	<img style="float:left" src="images/paypal.png" /><span style="float: left; margin: -3px 0px 0px 7px;">><?php echo $this->config->item('email_title'); ?> Giftccards</span>
                                            </div>
                                            
                                            <?php if($added_item_details[0]['ship_duration']!=''){ ?>
                                                <h4 class="ship-days"> <?php if($this->lang->line('shop_shipin') != '') { echo stripslashes($this->lang->line('shop_shipin')); } else echo 'Ready to ship in'; ?> <?php echo $added_item_details[0]['ship_duration']; ?></h4>
                                                <?php } ?>
                                                
                                                <table class="list-table shipping">
                                                    <thead class="tabbled">
                                                        <tr class="column-headers">
                                                            <th class="shipping-destination"><?php if($this->lang->line('shop_shipto') != '') { echo stripslashes($this->lang->line('shop_shipto')); } else echo 'Ship To'; ?></th>
                                                            <th class="shipping-first-price"><?php if($this->lang->line('shop_cost') != '') { echo stripslashes($this->lang->line('shop_cost')); } else echo 'Cost'; ?></th>
                                                            <th class="shipping-amount"><?php if($this->lang->line('prod_another') != '') { echo stripslashes($this->lang->line('prod_another')); } else echo 'With Another Item'; ?></th>
                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                        <?php foreach($shipping_details as $shippingVals){ ?>
                                                                <tr>
                                                                    <td class="shipping-area"><?php echo $shippingVals['ship_name']; ?></td>
                                                                    <td class="shipping-value">
                                                                        <span class="dolar-symbol"><?php echo $currencySymbol;?></span>
                                                                        <span class="dolar-value"><?php echo number_format($currencyValue*$shippingVals['ship_cost'],2); ?></span>
                                                                        <span class="dolar-code"><?php echo $currencyType;?></span>
                                                                    </td>
                                                                    <td class="shipping-value">
                                                                        <span class="dolar-symbol"><?php echo $currencySymbol;?></span>
                                                                        <span class="dolar-value"><?php echo number_format($currencyValue*$shippingVals['ship_other_cost'],2); ?></span>
                                                                        <span class="dolar-code"><?php echo $currencyType;?></span>
                                                                    </td>
                                                                </tr>
                                                         <?php } ?> 
                                                   </tbody>
                                               </table>
                                               
   												<?php if($selectedSeller_details[0]['payment_policy']!="" || $selectedSeller_details[0]['shipping_policy']!="" || $selectedSeller_details[0]['refund_policy']!="" ||$selectedSeller_details[0]['additional_information']!="" || $selectedSeller_details[0]['seller_information']!="") { ?>                                               <table class="list-table shipping">
                                                    <thead class="tabbled">
                                                        <tr class="column-headers">
                                                            <th class="shipping-destination"><?php if($this->lang->line('shopsec_policy') != '') { echo stripslashes($this->lang->line('shopsec_policy')); } else echo 'Policies'; ?></th>
                                                            <th class="shipping-amount"></th>
                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                    	<?php if($selectedSeller_details[0]['payment_policy']!="") { ?>
                                                            <tr class="column-headers">
                                                                <td class="shipping-destination"><?php if($this->lang->line('shopsec_payment') != '') { echo stripslashes($this->lang->line('shopsec_payment')); } else echo 'Payment'; ?></td>
                                                                <td class="shipping-amount"><?php echo $selectedSeller_details[0]['payment_policy']; ?></td>
                                                            </tr>
                                                        <?php } ?>
                                                        <?php if($selectedSeller_details[0]['shipping_policy']!="") { ?>
                                                            <tr class="column-headers">
                                                                <td class="shipping-destination"><?php if($this->lang->line('shopsec_shipping') != '') { echo stripslashes($this->lang->line('shopsec_shipping')); } else echo 'Shipping'; ?></td>
                                                                <td class="shipping-amount"><?php echo $selectedSeller_details[0]['shipping_policy']; ?></td>
                                                            </tr>
                                                        <?php } ?>
                                                        <?php if($selectedSeller_details[0]['refund_policy']!="") { ?>
                                                            <tr class="column-headers">
                                                                <td class="shipping-destination"><?php if($this->lang->line('shopsec_refunds') != '') { echo stripslashes($this->lang->line('shopsec_refunds')); } else echo 'Refunds and Exchanges'; ?></td>
                                                                <td class="shipping-amount"><?php echo $selectedSeller_details[0]['refund_policy']; ?></td>
                                                            </tr>
                                                        <?php } ?>
                                                        <?php if($selectedSeller_details[0]['additional_information']!="") { ?>
                                                            <tr class="column-headers">
                                                                <td class="shipping-destination"><?php if($this->lang->line('shop_additional') != '') { echo stripslashes($this->lang->line('shop_additional')); } else echo 'Additional Policies and FAQs'; ?></td>
                                                                <td class="shipping-amount"><?php echo $selectedSeller_details[0]['additional_information']; ?></td>
                                                            </tr>
                                                        <?php } ?>
                                                        <?php if($selectedSeller_details[0]['seller_information']!="") { ?>
                                                            <tr class="column-headers">
                                                                <td class="shipping-destination"><?php if($this->lang->line('shop_sellerinformation') != '') { echo stripslashes($this->lang->line('shop_sellerinformation')); } else echo 'Seller Information'; ?></td>
                                                                <td class="shipping-amount"><?php echo $selectedSeller_details[0]['seller_information']; ?></td>
                                                            </tr>
                                                        <?php } ?>
                                                   </tbody>
                                               </table>
                                               <?php } ?>
                                          </div>
                                     	<script type="text/javascript">
                                        <!--
                                        var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
                                        //-->
                                        </script>
                                        
                                        </div>
                                        
                                       <div class="clear"></div>
                                       <!--end of tab panels-->
                                      </div>
                            </div>
                        </div>
                        <div class="detail_right">
                        	<div class="detail_right_inner">
                            	<h1><?php echo $added_item_details[0]['product_name']; ?></h1>
                                <div class="price_left">
                                <?php if($added_item_details[0]['price']!=0){ $price_tot=$added_item_details[0]['price'];}else {
									 $price_tot=$variations_one_values[0]['pricing'].'+';} ?>
                                	<input type="hidden" id="price_val" value="<?php echo $price_tot; ?>" />
                                	<span><?php echo $currencySymbol; echo number_format($price_tot * $currencyValue,2); ?><a onclick="javascript:$('.example9').trigger('click');"><?php echo $currencyType;?></a></span>
                                </div>
                                <div style="float:right; margin:10px 0">
                                
							
								
								<?php if($loginCheck!=''){
									
									if($this->session->userdata['shopsy_session_user_confirm'] == 'No') { 
										 $classN='contact-popup';
										 $Onclikoption='';
									}else{
										$classN='ask-popup';
										 $Onclikoption='onclick="contactshopowner('.$loginCheck.','.$added_item_details[0]['id'].');"';
									}
									
									 ?>
                                <button class="web-btn <?php echo $classN;?>" <?php echo $Onclikoption;?> ><?php if($this->lang->line('shop_askquestion') != '') { echo stripslashes($this->lang->line('shop_askquestion')); } else echo 'Ask a Question'; ?></button>
                                <?php }else{ ?>
                                <form action="login" method="get">
                                <input type="hidden" value="<?php echo 'products/'.$added_item_details[0]['seourl']; ?>" name="action" />
                                <button class="web-btn" type="submit"><?php if($this->lang->line('shop_askquestion') != '') { echo stripslashes($this->lang->line('shop_askquestion')); } else echo 'Ask a Question'; ?></button>
                                </form>
                                <?php } ?>
                                </div>
                                <span id="QtyErr"></span><span id="ADDCartErr"></span>
                                <div class="price_left">
                                
                                <?php if($added_item_details[0]['quantity'] > 1) { ?>                                	
                                    <label style="float:left; width:100%"><?php if($this->lang->line('shop_quantity') != '') { echo stripslashes($this->lang->line('shop_quantity')); } else echo 'Quantity'; ?></label>
                                    <select id="quantity_list" data-mqty="<?php echo $added_item_details[0]['quantity']; ?>">
                                    <?php for($i=1;$i<=$added_item_details[0]['quantity'];$i++) { echo '<option>'.$i.'</option>'; }  ?>
                                    </select>
                                <?php } else if($added_item_details[0]['quantity'] == 1) { ?>
                                	<input type="hidden" id="quantity_list" data-mqty="<?php echo $added_item_details[0]['quantity']; ?>"  />
                                	<label style="float:left; width:100%"><?php if($this->lang->line('prod_only') != '') { echo stripslashes($this->lang->line('prod_only')); } else echo 'Only 1 available'; ?></label>
                                    <?php } else if($added_item_details[0]['quantity'] <= 0) {?>
                                    <label style="float:left; width:100%"><h2 style="color:#F0F"><?php if($this->lang->line('prod_stock') != '') { echo stripslashes($this->lang->line('prod_stock')); } else echo 'Out Of Stock'; ?>!</h2></label>
                                    
                                    <?php }?>
                                </div>
                                <?php if($variations_one!='' && $variations_two!=''){ $var=2;} else if($variations_one!='' || $variations_two!=''){ $var=1; } else { $var=0; } ?>
                                <p id="variation_count" style="display:none;" ><?php echo $var; ?></p>
                                <?php if($variations_one!=''){ ?>
                                <div class="price_left">
                                	<label style="float:left; width:100%" id="var_one"><?php echo $variations_one; ?></label>
                                    <select id="variation_one">
                                    <option value="" selected="selected"><?php if($this->lang->line('user_select') != '') { echo stripslashes($this->lang->line('user_select')); } else echo 'Select'; ?> <?php echo $variations_one; ?></option>
                                    <?php 
									for($i=0;$i<count($variations_one_values);$i++) 
									{ 	
										$val=$variations_one_values[$i]['attr_value'];
										if($variations_one_values[$i]['pricing']){
											$val=$variations_one_values[$i]['attr_value'].' [$'.$variations_one_values[$i]['pricing'].']';
										}
											if($variations_one_values[$i]['stock_status']==0){
												$stock='disabled="disabled"';
												$val.=' - out of stock';
											}
											else{
												$stock='';
											}
										
										echo '<option '.$stock.' >'.$val.'</option>'; 
									} 
									?>
                                    </select>
                                    <span class="error" id="Err_variation_one"></span>
                                </div>
                                <?php } ?>
                                <?php if($variations_two!=''){ ?>
                                <div class="price_left">
                                	<label style="float:left; width:100%"  id="var_two"><?php echo $variations_two; ?></label>
                                    <select id="variation_two" name="variationVal[]">
                                    <option value="" selected="selected"><?php if($this->lang->line('user_select') != '') { echo stripslashes($this->lang->line('user_select')); } else echo 'Select'; ?> <?php echo $variations_two; ?></option>
                                    <?php 
									for($i=0;$i<count($variations_two_values);$i++) 
									{ 
										$val1=$variations_two_values[$i]['attr_value'];
										if($variations_two_values[$i]['pricing']){											
											$val1=$variations_two_values[$i]['attr_value'].' [$'.$variations_two_values[$i]['pricing'].']';
										}
											if($variations_two_values[$i]['stock_status']==0){
												$stock1='disabled="disabled"';
												$val1.=' - out of stock';
											}
											else{
												$stock1='';
											}
										
										echo '<option '.$stock1.'>'.$val1.'</option>'; } 
									?>
                                    </select>
                                    <span class="error" id="Err_variation_two"></span>
                                </div>
                                <?php } ?>
                                <ul class="properties">
                                	<h3><?php if($this->lang->line('shop_overview') != '') { echo stripslashes($this->lang->line('shop_overview')); } else echo 'Overview'; ?></h3>
                                	<li>
                                    <?php 
                                            //if($added_item_details[0]['made_by']==1){ echo 'Handmade';}else
                                            //if($added_item_details[0]['made_by']==2){ echo 'Vintage';}else if($added_item_details[0]['made_by']==3){ echo 'Vintage Handmade';} 
											
											if($added_item_details['0']['made_by']==1){ if($this->lang->line('shop_handmad') != '') { echo stripslashes($this->lang->line('shop_handmad')); } else echo 'Handmade';}else
											if($added_item_details['0']['made_by']==2){ if($this->lang->line('shop_vint') != '') { echo stripslashes($this->lang->line('shop_vint')); } else echo 'Vintage';}else if($added_item_details['0']['made_by']==3){ if($this->lang->line('shop_vintagehandmade') != '') { echo stripslashes($this->lang->line('shop_vintagehandmade')); } else echo 'Vintage Handmade';} 
                                        ?> 
                                    <?php if($this->lang->line('user_item_var') != '') { echo stripslashes($this->lang->line('user_item_var')); } else echo 'Item'; ?>                                    
                                    </li>
                                    <?php if($added_item_details[0]['materials']!=''){ ?><li><?php if($this->lang->line('shop_materials') != '') { echo stripslashes($this->lang->line('shop_materials')); } else echo 'Materials'; ?>:<?php $material=explode(',',$added_item_details[0]['materials']); foreach($material as $materialList){ echo $materialList.', ';}?></li><?php } ?>
                                    <!--<li>Feedback: <a href="#"><?php //echo $productDetails->row()->comment_count;?> reviews</a></li>-->
                                    <li><?php if($this->lang->line('shop_ships') != '') { echo stripslashes($this->lang->line('shop_ships')); } else echo 'Ships'; ?> <?php if(strpos($added_item_details[0]['ship_details'],'Everywhere Else') != false){ echo 'worldwide';} ?> <?php if($this->lang->line('shop_from') != '') { echo stripslashes($this->lang->line('shop_from')); } else echo 'from'; ?> <?php echo $added_item_details[0]['ship_from']; ?></li>
                                </ul>
                                <!--<div class="pay-method">
                                	<span class="gift-icon"></span>
                                	<label>This shop accepts <?php echo $this->config->item('email_title'); ?> Gift Cards</label>
                                </div>-->
                            </div>
                            <div class="detailbutton_list">

	                            <?php if($variations_one!=''){?>
                                    <input type="hidden" name="variationName[]" id="variation_one_name" value="<?php echo $variations_one; ?>" />                                
                                    <input type="hidden" name="variationVal[]" id="variation_one_val" value="" />
                                <?php } ?>
                                <?php if($variations_two!=''){?>
                                    <input type="hidden" name="variationName[]" id="variation_two_name" value="<?php echo $variations_two; ?>" />
                                    <input type="hidden" name="variationVal[]" id="variation_two_val" value="" />                                
                                <?php } ?>
                                <?php if($variations_one == '' && $variations_two == '' && $subProduct->row()->digital_item!=''){?>
                                <input type="hidden" name="digital_files" id="digital_files" value="<?php echo $subProduct->row()->digital_item; ?>" /> 
                                <?php }else{ ?>  
                                <input type="hidden" name="digital_files" id="digital_files" value="" /> 
                                <?php } ?>
                                    <input type="hidden" name="product_id" id="product_id" value="<?php echo $added_item_details[0]['id'];?>">               
                                    <input type="hidden" name="seller_id" id="sell_id" value="<?php echo $selectedSeller_details[0]['seller_id']; ?>">
                                    <input type="hidden" name="price" id="price" value="<?php echo $price_tot; ?>">
                                    <input type="hidden" name="qty" id="qty" value="1">
                                    <input class="btn-transaction" id="add_to_cart" type="submit" value="Add to Cart" onclick="return ajax_add_cart();" <?php if($added_item_details[0]['quantity'] <= 0) { echo 'disabled="disabled"'; } ?>  />

                        	</div>
                        </div>
                        <div class="detail_right" style="margin:25px 0 10px 20px; background:#EFEFEB">
                        	<div class="detail_right_inner">
                            		<div class="fav-btn" style="margin:0">
                                    <?php if($loginCheck !=''){
									$favArr = $this->product_model->getUserFavoriteProductDetails(stripslashes($added_item_details[0]['id']));
									#print_r($favArr); die;
									if(empty($favArr)){ ?>
									<a href="javascript:void(0);" onclick="return changeProductToFavourite('<?php echo stripslashes($added_item_details[0]['id']); ?>','Fresh');">
										<span class="fav-icon"></span>
										   <span class="status-txt"><?php if($this->lang->line('user_favorite') != '') { echo stripslashes($this->lang->line('user_favorite')); } else echo 'Favorite'; ?></span>
									</a>
									<?php  } else { ?>                        
									<a href="javascript:void(0);" onclick="return changeProductToFavourite('<?php echo stripslashes($added_item_details[0]['id']); ?>','Old');">
										<span class="fav-icon-sel"></span>
										<span class="status-txt"><?php if($this->lang->line('user_favorite') != '') { echo stripslashes($this->lang->line('user_favorite')); } else echo 'Favorite'; ?></span>
									</a>
									<?php }} else { ?>
									<a href="javascript:void(0);" onclick="return changeProductToFavourite('<?php echo stripslashes($added_item_details[0]['id']); ?>','Fresh');">
										<span class="fav-icon"></span>
										   <span class="status-txt"><?php if($this->lang->line('user_favorite') != '') { echo stripslashes($this->lang->line('user_favorite')); } else echo 'Favorite'; ?></span>
									</a>
									<?php  } ?> 
                                    </div>
                                    <a class="count_num" href="product/<?php echo $added_item_details[0]['seourl']; ?>/favoriters"><?php echo count($ProductFavoriteCount); ?></a>
                                    <div class="fav-btn " style="margin:0">
                                        <a href="javascript:hoverView('1');">
                                            <span class="eq-icon"></span>
                                            <span class="status-txt"><?php if($this->lang->line('shop_addto') != '') { echo stripslashes($this->lang->line('shop_addto')); } else echo 'Add to'; ?></span>
                                            <span class="down-icon"></span>
                                        </a>
                                    </div>
                                    <div id="hoverlist1"  style="left:711px;" class="hover_lists">
                                        <h2><?php if($this->lang->line('user_your_lists') != '') { echo stripslashes($this->lang->line('user_your_lists')); } else echo 'Your Lists'; ?></h2>
                                        		<div class="lists_check">
                                                	<?php foreach($userLists as $Lists){ 
													$haveListIn = $this->user_model->check_list_products(stripslashes($added_item_details[0]['id']),$Lists['id'])->num_rows();
													#echo $haveListIn;
													if($haveListIn>0){$chk='checked="checked"';}else{ $chk='';}
													?>
                                                    <input type="checkbox" class="check_box" onclick="return addproducttoList('<?php echo $Lists['id']; ?>','<?php echo stripslashes($added_item_details[0]['id']); ?>');" <?php echo $chk; ?> />
                                                    <label><?php echo $Lists['name']; ?></label>
                                                    <?php } ?>
                                                    
                                                    <?php if(!empty($userRegistry)){ 
													$haveRegisryIn = $this->user_model->check_registry_products($added_item_details[0]['id'],$userRegistry->user_id)->num_rows();
													if($haveRegisryIn>0){$chk='checked="checked"';}else{ $chk='';}
													?>
                                                    <input type="checkbox" class="check_box" onclick="return manageRegisrtyProduct('<?php echo $userRegistry->user_id; ?>','<?php echo $added_item_details[0]['id']; ?>');" <?php echo $chk; ?> />
                                                    <label><span class="registry_icon"></span><?php if($this->lang->line('prod_wedding') != '') { echo stripslashes($this->lang->line('prod_wedding')); } else echo 'Wedding Registry'; ?></label>
                                                    <?php }  ?>
                                                    
                                               	</div>                                                    
                                                <div class="new_list">
                                                    <form method="post" action="site/user/add_list">
                                                        <input type="hidden" value="1" name="ddl" />
                                                        <input type="hidden" value="<?php echo $added_item_details[0]['id']; ?>" name="productId" />
                                                        <input type="text" placeholder="<?php if($this->lang->line('user_new_list') != '') { echo stripslashes($this->lang->line('user_new_list')); } else echo 'New list'; ?>" class="list_scroll" name="list" id="creat_list_<?php echo $i; ?>" />
                                                        <input type="submit" value="<?php if($this->lang->line('user_add') != '') { echo stripslashes($this->lang->line('user_add')); } else echo 'Add'; ?>" class="primary-button" onclick="return validate_create_list('<?php echo $i; ?>');" />
                                                    </form>
                                                </div>
                                    </div>
                                    
                            </div>
                            <!-- AddThis Button BEGIN -->
                            <div class="addthis_toolbox addthis_default_style ">
                                <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
                                <a class="addthis_button_tweet"></a>
                                <a class="addthis_button_pinterest_pinit" pi:pinit:layout="horizontal"></a>
                                <a class="addthis_counter addthis_pill_style"></a>
                            </div>
                            <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-50ab628f64d148de"></script>
                            <!-- AddThis Button END -->
                        </div>                        
                        <div style="background:#E5F4F7" class="detail_right">
                        	<div class="detail_right_inner">
                            	<div class="shop-info">
                                	<div class="shop-img">
                                    	<a href="javascript:void(0);"><img src="images/users/thumb/<?php echo $Pro_pic; ?>" width="50" height="50" /></a>
                                    </div>
                                    <div class="shop-name">
                                    <a href="shop-section/<?php echo $selectedSeller_details[0]['seourl']; ?>"><?php echo $selectedSeller_details[0]['seller_businessname']; ?></a>
                                    </div>
                                    <?php if($selectedSeller_details[0]['city'].trim()!='') { ?>
                                    <span class="ship-label"><span><?php if($this->lang->line('prod_in') != '') { echo stripslashes($this->lang->line('prod_in')); } else echo 'in'; ?></span> <?php echo $selectedSeller_details[0]['city']; ?></span>
                                    <?php } ?>
                                </div>
                                <ul class="product_listing1">                               	
									<?php if(count($shopProductDetails)<6){$c=count($shopProductDetails);}else{ $c=6; } 
                                    for($i=0;$i<$c;$i++){ 
                                    $imgArry=explode(',',$shopProductDetails[$i]['image']);
									if($shopProductDetails[$i]['price']!=0){$price=$currencyValue*$shopProductDetails[$i]['price'];}else{$price=$currencyValue*$shopProductDetails[$i]['pricing'].'+';}
                                    ?>
                                	<li>                                    
                                        <div class="product_img">
                                        	<div class="product_hide">
                                    	<div class="product_fav">
                                            <?php if($loginCheck !=''){
											$favArr = $this->product_model->getUserFavoriteProductDetails(stripslashes($shopProductDetails[$i]['id']));
											#print_r($favArr); die;
											if(empty($favArr)){ ?>
											<a href="javascript:void(0);" onclick="return changeProductToFavourite('<?php echo stripslashes($shopProductDetails[$i]['id']); ?>','Fresh');">
												<input type="submit" value="" class="hoverfav_icon" />
											</a>
											<?php  } else { ?>                        
											<a href="javascript:void(0);" onclick="return changeProductToFavourite('<?php echo stripslashes($shopProductDetails[$i]['id']); ?>','Old');">
												<input type="submit" value="" class="hoverfav_icon1" />
											</a>
											<?php }} else { ?>
											<a href="login"  >
												<input type="submit" value="" class="hoverfav_icon" />
											</a>
											<?php  } ?>                                             
                                            <div class="hoverdrop_icon" >
                                    		<a href="javascript:hoverView('<?php echo $i; ?>');">  </a>
                                        	<div class="hover_lists" id="hoverlist<?php echo $i; ?>" >
                                               	<h2><?php if($this->lang->line('user_your_lists') != '') { echo stripslashes($this->lang->line('user_your_lists')); } else echo 'Your Lists'; ?></h2>
                                                <div class="lists_check">
                                                	<?php foreach($userLists as $Lists){ 
													$haveListIn = $this->user_model->check_list_products(stripslashes($shopProductDetails[$i]['id']),$Lists['id'])->num_rows();
													#echo $haveListIn;
													if($haveListIn>0){$chk='checked="checked"';}else{ $chk='';}
													?>
                                                    <input type="checkbox" class="check_box" onclick="return addproducttoList('<?php echo $Lists['id']; ?>','<?php echo stripslashes($shopProductDetails[$i]['id']); ?>');" <?php echo $chk; ?> />
                                                    <label><?php echo $Lists['name']; ?></label>
                                                    <?php } ?>
                                                    </div>                                                    
                                                    <div class="new_list">
                                                    <form method="post" action="site/user/add_list">
                                                        <input type="hidden" value="1" name="ddl" />
                                                        <input type="hidden" value="<?php echo $shopProductDetails[$i]['id']; ?>" name="productId" />
                                                        <input type="text" placeholder="<?php if($this->lang->line('user_new_list') != '') { echo stripslashes($this->lang->line('user_new_list')); } else echo 'New list'; ?>" class="list_scroll" name="list" id="creat_list_<?php echo $i; ?>" />
                                                        <input type="submit" value="<?php if($this->lang->line('user_add') != '') { echo stripslashes($this->lang->line('user_add')); } else echo 'Add'; ?>" class="primary-button" onclick="return validate_create_list('<?php echo $i; ?>');" />
                                                    </form>
                                                </div>
                                        	</div>
                                    	
                                   	</div>
                                        </div>
                                    </div>
                                            <a href="products/<?php echo $shopProductDetails[$i]['seourl']; ?>">
                                            	<img src="images/product/thumb/<?php echo $imgArry[0] ?>" alt="<?php echo $shopProductDetails[$i]['product_name']; ?>" title="<?php echo $shopProductDetails[$i]['product_name']; ?>" />
                                            </a>
                                        </div>
                                        <div class="product_title">
                                        	<a href="products/<?php echo $shopProductDetails[$i]['seourl']; ?>"><?php echo $shopProductDetails[$i]['product_name']; ?></a>
                                        </div>
                                        <div class="product_price left">
                                            <span class="currency_value"><?php echo $currencySymbol; echo number_format($price,2); ?></span>
                                            <span class="currency_code"><?php echo $currencyType;?></span>
                                        </div>
                                    </li>    
                                	<?php } ?>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>      
            </div>
        
			<div class="main detail-relate">
    <div class="related-item">
    	<?php if($added_item_details[0]['tag']!=''){ ?>
        <h2><?php if($this->lang->line('shop_relateditem') != '') { echo stripslashes($this->lang->line('shop_relateditem')); } else echo 'Related to this Item'; ?></h2>
        <ul class="relatedlist">
        	<?php $Related=explode(',',$added_item_details[0]['tag']) ?>
            <?php foreach($Related as $tag){?>
        	<li><a href="market/<?php echo url_title($tag); ?>"><?php echo $tag; ?></a></li> 
            <?php } ?>                                  
        </ul>
        <?php } ?>
        <ul class="listed0n">
            <li><?php if($this->lang->line('prod_listed') != '') { echo stripslashes($this->lang->line('prod_listed')); } else echo 'Listed on'; ?> <?php echo $added_item_details[0]['created']; ?></li>
            <li> <?php echo $added_item_details[0]['view_count']; ?> <?php if($this->lang->line('shopsec_views') != '') { echo stripslashes($this->lang->line('shopsec_views')); } else echo 'views'; ?> </li>
            <li>
                <a href="product/<?php echo $added_item_details[0]['seourl']; ?>/favoriters"> <?php echo count($ProductFavoriteCount); ?> <?php if($this->lang->line('user_favorites') != '') { echo stripslashes($this->lang->line('user_favorites')); } else echo 'Favorites'; ?> </a>
            </li>
            <!--<li>
                <a href="#"> 4 Treasury lists </a>
            </li>
            <li id="add-treasury-item">
                <a href="#"> Add item to treasury </a>
            </li>-->
            <li class="last">
			<?php if($loginCheck!=''){ ?>
            <a class="detailreport-popup" href="#"><?php if($this->lang->line('prod_report') != '') { echo stripslashes($this->lang->line('prod_report')); } else echo 'Report this item to'; ?> <?php echo $this->config->item('email_title'); ?></a>
			<?php }else{?> 
            
            <form action="login" method="get" id="my_form">
                <input type="hidden" value="<?php echo 'products/'.$added_item_details[0]['seourl']; ?>" name="action" />
                <a onclick="document.getElementById('my_form').submit();"><?php if($this->lang->line('prod_report') != '') { echo stripslashes($this->lang->line('prod_report')); } else echo 'Report this item to'; ?> <?php echo $this->config->item('email_title'); ?></a>
            </form>
            <?php } ?>
            </li>
        </ul>
    </div>
</div>

 
 
       	<div  class="main"> 
        <?php 
			/******Load the footer category list for this shop preview page*********/
			$this->load->view('site/templates/footer_extra_content_category');
			
			?>      
                
         </div>  
 
	

</section>
    <div style='display:none'>
        <div id='ask_reg' style='background:#fff;'>  
            <div class="conversation">
                <div class="conversation_container">
                    <h2 class="conversation_headline"><?php if($this->lang->line('new_conversation') != '') { echo stripslashes($this->lang->line('new_conversation')); } else echo 'New conversation with'; ?> <?php echo ucfirst($selectedSeller_details[0]['full_name']); ?>' <?php if($this->lang->line('shop_from') != '') { echo stripslashes($this->lang->line('shop_from')); } else echo 'from'; ?> <?php echo ucfirst($selectedSeller_details[0]['seller_businessname']); ?></h2>
                    <div class="conversation_thumb">
                        <img width="75" height="75" src="images/users/thumb/<?php echo $Pro_pic; ?>">
                    </div>
                    <div class="conversation_right">
                        <form name="contactshopowener" id="contactshopowener" method="post" action="site/user/prddetailaskQues">
                        <input type="hidden" name="productseourl" id="productseourl" value="<?php echo $added_item_details[0]['seourl']; ?>" >
                            <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'; ?>" value="<?php echo $added_item_details[0]['product_name']; ?>">
                            <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'; ?>"><?php if($this->lang->line('prod_product') != '') { echo stripslashes($this->lang->line('prod_product')); } else echo 'Product'; ?>: '<?php echo base_url().'products/'.$added_item_details[0]['seourl']; ?>'</textarea>
                            <input type="hidden" name="productid" id="productid" value="<?php echo $added_item_details[0]['id']; ?>" >
                            <input type="hidden" name="productname" id="productname" value="<?php echo $added_item_details[0]['product_name']; ?>" >
                            <input type="hidden" name="username" id="username" value="<?php echo $this->session->userdata['shopsy_session_user_name']; ?>" >
                            <input type="hidden" name="useremail" id="useremail" value="<?php echo $this->session->userdata['shopsy_session_user_email']; ?>" >
                            <input type="hidden" name="userid" id="userid" value="<?php echo $this->session->userdata['shopsy_session_user_id']; ?>" >
                            <input type="hidden" name="selleremail" id="selleremail" value="<?php echo $selectedSeller_details[0]['seller_email']; ?>" >
                            <input type="hidden" name="sellerid" id="sellerid" value="<?php echo $selectedSeller_details[0]['seller_id']; ?>" >
                            <input type="hidden" name="subject_name" id="subject_name" value="New conversation with <?php echo ucfirst($selectedSeller_details[0]['full_name']); ?>' from <?php echo ucfirst($selectedSeller_details[0]['seller_businessname']); ?>">
                            <input class="subscribe_btn" type="submit" value="<?php if($this->lang->line('user_send') != '') { echo stripslashes($this->lang->line('user_send')); } else echo 'send'; ?>" style="height: auto; padding: 7px 10px; margin: 10px 0 7px 20px; font-weight: bold;">
                        </form>		
                    </div> 
                </div>
            </div>
        </div>
	</div>
    
    <div style='display:none'>
        <div id='detailreport_reg' style='background:#fff;'>  
            <div class="conversation">
                <div class="conversation_container">
                <form action="spam-report" name="span-form" method="post" onsubmit="return validate_spamreport();">
                    <h5 class="reportspan-head"><?php if($this->lang->line('shopsec_spam') != '') { echo stripslashes($this->lang->line('shopsec_spam')); } else echo 'Report Spam'; ?></h5><br /><br />
                    <p style="margin:0 0 0 5px"><a target="_blank" href="pages/intellectual-property-policy"><?php if($this->lang->line('shopsec_property') != '') { echo stripslashes($this->lang->line('shopsec_property')); } else echo 'This is my intellectual property'; ?>.</a><br />
                    <a target="_blank" href="pages/report-a-problem"><?php if($this->lang->line('shopsec_ordered') != '') { echo stripslashes($this->lang->line('shopsec_ordered')); } else echo 'I ordered this item and have not received it'; ?>.</a>
                    </p>
                    <ul> 
                        <li>
                            <input type="radio" value="The item may not comply with <?php echo $this->config->item('email_title'); ?>'s handmade guidelines" name="spam_title" class="spamchk">
                            <label> <?php if($this->lang->line('shopsec_comply') != '') { echo stripslashes($this->lang->line('shopsec_comply')); } else echo 'The item may not comply with'; ?> <a target="_blank" href="pages/guidelines"><?php echo $this->config->item('email_title'); ?><?php if($this->lang->line('shopsec_guidelines') != '') { echo stripslashes($this->lang->line('shopsec_guidelines')); } else echo "'s handmade guidelines"; ?></a> . </label>
                        </li>
                        <li>
                            <input  type="radio" value="The item may not be vintage" name="spam_title" class="spamchk">
                            <label> <?php if($this->lang->line('shopsec_maynot') != '') { echo stripslashes($this->lang->line('shopsec_maynot')); } else echo "The item may not be"; ?> <a target="_blank" href="pages/<?php echo $this->config->item('email_title'); ?>-guidelines"><?php if($this->lang->line('shopsec_vintage') != '') { echo stripslashes($this->lang->line('shopsec_vintage')); } else echo 'vintage'; ?></a> <?php if($this->lang->line('shopsec_years') != '') { echo stripslashes($this->lang->line('shopsec_years')); } else echo "(20+ years old)"; ?>. </label>
                        </li>
                        <li>
                            <input  type="radio" value="The item is not a supply for crafting or shipping" name="spam_title" class="spamchk">
                            <label> <?php if($this->lang->line('shopsec_itemnot') != '') { echo stripslashes($this->lang->line('shopsec_itemnot')); } else echo "The item is not a"; ?> <a target="_blank" href="pages/guidelines"><?php if($this->lang->line('shopsec_supply') != '') { echo stripslashes($this->lang->line('shopsec_supply')); } else echo "supply for crafting or shipping"; ?></a> . </label>
                        </li>
                        <li>
                            <input type="radio" value="The item may be prohibited on <?php echo $this->config->item('email_title'); ?>." name="spam_title" class="spamchk">
                            <label > <?php if($this->lang->line('shopsec_itemmay') != '') { echo stripslashes($this->lang->line('shopsec_itemmay')); } else echo "The item may be"; ?> <a target="_blank" href="pages/prohibited-items"><?php if($this->lang->line('prod_prohibited') != '') { echo stripslashes($this->lang->line('prod_prohibited')); } else echo "prohibited"; ?></a> <?php if($this->lang->line('shop_on') != '') { echo stripslashes($this->lang->line('shop_on')); } else echo "on"; ?> <?php echo $this->config->item('email_title'); ?>. </label>
                        </li>
                        <li>
                            <input  type="radio" value="The listing is not labeled as mature content." name="spam_title" class="spamchk">
                            <label><?php if($this->lang->line('shopsec_labeled') != '') { echo stripslashes($this->lang->line('shopsec_labeled')); } else echo "The listing is not labeled as"; ?> <a target="_blank" href="pages/guidelines"><?php if($this->lang->line('prod_content') != '') { echo stripslashes($this->lang->line('prod_content')); } else echo "mature content"; ?></a> . </label>
                        </li>
                        
                        <input type="hidden" name="p_id" value="<?php echo $added_item_details[0]['id']; ?>" id="p_id" />
                        <input type="hidden" name="s_id" value="" id="s_id" />
                        <input type="hidden" name="p_seourl" value="<?php echo $added_item_details[0]['seourl']; ?>" id="p_seourl" />
                         
                    </ul>
                    <textarea name="complaint" placeholder="<?php if($this->lang->line('shopsec_violates') != '') { echo stripslashes($this->lang->line('shopsec_violates')); } else echo "Please explain why this item violates"; ?> <?php echo $this->config->item('email_title'); ?> <?php if($this->lang->line('shopsec_policy') != '') { echo stripslashes($this->lang->line('shopsec_policy')); } else echo "Policies"; ?>." id="spam_text"></textarea>
                    <center><span class="error" id="spamErr"></span></center>
                    <div class="button_group">
                    <!--<input class="subscribe_btn conversation-popup cboxElement" type="button" style="background-color: #A0A0A0; border-color: #BEBEBE #B3B3B3 #9E9E9E; padding:0 10px; margin:2px 2px 10px 10px;;" value="Cancel">-->
                    	<input class="subscribe_btn conversation-popup" type="submit" style="padding:0 10px; margin:2px 2px 10px 10px;;" value="<?php if($this->lang->line('shopsec_spam') != '') { echo stripslashes($this->lang->line('shopsec_spam')); } else echo "Report Spam"; ?>">
                    </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
         
        <div style='display:none'>
        <div id='contact_reg' style=' background: none repeat scroll 0 0 rgba(0, 0, 0, 0.3); border-radius:8px; padding:15px'>
            <div style="background:#fff;border-radius:8px;"> 
                <div class="contact_reg-header">
                    <h2><?php if($this->lang->line('confirm_acct') != '') { echo stripslashes($this->lang->line('confirm_acct')); } else echo 'Hold on! You still need to confirm your account.'; ?></h2>
                    <div class="contact_reg-body">
                        <p><?php if($this->lang->line('confirmation_email') != '') { echo stripslashes($this->lang->line('confirmation_email')); } else echo "We'll resend your confirmation email to"; ?> <?php echo $this->session->userdata['shopsy_session_user_email'];?>.</p>
                    </div>
                </div>
                <div class="contact_reg-footer">
                    <span><input class="resending" type="button" value="<?php if($this->lang->line('user_cancel') != '') { echo stripslashes($this->lang->line('user_cancel')); } else echo 'Cancel'; ?>" onclick="javascript:$('#cboxClose').trigger('click');"></span> 
                    <span><input class="resending" type="submit" value="<?php if($this->lang->line('prod_resend') != '') { echo stripslashes($this->lang->line('prod_resend')); } else echo 'Resend Email'; ?>" onClick="return resendConfirmationPopUp('<?php echo $this->session->userdata['shopsy_session_user_email'];?>');"></span>
                </div>
            </div>         
        </div>
    </div> 
         <style>
         #cboxLoadedContent{background:none;}
         #ask_reg .conversation {
    width: 97%;
}


#ask_reg .conversation_container {
    background: none repeat scroll 0 0 #FFFFFF;
    float: left;
    padding: 20px 0 0 11px;
    width: 98.5%;
}
         </style>

<!--<div class="detail-page-image" style='display:none'>
	<div id='detail-image_reg' style='background:#fff;'> 
				<img src="images/product/<?php echo $imageArr[0]; ?>" width="550" height="350" />
	</div>
</div>-->


<?php $this->load->view('site/templates/footer'); ?>