Ersetzen der FPDF-Library durch TCPDF und Code-Formatierung

This commit is contained in:
2016-07-06 22:04:12 +00:00
parent 5665bcbd3b
commit 715cb62aa9
515 changed files with 110799 additions and 24957 deletions

View File

@@ -1,15 +1,15 @@
<?php
$sql = "SELECT * FROM ".PREFIX."_Artikel WHERE ID = \"".$_POST['Art_ID']."\";";
$result = $db->query($sql);
$nt = $result->fetch_assoc();
$sql = "INSERT INTO ".PREFIX."_".$t_pos."_Pos (ID, Jahr, ".$t_pos."_ID, Position, Anzahl, Bezeichnung, Preis, Feld1, Feld2, Feld3, Feld4, Feld5) VALUES (NULL, \"".$Jahr."\", \"".$ID."\", \"".$_POST['Position']."\", \"".$_POST['Anzahl']."\", \"".$nt['Bezeichnung']."\", \"".$nt['Preis']."\", \"".addslashes($nt['Feld1'])."\", \"".$nt['Feld2']."\", \"".$nt['Feld3']."\", \"".$nt['Feld4']."\", \"".$nt['Feld5']."\")";
$stmt = $db->prepare($sql);
if (!$stmt) {
die ('Datensatz konnte nicht angelegt werden: '.$db->error);
}
if (!$stmt->execute()) {
die ('Datensatz konnte nicht angelegt werden: '.$stmt->error);
}
?>
<?php
$sql = "SELECT * FROM " . PREFIX . "_Artikel WHERE ID = \"" . $_POST['Art_ID'] . "\";";
$result = $db->query($sql);
$nt = $result->fetch_assoc();
$sql = "INSERT INTO " . PREFIX . "_" . $t_pos . "_Pos (ID, Jahr, " . $t_pos . "_ID, Position, Anzahl, Bezeichnung, Preis, Feld1, Feld2, Feld3, Feld4, Feld5) VALUES (NULL, \"" . $Jahr . "\", \"" . $ID . "\", \"" . $_POST['Position'] . "\", \"" . $_POST['Anzahl'] . "\", \"" . $nt['Bezeichnung'] . "\", \"" . $nt['Preis'] . "\", \"" . addslashes($nt['Feld1']) . "\", \"" . $nt['Feld2'] . "\", \"" . $nt['Feld3'] . "\", \"" . $nt['Feld4'] . "\", \"" . $nt['Feld5'] . "\")";
$stmt = $db->prepare($sql);
if (!$stmt)
{
die ('Datensatz konnte nicht angelegt werden: ' . $db->error);
}
if (!$stmt->execute())
{
die ('Datensatz konnte nicht angelegt werden: ' . $stmt->error);
}