Advertisement
Guest User

css blank page

a guest
Mar 30th, 2013
392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 13.78 KB | None | 0 0
  1. <?
  2. include "dblogin.php";
  3. $huurid=$_GET['huurid'];
  4. $fietstype=$_GET['fietstype'];
  5. $subtype=$_GET['subid'];
  6. $naam=$_GET['naam'];
  7. $huurdatum=$_GET['huurdatum'];
  8. $postcodehuisnummer=$_GET['postcodehuisnummer'];
  9. ?>
  10.  
  11. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  12. <html xmlns="http://www.w3.org/1999/xhtml">
  13. <head>
  14. <SCRIPT language=JavaScript>
  15. window.print();
  16. </SCRIPT>
  17. <style type="text/css" media="all">@import "styleprint.css";</style>
  18. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  19. <title>Vriewieler orderbon</title>
  20. </head>
  21.    
  22. <body TEXT="#336699">
  23.  
  24. <div id="container">
  25.    <div id="header">
  26.  
  27. <p><img src="images/kop.png" alt="Kop" class="kop"/></p>
  28.    
  29. <p align="center"><strong><span class="stijl1">Fietshuur order, <?echo date("d-m-Y H:i", time());?></span></strong></p>
  30. </div>
  31. <br>
  32. <table width="80%">
  33. <?    
  34.   $query20="SELECT * FROM huur WHERE ID2 = $huurid";
  35.     $result20=mysql_query($query20) or die ("klantgegevens niet kunnen ophalen. Fout: ".mysql_error());
  36.     while ($row20=mysql_fetch_array($result20))
  37.     {
  38.     $naam=$row20['naam'];
  39.     $postcodehuisnummer=$row20['Postcodehuisnummer'];
  40.     }
  41. ?>
  42. <td><strong><span class="stijl1">  Klantnaam: <?echo $naam;?></span></strong><br><tr>
  43. <td>  <span class="stijl1">  Postcode + huisnummer: <?echo $postcodehuisnummer;?></span><br><tr>
  44. <td>  <span class="stijl1">  Huurdatum: <?echo date("d-m-Y", time());?></span>
  45. </table>
  46.  
  47. <div id="body">
  48.    
  49.  <table width="100%" border="0">
  50.     <tr>
  51.         <td valign="top"><b>
  52.         </b>
  53.             <br>
  54.             <table border="0">
  55.     <?
  56.  
  57.     echo "<td colspan=\"1\"><div class=\"note\">Categorie:</div></td>";
  58.     echo "<td colspan=\"2\"><div class=\"note\">Type:</div></td>";
  59.     echo "<td colspan=\"3\"><div class=\"note\">Einddatum:</div></td>";
  60.     echo "<td colspan=\"1\"><div class=\"note\">Prijs:</div></td>";
  61.  
  62.     echo "<tr>";
  63.    
  64.     $result0= mysql_query("SELECT * FROM huur WHERE ID2 = $huurid");
  65.     $count= mysql_num_rows($result0);
  66.     $totaal = $huurid + $count;
  67.     $id1 = $huurid;
  68.    
  69.         //borg weergeven
  70.     echo "<td>";
  71.    
  72.     echo " Borg";
  73.     echo "<td>";
  74.     echo " Totaalprijs borg";
  75.     echo "<td>";
  76.     echo "<td>";
  77.     echo "<td><td>";
  78.    
  79.     echo "<td>";
  80.     //Borgberekening
  81.     $query="SELECT * FROM huur WHERE ID2 = $huurid ORDER BY Borga DESC LIMIT 1";
  82.     $result9=mysql_query($query) or die ("Volgende fout: ".mysql_error());
  83.     while ($row9=mysql_fetch_array($result9))
  84.     {
  85.     $hoogste_borg=$row9['Borga'];
  86.     $vervallen_borg=$row9['Borgb'];
  87.     }
  88.     $query="SELECT ID2, SUM(Borgb) FROM huur WHERE ID2 = $huurid";
  89.     $result3=mysql_query($query) or die ("hoogste borg SUM niet gelukt, door volgende fout: ".mysql_error());
  90.     $row3=mysql_fetch_array($result3);
  91.     $totaleborgb=$row3['SUM(Borgb)'];
  92.    
  93.     $werkelijkeborg=$hoogste_borg+$totaleborgb-$vervallen_borg;
  94.     echo "€ ".$werkelijkeborg;
  95.     echo "<tr>";
  96.    
  97.    
  98.  
  99.     while($id1 < $totaal )              
  100.         {
  101.  
  102.    
  103.    
  104.     $result2 = mysql_query("SELECT * FROM huur WHERE ID = $id1");
  105.     $klant= mysql_fetch_array($result2);
  106.  
  107.     $cat= $klant["productid"];
  108.     $sub= $klant["subid"];
  109.     $id1 = $id1 + 1;
  110.  
  111. switch($cat)
  112. {
  113.   case "1":    
  114.   $result1= mysql_query("SELECT * FROM herenfietsen WHERE ID = $sub");
  115.  
  116.  
  117.     $c= 0;
  118.         while($row1= mysql_fetch_array($result1))              
  119.         {
  120.             $c++;
  121. ?>        <td>
  122.           <?echo " Herenfiets";?>
  123.           <?echo "<td>";?>
  124.                    
  125.           <?php
  126.           $row1['Type'] = str_replace('+','<br>', $row1['Type']);
  127.           ?>
  128.                     <?echo $row1["Type"];?>
  129.                     <td><td>
  130.                     <?
  131.                     $result3= mysql_query("SELECT dagen FROM huur WHERE subid = $sub AND ID = ($id1 - 1)");
  132.                     $row3 = mysql_fetch_array($result3);
  133.          
  134.           $aantaldagen = $row3['dagen'];
  135.           $aantaldagen = $aantaldagen-1;
  136.                    
  137.                     $startDate = $huurdatum;
  138.                     echo date("d-m-Y", strtotime("$startDate + $aantaldagen days"));
  139.  
  140.                    
  141.                     ?>
  142.                     <td>
  143.                     <td>
  144.                     <td>
  145.                    
  146.                     <?
  147.                     $result3= mysql_query("SELECT Prijs FROM huur WHERE subid = $sub AND ID = ($id1 - 1)");
  148.                     $row3 = mysql_fetch_array($result3);
  149.                     echo "€ ".$row3["Prijs"];
  150.                     ?>
  151.                     <tr>
  152.                    
  153. <? 
  154.         }
  155.  
  156.   break;
  157.  
  158.   case "2":
  159.   $result4= mysql_query("SELECT * FROM damesfietsen WHERE ID = $sub");
  160.  
  161.     $c= 0;
  162.         while($row4= mysql_fetch_array($result4))              
  163.         {
  164.             $c++;
  165. ?>        <tr>
  166.           <td>
  167.      
  168.           <?echo " Damesfiets";?>
  169.           <?echo "<td>";?>
  170.                     <?php
  171.           $row4["Naam"] = str_replace('+','<br>', $row4["Naam"]);
  172.           ?>
  173.                     <?
  174.                     echo $row4["Naam"];?>
  175.                     <td><td>
  176.                     <?
  177.                     $result3= mysql_query("SELECT dagen FROM huur WHERE subid = $sub AND ID = ($id1 - 1)");
  178.                     $row3 = mysql_fetch_array($result3);
  179.          
  180.           $aantaldagen = $row3['dagen'];
  181.           $aantaldagen = $aantaldagen-1;
  182.                    
  183.                     $startDate = $huurdatum;
  184.                     echo date("d-m-Y", strtotime("$startDate + $aantaldagen days"));
  185.                     ?>
  186.                     <td><td><td>
  187.                     <?
  188.                     $result3= mysql_query("SELECT Prijs FROM huur WHERE subid = $sub AND ID = ($id1 - 1)");
  189.                     $row3 = mysql_fetch_array($result3);
  190.                     echo "€ ".$row3["Prijs"];
  191.                     ?>
  192.  
  193.                     <tr>
  194. <?     
  195.         }
  196.  
  197.   break;
  198.  
  199.   case "3":
  200.   $result3= mysql_query("SELECT * FROM mtb WHERE ID = $sub");
  201.  
  202.     $c= 0;
  203.         while($row5= mysql_fetch_array($result3))              
  204.         {
  205.             $c++;
  206. ?>        <tr>
  207.           <td>
  208.           <?echo " Mountainbike";?>
  209.           <?echo "<td>";?>
  210.           <?php
  211.           $row5["Naam"] = str_replace('+','<br>', $row5["Naam"]);
  212.           ?>
  213.                     <?echo $row5["Naam"];?>
  214.                     <td><td>
  215.                     <?
  216.                     $result3= mysql_query("SELECT dagen FROM huur WHERE subid = $sub AND ID = ($id1 - 1)");
  217.                     $row3 = mysql_fetch_array($result3);
  218.          
  219.           $aantaldagen = $row3['dagen'];
  220.           $aantaldagen = $aantaldagen-1;
  221.                    
  222.                     $startDate = $huurdatum;
  223.                     echo date("d-m-Y", strtotime("$startDate + $aantaldagen days"));
  224.                     ?>
  225.                     <td><td><td>
  226.                     <?
  227.                     $result3= mysql_query("SELECT Prijs FROM huur WHERE subid = $sub AND ID = ($id1 - 1)");
  228.                     $row3 = mysql_fetch_array($result3);
  229.                     echo "€ ".$row3["Prijs"];
  230.                     ?>
  231.                     <tr>
  232.  
  233. <?     
  234.         }
  235.  
  236.   break;
  237.  
  238.   case "4":
  239.   $result4= mysql_query("SELECT * FROM mtbkind WHERE ID = $sub");
  240.  
  241.     $c= 0;
  242.         while($row4= mysql_fetch_array($result4))              
  243.         {
  244.             $c++;
  245. ?>        <tr>
  246.           <td>
  247.           <?echo " Kinder-mountainbike";?>
  248.           <?echo "<td>";?>
  249.                     <?php
  250.           $row4["Naam"] = str_replace('+','<br>', $row4["Naam"]);
  251.           echo  $row4["Naam"];
  252.           ?>
  253.                     <?echo $row1["Naam"];?>
  254.                     <td><td>
  255.                     <?
  256.                     $result3= mysql_query("SELECT dagen FROM huur WHERE subid = $sub AND ID = ($id1 - 1)");
  257.                     $row3 = mysql_fetch_array($result3);
  258.          
  259.           $aantaldagen = $row3['dagen'];
  260.           $aantaldagen = $aantaldagen-1;
  261.                    
  262.                     $startDate = $huurdatum;
  263.                     echo date("d-m-Y", strtotime("$startDate + $aantaldagen days"));
  264.                     ?>
  265.                     <td><td><td>
  266.                     <?
  267.                     $result3= mysql_query("SELECT Prijs FROM huur WHERE subid = $sub AND ID = ($id1 - 1)");
  268.                     $row3 = mysql_fetch_array($result3);
  269.                     echo "€ ".$row3["Prijs"];
  270.                     ?>
  271.  
  272.                     <tr>
  273.  
  274. <?     
  275.         }
  276.  
  277.   break;
  278.  
  279.   case "5":
  280.   $result1= mysql_query("SELECT * FROM tandems WHERE ID = $sub");
  281.  
  282.     $c= 0;
  283.         while($row1= mysql_fetch_array($result1))              
  284.         {
  285.             $c++;
  286. ?>        <tr>
  287.           <td>
  288.           <?echo " Tandems";?>
  289.           <?echo "<td>";?>
  290.                     <?php
  291.           $row1["Naam"] = str_replace('+','<br>', $row1["Naam"]);
  292.           ?>
  293.                     <?echo $row1["Naam"];?>
  294.                     <td><td>
  295.                     <?
  296.                     $result3= mysql_query("SELECT dagen FROM huur WHERE subid = $sub AND ID = ($id1 - 1)");
  297.                     $row3 = mysql_fetch_array($result3);
  298.                    
  299.                     $aantaldagen = $row3['dagen'];
  300.           $aantaldagen = $aantaldagen-1;
  301.                    
  302.                     $startDate = $huurdatum;
  303.                     echo date("d-m-Y", strtotime("$startDate + $aantaldagen days"));
  304.                     ?>
  305.                     <td><td><td>
  306.                     <?
  307.                     $result3= mysql_query("SELECT Prijs FROM huur WHERE subid = $sub AND ID = ($id1 - 1)");
  308.                     $row3 = mysql_fetch_array($result3);
  309.                     echo "€ ".$row3["Prijs"];
  310.                     ?>
  311.                
  312.  
  313.                     <tr>
  314.  
  315. <?     
  316.         }
  317.  
  318.   break;
  319.  
  320.   case "6":
  321.   $result1= mysql_query("SELECT * FROM jongensfietsen WHERE ID = $sub");
  322.     $c= 0;
  323.         while($row1= mysql_fetch_array($result1))              
  324.         {
  325.             $c++;
  326. ?>        <tr>  
  327.           <td>
  328.           <?echo " Kinderfiets jongen";?>
  329.           <?echo "<td>";?>
  330.                      <?php
  331.           $row1["Naam"] = str_replace('+','<br>', $row1["Naam"]);
  332.           ?>
  333.                     <?echo $row1["Naam"];?>
  334.                     <td><td>
  335.                     <?
  336.                     $result3= mysql_query("SELECT dagen FROM huur WHERE subid = $sub AND ID = ($id1 - 1)");
  337.                     $row3 = mysql_fetch_array($result3);
  338.                    
  339.                     $aantaldagen = $row3['dagen'];
  340.           $aantaldagen = $aantaldagen-1;
  341.                    
  342.                     $startDate = $huurdatum;
  343.                     echo date("d-m-Y", strtotime("$startDate + $aantaldagen days"));
  344.                     ?>
  345.                     <td><td><td>
  346.                     <?
  347.                     $result3= mysql_query("SELECT Prijs FROM huur WHERE subid = $sub AND ID = ($id1 - 1)");
  348.                     $row3 = mysql_fetch_array($result3);
  349.                     echo "€ ".$row3["Prijs"];
  350.                     ?>
  351.  
  352.                     <tr>
  353.  
  354. <?     
  355.         }
  356.  
  357.   break;
  358.  
  359.   case "7":
  360.   $result1= mysql_query("SELECT * FROM meisjesfietsen WHERE ID = $sub");
  361.  
  362.  
  363.     $c= 0;
  364.         while($row1= mysql_fetch_array($result1))              
  365.         {
  366.             $c++;
  367. ?>        <tr>
  368.           <td>
  369.           <?echo " Kinderfiets meisje";?>
  370.           <?echo "<td>";?>
  371.                     <?php
  372.           $row1["Naam"] = str_replace('+','<br>', $row1["Naam"]);
  373.           ?>
  374.                     <?echo $row1["Naam"];?>
  375.                     <td><td>
  376.                     <?
  377.                     $result3= mysql_query("SELECT dagen FROM huur WHERE subid = $sub AND ID = ($id1 - 1)");
  378.                     $row3 = mysql_fetch_array($result3);
  379.                    
  380.                     $aantaldagen = $row3['dagen'];
  381.           $aantaldagen = $aantaldagen-1;
  382.                    
  383.                     $startDate = $huurdatum;
  384.                     echo date("d-m-Y", strtotime("$startDate + $aantaldagen days"));
  385.                     ?>
  386.                     <td><td><td>
  387.                     <?
  388.                     $result3= mysql_query("SELECT Prijs FROM huur WHERE subid = $sub AND ID = ($id1 - 1)");
  389.                     $row3 = mysql_fetch_array($result3);
  390.                     echo "€ ".$row3["Prijs"];
  391.                     ?>
  392.  
  393.                     <tr>
  394.  
  395. <?     
  396.         }
  397.  
  398.   break;
  399.  
  400.   case "8":
  401.   $result1= mysql_query("SELECT * FROM kind_divers WHERE ID = $sub");
  402.  
  403.     $c= 0;
  404.         while($row1= mysql_fetch_array($result1))              
  405.         {
  406.             $c++;
  407. ?>        <tr>
  408.           <td>
  409.           <?echo " Kind-diversen";?>
  410.           <?echo "<td>";?>
  411.                     <?php
  412.           $row1["Naam"] = str_replace('+','<br>', $row1["Naam"]);
  413.           ?>
  414.                     <?echo $row1["Naam"];?>
  415.                     <td><td>
  416.                     <?
  417.                     $result3= mysql_query("SELECT dagen FROM huur WHERE subid = $sub AND ID = ($id1 - 1)");
  418.                     $row3 = mysql_fetch_array($result3);
  419.                    
  420.                     $aantaldagen = $row3['dagen'];
  421.           $aantaldagen = $aantaldagen-1;
  422.                    
  423.                     $startDate = $huurdatum;
  424.                     echo date("d-m-Y", strtotime("$startDate + $aantaldagen days"));
  425.                     ?>
  426.                     <td><td><td>
  427.                     <?
  428.                     $result3= mysql_query("SELECT Prijs FROM huur WHERE subid = $sub AND ID = ($id1 - 1)");
  429.                     $row3 = mysql_fetch_array($result3);
  430.                     echo "€ ".$row3["Prijs"];
  431.                     ?>
  432.  
  433.                     <tr>
  434.  
  435. <?     
  436.         }
  437.  
  438.   break;
  439.  
  440.   case "9":
  441.   $result1= mysql_query("SELECT * FROM accessoires WHERE ID = $sub");
  442.  
  443.     $c= 0;
  444.         while($row1= mysql_fetch_array($result1))              
  445.         {
  446.             $c++;
  447. ?>        <tr>
  448.           <td>
  449.           <?echo " Accessoires";?>
  450.           <?echo "<td>";?>
  451.                      <?php
  452.           $row1["Naam"] = str_replace('+','<br>', $row1["Naam"]);
  453.           ?>
  454.                     <?echo $row1["Naam"];?>
  455.                     <td><td>
  456.                     <?
  457.                     $result3= mysql_query("SELECT dagen FROM huur WHERE subid = $sub AND ID = ($id1 - 1)");
  458.                     $row3 = mysql_fetch_array($result3);
  459.                    
  460.                     $aantaldagen = $row3['dagen'];
  461.           $aantaldagen = $aantaldagen-1;
  462.                    
  463.                     $startDate = $huurdatum;
  464.                     echo date("d-m-Y", strtotime("$startDate + $aantaldagen days"));
  465.                     ?>
  466.                     <td><td><td>
  467.                     <?
  468.                     $result3= mysql_query("SELECT Prijs FROM huur WHERE subid = $sub AND ID = ($id1 - 1)");
  469.                     $row3 = mysql_fetch_array($result3);
  470.                     echo "€ ".$row3["Prijs"];
  471.                     ?>
  472.  
  473.                     <tr>
  474.  
  475. <?     
  476.         }
  477.  
  478.   break;
  479.  
  480.   case "10":
  481.   $result1= mysql_query("SELECT * FROM elekrisch WHERE ID = $sub");
  482.  
  483.     $c= 0;
  484.         while($row1= mysql_fetch_array($result1))              
  485.         {
  486.             $c++;
  487. ?>        <tr>
  488.           <td>
  489.           <?echo " Elektrisch";?>
  490.           <?echo "<td>";?>
  491.                     <?php
  492.           $row1["Naam"] = str_replace('+','<br>', $row1["Naam"]);
  493.           ?>
  494.                     <?echo $row1["Type"];?>
  495.                     <td><td>
  496.                     <?
  497.                     $result3= mysql_query("SELECT dagen FROM huur WHERE subid = $sub AND ID = ($id1 - 1)");
  498.                     $row3 = mysql_fetch_array($result3);
  499.                    
  500.                     $aantaldagen = $row3['dagen'];
  501.           $aantaldagen = $aantaldagen-1;
  502.                    
  503.                     $startDate = $huurdatum;
  504.                     echo date("d-m-Y", strtotime("$startDate + $aantaldagen days"));
  505.                     ?>
  506.                     <td><td><td>
  507.                     <?
  508.                     $result3= mysql_query("SELECT Prijs FROM huur WHERE subid = $sub AND ID = ($id1 - 1)");
  509.                     $row3 = mysql_fetch_array($result3);
  510.                     echo "€ ".$row3["Prijs"];
  511.                     ?>
  512.  
  513.                     <tr>
  514.                     <?     
  515.         }
  516.  
  517.   break;
  518.  
  519.  
  520.         }
  521.  
  522. }
  523. ?>
  524.                 <td>
  525.                 <td>
  526.                 <?
  527.                 echo "<b>";
  528.                 echo "Totaalprijs: ";
  529.                 echo "<td>";
  530.                 echo "<td><td><td><td>";
  531.                 $query="SELECT ID2, SUM(Prijs) FROM huur WHERE ID2 = $huurid";
  532.                 $result3=mysql_query($query) or die ("Volgende fout: ".mysql_error());
  533.                 $row3=mysql_fetch_array($result3);
  534.                 $totalehuur=$row3['SUM(Prijs)'];
  535.                 $totaalprijs=$totalehuur+$werkelijkeborg;
  536.                 echo "<b>€ ".$totaalprijs."</b>";
  537.                 echo "</b>";
  538.                 ?> 
  539.                 </table>
  540.         </td>
  541.     <tr>
  542.    
  543.    
  544. </table>
  545.  
  546. </div>
  547. <div id="footer">
  548. <img src="images/voet.png" alt="Voet" class="print">
  549. </div>
  550.  
  551. </body>
  552. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement