$question_no++;
    }
    if ($screen > $old_screen) {
        echo '<tr><td colspan="7" style="height:10px"></td></tr>';
        echo '<tr><td colspan="7"><table border="0" style="padding-left:10px; padding-right:2px; padding-bottom:5px; width:100%; color:#1E3287"><tr><td><nobr>' . $string['screen'] . ' ' . $screen . '</nobr></td><td style="width:98%"><hr noshade="noshade" style="border:0px; height:1px; color:#E5E5E5; background-color:#E5E5E5; width:100%" /></td></tr></table></td></tr>';
    }
    if ($q_type == 'info') {
        echo "<tr><td class=\"q_no\"><img src=\"../../artwork/black_white_info_icon.png\" width=\"6\" height=\"12\" alt=\"Info\" />&nbsp;</td><td>";
    } else {
        $status_class = 'status' . $status;
        echo "<tr class=\"{$status_class}\"><td class=\"q_no\">{$question_no}.</td><td>";
    }
    if ($locked != '') {
        echo '<img src="../../artwork/small_padlock.png" width="18" height="18" alt="Locked" />';
    }
    echo "</td><td style=\"width:25px\"><input onclick=\"parent.top.controls.checkStatus(this)\" type=\"checkbox\" name=\"{$q_id}\" id=\"{$q_id}\" value=\"{$q_id}\" /></td>";
    if ($parts == '') {
        echo '<td onclick="Qpreview(' . $q_id . ')">';
    } else {
        echo '<td style="color:red; text-decoration:line-through" onclick="Qpreview(' . $q_id . ')">';
    }
    $leadin = QuestionUtils::clean_leadin($leadin);
    echo $leadin . "</td><td class=\"s\"><nobr>" . fullQuestionType($q_type, $string) . "</nobr></td><td class=\"s\">{$last_edited}</td><td>" . $status_array[$status]->get_name() . "</td></tr>\n";
    $old_screen = $screen;
}
$stmt->close();
?>
</table>
</form>
</body>
</html>
Example #2
0
            $marks_incorrect_error = true;
        } elseif ($status_array[$temp_array[$x]['status']]->get_exclude_marking()) {
            echo '<td style="text-align:right; vertical-align:top">' . $string['na'] . '</td>';
        } else {
            echo '<td class="m">' . $temp_array[$x]['marks'] . '</td>';
        }
    }
    if (!$status_array[$temp_array[$x]['status']]->get_exclude_marking()) {
        $screen_marks += $temp_array[$x]['marks'];
    }
    echo '<td class="d">' . $temp_array[$x]['display_last_edited'] . '</td>';
    echo "</tr>\n";
    if ($temp_array[$x]['q_type'] == 'random') {
        $sub_question = 1;
        foreach ($temp_array[$x]['random'] as $random_question) {
            echo "<tr style=\"display:none\" ondblclick=\"edQ(" . $question_number . "," . $random_question['q_id'] . ",'" . $random_question['type'] . "');\" id=\"r" . $x . "_" . $sub_question . "\"><td></td><td></td><td class=\"s\">&#149&nbsp;" . $random_question['leadin'] . "</td><td class=\"t\">" . fullQuestionType($random_question['type'], $string) . "</td>";
            if ($temp_array[$x]['marks'] == 'ERR') {
                echo "<td class=\"errmk\">" . $random_question['marks'] . "</td>";
            } else {
                echo "<td class=\"m\">" . $random_question['marks'] . "</td>";
            }
            echo "<td class=\"d\">" . $random_question['display_last_edited'] . "</td></tr>\n";
            $sub_question++;
        }
    }
}
if ($total_marks != 0) {
    if ($row_no > 0 and $properties->get_paper_type() != '3' and $properties->get_paper_type() != '4') {
        echo "<tr><td colspan=\"4\"></td><td id=\"marks_total\" style=\"border-top:1px solid black; padding-right:4px\" align=\"right\">";
        if ($marks_incorrect_error == true) {
            echo '<img src="../artwork/small_yellow_warning_icon.gif" width="12" height="11" alt="' . $string['variablenomarks'] . '" />';