mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Removing unnecessary files
This commit is contained in:
parent
285ce16112
commit
9b9e3f1037
@ -1,36 +0,0 @@
|
||||
// I18N constants -- Chinese Big-5
|
||||
// by Dave Lo -- dlo@interactivetools.com
|
||||
HTMLArea.I18N = {
|
||||
|
||||
// the following should be the filename without .js extension
|
||||
// it will be used for automatically load plugin language.
|
||||
lang: "b5",
|
||||
|
||||
tooltips: {
|
||||
bold: "粗體",
|
||||
italic: "斜體",
|
||||
underline: "底線",
|
||||
strikethrough: "刪除線",
|
||||
subscript: "下標",
|
||||
superscript: "上標",
|
||||
justifyleft: "位置靠左",
|
||||
justifycenter: "位置居中",
|
||||
justifyright: "位置靠右",
|
||||
justifyfull: "位置左右平等",
|
||||
orderedlist: "順序清單",
|
||||
unorderedlist: "無序清單",
|
||||
outdent: "減小行前空白",
|
||||
indent: "加寬行前空白",
|
||||
forecolor: "文字顏色",
|
||||
backcolor: "背景顏色",
|
||||
horizontalrule: "水平線",
|
||||
createlink: "插入連結",
|
||||
insertimage: "插入圖形",
|
||||
inserttable: "插入表格",
|
||||
htmlmode: "切換HTML原始碼",
|
||||
popupeditor: "放大",
|
||||
about: "關於 HTMLArea",
|
||||
help: "說明",
|
||||
textindicator: "字體例子"
|
||||
}
|
||||
};
|
@ -1,38 +0,0 @@
|
||||
// danish version for htmlArea v3.0 - Alpha Release
|
||||
// - translated by rene<rene@laerke.net>
|
||||
// term´s and licenses are equal to htmlarea!
|
||||
|
||||
HTMLArea.I18N = {
|
||||
|
||||
// the following should be the filename without .js extension
|
||||
// it will be used for automatically load plugin language.
|
||||
lang: "da",
|
||||
|
||||
tooltips: {
|
||||
bold: "Fed",
|
||||
italic: "Kursiv",
|
||||
underline: "Understregning",
|
||||
strikethrough: "Overstregning ",
|
||||
subscript: "Sænket skrift",
|
||||
superscript: "Hævet skrift",
|
||||
justifyleft: "Venstrejuster",
|
||||
justifycenter: "Centrer",
|
||||
justifyright: "Højrejuster",
|
||||
justifyfull: "Lige margener",
|
||||
orderedlist: "Opstilling med tal",
|
||||
unorderedlist: "Opstilling med punkttegn",
|
||||
outdent: "Formindsk indrykning",
|
||||
indent: "Forøg indrykning",
|
||||
forecolor: "Skriftfarve",
|
||||
backcolor: "Baggrundsfarve",
|
||||
horizontalrule: "Horisontal linie",
|
||||
createlink: "Indsæt hyperlink",
|
||||
insertimage: "Indsæt billede",
|
||||
inserttable: "Indsæt tabel",
|
||||
htmlmode: "HTML visning",
|
||||
popupeditor: "Vis editor i popup",
|
||||
about: "Om htmlarea",
|
||||
help: "Hjælp",
|
||||
textindicator: "Anvendt stil"
|
||||
}
|
||||
};
|
@ -1,38 +0,0 @@
|
||||
// german version for htmlArea v3.0 - Alpha Release
|
||||
// - translated by AtK<atk@chello.at>
|
||||
// term´s and licenses are equal to htmlarea!
|
||||
|
||||
HTMLArea.I18N = {
|
||||
|
||||
// the following should be the filename without .js extension
|
||||
// it will be used for automatically load plugin language.
|
||||
lang: "de",
|
||||
|
||||
tooltips: {
|
||||
bold: "Fett",
|
||||
italic: "Kursiv",
|
||||
underline: "Unterstrichen",
|
||||
strikethrough: "Durchgestrichen",
|
||||
subscript: "hochgestellt",
|
||||
superscript: "tiefgestellt",
|
||||
justifyleft: "Links ausrichten",
|
||||
justifycenter: "Zentrieren",
|
||||
justifyright: "Rechts ausrichten",
|
||||
justifyfull: "Blocksatz",
|
||||
orderedlist: "Nummerierung",
|
||||
unorderedlist: "Aufzählungszeichen",
|
||||
outdent: "Einzug verkleinern",
|
||||
indent: "Einzug vergrössern",
|
||||
forecolor: "Text Farbe",
|
||||
backcolor: "Hintergrund Farbe",
|
||||
horizontalrule: "Horizontale Linie",
|
||||
createlink: "Hyperlink einfügen",
|
||||
insertimage: "Bild einfügen",
|
||||
inserttable: "Tabelle einfügen",
|
||||
htmlmode: "HTML Modus",
|
||||
popupeditor: "Editor im Popup öffnen",
|
||||
about: "Über htmlarea",
|
||||
help: "Hilfe",
|
||||
textindicator: "derzeitiger Stil"
|
||||
}
|
||||
};
|
@ -1,36 +0,0 @@
|
||||
// I18N constants
|
||||
|
||||
HTMLArea.I18N = {
|
||||
|
||||
// the following should be the filename without .js extension
|
||||
// it will be used for automatically load plugin language.
|
||||
lang: "es",
|
||||
|
||||
tooltips: {
|
||||
bold: "Negritas",
|
||||
italic: "Cursiva",
|
||||
underline: "Subrayado",
|
||||
strikethrough: "Texto Cruzado",
|
||||
subscript: "Subscript",
|
||||
superscript: "Superscript",
|
||||
justifyleft: "Alinear a la Izquierda",
|
||||
justifycenter: "Centrar",
|
||||
justifyright: "Alinear a la Derecha",
|
||||
justifyfull: "Justificar",
|
||||
orderedlist: "Lista Ordenada",
|
||||
unorderedlist: "Lista No Ordenada",
|
||||
outdent: "Aumentar Sangría",
|
||||
indent: "Disminuir Sangría",
|
||||
forecolor: "Color del Texto",
|
||||
backcolor: "Color del Fondo",
|
||||
horizontalrule: "Línea Horizontal",
|
||||
createlink: "Insertar Enlace",
|
||||
insertimage: "Insertar Imagen",
|
||||
inserttable: "Insertar Tabla",
|
||||
htmlmode: "Ver Documento en HTML",
|
||||
popupeditor: "Ampliar Editor",
|
||||
about: "Acerca del Editor",
|
||||
help: "Ayuda",
|
||||
textindicator: "Estilo Actual"
|
||||
}
|
||||
};
|
@ -1,63 +0,0 @@
|
||||
// I18N constants
|
||||
|
||||
// LANG: "en", ENCODING: UTF-8 | ISO-8859-1
|
||||
// Author: Mihai Bazon, <mishoo@infoiasi.ro>
|
||||
|
||||
// FOR TRANSLATORS:
|
||||
//
|
||||
// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE
|
||||
// (at least a valid email address)
|
||||
//
|
||||
// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING;
|
||||
// (if this is not possible, please include a comment
|
||||
// that states what encoding is necessary.)
|
||||
|
||||
HTMLArea.I18N = {
|
||||
|
||||
// the following should be the filename without .js extension
|
||||
// it will be used for automatically load plugin language.
|
||||
lang: "fi",
|
||||
|
||||
tooltips: {
|
||||
bold: "Lihavointi",
|
||||
italic: "Kursivointi",
|
||||
underline: "Alleviivaus",
|
||||
strikethrough: "Päälleviivaus",
|
||||
subscript: "Alaindeksi",
|
||||
superscript: "Yläindeksi",
|
||||
justifyleft: "Tasaa vasemmat reunat",
|
||||
justifycenter: "Keskitä",
|
||||
justifyright: "Tasaa oikeat reunat",
|
||||
justifyfull: "Tasaa molemmat reunat",
|
||||
orderedlist: "Numerointi",
|
||||
unorderedlist: "Luettelomerkit",
|
||||
outdent: "Lisää sisennystä",
|
||||
indent: "Vähennä sisennystä",
|
||||
forecolor: "Tekstin väri",
|
||||
hilitecolor: "Taustan väri",
|
||||
horizontalrule: "Vaakaviiva",
|
||||
createlink: "Lisää linkki",
|
||||
insertimage: "Lisää kuva",
|
||||
inserttable: "Lisää taulukko",
|
||||
htmlmode: "Näytä HTML koodi",
|
||||
popupeditor: "Suurenna editori",
|
||||
about: "Tietoja editorista",
|
||||
showhelp: "Ohje",
|
||||
textindicator: "Nykyinen tyyli",
|
||||
undo: "Peruuta viimeinen toiminto",
|
||||
redo: "Palauta viimeinen toiminto",
|
||||
cut: "Leikkaa",
|
||||
copy: "Kopioi",
|
||||
paste: "Liitä"
|
||||
},
|
||||
|
||||
buttons: {
|
||||
"ok": "OK",
|
||||
"cancel": "Peruuta",
|
||||
},
|
||||
|
||||
msg: {
|
||||
"Path": "Polku",
|
||||
"TEXT_MODE": "Olet tekstitilassa. Käytä [<>] painiketta palataksesi WYSIWIG -tilaan."
|
||||
}
|
||||
};
|
@ -1,36 +0,0 @@
|
||||
// I18N constants
|
||||
|
||||
HTMLArea.I18N = {
|
||||
|
||||
// the following should be the filename without .js extension
|
||||
// it will be used for automatically load plugin language.
|
||||
lang: "fr",
|
||||
|
||||
tooltips: {
|
||||
bold: "Gras",
|
||||
italic: "Italique",
|
||||
underline: "Souligné",
|
||||
strikethrough: "Barré",
|
||||
subscript: "Subscript",
|
||||
superscript: "Superscript",
|
||||
justifyleft: "Aligné à gauche",
|
||||
justifycenter: "Centré",
|
||||
justifyright: "Aligné à droite",
|
||||
justifyfull: "Justifié",
|
||||
orderedlist: "Numérotation",
|
||||
unorderedlist: "Puces",
|
||||
outdent: "Augmenter le retrait",
|
||||
indent: "Diminuer le retrait",
|
||||
forecolor: "Couleur du texte",
|
||||
backcolor: "Couleur du fond",
|
||||
horizontalrule: "Ligne horizontale",
|
||||
createlink: "Insérer un lien",
|
||||
insertimage: "Insérer une image",
|
||||
inserttable: "Insérer un tableau",
|
||||
htmlmode: "Passer au code source HTML",
|
||||
popupeditor: "Agrandir l'éditeur",
|
||||
about: "A propos de cet éditeur",
|
||||
help: "Aide sur l'éditeur",
|
||||
textindicator: "Style courant"
|
||||
}
|
||||
};
|
@ -1,36 +0,0 @@
|
||||
// I18N constants -- Chinese GB
|
||||
// by Dave Lo -- dlo@interactivetools.com
|
||||
HTMLArea.I18N = {
|
||||
|
||||
// the following should be the filename without .js extension
|
||||
// it will be used for automatically load plugin language.
|
||||
lang: "gb",
|
||||
|
||||
tooltips: {
|
||||
bold: "粗体",
|
||||
italic: "斜体",
|
||||
underline: "底线",
|
||||
strikethrough: "删除线",
|
||||
subscript: "下标",
|
||||
superscript: "上标",
|
||||
justifyleft: "位置靠左",
|
||||
justifycenter: "位置居中",
|
||||
justifyright: "位置靠右",
|
||||
justifyfull: "位置左右平等",
|
||||
orderedlist: "顺序清单",
|
||||
unorderedlist: "无序清单",
|
||||
outdent: "减小行前空白",
|
||||
indent: "加宽行前空白",
|
||||
forecolor: "文字颜色",
|
||||
backcolor: "背景颜色",
|
||||
horizontalrule: "水平线",
|
||||
createlink: "插入连结",
|
||||
insertimage: "插入图形",
|
||||
inserttable: "插入表格",
|
||||
htmlmode: "切换HTML原始码",
|
||||
popupeditor: "放大",
|
||||
about: "关於 HTMLArea",
|
||||
help: "说明",
|
||||
textindicator: "字体例子"
|
||||
}
|
||||
};
|
@ -1,36 +0,0 @@
|
||||
// I18N constants
|
||||
|
||||
HTMLArea.I18N = {
|
||||
|
||||
// the following should be the filename without .js extension
|
||||
// it will be used for automatically load plugin language.
|
||||
lang: "it",
|
||||
|
||||
tooltips: {
|
||||
bold: "Grassetto",
|
||||
italic: "Corsivo",
|
||||
underline: "Sottolineato",
|
||||
strikethrough: "Barrato",
|
||||
subscript: "Pedice",
|
||||
superscript: "Apice",
|
||||
justifyleft: "Allinea a sinistra",
|
||||
justifycenter: "Centra",
|
||||
justifyright: "Allinea a destra",
|
||||
justifyfull: "Giustifica",
|
||||
orderedlist: "Elenco numerato",
|
||||
unorderedlist: "Elenco puntato",
|
||||
outdent: "Riduci rientro",
|
||||
indent: "Aumenta rientro",
|
||||
forecolor: "Colore carattere",
|
||||
backcolor: "Colore di sfondo",
|
||||
horizontalrule: "Linea orizzontale",
|
||||
createlink: "Inserisci collegamento ipertestuale",
|
||||
insertimage: "Inserisci immagine",
|
||||
inserttable: "Inserisci tabella",
|
||||
htmlmode: "Passa alla visualizzazione HTML",
|
||||
popupeditor: "Ingrandisci editor",
|
||||
about: "Info",
|
||||
help: "Aiuto",
|
||||
textindicator: "Stile utilizzato"
|
||||
}
|
||||
};
|
@ -1,37 +0,0 @@
|
||||
// I18N constants -- Japanese EUC
|
||||
// by Manabu Onoue -- tmocsys@tmocsys.com
|
||||
|
||||
HTMLArea.I18N = {
|
||||
|
||||
// the following should be the filename without .js extension
|
||||
// it will be used for automatically load plugin language.
|
||||
lang: "ja-euc",
|
||||
|
||||
tooltips: {
|
||||
bold: "太字",
|
||||
italic: "斜体",
|
||||
underline: "下線",
|
||||
strikethrough: "打ち消し線",
|
||||
subscript: "下付き添え字",
|
||||
superscript: "上付き添え字",
|
||||
justifyleft: "左寄せ",
|
||||
justifycenter: "中央寄せ",
|
||||
justifyright: "右寄せ",
|
||||
justifyfull: "均等割付",
|
||||
orderedlist: "番号付き箇条書き",
|
||||
unorderedlist: "記号付き箇条書き",
|
||||
outdent: "インデント解除",
|
||||
indent: "インデント設定",
|
||||
forecolor: "文字色",
|
||||
backcolor: "背景色",
|
||||
horizontalrule: "水平線",
|
||||
createlink: "リンク作成",
|
||||
insertimage: "画像挿入",
|
||||
inserttable: "テーブル挿入",
|
||||
htmlmode: "HTML表示切替",
|
||||
popupeditor: "エディタ拡大",
|
||||
about: "バージョン情報",
|
||||
help: "ヘルプ",
|
||||
textindicator: "現在のスタイル"
|
||||
}
|
||||
};
|
@ -1,37 +0,0 @@
|
||||
// I18N constants -- Japanese JIS
|
||||
// by Manabu Onoue -- tmocsys@tmocsys.com
|
||||
|
||||
HTMLArea.I18N = {
|
||||
|
||||
// the following should be the filename without .js extension
|
||||
// it will be used for automatically load plugin language.
|
||||
lang: "ja-jis",
|
||||
|
||||
tooltips: {
|
||||
bold: "$BB@;z(B",
|
||||
italic: "$B<PBN(B",
|
||||
underline: "$B2<@~(B",
|
||||
strikethrough: "$BBG$A>C$7@~(B",
|
||||
subscript: "$B2<IU$-E:$(;z(B",
|
||||
superscript: "$B>eIU$-E:$(;z(B",
|
||||
justifyleft: "$B:84s$;(B",
|
||||
justifycenter: "$BCf1{4s$;(B",
|
||||
justifyright: "$B1&4s$;(B",
|
||||
justifyfull: "$B6QEy3dIU(B",
|
||||
orderedlist: "$BHV9fIU$-2U>r=q$-(B",
|
||||
unorderedlist: "$B5-9fIU$-2U>r=q$-(B",
|
||||
outdent: "$B%$%s%G%s%H2r=|(B",
|
||||
indent: "$B%$%s%G%s%H@_Dj(B",
|
||||
forecolor: "$BJ8;z?'(B",
|
||||
backcolor: "$BGX7J?'(B",
|
||||
horizontalrule: "$B?eJ?@~(B",
|
||||
createlink: "$B%j%s%/:n@.(B",
|
||||
insertimage: "$B2hA|A^F~(B",
|
||||
inserttable: "$B%F!<%V%kA^F~(B",
|
||||
htmlmode: "HTML$BI=<(@ZBX(B",
|
||||
popupeditor: "$B%(%G%#%?3HBg(B",
|
||||
about: "$B%P!<%8%g%s>pJs(B",
|
||||
help: "$B%X%k%W(B",
|
||||
textindicator: "$B8=:_$N%9%?%$%k(B"
|
||||
}
|
||||
};
|
@ -1,37 +0,0 @@
|
||||
// I18N constants -- Japanese Shift-JIS
|
||||
// by Manabu Onoue -- tmocsys@tmocsys.com
|
||||
|
||||
HTMLArea.I18N = {
|
||||
|
||||
// the following should be the filename without .js extension
|
||||
// it will be used for automatically load plugin language.
|
||||
lang: "ja-sjis",
|
||||
|
||||
tooltips: {
|
||||
bold: "太字",
|
||||
italic: "斜体",
|
||||
underline: "下線",
|
||||
strikethrough: "打ち消し線",
|
||||
subscript: "下付き添え字",
|
||||
superscript: "上付き添え字",
|
||||
justifyleft: "左寄せ",
|
||||
justifycenter: "中央寄せ",
|
||||
justifyright: "右寄せ",
|
||||
justifyfull: "均等割付",
|
||||
orderedlist: "番号付き箇条書き",
|
||||
unorderedlist: "記号付き箇条書き",
|
||||
outdent: "インデント解除",
|
||||
indent: "インデント設定",
|
||||
forecolor: "文字色",
|
||||
backcolor: "背景色",
|
||||
horizontalrule: "水平線",
|
||||
createlink: "リンク作成",
|
||||
insertimage: "画像挿入",
|
||||
inserttable: "テーブル挿入",
|
||||
htmlmode: "HTML表示切替",
|
||||
popupeditor: "エディタ拡大",
|
||||
about: "バージョン情報",
|
||||
help: "ヘルプ",
|
||||
textindicator: "現在のスタイル"
|
||||
}
|
||||
};
|
@ -1,37 +0,0 @@
|
||||
// I18N constants -- Japanese UTF-8
|
||||
// by Manabu Onoue -- tmocsys@tmocsys.com
|
||||
|
||||
HTMLArea.I18N = {
|
||||
|
||||
// the following should be the filename without .js extension
|
||||
// it will be used for automatically load plugin language.
|
||||
lang: "ja-utf8",
|
||||
|
||||
tooltips: {
|
||||
bold: "太字",
|
||||
italic: "斜体",
|
||||
underline: "下線",
|
||||
strikethrough: "打ち消し線",
|
||||
subscript: "下付き添え字",
|
||||
superscript: "上付き添え字",
|
||||
justifyleft: "左寄せ",
|
||||
justifycenter: "中央寄せ",
|
||||
justifyright: "右寄せ",
|
||||
justifyfull: "均等割付",
|
||||
orderedlist: "番号付き箇条書き",
|
||||
unorderedlist: "記号付き箇条書き",
|
||||
outdent: "インデント解除",
|
||||
indent: "インデント設定",
|
||||
forecolor: "文字色",
|
||||
backcolor: "背景色",
|
||||
horizontalrule: "水平線",
|
||||
createlink: "リンク作成",
|
||||
insertimage: "画像挿入",
|
||||
inserttable: "テーブル挿入",
|
||||
htmlmode: "HTML表示切替",
|
||||
popupeditor: "エディタ拡大",
|
||||
about: "バージョン情報",
|
||||
help: "ヘルプ",
|
||||
textindicator: "現在のスタイル"
|
||||
}
|
||||
};
|
@ -1,36 +0,0 @@
|
||||
// I18N constants
|
||||
|
||||
HTMLArea.I18N = {
|
||||
|
||||
// the following should be the filename without .js extension
|
||||
// it will be used for automatically load plugin language.
|
||||
lang: "nb",
|
||||
|
||||
tooltips: {
|
||||
bold: "Fet",
|
||||
italic: "Kursiv",
|
||||
underline: "Understreket",
|
||||
strikethrough: "Gjennomstreket",
|
||||
subscript: "Senket",
|
||||
superscript: "Hevet",
|
||||
justifyleft: "Venstrejuster",
|
||||
justifycenter: "Midtjuster",
|
||||
justifyright: "Høyrejuster",
|
||||
justifyfull: "Blokkjuster",
|
||||
orderedlist: "Nummerert liste",
|
||||
unorderedlist: "Punktmerket liste",
|
||||
outdent: "Øke innrykk",
|
||||
indent: "Reduser innrykk",
|
||||
forecolor: "Skriftfarge",
|
||||
backcolor: "Bakgrunnsfarge",
|
||||
horizontalrule: "Horisontal linje",
|
||||
createlink: "Sett inn lenke",
|
||||
insertimage: "Sett inn bilde",
|
||||
inserttable: "Sett inn tabell",
|
||||
htmlmode: "Vis HTML kode",
|
||||
popupeditor: "Forstørr redigeringsvindu",
|
||||
about: "Om..",
|
||||
help: "Hjelp",
|
||||
textindicator: "Gjeldende stil"
|
||||
}
|
||||
};
|
@ -1,37 +0,0 @@
|
||||
// Dutch version
|
||||
// Author: Wouter Meeus alias Redspider <webmaster@tielt.be>
|
||||
|
||||
HTMLArea.I18N = {
|
||||
|
||||
// the following should be the filename without .js extension
|
||||
// it will be used for automatically load plugin language.
|
||||
lang: "nl",
|
||||
|
||||
tooltips: {
|
||||
bold: "Vet",
|
||||
italic: "Cursief",
|
||||
underline: "Onderlijnen",
|
||||
strikethrough: "Doorstrepen",
|
||||
subscript: "Subscript",
|
||||
superscript: "Superscript",
|
||||
justifyleft: "Links Uitlijnen",
|
||||
justifycenter: "Centreren",
|
||||
justifyright: "Rechts Uitlijnen",
|
||||
justifyfull: "Uitvullen",
|
||||
orderedlist: "Nummering",
|
||||
unorderedlist: "Opsomming",
|
||||
outdent: "Verklein insprong",
|
||||
indent: "Vergroot insprong",
|
||||
forecolor: "Tekst Kleur",
|
||||
backcolor: "Achtergrond Kleur",
|
||||
horizontalrule: "Horizontale lijn",
|
||||
createlink: "Hyperlink invoegen",
|
||||
insertimage: "Afbeelding invoegen",
|
||||
inserttable: "Tabel invoegen",
|
||||
htmlmode: "HTML broncode",
|
||||
popupeditor: "Vergroot Editor",
|
||||
about: "Over deze editor",
|
||||
help: "Help",
|
||||
textindicator: "Huidige stijl"
|
||||
}
|
||||
};
|
@ -1,51 +0,0 @@
|
||||
// I18N constants
|
||||
|
||||
HTMLArea.I18N = {
|
||||
|
||||
// the following should be the filename without .js extension
|
||||
// it will be used for automatically load plugin language.
|
||||
lang: "fi",
|
||||
|
||||
tooltips: {
|
||||
bold: "Lihavoitu",
|
||||
italic: "Kursivoitu",
|
||||
underline: "Alleviivattu",
|
||||
strikethrough: "Yliviivattu",
|
||||
subscript: "Alaindeksi",
|
||||
superscript: "Yläindeksi",
|
||||
justifyleft: "Tasaa vasemmat reunat",
|
||||
justifycenter: "Keskitä",
|
||||
justifyright: "Tasaa oikeat reunat",
|
||||
justifyfull: "Tasaa molemmat reunat",
|
||||
insertorderedlist: "Numerointi",
|
||||
insertunorderedlist: "Luettelomerkit",
|
||||
outdent: "Lisää sisennystä",
|
||||
indent: "Pienennä sisennystä",
|
||||
forecolor: "Fontin väri",
|
||||
hilitecolor: "Taustaväri",
|
||||
inserthorizontalrule: "Vaakaviiva",
|
||||
createlink: "Lisää Linkki",
|
||||
insertimage: "Lisää Kuva",
|
||||
inserttable: "Lisää Taulu",
|
||||
htmlmode: "HTML Lähdekoodi vs WYSIWYG",
|
||||
popupeditor: "Suurenna Editori",
|
||||
about: "Tietoja Editorista",
|
||||
showhelp: "Näytä Ohje",
|
||||
textindicator: "Nykyinen tyyli",
|
||||
undo: "Peruuta viimeinen toiminto",
|
||||
redo: "Palauta viimeinen toiminto",
|
||||
cut: "Leikkaa maalattu",
|
||||
copy: "Kopioi maalattu",
|
||||
paste: "Liitä leikepyödältä"
|
||||
},
|
||||
|
||||
buttons: {
|
||||
"ok": "Hyväksy",
|
||||
"cancel": "Peruuta"
|
||||
},
|
||||
|
||||
msg: {
|
||||
"Path": "Polku",
|
||||
"TEXT_MODE": "You are in TEXT MODE. Use the [<>] button to switch back to WYSIWIG."
|
||||
}
|
||||
};
|
@ -1,36 +0,0 @@
|
||||
// I18N constants
|
||||
|
||||
HTMLArea.I18N = {
|
||||
|
||||
// the following should be the filename without .js extension
|
||||
// it will be used for automatically load plugin language.
|
||||
lang: "pl",
|
||||
|
||||
tooltips: {
|
||||
bold: "Pogrubienie",
|
||||
italic: "Pochylenie",
|
||||
underline: "Podkreślenie",
|
||||
strikethrough: "Przekreślenie",
|
||||
subscript: "Indeks dolny",
|
||||
superscript: "Indeks górny",
|
||||
justifyleft: "Wyrównaj do lewej",
|
||||
justifycenter: "Wyśrodkuj",
|
||||
justifyright: "Wyrównaj do prawej",
|
||||
justifyfull: "Wyjustuj",
|
||||
orderedlist: "Numerowanie",
|
||||
unorderedlist: "Wypunktowanie",
|
||||
outdent: "Zmniejsz wcięcie",
|
||||
indent: "Zwiększ wcięcie",
|
||||
forecolor: "Kolor czcionki",
|
||||
backcolor: "Kolor tła",
|
||||
horizontalrule: "Linia pozioma",
|
||||
createlink: "Wstaw adres sieci Web",
|
||||
insertimage: "Wstaw obraz",
|
||||
inserttable: "Wstaw tabelę",
|
||||
htmlmode: "Edycja WYSIWYG/w źródle strony",
|
||||
popupeditor: "Pełny ekran",
|
||||
about: "Informacje o tym edytorze",
|
||||
help: "Pomoc",
|
||||
textindicator: "Obecny styl"
|
||||
}
|
||||
};
|
@ -1,37 +0,0 @@
|
||||
// I18N constants
|
||||
// Brazilian Portuguese Translation by Alex Piaz <webmaster@globalmap.com>
|
||||
|
||||
HTMLArea.I18N = {
|
||||
|
||||
// the following should be the filename without .js extension
|
||||
// it will be used for automatically load plugin language.
|
||||
lang: "pt_br",
|
||||
|
||||
tooltips: {
|
||||
bold: "Negrito",
|
||||
italic: "Itálico",
|
||||
underline: "Sublinhado",
|
||||
strikethrough: "Tachado",
|
||||
subscript: "Subescrito",
|
||||
superscript: "Sobrescrito",
|
||||
justifyleft: "Alinhar à Esquerda",
|
||||
justifycenter: "Centralizar",
|
||||
justifyright: "Alinhar à Direita",
|
||||
justifyfull: "Justificar",
|
||||
orderedlist: "Lista Numerada",
|
||||
unorderedlist: "Lista Marcadores",
|
||||
outdent: "Diminuir Indentação",
|
||||
indent: "Aumentar Indentação",
|
||||
forecolor: "Cor da Fonte",
|
||||
backcolor: "Cor do Fundo",
|
||||
horizontalrule: "Linha Horizontal",
|
||||
createlink: "Inserir Link",
|
||||
insertimage: "Inserir Imagem",
|
||||
inserttable: "Inserir Tabela",
|
||||
htmlmode: "Ver Código-Fonte",
|
||||
popupeditor: "Expandir Editor",
|
||||
about: "Sobre",
|
||||
help: "Ajuda",
|
||||
textindicator: "Estilo Atual"
|
||||
}
|
||||
};
|
@ -1,63 +0,0 @@
|
||||
// I18N constants
|
||||
|
||||
// LANG: "ro", ENCODING: UTF-8
|
||||
// Author: Mihai Bazon, <mishoo@infoiasi.ro>
|
||||
|
||||
// FOR TRANSLATORS:
|
||||
//
|
||||
// 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE
|
||||
// (at least a valid email address)
|
||||
//
|
||||
// 2. PLEASE TRY TO USE UTF-8 FOR ENCODING;
|
||||
// (if this is not possible, please include a comment
|
||||
// that states what encoding is necessary.)
|
||||
|
||||
HTMLArea.I18N = {
|
||||
|
||||
// the following should be the filename without .js extension
|
||||
// it will be used for automatically load plugin language.
|
||||
lang: "ro",
|
||||
|
||||
tooltips: {
|
||||
bold: "Îngroşat",
|
||||
italic: "Italic",
|
||||
underline: "Subliniat",
|
||||
strikethrough: "Tăiat",
|
||||
subscript: "Subscript",
|
||||
superscript: "Superscript",
|
||||
justifyleft: "Aliniere la stânga",
|
||||
justifycenter: "Aliniere pe centru",
|
||||
justifyright: "Aliniere la dreapta",
|
||||
justifyfull: "Aliniere în ambele părţi",
|
||||
orderedlist: "Listă ordonată",
|
||||
unorderedlist: "Listă marcată",
|
||||
outdent: "Micşorează alineatul",
|
||||
indent: "Măreşte alineatul",
|
||||
forecolor: "Culoarea textului",
|
||||
hilitecolor: "Culoare de fundal",
|
||||
horizontalrule: "Linie orizontală",
|
||||
createlink: "Inserează link",
|
||||
insertimage: "Inserează o imagine",
|
||||
inserttable: "Inserează un tabel",
|
||||
htmlmode: "Sursa HTML / WYSIWYG",
|
||||
popupeditor: "Maximizează editorul",
|
||||
about: "Despre editor",
|
||||
showhelp: "Documentaţie (devel)",
|
||||
textindicator: "Stilul curent",
|
||||
undo: "Anulează ultima acţiune",
|
||||
redo: "Reface ultima acţiune anulată",
|
||||
cut: "Taie în clipboard",
|
||||
copy: "Copie în clipboard",
|
||||
paste: "Aduce din clipboard"
|
||||
},
|
||||
|
||||
buttons: {
|
||||
"ok": "OK",
|
||||
"cancel": "Anulează"
|
||||
},
|
||||
|
||||
msg: {
|
||||
"Path": "Calea",
|
||||
"TEXT_MODE": "Eşti în modul TEXT. Apasă butonul [<>] pentru a te întoarce în modul WYSIWYG."
|
||||
}
|
||||
};
|
@ -1,36 +0,0 @@
|
||||
// I18N constants
|
||||
|
||||
HTMLArea.I18N = {
|
||||
|
||||
// the following should be the filename without .js extension
|
||||
// it will be used for automatically load plugin language.
|
||||
lang: "ru",
|
||||
|
||||
tooltips: {
|
||||
bold: "Жирный",
|
||||
italic: "Наклонный",
|
||||
underline: "Подчеркнутый",
|
||||
strikethrough: "Перечеркнутый",
|
||||
subscript: "Нижний индекс",
|
||||
superscript: "Верхний индекс",
|
||||
justifyleft: "Выравнивание по левому краю",
|
||||
justifycenter: "Выравнивание по центру",
|
||||
justifyright: "Выравнивание по правому краю",
|
||||
justifyfull: "Растянутый текст",
|
||||
orderedlist: "Нумерованный список",
|
||||
unorderedlist: "Маркированный список",
|
||||
outdent: "Сдвиг в лево",
|
||||
indent: "Сдвиг в право",
|
||||
forecolor: "Цвет шрифта",
|
||||
backcolor: "Цвет фона",
|
||||
horizontalrule: "Горизонтальная линия",
|
||||
createlink: "Вставить ссылку",
|
||||
insertimage: "Вставить картинку",
|
||||
inserttable: "Вставить таблицу",
|
||||
htmlmode: "Видеть HTML код",
|
||||
popupeditor: "Увеличить редактор",
|
||||
about: "О редакторе",
|
||||
help: "Помощь в использовании",
|
||||
textindicator: "Данный стиль"
|
||||
}
|
||||
};
|
@ -1,38 +0,0 @@
|
||||
// Swedish version for htmlArea v3.0 - Alpha Release
|
||||
// - translated by pat<pat@engvall.nu>
|
||||
// term´s and licenses are equal to htmlarea!
|
||||
|
||||
HTMLArea.I18N = {
|
||||
|
||||
// the following should be the filename without .js extension
|
||||
// it will be used for automatically load plugin language.
|
||||
lang: "se",
|
||||
|
||||
tooltips: {
|
||||
bold: "Fet",
|
||||
italic: "Kursiv",
|
||||
underline: "Understruken",
|
||||
strikethrough: "Genomstruken",
|
||||
subscript: "Nedsänkt",
|
||||
superscript: "Upphöjd",
|
||||
justifyleft: "Vänsterjustera",
|
||||
justifycenter: "Centrera",
|
||||
justifyright: "Högerjustera",
|
||||
justifyfull: "Marginaljustera",
|
||||
orderedlist: "Numrerad lista",
|
||||
unorderedlist: "Punktlista",
|
||||
outdent: "Minska indrag",
|
||||
indent: "Öka indrag",
|
||||
forecolor: "Textfärg",
|
||||
backcolor: "Bakgrundsfärg",
|
||||
horizontalrule: "Vågrät linje",
|
||||
createlink: "Infoga länk",
|
||||
insertimage: "Infoga bild",
|
||||
inserttable: "Infoga tabell",
|
||||
htmlmode: "Visa källkod",
|
||||
popupeditor: "Visa i eget fönster",
|
||||
about: "Om denna editor",
|
||||
help: "Hjälp",
|
||||
textindicator: "Nuvarande stil"
|
||||
}
|
||||
};
|
@ -1,38 +0,0 @@
|
||||
// I18N constants : Vietnamese
|
||||
// mviet: download the free Vietnamese script addon for htmlArea at: www.mviet.org
|
||||
// email: mviet@socal.rr.com
|
||||
|
||||
HTMLArea.I18N = {
|
||||
|
||||
// the following should be the filename without .js extension
|
||||
// it will be used for automatically load plugin language.
|
||||
lang: "vn",
|
||||
|
||||
tooltips: {
|
||||
bold: "Đậm",
|
||||
italic: "Nghiêng",
|
||||
underline: "Gạch Đít",
|
||||
strikethrough: "Gạch Xóa",
|
||||
subscript: "Viết Xuống Dưới",
|
||||
superscript: "Viết Lên Trên ",
|
||||
justifyleft: "Ngay Hàng Bên Trái ",
|
||||
justifycenter: "Ngay Hàng Giữa",
|
||||
justifyright: "Ngay Hàng Lên Phải",
|
||||
justifyfull: "Ngay Hàng Trái & Phải",
|
||||
orderedlist: "Chuỗi Thứ Tự 123",
|
||||
unorderedlist: "Chuỗi Nút",
|
||||
outdent: "Giảm Vào Hàng",
|
||||
indent: "Tăng Vào Hàng",
|
||||
forecolor: "Màu Chữ",
|
||||
backcolor: "Màu Nền",
|
||||
horizontalrule: "Thước Ngang",
|
||||
createlink: "Tạo Nối",
|
||||
insertimage: "Mang Hình Vô",
|
||||
inserttable: "Mang Khuôn Vô",
|
||||
htmlmode: "Bật / Tắt Nguồn HTML",
|
||||
popupeditor: "Póp Lớn Khung Viết",
|
||||
about: "Nói Về Chương Trình",
|
||||
help: "Giúp Đỡ",
|
||||
textindicator: "Loại Kiểu Viết"
|
||||
}
|
||||
};
|
@ -1,35 +0,0 @@
|
||||
<html style="width:300px; Height: 60px;">
|
||||
<head>
|
||||
<title>Select Phrase</title>
|
||||
<script language="javascript">
|
||||
|
||||
var myTitle = window.dialogArguments;
|
||||
document.title = myTitle;
|
||||
|
||||
|
||||
function returnSelected() {
|
||||
var idx = document.all.textPulldown.selectedIndex;
|
||||
var text = document.all.textPulldown[idx].text;
|
||||
|
||||
window.returnValue = text; // set return value
|
||||
window.close(); // close dialog
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" topmargin=15 leftmargin=0>
|
||||
|
||||
<form method=get onSubmit="Set(document.all.ColorHex.value); return false;">
|
||||
<div align=center>
|
||||
|
||||
<select name="textPulldown">
|
||||
<option>The quick brown</option>
|
||||
<option>fox jumps over</option>
|
||||
<option>the lazy dog.</option>
|
||||
</select>
|
||||
|
||||
<input type="button" value=" Go " onClick="returnSelected()">
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</body></html>
|
@ -1,82 +0,0 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html style="height:270px;">
|
||||
<head>
|
||||
<style type="text/css">
|
||||
BODY {
|
||||
background-color: buttonface;
|
||||
}
|
||||
|
||||
</style>
|
||||
<script type="text/javascript" src="popup.js"></script>
|
||||
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
|
||||
<!--
|
||||
function Init() {
|
||||
__dlg_init();
|
||||
}
|
||||
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","{","|","}","~","€","ƒ","„","…","†","‡","ˆ","\‰","Š","‹","Œ","‘","’","’","“","”","•","–","—","˜","™","š","›","œ","Ÿ","¡","¢","£","£","¤","¥","¦","§","¨","©","ª","«","¬","","®","¯","°","±","²","³","´","µ","¶","·","¸","¹","º","»","¼","½","¾","¿","À","Á","Â","Ã","Ä","Å","Æ","Ç","È","É","Ê","Ë","Ì","Í","Î","Ï","Ð","Ñ","Ò","Ó","Ô","Õ","Ö","×","Ø","Ù","Ú","Û","Ü","Ý","Þ","ß","à","á","â","ã","ä","å","æ","ç","è","é","ê","ë","ì","í","î","ï","ð","ñ","ò","ó","ô","õ","ö","÷","ø","ù","ú","û","ü","ü","ý","þ","ÿ"]
|
||||
|
||||
function tab(w,h) {
|
||||
var strtab = ["<TABLE border='1' cellspacing='0' cellpadding='0' align='center' bordercolor='#dcdcdc' bgcolor='#C0C0C0'>"]
|
||||
var k = 0;
|
||||
for(var i = 0; i < w; i++) {
|
||||
strtab[strtab.length] = "<TR>";
|
||||
for(var j = 0; j < h; j++) {
|
||||
strtab[strtab.length] = "<TD width='14' align='center' onClick='getchar(this)' onMouseOver='hover(this,true)' onMouseOut='hover(this,false)'>"+(chars[k]||'')+"</TD>";
|
||||
k++;
|
||||
}
|
||||
strtab[strtab.length]="</TR>";
|
||||
}
|
||||
strtab[strtab.length] = "</TABLE>";
|
||||
return strtab.join("\n");
|
||||
}
|
||||
|
||||
function hover(obj,val) {
|
||||
if (!obj.innerHTML) {
|
||||
obj.style.cursor = "default";
|
||||
return;
|
||||
}
|
||||
obj.style.border = val ? "1px solid black" : "1px solid #dcdcdc";
|
||||
//obj.style.backgroundColor = val ? "black" : "#C0C0C0"
|
||||
//obj.style.color = val ? "white" : "black";
|
||||
}
|
||||
function getchar(obj) {
|
||||
if(!obj.innerHTML) return;
|
||||
var sChar = obj.innerHTML || "";
|
||||
__dlg_close(sChar);
|
||||
return false;
|
||||
}
|
||||
function cancel() {
|
||||
__dlg_close(null);
|
||||
return false;
|
||||
}
|
||||
//-->
|
||||
</SCRIPT>
|
||||
<title>Insert Character</title>
|
||||
</head>
|
||||
<body onload="Init()">
|
||||
<table class="dlg" cellpadding="0" cellspacing="2">
|
||||
<tr><td><table width="100%"><tr><td nowrap>Choose Character</td><td valign="middle" width="100%"><hr width="100%"></td></tr></table></td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table border="0" align="center" cellpadding="5">
|
||||
<tr valign="top">
|
||||
<td>
|
||||
|
||||
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
|
||||
<!--
|
||||
document.write(tab(7,32))
|
||||
//-->
|
||||
</SCRIPT>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td><table width="100%"><tr><td valign="middle" width="90%"><hr width="100%"></td></tr></table></td></tr>
|
||||
<tr><td align="right">
|
||||
<input type="button" value="Close" onclick="cancel()"></td></tr>
|
||||
</table>
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
@ -1,161 +0,0 @@
|
||||
<html>
|
||||
<head><title>Fullscreen Editor</title>
|
||||
<style type="text/css">
|
||||
@import url(../htmlarea.css);
|
||||
html, body { margin: 0px; border: 0px; background-color: buttonface; } </style>
|
||||
|
||||
|
||||
<script type="text/javascript" src="../htmlarea.php<?php echo $id ?>"></script>
|
||||
<script type="text/javascript" src="../lang/en.js"></script>
|
||||
<script type="text/javascript" src="../dialog.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
// load same scripts that were present in the opener page
|
||||
var scripts = opener.document.getElementsByTagName("script");
|
||||
var head = document.getElementsByTagName("head")[0];
|
||||
for (var i = 0; i < scripts.length; ++i) {
|
||||
var script = scripts[i];
|
||||
if (typeof script.src != "undefined" && /\S/.test(script.src)) {
|
||||
// document.write("<scr" + "ipt type=" + "\"script/javascript\"");
|
||||
// document.write(" src=\"../" + script.src + "\"></scr" + "ipt>");
|
||||
var new_script = document.createElement("script");
|
||||
if (/^http:/i.test(script.src)) {
|
||||
new_script.src = script.src;
|
||||
} else {
|
||||
new_script.src = "../" + script.src;
|
||||
}
|
||||
head.appendChild(new_script);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
var parent_object = null;
|
||||
var editor = null; // to be initialized later [ function init() ]
|
||||
|
||||
/* ---------------------------------------------------------------------- *\
|
||||
Function :
|
||||
Description :
|
||||
\* ---------------------------------------------------------------------- */
|
||||
|
||||
function _CloseOnEsc(ev) {
|
||||
if (document.all) {
|
||||
// IE
|
||||
ev = window.event;
|
||||
}
|
||||
if (ev.keyCode == 27) {
|
||||
// update_parent();
|
||||
window.close();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------- *\
|
||||
Function : cloneObject
|
||||
Description : copy an object by value instead of by reference
|
||||
Usage : var newObj = cloneObject(oldObj);
|
||||
\* ---------------------------------------------------------------------- */
|
||||
|
||||
function cloneObject(obj) {
|
||||
var newObj = new Object;
|
||||
|
||||
// check for array objects
|
||||
if (obj.constructor.toString().indexOf("function Array(") == 1) {
|
||||
newObj = obj.constructor();
|
||||
}
|
||||
|
||||
// check for function objects (as usual, IE is fucked up)
|
||||
if (obj.constructor.toString().indexOf("function Function(") == 1) {
|
||||
newObj = obj; // just copy reference to it
|
||||
} else for (var n in obj) {
|
||||
var node = obj[n];
|
||||
if (typeof node == 'object') { newObj[n] = cloneObject(node); }
|
||||
else { newObj[n] = node; }
|
||||
}
|
||||
|
||||
return newObj;
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------- *\
|
||||
Function : resize_editor
|
||||
Description : resize the editor when the user resizes the popup
|
||||
\* ---------------------------------------------------------------------- */
|
||||
|
||||
function resize_editor() { // resize editor to fix window
|
||||
var newHeight;
|
||||
if (document.all) {
|
||||
// IE
|
||||
newHeight = document.body.offsetHeight - editor._toolbar.offsetHeight;
|
||||
if (newHeight < 0) { newHeight = 0; }
|
||||
} else {
|
||||
// Gecko
|
||||
newHeight = window.innerHeight - editor._toolbar.offsetHeight;
|
||||
}
|
||||
if (editor.config.statusBar) {
|
||||
newHeight -= editor._statusBar.offsetHeight;
|
||||
}
|
||||
editor._textArea.style.height = editor._iframe.style.height = newHeight + "px";
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------- *\
|
||||
Function : init
|
||||
Description : run this code on page load
|
||||
\* ---------------------------------------------------------------------- */
|
||||
|
||||
function init() {
|
||||
parent_object = opener.HTMLArea._object;
|
||||
var config = cloneObject( parent_object.config );
|
||||
config.editorURL = "../";
|
||||
config.width = "100%";
|
||||
config.height = "auto";
|
||||
|
||||
// change maximize button to minimize button
|
||||
config.btnList["popupeditor"] = [ 'Minimize Editor', 'images/fullscreen_minimize.gif', true,
|
||||
function() { window.close(); } ];
|
||||
|
||||
// generate editor and resize it
|
||||
editor = new HTMLArea("editor", config);
|
||||
editor.generate();
|
||||
editor._iframe.style.width = "100%";
|
||||
editor._textArea.style.width = "100%";
|
||||
resize_editor();
|
||||
|
||||
// set child window contents and event handlers, after a small delay
|
||||
setTimeout(function() {
|
||||
editor.setHTML(parent_object.getInnerHTML());
|
||||
|
||||
// switch mode if needed
|
||||
if (parent_object._mode == "textmode") { editor.setMode("textmode"); }
|
||||
|
||||
// continuously update parent editor window
|
||||
setInterval(update_parent, 500);
|
||||
|
||||
// setup event handlers
|
||||
document.body.onkeypress = _CloseOnEsc;
|
||||
editor._doc.body.onkeypress = _CloseOnEsc;
|
||||
editor._textArea.onkeypress = _CloseOnEsc;
|
||||
window.onresize = resize_editor;
|
||||
}, 333); // give it some time to meet the new frame
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------- *\
|
||||
Function : update_parent
|
||||
Description : update parent window editor field with contents from child window
|
||||
\* ---------------------------------------------------------------------- */
|
||||
|
||||
function update_parent() {
|
||||
// use the fast version
|
||||
parent_object.setHTML(editor.getInnerHTML());
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body scroll="no" onload="init()" onunload="update_parent()">
|
||||
|
||||
<form style="margin: 0px; border: 1px solid; border-color: threedshadow threedhighlight threedhighlight threedshadow;">
|
||||
<textarea name="editor" id="editor" style="width:100%; height:300px"> </textarea>
|
||||
</form>
|
||||
|
||||
</body></html>
|
@ -1,215 +0,0 @@
|
||||
<html style="width: 398; height: 218">
|
||||
|
||||
<head>
|
||||
<title>Insert Image</title>
|
||||
|
||||
<script type="text/javascript" src="popup.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
var preview_window = null;
|
||||
|
||||
function Init() {
|
||||
__dlg_init();
|
||||
document.getElementById("f_url").focus();
|
||||
};
|
||||
|
||||
function onOK() {
|
||||
var required = {
|
||||
"f_url": "You must enter the URL",
|
||||
"f_alt": "Please enter the alternate text"
|
||||
};
|
||||
for (var i in required) {
|
||||
var el = document.getElementById(i);
|
||||
if (!el.value) {
|
||||
alert(required[i]);
|
||||
el.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
// pass data back to the calling window
|
||||
var fields = ["f_url", "f_alt", "f_align", "f_border",
|
||||
"f_horiz", "f_vert"];
|
||||
var param = new Object();
|
||||
for (var i in fields) {
|
||||
var id = fields[i];
|
||||
var el = document.getElementById(id);
|
||||
param[id] = el.value;
|
||||
}
|
||||
if (preview_window) {
|
||||
preview_window.close();
|
||||
}
|
||||
__dlg_close(param);
|
||||
return false;
|
||||
};
|
||||
|
||||
function onCancel() {
|
||||
if (preview_window) {
|
||||
preview_window.close();
|
||||
}
|
||||
__dlg_close(null);
|
||||
return false;
|
||||
};
|
||||
|
||||
function onPreview() {
|
||||
var f_url = document.getElementById("f_url");
|
||||
var url = f_url.value;
|
||||
if (!url) {
|
||||
alert("You have to enter an URL first");
|
||||
f_url.focus();
|
||||
return false;
|
||||
}
|
||||
var img = new Image();
|
||||
img.src = url;
|
||||
var win = null;
|
||||
if (!document.all) {
|
||||
win = window.open("about:blank", "ha_imgpreview", "toolbar=no,menubar=no,personalbar=no,innerWidth=100,innerHeight=100,scrollbars=no,resizable=yes");
|
||||
} else {
|
||||
win = window.open("about:blank", "ha_imgpreview", "channelmode=no,directories=no,height=100,width=100,location=no,menubar=no,resizable=yes,scrollbars=no,toolbar=no");
|
||||
}
|
||||
preview_window = win;
|
||||
var doc = win.document;
|
||||
var body = doc.body;
|
||||
if (body) {
|
||||
body.innerHTML = "";
|
||||
body.style.padding = "0px";
|
||||
body.style.margin = "0px";
|
||||
var el = doc.createElement("img");
|
||||
el.src = url;
|
||||
|
||||
var table = doc.createElement("table");
|
||||
body.appendChild(table);
|
||||
table.style.width = "100%";
|
||||
table.style.height = "100%";
|
||||
var tbody = doc.createElement("tbody");
|
||||
table.appendChild(tbody);
|
||||
var tr = doc.createElement("tr");
|
||||
tbody.appendChild(tr);
|
||||
var td = doc.createElement("td");
|
||||
tr.appendChild(td);
|
||||
td.style.textAlign = "center";
|
||||
|
||||
td.appendChild(el);
|
||||
win.resizeTo(el.offsetWidth + 30, el.offsetHeight + 30);
|
||||
}
|
||||
win.focus();
|
||||
return false;
|
||||
};
|
||||
</script>
|
||||
|
||||
<style type="text/css">
|
||||
html, body {
|
||||
background: ButtonFace;
|
||||
color: ButtonText;
|
||||
font: 11px Tahoma,Verdana,sans-serif;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
body { padding: 5px; }
|
||||
table {
|
||||
font: 11px Tahoma,Verdana,sans-serif;
|
||||
}
|
||||
form p {
|
||||
margin-top: 5px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
.fl { width: 9em; float: left; padding: 2px 5px; text-align: right; }
|
||||
.fr { width: 6em; float: left; padding: 2px 5px; text-align: right; }
|
||||
fieldset { padding: 0px 10px 5px 5px; }
|
||||
select, input, button { font: 11px Tahoma,Verdana,sans-serif; }
|
||||
button { width: 70px; }
|
||||
.space { padding: 2px; }
|
||||
|
||||
.title { background: #ddf; color: #000; font-weight: bold; font-size: 120%; padding: 3px 10px; margin-bottom: 10px;
|
||||
border-bottom: 1px solid black; letter-spacing: 2px;
|
||||
}
|
||||
form { padding: 0px; margin: 0px; }
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body onload="Init()">
|
||||
|
||||
<div class="title">Insert Image</div>
|
||||
|
||||
<form action="" method="get">
|
||||
<table border="0" width="100%" style="padding: 0px; margin: 0px">
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td style="width: 7em; text-align: right">Image URL:</td>
|
||||
<td><input type="text" name="url" id="f_url" style="width:75%"
|
||||
title="Enter the image URL here" />
|
||||
<button name="preview" onclick="return onPreview()"
|
||||
title="Preview the image in a new window">Preview</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 7em; text-align: right">Alternate text:</td>
|
||||
<td><input type="text" name="alt" id="f_alt" style="width:100%"
|
||||
title="For browsers that don't support images" /></td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<p />
|
||||
|
||||
<fieldset style="float: left; margin-left: 5px;">
|
||||
<legend>Layout</legend>
|
||||
|
||||
<div class="space"></div>
|
||||
|
||||
<div class="fl">Alignment:</div>
|
||||
<select size="1" name="align" id="f_align"
|
||||
title="Positioning of this image">
|
||||
<option value="" >Not set</option>
|
||||
<option value="left" >Left</option>
|
||||
<option value="right" >Right</option>
|
||||
<option value="texttop" >Texttop</option>
|
||||
<option value="absmiddle" >Absmiddle</option>
|
||||
<option value="baseline" selected="1" >Baseline</option>
|
||||
<option value="absbottom" >Absbottom</option>
|
||||
<option value="bottom" >Bottom</option>
|
||||
<option value="middle" >Middle</option>
|
||||
<option value="top" >Top</option>
|
||||
</select>
|
||||
|
||||
<p />
|
||||
|
||||
<div class="fl">Border thickness:</div>
|
||||
<input type="text" name="border" id="f_border" size="5"
|
||||
title="Leave empty for no border" />
|
||||
|
||||
<div class="space"></div>
|
||||
|
||||
</fieldset>
|
||||
|
||||
<fieldset style="float:right; margin-right: 5px;">
|
||||
<legend>Spacing</legend>
|
||||
|
||||
<div class="space"></div>
|
||||
|
||||
<div class="fr">Horizontal:</div>
|
||||
<input type="text" name="horiz" id="f_horiz" size="5"
|
||||
title="Horizontal padding" />
|
||||
|
||||
<p />
|
||||
|
||||
<div class="fr">Vertical:</div>
|
||||
<input type="text" name="vert" id="f_vert" size="5"
|
||||
title="Vertical padding" />
|
||||
|
||||
<div class="space"></div>
|
||||
|
||||
</fieldset>
|
||||
|
||||
<div style="margin-top: 85px; text-align: right;">
|
||||
<hr />
|
||||
<button type="button" name="ok" onclick="return onOK();">OK</button>
|
||||
<button type="button" name="cancel" onclick="return onCancel();">Cancel</button>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -1,173 +0,0 @@
|
||||
<html style="width: 398; height: 218">
|
||||
|
||||
<head>
|
||||
<title>Insert Table</title>
|
||||
|
||||
<script type="text/javascript" src="popup.js"></script>
|
||||
<script type="text/javascript" src="../lang/en.php"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
function Init() {
|
||||
__dlg_init();
|
||||
document.getElementById('f_rows').focus();
|
||||
};
|
||||
|
||||
function onOK() {
|
||||
var required = {
|
||||
"f_rows": "You must enter a number of rows",
|
||||
"f_cols": "You must enter a number of columns"
|
||||
};
|
||||
for (var i in required) {
|
||||
var el = document.getElementById(i);
|
||||
if (!el.value) {
|
||||
alert(required[i]);
|
||||
el.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
var fields = ["f_rows", "f_cols", "f_width", "f_unit",
|
||||
"f_align", "f_border", "f_spacing", "f_padding"];
|
||||
var param = new Object();
|
||||
for (var i in fields) {
|
||||
var id = fields[i];
|
||||
var el = document.getElementById(id);
|
||||
param[id] = el.value;
|
||||
}
|
||||
__dlg_close(param);
|
||||
return false;
|
||||
};
|
||||
|
||||
function onCancel() {
|
||||
__dlg_close(null);
|
||||
return false;
|
||||
};
|
||||
|
||||
</script>
|
||||
|
||||
<style type="text/css">
|
||||
html, body {
|
||||
background: ButtonFace;
|
||||
color: ButtonText;
|
||||
font: 11px Tahoma,Verdana,sans-serif;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
body { padding: 5px; }
|
||||
table {
|
||||
font: 11px Tahoma,Verdana,sans-serif;
|
||||
}
|
||||
form p {
|
||||
margin-top: 5px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
.fl { width: 9em; float: left; padding: 2px 5px; text-align: right; }
|
||||
.fr { width: 7em; float: left; padding: 2px 5px; text-align: right; }
|
||||
fieldset { padding: 0px 10px 5px 5px; }
|
||||
select, input, button { font: 11px Tahoma,Verdana,sans-serif; }
|
||||
button { width: 70px; }
|
||||
.space { padding: 2px; }
|
||||
|
||||
.title { background: #ddf; color: #000; font-weight: bold; font-size: 120%; padding: 3px 10px; margin-bottom: 10px;
|
||||
border-bottom: 1px solid black; letter-spacing: 2px;
|
||||
}
|
||||
form { padding: 0px; margin: 0px; }
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body onload="Init()">
|
||||
|
||||
<div class="title">Insert Table</div>
|
||||
|
||||
<form action="" method="get">
|
||||
<table border="0" style="padding: 0px; margin: 0px">
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td style="width: 4em; text-align: right">Rows:</td>
|
||||
<td><input type="text" name="f_rows" id="f_rows" size="5" title="Number of rows" value="2" /></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 4em; text-align: right">Cols:</td>
|
||||
<td><input type="text" name="f_cols" id="f_cols" size="5" title="Number of columns" value="4" /></td>
|
||||
<td style="width: 4em; text-align: right">Width:</td>
|
||||
<td><input type="text" name="f_width" id="f_width" size="5" title="Width of the table" value="100" /></td>
|
||||
<td><select size="1" name="f_unit" id="f_unit" title="Width unit">
|
||||
<option value="%" selected="1" >Percent</option>
|
||||
<option value="px" >Pixels</option>
|
||||
<option value="em" >Em</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<p />
|
||||
|
||||
<fieldset style="float: left; margin-left: 5px;">
|
||||
<legend>Layout</legend>
|
||||
|
||||
<div class="space"></div>
|
||||
|
||||
<div class="fl">Alignment:</div>
|
||||
<select size="1" name="f_align" id="f_align"
|
||||
title="Positioning of this image">
|
||||
<option value="" selected="1" >Not set</option>
|
||||
<option value="left" >Left</option>
|
||||
<option value="right" >Right</option>
|
||||
<option value="texttop" >Texttop</option>
|
||||
<option value="absmiddle" >Absmiddle</option>
|
||||
<option value="baseline" >Baseline</option>
|
||||
<option value="absbottom" >Absbottom</option>
|
||||
<option value="bottom" >Bottom</option>
|
||||
<option value="middle" >Middle</option>
|
||||
<option value="top" >Top</option>
|
||||
</select>
|
||||
|
||||
<p />
|
||||
|
||||
<div class="fl">Border thickness:</div>
|
||||
<input type="text" name="f_border" id="f_border" size="5" value="1"
|
||||
title="Leave empty for no border" />
|
||||
<!--
|
||||
<p />
|
||||
|
||||
<div class="fl">Collapse borders:</div>
|
||||
<input type="checkbox" name="collapse" id="f_collapse" />
|
||||
-->
|
||||
<div class="space"></div>
|
||||
|
||||
</fieldset>
|
||||
|
||||
<fieldset style="float:right; margin-right: 5px;">
|
||||
<legend>Spacing</legend>
|
||||
|
||||
<div class="space"></div>
|
||||
|
||||
<div class="fr">Cell spacing:</div>
|
||||
<input type="text" name="f_spacing" id="f_spacing" size="5" value="1"
|
||||
title="Space between adjacent cells" />
|
||||
|
||||
<p />
|
||||
|
||||
<div class="fr">Cell padding:</div>
|
||||
<input type="text" name="f_padding" id="f_padding" size="5" value="1"
|
||||
title="Space between content and border in cell" />
|
||||
|
||||
<div class="space"></div>
|
||||
|
||||
</fieldset>
|
||||
|
||||
<div style="margin-top: 85px; text-align: right;">
|
||||
<hr />
|
||||
<button type="button" name="ok" onclick="return onOK();">OK</button>
|
||||
<button type="button" name="cancel" onclick="return onCancel();">Cancel</button>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -1,221 +0,0 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>testaus</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<script type="text/javascript" src="popup.js"></script>
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
window.resizeTo(700, 460);
|
||||
|
||||
//I18N = window.opener.HTMLArea.I18N.dialogs;
|
||||
|
||||
// function i18n(str) {
|
||||
// return (I18N[str] || str);
|
||||
// };
|
||||
|
||||
function onTargetChanged() {
|
||||
var f = document.getElementById("f_other_target");
|
||||
if (this.value == "_other") {
|
||||
f.style.visibility = "visible";
|
||||
f.select();
|
||||
f.focus();
|
||||
} else f.style.visibility = "hidden";
|
||||
};
|
||||
|
||||
function Init() {
|
||||
//__dlg_translate(I18N);
|
||||
__dlg_init();
|
||||
var param = window.dialogArguments;
|
||||
var target_select = document.getElementById("f_target");
|
||||
if (param) {
|
||||
document.getElementById("f_href").value = param["f_href"];
|
||||
document.getElementById("f_title").value = param["f_title"];
|
||||
comboSelectValue(target_select, param["f_target"]);
|
||||
if (target_select.value != param.f_target) {
|
||||
var opt = document.createElement("option");
|
||||
opt.value = param.f_target;
|
||||
opt.innerHTML = opt.value;
|
||||
target_select.appendChild(opt);
|
||||
opt.selected = true;
|
||||
}
|
||||
}
|
||||
var opt = document.createElement("option");
|
||||
opt.value = "_other";
|
||||
opt.innerHTML = "muu";
|
||||
target_select.appendChild(opt);
|
||||
target_select.onchange = onTargetChanged;
|
||||
document.getElementById("f_href").focus();
|
||||
window.focus();
|
||||
document.getElementById("f_href").select();
|
||||
};
|
||||
|
||||
function onOK() {
|
||||
var required = {
|
||||
"f_href": alert("You must enter the URL where this link points to")
|
||||
};
|
||||
for (var i in required) {
|
||||
var el = document.getElementById(i);
|
||||
if (!el.value) {
|
||||
alert(required[i]);
|
||||
el.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
// pass data back to the calling window
|
||||
var fields = ["f_href", "f_title", "f_target" ];
|
||||
var param = new Object();
|
||||
for (var i in fields) {
|
||||
var id = fields[i];
|
||||
var el = document.getElementById(id);
|
||||
param[id] = el.value;
|
||||
}
|
||||
if (param.f_target == "_other")
|
||||
param.f_target = document.getElementById("f_other_target").value;
|
||||
__dlg_close(param);
|
||||
return false;
|
||||
};
|
||||
|
||||
function onCancel() {
|
||||
__dlg_close(null);
|
||||
return false;
|
||||
};
|
||||
|
||||
function indexFrom() {
|
||||
var set_url = document.getElementById('findex');
|
||||
var url = set_url.value;
|
||||
window.fbrowser.location.replace(url);
|
||||
|
||||
var resetme = document.forms['mainform'];
|
||||
resetme.fcreated.value = "";
|
||||
resetme.ftype.value = "";
|
||||
resetme.fsize.value = "";
|
||||
return false;
|
||||
};
|
||||
</script>
|
||||
<style type="text/css">
|
||||
html, body {
|
||||
width: 700;
|
||||
height: 460;
|
||||
background-color: rgb(212,208,200);
|
||||
}
|
||||
.title {
|
||||
background-color: #ddddff;
|
||||
padding: 5px;
|
||||
border-bottom: 1px solid black;
|
||||
font-family: Tahoma, sans-serif;
|
||||
font-weight: bold;
|
||||
font-size: 14px;
|
||||
color: black;
|
||||
}
|
||||
input,select {
|
||||
font-family: Tahoma, sans-serif;
|
||||
font-size: 11px;
|
||||
}
|
||||
legend {
|
||||
font-family: Tahoma, sans-serif;
|
||||
font-size: 11px;
|
||||
}
|
||||
p {
|
||||
margin-left: 10px;
|
||||
background-color: transparent;
|
||||
font-family: Tahoma, sans-serif;
|
||||
font-size: 11px;
|
||||
color: black;
|
||||
}
|
||||
td {
|
||||
font-family: Tahoma, sans-serif;
|
||||
font-size: 11px;
|
||||
}
|
||||
button {
|
||||
width: 70px;
|
||||
font-family: Tahoma, sans-serif;
|
||||
font-size: 11px;
|
||||
}
|
||||
#fcreated,#ftype,#fsize {
|
||||
background-color: rgb(212,208,200);
|
||||
border: none;
|
||||
font-family: Tahoma, sans-serif;
|
||||
font-size: 11px;
|
||||
color: black;
|
||||
}
|
||||
.space { padding: 2px; }
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body onload="Init()">
|
||||
<div class="title">Lisää linkki</div>
|
||||
<table width="660" border="0" cellspacing="0" cellpadding="2">
|
||||
<tr>
|
||||
<td width="380" valign="top"><fieldset>
|
||||
<legend>Tiedosto selain</legend>
|
||||
|
||||
<div class="space"></div>
|
||||
<iframe id="fbrowser" name="fbrowser" src="../coursefiles.php" width="360" height="260"></iframe>
|
||||
<p>
|
||||
<form id="uploader" name="uploader" enctype="multipart/form-data" method="post" action="browser.php" target="fbrowser">
|
||||
<input type="hidden" name="MAX_FILE_SIZE" value="2097152">
|
||||
<input type="hidden" name="a" value="s">
|
||||
<input id="dir" type="hidden" name="dir" value="none">
|
||||
<input id="fiilu" type="file" name="fiilu" size="35">
|
||||
<input type="submit" name="subval" value="Lataa tiedosto">
|
||||
</form></p>
|
||||
<div class="space"></div>
|
||||
</fieldset> </td>
|
||||
<td width="300" valign="top">
|
||||
<form name="mainform">
|
||||
<fieldset>
|
||||
<legend>Tiedoston ominaisuudet</legend>
|
||||
<div class="space"></div>
|
||||
<table width="298" border="0">
|
||||
<tr>
|
||||
<td width="35" align="right">Luotu:</td>
|
||||
<td align="left"><input id="fcreated" type="text" name="fcreated" size="40"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="35" align="right">Tyyppi:</td>
|
||||
<td align="left"><input id="ftype" type="text" name="ftype" size="40"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="35" align="right">Koko:</td>
|
||||
<td align="left"><input id="fsize" type="text" name="fsize" size="40"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
</fieldset>
|
||||
<fieldset><legend>Linkin ominaisuudet</legend>
|
||||
<br>
|
||||
<table width="82%">
|
||||
<tr>
|
||||
<td width="35" align="right">Osoite:</td>
|
||||
<td><input id="f_href" type="text" name="url" size="40"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="35" align="right">Otsikko:</td>
|
||||
<td><input id="f_title" type="text" name="f_title" size="40"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="35" align="right">Kohde:</td>
|
||||
<td><select id="f_target" name="f_target">
|
||||
<option value="">None (use implicit)</option>
|
||||
<option value="_blank">Uuteen ikkunaan (_blank)</option>
|
||||
<option value="_self">Samaan kehykseen (_self)</option>
|
||||
<option value="_top">Ylä kehykseen (_top)</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="space"></div>
|
||||
<table width="78%" border="0" cellspacing="0" cellpadding="2">
|
||||
<tr>
|
||||
<td align="right" valign="middle"><button name="btnOk" onclick="return onOK();">OK</button>
|
||||
<button name="btnCancel" onclick="return onCancel();">Peruuta</button></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="space"></div>
|
||||
</fieldset>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p> </p>
|
||||
</body>
|
||||
</html>
|
@ -1,215 +0,0 @@
|
||||
<html style="width: 398; height: 218">
|
||||
|
||||
<head>
|
||||
<title>Insert Image</title>
|
||||
|
||||
<script type="text/javascript" src="popup.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
var preview_window = null;
|
||||
|
||||
function Init() {
|
||||
__dlg_init();
|
||||
document.getElementById("f_url").focus();
|
||||
};
|
||||
|
||||
function onOK() {
|
||||
var required = {
|
||||
"f_url": "You must enter the URL",
|
||||
"f_alt": "Please enter the alternate text"
|
||||
};
|
||||
for (var i in required) {
|
||||
var el = document.getElementById(i);
|
||||
if (!el.value) {
|
||||
alert(required[i]);
|
||||
el.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
// pass data back to the calling window
|
||||
var fields = ["f_url", "f_alt", "f_align", "f_border",
|
||||
"f_horiz", "f_vert"];
|
||||
var param = new Object();
|
||||
for (var i in fields) {
|
||||
var id = fields[i];
|
||||
var el = document.getElementById(id);
|
||||
param[id] = el.value;
|
||||
}
|
||||
if (preview_window) {
|
||||
preview_window.close();
|
||||
}
|
||||
__dlg_close(param);
|
||||
return false;
|
||||
};
|
||||
|
||||
function onCancel() {
|
||||
if (preview_window) {
|
||||
preview_window.close();
|
||||
}
|
||||
__dlg_close(null);
|
||||
return false;
|
||||
};
|
||||
|
||||
function onPreview() {
|
||||
/* var f_url = document.getElementById("f_url");
|
||||
var url = f_url.value;
|
||||
if (!url) {
|
||||
alert("You have to enter an URL first");
|
||||
f_url.focus();
|
||||
return false;
|
||||
}
|
||||
var img = new Image();
|
||||
img.src = url;
|
||||
var win = null;
|
||||
if (!document.all) {
|
||||
win = window.open("about:blank", "ha_imgpreview", "toolbar=no,menubar=no,personalbar=no,innerWidth=100,innerHeight=100,scrollbars=no,resizable=yes");
|
||||
} else {
|
||||
win = window.open("about:blank", "ha_imgpreview", "channelmode=no,directories=no,height=100,width=100,location=no,menubar=no,resizable=yes,scrollbars=no,toolbar=no");
|
||||
}
|
||||
preview_window = win;
|
||||
var doc = win.document;
|
||||
var body = doc.body;
|
||||
if (body) {
|
||||
body.innerHTML = "";
|
||||
body.style.padding = "0px";
|
||||
body.style.margin = "0px";
|
||||
var el = doc.createElement("img");
|
||||
el.src = url;
|
||||
|
||||
var table = doc.createElement("table");
|
||||
body.appendChild(table);
|
||||
table.style.width = "100%";
|
||||
table.style.height = "100%";
|
||||
var tbody = doc.createElement("tbody");
|
||||
table.appendChild(tbody);
|
||||
var tr = doc.createElement("tr");
|
||||
tbody.appendChild(tr);
|
||||
var td = doc.createElement("td");
|
||||
tr.appendChild(td);
|
||||
td.style.textAlign = "center";
|
||||
|
||||
td.appendChild(el);
|
||||
win.resizeTo(el.offsetWidth + 30, el.offsetHeight + 30);
|
||||
}
|
||||
win.focus();
|
||||
return false; */
|
||||
};
|
||||
</script>
|
||||
|
||||
<style type="text/css">
|
||||
html, body {
|
||||
background: ButtonFace;
|
||||
color: ButtonText;
|
||||
font: 11px Tahoma,Verdana,sans-serif;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
body { padding: 5px; }
|
||||
table {
|
||||
font: 11px Tahoma,Verdana,sans-serif;
|
||||
}
|
||||
form p {
|
||||
margin-top: 5px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
.fl { width: 9em; float: left; padding: 2px 5px; text-align: right; }
|
||||
.fr { width: 6em; float: left; padding: 2px 5px; text-align: right; }
|
||||
fieldset { padding: 0px 10px 5px 5px; }
|
||||
select, input, button { font: 11px Tahoma,Verdana,sans-serif; }
|
||||
button { width: 70px; }
|
||||
.space { padding: 2px; }
|
||||
|
||||
.title { background: #ddf; color: #000; font-weight: bold; font-size: 120%; padding: 3px 10px; margin-bottom: 10px;
|
||||
border-bottom: 1px solid black; letter-spacing: 2px;
|
||||
}
|
||||
form { padding: 0px; margin: 0px; }
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body onload="Init()">
|
||||
|
||||
<div class="title">Insert Image</div>
|
||||
|
||||
<form action="" method="get">
|
||||
<table border="0" width="100%" style="padding: 0px; margin: 0px">
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td style="width: 7em; text-align: right">Image URL:</td>
|
||||
<td><input type="text" name="url" id="f_url" style="width:75%"
|
||||
title="Enter the image URL here" />
|
||||
<button name="preview" onclick="window.open('http://server.janne.com/hallinta/tiedotteet/images.php','my_new_window','toolbar=no, location=no, directories=no, status=yes, menubar=no, scrollbars=no, resizable=no, copyhistory=yes, width=400, height=300, top=100, left=100');"
|
||||
title="Preview the image in a new window">Preview</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 7em; text-align: right">Alternate text:</td>
|
||||
<td><input type="text" name="alt" id="f_alt" style="width:100%"
|
||||
title="For browsers that don't support images" /></td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<p />
|
||||
|
||||
<fieldset style="float: left; margin-left: 5px;">
|
||||
<legend>Layout</legend>
|
||||
|
||||
<div class="space"></div>
|
||||
|
||||
<div class="fl">Alignment:</div>
|
||||
<select size="1" name="align" id="f_align"
|
||||
title="Positioning of this image">
|
||||
<option value="" >Not set</option>
|
||||
<option value="left" >Left</option>
|
||||
<option value="right" >Right</option>
|
||||
<option value="texttop" >Texttop</option>
|
||||
<option value="absmiddle" >Absmiddle</option>
|
||||
<option value="baseline" selected="1" >Baseline</option>
|
||||
<option value="absbottom" >Absbottom</option>
|
||||
<option value="bottom" >Bottom</option>
|
||||
<option value="middle" >Middle</option>
|
||||
<option value="top" >Top</option>
|
||||
</select>
|
||||
|
||||
<p />
|
||||
|
||||
<div class="fl">Border thickness:</div>
|
||||
<input type="text" name="border" id="f_border" size="5"
|
||||
title="Leave empty for no border" />
|
||||
|
||||
<div class="space"></div>
|
||||
|
||||
</fieldset>
|
||||
|
||||
<fieldset style="float:right; margin-right: 5px;">
|
||||
<legend>Spacing</legend>
|
||||
|
||||
<div class="space"></div>
|
||||
|
||||
<div class="fr">Horizontal:</div>
|
||||
<input type="text" name="horiz" id="f_horiz" size="5"
|
||||
title="Horizontal padding" />
|
||||
|
||||
<p />
|
||||
|
||||
<div class="fr">Vertical:</div>
|
||||
<input type="text" name="vert" id="f_vert" size="5"
|
||||
title="Vertical padding" />
|
||||
|
||||
<div class="space"></div>
|
||||
|
||||
</fieldset>
|
||||
|
||||
<div style="margin-top: 85px; text-align: right;">
|
||||
<hr />
|
||||
<button type="button" name="ok" onclick="return onOK();">OK</button>
|
||||
<button type="button" name="cancel" onclick="return onCancel();">Cancel</button>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user