13,7 → 13,7 |
$mems =& $db->query("SELECT * FROM members"); |
echo "<table>"; |
echo "<tr>"; |
echo "<th>Ник</th><th>Аватар</th><th>Контакты</th><th>Куратор</th>\n"; |
echo "<th>Ник</th><th>Аватар</th><th>Контакты</th><th>Куратор</th><th>Админ</th>\n"; |
while ($mems->fetchInto($info_mems, DB_FETCHMODE_ASSOC)) { |
echo "<tr><td><a href='./members.php?memb=".$info_mems['id']."'>".$info_mems['nick']."</a></td>\n"; |
echo "<td><img src='".$info_mems['avatar']."' alt='avatar'></td><td><img src='./img/contact/jabber_protocol.png' alt='Jabber' title='Jabber'>".$info_mems['jabber']."</td>\n"; |
23,7 → 23,17 |
while ($ress->fetchInto($info_ress, DB_FETCHMODE_ASSOC)) { |
echo "<img src='".$info_ress['picture']."' alt='".$info_ress['resource']."'> <a href='./details.php?res=".$info_ress["id"]."'>".$info_ress['resource']."</a><br>"; |
} |
echo "</td></tr>\n"; |
echo "</td>"; |
echo "<td>"; |
$srvs =& $db->query("SELECT * FROM servers WHERE member_id=".$info_mems['id']); |
if ($srvs->numRows()==0) |
echo "&mdash"; |
else |
while ($srvs->fetchInto($info_srvs, DB_FETCHMODE_ASSOC)) { |
echo "<a href='./servers.php?srv=".$info_srvs['id']."'>".$info_srvs['server']."</a>"; |
} |
echo "</td>\n"; |
echo "</tr>\n"; |
} |
echo "</table>"; |
} |
39,6 → 49,12 |
while ($ress->fetchInto($info_ress, DB_FETCHMODE_ASSOC)) { |
echo "<img src='".$info_ress['picture']."'> <a href='./details.php?res=".$info_ress["id"]."'>".$info_ress['resource']."</a> | "; |
} |
echo "<br>"; |
echo "<br>Администрирует:<br> | "; |
$srvs =& $db->query("SELECT * FROM servers WHERE member_id=".$memb); |
while ($srvs->fetchInto($info_srvs, DB_FETCHMODE_ASSOC)) { |
echo "<a href='./servers.php?srv=".$info_srvs['id']."'>".$info_srvs['server']."</a> |<br>"; |
} |
} |
} |
|