| 1 | <table class=boxwithout><tr><td> |
| 2 | <center>uzivatelia</center> |
| 3 | <?php |
| 4 | global $kyberia; |
| 5 | $set=$kyberia->getDennikAuthors(); |
| 6 | //prevedie udaje do arrays, aby sa dali viac krat pouzit |
| 7 | while ($set->next()) { |
| 8 | $array_login[]=$set->getString('login'); |
| 9 | $array_autor[]=$set->getString('autor'); |
| 10 | } |
| 11 | |
| 12 | |
| 13 | echo "<br><br>~~~ friends ~~~<br>"; |
| 14 | |
| 15 | for ($i=0;$i<count($array_login);$i++){ |
| 16 | $d_login=$array_login[$i]; |
| 17 | $d_autor=$array_autor[$i]; |
| 18 | |
| 19 | if ($friend_array[$d_autor]){ |
| 20 | echo "<br><a href='?action=journaux&dennik_user=",$d_autor,"'><b>",$d_login,"</b></a>"; |
| 21 | }else{ |
| 22 | } |
| 23 | } |
| 24 | echo "<br><br>~~~ friends ~~~<br><br>"; |
| 25 | |
| 26 | for ($i=0;$i<count($array_login);$i++){ |
| 27 | $d_login=$array_login[$i]; |
| 28 | $d_autor=$array_autor[$i]; |
| 29 | |
| 30 | if ($friend_array[$d_autor]){ |
| 31 | }else{ |
| 32 | echo "<br><a href='?action=journaux&dennik_user=",$d_autor,"'>",$d_login,"</a>"; |
| 33 | } |
| 34 | } |
| 35 | ?> |
| 36 | </td></tr></table> |