dolibarr/htdocs/takepos/invoice.php

429 lines
17 KiB
PHP
Raw Normal View History

2018-09-28 13:31:41 +02:00
<?php
2018-12-07 17:02:06 +01:00
/**
* Copyright (C) 2018 Andreu Bisquerra <jove@bisquerra.com>
2018-09-28 13:31:41 +02:00
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
2018-12-07 17:02:06 +01:00
// if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER','1'); // Not disabled cause need to load personalized language
// if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1'); // Not disabled cause need to load personalized language
// if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1');
// if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1');
2018-12-15 16:10:44 +01:00
if (!defined('NOCSRFCHECK')) { define('NOCSRFCHECK', '1'); }
if (!defined('NOTOKENRENEWAL')) { define('NOTOKENRENEWAL', '1'); }
if (!defined('NOREQUIREMENU')) { define('NOREQUIREMENU', '1'); }
if (!defined('NOREQUIREHTML')) { define('NOREQUIREHTML', '1'); }
if (!defined('NOREQUIREAJAX')) { define('NOREQUIREAJAX', '1'); }
2018-12-07 08:04:40 +01:00
require '../main.inc.php';
// Load $user and permissions
require_once DOL_DOCUMENT_ROOT . '/compta/facture/class/facture.class.php';
require_once DOL_DOCUMENT_ROOT . '/compta/paiement/class/paiement.class.php';
2018-12-07 17:02:06 +01:00
$langs->loadLangs(
array(
"bills",
"cashdesk"
)
);
2018-12-07 08:04:40 +01:00
$id = GETPOST('id', 'int');
$action = GETPOST('action', 'alpha');
$idproduct = GETPOST('idproduct', 'int');
$place = GETPOST('place', 'int');
2018-09-28 13:31:41 +02:00
$number = GETPOST('number');
$idline = GETPOST('idline');
2018-12-07 08:04:40 +01:00
$desc = GETPOST('desc', 'alpha');
2018-09-28 13:31:41 +02:00
$pay = GETPOST('pay');
2018-12-02 14:31:45 +01:00
$sql="SELECT rowid FROM ".MAIN_DB_PREFIX."facture where ref='(PROV-POS-".$place.")'";
2018-09-28 13:31:41 +02:00
$resql = $db->query($sql);
2018-12-07 08:04:40 +01:00
$row = $db->fetch_array($resql);
$placeid = $row[0];
2018-12-07 17:02:06 +01:00
if (!$placeid) { $placeid = 0; // not necesary
} else
{
$invoice = new Facture($db);
$invoice->fetch($placeid);
2018-09-28 13:31:41 +02:00
}
/*
2018-12-07 08:04:40 +01:00
* Actions
*/
2018-09-28 13:31:41 +02:00
2018-12-15 16:08:58 +01:00
if ($action == 'valid' && $user->rights->facture->creer)
{
2018-09-28 13:31:41 +02:00
if ($pay=="cash") $bankaccount=$conf->global->CASHDESK_ID_BANKACCOUNT_CASH;
else if ($pay=="card") $bankaccount=$conf->global->CASHDESK_ID_BANKACCOUNT_CB;
2018-11-28 13:04:59 +01:00
else if ($pay=="cheque") $bankaccount=$conf->global->CASHDESK_ID_BANKACCOUNT_CHEQUE;
2018-09-28 13:31:41 +02:00
$now=dol_now();
$invoice = new Facture($db);
$invoice->fetch($placeid);
if (! empty($conf->stock->enabled) and $conf->global->CASHDESK_NO_DECREASE_STOCK!="1") $invoice->validate($user, '', $conf->global->CASHDESK_ID_WAREHOUSE);
else $invoice->validate($user);
// Add the payment
$payment=new Paiement($db);
$payment->datepaye=$now;
$payment->bank_account=$bankaccount;
$payment->amounts[$invoice->id]=$invoice->total_ttc;
2018-12-15 16:08:58 +01:00
if ($pay=="cash") $payment->paiementid=4;
2018-09-28 13:31:41 +02:00
else if ($pay=="card") $payment->paiementid=6;
2018-11-28 13:04:59 +01:00
else if ($pay=="cheque") $payment->paiementid=7;
2018-12-02 14:31:45 +01:00
$payment->num_paiement=$invoice->ref;
2018-12-15 16:08:58 +01:00
$payment->create($user);
2018-09-28 13:31:41 +02:00
$payment->addPaymentToBank($user, 'payment', '(CustomerInvoicePayment)', $bankaccount, '', '');
2018-12-15 16:08:58 +01:00
$invoice->set_paid($user);
2018-09-28 13:31:41 +02:00
}
2018-12-15 16:08:58 +01:00
if (($action=="addline" || $action=="freezone") && $placeid==0)
2018-09-28 13:31:41 +02:00
{
2018-10-08 22:51:20 +02:00
// $place is id of POS, $placeid is id of invoice
2018-12-15 16:08:58 +01:00
if ($placeid==0)
{
$invoice = new Facture($db);
$invoice->socid=$conf->global->CASHDESK_ID_THIRDPARTY;
$invoice->date=dol_now();
$invoice->ref="(PROV-POS)";
$invoice->module_source = 'takepos';
2018-10-08 22:51:20 +02:00
$invoice->pos_source = (string) (empty($place)?'0':$place);
$placeid=$invoice->create($user);
2018-12-02 14:31:45 +01:00
$sql="UPDATE ".MAIN_DB_PREFIX."facture set ref='(PROV-POS-".$place.")' where rowid=".$placeid;
$db->query($sql);
2018-09-28 13:31:41 +02:00
}
}
2018-12-07 17:02:06 +01:00
if ($action == "addline") {
$prod = new Product($db);
$prod->fetch($idproduct);
$invoice->addline($prod->description, $prod->price, 1, $prod->tva_tx, $prod->localtax1_tx, $prod->localtax2_tx, $idproduct, $prod->remise_percent, '', 0, 0, 0, '', $prod->price_base_type, $prod->price_ttc, $prod->type, -1, 0, '', 0, 0, null, 0, '', 0, 100, '', null, 0);
$invoice->fetch($placeid);
2018-09-28 13:31:41 +02:00
}
2018-12-07 17:02:06 +01:00
if ($action == "freezone") {
$invoice->addline($desc, $number, 1, $conf->global->MAIN_VAT_DEFAULT_IF_AUTODETECT_FAILS, 0, 0, 0, 0, '', 0, 0, 0, '', 'TTC', $number, 0, -1, 0, '', 0, 0, null, 0, '', 0, 100, '', null, 0);
$invoice->fetch($placeid);
2018-09-28 13:31:41 +02:00
}
2018-12-07 17:02:06 +01:00
if ($action == "deleteline") {
if ($idline > 0 and $placeid > 0) { //If exist invoice and line, to avoid errors if deleted from other device or no line selected
2018-09-28 13:31:41 +02:00
$invoice->deleteline($idline);
$invoice->fetch($placeid);
}
2018-12-07 17:02:06 +01:00
else
if ($placeid > 0) { //If exist invoice, but no line selected, proced to delete last line
$sql = "SELECT rowid FROM " . MAIN_DB_PREFIX . "facturedet where fk_facture='$placeid' order by rowid DESC";
2018-09-28 13:31:41 +02:00
$resql = $db->query($sql);
2018-12-07 17:02:06 +01:00
$row = $db->fetch_array($resql);
$deletelineid = $row[0];
2018-09-28 13:31:41 +02:00
$invoice->deleteline($deletelineid);
2018-10-18 16:31:37 +02:00
$invoice->fetch($placeid);
2018-09-28 13:31:41 +02:00
}
}
2018-12-07 17:02:06 +01:00
if ($action == "updateqty") {
foreach($invoice->lines as $line)
{
if ($line->id == $idline) { $result = $invoice->updateline($line->id, $line->desc, $line->subprice, $number, $line->remise_percent, $line->date_start, $line->date_end, $line->tva_tx, $line->localtax1_tx, $line->localtax2_tx, 'HT', $line->info_bits, $line->product_type, $line->fk_parent_line, 0, $line->fk_fournprice, $line->pa_ht, $line->label, $line->special_code, $line->array_options, $line->situation_percent, $line->fk_unit);
}
2018-09-28 13:31:41 +02:00
}
2018-12-07 17:02:06 +01:00
$invoice->fetch($placeid);
2018-09-28 13:31:41 +02:00
}
2018-12-07 17:02:06 +01:00
if ($action == "updateprice") {
foreach($invoice->lines as $line)
{
if ($line->id == $idline) { $result = $invoice->updateline($line->id, $line->desc, $number, $line->qty, $line->remise_percent, $line->date_start, $line->date_end, $line->tva_tx, $line->localtax1_tx, $line->localtax2_tx, 'HT', $line->info_bits, $line->product_type, $line->fk_parent_line, 0, $line->fk_fournprice, $line->pa_ht, $line->label, $line->special_code, $line->array_options, $line->situation_percent, $line->fk_unit);
}
2018-09-28 13:31:41 +02:00
}
2018-12-07 17:02:06 +01:00
$invoice->fetch($placeid);
2018-09-28 13:31:41 +02:00
}
2018-12-07 17:02:06 +01:00
if ($action == "updatereduction") {
foreach($invoice->lines as $line)
{
if ($line->id == $idline) { $result = $invoice->updateline($line->id, $line->desc, $line->subprice, $line->qty, $number, $line->date_start, $line->date_end, $line->tva_tx, $line->localtax1_tx, $line->localtax2_tx, 'HT', $line->info_bits, $line->product_type, $line->fk_parent_line, 0, $line->fk_fournprice, $line->pa_ht, $line->label, $line->special_code, $line->array_options, $line->situation_percent, $line->fk_unit);
}
2018-09-28 13:31:41 +02:00
}
2018-12-07 17:02:06 +01:00
$invoice->fetch($placeid);
2018-09-28 13:31:41 +02:00
}
2018-12-07 17:02:06 +01:00
if ($action == "order" and $placeid != 0) {
include_once DOL_DOCUMENT_ROOT . '/categories/class/categorie.class.php';
$headerorder = '<html><br><b>' . $langs->trans('Place') . ' ' . $place . '<br><table width="65%"><thead><tr><th align="left">' . $langs->trans("Label") . '</th><th align="right">' . $langs->trans("Qty") . '</th></tr></thead><tbody>';
$footerorder = '</tbody></table>' . dol_print_date(dol_now(), 'dayhour') . '<br></html>';
2018-12-07 17:02:06 +01:00
$order_receipt_printer1 = "";
$order_receipt_printer2 = "";
$catsprinter1 = explode(';', $conf->global->TAKEPOS_PRINTED_CATEGORIES_1);
$catsprinter2 = explode(';', $conf->global->TAKEPOS_PRINTED_CATEGORIES_2);
foreach($invoice->lines as $line)
{
if ($line->special_code == "3") { continue;
}
$c = new Categorie($db);
$existing = $c->containing($line->fk_product, Categorie::TYPE_PRODUCT, 'id');
$result = array_intersect($catsprinter1, $existing);
$count = count($result);
if ($count > 0) {
$sql = "UPDATE " . MAIN_DB_PREFIX . "facturedet set special_code='3' where rowid=$line->rowid";
$db->query($sql);
$order_receipt_printer1.= '<tr>' . $line->product_label . '<td align="right">' . $line->qty . '</td></tr>';
}
2018-09-28 13:31:41 +02:00
}
2018-12-07 17:02:06 +01:00
foreach($invoice->lines as $line)
{
if ($line->special_code == "3") { continue;
}
$c = new Categorie($db);
$existing = $c->containing($line->fk_product, Categorie::TYPE_PRODUCT, 'id');
$result = array_intersect($catsprinter2, $existing);
$count = count($result);
if ($count > 0) {
$sql = "UPDATE " . MAIN_DB_PREFIX . "facturedet set special_code='3' where rowid=$line->rowid";
$db->query($sql);
$order_receipt_printer2.= '<tr>' . $line->product_label . '<td align="right">' . $line->qty . '</td></tr>';
}
2018-09-28 13:31:41 +02:00
}
2018-12-07 17:02:06 +01:00
$invoice->fetch($placeid);
}
2018-09-28 13:31:41 +02:00
2018-12-07 08:04:40 +01:00
// temporary ticket feature
2018-12-07 17:02:06 +01:00
if ($action == "temp" and $placeid != 0) {
include_once DOL_DOCUMENT_ROOT . '/categories/class/categorie.class.php';
// issues with special characters with jPosBoxprinting ->javascript, stringCleanCharts() temporarily fix them until to find a more elegant solution.
function stringCleanCharts($text)
{
$utf8 = array(
'/[áàâãªä]/u' => 'a',
'/[ÁÀÂÃÄ]/u' => 'A',
'/[ÍÌÎÏ]/u' => 'I',
'/[íìîï]/u' => 'i',
'/[éèêë]/u' => 'e',
'/[ÉÈÊË]/u' => 'E',
'/[óòôõºö]/u' => 'o',
'/[ÓÒÔÕÖ]/u' => 'O',
'/[úùûü]/u' => 'u',
'/[ÚÙÛÜ]/u' => 'U',
'/ç/' => 'c',
'/Ç/' => 'C',
'/ñ/' => 'n',
'/Ñ/' => 'N',
'//' => '-',
'/[\']/u' => ' ',
'/[“”«»„]/u' => ' ',
'/ /' => ' ',
);
return preg_replace(array_keys($utf8), array_values($utf8), $text);
}
$mysocname = stringCleanCharts($mysoc->name);
$mysocaddress = stringCleanCharts($mysoc->address);
$mysoctown = stringCleanCharts($mysoc->town);
$mysoczip = stringCleanCharts($mysoc->zip);
$mysocphone = stringCleanCharts($mysoc->phone);
$mysocurl = stringCleanCharts($mysoc->url);
$header_soc = '<html><center><font size="4"><b>' . $mysocname . '</b><br>' . $mysocaddress . '<br>' . $mysoczip . ' ' . $mysoctown . '</font></center><br>' . $langs->trans("Phone") . ': ' . $mysocphone . '<br>' . $mysocurl;
$header_ticket = '<br><br>' . $langs->trans("Temporary ticket") . '<br>' . $langs->trans("date") . ':<br>' . dol_print_date(dol_now(), 'dayhour') . '<br>' . $langs->trans('Place') . ' ' . $place . '<br><br><br><div width="100%" style="border-top-style: double;"></div>';
2018-12-07 17:02:06 +01:00
$body_ticket = '<table width="100%"><thead><tr><th align="left">' . $langs->trans("Label") . '</th><th align="left">' . $langs->trans("Qty") . '</th><th align="left">' . $langs->trans("Price") . '</th><th align="left">' . $langs->trans("TotalTTC") . '</th></tr></thead>';
$footer_ticket = '<br><br>' . $langs->trans("Cashier") . ': ' . $user->firstname . '<br><center>' . $langs->trans("Thanks for your coming !") . '</center></html>';
2018-12-07 17:02:06 +01:00
$ticket_printer1 = "";
$catsprinter1 = explode(';', $conf->global->TAKEPOS_PRINTED_CATEGORIES_1);
foreach($invoice->lines as $line)
{
if ($line->special_code == "3") { continue;
}
$c = new Categorie($db);
$existing = $c->containing($line->fk_product, Categorie::TYPE_PRODUCT, 'id');
$result = array_intersect($catsprinter1, $existing);
$count = count($result);
if ($count > 0) {
$sql = "UPDATE " . MAIN_DB_PREFIX . "facturedet set special_code='3' where rowid=$line->rowid";
$db->query($sql);
$ticket_printer1.= '<tbody><tr><td align="left">' . $line->product_label . '</td><td align="left">' . $line->qty . '</td><td align="left">' . $line->total_ttc / $line->qty . '</td><td align="left">' . $line->total_ttc . '</td></tr></tbody>';
$ticket_total = '</table><div width="100%" style="border-top-style: double;"></div><table align="right"><tr><th>' . $langs->trans("TotalHT") . ': ' . price($invoice->total_ht, 1, '', 1, -1, -1, $conf->currency) . '</th></tr><tr><th>' . $langs->trans("TotalVAT") . ': ' . price($invoice->total_tva, 1, '', 1, -1, -1, $conf->currency) . '</th></tr><tr><th>' . $langs->trans("TotalTTC") . ': ' . price($invoice->total_ttc, 1, '', 1, -1, -1, $conf->currency) . '</th></tr></tbody></table>';
}
}
$invoice->fetch($placeid);
2018-09-28 13:31:41 +02:00
}
?>
<style>
.selected {
2018-12-17 22:43:02 +01:00
font-weight: bold;
2018-09-28 13:31:41 +02:00
}
.order {
2018-12-07 17:02:06 +01:00
color: limegreen;
2018-09-28 13:31:41 +02:00
}
</style>
<script language="javascript">
var selectedline=0;
var selectedtext="";
$(document).ready(function(){
$('table tbody tr').click(function(){
2018-12-07 17:02:06 +01:00
$('table tbody tr').removeClass("selected");
2018-09-28 13:31:41 +02:00
$(this).addClass("selected");
2018-12-07 17:02:06 +01:00
if (selectedline==this.id) return; // If is already selected
2018-12-07 08:04:40 +01:00
else selectedline=this.id;
2018-09-28 13:31:41 +02:00
selectedtext=$('#'+selectedline).find("td:first").html();
});
<?php
2018-12-07 08:04:40 +01:00
2018-12-07 17:02:06 +01:00
if ($action == "order" and $order_receipt_printer1 != "") {
?>
$.ajax({
type: "POST",
2018-12-15 16:12:47 +01:00
url: 'http://<?php print $conf->global->TAKEPOS_PRINT_SERVER; ?>:8111/print',
2018-12-07 17:02:06 +01:00
data: '<?php
print $headerorder . $order_receipt_printer1 . $footerorder; ?>'
});
<?php
2018-09-28 13:31:41 +02:00
}
2018-12-07 08:04:40 +01:00
2018-12-07 17:02:06 +01:00
if ($action == "order" and $order_receipt_printer2 != "") {
?>
$.ajax({
type: "POST",
2018-12-15 16:12:47 +01:00
url: 'http://<?php print $conf->global->TAKEPOS_PRINT_SERVER; ?>:8111/print2',
2018-12-07 17:02:06 +01:00
data: '<?php
print $headerorder . $order_receipt_printer2 . $footerorder; ?>'
});
<?php
}
2018-12-07 08:04:40 +01:00
2018-12-07 17:02:06 +01:00
if ($action == "search") {
?>
$('#search').focus();
<?php
}
2018-12-07 08:04:40 +01:00
2018-09-28 13:31:41 +02:00
?>
});
$(document).ready(function(){
$('table tbody tr').click(function(){
2018-12-07 17:02:06 +01:00
$('table tbody tr').removeClass("selected");
$(this).addClass("selected");
2018-12-07 17:02:06 +01:00
if (selectedline==this.id) return; // If is already selected
2018-12-07 08:04:40 +01:00
else selectedline=this.id;
selectedtext=$('#'+selectedline).find("td:first").html();
});
2018-09-28 13:31:41 +02:00
<?php
2018-12-07 08:04:40 +01:00
2018-12-07 17:02:06 +01:00
if ($action == "temp" and $ticket_printer1 != "") {
?>
$.ajax({
type: "POST",
2018-12-15 16:12:47 +01:00
url: 'http://<?php print $conf->global->TAKEPOS_PRINT_SERVER; ?>:8111/print',
2018-12-07 17:02:06 +01:00
data: '<?php
print $header_soc . $header_ticket . $body_ticket . $ticket_printer1 . $ticket_total . $footer_ticket; ?>'
});
<?php
2018-09-28 13:31:41 +02:00
}
2018-12-07 17:02:06 +01:00
if ($action == "search") {
?>
$('#search').focus();
<?php
2018-09-28 13:31:41 +02:00
}
2018-12-07 08:04:40 +01:00
2018-09-28 13:31:41 +02:00
?>
});
function Print(id){
2018-12-07 17:02:06 +01:00
$.colorbox({href:"receipt.php?facid="+id, width:"40%", height:"90%", transition:"none", iframe:"true", title:"<?php
echo $langs->trans("PrintTicket"); ?>"});
2018-09-28 13:31:41 +02:00
}
function TakeposPrinting(id){
2018-12-07 17:02:06 +01:00
var receipt;
$.get("receipt.php?facid="+id, function(data, status){
2018-11-26 16:09:05 +01:00
receipt=data.replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '');
2018-12-07 17:02:06 +01:00
$.ajax({
type: "POST",
2018-12-15 16:12:47 +01:00
url: 'http://<?php print $conf->global->TAKEPOS_PRINT_SERVER; ?>:8111/print',
2018-12-07 17:02:06 +01:00
data: receipt
});
2018-09-28 13:31:41 +02:00
});
}
</script>
<?php
2018-12-07 21:33:40 +01:00
print '<div class="div-table-responsive-no-min invoice">';
2018-09-28 13:31:41 +02:00
print '<table id="tablelines" class="noborder noshadow" width="100%">';
print '<tr class="liste_titre nodrag nodrop">';
2018-12-07 08:04:40 +01:00
print '<td class="linecoldescription">' . $langs->trans('Description') . '</td>';
print '<td class="linecolqty" align="right">' . $langs->trans('Qty') . '</td>';
print '<td class="linecolht" align="right">' . $langs->trans('TotalHTShort') . '</td>';
2018-09-28 13:31:41 +02:00
print "</tr>\n";
2018-12-07 08:04:40 +01:00
2018-12-07 17:02:06 +01:00
if ($placeid > 0) {
foreach($invoice->lines as $line)
{
print '<tr class="drag drop oddeven';
if ($line->special_code == "3") { print ' order';
}
print '" id="' . $line->rowid . '">';
print '<td>' . $line->product_label . $line->desc . '</td>';
print '<td align="right">' . $line->qty . '</td>';
print '<td align="right">' . price($line->total_ttc) . '</td>';
print '</tr>';
}
2018-09-28 13:31:41 +02:00
}
2018-12-07 08:04:40 +01:00
2018-09-28 13:31:41 +02:00
print '</table>';
2018-12-07 08:04:40 +01:00
2018-09-28 13:31:41 +02:00
print '<p style="font-size:120%;" align="right"><b>'.$langs->trans('TotalTTC');
2018-12-15 16:08:58 +01:00
2018-09-28 13:31:41 +02:00
if($conf->global->TAKEPOS_BAR_RESTAURANT) print " ".$langs->trans('Place')." ".$place;
2018-12-15 16:08:58 +01:00
2018-09-28 13:31:41 +02:00
print ': '.price($invoice->total_ttc, 1, '', 1, - 1, - 1, $conf->currency).'&nbsp;</b></p>';
if ($invoice->socid != $conf->global->CASHDESK_ID_THIRDPARTY)
{
2018-09-28 13:31:41 +02:00
$soc = new Societe($db);
if ($invoice->socid > 0) $soc->fetch($invoice->socid);
else $soc->fetch($conf->global->CASHDESK_ID_THIRDPARTY);
print '<p style="font-size:120%;" align="right">';
print $langs->trans("Customer").': '.$soc->name;
print '</p>';
}
if ($action=="valid")
{
2018-12-02 14:31:45 +01:00
print '<p style="font-size:120%;" align="center"><b>'.$invoice->ref." ".$langs->trans('BillShortStatusValidated').'</b></p>';
2018-12-01 19:55:35 +01:00
if ($conf->global->TAKEPOSCONNECTOR) print '<center><button type="button" onclick="TakeposPrinting('.$placeid.');">'.$langs->trans('PrintTicket').'</button><center>';
2018-09-28 13:31:41 +02:00
else print '<center><button type="button" onclick="Print('.$placeid.');">'.$langs->trans('PrintTicket').'</button><center>';
}
2018-12-07 08:04:40 +01:00
if ($action == "search")
{
2018-12-07 17:02:06 +01:00
print '<center>
2018-12-07 08:04:40 +01:00
<input type="text" id="search" name="search" onkeyup="Search2();" name="search" style="width:80%;font-size: 150%;" placeholder=' . $langs->trans('Search') . '
2018-09-28 13:31:41 +02:00
</center>';
}
2018-12-07 08:04:40 +01:00
2018-09-28 13:31:41 +02:00
print '</div>';