<?php
$this->htmlvehicle = "<br/><table width=\"50%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr><th class=\"titlebackgr\">Rent Id</th>
<th class=\"titlebackgr\">Junked</th>
<th class=\"titlebackgr\">Repair</th>
<th class=\"titlebackgr\">Rent</th>
<th class=\"titlebackgr\">Make</th>
<th class=\"titlebackgr\">Frame</th>
<th class=\"titlebackgr\">Saddle</th>
<th class=\"titlebackgr\">Details</th> <tr>";
for ($i = 0; $i < $number_of_vehicles; $i++) {
// pass variables to array
$this->line = explode("\t", $this->vehicles[$i]);
$this->line[0] = intval($this->line[0]);
$this->line[1] = intval($this->line[1]);
$this->line[2] = intval($this->line[2]);
$this->line[3] = strval($this->line[3]);
$this->line[4] = strval($this->line[4]);
$this->line[5] = strval($this->line[5]);
$this->line[6] = strval($this->line[6]);
$this->line[7] = strval($this->line[7]);
// pass variables in array to HTML
$this->count = $this->line[0];
$this->htmlvehicle .= "<tr><td>".$this->line[0]."</td>
<td align='left'>".$this->line[1]."</td>
<td align='left'>".$this->line[2]."</td>
<td align='left'>".$this->line[3]."</td>
<td align='left'>".$this->line[4]."</td>
<td align='left'>".$this->line[5]."</td>
<td align='left'>".$this->line[6]."</td>
<td><a href=\"vr_main_view.php?id=$i&num=$number_of_vehicles
&miete=0&marke=".$this->line[4]."
&groesse=0&preisklasse=".$this->line[12]."\">show</a></td> </tr>";
}
$this->htmlvehicle .= "</table><p></p>";
?>