-
Notifications
You must be signed in to change notification settings - Fork 8
/
subEdTable;submit;default
64 lines (52 loc) · 1.43 KB
/
subEdTable;submit;default
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
__section__
default
__description__
Display selection table for all the submissions
* cur_section = current section
* cur_note = current note
* def_section = default section
* def_note = default note
* sections = arrayref of active sections
* notes = arrayref of active notes
* sn = hashref of counts of submissions (sn.$section.$note)
* title = passed to titlebar
* width = passed to titlebar
__title__
__page__
submit
__lang__
eng
__name__
subEdTable
__template__
[% INCLUDE titlebar %]
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" BGCOLOR="[% user.bg.2 %]">
<TR ALIGN="RIGHT"><TD></TD>
[% # print section headers %]
[% FOREACH section = sections %]
<TD> <B><A HREF="[% env.script_name %]?section=[% section.1 %]&op=list">[% section.0 %]</A></B> </TD>
[% IF section.0 == def_section %]
<TD></TD>
[% END %]
[% END %]
</TR>
[% # print individual rows and counts %]
[% FOREACH note = notes %]
<TR ALIGN="RIGHT">
<TD> <B><A HREF="[% env.script_name %]?note=[% note.1 %]&op=list">[% note.0 %]</A></B> </TD>
[% FOREACH section = sections %]
[% s = section.0;
n = note.0;
count = sn.$s.$n || 0;
bgcolor = " BGCOLOR=\"$user.bg.1\"" IF n == cur_note && s == cur_section;
%]
<TD[% bgcolor %]><A HREF="[% env.script_name %]?section=[% section.1 %]&op=list¬e=[% note.1 %]">[% count %]</A> </TD>
[% IF section.0 == def_section %]
<TD></TD>
[% END %]
[% END %]
</TR>
[% END %]
</TABLE>
__seclev__
10000