Move php values to js call

Not inside js declaration
This commit is contained in:
Gustavo Novaro 2017-02-08 16:11:31 -03:00 committed by GitHub
parent 5d94c8ddac
commit 8d00297509

View File

@ -29,15 +29,15 @@ $langs->load("bills");
<script type="text/javascript"> <script type="text/javascript">
function popupTicket() function popupTicket(id,name)
{ {
largeur = 600; largeur = 600;
hauteur = 500; hauteur = 500;
opt = 'width='+largeur+', height='+hauteur+', left='+(screen.width - largeur)/2+', top='+(screen.height-hauteur)/2+''; opt = 'width='+largeur+', height='+hauteur+', left='+(screen.width - largeur)/2+', top='+(screen.height-hauteur)/2+'';
window.open('validation_ticket.php?facid=<?php echo GETPOST('facid','int'); ?>', '<?php echo $langs->trans('PrintTicket') ?>', opt); window.open('validation_ticket.php?facid='+id,name, opt);
} }
popupTicket(); popupTicket(<?php echo GETPOST('facid','int'); ?>,'<?php echo $langs->trans('PrintTicket') ?>');
</script> </script>