diff --git a/main/document/showinframesmin.php b/main/document/showinframesmin.php index 5a40d4bae6..e81714717f 100644 --- a/main/document/showinframesmin.php +++ b/main/document/showinframesmin.php @@ -2,7 +2,7 @@ /* For licensing terms, see /license.txt */ /** - * @author Juan Carlos Raña Trabado (herodoto@telefonica.net) + * @author Juan Carlos Ra�a Trabado (herodoto@telefonica.net) * * @package chamilo.document */ @@ -83,13 +83,12 @@ header('Cache-Control: no-cache, must-revalidate'); header('Pragma: no-cache'); $browser_display_title = 'Documents - '.Security::remove_XSS($_GET['cidReq']).' - '.$file; - $js_glossary_in_documents = ''; if (api_get_setting('show_glossary_in_documents') == 'ismanual') { $js_glossary_in_documents = ' // $(document).ready(function() { $.frameReady(function() { // $("
I am a div courses
").prependTo("body"); - }, "top.mainFrame", + }, "mainFrame", { load: [ {type:"script", id:"_fr1", src:"'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery.js"}, {type:"script", id:"_fr2", src:"'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery.highlight.js"}, @@ -103,7 +102,7 @@ if (api_get_setting('show_glossary_in_documents') == 'ismanual') { $.frameReady(function(){ // $("
I am a div courses
").prependTo("body"); - }, "top.mainFrame", + }, "mainFrame", { load: [ {type:"script", id:"_fr1", src:"'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery.js"}, {type:"script", id:"_fr2", src:"'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery.highlight.js"}, @@ -113,7 +112,7 @@ if (api_get_setting('show_glossary_in_documents') == 'ismanual') { ); // });'; } - +$htmlHeadXtra[] = api_get_js('jquery.js'); $htmlHeadXtra[] = ''; -//// +Display::display_reduced_header(); echo "
"; $file_url_web = api_get_path(WEB_COURSE_PATH).$_course['path'].'/document'.$header_file.'?'.api_get_cidreq(); @@ -157,8 +156,7 @@ if ($pathinfo['extension']=='wav' && api_get_setting('enable_nanogong') == 'true echo ''; echo ''; echo '
'; -} -else{ - if ($pathinfo['extension']=='swf'){ $widht='83%'; $height='83%';}else{$widht='100%'; $height='100%';} - echo ''; +} else { + if ($pathinfo['extension']=='swf'){ $width='83%'; $height='83%';} else {$width='100%'; $height='';} + echo ''; } \ No newline at end of file