64 lines
1.4 KiB
PHP
64 lines
1.4 KiB
PHP
|
<?PHP
|
||
|
|
||
|
include_once("init.php");
|
||
|
|
||
|
|
||
|
if (!isset($mensch_id) OR !existiertID($mensch_id))
|
||
|
die(abschlussMeldung('Die angegebene Person ist nicht in der Datenbank
|
||
|
vorhanden! [zt]'));
|
||
|
|
||
|
|
||
|
$result = mysql_query("SELECT * FROM Telefon WHERE mensch_id='$mensch_id'");
|
||
|
|
||
|
if (mysql_num_rows($result) == 0)
|
||
|
print '<DIV ALIGN="CENTER"><BR>keine Telefonnummern</DIV>';
|
||
|
else
|
||
|
{ ?>
|
||
|
|
||
|
<DIV ALIGN="CENTER">
|
||
|
<FORM NAME="Telefonliste"
|
||
|
ACTION="edit_telefon.php?<?PHP print SID; ?>#telefon"
|
||
|
METHOD="POST">
|
||
|
<TABLE BORDER="2">
|
||
|
|
||
|
<TR><TH>Wahl</TH>
|
||
|
<TH>Land</TH>
|
||
|
<TH>Ort</TH>
|
||
|
<TH>Nummer</TH></TR>
|
||
|
|
||
|
<?PHP
|
||
|
|
||
|
$ersteZeile=true;
|
||
|
// die Datenzeilen
|
||
|
while ($zeile = mysql_fetch_array($result))
|
||
|
{
|
||
|
print '<TR>';
|
||
|
print '<TD ALIGN="CENTER"><INPUT TYPE="RADIO" NAME="telefon_id" VALUE="'
|
||
|
. $zeile["telefon_id"] . '"';
|
||
|
if ($ersteZeile) print ' CHECKED="CHECKED"';
|
||
|
print '></TD>';
|
||
|
print '<TD ALIGN="RIGHT">00' . $zeile["IntVorwahl"] . '</TD>';
|
||
|
print '<TD ALIGN="RIGHT">0' . $zeile["Vorwahl"] . '</TD>';
|
||
|
print '<TD ALIGN="RIGHT">' . $zeile["Nummer"] . '</TD></TR>';
|
||
|
print '<TR><TD COLSPAN="4" ALIGN="RIGHT">' .
|
||
|
$zeile["Notiz"] . '</TD></TR>';
|
||
|
$ersteZeile = false;
|
||
|
}
|
||
|
|
||
|
print '<INPUT TYPE="HIDDEN" NAME="mensch_id" VALUE="' . $mensch_id . '">';
|
||
|
|
||
|
// die Aktionsknoepfe
|
||
|
?>
|
||
|
|
||
|
</TABLE>
|
||
|
|
||
|
<DIV ALIGN="CENTER">
|
||
|
<INPUT TYPE="SUBMIT" NAME="submitTelefonliste" VALUE=" Bearbeiten ">
|
||
|
<INPUT TYPE="SUBMIT" NAME="submitTelefonliste" VALUE=" Entfernen "></DIV>
|
||
|
|
||
|
|
||
|
</FORM>
|
||
|
</DIV>
|
||
|
|
||
|
<?PHP } ?>
|