IC Database not found.'; } // else parse database. $formString = '
'."\n".'
' ."\n".'

Choose a card to '.$act.' from the list.

' ."\n".'
'; $parser = new XmlParser(); $dbDoc = $parser->parse($dbData); $entryArray = $dbDoc->getElementsByTagName("icCardEntry"); foreach(array_keys($entryArray) as $key) { $tmpVal = $entryArray[$key]->getAttribute('id'); $card = $entryArray[$key]->getElementsByTagName("icName"); $cardName = $card[0]->attributes['content']; $formString .= ''.$cardName.'
'."\n"; } $formString .= '

'."\n"; return $formString; } function showCardForm($mData) { $form = '
'; $form .= ''."\n"; $form .= ''."\n"; $form .= '
IC Name:
Description:
Interaction Pattern:
quiet state symbol

Time Critical Condition:
Name of Other IC:
Message to Other IC:
Other IC\'s Task:
Card of (If necessary please use several IC cards to describe an IC)
'; return $form; } ?>