[svn r16954] using Display::return_icon and Display::display_icon instead of img tags

skala
Patrick Cool 17 years ago
parent 14fcd4f2ec
commit ad87faa251
  1. 8
      main/admin/access_urls.php
  2. 9
      main/admin/class_information.php
  3. 10
      main/admin/class_list.php
  4. 16
      main/admin/configure_extensions.php
  5. 18
      main/admin/configure_homepage.php
  6. 10
      main/admin/course_category.php
  7. 8
      main/admin/course_information.php
  8. 22
      main/admin/course_list.php
  9. 30
      main/admin/index.php
  10. 6
      main/admin/languages.php
  11. 11
      main/admin/ldap_import_students.php
  12. 6
      main/admin/ldap_import_students_to_session.php
  13. 27
      main/admin/resume_session.php
  14. 4
      main/admin/session_course_list.php
  15. 2
      main/admin/session_course_user_list.php
  16. 8
      main/admin/session_list.php
  17. 2
      main/admin/statistics/statistics.lib.php
  18. 2
      main/admin/style_preview.php
  19. 12
      main/admin/system_announcements.php
  20. 4
      main/admin/user_fields.php
  21. 13
      main/admin/user_fields_add.php
  22. 4
      main/admin/user_information.php

@ -136,8 +136,8 @@ function modify_filter($active, $url_params, $row)
$url_id = $row['0'];
if ($url_id != '1')
{
$result .= '<a href="access_url_edit.php?url_id='.$url_id.'"><img src="../img/edit.gif" border="0" style="vertical-align: middle;" title="'.get_lang('Edit').'" alt="'.get_lang('Edit').'"/></a>&nbsp;';
$result .= '<a href="access_urls.php?action=delete_url&amp;url_id='.$url_id.'&amp;sec_token='.$_SESSION['sec_token'].'" onclick="javascript:if(!confirm('."'".addslashes(htmlentities(get_lang("ConfirmYourChoice"),ENT_QUOTES,$charset))."'".')) return false;"><img src="../img/delete.gif" border="0" style="vertical-align: middle;" title="'.get_lang('Delete').'" alt="'.get_lang('Delete').'"/></a>';
$result .= '<a href="access_url_edit.php?url_id='.$url_id.'">'.Display::return_icon('edit.gif', get_lang('Edit')).'</a>&nbsp;';
$result .= '<a href="access_urls.php?action=delete_url&amp;url_id='.$url_id.'&amp;sec_token='.$_SESSION['sec_token'].'" onclick="javascript:if(!confirm('."'".addslashes(htmlentities(get_lang("ConfirmYourChoice"),ENT_QUOTES,$charset))."'".')) return false;">'.Display::return_icon('delete.gif', get_lang('Delete')).'</a>';
}
return $result;
}
@ -157,11 +157,11 @@ function active_filter($active, $url_params, $row)
}
if ($row['0']=='1') // you cannot lock the default
{
$result = '<img src="../img/'.$image.'.gif" border="0" style="vertical-align: middle;" alt="'.get_lang(ucfirst($action)).'" title="'.get_lang(ucfirst($action)).'"/>';
$result = Display::return_icon($image.'.gif', get_lang(ucfirst($action)));
}
else
{
$result = '<a href="access_urls.php?action='.$action.'&amp;url_id='.$row['0'].'&amp;sec_token='.$_SESSION['sec_token'].'"><img src="../img/'.$image.'.gif" border="0" style="vertical-align: middle;" alt="'.get_lang(ucfirst($action)).'" title="'.get_lang(ucfirst($action)).'"/></a>';
$result = '<a href="access_urls.php?action='.$action.'&amp;url_id='.$row['0'].'&amp;sec_token='.$_SESSION['sec_token'].'">'.Display::return_icon($image.'.gif', get_lang(ucfirst($action))).'</a>';
}
return $result;
}

@ -1,4 +1,4 @@
<?php // $Id: class_information.php 14280 2008-02-11 10:51:59Z elixir_inter $
<?php // $Id: class_information.php 16954 2008-11-26 14:41:35Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -80,7 +80,7 @@ foreach($users as $index => $user)
$row[] = $user['lastname'];
$row[] = Display :: encrypted_mailto_link($user['email'], $user['email']);
$row[] = $user['status'] == 5 ? get_lang('Student') : get_lang('Teacher');
$row[] = '<a href="user_information.php?user_id='.$user['user_id'].'"><img src="../img/synthese_view.gif" border="0" /></a>';
$row[] = '<a href="user_information.php?user_id='.$user['user_id'].'">'.Display::return_icon('synthese_view.gif').'</a>';
$data[] = $row;
}
Display::display_sortable_table($table_header,$data,array(),array(),array('id'=>$_GET['id']));
@ -105,8 +105,9 @@ if (count($courses) > 0)
$row = array ();
$row[] = $course['visual_code'];
$row[] = $course['title'];
$row[] = '<a href="course_information.php?code='.$course['code'].'"><img src="../img/info_small.gif" border="0" /></a>'.'<a href="'.api_get_path(WEB_COURSE_PATH).$course['directory'].'"><img src="../img/course_home.gif" border="0"/></a>' .
'<a href="course_edit.php?course_code='.$course['code'].'"><img src="../img/edit.gif" border="0" title="'.get_lang('Edit').'" alt="'.get_lang('Edit').'"/></a>';
$row[] = '<a href="course_information.php?code='.$course['code'].'">'.Display::return_icon('info_small.gif', get_lang('Delete')).'</a>'.
'<a href="'.api_get_path(WEB_COURSE_PATH).$course['directory'].'">'.Display::return_icon('course_home.gif', get_lang('CourseHome')).'</a>' .
'<a href="course_edit.php?course_code='.$course['code'].'">'.Display::return_icon('edit.gif', get_lang('Edit')).'</a>';
$data[] = $row;
}
echo '<p><b>'.get_lang('Courses').'</b></p>';

@ -1,5 +1,5 @@
<?php
// $Id: class_list.php 14209 2008-01-30 23:16:20Z yannoo $
// $Id: class_list.php 16954 2008-11-26 14:41:35Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -87,10 +87,10 @@ function modify_filter($class_id)
{
global $charset;
$class_id = Security::remove_XSS($class_id);
$result = '<a href="class_information.php?id='.$class_id.'"><img src="../img/synthese_view.gif" border="0" title="'.get_lang('Info').'" alt="'.get_lang('Info').'"/></a>';
$result .= '<a href="class_edit.php?idclass='.$class_id.'"><img src="../img/edit.gif" border="0" title="'.get_lang('Edit').'" alt="'.get_lang('Edit').'"/></a>';
$result .= '<a href="class_list.php?action=delete_class&amp;class_id='.$class_id.'" onclick="javascript:if(!confirm('."'".addslashes(htmlentities(get_lang("ConfirmYourChoice"),ENT_QUOTES,$charset))."'".')) return false;"><img src="../img/delete.gif" border="0" title="'.get_lang('Delete').'" alt="'.get_lang('Delete').'"/></a>';
$result .= '<a href="subscribe_user2class.php?idclass='.$class_id.'"><img src="../img/add_multiple_users.gif" border="0" alt="'.get_lang('AddUsersToAClass').'" title="'.get_lang('AddUsersToAClass').'"/></a>';
$result = '<a href="class_information.php?id='.$class_id.'">'.Display::return_icon('synthese_view.gif', get_lang('Info')).'</a>';
$result .= '<a href="class_edit.php?idclass='.$class_id.'">'.Display::return_icon('edit.gif', get_lang('Edit')).'</a>';
$result .= '<a href="class_list.php?action=delete_class&amp;class_id='.$class_id.'" onclick="javascript:if(!confirm('."'".addslashes(htmlentities(get_lang("ConfirmYourChoice"),ENT_QUOTES,$charset))."'".')) return false;">'.Display::return_icon('delete.gif', get_lang('Delete')).'</a>';
$result .= '<a href="subscribe_user2class.php?idclass='.$class_id.'">'.Display::return_icon('add_multiple_users.gif', get_lang('AddUsersToAClass')).'</a>';
return $result;
}

@ -289,7 +289,7 @@ Display::display_header($nameTool);
<table width="100%">
<tr>
<td>
<img src="<?php echo api_get_path(WEB_IMG_PATH).'screenshot_conf.jpg' ?>" />
<?php Display::display_icon('screenshot_conf.jpg'); ?>
</td>
<td align="center" width="50%">
<?php
@ -344,7 +344,7 @@ Display::display_header($nameTool);
<table width="100%">
<tr>
<td width="50%" valign="top">
<img src="<?php echo api_get_path(WEB_IMG_PATH).'screenshot_ppt2lp.jpg' ?>" />
<?php Display::display_icon('screenshot_ppt2lp.jpg'); ?>
</td>
<td align="center" width="50%">
<form method="POST" action="<?php echo api_get_self(); ?>">
@ -425,9 +425,9 @@ Display::display_header($nameTool);
<TR>
<TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<A title="http://www.ephorus.com/dokeos_activate.html" href="http://www.ephorus.com/dokeos_activate.html" target="_blank">
<IMG style="WIDTH: 235px; HEIGHT: 78px" height="66" alt="Ephorus" hspace="3" src="<?php echo api_get_path(WEB_IMG_PATH).'ephorus.gif' ?>" width="213" vspace="1" border="0">
</A>
<a title="http://www.ephorus.com/dokeos_activate.html" href="http://www.ephorus.com/dokeos_activate.html" target="_blank">
<?php Display::display_icon('ephorus.gif','Ephorus'); ?>
</a>
</TD>
<TD>
<P align=center>
@ -483,7 +483,7 @@ Display::display_header($nameTool);
<table width="100%">
<tr>
<td width="50%">
<img src="<?php echo api_get_path(WEB_IMG_PATH).'screenshot_search.jpg' ?>" />
<?php Display::display_icon('screenshot_search.jpg'); ?>
</td>
<td align="center" width="50%">
<form method="POST" action="<?php echo api_get_self(); ?>">
@ -506,7 +506,7 @@ Display::display_header($nameTool);
<table width="100%">
<tr>
<td width="50%">
<img src="<?php echo api_get_path(WEB_IMG_PATH).'screenshot_serverstats.jpg' ?>" />
<?php Display::display_icon('screenshot_serverstats.jpg'); ?>
</td>
<td align="center" width="50%">
<form method="POST" action="<?php echo api_get_self(); ?>">
@ -529,7 +529,7 @@ Display::display_header($nameTool);
<table width="100%">
<tr>
<td width="50%">
<img src="<?php echo api_get_path(WEB_IMG_PATH).'screenshot_bandwidth.jpg' ?>" />
<?php Display::display_icon('screenshot_bandwidth.jpg'); ?>
</td>
<td align="center" width="50%">
<form method="POST" action="<?php echo api_get_self(); ?>">

@ -1,4 +1,4 @@
<?php // $Id: configure_homepage.php 16719 2008-11-12 15:36:21Z pcool $
<?php // $Id: configure_homepage.php 16954 2008-11-26 14:41:35Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -886,12 +886,12 @@ switch($action){
<tr>
<td width="80%" colspan="2">
<div class="actions">
<a href="<?php echo api_get_self(); ?>?action=edit_top"><img src="../img/edit.gif" border="0" alt="" title="<?php echo htmlentities(get_lang('Modify'),ENT_QUOTES,$charset); ?>"/></a> <a href="<?php echo api_get_self(); ?>?action=edit_top"><?php echo get_lang('EditHomePage'); ?></a>
<a href="<?php echo api_get_self(); ?>?action=edit_top"><?php Display::display_icon('edit.gif', get_lang('EditHomePage')); ?></a> <a href="<?php echo api_get_self(); ?>?action=edit_top"><?php echo get_lang('EditHomePage'); ?></a>
</div>
</td>
<td width="20%">
<div class="actions">
<a href="<?php echo api_get_self(); ?>?action=insert_link"><img src="../img/insert_row.png" border="0" alt="" /></a> <a href="<?php echo api_get_self(); ?>?action=insert_link"/><?php echo get_lang('InsertLink'); ?></a>
<a href="<?php echo api_get_self(); ?>?action=insert_link"><?php Display::display_icon('insert_row.png'); ?></a> <a href="<?php echo api_get_self(); ?>?action=insert_link"/><?php echo get_lang('InsertLink'); ?></a>
</div>
</td>
</tr>
@ -918,12 +918,12 @@ switch($action){
<tr>
<td width="50%">
<div class="actions">
<a href="course_category.php"><img src="../img/edit.gif" border="0" alt="" title="<?php echo htmlentities(get_lang('Modify'),ENT_QUOTES,$charset); ?>"/></a> <a href="course_category.php"><?php echo get_lang('EditCategories'); ?></a>
<a href="course_category.php"><?php Display::display_icon('edit.gif', get_lang('Edit')); ?></a> <a href="course_category.php"><?php echo get_lang('EditCategories'); ?></a>
</div>
</td>
<td width="50%">
<br />
<!--<a href="<?php echo api_get_self(); ?>?action=edit_news"><img src="../img/edit.gif" border="0" alt="" title="<?php echo htmlentities(get_lang('Modify'),ENT_QUOTES,$charset); ?>"/></a> <a href="<?php echo api_get_self(); ?>?action=edit_news"><?php echo get_lang('EditNews'); ?></a>-->
<!--<a href="<?php echo api_get_self(); ?>?action=edit_news"><?php Display::display_icon('edit.gif', get_lang('Edit')); ?></a> <a href="<?php echo api_get_self(); ?>?action=edit_news"><?php echo get_lang('EditNews'); ?></a>-->
</td>
</tr>
<tr>
@ -934,7 +934,7 @@ switch($action){
{
foreach($Categories as $enreg)
{
echo '<tr><td><img src="../img/opendir.gif" border="0" alt="" />&nbsp;'.$enreg['name'].'</td></tr>';
echo '<tr><td>'.Display::return_icon('opendir.gif').'&nbsp;'.$enreg['name'].'</td></tr>';
}
unset($Categories);
}
@ -1009,8 +1009,8 @@ switch($action){
if(!empty($enreg))
{
$edit_link='<a href="'.api_get_self().'?action=edit_link&amp;link_index='.$key.'"><img src="../img/edit.gif" border="0" style="margin-top: 2px;" alt="" title="'.htmlentities(get_lang('Modify'),ENT_QUOTES,$charset).'"/></a>';
$delete_link='<a href="'.api_get_self().'?action=delete_link&amp;link_index='.$key.'" onclick="javascript:if(!confirm(\''.addslashes(htmlentities(get_lang('ConfirmYourChoice'),ENT_QUOTES,$charset)).'\')) return false;"><img src="../img/delete.gif" border="0" style="margin-top: 2px;" alt="" title="'.htmlentities(get_lang('Delete'),ENT_QUOTES,$charset).'"/></a>';
$edit_link='<a href="'.api_get_self().'?action=edit_link&amp;link_index='.$key.'">'.Display::return_icon('edit.gif', get_lang('Edit')).'</a>';
$delete_link='<a href="'.api_get_self().'?action=delete_link&amp;link_index='.$key.'" onclick="javascript:if(!confirm(\''.addslashes(htmlentities(get_lang('ConfirmYourChoice'),ENT_QUOTES,$charset)).'\')) return false;">'.Display::return_icon('delete.gif', get_lang('Delete')).'</a>';
echo str_replace(array('href="'.api_get_path(WEB_PATH).'index.php?include=','</li>'),array('href="'.api_get_path(WEB_CODE_PATH).'admin/'.basename(api_get_self()).'?action=open_link&link=','<br />'.$edit_link.' '.$delete_link.'</li>'),$enreg);
}
@ -1021,7 +1021,7 @@ switch($action){
</div>
<br />
&nbsp;&nbsp;<a href="<?php echo api_get_self(); ?>?action=edit_notice"><img src="../img/edit.gif" border="0" alt="" title="<?php echo htmlentities(get_lang('Modify'),ENT_QUOTES,$charset); ?>"/></a> <a href="<?php echo api_get_self(); ?>?action=edit_notice"><?php echo get_lang('EditNotice'); ?></a>
&nbsp;&nbsp;<a href="<?php echo api_get_self(); ?>?action=edit_notice"><?php Display::display_icon('edit.gif', get_lang('Edit')); ?></a> <a href="<?php echo api_get_self(); ?>?action=edit_notice"><?php echo get_lang('EditNotice'); ?></a>
<div class="note">

@ -1,4 +1,4 @@
<?php // $Id: course_category.php 16719 2008-11-12 15:36:21Z pcool $
<?php // $Id: course_category.php 16954 2008-11-26 14:41:35Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -218,10 +218,10 @@ if(count($Categories)>0)
{
?>
<li>
<a href="<?php echo api_get_self(); ?>?category=<?php echo Security::remove_XSS($enreg['code']); ?>"><img src="../img/folder_document.gif" border="0" title="<?php echo get_lang("OpenNode"); ?>" alt="<?php echo get_lang("OpenNode"); ?>" align="absbottom" /></a>
<a href="<?php echo api_get_self(); ?>?category=<?php echo Security::remove_XSS($category); ?>&amp;action=edit&amp;id=<?php echo Security::remove_XSS($enreg['code']); ?>"><img src="../img/edit.gif" border="0" title="<?php echo get_lang("EditNode"); ?>" alt ="<?php echo get_lang("EditNode"); ?>" /></a>
<a href="<?php echo api_get_self(); ?>?category=<?php echo Security::remove_XSS($category); ?>&amp;action=delete&amp;id=<?php echo Security::remove_XSS($enreg['code']); ?>" onclick="javascript:if(!confirm('<?php echo addslashes(htmlentities(get_lang('ConfirmYourChoice'),ENT_QUOTES,$charset)); ?>')) return false;"><img src="../img/delete.gif" border="0" title="<?php echo get_lang("DeleteNode"); ?>" alt="<?php echo get_lang("DeleteNode"); ?>" /></a>
<a href="<?php echo api_get_self(); ?>?category=<?php echo Security::remove_XSS($category); ?>&amp;action=moveUp&amp;id=<?php echo Security::remove_XSS($enreg['code']); ?>&amp;tree_pos=<?php echo $enreg['tree_pos']; ?>"><img src="../img/up.gif" border="0" title="<?php echo get_lang("UpInSameLevel"); ?>" alt="<?php echo get_lang("UpInSameLevel"); ?>" /></a>
<a href="<?php echo api_get_self(); ?>?category=<?php echo Security::remove_XSS($enreg['code']); ?>"><?php Display::display_icon('folder_document.gif', get_lang('OpenNode')); ?></a>
<a href="<?php echo api_get_self(); ?>?category=<?php echo Security::remove_XSS($category); ?>&amp;action=edit&amp;id=<?php echo Security::remove_XSS($enreg['code']); ?>"><?php Display::display_icon('edit.gif', get_lang('EditNode')); ?></a>
<a href="<?php echo api_get_self(); ?>?category=<?php echo Security::remove_XSS($category); ?>&amp;action=delete&amp;id=<?php echo Security::remove_XSS($enreg['code']); ?>" onclick="javascript:if(!confirm('<?php echo addslashes(htmlentities(get_lang('ConfirmYourChoice'),ENT_QUOTES,$charset)); ?>')) return false;"><?php Display::display_icon('delete.gif', get_lang('DeleteNode'));?></a>
<a href="<?php echo api_get_self(); ?>?category=<?php echo Security::remove_XSS($category); ?>&amp;action=moveUp&amp;id=<?php echo Security::remove_XSS($enreg['code']); ?>&amp;tree_pos=<?php echo $enreg['tree_pos']; ?>"><?php Display::display_icon('up.gif', get_lang('UpInSameLevel'));?></a>
<?php echo $enreg['name']; ?>
(<?php echo $enreg['children_count']; ?> <?php echo get_lang("Categories"); ?> - <?php echo $enreg['nbr_courses']; ?> <?php echo get_lang("Courses"); ?>)
</li>

@ -1,5 +1,5 @@
<?php
// $Id: course_information.php 12903 2007-08-29 14:04:04Z elixir_julian $
// $Id: course_information.php 16954 2008-11-26 14:41:35Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -94,7 +94,7 @@ Display::display_header($tool_name);
//api_display_tool_title($tool_name);
?>
<p>
<a href="<?php echo api_get_path(WEB_COURSE_PATH).$course->directory; ?>"><img src="../img/course_home.gif" border="0" /> <?php echo api_get_path(WEB_COURSE_PATH).$course->directory; ?></a>
<a href="<?php echo api_get_path(WEB_COURSE_PATH).$course->directory; ?>"><?php Display::display_icon('course_home.gif'); ?> <?php echo api_get_path(WEB_COURSE_PATH).$course->directory; ?></a>
<br/>
<?php
if( get_setting('server_type') == 'test')
@ -136,7 +136,7 @@ if (mysql_num_rows($res) > 0)
$user[] = $obj->lastname;
$user[] = Display :: encrypted_mailto_link($obj->email, $obj->email);
$user[] = $obj->course_status == 5 ? get_lang('Student') : get_lang('Teacher');
$user[] = '<a href="user_information.php?user_id='.$obj->user_id.'"><img src="../img/synthese_view.gif" border="0" /></a>';
$user[] = '<a href="user_information.php?user_id='.$obj->user_id.'">'.Display::return_icon('synthese_view.gif').'</a>';
$users[] = $user;
}
$table = new SortableTableFromArray($users,0,20,'user_table');
@ -169,7 +169,7 @@ if (mysql_num_rows($res) > 0)
{
$row = array ();
$row[] = $class->name;
$row[] = '<a href="class_information.php?id='.$class->id.'"><img src="../img/synthese_view.gif" border="0" /></a>';
$row[] = '<a href="class_information.php?id='.$class->id.'">'.Display::return_icon('synthese_view.gif', get_lang('Edit')).'</a>';
$data[] = $row;
}
echo '<p><b>'.get_lang('AdminClasses').'</b></p>';

@ -1,4 +1,4 @@
<?php // $Id: course_list.php 16719 2008-11-12 15:36:21Z pcool $
<?php // $Id: course_list.php 16954 2008-11-26 14:41:35Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -120,11 +120,11 @@ function modify_filter($code)
{
global $charset;
return
'<a href="course_information.php?code='.$code.'"><img src="../img/synthese_view.gif" border="0" style="vertical-align: middle" title="'.get_lang('Info').'" alt="'.get_lang('Info').'"/></a>&nbsp;'.
'<a href="../course_home/course_home.php?cidReq='.$code.'"><img src="../img/course_home.gif" border="0" style="vertical-align: middle" title="'.get_lang('CourseHomepage').'" alt="'.get_lang('CourseHomepage').'"/></a>&nbsp;'.
'<a href="../tracking/courseLog.php?cidReq='.$code.'"><img src="../img/statistics.gif" border="0" style="vertical-align: middle" title="'.get_lang('Tracking').'" alt="'.get_lang('Tracking').'"/></a>&nbsp;'.
'<a href="course_edit.php?course_code='.$code.'"><img src="../img/edit.gif" border="0" style="vertical-align: middle" title="'.get_lang('Edit').'" alt="'.get_lang('Edit').'"/></a>&nbsp;'.
'<a href="course_list.php?delete_course='.$code.'" onclick="javascript:if(!confirm('."'".addslashes(htmlentities(get_lang("ConfirmYourChoice"),ENT_QUOTES,$charset))."'".')) return false;"><img src="../img/delete.gif" border="0" style="vertical-align: middle" title="'.get_lang('Delete').'" alt="'.get_lang('Delete').'"/></a>';
'<a href="course_information.php?code='.$code.'">'.Display::return_icon('synthese_view.gif', get_lang('Info')).'</a>&nbsp;'.
'<a href="../course_home/course_home.php?cidReq='.$code.'">'.Display::return_icon('course_home.gif', get_lang('CourseHomepage')).'</a>&nbsp;'.
'<a href="../tracking/courseLog.php?cidReq='.$code.'">'.Display::return_icon('statistics.gif', get_lang('Tracking')).'</a>&nbsp;'.
'<a href="course_edit.php?course_code='.$code.'">'.Display::return_icon('edit.gif', get_lang('Edit')).'</a>&nbsp;'.
'<a href="course_list.php?delete_course='.$code.'" onclick="javascript:if(!confirm('."'".addslashes(htmlentities(get_lang("ConfirmYourChoice"),ENT_QUOTES,$charset))."'".')) return false;">'.Display::return_icon('delete.gif', get_lang('Delete')).'</a>';
}
/**
* Return an icon representing the visibility of the course
@ -132,20 +132,20 @@ function modify_filter($code)
function get_course_visibility_icon($v)
{
$path = api_get_path(REL_CODE_PATH);
$style = 'style="margin-bottom:-5px;margin-right:5px;"';
$style = 'margin-bottom:-5px;margin-right:5px;';
switch($v)
{
case 0:
return '<img src="'.$path.'img/bullet_red.gif" title="'.get_lang('CourseVisibilityClosed').'" '.$style.' />';
return Display::return_icon('bullet_red.gif', get_lang('CourseVisibilityClosed'), array('style'=>$style));
break;
case 1:
return '<img src="'.$path.'img/bullet_orange.gif" title="'.get_lang('Private').'" '.$style.' />';
return Display::return_icon('bullet_orange.gif', get_lang('Private'), array('style'=>$style));
break;
case 2:
return '<img src="'.$path.'img/bullet_green.gif" title="'.get_lang('OpenToThePlatform').'" '.$style.' />';
return Display::return_icon('bullet_green.gif', get_lang('OpenToThePlatform'), array('style'=>$style));
break;
case 3:
return '<img src="'.$path.'img/bullet_blue.gif" title="'.get_lang('OpenToTheWorld').'" '.$style.' />';
return Display::return_icon('bullet_blue.gif', get_lang('OpenToTheWorld'), array('style'=>$style));
break;
default:
return '';

@ -1,4 +1,4 @@
<?php // $Id: index.php 16620 2008-10-25 20:03:54Z yannoo $
<?php // $Id: index.php 16954 2008-11-26 14:41:35Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -80,7 +80,7 @@ $keyword_url = Security::remove_XSS((empty($_GET['keyword'])?'':$_GET['keyword']
?>
<div class="admin_section">
<h4><img src="../img/members.gif" border="0" style="vertical-align: middle;" alt="" /> <?php echo ucfirst(get_lang('Users')); ?></h4>
<h4><?php Display::display_icon('members.gif', get_lang('Users')); ?> <?php echo ucfirst(get_lang('Users')); ?></h4>
<ul><li style="list-style-type:none"><form method="get" action="user_list.php">
<input type="text" name="keyword" value="<?php echo $keyword_url; ?>"/>
@ -99,7 +99,7 @@ $keyword_url = Security::remove_XSS((empty($_GET['keyword'])?'':$_GET['keyword']
</div>
<div class="admin_section">
<h4><img src="../img/course.gif" border="0" style="vertical-align: middle;" alt="" /> <?php echo ucfirst(get_lang('Courses')); ?></h4>
<h4><?php Display::display_icon('course.gif', get_lang('Courses')); ?> <?php echo ucfirst(get_lang('Courses')); ?></h4>
<ul><li style="list-style-type:none"><form method="get" action="course_list.php">
<input type="text" name="keyword" value="<?php echo $keyword_url; ?>"/>
@ -120,10 +120,7 @@ $keyword_url = Security::remove_XSS((empty($_GET['keyword'])?'':$_GET['keyword']
</div>
<div class="admin_section">
<h4>
<img src="../img/settings.gif" border="0" style="vertical-align: middle;" alt="" />
<?php echo ucfirst(get_lang('Platform')); ?>
</h4>
<h4><?php Display::display_icon('settings.gif', get_lang('Platform')); ?> <?php echo ucfirst(get_lang('Platform')); ?></h4>
<ul>
<li><a href="settings.php"><?php echo get_lang('DokeosConfigSettings') ?></a></li>
<li><a href="system_announcements.php"><?php echo get_lang('SystemAnnouncements') ?></a></li>
@ -150,10 +147,7 @@ if(api_get_setting('use_session_mode')=='true')
?>
<div class="admin_section">
<h4>
<img src="../img/agenda.gif" border="0" align="absmiddle" alt="" />
<?php echo get_lang('Sessions') ?>
</h4>
<h4><?php Display::display_icon('agenda.gif', get_lang('Sessions')); ?> <?php echo get_lang('Sessions') ?></h4>
<ul>
<li style="list-style-type:none"><form method="POST" action="session_list.php">
<input type="text" name="keyword" value="<?php echo $keyword_url; ?>"/>
@ -175,7 +169,7 @@ else if(api_is_platform_admin())
?>
<div class="admin_section">
<h4><img src="../img/group.gif" border="0" style="vertical-align: middle;" alt="" /> <?php echo ucfirst(get_lang('AdminClasses')); ?></h4>
<h4><?php Display::display_icon('group.gif', get_lang('AdminClasses')); ?> <?php echo ucfirst(get_lang('AdminClasses')); ?></h4>
<ul>
<li style="list-style-type:none"><form method="get" action="class_list.php">
@ -204,10 +198,7 @@ if(api_is_platform_admin()){
<div class="admin_section">
<h4>
<img src="../img/visio_meeting.gif" border="0" style="vertical-align: middle;" alt="" />
<?php echo ucfirst(get_lang('ConfigureExtensions')); ?>
</h4>
<h4><?php Display::display_icon('visio_meeting.gif', get_lang('ConfigureExtensions')); ?> <?php echo ucfirst(get_lang('ConfigureExtensions')); ?></h4>
<ul>
<li><a href="configure_extensions.php?display=visio"><?php echo get_lang('Visioconf'); ?></a></li>
<li><a href="configure_extensions.php?display=ppt2lp"><?php echo get_lang('Ppt2lp'); ?></a></li>
@ -222,7 +213,7 @@ if(api_is_platform_admin()){
?>
<!-- dynamic ldap code -->
<div class="admin_section">
<h4><img src="../img/members.gif" border="0" style="vertical-align: middle;" alt="LDAP" />LDAP</h4>
<h4><?php Display::display_icon('members.gif', 'LDAP'); ?> LDAP</h4>
<ul>
<li><a href="ldap_users_list.php"><?php echo get_lang('ImportLDAPUsersIntoPlatform');?></a></li>
<li><a href="ldap_import_students.php"><?php echo get_lang('ImportLDAPUsersIntoCourse');?></a></li>
@ -235,10 +226,7 @@ if(api_is_platform_admin()){
}
?>
<div class="admin_section">
<h4>
<img src="../img/dokeos.gif" border="0" style="vertical-align: middle;" alt="" />
<?php echo "dokeos.com"; ?>
</h4>
<h4><?php Display::display_icon('dokeos.gif', 'Dokeos'); ?> Dokeos.com</h4>
<ul>
<li><a href="http://www.dokeos.com/"><?php echo get_lang('DokeosHomepage'); ?></a></li>
<li><a href="http://www.dokeos.com/forum/"><?php echo get_lang('DokeosForum'); ?></a></li>

@ -1,5 +1,5 @@
<?php
// $Id: languages.php 15243 2008-05-08 14:05:14Z pcool $
// $Id: languages.php 16954 2008-11-26 14:41:35Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -175,11 +175,11 @@ while ($row = mysql_fetch_array($result_select))
// the fourth column with the visibility icon and the edit icon
if ($row['available'] == 1)
{
$row_td[] = "<a href='".api_get_self()."?action=makeunavailable&id=".$row['id']."'><img src='../img/visible.gif' border='0'></a> <a href='".api_get_self()."?action=edit&id=".$row['id']."'><img src='../img/edit.gif' border='0'></a>";
$row_td[] = "<a href='".api_get_self()."?action=makeunavailable&id=".$row['id']."'>".Display::return_icon('visible.gif')."</a> <a href='".api_get_self()."?action=edit&id=".$row['id']."'>".Display::return_icon('edit.gif', get_lang('Edit'))."</a>";
}
else
{
$row_td[] = "<a href='".api_get_self()."?action=makeavailable&id=".$row['id']."'><img src='../img/invisible.gif' border='0'></a> <a href='".api_get_self()."?action=edit&id=".$row['id']."'><img src='../img/edit.gif' border='0'></a>";
$row_td[] = "<a href='".api_get_self()."?action=makeavailable&id=".$row['id']."'>".Display::return_icon('invisible.gif')."</a> <a href='".api_get_self()."?action=edit&id=".$row['id']."'>".Display::return_icon('edit.gif', get_lang('Edit'))."</a>";
}
$language_data[] = $row_td;

@ -73,7 +73,8 @@ if (empty($annee) && empty($course))
{
Display::display_header($tool_name);
echo '<div style="align:center">';
echo '<img src="../img/group.gif" alt="'.get_lang('LDAPSelectFilterOnUsersOU').'" /> '.get_lang('LDAPSelectFilterOnUsersOU');
Display::display_icon('group.gif', get_lang('LDAPSelectFilterOnUsersOU'));
echo get_lang('LDAPSelectFilterOnUsersOU');
//echo '<em>'.get_lang('ToDoThisYouMustEnterYearComponentAndComponentStep').'</em><br />';
///echo get_lang('FollowEachOfTheseStepsStepByStep').'<br />';
@ -114,7 +115,7 @@ elseif ($annee <> "" && $composante == "" && $etape == "") // form 2 annee != 0;
echo '<div style="align: center">';
echo '<br />';
echo '<h3><img src="../img/group.gif" alt="'.get_lang('SelectComponent').'" />'.get_lang('SelectComponent').'</h3>';
echo '<h3>'.Display::return_icon('group.gif', get_lang('SelectComponent')).' '.get_lang('SelectComponent').'</h3>';
echo '<form method="get" action="'.api_get_self().'">';
echo '<b>'.get_lang('RegistrationYear').'</b> : ';
echo '<input type="text" name="annee" size="4" maxlength="30" value="'.$annee.'">';
@ -143,7 +144,7 @@ elseif ($annee <> "" && $composante <> "" && $etape == "") // form3 :annee!=0com
Display::display_header($tool_name);
echo '<div style="align: center">';
echo '<h3><img src="../img/group.gif" alt="'.get_lang('SearchResults').'" />'.get_lang('SearchResults').'</h3>';
echo '<h3>'.Display::return_icon('group.gif', get_lang('SearchResults')).' '.get_lang('SearchResults').'</h3>';
$ds = ldap_connect($ldap_host, $ldap_port);
ldap_set_version($ds);
@ -216,7 +217,7 @@ elseif(!empty($annee) && empty($course))
{
Display::display_header($tool_name);
echo '<div style="align:center">';
echo '<img src="../img/course.gif" alt="'.get_lang('SelectCourseToImportUsersTo').'" />'.get_lang('SelectCourseToImportUsersTo').'<br />';
echo Display::return_icon('course.gif', get_lang('SelectCourseToImportUsersTo')).' '.get_lang('SelectCourseToImportUsersTo').'<br />';
echo '<form method="post" action="'.api_get_self().'?annee='.Security::remove_XSS($annee).'"><br />';
echo '<select name="course">';
$courses = CourseManager::get_courses_list();
@ -237,7 +238,7 @@ elseif (!empty($annee) && !empty($course) && empty($_POST['confirmed']))
echo '<div style="align: center;">';
echo '<br />';
echo '<br />';
echo '<h3><img src="../img/group.gif" alt="'.get_lang('SelectStudents').'" /> '.get_lang('SelectStudents').'</h3>';
echo '<h3>'.Display::return_icon('group.gif', get_lang('SelectStudents')).' '.get_lang('SelectStudents').'</h3>';
//echo "Connection ...";
$ds = ldap_connect($ldap_host, $ldap_port) or die(get_lang('LDAPConnectionError'));
ldap_set_version($ds);

@ -71,7 +71,7 @@ if (empty($annee) && empty($id_session))
{
Display::display_header($tool_name);
echo '<div style="align:center">';
echo '<img src="../img/group.gif" alt="'.get_lang('LDAPSelectFilterOnUsersOU').'" /> '.get_lang('LDAPSelectFilterOnUsersOU');
echo Display::return_icon('group.gif', get_lang('LDAPSelectFilterOnUsersOU')).' '.get_lang('LDAPSelectFilterOnUsersOU');
echo '<form method="get" action="'.api_get_self().'"><br />';
echo '<em>'.get_lang('LDAPOUAttributeFilter').' :</em> ';
echo '<input type="text" name="annee" size="4" maxlength="30" value="'.$annee_base.'"> ';
@ -84,7 +84,7 @@ elseif(!empty($annee) && empty($id_session))
{
Display::display_header($tool_name);
echo '<div style="align:center">';
echo '<img src="../img/course.gif" alt="'.get_lang('SelectSessionToImportUsersTo').'" />'.get_lang('SelectSessionToImportUsersTo').'<br />';
echo Display::return_icon('course.gif', get_lang('SelectSessionToImportUsersTo')).' '.get_lang('SelectSessionToImportUsersTo').'<br />';
echo '<form method="post" action="'.api_get_self().'?annee='.Security::remove_XSS($annee).'"><br />';
echo '<select name="id_session">';
@ -113,7 +113,7 @@ elseif (!empty($annee) && !empty($id_session) && empty($_POST['confirmed']))
echo '<div style="align: center;">';
echo '<br />';
echo '<br />';
echo '<h3><img src="../img/group.gif" alt="'.get_lang('SelectStudents').'" /> '.get_lang('SelectStudents').'</h3>';
echo '<h3>'.Display::return_icon('group.gif', get_lang('SelectStudents')).' '.get_lang('SelectStudents').'</h3>';
//echo "Connection ...";
$ds = ldap_connect($ldap_host, $ldap_port) or die(get_lang('LDAPConnectionError'));
ldap_set_version($ds);

@ -1,4 +1,4 @@
<?php // $Id: resume_session.php 16769 2008-11-17 22:19:30Z yannoo $
<?php // $Id: resume_session.php 16954 2008-11-26 14:41:35Z pcool $
/* For licensing terms, see /dokeos_license.txt */
/**
==============================================================================
@ -102,7 +102,7 @@ api_display_tool_title($tool_name);
<table class="data_table" width="100%">
<tr>
<th colspan="2"><?php echo get_lang('GeneralProperties'); ?>
<a href="session_edit.php?page=resume_session.php&id=<?php echo $id_session; ?>"><img src="../img/edit.gif" border="0" align="absmiddle" title="<?php echo get_lang('Edit'); ?>"></a></th>
<a href="session_edit.php?page=resume_session.php&id=<?php echo $id_session; ?>"><?php Display::display_icon('edit.gif', get_lang('Edit')); ?></a></th>
</th>
</tr>
<tr>
@ -155,7 +155,7 @@ api_display_tool_title($tool_name);
<table class="data_table" width="100%">
<tr>
<th colspan="4"><?php echo get_lang('CourseList'); ?>
<a href="add_courses_to_session.php?page=resume_session.php&id_session=<?php echo $id_session; ?>"><img src="../img/edit.gif" border="0" align="absmiddle" title="<?php echo get_lang('Edit'); ?>"></a></th>
<a href="add_courses_to_session.php?page=resume_session.php&id_session=<?php echo $id_session; ?>"><?php Display::display_icon('edit.gif', get_lang('Edit')); ?></a></th>
</th>
</tr>
<tr>
@ -203,9 +203,9 @@ else {
<td>'.$coach.'</td>
<td>'.$course['nbr_users'].'</td>
<td>
<a href="../tracking/courseLog.php?id_session='.$id_session.'&cidReq='.$course['code'].$orig_param.'&hide_course_breadcrumb=1"><img src="../img/statistics.gif" border="0" style="vertical-align: middle;" title="'.get_lang('Tracking').'" alt="'.get_lang('Tracking').'"/></a>&nbsp;
<a href="session_course_edit.php?id_session='.$id_session.'&page=resume_session.php&course_code='.$course['code'].''.$orig_param.'"><img src="../img/edit.gif" border="0" align="absmiddle" title="'.get_lang('Edit').'"></a>
<a href="'.api_get_self().'?id_session='.$id_session.'&action=delete&idChecked[]='.$course['code'].'" onclick="javascript:if(!confirm(\''.get_lang('ConfirmYourChoice').'\')) return false;"><img src="../img/delete.gif" border="0" align="absmiddle" title="'.get_lang('Delete').'"></a>
<a href="../tracking/courseLog.php?id_session='.$id_session.'&cidReq='.$course['code'].$orig_param.'&hide_course_breadcrumb=1">'.Display::return_icon('statistics.gif', get_lang('Tracking')).'</a>&nbsp;
<a href="session_course_edit.php?id_session='.$id_session.'&page=resume_session.php&course_code='.$course['code'].''.$orig_param.'">'.Display::return_icon('edit.gif', get_lang('Edit')).'</a>
<a href="'.api_get_self().'?id_session='.$id_session.'&action=delete&idChecked[]='.$course['code'].'" onclick="javascript:if(!confirm(\''.get_lang('ConfirmYourChoice').'\')) return false;">'.Display::return_icon('delete.gif', get_lang('Delete')).'</a>
</td>
</tr>';
}
@ -219,7 +219,7 @@ else {
<table class="data_table" width="100%">
<tr>
<th colspan="4"><?php echo get_lang('UserList'); ?>
<a href="add_users_to_session.php?page=resume_session.php&id_session=<?php echo $id_session; ?>"><img src="../img/edit.gif" border="0" align="absmiddle" title="<?php echo get_lang('Edit'); ?>"></a></th>
<a href="add_users_to_session.php?page=resume_session.php&id_session=<?php echo $id_session; ?>"><?php Display::display_icon('edit.gif', get_lang('Edit')); ?></a></th>
</th>
</tr>
</tr>
@ -250,7 +250,7 @@ else {
<b>'.$user['lastname'].' '.$user['firstname'].' ('.$user['username'].')</b>
</td>
<td>
<a href="../mySpace/myStudents.php?student='.$user['user_id'].''.$orig_param.'"><img src="../img/statistics.gif" border="0" style="vertical-align: middle;" title="'.get_lang('Reporting').'" alt="'.get_lang('Reporting').'"/></a>&nbsp;<a href="'.api_get_self().'?id_session='.$id_session.'&action=delete&user='.$user['user_id'].'" onclick="javascript:if(!confirm(\''.get_lang('ConfirmYourChoice').'\')) return false;"><img src="../img/delete.gif" border="0" align="absmiddle" title="'.get_lang('Delete').'"></a>
<a href="../mySpace/myStudents.php?student='.$user['user_id'].''.$orig_param.'">'.Display::return_icon('statistics.gif', get_lang('Reporting')).'</a>&nbsp;<a href="'.api_get_self().'?id_session='.$id_session.'&action=delete&user='.$user['user_id'].'" onclick="javascript:if(!confirm(\''.get_lang('ConfirmYourChoice').'\')) return false;">'.Display::return_icon('delete.gif', get_lang('Delete')).'</a>
</td>
</tr>';
}
@ -258,15 +258,6 @@ else {
?>
</table>
<?php
/*
==============================================================================
FOOTER
==============================================================================
*/
// footer
Display :: display_footer();
?>

@ -91,8 +91,8 @@ foreach($Courses as $key=>$enreg)
$course[] = '<input type="checkbox" name="idChecked[]" value="'.$enreg['code'].'">';
$course[] = htmlentities($enreg['title'],ENT_QUOTES,$charset);
$course[] = '<a href="session_course_user_list.php?id_session='.$id_session.'&course_code='.$enreg['code'].'">'.$enreg['nbr_users'].' '.get_lang('Users').'</a>';
$course[] = '<a href="session_course_edit.php?id_session='.$id_session.'&page=session_course_list.php&course_code='.$enreg['code'].'"><img src="../img/edit.gif" border="0" align="absmiddle" title="'.get_lang('Edit').'"></a>
<a href="'.api_get_self().'?id_session='.$id_session.'&sort='.$sort.'&action=delete&idChecked[]='.$enreg['code'].'" onclick="javascript:if(!confirm(\''.addslashes(htmlentities(get_lang("ConfirmYourChoice"),ENT_QUOTES,$charset)).'\')) return false;"><img src="../img/delete.gif" border="0" align="absmiddle" title="'.get_lang('Delete').'"></a>';
$course[] = '<a href="session_course_edit.php?id_session='.$id_session.'&page=session_course_list.php&course_code='.$enreg['code'].'">'.Display::return_icon('edit.gif', get_lang('Edit')).'></a>
<a href="'.api_get_self().'?id_session='.$id_session.'&sort='.$sort.'&action=delete&idChecked[]='.$enreg['code'].'" onclick="javascript:if(!confirm(\''.addslashes(htmlentities(get_lang("ConfirmYourChoice"),ENT_QUOTES,$charset)).'\')) return false;">'.Display::return_icon('delete.gif', get_lang('Delete')).'</a>';
$tableCourses[] = $course;
}
echo '<form method="post" action="'.api_get_self().'">';

@ -133,7 +133,7 @@ foreach($Users as $key=>$enreg)
<td><?php echo htmlentities($enreg['firstname'],ENT_QUOTES,$charset); ?></td>
<td><?php echo htmlentities($enreg['username'],ENT_QUOTES,$charset); ?></td>
<td>
<a href="<?php echo api_get_self(); ?>?id_session=<?php echo $id_session; ?>&course_code=<?php echo urlencode($course_code); ?>&sort=<?php echo $sort; ?>&action=delete&idChecked[]=<?php echo $enreg['user_id']; ?>" onclick="javascript:if(!confirm('<?php echo get_lang('ConfirmYourChoice'); ?>')) return false;"><img src="../img/delete.gif" border="0" align="absmiddle" title="Effacer"></a>
<a href="<?php echo api_get_self(); ?>?id_session=<?php echo $id_session; ?>&course_code=<?php echo urlencode($course_code); ?>&sort=<?php echo $sort; ?>&action=delete&idChecked[]=<?php echo $enreg['user_id']; ?>" onclick="javascript:if(!confirm('<?php echo get_lang('ConfirmYourChoice'); ?>')) return false;"><?php Display::display_icon('delete.gif', get_lang('Delete')); ?></a>
</td>
</tr>

@ -219,10 +219,10 @@ else{
<td><?php echo htmlentities($enreg['date_end'],ENT_QUOTES,$charset); ?></td>
<td><?php echo htmlentities($enreg['firstname'],ENT_QUOTES,$charset).' '.htmlentities($enreg['lastname'],ENT_QUOTES,$charset); ?></td>
<td>
<a href="add_users_to_session.php?page=session_list.php&id_session=<?php echo $enreg['id']; ?>"><img src="../img/add_user_big.gif" border="0" align="absmiddle" title="<?php echo get_lang('SubscribeUsersToSession'); ?>"></a>
<a href="add_courses_to_session.php?page=session_list.php&id_session=<?php echo $enreg['id']; ?>"><img src="../img/synthese_view.gif" border="0" align="absmiddle" title="<?php echo get_lang('SubscribeCoursesToSession'); ?>"></a>
<a href="session_edit.php?page=session_list.php&id=<?php echo $enreg['id']; ?>"><img src="../img/edit.gif" border="0" align="absmiddle" title="<?php echo get_lang('Edit'); ?>"></a>
<a href="<?php echo api_get_self(); ?>?sort=<?php echo $sort; ?>&action=delete&idChecked=<?php echo $enreg['id']; ?>" onclick="javascript:if(!confirm('<?php echo get_lang('ConfirmYourChoice'); ?>')) return false;"><img src="../img/delete.gif" border="0" align="absmiddle" title="<?php echo get_lang('Delete'); ?>" alt="<?php echo get_lang('Delete'); ?>"></a>
<a href="add_users_to_session.php?page=session_list.php&id_session=<?php echo $enreg['id']; ?>"><?php Display::display_icon('add_user_big.gif', get_lang('SubscribeUsersToSession')); ?></a>
<a href="add_courses_to_session.php?page=session_list.php&id_session=<?php echo $enreg['id']; ?>"><?php Display::display_icon('synthese_view.gif', get_lang('SubscribeCoursesToSession')); ?></a>
<a href="session_edit.php?page=session_list.php&id=<?php echo $enreg['id']; ?>"><?php Display::display_icon('edit.gif', get_lang('Edit')); ?></a>
<a href="<?php echo api_get_self(); ?>?sort=<?php echo $sort; ?>&action=delete&idChecked=<?php echo $enreg['id']; ?>" onclick="javascript:if(!confirm('<?php echo get_lang('ConfirmYourChoice'); ?>')) return false;"><?php Display::display_icon('delete.gif', get_lang('Delete')); ?></a>
</td>
</tr>

@ -154,7 +154,7 @@ class Statistics
echo '<tr class="row_'.($i%2 == 0 ? 'odd' : 'even').'">
<td width="150">'.$subtitle.'</td>
<td width="550">
<img src="../../img/bar_1u.gif" width="'.$data[$subtitle].'" height="10"/>
'.Display::return_icon('bar_1u.gif', '',array('width' => $data[$subtitle], 'height' => '10')).'
</td>
<td align="right">'.$number_label.'</td>';
if($show_total)

@ -25,7 +25,7 @@ include(api_get_path(INCLUDE_PATH).'banner.inc.php');
<p>This is the introduction text.
</div>
<div id="courseintro_icons">
<a href="#"><img src="../img/edit.gif" alt="edit"/></a><a href="#"><img src="../img/delete.gif" alt="delete"/></a></div>
<a href="#"><?php Display::display_icon('edit.gif', get_lang('Edit')); ?></a><a href="#"><?php Display::display_icon('delete.gif', get_lang('Delete')); ?></a></div>
<div class="normal-message"> Normal Message </div>
<div class="error-message"> Error Message </div>
<table width="750">

@ -1,4 +1,4 @@
<?php // $Id: system_announcements.php 16878 2008-11-23 00:04:52Z herodoto $
<?php // $Id: system_announcements.php 16954 2008-11-26 14:41:35Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -274,15 +274,15 @@ if ($show_announcement_list)
{
$row = array ();
$row[] = $announcement->id;
$row[] = "<img src=\"../img/". ($announcement->visible ? 'visible.gif' : 'invisible.gif')."\"/>";
$row[] = Display::return_icon(($announcement->visible ? 'visible.gif' : 'invisible.gif'));
$row[] = $announcement->date_start;
$row[] = $announcement->date_end;
$row[] = "<a href=\"?id=".$announcement->id."&amp;person=".VISIBLE_TEACHER."&amp;action=". ($announcement->visible_teacher ? 'make_invisible' : 'make_visible')."\"><img src=\"../img/". ($announcement->visible_teacher ? 'visible.gif' : 'invisible.gif')."\" border=\"0\"></a>";
$row[] = "<a href=\"?id=".$announcement->id."&amp;person=".VISIBLE_STUDENT."&amp;action=". ($announcement->visible_student ? 'make_invisible' : 'make_visible')."\"><img src=\"../img/". ($announcement->visible_student ? 'visible.gif' : 'invisible.gif')."\" border=\"0\"></a>";
$row[] = "<a href=\"?id=".$announcement->id."&amp;person=".VISIBLE_GUEST."&amp;action=". ($announcement->visible_guest ? 'make_invisible' : 'make_visible')."\"><img src=\"../img/". ($announcement->visible_guest ? 'visible.gif' : 'invisible.gif')."\" border=\"0\"></a>";
$row[] = "<a href=\"?id=".$announcement->id."&amp;person=".VISIBLE_TEACHER."&amp;action=". ($announcement->visible_teacher ? 'make_invisible' : 'make_visible')."\">".Display::return_icon(($announcement->visible_teacher ? 'visible.gif' : 'invisible.gif'))."</a>";
$row[] = "<a href=\"?id=".$announcement->id."&amp;person=".VISIBLE_STUDENT."&amp;action=". ($announcement->visible_student ? 'make_invisible' : 'make_visible')."\">".Display::return_icon(($announcement->visible_student ? 'visible.gif' : 'invisible.gif'))."</a>";
$row[] = "<a href=\"?id=".$announcement->id."&amp;person=".VISIBLE_GUEST."&amp;action=". ($announcement->visible_guest ? 'make_invisible' : 'make_visible')."\">".Display::return_icon(($announcement->visible_guest ? 'visible.gif' : 'invisible.gif'))."</a>";
$row[] = $announcement->title;
$row[] = $announcement->lang;
$row[] = "<a href=\"?action=edit&id=".$announcement->id."\"><img src=\"../img/edit.gif\" border=\"0\"/></a> <a href=\"?action=delete&id=".$announcement->id."\" onclick=\"javascript:if(!confirm('".addslashes(htmlentities(get_lang("ConfirmYourChoice"),ENT_QUOTES,$charset))."')) return false;\"><img src=\"../img/delete.gif\" border=\"0\"/></a>";
$row[] = "<a href=\"?action=edit&id=".$announcement->id."\">".Display::return_icon('edit.gif', get_lang('Edit'))."</a> <a href=\"?action=delete&id=".$announcement->id."\" onclick=\"javascript:if(!confirm('".addslashes(htmlentities(get_lang("ConfirmYourChoice"),ENT_QUOTES,$charset))."')) return false;\">".Display::return_icon('delete.gif', get_lang('Delete'))."</a>";
$announcement_data[] = $row;
}
$table = new SortableTableFromArray($announcement_data);

@ -288,7 +288,7 @@ function order_filter($field_order,$url_params,$row)
*/
function modify_visibility($visibility,$url_params,$row)
{
return ($visibility?'<a href="'.api_get_self().'?action=hide_field&field_id='.$row[0].'&sec_token='.$_SESSION['sec_token'].'"><img src="'.api_get_path(WEB_IMG_PATH).'visible.gif" alt="'.get_lang('Hide').'" /></a>':'<a href="'.api_get_self().'?action=show_field&field_id='.$row[0].'&sec_token='.$_SESSION['sec_token'].'"><img src="'.api_get_path(WEB_IMG_PATH).'invisible.gif" alt="'.get_lang('Show').'" /></a>');
return ($visibility?'<a href="'.api_get_self().'?action=hide_field&field_id='.$row[0].'&sec_token='.$_SESSION['sec_token'].'">'.Display::return_icon('visible.gif', get_lang('Hide')).'</a>':'<a href="'.api_get_self().'?action=show_field&field_id='.$row[0].'&sec_token='.$_SESSION['sec_token'].'">'.Display::return_icon('invisible.gif', get_lang('Show')).'</a>');
}
/**
* Modify the changeability field to show links and icons
@ -299,7 +299,7 @@ function modify_visibility($visibility,$url_params,$row)
*/
function modify_changeability($changeability,$url_params,$row)
{
return ($changeability?'<a href="'.api_get_self().'?action=freeze_field&field_id='.$row[0].'&sec_token='.$_SESSION['sec_token'].'"><img src="'.api_get_path(WEB_IMG_PATH).'right.gif" alt="'.get_lang('MakeUnchangeable').'" /></a>':'<a href="'.api_get_self().'?action=thaw_field&field_id='.$row[0].'&sec_token='.$_SESSION['sec_token'].'"><img src="'.api_get_path(WEB_IMG_PATH).'wrong.gif" alt="'.get_lang('MakeChangeable').'" /></a>');
return ($changeability?'<a href="'.api_get_self().'?action=freeze_field&field_id='.$row[0].'&sec_token='.$_SESSION['sec_token'].'">'.Display::return_icon('right.gif', get_lang('MakeUnchangeable')).'</a>':'<a href="'.api_get_self().'?action=thaw_field&field_id='.$row[0].'&sec_token='.$_SESSION['sec_token'].'">'.Display::return_icon('wrong.gif', get_lang('MakeChangeable')).'</a>');
}
function edit_filter($id,$url_params,$row)

@ -1,4 +1,4 @@
<?php // $Id: user_fields_add.php 15870 2008-07-30 13:38:51Z pcool $
<?php // $Id: user_fields_add.php 16954 2008-11-26 14:41:35Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -86,7 +86,7 @@ $form->applyFilter('fieldtitle','html_filter');
$form->applyFilter('fieldtitle','trim');
$form->addRule('fieldtitle', get_lang('ThisFieldIsRequired'), 'required');
// Field options
$form->addElement('text','fieldoptions',get_lang('FieldPossibleValues').' <img src="../img/info3.gif" height="16" width="16" alt="'.get_lang('FieldPossibleValuesComment').'" title="'.get_lang('FieldPossibleValuesComment').'">');
$form->addElement('text','fieldoptions',get_lang('FieldPossibleValues').' '.Display::return_icon('info3.gif', get_lang('FieldPossibleValuesComment')));
$form->applyFilter('fieldoptions','trim');
if (is_numeric($_GET['field_id']))
{
@ -168,11 +168,8 @@ if(!empty($_GET['message']))
//Display::display_normal_message(get_lang('UserFieldsAddHelp'),false);
//}
$form->display();
echo '<br /><img src="../img/add_user_field_howto.png" alt="'.get_lang('AddUserFields').'" />';
/*
==============================================================================
FOOTER
==============================================================================
*/
echo '<br />'.Display::return_icon('add_user_field_howto.png', get_lang('AddUserFields'));
// footer
Display::display_footer();
?>

@ -1,5 +1,5 @@
<?php
// $Id: user_information.php 13900 2007-12-04 04:10:41Z yannoo $
// $Id: user_information.php 16954 2008-11-26 14:41:35Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -70,7 +70,7 @@ if( isset($_GET['action']) )
}
}
api_display_tool_title($tool_name);
echo '<div align="right" style="margin-right:4em;"><a href="'.api_get_path(WEB_CODE_PATH).'mySpace/myStudents.php?student='.$_GET['user_id'].'" title="'.get_lang('Reporting').'"><img src="'.api_get_path(WEB_CODE_PATH).'img/statistics.gif" /></a></div>'."\n";
echo '<div align="right" style="margin-right:4em;"><a href="'.api_get_path(WEB_CODE_PATH).'mySpace/myStudents.php?student='.$_GET['user_id'].'" title="'.get_lang('Reporting').'">'.Display::return_icon('statistics.gif').'</a></div>'."\n";
if ($user['picture_uri'] != '')
{
echo '<p><img src="'.api_get_path(WEB_CODE_PATH).'upload/users/'.$user['picture_uri'].'" style="width:150px;"/></p>';

Loading…
Cancel
Save