echo "<form name='formAngebote' method='post' action='rechts.php4' enctype='multipart/form-data'>";
echo "<input type='hidden' name='id' value='$angebot_array[0]'>";
echo "<input type='hidden' name='fid' value='0'>";
echo "<tr><td><font face='arial' size='2' color='#ffffff'>Angebot ID <b>$angebot_array[0]</b> / eingetragen am: $angebot_array[9]</font></td><td align='right'><a href='rechts5.php4#oben' onmouseover=\"window.status='Zurück ...';return true;\" onmouseout=\"window.status='';return true;\"><img src='images/img26.gif' width='16' height='16' alt='' border='0'></a></td></tr>";
echo "<tr><td colspan='2' bgcolor='#B3B3FF' align='center'><table border='0' cellspacing='0' cellpadding='2'>";
echo "<tr><td><font face='arial' size='1' color='#000000'>Typ: / Objekt: (vorhanden/neu, max. 50 Zeichen) / Position:</font></td></tr>";
echo "<tr><td><select style='background-color:#B3B3FF;' name='Typ'><option";
if($angebot_array[1]=="Verkauf"){echo " selected";}
echo ">Verkauf<option";
if($angebot_array[1]=="Vermietung"){echo " selected";}
echo ">Vermietung</select>";
$Rualt_s="SELECT * FROM x_lse_immo GROUP BY objekt ORDER BY objekt";
$Rualt_ok=mysql_query($Rualt_s,$Verbindung);
$Rualt_num=mysql_num_rows($Rualt_ok);
echo "<select onclick='document.formAngebote.Ru.value=\"\"' style='background-color:#B3B3FF;' name='Rualt'><option>";
for($i=0;$i<$Rualt_num;$i++)
{
$Rualt_array=mysql_fetch_array($Rualt_ok);
if($angebot_array[2]==$Rualt_array[2]){$sel="selected";}
else{$sel="";}
echo "<option $sel>$Rualt_array[2]";
}
echo "</select>";
echo "<input onclick='document.formAngebote.Rualt.value=\"\"' style='background-color:#B3B3FF;' name='Ru' type='text' value='' size='23' maxlength='50'><input style='background-color:#B3B3FF;' name='Position' type='text' value='$angebot_array[3]' size='3'></td></tr>";
echo "<tr><td><font face='arial' size='1' color='#000000'>Kurztext: / Zusatz:</font></td></tr>";
echo "<tr><td><input style='background-color:#B3B3FF;' name='Kurztext' type='text' value='$angebot_array[4]' size='33'><input style='background-color:#B3B3FF;' name='Zusatz' type='text' value='$angebot_array[6]' size='34'></td></tr>";
echo "<tr><td><font face='arial' size='1' color='#000000'>Strasse: / Wohneinheit: (intern)</font></td></tr>";
echo "<tr><td><input style='background-color:#8080FF;' name='Strasse' type='text' value='$angebot_array[10]' size='33'><input style='background-color:#8080FF;' name='Wohneinheit' type='text' value='$angebot_array[11]' size='34'></td></tr>";
echo "<tr><td><font face='arial' size='1' color='#000000'>Langtext:</font></td></tr>";
echo "<tr><td><textarea style='background-color:#B3B3FF;' name='Langtext' rows='5' cols='59'>$angebot_array[5]</textarea></td></tr>";
echo "<tr><td><font face='arial' size='1' color='#000000'>Preise:</font></td></tr>";
echo "<tr><td><textarea style='background-color:#B3B3FF;' name='Preise' rows='5' cols='59'>$angebot_array[7]</textarea></td></tr>";
echo "<tr><td colspan='2'><font face='arial' size='1' color='#000000'>Bild (*.jpg/*.gif, max. 80 Kb sind empfohlen)</font></td></tr>";
echo "<tr><td><input style='background-color:#B3B3FF;' type='file' name='picture' value='' size='40'> <input type='checkbox' name='picturedel' value='ja'> <font face='arial' size='1' color='#000000'>Löschen</font></td><td>";
if(file_exists("../upload/angebot$angebot_array[0].jpg")== 1){echo "<a href=\"javascript:view(gist=1,was='../upload/angebot$angebot_array[0].jpg');\" onmouseover=\"window.status='Bild anzeigen ...';return true;\" onmouseout=\"window.status='';return true;\"><img src='images/img29.gif' width='22' height='22' border='0'></a>";}
if(file_exists("../upload/angebot$angebot_array[0].gif")== 1){echo "<a href=\"javascript:view(gist=1,was='../upload/angebot$angebot_array[0].gif');\" onmouseover=\"window.status='Bild anzeigen ...';return true;\" onmouseout=\"window.status='';return true;\"><img src='images/img29.gif' width='22' height='22' border='0'></a>";}
echo "<tr><td colspan='2'><font face='arial' size='1' color='#000000'>Bild1 (*.jpg/*.gif, max. 80 Kb sind empfohlen)</font></td></tr>";
echo "<tr><td><input style='background-color:#B3B3FF;' type='file' name='picture1' value='' size='40'> <input type='checkbox' name='picturedel1' value='ja'> <font face='arial' size='1' color='#000000'>Löschen</font></td><td>";
if(file_exists("../upload/angebot1$angebot_array[0].jpg")== 1){echo "<a href=\"javascript:view(gist=1,was='$angebot_array[0].jpg');\" onmouseover=\"window.status='Bild anzeigen ...';return true;\" onmouseout=\"window.status='';return true;\"><img src='images/img29.gif' width='22' height='22' border='0'></a>";}
if(file_exists("../upload/angebot1$angebot_array[0].gif")== 1){echo "<a href=\"javascript:view(gist=1,was='$angebot_array[0].gif');\" onmouseover=\"window.status='Bild anzeigen ...';return true;\" onmouseout=\"window.status='';return true;\"><img src='images/img29.gif' width='22' height='22' border='0'></a>";}
echo "<tr><td colspan='2'><font face='arial' size='1' color='#000000'>Bild2 (*.jpg/*.gif, max. 80 Kb sind empfohlen)</font></td></tr>";
echo "<tr><td><input style='background-color:#B3B3FF;' type='file' name='picture2' value='' size='40'> <input type='checkbox' name='picturedel2' value='ja'> <font face='arial' size='1' color='#000000'>Löschen</font></td><td>";
if(file_exists("../upload/angebot2$angebot_array[0].jpg")== 1){echo "<a href=\"javascript:view(gist=1,was='$angebot_array[0].jpg');\" onmouseover=\"window.status='Bild anzeigen ...';return true;\" onmouseout=\"window.status='';return true;\"><img src='images/img29.gif' width='22' height='22' border='0'></a>";}
if(file_exists("../upload/angebot2$angebot_array[0].gif")== 1){echo "<a href=\"javascript:view(gist=1,was='$angebot_array[0].gif');\" onmouseover=\"window.status='Bild anzeigen ...';return true;\" onmouseout=\"window.status='';return true;\"><img src='images/img29.gif' width='22' height='22' border='0'></a>";}
echo "</td></tr>";
echo "<tr><td align='right'><br><a href=\"javascript:document.formAngebote.fid.value='1';document.formAngebote.submit();\" onmouseover=\"window.status='Angebot löschen ...';return true;\" onmouseout=\"window.status='';return true;\"><img src='images/img9.gif' width='69' height='16' border='0'></a> <a href='rechts5.php4?id=$id&fid=3' onmouseover=\"window.status='Änderungen verwerfen ...';return true;\" onmouseout=\"window.status='';return true;\"><img src='images/img10.gif' width='69' height='16' border='0'></a> <a href=\"javascript:document.formAngebote.fid.value='4';document.formAngebote.submit();\" onmouseover=\"window.status='Angebot speichern ...';return true;\" onmouseout=\"window.status='';return true;\"><img src='images/img11.gif' width='69' height='16' border='0'></a></td></tr>";
echo "<tr><td><font face='arial' size='2'> </font></td></tr></table>";
echo "</td></tr>";
echo "</form>";