fbpx

 


{source}
<!-- You can place html anywhere within the source tags -->

<div style="margin-bottom:20px;position:relative;padding:10px;color:#B39059;border-top:thin solid grey;border-bottom:thin solid grey;">

<?php

$p=explode('/',JURI::current());

echo "<a href='/$p[3]' style='color:#B39059;font-size:14px'> <i class='icon-mail-reply' aria-hidden='true'></i> Takaisin $p[3] sivulle </a>";

if (isset($_GET['nimi'])) {

 $polku='hinnastot'; $nimi=$_GET['nimi'];

} elseif (isset($_GET['katalogi'])) {

$polku='katalogi'; $nimi=$_GET['katalogi'];

} else {

   exit;

}

?>

<div style="position:absolute;top:0;right:0;width:150px;font-size:10px;"><a href="https://www.majakivi.fi/images/<?php echo $polku ?>/<?php echo $nimi; ?>" download="<?php echo $nimi; ?>"> <img style="width:30px" src="/images/pdficon.png">  Lataa <?php echo $polku ?> </a> </div>

</div>

<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.js"></script>

<div style="width: 100%; max-height: 100%;height:700px;" id="pdfviewer"></div>
<script>PDFObject.embed("/images/<?php echo $polku ?>/<?php echo $nimi; ?>", "#pdfviewer");</script>

{/source}