Subversion Repositories wimsdev

Rev

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

  1. !reset tmp_class mp_sscnt tmp_color tmp_draw xx
  2. !set tmp_sr=$(wims_read_parm[2])
  3. !default tmp_sr=0
  4. !read adm/class/colors
  5.  
  6. !set tmp_ss=!declosing $(wims_read_parm[1])
  7. !set tmp_sscnt=!itemcnt $(tmp_ss[;1])
  8. !if $tmp_sscnt>0
  9.   !distribute items 0 into tmp_seedold
  10.   <div class="wims_score_bar">
  11.     !for tmp_j=1 to $tmp_sscnt
  12.       !set tmp_seed=$(tmp_ss[$tmp_j;1])
  13.       !if $tmp_seed!=$tmp_seedold
  14.         !set tmp_draw=$tmp_draw<div class="inline wims_score_column">
  15.         !set Seed=!select $tmp_ss where column 1=$tmp_seed
  16.         !set tmp_Sc=$(Seed[;2])
  17.         !set tmp_Sccnt=!itemcnt $tmp_Sc
  18.         !for t=1 to $tmp_Sccnt
  19.           !reset tmp_color
  20.           !set tmp_color=$(class_scorecolor[round($(tmp_Sc[$tmp_Sccnt-$t+1])+1)])
  21.           !set tmp_draw=!append line <div class="wims_seed_item" style="background-color:$tmp_color" title="$(tmp_Sc[$tmp_Sccnt-$t+1])"></div>\
  22.     to $tmp_draw
  23.         !next
  24.         !set tmp_draw=$tmp_draw</div>
  25.         !set tmp_seedold=$tmp_seed
  26.       !endif
  27.     !next
  28.     $tmp_draw
  29.   </div>
  30. !!$canvasdraw_idclass
  31. !endif
  32.