chuvak_php, [code]
<?
if (isset($user)){
$i=0;
echo '<tr><table style="width:100%" cellspacing="0" cellpadding="0"><tr>';
$q = mysql_query("SELECT * FROM `user_link` WHERE `id_user` = '$user[id]' ORDER BY `position` ASC"
;
echo '<div style="text-align:' . $user['foot_panel_align'] . ';">';
while ($post = mysql_fetch_assoc($q))
{
$i++;
$link = mysql_fetch_assoc(mysql_query("SELECT * FROM `user_link_list` WHERE `id` = '$post[id_link]' LIMIT 1"
);
if ($user['foot_panel_type'] == 'link')
echo '<td class="pan"><a href="' . $link['link'] . '"><center><font color="yellow">' . $link['name_str'] . '</font></center></a><td>';
else
echo '<td class="pan"><a href="' . $link['link'] . '"><center><img src="/style/icons/' . $link['icon'] . '" /></center></a></td>';
if ($i%5==0)echo '</tr><tr>';
}
echo '<td class="pan"><a href="/user/link/"><center>+</center></a></td>';
echo '</div>';
echo '</tr></table></tr>';
}
?>
[/code]