<body>
<?php
$nr = $_SESSION['MM_UserId'];
mysql_connect("localhost","root","root") or die(mysql_error()); // Server ; User ; Passwort
mysql_select_db("lcg") or die(mysql_error()); // Datenbank
//$querystr =sprintf("SELECT tblbenutzer.dateiname FROM tblbenutzer LEFT JOIN online ON(tblbenutzer.intID = online.intID) WHERE session = %s",$nr);
$querystr = "SELECT tblbenutzer.dateiname, tblbenutzer.intID FROM tblbenutzer LEFT JOIN online ON(tblbenutzer.intID = online.intID) WHERE session > '0' ";
$REC = mysql_query($querystr);
$RECrows = mysql_num_rows($REC);
while($Datensatz = mysql_fetch_assoc($REC)){
$record['bild'] = $Datensatz['dateiname'];
$record['intID'] = $Datensatz['intID']; // neu eingefügt
$DATA['SEARCH'][] = $record;
}
?>
</p>
<table width="70%" align="center" border="0" cellspacing="0" cellpadding="0">
<?php foreach($DATA['SEARCH'] as $searchEntry): ?>
<tr>
<?php $pic = htmlentities($searchEntry['bild']);
$intID = htmlentities($searchEntry['intID']);
echo '<img src="../../online.gif" width="46" height="7" alt="on" />';
echo"<br/><br/>";
echo " <a href='/fffk/Templates/nacheinloggen/mysite.php?id=$intID' target='_blank'><img src='img/$pic' width='115' height='125' alt='pic' />" ?>
<br/><br/>
</tr>
<?php endforeach; ?>
</table>
<?
require_once('dataBaseConnection.php');
//**********************************************
// Datenbankabfrage
//**********************************************
// Daten aus Datenbank auslesen!
$SQL = "SELECT * FROM tbluser_profile where intID = $intID" ;
$REC = mysql_query($SQL);
$RECset = mysql_fetch_assoc($REC);
$geschlecht = $RECset["geschlecht"];
$tag = $RECset["tag"];
$monat = $RECset["monat"];
$jahr = $RECset["jahr"];
$beruf = $RECset["beruf"];
$heimatland = $RECset["heimatland"];
$gebiet = $RECset["gebiet"];
$heimatstadt = $RECset["heimatstadt"];
$msn = $RECset["msn"];
$icq = $RECset["icq"];
$yim = $RECset["yim"];
$telefon = $RECset["telefon"];
$bundesland = $RECset["bundesland"];
$ort = $RECset["ort"];
$beziehung = $RECset["beziehung"];
$politik = $RECset["politik"];
$interessen = $RECset["interessen"];
$clubs = $RECset["clubs"];
$musik = $RECset["musik"];
$txtZitat = $RECset["txtZitat"];
$txtAboutme = $RECset["txtAboutme"];
$ID = $RECset["intID"];
// Bild aus Datenbank auslesen
$SQL = "SELECT * FROM tblbenutzer where intID = $intID" ;
$REC = mysql_query($SQL);
$RECset = mysql_fetch_assoc($REC);
$bild = $RECset["dateiname"];
?>
<form id="form1" name="form1" method="get" action="">
<table width="101%" " border="0" cellpadding="2" cellspacing="0">
<tr>
<td colspan="3" align="left" bgcolor="#FF8080"><strong><span style="color:#F00">Allgemein</span></strong></td>
<td> </td>
<td> </td>
<td width="28%" rowspan="17" ><?php echo "<img src='img/$bild' width='270' height='370' alt='bild' />"; ?></td>
<td width="4%"> </td>
</tr>
<tr>
<td width="20%">Name:</td>
<td width="20%"><?php echo $_SESSION['MM_Vorname']; echo " "; echo $_SESSION['MM_Nachname'];?> </td>
<td width="13%"> </td>
<td width="0%"> </td>
<td width="5%"> </td>
<td width="4%"></td>
</tr>
<tr>
<td>Mitglied seid, Nr:</td>
<td><?php echo $_SESSION['MM_dtmAnalge'];?></td>
<td><?php echo $_SESSION['MM_UserId'];?></td>
<td ro> </td>
<td ro> </td>
<td></td>
</tr>
<tr>
<td>Geschlecht:</td>
<td><?php if($geschlecht == NULL) echo "-"; else echo $geschlecht; ?></td>
<td><?php if( $geschlecht =="weiblich"){ echo "<img src='../../images/weiblichklein.jpg' width='13' height='20' alt='weiblich' />";} ?>
<?php if( $geschlecht =="männlich") { echo "<img src='../../images/maennlichklein.jpg' width='20' height='20' alt='maenlich' />";}?>
</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Geburtsdatum:</td>
<td><?php if($tag == NULL) echo " "; else echo $tag;echo " ";?><?php if($monat == NULL) echo "-"; else echo $monat;echo " ";?><?php if($jahr == NULL) echo "-"; else echo $jahr; ?></td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Beruf:</td>
<td><?php if($beruf == NULL) echo "-"; else echo $beruf; ?></td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Heimatland:</td>
<td><?php echo $heimatland ?></td>
<td><?php if( $heimatland =="Libanon"){ echo "<img src='../../images/libanonklein.gif' width='30' height='20' alt='libanon' />"; } ?>
<?php if(isset($_POST["heimatland"]) && $_POST["heimatland"] =="Deutschland") echo "<img src='../../deutschland.gif' width='20' height='15' alt='deutschland' />";?>
</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Gebiet, Heimatstadt:</td>
<td><?php if($gebiet == NULL) echo "-"; else echo $gebiet; ?></td>
<td><?php if($heimatstadt == NULL) echo "-"; else echo $heimatstadt; ?></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td colspan="3" align="left" bgcolor="#FF8080"><strong><span style="color:#FF0000">Kontakt</span></strong></td>
<td> </td>
<td> </td>
<td> </td>
<td width="10%"> </td>
</tr>
<tr>
<td>MSN:</td>
<td><?php if($msn == NULL) echo "-"; else echo $msn; ?></td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>ICQ:</td>
<td><?php if($icq == NULL) echo "-"; else echo $icq; ?></td>
<td><img src="http://web.icq.com/whitepages/online?icq=452598359&img=5" /></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>YIM:</td>
<td><?php if($yim == NULL) echo "-"; else echo $yim; ?></td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Telefon:</td>
<td><?php if(isset($_POST["telefon"])){echo $telefon; } else { echo "-"; } ?></td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Bundesland, Ort:</td>
<td><?php if($bundesland == NULL) echo "-"; else echo $bundesland; ?></td>
<td><?php if($ort == NULL) echo "-"; else echo $ort; ?></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td colspan="3" align="left" bgcolor="#FF8080"><strong><span style="color:#FF0000">Persönliches</span></strong></td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Beziehungsstatus:</td>
<td><?php if($beziehung == NULL) echo "-"; else echo $beziehung; ?></td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Politik:</td>
<td><?php if($politik == NULL) echo "-"; else echo $politik; ?></td>
<td> </td>
<td> </td>
<td> </td>
<td><input type="button" name="B1" size = "150" value="<?php echo $vorname.$name; echo "eine Nachricht schicken"; ?>" onClick="NewWindow('popup_mail.php','mypopup','600','420','custom','front');"></td>
</tr>
<tr>
<td>Interessen:</td>
<td><?php if($interesse == NULL) echo "-"; else echo $interessen; ?></td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Clubs/Vereine:</td>
<td><?php if($clubs == NULL) echo "-"; else echo $clubs; ?></td>
<td> </td>
<td> </td>
<td> </td>
<td><input type="button" name="B1" size = "100" value="<?php echo $vorname.$name; echo "als Freund hinzufügen"; ?>" onClick="NewWindow('http://www.DeineDomain.de/Seite.htm','mypopup','311','311','custom','front');"></td>
</tr>
<tr>
<td>Musik:</td>
<td><?php if($musik == NULL) echo "-"; else echo $musik; ?></td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td></td>
</tr>
<tr>
<td>Lieblingszitat:</td>
<td colspan="2" ><?php if($txtZitat == NULL) echo "-"; else echo $txtZitat; ?></td>
<td > </td>
<td > </td>
<td ><?php echo "Hier ist die Freunde von ";echo $vorname.$name; echo"!";?></td>
</tr>
<tr>
<td> </td>
<td width="20%"> </td>
<td width="13%"> </td>
</tr>
<tr>
<td > </td>
<td colspan="" > </td>
<td > </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td > </td>
<td colspan="" > </td>
<td > </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td >Über mich:</td>
<td colspan="2" ><?php if($txtAboutme == NULL) echo "-"; else echo $txtAboutme; ?></td>
<td > </td>
<td > </td>
<td > </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
<p> </p>
</form>
</body>
</html>