Move php values to js call
Not inside js declaration
This commit is contained in:
parent
5d94c8ddac
commit
8d00297509
@ -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>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user