

<script language="javascript" src="js/jupload.js" type="text/javascript"></script>
<script type="text/javascript"> 
<!-- //
{include file="$incpath/other/validate_js.tpl"}
{literal}

function ajaxFileUpload(updir,divid,resize)
{
	$("#loading_" + divid)
	.ajaxStart(function(){
		$(this).show();
		document.getElementById('buttonUpload_' + divid).value = '{/literal}{#Global_Wait#}{literal}';
		document.getElementById('buttonUpload_' + divid).disabled = true;
		
	})
	.ajaxComplete(function(){
		$(this).hide();
		document.getElementById('buttonUpload_' + divid).value = '{/literal}{#Global_Upload#}{literal}';
		document.getElementById('buttonUpload_' + divid).disabled = false;
	});

	$.ajaxFileUpload
	(
		{
			url:'index.php?do=shop&sub=categ_icon&updir=' + updir + '&divid=' + divid + '&resize=' + resize,
			secureuri:false,
			fileElementId:'fileToUpload_' + divid,
			dataType: 'json',
			success: function (data, status)
			{
				if(typeof(data.error) != 'undefined')
				{
					if(data.error != '')
					{
						document.getElementById('UpInf_' + divid).innerHTML  = data.error;
					}else
					{
						document.getElementById('UpInf_' + divid).innerHTML = data.msg;
						document.getElementById('newFile_' + divid).value =  data.html;
						
					}
				}
			},
			error: function (data, status, e)
			{
				document.getElementById('UpInf_' + divid).innerHTML = e;
			}
		}
	)
	
	return false;
}


$.validator.setDefaults({
	submitHandler: function() 
	{ 
		document.forms['new'].submit();
	}
});

$().ready(function() {
	$("#new").validate(
	{ // validate
	rules: {
				Titel: {required: true,minLength: 5},
				Artikelnummer: {required: true,minLength: 5},
				Preis_Liste: {required: true,number: true, min:1},
				Gewicht: {required: true,number: true, min:0},
				Lagerbestand: {required: true,number: true},
				MinBestellung: {required: true,number: true, min:0},
				MaxBestellung: {required: true,number: true, min:0}
			},
			messages: 
			{
				Preis_Liste:{required:{/literal}'{#Shop_articles_edit_jsnoprice#}'{literal}}
			}
	}
	);
}
);
// -->
</script>
{/literal}


<div class="popbox">
<div class="header">{#Shop_articles_edit#} -&gt; {$row.Titel|stripslashes}</div>
<div class="subheaders">{#Shop_articles_editinf#}</div>
<div class="header_inf">
<form method="post" action="">
<select class="input" onchange="eval(this.options[this.selectedIndex].value);" name="langcode" id="langcode">

<option id="l_1" value="if(confirm('{#Global_changeLangDoc#}')){ldelim} location.href='index.php?do=shop&sub=edit_article&id={$smarty.request.id}&noframes=1&pop=1&langcode=1';{rdelim}else{ldelim}document.getElementById('l_{$smarty.request.langcode}').selected=true;{rdelim}" {if $smarty.request.langcode=='1'}selected="selected"{/if}>{#Shop_articles_editin#}  - {$language_long_1|upper} - {#Shop_articles_editinb#}</option>
<option id="l_2" value="if(confirm('{#Global_changeLangDoc#}')){ldelim} location.href='index.php?do=shop&sub=edit_article&id={$smarty.request.id}&noframes=1&pop=1&langcode=2';{rdelim}else{ldelim}document.getElementById('l_{$smarty.request.langcode}').selected=true;{rdelim}" {if $smarty.request.langcode=='2'}selected="selected"{/if}>{#Shop_articles_editin#}  - {$language_long_2|upper} - {#Shop_articles_editinb#}</option>
<option id="l_3" value="if(confirm('{#Global_changeLangDoc#}')){ldelim} location.href='index.php?do=shop&sub=edit_article&id={$smarty.request.id}&noframes=1&pop=1&langcode=3';{rdelim}else{ldelim}document.getElementById('l_{$smarty.request.langcode}').selected=true;{rdelim}"  {if $smarty.request.langcode=='3'}selected="selected"{/if}>{#Shop_articles_editin#} - {$language_long_3|upper} - {#Shop_articles_editinb#}</option>

</select>
<img class="absmiddle" src="{$imgpath}/arrow_right.png" alt="" />
</form>
</div>

<script language="javascript" type="text/javascript">
<!--
function tab(id)
{ldelim}
	document.getElementById('main').style.display='none';
	document.getElementById('spez').style.display='none';
	document.getElementById('pricing_details').style.display='none';
	document.getElementById('images').style.display='none';
	{if $tabs->TAB1|koobispecialchars}document.getElementById('accessories').style.display='none';{/if}
	{if $tabs->TAB2|koobispecialchars}document.getElementById('parts').style.display='none';{/if}
	{if $tabs->TAB3|koobispecialchars}document.getElementById('tuning').style.display='none';{/if}
	document.getElementById(id).style.display='';
	/*document.getElementById(id + '_1').className='active';*/

{rdelim}

function showall()
{ldelim}
	document.getElementById('main').style.display='';
	document.getElementById('spez').style.display='';
	document.getElementById('pricing_details').style.display='';
	document.getElementById('images').style.display='';
	{if $tabs->TAB1|koobispecialchars}document.getElementById('accessories').style.display='';{/if}
	{if $tabs->TAB2|koobispecialchars}document.getElementById('parts').style.display='';{/if}
	{if $tabs->TAB3|koobispecialchars}document.getElementById('tuning').style.display='';{/if}
{rdelim}

//-->
</script>



<form  id="new" name="new"  action="?do=shop&sub=edit_article&id={$smarty.request.id}&noframes=1&SID={$sess}&langcode={$smarty.request.langcode}&pop=1&save=1" method="post" enctype="multipart/form-data">
{if $smarty.request.langcode == 1}
<div class="edit_tabs_div">
<div class="edit_tabs"><a id="main_1" href="#" onclick="javascript:tab('main');">{#Shop_articles_edit_all#}</a></div>
<div class="edit_tabs"><a href="#" onclick="javascript:tab('pricing_details');">{#Shop_articles_edit_pricing#}</a></div>
<div class="edit_tabs"><a href="#" onclick="javascript:tab('images');">{#Shop_articles_edit_images#}</a></div>
<div class="edit_tabs"><a href="#" onclick="javascript:tab('spez');">{#Shop_articles_spez#}</a></div>
{if $tabs->TAB1}<div class="edit_tabs"><a href="#" onclick="javascript:tab('accessories');">{$tabs->TAB1|koobispecialchars}</a></div>{/if}
{if $tabs->TAB2}<div class="edit_tabs"><a href="#" onclick="javascript:tab('parts');">{$tabs->TAB2|koobispecialchars}</a></div>{/if}
{if $tabs->TAB3}<div class="edit_tabs"><a href="#" onclick="javascript:tab('tuning');">{$tabs->TAB3|koobispecialchars}</a></div>{/if}

<div class="all_tabs_tab"><a href="#" onclick="javascript:showall()">&raquo; {#Global_ShowAll#}</a></div>
<div style="clear:both"></div>
</div>
{/if}
<div id="main">
<div class="header">{#Shop_articles_edit_all#}</div>

<table width="100%" border="0" cellspacing="0" cellpadding="1">
{if $smarty.request.langcode == 1}
 <tr>
    <td class="row_left">{#SavDataAllLangsT#}</td>
    <td class="row_right"><label><input type="checkbox" name="saveAllLang" value="1" />{#SavDataAllLangs#}</label></td>
  </tr>
  {/if}
  <tr>
 <td width="180" class="row_left"><img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Shop_articles_artInf} class="absmiddle" src="{$imgpath}/help.png" alt="" /> {#Shop_articles_title#}</td>
    <td class="row_right"><input type="text" class="input" name="Titel" style="width:250px" value="{$row.Titel|stripslashes}">
      </td>
    </tr>
{if $smarty.request.langcode == 1}
 <tr>
    <td width="180" class="row_left"><img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Shop_articles_artnrInf} class="absmiddle" src="{$imgpath}/help.png" alt="" /> {#Shop_articles_artnr#}</td>
    <td class="row_right"><input type="text" class="input" name="Artikelnummer" style="width:250px" value="{$row.Artikelnummer|stripslashes}"></td>
    </tr>
	   <tr>
     <td class="row_left"><img {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Shop_articles_art_matchwordsinf} class="absmiddle" src="{$imgpath}/help.png" alt="" /> {#Shop_articles_art_matchwords#}</td>
     <td class="row_right"><input type="text" class="input" name="Schlagwoerter" style="width:250px" value="{$row.Schlagwoerter|stripslashes}"></td>
   </tr>
 

  <tr>
 <td width="180" class="row_left"><img {popup sticky=$config_vars.POPSTICKY  text=$config_vars.FSK18_ShopProductinf} class="absmiddle" src="{$imgpath}/help.png" alt="" /> {#FSK18_ShopProduct#}</td>
    <td class="row_right">
	<label><input type="radio" name="Fsk18" value="1" {if $row.Fsk18==1}checked="checked"{/if} />{#Yes#}</label>
    <label><input type="radio" name="Fsk18" value="0" {if $row.Fsk18==0}checked="checked"{/if}  />{#No#}</label>	 
    </td>
    </tr>
    
{/if}
<tr>
    <td width="180" class="row_left">{#Shop_articles_descr#}</td>
    <td class="row_right">
	{$text}	</td>
    </tr>
  <tr>
    <td width="180" class="row_left">{#Shop_articles_descr2#}</td>
    <td class="row_right">{$text2}</td>
    </tr>

{if $smarty.request.langcode == 1}
    
  <tr>
 <td width="180" class="row_left">{#Shop_articles_active#}</td>
    <td class="row_right">
	<label><input type="radio" name="Aktiv" value="1" {if $row.Aktiv==1}checked="checked"{/if} />{#Yes#}</label>
    <label><input type="radio" name="Aktiv" value="0" {if $row.Aktiv==0}checked="checked"{/if}  />{#No#}</label>	 
    </td>
    </tr>
{/if}
  <tr>
    <td class="row_left">{#Shop_articles_startpage#}</td>
    <td class="row_right">
    <label><input type="radio" name="Startseite" value="1" {if $row.Startseite==1}checked="checked"{/if} />{#Yes#}</label>
    <label><input type="radio" name="Startseite" value="0" {if $row.Startseite==0}checked="checked"{/if }/>{#No#}</label>    </td>
  </tr>
  <tr>
   <td width="180" class="row_left">&nbsp;</td>
   <td class="row_right">
   <input type="submit" class="button" value="{#Shop_articles_save#}">
   <input type="button" class="button" value="{#Close#}" onclick="window.close();" /></td>
   </tr>
</table>

{if $smarty.request.langcode != 1}
<br />
{include file="$incpath/shop/spec_small.tpl"}
{/if}

</div>
{if $smarty.request.langcode == 1}
{assign var=display2 value=none}
<div id="pricing_details" style="display:{$display2}">
<div class="header">{#Shop_articles_edit_pricing#}</div>
<table width="100%" border="0" cellspacing="0" cellpadding="1">
  <tr>
    <td width="180" class="row_left"><img {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Shop_articles_priceinf} class="absmiddle" src="{$imgpath}/help.png" alt="" /> {#Shop_articles_price#}</td>
    <td class="row_right"><input class="input" style="width:100px" name="Preis_Liste" type="text" id="Preis_Liste" value="{$row.Preis_Liste}" />
     
      <input name="Preis_Alt" type="hidden"  value="{$row.Preis_Liste}" />
      <input name="Angebot_Alt" type="hidden" value="{$row.Preis}" />      </td>
    </tr>
  <tr>
    <td width="180" class="row_left"><img {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Shop_articles_price_offerinf} class="absmiddle" src="{$imgpath}/help.png" alt="" /> {#Shop_articles_price_offer#}</td>
    <td class="row_right"><input class="input" style="width:100px" name="Preis" type="text" id="Preis" value="{$row.Preis}" />      </td>
    </tr>
  <tr>
    <td width="180" class="row_left"><img {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Shop_articles_price_offerinf2} class="absmiddle" src="{$imgpath}/help.png" alt="" /> {#Shop_articles_price_offertill#}</td>
    <td class="row_right">
    <input class="input" id="dateinput" name="Preis_Liste_Gueltig" type="text" style="width:100px"  maxlength="10" value="{if $row.Preis_Liste_Gueltig>0}{$row.Preis_Liste_Gueltig|date_format:'%d.%m.%Y'}{/if}" readonly="readonly" />    </td>
    </tr>
  <tr>
    <td width="180" class="row_left"><img {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Shop_articles_categInf} class="absmiddle" src="{$imgpath}/help.png" alt="" /> {#Shop_articles_categ#}</td>
    <td class="row_right">
	<select class="input" style="width:200px" name="Kategorie">
	{foreach from=$shop_search_small_categs item=scs}
	<option {if $scs->bold==1}class="shop_selector_back"{else}class="shop_selector_subs"{/if} value="{$scs->catid}" {if $row.Kategorie==$scs->catid}selected="selected" {/if}>{$scs->visible_title|specialchars}</option>
	{/foreach}
	</select>	</td>
    </tr>
  <tr>
    <td width="180" class="row_left"><img {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Shop_articles_categsInf} class="absmiddle" src="{$imgpath}/help.png" alt="" /> {#Shop_articles_categs#}</td>
    <td class="row_right">
	<select name="Kategorie_Multi[]" size="8" multiple="multiple" class="input" style="width:200px">
	{foreach from=$shop_search_small_categs item=scs}
	<option {if $scs->bold==1}class="shop_selector_back"{else}class="shop_selector_subs"{/if} value="{$scs->catid}" {if in_array($scs->catid,$row.Kategorie_Multi)}selected="selected" {/if}>{$scs->visible_title|specialchars}</option>
	{/foreach}
	</select>	</td>
    </tr>
  <tr>
    <td class="row_left"><img {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Shop_articles_art_weightInf} class="absmiddle" src="{$imgpath}/help.png" alt="" />  {#Shop_articles_art_weight#}</td>
    <td class="row_right"><input class="input" style="width:100px" name="Gewicht" type="text" value="{$row.Gewicht}" />&nbsp;{#Shop_articles_art_wunit#}</td>
  </tr>

   <tr>
     <td class="row_left"><img {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Shop_articles_art_weightRawInf} class="absmiddle" src="{$imgpath}/help.png" alt="" />  {#Shop_articles_art_weightRaw#}</td>
     <td class="row_right"><input class="input" style="width:100px" name="Gewicht_Ohne" type="text" value="{$row.Gewicht_Ohne}" />&nbsp;{#Shop_articles_art_wunit#}</td>
   </tr>
   <tr>
     <td class="row_left"><img {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Shop_articles_artHBLCInf} class="absmiddle" src="{$imgpath}/help.png" alt="" /> {#Shop_articles_art_HBL#}</td>
     <td class="row_right"><input class="input" style="width:100px" name="Abmessungen" type="text" value="{$row.Abmessungen}" />&nbsp;{#Shop_articles_artHBLC#}</td>
   </tr>
   <tr>
<td width="180" class="row_left"><img {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Shop_articles_art_manufacturerInf} class="absmiddle" src="{$imgpath}/help.png" alt="" /> {#Manufacturer#}</td>
<td class="row_right">
<select class="input" style="width:200px" name="Hersteller" id="Hersteller">
<option value="0"></option>
{foreach from=$manufaturer item=m}
<option value="{$m->Id}" {if $m->Id==$row.Hersteller}selected="selected"{/if} >{$m->Name|stripslashes}</option>
{/foreach}
</select></td>
</tr>

   <tr>
     <td class="row_left"><img {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Shop_articles_art_counts_unitinf} class="absmiddle" src="{$imgpath}/help.png" alt="" /> {#Shop_articles_art_counts_unit#}</td>
     <td class="row_right">
	 <input class="input" style="width:50px" name="EinheitCount" type="text" value="{$row.EinheitCount}" />
	 <select name="EinheitId" class="input" style="width:143px" >
	 <option value=""></option>
	 {foreach from=$units item=u}
	 <option value="{$u.Id}" {if $u.Id==$row.EinheitId}selected="selected" {/if}>{$u.Name|stripslashes} ({$u.Mz|stripslashes})</option>
	 {/foreach}
	 </select>	 </td>
   </tr>
   <tr>
     <td class="row_left"><img {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Shop_articles_art_onstoreinf} class="absmiddle" src="{$imgpath}/help.png" alt="" /> {#Shop_articles_art_onstore#}</td>
     <td class="row_right"><input class="input" style="width:100px" name="Lagerbestand" id="ls" type="text" value="{$row.Lagerbestand}" /></td>
   </tr>
   <tr>
     <td class="row_left">
     <img {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Shop_articles_edit_readyforshippinginf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
     {#Shop_articles_edit_readyforshipping#}</td>
     <td class="row_right">
     
     <select class="input" style="width:350px" name="Lieferzeit">
	{foreach from=$shipping_time item=st}
	<option value="{$st->Id}" {if $st->Id==$row.Lieferzeit}selected="selected"{/if} >{$st->Name|stripslashes}</option>
	{/foreach}
	</select>     </td>
   </tr>
   <tr>
     <td class="row_left"><img {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Shop_articles_art_availabilityinf} class="absmiddle" src="{$imgpath}/help.png" alt="" /> {#Shop_articles_art_availability#}</td>
     <td class="row_right">
	 <select class="input" style="width:350px" onchange="if(this.options[this.selectedIndex].value=='2') {ldelim}document.getElementById('ls').value='0';document.getElementById('Bestellt').checked=true;document.getElementById('Bestellt').disabled=false{rdelim}else{ldelim}document.getElementById('Bestellt').checked=false;document.getElementById('Bestellt').disabled=true{rdelim}" name="Verfuegbar">
	{foreach from=$available item=av}
	<option id="s_{$av.Id}" value="{$av.Id}" {if $av.Id==$row.Verfuegbar}selected="selected"{/if} >{$av.Name|stripslashes}</option>
	{/foreach}
	</select>
	 <label><input name="Bestellt" type="checkbox" id="Bestellt" value="1" onclick="if(document.getElementById('Bestellt').checked==true){ldelim}document.getElementById('s_2').selected=true;document.getElementById('ls').value='0'{rdelim}" {if $row.Bestellt=='1'}checked="checked"{/if} />{#Shop_articles_edit_isordered#}</label>  
     <img {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Shop_articles_edit_isorderedinf} class="absmiddle" src="{$imgpath}/help.png" alt="" />        </td>
   </tr>
   
   <tr>
     <td class="row_left"><img {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Shop_articles_art_ordermininf} class="absmiddle" src="{$imgpath}/help.png" alt="" /> {#Shop_articles_art_ordermin#}</td>
     <td class="row_right"><input class="input" style="width:100px" name="MinBestellung" type="text" value="{$row.MinBestellung}" /></td>
   </tr>
   <tr>
     <td class="row_left"><img {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Shop_articles_art_ordermaxinf} class="absmiddle" src="{$imgpath}/help.png" alt="" /> {#Shop_articles_art_ordermax#}</td>
     <td class="row_right"><input class="input" style="width:100px" name="MaxBestellung" type="text" value="{$row.MaxBestellung}" /></td>
   </tr>
   
   <tr>
     <td class="row_left"><img {popup sticky=$config_vars.POPSTICKY  text=$config_vars.Shop_articles_art_onceorderinf} class="absmiddle" src="{$imgpath}/help.png" alt="" /> {#Shop_articles_art_onceorder#}</td>
     <td class="row_right">
	 <label><input type="radio" name="EinzelBestellung" value="1" {if $row.EinzelBestellung==1}checked="checked"{/if} />{#Yes#}</label>
     <label><input type="radio" name="EinzelBestellung" value="0" {if $row.EinzelBestellung==0}checked="checked"{/if}  />{#No#}</label>	 </td>
   </tr>
  
  <tr>
   <td width="180" class="row_left">&nbsp;</td>
   <td class="row_right">
   <input type="submit" class="button" value="{#Shop_articles_save#}">
   <input type="button" class="button" value="{#Close#}" onclick="window.close();" />   </td>
   </tr>
</table>
</div>

{assign var=display3 value=none}
<div id="images" style="display:{$display3}">
<div class="header">{#Shop_articles_edit_images#}</div>
<div class="__edit_body">
<table width="100%" border="0" cellspacing="0" cellpadding="1">
  <tr>
    <td width="180" class="row_left">{#Image#}</td>
    <td class="row_right">{$row.Bild_Norm}<input type="hidden" name="Bild_Alt" value="{$row.Bild_Alt}" /></td>
  </tr>
  <tr>
    <td width="180" class="row_left">{#Shop_articles_edit_newimage#}</td>
    <td class="row_right">
    
    <!-- Uploadform  -->  
	<!-- Status Upload -->  
    <div id="UpInf_1"></div><div id="loading_1" align="center"  style="display:none;"><img style="margin-bottom:15px" src="{$imgpath}/loading.gif" alt="" /></div>
   <!-- Status Upload -->  
   <input id="fileToUpload_1" type="file" size="45" name="fileToUpload_1" class="input" />
   <input type="button" class="button" id="buttonUpload_1" onclick="return ajaxFileUpload('/uploads/shop/icons/','1','');" value="{#Global_Upload#}" />
   <input type="hidden" name="newImg_1" id="newFile_1" />
   <!-- Uploadform -->   
    </td>
  </tr>
  <tr>
    <td class="row_left">{#Shop_articles_edit_moreimages#}</td>
    <td class="row_right">
	
	<table>
	
	<tr>
	{foreach from=$Bilder item=bilder}
	{assign var=c value=$c+1}
	<td>{$bilder.Bild}</td>
	<td><label>
    <input type="checkbox" name="Loeschen[]" value="{$bilder.BildId}" />
	{#Global_Delete#}
    </label></td>
	{if $c % 4 == 0}
	{assign var=c value=0}
	</tr><tr>
	{/if}
	{/foreach}
	</tr>
	
	</table>
</td>
  </tr>
  <tr>
    <td width="180" class="row_left">{#Shop_articles_edit_moreimages_upload#}</td>
    <td class="row_right">
	{section name=loooo loop=5}
<input style="margin-bottom:1px" type="file" name="files[]" /><br />
{/section}	</td>
  </tr>
    <tr>
   <td width="180" class="row_left">&nbsp;</td>
   <td class="row_right">
   <input type="submit" class="button" value="{#Shop_articles_save#}">
   <input type="button" class="button" value="{#Close#}" onclick="window.close();" />   
   </td>
   </tr>
</table>

</div>
</div>

{assign var=display1 value=none}
<div id="spez" style="display:{$display1}">
<div class="header">{#Shop_articles_spez#} - {#HTML_Allowed#}</div>
{if $nospez==1}
<div class="infobox" style="margin:5px">
{#NoSpezInf#}
</div>
{else}

<table width="100%" border="0" cellspacing="0" cellpadding="1">

{if $Spez_Def_1!=''}
  <tr>
    <td class="row_left">{$Spez_Def_1}</td>
    <td class="row_right"><textarea class="input  article_spez" name="Spez_1">{$Spez_1}</textarea></td>
  </tr>
{/if}
{if $Spez_Def_2!=''}
  <tr>
    <td class="row_left">{$Spez_Def_2}</td>
    <td class="row_right"><textarea class="input  article_spez" name="Spez_2">{$Spez_2}</textarea></td>
  </tr>
{/if}
{if $Spez_Def_3!=''}
  <tr>
    <td class="row_left">{$Spez_Def_3}</td>
    <td class="row_right"><textarea class="input  article_spez" name="Spez_3">{$Spez_3}</textarea></td>
  </tr>
{/if}

{if $Spez_Def_4!=''}
  <tr>
    <td class="row_left">{$Spez_Def_4}</td>
    <td class="row_right"><textarea class="input  article_spez" name="Spez_4">{$Spez_4}</textarea></td>
  </tr>
{/if}
{if $Spez_Def_5!=''}
  <tr>
    <td class="row_left">{$Spez_Def_5}</td>
    <td class="row_right"><textarea class="input  article_spez" name="Spez_5">{$Spez_5}</textarea></td>
  </tr>
{/if}
{if $Spez_Def_6!=''}
  <tr>
    <td class="row_left">{$Spez_Def_6}</td>
    <td class="row_right"><textarea class="input  article_spez" name="Spez_6">{$Spez_6}</textarea></td>
  </tr>
{/if}
{if $Spez_Def_7!=''}
  <tr>
    <td class="row_left">{$Spez_Def_7}</td>
    <td class="row_right"><textarea class="input  article_spez" name="Spez_7">{$Spez_7}</textarea></td>
  </tr>
{/if}
{if $Spez_Def_8!=''}
  <tr>
    <td class="row_left">{$Spez_Def_8}</td>
    <td class="row_right"><textarea class="input  article_spez" name="Spez_8">{$Spez_8}</textarea></td>
  </tr>
{/if}
{if $Spez_Def_9!=''}
  <tr>
    <td class="row_left">{$Spez_Def_9}</td>
    <td class="row_right"><textarea class="input  article_spez" name="Spez_9">{$Spez_9}</textarea></td>
  </tr>
{/if}
{if $Spez_Def_10!=''}
  <tr>
    <td class="row_left">{$Spez_Def_10}</td>
    <td class="row_right"><textarea class="input  article_spez" name="Spez_10">{$Spez_10}</textarea></td>
  </tr>
{/if}
{if $Spez_Def_11!=''}
  <tr>
    <td class="row_left">{$Spez_Def_11}</td>
    <td class="row_right"><textarea class="input  article_spez" name="Spez_11">{$Spez_11}</textarea></td>
  </tr>
{/if}
{if $Spez_Def_12!=''}
  <tr>
    <td class="row_left">{$Spez_Def_12}</td>
    <td class="row_right"><textarea class="input  article_spez" name="Spez_12">{$Spez_12}</textarea></td>
  </tr>
{/if}
{if $Spez_Def_13!=''}
  <tr>
    <td class="row_left">{$Spez_Def_13}</td>
    <td class="row_right"><textarea class="input  article_spez" name="Spez_13">{$Spez_13}</textarea></td>
  </tr>
{/if}
{if $Spez_Def_14!=''}
  <tr>
    <td class="row_left">{$Spez_Def_14}</td>
    <td class="row_right"><textarea class="input  article_spez" name="Spez_14">{$Spez_14}</textarea></td>
  </tr>
{/if}
{if $Spez_Def_15!=''}
  <tr>
    <td class="row_left">{$Spez_Def_15}</td>
    <td class="row_right"><textarea class="input  article_spez" name="Spez_15">{$Spez_15}</textarea></td>
  </tr>
{/if}
  <tr>
   <td width="180" class="row_left">&nbsp;</td>
   <td class="row_right">
   <input type="submit" class="button" value="{#Shop_articles_save#}">
   <input type="button" class="button" value="{#Close#}" onclick="window.close();" />   </td>
   </tr>
</table>
{/if}
</div>

{if $tabs->TAB1|koobispecialchars}
{assign var=display5 value=none}
<div id="accessories" style="display:{$display5}">
<div class="header">{$tabs->TAB1|koobispecialchars}</div>
<table width="100%" border="0" cellspacing="0" cellpadding="1">
  <tr>
    <td style="width:400px" valign="top" class="row_left" width="400">
	<iframe width="400" frameborder="0" style="height:450px; width:400px; border:0px" src="index.php?noout=1&pop=1&do=shop&sub=get_prods_categs"></iframe>
	</td>
    <td valign="top" class="row_right">
	&lt;&lt; {#Shop_articles_art_seltcatiframe#}
	
	<div style="height:400px; padding-top:10px; overflow:auto">
	<strong>{#Shop_articles_art_selecte_asse#}</strong><br /><br />
	<span id="y">{foreach from=$zub item=z}<input name="prods[]" type="checkbox" value="{$z->Id}" checked="checked" /> {$z->Titel|stripslashes}<br />{/foreach}</span>
	</div>
	</td>
  </tr>
  <tr>
   <td width="180" class="row_left">&nbsp;</td>
   <td class="row_right">
   <input type="submit" class="button" value="{#Shop_articles_save#}">
   <input type="button" class="button" value="{#Close#}" onclick="window.close();" />   </td>
   </tr>
</table>
</div>
{/if}

{if $tabs->TAB2|koobispecialchars}
{assign var=display6 value=none}
<div id="parts" style="display:{$display6}">
<div class="header">{$tabs->TAB2|koobispecialchars}</div>
<table width="100%" border="0" cellspacing="0" cellpadding="1">
  <tr>
    <td style="width:400px" valign="top" class="row_left" width="400">
	<iframe width="400" frameborder="0" style="height:450px; width:400px; border:0px" src="index.php?noout=1&pop=1&do=shop&sub=get_prods_parts"></iframe>
	</td>
    <td valign="top" class="row_right">
	&lt;&lt; {#Shop_articles_art_seltcatiframe#}
	
	<div style="height:400px; padding-top:10px; overflow:auto">
	<strong>{#Shop_articles_art_selecte_asse#}</strong><br /><br />
	<span id="ers">{foreach from=$ers item=z}<input name="ersatzteile[]" type="checkbox" value="{$z->Id}" checked="checked" /> {$z->Titel|stripslashes}<br />{/foreach}</span>
	</div>
	</td>
  </tr>
  <tr>
   <td width="180" class="row_left">&nbsp;</td>
   <td class="row_right">
   <input type="submit" class="button" value="{#Shop_articles_save#}">
   <input type="button" class="button" value="{#Close#}" onclick="window.close();" />   </td>
   </tr>
</table>
</div>
{/if}
{if $tabs->TAB3|koobispecialchars}
{assign var=display7 value=none}
<div id="tuning" style="display:{$display7}">
<div class="header">{$tabs->TAB3|koobispecialchars}</div>
<table width="100%" border="0" cellspacing="0" cellpadding="1">
  <tr>
    <td style="width:400px" valign="top" class="row_left" width="400">
	<iframe width="400" frameborder="0" style="height:450px; width:400px; border:0px" src="index.php?noout=1&pop=1&do=shop&sub=get_prods_tuning"></iframe>
	</td>
    <td valign="top" class="row_right">
	&lt;&lt; {#Shop_articles_art_seltcatiframe#}
	
	<div style="height:400px; padding-top:10px; overflow:auto">
	<strong>{#Shop_articles_art_selecte_asse#}</strong><br /><br />
	<span id="tun">{foreach from=$tun item=z}<input name="tuningteile[]" type="checkbox" value="{$z->Id}" checked="checked" /> {$z->Titel|stripslashes}<br />{/foreach}</span>
	</div>
	</td>
  </tr>
  <tr>
   <td width="180" class="row_left">&nbsp;</td>
   <td class="row_right">
   <input type="submit" class="button" value="{#Shop_articles_save#}">
   <input type="button" class="button" value="{#Close#}" onclick="window.close();" />   
   
   
   </td>
   </tr>
</table>
</div>
{/if}


{/if}


<input type="hidden" name="closeafter" value="{$smarty.request.closeafter}" />
</form>
</div>


<script language="javascript" src="{$jspath}/calendar.js" type="text/javascript"></script>
<style type="text/css" media="screen,projection">
@import url({$csspath}/calendar.css);
</style>


<script type="text/javascript">
			jQuery(function($){ldelim}
			$.datepicker.setDefaults({ldelim}
			{include file="$incpath/other/calendar.conf.tpl"}
			{rdelim}); 
			$("#dateinput").attachDatepicker();
			{rdelim});
</script>