<?php
$this->htmlvehicle = "<br/><table width=\"70%\" 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\">In rent</th>
<th class=\"titlebackgr\" nowrap>Vehicle ...</th>
<th class=\"titlebackgr\" nowrap>Vehicle ...</th>
<th class=\"titlebackgr\" nowrap>Vehicle ...</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[10] = strval($this->line[13]);
$this->line[14] = strval($this->line[14]);
// pass variables from 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[13]."/".$this->line[14]."</td>
<td><a href=\"$_SERVER[PHP_SELF]?id=$i&num=$number_of_vehicles
&miete=".$this->line[13]."&marke=".$this->line[4]."
&vid=".$this->line[0]."&preisklasse=".$this->line[12]."\">... rent</a></td>
<td align='left' nowrap>
<a href=\"$_SERVER[PHP_SELF]?id=".$this->line[0]."
&num=$number_of_vehicles&rep=".$this->line[2]."
&miete=".$this->line[3]."\">... in Repair</a> /
<a href=\"$_SERVER[PHP_SELF]?id=".$this->line[0]."
&num=$number_of_vehicles&repend=".$this->line[2]."
&miete=".$this->line[3]."\">... Repair end</a></td>
<td align='left' nowrap>
<a href=\"$_SERVER[PHP_SELF]?id=".$this->line[0]."
&num=$number_of_vehicles&end=".$this->line[1]."
&junk=".$this->line[3]."\">... junk</a> </td></tr>";
}
$this->htmlvehicle .= '</table><p></p>';
?>