Rev 12490 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
23 | reyssat | 1 | |
2 | !if $wims_class!=$empty and $wims_user!=supervisor |
||
3 | Docdir=log/classes/$wims_class |
||
4 | docdir=wimshome/$Docdir |
||
5 | doctype=class |
||
6 | !endif |
||
7 | |||
8 | authoring=!items2words $authoring |
||
9 | authoring=!trim $authoring |
||
10 | !if $authoring!=$empty |
||
12490 | bpr | 11 | wims_module_log=author $authoring |
12 | u_=!lower $authoring |
||
13 | u_=!singlespace $u_ |
||
14 | u_=!deaccent $u_ |
||
15 | u_=!lower $u_ |
||
16 | !distribute words $u_ into u1,u2,u3 |
||
23 | reyssat | 17 | !else |
12490 | bpr | 18 | !reset u1,u2,u3 |
23 | reyssat | 19 | !endif |
20 | |||
21 | !if $wims_class!=$empty |
||
12490 | bpr | 22 | doccnt=!recordcnt wimshome/log/classes/$wims_class/doc/.index |
23 | !for i=1 to $doccnt |
||
24 | l=!record $i of wimshome/log/classes/$wims_class/doc/.index |
||
25 | !distribute lines $l into s_,t_,a_,e_,g_,o_,l_,A_ |
||
26 | !if $wims_user=supervisor or $o_>0 |
||
27 | slist=!append line $s_ to $slist |
||
28 | tlist=!append line $t_ to $tlist |
||
29 | alist=!append line $a_ to $alist |
||
30 | elist=!append line $ $e_ to $elist |
||
31 | !endif |
||
32 | !next i |
||
23 | reyssat | 33 | !endif |
1395 | bpr | 34 | !if $wims_class=$empty |
12490 | bpr | 35 | doccnt=!recordcnt wimshome/public_html/bases/doc/.index |
36 | ii=0 |
||
37 | !for i=1 to $doccnt |
||
38 | l=!record $i of wimshome/public_html/bases/doc/.index |
||
39 | !distribute lines $l into s_,t_,a_,e_,g_,o_,l_,A_ |
||
40 | !if $wims_ismanager=2 or ($u1!=$empty and ($u1 iswordof $A_ or\ |
||
14335 | bpr | 41 | ($u2!=$empty and $u2 iswordof $A_) or\ |
42 | ($u3!=$empty and $u3 iswordof $A_))) |
||
12490 | bpr | 43 | i_=1 |
44 | !advance ii |
||
45 | !else |
||
46 | i_=0 |
||
47 | !endif |
||
48 | !if $i_=1 or ($s_>=1000 and $s_ iswordof $openlist $edlist and $o_=yes and \ |
||
14335 | bpr | 49 | ($l_=$empty or all iswordof $l_ or $module_language iswordof $l_)) |
12490 | bpr | 50 | slist=!append line $s_ to $slist |
51 | tlist=!append line $t_ to $tlist |
||
52 | alist=!append line $a_ to $alist |
||
53 | elist=!append line $ $e_ to $elist |
||
54 | !!if $s_ iswordof $openlist $edlist or $wims_ismanager=2 |
||
55 | ilist=!append line $i to $ilist |
||
56 | !!else |
||
57 | !! ilist=!append line -1 to $ilist |
||
58 | !!endif |
||
59 | !endif |
||
60 | !next i |
||
1395 | bpr | 61 | !endif |
23 | reyssat | 62 | doccnt=!linecnt $slist |
63 | tlist=!sort nocase lines $tlist |
||
64 | slist=!line $wims_sort_order of $slist |
||
65 | alist=!line $wims_sort_order of $alist |
||
66 | elist=!line $wims_sort_order of $elist |
||
67 | ilist=!line $wims_sort_order of $ilist |