Subversion Repositories wimsdev

Rev

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

  1. !!!### language independant
  2. !if $votecnt<1
  3.  !if $wims_user!=supervisor
  4.   $name_novote $name_novotecheck
  5.   !exit
  6.  !else
  7.   $name_novote
  8.  !endif
  9. !else
  10.  !if $wims_user!=supervisor
  11.   !if $active<1
  12.    $name_noactivevote $name_novotecheck
  13.    !exit
  14.   !endif
  15.  !endif
  16.  $name_class_vote
  17.  $table_header
  18.  $table_tr<th>$wims_name_title</th><th>$name_cnt_votes</th>
  19.  <th>$wims_name_Status</th><th>$wims_name_action</th>
  20.  !for t=1 to $votecnt
  21.    !set l_=!record $t of $votedir/.votes
  22.    !distribute lines $l_ into vote_status,vote_title,vote_option,vote_show,vote_whovoteshow
  23.    !default vote_title=$name_untitled
  24.    !set vcnt=!defof vcnt in $votedir/$t.votes
  25.    !default vcnt=0
  26.    !if $wims_user!=supervisor
  27.     !if $vote_status iswordof 1 2
  28.      $table_tr<td>
  29.      !href cmd=reply&job=read&vote=$t $vote_title
  30.      </td><td>
  31.      !if $vote_show>0
  32.       <td align="center">$vcnt</td>
  33.       <td>$(name_$vote_status), $(name_$vote_option)
  34.      !else
  35.        <td>&nbsp;</td>
  36.        <td>$(name_$vote_status), $(name_$vote_option)</td>
  37.      !endif
  38.      </td></tr>
  39.     !endif
  40.    !else
  41.     $table_tr<td>
  42.     $vote_title
  43.     </td>
  44.     <td align="center">$vcnt</td>
  45.      <td><small>$(name_$vote_status), $(name_$vote_option)</small>
  46.     </td><td>
  47.     !href cmd=reply&job=read&vote=$t $wims_name_Show
  48. &nbsp;
  49.     !href cmd=reply&job=edit&vote=$t $wims_name_change
  50. &nbsp;
  51.     !href cmd=reply&job=csv&vote=$t $wims_name_csv
  52.     </td>
  53.    !endif
  54.  !next t
  55. $table_end
  56. <p>
  57. !endif
  58.  
  59. !if $wims_user=supervisor
  60.  !set wims_menu_items=!append line add_vote,1,cmd=reply&job=creat\
  61. to $wims_menu_items
  62. !endif
  63.