<?php // Includes require('includes/application_top.php'); require(DIR_WS_CLASSES . 'currencies.php'); require_once(DIR_WS_CLASSES . 'wishlist_class.php'); // Instantiate $currencies = new currencies(); $oWishlist = new un_wishlist(); // Get wishlist $id = (isset($_GET['wid']) ? $_GET['wid'] : ''); if ( zen_not_null($id) ) { $wishlist = $oWishlist->getWishlist($id); } else { zen_redirect(UN_FILENAME_WISHLISTS); exit; } // Process action $products_id = (isset($_GET['products_id']) ? $_GET['products_id'] : ''); $action = (isset($_GET['action']) ? $_GET['action'] : ''); if ( zen_not_null($action) && zen_not_null($products_id) ) { switch ($action) { case 'delete': $oWishlist->removeProduct($products_id); } } // Get products in wishlist
<?php // Includes require('includes/application_top.php'); require_once(DIR_WS_CLASSES . 'wishlist_class.php'); // Instantiate $oWishlist = new un_wishlist(); // Process action $action = (isset($_GET['action']) ? $_GET['action'] : ''); if (zen_not_null($action)) { switch ($action) { case 'delete': $oWishlist->deleteWishlist($_GET['wid']); break; } } // Get records $records = $oWishlist->getWishlists(); ?><!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> <link rel="stylesheet" type="text/css" href="includes/cssjsmenuhover.css" media="all" id="hoverJS"> <script language="javascript" src="includes/menu.js"></script> <script language="javascript" src="includes/general.js"></script>