<html><head></head><body><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div dir="ltr" data-setdir="false">Dear Colleagues;</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"> 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.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Thank you.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">----------------<br></div><div dir="ltr" data-setdir="false">Viewer.php</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><div dir="ltr" data-setdir="false"><?php<br>session_start();<br>$_SESSION=array();<br>include("central/config.php");<br>include("$app_path/common/get_post.php");<br>$new_window=time();<br>//foreach ($arrHttp as $var=>$value) echo "$var = $value<br>";<br><br>if (isset($_SESSION["lang"])){<br> $arrHttp["lang"]=$_SESSION["lang"];<br>}else{<br> $arrHttp["lang"]=$lang;<br> $_SESSION["lang"]=$lang;<br>}<br>include ("$app_path/lang/admin.php");<br>include ("$app_path/lang/lang.php");<br>?><br><br><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"<br> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br><br><html lang="pt-br" xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt-br"><br><br><head profile="http://www.w3.org/2005/10/profile"><br> <meta http-equiv="Expires" content="-1" /><br> <meta http-equiv="pragma" content="no-cache" /><br> <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><br> <meta http-equiv="Content-Language" content="pt-br" /><br> <meta name="robots" content="all" /><br> <meta http-equiv="keywords" content="" /><br> <meta http-equiv="description" content="" /><br> <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" sizes="16x16"><br><br> <title>PDF View</title><br><br><br> <br></head><br><body onload="disableContextMenu();" oncontextmenu="return false"><br> <div class="wrapper"><br> <div id="result"></div><br> <br> <iframe id="pdfframe" src=<?php if(isset($_POST["pdffile"])) { echo $_POST["pdffile"].'#toolbar=0';} ?> width="100%" height="800px"></iframe><br> <br> <div class="embed-cover"></div><br> </div><br> <br> <br></body><br><div></html></div><div><br></div><div><br></div><div>----------------------------------<br></div><div dir="ltr" data-setdir="false">Dislpay Format (opac.pft) - for v990<br></div><br><br><div>if npost(['theses'],'PD_'v990*4)=1 then<br>'<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>' <br>fi, '<br><br>'<br><br></div><div><br></div><br></div><div><br></div><div dir="ltr" data-setdir="false">Search Result Display<br></div></div></div></body></html>