|
@ -1,7 +1,9 @@ |
|
|
<?php |
|
|
<?php |
|
|
session_start(); |
|
|
session_start(); |
|
|
|
|
|
|
|
|
$CONVERT_CMD = "/usr/bin/pdftk"; |
|
|
|
|
|
|
|
|
require "config.php"; |
|
|
|
|
|
|
|
|
|
|
|
#$CONVERT_CMD = "/usr/bin/pdftk";
|
|
|
|
|
|
|
|
|
require_once('TCPDF/tcpdf.php'); |
|
|
require_once('TCPDF/tcpdf.php'); |
|
|
|
|
|
|
|
@ -199,6 +201,11 @@ function convert($row) { |
|
|
|
|
|
|
|
|
function calcSum(){ |
|
|
function calcSum(){ |
|
|
$sum =0; |
|
|
$sum =0; |
|
|
|
|
|
if (!isset($_POST['amount'])) { |
|
|
|
|
|
echo "wrong parameters"; |
|
|
|
|
|
die; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
foreach ($_POST['amount'] as $val){ |
|
|
foreach ($_POST['amount'] as $val){ |
|
|
var_dump($val); |
|
|
var_dump($val); |
|
|
$sum += floatval(str_replace(",",".",$val)); |
|
|
$sum += floatval(str_replace(",",".",$val)); |
|
|