echo "Act as: "; $uTool->showUserPopup($actAsUID, true); } ?> </form> <?php if ($mode == "to") { echo '<form id="report" method="post" action="index.php">' . "\n"; } else { echo '<form id="report" method="post" action="from.php">' . "\n"; } echo ' <input type="hidden" id="toID" name="toID">' . "\n"; echo ' <input type="hidden" id="fromID" name="fromID">' . "\n"; echo ' </form>' . "\n"; echo '<div class="level1">' . "\n"; $users = $uTool->getUsers(true); // Get the answers for this report. // if ($mode == "from") { $answers = $aTool->getAllAnswersTo($actAsUID); } else { $answers = $aTool->getAllAnswersFrom($actAsUID); } // // Build the report. // if ($answers != null) { echo '<div class="level2">' . "\n"; $prevQuestionID = $answers[0]['questionID']; echo '<h4>' . $answers[0]['questionText'] . '</h4><br>' . "\n"; //