Beispiel #1
0
     $text .= Codes::render_embed($item['id'] . ', 99%, 90%');
     // add a link to close the window
     $text .= '</div>' . "\n" . '<p style="text-align: center; margin: 0.5em 0 1em 0;"><button type="button" onclick="self.close()">' . i18n::s('Close') . '</button></p>' . "\n";
     // page postamble
     $text .= '</body>' . "\n" . '</html>' . "\n";
     break;
 case 'mm':
     // we are invoking some freemind viewer
     $type = '';
     $mime = 'text/html';
     // allow to load Flash objects
     $script = 'included/browser/js_header/swfobject.js';
     // page preamble
     $text = '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">' . "\n" . '<html>' . "\n" . '<head>' . "\n" . '<title>' . $context['page_title'] . '</title>' . "\n" . '<script type="text/javascript" src="' . $context['url_to_root'] . $script . '"></script>' . "\n" . '</head>' . "\n" . '<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">' . "\n";
     // render object full size
     $text .= Codes::render_freemind($target_href . ', 100%, 90%');
     // add a link to close the window
     $text .= '</div>' . "\n" . '<p style="text-align: center; margin: 0.5em 0 1em 0;"><button type="button" onclick="self.close()">' . i18n::s('Close') . '</button></p>' . "\n";
     // page postamble
     $text .= '</body>' . "\n" . '</html>' . "\n";
     break;
 case 'swf':
     // display a large Flash file
     $type = '';
     $mime = 'text/html';
     // allow to load Flash objects
     $script = 'included/browser/js_header/swfobject.js';
     // page preamble
     $text = '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">' . "\n" . '<html>' . "\n" . '<head>' . "\n" . '<title>' . $context['page_title'] . '</title>' . "\n";
     // load the full library
     $text .= '<script type="text/javascript" src="' . $context['url_to_root'] . $script . '"></script>' . "\n";