Subversion Repositories wimsdev

Rev

Rev 14923 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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