version 1.97, 2009/06/09 15:01:28
|
version 1.101, 2010/08/24 09:11:40
|
Line 43 use HTML::Entities();
|
Line 43 use HTML::Entities();
|
# --------------------------------------------------------- Build up RAT screen |
# --------------------------------------------------------- Build up RAT screen |
sub ratedt { |
sub ratedt { |
my ($r,$url)=@_; |
my ($r,$url)=@_; |
my %layout = ('border' => "0"); |
my %layout = ('border' => "0", |
if ($env{'environment.remote'} eq 'off') { |
'rows' => "1,250,*"); |
$layout{'rows'} = "1,250,*"; |
|
} else { |
|
$layout{'rows'} = "1,70,*"; |
|
} |
|
my $js =' |
my $js =' |
<script type="text/javascript"> |
<script type="text/javascript"> |
var flag=0; |
var flag=0; |
Line 78 sub buttons {
|
Line 74 sub buttons {
|
my $adv=shift; |
my $adv=shift; |
my $output='<form method="post">'; |
my $output='<form method="post">'; |
if ($adv==1) { |
if ($adv==1) { |
$output.='<input type="submit" name="forceadv" value="'.&mt('Edit').'" />'. |
$output.= |
&Apache::loncommon::help_open_topic('Sequence_Advanced_Editor_Creation'); |
'<input type="submit" name="forceadv"' |
|
.' value="'.&mt('Edit').'" />' |
|
.&Apache::loncommon::help_open_topic( |
|
'Sequence_Advanced_Editor_Creation'); |
} else { |
} else { |
unless ($adv==2) { |
unless ($adv==2) { |
$output.='<input type="submit" name="forcesmp" value="'.&mt('Simple Edit').'" />'. |
$output.= |
&Apache::loncommon::help_open_topic('Sequence_Simple_Editor_Creation'); |
'<input type="submit" name="forcesmp"' |
|
.' value="'.&mt('Simple Edit').'" />' |
|
.&Apache::loncommon::help_open_topic( |
|
'Sequence_Simple_Editor_Creation') |
|
.' '; |
} |
} |
$output.='<input type="submit" name="forceadv" value="'.&mt('Advanced Edit').'" />'. |
$output.= |
&Apache::loncommon::help_open_topic('Sequence_Advanced_Editor_Creation'); |
'<input type="submit" name="forceadv"' |
|
.' value="'.&mt('Advanced Edit').'" />' |
|
.&Apache::loncommon::help_open_topic( |
|
'Sequence_Advanced_Editor_Creation'); |
} |
} |
return $output.'</form>'; |
return $output.'</form>'; |
} |
} |
Line 145 function idxopen(mode) {
|
Line 151 function idxopen(mode) {
|
} |
} |
|
|
// ------------------------------------------------------ Open groupsort window |
// ------------------------------------------------------ Open groupsort window |
function groupopen(url,recover,bookmarks) { |
function groupopen(url,recover) { |
var options="scrollbars=1,resizable=1,menubar=0"; |
var options="scrollbars=1,resizable=1,menubar=0"; |
idxflag=1; |
idxflag=1; |
idx=open("/adm/groupsort?inhibitmenu=yes&mode=$mode&recover="+recover+"&readfile="+url+"&bookmarks="+bookmarks,"idxout",options); |
idx=open("/adm/groupsort?inhibitmenu=yes&mode=$mode&recover="+recover+"&readfile="+url,"idxout",options); |
idx.focus(); |
idx.focus(); |
} |
} |
|
|
Line 485 sub smpedt {
|
Line 491 sub smpedt {
|
'nt' => 'New Title', |
'nt' => 'New Title', |
'se' => 'Search', |
'se' => 'Search', |
'im' => 'Import', |
'im' => 'Import', |
'bk' => 'Import Bookmarks', |
'wl' => 'Import from Wishlist', |
'vi' => 'View', |
'vi' => 'View', |
'lm' => 'Load Map', |
'lm' => 'Load Map', |
'ds' => 'Discard Selected', |
'ds' => 'Discard Selected', |
Line 556 ENDJS
|
Line 562 ENDJS
|
title => 'Simple Editor', |
title => 'Simple Editor', |
href => '',}); |
href => '',}); |
|
|
|
# Breadcrumbs are included by &start_page |
my $start_page = &Apache::loncommon::start_page('Construction Space',$js) |
my $start_page = &Apache::loncommon::start_page('Construction Space',$js) |
.&Apache::lonhtmlcommon::breadcrumbs('') |
|
.&Apache::loncommon::head_subbox( |
.&Apache::loncommon::head_subbox( |
&Apache::loncommon::CSTR_pageheader() |
&Apache::loncommon::CSTR_pageheader() |
.&buttons(2)); |
.&buttons(2)); |
Line 595 value="Select Map" /><input type="submit
|
Line 601 value="Select Map" /><input type="submit
|
<input type="button" onClick= |
<input type="button" onClick= |
"javascript:impfortarget.value=1;groupimport();" value="$lt{'im'}" /> |
"javascript:impfortarget.value=1;groupimport();" value="$lt{'im'}" /> |
<input type="button" onClick= |
<input type="button" onClick= |
"javascript:impfortarget.value=1;groupopen(0,1,1);" value="$lt{'bk'}" /> |
"javascript:impfortarget.value=1;open_Wishlist_Import('simple');" value="$lt{'wl'}" /> |
<input type="button" onClick= |
<input type="button" onClick= |
"javascript:impfortarget.value=1;groupopen('$url',1,0);" value="$lt{'reco'}" /> |
"javascript:impfortarget.value=1;groupopen('$url',1);" value="$lt{'reco'}" /> |
$lt{'as'} |
$lt{'as'} |
<hr /> |
<hr /> |
<input type="submit" name="moveup" value="$lt{'mu'}" /> |
<input type="submit" name="moveup" value="$lt{'mu'}" /> |
Line 673 sub viewmap {
|
Line 679 sub viewmap {
|
title => 'Resource Assembly Tool', |
title => 'Resource Assembly Tool', |
href => '',}); |
href => '',}); |
|
|
|
# Breadcrumbs are included by &start_page |
$r->print(&Apache::loncommon::start_page('Edit Content of a Map') |
$r->print(&Apache::loncommon::start_page('Edit Content of a Map') |
.&Apache::lonhtmlcommon::breadcrumbs('') |
|
.&Apache::loncommon::head_subbox( |
.&Apache::loncommon::head_subbox( |
&Apache::loncommon::CSTR_pageheader() |
&Apache::loncommon::CSTR_pageheader() |
.&buttons($adv)) |
.&buttons($adv)) |