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.id}">
<p><b>Exercise:</b> ${exercise.name}</p>
<py:if test="description is not None">
<div>${description}</div>
</py:if>
<input id="input_resettext_${exercise.id}" type="hidden" value="${exercise.partial}" />
<textarea id="textarea_${exercise.id}" class="exercisebox"
onkeypress="return catch_textbox_input("${exercise.id}", '${exercise.id}',
event.keyCode)"
onchange="set_saved_status("${exercise.id}", '${exercise.id}',
"Save")"
cols="80" rows="${exercise.num_rows}">${exercisesave}</textarea>
<div class="exercisebuttons">
<input type="button" value="Saved" disabled="disabled" id="savebutton_${exercise.id}"
onclick="saveexercise("${exercise.id}", '${exercise.id}')"
title="Save your solution to this exercise" />
<input type="button" value="Reset" id="resetbutton_${exercise.id}"
onclick="resetexercise("${exercise.id}", '${exercise.id}')"
title="Reload the original partial solution for this exercise" />
<input type="button" value="Run"
onclick="runexercise("${exercise.id}", '${exercise.id}')"
title="Run this program in the console" />
<input type="button" value="Submit"
id="submitbutton_${exercise.id}"
onclick="submitexercise("${exercise.id}", '${exercise.id}')"
title="Submit this solution for evaluation" />
</div>
<div class="testoutput">
</div>
<div class="problem_summary">
<ul>
<li id="summaryli_${exercise.id}" class="${complete_class}">
<b><span id="summarycomplete_${exercise.id}">${complete}</span>.</b>
Attempts: <span id="summaryattempts_${exercise.id}">${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.id}", '${exercise.id}')">
View previous attempts
</a>
</p>
<div style="display: none">
<h3>Previous attempts</h3>
<p>
<a title="Close the previous attempts" onclick="close_previous("${exercise.id}")">
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.id}", '${exercise.id}')" />
</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="${exercise.num_rows}"
title="You submitted this code on a previous attempt">
</textarea>
</p>
</div>
</div>
</div>
</html>
|