Subversion Repositories wimsdev

Rev

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. !set tmp_sev=!declosing $(wims_read_parm[1])
  6. !set tmp_sevcnt=!itemcnt $(tmp_sev[;1])
  7. !if $tmp_sevcnt>0
  8.   !set tmp_seedold=0
  9.   <div class="wims_score_bar">
  10.     !for tmp_j=1 to $tmp_sevcnt
  11.       !set tmp_seed=$(tmp_sev[$tmp_j;1])
  12.       !if $tmp_seed!=$tmp_seedold
  13.         !set tmp_draw=$tmp_draw<div class="inline wims_score_column">
  14.         !set Seed=!select $tmp_sev where column 1=$tmp_seed
  15.         !set Seed=!select $Seed where column 2 > -2
  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.           !if $(tmp_Sc[$tmp_Sccnt-$t+1])<0
  21.             !!unfinished
  22.             !set tmp_color=$(class_scorecolor[12])
  23.           !else
  24.             !set tmp_color=$(class_scorecolor[round($(tmp_Sc[$tmp_Sccnt-$t+1])+1)])
  25.           !endif
  26.           !set tmp_draw=!append line <div class="wims_seed_item" style="background-color:$tmp_color" title="$(tmp_Sc[$tmp_Sccnt-$t+1])"></div>\
  27.     to $tmp_draw
  28.         !next
  29.         !set tmp_draw=$tmp_draw</div>
  30.         !set tmp_seedold=$tmp_seed
  31.       !endif
  32.     !next
  33.     $tmp_draw
  34.   </div>
  35. !!$canvasdraw_idclass
  36. !endif
  37.