Skip to content

Instantly share code, notes, and snippets.

/panier.php Secret

Created July 20, 2016 06:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/e04a3a3ccaefc23b82b6f18211a6290c to your computer and use it in GitHub Desktop.
Save anonymous/e04a3a3ccaefc23b82b6f18211a6290c to your computer and use it in GitHub Desktop.
<?php
if(!(isset($_SESSION['panier']))){
$panier=array();
}
else{
$panier=$_SESSION['panier'];
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
html { font-family:Calibri, Arial, Helvetica, sans-serif; font-size:11pt; background-color:white }
table { border-collapse:collapse; page-break-after:always }
.gridlines td { border:1px dotted black }
.b { text-align:center }
.e { text-align:center }
.f { text-align:right }
.inlineStr { text-align:left }
.n { text-align:right }
.s { text-align:left }
td.style5 { vertical-align:middle; text-align:left; padding-right:0px; border-bottom:2px solid #000000 !important; border-top:2px solid #000000 !important; border-left:3px solid #000000 !important; border-right:1px dashed #000000 !important; font-weight:bold; color:#000000; font-family:'Calibri'; font-size:11pt; background-color:#D8D8D8 }
td.style6 { vertical-align:middle; border-bottom:none #000000; border-top:none #000000; border-left:none #000000; border-right:none #000000; color:#000000; font-family:'Calibri'; font-size:11pt; background-color:white }
td.style7 { vertical-align:middle; text-align:left; padding-right:0px; border-bottom:3px solid #000000 !important; border-top:2px solid #000000 !important; border-left:2px solid #000000 !important; border-right:1px dashed #000000 !important; font-weight:bold; color:#000000; font-family:'Calibri'; font-size:11pt; background-color:#D8D8D8 }
td.style8 { vertical-align:middle; text-align:left; padding-right:0px; border-bottom:none #000000; border-top:2px solid #000000 !important; border-left:3px solid #000000 !important; border-right:1px dashed #000000 !important; font-weight:bold; color:#000000; font-family:'Calibri'; font-size:11pt; background-color:#D8D8D8 }
td.style9 { vertical-align:middle; text-align:left; padding-right:0px; border-bottom:none #000000; border-top:2px solid #000000 !important; border-left:2px solid #000000 !important; border-right:1px dashed #000000 !important; font-weight:bold; color:#000000; font-family:'Calibri'; font-size:11pt; background-color:#D8D8D8 }
td.style40 { vertical-align:middle; text-align:center; border-bottom:1px solid #000000 !important; border-top:3px solid #000000 !important; border-left:1px dashed #BFBFBF !important; border-right:1px dashed #BFBFBF !important; font-weight:bold; color:#000000; font-family:'Calibri'; font-size:11pt; background-color:white }
td.style41 { vertical-align:middle; text-align:center; border-bottom:0px solid #000000 !important; border-top:3px solid #000000 !important; border-left:0px dashed #BFBFBF !important; border-right:0px solid #000000 !important; font-weight:bold; color:#000000; font-family:'Calibri'; font-size:11pt; background-color:white }
td.style42 { vertical-align:middle; text-align:center; border-bottom:0px solid #000000 !important; border-top:3px solid #000000 !important; border-left:0px dashed #BFBFBF !important; border-right:0px solid #000000 !important; font-weight:bold; color:#000000; font-family:'Calibri'; font-size:11pt; background-color:white }
td.style43 { vertical-align:middle; text-align:center; border-bottom:none #000000; border-top:2px solid #000000 !important; border-left:1px dashed #000000 !important; border-right:1px dashed #000000 !important; font-weight:bold; color:#000000; font-family:'Calibri'; font-size:11pt; background-color:#D8D8D8 }
td.style44 { vertical-align:middle; text-align:center; border-bottom:none #000000; border-top:2px solid #000000 !important; border-left:1px dashed #000000 !important; border-right:2px solid #000000 !important; font-weight:bold; color:#000000; font-family:'Calibri'; font-size:11pt; background-color:#D8D8D8 }
td.style45 { vertical-align:middle; text-align:center; border-bottom:3px solid #000000 !important; border-top:2px solid #000000 !important; border-left:1px dashed #000000 !important; border-right:1px dashed #000000 !important; font-weight:bold; color:#000000; font-family:'Calibri'; font-size:11pt; background-color:#D8D8D8 }
td.style46 { vertical-align:middle; text-align:center; border-bottom:3px solid #000000 !important; border-top:2px solid #000000 !important; border-left:1px dashed #000000 !important; border-right:2px solid #000000 !important; font-weight:bold; color:#000000; font-family:'Calibri'; font-size:11pt; background-color:#D8D8D8 }
td.style47 { vertical-align:middle; text-align:center; border-bottom:3px solid #000000 !important; border-top:2px solid #000000 !important; border-left:1px dashed #000000 !important; border-right:3px solid #000000 !important; font-weight:bold; color:#000000; font-family:'Calibri'; font-size:11pt; background-color:#D8D8D8 }
td.style48 { vertical-align:middle; text-align:center; border-bottom:none #000000; border-top:3px solid #000000 !important; border-left:3px solid #000000 !important; border-right:none #000000 }
td.style49 { vertical-align:middle; text-align:center; border-bottom:3px #000000; border-top:3px solid #000000 !important; border-left:none #000000; border-right:none #000000; margin-left:3px }
td.style52 { vertical-align:middle; text-align:center; border-bottom:none #000000; border-top:3px solid #000000 !important; border-left:2px solid #000000 !important; border-right:none #000000; font-weight:bold; color:#000000; font-family:'Calibri'; font-size:19pt; background-color:#D8D8D8 }
td.style54 { vertical-align:middle; text-align:center; border-bottom:none #000000; border-top:3px solid #000000 !important; border-left:none #000000; border-right:2px solid #000000 !important; font-weight:bold; color:#000000; font-family:'Calibri'; font-size:19pt; background-color:#D8D8D8 }
td.style58 { vertical-align:middle; text-align:center; border-bottom:none #000000; border-top:3px solid #000000 !important; border-left:none #000000; border-right:1px dashed #000000 !important; font-weight:bold; color:#000000; font-family:'Calibri'; font-size:11pt; background-color:#D8D8D8 }
td.style59 { vertical-align:middle; text-align:center; border-bottom:none #000000; border-top:3px solid #000000 !important; border-left:1px dashed #000000 !important; border-right:1px dashed #000000 !important; font-weight:bold; color:#000000; font-family:'Calibri'; font-size:11pt; background-color:#D8D8D8 }
td.style60 { vertical-align:middle; text-align:center; border-bottom:2px solid #000000 !important; border-top:none #000000; border-left:none #000000; border-right:1px dashed #000000 !important; font-weight:bold; color:#000000; font-family:'Calibri'; font-size:11pt; background-color:#D8D8D8 }
td.style61 { vertical-align:middle; text-align:center; border-bottom:2px solid #000000 !important; border-top:none #000000; border-left:1px dashed #000000 !important; border-right:1px dashed #000000 !important; font-weight:bold; color:#000000; font-family:'Calibri'; font-size:11pt; background-color:#D8D8D8 }
td.style62 { vertical-align:middle; text-align:center; border-bottom:1px solid #000000 !important; border-top:3px solid #000000 !important; border-left:1px dashed #000000 !important; border-right:3px solid #000000 !important; font-weight:bold; color:#000000; font-family:'Calibri'; font-size:11pt; background-color:#D8D8D8 }
td.style63 { vertical-align:middle; text-align:center; border-bottom:2px solid #000000 !important; border-top:1px solid #000000 !important; border-left:1px dashed #000000 !important; border-right:3px solid #000000 !important; font-weight:bold; color:#000000; font-family:'Calibri'; font-size:11pt; background-color:#D8D8D8 }
td.style64 { vertical-align:middle; text-align:center; border-bottom:2px solid #000000 !important; border-top:2px solid #000000 !important; border-left:1px dashed #000000 !important; border-right:1px dashed #000000 !important; font-weight:bold; color:#000000; font-family:'Calibri'; font-size:11pt; background-color:#D8D8D8 }
td.style65 { vertical-align:middle; text-align:center; border-bottom:2px solid #000000 !important; border-top:2px solid #000000 !important; border-left:1px dashed #000000 !important; border-right:2px solid #000000 !important; font-weight:bold; color:#000000; font-family:'Calibri'; font-size:11pt; background-color:#D8D8D8 }
td.style66 { vertical-align:middle; text-align:right; padding-right:0px; border-bottom:2px solid #000000 !important; border-top:2px solid #000000 !important; border-left:2px solid #000000 !important; border-right:1px dashed #000000 !important; font-weight:bold; color:#000000; font-family:'Calibri'; font-size:11pt; background-color:#D8D8D8 }
td.style67 { vertical-align:middle; text-align:left; padding-right:0px; border-bottom:2px solid #000000 !important; border-top:2px solid #000000 !important; border-left:1px dashed #000000 !important; border-right:1px dashed #000000 !important; font-weight:bold; color:#000000; font-family:'Calibri'; font-size:11pt; background-color:#D8D8D8 }
td.style68 { vertical-align:middle; text-align:center; border-bottom:2px solid #000000 !important; border-top:2px solid #000000 !important; border-left:1px dashed #000000 !important; border-right:3px solid #000000 !important; font-weight:bold; color:#000000; font-family:'Calibri'; font-size:11pt; background-color:#D8D8D8 }
table.sheet0 col.col0 { width:88.78888787pt }
table.sheet0 col.col1 { width:45.41111059pt }
table.sheet0 col.col2 { width:45.41111059pt }
table.sheet0 col.col3 { width:72.52222139pt }
table.sheet0 col.col4 { width:49.47777721pt }
table.sheet0 col.col5 { width:32.53333296pt }
table.sheet0 col.col6 { width:72.52222139pt }
table.sheet0 col.col7 { width:45.41111059pt }
table.sheet0 col.col8 { width:45.41111059pt }
table.sheet0 col.col9 { width:51.51111052pt }
table.sheet0 col.col10 { width:49.47777721pt }
table.sheet0 col.col11 { width:33.21111072999999pt }
table.sheet0 tr { height:15pt }
table.sheet0 tr.row0 { height:33.6pt }
table.sheet0 tr.row1 { height:33.6pt }
table.sheet0 tr.row2 { height:33.6pt }
table.sheet0 tr.row3 { height:33.6pt }
table.sheet0 tr.row4 { height:34.9pt }
table.sheet0 tr.row5 { height:25.15pt }
table.sheet0 tr.row6 { height:25.15pt }
table.sheet0 tr.row7 { height:25.15pt }
table.sheet0 tr.row8 { height:25.15pt }
table.sheet0 tr.row9 { height:25.9pt }
table.sheet0 tr.row10 { height:25.9pt }
table.sheet0 tr.row11 { height:25.9pt }
table.sheet0 tr.row12 { height:25.9pt }
table.sheet0 tr.row13 { height:25.9pt }
table.sheet0 tr.row14 { height:25.9pt }
table.sheet0 tr.row15 { height:25.9pt }
table.sheet0 tr.row16 { height:25.9pt }
table.sheet0 tr.row17 { height:34.9pt }
table.sheet0 tr.row18 { height:25.15pt }
table.sheet0 tr.row19 { height:25.15pt }
table.sheet0 tr.row20 { height:25.15pt }
table.sheet0 tr.row21 { height:25.15pt }
table.sheet0 tr.row22 { height:25.9pt }
table.sheet0 tr.row23 { height:25.9pt }
table.sheet0 tr.row24 { height:25.9pt }
table.sheet0 tr.row25 { height:25.9pt }
table.sheet0 tr.row26 { height:25.9pt }
table.sheet0 tr.row27 { height:25.9pt }
table.sheet0 tr.row28 { height:25.9pt }
table.sheet0 tr.row29 { height:25.9pt }
table.sheet0 tr.row30 { height:34.9pt }
table.sheet0 tr.row31 { height:25.15pt }
table.sheet0 tr.row32 { height:25.15pt }
table.sheet0 tr.row33 { height:25.15pt }
table.sheet0 tr.row34 { height:25.15pt }
table.sheet0 tr.row35 { height:25.9pt }
table.sheet0 tr.row36 { height:25.9pt }
table.sheet0 tr.row37 { height:25.9pt }
table.sheet0 tr.row38 { height:25.9pt }
table.sheet0 tr.row39 { height:25.9pt }
table.sheet0 tr.row40 { height:25.9pt }
table.sheet0 tr.row41 { height:25.9pt }
table.sheet0 tr.row42 { height:25.9pt }
</style>
</head>
<body>
<style>
@page { left-margin: 0.7086614173228347in; right-margin: 0.7086614173228347in; top-margin: 0.7874015748031497in; bottom-margin: 0.7874015748031497in; }
body { left-margin: 0.7086614173228347in; right-margin: 0.7086614173228347in; top-margin: 0.7874015748031497in; bottom-margin: 0.7874015748031497in; }
</style>
<div>
<form method="post" action="formular2.php" >
<table border="0" cellpadding="0" cellspacing="0" id="sheet0" class="sheet0 gridlines" align="center" width="98%">
<col class="col0">
<col class="col1">
<col class="col2">
<col class="col3">
<col class="col4">
<col class="col5">
<col class="col6">
<col class="col7">
<col class="col8">
<col class="col9">
<col class="col10">
<col class="col11">
<tbody> <!--<img style ="margin-top: 1px;" src='bilder/logo3.png' height="47" >-->
<tr class="row0">
<td class="column0 style48 s style49" colspan="3"><img style =" height=32" src='images/logo.gif'></td>
<td class="column3 style52 s style54" colspan="6">Kantteilbestellung</td>
<td class="column9 style58 s style59" colspan="2">Seite: </td>
<td class="column11 style62 s style62">/</td>
</tr>
<tr class="row2">
<td class="column0 style5 s">Bauvorhaben:</td>
<td class="column1 style64 s style65" colspan="6"><input type="text" name="bauvorhaben" size="40" maxlength="40" required="required"></td>
<td class="column7 style66 s style67" colspan="2">Auftrags-Nr.:</td>
<td class="column9 style64 s style68" colspan="3"><input type="text" name="auftrags_nr" size="10" maxlength="8" required="required"></td>
</tr>
<tr class="row3">
<td class="column0 style8 s">Fassade:</td>
<td class="column1 style43 s style44" colspan="2"><input type="text" name="fassade" size="10" maxlength="6"required="required"></td>
<td class="column3 style9 s">Bearbeiter:</td>
<td class="column4 style43 s style44" colspan="2"><input type="text" name="bearbeiter" size="15" maxlength="13"required="required"></td>
<td class="column6 style7 s">Datum:</td>
<td class="column7 style45 n style46" colspan="2"><input type="text" name="datum" size="10" maxlength="8" required="required"></td>
<td class="column9 style7 s">Termin:</td>
<td class="column10 style45 n style47" colspan="2"><input type="text" name="termin" size="10" maxlength="8" required="required"></td>
</tr>
<tr class="row4">
<td class="column1 style40 n style42" colspan="2"></td>
<td class="column4 style40 n style41" colspan="2"></td>
<td class="column7 style40 n style42" colspan="2"></td>
</tr>
</tr>
</tbody>
</table>
<input type="submit" name="produit_erstellen" value="Abschiken"> <!--Hier wenn man auf Abschicken drückt, sollte die pdf Datei erzeugen werden-->
<a>oder</a>
<input type="submit" name="produit_erstellen" value="Speichern"> <!--beim Abbrechen Auswahl sicher-->
</form>
</body>
</html>
</div>
<table border="4">
<tr>
<th>Hier ist die Liste Ihrer ausgewählten Kantteile</th>
</tr>
<?php
$total=0;
for($i=0;$i<count($panier);$i++){
$total=$total+ $panier[$i]['id_pho']; //zeile 186
//var_dump($_POST);
?>
<tr>
<td><?php echo($panier[$i]['id_pho']) ?></td> <!--zeile 195-->
<td><a href="supprimerdupanier.php?index=<?php echo($i)?>">Löschen</a></td>
</tr>
<?php
}
?>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment