This commit is contained in:
Andreas Österreicher
2009-09-11 08:10:14 +00:00
parent 715245e429
commit 690b6bd3d6
2 changed files with 18 additions and 10 deletions
+17 -9
View File
@@ -195,17 +195,25 @@ if(count($preinteressent->result)>0)
echo $stgs;
echo '</td>';
echo '<td>';
$firma = new firma();
$firma->load($row->firma_id);
$adresse = new adresse();
$adresse->load_firma($row->firma_id);
if(isset($adresse->result[0]))
if($row->firma_id)
{
$plz = $adresse->result[0]->plz;
$ort = $adresse->result[0]->ort;
$firma = new firma();
$firma->load($row->firma_id);
$adresse = new adresse();
$adresse->load_firma($row->firma_id);
if(isset($adresse->result[0]))
{
$plz = $adresse->result[0]->plz;
$ort = $adresse->result[0]->ort;
}
else
{
$plz='';
$ort='';
}
echo $plz.' '.$ort.' '.$firma->name." ($firma->firmentyp_kurzbz)";
}
echo '<a href="../stammdaten/firma_details.php?firma_id='.$firma->firma_id.'" class="Item">'.$plz.' '.$ort.' '.$firma->name." ($firma->firmentyp_kurzbz)</a>";
echo '</td>';
echo '</tr>';
}
@@ -293,7 +293,7 @@ foreach ($preinteressent->result as $row)
$ort = $adresse->result[0]->ort;
}
echo '<br /><b>Schule:</b> <a href="../stammdaten/firma_details.php?firma_id='.$firma->firma_id.'" class="Item">'.$plz.' '.$ort.' '.$firma->name." ($firma->firmentyp_kurzbz)</a>";
echo '<br /><b>Schule:</b>'.$plz.' '.$ort.' '.$firma->name." ($firma->firmentyp_kurzbz)";
}
echo "</td>";
echo "<td>";