175 <html style=
"width: 280px; height: 380px;">
177 <TITLE>Click a character to Insert:</TITLE>
178 <script type=
"text/javascript" src=
"../../core/popup.js"></script>
179 <script type=
"text/javascript" src=
"../../core/dialog.js"></script>
180 <script type=
"text/javascript">
186 __dlg_init(
"insertSpecialChar");
189 function onOK(entity) {
191 var param =
new Object();
193 param[
'entity'] = entity;
194 __dlg_close(
"insertSpecialChar", param);
199 function onCancel() {
200 __dlg_close(
"insertSpecialChar", null);
205 function createDivContents(entity) {
206 var retVal =
'<table>';
207 retVal +=
'<tr><td rowspan=2 class="displaychar" >';
209 retVal +=
'</td></tr>';
210 retVal +=
'<tr><td>' + entity.replace(
'&',
'&');
211 retVal +=
'</td></tr></table>';
216 function viewTD(event, td, entity, entityText) {
217 td.className =
'highlighted';
218 var floater = document.getElementById(
'floater');
219 floater.style.left =
event.clientX < 140 ? parseInt(event.clientX) + 10 +
'px' : parseInt(event.clientX) - 120 +
'px';
220 floater.style.top =
event.clientY < 250 ? parseInt(event.clientY) + 10 +
'px' : parseInt(event.clientY) - 80 +
'px';
221 floater.style.display =
"";
222 floater.innerHTML = createDivContents(entityText);
226 function stopView(td) {
227 td.className =
"character";
228 var floater = document.getElementById(
'floater');
229 floater.style.display =
"none";
232 <style type=
"text/css">
235 background-color: #FCFCFC;
242 background-color: #DEDEDE;
244 border: 1px solid #725B7D;
252 border: 1px dashed grey;
253 background-color: #725B7D;
263 background-color: #FFFFFF;
264 filter:alpha(opacity=90);
275 <body onload=
"Init()">
276 <div style=
"margin-left: 15px; margin-top: 10px;">
277 <table cellspacing=0 cellpadding=0 style=
"cursor: pointer; font-weight: 200; border: 1px solid black;" >
280 foreach ($entities as $id => $entity) {
281 if ($id > 0 && ($id % $col_limit == 0)) {
286 <td
class=
"character" onclick=
"onOK('<?php echo $entity; ?>');" onMouseOver=
"viewTD(event, this, '<?php echo $entity; ?>', '<?php echo htmlspecialchars($entity); ?>');" onmouseout=
"stopView(this);" >
290 if ($entity ==
'­') echo
' ';
298 <div
id=
"floater" class=
"floating" style=
"border: 2px solid rgb(64, 47, 160); display:none;" >