| 1 | <br> |
| 2 | <form method='post' action='?action=friends'> |
| 3 | meno: <input type='text' name='friend_name'><br> |
| 4 | <textarea name='friend_text'></textarea><br> |
| 5 | <input type='submit' name='event' value='pridaj priatela'><input type='submit' name='event' value='zmaz priatela'> |
| 6 | <br><br>Nastavenie pre vsetkych priatelov:<br> |
| 7 | <input type='submit' name='event' value='denniky'> |
| 8 | <input type='checkbox' name='journauxall' value='1' style='border : 0;width : 14;height : 14;'><br> |
| 9 | <input type='submit' name='event' value='kluby'> |
| 10 | <input type='checkbox' name='forumall' value='1' style='border : 0;width : 14;height : 14;'> |
| 11 | <br><br><br><input type='submit' name='event' value='zmen nastavenie'> |
| 12 | <?php |
| 13 | $result=mysql_query("select session.user_action,session.user_action_id,session.user_action_name,friends.*,user.login as friend_name from friends left join user on user.id=friends.friend_id left join session on session.user_id=friends.friend_id where friends.user_id='$user_id'"); |
| 14 | $i=0; |
| 15 | while ($row=mysql_fetch_array($result)) { |
| 16 | $send_bin=$row['send_mail']; |
| 17 | $s_forum=floor($send_bin/2); |
| 18 | $pp=$send_bin%2; |
| 19 | $s_jornaux=floor($pp/1); |
| 20 | $s_j=$s_jornaux=='1'?'checked':''; |
| 21 | $s_f=$s_forum=='1'?'checked':''; |
| 22 | |
| 23 | echo "\n<table class='bigitem'><tr><td class='icon'>"; |
| 24 | echo "\n<img alt='",$row['friend_name'],"' src='/images/users/",strtolower($row['friend_name']),".gif'>"; |
| 25 | echo "</td><td class='item'>"; |
| 26 | echo "\n<table class='item'>"; |
| 27 | echo "\n<td class='header'><a href='?action=userinfo&node_id=",$row['friend_id'],"'>",$row['friend_name'],"</a>"; |
| 28 | if ($row['user_action']) { |
| 29 | echo " [lokacia:<a class='location' href='?action=",$row['user_action']; |
| 30 | if ($row['user_action']=="forum") echo "&node_id=".$row['user_action_id']."'>",$row['user_action_name']; |
| 31 | else echo "'>".$row['user_action']; |
| 32 | echo "</a>] "; |
| 33 | } |
| 34 | echo "</td>"; |
| 35 | echo "</tr>"; |
| 36 | echo "\n<tr class='content'><td class='content'>",Stripslashes($row['friend_text']),"</td></tr>"; |
| 37 | echo "<tr><td>"; |
| 38 | echo "\n<table width='100%' bgcolor='#222222'><tr>"; |
| 39 |