Parašė bruzgis· 2008 Lie. 5 11:07:04
#12
Duodu uzuomina:
<p><br><center><table width='80%'><tr><td colspan='3' class='tbl2'><center>Vartotojo <b>".$data['user_realname']." </b>draugai</center></td></tr><tr ><td>";
}
$result = dbquery("
SELECT
user.user_mood user_mood,
user.user_id user_id,
user.user_realname user_realname,
user.user_avatar user_avatar,
user.gender gender
FROM
`pingvin_buddys` buddy
INNER JOIN `pingvin_users` user ON buddy.buddy_to = user.user_id
WHERE
1=1
and buddy.buddy_from ='$lookup'
and user.user_realname!=''
and user.user_id!=''
");
$friends = '';
echo "<table>";
while ($b_data = dbarray($result) ) {
$friends.="<tr>";
if ($b_data['user_avatar']) {
$c ="'".BASEDIR."images/avatars/".$b_data['user_avatar']."'";
}
else if ($b_data['gender'] == 0) {
$c ="'".BASEDIR."images/no.gif'";
}
else if ($b_data['gender'] == 1) {
$c ="'".BASEDIR."images/vyras.gif'";
} elseif ($b_data['gender'] == 2) {
$c ="'".BASEDIR."images/moteris.gif'";
}
if ($b_data != 0) { $b = "<td class='tbl1'><center>
<table border='0' background=$c' cellpadding='0' cellspacing='0' width='100' height='100' style='background-repeat:no-repeat; background-position: center;'>
<tr>
<td width='100%' height='90'>
<table border='0' cellpadding='0' cellspacing='0' width='100%' height='100'>
<tr>
<td width='70' height='74' rowspan='2'> </td>
<td width='30' height='20'>
<img src='".BASEDIR."images/mood/";
$b .= $b_data['user_mood'] == NULL ? "NULL" : $b_data['user_mood'];
$b.= ".gif' width='20' height='20' style='border: 2px solid #FFFFFF;'></td>
</tr>
<tr>
<td width='30' height='54'> </td>
</tr>
</table>
</td>
</tr>
</table><br><a href='".BASEDIR."profilis.php?lookup=".$b_data['user_id']."'>".$b_data['user_realname']."</a>
</center></td>";}
$b_data = dbarray($result);
if ($b_data['user_avatar']) {
$c ="'".BASEDIR."images/avatars/".$b_data['user_avatar']."'";
}
else if ($b_data['gender'] == 0) {
$c ="'".BASEDIR."images/no.gif'";
}
else if ($b_data['gender'] == 1) {
$c ="'".BASEDIR."images/vyras.gif'";
} elseif ($b_data['gender'] == 2) {
$c ="'".BASEDIR."images/moteris.gif'";
}
if ($b_data != 0) { $b .= "<td class='tbl1'><center>
<table border='0' background=$c' cellpadding='0' cellspacing='0' width='100' height='100' style='background-repeat:no-repeat; background-position: center;'>
<tr>
<td width='100%' height='90'>
<table border='0' cellpadding='0' cellspacing='0' width='100%' height='100'>
<tr>
<td width='70' height='74' rowspan='2'> </td>
<td width='30' height='20'>
<img src='".BASEDIR."images/mood/";
$b .= $b_data['user_mood'] == NULL ? "NULL" : $b_data['user_mood'];
$b.= ".gif' width='20' height='20' style='border: 2px solid #FFFFFF;'></td>
</tr>
<tr>
<td width='30' height='54'> </td>
</tr>
</table>
</td>
</tr>
</table><br><a href='".BASEDIR."profilis.php?lookup=".$b_data['user_id']."'>".$b_data['user_realname']."</a>
</center></td>";}
$b_data = dbarray($result);
if ($b_data['user_avatar']) {
$c ="'".BASEDIR."images/avatars/".$b_data['user_avatar']."'";
}
else if ($b_data['gender'] == 0) {
$c ="'".BASEDIR."images/no.gif'";
}
else if ($b_data['gender'] == 1) {
$c ="'".BASEDIR."images/vyras.gif'";
} elseif ($b_data['gender'] == 2) {
$c ="'".BASEDIR."images/moteris.gif'";
}
if ($b_data != 0) { $b .= "<td class='tbl1'><center>
<table border='0' background=$c' cellpadding='0' cellspacing='0' width='100' height='100' style='background-repeat:no-repeat; background-position: center;'>
<tr>
<td width='100%' height='90'>
<table border='0' cellpadding='0' cellspacing='0' width='100%' height='100'>
<tr>
<td width='70' height='74' rowspan='2'> </td>
<td width='30' height='20'>
<img src='".BASEDIR."images/mood/";
$b .= $b_data['user_mood'] == NULL ? "NULL" : $b_data['user_mood'];
$b.= ".gif' width='20' height='20' style='border: 2px solid #FFFFFF;'></td>
</tr>
<tr>
<td width='30' height='54'> </td>
</tr>
</table>
</td>
</tr>
</table><br><a href='".BASEDIR."profilis.php?lookup=".$b_data['user_id']."'>".$b_data['user_realname']."</a>
</center></td>"; }
$friends .= $b."</tr>";
}
echo "</table>";
echo "".substr($friends,0,strlen($friends)-2);
echo "</td></tr></table></center>
Toliau susitvarkysi pats