} else { // grading a user /// starting form echo '<form name="gradesform" action="view.php" method="post">'; echo "<input type=\"hidden\" name=\"id\" value=\"{$cm->id}\" />"; echo "<input type=\"hidden\" name=\"what\" value=\"savegrade\" />"; echo "<input type=\"hidden\" name=\"for\" value=\"{$gradefor}\" />"; $gradeset = brainstorm_get_gradeset($brainstorm->id, $gradefor); $user = get_record('user', 'id', $gradefor); print_heading(get_string('gradingof', 'brainstorm') . ' ' . fullname($user)); /// printing ideas print_heading(get_string('responses', 'brainstorm'), '', 3); $responses = brainstorm_get_responses($brainstorm->id, $user->id, 0, false); if ($responses) { echo '<table><tr>'; brainstorm_print_responses_cols($brainstorm, $responses, false); echo '</tr></table>'; } else { print_simple_box(get_string('notresponded', 'brainstorm')); } if (!$brainstorm->singlegrade && $brainstorm->seqaccesscollect) { print_string('gradeforparticipation', 'brainstorm'); echo ' : '; make_grading_menu($brainstorm, 'participate', @$gradeset->participate, false); } // getting valid operator list $operators = brainstorm_get_operators($brainstorm->id); /// printing preparing sets print_heading(get_string('preparations', 'brainstorm'), '', 3); if ($operators) { echo '<table width="90%" cellspacing="10"><tr valign="top">';
} ?> <p><table align="center" width="80%"> <tr> <td colspan="<?php echo $brainstorm->numcolumns * 2; ?> "> <?php print_heading(get_string('myresponses', 'brainstorm')); ?> </td> </tr> <tr valign="top"> <?php brainstorm_print_responses_cols($brainstorm, $myresponses, false, has_capability('mod/brainstorm:manage', $context)); ?> </tr> </table></p> <?php if (!$brainstorm->privacy) { ?> <p> <table align="center" width="80%"> <tr> <td colspan="<?php echo $brainstorm->numcolumns; ?> "> <?php print_heading(get_string('otherresponses', 'brainstorm'));