Update of /cvsroot/openfirst/emoticon
In directory sc8-pr-cvs1:/tmp/cvs-serv4117
Modified Files:
emoticonf.php
Log Message:
Changed some design aspects of the include.
Index: emoticonf.php
===================================================================
RCS file: /cvsroot/openfirst/emoticon/emoticonf.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** emoticonf.php 23 Jul 2003 21:20:40 -0000 1.7
--- emoticonf.php 19 Aug 2003 22:44:39 -0000 1.8
***************
*** 49,58 ****
function emoticon_preview ($limit = 5, $start = 0) {
$query = mysql_query("SELECT * FROM ofirst_emoticon LIMIT $start,$limit");
! echo "<table>";
while ($emot = mysql_fetch_object($query)) {
echo "<tr><td>".$emot->substitution."</td><td>".$emot->emoticon."</td></tr>";
}
! echo "</table>";
}
--- 49,59 ----
function emoticon_preview ($limit = 5, $start = 0) {
+ global $basepath;
$query = mysql_query("SELECT * FROM ofirst_emoticon LIMIT $start,$limit");
! echo "<table><th>Emoticons</th><th></th>";
while ($emot = mysql_fetch_object($query)) {
echo "<tr><td>".$emot->substitution."</td><td>".$emot->emoticon."</td></tr>";
}
! echo "<td><a href='$basepath/emoticons/'>Show more...</a></td></table>";
}
|