Rev 17688 | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 17070 | guerimand | 1 | !! display box for an exo |
| 2 | |||
| 17097 | guerimand | 3 | !distribute item $wims_read_parm into sh_,exnum_,target_,status_ |
| 17981 | bpr | 4 | !set ex=!record $exnum_ of wimshome/log/classes/$wims_class/sheets/.sheet$sh_ |
| 5 | !distribute lines $ex into di,pa,maxscore,bidon,ti,de,bidon,bidon,bidon,icon,indiv |
||
| 6 | !if $uservartechvalue=$empty or $uservartechvalue isitemof $indiv |
||
| 7 | !set wims_listexo=!append item $sh_.$exnum_ to $wims_listexo |
||
| 8 | !set wims_exoicon=$wims_exoicon$icon, |
||
| 9 | !set wims_exotitle=!append line $ti to $wims_exotitle |
||
| 10 | !if $exodescshow=1 |
||
| 11 | !let de=!replace internal , by , in $de |
||
| 12 | !let wims_exodesc=$wims_exodesc$de, |
||
| 13 | !endif |
||
| 17097 | guerimand | 14 | !! !read getparm $pa, seedrepeat exotrymax |
| 15 | <li class="wims_exo_item" id="ex$(sh_)_$exnum_"> |
||
| 16 | !! !if $dep=$empty or $scorestat!=yes |
||
| 17981 | bpr | 17 | !if $icon!=$empty |
| 18 | !set wims_ref_class=text_icon icon_$icon |
||
| 19 | !endif |
||
| 20 | !if $status_=1 |
||
| 21 | !href module=$di&cmd=new&worksheet=$sh_&$pa $name_exotitle |
||
| 22 | !else |
||
| 23 | $name_exotitle |
||
| 24 | !endif |
||
| 25 | !set last=!char -1 of $de |
||
| 26 | !if $last notin >.!? |
||
| 27 | !set de=$(de). |
||
| 28 | !endif |
||
| 29 | <div class="wims_work_desc">$ti<br>$de</div> |
||
| 30 | <div class="wims_user_info"> |
||
| 31 | <span class="wims_sheet_score small"> |
||
| 32 | !default maxscore=10 |
||
| 33 | !readproc proc/exoscore.proc $sh_,$exnum_,$user |
||
| 34 | $(name_score[1]): $score_out/$maxscore |
||
| 35 | $(name_score[2]): $[$target_/100]/$maxscore |
||
| 36 | !if $score_out>=$target_/100 |
||
| 37 | ✅ |
||
| 38 | !else |
||
| 39 | !if $status_=0 |
||
| 40 | ❌ |
||
| 41 | !endif |
||
| 42 | !endif |
||
| 17097 | guerimand | 43 | !! !if $get_exotrymax>0 |
| 44 | !! $(wims_name_thsheet[14]): |
||
| 45 | !! $[min($get_exotrymax,$alltry)]/$get_exotrymax |
||
| 46 | !! !endif |
||
| 17981 | bpr | 47 | </span> |
| 48 | </div> |
||
| 17097 | guerimand | 49 | !! !else |
| 50 | !! $ti, $de |
||
| 51 | !! !if $require>0 |
||
| 52 | !! <span class="small">($name_score2)</span> |
||
| 53 | !! !endif |
||
| 54 | !! !endif |
||
| 17981 | bpr | 55 | !set seedscore=!getseedscores user=$wims_user sheet=$sh_ work=$exnum_ |
| 56 | !read adm/class/seedscore.phtml $seedscore,$get_seedrepeat |
||
| 57 | </li> |
||
| 58 | !endif |