173 lines
5.9 KiB
Plaintext
173 lines
5.9 KiB
Plaintext
<html>
|
|
<head>
|
|
<title>[[InsertChars]] </title>
|
|
<meta name="content-type" content="text/html ;charset=Unicode" />
|
|
<meta http-equiv="Page-Enter" content="blendTrans(Duration=0.1)" />
|
|
<meta http-equiv="Page-Exit" content="blendTrans(Duration=0.1)" />
|
|
<link href='Load.ashx?type=themecss&file=dialog.css&theme=[[_Theme_]]' type="text/css" rel="stylesheet" />
|
|
<style type="text/css">
|
|
table.Grid
|
|
{
|
|
border-width: 6px;
|
|
border-style: none;
|
|
background-color: White;
|
|
border-color: gray;
|
|
font-size:12px;
|
|
}
|
|
|
|
table.Grid TD, table.Grid TH
|
|
{
|
|
padding: 4px 5px 4px 5px;
|
|
border: solid 1px #E1E1E1;
|
|
vertical-align: top;
|
|
}
|
|
</style>
|
|
<script type="text/javascript" src="Load.ashx?type=dialogscript&verfix=1006&file=DialogHead.js"></script>
|
|
<script type="text/javascript">
|
|
|
|
var editor=Window_GetDialogArguments(window);
|
|
|
|
function Close()
|
|
{
|
|
Window_CloseDialog(window);
|
|
}
|
|
|
|
var tds=22;
|
|
function writeChars()
|
|
{
|
|
var str="";
|
|
for(var i=33;i<256;)
|
|
{
|
|
document.write("<tr>");
|
|
for(var j=0;j<=tds;j++)
|
|
{
|
|
document.write("<td onClick='getchar(this)' onmouseover='spcOver(this)' onmouseout='spcOut(this)'>");
|
|
document.write("\x26#"+i+";");
|
|
document.write("</td>");
|
|
i++;
|
|
}
|
|
document.write("</tr>");
|
|
}
|
|
}
|
|
|
|
function writeChars2()
|
|
{
|
|
var arr=["ƒ","Α","Β","Γ","Δ","Ε","Ζ","Η","Θ","Ι","Κ","Λ","Μ","Ν","Ξ","Ο","Π","Ρ","Σ","Τ","Υ","Φ","Χ","Ψ","Ω","α","β","γ","δ","ε","ζ","η","θ","ι","κ","λ","μ","ν","ξ","ο","π","ρ","ς","σ","τ","υ","φ","χ","ψ","ω","ϑ","ϒ","ϖ","•","…","′","″","‾","⁄","℘","ℑ","ℜ","™","ℵ","←","↑","→","↓","↔","↵","⇐","⇑","⇒","⇓","⇔","∀","∂","∃","∅","∇","∈","∉","∋","∏","−","−","∗","√","∝","∞","∠","⊥","⊦","∩","∪","∫","∴","∼","≅","≅","≠","≡","≤","≥","⊂","⊃","⊄","⊆","⊇","⊕","⊗","⊥","⋅","⌈","⌉","⌊","⌋","〈","〉","◊","♠","♣","♥","♦"];
|
|
for(var i=0;i<arr.length;i+=tds)
|
|
{
|
|
document.write("<tr>");
|
|
for(var j=i;j<i+tds&&j<arr.length;j++)
|
|
{
|
|
var n=arr[j];
|
|
|
|
document.write("<td onClick='getchar(this)' onmouseover='spcOver(this)' onmouseout='spcOut(this)' title='" + n+" - "+n.replace("&","&") + "' >");
|
|
document.write(n);
|
|
document.write("</td>");
|
|
}
|
|
document.write("</tr>");
|
|
}
|
|
}
|
|
function spcOver(el)
|
|
{
|
|
el.style.background="#0A246A";el.style.color="white";
|
|
}
|
|
function spcOut(el)
|
|
{
|
|
el.style.background="white";el.style.color="black";
|
|
}
|
|
function getchar(obj)
|
|
{
|
|
var h;
|
|
var fontval=getFontValue()||"Verdana";
|
|
|
|
if(!obj.innerHTML)
|
|
{
|
|
return;
|
|
}
|
|
|
|
h=obj.innerHTML;
|
|
|
|
if(fontval=="Unicode")
|
|
{
|
|
h="<FONT CLASS='UNICODE'>"+obj.innerHTML+"";
|
|
}
|
|
else if(fontval!="Verdana")
|
|
{
|
|
h="<span style=\x27font-family:"+fontval+"\x27>"+obj.innerHTML+"</span>";
|
|
}
|
|
|
|
editor.PasteHTML(h);
|
|
Window_CloseDialog(window);
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="ajaxdiv">
|
|
<table border="0" cellspacing="2" cellpadding="0" ID="Table1">
|
|
<tr >
|
|
<td class="normal">
|
|
[[FontName]]:
|
|
<input type="radio" onchange="sel_font_change()" id="selfont1" name="selfont" value="" checked="checked" />
|
|
<label for="selfont1">[[Default]]</label>
|
|
<!--
|
|
<input type="radio" onchange="sel_font_change()" id="selfont2" name="selfont" value="webdings" />
|
|
<label for="selfont2">Webdings</label>
|
|
<input type="radio" onchange="sel_font_change()" id="selfont3" name="selfont" value="wingdings" />
|
|
<label for="selfont3">Wingdings</label>
|
|
<input type="radio" onchange="sel_font_change()" id="selfont4" name="selfont" value="symbol" />
|
|
<label for="selfont4">Symbol</label>
|
|
-->
|
|
<input type="radio" onchange="sel_font_change()" id="selfont5" name="selfont" value="Unicode" />
|
|
<label for="selfont5">Unicode</label>
|
|
<script type="text/javascript">
|
|
function getFontValue()
|
|
{
|
|
var coll=document.getElementsByName("selfont");
|
|
for(var i=0;i<coll.length;i++)
|
|
if(coll[i].checked)
|
|
return coll[i].value;
|
|
}
|
|
function sel_font_change()
|
|
{
|
|
var font=getFontValue()||"Verdana";
|
|
|
|
|
|
document.getElementById("charstable1").style.display=(font!="Unicode"?"block":"none")
|
|
document.getElementById("charstable2").style.display=(font=="Unicode"?"block":"none")
|
|
|
|
document.getElementById("charstable1").style.fontFamily=font;
|
|
|
|
if(font=="Unicode")
|
|
{
|
|
// alert("WarningUnicodeCharsMayNotWorkWell");
|
|
}
|
|
}
|
|
</script>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center">
|
|
<br />
|
|
<table style="border-collapse: collapse;" class="Grid" width="100%" border="0" ID="charstable1">
|
|
<script type="text/javascript">
|
|
writeChars();
|
|
</script>
|
|
</table>
|
|
<table style="border-collapse: collapse;" class="Grid" width="100%" border="0" ID="charstable2">
|
|
<script type="text/javascript">
|
|
writeChars2();
|
|
</script>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<div align="center" style="margin-top:15px">
|
|
<input type="button" value="[[Cancel]]" class="formbutton" onclick="Close()" ID="Button1" NAME="Button2"/>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
<script type="text/javascript">
|
|
sel_font_change()
|
|
</script>
|
|
</html>
|