<?php 
$this->load->view('site/templates/commonheader');
$this->load->view('site/templates/shop_header'); 
$shopEditArr = array('admin-edit-product','admin-preview'); $shopAddArr = array('admin-listitem','admin-preview');
$showShopHeadList = 0; if(in_array($this->uri->segment(1),$shopEditArr)){
		  		$showShopHeadList = 1;
		   }elseif(in_array($this->uri->segment(2),$shopAddArr)){ 
	           $showShopHeadList = 1;
        } ?>
<link rel="stylesheet" href="css/jquery.tagbox.css" />
<script type="text/javascript" src="js/jquery.tagbox.js"></script>
<script type="text/javascript" src="js/site/add_shop_listitems.js"></script>
<script src="js/site/jquery.ui.core.js"></script>
<script src="js/site/jquery.ui.widget.js"></script>
<script src="js/site/jquery.ui.tabs.js"></script>
<script type="text/javascript">
	$(function() {
		$("#jquery-tagbox-tags").tagBox();
		$("#jquery-tagbox-materials").tagBox();
	});
</script>

<script>
	$(function() {
		$( "#tabs" ).tabs();
		
	});
</script>

<div style="   background: none repeat scroll 0 0 #FFFFFF;    border-bottom: 1px solid #DDDDDD;    border-top: 1px solid #DDDDDD;    padding: 20px 0;" class="add_shop">
<div class="main">
<div id="tabs">
 <?php if($showShopHeadList == 0){ if(count($shopDetail)>0) { ?>
	<ul style="display:block;" class="preview-menu">
		<li><a class="active1" href="shop/listitem#tabs-1"><?php if($this->lang->line('shop_listitem') != '') { echo stripslashes($this->lang->line('shop_listitem')); } else echo 'List an Item'; ?></a></li>
		<li><a href="shop/listitem#tabs-2"><?php if($this->lang->line('shop_managelist') != '') { echo stripslashes($this->lang->line('shop_managelist')); } else echo 'Manage Listing'; ?></a></li>
	</ul>
    <?php } } ?>

    <div id="tabs-1">
    <div class="shop_details"><br />
	<h4>Add Products via Uploading CSV file? Click <a href="upload-products">here</a></h4>
    </div>
<form name="common_list" action="add-product" method="post">
	<div class="shop_details"><br />
            	<span class="shop_title"><?php if($this->lang->line('shop_listitem') != '') { echo stripslashes($this->lang->line('shop_listitem')); } else echo 'List an Item'; ?></span>                
                <div class="list_div">
                	<div class="list_inner_fields" id="AboutWrap">
                    	<label id="about_fields"><?php if($this->lang->line('shop_aboutitem') != '') { echo stripslashes($this->lang->line('shop_aboutitem')); } else echo 'About this Item'; ?></label>
                   		<div class="list_inner_right list_small_width" style="margin-right: 10px;">
                        	<p><?php if($this->lang->line('shop_whomade') != '') { echo stripslashes($this->lang->line('shop_whomade')); } else echo 'Who made it'; ?>? </p>
                            <select name="about_item" id="about_item">
                            	<option value=""><?php if($this->lang->line('shop_selectmaker') != '') { echo stripslashes($this->lang->line('shop_selectmaker')); } else echo 'Select a maker'; ?>...</option>
                                <option value="1"><?php if($this->lang->line('shop_idid') != '') { echo stripslashes($this->lang->line('shop_idid')); } else echo 'I did'; ?></option>
                                <option value="2" ><?php if($this->lang->line('shop_membershop') != '') { echo stripslashes($this->lang->line('shop_membershop')); } else echo 'A member of my shop'; ?></option>
                                <option value="3" ><?php if($this->lang->line('shop_company') != '') { echo stripslashes($this->lang->line('shop_company')); } else echo 'Another company or person'; ?></option>
                            </select>
                        </div>
                        
                        <div class="list_inner_right list_small_width" id="What_is" style="display:none">
                       <p><?php if($this->lang->line('shop_whatisit') != '') { echo stripslashes($this->lang->line('shop_whatisit')); } else echo 'What is it'; ?>?</p>                
                          <select name="what_item" id="what_item">
                              <option value=""><?php if($this->lang->line('shop_selectuse') != '') { echo stripslashes($this->lang->line('shop_selectuse')); } else echo 'Select a use'; ?>...</option>
                             <option value="1" ><?php if($this->lang->line('shop_finishedproduct') != '') { echo stripslashes($this->lang->line('shop_finishedproduct')); } else echo 'A finished product'; ?></option>
                             <option value="2" ><?php if($this->lang->line('shop_supplytool') != '') { echo stripslashes($this->lang->line('shop_supplytool')); } else echo 'A supply or tool to make things'; ?></option>
                         </select>
                      </div>
                        
                        <div class="list_inner_right list_small_width" id="When_is" style="display:none">
                         <p id="when_option_p"><?php if($this->lang->line('shop_whenmade') != '') { echo stripslashes($this->lang->line('shop_whenmade')); } else echo 'when did u made it'; ?>?</p>                
                          <select name="when_made" id="when_made">
                              <option value="" selected="selected"><?php if($this->lang->line('shop_selectwhen') != '') { echo stripslashes($this->lang->line('shop_selectwhen')); } else echo 'Select when'; ?>...</option>
                              <optgroup  label="Not yet made">
                                                   <option value="made_to_order" ><?php if($this->lang->line('shop_madeorder') != '') { echo stripslashes($this->lang->line('shop_madeorder')); } else echo 'Made to order'; ?></option>
                              </optgroup>
                              <optgroup  label="Recently">
                                                    <option value="2010,2014">2010  - 2014</option>
                                                    <option value="2000,2009">2000  - 2009</option>
                                                    <option value="1995,1999">1995  - 1999</option>
                               </optgroup>
                              <optgroup  label="Vintage">
                                                    <option value="0,1994"><?php if($this->lang->line('shop_sometimebefore') != '') { echo stripslashes($this->lang->line('shop_sometimebefore')); } else echo 'Sometime before'; ?> 1995</option>
                                                    <option value="1990,1994">1990  - 1994</option>
                                                    <option value="1980,1989">1980s</option>
                                                    <option value="1970,1979">1970s</option>
                                                    <option value="1960,1969">1960s</option>
                                                    <option value="1950,1959">1950s</option>
                                                    <option value="1940,1949">1940s</option>
                                                    <option value="1930,1939">1930s</option>
                                                    <option value="1920,1929">1920s</option>
                                                    <option value="1910,1919">1910s</option>
                                                    <option value="1900,1909">1900 - 1909</option>
                                                    <option value="1800,1899">1800s</option>
                                                    <option value="1700,1799">1700s</option>
                                                    <option value="0,1699"><?php if($this->lang->line('shop_before') != '') { echo stripslashes($this->lang->line('shop_before')); } else echo 'Before'; ?> 1700</option>
                               </optgroup>
                         </select>
                     </div>
                    </div>
                    <div class="list_inner_fields">
                    	<label id="category_fields"><?php if($this->lang->line('shop_categories') != '') { echo stripslashes($this->lang->line('shop_categories')); } else echo 'Categories'; ?></label>
                        <div class="list_inner_right list_small_width">
                        	<p><?php if($this->lang->line('shop_whatisit') != '') { echo stripslashes($this->lang->line('shop_whatisit')); } else echo 'What is it'; ?>?</p>
                            <select name="main_cat_id" id="main_cat_id">
                            	<option value=""><?php if($this->lang->line('shop_selectcategory') != '') { echo stripslashes($this->lang->line('shop_selectcategory')); } else echo 'Select a category'; ?></option>
                                <?php foreach($mainCategories->result() as $MaincatValues) {?>
                                <option value="<?php echo $MaincatValues->id;?>"><?php echo $MaincatValues->cat_name;?></option> <?php }?>
                            </select>
                            
                            
                        </div> 
                        <div class="list_inner_right list_small_width" style="display:none" id="level1_sub_cat_loading">
                        	<p><?php if($this->lang->line('shop_whattype') != '') { echo stripslashes($this->lang->line('shop_whattype')); } else echo 'What type'; ?>? </p> </br>
                        <div id="loader1" class="list_inner_right"><img src="images/ajax_loading.gif" alt="loading subcategory" /></div>
                         </div>
                        
                        <div class="list_inner_right list_small_width" style="display:none" id="level1_sub_cat_result">
                        	<p><?php if($this->lang->line('shop_whattype') != '') { echo stripslashes($this->lang->line('shop_whattype')); } else echo 'What type'; ?>? <span class="optional"><?php if($this->lang->line('shop_optional') != '') { echo stripslashes($this->lang->line('shop_optional')); } else echo 'optional'; ?></span></p>
                            <select id="level1_sub_cat" name="level1_sub_cat">
                            	<option value=""><?php if($this->lang->line('shop_selectcategory') != '') { echo stripslashes($this->lang->line('shop_selectcategory')); } else echo 'Select a category'; ?></option>
                               
                            </select>
                        </div>
                        <div class="list_inner_right list_small_width" style="display:none" id="level2_sub_cat_loading">
                        	<p><?php if($this->lang->line('shop_whattype') != '') { echo stripslashes($this->lang->line('shop_whattype')); } else echo 'What type'; ?>? </p> </br>
                        <div id="loader2" class="list_inner_right"><img src="images/ajax_loading.gif" alt="loading subcategory" /></div>
                         </div>
                        <div class="list_inner_right list_small_width" style="display:none" id="level2_sub_cat_result">
                        	<p><?php if($this->lang->line('shop_whattype') != '') { echo stripslashes($this->lang->line('shop_whattype')); } else echo 'What type'; ?>? <span class="optional"><?php if($this->lang->line('shop_optional') != '') { echo stripslashes($this->lang->line('shop_optional')); } else echo 'optional'; ?></span></p>
                            <select id="level2_sub_cat" name="level2_sub_cat">
                            	<option value=""><?php if($this->lang->line('shop_selectcategory') != '') { echo stripslashes($this->lang->line('shop_selectcategory')); } else echo 'Select a category'; ?></option>
                               
                            </select>
                        </div>
                    </div>
                    <div class="list_inner_fields_1">
                    	<div class="msg_alert" id="msg_alert1">
                        	<span class="msg_alert_new"><?php if($this->lang->line('shop_new') != '') { echo stripslashes($this->lang->line('shop_new')); } else echo 'NEW'; ?></span>
                            <p><?php if($this->lang->line('shop_downloadable') != '') { echo stripslashes($this->lang->line('shop_downloadable')); } else echo 'You can now add downloadable files to your listing! Files will be available once payment is confirmed'; ?>. </p>
                            <a href="javascript:void(0)" class="close_icon" onclick="return hid_msg('msg_alert1')"></a>
                        </div>
                        <label class="item_type_label"><?php if($this->lang->line('shop_itemtype') != '') { echo stripslashes($this->lang->line('shop_itemtype')); } else echo 'Item type'; ?></label>
                        <div class="item_type" >
                        	<input type="radio" value="physical" name="item_name" id="physical_item"  style="float:none;" onclick="return dis_val('variation_wrapper')" checked="checked"/>
                            <label for="physical_item"  style="float:none;"><?php if($this->lang->line('shop_physical') != '') { echo stripslashes($this->lang->line('shop_physical')); } else echo 'Physical item'; ?></label>
                            <input type="radio" value="digital"  name="item_name" id="digital_item"  style="float:none;" onclick="return dis_val('file_wrapper')"/>
                            <label for="digital_item"  style="float:none;"><?php if($this->lang->line('shop_digitalfile') != '') { echo stripslashes($this->lang->line('shop_digitalfile')); } else echo 'Digital file'; ?></label>
                        </div>
                    </div>
                </div>  
                
                <!--  Variation Starts here  --> 
                <div class="list_div" id="variation_wrapper">
                	<div class="list_inner_fields" style="border-bottom:none;">
                    	<label><?php if($this->lang->line('shop_variations') != '') { echo stripslashes($this->lang->line('shop_variations')); } else echo 'Variations'; ?></label><span><?php if($this->lang->line('shop_availableoptions') != '') { echo stripslashes($this->lang->line('shop_availableoptions')); } else echo 'Add Variations to your listing to highlight available options for buyers'; ?>. </span>
                    </div>
                    <!--  Variation One Starts here  --> 
                    <div class="list_inner_fields">
                    	<label>&nbsp;</label> 
                         <p id="have_scalling" style="display:none;"></p>
                         	<select id="property_level" class="vari_option" name="property_level">
                            	<option value=""><?php if($this->lang->line('shop_availableproperty') != '') { echo stripslashes($this->lang->line('shop_availableproperty')); } else echo 'Select available property'; ?>...</option>
                             	<?php foreach($variations_result as $variations) {?>   <option value="<?php echo $variations->attr_seourl; ?>"><?php echo $variations->attr_name; ?></option> <?php }?>               
                                <!--<optgroup label="Couldn't find a property">
                                    <option >Add a new option</option>
                                </optgroup>-->
                            </select>
                        <div class="list_inner_right list_small_width" id="variations_level_div">
                            
                           
                        </div>
                        <div id="variation_one">
                        	<div style="float:right;">
                            	<a href="javascript:void(0)" onclick="return clear_data();" id="close_var_one" style="display:none;" class="close_icon"></a>
                            </div>
                            <div class="list_inner_right list_small_width" id="attr_loader" style="display:none"><img src="images/ajax_loading.gif" alt="loading variations" /></div>
                            <div class="list_inner_right list_small_width" id="options_level" name="options_level" style="display:none"></div>
                            <div class="list_inner_right list_small_width" id="attr_options_val" name="attr_options_val" style="display:none">
                                <select onchange="return alpha_check(this);" id="checked_alpha_value" class="alpha_value_one">
                                    <option value=""><?php if($this->lang->line('shop_selavailableoptions') != '') { echo stripslashes($this->lang->line('shop_selavailableoptions')); } else echo 'Select available options'; ?>...</option>
                                    <option>XXS</option>
                                    <option>XS</option>
                                    <option>S</option>
                                    <option>M</option>
                                    <option>L</option>
                                    <option>XL</option>
                                    <option>XXL</option>
                                    <option>3XL</option>
                                    <option>4XL</option>
                                    <option>5XL</option>                               
                                    <!--<optgroup label="Couldn't find a property">
                                        <option >Add a new option</option>
                                    </optgroup>-->
                                </select>
                            </div>
                            <div class="list_inner_fields" style="border-bottom:none;">
                                <label>&nbsp;</label> 
                                
                                <div class="list_inner_right" id="options_table" style="display:none">
                                <center><img src="images/ajax-loader/ajax-loader(14).gif" alt="Adding variations" style="display:none;" id="variation_add_loading1" /></center><br />

                                	<table width="100%" class="inner_table"  align="center" cellpadding="0" cellspacing="0" id="options_list">              
                                        <tbody>
                                            <tr style="background:#E9F6FC;; margin: 0px; padding: 9px 0px 0px;">
                                               <td width="20%" ><strong><?php if($this->lang->line('shop_options') != '') { echo stripslashes($this->lang->line('shop_options')); } else echo 'Options'; ?></strong></td>
                                               <td width="20%">
                                                    <span class="non-pricing-mode">
                                                        <a href="javascript:void(0)" class="enable-variations-pricing" id="price_opt" onclick="price_opt_click();"><?php if($this->lang->line('shop_addpricing') != '') { echo stripslashes($this->lang->line('shop_addpricing')); } else echo 'Add Pricing'; ?></a>
                                                    </span>
                                                    <span class="pricing-mode retail">
                                                        <a href="#variations-section" class="disable-variations-pricing remove button-remove"></a>
                                                           <!--<span class="price-header-label retail">
                                                                  Price
                                                            <small>USD</small>
                                                        </span>-->
                                                    </span>
                                                </td>
                                               <td  width="20%" ><strong><?php if($this->lang->line('shop_instock') != '') { echo stripslashes($this->lang->line('shop_instock')); } else echo 'In Stock'; ?></strong></td>
                                               <td  width="10%" ></td>
                                            </tr>
                                        </tbody>
                                	</table>
                                </div>   
                            </div> 
                        </div>
                      
                    </div>
                    <!--  Variation One Ends here  --> 
                    <!--  Variation Two Starts here  --> 
                    <div class="list_inner_fields">
                    	<label>&nbsp;</label><p id="have_scalling1" style="display:none;"></p> 
                        	<select id="property_level1" class="vari_option">
                                <option value=""><?php if($this->lang->line('shop_availableproperty') != '') { echo stripslashes($this->lang->line('shop_availableproperty')); } else echo 'Select available property'; ?>...</option>
                                <?php foreach($variations_result as $variations) {?>   
                                <option value="<?php echo $variations->attr_seourl; ?>"><?php echo $variations->attr_name; ?></option> 
                                <?php }?>
                            </select>
                        <div class="list_inner_right list_small_width" id="variations_level_div1">
                            
                        </div>
                        <div id="variation_two">
                             <div style="float:right;">
                              	<a href="javascript:void(0)" onclick="return clear_data1();" id="close_var_two" style="display:none;" class="close_icon"></a>
                             </div>
                             <div class="list_inner_right list_small_width" id="attr_loader1" style="display:none">
                              	<img src="images/ajax_loading.gif" alt="loading variations" />
                             </div>
                             <div class="list_inner_right list_small_width" id="options_level1" name="options_level1" style="display:none"></div>
                             <div class="list_inner_right list_small_width" id="attr_options_val1" name="attr_options_val1" style="display:none">
                                    <select onchange="return alpha_check1(this);" id="checked_alpha_value1" class="alpha_value_two">
                                        <option value=""><?php if($this->lang->line('shop_selavailableoptions') != '') { echo stripslashes($this->lang->line('shop_selavailableoptions')); } else echo 'Select available options'; ?>...</option>
                                        <option>XXS</option>
                                        <option>XS</option>
                                        <option>S</option>
                                        <option>M</option>
                                        <option>L</option>
                                        <option>XL</option>
                                        <option>XXL</option>
                                        <option>3XL</option>
                                        <option>4XL</option>
                                        <option>5XL</option>                               
                                        <!--<optgroup label="Couldn't find a property">
                                            <option >Add a new option</option>
                                        </optgroup>-->
                                    </select>
                              </div>
                             <div class="list_inner_fields" style="border-bottom:none;">
                                    <label>&nbsp;</label> 
                                    <div class="list_inner_right" id="options_table1" style="display:none">
                                    <center><img src="images/ajax-loader/ajax-loader(14).gif" alt="Adding variations" style="display:none;" id="variation_add_loading2" /></center><br />
                                        <table width="100%" class="inner_table"  align="center" cellpadding="0" cellspacing="0" id="options_list1">              
                                            <tbody>
                                                <tr style="background:#E9F6FC;; margin: 0px; padding: 9px 0px 0px;">
                                                   <td width="20%" ><strong><?php if($this->lang->line('shop_options') != '') { echo stripslashes($this->lang->line('shop_options')); } else echo 'Options'; ?></strong></td>
                                                   <td width="20%">
                                                        <span class="non-pricing-mode">&nbsp;
                                                        <!--<a href="javascript:void(0)" class="enable-variations-pricing" id="price_opt1" onclick="price_opt_click1();">Add Pricing</a>-->
                                                        </span>
                                                        <span class="pricing-mode retail">
                                                            <a href="#variations-section" class="disable-variations-pricing remove button-remove"></a>
                                                               <!--<span class="price-header-label retail">
                                                                      Price
                                                                <small>USD</small>
                                                            </span>-->
                                                        </span>
                                                    </td>
                                                   <td  width="20%" ><strong><?php if($this->lang->line('shop_instock') != '') { echo stripslashes($this->lang->line('shop_instock')); } else echo 'In Stock'; ?></strong></td>
                                                   <td  width="10%" ></td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>   
                                </div>	                        
                        </div>
                    </div>
                    <!--  Variation Two Ends here  --> 
                </div>
                <!--  Variation Ends here  --> 
                
                <!--  Title, Photo and Description Starts here  -->
                <div class="list_div">
                	<div class="list_inner_fields">
                    	<label id="title"><?php if($this->lang->line('shop_itemtitle') != '') { echo stripslashes($this->lang->line('shop_itemtitle')); } else echo 'Item Title'; ?></label>
                        <div class="list_inner_right">
                        	<p> <?php if($this->lang->line('shop_descriptivetitles') != '') { echo stripslashes($this->lang->line('shop_descriptivetitles')); } else echo 'Descriptive titles are best. Try to describe your item the way a buyer would'; ?>. </p>
                            <input type="text" name="product_name" style="width:527px; font-size:12px; color:#333; padding:6px;" id="maxtextval" maxlength="140" onKeyUp="change('maxtextval','goo_item_title')"/>
                            <span class="list_div_note" ><?php if($this->lang->line('shop_maximum') != '') { echo stripslashes($this->lang->line('shop_maximum')); } else echo 'Maximum 140 characters'; ?>:</span>
                            <span class="list_div_note" id="maxtext_notify">140</span>
                            <span class="list_div_note" > &nbsp; <?php if($this->lang->line('shop_remaining') != '') { echo stripslashes($this->lang->line('shop_remaining')); } else echo 'remaining'; ?> </span>  
                        </div>
                        
                    </div>
                    
                    <div class="list_inner_fields" id="file_wrapper" style="display:none;">
                    	<label><?php if($this->lang->line('shop_files') != '') { echo stripslashes($this->lang->line('shop_files')); } else echo 'Files'; ?></label>
                        <div class="list_inner_right">                        	
                           <!-- <input type="button" class="addfile_button" value="Add file" />-->
                            <label for="file_upload" style="width:45px;" class="addfile_button"><?php if($this->lang->line('shop_addfile') != '') { echo stripslashes($this->lang->line('shop_addfile')); } else echo 'Add file'; ?></label>
                            <img src="images/loading.gif" id="loadedFile" style="display:none"> </img>
                            <input type="file" id="file_upload" name="file_upload" style="display:none;">
                            <table width="100%" class="inner_table" border="0"  align="center" cellpadding="0" cellspacing="0" id="DigiFiles" >     
                                <tr style="display:none;">
                                	<td width="70%"> 
                                    	&nbsp;
                                        <p id="Digi_Files_1"></p>
                                        <input type="hidden" value="" class="DigiFiles" name="DigiFiles[]">
                                     </td>
                                    <td width="30%">
                                        <a class="close_icon left" href="javascript:void(0)" style="margin:7px 0 0 5px" id=""></a>
                                    </td>
                                </tr>
                            </table>
                             <span class="list_div_note list_rightalign"> <?php if($this->lang->line('shop_addupto') != '') { echo stripslashes($this->lang->line('shop_addupto')); } else echo 'Add up to'; ?> <span id="filecount">5</span> <?php if($this->lang->line('shop_fileslisting') != '') { echo stripslashes($this->lang->line('shop_fileslisting')); } else echo 'files to this listing'; ?> </span>
                             <p>  <?php if($this->lang->line('shop_guarantee') != '') { echo stripslashes($this->lang->line('shop_guarantee')); } else echo 'By adding files to this listing, you guarantee that you have rights to the content'; ?>. <?php echo $this->config->item('email_title'); ?> <?php if($this->lang->line('shop_removecontent') != '') { echo stripslashes($this->lang->line('shop_removecontent')); } else echo 'may remove content per our'; ?><a href="javascript:void(0);" class="google-preview_link"> <?php if($this->lang->line('shop_copyright') != '') { echo stripslashes($this->lang->line('shop_copyright')); } else echo 'Copyright and IP Policy'; ?></a>, <?php if($this->lang->line('shop_purchasedfiles') != '') { echo stripslashes($this->lang->line('shop_purchasedfiles')); } else echo 'at which point buyers may not be able to access purchased files. See our'; ?> <a href="pages/terms-conditions" class="google-preview_link" target="_blank"><?php if($this->lang->line('shop_terms') != '') { echo stripslashes($this->lang->line('shop_terms')); } else echo 'Terms'; ?></a> <?php if($this->lang->line('shop_moreinformation') != '') { echo stripslashes($this->lang->line('shop_moreinformation')); } else echo 'for more information'; ?>.<br />
<a href="appearance/<?php echo $seller_info[0]['seourl']; ?>/shop-title" class="google-preview_link" target="_blank"><?php if($this->lang->line('shop_digitalitems') != '') { echo stripslashes($this->lang->line('shop_digitalitems')); } else echo 'Add a note for buyers who purchase digital items'; ?></a></p>                        
                        	
                       </div>
                    </div>
                     <div class="list_inner_fields error" id="showImgErr" style="display:none; text-align:center;"></div>
                    <div class="list_inner_fields">
                    	<label id="photoErr"><?php if($this->lang->line('shop_photos') != '') { echo stripslashes($this->lang->line('shop_photos')); } else echo 'Photos'; ?></label>
                        <div class="list_inner_right">
                        	<ul class="photo_list">
                            	<li>
                                	<div>
                                    	<div class="photo_contain">
                                       
                                        	<input type="file" class="image-upload" id="image_upload" name="image_upload">
                                      
                                        </div>
                                      <img src="" id="loadedImg" width="90px" height="71px" style="display:none"> </img>
                                        <div class="photo_add">
                                        	<span class="add_butn"></span>
                                            <span><?php if($this->lang->line('shop_addphotos') != '') { echo stripslashes($this->lang->line('shop_addphotos')); } else echo 'ADD PHOTOS'; ?></span>
                                        </div>
                                    </div>
                                </li>
                               <li class="image_empty" id="img_empty1">
                                    <div>
                                    	<div class="photo_contain" id="imgFormdata1" style="display:none">
                                       
                                        	<input type="file" class="image-upload" id="image_upload1" name="image_upload1">
                                      
                                        </div>
                                      <img src="" id="loadedImg1" width="90px" height="71px" style="display:none"> </img>
                                        <div class="photo_add" style="display:none" id="imgAddData1">
                                        	<span class="add_butn"></span>
                                            <span><?php if($this->lang->line('shop_addphotos') != '') { echo stripslashes($this->lang->line('shop_addphotos')); } else echo 'ADD PHOTOS'; ?></span>
                                        </div>
                                    </div>
                                </li>
                                <li class="image_empty" id="img_empty2">
                                    <div>
                                    	<div class="photo_contain" id="imgFormdata2" style="display:none">
                                        
                                        	<input type="file" class="image-upload" id="image_upload2" name="image_upload2">
                                      
                                        </div>
                                      <img src="" id="loadedImg2" width="90px" height="71px" style="display:none"> </img>
                                        <div class="photo_add" style="display:none" id="imgAddData2">
                                        	<span class="add_butn"></span>
                                            <span><?php if($this->lang->line('shop_addphotos') != '') { echo stripslashes($this->lang->line('shop_addphotos')); } else echo 'ADD PHOTOS'; ?></span>
                                        </div>
                                    </div>
                                </li>
                                <li class="image_empty" id="img_empty3">
                                    <div>
                                    	<div class="photo_contain" id="imgFormdata3" style="display:none">
                                        
                                        	<input type="file" class="image-upload" id="image_upload3" name="image_upload3">
                                     
                                        </div>
                                      <img src="" id="loadedImg3" width="90px" height="71px" style="display:none"> </img>
                                        <div class="photo_add" style="display:none" id="imgAddData3">
                                        	<span class="add_butn"></span>
                                            <span><?php if($this->lang->line('shop_addphotos') != '') { echo stripslashes($this->lang->line('shop_addphotos')); } else echo 'ADD PHOTOS'; ?></span>
                                        </div>
                                    </div>
                                </li>
                                <li class="image_empty" id="img_empty4">
                                    <div>
                                    	<div class="photo_contain" id="imgFormdata4" style="display:none">
                                       
                                        	<input type="file" class="image-upload" id="image_upload4" name="image_upload4">
                                     
                                        </div>
                                      <img src="" id="loadedImg4" width="90px" height="71px" style="display:none"> </img>
                                        <div class="photo_add" style="display:none" id="imgAddData4">
                                        	<span class="add_butn"></span>
                                            <span><?php if($this->lang->line('shop_addphotos') != '') { echo stripslashes($this->lang->line('shop_addphotos')); } else echo 'ADD PHOTOS'; ?></span>
                                        </div>
                                    </div>
                                </li>
                            </ul>
                             <p><?php if($this->lang->line('shop_note') != '') { echo stripslashes($this->lang->line('shop_note')); } else echo 'Note: Standard Image size is 550 x 350 pixel'; ?>.  </p>
                        </div>
                       
                    </div>
                    <div class="list_inner_fields">
                    	<label id="Description"><?php if($this->lang->line('shop_description') != '') { echo stripslashes($this->lang->line('shop_description')); } else echo 'Description'; ?></label>
                        <div class="list_inner_right">
                        	<p> <?php if($this->lang->line('shop_explainspecial') != '') { echo stripslashes($this->lang->line('shop_explainspecial')); } else echo "Try to answer the questions buyers will have. Tell the item's story and explain why it's special"; ?>.  </p>
                            <textarea  style="width:527px; height:75px; font-size:12px; color:#333; padding:6px;" name="description" id="desc" onKeyUp="change('desc','goo_item_desc')"></textarea>
                        </div>
                    </div>
                    <p style="float:right; width:83%"> <?php if($this->lang->line('shop_searchresults') != '') { echo stripslashes($this->lang->line('shop_searchresults')); } else echo 'Preview how your listing will appear in Google search results'; ?>.
                    <a href="javascript:void(0)" id="preview_GSR" onclick="return Goog_SR('preview_GSR');"><?php if($this->lang->line('shop_hidepreview') != '') { echo stripslashes($this->lang->line('shop_hidepreview')); } else echo 'Hide preview'; ?></a></p>
                    <div class="list_inner_fields preview_div" id="preview">
                        <div class="list_inner_right">
                        	<p class="goo_title">
                            <span id="goo_item_title"><?php if($this->lang->line('shop_itemtitle') != '') { echo stripslashes($this->lang->line('shop_itemtitle')); } else echo 'Item Title'; ?></span>
                            <?php if($this->lang->line('shop_by') != '') { echo stripslashes($this->lang->line('shop_by')); } else echo 'by'; ?> <?php  echo stripslashes($selectSeller_details[0]['seller_businessname']); ?> <?php if($this->lang->line('shop_on') != '') { echo stripslashes($this->lang->line('shop_on')); } else echo 'on'; ?> <?php echo $this->config->item('email_title'); ?>
                            </p>
                    		<p class="goo_desc" id="goo_item_desc"><?php if($this->lang->line('shop_descriptionappear') != '') { echo stripslashes($this->lang->line('shop_descriptionappear')); } else echo 'Your description will appear here'; ?>...</p>
                        </div>
                    </div>
                </div>        
                <!--  Title, Photo and Description Ends here  -->
                
                <!--  Tagging Starts here  -->        
                <div class="list_div">
                	<div class="list_inner_fields">
                    	<label><?php if($this->lang->line('shop_tags') != '') { echo stripslashes($this->lang->line('shop_tags')); } else echo 'Tags'; ?></label>
                        <div class="list_inner_right">
                        	<p style="color:#09B2F1"><?php if($this->lang->line('shop_getideas') != '') { echo stripslashes($this->lang->line('shop_getideas')); } else echo 'Get ideas'; ?>.</p>
                            <div class="row">
                              <span class="tagBox-list" id="tagBox-list-tags"></span>
                              <input type="text" name="jquery-tagbox-tags" id="jquery-tagbox-tags" class="jQTagBox" style="display: none;">
                            </div>
                          
                            <!--<input type="text"  style="float:left; width:180px; font-size:12px; color:#333; padding:5px 6px;" id="tags" name="tags" maxlength="13"/>
                            <input type="button" class="add_button" value="Add" />
                            <label id="tagslabel"></label>-->
                            <p><?php if($this->lang->line('shop_addtag') != '') { echo stripslashes($this->lang->line('shop_addtag')); } else echo 'Add 13 tags'; ?>.</p>
                        </div>
                    </div>
                    <div class="list_inner_fields">
                    	<label><?php if($this->lang->line('shop_materials') != '') { echo stripslashes($this->lang->line('shop_materials')); } else echo 'Materials'; ?></label>
                        <div class="list_inner_right">
                        	<div class="row">
                              <span class="tagBox-list" id="tagBox-list-materials"></span>
                              <input type="text" name="jquery-tagbox-materials" id="jquery-tagbox-materials" class="jQTagBox" style="display: none;">
                            </div>  
                           <!-- <input type="text"  style="float:left; width:180px; font-size:12px; color:#333; padding:5px 6px;"/>
                            <input type="button" class="add_button" value="Add" />-->
                            <p> <?php if($this->lang->line('shop_addmaterials') != '') { echo stripslashes($this->lang->line('shop_addmaterials')); } else echo 'Add up to 13 materials used in your item'; ?>. </p>
                        </div>
                    </div>
                </div>
                <!--  Tagging Ends here  -->
                
                <!--  Priceing And Quantity Starts here  -->
                <div class="list_div">
                	<div class="list_inner_fields">
                    	<label id="PriceLab"><?php if($this->lang->line('giftcard_price') != '') { echo stripslashes($this->lang->line('giftcard_price')); } else echo 'Price'; ?></label>
                        <div class="list_inner_right" id="price_div_disp">
                        	<p style="width:auto; margin:2px 4px 0 0px">$</p>
                            <input type="text"  style="float:left; width:100px; font-size:12px; color:#333; padding:5px 6px;" value="0.00" id="price" name="price"/>
                            <p style="width:auto; margin:0 0 0 4px"><?php if($this->lang->line('user_usd') != '') { echo stripslashes($this->lang->line('user_usd')); } else echo 'USD'; ?></p>
                        </div>
                        <div  class="list_inner_right" id="price_div_hid" style="display:none;">
                        	<span class="price-input-variations-notice">
                                <?php if($this->lang->line('shop_pricevariation') != '') { echo stripslashes($this->lang->line('shop_pricevariation')); } else echo 'Price has been set by variation'; ?>.<br>
                                <?php if($this->lang->line('shop_generalprice') != '') { echo stripslashes($this->lang->line('shop_generalprice')); } else echo 'To set a general price'; ?> <a href="javascript:void(0)" id="remove_attr_pricing"><?php if($this->lang->line('shop_pricingvariation') != '') { echo stripslashes($this->lang->line('shop_pricingvariation')); } else echo 'turn off pricing by variation'; ?></a>
                            </span>
                        </div>
                    </div>
                    <div class="list_inner_fields">
                    	<label  id="QuantityLab"><?php if($this->lang->line('shop_quantity') != '') { echo stripslashes($this->lang->line('shop_quantity')); } else echo 'Quantity'; ?></label>
                        <div class="list_inner_right">
                     <input type="text"  style="float:left; width:80px; font-size:12px; color:#333; padding:5px 6px; margin:0 0 0 11px" value="1" id="quantity" name="quantity"/>
                        </div>
                    </div>
                    <input type="hidden" name="price_status"  id="price_status" value="1" />
                </div>
                <!--  Priceing And Quantity Ends here  -->
                <!---- gift cards start here ------->
                
                <!-- <div class="list_div">
                     <div class="list_inner_fields">
                                <label>Accept gift cards?</label>
                                <input class="find-all" name="giftcard" type="checkbox">
                                <p style="float:right; width:83%">In order to accept <?php echo $this->config->item('email_title'); ?> Gift Cards as a payment method, the shop must be enrolled in <?php echo $this->config->item('email_title'); ?>’s Direct Checkout feature.</p>
                      </div>
                 </div>-->
               <!---- gift cards ends here -------> 
                
                <!--  Shipping Starts here  -->
                <div class="list_div" id="shipping_wrapper">
                	<div class="list_inner_fields">
                    	<label id="shippingLab"><?php if($this->lang->line('shopsec_shipping') != '') { echo stripslashes($this->lang->line('shopsec_shipping')); } else echo 'Shipping'; ?></label>
                        <div class="list_inner_right list_small_width">
                        	<p><?php if($this->lang->line('shop_processingtime') != '') { echo stripslashes($this->lang->line('shop_processingtime')); } else echo 'Processing time'; ?></p>
                            
                            <select onchange="return processing_time_shipping(this.value);" name="ship_duration">
                            	    <option value=""><?php if($this->lang->line('shop_shipin') != '') { echo stripslashes($this->lang->line('shop_shipin')); } else echo 'Ready to ship in'; ?>...</option>
                                    <optgroup label="----------------------------"></optgroup>
                                    <option class="range-1-1">1 <?php if($this->lang->line('shop_businessday') != '') { echo stripslashes($this->lang->line('shop_businessday')); } else echo 'business day'; ?></option>
                                    <option class="range-1-2">1-2 <?php if($this->lang->line('shop_businessdays') != '') { echo stripslashes($this->lang->line('shop_businessdays')); } else echo 'business days'; ?></option>
                                    <option class="range-1-3">1-3 <?php if($this->lang->line('shop_businessdays') != '') { echo stripslashes($this->lang->line('shop_businessdays')); } else echo 'business days'; ?></option>
                                    <option class="range-3-5">3-5 <?php if($this->lang->line('shop_businessdays') != '') { echo stripslashes($this->lang->line('shop_businessdays')); } else echo 'business days'; ?></option>
                                    <option class="range-5-10">1-2 <?php if($this->lang->line('shop_weeks') != '') { echo stripslashes($this->lang->line('shop_weeks')); } else echo 'weeks'; ?></option>
                                    <option class="range-10-15">2-3 <?php if($this->lang->line('shop_weeks') != '') { echo stripslashes($this->lang->line('shop_weeks')); } else echo 'weeks'; ?></option>
                                    <option class="range-15-20">3-4 <?php if($this->lang->line('shop_weeks') != '') { echo stripslashes($this->lang->line('shop_weeks')); } else echo 'weeks'; ?></option>
                                    <option class="range-20-30">4-6 <?php if($this->lang->line('shop_weeks') != '') { echo stripslashes($this->lang->line('shop_weeks')); } else echo 'weeks'; ?></option>
                                    <option class="range-30-40">6-8 <?php if($this->lang->line('shop_weeks') != '') { echo stripslashes($this->lang->line('shop_weeks')); } else echo 'weeks'; ?></option>
                                    <option value="custom" ><?php if($this->lang->line('shop_customrange') != '') { echo stripslashes($this->lang->line('shop_customrange')); } else echo 'Custom range'; ?></option>
                            </select>                            
                            <p style="color:#09B2F1"><?php if($this->lang->line('shop_whatisthis') != '') { echo stripslashes($this->lang->line('shop_whatisthis')); } else echo 'What is this'; ?>?</p>
                        </div>
                        <div style="margin-top:27px; display:none;" id="custom_shipping_time">
                         
                         <div style="float: left; width: 70%; margin: 10px 0px 0px 150px;">
                                <input checked="checked" id="business-days" name="processing_time_units" type="radio" value="business days">
                                <label for="business-days" style="float:none;"><?php if($this->lang->line('shop_businessdays') != '') { echo stripslashes($this->lang->line('shop_businessdays')); } else echo 'business days'; ?></label>
                                <input  id="weeks" name="processing_time_units" type="radio" value="weeks">
                                <label for="weeks"  style="float:none;"><?php if($this->lang->line('shop_weeks') != '') { echo stripslashes($this->lang->line('shop_weeks')); } else echo 'weeks'; ?></label>
                       </div>
                         
                       <div style="float: left; margin: 10px 0px 0px 140px;">
                   
                                <select name="processing_min">
                                    <option><?php if($this->lang->line('user_from') != '') { echo stripslashes($this->lang->line('user_from')); } else echo 'From'; ?>...</option>
                                    <option>1</option>
                                    <option>2</option>
                                    <option>3</option>
                                    <option>4</option>
                                    <option>5</option>
                                    <option>6</option>
                                    <option>7</option>
                                    <option>8</option>
                                    <option>9</option>
                                    <option>10</option>
                            	</select>
                          
                                <select name="processing_max">
                                    <option><?php if($this->lang->line('shop_to') != '') { echo stripslashes($this->lang->line('shop_to')); } else echo 'To'; ?>...</option>
                                    <option>1</option>
                                    <option>2</option>
                                    <option>3</option>
                                    <option>4</option>
                                    <option>5</option>
                                    <option>6</option>
                                    <option>7</option>
                                    <option>8</option>
                                    <option>9</option>
                                    <option>10</option>
                            	</select>
                                
                                </div>
                                    </div>
                  </div>
                  <div class="list_inner_fields">
                  <label>&nbsp;</label>
                        <div class="list_inner_right">
                                <p><?php if($this->lang->line('shop_shipsfrom') != '') { echo stripslashes($this->lang->line('shop_shipsfrom')); } else echo 'Ships from'; ?></p>
                       			<select name="shipping_from" id="shipping_from" onchange="toggleDisabilityfrom(this);">
                                    <option value=""><?php if($this->lang->line('shop_sellocation') != '') { echo stripslashes($this->lang->line('shop_sellocation')); } else echo 'Select a location'; ?></option>
                                    <?php foreach($countryList as $countryVal) {?> 
                                    <option value="<?php echo $countryVal->id.'|'.$countryVal->name; ?>"><?php echo $countryVal->name; ?></option> 
									<?php }?>
                                </select>
                        	<table width="100%" class="inner_table" border="0"  align="center" cellpadding="0" cellspacing="0" id="tbNames">
                           
                            	<tr>
                                	<td width="30%"><strong><?php if($this->lang->line('shop_shipsto') != '') { echo stripslashes($this->lang->line('shop_shipsto')); } else echo 'Ships to'; ?></strong></td>
                                    <td width="30%"><strong><?php if($this->lang->line('shop_cost') != '') { echo stripslashes($this->lang->line('shop_cost')); } else echo 'Cost'; ?></strong></td>
                                    <td width="30%"><strong><?php if($this->lang->line('shop_anotheritem') != '') { echo stripslashes($this->lang->line('shop_anotheritem')); } else echo 'With another item'; ?> ?</strong></td>
                                </tr>
                                <tr>
                                	<td width="30%"><p id="shipping_to_1_lab"><?php if($this->lang->line('shop_countryname') != '') { echo stripslashes($this->lang->line('shop_countryname')); } else echo 'Country Name'; ?></p>
                                    <input type="hidden" name="shipping_to[]" id="shiping_to_default" />
                                    <select id="shipping_to_1" style="display:none;" class="shipping_to">
                                    	<option value="" id="shiping_to_default"><?php if($this->lang->line('shop_countryname') != '') { echo stripslashes($this->lang->line('shop_countryname')); } else echo 'Country Name'; ?></option>
                                    	<?php foreach($countryList as $countryVal) {?>   
                                        <option value="<?php echo $countryVal->id.'|'.$countryVal->name;  ?>"><?php echo $country->name; ?></option> 
										<?php }?>
                                	</select>      
                                      <input type="hidden" name="ship_to_id[]" id="shipping_to_1_id" />                           
                                    </td>
                                  <td width="20%" style="margin: 0px 0px 0px 50px;">
                                        <p style="width:auto; margin:2px 4px 0 0px;">$</p>
                                        <input type="text" value="" name="shipping_cost[]" class="shipping_txt_box" />
                                    </td>
                                  <td width="20%" style="margin: 0px 0px 0px 50px;">
                                        <p style="width:auto; margin:2px 4px 0 0px;">$</p>
                                        <input type="text" value="" name="shipping_with_another[]" class="shipping_txt_box" />
                                    </td>
                                </tr>
                                <tr>
                                	<td width="30%"><?php if($this->lang->line('shop_everywhere') != '') { echo stripslashes($this->lang->line('shop_everywhere')); } else echo 'Everywhere Else'; ?>
                                    <input type="hidden" name="shipping_to[]" id="shipping_to_2" value="Everywhere Else" />
                                    <input type="hidden" id="shipping_to_2_id" name="ship_to_id[]" value="232">
                                    <!--<select name="shipping_to[]" id="shipping_to_2" style="display:none;" class="shipping_to">
                                    	<option value="Everywhere Else">Everywhere Else</option>                                    	
                                	</select>-->
                                    </td>
                                  <td width="20%" style="margin: 0px 0px 0px 50px;">
                                        <p style="width:auto; margin:2px 4px 0 0px;">$</p>
                                        <input type="text" value="" class="shipping_txt_box" name="shipping_cost[]" />
                                    </td>
                                  <td width="20%" style="margin: 0px 0px 0px 50px;">
                                        <p style="width:auto; margin:2px 4px 0 0px;">$</p>
                                        <input type="text" value="" class="shipping_txt_box" name="shipping_with_another[]" />
                                        <a class="close_icon left" style="margin:7px 0 0 5px" href="javascript:void(0)" id="2"></a>
                                    </td>
                                </tr>
                                <tr>
                                	<td width="30%"> 
                                    	<p id="shipping_to_3_lab" ></p>
                                    	<select id="shipping_to_3" class="shipping_to" onchange="display_sel_val(this); toggleDisability(this); " name="shipping_to[]" style="width: 200px; padding: 3px 4px; box-shadow: none; margin: 2px 0px 0px 20px; border: 1px solid rgb(205, 205, 205);">
                                            <option value=""><?php if($this->lang->line('shop_sellocation') != '') { echo stripslashes($this->lang->line('shop_sellocation')); } else echo 'Select a location'; ?></option>
                                            <?php foreach($countryList as $countryVal) {?>   
                                            <option value="<?php echo $countryVal->id.'|'.$countryVal->name; ?>"><?php echo $countryVal->name; ?></option> 
                                            <?php }?>
			                            </select>
                                        <input type="hidden" name="ship_to_id[]" id="shipping_to_3_id" />
                                     </td>
                                    <td width="20%" style="margin: 0px 0px 0px 50px;">
                                        <p style="width:auto; margin:2px 4px 0 0px;">$</p>
                                        <input type="text" value="" class="shipping_txt_box" name="shipping_cost[]" />
                                    </td>
                                 <td width="20%" style="margin: 0px 0px 0px 50px;">
                                        <p style="width:auto; margin:2px 4px 0 0px;">$</p>
                                        <input type="text" value="" class="shipping_txt_box" name="shipping_with_another[]" />
                                        <a class="close_icon left" href="javascript:void(0)" style="margin:7px 0 0 5px" id="3"></a>
                                    </td>
                                </tr>
                            </table>
                            <p id="selected_country" style="display:none;"></p>
                            <input type="button" value="<?php if($this->lang->line('shop_location') != '') { echo stripslashes($this->lang->line('shop_location')); } else echo 'Add location'; ?>" class="search_btn" style="width:100px;" id="btnAdd"/>
                            <img src="images/ajax-loader/ajax-loader(1).gif" alt="Loading" style="display:none;width:20px;height:20px;background:none;border:none;" class="search_btn" id="stimg" />
                        </div>
                        </div>
         		</div>
                <!--  Shipping Ends here  -->
	</div>
    <input type="hidden" value="" id="edit_product_id" />
    <div class="shop_details">
        <input type="submit" value="<?php if($this->lang->line('shop_previewlist') != '') { echo stripslashes($this->lang->line('shop_previewlist')); } else echo 'Preview Listing'; ?>" class="save_btn" id="save_b"  />   
        <div style="display:none;background: #fcf3ed !important;" class="list_div" id="errMsg">         
            <p style="color: #a80308 !important;"><?php if($this->lang->line('shop_followingproblems') != '') { echo stripslashes($this->lang->line('shop_followingproblems')); } else echo 'Wait! You need to fix the following problems with your item'; ?>: </p>         
            <span id="err_blocks" style="color:#003399 !important;"></span>     
        </div>
    </div>  
</form>

	</div>  

    <?php  if($showShopHeadList == 0){  if(count($shopDetail)>0) { ?>
    <div id="tabs-2">    
            <div class="manage-listing-heading">
                <h1><?php if($this->lang->line('shop_yourlistings') != '') { echo stripslashes($this->lang->line('shop_yourlistings')); } else echo 'Your Listings'; ?><span>(<?php echo count($shopDetail); ?>)</span> </h1>
                <p><?php if($this->lang->line('shop_stockup') != '') { echo stripslashes($this->lang->line('shop_stockup')); } else echo 'Stock up! Listing 10 or more items gives buyers more opportunities to find your shop'; ?>. </p>
            </div>
             <form class="tab_form_list" action="site/product/DeleteShopProducts" method="post">
                 <table class="tab_form_list_table">
                    <thead>
                      <tr class="look">
                            <td colspan="6">
                            <span class="shuffle">
                            <input class="find-all" type="checkbox" name="find_all">
                            <button class="secondary-button-delete" value="delete" name="action" type="submit" onclick="return confirmDeletePrd();">Delete</button>
                            </span>
                            </td>
                        </tr>   
                        <tr class="table-header">
                            <th class="list-display"></th>
                            <th class="list-heading"><?php if($this->lang->line('user_title') != '') { echo stripslashes($this->lang->line('user_title')); } else echo 'Title'; ?><span class="sort-arrow"></span></th>        
                            <th class="list-wid"><span><?php if($this->lang->line('shop_instock') != '') { echo stripslashes($this->lang->line('shop_instock')); } else echo 'In Stock'; ?></span></th>        
                            <th class="price-wid"><span><?php if($this->lang->line('giftcard_price') != '') { echo stripslashes($this->lang->line('giftcard_price')); } else echo 'Price'; ?></span></th>        
                            <th class="date-wid"><?php if($this->lang->line('shop_listed') != '') { echo stripslashes($this->lang->line('shop_listed')); } else echo 'Listed'; ?><span class="sort-arrow"></span></th>
                            
                           
                           <th class="date-wid"><?php if($this->lang->line('shop_status') != '') { echo stripslashes($this->lang->line('shop_status')); } else echo 'Status'; ?><span class="sort-arrow"></span></th>
                            
                           <th class="listgap"></th>
                               
                            
                        </tr>
                    </thead>
                    <tbody>
                    <?php for($i=0;$i<count($shopDetail);$i++) {  ?>
                    <?php $imgArr=explode(',',$shopDetail[$i]->image); ?>
                        <tr id="listing-<?php echo $shopDetail[$i]->id; ?>" class="row-1 odd">
                            <td class=""><input class="chkProd" type="checkbox" value="<?php echo $shopDetail[$i]->id; ?>" name="deleteProducts[]"></td>
                            <td class="">
                                <div class="">
                                    <a class="list-image12" title="<?php echo $shopDetail[$i]->product_name; ?>" href="javascript:void(0);">
                                        <img class="" width="50" height="50" alt="." src="images/product/list-image/<?php echo $imgArr[0]; ?>">
                                    </a>
                                    <span class="center-text">
                                        <div>
                                            <a title="" href="javascript:void(0);"><?php echo $shopDetail[$i]->product_name; ?></a>
                                        </div>
                                    </span>
                                </div>
                            </td>        
                            <td class=""><?php echo $shopDetail[$i]->quantity; ?></td>        
                            <td class="">
                                <span class="dolar-symbol"><?php echo $currencySymbol;?></span>
                                <span class="dolar-value"><?php if($shopDetail[$i]->price != 0.00) { echo number_format($currencyValue*$shopDetail[$i]->price,2); } else { echo number_format($currencyValue*$shopDetail[$i]->pricing,2); echo '+'; } ?></span>
                                <span class="dolar-code"><?php echo $currencyType;?></span>
                            </td>
                            <td class=""><?php echo substr($shopDetail[$i]->created,0,10); ?></td>
                             <td class=""><?php echo$shopDetail[$i]->status; ?></td>
                            <td class="">
                                <ul>
                                    <li><a title="Edit listing" href="edit-product/<?php echo $shopDetail[$i]->seourl; ?>"><?php if($this->lang->line('user_edit') != '') { echo stripslashes($this->lang->line('user_edit')); } else echo 'Edit'; ?> </a></li>
                                   <!-- <li><a title="Copy listing" href="#">Copy</a></li>-->
                                </ul>
                            </td>
                        </tr>
                    <?php } ?>
                    </tbody>
                    <tfoot>       
                        <tr class="look styleback">
                            <td colspan="6">
                                <span class="shuffle">
                                    <input class="find-all" type="checkbox" name="find_all">
                                    <button class="secondary-button-delete" value="delete" name="action" onclick="return confirmDeletePrd();" type="submit">Delete</button>
                                </span>
                            </td>
                        </tr>
                    </tfoot>
                 </table>  
                 <span id="CPDel"></span>   
             </form>
    </div>
    <?php }}  ?>
</div>
</div>
</div>
<?php $this->load->view('site/templates/footer');?>