21 if (empty($langs) || !is_object($langs))
23 print "Error, template page can't be called as URL";
28 $langs->loadLangs(array(
"main",
"bills"));
32 <div
class=
"blocksellfinished">
34 <div
class=
"cadre_facturation">
35 <h3
class=
"titre1"><?php echo $langs->trans(
"SellFinished"); ?></h3><br>
37 <script
type=
"text/javascript">
39 function popupTicket(
id,
name)
43 opt =
'width='+largeur+
', height='+hauteur+
', left='+(screen.width - largeur)/2+
', top='+(screen.height-hauteur)/2+
'';
44 window.open(
'validation_ticket.php?facid='+
id,
name, opt);
47 popupTicket(<?php echo
GETPOST(
'facid',
'int'); ?>,
'<?php echo $langs->trans('PrintTicket
') ?>');
51 <p><a
class=
"lien1" href=
"<?php echo DOL_URL_ROOT ?>/compta/facture/card.php?action=builddoc&facid=<?php echo GETPOST('facid', 'int'); ?>" target=
"_blank"><?php echo $langs->trans(
"ShowInvoice"); ?></a></p>
53 <p><a
class=
"lien1" href=
"#" onclick=
"Javascript: popupTicket(<?php echo GETPOST('facid', 'int'); ?>,'<?php echo $langs->trans('PrintTicket') ?>'); return(false);"><?php echo $langs->trans(
"PrintTicket"); ?></a></p>
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
$conf db name
Only used if Module[ID]Name translation string is not found.
print
Draft customers invoices.
if(preg_match('/crypted:/i', $dolibarr_main_db_pass)||!empty($dolibarr_main_db_encrypted_pass)) $conf db type