Subversion Repositories wimsdev

Rev

Rev 15382 | Rev 15442 | Go to most recent revision | 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_
31
  <li class="wims_home_result_list">
32
  !href module=adm/tool/glossary&job=main&cmd=new&special_parm=$m_ $t_
15397 bpr 33
  !if $gl_level!= $empty
34
    !for lev in $gl_level
35
      !set lev0=!word 1 of $lev
36
      - $(name_wims_level_$lev0)
37
      !word 2 to -1 of $lev
38
    !next
39
    $i_
15382 bpr 40
  !else
41
    !!.
42
  !endif
43
  </li>
44
!next i
45
</ul>