%%Le source de cet exercice a été créé à l'aide de Quicktool.
%%Le type de l'exercice est ORDONNE.
%% Vous pouvez le modifier si vous désirez l'adapter.

###################
\title{Eminem Ordonné}
\author{Csilla Ducrocq}
\email{csilla.ducrocq@9online.fr}
\language{fr}
\computeanswer{no}
\format{html}
\text{file=Eminem_ordonne}

\text{instruction=asis(Listen to the recording about the famous rap singer Eminem and put the sentences in the order you hear them.)}
\text{instruction2=asis()}
\text{choice=}
\text{common=}
\text{audio_file=Eminem.mp3}
\text{reading_file=no}
\text{image_file=no}
\text{video_file=}
\text{alea=yes}
\text{size=600x30}
\text{partialscore=split}
\text{percent=1}
\text{aucune=aucune de ces possibilités}
\text{format=compose}

\text{style_question=background-color: #FFFFCC;	margin: 0% 0%;	padding: 0%;}
\text{style_reponse=background-color: #FFCC99;	color: black;	margin: 0% 0%;	padding: 0%;}
\text{style_oef=}
\text{style_css=ol li {list-style: upper-alpha; }}

\text{pos_rep=inside}
\text{second_step=yes}
\text{first_step=1}
\text{answer_given=}
\text{try=}
#####################

\text{file0=randitem(\file)}
\integer{cnt_question= wims(recordcnt \file0)}

##################################
\text{MAX=1}
\text{N=1}
\text{M=3}
##################################
\integer{first_step=\first_step notwordof 0 ? 1}

\text{instruction=\instruction issametext ? wims(getdef instruction in \file0)}
\text{instruction2=\instruction2 issametext ? wims(getdef instruction2 in \file0)}
\text{size=\size issametext ? wims(getdef size in \file0)}
\text{reading_file=\reading_file issametext ? wims(getdef reading_file in \file0)}
\text{reading = wims(record 0 of \reading_file)}

\text{audio_file = \audio_file issametext ? wims(getdef audio_file in \file0)}
\text{audio=\audio_file notsametext  and  \audio_file notsametext no? 
<p align="center">slib(media/audio \imagedir/\audio_file)</p>}

\text{image_file=\image_file issametext ? wims(getdef image_file in \file0)}
\text{image=\image_file notsametext  and  \image_file notsametext no? 
wims(makelist <img src=\imagedir/x> for x in \image_file)}

\text{video_file=\video_file issametext ? wims(getdef video_file in \file0)}
\text{video=\video_file notsametext  and  \video_file notsametext no? 
<a wims_target=external href="\imagedir/\video_file">[video] </a></p>}

\text{choix=\choice issametext ? wims(getdef choice in \file0):\choice}

\text{style = <style type="text/css">
 .question {\style_question}
 .reponse {\style_reponse}
 .oefstatement{\style_oef}
 \style_css
 </style>
 }

\text{try =\try notwordof 1 2 3 4 5 6 7 8 9 10 ? 1}

\text{size=\format iswordof dragfill clickfill ? \size x 1}

\integer{N = min(\cnt_question,\N)}
\integer{MAX=min(\N*\MAX,\cnt_question)}
\text{battage=\alea issametext yes ? shuffle(\cnt_question) :
wims(makelist x for x = 1 to \cnt_question)}
     \text{PHRASE=}
\text{phrase=wims(randrecord randitem(\file))}
\text{phrase=wims(embraced randitem \phrase)}
\integer{cnt=rows(\phrase)}
\for{ i = 1 to \cnt}{
 \text{phrase1=wims(replace internal , by &amp;#44; in  \phrase[\i;])}
 \text{phrase1=wims(replace internal / by  in  \phrase1)}
 \text{phrase1=wims(nonempty items \phrase1)}
 \text{PHRASE=\PHRASE,\phrase1}
}
\text{PHRASE=wims(nonempty items \PHRASE)}
des lignes vides ont pu disparaître
\integer{cnt=items(\PHRASE)}

\text{STEPS = wims(makelist r x for x = 1 to \cnt)}
\steps{\STEPS}


\statement{\style \instruction  
  \if{\reading notsametext }{\special{help reading,[à lire]}}
  \if{\image notsametext }{\special{help image,[à regarder]}}
  \audio\video
  <p>
  \for{ h = 1 to \cnt}{  
 <div class="question"><b>\h  : </b>\embed{reply \h,\size} </div>
  }
}

\answer{}{\PHRASE[1];}{type=dragfill}
\answer{}{\PHRASE[2];}{type=dragfill}
\answer{}{\PHRASE[3];}{type=dragfill}
\answer{}{\PHRASE[4];}{type=dragfill}
\answer{}{\PHRASE[5];}{type=dragfill}
\answer{}{\PHRASE[6];}{type=dragfill}
\answer{}{\PHRASE[7];}{type=dragfill}
\answer{}{\PHRASE[8];}{type=dragfill}
\answer{}{\PHRASE[9];}{type=dragfill}
\answer{}{\PHRASE[10];}{type=dragfill}
\answer{}{\PHRASE[11];}{type=dragfill}
\answer{}{\PHRASE[12];}{type=dragfill}
\answer{}{\PHRASE[13];}{type=dragfill}
\answer{}{\PHRASE[14];}{type=dragfill}
\answer{}{\PHRASE[15];}{type=dragfill}
\answer{}{\PHRASE[16];}{type=dragfill}
\answer{}{\PHRASE[17];}{type=dragfill}
\answer{}{\PHRASE[18];}{type=dragfill}
\answer{}{\PHRASE[19];}{type=dragfill}
\answer{}{\PHRASE[20];}{type=dragfill}
\answer{}{\PHRASE[21];}{type=dragfill}
\answer{}{\PHRASE[22];}{type=dragfill}
\answer{}{\PHRASE[23];}{type=dragfill}
\answer{}{\PHRASE[24];}{type=dragfill}
\answer{}{\PHRASE[25];}{type=dragfill}
\answer{}{\PHRASE[26];}{type=dragfill}
\answer{}{\PHRASE[27];}{type=dragfill}
\answer{}{\PHRASE[28];}{type=dragfill}
\answer{}{\PHRASE[29];}{type=dragfill}
\answer{}{\PHRASE[30];}{type=dragfill}
\answer{}{\PHRASE[31];}{type=dragfill}
\answer{}{\PHRASE[32];}{type=dragfill}
\answer{}{\PHRASE[33];}{type=dragfill}
\answer{}{\PHRASE[34];}{type=dragfill}
\answer{}{\PHRASE[35];}{type=dragfill}
\answer{}{\PHRASE[36];}{type=dragfill}
\answer{}{\PHRASE[37];}{type=dragfill}
\answer{}{\PHRASE[38];}{type=dragfill}
\answer{}{\PHRASE[39];}{type=dragfill}
\answer{}{\PHRASE[40];}{type=dragfill}
\answer{}{\PHRASE[41];}{type=dragfill}
\answer{}{\PHRASE[42];}{type=dragfill}
\answer{}{\PHRASE[43];}{type=dragfill}
\answer{}{\PHRASE[44];}{type=dragfill}
\answer{}{\PHRASE[45];}{type=dragfill}
\answer{}{\PHRASE[46];}{type=dragfill}
\answer{}{\PHRASE[47];}{type=dragfill}
\answer{}{\PHRASE[48];}{type=dragfill}
\answer{}{\PHRASE[49];}{type=dragfill}



     
