Rev 18337 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 18337 | Rev 18340 | ||
|---|---|---|---|
| Line -... | Line 1... | ||
| - | 1 | !! see scripts/oef/special/glossary.phtml |
|
| 1 | !if $wims_read_parm!=$empty |
2 | !if $wims_read_parm!=$empty |
| 2 | !set parms=$wims_read_parm |
3 | !set parms=$wims_read_parm |
| 3 | !else |
4 | !else |
| 4 | !if $parms=$empty |
5 | !if $parms=$empty |
| 5 | !exit |
6 | !exit |
| Line 7... | Line 8... | ||
| 7 | !endif |
8 | !endif |
| 8 | !set option=!item 2 of $parms |
9 | !set option=!item 2 of $parms |
| 9 | !set optrecord=!getopt content in $option |
10 | !set optrecord=!getopt content in $option |
| 10 | !set optrecord=!declosing $optrecord |
11 | !set optrecord=!declosing $optrecord |
| 11 | !set parms=!item 1 of $parms |
12 | !set parms=!item 1 of $parms |
| 12 | !set |
13 | !set data_dir=data/glossary |
| 13 | !set data= |
14 | !set data=$data_dir/$parms |
| 14 | 15 | ||
| 15 | !if $optrecord=abstract |
16 | !if $optrecord=abstract |
| 16 | !set optrecord=1 |
17 | !set optrecord=1 |
| 17 | !else |
18 | !else |
| 18 | !if $optrecord=$empty |
19 | !if $optrecord=$empty |
| Line 33... | Line 34... | ||
| 33 | !for j in $optrecord |
34 | !for j in $optrecord |
| 34 | !if $[$j%2]=0 |
35 | !if $[$j%2]=0 |
| 35 | !record $j of $data |
36 | !record $j of $data |
| 36 | !else |
37 | !else |
| 37 | !set tmp=!record $j of $data |
38 | !set tmp=!record $j of $data |
| 38 | !read |
39 | !read $data_dir/$tmp |
| 39 | !endif |
40 | !endif |
| 40 | !next |
41 | !next |
| 41 | !else |
42 | !else |
| 42 | !read $data |
43 | !read $data |
| 43 | !endif |
44 | !endif |