version 1.44, 2003/01/28 00:14:17
|
version 1.47, 2003/04/30 19:40:47
|
Line 159 sub handle_delete {
|
Line 159 sub handle_delete {
|
} |
} |
if (!$result) { |
if (!$result) { |
my $endtag='/'.$token->[1]; |
my $endtag='/'.$token->[1]; |
my $bodytext=&Apache::lonxml::get_all_text($endtag,$$parser[$#$parser]); |
my $bodytext=&Apache::lonxml::get_all_text($endtag,$parser); |
$$parser['-1']->get_token(); |
$$parser['-1']->get_token(); |
&Apache::lonxml::debug("Deleting :$bodytext: for $token->[1]"); |
&Apache::lonxml::debug("Deleting :$bodytext: for $token->[1]"); |
&Apache::lonxml::end_tag($tagstack,$parstack,$token); |
&Apache::lonxml::end_tag($tagstack,$parstack,$token); |
Line 365 sub insert_numericalhint {
|
Line 365 sub insert_numericalhint {
|
</numericalhint>'; |
</numericalhint>'; |
} |
} |
|
|
|
sub insert_stringhint { |
|
return ' |
|
<stringhint> |
|
</stringhint>'; |
|
} |
|
|
|
sub insert_formulahint { |
|
return ' |
|
<formulahint> |
|
</formulahint>'; |
|
} |
|
|
sub insert_radiobuttonhint { |
sub insert_radiobuttonhint { |
return ' |
return ' |
<radiobuttonhint> |
<radiobuttonhint> |
Line 469 sub rebuild_tag {
|
Line 481 sub rebuild_tag {
|
return $result; |
return $result; |
} |
} |
|
|
|
sub html_element_name { |
|
my ($name) = @_; |
|
return $Apache::lonxml::curdepth.'.'.$name; |
|
} |
|
|
sub text_arg { |
sub text_arg { |
my ($description,$name,$token,$size) = @_; |
my ($description,$name,$token,$size) = @_; |
my $result; |
my $result; |
if (!defined $size) { $size=20; } |
if (!defined $size) { $size=20; } |
my $arg=$token->[2]{$name}; |
my $arg=$token->[2]{$name}; |
$result=$description.' <input name="'."$Apache::lonxml::curdepth.$name". |
$result=$description.' <input name="'.&html_element_name($name). |
'" type="text" value="'.$arg.'" size="'.$size.'" />'; |
'" type="text" value="'.$arg.'" size="'.$size.'" />'; |
return $result; |
return $result; |
} |
} |
Line 498 sub select_arg {
|
Line 515 sub select_arg {
|
$optionlist.="<option $value >$option</option>\n"; |
$optionlist.="<option $value >$option</option>\n"; |
} |
} |
} |
} |
$result.=$description.' <select name="'. |
$result.=$description.' <select name="'.&html_element_name($name). |
"$Apache::lonxml::curdepth.$name".'"> |
'"> |
'.$optionlist.' |
'.$optionlist.' |
</select>'; |
</select>'; |
return $result; |
return $result; |
Line 528 sub select_or_text_arg {
|
Line 545 sub select_or_text_arg {
|
} |
} |
$optionlist.="<option value=\"TYPEDINVALUE\">Type in value</option>\n"; |
$optionlist.="<option value=\"TYPEDINVALUE\">Type in value</option>\n"; |
if (($found) || (!$selected)) { |
if (($found) || (!$selected)) { |
$result.=$description.' <select name="'."$Apache::lonxml::curdepth.$name".'"> |
$result.=$description.' <select name="'.&html_element_name($name) |
|
.'"> |
'.$optionlist.' |
'.$optionlist.' |
</select>'; |
</select>'; |
} else { |
} else { |