Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]3 tabele emotkow
-kalwin-
post
Post #1





Goście







u mnie wyglada to tak http://img11.imageshack.us/img11/2512/zrzu...01201042038.png

  1. function insert_smilies_frame()
  2. {
  3. global $smilies, $BASEURL;
  4.  
  5.  
  6. begin_frame("Emotikony", true);
  7.  
  8.  
  9. begin_table(false, 5);
  10.  
  11.  
  12. print("<tr><td class=colhead>Napisz...</td><td class=colhead>By zrobi\E6...</td></tr>\n");
  13.  
  14.  
  15. while (list($code, $url) = each($smilies))
  16. print("<tr><td>$code</td><td><img src=$BASEURL/pic/smilies/$url></td>\n");
  17.  
  18.  
  19. end_table();
  20.  
  21.  
  22. end_frame();
  23. }


a chce zeby to wygladało ta jak na screenie http://img571.imageshack.us/img571/4502/beztytuugxd.jpg
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
-kalwin-
post
Post #2





Goście







wyszło mi cos takiego (IMG:style_emoticons/default/smile.gif) http://img269.imageshack.us/img269/9100/20062692.png

  1. function insert_smilies_frame()
  2. {
  3. global $smilies, $BASEURL;
  4.  
  5.  
  6. begin_frame("Emotikony", true);
  7.  
  8.  
  9. begin_table(false, 5);
  10.  
  11.  
  12. print("<tr><td class=colhead>Napisz...</td><td class=colhead>By zrobić...</td></tr>\n");
  13.  
  14.  
  15.  
  16.  
  17. $i = 0;
  18.  
  19.  
  20. while (list($code, $url) = each($smilies)) {
  21.  
  22.  
  23. if (($i%3) == 0) echo "<tr>\n";
  24.  
  25.  
  26. echo " <td>\n";
  27. echo " <table>\n";
  28. echo " <tr>\n";
  29. echo " <td>$code</td>\n";
  30. echo " <td><img src=$BASEURL/pic/smilies/$url></td>\n";
  31. echo " </tr>\n";
  32. echo " </table>\n";
  33. echo " </td>\n";
  34.  
  35. if(($i%3) == 2) echo "</tr>\n";
  36.  
  37. $i ++;
  38. }
  39.  
  40.  
  41.  
  42.  
  43. end_table();
  44.  
  45.  
  46. end_frame(); }
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 9.10.2025 - 10:43