File:
[LON-CAPA] /
loncom /
interface /
spreadsheet /
default_assesscalc
Revision
1.8:
download - view:
text,
annotated -
select for diffs
Fri Feb 28 19:20:11 2014 UTC (10 years, 5 months ago) by
bisitz
Branches:
MAIN
CVS tags:
version_2_12_X,
version_2_11_X,
version_2_11_5_msu,
version_2_11_5,
version_2_11_4_uiuc,
version_2_11_4_msu,
version_2_11_4,
version_2_11_3_uiuc,
version_2_11_3_msu,
version_2_11_3,
version_2_11_2_uiuc,
version_2_11_2_msu,
version_2_11_2_educog,
version_2_11_2,
version_2_11_1,
version_2_11_0_RC3,
version_2_11_0,
HEAD
Fix wording typos
1: <field col=A row=0>
2: if ("[stores_0_solved]" eq 'excused') {
3: 'excused';
4: } elsif (M0) {
5: if(K0) {
6: if (K0 == M0) {
7: "correct";
8: } elsif (K0 < M0) {
9: K0.'/'.M0.' correct';
10: } else {
11: 'correct';
12: }
13: } else {
14: "incorrect";
15: }
16: } else {
17: '';
18: }
19: </field>
20:
21: <field col=B row=0>'Tries:'</field>
22: <field col=C row=0>
23: if (M0) {
24: [&EXPANDSUM(PART;stores_PART_tries)]/M0;
25: } else {
26: '';
27: }
28: </field>
29:
30: <field col=D row=0>'Timestamp:'</field>
31: <field col=E row=0>[timestamp]</field>
32: <field col=F row=0>
33: if ([timestamp]>100000000) {
34: $tmp = localtime([timestamp]);
35: $tmp =~ s/\s/ /g;
36: $tmp;
37: } else {
38: '';
39: }
40: </field>
41:
42: <field col=G row=0>'Due Date:'</field>
43: <field col=H row=0>[parameter_0_duedate]</field>
44: <field col=I row=0>
45: if ([parameter_0_duedate]>100000000) {
46: $tmp = localtime([parameter_0_duedate]);
47: $tmp =~ s/\s/ /g;
48: $tmp;
49: } else {
50: '';
51: }
52: </field>
53:
54: <field col=J row=0>'Attempted Parts:'</field>
55: <field col=K row=0>
56: [&EXPANDSUM(PART;(stores_PART_solved !~ /^(\W?excused\W?|)$/ ?1:0))]
57: </field>
58:
59: <field col=L row=0>'Solved Parts:'</field>
60: <field col=M row=0>[&EXPANDSUM(PART;(stores_PART_awarded?1:0))]</field>
61:
62: <field col=W row=0>'Available Points:'</field>
63: <field col=X row=0>
64: if ("[stores_0_solved]" eq 'excused') {
65: 0
66: } else {
67: [&EXPANDSUM(PART;parameter_PART_weight*(stores_PART_solved !~ /^\W?excused\W?$/ ? 1 : 0))];
68: }
69: </field>
70:
71: <field col=Y row=0>'Awarded Points:'</field>
72: <field col=Z row=0>
73: if ("[stores_0_solved]" eq 'excused') {
74: 0
75: } else {
76: [&EXPANDSUM(PART;parameter_PART_weight*stores_PART_awarded)]
77: }
78: </field>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>