[svn r15298] List of templates now working in 1024x768(see FS#2528)

skala
Julio Montoya 18 years ago
parent 3f9fbc325a
commit 4823d80828
  1. 14
      main/document/create_document.php
  2. 6
      main/document/edit_document.php

@ -1,5 +1,5 @@
<?php
// $Id: create_document.php 15272 2008-05-13 17:42:48Z yannoo $
// $Id: create_document.php 15298 2008-05-15 14:58:01Z juliomontoya $
/*
==============================================================================
Dokeos - elearning and course management software
@ -42,18 +42,15 @@
// name of the language file that needs to be included
$language_file = 'document';
include ('../inc/global.inc.php');
$_SESSION['whereami'] = 'document/create';
$this_section = SECTION_COURSES;
$htmlHeadXtra[]='<script>
function InnerDialogLoaded()
{
var B=new window.frames[0].FCKToolbarButton(\'Templates\',window.frames[0].FCKLang.Templates);
{
var B=new window.frames[0].FCKToolbarButton(\'Templates\',window.frames[0].FCKLang.Templates);
return B.ClickFrame();
};
@ -64,7 +61,6 @@ function InnerDialogLoaded()
function launch_templates()
{
//document.getElementById(\'frmModel\').style.display="block";
document.getElementById(\'frmModel\').innerHTML = "<iframe height=600px; width=230; frameborder=0 src=\''.api_get_path(WEB_LIBRARY_PATH).'fckeditor/editor/fckdialogframe.html \'>";
//document.getElementById(\'content___Frame\').width=\'70%\';
//window.frames[0].FCKToolbarItems.GetItem("Template").Click;
}
@ -72,7 +68,7 @@ function InnerDialogLoaded()
function FCKeditor_OnComplete( editorInstance )
{
editorInstance.Events.AttachEvent( \'OnSelectionChange\', check_for_title ) ;
document.getElementById(\'frmModel\').innerHTML = "<iframe height=600px; width=230; frameborder=0 src=\''.api_get_path(WEB_LIBRARY_PATH).'fckeditor/editor/fckdialogframe.html \'>";
document.getElementById(\'frmModel\').innerHTML = "<iframe height=950px; width=100%; frameborder=0 src=\''.api_get_path(WEB_LIBRARY_PATH).'fckeditor/editor/fckdialogframe.html \'>";
}
function check_for_title()
@ -339,7 +335,7 @@ $form->addElement('submit', 'submit', get_lang('Ok'));
$form->setDefaults($default);
// HTML
$form->addElement('html','<div id="frmModel" style="display:block; height:600px;width:100px; position:absolute; top:135px; left:1%;"></div>');
$form->addElement('html','<div id="frmModel" style="display:block; height:950px;width:20%; position:absolute; top:135px; left:1px;"></div>');
// If form validates -> save the new document
if ($form->validate())

@ -1,4 +1,4 @@
<?php // $Id: edit_document.php 15291 2008-05-14 22:26:37Z juliomontoya $
<?php // $Id: edit_document.php 15298 2008-05-15 14:58:01Z juliomontoya $
/*
==============================================================================
Dokeos - elearning and course management software
@ -71,7 +71,7 @@ function InnerDialogLoaded()
function FCKeditor_OnComplete( editorInstance )
{
document.getElementById(\'frmModel\').innerHTML = "<iframe height=600px; width=230; frameborder=0 src=\''.api_get_path(WEB_LIBRARY_PATH).'fckeditor/editor/fckdialogframe.html \'>";
document.getElementById(\'frmModel\').innerHTML = "<iframe height=950px; width=100%; frameborder=0 src=\''.api_get_path(WEB_LIBRARY_PATH).'fckeditor/editor/fckdialogframe.html \'>";
}
@ -589,7 +589,7 @@ if (api_is_allowed_to_edit() || GroupManager :: is_user_in_group($_user['user_id
$defaults['newComment'] = $oldComment;
$form->setDefaults($defaults);
// show templates
$form->addElement('html','<div id="frmModel" style="display:block; height:600px;width:100px; position:absolute; top:135px; left:1%;"></div>');
$form->addElement('html','<div id="frmModel" style="display:block; height:950px;width:20%; position:absolute; top:135px; left:1px;"></div>');
$form->display();

Loading…
Cancel
Save