version 1.174, 2015/04/06 16:27:12
|
version 1.175, 2016/07/01 19:59:25
|
Line 364 sub start_scriptlib {
|
Line 364 sub start_scriptlib {
|
$result= |
$result= |
&Apache::edit::tag_start($target,$token,'New Script Functions'). |
&Apache::edit::tag_start($target,$token,'New Script Functions'). |
&Apache::edit::editline($token->[1],$bodytext,'scriptlib',40). |
&Apache::edit::editline($token->[1],$bodytext,'scriptlib',40). |
&Apache::edit::browse(undef,'textnode'). |
&Apache::edit::browse_or_search(undef,'textnode'). |
$error.'</td></tr>'. |
$error.'</td></tr>'. |
&Apache::edit::end_table(); |
&Apache::edit::end_table(); |
} |
} |
Line 616 sub start_import {
|
Line 616 sub start_import {
|
my $location=$token->[1]; |
my $location=$token->[1]; |
$location=~s/^\s*//s; |
$location=~s/^\s*//s; |
$location=~s/\s*$//s; |
$location=~s/\s*$//s; |
|
my $crsonly = join(',',(&Apache::loncommon::filecategorytypes('Problem'), |
|
&Apache::loncommon::filecategorytypes('Library'))); |
$result.=&Apache::edit::editline($location,$bodytext,'',40); |
$result.=&Apache::edit::editline($location,$bodytext,'',40); |
$result.=&Apache::edit::browse(undef,'textnode'); |
$result.=&Apache::edit::browse_or_search(undef,'textnode',undef,undef,$crsonly); |
$result.= ' <label>'.&mt('Import as:'). |
$result.= ' <span class="LC_nobreak"><label>'.&mt('Import as:'). |
'<select name="importmode_'.$Apache::lonxml::curdepth.'">'; |
'<select name="importmode_'.$Apache::lonxml::curdepth.'">'; |
my %options=&Apache::lonlocal::texthash('' => 'as standard library', |
my %options=&Apache::lonlocal::texthash('' => 'as standard library', |
'problem' => 'as problem', |
'problem' => 'as problem', |
Line 630 sub start_import {
|
Line 632 sub start_import {
|
} |
} |
$result.='>'.$options{$option}.'</option>'; |
$result.='>'.$options{$option}.'</option>'; |
} |
} |
$result.='</select></label>'; |
$result.='</select></label></span>'; |
#FIXME this need to convert $bodytext to be a contruction space reference |
#FIXME this need to convert $bodytext to be a contruction space reference |
#my $location=&Apache::lonnet::filelocation($Apache::lonxml::pwd['-1'],$bodytext); |
#my $location=&Apache::lonnet::filelocation($Apache::lonxml::pwd['-1'],$bodytext); |
#$result.="Click<a href=\"$location\">here</a> to edit<br />" |
#$result.="Click<a href=\"$location\">here</a> to edit<br />" |