Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 231... Línea 231...
231
 */
231
 */
232
function resourcelib_embed_pdf($fullurl, $title, $clicktoopen) {
232
function resourcelib_embed_pdf($fullurl, $title, $clicktoopen) {
233
    global $CFG, $PAGE;
233
    global $CFG, $PAGE;
Línea 234... Línea 234...
234
 
234
 
235
    $code = <<<EOT
235
    $code = <<<EOT
236
<div class="resourcecontent resourcepdf">
236
    <div class="resourcecontent resourcepdf">
237
  <object id="resourceobject" data="$fullurl" type="application/pdf" width="800" height="600">
-
 
238
    <param name="src" value="$fullurl" />
237
         <iframe id="resourceobject" src="$fullurl" title="$title" width="800" height="600">
239
    $clicktoopen
238
             $clicktoopen
240
  </object>
239
         </iframe>
241
</div>
240
    </div>
Línea 242... Línea 241...
242
EOT;
241
    EOT;
243
 
242
 
Línea 244... Línea 243...
244
    // the size is hardcoded in the boject obove intentionally because it is adjusted by the following function on-the-fly
243
    // the size is hardcoded in the boject obove intentionally because it is adjusted by the following function on-the-fly