/** * ---------------------------------------------------------------- * List Page * * #date > 18.6.2007 / 18.6.2007 * #by > boro@bvsarts.com, www.bvsarts.com * ---------------------------------------------------------------- **/ // session_start(); //nahrani struktury menu a podpurnych funkci databaze require "icx/config.php"; // require "icx/classes.php"; require "icx/savant2.php"; // template system // require "icx/dbase.php"; require "icx/shared.php"; $Param = unSerial(); // pretazeni pole GET pro dalsi pouziti $pageTitle = "(Buy) The Book"; $amount = (!empty($Param["amount"])) ? $Param["amount"]:1; if (!is_numeric($amount)) $amount = 1; $region = (!empty($Param["region"])) ? $Param["region"]:false; if (!is_numeric($region)) $region = false; /* ---------------------------------------------------------------------------------- */ /* ---------------------------------------------------------------------------------- */ // template variables $sendUrl = $appDir."shopcart.php?".Serial($Param); $template = "list_tpl.php"; for ($i=1; $i<11; $i++) { $amounts[$i] = $i; } $vars = array( 'sendUrl' => $sendUrl, 'unitPrice' => $unitPrice, 'amount' => $amount, 'selectAmount' => generateOptionsAR($amounts, $amount) ); $sets = array( 'template_path' => $templateDir, 'error' => 'stack', 'extract' => true ); $tpl =& new Savant2($sets); $tpl->assign($vars); $result = $tpl->fetch($template); if (!$tpl->isError($result)) { $vars = array("title"=>$pageTitle, "content"=>$result, "appDir"=>$htmlDir); $tpl->clear(); $tpl->assign($vars); $tpl->display("wrapper_tpl.php"); } else { die ("Error rendering inner template"); } // zavreni pripojeni databaze // mdb_close(); ?>