0 "; //"WHERE a.closed=0 AND a.active=1 AND a.approved=1 AND a.deleted=0 AND a.crea" $order_field = ($_REQUEST['order_field']) ? $_REQUEST['order_field'] : 'a.max_bid'; $order_type = ($_REQUEST['order_type']) ? $_REQUEST['order_type'] : 'DESC'; break; case 'ending': $page_header_msg = MSG_ENDING_SOON_AUCTIONS; $where_query = "WHERE a.active=1 AND a.approved=1 AND a.closed=0 AND a.deleted=0 AND a.list_in!='store' AND a.creation_in_progress=0"; $order_field = ($_REQUEST['order_field']) ? $_REQUEST['order_field'] : 'a.end_time'; $order_type = ($_REQUEST['order_type']) ? $_REQUEST['order_type'] : 'ASC'; break; # START DAILY DEALS v6.11 case 'deal': $page_header_msg = 'Daily Deal Listings'; $where_query = "WHERE a.closed=0 AND a.active=1 AND a.approved=1 AND a.deleted=0 AND a.creation_in_progress=0 AND a.dailydeal=1 AND a.dailydeal_msrp != '0.00'"; $order_field = ($_REQUEST['order_field']) ? $_REQUEST['order_field'] : 'a.end_time'; $order_type = ($_REQUEST['order_type']) ? $_REQUEST['order_type'] : 'ASC'; break; # END DAILY DEALS v6.11 # START ONE DOLLAR AUCTIONS v6.11 case 'dollar': $page_header_msg = MSG_ONE_DOLLAR_AUCTIONS; $where_query = "WHERE a.active=1 AND a.approved=1 AND a.closed=0 AND a.deleted=0 AND a.list_in!='store' AND a.creation_in_progress=0 AND a.reserve_price = 0 AND a.start_price <= 1"; $order_field = ($_REQUEST['order_field']) ? $_REQUEST['order_field'] : 'a.end_time'; $order_type = ($_REQUEST['order_type']) ? $_REQUEST['order_type'] : 'ASC'; break; # END ONE DOLLAR AUCTIONS v6.11 } $header_browse_auctions = header5($page_header_msg); /** * below we have the variables that need to be declared in each separate browse page */ $page_url = 'auctions_show'; $order_field = (in_array($order_field, $auction_ordering)) ? $order_field : 'a.end_time'; $order_type = (in_array($order_type, $order_types)) ? $order_type : 'ASC'; $additional_vars = '&option=' . $_REQUEST['option']; include_once('includes/page_browse_auctions.php'); include_once ('global_footer.php'); echo $template_output; ?>