assign( CURRENTPAGEURI, $REQUEST_URI ."&" ); } else { $tpl->assign( CURRENTPAGEURI, $REQUEST_URI ."?" ); } switch( $view ) { case "login": if( $auth->is_authenticated( ) != 'nobody' ) { $errorMessage = urlencode( "ERROR: You are already logged in" ); header( "Location: /akm/error/?error=$errorMessage" ); } else { header( "Location: /akm/?again=yes" ); } break; case "logout": $auth->unauth( '1' ); header( "Location: /akm/" ); break; case "error": $tpl->assign( PAGETITLE, "Error" ); if( $error ) { $tpl->assign( ERRORS, $error ); } else { $tpl->assign( ERRORS, '' ); } $tpl->parse( MAGIC, "error" ); break; case "hours": $tpl->assign( PAGETITLE, "Atwater Kent Museum - Hours & Directions" ); $tpl->assign( HOURSOFF, "/images/navHours_on.gif" ); include "HolidayClosings.php"; $holidayClosings = new HolidayClosings( 1, "/akm/hours/", $tokens ); $tpl->assign( HOLIDAYCLOSINGS, $holidayClosings->display( ) ); $tpl->parse( MAGIC, "hours" ); break; case "programs": $tpl->assign( PAGETITLE, "Atwater Kent Museum - Programs & Exhibitions" ); $tpl->assign( PROGRAMSOFF, "/images/navPrograms_on.gif" ); include "Programs.php"; $programs = new Programs( 1, "/akm/programs/", $tokens ); $tpl->assign( UPCOMINGPROGRAMS, $programs->display( ) ); $tpl->parse( MAGIC, "programs" ); break; case "plan": $tpl->assign( PAGETITLE, "Plan A Visit to the Atwater Kent Museum" ); $tpl->assign( VISITOFF, "/images/navVisit_on.gif" ); switch( $subView ) { case "guided": $tpl->assign( PAGETITLE, "Guided School & Group Programs" ); $tpl->parse( MAGIC, "guided" ); break; case "adultGuided": $tpl->assign( PAGETITLE, "Adult Group Tours" ); $tpl->parse( MAGIC, "adultGuided" ); break; case "inSchool": $tpl->assign( PAGETITLE, "In-School Programs" ); $tpl->parse( MAGIC, "inSchool" ); break; case "afterSchool": $tpl->assign( PAGETITLE, "After-School Programs" ); $tpl->parse( MAGIC, "afterSchool" ); break; case "philAKid": $tpl->assign( PAGETITLE, "Phil-A-Kid Summer History Camp" ); $tpl->parse( MAGIC, "philAKid" ); break; default: $tpl->parse( MAGIC, "plan" ); } break; case "membership": $tpl->assign( PAGETITLE, "Atwater Kent Museum - Membership Benefits" ); $tpl->assign( MEMBERSHIPOFF, "/images/navMembership_on.gif" ); switch( $subView ) { case "benefits": $tpl->assign( PAGETITLE, "Membership Benefits" ); $tpl->parse( MAGIC, "benefits" ); break; case "reciprocal": $tpl->assign( PAGETITLE, "Reciprocal Organizations" ); $tpl->parse( MAGIC, "reciprocal" ); break; default: $tpl->parse( MAGIC, "membership" ); } break; case "store": $tpl->assign( PAGETITLE, "Atwater Kent Museum Store" ); $tpl->assign( STOREOFF, "/images/navStore_on.gif" ); include "Product.php"; $product = new Product( 1, "/akm/store/", $tokens ); $tpl->assign( MUSEUMSTORE, $product->display( ) ); $tpl->parse( MAGIC, "store" ); break; case "collection": $tpl->assign( PAGETITLE, "The Atwater Kent Museum Collection" ); $tpl->assign( COLLECTIONSOFF, "/images/navCollections_on.gif" ); switch( $subView ) { case "philadelphian": include "Philadelphian.php"; $philadelphian = new Philadelphian( 1, "/akm/collection/philadelphian/", $tokens ); $tpl->assign( MAGIC, $philadelphian->display( ) ); break; case "object": include "Item.php"; $item = new Item( 1, "/akm/collection/object/", $tokens ); $tpl->assign( MAGIC, $item->display( ) ); break; default: include "Philadelphian.php"; $philadelphian = new Philadelphian( 1, "/akm/collection/philadelphian/", $tokens ); $tpl->assign( FEATUREDPHILADELPHIAN, $philadelphian->renderFeatured( ) ); include "Item.php"; $item = new Item( 1, "/akm/collection/object/", $tokens ); $tpl->assign( FEATUREDOBJECT, $item->renderFeatured( ) ); $tpl->parse( MAGIC, "collections" ); } break; case "about": $tpl->assign( PAGETITLE, "Atwater Kent Museum Information" ); $tpl->assign( INFOOFF, "/images/navInfo_on.gif" ); switch( $subView ) { case "news": include "News.php"; $news = new News( 1, "/akm/about/news/", $tokens ); $tpl->assign( MAGIC, $news->display( ) ); break; default: include "News.php"; $news = new News( 0, "/akm/about/news/", $tokens ); $tpl->assign( TOPNEWSROWS, $news->renderTopNews( ) ); $tpl->parse( MAGIC, "about" ); } break; case "history": $tpl->assign( PAGETITLE, "The History of the Atwater Kent Museum" ); $tpl->assign( HISTORYOFF, "/images/navHistory_on.gif" ); $tpl->parse( MAGIC, "history" ); break; case "rent": $tpl->assign( PAGETITLE, "Rent the Atwater Kent Museum" ); $tpl->assign( RENTOFF, "/images/navRent_on.gif" ); $tpl->parse( MAGIC, "rent" ); break; case "contact": $tpl->assign( PAGETITLE, "Contact the Atwater Kent Museum" ); $tpl->assign( CONTACTOFF, "/images/navContact_on.gif" ); $tpl->assign( PRINTABLEVERSIONLINK, '' ); if( $error ) { $tpl->assign( ERROR, $error ); } else { $tpl->assign( ERROR, '' ); } if( $name ) { $tpl->assign( NAME, $name ); } else { $tpl->assign( NAME, '' ); } if( $address ) { $tpl->assign( ADDRESS, $address ); } else { $tpl->assign( ADDRESS, '' ); } if( $address2 ) { $tpl->assign( ADDRESS2, $address2 ); } else { $tpl->assign( ADDRESS2, '' ); } if( $city ) { $tpl->assign( CITY, $city ); } else { $tpl->assign( CITY, '' ); } if( $state ) { $tpl->assign( STATE, $state ); } else { $tpl->assign( STATE, '' ); } if( $zip ) { $tpl->assign( ZIP, $zip ); } else { $tpl->assign( ZIP, '' ); } if( $phone ) { $tpl->assign( PHONE, $phone ); } else { $tpl->assign( PHONE, '' ); } if( $email ) { $tpl->assign( EMAIL, $email ); } else { $tpl->assign( EMAIL, '' ); } if( $comment ) { $tpl->assign( COMMENT, $comment ); } else { $tpl->assign( COMMENT, '' ); } $tpl->parse( MAGIC, "contact" ); break; case "thankyou": $tpl->assign( PAGETITLE, "Thank You" ); $tpl->parse( MAGIC, "thankyou" ); break; case "press": $tpl->assign( PAGETITLE, "Press Releases" ); $tpl->assign( PRESSOFF, "/images/navPressReleases_on.gif" ); include "PressRelease/PressRelease.php"; $pressRelease = new PressRelease( 1, "/akm/press/photo/", $tokens ); $tpl->assign( MAGIC, $pressRelease->display( ) ); break; case "photo": $tpl->assign( PAGETITLE, "Photo Gallery" ); include "PhotoAlbum/PhotoAlbum.php"; $photoAlbum = new PhotoAlbum( 1, "/akm/photo/", $tokens ); $tpl->assign( MAGIC, $photoAlbum->display( ) ); break; case "lessons": $tpl->assign( PAGETITLE, "City History Lessons" ); switch( $subView ) { case "epidemics": $tpl->parse( LESSONCONTENT, "epidemics" ); break; case "yellowFever": $tpl->parse( LESSONCONTENT, "yellowFever" ); break; case "timeline": $tpl->parse( LESSONCONTENT, "timeline" ); break; case "places": $tpl->parse( LESSONCONTENT, "places" ); break; case "activities": $tpl->parse( LESSONCONTENT, "activities" ); break; default: $tpl->parse( LESSONCONTENT, "lessonIntro" ); } $tpl->parse( MAGIC, "lessonsMain" ); break; case "experience": $tpl->assign( PAGETITLE, "Experience Philadelphia" ); switch( $subView ) { case "map": $tpl->parse( MAGIC, "map" ); break; case "experienceMore": $tpl->parse( MAGIC, "experienceMore" ); break; case "gameBoard": $tpl->parse( MAGIC, "gameBoard" ); break; default: $tpl->parse( MAGIC, "experience" ); } break; default: $tpl->assign( HOMEOFF, "/images/navHome_on.gif" ); $tpl->assign( PAGETITLE, "Atwater Kent Museum of Philadelphia" ); include "News.php"; $news = new News( 0, "/akm/about/news/", $tokens ); $tpl->assign( TOPNEWSROWS, $news->renderTopNews( ) ); include "Philadelphian.php"; $philadelphian = new Philadelphian( 1, "/akm/collection/philadelphian/", $tokens ); $tpl->assign( FEATUREDPHILADELPHIAN, $philadelphian->renderFeatured( 1 ) ); include "Item.php"; $item = new Item( 1, "/akm/collection/object/", $tokens ); $tpl->assign( FEATUREDOBJECT, $item->renderFeatured( 1 ) ); $tpl->parse( MAGIC, "welcome" ); } include "footer.php"; ?>