Datenstand V1.0

This commit is contained in:
2016-07-05 20:38:34 +00:00
parent 5a75f609e5
commit 5ea463a308
1027 changed files with 141480 additions and 0 deletions

22
inhalte/angebot_add.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
if ("2" == $_POST['step']) {
$sql = 'INSERT INTO '.PREFIX.'_Angebote (Jahr, ID, Kontakt_ID, Admin_ID, MwSt, Datum) VALUES (YEAR(CURDATE()), NULL, "'.$_POST['Kontakt_ID'].'", "'.$_POST['Admin_ID'].'", "'.$_POST['MwSt'].'", CURDATE())';
$stmt = $db->prepare($sql);
if (!$stmt) {
die ('Datensatz konnte nicht gespeichert werden: '.$db->error);
}
if (!$stmt->execute()) {
die ('Datensatz konnte nicht gespeichert werden: '.$stmt->error);
}
$sql = 'SELECT last_insert_id() AS last';
$result = $db->query($sql);
$nt = $result->fetch_assoc();
$date = getdate();
unset($_POST);
$Jahr = $date['year'];
$ID = $nt['last'];
include "inhalte/angebot_edit.php";
} else {
include "inhalte/add.php";
}
?>