Repository navigation
Expand file tree
/
Copy patheditquestion_backup.html
More file actions
129 lines (111 loc) · 4.05 KB
/
Copy patheditquestion_backup.html
File metadata and controls
129 lines (111 loc) · 4.05 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<html>
<head>
<link type="text/css" rel="stylesheet" href="/stylesheets/stylesheet.css" />
<script language="JavaScript" type="text/javascript" src="/javascript/richtext_compressed.js"></script>
<script>
function addQuestion(drop_down)
{
var selected_subject = drop_down.selectedIndex;
var subject_key = drop_down[selected_subject].value;
window.location = "/pickquestiontopic?subject_key="+subject_key
}
function practiceQuestion(drop_down)
{
var selected_subject = drop_down.selectedIndex;
var subject_key = drop_down[selected_subject].value;
window.location = "/pickquiztopic?subject_key="+subject_key
}
</script>
</head>
<body>
<table width=100%>
<tr>
<td valign=top align=left rowspan=2><A href="/"><img src="/images/logo.gif" width=150 height=100></A></td>
<td valign=top align=right><h4>{{greeting}}</H4>
</td>
</tr>
<tr>
<td valign=center align=right>
<b>
<A href="/">Manage Questions</a> |
<SELECT id="add_question" onchange="practiceQuestion(this)">
<OPTION VALUE="0" SELECTED>Practice questions in...</OPTION>
{% for subject in subjects %}
<OPTION VALUE="{{ subject.key }}">{{subject.name}}</OPTION>
{% endfor %}
</SELECT>
|
<SELECT id="add_question" onchange="addQuestion(this)">
<OPTION VALUE="0" SELECTED>Add a question in...</OPTION>
{% for subject in subjects %}
<OPTION VALUE="{{ subject.key }}">{{subject.name}}</OPTION>
{% endfor %}
</SELECT>
</b>
</td>
</tr>
</table>
<P>
<table width=100% border=0 cellpadding=0 cellspacing=0>
<tr>
<td bgcolor=#003399><img width=1 height=1 alt=""></td>
</tr>
</table><table width=100% border=0 cellpadding=2 cellspacing=0>
<tr>
<td bgcolor=#e5ecf9 align=left><B>{{mode_text}}</B></td>
</tr>
</table>
<body>
<h2>{{ message_text }}</h2>
<P>
<center>
<form name="mainform" action="/editquestion" method="get">
<input type="hidden" name="question_key" value ="{{question.key}}">
<table>
<tr>
<td align=right valign=top><h3>Subject:</h3></td>
<td align=left valign=top><h3>
{% for b in breadcrumb %}
{{ b.name }}:
{% endfor %}
{{ question.subject.name }}
</h3></td>
</tr>
<tr>
<td align=right valign=top><h3>Question:</td><td align=left>
<textarea name="question_text" cols="40" rows="4" wrap="on">{{question.question_text}}</textarea>
<script language="JavaScript" type="text/javascript">
<!--
//Usage: writeRichText(fieldname, html, width, height, buttons, readOnly)
writeRichText('question_text', '{{question.question_text}}', 400, 200, true, false);
//-->
</script>
</td>
</tr>
<tr>
<td align=right valign=top><h3>Correct Answer:</h3></td><td align=left><input type="text" name="correct_choice_text" size="53" value="{{question.correct_choice_text}}"></td>
</tr>
<tr>
<td align=right valign=top><h3>Incorrect Choice 1:</h3></td><td align=left><input type="text" name="incorrect_1" size="53" value="{{question.incorrect_1}}"></td>
</tr>
<tr>
<td align=right valign=top><h3>Incorrect Choice 2:</h3></td><td align=left><input type="text" name="incorrect_2" size="53" value="{{question.incorrect_2}}"></td>
</tr>
<tr>
<td align=right valign=top><h3>Incorrect Choice 3:</h3></td><td align=left><input type="text" name="incorrect_3" size="53" value="{{question.incorrect_3}}"></td>
</tr>
<tr>
<td align=right valign=top><h3>Incorrect Choice 4:</h3></td><td align=left><input type="text" name="incorrect_4" size="53" value="{{question.incorrect_4}}"></td>
</tr>
<tr>
<td align=right valign=top><h3>Incorrect Choice 5:</h3></td><td align=left><input type="text" name="incorrect_5" size="53" value="{{question.incorrect_5}}"></td>
</tr>
<tr>
<td align=right valign=top><h3>Explanation of answer:</h3></td><td align=left><textarea name="answer_text" cols="40" rows="6" wrap="on">{{question.answer_text}}</textarea></td>
</tr>
</table>
<center><input type="submit" value="{{button_text}}"></center>
</form>
</center>
</body>
</html>