Jump to content

nordarv

New Members
  • Posts

    2
  • Joined

  • Last visited

nordarv's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. OK, sorry..... I buy this code from a company, but after editing the page dont work.. The wrong code is here echo '<a target="_blank" href="http://www.ringdekk.no/nyedekk.html" class="button">Bestill time</a>'; echo '<a class="button" onclick="window.print()">Skriv ut</a><br><br> But I understand that I post it wrong and have no ide fix this..
  2. Please, I did some changes on a page made of a company that helped me. After some editing, it dont work.. Please, anyone.... <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Dekkalkulator</title> <link rel="stylesheet" href="style.css"> </head> <body id="results-body"> <?php $bredde = $_GET['bredde']; $profil = $_GET['profil']; $felg = $_GET['felg']; $type = $_GET['type']; $size = $bredde . "/" . $profil . "R" . $felg; $title = false; ?> <div id="results-wrap"> <h3>Priseksempel <?php echo $type;?>dekk med dimensjonen <?php echo $size;?>:</h3> <div id='info' class='results'><b></b> Priser oppdatert 05/10. <div id='info' class='results'><b>Priser på noe av vårt utvalg. Glem konkurrentenes rabatter, sjekk RINGDEKK pris</b> <div id='info' class='results'><b>Vi har dekk i alle prisklasser, men har valgt dekk som vi kan anbefale</b> Vi hjelper deg gjerne med valget. <br> <br></br> <table id="results" class="results" cellpadding="0" cellspacing="0"> <thead> <tr> <td>Dimensjon</td> <td>Merke og type</td> <td>LI</td> <td>Pris</td> <td><center>Pris 4 dekk ferdig montert</center></td> </tr> </thead> <?php $i = 0; if (($handle = fopen("prislister/$type.csv","r")) !== FALSE) { while (($data = fgetcsv($handle, 1000, ";")) !== FALSE) { if($data[0] == $size) { echo "<tr>"; echo "<td>$data[0]</td>"; echo "<td>$data[1]</td>"; echo "<td>$data[2]</td>"; echo "<td>kr $data[3],-</td>"; echo "<td><center><b>kr " . (($data[3]*4)+700) . ",-</b></center></td>"; echo "</tr>"; $i++; } } echo "</table>"; echo "<div id='info' class='results'>Alle priser er inklusiv miljøavgift og mva. Montering er inkludert i prisen lengst til høyre.<br><br>" echo '<a target="_blank" href="[url=http://www.ringdekk.no/nyedekk.html]http://www.ringdekk.no/nyedekk.html[/url]" class="button">Bestill time</a>' echo '<a class="button" onclick="window.print()">Skriv ut</a><br><br> echo "<div class='boks'><strong>Ringdekk AS</strong><br>Risesletta<br>3513 Hønefoss<br><br>Telefon: 32 11 11 74<br>24t vakt: 405 24 000<b></div>"; echo "<div class='boks'><strong>Ordinære åpningstider</strong><br>08 - 17<br>10 - 14<br><br><br><br></div>" echo "<div class='boks'><strong>I sesong</strong><br>08 - 24<br>09 - 16<br><br><br><br></div>" echo "</div>"; if($i == 0) { echo "Ingen resultater."; echo "<style>.results {display:none;}</style>"; } fclose($handle); } ?> </div> </body>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.