Subversion Repositories wimsdev

Rev

Rev 12463 | 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.             !set tmp_title=$(wims_name_thsheet[15])
  24.           !else
  25.             !set tmp_color=$(class_scorecolor[round($(tmp_Sc[$tmp_Sccnt-$t+1])+1)])
  26.             !set tmp_title=$(tmp_Sc[$tmp_Sccnt-$t+1])
  27.           !endif
  28.           !set tmp_draw=!append line <div class="wims_seed_item" style="background-color:$tmp_color" title="$tmp_title"></div>\
  29.     to $tmp_draw
  30.         !next
  31.         !set tmp_draw=$tmp_draw</div>
  32.         !set tmp_seedold=$tmp_seed
  33.       !endif
  34.     !next
  35.     $tmp_draw
  36.   </div>
  37. !!$canvasdraw_idclass
  38. !endif
  39.