version 1.17, 2013/04/10 22:12:43
|
version 1.18, 2013/06/18 13:23:42
|
Line 1786 SCRIPT
|
Line 1786 SCRIPT
|
|
|
# Returns the HTML-Markup for the page, shown when a link was set |
# Returns the HTML-Markup for the page, shown when a link was set |
sub makePageSet { |
sub makePageSet { |
# start_page |
my $title = 'Stored Links'; |
my $startPage = &Apache::loncommon::start_page('Stored Links',undef, |
|
{'only_body' => 1}); |
# start_page |
|
my $output = |
|
&Apache::loncommon::start_page($title,undef, |
|
{'only_body' => 1}) |
|
.'<h1>'.&mt($title).'</h1>'; |
|
|
# confirm success and offer link to wishlist |
# confirm success and offer link to wishlist |
my $message = &Apache::lonhtmlcommon::confirm_success(&mt('Link successfully saved!')); |
$output .= |
$message = &Apache::loncommon::confirmwrapper($message); |
&Apache::loncommon::confirmwrapper( |
|
&Apache::lonhtmlcommon::confirm_success( |
my $inner .= '<br>'.$message.'<br/><br/>'. |
&mt('Link successfully saved!'))) |
'<a href="javascript:;" onclick="opener.open('."'/adm/wishlist'".');window.close();">'.&mt('Go to Stored Links').'</a>'.(' ' x 3). |
.&Apache::lonhtmlcommon::actionbox( |
'<a href="javascript:;" onclick="window.close();">'.&mt('Close this window').'</a>'; |
['<a href="javascript:;" onclick="opener.open('."'/adm/wishlist'".');window.close();">'.&mt('Go to Stored Links').'</a>', |
|
'<a href="javascript:;" onclick="window.close();">'.&mt('Close this window').'</a>' |
|
]); |
|
|
# end_page |
# end_page |
my $endPage = &Apache::loncommon::end_page(); |
$output .= &Apache::loncommon::end_page(); |
|
|
# put all page-elements together |
|
my $page = $startPage.$inner.$endPage; |
|
|
|
return $page; |
return $output; |
} |
} |
|
|
|
|