Subversion Repositories wimsdev

Rev

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

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