PHP-Code:
<?head("Interne Überweisungen");?>
<br>
<table width="100%" border="0" cellpadding="2" cellspacing="2">
<form action="" method="post">
<tr>
<td align="left" width="55%">Kontonummer</td><td align="left"><?=$_SESSION['uid'];?></td>
</tr>
<tr>
<td align="left">Aktueller Kontostand</td><td align="left"><?=number_format($kontodaten['kontostand'],2,",",".").' '.$waehrung;?></td>
</tr>
<tr>
<td align="left"><?=$waehrung;?>menge</td><td align="left"><input type="Text" name="ueberweisung" value=""></td>
</tr>
<tr>
<td align="left">an User</td><td align="left"><select name="empfaengerid" size="1"><option>User suchen...
<?
$old_news = mysql_query("SELECT ".$db_prefix."_kontodaten.*, ".$db_prefix."_userdaten.nickname, ".$db_prefix."_userdaten.vorname, ".$db_prefix."_userdaten.angemeldet_seit, ".$db_prefix."_userdaten.nachname, ".$db_prefix."_emaildaten.emailadresse FROM ".$db_prefix."_kontodaten, ".$db_prefix."_userdaten, ".$db_prefix."_emaildaten WHERE ((".$db_prefix."_kontodaten.uid = ".$db_prefix."_userdaten.uid) and (".$db_prefix."_kontodaten.uid = ".$db_prefix."_emaildaten.uid) and (".$db_prefix."_userdaten.uid = ".$db_prefix."_emaildaten.uid)) ORDER BY uid ASC");
while ($load = mysql_fetch_array($old_news)) {
echo '<option value="'.$load['uid'].'">'.$load['uid'].' - ('.$load['nickname'].')</option>';
}
?>
</select>
</tr>
<tr>
<td align="center" colspan="2"><input type="Submit" name="auszahlen" value="Abschicken"></td>
</tr>
</form>
</table>
<?if ($meldung) echo '<div align="center"><font color="#800000">'.$meldung.'</font></div>';?>
<?foot();?>
Bitte schön