version 1.94, 2008/12/19 14:28:14
|
version 1.97, 2016/07/01 19:59:15
|
Line 175 sub start_randomlabel {
|
Line 175 sub start_randomlabel {
|
if ( defined($bgimg) && $bgimg !~ /^https?\:/ ) { |
if ( defined($bgimg) && $bgimg !~ /^https?\:/ ) { |
$bgimg=&Apache::lonnet::filelocation($Apache::lonxml::pwd[-1],$bgimg); |
$bgimg=&Apache::lonnet::filelocation($Apache::lonxml::pwd[-1],$bgimg); |
if (&Apache::lonnet::repcopy($bgimg) ne 'ok') { |
if (&Apache::lonnet::repcopy($bgimg) ne 'ok') { |
$bgimg='/home/httpd/html/adm/lonKaputt/lonlogo_broken.gif'; |
$bgimg=$Apache::lonnet::perlvar{'lonDocRoot'}.'/adm/lonKaputt/lonlogo_broken.gif'; |
} |
} |
} |
} |
$Apache::randomlabel::obj_cnt=0; |
$Apache::randomlabel::obj_cnt=0; |
Line 193 sub start_randomlabel {
|
Line 193 sub start_randomlabel {
|
$Apache::edit::bgimgsrc= |
$Apache::edit::bgimgsrc= |
&Apache::lonxml::get_param('bgimg',$parstack,$safeeval); |
&Apache::lonxml::get_param('bgimg',$parstack,$safeeval); |
$Apache::edit::bgimgsrccurdepth=$Apache::lonxml::curdepth; |
$Apache::edit::bgimgsrccurdepth=$Apache::lonxml::curdepth; |
$result.=&Apache::edit::text_arg('Image:','bgimg',$token,75).' '; |
$result.=&Apache::edit::text_arg('Image:','bgimg',$token,75).' '. |
$result.=&Apache::edit::browse('bgimg',undef,undef,$only).' '; |
&Apache::edit::browse_or_search('bgimg',undef,undef,$only,undef,1). |
$result.=&Apache::edit::search('bgimg').'<br />'. |
'<br />'. |
&Apache::edit::text_arg('Width(pixel):' ,'width' ,$token,6). |
&Apache::edit::text_arg('Width(pixel):' ,'width' ,$token,6). |
&Apache::edit::text_arg('Height(pixel):','height' ,$token,6). |
&Apache::edit::text_arg('Height(pixel):','height' ,$token,6). |
&Apache::edit::text_arg('TeXWidth(mm):' ,'texwidth',$token,6). |
&Apache::edit::text_arg('TeXWidth(mm):' ,'texwidth',$token,6). |
Line 223 sub end_randomlabel {
|
Line 223 sub end_randomlabel {
|
&Apache::lonnet::appenv(\%args); |
&Apache::lonnet::appenv(\%args); |
} elsif ($target eq 'tex') { |
} elsif ($target eq 'tex') { |
$result='\end{picture}\\\\'; |
$result='\end{picture}\\\\'; |
$result.= ' \vskip -'.$height_param.' mm } \\\\ '; |
$result.= ' \vskip -'.$height_param.' mm } \\newline '; |
} elsif ($target eq 'edit') { |
} elsif ($target eq 'edit') { |
$result.=&Apache::edit::end_table; |
$result.=&Apache::edit::end_table; |
} |
} |