echo '<a class="bold" href="?view=reviewthesis&sid=' . $submission->id . '&uid=' . $review->user . '">'; } elseif (get_class($review->data) == "PP") { echo '<a class="bold" href="?view=reviewplan&sid=' . $submission->id . '&uid=' . $review->user . '">'; } // Is it your review or someone elses? if ($review->user == $GLOBALS['user']->id) { echo '<h4 style="margin-bottom: 0em;">Your review</h4>'; } else { echo '<h4 style="margin-bottom: 0em;">Read this review</h4>'; } echo '</a><br/>'; // Date echo 'Date: ' . $review->date->format("Y-m-d H:i:s") . '<br/>'; // Feedback echo 'Feedback: ' . $review->data->feedback . '<br/>'; // Comments echo '<div class="comments"><p>Comments:</p>'; $review->printComments(); echo '</div>'; // Print form for submitting Comments print ' <form method="post" name="commentForm" action="?view=projectreviews&sid=' . $sid . '"> <textarea name="comment' . $review->id . '" id="comment"></textarea><br/> <input type="submit" name="submitComment" value="Comment"> </form> '; echo '</p>'; echo '</div>'; echo '<hr/>'; } }