1
Pусский / Re: Просмотр PDF
« on: September 28, 2011, 03:52:08 am »
Да получилось. Спасибо Вам. Вы мой гирой.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
<?php } ?>
в 31 строке.<?php
if (substr($file->getFilename(), -3) == 'pdf')
{
echo'<div>';
$urlpdf=get_url('files', 'download_image', array('id' => $file->getId(), 'inline' => true, 'modtime' => $modtime));
echo "<iframe src=".$urlpdf." width='100%' height='900px' frameborder=0 align='center'></iframe>";
echo '</div>';
}
?>