/trunk/wims/public_html/modules/template/exercise.ca/answer.phtml |
---|
1,4 → 1,3 |
!! Place here the code to show analysis of reply to the exercise |
Has obtingut $module_score (sobre 10) punts en aquest exercici. |
<p>$name_score</p> |
/trunk/wims/public_html/modules/template/exercise.ca/form.phtml |
---|
2,11 → 2,12 |
!! Here is an example of the design of reply form. You are free to modify. |
!form reply |
<input type=submit value="Envia"/> your reply:<div> |
<ul> |
<li><label for="x">x = </label><input size="40" id="x" name="x" value="$x" /></li> |
<li><label for="y">y = </label><input size="40" id="y" name="y" value="$y" /></li> |
</ul> |
<p class="send_answer"> |
<input type="submit" value="$wims_name_send" /> |
</p> |
x = <input size=40 name=x value="$x"/> <br/> |
y = <input size=40 name=y value="$y"/> <br/> |
</p> |
!formend |
/trunk/wims/public_html/modules/template/exercise.ca/help.phtml |
---|
1,6 → 1,6 |
!! Here you can place helps to the exercise. |
<p> |
Ho sento, l'ajuda encara s'està elaborant. |
</p> |
/trunk/wims/public_html/modules/template/exercise.ca/intro.phtml |
---|
1,10 → 1,14 |
!read language lang/names |
!header |
$module_title és un exercici ..... |
<div> |
$module_title és un exercici ..... |
</div> |
<p><hr/></p> |
!href cmd=new&module=$module Anar a treballar |
<p> |
!set wims_ref_class=wims_button |
!href cmd=new&module=$module $wims_name_work |
</p> |
!tail |
/trunk/wims/public_html/modules/template/exercise.ca/lang/names.ca |
---|
0,0 → 1,3 |
!set name_score=!nosubst Has obtingut $module_score (sobre 10) punts en aquest exercici. |
!set name_bad_data=He fallat en avaluar els valors que has enviat. Una errada teua? |
/trunk/wims/public_html/modules/template/exercise.ca/main.phtml |
---|
1,36 → 1,42 |
!read language lang/names |
!header |
!! The presentation of the exercise. |
!read present.phtml |
<p><hr/></p> |
<hr /> |
!if $status=waiting |
!if $error!=$empty |
!read msg.phtml |
<p><hr width=50%/> <p> |
!endif |
!! Reply form |
!read form.phtml |
<p> |
!href exo_Renew |
. |
!if $error!=$empty |
<div class="wims_msg warning"> |
!read msg.phtml |
</div> |
!endif |
!! Reply form |
!read form.phtml |
<p> |
!set wims_ref_class=wims_button wims_secondary_button |
!href exo_Renew |
</p> |
!else |
!if $error!=$empty |
!read msg.phtml |
<p><hr width=50%/> <p> |
!endif |
!! Analysis of reply |
!read answer.phtml |
<p> |
!href exo_Again |
. |
!if $worksheet=$empty |
!href exo_Intro |
. |
!endif |
!if $error!=$empty |
<div class="wims_msg warning"> |
!read msg.phtml |
</div> |
!endif |
!! Analysis of reply |
!read answer.phtml |
<p> |
!set wims_ref_class=wims_button |
!href exo_Again |
!if $worksheet=$empty |
|
!set wims_ref_class=wims_button |
!href exo_Intro |
!endif |
</p> |
!endif |
:end |
!tail |
/trunk/wims/public_html/modules/template/exercise.ca/msg.phtml |
---|
1,12 → 1,11 |
!! This file contains error messages. It will be processed |
!! whenever the variable `error' is not empty. |
<span class="wims_warning">$wims_name_Error</span>. |
<span class="wims_warning">$wims_name_Error.</span> |
!if bad_data=$error |
He fallat en avaluar els valors que has enviat. Una errada teua? |
!exit |
!if bad_data iswordof $error |
$name_msg_bad_data |
!exit |
!endif |
!msg $error |
/trunk/wims/public_html/modules/template/exercise.ca/present.phtml |
---|
1,6 → 1,9 |
!! This file presents the problem to solve. |
<b>Exercici.</b> |
<div class="statement"> |
Què és...? |
<p> |
Què és...? |
</p> |
</div> |
/trunk/wims/public_html/modules/template/exercise.ca/var.init |
---|
3,8 → 3,5 |
# content of the file: initialisation of the problem. |
status=waiting |
wims_module_log=$cmd |
/trunk/wims/public_html/modules/template/exercise.ca/var.proc |
---|
1,6 → 1,8 |
# Variable calculations should be done in this file. |
# It is read and interpreted by wims for all valid calls to the module. |
!!put language in file named lang/names.ca etc |
!read language lang/names |
!if $cmd=reply and $status!=waiting |
error=double_reply |
!exit |
7,21 → 9,20 |
!endif |
!if $cmd=reply and $status=waiting |
# Analysis of the reply should be placed here. |
# The following lines are just a template. |
# Analysis of the reply should be placed here. |
# The following lines are just a template. |
!if $x>$y |
diagnostics=good |
!else |
diagnostics=bad |
!endif |
!if $x>$y |
diagnostics=good |
!else |
diagnostics=bad |
!endif |
status=done |
!if $diagnostics=good |
module_score=10 |
!else |
module_score=0 |
!endif |
wims_module_log=score $module_score/10 |
status=done |
!if $diagnostics=good |
module_score=10 |
!else |
module_score=0 |
!endif |
wims_module_log=score $module_score/10 |
!endif |