diff --git a/main/default_course_document/images/dialogs/border-bottom-right.png b/main/default_course_document/images/dialogs/border-bottom-right.png new file mode 100644 index 0000000000..7bfa2c6349 Binary files /dev/null and b/main/default_course_document/images/dialogs/border-bottom-right.png differ diff --git a/main/default_course_document/images/dialogs/border-bottom.jpg b/main/default_course_document/images/dialogs/border-bottom.jpg new file mode 100644 index 0000000000..79f803857f Binary files /dev/null and b/main/default_course_document/images/dialogs/border-bottom.jpg differ diff --git a/main/default_course_document/images/dialogs/border-top.jpg b/main/default_course_document/images/dialogs/border-top.jpg new file mode 100644 index 0000000000..07589d4e1c Binary files /dev/null and b/main/default_course_document/images/dialogs/border-top.jpg differ diff --git a/main/default_course_document/images/dialogs/dialog_elastic_left_border-left.png b/main/default_course_document/images/dialogs/dialog_elastic_left_border-left.png new file mode 100644 index 0000000000..1233fb32a1 Binary files /dev/null and b/main/default_course_document/images/dialogs/dialog_elastic_left_border-left.png differ diff --git a/main/default_course_document/images/dialogs/dialog_elastic_left_border-right.png b/main/default_course_document/images/dialogs/dialog_elastic_left_border-right.png new file mode 100644 index 0000000000..2b4169d330 Binary files /dev/null and b/main/default_course_document/images/dialogs/dialog_elastic_left_border-right.png differ diff --git a/main/default_course_document/images/dialogs/dialog_elastic_right_border-left.png b/main/default_course_document/images/dialogs/dialog_elastic_right_border-left.png new file mode 100644 index 0000000000..c72a691bfc Binary files /dev/null and b/main/default_course_document/images/dialogs/dialog_elastic_right_border-left.png differ diff --git a/main/default_course_document/images/dialogs/dialog_elastic_right_border-right.png b/main/default_course_document/images/dialogs/dialog_elastic_right_border-right.png new file mode 100644 index 0000000000..cc330fcaad Binary files /dev/null and b/main/default_course_document/images/dialogs/dialog_elastic_right_border-right.png differ diff --git a/main/default_course_document/images/dialogs/dialog_elastictop_left_.png b/main/default_course_document/images/dialogs/dialog_elastictop_left_.png new file mode 100644 index 0000000000..22eff16757 Binary files /dev/null and b/main/default_course_document/images/dialogs/dialog_elastictop_left_.png differ diff --git a/main/default_course_document/images/dialogs/dialog_elastictop_right_.png b/main/default_course_document/images/dialogs/dialog_elastictop_right_.png new file mode 100644 index 0000000000..83ed6b93dc Binary files /dev/null and b/main/default_course_document/images/dialogs/dialog_elastictop_right_.png differ diff --git a/main/default_course_document/images/dialogs/dialog_left_500x500.png b/main/default_course_document/images/dialogs/dialog_left_500x500.png new file mode 100644 index 0000000000..be40a77cf8 Binary files /dev/null and b/main/default_course_document/images/dialogs/dialog_left_500x500.png differ diff --git a/main/default_course_document/images/dialogs/dialog_right_500x500.png b/main/default_course_document/images/dialogs/dialog_right_500x500.png new file mode 100644 index 0000000000..7fca4192e5 Binary files /dev/null and b/main/default_course_document/images/dialogs/dialog_right_500x500.png differ diff --git a/main/default_course_document/images/dialogs/height_500px.png b/main/default_course_document/images/dialogs/height_500px.png new file mode 100644 index 0000000000..3c0a623118 Binary files /dev/null and b/main/default_course_document/images/dialogs/height_500px.png differ diff --git a/main/default_course_document/images/dialogs/width_500px.png b/main/default_course_document/images/dialogs/width_500px.png new file mode 100644 index 0000000000..91bf8b6664 Binary files /dev/null and b/main/default_course_document/images/dialogs/width_500px.png differ diff --git a/main/default_course_document/images/help.png b/main/default_course_document/images/help.png new file mode 100755 index 0000000000..d05825a49a Binary files /dev/null and b/main/default_course_document/images/help.png differ diff --git a/main/default_course_document/images/logo.png b/main/default_course_document/images/logo.png new file mode 100755 index 0000000000..8ea038734b Binary files /dev/null and b/main/default_course_document/images/logo.png differ diff --git a/main/default_course_document/themes/elegant.css b/main/default_course_document/themes/elegant.css new file mode 100755 index 0000000000..692284f08c --- /dev/null +++ b/main/default_course_document/themes/elegant.css @@ -0,0 +1,38 @@ +@charset "UTF-8"; +/* CSS Document */ +body{ + background-repeat:no-repeat; + background-position:right; + background-position:bottom; +} + +#course-content +{ + min-height:500px; + margin:1em; +} + +#course-content h1,h2,h3,h4{ + font-family:Arial, Helvetica, sans-serif; +} + +.tip{ + -moz-border-radius:1em; + border:1px solid black; + border:1px 2px 2px 1px; + background:#F5F5B5; + padding:1em; + padding-left:40px; + background-image:url(../images/help.png) left; +} + +.dial_horizontal +{ + border:3px 0px black; +} + +.dial_vert +{ + border:0px 3px black; +} + diff --git a/main/default_course_document/themes/images/help.png b/main/default_course_document/themes/images/help.png new file mode 100755 index 0000000000..d05825a49a Binary files /dev/null and b/main/default_course_document/themes/images/help.png differ diff --git a/main/inc/lib/fckeditor/editor/dialog/fck_template.html b/main/inc/lib/fckeditor/editor/dialog/fck_template.html index f34a3695e8..0ddcf70421 100644 --- a/main/inc/lib/fckeditor/editor/dialog/fck_template.html +++ b/main/inc/lib/fckeditor/editor/dialog/fck_template.html @@ -15,6 +15,7 @@ * * File Authors: * Frederico Caldeira Knabben (fredck@fckeditor.net) + * Julio Montoya Armas (template's changes) --> @@ -27,12 +28,12 @@ /* border: #dcdcdc 2px solid; */ background-color: #ffffff; overflow: auto; - width: 90%; + width: 100%; } .TplItem { - margin: 5px; + margin: 3px; padding: 0px; border: #eeeeee 0px solid; text-align:right; @@ -184,7 +185,6 @@ function SelectTemplate( index ) { oEditor.FCKUndo.SaveUndoStep() ; FCK.SetHTML( FCK._Templates[index].Html ) ; - window.parent.Cancel() ; } diff --git a/main/inc/lib/fckeditor/editor/fckdialogframe.html b/main/inc/lib/fckeditor/editor/fckdialogframe.html index 440959bb58..f533e81c81 100644 --- a/main/inc/lib/fckeditor/editor/fckdialogframe.html +++ b/main/inc/lib/fckeditor/editor/fckdialogframe.html @@ -15,6 +15,7 @@ * * File Authors: * Frederico Caldeira Knabben (fredck@fckeditor.net) + * Julio Montoya Armas (template's changes) --> @@ -32,7 +33,7 @@ if ( !window.dialogArguments ) } // Dialog's size -var WindowSize= '500px'; +var WindowSize= '580px'; // Sets the Skin CSS document.write( '' ) ; @@ -113,26 +114,6 @@ function RefreshSize() } } -function Ok() -{ - if ( window.frames["frmMain"].Ok && window.frames["frmMain"].Ok() ) - Cancel() ; -} - -function Cancel() -{ - // we hide the DIV - //window.parent.document.getElementById('frmModel').style.display='none'; -} - -function Hide() -{ - // we hide the DIV - window.parent.document.getElementById('frmModel').style.display='none'; -// window.parent.document.getElementById('content___Frame').width='100%'; -} - - // Object that holds all available tabs. var oTabs = new Object() ; @@ -278,8 +259,7 @@ if ( window.dialogArguments.Editor.FCKBrowserInfo.IsIE ) } window.attachEvent( "onbeforeunload", Window_OnBeforeUnload ) ; } - - +
| + | diff --git a/main/inc/lib/fckeditor/fcktemplates.xml.php b/main/inc/lib/fckeditor/fcktemplates.xml.php index db0039e22f..90b2702edf 100644 --- a/main/inc/lib/fckeditor/fcktemplates.xml.php +++ b/main/inc/lib/fckeditor/fcktemplates.xml.php @@ -3,8 +3,8 @@ require_once('../../global.inc.php'); echo ''; $IMConfig['base_url'] = $_configuration['root_web'].'main/img/gallery/'; - -function loadCSS($css_name){ +function loadCSS($css_name) +{ $template_css = ''; $template_css=str_replace('images/',api_get_path(WEB_PATH).'main/css/'.$css_name.'/images/',$template_css); return $template_css; @@ -24,17 +24,16 @@ $css = loadCSS(api_get_setting('stylesheets')); $result_template = api_sql_query($sql); - while($a_template = mysql_fetch_array($result_template)){ - - $document_id = $a_template['ref_doc']; - + while($a_template = Database::fetch_array($result_template)) + { + $document_id = $a_template['ref_doc']; $course = api_get_course_info(); $table_document = Database::get_course_table(TABLE_DOCUMENT, $_course['dbName']); $sql_document_path = 'SELECT path FROM '.$table_document.' WHERE id="'.$document_id.'"'; $result_document_path = api_sql_query($sql_document_path); - $document_path = mysql_result($result_document_path,0,0); + $document_path = Database::result($result_document_path,0,0); $width = 100; $height = 90; @@ -64,84 +63,221 @@ $css = loadCSS(api_get_setting('stylesheets')); } - ?> + //Maybe helpfull to translate the tips ? I can delete this if don't + function tip($type){ + $tip=' | 
| '
+            .' '
+            .'Tip :'
+			.' '
+			.'
  | 
| 
-				            Tip : this template is plain text divided in sections. All Dokeos templates can be edited.
-				            Replace text by selecting it. This text is placed in a 720 pixels wide table cell. You can add more cells, divide the table in two colums etc. by clicking on the arrows and cross in a
-				            circle icons on the borders of the table (this feature will work in Firefox and recent Internet Explorer browsers). For other templates, select the templates gallery at the top of your
-				            WYSIWYG editor. You may want to add media (images, audio, video, flash animations). Select the corresponding buttons and add the media. You can click on an image to resize and right-click
-				            on it for more options. - - Second section - - Your text - - Third section - Your text - -  | 
-				        
.'default_course_document/images/logo.png';?>)
| + | + | 
| 
+                                         Enter your dedicace here, e.g. to Léon Werth, Mr Dokeos ... ++ Triple-click here to enter your comment...  | 
+                                    |
| + |