Rev 14706 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
20 | reyssat | 1 | !set p_=!trim $wims_read_parm |
15429 | bpr | 2 | !set l_=$(p_[2;]) |
3 | !if $l_!=$empty |
||
4 | !set l_=&search_level=$l_ |
||
5 | !endif |
||
6 | !set p_=$(p_[1;]) |
||
20 | reyssat | 7 | !if $p_=$empty or ($wims_user!=$empty and $wims_user!=supervisor) |
14520 | bpr | 8 | !exit |
20 | reyssat | 9 | !endif |
2967 | bpr | 10 | !read lang/names.phtml.$lang |
11 | !if $lang_script_exists!=yes |
||
14520 | bpr | 12 | !read lang/names.phtml.en |
20 | reyssat | 13 | !endif |
14 | |||
15 | !set cat_=!listintersect $module_category and exercise,tool,recreation |
||
16 | !for c in $cat_ |
||
15429 | bpr | 17 | <div>$name_prompt_related |
18 | <ul class="inline wims_nopuce"> |
||
14520 | bpr | 19 | !for t in $p_ |
15429 | bpr | 20 | !reset sup |
14674 | bpr | 21 | !set t=!declosing $t |
22 | !set t_=!lookup $(t[1]) in bases/sys/domain/domain.$lang |
||
23 | !default t_=$t |
||
15429 | bpr | 24 | !if $(t[2..-1])!=$empty |
25 | !set sup=&$(t[2..-1]) |
||
26 | !endif |
||
14706 | obado | 27 | !set wims_ref_class=wims_label |
15429 | bpr | 28 | <li> |
29 | !href module=home&search_category=$c&search_keywords=$t_$sup$l_ $t_ |
||
30 | </li> |
||
14520 | bpr | 31 | !next t |
15429 | bpr | 32 | </ul> |
33 | </div> |
||
20 | reyssat | 34 | !next c |