} echo "<tr id=\"row_" . $question_no . "\">"; if ($killer_questions->is_killer_question($q_id)) { if (array_key_exists($q_id, $stored_results) and $stored_results[$q_id] == 0) { echo "<td class=\"killerq skull\">"; $killed = true; } else { echo "<td class=\"q skull\">"; } } else { echo "<td class=\"q\">"; } if (trim($notes) != '') { echo "<span style=\"color:{$labelcolor}\"><img src=\"../artwork/notes_icon.gif\" width=\"16\" height=\"16\" alt=\"note\" /> {$notes}</span><br />\n"; } echo parse_leadin($leadin, $stored_q_parts[$q_id]) . "</td>"; $sub_totals[$stored_results[$q_id]]++; for ($i = 0; $i < $cols; $i++) { if (array_key_exists($q_id, $stored_results) and $stored_results[$q_id] == $i) { echo "<td class=\"" . $rating_class[$i] . " r\">{$i}</td>"; } else { echo "<td class=\"r\">{$i}</td>"; } } echo "</tr>\n"; $question_no++; } echo "<tr><td></td>"; for ($i = 0; $i < $cols; $i++) { echo "<td class=\"rating\"><input type=\"text\" name=\"fails\" size=\"4\" style=\"border:0px; text-align:right\" value=\"" . $sub_totals[$i] . "\" /></td>"; }
$result->bind_param('i', $paperid); $result->execute(); $result->store_result(); $result->bind_result($max_screen); $result->fetch(); $result->close(); if ($max_screen > 1) { $current_screen = $max_screen; } } for ($i = 0; $i < $q_no; $i++) { if ($paper_details[$i]['screen'] > 1 and $old_screen != $paper_details[$i]['screen']) { echo '<tr><td colspan="2"> </td></tr>'; echo '<tr><td class="screenbrk" colspan="2"><span class="scr_no">' . $string['screen'] . ' ' . $paper_details[$i]['screen'] . '</span></td></tr>'; } echo "<tr><td class=\"q_no\">{$question_no}.</td><td>" . parse_leadin($paper_details[$i]['q_id'], $paper_details[$i]['leadin'], $paper_details[$i]['q_type'], $paper_details[$i]['screen'], $paper_details[$i]['settings'], $current_screen) . "</td></tr>\n"; if ($paper_details[$i]['q_type'] != 'info') { $question_no++; } $old_screen = $paper_details[$i]['screen']; } $mysqli->close(); ?> <tr><td colspan="2"> </td></tr> <tr><td style="text-align:center" colspan="2"><input type="button" name="submit" value="<?php echo $string['ok']; ?> " class="ok" onclick="copyValue()" /> <input type="button" name="cancel" value="<?php echo $string['cancel']; ?> " class="cancel" onclick="window.close()" /></td></tr>