[svn r16724] first part of css cleanup (currently only the css/corporate style)

skala
Patrick Cool 17 years ago
parent 3b5dddcb4f
commit 8282756b10
  1. 60
      main/course_description/index.php
  2. 20
      main/course_home/activity.php
  3. 17
      main/course_home/course_home.php
  4. 28
      main/course_info/infocours.php
  5. 80
      main/course_info/maintenance.php

@ -1,4 +1,5 @@
<?php // $Id: index.php 16713 2008-11-11 21:37:06Z yannoo $
<?php // $Id: index.php 16724 2008-11-12 15:42:23Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -164,20 +165,6 @@ if (api_is_allowed_to_edit() && !is_null($description_id))
$fck_attribute['Config']['CreateDocumentWebDir'] = api_get_path('WEB_COURSE_PATH').$_course['path'].'/document/';
echo '
<style>
.row{
width:100%;
}
div.row div.label {
width: 60px;
}
div.row div.formw {
width: 100%;
}
</style>';
// Build the form
$form = new FormValidator('course_description','POST','index.php','','style="width: 100%;"');
$form->addElement('hidden', 'description_id');
@ -237,18 +224,12 @@ if (api_is_allowed_to_edit() && !is_null($description_id))
{
if ($show_peda_suggest)
{
echo '<dl>';
if (isset ($question[$description_id]))
{
echo '<dt><b>'.get_lang('QuestionPlan').'</b></dt>';
echo '<dd>'.$question[$description_id].'</dd>';
}
if (isset ($information[$description_id]))
{
//echo '<dt><b>'.get_lang('Info2Say').'</b></dt>';
//echo '<dd>'.$information[$description_id].'</dd>';
$message = '<strong>'.get_lang('QuestionPlan').'</strong><br />';
$message .= $question[$description_id];
Display::display_normal_message($message, false);
}
echo '</dl>';
}
if (api_get_setting('wcag_anysurfer_public_pages')=='true') {
echo (WCAG_Rendering::editor_header());
@ -274,9 +255,6 @@ if ($show_description_list)
}
if (api_is_allowed_to_edit())
{
echo '<div style="position: relative;width: 500px;">';
Display::display_normal_message(get_lang('CourseDescriptionIntro'),false);
echo "</div>";
$categories = array ();
foreach ($default_description_titles as $id => $title)
@ -286,49 +264,41 @@ if ($show_description_list)
$categories[ADD_BLOCK] = get_lang('NewBloc');
$i=1;
foreach ($categories as $id => $title){
if($i==1 || $i==5){
echo '<div style="padding-bottom: 5px;margin-bottom: 0px;">';
}
echo '<div style="float: left;width:150px; text-align:center; margin-right: 5px;">
<a href="'.api_get_self().'?'.api_get_cidreq().'&description_id='.$id.'"><img src="'.$default_description_icon[$id].'" /><br>'.$title.'</a>
</div>';
if($i==4 || $i==8){
echo '<div style="clear: both"></div></div>';
}
echo '<div class="actions">';
foreach ($categories as $id => $title)
{
echo '<a href="'.api_get_self().'?'.api_get_cidreq().'&description_id='.$id.'"><img src="'.$default_description_icon[$id].'" height="20" /> '.$title.'</a>';
$i++;
}
echo '<br>';
echo '</div>';
}
if (isset($descriptions) && count($descriptions) > 0)
{
foreach ($descriptions as $id => $description)
{
echo '<hr noshade="noshade" size="1"/>';
echo '<div>';
echo '<div class="sectiontitle">';
if (api_is_allowed_to_edit())
{
//delete
echo '<a href="'.api_get_self().'?action=delete&amp;description_id='.$description->id.'" onclick="javascript:if(!confirm(\''.addslashes(htmlentities(get_lang('ConfirmYourChoice'),ENT_QUOTES,$charset)).'\')) return false;">';
echo '<img src="../img/delete.gif" alt="'.get_lang("Delete").'" border="0" style="vertical-align:middle;float:right;margin:2px;" />';
echo '</a> ';
//edit
echo '<a href="'.api_get_self().'?action=edit&amp;description_id='.$description->id.'">';
echo '<img src="../img/edit.gif" alt="'.get_lang("Edit").'" border="0" style="vertical-align:middle;float:right;margin:2px;" />';
echo '</a> ';
}
echo '<h3>'.$description->title.'</h3>';
echo $description->title;
echo '</div>';
echo '<div class="sectioncomment">';
echo text_filter($description->content);
echo '</div>';
}
}
else
{
echo '<br /><em>'.get_lang('ThisCourseDescriptionIsEmpty').'</em>';
echo '<em>'.get_lang('ThisCourseDescriptionIsEmpty').'</em>';
}
}
/*

@ -1,4 +1,5 @@
<?php // $Id: activity.php,v 1.5 2006/08/10 14:34:54 pcool Exp $
/*
==============================================================================
Dokeos - elearning and course management software
@ -225,7 +226,7 @@ function show_tools_category($course_tool_category)
if($toolsRow['visibility'] == '1' && $toolsRow['admin'] !='1')
{
$link['name'] = '<img src="'.api_get_path(WEB_CODE_PATH).'img/visible.gif" align="absmiddle" alt="'.get_lang("Deactivate").'"/>';
$link['name'] = Display::return_icon('visible.gif', get_lang('Deactivate'));
$link['cmd'] = "hide=yes";
$lnk[] = $link;
@ -233,7 +234,7 @@ function show_tools_category($course_tool_category)
if($toolsRow['visibility'] == '0' && $toolsRow['admin'] !='1')
{
$link['name'] = '<img src="'.api_get_path(WEB_CODE_PATH).'img/invisible.gif" align="absmiddle" alt="'.get_lang("Activate").'"/>';
$link['name'] = Display::return_icon('invisible.gif', get_lang('Activate'));
$link['cmd'] = "restore=yes";
$lnk[] = $link;
}
@ -290,14 +291,19 @@ function show_tools_category($course_tool_category)
else{
$toolsRow['link'] = $toolsRow['link'].$qm_or_amp.api_get_cidreq();
}
if(strpos($toolsRow['name'],'visio_')!==false){
echo "\t" . ' &nbsp; <a ' . $class . ' href="#" onclick="window.open(\'' . htmlspecialchars($toolsRow['link']) . '\',\'window_visio\',config=\'height=\'+730+\', width=\'+1020+\', left=2, top=2, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, directories=no, status=no\')" target="' . $toolsRow['target'] . '">&nbsp;&nbsp;';
if(strpos($toolsRow['name'],'visio_')!==false)
{
$toollink = "\t" . '<a ' . $class . ' href="#" onclick="window.open(\'' . htmlspecialchars($toolsRow['link']) . '\',\'window_visio\',config=\'height=\'+730+\', width=\'+1020+\', left=2, top=2, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, directories=no, status=no\')" target="' . $toolsRow['target'] . '">';
}
else {
echo "\t" . ' &nbsp; <a ' . $class . ' href="' . htmlspecialchars($toolsRow['link']) . '" target="' . $toolsRow['target'] . '">&nbsp;&nbsp;';
else
{
$toollink = "\t" . '<a ' . $class . ' href="' . htmlspecialchars($toolsRow['link']) . '" target="' . $toolsRow['target'] . '">';
}
echo '<img src="' . $web_code_path . 'img/' . $toolsRow['image'] . '" align="absmiddle" border="0" alt="' . $toolsRow['image'] . '" /> &nbsp;&nbsp;';
echo $toollink;
Display::display_icon($toolsRow['image']);
echo '</a> ';
echo $toollink;
echo ($toolsRow['image'] == 'file_html_na.gif' || $toolsRow['image'] == 'file_html.gif' || $toolsRow['image'] == 'scormbuilder.gif' || $toolsRow['image'] == 'scormbuilder_na.gif' || $toolsRow['image'] == 'blog.gif' || $toolsRow['image'] == 'blog_na.gif' || $toolsRow['image'] == 'external.gif' || $toolsRow['image'] == 'external_na.gif') ? ' '.stripslashes($toolsRow['name']) : ' '.get_lang(ucfirst($toolsRow['name']));
echo "\t" . '</a>';
echo '</td>';

@ -1,4 +1,5 @@
<?php // $Id: course_home.php 15984 2008-08-13 17:24:24Z juliomontoya $
<?php // $Id: course_home.php 16724 2008-11-12 15:42:23Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -57,20 +58,6 @@
==============================================================================
*/
$htmlHeadXtra[] = "
<style type=\"text/css\" media=\"screen, projection\">
.row{
width:100%;
}
div.row div.label {
width: 0%;
}
div.row div.formw {
width: 100%;
}
</style>";
// name of the language file that needs to be included
$language_file[] = "course_home";
$use_anonymous = true;

@ -1,5 +1,5 @@
<?php
// $Id: infocours.php 14956 2008-04-20 14:21:32Z yannoo $
<?php // $Id: infocours.php 16724 2008-11-12 15:42:23Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -144,10 +144,11 @@ while ($cat = mysql_fetch_array($res))
}
$linebreak = '<div class="row"><div class="label"></div><div class="formw" style="border-bottom:1px dashed"></div></div>';
$linebreak = '<div class="row"><div class="label"></div><div class="formw" style="border-bottom:1px dashed grey"></div></div>';
// Build the form
$form = new FormValidator('update_course');
$form->addElement('html','<div class="sectiontitle">'.get_lang('CourseSettings').'</div>');
$visual_code=$form->addElement('text','visual_code', get_lang('Code'));
$visual_code->freeze();
$form->applyFilter('visual_code', 'strtoupper');
@ -160,9 +161,11 @@ $form->add_textfield('department_name', get_lang('Department'), false, array ('s
$form->add_textfield('department_url', get_lang('DepartmentUrl'), false, array ('size' => '60'));
$form->addRule('tutor_name', get_lang('ThisFieldIsRequired'), 'required');
$form->addElement('select_language', 'course_language', get_lang('Ln'));
$form->addElement('static', null, null, get_lang("TipLang"));
$form -> addElement('html',$linebreak);
$form->addElement('static', null, '&nbsp;', get_lang('TipLang'));
$form->addElement('html','<div class="sectiontitle" style="margin-top: 40px;">'.get_lang('CourseAccess').'</div>');
$form->addElement('radio', 'visibility', get_lang("CourseAccess"), get_lang('OpenToTheWorld'), COURSE_VISIBILITY_OPEN_WORLD);
$form->addElement('radio', 'visibility', null, get_lang('OpenToThePlatform'), COURSE_VISIBILITY_OPEN_PLATFORM);
$form->addElement('radio', 'visibility', null, get_lang('Private'), COURSE_VISIBILITY_REGISTERED);
@ -177,6 +180,13 @@ $form->addElement('radio', 'unsubscribe', get_lang('Unsubscription'), get_lang('
$form->addElement('radio', 'unsubscribe', null, get_lang('NotAllowedToUnsubscribe'), 0);
$form -> addElement('html',$linebreak);
$form->addElement('static', null, null, get_lang("ConfTip"));
$form->add_textfield('course_registration_password', get_lang('CourseRegistrationPassword'), false, array ('size' => '60'));
$form->addElement('html','<div class="sectiontitle" style="margin-top: 40px;">'.get_lang('EmailNotifications').'</div>');
$form->addElement('radio', 'email_alert_manager_on_new_doc', get_lang('WorkEmailAlert'), get_lang('WorkEmailAlertActivate'), 1);
$form->addElement('radio', 'email_alert_manager_on_new_doc', null, get_lang('WorkEmailAlertDeactivate'), 0);
$form -> addElement('html',$linebreak);
@ -187,8 +197,11 @@ $form -> addElement('html',$linebreak);
$form->addElement('radio', 'email_alert_manager_on_new_quiz', get_lang('QuizEmailAlert'), get_lang('QuizEmailAlertActivate'), 1);
$form->addElement('radio', 'email_alert_manager_on_new_quiz', null, get_lang('QuizEmailAlertDeactivate'), 0);
$form -> addElement('html',$linebreak);
$form->addElement('html','<div class="sectiontitle" style="margin-top: 40px;">'.get_lang('UserRights').'</div>');
$form->addElement('radio', 'allow_user_edit_agenda', get_lang('AllowUserEditAgenda'), get_lang('AllowUserEditAgendaActivate'), 1);
$form->addElement('radio', 'allow_user_edit_agenda', null, get_lang('AllowUserEditAgendaDeactivate'), 0);
$form -> addElement('html',$linebreak);
@ -206,6 +219,8 @@ $form -> addElement('html',$linebreak);
// Course theme picker
if (api_get_setting('allow_course_theme') == 'true')
{
$form->addElement('html','<div class="sectiontitle" style="margin-top: 40px;">'.get_lang('Theming').'</div><div style="clear:both;"></div>');
//Allow Learning path
$form->addElement('radio', 'allow_learning_path_theme', get_lang('AllowLearningPathTheme'), get_lang('AllowLearningPathThemeAllow'), 1);
$form->addElement('radio', 'allow_learning_path_theme', null, get_lang('AllowLearningPathThemeDisallow'), 0);
@ -214,7 +229,6 @@ if (api_get_setting('allow_course_theme') == 'true')
$form->addElement('select_theme', 'course_theme', get_lang('Theme'));
$form->applyFilter('course_theme', 'trim');
$form -> addElement('html',$linebreak);
}

@ -1,4 +1,30 @@
<?php
<?php // $Id: infocours.php 14956 2008-04-20 14:21:32Z yannoo $
/*
==============================================================================
Dokeos - elearning and course management software
Copyright (c) 2004 Dokeos S.A.
Copyright (c) 2003 Ghent University (UGent)
Copyright (c) 2001 Universite catholique de Louvain (UCL)
Copyright (c) Hugues Peeters
Copyright (c) Roan Embrechts (Vrije Universiteit Brussel)
Copyright (c) Olivier Brouckaert
Copyright (c) Bart Mollet, Hogeschool Gent
For a full list of contributors, see "credits.txt".
The full license can be read in "license.txt".
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
See the GNU General Public License for more details.
Contact: Dokeos, 181 rue Royale, B-1000 Brussels, Belgium, info@dokeos.com
==============================================================================
*/
/*
@ -19,24 +45,14 @@ Display :: display_header($nameTools);
api_display_tool_title($nameTools);
/**
* MAIN PART
*/
?>
<table width="100%" cellpadding="0" cellspacing="20">
<tr>
<td width="50%" valign="top" style="border:1px #4171B5 solid; padding: 4px;">
<div><img src="../img/tool_delete.gif">&nbsp;&nbsp;<a href="../course_info/delete_course.php?<?php echo api_get_cidreq();?>"><?php echo get_lang("DelCourse");?></a></div><br>
<?php
echo get_lang("DescriptionDeleteCourse");
?>
</td>
<td width="50%" valign="top" style="border:1px #4171B5 solid; padding: 4px;">
<div><img src="../img/save_import.gif">&nbsp;&nbsp;<a href="../coursecopy/backup.php?<?php echo api_get_cidreq();?>"><?php echo get_lang("backup");?></a></div>
<div class="sectiontitle"><img src="../img/tool_delete.gif">&nbsp;&nbsp;<a href="../course_info/delete_course.php?<?php echo api_get_cidreq();?>"><?php echo get_lang("DelCourse");?></a></div>
<div class="sectioncomment"><?php echo get_lang("DescriptionDeleteCourse"); ?></div>
<div class="sectiontitle"><img src="../img/save_import.gif">&nbsp;&nbsp;<a href="../coursecopy/backup.php?<?php echo api_get_cidreq();?>"><?php echo get_lang("backup");?></a></div>
<div class="sectioncomment">
<ul>
<li><a href="../coursecopy/create_backup.php?<?php echo api_get_cidreq();?>"><?php echo get_lang('CreateBackup') ?></a><br/>
<?php echo get_lang('CreateBackupInfo') ?>
@ -45,35 +61,15 @@ api_display_tool_title($nameTools);
<?php echo get_lang('ImportBackupInfo') ?>
</li>
</ul>
</td>
</tr>
<tr>
<td width="50%" valign="top" style="border:1px #4171B5 solid; padding: 4px;">
<div><img src="../img/empty.gif">&nbsp;&nbsp;<a href="../coursecopy/recycle_course.php?<?php echo api_get_cidreq();?>"><?php echo get_lang("recycle_course");?></a></div><br>
<?php echo get_lang("DescriptionRecycleCourse");?><br><br>
</td>
<td width="50%" valign="top" style="border:1px #4171B5 solid; padding: 4px;">
<div><img src="../img/copy.gif">&nbsp;&nbsp;<a href="../coursecopy/copy_course.php?<?php echo api_get_cidreq();?>"><?php echo get_lang("CopyCourse");?></a></div><br>
<?php
echo get_lang("DescriptionCopyCourse");
?>
</div>
</td>
</tr>
</table>
<div class="sectiontitle"><img src="../img/empty.gif">&nbsp;&nbsp;<a href="../coursecopy/recycle_course.php?<?php echo api_get_cidreq();?>"><?php echo get_lang("recycle_course");?></a></div>
<div class="sectioncomment"><?php echo get_lang("DescriptionRecycleCourse");?></div>
<div class="sectiontitle"><img src="../img/copy.gif">&nbsp;&nbsp;<a href="../coursecopy/copy_course.php?<?php echo api_get_cidreq();?>"><?php echo get_lang("CopyCourse");?></a></div>
<div class="sectioncomment"><?php echo get_lang("DescriptionCopyCourse"); ?></div>
<?php
/*
==============================================================================
FOOTER
==============================================================================
*/
// footer
Display::display_footer();
?>

Loading…
Cancel
Save