get_USERID(); $passwd = $_SESSION['member_obj']['admin']->get_PASSWD(); $_SESSION['logged_on'] = false; if(($_SESSION['USERID'] == $userid) and ($_SESSION['PASSWD']== $passwd)) { $_SESSION['logged_on'] = true; } $phpself = $_SERVER['PHP_SELF']; $_SESSION['phpself'] = $phpself; $_SESSION['server'] = $_SERVER["HTTP_HOST"]; $_SESSION['family_name'] = 'faq'; /* if($_SESSION['logged_on']) { echo '
'."\n"; echo ' '."\n"; echo ' '."\n"; echo ' '."\n"; echo ' '."\n"; echo '
'."\n"; } */ $_SESSION['allrows'] = get_records('faq'); //show($_SESSION['class_vars'],'class_vars'); $_SESSION['xy_adj'] = 1; $_SESSION['max_x'] = 160*$_SESSION['xy_adj']; $_SESSION['max_y'] = 160*$_SESSION['xy_adj']; //get_faqs(); // stores allrows in $_SESSION['allrows'] ?>
MAP here.
'."\n"; ?>
'."\n"; echo '
'."\n"; include('Footer.html'); /* functions */ function suite_spot($map, $href, $id, $tablename, $title) { echo '
'."\n"; echo ' '."\n"; echo ' '."\n"; echo ' '."\n"; echo ' '."\n"; echo '
'."\n"; $_SESSION['tablename'] = $tablename; } function display_faq($j) { echo ''."\n"; /* allrows: Array ( [0] => Array ( [FAQ_ID] => ClassStructure [FAQ_QUESTION] => How are the classes structured? [FAQ_ANSWER] => Marjorie explains and demonstrates techniques to students who then work together to prepare selected recipes. Upon completion of cooking, students eat what they have prepared. ) */ $phpfile = $_SESSION['phpfile']; $expand = $_SESSION['expand']; // not sure is this is needed ?>

Move the cursor over a question to view the answer.

'."\n"; $_SESSION['event_table'] = array(); foreach($_SESSION['allrows'] as $key => $value) { //show($_SESSION['allrows'][$key],'faq'); $faq_id = $_SESSION['allrows'][$key]['FAQ_ID']; if($expand == $_SESSION['allrows'][$key]['FAQ_ID']) { // Event title $faqquestion = $_SESSION['allrows'][$key]['FAQ_QUESTION']; // more information $faqanswer = $_SESSION['allrows'][$key]['FAQ_ANSWER']; // more information //http://www.adaptitech.com/EE_SUITE/Project/faq.php4?doit=View&expand=FAQ_ID_1 echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; } else { $expanddata = str_replace(" ", "%20", $_SESSION['allrows'][$key]['FAQ_ID']); echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; } echo ''."\n"; echo ''."\n"; } echo ''."\n"; ?>
  
'."\n"; // http://www.adaptitech.com/EE_SUITE/Project/CE_SUITE/db_utility.php4?doit=Search&expand=EVENT_ID_1\ $_SESSION['return_to_page'] = 'http://'.$_SESSION['server'].$_SERVER['PHP_SELF'].'?doit=View&expand='.$faq_id; $href = 'href="CE_SUITE/db_utility.php4?doit=Search from Page&expand='; if($_SESSION['logged_on']) { suite_spot($faq_id, $href, $faq_id, 'faq', "SUITE_SPOT for this FAQ"); } echo 'Q: '.$faqquestion.''."\n"; echo '
 
'."\n"; echo 'A: '.$faqanswer.''."\n"; echo '
'."\n"; $href = 'href="CE_SUITE/db_utility.php4?doit=Search from Page&expand='; if($_SESSION['logged_on']) { suite_spot($faq_id, $href, $faq_id, 'faq', "SUITE_SPOT for this FAQ"); } //echo '
  • '."\n"; //echo ''.$_SESSION['allrows'][$key]['FAQ_QUESTION'].''."\n"; //removeFAQData(id) echo 'Q: '; echo $_SESSION['allrows'][$key]['FAQ_QUESTION']."\n"; echo ''."\n"; echo '
  • '."\n"; //echo 'A: '.$faqanswer.''."\n"; echo '
    '."\n"; echo '


    '."\n"; echo '
    '."\n"; ?>