<script type="text/javascript">
{include file="$incpath/other/validate_js.tpl"}
{literal}
$.validator.setDefaults({
	submitHandler: function() 
	{ 
		document.forms['shopsettings'].submit();
		//alert("submitted!"); 
	}
});

$().ready(function() {
	// validate the comment form when it is submitted
	$("#commentForm").validate(
	{ // validate
	rules: { // rules
				ShopLand: {required: true,minLength: 2},
				Email_Abs: {required: true,email: true},
				Name_Abs: {required: true},
				Email_Bestellung: {required: true,email: true},
				Subjekt_Bestellung:{required: true},
				Subjekt_Best_Kopie:{required: true},
				RechnungsLogo:{url: true},
				thumb_width_small:{required: true,range: [20, 60]},
				thumb_width_norm:{required: true,range: [80, 160]},
				thumb_width_middle:{required: true,range: [60, 160]},
				thumb_width_big:{required: true,range: [300, 480]},
				BestMin:{required: true,number: true},
				BestMax:{required: true,number: true},
				Versandfreibetrag:{required: true,number: true},
				Start_Limit:{required: true,range: [3, 20]},
				Spalten_Neueste:{required: true,range: [2, 4]},
				Topseller_Limit:{required: true,range: [3, 20]},
				Spalten_Topseller:{required: true,range: [2, 4]},
				Angebote_Limit:{required: true,range: [3, 20]},
				Spalten_Angebote:{required: true,range: [2, 4]},
				Topseller_Navi_Limit:{required: true,range: [2, 25]},
				Zubehoer_Limit:{required: true,range: [2, 35]},
				LimitExternNeu:{required: true,range: [2, 15]},
				Lager_Gering:{required: true,range: [5, 20]},
				Tab_Limit:{required: true,range: [2, 8]},
				Prodtext_Laenge:{required: true,range: [100, 500]},
				WasserzeichenKomp:{required: true,range: [10, 100]},
			} // end rules
			, // messages
			messages: 
			{
				ShopLand: {
					required: "Bitte geben Sie das Shop-Land ein",
					minLength: "Es muessen 2 Zeichen (z.B. DE eingegeben werden)"
				}
				
			}
	} // end validate
	);
}
)
</script>





<script language="javascript" src="js/jupload.js" type="text/javascript"></script>
<script type="text/javascript"> 
<!-- //
$().ajaxStop($.unblockUI); 

function test() { 
} 

$(document).ready(function() { 
	$('#s').click(function() { 
		$.blockUI(); 
		//test(); 
	}); 
	
	$.blockUI.defaults.pageMessage = "<h3>{/literal}{#Global_savemsg#}{literal}</h3>";
	var messageElement = $('#domMessage');  
}); 

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;
		//document.getElementById('ajax_form').style.display = 'none';
		
	})
	.ajaxComplete(function(){
		$(this).hide();
		document.getElementById('buttonUpload_' + divid).value = '{/literal}{#Global_Upload#}{literal}';
		document.getElementById('buttonUpload_' + divid).disabled = false;
		//document.getElementById('ajax_form').style.display = '';
	});

	$.ajaxFileUpload
	(
		
		{
			
			url:'index.php?do=shop&sub=categ_icon&updir=' + updir + '&divid=' + divid + '&resize=' + resize + '&ending=png',
			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;

}
// -->
</script>


{/literal}

<div class="header">{#Global_Shop#} - {#Global_Settings#}</div>
<form class="cmxform" id="commentForm" name="shopsettings" method="post" action="">
<div class="headers">
{#Shop_Settings_MainInf#}
<br />
<small>
{#Shop_Settings_MainInf2#}
</small> 
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="3">
  <tr>
    <td width="250" class="row_left">{#Shop_Settings_curr1#}</td>
    <td class="row_right">
    <select name="Waehrung_1" id="Waehrung_1" class="input">
      <option value="EUR" {if $row->Waehrung_1=='EUR'}selected="selected"{/if}>{#Shop_curr1#}</option>
      <option value="CHF" {if $row->Waehrung_1=='CHF'}selected="selected"{/if}>{#Shop_curr2#}</option>
      <option value="USD" {if $row->Waehrung_1=='USD'}selected="selected"{/if}>{#Shop_curr3#}</option>
      <option value="GBP" {if $row->Waehrung_1=='GBP'}selected="selected"{/if}>{#Shop_curr4#}</option>
      <option value="DKK" {if $row->Waehrung_1=='DKK'}selected="selected"{/if}>{#Shop_curr5#}</option>
      <option value="SEK" {if $row->Waehrung_1=='SEK'}selected="selected"{/if}>{#Shop_curr6#}</option>
    </select> 
    <a href="http://www.waehrungskurs.de/content/home/index.php" target="_blank">{#Shop_Settings_currWeb#}</a></td>
  </tr>
  <tr>
    <td class="row_left">{#Shop_Settings_curr2#}</td>
    <td class="row_right">
    <select name="Waehrung_2" class="input">
    <option value=""></option>
      <option value="EUR" {if $row->Waehrung_2=='EUR'}selected="selected"{/if}>{#Shop_curr1#}</option>
      <option value="CHF" {if $row->Waehrung_2=='CHF'}selected="selected"{/if}>{#Shop_curr2#}</option>
      <option value="USD" {if $row->Waehrung_2=='USD'}selected="selected"{/if}>{#Shop_curr3#}</option>
      <option value="GBP" {if $row->Waehrung_2=='GBP'}selected="selected"{/if}>{#Shop_curr4#}</option>
      <option value="DKK" {if $row->Waehrung_2=='DKK'}selected="selected"{/if}>{#Shop_curr5#}</option>
      <option value="SEK" {if $row->Waehrung_2=='SEK'}selected="selected"{/if}>{#Shop_curr6#}</option>
    </select>
    <input name="Multiplikator_2" type="text" class="input" id="Multiplikator_2" value="{if $row->Waehrung_2!=''}{$row->Multiplikator_2|stripslashes}{/if}" size="10" maxlength="10" />    
    <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Shop_Settings_MultiInf} class="absmiddle" src="{$imgpath}/help.png" alt="" />    </td>
  </tr>
  <tr>


    <td class="row_left">{#Shop_Settings_curr3#}</td>
    <td class="row_right">
    <select name="Waehrung_3" class="input">
    <option value=""></option>
      <option value="EUR" {if $row->Waehrung_3=='EUR'}selected="selected"{/if}>{#Shop_curr1#}</option>
      <option value="CHF" {if $row->Waehrung_3=='CHF'}selected="selected"{/if}>{#Shop_curr2#}</option>
      <option value="USD" {if $row->Waehrung_3=='USD'}selected="selected"{/if}>{#Shop_curr3#}</option>
      <option value="GBP" {if $row->Waehrung_3=='GBP'}selected="selected"{/if}>{#Shop_curr4#}</option>
      <option value="DKK" {if $row->Waehrung_3=='DKK'}selected="selected"{/if}>{#Shop_curr5#}</option>
      <option value="SEK" {if $row->Waehrung_3=='SEK'}selected="selected"{/if}>{#Shop_curr6#}</option>
    </select>
    <input name="Multiplikator_3" type="text" class="input" id="Multiplikator_3" value="{if $row->Waehrung_3!=''}{$row->Multiplikator_3|stripslashes}{/if}" size="10" maxlength="10" />    
    <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Shop_Settings_MultiInf} class="absmiddle" src="{$imgpath}/help.png" alt="" />    </td>
  </tr>
  <tr>
    <td class="row_left">
    <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Shop_Settings_PriceInf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
    {#Shop_Settings_priceDisplay#}</td>
    <td class="row_right">
     <label><input type="radio" name="NettoPreise" id="radio" value="0" {if $row->NettoPreise==0}checked="checked"{/if} />{#Shop_Settings_priceB#}</label>  
     <label><input type="radio" name="NettoPreise" id="radio" value="1" {if $row->NettoPreise==1}checked="checked"{/if} />{#Shop_Settings_priceN#}</label></td>
  </tr>
  <tr>
    <td class="row_left">
    <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Shop_Settings_GuestInf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
    {#Shop_Settings_guestorder#}</td>
    <td class="row_right"> 
   <label><input type="radio" name="Gastbestellung" id="radio" value="1" {if $row->Gastbestellung==1}checked="checked"{/if} />{#Yes#}</label>
     <label><input type="radio" name="Gastbestellung" id="radio" value="0" {if $row->Gastbestellung==0}checked="checked"{/if} />{#No#}</label></td>
  </tr>
  <tr>
    <td class="row_left">
    <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Shop_Settings_CountryInf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
    {#Shop_Settings_shopCountry#}</td>
    <td class="row_right"><label>
      <input class="input {ldelim}required:true{rdelim}" name="ShopLand" type="text" id="ShopLand" size="4" maxlength="2" value="{$row->ShopLand|upper}" />
    </label></td>
  </tr>

<tr>
    <td class="row_left">
    <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Shop_Settings_CouponsInf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
    {#Shop_Settings_Coupons#}</td>
    <td class="row_right">
    <label><input name="Gutscheine" type="radio" value="1" {if $row->Gutscheine=='1'}checked="checked"{/if} />{#Yes#}</label>
    <label><input name="Gutscheine" type="radio" value="0" {if $row->Gutscheine=='0'}checked="checked"{/if} />{#No#}</label>    </td>
</tr>

<tr>
    <td class="row_left">
    <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Shop_Settings_OMinInf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
    {#Shop_Settings_Ordermin#}</td>
    <td class="row_right"><input name="BestMin" type="text" class="input" id="BestMin" value="{$row->BestMin}" size="10" /></td>
</tr>


<tr>
    <td class="row_left">
    <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Shop_Settings_LimMaxInf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
    {#Shop_Settings_Ordermax#}</td>
    <td class="row_right"><input name="BestMax" type="text" class="input" id="BestMax" value="{$row->BestMax}" size="10" /></td>
</tr>


<tr>
  <td class="row_left">
  <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Shop_Settings_ShippFreeInf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
  
  {#Shop_Settings_ShippingFree#}</td>
  <td class="row_right"><input name="Versandfreibetrag" type="text" class="input" id="Versandfreibetrag" value="{$row->Versandfreibetrag}" size="10" /></td>
</tr>
<tr>
  <td class="row_left">
   <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Shop_Settings_ReductInf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
  {#Shop_Settings_Storereduct#}</td>
  <td class="row_right">
  <label><input type="radio" name="Bestand_Zaehlen" id="radio3" value="1" {if $row->Bestand_Zaehlen=='1'}checked="checked"{/if}/>{#Shop_Settings_Storereduct1#}</label>
  <label><input type="radio" name="Bestand_Zaehlen" id="radio4" value="0" {if $row->Bestand_Zaehlen=='0'}checked="checked"{/if}/>{#Shop_Settings_Storereduct2#}</label>  </td>
</tr>

<tr>
  <td class="row_left">
   <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Shop_Settings_StartNewCountInf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
  {#Shop_Settings_CountNew#}</td>
  <td class="row_right"><input name="Start_Limit" type="text" class="input" id="Start_Limit" value="{$row->Start_Limit}" size="4" /></td>
</tr>
<tr>
  <td class="row_left">
  <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Shop_Settings_StartNewCountRowInf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
  {#Shop_Settings_CountNewRow#}</td>
  <td class="row_right"><input name="Spalten_Neueste" type="text" class="input" id="Spalten_Neueste" value="{$row->Spalten_Neueste}" size="4" /></td>
</tr>


<tr>
  <td class="row_left">
  <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Shop_Settings_StartTsCountInf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
  {#Shop_Settings_CountTopseller#}</td>
  <td class="row_right"><input name="Topseller_Limit" type="text" class="input" id="Topseller_Limit" value="{$row->Topseller_Limit}" size="4" /></td>
</tr>
<tr>
  <td class="row_left">
  <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Shop_Settings_StartNewCountRowInf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
  {#Shop_Settings_CountTopsellerRow#}</td>
  <td class="row_right"><input name="Spalten_Topseller" type="text" class="input" id="Spalten_Topseller" value="{$row->Spalten_Topseller}" size="4" /></td>
</tr>

<tr>
  <td class="row_left">
  <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Shop_Settings_StartOffersCountInf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
  {#Shop_Settings_CountOffers#}</td>
  <td class="row_right"><input name="Angebote_Limit" type="text" class="input" id="Angebote_Limit" value="{$row->Angebote_Limit}" size="4" /></td>
</tr>
<tr>
  <td class="row_left">
  <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Shop_Settings_StartNewCountRowInf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
  {#Shop_Settings_CountOffersRow#}</td>
  <td class="row_right"><input name="Spalten_Angebote" type="text" class="input" id="Spalten_Angebote" value="{$row->Spalten_Angebote}" size="4" /></td>
</tr>
<tr>
  <td class="row_left">
  <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Shop_Settings_CountExternInf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
  {#Shop_Settings_CountExtern#}</td>
  <td class="row_right"><input name="LimitExternNeu" type="text" class="input" id="" value="{$row->LimitExternNeu}" size="4" /></td>
</tr>
<tr>




  <td class="row_left">{#Shop_Settings_CountProductsPage#}</td>
  <td class="row_right">
    <select class="input" name="Produkt_Limit_Seite" id="Produkt_Limit_Seite">
      <option value="10" {if $row->Produkt_Limit_Seite=='10'}selected="selected"{/if}>10</option>
      <option value="20" {if $row->Produkt_Limit_Seite=='20'}selected="selected"{/if}>20</option>
      <option value="50" {if $row->Produkt_Limit_Seite=='50'}selected="selected"{/if}>50</option>
      <option value="100" {if $row->Produkt_Limit_Seite=='100'}selected="selected"{/if}>100</option>
    </select></td>
</tr>
<tr>
  <td class="row_left">{#Shop_Settings_CountTopSNavi#}</td>
  <td class="row_right"><input name="Topseller_Navi_Limit" type="text" class="input" id="Topseller_Navi_Limit" value="{$row->Topseller_Navi_Limit}" size="4" /></td>
</tr>

<tr>
  <td class="row_left">{#Shop_Settings_CountZuProducts#}</td>
  <td class="row_right"><input name="Zubehoer_Limit" type="text" class="input" id="Zubehoer_Limit" value="{$row->Zubehoer_Limit}" size="4" /></td>
</tr>
<tr>
  <td class="row_left">
  <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Shop_Settings_LowAmountInf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
	{#Shop_Settings_LowAmmountWarn#}</td>
  <td class="row_right"><input name="Lager_Gering" type="text" class="input" id="Lager_Gering" value="{$row->Lager_Gering}" size="4" /></td>
</tr>
<tr>
  <td class="row_left">
<img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Shop_Settings_TopTabsInf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
  {#Shop_Settings_CountInTabs#}  </td>
  <td class="row_right"><input name="Tab_Limit" type="text" class="input" id="Tab_Limit" value="{$row->Tab_Limit}" size="4" /></td>
</tr>
<tr>
  <td class="row_left">
  <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Shop_Settings_ProdTextInf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
  {#Shop_Settings_ProdTextLength#}</td>
  <td class="row_right"><input name="Prodtext_Laenge" type="text" class="input" id="Prodtext_Laenge" value="{$row->Prodtext_Laenge}" size="4" /></td>
</tr>

<tr>
  <td class="row_left">{#Shop_Settings_TplProducts#}</td>
  <td class="row_right">
  <select name="Template_Produkte" id="Template_Produkte" class="input">
    <option value="products" {if $row->Template_Produkte=='products'}selected="selected"{/if}>{#Shop_Settings_TplProducts1#} (products.tpl)</option>
    <option value="products_2colums" {if $row->Template_Produkte=='products_2colums'}selected="selected"{/if}>{#Shop_Settings_TplProducts2#} (products_2colums.tpl)</option>
  </select>  </td>
</tr>

    
  <tr>
    <td class="headers" colspan="2">
     
    {#Shop_Settings_EmailSettings#}</td>
  </tr>
  <tr>
    <td class="row_left">
    <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Shop_Settings_EmailStdInf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
    {#Shop_Settings_EmailStandard#}</td>
    <td class="row_right"><label>
      <input name="Email_Abs" type="text" class="input" id="Email_Abs" value="{$row->Email_Abs}" size="30" />
    </label></td>
  </tr>
  <tr>
    <td class="row_left">
    <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Shop_Settings_EmailStdFInf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
    {#Shop_Settings_EmailStandardFrom#}</td>
    <td class="row_right"><input name="Name_Abs" type="text" id="Name_Abs" class="input" value="{$row->Name_Abs}" size="30" /></td>
  </tr>
  <tr>
    <td class="row_left">
    <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Shop_Settings_EmailCopyInf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
    {#Shop_Settings_EmailOrders#}</td>
    <td class="row_right"><input name="Email_Bestellung" type="text" class="input" id="Email_Bestellung" value="{$row->Email_Bestellung}" size="30" /></td>
  </tr>
  <tr>
    <td class="row_left">{#Shop_Settings_SubjectOrder#}</td>
    <td class="row_right"><input name="Subjekt_Bestellung" id="Subjekt_Bestellung" type="text" class="input {ldelim}required:true{rdelim}" value="{$row->Subjekt_Bestellung}" size="30" /></td>
  </tr>
   <tr>
    <td class="row_left">{#Shop_Settings_SubjectOrder2#}</td>
    <td class="row_right"><input name="Subjekt_Best_Kopie" id="Subjekt_Best_Kopie" type="text" class="input {ldelim}required:true{rdelim}" value="{$row->Subjekt_Best_Kopie}" size="30" /></td>
  </tr>
   <tr>
    <td class="row_left">
    <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Shop_Settings_LogoInf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
    {#Shop_Settings_OrderLogo#}</td>
    <td class="row_right"><input name="RechnungsLogo" id="RechnungsLogo" type="text" class="input {ldelim}url:true{rdelim}" value="{$row->RechnungsLogo}" size="30" /></td>
  </tr>
  <tr>
    <td class="headers" colspan="2">{#Shop_Settings_Images#}
    <br />
    <small>{#Shop_Settings_ImagesInf#}</small>    </td>
  </tr>
  <tr>
    <td class="row_left">
    <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Shop_Settings_ThumbSmall} class="absmiddle" src="{$imgpath}/help.png" alt="" />
    {#Shop_Settings_ImagesSmall#}</td>
    <td class="row_right"><input onchange="document.getElementById('ThumbRenew_Yes').checked='true'" name="thumb_width_small" type="text" class="input" id="thumb_width_small" value="{$row->thumb_width_small}" size="10" maxlength="3" /></td>
  </tr>
  <tr>
    <td class="row_left">
    <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Shop_Settings_ThumbNorm} class="absmiddle" src="{$imgpath}/help.png" alt="" />
    {#Shop_Settings_ImagesNormal#}    </td>
    <td class="row_right"><input onchange="document.getElementById('ThumbRenew_Yes').checked='true'" name="thumb_width_norm" type="text" class="input" id="thumb_width_norm" value="{$row->thumb_width_norm}" size="10" maxlength="3" /></td>
  </tr>
   <tr>
    <td class="row_left">
    <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Shop_Settings_ThumbMiddle} class="absmiddle" src="{$imgpath}/help.png" alt="" />
    {#Shop_Settings_ImagesMiddle#}    </td>
    <td class="row_right"><input onchange="document.getElementById('ThumbRenew_Yes').checked='true'" name="thumb_width_middle" type="text" class="input" id="thumb_width_middle" value="{$row->thumb_width_middle}" size="10" maxlength="3" /></td>
  </tr>
   <tr>
     <td class="row_left">
     <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Shop_Settings_ThumbBig} class="absmiddle" src="{$imgpath}/help.png" alt="" />
     {#Shop_Settings_ImagesBig#}</td>
     <td class="row_right"><input onchange="document.getElementById('ThumbRenew_Yes').checked='true'" name="thumb_width_big" type="text" class="input" id="thumb_width_big" value="{$row->thumb_width_big}" size="10" maxlength="3" /></td>
   </tr>
   <tr>
     <td class="row_left">{#Shop_Settings_ImagesQuality#}</td>
     <td class="row_right">
     <select style="width:150px" onchange="document.getElementById('ThumbRenew_Yes').checked='true'" name="thumb_quality" id="thumb_quality">
       <option value="99" {if $row->thumb_quality=='99'}selected="selected"{/if}>{#Shop_Settings_Q1#}</option>
       <option value="90" {if $row->thumb_quality=='90'}selected="selected"{/if}>{#Shop_Settings_Q2#}</option>
       <option value="60" {if $row->thumb_quality=='60'}selected="selected"{/if}>{#Shop_Settings_Q3#}</option>
       <option value="35" {if $row->thumb_quality=='35'}selected="selected"{/if}>{#Shop_Settings_Q4#}</option>
     </select>     </td>
   </tr>


   <tr>
     <td class="row_left">{#Shop_Settings_Watermark#}</td>
     <td class="row_right">
     <label><input onchange="document.getElementById('ThumbRenew_Yes').checked='true'" type="radio" name="Wasserzeichen" id="radio" value="1" {if $row->Wasserzeichen==1}checked="checked"{/if} />{#Yes#}</label>
     <label><input onchange="document.getElementById('ThumbRenew_Yes').checked='true'" type="radio" name="Wasserzeichen" id="radio" value="0" {if $row->Wasserzeichen==0}checked="checked"{/if} />{#No#}</label>     </td>
   </tr>
   {if $row->WasserzeichenBild}
   <tr>
     <td class="row_left">{#Shop_Settings_WatermarkCurrent#}</td>
     <td class="row_right">{$row->WasserzeichenBild}
     <input type="hidden" name="watermark_old" value="{$row->Wasserzeichen_Bild}" />     </td>
   </tr>
   {/if}
   <tr>
     <td class="row_left">
      <img {popup sticky=$config_vars.POPSTICKY   text=$config_vars.Shop_Settings_WatermarkInf} class="absmiddle" src="{$imgpath}/help.png" alt="" />
     {#Shop_Settings_WatermarkUp#}</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="30" name="fileToUpload_1" class="input" />
   <input type="button" class="button" id="buttonUpload_1" onclick="return ajaxFileUpload('/uploads/shop/','1','0');" value="{#Global_Upload#}" />
   <input type="hidden" name="newImg_1" id="newFile_1" />
   <!-- Uploadform -->     </td>
   </tr>
   <tr>
     <td class="row_left">{#Shop_Settings_WatermarkPos#}</td>
     <td class="row_right">
     <select style="width:150px" class="input" onchange="document.getElementById('ThumbRenew_Yes').checked='true'" name="Wasserzeichen_Position" id="Wasserzeichen_Position">
       <option value="bottom" {if $row->Wasserzeichen_Position=='bottom'}selected="selected"{/if}>{#Global_Bottom#}</option>
       <option value="middle" {if $row->Wasserzeichen_Position=='middle'}selected="selected"{/if}>{#Global_Middle#}</option>
     </select>     </td>
   </tr>
   <tr>
     <td class="row_left">
     {#Shop_Settings_WmTrans#}
     </td>
     <td class="row_right">
     <input onchange="document.getElementById('ThumbRenew_Yes').checked='true'" name="WasserzeichenKomp" type="text" class="input" id="WasserzeichenKomp" value="{$row->WasserzeichenKomp}" size="10" maxlength="3" />%
     
     </td>
   </tr>
   <tr>
     <td class="row_left">{#Shop_Settings_RenewImages#}</td>
     <td class="row_right">
     <label><input name="ThumbRenew" type="radio" id="radio2" value="0" checked="checked" />{#No#}</label>
     <label><input type="radio" name="ThumbRenew" id="ThumbRenew_Yes" value="1" />{#Yes#}</label>     </td>
   </tr>
</table>
<input type="hidden" name="save" value="1" />
<input type="submit" class="button big" value="{#Global_savesettings#}" />
</form>



