Fix: checkstyle

This commit is contained in:
Laurent Destailleur 2012-05-09 00:28:02 +02:00
parent 0135129b9b
commit 6ed75123d8
7 changed files with 1061 additions and 1059 deletions

View File

@ -124,6 +124,7 @@ function print_start_menu_array_auguria()
* Output start menu entry * Output start menu entry
* *
* @param string $idsel Text * @param string $idsel Text
* @param string $classname String to add a css class
* @return void * @return void
*/ */
function print_start_menu_entry_auguria($idsel,$classname) function print_start_menu_entry_auguria($idsel,$classname)

View File

@ -518,6 +518,7 @@ function print_start_menu_array()
* Output start menu entry * Output start menu entry
* *
* @param string $idsel Text * @param string $idsel Text
* @param string $classname String to add a css class
* @return void * @return void
*/ */
function print_start_menu_entry($idsel,$classname) function print_start_menu_entry($idsel,$classname)

View File

@ -1,82 +1,82 @@
/* /*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license For licensing, see LICENSE.html or http://ckeditor.com/license
*/ */
CKEDITOR.editorConfig = function( config ) CKEDITOR.editorConfig = function( config )
{ {
// Define changes to default configuration here. // Define changes to default configuration here.
// http://docs.cksource.com/CKEditor_3.x/Developers_Guide // http://docs.cksource.com/CKEditor_3.x/Developers_Guide
// http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html // http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html
config.enterMode = CKEDITOR.ENTER_BR; config.enterMode = CKEDITOR.ENTER_BR;
config.resize_enabled = false; config.resize_enabled = false;
//config.resize_maxHeight = 3000; //config.resize_maxHeight = 3000;
//config.resize_maxWidth = 3000; //config.resize_maxWidth = 3000;
//config.height = '300px'; //config.height = '300px';
//config.resize_dir = 'vertical'; // horizontal, vertical, both //config.resize_dir = 'vertical'; // horizontal, vertical, both
config.removePlugins = 'elementspath,save'; // config.removePlugins = 'elementspath,save,font'; config.removePlugins = 'elementspath,save'; // config.removePlugins = 'elementspath,save,font';
config.removeDialogTabs = 'flash:advanced'; // config.removeDialogTabs = 'flash:advanced;image:Link'; config.removeDialogTabs = 'flash:advanced'; // config.removeDialogTabs = 'flash:advanced;image:Link';
config.protectedSource.push( /<\?[\s\S]*?\?>/g ); // Prevent PHP Code to be formatted config.protectedSource.push( /<\?[\s\S]*?\?>/g ); // Prevent PHP Code to be formatted
//config.menu_groups = 'clipboard,table,anchor,link,image'; // for context menu 'clipboard,form,tablecell,tablecellproperties,tablerow,tablecolumn,table,anchor,link,image,flash,checkbox,radio,textfield,hiddenfield,imagebutton,button,select,textarea' //config.menu_groups = 'clipboard,table,anchor,link,image'; // for context menu 'clipboard,form,tablecell,tablecellproperties,tablerow,tablecolumn,table,anchor,link,image,flash,checkbox,radio,textfield,hiddenfield,imagebutton,button,select,textarea'
//config.language = 'de'; //config.language = 'de';
//config.defaultLanguage = 'en'; //config.defaultLanguage = 'en';
//config.contentsLanguage = 'fr'; //config.contentsLanguage = 'fr';
config.fullPage = false; // Not a full html page string, just part of it config.fullPage = false; // Not a full html page string, just part of it
config.dialog_backgroundCoverColor = 'rgb(255, 254, 253)'; config.dialog_backgroundCoverColor = 'rgb(255, 254, 253)';
//config.contentsCss = '/css/mysitestyles.css'; //config.contentsCss = '/css/mysitestyles.css';
config.image_previewText=' '; config.image_previewText=' ';
config.toolbar_Full = config.toolbar_Full =
[ [
['Source','-','Save','NewPage','Preview','-','Templates'], ['Source','-','Save','NewPage','Preview','-','Templates'],
['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'], ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'], ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'],
'/', '/',
['Bold','Italic','Underline','Strike','-','Subscript','Superscript'], ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
['NumberedList','BulletedList','-','Outdent','Indent','Blockquote','CreateDiv'], ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote','CreateDiv'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['BidiLtr', 'BidiRtl'], ['BidiLtr', 'BidiRtl'],
['Link','Unlink','Anchor'], ['Link','Unlink','Anchor'],
['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Iframe'], ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Iframe'],
'/', '/',
['Styles','Format','Font','FontSize'], ['Styles','Format','Font','FontSize'],
['TextColor','BGColor'], ['TextColor','BGColor'],
['Maximize', 'ShowBlocks','-','About'] ['Maximize', 'ShowBlocks','-','About']
]; ];
config.toolbar_dolibarr_mailings = config.toolbar_dolibarr_mailings =
[ [
['Source','Maximize'], ['Source','Maximize'],
['Cut','Copy','Paste','-','SpellChecker'], ['Cut','Copy','Paste','-','SpellChecker'],
['Undo','Redo','-','Find','Replace'], ['Undo','Redo','-','Find','Replace'],
['Font','FontSize'], ['Font','FontSize'],
['Bold','Italic','Underline','Strike','Subscript','Superscript','-','TextColor','RemoveFormat'], ['Bold','Italic','Underline','Strike','Subscript','Superscript','-','TextColor','RemoveFormat'],
['NumberedList','BulletedList','Outdent','Indent'], ['NumberedList','BulletedList','Outdent','Indent'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Link','Unlink','Anchor','Image','Table','SpecialChar'] ['Link','Unlink','Anchor','Image','Table','SpecialChar']
]; ];
config.toolbar_dolibarr_notes = config.toolbar_dolibarr_notes =
[ [
['Source'], ['Source'],
['Cut','Copy','Paste','-','SpellChecker'], ['Cut','Copy','Paste','-','SpellChecker'],
['Undo','Redo','-','Find','Replace'], ['Undo','Redo','-','Find','Replace'],
['Font','FontSize'], ['Font','FontSize'],
['Bold','Italic','Underline','Strike','Subscript','Superscript','-','TextColor','RemoveFormat'], ['Bold','Italic','Underline','Strike','Subscript','Superscript','-','TextColor','RemoveFormat'],
['NumberedList','BulletedList','Outdent','Indent'], ['NumberedList','BulletedList','Outdent','Indent'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Link','Unlink','Image','Table','SpecialChar'] ['Link','Unlink','Image','Table','SpecialChar']
]; ];
config.toolbar_dolibarr_details = config.toolbar_dolibarr_details =
[ [
['Source','Maximize'], ['Source','Maximize'],
['Cut','Copy','Paste','-','SpellChecker'], ['Cut','Copy','Paste','-','SpellChecker'],
['Font','FontSize'], ['Font','FontSize'],
['Bold','Italic','Underline','Strike','Subscript','Superscript','-','TextColor','RemoveFormat'], ['Bold','Italic','Underline','Strike','Subscript','Superscript','-','TextColor','RemoveFormat'],
['NumberedList','BulletedList','Outdent','Indent'], ['NumberedList','BulletedList','Outdent','Indent'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['SpecialChar'] ['SpecialChar']
]; ];
}; };

View File

@ -1,402 +1,402 @@
/* /*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net * FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben * Copyright (C) 2003-2008 Frederico Caldeira Knabben
* *
* == BEGIN LICENSE == * == BEGIN LICENSE ==
* *
* Licensed under the terms of any of the following licenses at your * Licensed under the terms of any of the following licenses at your
* choice: * choice:
* *
* - GNU General Public License Version 2 or later (the "GPL") * - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html * http://www.gnu.org/licenses/gpl.html
* *
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL") * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html * http://www.gnu.org/licenses/lgpl.html
* *
* - Mozilla Public License Version 1.1 or later (the "MPL") * - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html * http://www.mozilla.org/MPL/MPL-1.1.html
* *
* == END LICENSE == * == END LICENSE ==
* *
* Styles used by the dialog boxes. * Styles used by the dialog boxes.
*/ */
html, body html, body
{ {
background-color: transparent; background-color: transparent;
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
} }
body body
{ {
padding: 10px; padding: 10px;
} }
body, td, input, select, textarea body, td, input, select, textarea
{ {
font-size: 11px; font-size: 11px;
font-family: 'Microsoft Sans Serif' , Arial, Helvetica, Verdana; font-family: 'Microsoft Sans Serif' , Arial, Helvetica, Verdana;
} }
body, .BackColor body, .BackColor
{ {
background-color: #f7f7f7; background-color: #f7f7f7;
} }
.PopupBody .PopupBody
{ {
height: 100%; height: 100%;
width: 100%; width: 100%;
overflow: hidden; overflow: hidden;
background-color: transparent; background-color: transparent;
padding: 0px; padding: 0px;
} }
#header #header
{ {
cursor: move; cursor: move;
} }
.PopupTitle .PopupTitle
{ {
font-weight: bold; font-weight: bold;
font-size: 14pt; font-size: 14pt;
color: #504845; color: #504845;
background-color: #dedede; background-color: #dedede;
padding: 3px 10px 3px 10px; padding: 3px 10px 3px 10px;
} }
.PopupButtons .PopupButtons
{ {
position: absolute; position: absolute;
right: 0px; right: 0px;
left: 0px; left: 0px;
bottom: 0px; bottom: 0px;
border-top: #cec6b5 1px solid; border-top: #cec6b5 1px solid;
background-color: #DEDEDE; background-color: #DEDEDE;
padding: 7px 10px 7px 10px; padding: 7px 10px 7px 10px;
} }
.Button .Button
{ {
border: #7a7261 1px solid; border: #7a7261 1px solid;
color: #504845; color: #504845;
background-color: #cec6b5; background-color: #cec6b5;
} }
#btnOk #btnOk
{ {
width: 100px; width: 100px;
} }
.DarkBackground .DarkBackground
{ {
background-color: #f2f2f2; background-color: #f2f2f2;
} }
.LightBackground .LightBackground
{ {
background-color: #ffffbe; background-color: #ffffbe;
} }
.PopupTitleBorder .PopupTitleBorder
{ {
border-bottom: #cec6b5 1px solid; border-bottom: #cec6b5 1px solid;
} }
.PopupTabArea .PopupTabArea
{ {
color: #504845; color: #504845;
background-color: #DEDEDE; background-color: #DEDEDE;
} }
.PopupTabEmptyArea .PopupTabEmptyArea
{ {
padding-left: 10px ; padding-left: 10px ;
border-bottom: #cec6b5 1px solid; border-bottom: #cec6b5 1px solid;
} }
.PopupTab, .PopupTabSelected .PopupTab, .PopupTabSelected
{ {
border-right: #cec6b5 1px solid; border-right: #cec6b5 1px solid;
border-top: #cec6b5 1px solid; border-top: #cec6b5 1px solid;
border-left: #cec6b5 1px solid; border-left: #cec6b5 1px solid;
padding: 3px 5px 3px 5px; padding: 3px 5px 3px 5px;
color: #504845; color: #504845;
} }
.PopupTab .PopupTab
{ {
margin-top: 1px; margin-top: 1px;
border-bottom: #cec6b5 1px solid; border-bottom: #cec6b5 1px solid;
cursor: pointer; cursor: pointer;
cursor: hand; cursor: hand;
} }
.PopupTabSelected .PopupTabSelected
{ {
font-weight:bold; font-weight:bold;
cursor: default; cursor: default;
padding-top: 4px; padding-top: 4px;
border-bottom: #f1f1e3 1px solid; border-bottom: #f1f1e3 1px solid;
background-color: #f7f7f7; background-color: #f7f7f7;
} }
.PopupSelectionBox .PopupSelectionBox
{ {
border: #a9a9a9 1px solid !important; border: #a9a9a9 1px solid !important;
background-color: #dcdcdc !important; background-color: #dcdcdc !important;
cursor: pointer; cursor: pointer;
cursor: hand; cursor: hand;
} }
#tdBrowse #tdBrowse
{ {
vertical-align: bottom; vertical-align: bottom;
} }
/** /**
* Dialog frame related styles. * Dialog frame related styles.
*/ */
.contents .contents
{ {
position: absolute; position: absolute;
top: 2px; top: 2px;
left: 16px; left: 16px;
right: 16px; right: 16px;
bottom: 20px; bottom: 20px;
background-color: #f7f7f7; background-color: #f7f7f7;
overflow: hidden; overflow: hidden;
z-index: 1; z-index: 1;
} }
.tl, .tr, .tc, .bl, .br, .bc .tl, .tr, .tc, .bl, .br, .bc
{ {
position: absolute; position: absolute;
background-image: url(images/sprites.png); background-image: url(images/sprites.png);
background-repeat: no-repeat; background-repeat: no-repeat;
} }
* html .tl, * html .tr, * html .tc, * html .bl, * html .br, * html .bc * html .tl, * html .tr, * html .tc, * html .bl, * html .br, * html .bc
{ {
background-image: url(images/sprites.gif); background-image: url(images/sprites.gif);
} }
.ml, .mr .ml, .mr
{ {
position: absolute; position: absolute;
background-image: url(images/dialog.sides.png); background-image: url(images/dialog.sides.png);
background-repeat: repeat-y; background-repeat: repeat-y;
} }
* html .ml, * html .mr * html .ml, * html .mr
{ {
background-image: url(images/dialog.sides.gif); background-image: url(images/dialog.sides.gif);
} }
.rtl .ml, .rtl .mr .rtl .ml, .rtl .mr
{ {
position: absolute; position: absolute;
background-image: url(images/dialog.sides.rtl.png); background-image: url(images/dialog.sides.rtl.png);
background-repeat: repeat-y; background-repeat: repeat-y;
} }
* html .rtl .ml, * html .rtl .mr * html .rtl .ml, * html .rtl .mr
{ {
background-image: url(images/dialog.sides.gif); background-image: url(images/dialog.sides.gif);
} }
.tl .tl
{ {
top: 0px; top: 0px;
left: 0px; left: 0px;
width: 16px; width: 16px;
height: 16px; height: 16px;
background-position: -16px -16px; background-position: -16px -16px;
} }
.rtl .tl .rtl .tl
{ {
background-position: -16px -397px; background-position: -16px -397px;
} }
.tr .tr
{ {
top: 0px; top: 0px;
right: 0px; right: 0px;
width: 16px; width: 16px;
height: 16px; height: 16px;
background-position: -16px -76px; background-position: -16px -76px;
} }
.rtl .tr .rtl .tr
{ {
background-position: -16px -457px; background-position: -16px -457px;
} }
.tc .tc
{ {
top: 0px; top: 0px;
right: 16px; right: 16px;
left: 16px; left: 16px;
height: 16px; height: 16px;
background-position: 0px -136px; background-position: 0px -136px;
background-repeat: repeat-x; background-repeat: repeat-x;
} }
.ml .ml
{ {
top: 16px; top: 16px;
left: 0px; left: 0px;
width: 16px; width: 16px;
bottom: 51px; bottom: 51px;
background-position: 0px 0px; background-position: 0px 0px;
} }
.mr .mr
{ {
top: 16px; top: 16px;
right: 0px; right: 0px;
width: 16px; width: 16px;
bottom: 51px; bottom: 51px;
background-position: -16px 0px; background-position: -16px 0px;
} }
.bl .bl
{ {
bottom: 0px; bottom: 0px;
left: 0px; left: 0px;
width: 30px; width: 30px;
height: 51px; height: 51px;
background-position: -16px -196px; background-position: -16px -196px;
} }
.rtl .bl .rtl .bl
{ {
background-position: -16px -517px; background-position: -16px -517px;
} }
.br .br
{ {
bottom: 0px; bottom: 0px;
right: 0px; right: 0px;
width: 30px; width: 30px;
height: 51px; height: 51px;
background-position: -16px -263px; background-position: -16px -263px;
} }
.rtl .br .rtl .br
{ {
background-position: -16px -584px; background-position: -16px -584px;
} }
.bc .bc
{ {
bottom: 0px; bottom: 0px;
right: 30px; right: 30px;
left: 30px; left: 30px;
height: 51px; height: 51px;
background-position: 0px -330px; background-position: 0px -330px;
background-repeat: repeat-x; background-repeat: repeat-x;
} }
/* For IE6. Do not change it. */ /* For IE6. Do not change it. */
* html .blocker * html .blocker
{ {
position: absolute; position: absolute;
width: 100%; width: 100%;
height: 100%; height: 100%;
z-index: 12; z-index: 12;
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0); filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0);
} }
/* The layer used to cover the dialog when opening a child dialog. */ /* The layer used to cover the dialog when opening a child dialog. */
.cover .cover
{ {
position: absolute; position: absolute;
top: 0px; top: 0px;
left: 14px; left: 14px;
right: 14px; right: 14px;
bottom: 18px; bottom: 18px;
z-index: 11; z-index: 11;
} }
#closeButton #closeButton
{ {
position: absolute; position: absolute;
right: 0px; right: 0px;
top: 0px; top: 0px;
margin-top: 5px; margin-top: 5px;
margin-right: 10px; margin-right: 10px;
width: 20px; width: 20px;
height: 20px; height: 20px;
cursor: pointer; cursor: pointer;
background-image: url(images/sprites.png); background-image: url(images/sprites.png);
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: -16px -651px; background-position: -16px -651px;
} }
* html #closeButton * html #closeButton
{ {
cursor: hand; cursor: hand;
background-image: url(images/sprites.gif); background-image: url(images/sprites.gif);
} }
.rtl #closeButton .rtl #closeButton
{ {
right: auto; right: auto;
left: 10px; left: 10px;
margin-right: 0px; margin-right: 0px;
} }
#closeButton:hover #closeButton:hover
{ {
background-position: -16px -687px; background-position: -16px -687px;
} }
#throbberBlock #throbberBlock
{ {
z-index: 10; z-index: 10;
} }
#throbberBlock div #throbberBlock div
{ {
float: left; float: left;
width: 8px; width: 8px;
height: 9px; height: 9px;
margin-left: 2px; margin-left: 2px;
margin-right: 2px; margin-right: 2px;
font-size: 1px; /* IE6 */ font-size: 1px; /* IE6 */
} }
/* /*
Color Gradient Generator: Color Gradient Generator:
http://www.herethere.net/~samson/php/color_gradient/?cbegin=504845&cend=DEDEDE&steps=4 http://www.herethere.net/~samson/php/color_gradient/?cbegin=504845&cend=DEDEDE&steps=4
*/ */
.throbber_1 .throbber_1
{ {
background-color: #504845; background-color: #504845;
} }
.throbber_2 .throbber_2
{ {
background-color: #736D6B; background-color: #736D6B;
} }
.throbber_3 .throbber_3
{ {
background-color: #979391; background-color: #979391;
} }
.throbber_4 .throbber_4
{ {
background-color: #BAB8B7; background-color: #BAB8B7;
} }
.throbber_5 .throbber_5
{ {
background-color: #DEDEDE; background-color: #DEDEDE;
} }

View File

@ -1,110 +1,110 @@
/* /*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net * FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben * Copyright (C) 2003-2008 Frederico Caldeira Knabben
* *
* == BEGIN LICENSE == * == BEGIN LICENSE ==
* *
* Licensed under the terms of any of the following licenses at your * Licensed under the terms of any of the following licenses at your
* choice: * choice:
* *
* - GNU General Public License Version 2 or later (the "GPL") * - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html * http://www.gnu.org/licenses/gpl.html
* *
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL") * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html * http://www.gnu.org/licenses/lgpl.html
* *
* - Mozilla Public License Version 1.1 or later (the "MPL") * - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html * http://www.mozilla.org/MPL/MPL-1.1.html
* *
* == END LICENSE == * == END LICENSE ==
*/ */
(function() (function()
{ {
// IE6 doens't handle absolute positioning properly (it is always in quirks // IE6 doens't handle absolute positioning properly (it is always in quirks
// mode). This function fixes the sizes and positions of many elements that // mode). This function fixes the sizes and positions of many elements that
// compose the skin (this is skin specific). // compose the skin (this is skin specific).
var fixSizes = window.DoResizeFixes = function() var fixSizes = window.DoResizeFixes = function()
{ {
var fckDlg = window.document.body ; var fckDlg = window.document.body ;
for ( var i = 0 ; i < fckDlg.childNodes.length ; i++ ) for ( var i = 0 ; i < fckDlg.childNodes.length ; i++ )
{ {
var child = fckDlg.childNodes[i] ; var child = fckDlg.childNodes[i] ;
switch ( child.className ) switch ( child.className )
{ {
case 'contents' : case 'contents' :
child.style.width = Math.max( 0, fckDlg.offsetWidth - 16 - 16 ) ; // -left -right child.style.width = Math.max( 0, fckDlg.offsetWidth - 16 - 16 ) ; // -left -right
child.style.height = Math.max( 0, fckDlg.clientHeight - 20 - 2 ) ; // -bottom -top child.style.height = Math.max( 0, fckDlg.clientHeight - 20 - 2 ) ; // -bottom -top
break ; break ;
case 'blocker' : case 'blocker' :
case 'cover' : case 'cover' :
child.style.width = Math.max( 0, fckDlg.offsetWidth - 16 - 16 + 4 ) ; // -left -right + 4 child.style.width = Math.max( 0, fckDlg.offsetWidth - 16 - 16 + 4 ) ; // -left -right + 4
child.style.height = Math.max( 0, fckDlg.clientHeight - 20 - 2 + 4 ) ; // -bottom -top + 4 child.style.height = Math.max( 0, fckDlg.clientHeight - 20 - 2 + 4 ) ; // -bottom -top + 4
break ; break ;
case 'tr' : case 'tr' :
child.style.left = Math.max( 0, fckDlg.clientWidth - 16 ) ; child.style.left = Math.max( 0, fckDlg.clientWidth - 16 ) ;
break ; break ;
case 'tc' : case 'tc' :
child.style.width = Math.max( 0, fckDlg.clientWidth - 16 - 16 ) ; child.style.width = Math.max( 0, fckDlg.clientWidth - 16 - 16 ) ;
break ; break ;
case 'ml' : case 'ml' :
child.style.height = Math.max( 0, fckDlg.clientHeight - 16 - 51 ) ; child.style.height = Math.max( 0, fckDlg.clientHeight - 16 - 51 ) ;
break ; break ;
case 'mr' : case 'mr' :
child.style.left = Math.max( 0, fckDlg.clientWidth - 16 ) ; child.style.left = Math.max( 0, fckDlg.clientWidth - 16 ) ;
child.style.height = Math.max( 0, fckDlg.clientHeight - 16 - 51 ) ; child.style.height = Math.max( 0, fckDlg.clientHeight - 16 - 51 ) ;
break ; break ;
case 'bl' : case 'bl' :
child.style.top = Math.max( 0, fckDlg.clientHeight - 51 ) ; child.style.top = Math.max( 0, fckDlg.clientHeight - 51 ) ;
break ; break ;
case 'br' : case 'br' :
child.style.left = Math.max( 0, fckDlg.clientWidth - 30 ) ; child.style.left = Math.max( 0, fckDlg.clientWidth - 30 ) ;
child.style.top = Math.max( 0, fckDlg.clientHeight - 51 ) ; child.style.top = Math.max( 0, fckDlg.clientHeight - 51 ) ;
break ; break ;
case 'bc' : case 'bc' :
child.style.width = Math.max( 0, fckDlg.clientWidth - 30 - 30 ) ; child.style.width = Math.max( 0, fckDlg.clientWidth - 30 - 30 ) ;
child.style.top = Math.max( 0, fckDlg.clientHeight - 51 ) ; child.style.top = Math.max( 0, fckDlg.clientHeight - 51 ) ;
break ; break ;
} }
} }
} }
var closeButtonOver = function() var closeButtonOver = function()
{ {
this.style.backgroundPosition = '-16px -687px' ; this.style.backgroundPosition = '-16px -687px' ;
} ; } ;
var closeButtonOut = function() var closeButtonOut = function()
{ {
this.style.backgroundPosition = '-16px -651px' ; this.style.backgroundPosition = '-16px -651px' ;
} ; } ;
var fixCloseButton = function() var fixCloseButton = function()
{ {
var closeButton = document.getElementById ( 'closeButton' ) ; var closeButton = document.getElementById ( 'closeButton' ) ;
closeButton.onmouseover = closeButtonOver ; closeButton.onmouseover = closeButtonOver ;
closeButton.onmouseout = closeButtonOut ; closeButton.onmouseout = closeButtonOut ;
} }
var onLoad = function() var onLoad = function()
{ {
fixSizes() ; fixSizes() ;
fixCloseButton() ; fixCloseButton() ;
window.attachEvent( 'onresize', fixSizes ) ; window.attachEvent( 'onresize', fixSizes ) ;
window.detachEvent( 'onload', onLoad ) ; window.detachEvent( 'onload', onLoad ) ;
} }
window.attachEvent( 'onload', onLoad ) ; window.attachEvent( 'onload', onLoad ) ;
})() ; })() ;

View File

@ -1,465 +1,465 @@
/* /*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net * FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben * Copyright (C) 2003-2008 Frederico Caldeira Knabben
* *
* == BEGIN LICENSE == * == BEGIN LICENSE ==
* *
* Licensed under the terms of any of the following licenses at your * Licensed under the terms of any of the following licenses at your
* choice: * choice:
* *
* - GNU General Public License Version 2 or later (the "GPL") * - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html * http://www.gnu.org/licenses/gpl.html
* *
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL") * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html * http://www.gnu.org/licenses/lgpl.html
* *
* - Mozilla Public License Version 1.1 or later (the "MPL") * - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html * http://www.mozilla.org/MPL/MPL-1.1.html
* *
* == END LICENSE == * == END LICENSE ==
* *
* Styles used by the editor IFRAME and Toolbar. * Styles used by the editor IFRAME and Toolbar.
*/ */
/* /*
### Basic Editor IFRAME Styles. ### Basic Editor IFRAME Styles.
*/ */
body body
{ {
padding: 1px; padding: 1px;
margin: 0; margin: 0;
background-color: #ffffff; background-color: #ffffff;
} }
#xEditingArea #xEditingArea
{ {
border: #696969 1px solid; border: #696969 1px solid;
} }
.SourceField .SourceField
{ {
padding: 5px; padding: 5px;
margin: 0px; margin: 0px;
font-family: Monospace; font-family: Monospace;
} }
/* /*
Toolbar Toolbar
*/ */
.TB_ToolbarSet, .TB_Expand, .TB_Collapse .TB_ToolbarSet, .TB_Expand, .TB_Collapse
{ {
cursor: default; cursor: default;
background-color: #f7f7f7; background-color: #f7f7f7;
} }
.TB_ToolbarSet .TB_ToolbarSet
{ {
border-top: #f7f7f7 1px outset; border-top: #f7f7f7 1px outset;
border-bottom: #f7f7f7 1px outset; border-bottom: #f7f7f7 1px outset;
} }
.TB_ToolbarSet TD .TB_ToolbarSet TD
{ {
font-size: 11px; font-size: 11px;
font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif; font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif;
} }
.TB_Toolbar .TB_Toolbar
{ {
height: 24px; height: 24px;
display: inline-table; /* inline = Opera jumping buttons bug */ display: inline-table; /* inline = Opera jumping buttons bug */
} }
.TB_Separator .TB_Separator
{ {
width: 1px; width: 1px;
height: 16px; height: 16px;
margin: 2px; margin: 2px;
background-color: #999966; background-color: #999966;
} }
.TB_Start .TB_Start
{ {
background-image: url(images/toolbar.start.gif); background-image: url(images/toolbar.start.gif);
margin: 2px; margin: 2px;
width: 3px; width: 3px;
background-repeat: no-repeat; background-repeat: no-repeat;
height: 16px; height: 16px;
} }
.TB_End .TB_End
{ {
display: none; display: none;
} }
.TB_ExpandImg .TB_ExpandImg
{ {
background-image: url(images/toolbar.expand.gif); background-image: url(images/toolbar.expand.gif);
background-repeat: no-repeat; background-repeat: no-repeat;
} }
.TB_CollapseImg .TB_CollapseImg
{ {
background-image: url(images/toolbar.collapse.gif); background-image: url(images/toolbar.collapse.gif);
background-repeat: no-repeat; background-repeat: no-repeat;
} }
.TB_SideBorder .TB_SideBorder
{ {
background-color: #696969; background-color: #696969;
} }
.TB_Expand, .TB_Collapse .TB_Expand, .TB_Collapse
{ {
padding: 2px 2px 2px 2px; padding: 2px 2px 2px 2px;
border: #f7f7f7 1px outset; border: #f7f7f7 1px outset;
} }
.TB_Collapse .TB_Collapse
{ {
width: 5px; width: 5px;
} }
.TB_Break .TB_Break
{ {
height: 24px; /* IE needs the height to be set, otherwise no break */ height: 24px; /* IE needs the height to be set, otherwise no break */
} }
/* /*
Toolbar Button Toolbar Button
*/ */
.TB_Button_On, .TB_Button_Off, .TB_Button_On_Over, .TB_Button_Off_Over, .TB_Button_Disabled .TB_Button_On, .TB_Button_Off, .TB_Button_On_Over, .TB_Button_Off_Over, .TB_Button_Disabled
{ {
border: #f7f7f7 1px solid; /* This is the default border */ border: #f7f7f7 1px solid; /* This is the default border */
height: 22px; /* The height is necessary, otherwise IE will not apply the alpha */ height: 22px; /* The height is necessary, otherwise IE will not apply the alpha */
} }
.TB_Button_On .TB_Button_On
{ {
border: #316ac5 1px solid; border: #316ac5 1px solid;
background-color: #c1d2ee; background-color: #c1d2ee;
} }
.TB_Button_On_Over, .TB_Button_Off_Over .TB_Button_On_Over, .TB_Button_Off_Over
{ {
border: #316ac5 1px solid; border: #316ac5 1px solid;
background-color: #dff1ff; background-color: #dff1ff;
} }
.TB_Button_Off .TB_Button_Off
{ {
filter: alpha(opacity=70); /* IE */ filter: alpha(opacity=70); /* IE */
opacity: 0.70; /* Safari, Opera and Mozilla */ opacity: 0.70; /* Safari, Opera and Mozilla */
} }
.TB_Button_Disabled .TB_Button_Disabled
{ {
filter: gray() alpha(opacity=30); /* IE */ filter: gray() alpha(opacity=30); /* IE */
opacity: 0.30; /* Safari, Opera and Mozilla */ opacity: 0.30; /* Safari, Opera and Mozilla */
} }
.TB_Button_Padding .TB_Button_Padding
{ {
visibility: hidden; visibility: hidden;
width: 3px; width: 3px;
height: 22px; height: 22px;
} }
.TB_Button_Image .TB_Button_Image
{ {
overflow: hidden; overflow: hidden;
width: 16px; width: 16px;
height: 16px; height: 16px;
margin: 3px; margin: 3px;
background-repeat: no-repeat; background-repeat: no-repeat;
} }
.TB_Button_Image img .TB_Button_Image img
{ {
position: relative; position: relative;
} }
.TB_Button_Off .TB_Button_Text .TB_Button_Off .TB_Button_Text
{ {
background-color: #f7f7f7; /* Needed because of a bug on Clear Type */ background-color: #f7f7f7; /* Needed because of a bug on Clear Type */
} }
.TB_ConnectionLine .TB_ConnectionLine
{ {
background-color: #ffffff; background-color: #ffffff;
height: 1px; height: 1px;
margin-left: 1px; /* ltr */ margin-left: 1px; /* ltr */
margin-right: 1px; /* rtl */ margin-right: 1px; /* rtl */
} }
.TB_Text .TB_Text
{ {
height: 22px; height: 22px;
} }
.TB_Button_Off .TB_Text .TB_Button_Off .TB_Text
{ {
background-color: #f7f7f7 ; /* Needed because of a bug on ClearType */ background-color: #f7f7f7 ; /* Needed because of a bug on ClearType */
} }
.TB_Button_On_Over .TB_Text .TB_Button_On_Over .TB_Text
{ {
background-color: #dff1ff ; /* Needed because of a bug on ClearType */ background-color: #dff1ff ; /* Needed because of a bug on ClearType */
} }
/* /*
Menu Menu
*/ */
.MN_Menu .MN_Menu
{ {
border: 1px solid #8f8f73; border: 1px solid #8f8f73;
padding: 2px; padding: 2px;
background-color: #ffffff; background-color: #ffffff;
cursor: default; cursor: default;
} }
.MN_Menu, .MN_Menu .MN_Label .MN_Menu, .MN_Menu .MN_Label
{ {
font-size: 11px; font-size: 11px;
font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif; font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif;
} }
.MN_Item_Padding .MN_Item_Padding
{ {
visibility: hidden; visibility: hidden;
width: 3px; width: 3px;
height: 20px; height: 20px;
} }
.MN_Icon .MN_Icon
{ {
background-color: #dedede; background-color: #dedede;
text-align: center; text-align: center;
height: 20px; height: 20px;
} }
.MN_Label .MN_Label
{ {
padding-left: 3px; padding-left: 3px;
padding-right: 3px; padding-right: 3px;
} }
.MN_Separator .MN_Separator
{ {
height: 3px; height: 3px;
} }
.MN_Separator_Line .MN_Separator_Line
{ {
border-top: #b9b99d 1px solid; border-top: #b9b99d 1px solid;
} }
.MN_Item .MN_Icon IMG .MN_Item .MN_Icon IMG
{ {
filter: alpha(opacity=70); filter: alpha(opacity=70);
opacity: 0.70; opacity: 0.70;
} }
.MN_Item_Over .MN_Item_Over
{ {
color: #ffffff; color: #ffffff;
background-color: #8a857d; background-color: #8a857d;
} }
.MN_Item_Over .MN_Icon .MN_Item_Over .MN_Icon
{ {
background-color: #6c6761; background-color: #6c6761;
} }
.MN_Item_Disabled IMG .MN_Item_Disabled IMG
{ {
filter: gray() alpha(opacity=30); /* IE */ filter: gray() alpha(opacity=30); /* IE */
opacity: 0.30; /* Safari, Opera and Mozilla */ opacity: 0.30; /* Safari, Opera and Mozilla */
} }
.MN_Item_Disabled .MN_Label .MN_Item_Disabled .MN_Label
{ {
color: #b7b7b7; color: #b7b7b7;
} }
.MN_Arrow .MN_Arrow
{ {
padding-right: 3px; padding-right: 3px;
padding-left: 3px; padding-left: 3px;
} }
.MN_ConnectionLine .MN_ConnectionLine
{ {
background-color: #ffffff; background-color: #ffffff;
} }
.Menu .TB_Button_On, .Menu .TB_Button_On_Over .Menu .TB_Button_On, .Menu .TB_Button_On_Over
{ {
border: #8f8f73 1px solid; border: #8f8f73 1px solid;
background-color: #ffffff; background-color: #ffffff;
} }
/* /*
### Panel Styles ### Panel Styles
*/ */
.FCK_Panel .FCK_Panel
{ {
border: #8f8f73 1px solid; border: #8f8f73 1px solid;
padding: 2px; padding: 2px;
background-color: #ffffff; background-color: #ffffff;
} }
.FCK_Panel, .FCK_Panel TD .FCK_Panel, .FCK_Panel TD
{ {
font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif; font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif;
font-size: 11px; font-size: 11px;
} }
/* /*
### Special Combos ### Special Combos
*/ */
.SC_Panel .SC_Panel
{ {
overflow: auto; overflow: auto;
white-space: nowrap; white-space: nowrap;
cursor: default; cursor: default;
border: 1px solid #8f8f73; border: 1px solid #8f8f73;
padding-left: 2px; padding-left: 2px;
padding-right: 2px; padding-right: 2px;
background-color: #ffffff; background-color: #ffffff;
} }
.SC_Panel, .SC_Panel TD .SC_Panel, .SC_Panel TD
{ {
font-size: 11px; font-size: 11px;
font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif; font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif;
} }
.SC_Item, .SC_ItemSelected .SC_Item, .SC_ItemSelected
{ {
margin-top: 2px; margin-top: 2px;
margin-bottom: 2px; margin-bottom: 2px;
background-position: left center; background-position: left center;
padding-left: 11px; padding-left: 11px;
padding-right: 3px; padding-right: 3px;
padding-top: 2px; padding-top: 2px;
padding-bottom: 2px; padding-bottom: 2px;
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
background-repeat: no-repeat; background-repeat: no-repeat;
border: #dddddd 1px solid; border: #dddddd 1px solid;
} }
.SC_Item *, .SC_ItemSelected * .SC_Item *, .SC_ItemSelected *
{ {
margin-top: 0px; margin-top: 0px;
margin-bottom: 0px; margin-bottom: 0px;
} }
.SC_ItemSelected .SC_ItemSelected
{ {
border: #9a9afb 1px solid; border: #9a9afb 1px solid;
background-image: url(images/toolbar.arrowright.gif); background-image: url(images/toolbar.arrowright.gif);
} }
.SC_ItemOver .SC_ItemOver
{ {
border: #404040 1px solid; border: #404040 1px solid;
} }
.SC_Field .SC_Field
{ {
border: #b7b7a6 1px solid; border: #b7b7a6 1px solid;
cursor: default; cursor: default;
} }
.SC_FieldCaption .SC_FieldCaption
{ {
overflow: visible; overflow: visible;
padding-right: 5px; padding-right: 5px;
padding-left: 5px; padding-left: 5px;
opacity: 0.75; /* Safari, Opera and Mozilla */ opacity: 0.75; /* Safari, Opera and Mozilla */
filter: alpha(opacity=70); /* IE */ /* -moz-opacity: 0.75; Mozilla (Old) */ filter: alpha(opacity=70); /* IE */ /* -moz-opacity: 0.75; Mozilla (Old) */
height: 23px; height: 23px;
background-color: #f7f7f7; background-color: #f7f7f7;
} }
.SC_FieldLabel .SC_FieldLabel
{ {
white-space: nowrap; white-space: nowrap;
padding: 2px; padding: 2px;
width: 100%; width: 100%;
cursor: default; cursor: default;
background-color: #ffffff; background-color: #ffffff;
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
} }
.SC_FieldButton .SC_FieldButton
{ {
background-position: center center; background-position: center center;
background-image: url(images/toolbar.buttonarrow.gif); background-image: url(images/toolbar.buttonarrow.gif);
border-left: #b7b7a6 1px solid; border-left: #b7b7a6 1px solid;
width: 14px; width: 14px;
background-repeat: no-repeat; background-repeat: no-repeat;
} }
.SC_FieldDisabled .SC_FieldButton, .SC_FieldDisabled .SC_FieldCaption, .SC_FieldDisabled .TB_ButtonType_Text .SC_FieldDisabled .SC_FieldButton, .SC_FieldDisabled .SC_FieldCaption, .SC_FieldDisabled .TB_ButtonType_Text
{ {
opacity: 0.30; /* Safari, Opera and Mozilla */ opacity: 0.30; /* Safari, Opera and Mozilla */
filter: gray() alpha(opacity=30); /* IE */ /* -moz-opacity: 0.30; Mozilla (Old) */ filter: gray() alpha(opacity=30); /* IE */ /* -moz-opacity: 0.30; Mozilla (Old) */
} }
.SC_FieldOver .SC_FieldOver
{ {
border: #316ac5 1px solid; border: #316ac5 1px solid;
} }
.SC_FieldOver .SC_FieldButton .SC_FieldOver .SC_FieldButton
{ {
border-left: #316ac5 1px solid; border-left: #316ac5 1px solid;
} }
/* /*
### Color Selector Panel ### Color Selector Panel
*/ */
.ColorBoxBorder .ColorBoxBorder
{ {
border: #808080 1px solid; border: #808080 1px solid;
position: static; position: static;
} }
.ColorBox .ColorBox
{ {
font-size: 1px; font-size: 1px;
width: 10px; width: 10px;
position: static; position: static;
height: 10px; height: 10px;
} }
.ColorDeselected, .ColorSelected .ColorDeselected, .ColorSelected
{ {
cursor: default; cursor: default;
} }
.ColorDeselected .ColorDeselected
{ {
border: #ffffff 1px solid; border: #ffffff 1px solid;
padding: 2px; padding: 2px;
float: left; float: left;
} }
.ColorSelected .ColorSelected
{ {
border: #316ac5 1px solid; border: #316ac5 1px solid;
padding: 2px; padding: 2px;
float: left; float: left;
background-color: #c1d2ee; background-color: #c1d2ee;
} }

View File

@ -1448,7 +1448,7 @@ class User extends CommonObject
'', '',
0, 0,
$msgishtml $msgishtml
); );
if ($mailfile->sendfile()) if ($mailfile->sendfile())
{ {