File: subEdTable%3Bsubmit%3Bdefault

package info (click to toggle)
slash 2.2.6-8etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 3,672 kB
  • ctags: 1,915
  • sloc: perl: 23,113; sql: 1,878; sh: 433; makefile: 233
file content (64 lines) | stat: -rwxr-xr-x 1,470 bytes parent folder | download | duplicates (3)
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__
en_US
__name__
subEdTable
__template__
[% PROCESS titlebar %]

<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" BGCOLOR="[% user.bg.2 %]">
<TR ALIGN="RIGHT"><TD></TD>

[% # print section headers %]
[% FOREACH section = sections %]
	<TD>&nbsp;<B><A HREF="[% env.script_name %]?section=[% section.1 %]&op=list">[% section.0 %]</A></B>&nbsp;</TD>
	[% IF section.0 == def_section %]
	<TD></TD>
	[% END %]
[% END %]


</TR>


[% # print individual rows and counts %]
[% FOREACH note = notes %]

<TR ALIGN="RIGHT">
	<TD>&nbsp;<B><A HREF="[% env.script_name %]?note=[% note.1 %]&op=list">[% note.0 %]</A></B>&nbsp;</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&note=[% note.1 %]">[% count %]</A>&nbsp;</TD>
		[% IF section.0 == def_section %]
	<TD></TD>
		[% END %]
	[% END %]
</TR>

[% END %]

</TABLE>

__seclev__
10000