Subversion Repositories wimsdev

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1.  
  2.  
  3. !set table_id=TABLE_livinglist
  4. !set table_class=sortable
  5. $table_header
  6.   <thead>
  7.     <tr data-sort-method="thead">
  8.       <th scope="col">$name_living</th>
  9.       <th scope="col">$name_regusers</th>
  10.       <th scope="col">$wims_name_Status</th>
  11.       <th scope="col">$wims_name_action</th>
  12.     </tr>
  13.   </thead>
  14.   <tbody>
  15.     !for k=0 to $nbliving
  16.       $table_tr
  17.         <td>$(livingname_$k)</td>
  18.         <td>
  19.           !if $(livingusers_$k)=all
  20.             $name_all
  21.           !else
  22.             !let tmp=$empty
  23.             !for u in $(livingusers_$k)
  24.               !let po=!positionof item $u in $ulist
  25.               !if $u!=supervisor and $po!=$empty
  26.                 !let tmp=!append item $(nlist[$po]) to $tmp
  27.               !endif
  28.             !next u
  29.             $tmp
  30.           !endif
  31.         </td>
  32.         !if $(livingst_$k)=1
  33.           <td class="wims_status_1">$name_open</td>
  34.         !else
  35.           <td class="wims_status_2">$name_close</td>
  36.         !endif
  37.         <td>
  38.           !let wims_ref_class=wims_button
  39.           !if $(livingst_$k)=1
  40.             !href module=$module&+job=addliving&+cmd=reply&+living=$k&job2=0&back=listliving $name_closing
  41.           !else
  42.             !href module=$module&+job=addliving&+cmd=reply&+living=$k&job2=1&back=listliving $name_opening
  43.           !endif
  44.           !let wims_ref_class=wims_button
  45.           !href module=$module&+job=addliving&+cmd=reply&+living=$k $wims_name_change
  46.         </td>
  47.       </tr>
  48.     !next k
  49.   </tbody>
  50. $table_end
  51. !read tablesort.phtml
  52.  
  53.