version 1.17, 2013/04/10 22:12:43
|
version 1.19, 2014/01/29 16:25:44
|
Line 1463 sub makePage {
|
Line 1463 sub makePage {
|
'onload' => 'javascript:onLoadAction('."'".$mode."'".');', |
'onload' => 'javascript:onLoadAction('."'".$mode."'".');', |
'onunload' => 'javascript:window.name = '."'loncapaclient'"}}); |
'onunload' => 'javascript:window.name = '."'loncapaclient'"}}); |
|
|
my $breadcrumbs = &Apache::lonhtmlcommon::breadcrumbs(&mt('Stored Links').&Apache::loncommon::help_open_topic('Wishlist')); |
my $breadcrumbs = &Apache::lonhtmlcommon::breadcrumbs(&mt('Stored Links'),'Wishlist'); |
|
|
# get javascript-code for wishlist-interactions |
# get javascript-code for wishlist-interactions |
my $js = &JSforWishlist(); |
my $js = &JSforWishlist(); |
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; |
} |
} |
|
|
|
|
Line 1897 sub makeErrorPage {
|
Line 1900 sub makeErrorPage {
|
text => 'Stored Links'}); |
text => 'Stored Links'}); |
my $startPage = &Apache::loncommon::start_page('Stored Links'); |
my $startPage = &Apache::loncommon::start_page('Stored Links'); |
|
|
my $breadcrumbs = &Apache::lonhtmlcommon::breadcrumbs(&mt('Stored Links').&Apache::loncommon::help_open_topic('Wishlist')); |
my $breadcrumbs = &Apache::lonhtmlcommon::breadcrumbs(&mt('Stored Links'),'Wishlist'); |
&Apache::lonhtmlcommon::clear_breadcrumbs(); |
&Apache::lonhtmlcommon::clear_breadcrumbs(); |
|
|
# error-message |
# error-message |
my $inner .= '<span class="LC_error">'.&mt('An error occurred! Please try again later.').'</span>'; |
my $inner .= '<p class="LC_error">'.&mt('An error occurred! Please try again later.').'</p>'; |
|
|
# end_page |
# end_page |
my $endPage = &Apache::loncommon::end_page(); |
my $endPage = &Apache::loncommon::end_page(); |