<!-- content_item/main_variants.tpl begin -->
<div class="content_item">
	<div class="title_wrapper">
		<div class="title"><h1>{$structure_data->name}</h1></div>
		<div class="pipe"></div>
		<a href="?action=print" class="print" target="_blank"></a>
		<div class="pipe"></div>
		<a href="#/" onClick="history.back();" class="back"><span>Zur&uuml;ck</span></a>
		
		<div class="clear"></div>
	</div>

	<div class="content_sub_item">
		<div class="left_area">
			{include file='content_item/thumbnails.tpl'}
		</div>
		<div class="right_area">
			<div class="title_box">
				<h1>{$shopArticle->name}</h1>
				{if $shopArticle->number}Artikel-Nr.: {$shopArticle->number}{/if}
			</div>

			{include file='content_item/description_tabs.tpl'}
		</div>

		<br style="clear:both;" />

		<div>
			<table class="variants_table" style="margin-top:20px;">
				<tr class="variants_head">
					<td style="width:190px;"><span style="margin-left:7px;">Name + Artikelnummer</span></td>
					
					<td style="width:95px;" class="alcenter" >{$shopArticle->schema_data->selectable_name_1}</td>
					
					<td style="width:95px;" class="alcenter" >{$shopArticle->schema_data->selectable_name_2}</td>
					
					<td class="alcenter" style="width:90px;">UVP: {$shopArticle->uvp|number_format:"2":",":"."} &euro;</td>
					
					<td class="alcenter" style="width:80px;">Status</td>
					
					<td class="alcenter">Artikel kaufen</td>
				</tr>
			</table>
			
			<div style="">
				<table class="variants_table">
					{foreach item=varData key=varName from=$shopArticle->variant_data}
						{foreach item=subVarData key=subVarName from=$varData}
							<tr class="variants_row">
							
								<td style="width:190px;">
									<span style="margin-left:7px;">
										<span class="title">{$shopArticle->name}</span><br />
									</span>
									<span style="margin-left:7px;">
										<span class="item_number">Artikel-Nr.: {$subVarData.item_number}</span>
									</span>
								</td>
								
								<td style="width:95px;" class="alcenter" >
										{$varName}
								</td>
								
								<td style="width:95px;" class="alcenter" >
										{$subVarName}
								</td>
								
								<td class="alcenter" style="width:90px;">
										{if $subVarData.old_price > 0}old prie{/if}
										<strong>{$subVarData.price|number_format:"2":",":"."} &euro;</strong>
								</td>
								
								<td class="alcenter" style="width:80px;">
									{if $subVarData.shippable == 1}
										<img src="{$THEME_DIR}/media/images/available.png" />
									{elseif $subVarData.shippable == 2}
										{if $subVarData.available_from && $subVarData.available_from != '00.00.0000'}
											lieferbar ab {$subVarData.available_from}
										{elseif $subVarData.available_from == '00.00.0000' && $shopArticle->available_from}
											lieferbar ab {$shopArticle->available_from}
										{else}
											<img src="{$THEME_DIR}/media/images/available.png" />
										{/if}
									{elseif $subVarData.shippable == 3}
										lieferzeit unbekannt
									{else}
										<img src="{$THEME_DIR}/media/images/not_available.png" />
									{/if}
								</td>
								
								<td class="alcenter">
									{if $subVarData.shippable == 0}
										&nbsp;
									{else}
										<form method="post">
											<input class="amountbox" type="text" value="1" name="amount" />
											<input type="hidden" value="{$varName}" name="variant[1]" />
											<input type="hidden" value="{$subVarName}" name="variant[2]" />

											<input type="submit" class="variants_cart" value="" />
										</form>
									{/if}
								</td>
							</tr>
						{/foreach}
					{/foreach}
				</table>
			</div>
			
			<div class="alright" style="margin:10px 0;padding-right:3px;float:right;">
				Alle Preise verstehen sich {$shopArticle->price_tax_text} zzgl. <a href="/Versandkosten/">Versandkosten</a>
			</div>
		</div>
	</div>
</div>

<!-- content_item/main_variants.tpl end --> 
