Index: /mods/wpsg_mod_downloadplus.class.php
===================================================================
--- /mods/wpsg_mod_downloadplus.class.php	(revision 5462)
+++ /mods/wpsg_mod_downloadplus.class.php	(revision 5464)
@@ -265,20 +265,30 @@
 		} // public function produkt_save(&$produkt_id)
 		
-		public function produkt_edit_sidebar(&$produkt_data) 
-		{
-
+		
+		/*
+		 * zeigt ein Upload-Formular im linken Bereich des Produktbackend an
+		*/
+		public function product_addedit_content(&$product_content, &$product_data)
+		{
 			if (isset($_REQUEST['wpsg_lang'])) return;
-			
+				
 			if ($produkt_data['id'] > 0)
 			{
-				
+			
 				$this->shop->view['data'] = $produkt_data;
 				$this->shop->view['filesList'] = $this->renderFilesList($produkt_data['id']);
-				$this->shop->render(WPSG_PATH_VIEW.'/mods/mod_downloadplus/produkt_edit_sidebar.phtml');
-				
-			}
-			
-		} // public function produkt_edit_sidebar(&$produkt_data)
-		 
+			
+			}
+				
+			$this->shop->view['wpsg_mod_downloadplus']['data'] = $product_data;
+		
+			$product_content['wpsg_mod_downloadplus'] = array(
+					'title' => __('DownloadPlus Produkt', 'wpsg'),
+					'content' => $this->shop->render(WPSG_PATH_VIEW.'/mods/mod_downloadplus/produkt_addedit_sidebar.phtml', false)
+			);
+		
+		} //public function product_addedit_content(&$product_content, &$product_data)
+
+		
 		public function setOrderStatus($order_id, $status_id, $inform)
 		{
Index: /mods/wpsg_mod_downloadprodukte.class.php
===================================================================
--- /mods/wpsg_mod_downloadprodukte.class.php	(revision 5462)
+++ /mods/wpsg_mod_downloadprodukte.class.php	(revision 5464)
@@ -80,32 +80,18 @@
 		public function product_addedit_content(&$product_content, &$product_data)
 		{
-		
-			if (isset($_REQUEST['wpsg_lang']) || !wpsg_isSizedInt($produkt_data['id'])) return;
-
+			
 			$this->shop->view['data'] = $produkt_data;
 			$this->shop->view['prodFiles'] = $this->getProdFileListe($produkt_data['id']);
 			$this->shop->view['wpsg_mod_downloadprodukte']['path'] = str_replace('\\', '\\\\', $this->getFilePath($produkt_data['id']));
-					
+			
+			$this->shop->view['wpsg_mod_downloadprodukte']['data'] = $product_data;
+		
 			$product_content['wpsg_mod_downloadprodukte'] = array(
-					'title' => __('Upload fÃŒr Downloadprodukte', 'wpsg'),
-					'content' => $this->shop->render(WPSG_PATH_VIEW.'/mods/mod_downloadprodukte/produkt_edit_sidebar.phtml', false)
+				'title' => __('Downloadprodukte', 'wpsg'),
+				'content' => $this->shop->render(WPSG_PATH_VIEW.'/mods/mod_downloadprodukte/produkt_addedit_sidebar.phtml', false)
 			);
 		
-		} // public function produkt_edit_sidebar(&$product_content, &$produkt_data)
-		
-		/*
-		public function produkt_edit_sidebar(&$produkt_data) 
-		{
-			
-			if (isset($_REQUEST['wpsg_lang']) || !wpsg_isSizedInt($produkt_data['id'])) return;
-
-			$this->shop->view['data'] = $produkt_data;
-			$this->shop->view['prodFiles'] = $this->getProdFileListe($produkt_data['id']);
-			$this->shop->view['wpsg_mod_downloadprodukte']['path'] = str_replace('\\', '\\\\', $this->getFilePath($produkt_data['id']));
-		 			
-			$this->shop->render(WPSG_PATH_VIEW.'/mods/mod_downloadprodukte/produkt_edit_sidebar.phtml');
-			
-		} // public function produkt_edit_sidebar(&$produkt_data)
-		*/
+		} //public function product_addedit_content(&$product_content, &$product_data)
+		
 		public function order_view_row(&$p, $i) 
 		{
Index: /mods/wpsg_mod_relatedproducts.class.php
===================================================================
--- /mods/wpsg_mod_relatedproducts.class.php	(revision 5462)
+++ /mods/wpsg_mod_relatedproducts.class.php	(revision 5464)
@@ -100,15 +100,25 @@
 		} // public function produkt_save($produkt_id)
 		
-		public function produkt_edit_sidebar(&$produkt_data) 
-		{ 
-
+		/*
+		 * zeigt die ZubehÃ¶rprodukte im Produktbackend an
+		*/
+		public function product_addedit_content(&$product_content, &$product_data)
+		{
+				
 			if (isset($_REQUEST['wpsg_lang'])) return;
 			
-			if ($produkt_data['id'] <= 0) return;
+			//if ($produkt_data['id'] <= 0) return;
 			
 			$this->shop->view['data'] = $produkt_data;
-			$this->shop->render(WPSG_PATH_VIEW.'/mods/mod_relatedproducts/produkt_edit_sidebar.phtml');
-						
-		} // public function produkt_edit_sidebar(&$produkt_data)
+			
+			$this->shop->view['wpsg_mod_relatedproducts']['data'] = $product_data;
+		
+			$product_content['wpsg_mod_relatedproducts'] = array(
+					'title' => __('ZubehÃ¶rprodukte', 'wpsg'),
+					'content' => $this->shop->render(WPSG_PATH_VIEW.'/mods/mod_relatedproducts/produkt_addedit_sidebar.phtml', false)
+			);
+		
+		} //public function product_addedit_content(&$product_content, &$product_data)
+		
 		
 		public function produkt_ajax()
Index: /mods/wpsg_mod_scaleprice.class.php
===================================================================
--- /mods/wpsg_mod_scaleprice.class.php	(revision 5462)
+++ /mods/wpsg_mod_scaleprice.class.php	(revision 5464)
@@ -68,10 +68,11 @@
 		} // public function install()
 		
-		public function produkt_edit_sidebar(&$produkt_data) 
-		{ 
-			
-			if (!isset($produkt_data['id'])) return;
-			
-			$this->shop->view['wpsg_mod_scaleprice']['product'] = $produkt_data; 
+		/*
+		 * zeigt die Saffelpreise im Produktbackend an
+		*/
+		public function product_addedit_content(&$product_content, &$product_data)
+		{
+		
+			$this->shop->view['wpsg_mod_scaleprice']['product'] = $product_data; 
 			
 			$this->shop->view['wpsg_mod_scaleprice']['arTyp'] = array(
@@ -86,4 +87,33 @@
 			}
 			
+			$this->shop->view['wpsg_mod_scaleprice']['list'] = $this->scaleList($product_data['id']);
+		
+			$product_content['wpsg_mod_scaleprice'] = array(
+					'title' => __('Staffelpreise', 'wpsg'),
+					'content' => $this->shop->render(WPSG_PATH_VIEW.'/mods/mod_scaleprice/produkt_addedit_sidebar.phtml', false)
+			);
+		
+		} //public function product_addedit_content(&$product_content, &$product_data)
+		
+		
+		/*
+		public function produkt_edit_sidebar(&$produkt_data) 
+		{ 
+			
+			if (!isset($produkt_data['id'])) return;
+			
+			$this->shop->view['wpsg_mod_scaleprice']['product'] = $produkt_data; 
+			
+			$this->shop->view['wpsg_mod_scaleprice']['arTyp'] = array(
+				wpsg_mod_scaleprice::TYP_QUANTITY => __('Menge', 'wpsg')	
+			);
+			
+			if ($this->shop->hasMod('wpsg_mod_weight'))
+			{
+				
+				$this->shop->view['wpsg_mod_scaleprice']['arTyp'][wpsg_mod_scaleprice::TYP_WEIGHT] = __('Gewicht', 'wpsg');
+				
+			}
+			
 			$this->shop->view['wpsg_mod_scaleprice']['list'] = $this->scaleList($produkt_data['id']);
 			
@@ -91,4 +121,5 @@
 			
 		} // public function produkt_edit_sidebar(&$produkt_data)
+		*/
 		
 		public function produkt_save_before(&$produkt_data) 
Index: /mods/wpsg_mod_videodownload.class.php
===================================================================
--- /mods/wpsg_mod_videodownload.class.php	(revision 5462)
+++ /mods/wpsg_mod_videodownload.class.php	(revision 5464)
@@ -184,19 +184,29 @@
 		} // public function order_view_sidebar(&$order_id) 
 		
-		public function produkt_edit_sidebar(&$produkt_data) 
-		{
-
-			if (isset($_REQUEST['wpsg_lang'])) return;
-			
-			if ($produkt_data['id'] > 0)
-			{
-				
-				$this->shop->view['data'] = $produkt_data;
+		/*
+		 * zeigt ein Upload-Formular im linken Bereich des Produktbackend an
+		* @param &array $produkt_data
+		*/
+		public function product_addedit_content(&$product_content, &$product_data)
+		{
+				
+		if (isset($_REQUEST['wpsg_lang'])) return;
+			
+			if ($product_data['id'] > 0)
+			{
+				
+				$this->shop->view['data'] = $product_data;
 				$this->shop->view['filesList'] = $this->renderFilesList($produkt_data['id']);
-				$this->shop->render(WPSG_PATH_VIEW.'/mods/mod_videodownload/produkt_edit_sidebar.phtml');
-				
-			}
-			
-		} // public function produkt_edit_sidebar(&$produkt_data)
+				
+			}
+			
+			$this->shop->view['wpsg_mod_videodownload']['data'] = $product_data;
+		
+			$product_content['wpsg_mod_videodownload'] = array(
+					'title' => __('Videoprodukt', 'wpsg'),
+					'content' => $this->shop->render(WPSG_PATH_VIEW.'/mods/mod_videodownload/produkt_edit_sidebar.phtml', false)
+			);
+		
+		} //public function product_addedit_content(&$product_content, &$product_data)
 		
 		public function produkt_ajax() 
Index: /mods/wpsg_mod_voucherproduct.class.php
===================================================================
--- /mods/wpsg_mod_voucherproduct.class.php	(revision 5462)
+++ /mods/wpsg_mod_voucherproduct.class.php	(revision 5464)
@@ -315,10 +315,16 @@
 		} // public function setOrderStatus($order_id, $status_id, $inform)
 		
-		public function produkt_edit_sidebar(&$produkt_data) 
-		{ 
-		
-			$this->shop->render(WPSG_PATH_VIEW.'/mods/mod_voucherproduct/produkt_edit_sidebar.phtml');
-			
-		} // public function produkt_edit_sidebar(&$produkt_data) 
+		/*
+		 * zeigt die Gutscheinprodukte im Produktbackend an
+		*/
+		public function product_addedit_content(&$product_content, &$product_data)
+		{
+		
+			$product_content['wpsg_mod_voucherprudct'] = array(
+					'title' => __('Gutscheinprodukte', 'wpsg'),
+					'content' => $this->shop->render(WPSG_PATH_VIEW.'/mods/mod_voucherproduct/produkt_edit_sidebar.phtml', false)
+			);
+		
+		} //public function product_addedit_content(&$product_content, &$product_data)
 		
 		public function admin_emailconf_save()
Index: /views/mods/mod_downloadplus/produkt_addedit_sidebar.phtml
===================================================================
--- /views/mods/mod_downloadplus/produkt_addedit_sidebar.phtml	(revision 5464)
+++ /views/mods/mod_downloadplus/produkt_addedit_sidebar.phtml	(revision 5464)
@@ -0,0 +1,105 @@
+<?php
+
+	/**
+	 * Template fÃŒr die Integration des Uploadformulars im rechten Bereich
+	 * sollte nicht verÃ€ndert werden
+	 */
+
+?>
+<script type="text/javascript">
+/* <![CDATA[ */
+
+    function wpsg_pdfdownload_removePDF(file)
+	{
+
+    	if (!confirm('<?php echo __('Sind sie sich sicher, dass sie die Datei lÃ¶schen mÃ¶chten?', 'wpsg'); ?>')) return false;
+
+    	jQuery('#wpsg_mod_downloadplus_files').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
+    	
+		jQuery.ajax( {
+			url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_downloadplus&edit_id=<?php echo $this->view['data']['id']; ?>&noheader=1&cmd=delete_file&file=' + file,
+			success: function(response) {
+
+				if (response == '1')
+				{
+					jQuery("#wpsg_mod_downloadplus_files").load("<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_downloadplus&cmd=pdffiles_list&edit_id=<?php echo $_REQUEST['edit_id']; ?>&noheader=1");
+				}
+				else
+				{
+					
+					alert(response);
+					jQuery("#wpsg_mod_downloadplus_files").load("<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_downloadplus&cmd=pdffiles_list&edit_id=<?php echo $_REQUEST['edit_id']; ?>&noheader=1");
+					
+				}
+				
+			}			
+		} );
+    	
+		return false;
+    	
+	} // function wpsg_pdfdownload_removePDF($pdf)
+             
+	jQuery(document).ready(function() {	
+
+		<?php if ($this->get_option('wpsg_classicupload') != '1') { ?>
+		new AjaxUpload(
+			"wpsg_mod_downloadplus_upload", {
+				name: "wpsg_mod_downloadplus_file",
+				action: "<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_downloadplus&edit_id=<?php echo $this->view['data']['id'] ?>&noheader=1&cmd=upload_file",
+				onSubmit: function(file, extension) {
+	
+					jQuery('#wpsg_mod_downloadplus_files').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
+					
+				},
+				onComplete: function(file, response) {
+
+					if (response == '1')
+					{
+						jQuery("#wpsg_mod_downloadplus_files").load("<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_downloadplus&cmd=pdffiles_list&edit_id=<?php echo $_REQUEST['edit_id']; ?>&noheader=1");
+					}
+					else
+					{
+						
+						alert(response);
+						jQuery("#wpsg_mod_downloadplus_files").load("<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_downloadplus&cmd=pdffiles_list&edit_id=<?php echo $_REQUEST['edit_id']; ?>&noheader=1");
+						
+					}
+				}										
+			}
+		);
+		<?php } ?>			
+				   
+	}); 
+	
+/* ]]> */
+</script>
+
+<div id="wpsg_pdfdownload" class="postbox">	
+	<h3 class="wpsg_handlediv">
+		<span title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>" class="handlediv"><br /></span>
+		<span><?php echo __('DownloadPlus Produkt', 'wpsg'); ?> </span>
+	</h3>
+	<div class="inside">
+		<div id="wpsg_mod_downloadplus_files"><?php echo $this->view['filesList']; ?></div>
+		
+		<?php if ($this->get_option('wpsg_classicupload') == '1') { ?>
+		<input type="file" name="wpsg_mod_downloadplus_file" />
+		<?php } else { ?>	
+		<input value="<?php echo __("Upload", "wpsg"); ?>" type="text" style="text-align:center;" size="10" id="wpsg_mod_downloadplus_upload" />
+		<?php } ?>
+		
+		<div class="wpsg_clear"></div><br />
+		<div class="wpsg_form_field">
+			<div class="wpsg_form_left" style="width:75px;">
+				<label for="feinheit"><?php echo __('FTP Pfad', 'wpsg'); ?>:</label>
+			</div>
+			<div class="wpsg_form_right">
+				<p>
+					<a href="#" onclick="alert('<?php echo addslashes($this->callMod('wpsg_mod_downloadplus', 'getPDFPath', array($this->view['data']['id'], true))); ?>'); return false;"><?php echo __('Anzeigen', 'wpsg'); ?></a>
+				</p>
+			</div>
+			<div class="wpsg_clear"></div>
+		</div>		
+	</div>
+	<div class="clear"></div>
+</div>
Index: ews/mods/mod_downloadplus/produkt_edit_sidebar.phtml
===================================================================
--- /views/mods/mod_downloadplus/produkt_edit_sidebar.phtml	(revision 5462)
+++ 	(revision )
@@ -1,105 +1,0 @@
-<?php
-
-	/**
-	 * Template fÃŒr die Integration des Uploadformulars im rechten Bereich
-	 * sollte nicht verÃ€ndert werden
-	 */
-
-?>
-<script type="text/javascript">
-/* <![CDATA[ */
-
-    function wpsg_pdfdownload_removePDF(file)
-	{
-
-    	if (!confirm('<?php echo __('Sind sie sich sicher, dass sie die Datei lÃ¶schen mÃ¶chten?', 'wpsg'); ?>')) return false;
-
-    	jQuery('#wpsg_mod_downloadplus_files').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
-    	
-		jQuery.ajax( {
-			url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_downloadplus&edit_id=<?php echo $this->view['data']['id']; ?>&noheader=1&cmd=delete_file&file=' + file,
-			success: function(response) {
-
-				if (response == '1')
-				{
-					jQuery("#wpsg_mod_downloadplus_files").load("<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_downloadplus&cmd=pdffiles_list&edit_id=<?php echo $_REQUEST['edit_id']; ?>&noheader=1");
-				}
-				else
-				{
-					
-					alert(response);
-					jQuery("#wpsg_mod_downloadplus_files").load("<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_downloadplus&cmd=pdffiles_list&edit_id=<?php echo $_REQUEST['edit_id']; ?>&noheader=1");
-					
-				}
-				
-			}			
-		} );
-    	
-		return false;
-    	
-	} // function wpsg_pdfdownload_removePDF($pdf)
-             
-	jQuery(document).ready(function() {	
-
-		<?php if ($this->get_option('wpsg_classicupload') != '1') { ?>
-		new AjaxUpload(
-			"wpsg_mod_downloadplus_upload", {
-				name: "wpsg_mod_downloadplus_file",
-				action: "<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_downloadplus&edit_id=<?php echo $this->view['data']['id'] ?>&noheader=1&cmd=upload_file",
-				onSubmit: function(file, extension) {
-	
-					jQuery('#wpsg_mod_downloadplus_files').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
-					
-				},
-				onComplete: function(file, response) {
-
-					if (response == '1')
-					{
-						jQuery("#wpsg_mod_downloadplus_files").load("<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_downloadplus&cmd=pdffiles_list&edit_id=<?php echo $_REQUEST['edit_id']; ?>&noheader=1");
-					}
-					else
-					{
-						
-						alert(response);
-						jQuery("#wpsg_mod_downloadplus_files").load("<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_downloadplus&cmd=pdffiles_list&edit_id=<?php echo $_REQUEST['edit_id']; ?>&noheader=1");
-						
-					}
-				}										
-			}
-		);
-		<?php } ?>			
-				   
-	}); 
-	
-/* ]]> */
-</script>
-
-<div id="wpsg_pdfdownload" class="postbox">	
-	<h3 class="wpsg_handlediv">
-		<span title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>" class="handlediv"><br /></span>
-		<span><?php echo __('DownloadPlus Produkt', 'wpsg'); ?> </span>
-	</h3>
-	<div class="inside">
-		<div id="wpsg_mod_downloadplus_files"><?php echo $this->view['filesList']; ?></div>
-		
-		<?php if ($this->get_option('wpsg_classicupload') == '1') { ?>
-		<input type="file" name="wpsg_mod_downloadplus_file" />
-		<?php } else { ?>	
-		<input value="<?php echo __("Upload", "wpsg"); ?>" type="text" style="text-align:center;" size="10" id="wpsg_mod_downloadplus_upload" />
-		<?php } ?>
-		
-		<div class="wpsg_clear"></div><br />
-		<div class="wpsg_form_field">
-			<div class="wpsg_form_left" style="width:75px;">
-				<label for="feinheit"><?php echo __('FTP Pfad', 'wpsg'); ?>:</label>
-			</div>
-			<div class="wpsg_form_right">
-				<p>
-					<a href="#" onclick="alert('<?php echo addslashes($this->callMod('wpsg_mod_downloadplus', 'getPDFPath', array($this->view['data']['id'], true))); ?>'); return false;"><?php echo __('Anzeigen', 'wpsg'); ?></a>
-				</p>
-			</div>
-			<div class="wpsg_clear"></div>
-		</div>		
-	</div>
-	<div class="clear"></div>
-</div>
Index: /views/mods/mod_downloadprodukte/produkt_addedit_sidebar.phtml
===================================================================
--- /views/mods/mod_downloadprodukte/produkt_addedit_sidebar.phtml	(revision 5464)
+++ /views/mods/mod_downloadprodukte/produkt_addedit_sidebar.phtml	(revision 5464)
@@ -0,0 +1,102 @@
+<?php
+
+/**
+ * Dieses Template wird in der Produktverwaltung in der rechten Spalte verwendet
+ */
+
+?>
+
+<script type="text/javascript">
+/* <![CDATA[ */
+
+	jQuery(document).ready(function() {	
+
+		<?php if ($this->get_option('wpsg_classicupload') != '1') { ?>
+		new AjaxUpload(
+			"upload_produktfile_button", {
+				name: "wpsg_mod_downloadprodukte_file",
+				action: "<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_downloadprodukte&edit_id=<?php echo $this->view['data']['id'] ?>&noheader=1&cmd=upload_file",
+				onSubmit: function(file, extension) {
+	
+					jQuery('#produktfiles_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
+					
+				},
+				onComplete: function(file, response) {
+					//alert(response);
+					if (response == '1')
+					{
+						//jQuery("#produktfiles_target").html('lalal');
+						jQuery("#produktfiles_target").load("<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_downloadprodukte&cmd=produktfiles_list&edit_id=<?php echo $_REQUEST['edit_id']; ?>&noheader=1");
+					}
+					else
+					{
+						alert(response);
+					}
+				}										
+			}
+		);
+		<?php } ?>
+							   
+	} );
+
+	/**
+	 * Wird beim lÃ¶schen einer Datei aufgerufen
+	 */
+	function wpsg_remove_file(strFile)
+	{
+
+		if (!confirm('<?php echo __('Sind Sie sicher, das Sie diese Datei lÃ¶schen mÃ¶chten?', 'wpsg'); ?>')) return false;
+
+		jQuery('#produktfiles_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
+		
+		jQuery.ajax( {
+			url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_downloadprodukte&cmd=remove&noheader=1&edit_id=<?php echo $this->view['data']['id']; ?>',
+			data: {
+				file: strFile
+			},
+			success: function(data) {
+				//alert(data);
+				jQuery('#produktfiles_target').html(data);
+			}
+		} );
+
+		return false;
+		
+	}
+	
+/* ]]> */
+</script>
+
+<div id="wpsg_downloadprodukte" class="postbox">
+	<h3 class="wpsg_handlediv">
+		<span title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>" class="handlediv"><br /></span>
+		<span>
+			<?php echo __('Downloadprodukt', 'wpsg'); ?>
+			<a rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_mod_downloadprodukt_produktverwaltung" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_mod_downloadprodukt_produktverwaltung" class="wpsg_form_help"></a> 
+		</span>
+	</h3>
+	<div class="inside">
+		<div id="produktfiles_target"><?php echo $this->view['prodFiles']; ?></div>
+		
+		<?php if ($this->get_option('wpsg_classicupload') == '1') { ?>
+		<input type="file" name="wpsg_mod_downloadprodukte_file" />
+		<?php } else { ?>	
+		<input value="<?php echo __("Upload", "wpsg"); ?>" type="text" style="text-align:center;" size="10" id="upload_produktfile_button" />
+		<?php } ?>		
+		
+		<div class="wpsg_clear"></div><br />
+		<div class="wpsg_form_field">
+			<div class="wpsg_form_left" style="width:75px;">
+				<label for="feinheit"><?php echo __('FTP Pfad', 'wpsg'); ?>:</label>
+			</div>
+			<div class="wpsg_form_right">
+				<p>
+					<a href="#" onclick="alert('<?php echo wpsg_hspc($this->view['wpsg_mod_downloadprodukte']['path']); ?>'); return false;"><?php echo __('Anzeigen', 'wpsg'); ?></a>
+				</p>
+			</div>
+			<div class="wpsg_clear"></div>
+		</div>		
+		
+	</div>
+	<div class="clear"></div>
+</div>
Index: ews/mods/mod_downloadprodukte/produkt_edit_sidebar.phtml
===================================================================
--- /views/mods/mod_downloadprodukte/produkt_edit_sidebar.phtml	(revision 5462)
+++ 	(revision )
@@ -1,102 +1,0 @@
-<?php
-
-/**
- * Dieses Template wird in der Produktverwaltung in der rechten Spalte verwendet
- */
-
-?>
-
-<script type="text/javascript">
-/* <![CDATA[ */
-
-	jQuery(document).ready(function() {	
-
-		<?php if ($this->get_option('wpsg_classicupload') != '1') { ?>
-		new AjaxUpload(
-			"upload_produktfile_button", {
-				name: "wpsg_mod_downloadprodukte_file",
-				action: "<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_downloadprodukte&edit_id=<?php echo $this->view['data']['id'] ?>&noheader=1&cmd=upload_file",
-				onSubmit: function(file, extension) {
-	
-					jQuery('#produktfiles_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
-					
-				},
-				onComplete: function(file, response) {
-					//alert(response);
-					if (response == '1')
-					{
-						//jQuery("#produktfiles_target").html('lalal');
-						jQuery("#produktfiles_target").load("<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_downloadprodukte&cmd=produktfiles_list&edit_id=<?php echo $_REQUEST['edit_id']; ?>&noheader=1");
-					}
-					else
-					{
-						alert(response);
-					}
-				}										
-			}
-		);
-		<?php } ?>
-							   
-	} );
-
-	/**
-	 * Wird beim lÃ¶schen einer Datei aufgerufen
-	 */
-	function wpsg_remove_file(strFile)
-	{
-
-		if (!confirm('<?php echo __('Sind Sie sicher, das Sie diese Datei lÃ¶schen mÃ¶chten?', 'wpsg'); ?>')) return false;
-
-		jQuery('#produktfiles_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
-		
-		jQuery.ajax( {
-			url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_downloadprodukte&cmd=remove&noheader=1&edit_id=<?php echo $this->view['data']['id']; ?>',
-			data: {
-				file: strFile
-			},
-			success: function(data) {
-				//alert(data);
-				jQuery('#produktfiles_target').html(data);
-			}
-		} );
-
-		return false;
-		
-	}
-	
-/* ]]> */
-</script>
-
-<div id="wpsg_downloadprodukte" class="postbox">
-	<h3 class="wpsg_handlediv">
-		<span title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>" class="handlediv"><br /></span>
-		<span>
-			<?php echo __('Downloadprodukt', 'wpsg'); ?>
-			<a rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_mod_downloadprodukt_produktverwaltung" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_mod_downloadprodukt_produktverwaltung" class="wpsg_form_help"></a> 
-		</span>
-	</h3>
-	<div class="inside">
-		<div id="produktfiles_target"><?php echo $this->view['prodFiles']; ?></div>
-		
-		<?php if ($this->get_option('wpsg_classicupload') == '1') { ?>
-		<input type="file" name="wpsg_mod_downloadprodukte_file" />
-		<?php } else { ?>	
-		<input value="<?php echo __("Upload", "wpsg"); ?>" type="text" style="text-align:center;" size="10" id="upload_produktfile_button" />
-		<?php } ?>		
-		
-		<div class="wpsg_clear"></div><br />
-		<div class="wpsg_form_field">
-			<div class="wpsg_form_left" style="width:75px;">
-				<label for="feinheit"><?php echo __('FTP Pfad', 'wpsg'); ?>:</label>
-			</div>
-			<div class="wpsg_form_right">
-				<p>
-					<a href="#" onclick="alert('<?php echo wpsg_hspc($this->view['wpsg_mod_downloadprodukte']['path']); ?>'); return false;"><?php echo __('Anzeigen', 'wpsg'); ?></a>
-				</p>
-			</div>
-			<div class="wpsg_clear"></div>
-		</div>		
-		
-	</div>
-	<div class="clear"></div>
-</div>
Index: /views/mods/mod_relatedproducts/produkt_addedit_sidebar.phtml
===================================================================
--- /views/mods/mod_relatedproducts/produkt_addedit_sidebar.phtml	(revision 5464)
+++ /views/mods/mod_relatedproducts/produkt_addedit_sidebar.phtml	(revision 5464)
@@ -0,0 +1,52 @@
+<?php
+
+	/**
+	 * Template fÃŒr die Zuweisung von ZubehÃ¶rprodukten
+	 */
+
+?>
+<div id="wpsg_relatedproducts" class="postbox">
+	<h3 class="wpsg_handlediv">
+		<span title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>" class="handlediv"><br /></span>
+		<span><?php echo __('ZubehÃ¶rprodukte', 'wpsg'); ?> </span>
+	</h3>
+	<div class="inside">
+		 <a title="<?php echo __('Neuens Produkt zuordnen', 'wpsg'); ?>" href="" class="wpsg_icon wpsg_icon_right wpsg_icon_add" onclick="return wpsg_relatedproducts_add();"></a>
+		 <div class="wpsg_clear"></div>
+		 <div id="relatedproducts_list"><?php echo $this->callMod('wpsg_mod_relatedproducts', 'drawList', array($this->view['data']['id'])); ?></div>
+	</div>
+</div>
+
+<script type="text/javascript">
+
+	/**
+	 * Wird aufgerufen wenn ein Produkt zugeordnet werden soll
+	 */
+	function wpsg_relatedproducts_add() 
+	{
+
+		jQuery('#wpsg_relatedproducts_produktauswahl').html('<img style="margin:15px;" src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
+		
+		jQuery('#wpsg_relatedproducts_produktauswahl').dialog( {
+			'dialogClass': 'wp-dialog',           
+	        'modal': true,
+	        'width': 390,
+	        'height': 350,	       
+	        'title': '<?php echo __('Produktauswahl', 'wpsg'); ?>',
+	        'open': function() {
+
+	        	jQuery.ajax( {
+	    			url: 'admin.php?page=wpsg-Produkt&action=select&noheader=1&wpsg_mode=wpsg_mod_relatedproducts&edit_id=<?php echo $this->view['data']['id']; ?>',
+	    			success: function(data) {
+	    				jQuery('#wpsg_relatedproducts_produktauswahl').html(data);	
+	    			}
+	    		} );
+			        
+	        }
+		} );
+
+		return false;
+		 		
+	} // function wpsg_relatedproducts_add()
+
+</script>
Index: ews/mods/mod_relatedproducts/produkt_edit_sidebar.phtml
===================================================================
--- /views/mods/mod_relatedproducts/produkt_edit_sidebar.phtml	(revision 5462)
+++ 	(revision )
@@ -1,52 +1,0 @@
-<?php
-
-	/**
-	 * Template fÃŒr die Zuweisung von ZubehÃ¶rprodukten
-	 */
-
-?>
-<div id="wpsg_relatedproducts" class="postbox">
-	<h3 class="wpsg_handlediv">
-		<span title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>" class="handlediv"><br /></span>
-		<span><?php echo __('ZubehÃ¶rprodukte', 'wpsg'); ?> </span>
-	</h3>
-	<div class="inside">
-		 <a title="<?php echo __('Neuens Produkt zuordnen', 'wpsg'); ?>" href="" class="wpsg_icon wpsg_icon_right wpsg_icon_add" onclick="return wpsg_relatedproducts_add();"></a>
-		 <div class="wpsg_clear"></div>
-		 <div id="relatedproducts_list"><?php echo $this->callMod('wpsg_mod_relatedproducts', 'drawList', array($this->view['data']['id'])); ?></div>
-	</div>
-</div>
-
-<script type="text/javascript">
-
-	/**
-	 * Wird aufgerufen wenn ein Produkt zugeordnet werden soll
-	 */
-	function wpsg_relatedproducts_add() 
-	{
-
-		jQuery('#wpsg_relatedproducts_produktauswahl').html('<img style="margin:15px;" src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
-		
-		jQuery('#wpsg_relatedproducts_produktauswahl').dialog( {
-			'dialogClass': 'wp-dialog',           
-	        'modal': true,
-	        'width': 390,
-	        'height': 350,	       
-	        'title': '<?php echo __('Produktauswahl', 'wpsg'); ?>',
-	        'open': function() {
-
-	        	jQuery.ajax( {
-	    			url: 'admin.php?page=wpsg-Produkt&action=select&noheader=1&wpsg_mode=wpsg_mod_relatedproducts&edit_id=<?php echo $this->view['data']['id']; ?>',
-	    			success: function(data) {
-	    				jQuery('#wpsg_relatedproducts_produktauswahl').html(data);	
-	    			}
-	    		} );
-			        
-	        }
-		} );
-
-		return false;
-		 		
-	} // function wpsg_relatedproducts_add()
-
-</script>
Index: /views/mods/mod_scaleprice/produkt_addedit_sidebar.phtml
===================================================================
--- /views/mods/mod_scaleprice/produkt_addedit_sidebar.phtml	(revision 5464)
+++ /views/mods/mod_scaleprice/produkt_addedit_sidebar.phtml	(revision 5464)
@@ -0,0 +1,202 @@
+<?php
+
+	/**
+	 * Template fÃŒr die Integration der Staffelpreise in die Produktverwaltung
+	 */
+
+?>
+<script type="text/javascript">/* <![CDATA[ */
+
+	jQuery(document).ready(function() {
+ 
+		jQuery('#wpsg_mod_scaleprice_activ').bind('change', function() {
+ 
+			if (jQuery(this).attr('checked') == 'checked') jQuery('#wpsg_mod_scaleprice_layer').show();
+			else jQuery('#wpsg_mod_scaleprice_layer').hide();
+			
+		} ).change();
+
+		jQuery('#wpsg_mod_scaleprice_typ').bind('change', function() { wpsg_mod_scaleprice_refresh(); } );
+		jQuery('#wpsg_mod_scaleprice_calc').bind('change', function() { wpsg_mod_scaleprice_saveAjax(); } );
+		
+		<?php /* echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_downloadprodukte&edit_id=<?php echo $this->view['data']['id'] ?>&noheader=1&cmd=upload_file*/?>
+				
+	} );
+
+	function wpsg_mod_scaleprice_add()
+	{
+
+		var wpsg_scale = jQuery('#wpsg_mod_scaleprice_scale').val();
+		var wpsg_value = jQuery('#wpsg_mod_scaleprice_value').val();
+		 
+		jQuery('#wpsg_mod_scaleprice_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
+		
+		jQuery.ajax( {
+			url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_scaleprice&edit_id=<?php echo $this->view['wpsg_mod_scaleprice']['product']['id']; ?>&noheader=1&cmd=add',
+			data: { 
+				'scale': wpsg_scale,
+				'value': wpsg_value
+			},
+			success: function(data) {
+				
+				jQuery('#wpsg_mod_scaleprice_target').html(data);
+				wpsg_mod_scaleprice_clearErrorField();
+				 				
+			}
+		} );
+
+		return false;
+		
+	} // function wpsg_mod_scaleprice_add() 
+
+	function wpsg_mod_scaleprice_refresh()
+	{
+ 
+		jQuery('#wpsg_mod_scaleprice_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
+		
+		jQuery.ajax( {
+			url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_scaleprice&edit_id=<?php echo $this->view['wpsg_mod_scaleprice']['product']['id']; ?>&noheader=1&cmd=refresh',
+			data: {
+				typ: jQuery('#wpsg_mod_scaleprice_typ').val(),
+				calc: jQuery('#wpsg_mod_scaleprice_calc').val()
+			},
+			success: function(data) {
+				
+				jQuery('#wpsg_mod_scaleprice_target').html(data);
+				wpsg_mod_scaleprice_clearErrorField();
+				
+			}
+		} );
+
+		return false;
+		
+	} // function wpsg_mod_scaleprice_refresh() 
+
+	function wpsg_mod_scaleprice_saveAjax()
+	{
+ 
+		jQuery.ajax( {
+			url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_scaleprice&edit_id=<?php echo $this->view['wpsg_mod_scaleprice']['product']['id']; ?>&noheader=1&cmd=ajaxSave',
+			data: {
+				typ: jQuery('#wpsg_mod_scaleprice_typ').val(),
+				calc: jQuery('#wpsg_mod_scaleprice_calc').val()
+			},
+			success: function(data) {
+
+				wpsg_mod_scaleprice_clearErrorField();
+			
+			}			
+		} );
+		
+	} // function wpsg_mod_scaleprice_saveAjax()
+
+	function wpsg_mod_scaleprice_clearErrorField()
+	{
+
+		var wpsg_product_edit_change_new = Array();
+
+		for (var i = 0; i < wpsg_product_edit_change.length; i++)
+		{
+
+			if (!wpsg_product_edit_change[i].match(/^wpsg_mod_scaleprice/))
+			{
+
+				wpsg_product_edit_change_new.push(wpsg_product_edit_change[i]);
+				
+			}
+			
+		} 
+
+		wpsg_product_edit_change = wpsg_product_edit_change_new;
+				
+	}
+	
+	function wpsg_mod_scaleprice_change(ev)
+	{
+ 
+		if (!wpsg_in_array(ev.target.id, wpsg_product_edit_change) && jQuery(ev.target).val() != "")
+		{
+
+			wpsg_product_edit_change.push(ev.target.id);
+			 
+		}
+		else if (jQuery(ev.target).val() == "" && wpsg_in_array(ev.target.id, wpsg_product_edit_change))
+		{
+ 
+		    for (var i = 0; i < wpsg_product_edit_change.length; i++) 
+			{
+		    	
+		        if (wpsg_product_edit_change[i] == ev.target.id)
+		        {
+
+			    	wpsg_product_edit_change.splice(i, 1);
+			    	jQuery('#' + ev.target.id).removeClass('wpsg_change_error');
+			         
+		        } 
+		    	
+		    }
+			
+		}
+		
+	} // function wpsg_mod_scaleprice_change(ev)
+	
+	function wpsg_mod_scaleprice_remove(scale_id)
+	{
+
+		if (!confirm('<?php echo __('Sind Sie sich sicher, dass sie diese Staffel entfernen mÃ¶chten?', 'wpsg'); ?>')) return false;
+ 
+		jQuery.ajax( {
+			url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_scaleprice&edit_id=<?php echo $this->view['wpsg_mod_scaleprice']['product']['id']; ?>&noheader=1&cmd=remove',
+			data: {
+				scale_id: scale_id
+			},
+			success: function(data) {
+				
+				jQuery('#wpsg_mod_scaleprice_row_' + scale_id).remove();
+				
+			}
+		} );
+
+		return false;
+		
+	} // function wpsg_mod_scaleprice_remove(scale_id)
+         
+/* ]]> */</script>
+
+<div class="postbox" id="wpsg_scaleprice">
+	<h3 class="wpsg_handlediv">
+		<span title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>" class="handlediv"><br /></span>
+		<span><?php echo __('Staffelpreise', 'wpsg'); ?></span>
+	</h3> 
+	<div class="inside">
+	
+		<?php if ($this->view['wpsg_mod_scaleprice']['product']['id'] <= 0) { ?>
+		<p><?php echo __('Staffelpreise kÃ¶nnen erst nach einmaligem Speichern des Produktes definiert werden.', 'wpsg'); ?>
+		<?php } else { ?>
+
+		<?php echo wpsg_drawForm_Checkbox('wpsg_mod_scaleprice_activ', __('Staffelpreise aktiv', 'wpsg'), $this->view['wpsg_mod_scaleprice']['product']['wpsg_mod_scaleprice_activ']); ?>
+		
+		<div id="wpsg_mod_scaleprice_layer">
+		 
+		 	<?php if (wpsg_isSizedArray($this->view['wpsg_mod_scaleprice']['arTyp']) && sizeof($this->view['wpsg_mod_scaleprice']['arTyp']) > 0) { ?>
+			<?php echo wpsg_drawForm_Select('wpsg_mod_scaleprice_typ', __('BezugsgrÃ¶Ãe', 'wpsg'), array(
+				wpsg_mod_scaleprice::TYP_QUANTITY => __('Menge', 'wpsg'),
+				wpsg_mod_scaleprice::TYP_WEIGHT => __('Gewicht', 'wpsg')
+			), $this->view['wpsg_mod_scaleprice']['product']['wpsg_mod_scaleprice_typ']); ?>
+			<?php } else { ?>
+			<input type="hidden" name="wpsg_mod_scaleprice_typ" id="wpsg_mod_scaleprice_typ" value="0" />
+			<?php } ?>
+			
+			<?php echo wpsg_drawForm_Select('wpsg_mod_scaleprice_calc', __('Berechnung', 'wpsg'), array(
+				wpsg_mod_scaleprice::CALC_REPLACE => __('Ersetzung', 'wpsg'),
+				wpsg_mod_scaleprice::CALC_ADD => __('Addition', 'wpsg')
+			), $this->view['wpsg_mod_scaleprice']['product']['wpsg_mod_scaleprice_calc']); ?>
+			 									
+			<div id="wpsg_mod_scaleprice_target"><?php echo $this->view['wpsg_mod_scaleprice']['list']; ?></div>
+			
+		</div>
+		
+		<?php } ?>
+				 
+	</div>
+</div>
Index: ews/mods/mod_scaleprice/produkt_edit_sidebar.phtml
===================================================================
--- /views/mods/mod_scaleprice/produkt_edit_sidebar.phtml	(revision 5462)
+++ 	(revision )
@@ -1,202 +1,0 @@
-<?php
-
-	/**
-	 * Template fÃŒr die Integration der Staffelpreise in die Produktverwaltung
-	 */
-
-?>
-<script type="text/javascript">/* <![CDATA[ */
-
-	jQuery(document).ready(function() {
- 
-		jQuery('#wpsg_mod_scaleprice_activ').bind('change', function() {
- 
-			if (jQuery(this).attr('checked') == 'checked') jQuery('#wpsg_mod_scaleprice_layer').show();
-			else jQuery('#wpsg_mod_scaleprice_layer').hide();
-			
-		} ).change();
-
-		jQuery('#wpsg_mod_scaleprice_typ').bind('change', function() { wpsg_mod_scaleprice_refresh(); } );
-		jQuery('#wpsg_mod_scaleprice_calc').bind('change', function() { wpsg_mod_scaleprice_saveAjax(); } );
-		
-		<?php /* echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_downloadprodukte&edit_id=<?php echo $this->view['data']['id'] ?>&noheader=1&cmd=upload_file*/?>
-				
-	} );
-
-	function wpsg_mod_scaleprice_add()
-	{
-
-		var wpsg_scale = jQuery('#wpsg_mod_scaleprice_scale').val();
-		var wpsg_value = jQuery('#wpsg_mod_scaleprice_value').val();
-		 
-		jQuery('#wpsg_mod_scaleprice_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
-		
-		jQuery.ajax( {
-			url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_scaleprice&edit_id=<?php echo $this->view['wpsg_mod_scaleprice']['product']['id']; ?>&noheader=1&cmd=add',
-			data: { 
-				'scale': wpsg_scale,
-				'value': wpsg_value
-			},
-			success: function(data) {
-				
-				jQuery('#wpsg_mod_scaleprice_target').html(data);
-				wpsg_mod_scaleprice_clearErrorField();
-				 				
-			}
-		} );
-
-		return false;
-		
-	} // function wpsg_mod_scaleprice_add() 
-
-	function wpsg_mod_scaleprice_refresh()
-	{
- 
-		jQuery('#wpsg_mod_scaleprice_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
-		
-		jQuery.ajax( {
-			url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_scaleprice&edit_id=<?php echo $this->view['wpsg_mod_scaleprice']['product']['id']; ?>&noheader=1&cmd=refresh',
-			data: {
-				typ: jQuery('#wpsg_mod_scaleprice_typ').val(),
-				calc: jQuery('#wpsg_mod_scaleprice_calc').val()
-			},
-			success: function(data) {
-				
-				jQuery('#wpsg_mod_scaleprice_target').html(data);
-				wpsg_mod_scaleprice_clearErrorField();
-				
-			}
-		} );
-
-		return false;
-		
-	} // function wpsg_mod_scaleprice_refresh() 
-
-	function wpsg_mod_scaleprice_saveAjax()
-	{
- 
-		jQuery.ajax( {
-			url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_scaleprice&edit_id=<?php echo $this->view['wpsg_mod_scaleprice']['product']['id']; ?>&noheader=1&cmd=ajaxSave',
-			data: {
-				typ: jQuery('#wpsg_mod_scaleprice_typ').val(),
-				calc: jQuery('#wpsg_mod_scaleprice_calc').val()
-			},
-			success: function(data) {
-
-				wpsg_mod_scaleprice_clearErrorField();
-			
-			}			
-		} );
-		
-	} // function wpsg_mod_scaleprice_saveAjax()
-
-	function wpsg_mod_scaleprice_clearErrorField()
-	{
-
-		var wpsg_product_edit_change_new = Array();
-
-		for (var i = 0; i < wpsg_product_edit_change.length; i++)
-		{
-
-			if (!wpsg_product_edit_change[i].match(/^wpsg_mod_scaleprice/))
-			{
-
-				wpsg_product_edit_change_new.push(wpsg_product_edit_change[i]);
-				
-			}
-			
-		} 
-
-		wpsg_product_edit_change = wpsg_product_edit_change_new;
-				
-	}
-	
-	function wpsg_mod_scaleprice_change(ev)
-	{
- 
-		if (!wpsg_in_array(ev.target.id, wpsg_product_edit_change) && jQuery(ev.target).val() != "")
-		{
-
-			wpsg_product_edit_change.push(ev.target.id);
-			 
-		}
-		else if (jQuery(ev.target).val() == "" && wpsg_in_array(ev.target.id, wpsg_product_edit_change))
-		{
- 
-		    for (var i = 0; i < wpsg_product_edit_change.length; i++) 
-			{
-		    	
-		        if (wpsg_product_edit_change[i] == ev.target.id)
-		        {
-
-			    	wpsg_product_edit_change.splice(i, 1);
-			    	jQuery('#' + ev.target.id).removeClass('wpsg_change_error');
-			         
-		        } 
-		    	
-		    }
-			
-		}
-		
-	} // function wpsg_mod_scaleprice_change(ev)
-	
-	function wpsg_mod_scaleprice_remove(scale_id)
-	{
-
-		if (!confirm('<?php echo __('Sind Sie sich sicher, dass sie diese Staffel entfernen mÃ¶chten?', 'wpsg'); ?>')) return false;
- 
-		jQuery.ajax( {
-			url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_scaleprice&edit_id=<?php echo $this->view['wpsg_mod_scaleprice']['product']['id']; ?>&noheader=1&cmd=remove',
-			data: {
-				scale_id: scale_id
-			},
-			success: function(data) {
-				
-				jQuery('#wpsg_mod_scaleprice_row_' + scale_id).remove();
-				
-			}
-		} );
-
-		return false;
-		
-	} // function wpsg_mod_scaleprice_remove(scale_id)
-         
-/* ]]> */</script>
-
-<div class="postbox" id="wpsg_scaleprice">
-	<h3 class="wpsg_handlediv">
-		<span title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>" class="handlediv"><br /></span>
-		<span><?php echo __('Staffelpreise', 'wpsg'); ?></span>
-	</h3> 
-	<div class="inside">
-	
-		<?php if ($this->view['wpsg_mod_scaleprice']['product']['id'] <= 0) { ?>
-		<p><?php echo __('Staffelpreise kÃ¶nnen erst nach einmaligem Speichern des Produktes definiert werden.', 'wpsg'); ?>
-		<?php } else { ?>
-
-		<?php echo wpsg_drawForm_Checkbox('wpsg_mod_scaleprice_activ', __('Staffelpreise aktiv', 'wpsg'), $this->view['wpsg_mod_scaleprice']['product']['wpsg_mod_scaleprice_activ']); ?>
-		
-		<div id="wpsg_mod_scaleprice_layer">
-		 
-		 	<?php if (wpsg_isSizedArray($this->view['wpsg_mod_scaleprice']['arTyp']) && sizeof($this->view['wpsg_mod_scaleprice']['arTyp']) > 0) { ?>
-			<?php echo wpsg_drawForm_Select('wpsg_mod_scaleprice_typ', __('BezugsgrÃ¶Ãe', 'wpsg'), array(
-				wpsg_mod_scaleprice::TYP_QUANTITY => __('Menge', 'wpsg'),
-				wpsg_mod_scaleprice::TYP_WEIGHT => __('Gewicht', 'wpsg')
-			), $this->view['wpsg_mod_scaleprice']['product']['wpsg_mod_scaleprice_typ']); ?>
-			<?php } else { ?>
-			<input type="hidden" name="wpsg_mod_scaleprice_typ" id="wpsg_mod_scaleprice_typ" value="0" />
-			<?php } ?>
-			
-			<?php echo wpsg_drawForm_Select('wpsg_mod_scaleprice_calc', __('Berechnung', 'wpsg'), array(
-				wpsg_mod_scaleprice::CALC_REPLACE => __('Ersetzung', 'wpsg'),
-				wpsg_mod_scaleprice::CALC_ADD => __('Addition', 'wpsg')
-			), $this->view['wpsg_mod_scaleprice']['product']['wpsg_mod_scaleprice_calc']); ?>
-			 									
-			<div id="wpsg_mod_scaleprice_target"><?php echo $this->view['wpsg_mod_scaleprice']['list']; ?></div>
-			
-		</div>
-		
-		<?php } ?>
-				 
-	</div>
-</div>
