File: simple_index.thtml

package info (click to toggle)
libaws 2.2dfsg-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 7,624 kB
  • ctags: 1,173
  • sloc: ada: 61,829; ansic: 6,483; makefile: 1,282; xml: 196; sh: 119; java: 112; python: 66; sed: 40
file content (21 lines) | stat: -rw-r--r-- 849 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@@-- Builds a simple index for Split pages.
@@-- Simply displays all entries
@@-- Parameters: $1: Treatment of entries without Hrefs (optional)
@@--             $1=ALL   All entries without Href are displayed
@@--             $1=ALPHA Only alpha entries without Href are displayed
@@--             $1=NONE (or unspecified) No entry without Href is displayed
@@--
@@-- Can be used with splitters:
@@--   primary index  : Alpha, Alpha.Bounded, Uniform.Alpha, Uniform,
@@--                    Uniform.Overlapping
@@--   secondary index: Alpha.Bounded, Uniform.Alpha

@@TABLE@@
  @@IF@@ @_IS_EMPTY:TRIM:HREFS_V_@
    @@IF@@ @_UPPER:$1_@ = ALL or (@_UPPER:$1_@ = ALPHA and @_UPPER:INDEXES_V_@ >= A and @_UPPER:INDEXES_V_@ <= Z)
      @_INDEXES_V_@
    @@END_IF@@
  @@ELSE@@
    <a href="@_HREFS_V_@">@_WEB_NBSP:INDEXES_V_@</a>
  @@END_IF@@
@@END_TABLE@@