Index: /changelog
===================================================================
--- /changelog	(revision 5441)
+++ /changelog	(revision 5447)
@@ -825,2 +825,4 @@
  - Bugfix - Speichert man die Einstellungen eines aktiviertes Modul, bei dem der DEMO Modus abgelaufen wird kein Fehler mehr erzeugt.
  
+#4.0.0 / 5259
+ - Feature - Produktbilder - Mehrfacher Upload mÃ¶glich
Index: /controller/wpsg_AdminController.class.php
===================================================================
--- /controller/wpsg_AdminController.class.php	(revision 5441)
+++ /controller/wpsg_AdminController.class.php	(revision 5447)
@@ -1079,5 +1079,5 @@
 				foreach ($_REQUEST['pflicht'] as $k => $v)
 				{
-					//wpsg_debug($v);
+			 
 					if ($k == 'custom')
 					{
@@ -1116,5 +1116,5 @@
 					
 				}
-
+ 
 				$this->update_option('wpsg_admin_pflicht', $this->shop->view['pflicht']);
 				
Index: /controller/wpsg_ProduktController.class.php
===================================================================
--- /controller/wpsg_ProduktController.class.php	(revision 5441)
+++ /controller/wpsg_ProduktController.class.php	(revision 5447)
@@ -469,5 +469,5 @@
 				
 			}
-			
+						
 			// Produktobject			 
 			$this->shop->view['oProduct'] = wpsg_product::getInstance($_REQUEST['edit_id']);
@@ -505,4 +505,12 @@
 			}
 			
+			$this->shop->view['arSubAction'] = array(
+				'general' => array(
+					'title' => __('Allgemein', 'wpsg'),
+					'content' => $this->shop->render(WPSG_PATH_VIEW.'/produkt/addedit_general.phtml', false)
+				)
+			);			
+			
+			$this->shop->callMods('product_addedit_content', array(&$this->shop->view['arSubAction'], &$this->shop->view['data']));
 			
 			$this->shop->render(WPSG_PATH_VIEW.'/produkt/addedit.phtml');
@@ -611,5 +619,5 @@
 				// Erlaubte Zahlungsarten speichern
 				$data['allowedpayments'] = '';
-				if ($_REQUEST['wpsg_paymentmethods_select'] == '1')
+				if (wpsg_isSizedInt($_REQUEST['wpsg_paymentmethods_select'], '1'))
 				{
 				
@@ -622,5 +630,5 @@
 				// Erlaubte Versandarten speichern
 				$data['allowedshipping'] = '';
-				if ($_REQUEST['wpsg_shippingmethods_select'] == '1')
+				if (wpsg_isSizedInt($_REQUEST['wpsg_shippingmethods_select'], '1'))
 				{
 					
Index: /lib/functions.inc.php
===================================================================
--- /lib/functions.inc.php	(revision 5441)
+++ /lib/functions.inc.php	(revision 5447)
@@ -189,4 +189,18 @@
 		
 	} // function wpsg_asort_function($a, $b)
+	
+	/**
+	 * Gibt einen Pfad formatiert zurÃŒck
+	 * - Entfernt doppelte // bzw. \\
+	 * - Wandelt // in Systemspezifische Trenner um
+	 */
+	function wpsg_format_path($strPath)
+	{
+		
+		$strPath = preg_replace('/(\/+)|(\\+)/', DIRECTORY_SEPARATOR, $strPath);
+		
+		return $strPath;
+		
+	} // function wpsg_format_path($strPath)
 	
 	function wpsg_array_csort_pk_function($accountA, $accountB)
Index: /mods/wpsg_mod_produktbilder.class.php
===================================================================
--- /mods/wpsg_mod_produktbilder.class.php	(revision 5441)
+++ /mods/wpsg_mod_produktbilder.class.php	(revision 5447)
@@ -129,30 +129,35 @@
 			if ($_REQUEST['cmd'] == 'upload')
 			{
-
-				if (file_exists($_FILES['userfile']['tmp_name']))
+ 
+				foreach ($_FILES['userfile']['tmp_name'] as $k => $file_tmp_name)
 				{
-					
-					$uploaddir = $this->getPicPath($_REQUEST['edit_id']);
-					
-					if (!file_exists($uploaddir)) mkdir($uploaddir, 0777, true);
-					if (!file_exists($uploaddir.'tn/')) mkdir($uploaddir.'tn/', 0777, true);
-					
-					$uploadfile = $uploaddir.basename($_FILES['userfile']['name']);
-					
-					move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile);
-					
-					$uri = $this->makeTn($_REQUEST['edit_id'], $_FILES['userfile']['name'], get_option("wpsg_mod_produktbilder_width"), get_option("wpsg_mod_produktbilder_height"), get_option("wpsg_mod_produktbilder_mode"));
-					
-					if ($this->shop->hasMod('wpsg_mod_produktartikel')) $this->shop->callMod('wpsg_mod_produktartikel', 'updatePostThumbnail', array($_REQUEST['edit_id']));
-					
-					die("1");
-					
-				} 
-				else
-				{
-					
-					die(__('Fehler beim Upload! Datei existiert nicht.', 'wpsg'));
-					
+				
+					if (file_exists($file_tmp_name))
+					{
+							
+						$uploaddir = $this->getPicPath($_REQUEST['edit_id']);
+							
+						if (!file_exists($uploaddir)) mkdir($uploaddir, 0777, true);
+						if (!file_exists($uploaddir.'tn/')) mkdir($uploaddir.'tn/', 0777, true);
+							
+						$uploadfile = $uploaddir.basename($_FILES['userfile']['name'][$k]);
+							
+						move_uploaded_file($file_tmp_name, $uploadfile);
+							
+						$uri = $this->makeTn($_REQUEST['edit_id'], $_FILES['userfile']['name'][$k], get_option("wpsg_mod_produktbilder_width"), get_option("wpsg_mod_produktbilder_height"), get_option("wpsg_mod_produktbilder_mode"));
+							
+						if ($this->shop->hasMod('wpsg_mod_produktartikel')) $this->shop->callMod('wpsg_mod_produktartikel', 'updatePostThumbnail', array($_REQUEST['edit_id']));
+													
+					}
+					else
+					{
+							
+						die(__('Fehler beim Upload! Datei existiert nicht.', 'wpsg'));
+							
+					}
+										
 				}
+				
+				die("1");
 				
 			}
@@ -182,17 +187,27 @@
 		{ 
 		
-			if (wpsg_isSizedArray($_FILES['wpsg_mod_produktbilder_file']) && file_exists($_FILES['wpsg_mod_produktbilder_file']['tmp_name']))
-			{
-				
-				$uploaddir = $this->getPicPath($produkt_id);
-				
-				if (!file_exists($uploaddir)) mkdir($uploaddir, 0777, true);
-				if (!file_exists($uploaddir.'tn/')) mkdir($uploaddir.'tn/', 0777, true);
-				
-				$uploadfile = $uploaddir.basename($_FILES['wpsg_mod_produktbilder_file']['name']);
-				
-				move_uploaded_file($_FILES['wpsg_mod_produktbilder_file']['tmp_name'], $uploadfile);
-				
-				$uri = $this->makeTn($produkt_id, $_FILES['wpsg_mod_produktbilder_file']['name'], get_option("wpsg_mod_produktbilder_width"), get_option("wpsg_mod_produktbilder_height"), get_option("wpsg_mod_produktbilder_mode"));
+			if (wpsg_isSizedArray($_FILES['wpsg_mod_produktbilder_file']))
+			{
+				
+				foreach ($_FILES['wpsg_mod_produktbilder_file']['tmp_name'] as $k => $file_tmp_name)
+				{
+			
+					if (file_exists($file_tmp_name))
+					{
+					
+						$uploaddir = $this->getPicPath($produkt_id);
+					
+						if (!file_exists($uploaddir)) mkdir($uploaddir, 0777, true);
+						if (!file_exists($uploaddir.'tn/')) mkdir($uploaddir.'tn/', 0777, true);
+					
+						$uploadfile = $uploaddir.basename($_FILES['wpsg_mod_produktbilder_file']['name'][$k]);
+					
+						move_uploaded_file($file_tmp_name, $uploadfile);
+					
+						$uri = $this->makeTn($produkt_id, $_FILES['wpsg_mod_produktbilder_file']['name'][$k], get_option("wpsg_mod_produktbilder_width"), get_option("wpsg_mod_produktbilder_height"), get_option("wpsg_mod_produktbilder_mode"));
+					
+					}
+					
+				}
 				
 			}
@@ -208,4 +223,27 @@
 		} // public function produkt_del(&$product_id)
 		 
+		public function product_addedit_content(&$product_content, &$product_data)
+		{
+			
+			// Wenn eine Ãbersetzung bearbeitet wird, dann nichts machen
+			if (isset($_REQUEST['wpsg_lang'])) return;
+			 										
+			if (wpsg_isSizedInt($product_data['id']))
+			{
+			
+				$this->shop->view['modul'] = &$this;
+				$this->shop->view['ProduktBilderPath'] = $this->getPicPath($product_data['id']);
+				$this->shop->view['ProduktBilderURL'] = $this->getPicPath($product_data['id'], true);
+				$this->shop->view['ProduktList'] = $this->getProduktBilderListe($product_data['id']);
+			
+			}
+			
+			$product_content['wpsg_mod_productbilder'] = array(
+				'title' => __('Produktbilder', 'wpsg'),
+				'content' => $this->shop->render(WPSG_PATH_VIEW.'/mods/mod_produktbilder/produkt_addedit_content.phtml', false)
+			);
+			
+		} // public function product_addedit_content(&$product_content, &$produkt_data)
+		
 		public function produkt_edit_content(&$produkt_data) 
 		{ 
@@ -253,42 +291,5 @@
 		
 		/* Modulfunktionen */
-
-		/**
-		 * Generiert ein Bild fÃŒr ein Produkt, ersetzt ###BILD_1_500_500_c###
-		 * 
-		 * @param unknown_type $p_id
-		 * @param unknown_type $pic
-		 * @param unknown_type $setW
-		 * @param unknown_type $setH
-		 * @param unknown_type $mode
-		 */
-		public function genBild($p_id, $pic, $setW, $setH, $mode, $rel = 'gallery')
-		{
-						
-			$produkt = $this->db->fetchRow("SELECT * FROM `".WPSG_TBL_PRODUCTS."` WHERE `id` = '".wpsg_q($p_id)."'");
-			
-			$handle = opendir($this->getPicPath($produkt['id']));
-			
-			if (is_int($pic))
-			{
-				
-				// Bilder des Produktes laden 
-	   			$arBilder = $this->getProduktBilder($p_id); if ($pic > 0) $pic --;
-	   				
-	   			if (!array_key_exists($pic, $arBilder)) return;
-	   			
-	   			$pic = $arBilder[$pic];
-	   			
-			}
-   			 
-   			$this->shop->view['url_tn'] = $this->makeTn($produkt['id'], $pic, $setW, $setH, $mode);
-			$this->shop->view['url_orginal'] = $this->getPicPath($produkt['id'], true).$pic;
-			$this->shop->view['produkt'] = $produkt;
-			$this->shop->view['rel'] = $rel;
-			   			
-			return $this->shop->render(WPSG_PATH_VIEW.'/mods/mod_produktbilder/produktbild.phtml', false);
-   									
-		} // public function genBild($p_id, $pic, $setW, $setH, $mode)
-		
+ 
 		/**
 		 * Wird vom Template produkt_edit_content.phtml aufgerufen und per Ajax aktualisiert.
@@ -396,5 +397,5 @@
 			{
  
-				if ($url) return WPSG_URL_CONTENT.WPSG_MB_UPLOADS.'/wpsg/wpsg_produktbilder/'.$produkt_id.'/';
+				if ($url) $path = WPSG_URL_CONTENT.WPSG_MB_UPLOADS.'/wpsg/wpsg_produktbilder/'.$produkt_id.'/';
 				else 
 				{
@@ -403,7 +404,5 @@
 					
 					if (!file_exists($path)) mkdir($path, 0777, true);
-					
-					return $path;
-					
+					 
 				}
 				 
@@ -412,5 +411,5 @@
 			{
 				
-				if ($url) return WPSG_URL_CONTENT.'uploads/wpsg_produktbilder/'.$produkt_id.'/';
+				if ($url) $path = WPSG_URL_CONTENT.'uploads/wpsg_produktbilder/'.$produkt_id.'/';
 				else 
 				{
@@ -419,10 +418,11 @@
 					
 					if (!file_exists($path)) mkdir($path, 0777, true);
-					
-					return $path;
-					
+					 
 				}
 				
 			}
+			
+			if ($url === true) return $path;
+			else return wpsg_format_path($path);
 			 
  		} // private function getPicPath($produkt_id, $url = false)
Index: /views/admin/kundendaten.phtml
===================================================================
--- /views/admin/kundendaten.phtml	(revision 5441)
+++ /views/admin/kundendaten.phtml	(revision 5447)
@@ -18,5 +18,5 @@
 </div>
 
-<!-- Modal -->
+<!-- Modal fÃŒr Codeanzeige -->
 <div class="modal fade" id="wpsg_code_dialog" tabindex="-1" role="dialog">
   <div class="modal-dialog" role="document">
@@ -57,7 +57,14 @@
 					</div>
 					<div role="tabpanel" id="tabcontent2" class="tab-pane">
-						<?php echo $this->render(WPSG_PATH_VIEW.'/admin/kundendaten_tab2.phtml'); ?>
+						
+						<div id="wpsg_kv_list">
+							<?php echo $this->render(WPSG_PATH_VIEW.'/admin/kundendaten_tab2.phtml'); ?>
+						</div>
+						
+						<div class="wpsg_clear"></div><br />
+						<a href="" onclick="return wpsg_addCustomField();"><span class="glyphicon glyphicon-plus"></span>&nbsp;<?php echo __('Neue Kundenvariable anlegen.', 'wpsg'); ?></a>
+						
 					</div>
-					<div role="tabpanel" id="tabcontent3" class="tab-pane">
+					<div role="tabpanel" id="tabcontent3" class="tab-pane">						
 						<?php echo $this->render(WPSG_PATH_VIEW.'/admin/kundendaten_tab3.phtml'); ?>
 					</div>
@@ -67,5 +74,5 @@
 		</div>
 		
-		<p calss="submit"><input type="submit" value="<?php echo __('Einstellungen Speichern', 'wpsg'); ?>" class="button-primary" /></p>
+		<p calss="submit"><input name="submit" type="submit" value="<?php echo __('Einstellungen Speichern', 'wpsg'); ?>" class="button-primary" /></p>
 		
 	</form>
@@ -79,10 +86,10 @@
 		{
 	
-			jQuery('#tabcontent2').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
+			jQuery('#wpsg_kv_list').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-Admin&subaction=kundendaten&do=add&noheader=1',
 				success: function(data) {
-					jQuery('#tabcontent2').html(data);
+					jQuery('#wpsg_kv_list').html(data);
 				}
 			} );
@@ -137,4 +144,13 @@
 			
 		} // function wpsg_genPACode(pa_id)
+
+		jQuery(document).ready(function() {
+
+			jQuery('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { localStorage.setItem('wpsg_admin_customer_lastTab', jQuery(this).attr('href')); } );
+
+			var lastTab = localStorage.getItem('wpsg_admin_customer_lastTab');
+			if (lastTab) jQuery('[href="' + lastTab + '"]').tab('show');
+			
+		} );
 	    
 	/* ]]> */</script>
Index: /views/admin/kundendaten_tab2.phtml
===================================================================
--- /views/admin/kundendaten_tab2.phtml	(revision 5441)
+++ /views/admin/kundendaten_tab2.phtml	(revision 5447)
@@ -18,7 +18,5 @@
 			<th class="col3"><?php echo __('Typ', 'wpsg'); ?></th>
 			<th class="col4"></th>
-			<th class="col5">
-				<a href="#" title="<?php echo __('Neue Kundenvariable anlegen', 'wpsg'); ?>" onclick="return wpsg_addCustomField();" class="customer_variable_add"><span class="glyphicon glyphicon-plus"></span></a>	
-			</th>
+			<th class="col5"></th>
 		</tr>
 	</thead>
@@ -36,5 +34,5 @@
 			</td>
 			<td class="col3">
-				<select class="form-control wpsg-sm" onchange="if (jQuery(this).val() == '1') jQuery('#row_auswahl_<?php echo $c_id; ?>').show(); else jQuery('#row_auswahl_<?php echo $c_id; ?>').hide();" name="pflicht[custom][<?php echo $c_id; ?>][typ]">
+				<select class="form-control wpsg-sm" onchange="if (jQuery(this).val() == '1') { jQuery('#row_auswahl_<?php echo $c_id; ?>').show(); jQuery('#row_auswahl_<?php echo $c_id; ?> input').first().focus(); } else jQuery('#row_auswahl_<?php echo $c_id; ?>').hide();" name="pflicht[custom][<?php echo $c_id; ?>][typ]">
 					<option <?php echo (($c['typ'] == '0')?'selected="selected"':''); ?> value="0"><?php echo __('Textfeld', 'wpsg'); ?></option>
 					<option <?php echo (($c['typ'] == '1')?'selected="selected"':''); ?> value="1"><?php echo __('Auswahlfeld', 'wpsg'); ?></option>
@@ -67,5 +65,5 @@
 			</td>
 		</tr>
-		<tr class="wpsg_customervar_row_<?php echo $c_id; ?>" id="row_auswahl_<?php echo $c_id; ?>" style="<?php echo (($c['typ'] == '1')?'':'display:none;'); ?>">
+		<tr class="wpsg_customervar_row2 wpsg_customervar_row_<?php echo $c_id; ?>" id="row_auswahl_<?php echo $c_id; ?>" style="<?php echo (($c['typ'] == '1')?'':'display:none;'); ?>">
 			<td class="col0"></td>
 			<td class="col1"><?php echo __('AuswahlmÃ¶glichkeiten ("|" als Trenner)', 'wpsg'); ?></td>
@@ -78,45 +76,4 @@
 </table>
 
-
-<script type="text/javascript">/* <![CDATA[ */
-
-	/**
-	 * Zeigt den HTML Code, der die gewÃ€hlte Kundenvariablen in die Templates einbaut
-	 */
-	function wpsg_genKVCode(kv_id)
-	{
- 
-		jQuery("#wpsg_kv_code_dialog").dialog( {
-			'dialogClass': 'wp-dialog',           
-	        'modal': true,
-	        'width': 700,
-	        'height': 300,	       
-	        'title': '<?php echo __('HTML Code Block', 'wpsg'); ?>',
-	        open: function(event, ui) {
-	        	
-	        	jQuery('#wpsg_kv_code_dialog .wpsg_dialog').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
-	        	
-	        	jQuery.ajax( {
-	    			url: 'admin.php?page=wpsg-Admin&subaction=kundendaten&noheader=1&show=code',
-	    			data: {
-	    				'kv_id': kv_id
-	    			},
-	    			success: function(data)
-	    			{
-		    					    			
-		    			jQuery('#wpsg_kv_code_dialog .wpsg_dialog').html(data);
-		    			
-	    			}
-	        	} );
-		        
-	        }
-		} );
-		
-		return false;
-		
-	} // function wpsg_genPACode(pa_id)
-
-/* ]]> */</script>
-
 <br />
 <?php echo wpsg_drawForm_Checkbox('wpsg_kundenvariablen_show', __('Kundenvariablen direkt abfragen', 'wpsg'), $this->get_option('wpsg_kundenvariablen_show'), array('fullWidth' => true)); ?>
Index: /views/css/admin.css
===================================================================
--- /views/css/admin.css	(revision 5441)
+++ /views/css/admin.css	(revision 5447)
@@ -20,4 +20,6 @@
 #wpsg-bs .table .wpsg-sm { height:20px; line-height:20px; font-size:12px; }
 #wpsg-bs .wpsg_code { background-color:#EFEFEF; border:1px solid #000000; padding:3px; margin-top:5px; margin-bottom:5px; font-family:monospace; font-size:12px; }
+#wpsg-bs .form-horizontal .editable { padding-top:0px; }
+#wpsg-bs .wpsg-glyphicon { margin-right:10px; }
 
 /* Inline Edit */
@@ -26,6 +28,7 @@
 
 /* Kundenverwaltung -> Kundendaten */
-#wpsg-bs .wpsg_customerfield .tab-content { position:relative; padding-top:1.5rem; } 
-
+#wpsg-bs .wpsg_customerfield .tab-content { position:relative; padding-top:1.5rem; }
+#wpsg-bs .wpsg_customervar_row2 td { border-top:0px; } 
+ 
 /* Tabelle der Berechtigungen */
 .wpsg_access_table .wpsg_col_cap { text-align:center; }
@@ -78,4 +81,5 @@
 /* Produktverwaltung */
 .wpsg_pic_col { width:50px; }
+.wpsg_admin_submenu input { width:100%; margin-bottom:10px !important; }
 
 /* Modulverwaltung */
@@ -92,2 +96,9 @@
 /* Formularanpassungen */
 .form-checkbox label { font-size:12px; line-height:200%; }
+
+/* Produktbilder */
+#produktbilder_target img { }
+.wpsg_mod_produktbilder_admin_bild a { position:relative; display:inline-block; float:left; margin-right:5px; margin-bottom:5px; }
+.wpsg_mod_produktbilder_admin_bild a > span { left:0px; top:0px; display:none; position:absolute; width:100%; height:100%; text-align:center; background-color:rgba(255, 0, 0, 0.3); }
+.wpsg_mod_produktbilder_admin_bild a > span > span { font-size:30px; top:50%; margin-top:-15px; }
+.wpsg_mod_produktbilder_admin_bild a:hover > span { display:block; }  
Index: /views/js/ajaxupload.js
===================================================================
--- /views/js/ajaxupload.js	(revision 5441)
+++ /views/js/ajaxupload.js	(revision 5447)
@@ -351,5 +351,6 @@
             var input = document.createElement("input");
             input.setAttribute('type', 'file');
-            input.setAttribute('name', this._settings.name);
+            input.setAttribute('multiple', 'multiple');
+            input.setAttribute('name', this._settings.name + '[]');
             
             addStyles(input, {
Index: /views/mods/mod_produktbilder/produkt_addedit_content.phtml
===================================================================
--- /views/mods/mod_produktbilder/produkt_addedit_content.phtml	(revision 5447)
+++ /views/mods/mod_produktbilder/produkt_addedit_content.phtml	(revision 5447)
@@ -0,0 +1,132 @@
+<?php
+
+	/**
+	 * Template fÃŒr die Integration der Produktbilder in das Backend der Produktverwaltung
+	 * wird von Template /views/Produkt/addedit.phtml eingebunden
+	 */
+
+?>
+
+<!-- Modal fÃŒr FTP Pfad anzeige -->
+<div class="modal fade" id="wpsg_mod_produktbilder_ftppath" tabindex="-1" role="dialog">
+  <div class="modal-dialog" role="document">
+    <div class="modal-content">
+      <div class="modal-header">
+        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
+        <h4 class="modal-title" id="myModalLabel"><?php echo __('FTP Pfad fÃŒr Bilderupload', 'wpsg'); ?></h4>
+      </div>
+      <div class="modal-body">
+        <?php echo wpsg_hspc($this->callMod('wpsg_mod_produktbilder', 'getPicPath', array($this->view['data']['id']))); ?>
+      </div>
+      <div class="modal-footer">
+        <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo __('SchlieÃen', 'wpsg'); ?></button> 
+      </div>
+    </div>
+  </div>
+</div>
+
+
+<div class="panel panel-default">
+	<div class="panel-heading clearfix">
+    	<h3 class="panel-title"><?php echo __('Produktbilder', 'wpsg'); ?></h3>
+	</div>
+	<div class="panel-body">
+		
+		<?php if ($this->view['data']['id'] > 0) { ?>
+		
+			<div id="produktbilder_target"><?php echo $this->view['ProduktList']; ?></div>
+		
+			<?php if (get_option("wpsg_classicupload") == "1") { ?>
+				
+			<div class="wpsg_clear"></div><br />
+			<div><?php echo __("Um ein Bild zu lÃ¶schen klicken Sie einfach auf das Bild.", "wpsg"); ?></div>
+			<div class="wpsg_clear"></div><br />
+				
+			<input type="file" multiple="multiple" name="wpsg_mod_produktbilder_file[]" />
+				
+			<?php } else { ?>
+		
+			<div class="wpsg_clear"></div><br />
+			<div><?php echo __("Bitte klicken Sie auf Upload um ein Bild hochzuladen. Um ein Bild zu lÃ¶schen klicken Sie einfach auf das Bild.", "wpsg"); ?></div>
+			<div class="wpsg_clear"></div><br />
+			
+			<input value="Upload" type="text" style="text-align:center;" size="10" id="upload_button" />
+			
+			<script type="text/javascript">/* <![CDATA[ */
+						   
+				jQuery(document).ready(function() {									
+					new AjaxUpload(
+						"upload_button", {
+							action: "<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_produktbilder&cmd=upload&edit_id=<?php echo $this->view['data']['id']; ?>&noheader=1",
+							onSubmit: function(file, extension) {
+
+								jQuery('#produktbilder_target').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("#produktbilder_target").load("<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_produktbilder&cmd=produktbilder_liste&edit_id=<?php echo $this->view['data']['id']; ?>&noheader=1");
+
+									if (typeof wpsg_vp_refresh == "function") wpsg_vp_refresh();
+									
+								}
+								else
+								{
+									alert(response);
+								}
+								
+							}										
+						}
+					);					   
+			   	});
+			
+			/* ]]> */</script>
+			
+			<?php } ?> 
+			
+			<script type="text/javascript">/* <![CDATA[ */
+
+				/**
+				 * Wird beim lÃ¶schen eines Bilds (anklicken) aufgerufen
+				 */
+				function wpsg_remove_bild(strBild)
+				{
+
+					if (!confirm('<?php echo __('Sind Sie sicher, das Sie dieses Bild lÃ¶schen mÃ¶chten?', 'wpsg'); ?>')) return false;
+
+					jQuery('#produktbilder_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_produktbilder&cmd=remove&noheader=1&edit_id=<?php echo $this->view['data']['id']; ?>',
+						async: true,
+						data: {
+							file: strBild
+						},
+						success: function(data) {
+							
+							jQuery('#produktbilder_target').html(data);
+
+							if (typeof wpsg_vp_refresh == "function") wpsg_vp_refresh();
+							
+						}
+					} );
+
+					return false;
+					
+				}
+			
+			/* ]]> */</script>
+			
+		<?php } else { ?>
+		<?php echo __('Das Hochladen von Produktbildern ist erst nach erstmaligem speichern mÃ¶glich.', 'wpsg'); ?>
+		<?php } ?>
+		
+		<br /><br />
+	
+		<a href="#" data-toggle="modal" data-target="#wpsg_mod_produktbilder_ftppath"><span class="wpsg-glyphicon glyphicon glyphicon-folder-open"></span><?php echo __('FTP Pfad anzeigen', 'wpsg'); ?></a>	
+				
+	</div>
+</div>
Index: ews/mods/mod_produktbilder/produkt_edit_content.phtml
===================================================================
--- /views/mods/mod_produktbilder/produkt_edit_content.phtml	(revision 5441)
+++ 	(revision )
@@ -1,123 +1,0 @@
-<?php
-
-	/**
-	 * Template fÃŒr die Integration der Produktbilder in das Backend der Produktverwaltung
-	 * wird von Template /views/Produkt/addedit.phtml eingebunden
-	 */
-
-?>
-<div class="postbox" id="wpsg_produktbilder">		
-	<h3 class="wpsg_handlediv">
-		<span title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>" class="handlediv"><br /></span>
-		<span><?php echo __('Produktbilder', 'wpsg'); ?></span>
-	</h3>	
-	<div class="inside">
-	
-		<?php if ($this->view['data']['id'] > 0) { ?>
-		
-			<div id="produktbilder_target"><?php echo $this->view['ProduktList']; ?></div>
-		
-			<?php if (get_option("wpsg_classicupload") == "1") { ?>
-				
-			<div class="wpsg_clear"></div><br />
-			<div><?php echo __("Um ein Bild zu lÃ¶schen klicken Sie einfach auf das Bild.", "wpsg"); ?></div>
-			<div class="wpsg_clear"></div><br />
-				
-			<input type="file" name="wpsg_mod_produktbilder_file" />
-				
-			<?php } else { ?>
-		
-			<div class="wpsg_clear"></div><br />
-			<div><?php echo __("Bitte klicken Sie auf Upload um ein Bild hochzuladen. Um ein Bild zu lÃ¶schen klicken Sie einfach auf das Bild.", "wpsg"); ?></div>
-			<div class="wpsg_clear"></div><br />
-			
-			<input value="Upload" type="text" style="text-align:center;" size="10" id="upload_button" />
-			
-			<script type="text/javascript">/* <![CDATA[ */
-						   
-				jQuery(document).ready(function() {									
-					new AjaxUpload(
-						"upload_button", {
-							action: "<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_produktbilder&cmd=upload&edit_id=<?php echo $this->view['data']['id']; ?>&noheader=1",
-							onSubmit: function(file, extension) {
-
-								jQuery('#produktbilder_target').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("#produktbilder_target").load("<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_produktbilder&cmd=produktbilder_liste&edit_id=<?php echo $this->view['data']['id']; ?>&noheader=1");
-
-									if (typeof wpsg_vp_refresh == "function") wpsg_vp_refresh();
-									
-								}
-								else
-								{
-									alert(response);
-								}
-								
-							}										
-						}
-					);					   
-			   	});
-			
-			/* ]]> */</script>
-			
-			<?php } ?> 
-			
-			<script type="text/javascript">/* <![CDATA[ */
-
-				/**
-				 * Wird beim lÃ¶schen eines Bilds (anklicken) aufgerufen
-				 */
-				function wpsg_remove_bild(strBild)
-				{
-
-					if (!confirm('<?php echo __('Sind Sie sicher, das Sie dieses Bild lÃ¶schen mÃ¶chten?', 'wpsg'); ?>')) return false;
-
-					jQuery('#produktbilder_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_produktbilder&cmd=remove&noheader=1&edit_id=<?php echo $this->view['data']['id']; ?>',
-						async: false,
-						data: {
-							file: strBild
-						},
-						success: function(data) {
-							
-							jQuery('#produktbilder_target').html(data);
-
-							if (typeof wpsg_vp_refresh == "function") wpsg_vp_refresh();
-							
-						}
-					} );
-
-					return false;
-					
-				}
-			
-			/* ]]> */</script>
-			
-		<?php } else { ?>
-		<?php echo __('Das Hochladen von Produktbildern ist erst nach erstmaligem speichern mÃ¶glich.', 'wpsg'); ?>
-		<?php } ?>
-		
-		<br /><br />
-		
-		<div class="wpsg_form_field">
-			<div class="wpsg_form_left">
-				<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_produktbilder', 'getPicPath', array($this->view['data']['id']))); ?>'); return false;"><?php echo __('Anzeigen', 'wpsg'); ?></a>
-				</p>
-			</div>
-			<div class="wpsg_clear"></div>
-		</div>	
-	
-	</div>
-</div>
Index: /views/mods/mod_produktbilder/produkt_edit_list.phtml
===================================================================
--- /views/mods/mod_produktbilder/produkt_edit_list.phtml	(revision 5441)
+++ /views/mods/mod_produktbilder/produkt_edit_list.phtml	(revision 5447)
@@ -12,5 +12,6 @@
 		<div class="wpsg_mod_produktbilder_admin_bild">
 			<a onclick="return wpsg_remove_bild('<?php echo $b; ?>');" href="#" title="<?php echo __('Dieses Bild lÃ¶schen.', 'wpsg'); ?>">
-				<img src="<?php echo $this->view['modul']->makeTn($this->view['data']['id'], $b, 75, 75, 's'); ?>" alt="<?php echo wpsg_hspc($b); ?>" />
+				<img src="<?php echo $this->view['modul']->makeTn($this->view['data']['id'], $b, 75, 75, 'c'); ?>" alt="<?php echo wpsg_hspc($b); ?>" />
+				<span><span class="glyphicon glyphicon-trash"></span></span>
 			</a>
 		</div>
Index: ews/mods/mod_produktbilder/produktbild.phtml
===================================================================
--- /views/mods/mod_produktbilder/produktbild.phtml	(revision 5441)
+++ 	(revision )
@@ -1,8 +1,0 @@
-<?php 
-
-	/**
-	 * Template fÃŒr ein Produktbild
-	 */
- 
-?>
-<a href="<?php echo $this->view['url_orginal']; ?>" class="wpsg_imagelink thickbox" rel="<?php echo $this->view['rel']; ?>-<?php echo $this->view['produkt']['id']; ?>" title="<?php echo wpsg_hspc($this->view['produkt']['name']); ?>"><img src="<?php echo $this->view['url_tn']; ?>" alt="<?php echo htmlspecialchars($this->view['produkt']['name']); ?>" /></a>
Index: /views/produkt/_addedit.phtml
===================================================================
--- /views/produkt/_addedit.phtml	(revision 5447)
+++ /views/produkt/_addedit.phtml	(revision 5447)
@@ -0,0 +1,503 @@
+<?php
+	
+	/**
+	 * Template fÃŒr das Produkt Anlegen/Bearbeiten Formular
+	 * Hier sollten keine Anpassungen vorgenommen werden
+	 */
+
+?>
+
+<div class="wpsg_products wpsg_old_forms" id="wpsg-bs">
+
+	<nav class="navbar navbar-default">
+		<div class="container-fluid">
+			<div class="navbar-header">
+				<a class="navbar-brand" href="#"><?php echo __('wpShopGermany', 'wpsg'); ?></a>
+			</div>
+			<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
+				<ul class="nav navbar-nav">
+					<li role="presentation" class="<?php echo ((!isset($_REQUEST['action']))?'active':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt"><?php echo __("ProduktÃŒbersicht", "wpsg"); ?></a></li>
+					<li role="presentation" class="wpsg_showhide_filter active"><a href="#" onclick="return false;"><?php echo __("Produktbearbeitung", "wpsg"); ?></a></li>
+				</ul>
+			</div>
+		</div>
+	</nav>
+
+	<script type="text/javascript">/* <![CDATA[ */
+	
+		wpsg_product_edit_change = new Array();
+		                                            
+		jQuery(document).ready( function() {
+			 
+		    jQuery("#normal-sortables, #side-sortables").sortable({
+				connectWith: ".meta-box-sortables",
+				placeholder: 'wpsg_placeholder',
+				dropOnEmpty: true, 
+				cursor: 'move',
+				grid: [50, 20],
+				handle: '.wpsg_handlediv',
+				forceHelperSize: true,
+				forcePlaceholderSize: true,
+				opacity: 0.8,
+				stop: function(e,ui) {
+	
+					var ser = jQuery("#normal-sortables").sortable("serialize");				
+					ser = ser.replace(/\&wpsg\[\]\=/g, ',').replace(/wpsg\[\]\=/g, '');
+	
+					jQuery.cookie('wpsg_product_view_normal', ser);
+	
+					var ser = jQuery("#side-sortables").sortable("serialize");								
+					ser = ser.replace(/\&wpsg\[\]\=/g, ',').replace(/wpsg\[\]\=/g, '');
+					
+					jQuery.cookie('wpsg_product_view_side', ser);
+					
+				},
+				receive: function(e, ui) {
+				}
+			}); 
+	
+		    if (jQuery.cookie('wpsg_product_view_normal') != null)
+			{
+	
+				var divs = jQuery.cookie('wpsg_product_view_normal').split(',').reverse();
+	
+				for (index in divs)
+				{
+	
+					jQuery('#normal-sortables').prepend(jQuery('#wpsg_' + divs[index]));
+					
+				}
+				
+			}
+	
+			if (jQuery.cookie('wpsg_product_view_side') != null)
+			{
+	
+				var divs = jQuery.cookie('wpsg_product_view_side').split(',').reverse();
+	
+				for (index in divs)
+				{
+	
+					jQuery('#side-sortables').prepend(jQuery('#wpsg_' + divs[index]));
+					
+				}
+				
+			}
+	
+			var click_x = false;
+			var click_y = false;
+			
+			jQuery('.wpsg_handlediv').bind('click', function(ev) {
+	
+				if (Math.abs(click_x - ev.pageX) <= 5 && Math.abs(click_y - ev.pageY) <= 5)
+				{
+	
+					jQuery(this).next().toggle();
+	
+					var arClose = new Array();
+					jQuery('.wpsg_product_view .postbox .inside:hidden').each(function() {
+						arClose.push(jQuery(this).parent().attr("id"));
+					} );
+	
+					jQuery.cookie('wpsg_product_closed', arClose.join(','));
+						
+				}
+				
+			} );
+			
+			jQuery('.wpsg_handlediv').bind('mousedown', function(ev) {
+	
+				click_x = ev.pageX;
+				click_y = ev.pageY;	
+							
+			} );
+	
+			if (jQuery.cookie('wpsg_product_closed') != null && jQuery.cookie('wpsg_product_closed') != '')
+			{
+	
+				var arClose = jQuery.cookie('wpsg_product_closed').split(',');
+	
+				for (index in arClose)
+				{
+	
+					jQuery('#' + arClose[index] + ' .inside').hide();
+								
+				}
+				
+			}
+	
+			jQuery('#submit, #submit_index').bind('click', function() {
+	
+				if (wpsg_product_edit_change.length > 0)
+				{
+	
+					jQuery('.wpsg_change_error').removeClass('wpsg_change_error');
+					
+				    for (var i = 0; i < wpsg_product_edit_change.length; i++) {
+				    	 
+				        jQuery('#' + wpsg_product_edit_change[i]).addClass('wpsg_change_error');
+				        
+				    }
+	
+				    alert('<?php echo __('Bitte ÃŒberprÃŒfen Sie die rot markierten Felder. Ãnderungen in diesen Feldern gehen beim Speichern verloren.', 'wpsg'); ?>');
+	
+				    return false;
+					
+				}
+				else
+				{
+	
+					return true;
+					
+				}
+				
+			} );
+			
+			// Flaggen fÃŒr die aktuelle Sprache davorbauen
+			<?php if ($this->isMultiLingual() && isset($_REQUEST['wpsg_lang'])) { $arLang = $this->getStoreLanguages(); $lang = $arLang[$_REQUEST['wpsg_lang']]; ?>
+			jQuery('.wpsg_handlediv').prepend('<img src="<?php echo $this->getFlagURL().$lang['flag']; ?>" alt="<?php echo $lang['name']; ?>" />&nbsp;');
+			<?php } ?>
+		    
+		} );
+	             
+	/* ]]> */</script> 
+	
+	<?php echo $this->writeBackendMessage(); ?>
+	
+	<div class="wrap columns-2 wpsg_produkt_addedit wpsg_product_view" id="wpsg_product_view">
+		
+		<div id="wpsg_relatedproducts_produktauswahl"></div>
+			
+	 	<form method="POST" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&amp;action=save&amp;noheader=1" enctype="multipart/form-data">
+	
+			<div id="postbox" class="metabox-holder has-right-sidebar" style="padding-top:0px;">
+	
+				<div id="side-info-column" class="inner-sidebar" style="width:386px;">
+					<div id="side-sortables" class="meta-box-sortables ui-sortable" style="width:380px;">
+								
+						<?php if (!isset($_REQUEST['wpsg_lang'])) { ?>
+						<div id="wpsg_preis" class="postbox">						
+							<h3 class="wpsg_handlediv">
+								<div class="handlediv" title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>"><br /></div>
+								<span><?php echo __('Preis / Steuer', 'wpsg'); ?></span>
+							</h3>
+							<div class="inside">
+								<?php echo wpsg_drawForm_Select('mwst_key', __('Steuergruppe', 'wpsg'), wpsg_tax_groups(true), @$this->view['data']['mwst_key']); ?>								
+								<?php echo wpsg_drawForm_Input('preis', wpsg_translate(__('Preis (#1#)', 'wpsg'), (($this->getBackendTaxview() === WPSG_NETTO)?'NETTO':'BRUTTO')), wpsg_ff($this->view['data']['preis'])); ?>
+								<?php echo wpsg_drawForm_Input('oldprice', wpsg_translate(__('Alter Preis (#1#)', 'wpsg'), (($this->getBackendTaxview() === WPSG_NETTO)?'NETTO':'BRUTTO')), wpsg_ff($this->view['data']['oldprice'])); ?>
+								<?php echo wpsg_drawForm_Input('', __('Steueranteil', 'wpsg'), wpsg_ff(@$this->view['data']['tax_sum_value'], $this->get_option('wpsg_currency')).' / '.$this->getDefaultCountry()->kuerzel, array('text' => true)); ?>
+								<?php echo wpsg_drawForm_Checkbox('euleistungsortregel', __('Produkt unterliegt den EU-Leistungsortregeln', 'wpsg'), @$this->view['data']['euleistungsortregel'], array('fullrow' => true, 'help' => 'EU-Leistungsortregel')); ?>
+								<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;subaction=laender">LÃ€nderverwaltung</a>							
+							</div>
+						</div>
+						<div id="wpsg_paymentmethods" class="postbox">						
+							<h3 class="wpsg_handlediv">
+								<div class="handlediv" title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>"><br /></div>
+								<span><?php echo __('Erlaubte Zahlungsarten', 'wpsg'); ?></span>
+							</h3>
+							<div class="inside wpsg_form_field_max">	
+								<select id="wpsg_paymentmethods_select" name="wpsg_paymentmethods_select">
+									<option value="0"><?php echo __('Alle', 'wpsg'); ?></option>
+									<option value="1" <?php echo ((wpsg_isSizedArray($this->view['allowedPayment']))?'selected="selected"':''); ?>><?php echo __('Auswahl', 'wpsg'); ?></option>
+								</select>
+								<div class="wpsg_paymentmethods_select">
+									<?php foreach ($this->arPayment as $p) { if (!isset($p['deleted']) || $p['deleted'] != '1') { ?>
+										<?php echo wpsg_drawForm_Checkbox('wpsg_paymentmethods[]', $p['name'], in_array($p['id'], (array)$this->view['allowedPayment']), array('id' => 'wpsg_paymentmethods_'.$p['id'], 'value' => $p['id'])); ?>
+									<?php } } ?>
+								</div>
+								
+								<script type="text/javascript">/* <![CDATA[ */
+	
+									jQuery('#wpsg_paymentmethods_select').bind('change', function() {
+	
+										if (jQuery(this).val() == '1')
+										{
+	
+											jQuery('.wpsg_paymentmethods_select').show();
+											
+										}
+										else
+										{
+	
+											jQuery('.wpsg_paymentmethods_select').hide();
+											
+										}
+										
+									} ).change();
+								
+								/* ]]> */</script>
+							</div>
+						</div>
+						<div id="wpsg_shippingmethods" class="postbox">
+							<h3 class="wpsg_handlediv">
+								<div class="handlediv" title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>"><br /></div>
+								<span><?php echo __('Erlaubte Versandarten', 'wpsg'); ?></span>
+							</h3>
+							<div class="inside wpsg_form_field_max">
+								<select id="wpsg_shippingmethods_select" name="wpsg_shippingmethods_select">
+									<option value="0"><?php echo __('Alle', 'wpsg'); ?></option>
+									<option value="1" <?php echo ((wpsg_isSizedArray($this->view['allowedShipping']))?'selected="selected"':''); ?>><?php echo __('Auswahl', 'wpsg'); ?></option>								
+								</select>
+								<div class="wpsg_shippingmethods_select">
+									<?php foreach ($this->arShipping as $s) { if (!isset($s['deleted']) || $s['deleted'] != '1') { ?>
+										<?php echo wpsg_drawForm_Checkbox('wpsg_shippingmethods[]', $s['name'], in_array($s['id'], (array)$this->view['allowedShipping']), array('id' => 'wpsg_paymentmethods_'.$s['id'], 'value' => $s['id'])); ?>
+									<?php } } ?>
+								</div>
+							</div>
+							
+							<script type="text/javascript">/* <![CDATA[ */
+	
+								jQuery('#wpsg_shippingmethods_select').bind('change', function() {
+	
+									if (jQuery(this).val() == '1')
+									{
+	
+										jQuery('.wpsg_shippingmethods_select').show();
+										
+									}
+									else
+									{
+	
+										jQuery('.wpsg_shippingmethods_select').hide();
+										
+									}
+									
+								} ).change();
+							
+							/* ]]> */</script>
+						</div>
+						<?php } ?>
+											
+						<?php $this->callMods('produkt_edit_sidebar', array(&$this->view['data'])); ?>
+						 
+					</div>
+				</div>
+			
+				<div id="post-body">
+					
+					<div id="titlediv" style="margin-right:400px;">
+						<div id="titlewrap">					
+							<input type="text" placeholder="<?php echo __('Produktname', 'wpsg'); ?>" id="title" value="<?php echo wpsg_hspc(@$this->view['data']['name']); ?>" tabindex="1" size="30" name="name">
+						</div>
+					</div>
+					
+					<br />
+									
+					<div id="normal-sortables" class="meta-box-sortables" style="margin-right:400px;">
+							
+						<div id="wpsg_generally" class="postbox">		
+							<h3 class="wpsg_handlediv">
+								<span title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>" class="handlediv"><br /></span>
+								<span><?php echo __('Allgemein', 'wpsg'); ?></span>
+							</h3>
+							<div class="inside">
+								<?php if ($this->isMultiLingual()) { ?>
+								<div class="wpsg_form_field">
+									<div class="wpsg_form_left">
+										<label for="produkt_anr"><?php echo __("Ãbersetzungen", "wpsg"); ?>:</label>
+									</div>								
+									<div class="wpsg_form_right wpsg_form_language">																											
+										<?php foreach ($this->getStoreLanguages() as $a) { ?>
+											<?php if ((isset($_REQUEST['wpsg_lang']) && $_REQUEST['wpsg_lang'] != $a['locale']) || (!isset($_REQUEST['wpsg_lang']) && $a['lang'] != $GLOBALS['q_config']['default_language'])) { ?>
+											<?php if (isset($_REQUEST['wpsg_lang']) && $a['lang'] == $GLOBALS['q_config']['default_language']) { ?>
+											<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id=<?php echo $_REQUEST['edit_id']; ?>" title="<?php echo wpsg_translate(__('Zu Sprache #1# wechseln.', 'wpsg'), $a['name']); ?>">
+											<?php } else { ?>
+											<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id=<?php echo $_REQUEST['edit_id']; ?>&wpsg_lang=<?php echo $a['locale']; ?>" title="<?php echo wpsg_translate(__('Zu Sprache #1# wechseln.', 'wpsg'), $a['name']); ?>">
+											<?php } ?>
+												<img src="<?php echo $this->getFlagURL().$a['flag']; ?>" alt="<?php echo wpsg_translate(__('Zu Sprache #1# wechseln.', 'wpsg'), $a['name']); ?>" />
+											</a>
+											<?php } ?>
+										<?php } ?>
+									</div>
+									<div class="wpsg_clear"></div>
+								</div>
+								<?php } ?>
+								<div class="wpsg_form_field">
+									<div class="wpsg_form_left">
+										<label for="produkt_anr"><?php echo __("Produktname (Detail)", "wpsg"); ?>:</label>
+									</div>
+									<div class="wpsg_form_right">
+										<input id="detailname" type="text" value="<?php echo wpsg_hspc(@$this->view['data']['detailname']); ?>" name="detailname" />
+									</div>
+									<div class="wpsg_clear"></div>
+								</div>
+								<?php if (wpsg_isSizedInt($this->view['data']['id']) && !isset($_REQUEST['wpsg_lang'])) { ?>
+								<div class="wpsg_form_field">
+									<div class="wpsg_form_left">
+										<label for="produkt_id"><?php echo __('Produkt ID', 'wpsg'); ?>:</label>
+									</div>
+									<div class="wpsg_form_right">
+										<input type="text" name="produkt_id" value="<?php echo wpsg_hspc(@$this->view['data']['id']); ?>" readonly="readonly" />
+									</div>
+									<div class="wpsg_clear"></div>
+								</div>
+								<?php } ?>
+								<?php if (!isset($_REQUEST['wpsg_lang'])) { ?>
+								<div class="wpsg_form_field">
+									<div class="wpsg_form_left">
+										<label for="produkt_anr"><?php echo __("Artikelnummer", "wpsg"); ?>:</label>
+									</div>
+									<div class="wpsg_form_right">
+										<input id="produkt_anr" type="text" value="<?php echo wpsg_hspc(@$this->view['data']['anr']); ?>" name="anr" />
+									</div>
+									<div class="wpsg_clear"></div>
+								</div>
+								<div class="wpsg_form_field">
+									<div class="wpsg_form_left">
+										<label for="produkt_ptemplate"><?php echo __('Produkttemplate', 'wpsg'); ?>:</label>									
+									</div>
+									<div class="wpsg_form_right">
+										<?php if (!is_array($this->view['templates']) || sizeof($this->view['templates']) <= 0) { ?>
+										<p class="wpsg_error"><?php echo __('Keine Templatedatein gefunden!', 'wpsg'); ?></p>
+										<?php } else { ?>
+										<select name="ptemplate_file" id="produkt_ptemplate">
+											<?php foreach ($this->view['templates'] as $t) { ?>
+											<option <?php echo (($t == @$this->view['data']['ptemplate_file'] || (!isset($this->view['data']['ptemplate_file']) && $t == 'standard.phtml'))?'selected="selected"':''); ?> value="<?php echo wpsg_hspc($t); ?>"><?php echo wpsg_hspc($t); ?></option>
+											<?php } ?>
+										</select>
+										<?php } ?>
+									</div>
+									<div class="wpsg_clear"></div>
+								</div>
+								<div class="wpsg_form_field">
+									<div class="wpsg_form_left">
+										<label for="produkt_ptemplate"><?php echo __('URL Benachrichtigung', 'wpsg'); ?>:</label>									
+									</div>
+									<div class="wpsg_form_right">
+										<input style="width:95%;" type="text" name="posturl" class="wpsg_posturl" value="<?php echo wpsg_hspc(@$this->view['data']['posturl']); ?>" />
+										<div class="wpsg_clear" style="height:7px;"></div>
+										<label><input type="checkbox" <?php echo ((@$this->view['data']['posturl_verkauf'] == '1')?'checked="checked"':''); ?> value="1" name="posturl_verkauf" style="width:auto; float:none;" />&nbsp;<?php echo __('beim Verkauf', 'wpsg'); ?></label>
+										&nbsp;&nbsp;
+										<label><input type="checkbox" <?php echo ((@$this->view['data']['posturl_bezahlung'] == '1')?'checked="checked"':''); ?> value="1" name="posturl_bezahlung" style="width:auto; float:none;" />&nbsp;<?php echo __('bei Bezahlung', 'wpsg'); ?></label>
+										<a rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=URLBenachrichtigung" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=URLBenachrichtigung" class="wpsg_form_help"></a>									 						 
+									</div>
+									<div class="wpsg_clear"></div>
+								</div>	
+								<?php } ?>
+								
+								<?php if (!$this->hasMod('wpsg_mod_produktartikel') && !isset($_REQUEST['wpsg_lang'])) { ?>
+								<div class="wpsg_form_field">
+									<div class="wpsg_form_left">
+										<label for="partikel"><?php echo __('Zugeordneter Wordpress Artikel', 'wpsg'); ?>:</label>
+									</div>								
+									<div class="wpsg_form_right">
+										<select id="partikel" name="partikel">
+											<option value=""><?php echo __("Bitte auswÃ€hlen", "wpsg"); ?></option>									
+											<?php $arArtikel = get_posts('numberposts=-1'); if (is_array($arArtikel) && sizeof($arArtikel) > 0) { ?>
+											<optgroup label="<?php echo __('Artikel', 'wpsg'); ?>">
+												<?php foreach ($arArtikel as $a) { ?>
+												<option <?php echo (($a->ID == $this->view['data']['partikel'])?'selected="selected"':''); ?> value="<?php echo $a->ID; ?>"><?php echo $a->post_title; ?></option>
+												<?php } ?>
+											</optgroup>
+											<?php } ?>
+											<?php $arPages = get_pages(); if (is_array($arPages) && sizeof($arPages) > 0) { ?>
+											<optgroup label="<?php echo __('Seiten', 'wpsg'); ?>">
+												<?php foreach ($arPages as $p) { ?>
+												<option <?php echo (($p->ID == $this->view['data']['partikel'])?'selected="selected"':''); ?> value="<?php echo $p->ID; ?>"><?php echo $p->post_title; ?></option>
+												<?php } ?>
+											</optgroup>
+											<?php } ?>
+										</select>
+									</div>
+									<div class="wpsg_clear"></div>
+								</div>
+								<?php } ?>
+								
+								<?php if (!isset($_REQUEST['wpsg_lang'])) { ?>
+								<?php echo wpsg_drawForm_Select('basket_multiple', __('Verhalten im Warenkorb', 'wpsg'), array(
+									'0' => __('Nur einmal mit beliebiger Menge (Standard)', 'wpsg'),
+									'4' => __('Nur einmal mit Menge 1', 'wpsg'),
+									'1' => __('Mehrfach mit beliebiger Menge', 'wpsg'),
+									'2' => __('Mehrfach mit Menge 1', 'wpsg')
+								), @$this->view['data']['basket_multiple'], array('help' => 'basket_multiple')); ?>							
+								<?php } ?>
+								 
+								<?php if ($this->view['data']['id'] > 0) { ?>
+								<div class="wpsg_form_field">
+									<div class="wpsg_form_left">
+										<label for="produkt_ptemplate"><?php echo __('URL', 'wpsg'); ?>:</label>									
+									</div>
+									<div class="wpsg_form_right">	
+										<p>									
+											<a href="<?php echo $this->getProduktLink(array('id' => ((wpsg_isSizedInt($this->view['data']['lang_parent']))?$this->view['data']['lang_parent']:$this->view['data']['id']))); ?>"><?php echo $this->getProduktLink(array('id' => ((wpsg_isSizedInt($this->view['data']['lang_parent']))?$this->view['data']['lang_parent']:$this->view['data']['id']))); ?></a>
+										</p>
+									</div>
+									<div class="wpsg_clear"></div>
+								</div>	
+								<?php } ?>
+								
+								<?php $this->callMods('produkt_edit_allgemein', array(&$this->view['data'])); ?>
+								
+							</div>
+						</div>
+					
+						<div id="wpsg_description" class="postbox">		
+							<h3 class="wpsg_handlediv">
+								<span title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>" class="handlediv"><br /></span>
+								<span><?php echo __('Beschreibung', 'wpsg'); ?></span>
+							</h3>	
+							<div class="inside">
+							 
+								<?php 
+								
+								function wpsg_ShowTinyMCE() { 
+									
+									 
+									
+									wp_print_scripts('editor');
+									if (function_exists('add_thickbox')) add_thickbox();
+									wp_print_scripts('media-upload');
+									if (function_exists('wp_tiny_mce')) wp_tiny_mce();
+									wp_admin_css();
+									
+									do_action("admin_print_styles-post-php");
+									do_action('admin_print_styles');
+									
+								}
+								
+								function wpsg_formatTinyMCE($in)
+								{
+									
+									if (isset($in['theme_advanced_buttons1'])) $in['theme_advanced_buttons1'] = str_replace(",wpsg", "", $in['theme_advanced_buttons1']);
+									
+									return $in;
+									
+								}
+								
+								// Damit die qTranslate Interne Editor Ãbersetzung nicht aufgerufen wird
+								remove_filter('the_editor', 'qtrans_modifyRichEditor');
+								
+								add_filter('tiny_mce_before_init', 'wpsg_formatTinyMCE');
+								add_filter('admin_head','wpsg_ShowTinyMCE');
+								wp_editor(@$this->view['data']['beschreibung'], 'beschreibung');
+								
+								?>
+											
+							</div>
+						</div>
+				
+						<?php $this->callMods('produkt_edit_content', array(&$this->view['data'])); ?>
+					
+					</div>
+							
+					<?php if ($_REQUEST['edit_id'] > 0) { ?>
+					<input type="hidden" name="edit_id" value="<?php echo $_REQUEST['edit_id']; ?>" />
+					<?php } ?>
+					
+					<?php if (isset($_REQUEST['wpsg_lang'])) { ?>
+					<input type="hidden" name="wpsg_lang" value="<?php echo $_REQUEST['wpsg_lang']; ?>" />
+					<?php } ?>
+				
+					<p class="submit">
+						<input type="submit" value="<?php echo __('Produkt speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit" />
+						<input type="submit" value="<?php echo __('Produkt speichern und zur Ãbersicht', 'wpsg'); ?>" class="button-primary" id="submit_index" name="submit_index" />
+					</p>
+					
+				</div>
+		
+			</div>
+		
+		</form>
+		
+	</div> 
+</div>
Index: /views/produkt/addedit.phtml
===================================================================
--- /views/produkt/addedit.phtml	(revision 5441)
+++ /views/produkt/addedit.phtml	(revision 5447)
@@ -8,5 +8,5 @@
 ?>
 
-<div class="wpsg_products wpsg_old_forms" id="wpsg-bs">
+<div class="wpsg_products" id="wpsg-bs">
 
 	<nav class="navbar navbar-default">
@@ -23,481 +23,67 @@
 		</div>
 	</nav>
+		
+	<?php echo $this->writeBackendMessage(); ?>
+		
+	<form method="POST" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=save&noheader=1" enctype="multipart/form-data">
+	
+		<div class="wpsg_admin_submenu">
+		 
+			<div class="list-group" id="wpsg_product_tabs">		
+				<?php $i = 0; foreach ($this->view['arSubAction'] as $k => $v) { $i ++; ?>		 
+				<a class="list-group-item <?php echo ((wpsg_getStr($_COOKIE['wpsg_product_addedit_tab'], 'general') === $k)?'active':''); ?>" wpsg-data-target="<?php echo $k; ?>" href="#"><?php echo $v['title']; ?></a>		
+				<?php } ?>
+				
+				<br />
+				
+				<?php if ($_REQUEST['edit_id'] > 0) { ?>
+				<input type="hidden" name="edit_id" value="<?php echo $_REQUEST['edit_id']; ?>" />
+				<?php } ?>
+				
+				<?php if (isset($_REQUEST['wpsg_lang'])) { ?>
+				<input type="hidden" name="wpsg_lang" value="<?php echo $_REQUEST['wpsg_lang']; ?>" />
+				<?php } ?>
+				
+				<input type="submit" value="<?php echo __('Speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit" />
+				<input type="submit" value="<?php echo __('Speichern / zur Ãbersicht', 'wpsg'); ?>" class="button-primary" id="submit_index" name="submit_index" />
+				
+			</div>
+				
+		</div>
+		
+		<div class="wpsg_admin_content form-horizontal">
+		
+			<?php $i = 0; foreach ($this->view['arSubAction'] as $k => $v) { $i ++; ?>
+			<div id="<?php echo $k; ?>" style="display:<?php echo ((wpsg_getStr($_COOKIE['wpsg_product_addedit_tab'], 'general') === $k)?'block':'none'); ?>;" class="wpsg_product_tab_content">
+				
+				<?php echo $v['content']; ?>
+				
+			</div>		
+			<?php } ?>
+		
+		</div>
+		
+	</form>
+			 
+	<script type="text/javascript">/* <![CDATA[ */
 
-	<script type="text/javascript">/* <![CDATA[ */
+		jQuery(document).ready(function() {
+			    
+			jQuery('#wpsg_product_tabs a').bind('click', function() {
 	
-		wpsg_product_edit_change = new Array();
-		                                            
-		jQuery(document).ready( function() {
-			 
-		    jQuery("#normal-sortables, #side-sortables").sortable({
-				connectWith: ".meta-box-sortables",
-				placeholder: 'wpsg_placeholder',
-				dropOnEmpty: true, 
-				cursor: 'move',
-				grid: [50, 20],
-				handle: '.wpsg_handlediv',
-				forceHelperSize: true,
-				forcePlaceholderSize: true,
-				opacity: 0.8,
-				stop: function(e,ui) {
-	
-					var ser = jQuery("#normal-sortables").sortable("serialize");				
-					ser = ser.replace(/\&wpsg\[\]\=/g, ',').replace(/wpsg\[\]\=/g, '');
-	
-					jQuery.cookie('wpsg_product_view_normal', ser);
-	
-					var ser = jQuery("#side-sortables").sortable("serialize");								
-					ser = ser.replace(/\&wpsg\[\]\=/g, ',').replace(/wpsg\[\]\=/g, '');
-					
-					jQuery.cookie('wpsg_product_view_side', ser);
-					
-				},
-				receive: function(e, ui) {
-				}
-			}); 
-	
-		    if (jQuery.cookie('wpsg_product_view_normal') != null)
-			{
-	
-				var divs = jQuery.cookie('wpsg_product_view_normal').split(',').reverse();
-	
-				for (index in divs)
-				{
-	
-					jQuery('#normal-sortables').prepend(jQuery('#wpsg_' + divs[index]));
-					
-				}
+				jQuery('#wpsg_product_tabs a').removeClass('active');
+				jQuery('.wpsg_product_tab_content').hide();
 				
-			}
-	
-			if (jQuery.cookie('wpsg_product_view_side') != null)
-			{
-	
-				var divs = jQuery.cookie('wpsg_product_view_side').split(',').reverse();
-	
-				for (index in divs)
-				{
-	
-					jQuery('#side-sortables').prepend(jQuery('#wpsg_' + divs[index]));
-					
-				}
-				
-			}
-	
-			var click_x = false;
-			var click_y = false;
-			
-			jQuery('.wpsg_handlediv').bind('click', function(ev) {
-	
-				if (Math.abs(click_x - ev.pageX) <= 5 && Math.abs(click_y - ev.pageY) <= 5)
-				{
-	
-					jQuery(this).next().toggle();
-	
-					var arClose = new Array();
-					jQuery('.wpsg_product_view .postbox .inside:hidden').each(function() {
-						arClose.push(jQuery(this).parent().attr("id"));
-					} );
-	
-					jQuery.cookie('wpsg_product_closed', arClose.join(','));
-						
-				}
+				jQuery(this).addClass('active');
+				jQuery('#' + jQuery(this).attr('wpsg-data-target')).show();
+
+				jQuery.cookie('wpsg_product_addedit_tab', jQuery(this).attr('wpsg-data-target'));
+				jQuery(this).blur();				
 				
 			} );
-			
-			jQuery('.wpsg_handlediv').bind('mousedown', function(ev) {
-	
-				click_x = ev.pageX;
-				click_y = ev.pageY;	
-							
-			} );
-	
-			if (jQuery.cookie('wpsg_product_closed') != null && jQuery.cookie('wpsg_product_closed') != '')
-			{
-	
-				var arClose = jQuery.cookie('wpsg_product_closed').split(',');
-	
-				for (index in arClose)
-				{
-	
-					jQuery('#' + arClose[index] + ' .inside').hide();
-								
-				}
-				
-			}
-	
-			jQuery('#submit, #submit_index').bind('click', function() {
-	
-				if (wpsg_product_edit_change.length > 0)
-				{
-	
-					jQuery('.wpsg_change_error').removeClass('wpsg_change_error');
-					
-				    for (var i = 0; i < wpsg_product_edit_change.length; i++) {
-				    	 
-				        jQuery('#' + wpsg_product_edit_change[i]).addClass('wpsg_change_error');
-				        
-				    }
-	
-				    alert('<?php echo __('Bitte ÃŒberprÃŒfen Sie die rot markierten Felder. Ãnderungen in diesen Feldern gehen beim Speichern verloren.', 'wpsg'); ?>');
-	
-				    return false;
-					
-				}
-				else
-				{
-	
-					return true;
-					
-				}
-				
-			} );
-			
-			// Flaggen fÃŒr die aktuelle Sprache davorbauen
-			<?php if ($this->isMultiLingual() && isset($_REQUEST['wpsg_lang'])) { $arLang = $this->getStoreLanguages(); $lang = $arLang[$_REQUEST['wpsg_lang']]; ?>
-			jQuery('.wpsg_handlediv').prepend('<img src="<?php echo $this->getFlagURL().$lang['flag']; ?>" alt="<?php echo $lang['name']; ?>" />&nbsp;');
-			<?php } ?>
-		    
-		} );
-	             
+
+		} );		
+    
 	/* ]]> */</script> 
-	
-	<?php echo $this->writeBackendMessage(); ?>
-	
-	<div class="wrap columns-2 wpsg_produkt_addedit wpsg_product_view" id="wpsg_product_view">
-		
-		<div id="wpsg_relatedproducts_produktauswahl"></div>
-			
-	 	<form method="POST" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&amp;action=save&amp;noheader=1" enctype="multipart/form-data">
-	
-			<div id="postbox" class="metabox-holder has-right-sidebar" style="padding-top:0px;">
-	
-				<div id="side-info-column" class="inner-sidebar" style="width:386px;">
-					<div id="side-sortables" class="meta-box-sortables ui-sortable" style="width:380px;">
-								
-						<?php if (!isset($_REQUEST['wpsg_lang'])) { ?>
-						<div id="wpsg_preis" class="postbox">						
-							<h3 class="wpsg_handlediv">
-								<div class="handlediv" title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>"><br /></div>
-								<span><?php echo __('Preis / Steuer', 'wpsg'); ?></span>
-							</h3>
-							<div class="inside">
-								<?php echo wpsg_drawForm_Select('mwst_key', __('Steuergruppe', 'wpsg'), wpsg_tax_groups(true), @$this->view['data']['mwst_key']); ?>								
-								<?php echo wpsg_drawForm_Input('preis', wpsg_translate(__('Preis (#1#)', 'wpsg'), (($this->getBackendTaxview() === WPSG_NETTO)?'NETTO':'BRUTTO')), wpsg_ff($this->view['data']['preis'])); ?>
-								<?php echo wpsg_drawForm_Input('oldprice', wpsg_translate(__('Alter Preis (#1#)', 'wpsg'), (($this->getBackendTaxview() === WPSG_NETTO)?'NETTO':'BRUTTO')), wpsg_ff($this->view['data']['oldprice'])); ?>
-								<?php echo wpsg_drawForm_Input('', __('Steueranteil', 'wpsg'), wpsg_ff(@$this->view['data']['tax_sum_value'], $this->get_option('wpsg_currency')).' / '.$this->getDefaultCountry()->kuerzel, array('text' => true)); ?>
-								<?php echo wpsg_drawForm_Checkbox('euleistungsortregel', __('Produkt unterliegt den EU-Leistungsortregeln', 'wpsg'), @$this->view['data']['euleistungsortregel'], array('fullrow' => true, 'help' => 'EU-Leistungsortregel')); ?>
-								<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;subaction=laender">LÃ€nderverwaltung</a>							
-							</div>
-						</div>
-						<div id="wpsg_paymentmethods" class="postbox">						
-							<h3 class="wpsg_handlediv">
-								<div class="handlediv" title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>"><br /></div>
-								<span><?php echo __('Erlaubte Zahlungsarten', 'wpsg'); ?></span>
-							</h3>
-							<div class="inside wpsg_form_field_max">	
-								<select id="wpsg_paymentmethods_select" name="wpsg_paymentmethods_select">
-									<option value="0"><?php echo __('Alle', 'wpsg'); ?></option>
-									<option value="1" <?php echo ((wpsg_isSizedArray($this->view['allowedPayment']))?'selected="selected"':''); ?>><?php echo __('Auswahl', 'wpsg'); ?></option>
-								</select>
-								<div class="wpsg_paymentmethods_select">
-									<?php foreach ($this->arPayment as $p) { if (!isset($p['deleted']) || $p['deleted'] != '1') { ?>
-										<?php echo wpsg_drawForm_Checkbox('wpsg_paymentmethods[]', $p['name'], in_array($p['id'], (array)$this->view['allowedPayment']), array('id' => 'wpsg_paymentmethods_'.$p['id'], 'value' => $p['id'])); ?>
-									<?php } } ?>
-								</div>
-								
-								<script type="text/javascript">/* <![CDATA[ */
-	
-									jQuery('#wpsg_paymentmethods_select').bind('change', function() {
-	
-										if (jQuery(this).val() == '1')
-										{
-	
-											jQuery('.wpsg_paymentmethods_select').show();
-											
-										}
-										else
-										{
-	
-											jQuery('.wpsg_paymentmethods_select').hide();
-											
-										}
-										
-									} ).change();
-								
-								/* ]]> */</script>
-							</div>
-						</div>
-						<div id="wpsg_shippingmethods" class="postbox">
-							<h3 class="wpsg_handlediv">
-								<div class="handlediv" title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>"><br /></div>
-								<span><?php echo __('Erlaubte Versandarten', 'wpsg'); ?></span>
-							</h3>
-							<div class="inside wpsg_form_field_max">
-								<select id="wpsg_shippingmethods_select" name="wpsg_shippingmethods_select">
-									<option value="0"><?php echo __('Alle', 'wpsg'); ?></option>
-									<option value="1" <?php echo ((wpsg_isSizedArray($this->view['allowedShipping']))?'selected="selected"':''); ?>><?php echo __('Auswahl', 'wpsg'); ?></option>								
-								</select>
-								<div class="wpsg_shippingmethods_select">
-									<?php foreach ($this->arShipping as $s) { if (!isset($s['deleted']) || $s['deleted'] != '1') { ?>
-										<?php echo wpsg_drawForm_Checkbox('wpsg_shippingmethods[]', $s['name'], in_array($s['id'], (array)$this->view['allowedShipping']), array('id' => 'wpsg_paymentmethods_'.$s['id'], 'value' => $s['id'])); ?>
-									<?php } } ?>
-								</div>
-							</div>
-							
-							<script type="text/javascript">/* <![CDATA[ */
-	
-								jQuery('#wpsg_shippingmethods_select').bind('change', function() {
-	
-									if (jQuery(this).val() == '1')
-									{
-	
-										jQuery('.wpsg_shippingmethods_select').show();
-										
-									}
-									else
-									{
-	
-										jQuery('.wpsg_shippingmethods_select').hide();
-										
-									}
-									
-								} ).change();
-							
-							/* ]]> */</script>
-						</div>
-						<?php } ?>
-											
-						<?php $this->callMods('produkt_edit_sidebar', array(&$this->view['data'])); ?>
-						 
-					</div>
-				</div>
-			
-				<div id="post-body">
-					
-					<div id="titlediv" style="margin-right:400px;">
-						<div id="titlewrap">					
-							<input type="text" placeholder="<?php echo __('Produktname', 'wpsg'); ?>" id="title" value="<?php echo wpsg_hspc(@$this->view['data']['name']); ?>" tabindex="1" size="30" name="name">
-						</div>
-					</div>
-					
-					<br />
-									
-					<div id="normal-sortables" class="meta-box-sortables" style="margin-right:400px;">
-							
-						<div id="wpsg_generally" class="postbox">		
-							<h3 class="wpsg_handlediv">
-								<span title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>" class="handlediv"><br /></span>
-								<span><?php echo __('Allgemein', 'wpsg'); ?></span>
-							</h3>
-							<div class="inside">
-								<?php if ($this->isMultiLingual()) { ?>
-								<div class="wpsg_form_field">
-									<div class="wpsg_form_left">
-										<label for="produkt_anr"><?php echo __("Ãbersetzungen", "wpsg"); ?>:</label>
-									</div>								
-									<div class="wpsg_form_right wpsg_form_language">																											
-										<?php foreach ($this->getStoreLanguages() as $a) { ?>
-											<?php if ((isset($_REQUEST['wpsg_lang']) && $_REQUEST['wpsg_lang'] != $a['locale']) || (!isset($_REQUEST['wpsg_lang']) && $a['lang'] != $GLOBALS['q_config']['default_language'])) { ?>
-											<?php if (isset($_REQUEST['wpsg_lang']) && $a['lang'] == $GLOBALS['q_config']['default_language']) { ?>
-											<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id=<?php echo $_REQUEST['edit_id']; ?>" title="<?php echo wpsg_translate(__('Zu Sprache #1# wechseln.', 'wpsg'), $a['name']); ?>">
-											<?php } else { ?>
-											<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id=<?php echo $_REQUEST['edit_id']; ?>&wpsg_lang=<?php echo $a['locale']; ?>" title="<?php echo wpsg_translate(__('Zu Sprache #1# wechseln.', 'wpsg'), $a['name']); ?>">
-											<?php } ?>
-												<img src="<?php echo $this->getFlagURL().$a['flag']; ?>" alt="<?php echo wpsg_translate(__('Zu Sprache #1# wechseln.', 'wpsg'), $a['name']); ?>" />
-											</a>
-											<?php } ?>
-										<?php } ?>
-									</div>
-									<div class="wpsg_clear"></div>
-								</div>
-								<?php } ?>
-								<div class="wpsg_form_field">
-									<div class="wpsg_form_left">
-										<label for="produkt_anr"><?php echo __("Produktname (Detail)", "wpsg"); ?>:</label>
-									</div>
-									<div class="wpsg_form_right">
-										<input id="detailname" type="text" value="<?php echo wpsg_hspc(@$this->view['data']['detailname']); ?>" name="detailname" />
-									</div>
-									<div class="wpsg_clear"></div>
-								</div>
-								<?php if (wpsg_isSizedInt($this->view['data']['id']) && !isset($_REQUEST['wpsg_lang'])) { ?>
-								<div class="wpsg_form_field">
-									<div class="wpsg_form_left">
-										<label for="produkt_id"><?php echo __('Produkt ID', 'wpsg'); ?>:</label>
-									</div>
-									<div class="wpsg_form_right">
-										<input type="text" name="produkt_id" value="<?php echo wpsg_hspc(@$this->view['data']['id']); ?>" readonly="readonly" />
-									</div>
-									<div class="wpsg_clear"></div>
-								</div>
-								<?php } ?>
-								<?php if (!isset($_REQUEST['wpsg_lang'])) { ?>
-								<div class="wpsg_form_field">
-									<div class="wpsg_form_left">
-										<label for="produkt_anr"><?php echo __("Artikelnummer", "wpsg"); ?>:</label>
-									</div>
-									<div class="wpsg_form_right">
-										<input id="produkt_anr" type="text" value="<?php echo wpsg_hspc(@$this->view['data']['anr']); ?>" name="anr" />
-									</div>
-									<div class="wpsg_clear"></div>
-								</div>
-								<div class="wpsg_form_field">
-									<div class="wpsg_form_left">
-										<label for="produkt_ptemplate"><?php echo __('Produkttemplate', 'wpsg'); ?>:</label>									
-									</div>
-									<div class="wpsg_form_right">
-										<?php if (!is_array($this->view['templates']) || sizeof($this->view['templates']) <= 0) { ?>
-										<p class="wpsg_error"><?php echo __('Keine Templatedatein gefunden!', 'wpsg'); ?></p>
-										<?php } else { ?>
-										<select name="ptemplate_file" id="produkt_ptemplate">
-											<?php foreach ($this->view['templates'] as $t) { ?>
-											<option <?php echo (($t == @$this->view['data']['ptemplate_file'] || (!isset($this->view['data']['ptemplate_file']) && $t == 'standard.phtml'))?'selected="selected"':''); ?> value="<?php echo wpsg_hspc($t); ?>"><?php echo wpsg_hspc($t); ?></option>
-											<?php } ?>
-										</select>
-										<?php } ?>
-									</div>
-									<div class="wpsg_clear"></div>
-								</div>
-								<div class="wpsg_form_field">
-									<div class="wpsg_form_left">
-										<label for="produkt_ptemplate"><?php echo __('URL Benachrichtigung', 'wpsg'); ?>:</label>									
-									</div>
-									<div class="wpsg_form_right">
-										<input style="width:95%;" type="text" name="posturl" class="wpsg_posturl" value="<?php echo wpsg_hspc(@$this->view['data']['posturl']); ?>" />
-										<div class="wpsg_clear" style="height:7px;"></div>
-										<label><input type="checkbox" <?php echo ((@$this->view['data']['posturl_verkauf'] == '1')?'checked="checked"':''); ?> value="1" name="posturl_verkauf" style="width:auto; float:none;" />&nbsp;<?php echo __('beim Verkauf', 'wpsg'); ?></label>
-										&nbsp;&nbsp;
-										<label><input type="checkbox" <?php echo ((@$this->view['data']['posturl_bezahlung'] == '1')?'checked="checked"':''); ?> value="1" name="posturl_bezahlung" style="width:auto; float:none;" />&nbsp;<?php echo __('bei Bezahlung', 'wpsg'); ?></label>
-										<a rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=URLBenachrichtigung" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=URLBenachrichtigung" class="wpsg_form_help"></a>									 						 
-									</div>
-									<div class="wpsg_clear"></div>
-								</div>	
-								<?php } ?>
-								
-								<?php if (!$this->hasMod('wpsg_mod_produktartikel') && !isset($_REQUEST['wpsg_lang'])) { ?>
-								<div class="wpsg_form_field">
-									<div class="wpsg_form_left">
-										<label for="partikel"><?php echo __('Zugeordneter Wordpress Artikel', 'wpsg'); ?>:</label>
-									</div>								
-									<div class="wpsg_form_right">
-										<select id="partikel" name="partikel">
-											<option value=""><?php echo __("Bitte auswÃ€hlen", "wpsg"); ?></option>									
-											<?php $arArtikel = get_posts('numberposts=-1'); if (is_array($arArtikel) && sizeof($arArtikel) > 0) { ?>
-											<optgroup label="<?php echo __('Artikel', 'wpsg'); ?>">
-												<?php foreach ($arArtikel as $a) { ?>
-												<option <?php echo (($a->ID == $this->view['data']['partikel'])?'selected="selected"':''); ?> value="<?php echo $a->ID; ?>"><?php echo $a->post_title; ?></option>
-												<?php } ?>
-											</optgroup>
-											<?php } ?>
-											<?php $arPages = get_pages(); if (is_array($arPages) && sizeof($arPages) > 0) { ?>
-											<optgroup label="<?php echo __('Seiten', 'wpsg'); ?>">
-												<?php foreach ($arPages as $p) { ?>
-												<option <?php echo (($p->ID == $this->view['data']['partikel'])?'selected="selected"':''); ?> value="<?php echo $p->ID; ?>"><?php echo $p->post_title; ?></option>
-												<?php } ?>
-											</optgroup>
-											<?php } ?>
-										</select>
-									</div>
-									<div class="wpsg_clear"></div>
-								</div>
-								<?php } ?>
-								
-								<?php if (!isset($_REQUEST['wpsg_lang'])) { ?>
-								<?php echo wpsg_drawForm_Select('basket_multiple', __('Verhalten im Warenkorb', 'wpsg'), array(
-									'0' => __('Nur einmal mit beliebiger Menge (Standard)', 'wpsg'),
-									'4' => __('Nur einmal mit Menge 1', 'wpsg'),
-									'1' => __('Mehrfach mit beliebiger Menge', 'wpsg'),
-									'2' => __('Mehrfach mit Menge 1', 'wpsg')
-								), @$this->view['data']['basket_multiple'], array('help' => 'basket_multiple')); ?>							
-								<?php } ?>
-								 
-								<?php if ($this->view['data']['id'] > 0) { ?>
-								<div class="wpsg_form_field">
-									<div class="wpsg_form_left">
-										<label for="produkt_ptemplate"><?php echo __('URL', 'wpsg'); ?>:</label>									
-									</div>
-									<div class="wpsg_form_right">	
-										<p>									
-											<a href="<?php echo $this->getProduktLink(array('id' => ((wpsg_isSizedInt($this->view['data']['lang_parent']))?$this->view['data']['lang_parent']:$this->view['data']['id']))); ?>"><?php echo $this->getProduktLink(array('id' => ((wpsg_isSizedInt($this->view['data']['lang_parent']))?$this->view['data']['lang_parent']:$this->view['data']['id']))); ?></a>
-										</p>
-									</div>
-									<div class="wpsg_clear"></div>
-								</div>	
-								<?php } ?>
-								
-								<?php $this->callMods('produkt_edit_allgemein', array(&$this->view['data'])); ?>
-								
-							</div>
-						</div>
-					
-						<div id="wpsg_description" class="postbox">		
-							<h3 class="wpsg_handlediv">
-								<span title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>" class="handlediv"><br /></span>
-								<span><?php echo __('Beschreibung', 'wpsg'); ?></span>
-							</h3>	
-							<div class="inside">
-							 
-								<?php 
-								
-								function wpsg_ShowTinyMCE() { 
-									
-									 
-									
-									wp_print_scripts('editor');
-									if (function_exists('add_thickbox')) add_thickbox();
-									wp_print_scripts('media-upload');
-									if (function_exists('wp_tiny_mce')) wp_tiny_mce();
-									wp_admin_css();
-									
-									do_action("admin_print_styles-post-php");
-									do_action('admin_print_styles');
-									
-								}
-								
-								function wpsg_formatTinyMCE($in)
-								{
-									
-									if (isset($in['theme_advanced_buttons1'])) $in['theme_advanced_buttons1'] = str_replace(",wpsg", "", $in['theme_advanced_buttons1']);
-									
-									return $in;
-									
-								}
-								
-								// Damit die qTranslate Interne Editor Ãbersetzung nicht aufgerufen wird
-								remove_filter('the_editor', 'qtrans_modifyRichEditor');
-								
-								add_filter('tiny_mce_before_init', 'wpsg_formatTinyMCE');
-								add_filter('admin_head','wpsg_ShowTinyMCE');
-								wp_editor(@$this->view['data']['beschreibung'], 'beschreibung');
-								
-								?>
-											
-							</div>
-						</div>
-				
-						<?php $this->callMods('produkt_edit_content', array(&$this->view['data'])); ?>
-					
-					</div>
-							
-					<?php if ($_REQUEST['edit_id'] > 0) { ?>
-					<input type="hidden" name="edit_id" value="<?php echo $_REQUEST['edit_id']; ?>" />
-					<?php } ?>
-					
-					<?php if (isset($_REQUEST['wpsg_lang'])) { ?>
-					<input type="hidden" name="wpsg_lang" value="<?php echo $_REQUEST['wpsg_lang']; ?>" />
-					<?php } ?>
-				
-					<p class="submit">
-						<input type="submit" value="<?php echo __('Produkt speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit" />
-						<input type="submit" value="<?php echo __('Produkt speichern und zur Ãbersicht', 'wpsg'); ?>" class="button-primary" id="submit_index" name="submit_index" />
-					</p>
-					
-				</div>
-		
-			</div>
-		
-		</form>
-		
-	</div> 
+			 
 </div>
Index: /views/produkt/addedit_general.phtml
===================================================================
--- /views/produkt/addedit_general.phtml	(revision 5447)
+++ /views/produkt/addedit_general.phtml	(revision 5447)
@@ -0,0 +1,7 @@
+<?php
+
+	/**
+	 * Template fÃŒr den Reiter "Allgemein" der Produktverwaltung
+	 */
+
+?>TODO
