$val) { foreach($_SESSION['arr'] as $session_key => $session_val) { if($key == $session_key){$_SESSION['arr'][$session_key] = $val;} } if($key == 'custom') { //if the user is passing in a custom map choice, it adds it to the list of active maps, unselects all checkboxes but the lists, and chooses that item from the list if(!in_array($val, $_SESSION['custom'])) { $_SESSION['custom'][] = $val; } $Map1_check = ""; $_SESSION['arr']['Map1'] = $Map1_check; $Map2_check = ""; $_SESSION['arr']['Map2'] = $Map2_check; $Map3_check = "CHECKED"; $_SESSION['arr']['Map3'] = $Map3_check; $mapCustom_select = $val; $_SESSION['arr']['mapCustom'] = $mapCustom_select; } } $key = 0; $val = 0; }else{ //otherwise create an array session variable $arr = array('map' => 0, 'places' => 0, 'people' => 0, 'system' => 0, 'Map1' => '', 'Map2' => '', 'Map3' => '', 'mapCustom' => '0'); $_SESSION['arr'] = $arr; $curtain = 0; //and load the home screen $sys = 35; } if(!isset($_SESSION['custom'])) { $custom_array = array(); $custom_array[] = '0'; $_SESSION['custom'] = $custom_array; } //set up colors $color_back = "#FFFFFF"; $color_1 = "#BEDFC4"; if($curtain == 1) $color_back = $color_1; $color_2 = "#D4ECFB"; if($curtain == 2) $color_back = $color_2; $color_3 = "#FFFDC3"; if($curtain == 3) $color_back = $color_3; //the contents of the page if nothing has been selected $home_screen = '

Welcome to the

NORTHGATE MALL InThAir® zone


Would you like to see today\'s sales?  YES

'; //the custom options $aCustomMaps = array(); $aCustomMaps[0] = '----'; //base maps $aCustomMaps[1] = 'Althetic Shoes/Apparel'; //all 3 stores $aCustomMaps[2] = 'Sam'; //NO $aCustomMaps[3] = 'JCPenney'; //NO $aCustomMaps[4] = 'Bath and Body Works'; //NO $aCustomMaps[5] = 'Kirk'; //NO $aCustomMaps[6] = 'Bill'; //most maps made $aCustomMaps[7] = 'Foot Action'; //make all maps $aCustomMaps[8] = 'Alisha'; //yes (maybe) $aCustomMaps[9] = 'Doug'; //yes (maybe) $aCustomMaps[10] = 'Mary'; //yes //all the possible screens in the prototype are given a space in the curtains's arrays $aMap = array(); //an utter mess... creates the map screen, including javascript to set and check cookies for check boxes $aMap[0] = '
BACK
'; $aMap[0] .= '
+
-
'; $aMap[0] .= '
PLACES'; $aMap[0] .= ''; $aMap[0] .= '
PEOPLE'; $aMap[0] .= ''; $aMap[0] .= '
'; $aMap[0] .='
'; $aMap[0] .= '

'; $aPlaces[1] = 'UP

Athletic Shoes/Apparel Map All

'; //foot action $aPlaces[2] = ''; $aPlaces[2] .= '
'; $aPlaces[2] .= 'Foot ActionCategories

Map It

A store selling athletic shoes for a variety of sports for men and women.

Explore

More like this

'; //explore foot action $aPlaces[3] = '
UP

Send To Wishlist

Send To Person
'; $aPlaces[3] .= '
Sketchers 20% off

Browse Our Items
'; //footaction's timberlands $aPlaces[4] = '
Size:
Color:
UP

Send To My Wishlist

Send To Person
'; $aPlaces[4] .= '

Timberland Womens Hiking Boots, Outdoor Eagle SN 12E093

From Foot Action

'; $aPeople = array(); //List of people $aPeople[0] = '

These People are here now

'; $aPeople[0] .= ''; $aPeople[0] .= ''; $aPeople[0] .= ''; $aPeople[0] .= ''; $aPeople[0] .= '
Alisha is in MacysMap Person
Bill is near Foot ActionMap Person
Doug is in The Food CourtMap Person
Mary is in ZalesMap Person
MORE ->
'; //Bill $aPeople[1] = ''; $aPeople[1] .= '
'; $aPeople[1] .= 'BillUP

Map Person

...is near Foot Action

see lists

Bill is in your Friends group

'; //Alisha $aPeople[2] = ''; $aPeople[2] .= '
'; $aPeople[2] .= 'AlishaUP

Map Person

...is in Macys

See wishlists

Alisha is in your Family group

'; //Doug $aPeople[3] = ''; $aPeople[3] .= '
'; $aPeople[3] .= 'DougUP

Map Person

...is in The Food Court

see lists

Doug is in your Classmates group

'; //Mary $aPeople[4] = ''; $aPeople[4] .= '
'; $aPeople[4] .= 'MaryUP

Map Person

...is in Zales

See wishlists

Mary is in your Friends Group

'; //all the possible system screens in an array $aSys = array(); $aSys[0] = ''; $aSys[1] = '
PEOPLEGROUPS
  • Alisha
  • Bill
  • Doug
  • Greg
  • Mary
  • Nick
  • Sam
Classmates
Family
Friends
SHOW ALL
'; $aSys[2] = ''; $aSys[3] = '

My Wishlists:

'; $aSys[4] = '

Other users will see this when they look at your profile:


'; $aSys[5] = 'Find ITEMS
Only within this zone
In any zone
'; $aSys[6] = 'Find PLACES
Only within this zone
In any zone
'; $aSys[7] = 'Find LISTS
Only of people within this zone
In any zone
'; $aSys[8] = 'Find PEOPLE
Only people within this zone
In any zone
'; $aSys[9] = 'You have no messages from your friends'; $aSys[10] = 'You have no messages from places'; $aSys[11] = 'You have no system messages'; $aSys[12] = 'Are you sure you want to leave this zone? Yes miles

'; $aSys[14] = 'Are you sure you want to save this zone to favorites?
Yes Yes Yes Yes Yes Foot Action

to your

Wishlist?

'; $aSys[24] = 'Send

Foot Action

to

'; $aSys[25] = 'Mary\'s Wishlists:'; //marys wishlists $aSys[26] = '

Back To Mary\'s Wishlists

Mary\'s Christmas Wishlist:'; //marys wishlists $aSys[27] = 'Add

Timberland Hiking Boots from Foot Action

to your

Wishlist?

'; $aSys[28] = 'Send

Timberland Hiking Boots from Foot Action

to

'; $aSys[29] = '

Back To Your Wishlists

My Wishlists: Shopping

'; $aSys[30] = '

The following sell the item: Athletic Shoes Map All

'; $aSys[31] = '

The following PLACES match the search: Foot Action Map All

'; $aSys[32] = '

The following WISHLISTS match the search: christmas mary

'; $aSys[33] = '

The following People match the search: mary

'; $aSys[34] = 'Message sent!

OK'; $aSys[35] = '

Welcome to the InThAir net, bringing you information you need, where you need it.

You are curerntly with-in the Northgate Mall zone. Would you like to view their content?

'; $content = $home_screen; //deciding which content to use //the session variable will remember what is displayed on each curtain if($curtain == 0) {$content = $home_screen;} else{ if($curtain == 1) {$content = $aMap[$_SESSION['arr']['map']];} else{ if($curtain == 2) {$content = $aPlaces[$_SESSION['arr']['places']];} else{ if($curtain == 3) {$content = $aPeople[$_SESSION['arr']['people']];} } } } ?>
0) { //when the curtain is set to 4, this shows ONLY the system message print ''; }else{ if($curtain < 3) { ?> 2) { ?> 1) { ?> 0) { ?>
X
'.$aSys[$sys].'
F
I
N
D

P
E
O
P
L
E
F
I
N
D

P
L
A
C
E
S
S
E
E

M
A
P
F
I
N
D

P
E
O
P
L
E
F
I
N
D

P
L
A
C
E
S
S
E
E

M
A
P

Tasks to be completed with mall browsing software: