Wednesday, February 22, 2017

viewer pdf for phprunner include icon image


$value = "
<script type=\"text/javascript\">
// Popup window code
function Allocate(url) {
popupWindow = window.open(
url,'popUpWindow','height=auto,width=900,left=20,top=30-,autocenter=yes,resizable=no,scrollbars=no,copyhistory=no,addressbar=no,menubar=no,location=no,directories=no,status=no,toolbar=no top=30-')
}
</script>
<a href=\"Javascript:Allocate('http://10.*.*.*/archive/ViewerJS/#../files/".$data["Attach"]."');\"><img src=\"images/pdfsmall.png\"></a>";

sample web viewer pdf js

<iframe style="width:100%;height:500px" src="http://www.mydomain.com/libs/pdfjs/web/viewer.html?file=http://www.mydomain.com/mypdf.pdf"></iframe>

custom image phprunner display

$value = "<img width=100 height=100 src=/it/files/empphoto/".$value.">";

phprunner view custom filed status

if ($value=="Process") $str.='<img src="1.png">'; if ($value=="Receive") $str.='<i...