Rev 12429 | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 5603 | guerimand | 1 | !! this script make file .sheetindex |
| 2 | !! it should be execute when skillbullet is modify |
||
| 3 | |||
| 4 | !reset tmprecord |
||
| 5 | nbsheet=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheets |
||
| 6 | !for k=1 to $nbsheet |
||
| 12429 | bpr | 7 | sheet_$k=<ul> |
| 8 | !reset flagsh_$k |
||
| 5603 | guerimand | 9 | !next k |
| 10 | !for k=1 to $livret_nbcomp |
||
| 12429 | bpr | 11 | !for p=1 to $(nbpalier_$k) |
| 12 | tmp=!record $p of $livret_dir/.comp$k |
||
| 13 | !distribute line $tmp into ti,ex |
||
| 14 | ex=!items2lines $ex |
||
| 15 | ex=!replace internal . by , in $ex |
||
| 16 | ex=!column 1 of $ex |
||
| 17 | ex=!listuniq $ex |
||
| 18 | !for t in $ex |
||
| 19 | !if $(flagsh_$t)=1 |
||
| 20 | sheet_$t=!append line <li><b>$name_n_Palier : </b> $ti</li> to $(sheet_$t) |
||
| 21 | !else |
||
| 22 | sheet_$t=!append line <li><b>$name_Competence : </b>$(title_$k)<ul><li><b>$name_n_Palier : </b>$ti</li> to $(sheet_$t) |
||
| 23 | flagsh_$t=1 |
||
| 24 | !endif |
||
| 25 | !next t |
||
| 26 | !next p |
||
| 27 | !for t=1 to $nbsheet |
||
| 28 | !if $(flagsh_$t)=1 |
||
| 29 | !reset flagsh_$t |
||
| 30 | sheet_$t=!append line </ul> to $(sheet_$t) |
||
| 31 | !endif |
||
| 5603 | guerimand | 32 | !next t |
| 33 | !next k |
||
| 34 | |||
| 35 | !for k=1 to $nbsheet |
||
| 12429 | bpr | 36 | tst=!linecnt $(sheet_$k) |
| 37 | !if $tst>1 |
||
| 38 | sheet_$k=!append line </ul> to $(sheet_$k) |
||
| 39 | !else |
||
| 40 | !reset sheet_$k |
||
| 41 | !endif |
||
| 42 | tmprecord=!append line :$(sheet_$k) to $tmprecord |
||
| 5603 | guerimand | 43 | !next k |
| 12429 | bpr | 44 | !writefile $livret_dir/sheetindex.rc $tmprecord |