\n"; $rslt = RunQuery($dbCon, $Query); $NumRecords = RecordCount($rslt); if ($NumRecords < 1) { NoSuchItem($Identifier); } else { $hashRecord = odbc_fetch_array($rslt, 0); DisplayItem($hashRecord, $TemplateFile); } odbc_free_result($rslt); } // Start if (CheckStringSet("ExhibitID")) { $Identifier="exhibit.exhibit_ID = " . AddSlashes($_REQUEST["ExhibitID"]); } elseif (CheckStringSet("Image")) { $Identifier="exhibit.imfull = '" . AddSlashes($_REQUEST["Image"]) . "'"; } else { print "You must specify a record to show
\n"; exit; } if (!CheckStringSet("Mode")) { $Template=$tplItemPlain; } elseif (!strcasecmp($_REQUEST["Mode"], "java")) { $Template=$tplItemInfo; } elseif (!strcasecmp($_REQUEST["Mode"], "realjava")) { $Template=$tplItemApplet; } elseif (!strcasecmp($_REQUEST["Mode"], "search")) { $Template=$tplItemSearch; } elseif (!strcasecmp($_REQUEST["Mode"], "book")) { $Template=$tplItemBooks; } elseif (!strcasecmp($_REQUEST["Mode"], "jbook")) { $Template=$tplItemJBooks; } elseif (!strcasecmp($_REQUEST["Mode"], "info")) { $Template=$tplItemInfo; } else { $Template=$tplItemPlain; } DBConnect(); //print "Running with $Identifier $Template
\n"; LoadItem($Identifier, $Template); odbc_close($dbCon); ?>