dolibarr  7.0.0-beta
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 
28 $langs->load("main");
29 $langs->load("bills");
30 
31 ?>
32 
33 <div class="blocksellfinished">
34 
35 <div class="cadre_facturation">
36 <h3 class="titre1"><?php echo $langs->trans("SellFinished"); ?></h3><br>
37 
38 <script type="text/javascript">
39 
40  function popupTicket(id,name)
41  {
42  largeur = 600;
43  hauteur = 500;
44  opt = 'width='+largeur+', height='+hauteur+', left='+(screen.width - largeur)/2+', top='+(screen.height-hauteur)/2+'';
45  window.open('validation_ticket.php?facid='+id,name, opt);
46  }
47 
48  popupTicket(<?php echo GETPOST('facid','int'); ?>,'<?php echo $langs->trans('PrintTicket') ?>');
49 
50 </script>
51 
52 <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>
53 <br>
54 <p><a class="lien1" href="#" onclick="Javascript: popupTicket(); return(false);"><?php echo $langs->trans("PrintTicket"); ?></a></p>
55 
56 </div>
57 </div>
58 <br>
59 
GETPOST($paramname, $check='none', $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.
Definition: repair.php:104
print
Draft customers invoices.
Definition: index.php:91
type
Definition: viewcat.php:283