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";
}
*/
$_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']
?>
$doit=$_GET['doit'];
switch($doit) {
// Current switch cases are:
// '' - first time through, catchall, default
// 'Okay' - Returns to top level table menu
// 'Cancel' - Returns to top level table menu
// 'View'- Redisplays the screen expanding the chosen item to show all information
case '':
display_faq(count($_SESSION['allrows']));
break;
case 'Okay':
display_faq();
break;
case 'Cancel':
display_faq();
break;
case 'View':
$_SESSION['expand'] = $_GET['expand'];
display_faq(count($_SESSION['allrows'])); // $j is the number of rows. Have to count again?
break;
} // end switch
?>
echo $_SESSION['vendor_info']; // from index.php4
echo ' Get a
MAP here.
'."\n";
?>
// identify directory and page for menu list
echo ''."\n";
echo ''."\n";
include('Footer.html');
/* functions */
function suite_spot($map, $href, $id, $tablename, $title) {
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";
echo ''."\n";
?>