dolibarr  9.0.0
validation2.tpl.php
1 <?php
2 /* Copyright (C) 2007-2008 Jeremie Ollivier <jeremie.o@laposte.net>
3  * Copyright (C) 2012 Marcos GarcĂ­a <marcosgdf@gmail.com>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  *
18  */
19 
20 // Protection to avoid direct call of template
21 if (empty($langs) || ! is_object($langs))
22 {
23  print "Error, template page can't be called as URL";
24  exit;
25 }
26 
27 // Load translation files required by the page
28 $langs->loadLangs(array("main","bills"));
29 
30 ?>
31 
32 <div class="blocksellfinished">
33 
34 <div class="cadre_facturation">
35 <h3 class="titre1"><?php echo $langs->trans("SellFinished"); ?></h3><br>
36 
37 <script type="text/javascript">
38 
39  function popupTicket(id,name)
40  {
41  largeur = 600;
42  hauteur = 500;
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);
45  }
46 
47  popupTicket(<?php echo GETPOST('facid','int'); ?>,'<?php echo $langs->trans('PrintTicket') ?>');
48 
49 </script>
50 
51 <p><a class="lien1" href="<?php echo DOL_URL_ROOT ?>/compta/facture/card.php?action=builddoc&facid=<?php echo $_GET['facid']; ?>" target="_blank"><?php echo $langs->trans("ShowInvoice"); ?></a></p>
52 <br>
53 <p><a class="lien1" href="#" onclick="Javascript: popupTicket(); return(false);"><?php echo $langs->trans("PrintTicket"); ?></a></p>
54 
55 </div>
56 </div>
57 <br>
58 
GETPOST($paramname, $check='none', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
print
Draft customers invoices.
Definition: index.php:91
$conf db name
Only used if Module[ID]Name translation string is not found.
Definition: repair.php:103
type
Definition: viewcat.php:284