diff --git a/phpgwapi/js/htmlarea/plugins/UploadImage/img/up_image.gif b/phpgwapi/js/htmlarea/plugins/UploadImage/img/up_image.gif new file mode 100755 index 0000000000..9d2bff131c Binary files /dev/null and b/phpgwapi/js/htmlarea/plugins/UploadImage/img/up_image.gif differ diff --git a/phpgwapi/js/htmlarea/plugins/UploadImage/lang/en.js b/phpgwapi/js/htmlarea/plugins/UploadImage/lang/en.js new file mode 100755 index 0000000000..a48a362485 --- /dev/null +++ b/phpgwapi/js/htmlarea/plugins/UploadImage/lang/en.js @@ -0,0 +1,25 @@ +// I18N for the FullPage plugin + +// LANG: "en", ENCODING: UTF-8 | ISO-8859-1 +// Author: Mihai Bazon, http://dynarch.com/mishoo + +// 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.) + +UploadImage.I18N = { + "Alternate style-sheet:": "Alternate style-sheet:", + "Background color:": "Background color:", + "Cancel": "Cancel", + "DOCTYPE:": "DOCTYPE:", + "Document properties": "Document properties", + "Document title:": "Document title:", + "OK": "OK", + "Primary style-sheet:": "Primary style-sheet:", + "Text color:": "Text color:" +}; diff --git a/phpgwapi/js/htmlarea/plugins/UploadImage/lang/nl.js b/phpgwapi/js/htmlarea/plugins/UploadImage/lang/nl.js new file mode 100644 index 0000000000..919856fddb --- /dev/null +++ b/phpgwapi/js/htmlarea/plugins/UploadImage/lang/nl.js @@ -0,0 +1,25 @@ +// I18N for the FullPage plugin + +// LANG: "en", ENCODING: UTF-8 | ISO-8859-1 +// Author: Mihai Bazon, http://dynarch.com/mishoo + +// 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.) + +UploadImage.I18N = { + "Alternate style-sheet:": "Alternatieve style-sheet:", + "Background color:": "Achtergrondkleur:", + "Cancel": "Annuleren", + "DOCTYPE:": "DOCTYPE:", + "Document properties": "Documenteigenschappen ", + "Document title:": "Documenttitel:", + "OK": "Oké", + "Primary style-sheet:": "Primaire style-sheet:", + "Text color:": "Tekstkleur:" +}; diff --git a/phpgwapi/js/htmlarea/plugins/UploadImage/popups/docprop.html b/phpgwapi/js/htmlarea/plugins/UploadImage/popups/docprop.html new file mode 100755 index 0000000000..ee00e2d563 --- /dev/null +++ b/phpgwapi/js/htmlarea/plugins/UploadImage/popups/docprop.html @@ -0,0 +1,131 @@ + + + + Document properties + + + + + + + + + + + +
Document properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Document title:
DOCTYPE:
Primary style-sheet:
Alternate style-sheet:
Background color:
Text color:
+ +
+ + +
+ + + diff --git a/phpgwapi/js/htmlarea/plugins/UploadImage/popups/insert_image.php b/phpgwapi/js/htmlarea/plugins/UploadImage/popups/insert_image.php new file mode 100755 index 0000000000..a10c661919 --- /dev/null +++ b/phpgwapi/js/htmlarea/plugins/UploadImage/popups/insert_image.php @@ -0,0 +1,447 @@ + + ** Filename......: insert_image.php + ** Last changed..: 8 Mar 2003 + ** Notes.........: Configuration in config.inc.php + + - Only compatible with IE 5.5+ + + ***********************************************************************/ + + include 'ImageManager/config.inc.php'; + $no_dir = false; + if(!is_dir($BASE_DIR.$BASE_ROOT)) { + $no_dir = true; + } +?> + + + Insert Image + + + + + + + + +
Insert Image
+
+
+ + + + +
Loading Images
+
+ + + + + + + + + + +
+ Image Manager + + + + + + + +
+ + + + + + + + + +
Directory + + + Up
+ New Folder
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Image File
 
Width
Locked 
V Space
Alt
Height
H Space
Upload
+ +
Align
Border
 
+ + + +
Constrain Proportions
+ +
+
+ + + +
+
+ + diff --git a/phpgwapi/js/htmlarea/plugins/UploadImage/popups/insert_image2.html b/phpgwapi/js/htmlarea/plugins/UploadImage/popups/insert_image2.html new file mode 100755 index 0000000000..55e56a0c0e --- /dev/null +++ b/phpgwapi/js/htmlarea/plugins/UploadImage/popups/insert_image2.html @@ -0,0 +1,216 @@ + + + + Insert Image + + + + + + + + + + + +
Insert Image
+ +
+ + + + + + + + + + + + + +
Image URL: + +
Alternate text:
+ +

+ +

+Layout + +
+ +
Alignment:
+ + +

+ +

Border thickness:
+ + +
+ +
+ +
+Spacing + +
+ +
Horizontal:
+ + +

+ +

Vertical:
+ + +
+ +
+ +
+
+ + +
+ +
+ + + diff --git a/phpgwapi/js/htmlarea/plugins/UploadImage/popups/popup.js b/phpgwapi/js/htmlarea/plugins/UploadImage/popups/popup.js new file mode 100755 index 0000000000..b1e7c070e7 --- /dev/null +++ b/phpgwapi/js/htmlarea/plugins/UploadImage/popups/popup.js @@ -0,0 +1,50 @@ +function __dlg_onclose() { + if (!document.all) { + opener.Dialog._return(null); + } +}; + +function __dlg_init() { + + if (!document.all) { + // init dialogArguments, as IE gets it + window.dialogArguments = opener.Dialog._arguments; + window.sizeToContent(); + window.sizeToContent(); // for reasons beyond understanding, + // only if we call it twice we get the + // correct size. + window.addEventListener("unload", __dlg_onclose, true); + /* + // center on parent + var px1 = opener.screenX; + var px2 = opener.screenX + opener.outerWidth; + var py1 = opener.screenY; + var py2 = opener.screenY + opener.outerHeight; + var x = (px2 - px1 - window.outerWidth) / 2; + var y = (py2 - py1 - window.outerHeight) / 2; */ + + //centre on screen instead + + var x = (screen.width - window.outerWidth) / 2; + var y = (screen.height - window.outerHeight) / 2; + + window.moveTo(x, y); + var body = document.body; + window.innerHeight = body.offsetHeight; + window.innerWidth = body.offsetWidth; + } else { + var body = document.body; + window.dialogHeight = body.offsetHeight + 50 + "px"; + window.dialogWidth = body.offsetWidth + "px"; + } +}; + +// closes the dialog and passes the return info upper. +function __dlg_close(val) { + if (document.all) { // IE + window.returnValue = val; + } else { + opener.Dialog._return(val); + } + window.close(); +}; diff --git a/phpgwapi/js/htmlarea/plugins/UploadImage/upload-image.js b/phpgwapi/js/htmlarea/plugins/UploadImage/upload-image.js new file mode 100755 index 0000000000..13e09325ec --- /dev/null +++ b/phpgwapi/js/htmlarea/plugins/UploadImage/upload-image.js @@ -0,0 +1,153 @@ +// UploadImage Plugin for HTMLArea-3.0 +// Implementation by Mihai Bazon. Sponsored by http://thycotic.com +// +// htmlArea v3.0 - Copyright (c) 2002 interactivetools.com, inc. +// This notice MUST stay intact for use (see license.txt). +// +// A free WYSIWYG editor replacement for