Location: PHPKode > projects > H-tracker > moresmiles.php
<?
//
//  H-Tracker v0.2
//    http://h-tracker.org
//    Based on TorrentTrader (http://www.torrenttrader.org)
//
//
require_once("backend/functions.php");
require_once("backend/smilies.php");
?>
<html><head>
<title>more clickable smilies</title>
<link rel="stylesheet" type="text/css" href="<?=$site_config['SITEURL']?>/themes/<?=$THEME?>/css/theme.css">
</head>
<script language=javascript>

function SmileIT(smile,form,text){
window.opener.document.forms[form].elements[text].value = window.opener.document.forms[form].elements[text].value+" "+smile+" ";
window.opener.document.forms[form].elements[text].focus();
window.close();
}
</script>

<table class="smilies" width="100%" cellpadding="0" cellspacing="1">
<tr>
<?

while ((list($code, $url) = each($smilies))) {
if ($count % 5==0)
print("\n<tr>");

print("\n\t<td class=\"smilies\" align=\"center\"><a href=\"javascript: SmileIT('".str_replace("'","\'",$code)."','".$_GET["form"]."','".$_GET["text"]."')\"><img border=0 src=images/smilies/".$url."></a></td>");
$count++;

if ($count % 5==0)
print("\n</tr>");
}

while ((list($code, $url) = each($privatesmilies))) {
if ($count % 5==0)
print("\n<tr>");

print("\n\t<td class=\"smilies\" align=\"center\"><a href=\"javascript: SmileIT('".str_replace("'","\'",$code)."','".$_GET["form"]."','".$_GET["text"]."')\"><img border=0 src=images/smilies/".$url."></a></td>");
$count++;

if ($count % 5==0)
print("\n</tr>");
}

?>
</tr>
</table>
<div align="center">
<a href="javascript: window.close()">Close</a>
</div>
Return current item: H-tracker