function init() { var odfelement = document.getElementById("odf"), odfcanvas = new odf.OdfCanvas(odfelement); odfcanvas.load("'.$file_url_web.'"); } $(document).ready(function() { window.setTimeout(init, 0); }); '; } $interbreadcrumb[]=array("url"=>"./document.php?curdirpath=".urlencode($my_cur_dir_path).$req_gid, "name"=> get_lang('Documents')); // Interbreadcrumb for the current directory root path if (empty($document_data['parents'])) { $interbreadcrumb[] = array('url' => '#', 'name' => $document_data['title']); } else { foreach($document_data['parents'] as $document_sub_data) { if ($document_data['title'] == $document_sub_data['title']) { continue; } $interbreadcrumb[] = array('url' => $document_sub_data['document_url'], 'name' => $document_sub_data['title']); } } Display::display_header(''); echo '
'; Display::display_footer();