1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:py="http://genshi.edgewall.org/" py:strip="">
<div class="exercise" id="exercise${exerciseid}">
<p><b>Exercise:</b> ${exercisename}</p>
<py:if test="exercisedesc is not None">
<div>${exercisedesc}</div>
</py:if>
<input id="input_resettext_exercise${exerciseid}" type="hidden" value="${exercisepartial_backup}" />
<textarea id="textarea_exercise${exerciseid}" class="exercisebox"
onkeypress="return catch_textbox_input("exercise${exerciseid}", '${filename}',
event.keyCode)"
onchange="set_saved_status("exercise${exerciseid}", '${filename}',
"Save")"
cols="80" rows="${rows}">${exercisepartial}</textarea>
<div class="exercisebuttons">
<input type="button" value="Saved" disabled="disabled" id="savebutton_exercise${exerciseid}"
onclick="saveexercise("exercise${exerciseid}", '${filename}')"
title="Save your solution to this exercise" />
<input type="button" value="Reset" id="resetbutton_exercise${exerciseid}"
onclick="resetexercise("exercise${exerciseid}", '${filename}')"
title="Reload the original partial solution for this exercise" />
<input type="button" value="Run"
onclick="runexercise("exercise${exerciseid}", '${filename}')"
title="Run this program in the console" />
<input type="button" value="Submit"
id="submitbutton_exercise${exerciseid}"
onclick="submitexercise("exercise${exerciseid}", '${filename}')"
title="Submit this solution for evaluation" />
</div>
<div class="testoutput">
</div>
<div class="problem_summary">
<ul>
<li id="summaryli_exercise${exerciseid}" class="${complete_class}">
<b><span id="summarycomplete_exercise${exerciseid}">${complete}</span>.</b>
Attempts: <span id="summaryattempts_exercise${exerciseid}">${attempts}</span>.
</li>
</ul>
</div>
<!-- This is filled in by javascript when the page loads -->
<div class="attempthistory">
<p>
<a title="Click to view previous submissions you have made for this exercise"
onclick="open_previous("exercise${exerciseid}", '${filename}')">
View previous attempts
</a>
</p>
<div style="display: none">
<h3>Previous attempts</h3>
<p>
<a title="Close the previous attempts" onclick="close_previous("exercise${exerciseid}")">
Close attempts
</a>
</p>
<p class="attemptslist" style="display: none">
<select title="Select an attempt's time stamp from the list">
<option></option>
</select>
<input type="button" value="View"
onclick="select_attempt("exercise${exerciseid}", '${filename}')" />
</p>
<p class="noattempts" style="display: none">
No attempts have been made for this exercise.
</p>
<p>
<textarea readonly="readonly" class="exercisebox" cols="80" rows="${rows}"
title="You submitted this code on a previous attempt">
</textarea>
</p>
</div>
</div>
</div>
</html>
|