20 defined(
'XOOPS_ROOT_PATH') or die('Restricted access');
31 function
xoopsCodeTarea($textarea_id, $cols = 60, $rows = 15, $suffix = null)
34 $hiddenText = isset($suffix) ?
'xoopsHiddenText' . trim($suffix) :
'xoopsHiddenText';
37 $text_editor->htmlEditor = null;
38 $text_editor->smilies =
false;
39 echo $text_editor->render();
50 $smiles =
$myts->getSmileys(FALSE);
51 $count = count($smiles);
52 for(
$i = 0;
$i < $count;
$i ++) {
53 echo
"<img src='" .
XOOPS_UPLOAD_URL .
"/" . htmlspecialchars($smiles[
$i][
'smile_url'], ENT_QUOTES) .
"' border='0' alt='' onclick='xoopsCodeSmilie(\"{$textarea_id}\", \" " . $smiles[
$i][
'code'] .
" \");' onmouseover='style.cursor=\"hand\"' />";
55 echo
" [<a href='#moresmiley' onmouseover='style.cursor=\"hand\"' alt='' onclick='openWithSelfMain(\"" . XOOPS_URL .
"/misc.php?action=showpopups&type=smilies&target={$textarea_id}\",\"smilies\",300,475);'>" .
_MORE .
"</a>]";