version 1.16, 2006/05/16 21:41:18
|
version 1.18, 2009/07/08 17:55:07
|
Line 104
|
Line 104
|
</eval> |
</eval> |
<string nextstate="CHOOSE_STUDENT_LEVEL" variable="WEIGHT"> |
<string nextstate="CHOOSE_STUDENT_LEVEL" variable="WEIGHT"> |
<validator>if ($val !~ /^[1234567890]+(\.[1234567890]+)?$/) { |
<validator>if ($val !~ /^[1234567890]+(\.[1234567890]+)?$/) { |
return &mt('" [_1] " is not an acceptable weight. Weight must be a positive number.',$element->getValue()); |
return &mt('[_1] is not an acceptable weight. Weight must be a positive number.','"'.$element->getValue().'"'); |
} |
} |
return undef; |
return undef; |
</validator> |
</validator> |
Line 118
|
Line 118
|
</eval> |
</eval> |
<string nextstate="CHOOSE_STUDENT_LEVEL" variable="TRIES"> |
<string nextstate="CHOOSE_STUDENT_LEVEL" variable="TRIES"> |
<validator>if ($val !~ /^[1234567890]+$/) { |
<validator>if ($val !~ /^[1234567890]+$/) { |
return &mt('" [_1] " is not an acceptable number of tries. Tries must be a positive number with no decimal point.',$element->getValue());} |
return &mt('[_1] is not an acceptable number of tries. Tries must be a positive number with no decimal point.','"'.$element->getValue().'"');} |
return undef; |
return undef; |
</validator> |
</validator> |
</string> |
</string> |
Line 149
|
Line 149
|
<choice computer="section" nextstate="CHOOSE_SECTION"> |
<choice computer="section" nextstate="CHOOSE_SECTION"> |
. . . for a particular <b>section</b></choice> |
. . . for a particular <b>section</b></choice> |
<condition> |
<condition> |
<clause>return 1 if (&Apache::loncommon::coursegroups())</clause> |
<clause>return 1 if (&Apache::longroup::coursegroups())</clause> |
<choice computer="group" nextstate="CHOOSE_GROUP"> |
<choice computer="group" nextstate="CHOOSE_GROUP"> |
. . . for a particular <b>group</b></choice> |
. . . for a particular <b>group</b></choice> |
</condition> |
</condition> |