[svn r10902] add/update breadcrumb, icons, language vars, etc...

skala
Julian Prud'homme 18 years ago
parent ca3a9b1001
commit 83006ffc2e
  1. 4
      main/course_home/activity.php
  2. 5
      main/course_info/infocours.php
  3. BIN
      main/img/user_info.gif
  4. 2
      main/mySpace/coaches.php
  5. 2
      main/mySpace/index.php
  6. 14
      main/newscorm/kevin_lp_add.php
  7. 10
      main/newscorm/kevin_lp_add_item.php
  8. 2
      main/newscorm/kevin_lp_build.php
  9. 2
      main/newscorm/kevin_lp_edit_item.php
  10. 2
      main/newscorm/kevin_lp_edit_item_prereq.php
  11. 2
      main/newscorm/kevin_lp_move_item.php
  12. 2
      main/newscorm/kevin_lp_view_item.php
  13. 4
      main/tracking/userLog.php
  14. 2
      main/user/user.php
  15. 2
      main/work/work.lib.php
  16. 12
      main/work/work.php

@ -155,7 +155,7 @@ function show_tools_category($course_tool_category)
$properties['name'] = $links_row['title'];
$properties['link'] = $links_row['url'];
$properties['visibility'] = $links_row['visibility'];
$properties['image'] = ($links_row['visibility']== '0') ? "external_na.gif" : "external.gif";
$properties['image'] = ($links_row['visibility']== '0') ? "links.gif" : "links.gif";
$properties['adminlink'] = api_get_path(WEB_CODE_PATH) . "link/link.php?action=editlink&id=".$links_row['id'];
$tmp_all_tools_list[] = $properties;
@ -293,7 +293,7 @@ function show_tools_category($course_tool_category)
echo "\t" . ' &nbsp <a ' . $class . ' href="' . htmlspecialchars($toolsRow['link']) . '" target="' . $toolsRow['target'] . '">&nbsp;&nbsp;';
}
echo '<img src="' . $web_code_path . 'img/' . $toolsRow['image'] . '" align="absmiddle" border="0" alt="' . $toolsRow['image'] . '" /> &nbsp;&nbsp;';
echo ($toolsRow['image'] == 'external.gif' || $toolsRow['image'] == 'external_na.gif' || $toolsRow['image'] == 'scormbuilder.gif' || $toolsRow['image'] == 'scormbuilder_na.gif' || $toolsRow['image'] == 'blog.gif' || $toolsRow['image'] == 'blog_na.gif') ? ' '.stripslashes($toolsRow['name']) : ' '.get_lang($toolsRow['name']);
echo ($toolsRow['image'] == 'links.gif' || $toolsRow['image'] == 'links_na.gif' || $toolsRow['image'] == 'scormbuilder.gif' || $toolsRow['image'] == 'scormbuilder_na.gif' || $toolsRow['image'] == 'blog.gif' || $toolsRow['image'] == 'blog_na.gif') ? ' '.stripslashes($toolsRow['name']) : ' '.get_lang($toolsRow['name']);
echo "\t" . '</a>';
echo '</td>';
if($i%2)

@ -1,5 +1,5 @@
<?php
// $Id: infocours.php 10777 2007-01-17 23:08:54Z yannoo $
// $Id: infocours.php 10902 2007-01-25 14:44:35Z elixir_julian $
/*
==============================================================================
Dokeos - elearning and course management software
@ -132,7 +132,8 @@ while ($cat = mysql_fetch_array($res))
// Build the form
$form = new FormValidator('update_course');
$form->add_textfield('visual_code', get_lang('Code'));
$visual_code=$form->addElement('text','visual_code', get_lang('Code'));
$visual_code->freeze();
$form->applyFilter('visual_code', 'strtoupper');
//$form->add_textfield('tutor_name', get_lang('Professors'), true, array ('size' => '60'));
$prof = &$form->addElement('select', 'tutor_name', get_lang('Professors'), $a_profs);

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

@ -7,7 +7,7 @@
ob_start();
// name of the language file that needs to be included
$language_file = array ('registration', 'index','trad4all', 'tracking', 'admin');
$language_file = array ('registration', 'index', 'tracking', 'admin');
$cidReset=true;
require ('../inc/global.inc.php');

@ -3,7 +3,7 @@
* @todo use constant for $this_section
*/
// name of the language file that needs to be included
$language_file = array ('registration', 'index','trad4all','tracking');
$language_file = array ('registration', 'index','tracking');
$cidReset=true;
require ('../inc/global.inc.php');

@ -133,6 +133,7 @@ $therow=Database::fetch_array($result);
==================================================*/
$interbreadcrumb[]= array ("url"=>"lp_controller.php?action=list", "name"=> get_lang("_learning_path"));
$interbreadcrumb[]= array ("url"=>"#", "name"=> get_lang("_add_learnpath"));
Display::display_header(null,'Path');
//api_display_tool_title($therow['name']);
@ -170,18 +171,17 @@ echo '<table cellpadding="0" cellspacing="0" class="lp_build">';
echo '</td>';
echo '<td class="workspace">';
Display::display_normal_message('<strong>Welcome</strong> to Dokeos Learning path authoring tool.<br />
You will be able to create your learning path step by step. The structure of your learning path will appear in a menu on the left.');
Display::display_normal_message(get_lang('AddLpIntro'));
echo '<div style="background:#F8F8F8; border:1px solid #999999; margin:15px auto; padding:10px; width:400px;">';
echo '<p style="font-weight:bold">To start, give a title to your learning path:</p>';
echo '<p style="font-weight:bold">'.get_lang('AddLpToStart').' :</p>';
echo '<form method="post">';
echo '<label for="idTitle" style="margin-right:10px;">Title:</label><input id="idTitle" name="learnpath_name" type="text" />';
echo '<p><input style="background:#FFFFFF; border:1px solid #999999; font-family:Arial, Verdana, Helvetica, sans-serif; font-size:12px; padding:1px 2px; width:75px;" type="submit" value="OK" /></p>';
echo '<label for="idTitle" style="margin-right:10px;">'.get_lang('Title').' :</label><input id="idTitle" name="learnpath_name" type="text" />';
echo '<p><input style="background:#FFFFFF; border:1px solid #999999; font-family:Arial, Verdana, Helvetica, sans-serif; font-size:12px; padding:1px 2px; width:75px;" type="submit" value="'.get_lang('Ok').'" /></p>';
echo '<input name="post_time" type="hidden" value="' . time() . '" />';
echo '</form>';

@ -136,8 +136,16 @@ $therow=Database::fetch_array($result);
==================================================*/
$interbreadcrumb[]= array ("url"=>"lp_controller.php?action=list", "name"=> get_lang("_learning_path"));
$interbreadcrumb[]= array ("url"=>$_SERVER['PHP_SELF']."?action=build&lp_id=$learnpath_id", "name" => stripslashes("{$therow['name']}"));
$interbreadcrumb[]= array ("url"=>$_SERVER['PHP_SELF']."?action=admin_view&lp_id=$learnpath_id", "name" => stripslashes("{$therow['name']}"));
switch($_GET['type']){
case 'chapter':
$interbreadcrumb[]= array ("url"=>"#", "name" => get_lang("NewChapter"));
break;
default:
$interbreadcrumb[]= array ("url"=>"#", "name" => get_lang("NewStep"));
break;
}
Display::display_header(null,'Path');
//api_display_tool_title($therow['name']);

@ -155,7 +155,7 @@ $therow=Database::fetch_array($result);
$interbreadcrumb[]= array ("url"=>"lp_controller.php?action=list", "name"=> get_lang("_learning_path"));
$interbreadcrumb[]= array ("url"=>$_SERVER['PHP_SELF']."?action=admin_view&lp_id=$learnpath_id", "name" => stripslashes("{$therow['name']}"));
$interbreadcrumb[]= array ("url"=>$_SERVER['PHP_SELF']."?action=build&lp_id=$learnpath_id", "name" => stripslashes("{$therow['name']}"));
Display::display_header(null,'Path');
//api_display_tool_title($therow['name']);

@ -137,7 +137,7 @@ $therow=Database::fetch_array($result);
$interbreadcrumb[]= array ("url"=>"lp_controller.php?action=list", "name"=> get_lang("_learning_path"));
$interbreadcrumb[]= array ("url"=>$_SERVER['PHP_SELF']."?action=admin_view&lp_id=$learnpath_id", "name" => stripslashes("{$therow['name']}"));
$interbreadcrumb[]= array ("url"=>$_SERVER['PHP_SELF']."?action=build&lp_id=$learnpath_id", "name" => stripslashes("{$therow['name']}"));
Display::display_header(null,'Path');
//api_display_tool_title($therow['name']);

@ -135,7 +135,7 @@ $therow=Database::fetch_array($result);
$interbreadcrumb[]= array ("url"=>"lp_controller.php?action=list", "name"=> get_lang("_learning_path"));
$interbreadcrumb[]= array ("url"=>$_SERVER['PHP_SELF']."?action=admin_view&lp_id=$learnpath_id", "name" => stripslashes("{$therow['name']}"));
$interbreadcrumb[]= array ("url"=>$_SERVER['PHP_SELF']."?action=build&lp_id=$learnpath_id", "name" => stripslashes("{$therow['name']}"));
Display::display_header(null,'Path');
//api_display_tool_title($therow['name']);

@ -137,7 +137,7 @@ $therow=Database::fetch_array($result);
$interbreadcrumb[]= array ("url"=>"lp_controller.php?action=list", "name"=> get_lang("_learning_path"));
$interbreadcrumb[]= array ("url"=>$_SERVER['PHP_SELF']."?action=admin_view&lp_id=$learnpath_id", "name" => stripslashes("{$therow['name']}"));
$interbreadcrumb[]= array ("url"=>$_SERVER['PHP_SELF']."?action=build&lp_id=$learnpath_id", "name" => stripslashes("{$therow['name']}"));
Display::display_header(null,'Path');
//api_display_tool_title($therow['name']);

@ -136,7 +136,7 @@ $therow=Database::fetch_array($result);
$interbreadcrumb[]= array ("url"=>"lp_controller.php?action=list", "name"=> get_lang("_learning_path"));
$interbreadcrumb[]= array ("url"=>$_SERVER['PHP_SELF']."?action=admin_view&lp_id=$learnpath_id", "name" => stripslashes("{$therow['name']}"));
$interbreadcrumb[]= array ("url"=>$_SERVER['PHP_SELF']."?action=build&lp_id=$learnpath_id", "name" => stripslashes("{$therow['name']}"));
Display::display_header(null,'Path');
//api_display_tool_title($therow['name']);

@ -1,4 +1,4 @@
<?php // $Id: userLog.php 10577 2006-12-29 16:15:54Z fvauthier $
<?php // $Id: userLog.php 10902 2007-01-25 14:44:35Z elixir_julian $
/*
==============================================================================
Dokeos - elearning and course management software
@ -89,7 +89,7 @@ $interbreadcrumb[]= array ("url"=>"../group/group_space.php?gidReq=$_gid", "name
if($uInfo)
{
$interbreadcrumb[]= array ("url"=>"../user/userInfo.php?uInfo=$uInfo", "name"=> get_lang('BredCrumpUsers'));
$interbreadcrumb[]= array ("url"=>"../user/userInfo.php?uInfo=$uInfo", "name"=> ucfirst(get_lang('Users')));
}
$nameTools = get_lang('ToolName');

@ -747,7 +747,7 @@ function modify_filter($user_id)
$result="<div style='text-align: center'>";
// info
$result .= '<a href="userInfo.php?origin='.$origin.'&amp;uInfo='.$user_id.'"><img border="0" alt="'.get_lang('Info').'" src="../img/info_small.gif" /></a>&nbsp;';
$result .= '<a href="userInfo.php?origin='.$origin.'&amp;uInfo='.$user_id.'"><img border="0" alt="'.get_lang('Info').'" src="../img/user_info.gif" /></a>&nbsp;';
if($is_allowed_to_track)
{

@ -299,7 +299,7 @@ function display_student_publications_list($work_dir,$sub_course_dir,$currentCou
$action = '';
$action .= '<a href="'.$_SERVER['PHP_SELF'].'?curdirpath='.urlencode($my_sub_dir).'&origin='.$origin.'&edit='.$work->id.'"><img src="../img/edit.gif" alt="'.get_lang('Modify').'"></a>';
$action .= '<a href="'.$_SERVER['PHP_SELF'].'?curdirpath='.urlencode($my_sub_dir).'&origin='.$origin.'&delete='.$work->id.'" onclick="javascript:if(!confirm('."'".addslashes(htmlentities(get_lang('ConfirmYourChoice')))."'".')) return false;"><img src="../img/delete.gif" alt="'.get_lang('WorkDelete').'"></a>';
$action .= '<a href="'.$_SERVER['PHP_SELF'].'?curdirpath='.urlencode($my_sub_dir).'&origin='.$origin.'&move='.$work->id.'"><img src="../img/deplacer.gif" border="0" title="'.get_lang('Move').'" alt="" /></a>';
$action .= '<a href="'.$_SERVER['PHP_SELF'].'?curdirpath='.urlencode($my_sub_dir).'&origin='.$origin.'&move='.$work->id.'"><img src="../img/deplacer_fichier.gif" border="0" title="'.get_lang('Move').'" alt="" /></a>';
if($work->accepted == '1')
{
$action .= '<a href="'.$_SERVER['PHP_SELF'].'?curdirpath='.urlencode($my_sub_dir).'&origin='.$origin.'&make_invisible='.$work->id.'&amp;'.$sort_params.'"><img src="../img/visible.gif" alt="'.get_lang('Invisible').'"></a>';

@ -23,7 +23,7 @@
* @author Patrick Cool <patrick.cool@UGent.be>, Ghent University - ability for course admins to specify wether uploaded documents are visible or invisible by default.
* @author Roan Embrechts, code refactoring and virtual course support
* @author Frederic Vauthier, directories management
* @version $Id: work.php 10901 2007-01-25 14:00:04Z elixir_inter $
* @version $Id: work.php 10902 2007-01-25 14:44:35Z elixir_julian $
*
* @todo refactor more code into functions, use quickforms, coding standards, ...
*/
@ -248,7 +248,15 @@ if (!api_is_course_admin()){
*/
if ($origin != 'learnpath')
{
Display::display_header($tool_name,"Work");
if($display_upload_form){
$tool_name = get_lang("UploadADocument");
$interbreadcrumb[] = array ("url" => "work.php", "name" => get_lang('StudentPublications'));
}
if($display_tool_options){
$tool_name = get_lang("EditToolOptions");
$interbreadcrumb[] = array ("url" => "work.php", "name" => get_lang('StudentPublications'));
}
Display::display_header($tool_name);
}
else
{

Loading…
Cancel
Save