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.">";

Tuesday, February 21, 2017

embed pdf phprunner

$value = "<object style=\"width: 100px; height: 100px\">
<param name=\"fies\" value=\"files/".$value."\">
</param><embed src=\"files/".$value."\" type=\"application/pdf\"
width=\"100\" height=\"50\"></embed></object>";

Monday, February 20, 2017

Popup Button ling phprunner

$result["record"] = $button->getCurrentRecord();

var mywin =window.open('mytable.php?editid1='+ result.record["id"],'popUpWindow','height=630,width=530,left=20,top=20,resizable=no,scrollbars=yes,toolbar=no,menubar=no,location=no,directories=no,status=no');
mywin.focus();

Popup Sutome table

$value = "
<script type=\"text/javascript\">
// Popup window code
function Allocate(url) {
popupWindow = window.open(
url,'popUpWindow','height=500,width=650,left=20,top=20,resizable=no,scrollbars=no,toolbar=no,menubar=no,location=no,directories=no,status=no')
}
</script>
<a href=\"Javascript:Allocate('http://SERVERNAME/APPLICATIONNAME/Allocate_add.php?mastertable=Allocate&masterkey1=".$data["SerialLink"]."');\">Allocate</a>";

phprunner popup


$value = "
<script type=\"text/javascript\">
// Popup window code
function Allocate(url) {
popupWindow = window.open(
url,'popUpWindow','height=500,width=650,left=20,top=20,resizable=no,scrollbars=no,toolbar=no,menubar=no,location=no,directories=no,status=no')
}
</script>
<a href=\"Javascript:Allocate('http://10.1.42.18/archive/ViewerJS/#../files/".$data["Attach"]."');\">Allocate</a>";

phprunner view custom filed status

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