2 ################################################################################
4 ## HTML Text Editing Component for hosting in Web Pages
5 ## Copyright (C) 2001 Ramesys (Contracting Services) Limited
7 ## This library is free software; you can redistribute it and/or
8 ## modify it under the terms of the GNU Lesser General Public
9 ## License as published by the Free Software Foundation; either
10 ## version 2.1 of the License, or (at your option) any later version.
12 ## This library is distributed in the hope that it will be useful,
13 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 ## Lesser General Public License for more details.
17 ## You should have received a copy of the GNU LesserGeneral Public License
18 ## along with this program; if not a copy can be obtained from
20 ## http://www.gnu.org/copyleft/lesser.html
24 ## Free Software Foundation, Inc.
25 ## 59 Temple Place - Suite 330,
30 ## Original Developer:
32 ## Austin David France
33 ## Ramesys (Contracting Services) Limited
40 ## email: Austin.France@Ramesys.com
42 ## Home Page: http://richtext.sourceforge.net/
43 ## Support: http://richtext.sourceforge.net/
45 ################################################################################
48 require("../../../../config.php");
50 $id = optional_param('id', SITEID
, PARAM_INT
);
52 require_course_login($id);
53 @header
('Content-Type: text/html; charset=utf-8');
55 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
56 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
59 <meta http
-equiv
="content-type" content
="text/html; charset=utf-8" />
60 <style type
="text/css">
62 body
{ background
: ButtonFace
; color
: ButtonText
; font
: 11px Tahoma
,Verdana
,sans
-serif
;
63 margin
: 0px
; padding
: 0px
; }
64 form p
{ margin
-top
: 5px
; margin
-bottom
: 5px
; }
65 select
, input
, button
{ font
: 11px Tahoma
,Verdana
,sans
-serif
; }
66 button
{ width
: 70px
; }
67 .space
{ padding
: 2px
; }
68 .title
{ background
: #ddf; color: #000; font-weight: bold; font-size: 14px; padding: 3px 10px; margin-bottom: 10px;
69 border
-bottom
: 1px solid black
; letter
-spacing
: 2px
; }
70 form
{ padding
: 0px
; margin
: 0px
; }
71 .chr
{ background
-color
: transparent
; border
: 1px solid
#dcdcdc; font-family: "Times New Roman", times;
75 <script type
="text/javascript" src
="popup.js"></script
>
76 <script type
="text/javascript">
81 var chars
= ["!",""","#","$","%","&","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","€","ƒ","„","…","†","‡","ˆ","\‰","Š","‹","Œ","‘","’","’","“","”","•","–","—","˜","™","š","›","œ","Ÿ","¡","¢","£","£","¤","¥","¦","§","¨","©","ª","«","¬","","®","¯","°","±","²","³","´","µ","¶","·","¸","¹","º","»","¼","½","¾","¿","À","Á","Â","Ã","Ä","Å","Æ","Ç","È","É","Ê","Ë","Ì","Í","Î","Ï","Ð","Ñ","Ò","Ó","Ô","Õ","Ö","×","Ø","Ù","Ú","Û","Ü","Ý","Þ","ß","à","á","â","ã","ä","å","æ","ç","è","é","ê","ë","ì","í","î","ï","ð","ñ","ò","ó","ô","õ","ö","÷","ø","ù","ú","û","ü","ü","ý","þ","ÿ"]
84 var strtab
= ["<table border='0' cellspacing='0' cellpadding='0' align='center' bordercolor='#dcdcdc' bgcolor='#C0C0C0'>"]
86 for(var i
= 0; i
< w
; i++
) {
87 strtab
[strtab
.length
] = "<tr>";
88 for(var j
= 0; j
< h
; j++
) {
89 strtab
[strtab
.length
] = "<td class='chr' width='14' align='center' onClick='getchar(this)' onMouseOver='hover(this,true)' onMouseOut='hover(this,false)'>"+
(chars
[k
]||
'')+
"</td>";
92 strtab
[strtab
.length
]="</tr>";
94 strtab
[strtab
.length
] = "</table>";
95 return strtab
.join("\n");
98 function hover(obj
,val
) {
100 obj
.style
.cursor
= "default";
103 obj
.style
.border
= val ?
"1px solid black" : "1px solid #dcdcdc";
104 //obj.style.backgroundColor = val ? "black" : "#C0C0C0"
105 //obj.style.color = val ? "white" : "black";
107 function getchar(obj
) {
108 if(!obj
.innerHTML
) return;
109 var sChar
= obj
.innerHTML ||
"";
119 <title
><?php
print_string("choosechar","editor");?
></title
>
121 <body onload
="Init()">
122 <table
class="dlg" cellpadding
="0" cellspacing
="2">
123 <tr
><td
><table width
="100%"><tr
><td
class="title" nowrap
><?php
print_string("choosechar","editor") ?
></td
></tr
></table
></td
></tr
>
126 <table border
="0" align
="center" cellpadding
="5">
130 <script type
="text/javascript">
132 document
.write(tab(7,32))
141 <tr
><td
><table width
="100%"><tr
><td valign
="middle" width
="90%"><hr width
="100%"></td
></tr
></table
></td
></tr
>
142 <tr
><td align
="right">
143 <button type
="button" onclick
="cancel()"><?php
print_string("close","editor") ?
></button
></td
></tr
>