Rev 15442 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
15382 | bpr | 1 | !set basedir0=scripts/data/glossary |
2 | |||
3 | !if $gotcntG > 0 |
||
4 | !set gotcnt=$gotcntG |
||
5 | !set gotm=$gotmG |
||
6 | !set gotd=$gotdG |
||
7 | !set gott=$gottG |
||
8 | !endif |
||
9 | |||
10 | !default gotcntG=0 |
||
11 | !if $[$gotcntG + $gotcnt]=0 |
||
12 | <p> |
||
13 | !href module=adm/tool/glossary $wims_name_Glossary |
||
14 | </p> |
||
15 | !endif |
||
15397 | bpr | 16 | !read adm/levelname.phtml |
15382 | bpr | 17 | <ul class="wims_home_result_list wims_glossary"> |
18 | !for i=1 to $gotcnt |
||
19 | !set m_=!line $i of $gotm |
||
20 | !set t_=!line $i of $gott |
||
21 | !set d_=!line $i of $gotd |
||
22 | !set i_=!line $i of $gotiG |
||
23 | !set n_=!line $i of $gotm_ |
||
24 | !if $i_=$n_ or $i_ issametext |
||
25 | !set i_=$d_ |
||
26 | !endif |
||
27 | !if $i_=$empty |
||
28 | !set i_=!lookup $n_ in wimshome/public_html/$basedir/information.$search_lang |
||
29 | !endif |
||
30 | !set gl_level=!defof gl_level in wimshome/public_html/$basedir0/$m_ |
||
15442 | bpr | 31 | !set gl_lang=!replace internal / by , in $m_ |
32 | !set gl_lang=$(gl_lang[3]) |
||
15382 | bpr | 33 | <li class="wims_home_result_list"> |
15442 | bpr | 34 | !if $gl_lang!=$search_lang |
17179 | bpr | 35 | <img src="gifs/$gl_lang.gif" alt="$gl_lang.gif"> |
15442 | bpr | 36 | !endif |
15382 | bpr | 37 | !href module=adm/tool/glossary&job=main&cmd=new&special_parm=$m_ $t_ |
15397 | bpr | 38 | !if $gl_level!= $empty |
39 | !for lev in $gl_level |
||
40 | !set lev0=!word 1 of $lev |
||
41 | - $(name_wims_level_$lev0) |
||
42 | !word 2 to -1 of $lev |
||
43 | !next |
||
44 | $i_ |
||
15382 | bpr | 45 | !else |
46 | !!. |
||
47 | !endif |
||
48 | </li> |
||
49 | !next i |
||
50 | </ul> |