14 include 
'../../../mainfile.php';
 
   15 XoopsLogger::getInstance()->activated = 
false;
 
   16 XoopsLogger::getInstance()->renderingEnabled = 
false;
 
   20 $db = XoopsDatabaseFactory::getDatabaseConnection();
 
   21 $result = 
$db->query(
"SELECT * FROM ".
$db->prefix(
"smiles").
" ORDER BY id");
 
   25                 'file'=>XOOPS_UPLOAD_URL.
'/'.$row[
'smile_url'],
 
   26                 'desc'=>$row[
'emotion'],
 
   32 RMEvents::get()->run_event(
'rmcommon.load_emotions',$emotions,
'tiny');
 
   35 <!DOCTYPE HTML PUBLIC 
"-//W3C//DTD HTML 4.0 Transitional//EN">
 
   38 <meta http-equiv=
"Expires" content=
"Fri, Jan 01 1900 00:00:00 GMT">
 
   39 <meta http-equiv=
"Pragma" content=
"no-cache">
 
   40 <meta http-equiv=
"Cache-Control" content=
"no-cache">
 
   41 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8">
 
   42 <script type=
"text/javascript" src=
"<?php echo XOOPS_URL; ?>/modules/rmcommon/api/editors/tinymce/tiny_mce_popup.js"></script>
 
   43 <script type=
"text/javascript" src=
"<?php echo XOOPS_URL; ?>/modules/rmcommon/include/js/jquery.min.js"></script>
 
   44 <link rel=
"stylesheet" type=
"text/css" href=
"<?php echo XOOPS_URL; ?>/modules/rmcommon/api/editors/exmcode/plugins/emotions/css/emotions.css" />
 
   45 <script type=
"text/javascript">
 
   46         $(document).ready(
function(){
 
   47                 $(
"img").click(
function(){
 
   48                         ed = tinyMCEPopup.editor;
 
   49                         var icon = 
'<img src="'+$(
this).attr(
"src")+
'" alt="" />';
 
   50                         ed.execCommand(
"mceInsertContent", 
true, icon);
 
   57 <table width=
"100%" cellpadding=
"2" cellspacing=
"0">
 
   60 <?php 
foreach($emotions as $icon): ?>
 
   66 <td><img src=
"<?php echo $icon['file']; ?>" title=
"<?php echo $icon['desc']; ?>" alt=
"<?php echo $icon['code']; ?>" /><br /><?php echo $icon[
'code']; ?></td>