<?php $this->load->view('site/templates/commonheader'); $this->load->view('site/templates/header'); $this->load->model('user_model');?>
<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<!--[if lt IE 9]>
<script src="js/html5shiv/dist/html5shiv.js"></script>
<![endif]-->
<script src="js/plugin.js" type="text/javascript"></script>
<script type="text/javascript">
		$(document).ready(function() {
			$('.slidewrap').carousel({
				slider: '.slider',
				slide: 'li',
				nextSlide: '.next',
				prevSlide: '.prev',
				speed: 1000 // ms.
			});
		});

</script>


<script type="text/javascript" src="js/jcarousellite_1.0.1.pack.js"></script>

<script type="text/javascript">
		$(function() {
    		$(".slider_2").jCarouselLite({
        		btnNext: ".next_2",
        		btnPrev: ".prev_2",
				auto: false,
    			speed: 1000,
        		visible: 2
    		});
		});
		
		function shop_announcment_close()
		{
			$("#cboxClose").trigger('click');
		}
		

</script>

<script src="js/jquery.colorbox.js"></script>
<script>
$(document).ready(function(){

		$(".cboxClose1").click(function(){
			$("#cboxOverlay,#colorbox").hide();
			});
		
			
			$(".reg-popup").colorbox({width:"580px", height:"auto", inline:true, href:"#inline_reg"});
			$(".report-popup").colorbox({width:"630px", height:"auto", inline:true, href:"#report_reg"});
			$(".contact_shop_owner-popup").colorbox({width:"708px", height:"auto", inline:true, href:"#contact_shop_owner"});
						
			$(".reg-popup2").colorbox({width:"520px", height:"auto", inline:true, href:"#inline_reg2"});
			//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>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>



<style>
#cboxLoadedContent {
    background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
	</style>

     
  <!----------------------------------------------- new popup cms ----------------------->
  <div style='display:none'>
  <div id='inline_reg2' style='background:#fff;'>  
	 
    <div class="popup_tab_content border_popup">
    
        
        <div style=" padding: 25px 10px; width: 95.8%;" class="popup-body">
        	 <?php echo strip_tags(stripslashes($get_seller_details['shop_announcement'])); ?>
        </div>
        
        <div class="POPUP-footer">
                    <a class="PRIMARY_BUTTON" href="javascript:void(0);" onclick="shop_announcment_close();">
                    <span><?php if($this->lang->line('shopsec_close') != '') { echo stripslashes($this->lang->line('shopsec_close')); } else echo 'Close'; ?></span>
                    </a>
        </div>
        
        
        
    </div>  
         
  </div>
  
</div>
  <section>
    	<div class="main">
        	<div class="container">
            <ul class="breadcrumb_top">
            <li><a href="#"><?php if($this->lang->line('user_home') != '') { echo stripslashes($this->lang->line('user_home')); } else echo 'Home'; ?></a></li>
            <li>></li>
            <li><?php echo $this->uri->segment(2);?></li>
            </ul>
            		<div class="left_side">
                	<div class="browse">
                    	<h2><?php if($this->lang->line('shopsec_shop') != '') { echo stripslashes($this->lang->line('shopsec_shop')); } else echo 'Shop Sections'; ?></h2>
                        <ul>
                            <li><a href="<?php echo base_url().'shop-section/'.$this->uri->segment(2); ?>"><?php if($this->lang->line('shopsec_shophome') != '') { echo stripslashes($this->lang->line('shopsec_shophome')); } else echo 'Shop home'; ?><span><?php echo stripslashes($totProduct); ?> <?php if($this->lang->line('user_items') != '') { echo stripslashes($this->lang->line('user_items')); } else echo 'items'; ?></span></a></li>
                            <?php foreach($get_shop_section_list as $shop_section_list_dtls) { 
							/*if($_GET['search_query'] != '')
							{*/
								$shop_link = base_url().'shop-section/'.$this->uri->segment(2).'?section_id='.$shop_section_list_dtls['section_id'];
							/*}
							else
							{
								$shop_link = base_url().'shop-section/'.$this->uri->segment(2).'?section_id='.$shop_section_list_dtls['section_id'];
							}*/
							
							if($shop_section_list_dtls['shop_prod_count'] != 0 && $shop_section_list_dtls['shop_prod_count'] != '') { 
							?>
                            	<li><a href="<?php echo $shop_link; ?>"><?php echo stripslashes($shop_section_list_dtls['section_name']); ?><span><?php echo stripslashes($shop_section_list_dtls['shop_prod_count']); ?></span></a></li>
                               <?php } } ?>
                        </ul>
                    </div>
                         <div class="email_subscribe">
                    	<h2><?php if($this->lang->line('user_shop_owner') != '') { echo stripslashes($this->lang->line('user_shop_owner')); } else echo 'Shop Owner'; ?></h2>
                        <?php
						$owner_thumnail = 'dummyProductImage.jpg';						
						if ($get_shop_owner_info['thumbnail'] != ''){
							$owner_thumnail = $get_shop_owner_info['thumbnail'];
						}
						else{
							$owner_thumnail = 'profile_pic.png';
						}
						?>
                        <?php if ($get_shop_owner_info['thumbnail'] != ''){ ?>
                        	<a href="view-people/<?php echo stripslashes($get_shop_owner_info['user_name']); ?>"><img  width="120" height="120"  src="images/users/thumb/<?php echo $owner_thumnail;?>" /></a>
                        <?php } else { ?>
                       		 <a href="view-people/<?php echo stripslashes($get_shop_owner_info['user_name']); ?>"><img  width="120" height="120"  src="images/users/thumb/profile_pic.png" /></a>
                        <?php } ?>
                        
                        <a class="names-it" href="view-people/<?php echo stripslashes($get_shop_owner_info['user_name']); ?>"><?php echo stripslashes($get_shop_owner_info['full_name'])." ".stripslashes($get_shop_owner_info['last_name']);?>  </a>
                        <div class="places"> <?php echo stripslashes($get_shop_owner_info['city']);?> <?php if($get_shop_owner_info['country'] != '') echo " , ".stripslashes($get_shop_owner_info['country']);?> </div>
                       <div class="contact-detail">
                        <p><b><?php if($this->lang->line('shopsec_question') != '') { echo stripslashes($this->lang->line('shopsec_question')); } else echo 'Have a question'; ?>?</b></p>
                        <a class="contact_shop_owner-popup" href="#"><?php if($this->lang->line('shopsec_contact') != '') { echo stripslashes($this->lang->line('shopsec_contact')); } else echo 'Contact the shop owner'; ?></a>
                       </div>
                          <!--<p><b>Need a custom order?</b></p>
                        <input type="submit" value="Request Custom Order" class="subscribe_btn" />-->
                    </div>
                    <div class="email_subscribe">
                    	<h2><?php if($this->lang->line('shopsec_shopinfo') != '') { echo stripslashes($this->lang->line('shopsec_shopinfo')); } else echo 'Shop Info'; ?></h2>                        
                        <a class="names-it" href="<?php echo base_url().$this->uri->segment(1).'/'.$this->uri->segment(2); ?>"><span class="newimages"></span><?php echo stripslashes($get_seller_details['seller_businessname']); ?></a>
                        <div class="places"> <?php if($this->lang->line('shopsec_openedon') != '') { echo stripslashes($this->lang->line('shopsec_openedon')); } else echo 'Opened on'; ?> <?php echo date("d M, Y",strtotime($get_seller_details['created'])); ?> </div>                        
                        <div class="art">
                            <ul>
                            <li><a href="<?php echo base_url().$this->uri->segment(1).'/'.$this->uri->segment(2).'/about'; ?>"><?php if($this->lang->line('user_about') != '') { echo stripslashes($this->lang->line('user_about')); } else echo 'About'; ?></a></li>                    
                            <li><a href="<?php echo base_url().$this->uri->segment(1).'/'.$this->uri->segment(2).'/policy'; ?>"><?php if($this->lang->line('shopsec_policy') != '') { echo stripslashes($this->lang->line('shopsec_policy')); } else echo 'Policies'; ?></a></li>   
                            <li>
                            <a href="<?php echo base_url().$this->uri->segment(1).'/'.$this->uri->segment(2).'/reviews'; ?>"><?php if($this->lang->line('shopsec_reviews') != '') { echo stripslashes($this->lang->line('shopsec_reviews')); } else echo 'Reviews'; ?><br />
                            <span class="reviews">
                                <div class="stars small" style="width: <?php echo $get_shop_owner_info['shop_ratting']*17.2 ?>px !important;"> </div>
                            </span>    
                            <span class="reviews-numbers">
                                <span class="review-num">(<?php echo $get_shop_owner_info['review_count']; ?>)</span>
                            </span>
                            </a>
                            </li>
                            <li><a href="<?php echo base_url().$this->uri->segment(1).'/'.$this->uri->segment(2).'/sales'; ?>"><?php echo count($get_seller_sales_qry); ?> <?php if($this->lang->line('shopsec_sales') != '') { echo stripslashes($this->lang->line('shopsec_sales')); } else echo 'sales'; ?></a></li>
                            <li><a href="shops/<?php echo $this->uri->segment(2); ?>/favoriters"><?php echo $Shopadmirers; ?> <?php if($this->lang->line('shopsec_admirers') != '') { echo stripslashes($this->lang->line('shopsec_admirers')); } else echo 'admirers'; ?></a></li>
                            </ul>
                        </div>
                        
                     
                       
                       </div>
                       
                       
                     <div style="width:85%" class="email_subscribe">
                    
                    	<h2><?php if($this->lang->line('shopsec_actions') != '') { echo stripslashes($this->lang->line('shopsec_actions')); } else echo 'Actions'; ?></h2>
                        
                        <div class="art">
                        <ul>
                     
                    
                          
                           <li><!--<a href="#"><span class="lik_img"></span>Add to favourites</a></li>-->
                           
                             <?php if($loginCheck !=''){
                                        $favArr = $this->product_model->getUserFavoriteShopDetails(stripslashes($get_seller_details['seller_id']));
                                        #print_r($favArr); die;
                                        if(empty($favArr)){ ?>
<a class="favorites" href="javascript:void(0);" onclick="return changeShopToFavourite('<?php echo stripslashes($get_seller_details['seller_id']); ?>','Fresh');">
                                            <input type="submit" value="<?php if($this->lang->line('shopsec_fav') != '') { echo stripslashes($this->lang->line('shopsec_fav')); } else echo 'Add to favourites'; ?>" class="hoverfav_icon" style="width:94% !important;" />
                                        </a>
                                        <?php  } else { ?>                        
                                        <a class="favorites" href="javascript:void(0);" onclick="return changeShopToFavourite('<?php echo stripslashes($get_seller_details['seller_id']); ?>','Old');">
                                            <input type="submit" value="<?php if($this->lang->line('shopsec_fav') != '') { echo stripslashes($this->lang->line('shopsec_fav')); } else echo 'Add to favourites'; ?>" class="hoverfav_icon1" style="width:94% !important;"/>
                                        </a>
                                        <?php }} else { ?>                                        
                                        <form action="login" method="get" id="my_form">
                                            <input type="hidden" value="<?php echo 'shop-section/'.$this->uri->segment(2);  ?>" name="action" />
                                            <a class="favorites" onclick="document.getElementById('my_form').submit();" ><input type="submit" value="<?php if($this->lang->line('shopsec_fav') != '') { echo stripslashes($this->lang->line('shopsec_fav')); } else echo 'Add to favourites'; ?>" class="hoverfav_icon" style="width:94% !important;"/></a>
                                        </form>
                                        
                                        <?php  } ?> 
                           </li>
                           
                         <li><a href="shops/<?php echo $this->uri->segment(2); ?>/favoriters"><span class="lik_img2"></span><?php if($this->lang->line('shopsec_whofav') != '') { echo stripslashes($this->lang->line('shopsec_whofav')); } else echo 'See who favourites this'; ?></a></li>
                          <li><!--<a class="share2" href="#"><span class="twitter-img"></span><span class="twit-label">Tweet</span></a>-->
                          
                          <a href="<?php echo current_url();?>" class="twitter-share-button" data-lang="en" data-count="none"><?php if($this->lang->line('shopsec_tweet') != '') { echo stripslashes($this->lang->line('shopsec_tweet')); } else echo 'Tweet'; ?></a>

                          
                          
                          </li>
                          <li>
                          	<?php if($loginCheck!=''){ ?>
                            <a style="border-top: 1px solid #E2E2E2;" class="report-popup" href="#"><?php if($this->lang->line('shopsec_report') != '') { echo stripslashes($this->lang->line('shopsec_report')); } else echo 'Report this shop 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 'shop-section/'.$this->uri->segment(2);  ?>" name="action" />
                                <a onclick="document.getElementById('my_form').submit();" style="border-top: 1px solid #E2E2E2;"><?php if($this->lang->line('shopsec_report') != '') { echo stripslashes($this->lang->line('shopsec_report')); } else echo 'Report this shop to'; ?> <?php echo $this->config->item('email_title'); ?></a>
                            </form>
                            <?php } ?>
                          
                          
                          </li>   
                          </ul>
                          </div>
                        
                     
                       
                       </div>   
                        
                      
                    
                    </div>
                    
                    
                
               
                
                <div class="right_side">
                
                	<div class="add_listimg">
                    <a><img src="<?php echo base_url()."images/store-banner/".stripslashes($get_seller_details['seller_store_image']); ?>"/></a>
                    </div>
                    
              <div class="liner">      
                    
                    <div class="imgaddres">
                    <div class="imgaddres_left">
                    <a href="shop-section/<?php echo stripslashes($get_seller_details['seller_businessname']); ?>"><?php echo stripslashes($get_seller_details['seller_businessname']); ?></a>
                    <p><?php echo stripslashes($get_seller_details['shop_title']); ?> </p>
                    </div>
                    <div class="imgaddres_right">
                    
                  <!--  <a class="favorites" ><span>Favorite</span></a>-->
                    <?php if($loginCheck !=''){
                                        $favArr = $this->product_model->getUserFavoriteShopDetails(stripslashes($get_seller_details['seller_id']));
                                        #print_r($favArr); die;
                                        if(empty($favArr)){ ?>
                                        <a class="favorites" href="javascript:void(0);" onclick="return changeShopToFavourite('<?php echo stripslashes($get_seller_details['seller_id']); ?>','Fresh');">
                                            <input type="submit" value="" class="hoverfav_icon" />
                                        </a>
                                        <?php  } else { ?>                        
                                        <a class="favorites" href="javascript:void(0);" onclick="return changeShopToFavourite('<?php echo stripslashes($get_seller_details['seller_id']); ?>','Old');">
                                            <input type="submit" value="" class="hoverfav_icon1" />
                                        </a>
                                        <?php }} else { ?>
                                        
                                        <form action="login" method="get" id="my_form">
                                            <input type="hidden" value="<?php echo 'shop-section/'.$this->uri->segment(2);  ?>" name="action" />
                                            <a class="favorites" onclick="document.getElementById('my_form').submit();" ><input type="submit" value="" class="hoverfav_icon" /></a>
                                        </form>
                                        <?php  } ?> 

                    </div>
                    
                    </div>
                    
                    
                     <div class="imgaddres2 reg-popup2">
                     <span class="arrowleft"></span>
                <a class="normal_trigger" href="#">
                <?php echo strip_tags(stripslashes($get_seller_details['shop_announcement'])); ?>
                <span>read more</span>
                </a>
                     </div>
                     
                </div>  
                
                <?php if($get_shop_owner_info['gift_card'] == 'Yes') {$st='style="display:block"'; } else { $st='style="display:none"'; } ?>
                <div style="border:thick #000"  id="giftcardstatus">
                    	<div class="shop-giftcard-callout clear" <?php echo $st;?>>
                            <p>
                            <span class="gc-icon" style="float:left"></span>
                           &nbsp;<img src="images/gift1.png" /> <span><?php if($this->lang->line('shopsec_accepts') != '') { echo stripslashes($this->lang->line('shopsec_accepts')); } else echo 'This shop accepts'; ?> <?php echo $this->config->item('email_title'); ?> <?php if($this->lang->line('giftcard_cards') != '') { echo stripslashes($this->lang->line('giftcard_cards')); } else echo 'Gift Cards'; ?>.</span>
                            </p>
                        </div>
                   </div>
                
                     
                     <?php  if($this->uri->segment(3) == 'about')
							{
								$this->load->view('site/shop-section/shop_section_about');
							} else  if($this->uri->segment(3) == 'policy')
							{
								$this->load->view('site/shop-section/shop_section_policy');
							} else if($this->uri->segment(3) == 'reviews')
							{
								$this->load->view('site/shop-section/shop_section_review');
							}else { ?>
               <div class="listings-title">
               <form method="post" name="shop_section_search" id="shop_section_search" action="site/shop_section/shop_section_search_form" autocomplete="off">
                   <input class="text_box" type="text" placeholder="Search in this shop" name="search_query" id="search_query" value="<?php echo $_GET['search_query'];?>">
                   <input type="hidden" name="current_page_url" id="current_page_url" value="<?php echo current_url().'?';?>" />
                   <!--<input type="text" name="current_page_url" id="current_page_url" value="<?php echo current_url().'?'.$_SERVER['QUERY_STRING'];?>" />-->
                   <input class="subscribe_btn" type="submit" value="<?php if($this->lang->line('seller_srch') != '') { echo stripslashes($this->lang->line('seller_srch')); } else echo 'Search'; ?>">
               </form>
               <div class="sorting-options">
               <label> <?php if($this->lang->line('seller_sortby') != '') { echo stripslashes($this->lang->line('seller_sortby')); } else echo 'Sort by'; ?>: </label>
               
               
               <!--<div class="hover-dropdown">
                <div class="hover-selected">
                <span>Custom</span>
                </div>
                </div>-->
                <ul id="menu">
                  <?php
				  		 $get_query_string_vals = $_GET;
						 
						 $shop_selection_query_string_uri = '';
						 foreach($_GET as $query_sting_uri_keys=>$query_sting_uri_vals)
						 {
							//if($query_sting_uri_keys != 'page' && $query_sting_uri_keys != 'order' && $query_sting_uri_keys != 'view_type')
							if($query_sting_uri_keys != 'page' && $query_sting_uri_keys != 'order')
							{
								 
								$shop_selection_query_string_uri.= $query_sting_uri_keys."=".$query_sting_uri_vals."&";
								
							}
						 } 
						 if($shop_selection_query_string_uri != '')
						 {
						 	//$shop_selection_query_string_uri = "?".$shop_selection_query_string_uri;
							//$shop_selection_query_string_uri = rtrim($shop_selection_query_string_uri,"&"); 
							//$shop_selection_query_string_uri.= "&".$query_sting_uri_keys."=".$query_sting_uri_vals;
		 				//	$shop_selection_query_string_uri = ltrim($shop_selection_query_string_uri,"&");
						}
						
				  ?>
            <li><a href="javascript:void(0);"><?php if($this->lang->line('shopsec_custom') != '') { echo stripslashes($this->lang->line('shopsec_custom')); } else echo 'Custom'; ?><img src="images/down_arrow.png" /></a>
        	
                <ul style="left: -62px;" class="sub-menu">
                
                <span class="cursor"></span>
               <?php if($_GET['section_id'] == '') { ?>
               		 <li>
                        <a class="<?php if($_GET['order'] == 'custom') echo 'current_submenu';?>" href="<?php echo base_url().$this->uri->segment(1).'/'.$this->uri->segment(2).'?order=custom&'.rtrim($shop_selection_query_string_uri,'&'); ?>"><?php if($this->lang->line('shopsec_custom') != '') { echo stripslashes($this->lang->line('shopsec_custom')); } else echo 'Custom'; ?></a>
                    </li>
                    <?php } ?>
                    <li>
                        <a class="<?php if($_GET['order'] == 'date_desc') echo 'current_submenu';?>" href="<?php echo base_url().$this->uri->segment(1).'/'.$this->uri->segment(2).'?order=date_desc&'.rtrim($shop_selection_query_string_uri,'&'); ?>"><?php if($this->lang->line('shopsec_recent') != '') { echo stripslashes($this->lang->line('shopsec_recent')); } else echo 'Most Recent'; ?></a>
                    </li>
                    <li>
                        <a class="<?php if($_GET['order'] == 'price_asc') echo 'current_submenu';?>" href="<?php echo base_url().$this->uri->segment(1).'/'.$this->uri->segment(2).'?order=price_asc&'.rtrim($shop_selection_query_string_uri,'&'); ?>"><?php if($this->lang->line('shopsec_lowest') != '') { echo stripslashes($this->lang->line('shopsec_lowest')); } else echo 'Lowest Price'; ?></a>
                    </li>
                    <li>
                        <a class="<?php if($_GET['order'] == 'price_desc') echo 'current_submenu';?>" href="<?php echo base_url().$this->uri->segment(1).'/'.$this->uri->segment(2).'?order=price_desc&'.rtrim($shop_selection_query_string_uri,'&'); ?>"><?php if($this->lang->line('shopsec_highest') != '') { echo stripslashes($this->lang->line('shopsec_highest')); } else echo 'Highest Price'; ?></a>
                    </li>                    
                </ul>
            </li>
    
    
    		 <?php
				  		 $get_query_string_vals = $_GET;
						 
						 $shop_selection_query_string_uri = '';
						 foreach($_GET as $query_sting_uri_keys=>$query_sting_uri_vals)
						 {
							if($query_sting_uri_keys != 'view_type')
							{
								 
								$shop_selection_query_string_uri.= $query_sting_uri_keys."=".$query_sting_uri_vals."&";
								
							}
						 } 
						 if($shop_selection_query_string_uri != '')
						 {
						 	//$shop_selection_query_string_uri = "?".$shop_selection_query_string_uri;
							//$shop_selection_query_string_uri = rtrim($shop_selection_query_string_uri,"&"); 
							//$shop_selection_query_string_uri.= "&".$query_sting_uri_keys."=".$query_sting_uri_vals;
		 				//	$shop_selection_query_string_uri = ltrim($shop_selection_query_string_uri,"&");
						}
						
				  ?>
    
            </ul>
                <ul class="view-options">
                <?php if($this->uri->segment(3)!=''){ $sales='/'.$this->uri->segment(3);}else{$sales='';} ?>
                <li class="icon1">
                <a class="view_icons selected" data-type="gallery" title="Gallery view" href="<?php echo base_url().$this->uri->segment(1).'/'.$this->uri->segment(2).$sales.'?view_type=gallery&'.rtrim($shop_selection_query_string_uri,'&'); ?>">

</a></li>

<li class="icon2">
<a class="view_icons selected" data-type="gallery" title="List view" href="<?php echo base_url().$this->uri->segment(1).'/'.$this->uri->segment(2).$sales.'?view_type=list&'.rtrim($shop_selection_query_string_uri,'&'); ?>">

</a></li>
                </ul>
                
               
               </div>
               
               
               </div>      
                    
                   
                   <?php 
				   		if($_GET['view_type'] =='gallery' || $_GET['view_type'] =='')
						{
				  			$this->load->view('site/shop-section/shop_section_product_gallery_style');
						}
						else if($_GET['view_type'] =='list')
						{
							$this->load->view('site/shop-section/shop_section_product_list_style');
						}							
						
					?>
                    
                    <div class="clear"></div>
                
                    <ul style="width: 55%;" class="page_nav">
                    <li>
                   		<?php echo $pagination_links; ?>
                    </li>
                    </ul>  
                <?php } ?>
                </div>          
            
            </div>
            
            <?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='report_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/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="" id="p_id" />
                        <input type="hidden" name="s_id" value="<?php echo $get_shop_owner_info['seller_id']; ?>" id="s_id" />
                        <input type="hidden" name="p_seourl" value="" id="p_seourl" />
                        <input type="hidden" name="s_seourl" value="<?php echo $this->uri->segment(2); ?>" id="s_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_shop_owner' 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 stripslashes($get_shop_owner_info['full_name'])." ".stripslashes($get_shop_owner_info['last_name']);?> <?php if($this->lang->line('shop_from') != '') { echo stripslashes($this->lang->line('shop_from')); } else echo "from"; ?> <?php echo stripslashes($get_seller_details['seller_businessname']); ?></h2>
                    <div class="conversation_thumb">
                        <img width="75" height="75" src="images/users/thumb/<?php echo $owner_thumnail;?>">
                    </div>
                    <div class="conversation_right">
                        <form name="contactshopowener" id="contactshopowener" method="post" action="site/user/purchasecontactshopowner">
                        <input type="hidden" name="productseourl" id="productseourl" value="<?php echo $added_item_details[0]['seourl']; ?>" >
                            <input class="conversation-subject" type="text" name="subject" id="subject" placeholder="Subject" />
                            <textarea class="conversation-textarea" rows="11" name="message_text" id="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 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 $get_seller_details['seller_email']; ?>" >
                            <input type="hidden" name="sellerid" id="sellerid" value="<?php echo $get_seller_details['seller_id']; ?>" >
                            <input type="hidden" name="dealcode_number" id="dealcode_number" value="" >
                            <input type="hidden" name="subject_name" id="subject_name" value="<?php if($this->lang->line('new_conversation') != '') { echo stripslashes($this->lang->line('new_conversation')); } else echo "New conversation with"; ?> <?php echo stripslashes($get_shop_owner_info['full_name'])." ".stripslashes($get_shop_owner_info['last_name']);?> from <?php echo stripslashes($get_seller_details['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;" onclick="return validat_popup_send();">
                        </form>		
                    </div> 
                </div>
            </div>
        </div>
	</div>

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