Rev 14924 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
14777 | guerimand | 1 | !! liste des sujets |
2 | |||
3 | !if $nbuser<=0 |
||
4 | $name_noparticipant |
||
5 | !exit |
||
6 | !endif |
||
7 | |||
14924 | guerimand | 8 | !if $tchat_onlynonempty=yes |
9 | <div>$name_onlynonemptyliving</div> |
||
10 | !endif |
||
11 | |||
12 | !if $tchat_onlynonempty!=yes or $nonempty_ind=1 |
||
14777 | guerimand | 13 | !! ----- displaying table of participant |
14 | !set table_id=TABLE_userlist |
||
15 | !set table_class=sortable |
||
16 | $table_header |
||
17 | <thead> |
||
18 | $table_hdtr |
||
14861 | guerimand | 19 | <th scope="col">$wims_name_lastname - $wims_name_firstname</th> |
14777 | guerimand | 20 | <th scope="col">$name_tchatopen</th> |
15117 | guerimand | 21 | <th scope="col">$wims_name_newmsg</th> |
14777 | guerimand | 22 | </tr> |
23 | </thead> |
||
24 | <tbody> |
||
25 | !for i=1 to $nbuser |
||
14924 | guerimand | 26 | !readproc script/lastmsg.proc $(ulist[$i]) |
27 | !if $tchat_onlynonempty!=yes or $(tchatisopen_$(ulist[$i]))!=$empty or $lastmsg!=$empty |
||
14777 | guerimand | 28 | $table_tr |
14924 | guerimand | 29 | !reset css_connected tchatisopen |
14777 | guerimand | 30 | !if $(ulist[$i]) isitemof $wims_connectedlogin |
31 | !set css_connected=class="wims_connected" |
||
32 | !set wims_ref_title=connected |
||
33 | !endif |
||
34 | <td $css_connected> |
||
14861 | guerimand | 35 | !href cmd=reply&+user=$(ulist[$i])&job=edit $(nlist[$i]) |
14777 | guerimand | 36 | </td> |
37 | <td> |
||
14923 | guerimand | 38 | !if $(tchatisopen_$(ulist[$i]))!=$empty |
14777 | guerimand | 39 | ✔ |
40 | !endif |
||
41 | </td> |
||
42 | <td> |
||
43 | !if $lastmsg!=$empty |
||
44 | <span class="tchat-date2"> |
||
45 | !let dt1=!char 1 to 8 of $lastdate |
||
46 | !let dt2=!char 10 to 14 of $lastdate |
||
47 | !readproc adm/date.phtml $dt1 |
||
48 | $l_date_out $wims_name_at |
||
49 | !replace internal : by H in $dt2 |
||
50 | </span> |
||
51 | <div class="lastmsg"> |
||
14861 | guerimand | 52 | $lastmsg ... |
53 | !href module=$module&job=edit&job2=newmsg&user=$(ulist[$i]) $name_answer |
||
54 | </div> |
||
55 | !endif |
||
56 | </td> |
||
57 | </tr> |
||
14924 | guerimand | 58 | !endif |
14861 | guerimand | 59 | !next i |
60 | </tbody> |
||
61 | $table_end |
||
14924 | guerimand | 62 | !read tablesort.phtml |
63 | !endif |
||
14779 | bpr | 64 | |
14924 | guerimand | 65 | !if $livinglist!=$empty and ($nonempty_liv=1 or $tchat_onlynonempty!=yes) |
14861 | guerimand | 66 | !! ----- displaying table of living |
67 | !set table_id=TABLE_livinglist |
||
68 | !set table_class=sortable |
||
69 | $table_header |
||
70 | <thead> |
||
71 | $table_hdtr |
||
72 | <th scope="col">$name_living</th> |
||
73 | <th scope="col">$name_tchatopen</th> |
||
15117 | guerimand | 74 | <th scope="col">$wims_name_newmsg</th> |
14861 | guerimand | 75 | </tr> |
76 | </thead> |
||
77 | <tbody> |
||
78 | !for i in $livinglist |
||
14924 | guerimand | 79 | !readproc script/lastmsg.proc .living$i |
80 | !if $(living_connected_$i)!=$empty or $tchat_onlynonempty!=yes or $lastmsg!=$empty |
||
14861 | guerimand | 81 | $table_tr |
82 | <td> |
||
83 | !href cmd=reply&+user=.living$i&job=edit $(livingname_$i) |
||
84 | </td> |
||
85 | <td> |
||
86 | !let n=!itemcnt $(living_connected_$i) |
||
87 | $n / $(livingnb_$i) |
||
88 | </td> |
||
89 | <td> |
||
90 | !if $lastmsg!=$empty |
||
91 | <span class="tchat-date2"> |
||
92 | !let dt1=!char 1 to 8 of $lastdate |
||
93 | !let dt2=!char 10 to 14 of $lastdate |
||
94 | !readproc adm/date.phtml $dt1 |
||
95 | $l_date_out $wims_name_at |
||
96 | !replace internal : by H in $dt2 |
||
97 | </span> |
||
98 | <div class="lastmsg"> |
||
14777 | guerimand | 99 | $lastmsg ... |
14924 | guerimand | 100 | !href module=$module&job=edit&job2=newmsg&user=.living$i $name_answer |
14777 | guerimand | 101 | </div> |
102 | !endif |
||
103 | </td> |
||
104 | </tr> |
||
14924 | guerimand | 105 | !endif |
14777 | guerimand | 106 | !next i |
107 | </tbody> |
||
14861 | guerimand | 108 | $table_end |
14924 | guerimand | 109 | !read tablesort.phtml |
14861 | guerimand | 110 | !endif |