[Isis-users] External PHP

Francisco Tamor fttamor at yahoo.com
Thu Feb 9 07:40:04 CET 2023


Dear Colleagues;
 I have created and external PHP file to view my pdf filest. However, all the first records  after the search result do not display the pdf file. Other file will show the pdf but not the first record. Hope somebody could help me in this. Attached are the display format and PHP code I used.
Thank you.

----------------
Viewer.php
<?php
session_start();
$_SESSION=array();
include("central/config.php");
include("$app_path/common/get_post.php");
$new_window=time();
//foreach ($arrHttp as $var=>$value) echo "$var = $value<br>";

if (isset($_SESSION["lang"])){
    $arrHttp["lang"]=$_SESSION["lang"];
}else{
    $arrHttp["lang"]=$lang;
    $_SESSION["lang"]=$lang;
}
include ("$app_path/lang/admin.php");
include ("$app_path/lang/lang.php");
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html lang="pt-br" xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt-br">

<head profile="http://www.w3.org/2005/10/profile">
        <meta http-equiv="Expires" content="-1" />
        <meta http-equiv="pragma" content="no-cache" />
        <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <meta http-equiv="Content-Language" content="pt-br" />
        <meta name="robots" content="all" />
        <meta http-equiv="keywords" content="" />
        <meta http-equiv="description" content="" />
                <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" sizes="16x16">

        <title>PDF View</title>


  
</head>
<body onload="disableContextMenu();" oncontextmenu="return false">
    <div class="wrapper">
    <div id="result"></div>
        
        <iframe id="pdfframe" src=<?php if(isset($_POST["pdffile"])) { echo $_POST["pdffile"].'#toolbar=0';} ?>  width="100%" height="800px"></iframe>
        
        <div class="embed-cover"></div>
    </div>
    
    
</body>
</html>

----------------------------------
Dislpay Format (opac.pft) - for v990


if npost(['theses'],'PD_'v990*4)=1 then
'<form action="/viewer.php" method="POST" target="_blank"><font face=arial size=2 color="#000080"><b><input type="text" name="pdffile" value="/bases/theses/pdf/'v990*4'" style="display:none";></b><font face=arial size=2 align="left"><b> View PDF:  </b><input type="submit" value="'v990*4'"></form>' 
fi, '<br><br>'




Search Result Display
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.iccisis.org/pipermail/isis-users/attachments/20230209/30001757/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Untitled 1.jpg
Type: image/jpeg
Size: 325135 bytes
Desc: not available
URL: <http://lists.iccisis.org/pipermail/isis-users/attachments/20230209/30001757/attachment.jpg>


More information about the isis-users mailing list