Location: PHPKode > projects > Aerial chat > help_smiley.php
<?php

require "./connect.inc.php";

print <<<EOT
<HEAD>
<link rel="stylesheet" href="./style.css" type="text/css">
<TITLE>Aerial Chat little helper</TITLE>



</HEAD>
<body bgcolor="#003366" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" class=menublanc>
Smileys
<BR>
<DIV class=blanc>
A smiley's called by a code<BR>
For instance, typing this code :&nbsp;&nbsp;:-) will display this smiley : <IMG SRC="./images/happy.gif">
</DIV><BR>
<BR>
<CENTER>
<TABLE  COLS=3 BORDER=1 CELLSPACING=1 CELLPADDING=1 class=blanc bgcolor="#006699" WIDTH=100% >
<TR>

<TD WIDTH=33% >
<TABLE  COLS=2 BORDER=1 CELLSPACING=1 CELLPADDING=1 class=blanc bgcolor="#006699" >
<TR class=menujaune>
<TD WIDTH=50 class=menujaune><CENTER>Code</CENTER></TD>
<TD WIDTH=100 class=menujaune><CENTER>Smiley</CENTER></TD>
</TR>

EOT;

//########## Traitement des smileys ##########
$sql_131 = "SELECT * FROM ae_smileys limit 1,16;";
$sql_h_131 = mysql_query($sql_131) or die ("Could not execute request ! err code : $sql_131");
while(list($t_code,$t_link) = mysql_fetch_row($sql_h_131)) {
$t_code=stripslashes($t_code);
$t_link="<IMG SRC=./images/".$t_link.">";
print "<TR><TD class=blanc><CENTER>$t_code</CENTER></TD><TD><CENTER>$t_link</CENTER></TD></TR>";
      }

print <<<EOT

</TABLE>
</TD>

<TD WIDTH=33% >
<TABLE  COLS=2 BORDER=1 CELLSPACING=1 CELLPADDING=1 class=blanc bgcolor="#006699" WIDTH=100% >
<TR class=menujaune>
<TD WIDTH=50 class=menujaune><CENTER>Code</CENTER></TD>
<TD WIDTH=100 class=menujaune><CENTER>Smiley</CENTER></TD>
</TR>
EOT;

//########## Traitement des smileys ##########
$sql_131 = "SELECT * FROM ae_smileys limit 17,16;";
$sql_h_131 = mysql_query($sql_131) or die ("Could not execute request ! err code : $sql_131");
while(list($t_code,$t_link) = mysql_fetch_row($sql_h_131)) {
$t_code=stripslashes($t_code);
$t_link="<IMG SRC=./images/".$t_link.">";
print "<TR><TD class=blanc><CENTER>$t_code</CENTER></TD><TD><CENTER>$t_link</CENTER></TD></TR>";
      }

print <<<EOT
</TABLE>
</TD>

<TD WIDTH=33% >
<TABLE  COLS=2 BORDER=1 CELLSPACING=1 CELLPADDING=1 class=blanc bgcolor="#006699" WIDTH=100% >
<TR class=menujaune>
<TD WIDTH=50 class=menujaune><CENTER>Code</CENTER></TD>
<TD WIDTH=100 class=menujaune><CENTER>Smiley</CENTER></TD>
</TR>
EOT;

//########## Traitement des smileys ##########
$sql_132 = "SELECT * FROM ae_smileys limit 33,-1;";
$sql_h_132 = mysql_query($sql_132) or die ("Could not execute request ! err code : $sql_132");
while(list($t_code,$t_link) = mysql_fetch_row($sql_h_132)) {
$t_code=stripslashes($t_code);
$t_link="<IMG SRC=./images/".$t_link.">";
print "<TR><TD class=blanc><CENTER>$t_code</CENTER></TD><TD><CENTER>$t_link</CENTER></TD></TR>";
      }

print <<<EOT
</TABLE>
</TD>
EOT;

print <<<EOT
</TR>
</TABLE>
</CENTER>
EOT;

?>
Return current item: Aerial chat