Index: ds/wpsg_mod_productpackage.class.php
===================================================================
--- /mods/wpsg_mod_productpackage.class.php	(revision 5998)
+++ 	(revision )
@@ -1,64 +1,0 @@
-<?php
-	
-	/**
-	 * Klasse fÃŒr den Verkauf von Produkten als Produktpaket
-	 * @author Daschmi
-	 */
-	class wpsg_mod_productpackage extends wpsg_mod_basic
-	{
-		
-		var $lizenz = 2;
-		var $id = 2050;
-		
-		/**
-		 * Konstruktor
-		 */
-		public function __construct()
-		{
-			
-			parent::__construct();
-				
-			$this->name = __('Produktpakete', 'wpsg');
-			$this->group = __('Produkte', 'wpsg');
-			$this->desc = __('ErmÃ¶glicht den Verkauf von Produktpaketen, die aus mehreren Produkten bestehen.', 'wpsg');
-			
-		} // public function __construct()
-		
-		public function install()
-		{
-			
-			require_once(WPSG_PATH_WP.'/wp-admin/includes/upgrade.php');
-			
-			$sql = "CREATE TABLE ".WPSG_TBL_PRODUCTS." (
-			  	wpsg_mod_productpackage_set INT(11) NOT NULL,
-			) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;";
-				
-			dbDelta($sql);
-			
-		} // public function install()
-		
-		public function produkt_edit_sidebar(&$produkt_data)
-		{
-		
-			if ($produkt_data['id'] <= 0) return;
-			
-			$this->shop->render(WPSG_PATH_VIEW.'/mods/mod_productpackage/produkt_edit_sidebar.phtml');
-				
-		} // public function produkt_edit_sidebar(&$produkt_data)
-		
-		/** Modulfunktionen */
-		
-		/**
-		 * Zeichnet die Liste der zugeordneten Produkte 
-		 * @param int $product_id ID des Produktes
-		 */
-		public function productlist($product_id)
-		{
-			
-			return $this->shop->render(WPSG_PATH_VIEW.'/mods/mod_productpackage/productlist.phtml', false);
-			
-		} // public function productlist($product_id)
-		
-	} // class wpsg_mod_productpackage extends wpsg_mod_basic
-
-?>
Index: /system/intern/mods/wpsg_mod_productpackage.class.php
===================================================================
--- /system/intern/mods/wpsg_mod_productpackage.class.php	(revision 5999)
+++ /system/intern/mods/wpsg_mod_productpackage.class.php	(revision 5999)
@@ -0,0 +1,64 @@
+<?php
+	
+	/**
+	 * Klasse fÃŒr den Verkauf von Produkten als Produktpaket
+	 * @author Daschmi
+	 */
+	class wpsg_mod_productpackage extends wpsg_mod_basic
+	{
+		
+		var $lizenz = 2;
+		var $id = 2050;
+		
+		/**
+		 * Konstruktor
+		 */
+		public function __construct()
+		{
+			
+			parent::__construct();
+				
+			$this->name = __('Produktpakete', 'wpsg');
+			$this->group = __('Produkte', 'wpsg');
+			$this->desc = __('ErmÃ¶glicht den Verkauf von Produktpaketen, die aus mehreren Produkten bestehen.', 'wpsg');
+			
+		} // public function __construct()
+		
+		public function install()
+		{
+			
+			require_once(WPSG_PATH_WP.'/wp-admin/includes/upgrade.php');
+			
+			$sql = "CREATE TABLE ".WPSG_TBL_PRODUCTS." (
+			  	wpsg_mod_productpackage_set INT(11) NOT NULL,
+			) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;";
+				
+			dbDelta($sql);
+			
+		} // public function install()
+		
+		public function produkt_edit_sidebar(&$produkt_data)
+		{
+		
+			if ($produkt_data['id'] <= 0) return;
+			
+			$this->shop->render(WPSG_PATH_VIEW.'/mods/mod_productpackage/produkt_edit_sidebar.phtml');
+				
+		} // public function produkt_edit_sidebar(&$produkt_data)
+		
+		/** Modulfunktionen */
+		
+		/**
+		 * Zeichnet die Liste der zugeordneten Produkte 
+		 * @param int $product_id ID des Produktes
+		 */
+		public function productlist($product_id)
+		{
+			
+			return $this->shop->render(WPSG_PATH_VIEW.'/mods/mod_productpackage/productlist.phtml', false);
+			
+		} // public function productlist($product_id)
+		
+	} // class wpsg_mod_productpackage extends wpsg_mod_basic
+
+?>
Index: /system/intern/views/mod_productpackage/productlist.phtml
===================================================================
--- /system/intern/views/mod_productpackage/productlist.phtml	(revision 5999)
+++ /system/intern/views/mod_productpackage/productlist.phtml	(revision 5999)
@@ -0,0 +1,15 @@
+<?php
+
+	/**
+	 * Template fÃŒr die Liste der zugeordneten Produkte
+	 */
+
+?>
+<?php if (!wpsg_isSizedArray($this->view['arProducts'])) { ?>
+<?php echo __('Bisher wurden keine Produkte ausgewÃ€hlt', 'wpsg'); ?>
+<?php } else { ?>
+
+
+<?php } ?>
+<br /><br />
+<a href="" class="wpsg_link_add" onclick="return wpsg_mod_productpackage_add();"><?php echo __('Produkt auswÃ€hlen', 'wpsg'); ?></a>
Index: /system/intern/views/mod_productpackage/produkt_edit_sidebar.phtml
===================================================================
--- /system/intern/views/mod_productpackage/produkt_edit_sidebar.phtml	(revision 5999)
+++ /system/intern/views/mod_productpackage/produkt_edit_sidebar.phtml	(revision 5999)
@@ -0,0 +1,77 @@
+<?php
+
+	/**
+	 * Template fÃŒr die Integration des Produktpaketes in die Produktverwaltung
+	 */
+
+?>
+<div id="wpsg_mod_productpackage_dialog"></div>
+
+<div id="wpsg_productpackage" class="postbox">	
+	<h3 class="wpsg_handlediv">
+		<span class="handlediv" title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>"><br /></span>
+		<span><?php echo __('Produktpaket', 'wpsg'); ?> </span>
+	</h3>
+	<div class="inside">
+	
+		<?php echo wpsg_drawForm_Checkbox('wpsg_mod_productpackage_set', __('Produktpaket', 'wpsg'), $this->get_option('wpsg_mod_productpackage_set')); ?>
+		
+		<div id="wpsg_mod_productpackage_layer">
+			
+			<?php echo $this->callMod('wpsg_mod_productpackage', 'productlist', array($this->view['data']['id'])); ?>
+			
+		</div>
+		
+	</div>
+</div>
+
+<script type="text/javascript">/* <![CDATA[ */
+
+	function wpsg_mod_productpackage_select(product_id)
+	{
+
+		alert(product_id);
+		
+	} // function wpsg_mod_productpackage_select(product_id)
+
+	function wpsg_mod_productpackage_add()
+	{
+
+		jQuery('#wpsg_mod_productpackage_dialog').html('<img style="margin:15px;" src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
+		
+		jQuery('#wpsg_mod_productpackage_dialog').dialog( {
+			'dialogClass': 'wp-dialog',           
+	        'modal': true,
+	        'width': 390,
+	        'height': 350,	       
+	        'title': '<?php echo __('Produktauswahl', 'wpsg'); ?>',
+	        'open': function() {
+
+	        	jQuery.ajax( {
+	    			url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=select&wpsg_mode=filterDialog&noheader=1&edit_id=<?php echo $this->view['data']['id']; ?>&callback=wpsg_mod_productpackage_select',
+	    			success: function(data) {
+		    			
+	    				jQuery('#wpsg_mod_productpackage_dialog').html(data);
+	    					
+	    			}
+	    		} );
+			        
+	        }
+		} );
+
+		return false;
+		
+	} // function wpsg_mod_productpackage_select()
+
+	jQuery(document).ready(function() {
+
+		jQuery('#wpsg_mod_productpackage_set').bind('change', function() {
+ 
+			if (jQuery(this).attr("checked") == "checked") jQuery('#wpsg_mod_productpackage_layer').show();
+			else jQuery('#wpsg_mod_productpackage_layer').hide();
+			
+		} ).click();
+		
+	} );
+
+/* ]]> */</script>
