58 lines
1.3 KiB
PHP
58 lines
1.3 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! [ze]'));
|
|
|
|
|
|
$result = mysql_query("SELECT * FROM eMail WHERE mensch_id='$mensch_id'");
|
|
|
|
if (mysql_num_rows($result) == 0)
|
|
print '<DIV ALIGN="CENTER"><BR>keine eMail-Adressen</DIV>';
|
|
else
|
|
{ ?>
|
|
|
|
<DIV ALIGN="CENTER">
|
|
<FORM NAME="eMailliste"
|
|
ACTION="edit_email.php?<?PHP print SID; ?>#email" METHOD="POST">
|
|
<TABLE BORDER="2" CELLSPACE="2" CELLPADDING="2">
|
|
|
|
<TR><TH>Wahl</TH>
|
|
<TH>Adresse</TH>
|
|
<TH>Notiz</TH></TR>
|
|
|
|
<?PHP
|
|
|
|
$ersteZeile=true;
|
|
// die Datenzeilen
|
|
while ($zeile = mysql_fetch_array($result))
|
|
{
|
|
print '<TR>';
|
|
print '<TD ALIGN="CENTER"><INPUT TYPE="RADIO" NAME="email_id" VALUE="'
|
|
. $zeile["email_id"] . '"';
|
|
if ($ersteZeile) print ' CHECKED="CHECKED"';
|
|
print '></TD>';
|
|
print '<TD>' . $zeile["Nutzer"];
|
|
print '@' . $zeile["Domain"] . '</TD>';
|
|
print '<TD>' . $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="submitEmailliste" VALUE=" Bearbeiten ">
|
|
<INPUT TYPE="SUBMIT" NAME="submitEmailliste" VALUE=" Entfernen "></DIV>
|
|
|
|
|
|
</FORM>
|
|
</DIV>
|
|
|
|
<?PHP } ?>
|