/////////////////////////////////////////////////////////////////////////////////////
///
/// Nilla Cart (c) 2004 Dave Johnson & Craig Holland
/// All rights reserved - Starpoint Communications, Inc
//
// No part of this cart can be modified or copied with with the
// Express consent of Starpoint Communications
include("cart.config.php");
include("cart_functions.php");
//print_header();
switch($mode) {
case "show":
print_header();
?>
$q2 = mysql_query("create temporary table TT_Bin SELECT a.binn_name, a.binn_idx, b.slot_idx FROM binn a, slot b, items c WHERE a.binn_idx = b.binn_idx AND b.slot_idx = c.slot_idx AND c.item_stock >0 order by a.binn_rank");
$q = mysql_query("select slot_idx, count(slot_idx) from TT_Bin where binn_name = '$cat' group by slot_idx");
while($row=mysql_fetch_object($q)) {
display_slot($row->slot_idx);
}
?>--- BACK TO TOP---
include("footer.php");
break;
case "expand":
print_header();
//display_slot($slot_idx);
shelf_page($idx);
include("footer.php");
break;
case "display":
print_header();
?>
get_slot($bin_idx);
//print("");
?>---BACK TO TOP---
include("footer.php");
break;
case "single":
print_header();
display_slot($id);
include("footer.php");
break;
default:
print_header();
display_slot(0);
show_feature();
include('includes/maincart.inc');
display_shelf();
include("footer.php");
}