helaas uw sessie is verlopen"; exit; } include ('config.ini'); include ('soort_shop.php'); include ('manager/soort_shop.php'); if(isset($_POST['submit']) && ($_POST['submit']=='wijzig aantal')) { $ID = $_POST['ID']; $aantal = $_POST['aantal']; $aantstaffel = $_POST['aantstaffel']; $wijzig = $_POST['wijzig']; $cancel= $_POST['cancel']; } if(isset($_POST['submit']) && ($_POST['submit']=='winkelwagen leeg maken')) { $ID = $_POST['ID']; $aantal = $_POST['aantal']; $aantstaffel = $_POST['aantstaffel']; $wijzig = $_POST['wijzig']; $cancel= $_POST['cancel']; } if ($cancel=='1'){ $query= "delete from kassa WHERE sessie = ".$sessie; $result =mysql_query($query) or die('Error, update winkelwagen mislukt: ' . mysql_error() ); } if ($wijzig=='1'){ if ($aantal== 0) { if ($aantstaffel== 0){ $query= "delete from kassa WHERE sessie = ".$sessie." && ID= ".$ID; $result =mysql_query($query) or die('Error, update winkelwagen mislukt: ' . mysql_error() ); } } else { $query= "update kassa set aantal = ".$aantal." WHERE sessie = ".$sessie." && ID= ".$ID; $result =mysql_query($query) or die('Error, update winkelwagen mislukt: ' . mysql_error() ); } } ?> "; print "
K A S S A
"; //*************************************************************************************************************************** // opbouw tabel print "
"; print "
Ticket nr : ".$sessie."
"; print ""; print ""; print ""; print ""; print ""; print ""; // opbouw tabel //************************************************************************************************************************** $query= "SELECT * FROM kassa where sessie =". $sessie ; $result =mysql_query($query) or die('
Error, kan de tabel winkelwagen niet lezen :
' . mysql_error() ); while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { foreach ($line as $col_value) { if ($counter==0) { $ID=$col_value; } if ($counter==1) { $sessieB=$col_value; } if ($counter==2) { $product=$col_value; } if ($counter==3) { $shop=$col_value; } if ($counter==4) { $aantal=$col_value; } if ($counter==5) { $klant=$col_value; } if ($counter==6) { $datbest=$col_value; } if ($counter==7) { $datbeta=$col_value; } if ($counter==8) { $datfact=$col_value; } if ($counter==9) { $datgele=$col_value; } $counter++; } $counter=0; //************************************************************************************************************************ // per besteld artikel gegevens opvragen en tonen $query= "SELECT * FROM ".$shop." where ID ='".addslashes($product)."'"; $result2 =mysql_query($query) or die('
Error, kan de tabel '.$shop.' niet lezen :
' . mysql_error() ); while ($line = mysql_fetch_array($result2, MYSQL_ASSOC)) { foreach ($line as $col_value) { if ($counter==0) { $codeb=$col_value; } if ($counter==1) { $handeling=$col_value; } if ($counter==2) { $domein=$col_value; } if ($counter==3) { $klant=$col_value; } if ($counter==4) { $status=$col_value; } if ($counter==5) { $vrkprijs=$col_value; } $counter++; } $counter=0; // handeling en status opvragen $query= "SELECT handeling FROM handelingen where ID ='".addslashes($handeling)."'"; $result3 =mysql_query($query) or die('
Error, kan de tabel '.$shop.' niet lezen :
' . mysql_error() ); while ($line = mysql_fetch_array($result3, MYSQL_ASSOC)) { foreach ($line as $col_value) { if ($counter==0) { $handeling=$col_value; } $counter++; } $counter=0; } $query= "SELECT status FROM status where ID ='".addslashes($status)."'"; $result3 =mysql_query($query) or die('
Error, kan de tabel '.$shop.' niet lezen :
' . mysql_error() ); while ($line = mysql_fetch_array($result3, MYSQL_ASSOC)) { foreach ($line as $col_value) { if ($counter==0) { $status=$col_value; } $counter++; } $counter=0; } // einde handeling en status opvragen $prijs = $aantal*$vrkprijs; $vrkprijss = number_format($vrkprijs, 2, ',', ''); $prijss = number_format($prijs, 2, ',', ''); $subtotaal = $subtotaal + $prijs; if ($shop == $tabel1){$struktuur = 'shop1';} if ($shop == $tabel2){$struktuur = 'shop2';} if ($shop == $tabel3){$struktuur = 'shop3';} print ""; print ""; print ""; print ""; } // einde per besteld artikel gegevens opvragen en tonen // ************************************************************************************************************************** } // terug naar lijst kassa /* if ($gewichttotaal <= '20'){$gewichtsklasse= '1';} if ($gewichttotaal >= '20'){ if ($gewichttotaal <= '50'){$gewichtsklasse= '2';}} if ($gewichttotaal >= '50'){ if ($gewichttotaal <= '100'){$gewichtsklasse= '3';}} if ($gewichttotaal >= '100'){ if ($gewichttotaal <= '250'){$gewichtsklasse= '4';}} if ($gewichttotaal >= '250'){ if ($gewichttotaal <= '500'){$gewichtsklasse= '5';}} if ($gewichttotaal >= '500'){ if ($gewichttotaal <= '3000'){$gewichtsklasse= '6';}} if ($gewichttotaal >= '3000'){ $gewichtsklasse= '7';} if ($gewichtsklasse == '1'){ $verzendkosten = 0.44;} if ($gewichtsklasse == '2'){ $verzendkosten = 0.88;} if ($gewichtsklasse == '3'){ $verzendkosten = 1.32;} if ($gewichtsklasse == '4'){ $verzendkosten = 1.76;} if ($gewichtsklasse == '5'){ $verzendkosten = 2.20;} if ($gewichtsklasse == '6'){ $verzendkosten = 2.75;} if ($gewichtsklasse == '7'){ $verzendkosten = '0,00';} */ $verzendkosten = '0,00'; if ($gewichttotaal <= '20'){$gewichttotaal='minder dan 20';} $alles = $subtotaal ; $totaal = $subtotaal + $verzendkosten ; $btw = $subtotaal * 0.19; $subtotaal = number_format($subtotaal, 2, ',', ''); $totaal = number_format($totaal, 2, ',', ''); $btw = number_format($btw, 2, ',', ''); $verzendkosten = number_format($verzendkosten, 2, ',', ''); print ""; //print "
DomeinHandelingStatusprijs Aantal Jaren

".$domein."
".$handeling."".$status."
"; print ""; print ""; print "
€ ".$vrkprijss." = ".$prijss; print "


"; print ""; print ""; print ""; print ""; print ""; print ""; print ""; print ""; print ""; Print "
Subtotaal€ ".$subtotaal."

Totaal€ ".$totaal."


BTW in deze rekening€ ".$btw."

"; print ""; //Print " naar Stap 3 uw factuur

"; print ""; print ""; print ""; print ""; print ""; print ""; ?>
"; print ""; print "
"; print "
"; print ""; print "
"; print "
"; print ""; print ""; print ""; print "
"; print "