Subversion Repositories wimsdev

Rev

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

  1.  
  2. !set t=!recordcnt wimshome/log/classes/$wims_class/vote/.votes
  3. !set avlist=
  4. !for i=1 to $t
  5.  !set v_$i=!record $i of wimshome/log/classes/$wims_class/vote/.votes
  6.  !set a_=!line 1 of $(v_$i)
  7.  !if $a_>=1 and $a_<=2
  8.   !set avlist=!append item $i to $avlist
  9.  !endif
  10. !next i
  11. !set v=!itemcnt $avlist
  12.  
  13. !if $v>0
  14.  <!-- _widgets/uservote.phtml -->
  15.  <table class="wims_user_vote_table">
  16.   !for i=1 to $v
  17.    !set sv=!item $i of $avlist
  18.    !distribute lines $(v_$sv) into ac,ti
  19.    <tr class="wims_user_vote">
  20.     <td class="wims_user_vote_type">$wims_name_Vote $i</td>
  21.     <td class="wims_user_vote_desc">
  22.      !href module=adm/vote&job=read&vote=$sv $ti
  23.     </td>
  24.     <td class="wims_user_vote_expire">
  25.      !if $ac>=2
  26.       $U_expired
  27.      !else
  28.       &nbsp;
  29.      !endif
  30.     </td>
  31.    </tr>
  32.   !next i
  33.  </table>
  34.  <!-- end _widgets/uservote.phtml -->
  35. !endif
  36.