Subversion Repositories wimsdev

Rev

Rev 14924 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !! liste des sujets
  2.  
  3. !if $nbuser<=0
  4.   $name_noparticipant
  5.   !exit
  6. !endif
  7.  
  8. !if $tchat_onlynonempty=yes
  9.   <div>$name_onlynonemptyliving</div>
  10. !endif
  11.  
  12. !if $tchat_onlynonempty!=yes or $nonempty_ind=1
  13. !! ----- displaying table of participant
  14. !set table_id=TABLE_userlist
  15. !set table_class=sortable
  16. $table_header
  17.   <thead>
  18.     $table_hdtr
  19.       <th scope="col">$wims_name_lastname - $wims_name_firstname</th>
  20.       <th scope="col">$name_tchatopen</th>
  21.       <th scope="col">$wims_name_newmsg</th>
  22.     </tr>
  23.   </thead>
  24.   <tbody>
  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
  28.       $table_tr
  29.         !reset css_connected tchatisopen
  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>
  35.           !href cmd=reply&+user=$(ulist[$i])&job=edit $(nlist[$i])
  36.         </td>
  37.         <td>
  38.          !if $(tchatisopen_$(ulist[$i]))!=$empty
  39.            &#x2714;
  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">
  52.              $lastmsg ...
  53.              !href module=$module&job=edit&job2=newmsg&user=$(ulist[$i]) $name_answer
  54.            </div>
  55.          !endif
  56.         </td>
  57.       </tr>
  58.       !endif
  59.     !next i
  60.   </tbody>
  61. $table_end
  62. !read tablesort.phtml
  63. !endif
  64.  
  65. !if $livinglist!=$empty and ($nonempty_liv=1 or $tchat_onlynonempty!=yes)
  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>
  74.       <th scope="col">$wims_name_newmsg</th>
  75.     </tr>
  76.   </thead>
  77.   <tbody>
  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
  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">
  99.              $lastmsg ...
  100.              !href module=$module&job=edit&job2=newmsg&user=.living$i $name_answer
  101.            </div>
  102.          !endif
  103.         </td>
  104.       </tr>
  105.       !endif
  106.     !next i
  107.   </tbody>
  108.   $table_end
  109.   !read tablesort.phtml
  110. !endif
  111.