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 ) ; } - - + @@ -291,7 +271,7 @@ if ( window.dialogArguments.Editor.FCKBrowserInfo.IsIE ) - 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 :' + .'
    '; + switch ($type): + case "flash": + $tip.='
  • To add your flash animation, delete this and go to the flash Icon
  • '; + break; + case "video": + $tip.='
  • To add a video, delete this and go to the video button Icon
  • '; + break; + case "table": + $tip.='
  • To add row, click on the narrow button on the left or right when you click on a table
  • ' + .'
  • To add column, click on the narrow button on the top or bottom when you click on a table
  • '; + break; + case "image": + $tip.='
  • To add an image, delete this and go to the picture button Icon
  • '; + break; + case "audio": + $tip.='
  • Audio tips
  • '; + break; + case "cover": + $tip.='
  • Welcome to the Dokeos document creator
  • '; + break; + case "glossary": + $tip.='
  • Here glossary tips
  • '; + break; + case "preface": + $tip.='
  • Describe the course to the learner entering it.
  • '; + default: + $tip.='
  • Here you can enter all the default tips for all
  • ' + .'
  • To delete the tip, click on the delete button on the left
  • '; + endswitch; + $tip.='
'; + + $tip.='For more information & tutorials go to : http://www.dokeos.com/en/tutorials.php' + .'
' + .'
'; + echo $tip; + } - + ?> + + + + + + + + + + + + + + -