Feature #2785 tables wiki tool

skala
Juan Carlos Raña 14 years ago
parent b04f6241cf
commit accb04914a
  1. BIN
      main/img/icons/22/export_to_documents.png
  2. BIN
      main/img/icons/22/messagebox_info.png
  3. BIN
      main/img/icons/22/star.png
  4. BIN
      main/img/icons/22/star_na.png
  5. BIN
      main/img/icons/22/wiki_assignment.png
  6. BIN
      main/img/icons/22/wiki_task.png
  7. BIN
      main/img/icons/22/wiki_work.png
  8. BIN
      main/img/icons/32/messagebox_info.png
  9. BIN
      main/img/icons/32/star.png
  10. BIN
      main/img/icons/32/star_green.png
  11. 11
      main/img/icons/48/_sum.txt
  12. BIN
      main/img/icons/48/export_to_documents.png
  13. BIN
      main/img/icons/48/mail_info.png
  14. BIN
      main/img/icons/48/star.png
  15. BIN
      main/img/icons/48/star_green.png
  16. BIN
      main/img/icons/48/star_na.png
  17. BIN
      main/img/icons/48/wiki_assignment.png
  18. BIN
      main/img/icons/48/wiki_task.png
  19. BIN
      main/img/icons/48/wiki_work.png
  20. BIN
      main/img/off.png
  21. BIN
      main/img/on.png
  22. BIN
      main/img/px_transparent.gif
  23. 12
      main/img/rating/index.html
  24. BIN
      main/img/rating/stars_0.gif
  25. BIN
      main/img/rating/stars_10.gif
  26. BIN
      main/img/rating/stars_15.gif
  27. BIN
      main/img/rating/stars_20.gif
  28. BIN
      main/img/rating/stars_25.gif
  29. BIN
      main/img/rating/stars_30.gif
  30. BIN
      main/img/rating/stars_35.gif
  31. BIN
      main/img/rating/stars_40.gif
  32. BIN
      main/img/rating/stars_45.gif
  33. BIN
      main/img/rating/stars_5.gif
  34. BIN
      main/img/rating/stars_50.gif
  35. 126
      main/wiki/index.php
  36. 52
      main/wiki/wiki.inc.php

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

@ -273,7 +273,10 @@ user_event modif mix crystal nuvola
platform_event modif mix crystal nuvola chamilo
languages_na modif crystal
new_language modif crystal
--julio
star
star_green
export_to_documents modif nuvola
messagebox_info crystal (only 32 px)
wiki_task modif nuvola
wiki_work modif nuvola
wiki_assignment modif nuvola
star crystal
star_green modif crystal

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 754 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 822 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 B

@ -0,0 +1,12 @@
<html><head><title>Icon Credits</title></head><body style="margin:7em">
<p>
The Icons in this folder were found at <a href="http://www.famfamfam.com/lab/icons/silk/">FamFamFam.com</a>
and are licensed under a <a href="http://creativecommons.org/licenses/by/2.5/">Creative Commons Attribution 2.5 License</a>.
</p>
<p>
Thanks to Mark James for the wonderful resource!
</pe>
</body></html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 609 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 664 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 697 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 744 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 773 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 817 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 833 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 871 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 549 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 888 B

@ -278,11 +278,11 @@ if ($_GET['view'])
if($current_row['assignment']==1)
{
Display::display_normal_message(get_lang('EditAssignmentWarning'));
$icon_assignment='<img src="../img/wiki/assignment.png" title="'.get_lang('AssignmentDescExtra').'" alt="'.get_lang('AssignmentDescExtra').'" />';
$icon_assignment=Display::return_icon('wiki_assignment.png', get_lang('AssignmentDescExtra'),'',22);
}
elseif($current_row['assignment']==2)
{
$icon_assignment='<img src="../img/wiki/works.png" title="'.get_lang('AssignmentWorkExtra').'" alt="'.get_lang('AssignmentWorkExtra').'" />';
$icon_assignment=Display::return_icon('wiki_work.png', get_lang('AssignmentWorkExtra'),'',22);
if((api_get_user_id()==$current_row['user_id'])==false)
{
if(api_is_allowed_to_edit(false,true) || api_is_platform_admin())
@ -380,12 +380,12 @@ echo '<td>';
// page action: enable or disable the adding of new pages
if (check_addnewpagelock()==0)
{
$protect_addnewpage= '<img src="../img/wiki/lockadd.png" title="'.get_lang('AddOptionProtected').'" alt="'.get_lang('AddOptionProtected').'" width="8" height="8" />';
$protect_addnewpage= '<img src="../img/on.png" title="'.get_lang('AddOptionProtected').'" alt="'.get_lang('AddOptionProtected').'" width="8" height="8" />';
$lock_unlock_addnew='unlockaddnew';
}
else
{
$protect_addnewpage= '<img src="../img/wiki/unlockadd.png" title="'.get_lang('AddOptionUnprotected').'" alt="'.get_lang('AddOptionUnprotected').'" width="8" height="8" />';
$protect_addnewpage= '<img src="../img/off.png" title="'.get_lang('AddOptionUnprotected').'" alt="'.get_lang('AddOptionUnprotected').'" width="8" height="8" />';
$lock_unlock_addnew='lockaddnew';
}
}
@ -615,15 +615,15 @@ if ($_GET['action']=='usercontrib')
//get type assignment icon
if($obj->assignment==1)
{
$ShowAssignment='<img src="../img/wiki/assignment.png" title="'.get_lang('AssignmentDesc').'" alt="'.get_lang('AssignmentDesc').'" />';
$ShowAssignment=Display::return_icon('wiki_assignment.png', get_lang('AssignmentDescExtra'),'',22);
}
elseif ($obj->assignment==2)
{
$ShowAssignment='<img src="../img/wiki/works.png" title="'.get_lang('AssignmentWork').'" alt="'.get_lang('AssignmentWork').'" />';
$ShowAssignment=Display::return_icon('wiki_work.png', get_lang('AssignmentWork'),'',22);
}
elseif ($obj->assignment==0)
{
$ShowAssignment='<img src="../img/wiki/trans.gif" />';
$ShowAssignment='<img src="../img/px_transparent.gif" />';
}
$row = array ();
@ -691,15 +691,15 @@ if ($_GET['action']=='mostchanged')
//get type assignment icon
if($obj->assignment==1)
{
$ShowAssignment='<img src="../img/wiki/assignment.png" title="'.get_lang('AssignmentDesc').'" alt="'.get_lang('AssignmentDesc').'" />';
$ShowAssignment=Display::return_icon('wiki_assignment.png', get_lang('AssignmentDesc'),'',22);
}
elseif ($obj->assignment==2)
{
$ShowAssignment='<img src="../img/wiki/works.png" title="'.get_lang('AssignmentDesc').'" alt="'.get_lang('AssignmentWork').'" />';
$ShowAssignment=Display::return_icon('wiki_work.png', get_lang('AssignmentWork'),'',22);
}
elseif ($obj->assignment==0)
{
$ShowAssignment='<img src="../img/wiki/trans.gif" />';
$ShowAssignment='<img src="../img/px_transparent.gif" />';
}
$row = array ();
@ -745,15 +745,15 @@ if ($_GET['action']=='mvisited')
//get type assignment icon
if($obj->assignment==1)
{
$ShowAssignment='<img src="../img/wiki/assignment.png" title="'.get_lang('AssignmentDesc').'" alt="'.get_lang('AssignmentDesc').'" />';
$ShowAssignment=Display::return_icon('wiki_assignment.png', get_lang('AssignmentDesc'),'',22);
}
elseif ($obj->assignment==2)
{
$ShowAssignment='<img src="../img/wiki/works.png" title="'.get_lang('AssignmentWork').'" alt="'.get_lang('AssignmentWork').'" />';
$ShowAssignment=$ShowAssignment=Display::return_icon('wiki_work.png', get_lang('AssignmentWork'),'',22);
}
elseif ($obj->assignment==0)
{
$ShowAssignment='<img src="../img/wiki/trans.gif" />';
$ShowAssignment='<img src="../img/px_transparent.gif" />';
}
$row = array ();
@ -886,15 +886,15 @@ if ($_GET['action']=='orphaned')
//fix assignment icon
if($row['assignment']==1)
{
$ShowAssignment='<img src="../img/wiki/assignment.png" />';
$ShowAssignment=Display::return_icon('wiki_assignment.png','','',22);
}
elseif ($row['assignment']==2)
{
$ShowAssignment='<img src="../img/wiki/works.png" />';
$ShowAssignment=Display::return_icon('wiki_work.png','','',22);
}
elseif ($row['assignment']==0)
{
$ShowAssignment='<img src="../img/wiki/trans.gif" />';
$ShowAssignment='<img src="../img/px_transparent.gif" />';
}
echo '<li>'.$ShowAssignment.'<a href="'.api_get_self().'?cidReq='.$_course[id].'&action=showpage&title='.api_htmlentities(urlencode($row['reflink'])).'&session_id='.api_htmlentities($_GET['session_id']).'&group_id='.api_htmlentities($_GET['group_id']).'">'.api_htmlentities($row['title']).'</a></li>';
@ -1037,15 +1037,15 @@ if ($_GET['action']=='links')
if($row['assignment']==1)
{
$ShowAssignment='<img src="../img/wiki/assignment.png" title="'.get_lang('AssignmentDesc').'" alt="'.get_lang('AssignmentDesc').'" />';
$ShowAssignment=Display::return_icon('wiki_assignment.png', get_lang('AssignmentDesc'),'',22);
}
elseif ($row['assignment']==2)
{
$ShowAssignment='<img src="../img/wiki/works.png" title="'.get_lang('AssignmentWork').'" alt="'.get_lang('AssignmentWork').'" />';
$ShowAssignment=Display::return_icon('wiki_work.png', get_lang('AssignmentWork'),'',22);
}
elseif ($row['assignment']==0)
{
$ShowAssignment='<img src="../img/wiki/trans.gif" />';
$ShowAssignment='<img src="../img/px_transparent.gif" />';
}
//fix Title to reflink (link Main Page)
@ -1104,15 +1104,15 @@ if ($_GET['action']=='links')
//get type assignment icon
if($obj->assignment==1)
{
$ShowAssignment='<img src="../img/wiki/assignment.png" title="'.get_lang('AssignmentDesc').'" alt="'.get_lang('AssignmentDesc').'" />';
$ShowAssignment=Display::return_icon('wiki_assignment.png', get_lang('AssignmentDesc'),'',22);
}
elseif ($obj->assignment==2)
{
$ShowAssignment='<img src="../img/wiki/works.png" title="'.get_lang('AssignmentWork').'" alt="'.get_lang('AssignmentWork').'" />';
$ShowAssignment=Display::return_icon('wiki_work.png', get_lang('AssignmentWork'),'',22);
}
elseif ($obj->assignment==0)
{
$ShowAssignment='<img src="../img/wiki/trans.gif" />';
$ShowAssignment='<img src="../img/px_transparent.gif" />';
}
$row = array ();
@ -1272,11 +1272,11 @@ if ($_GET['action']=='edit')
if($row['assignment']==1)
{
Display::display_normal_message(get_lang('EditAssignmentWarning'));
$icon_assignment='<img src="../img/wiki/assignment.png" title="'.get_lang('AssignmentDescExtra').'" alt="'.get_lang('AssignmentDescExtra').'" />';
$icon_assignment=Display::return_icon('wiki_assignment.png', get_lang('AssignmentDescExtra'),'',22);
}
elseif($row['assignment']==2)
{
$icon_assignment='<img src="../img/wiki/works.png" title="'.get_lang('AssignmentWorkExtra').'" alt="'.get_lang('AssignmentWorkExtra').'" />';
$icon_assignment=Display::return_icon('wiki_work.png', get_lang('AssignmentWorkExtra'),'',22);
if((api_get_user_id()==$row['user_id'])==false)
{
if(api_is_allowed_to_edit(false,true) || api_is_platform_admin())
@ -1461,7 +1461,7 @@ if ($_GET['action']=='edit')
echo '<div id="options" style="display:none; margin: 20px;" >';
//task
echo '<div>&nbsp;</div><input type="checkbox" value="1" name="checktask" onclick="javascript: if(this.checked){document.getElementById(\'option4\').style.display=\'block\';}else{document.getElementById(\'option4\').style.display=\'none\';}"/>&nbsp;<img src="../img/wiki/task.gif" title="'.get_lang('DefineTask').'" alt="'.get_lang('DefineTask').'"/>'.get_lang('DescriptionOfTheTask').'';
echo '<div>&nbsp;</div><input type="checkbox" value="1" name="checktask" onclick="javascript: if(this.checked){document.getElementById(\'option4\').style.display=\'block\';}else{document.getElementById(\'option4\').style.display=\'none\';}"/>&nbsp;'.Display::return_icon('wiki_task.png', get_lang('DefineTask'),'',22).' '.get_lang('DescriptionOfTheTask').'';
echo '&nbsp;&nbsp;&nbsp;<span id="msg_error4" style="display:none;color:red"></span>';
echo '<div id="option4" style="padding:4px; margin:5px; border:1px dotted; display:none;">';
@ -1669,11 +1669,11 @@ if ($_GET['action']=='history' or $_POST['HistoryDifferences'])
if($KeyAssignment==1)
{
$icon_assignment='<img src="../img/wiki/assignment.png" title="'.get_lang('AssignmentDescExtra').'" alt="'.get_lang('AssignmentDescExtra').'" />';
$icon_assignment=Display::return_icon('wiki_assignment.png', get_lang('AssignmentDescExtra'),'',22);
}
elseif($KeyAssignment==2)
{
$icon_assignment='<img src="../img/wiki/works.png" title="'.get_lang('AssignmentWorkExtra').'" alt="'.get_lang('AssignmentWorkExtra').'" />';
$icon_assignment=Display::return_icon('wiki_work.png', get_lang('AssignmentWorkExtra'),'',22);
}
@ -1850,10 +1850,10 @@ if ($_GET['action']=='recentchanges') {
if ( api_is_allowed_to_session_edit(false,true) ) {
if (check_notify_all()==1) {
$notify_all= '<img src="../img/wiki/send_mail_checked.gif" title="'.get_lang('FullNotifyByEmail').'" alt="'.get_lang('FullNotifyByEmail').'" style="vertical-align:middle;" />'.get_lang('NotNotifyChanges');
$notify_all= Display::return_icon('messagebox_info.png', get_lang('NotifyByEmail'),'',22).' '.get_lang('NotNotifyChanges');
$lock_unlock_notify_all='unlocknotifyall';
} else {
$notify_all= '<img src="../img/wiki/send_mail.gif" title="'.get_lang('FullCancelNotifyByEmail').'" alt="'.get_lang('FullCancelNotifyByEmail').'" style="vertical-align:middle;"/>'.get_lang('NotifyChanges');
$notify_all=Display::return_icon('mail.png', get_lang('CancelNotifyByEmail'),'',22).' '.get_lang('NotifyChanges');
$lock_unlock_notify_all='locknotifyall';
}
@ -1891,25 +1891,25 @@ if ($_GET['action']=='recentchanges') {
//get type assignment icon
if($obj->assignment==1)
{
$ShowAssignment='<img src="../img/wiki/assignment.png" title="'.get_lang('AssignmentDesc').'" alt="'.get_lang('AssignmentDesc').'" />';
$ShowAssignment=Display::return_icon('wiki_assignment.png', get_lang('AssignmentDesc'),'',22);
}
elseif ($obj->assignment==2)
{
$ShowAssignment='<img src="../img/wiki/works.png" title="'.get_lang('AssignmentWork').'" alt="'.get_lang('AssignmentWork').'" />';
$ShowAssignment=Display::return_icon('wiki_work.png', get_lang('AssignmentWork'),'',22);
}
elseif ($obj->assignment==0)
{
$ShowAssignment='<img src="../img/wiki/trans.gif" />';
$ShowAssignment='<img src="../img/px_transparent.gif" />';
}
//get icon task
if (!empty($obj->task))
{
$icon_task='<img src="../img/wiki/task.gif" title="'.get_lang('StandardTask').'" alt="'.get_lang('StandardTask').'" />';
$icon_task=Display::return_icon('wiki_task.png', get_lang('StandardTask'),'',22);
}
else
{
$icon_task='<img src="../img/wiki/trans.gif" />';
$icon_task='<img src="../img/px_transparent.gif" />';
}
@ -1973,25 +1973,25 @@ if ($_GET['action']=='allpages')
//get type assignment icon
if($obj->assignment==1)
{
$ShowAssignment='<img src="../img/wiki/assignment.png" title="'.get_lang('AssignmentDesc').'" alt="'.get_lang('AssignmentDesc').'" />';
$ShowAssignment=Display::return_icon('wiki_assignment.png', get_lang('AssignmentDesc'),'',22);
}
elseif ($obj->assignment==2)
{
$ShowAssignment='<img src="../img/wiki/works.png" title="'.get_lang('AssignmentWork').'" alt="'.get_lang('AssignmentWork').'" />';
$ShowAssignment=Display::return_icon('wiki_work.png', get_lang('AssignmentWork'),'',22);
}
elseif ($obj->assignment==0)
{
$ShowAssignment='<img src="../img/wiki/trans.gif" />';
$ShowAssignment='<img src="../img/px_transparent.gif" />';
}
//get icon task
if (!empty($obj->task))
{
$icon_task='<img src="../img/wiki/task.gif" title="'.get_lang('StandardTask').'" alt="'.get_lang('StandardTask').'" />';
$icon_task=Display::return_icon('wiki_task.png', get_lang('StandardTask'),'',22);
}
else
{
$icon_task='<img src="../img/wiki/trans.gif" />';
$icon_task='<img src="../img/px_transparent.gif" />';
}
$row = array ();
@ -2002,10 +2002,10 @@ if ($_GET['action']=='allpages')
if(api_is_allowed_to_edit(false,true)|| api_is_platform_admin())
{
$showdelete=' <a href="'.api_get_self().'?cidReq='.$_course[id].'&action=delete&title='.api_htmlentities(urlencode($obj->reflink)).'&session_id='.api_htmlentities($_GET['session_id']).'&group_id='.api_htmlentities($_GET['group_id']).'"><img src="../img/delete.gif" title="'.get_lang('Delete').'" alt="'.get_lang('Delete').'" />';
$showdelete=' <a href="'.api_get_self().'?cidReq='.$_course[id].'&action=delete&title='.api_htmlentities(urlencode($obj->reflink)).'&session_id='.api_htmlentities($_GET['session_id']).'&group_id='.api_htmlentities($_GET['group_id']).'">'.Display::return_icon('delete.png', get_lang('Delete'),'',22);
}
if (api_is_allowed_to_session_edit(false,true) )
$row[] = '<a href="'.api_get_self().'?cidReq='.$_course[id].'&action=edit&title='.api_htmlentities(urlencode($obj->reflink)).'&session_id='.api_htmlentities($_GET['session_id']).'&group_id='.api_htmlentities($_GET['group_id']).'"><img src="../img/lp_quiz.png" title="'.get_lang('EditPage').'" alt="'.get_lang('EditPage').'" /></a> <a href="'.api_get_self().'?cidReq='.$_course[id].'&action=discuss&title='.api_htmlentities(urlencode($obj->reflink)).'&group_id='.api_htmlentities($_GET['group_id']).'"><img src="../img/comment_bubble.gif" title="'.get_lang('Discuss').'" alt="'.get_lang('Discuss').'" /></a> <a href="'.api_get_self().'?cidReq='.$_course[id].'&action=history&title='.api_htmlentities(urlencode($obj->reflink)).'&session_id='.api_htmlentities($_GET['session_id']).'&group_id='.api_htmlentities($_GET['group_id']).'"><img src="../img/history.gif" title="'.get_lang('History').'" alt="'.get_lang('History').'" /></a> <a href="'.api_get_self().'?cidReq='.$_course[id].'&action=links&title='.api_htmlentities(urlencode($obj->reflink)).'&session_id='.api_htmlentities($_GET['session_id']).'&group_id='.api_htmlentities($_GET['group_id']).'"><img src="../img/lp_link.png" title="'.get_lang('LinksPages').'" alt="'.get_lang('LinksPages').'" /></a>'.$showdelete;
$row[] = '<a href="'.api_get_self().'?cidReq='.$_course[id].'&action=edit&title='.api_htmlentities(urlencode($obj->reflink)).'&session_id='.api_htmlentities($_GET['session_id']).'&group_id='.api_htmlentities($_GET['group_id']).'">'.Display::return_icon('edit.png', get_lang('EditPage'),'',22).'</a> <a href="'.api_get_self().'?cidReq='.$_course[id].'&action=discuss&title='.api_htmlentities(urlencode($obj->reflink)).'&group_id='.api_htmlentities($_GET['group_id']).'">'.Display::return_icon('discuss.png', get_lang('Discuss'),'',22).'</a> <a href="'.api_get_self().'?cidReq='.$_course[id].'&action=history&title='.api_htmlentities(urlencode($obj->reflink)).'&session_id='.api_htmlentities($_GET['session_id']).'&group_id='.api_htmlentities($_GET['group_id']).'">'.Display::return_icon('history.png', get_lang('History'),'',22).'</a> <a href="'.api_get_self().'?cidReq='.$_course[id].'&action=links&title='.api_htmlentities(urlencode($obj->reflink)).'&session_id='.api_htmlentities($_GET['session_id']).'&group_id='.api_htmlentities($_GET['group_id']).'">'.Display::return_icon('what_link_here.png', get_lang('LinksPages'),'',22).'</a>'.$showdelete;
$rows[] = $row;
}
@ -2016,7 +2016,7 @@ if ($_GET['action']=='allpages')
$table->set_header(2,get_lang('Author').' ('.get_lang('LastVersion').')', true);
$table->set_header(3,get_lang('Date').' ('.get_lang('LastVersion').')', true);
if (api_is_allowed_to_session_edit(false,true) )
$table->set_header(4,get_lang('Actions'), true, array ('style' => 'width:100px;'));
$table->set_header(4,get_lang('Actions'), true, array ('style' => 'width:130px;'));
$table->display();
}
}
@ -2053,11 +2053,11 @@ if ($_GET['action']=='discuss')
//mode assignment: previous to show page type
if($row['assignment']==1)
{
$icon_assignment='<img src="../img/wiki/assignment.png" title="'.get_lang('AssignmentDescExtra').'" alt="'.get_lang('AssignmentDescExtra').'" />';
$icon_assignment=Display::return_icon('wiki_assignment.png', get_lang('AssignmentDescExtra'),'',22);
}
elseif($row['assignment']==2)
{
$icon_assignment='<img src="../img/wiki/works.png" title="'.get_lang('AssignmentWorkExtra').'" alt="'.get_lang('AssignmentWorkExtra').'" />';
$icon_assignment=Display::return_icon('wiki_work.png', get_lang('AssignmentWorkExtra'),'',22);
}
@ -2074,13 +2074,13 @@ if ($_GET['action']=='discuss')
{
if (check_addlock_discuss()==1)
{
$addlock_disc= '<img src="../img/wiki/unlock.gif" title="'.get_lang('UnlockDiscussExtra').'" alt="'.get_lang('UnlockDiscussExtra').'" />';
$addlock_disc= Display::return_icon('unlock.png', get_lang('UnlockDiscussExtra'),'',22);
$lock_unlock_disc='unlockdisc';
}
else
{
$addlock_disc= '<img src="../img/wiki/lock.gif" title="'.get_lang('LockDiscussExtra').'" alt="'.get_lang('LockDiscussExtra').'" />';
$addlock_disc= Display::return_icon('lock.png', get_lang('LockDiscussExtra'),'',22);
$lock_unlock_disc='lockdisc';
}
}
@ -2101,12 +2101,12 @@ if ($_GET['action']=='discuss')
//$visibility_disc= '<img src="../img/wiki/invisible.gif" title="'.get_lang('HideDiscussExtra').'" alt="'.get_lang('HideDiscussExtra').'" />';
//}
$visibility_disc= '<img src="../img/wiki/visible.gif" title="'.get_lang('ShowDiscussExtra').'" alt="'.get_lang('ShowDiscussExtra').'" />';
$visibility_disc= Display::return_icon('visible.png', get_lang('ShowDiscussExtra'),'',22);
$hide_show_disc='hidedisc';
}
else
{
$visibility_disc= '<img src="../img/wiki/invisible.gif" title="'.get_lang('HideDiscussExtra').'" alt="'.get_lang('HideDiscussExtra').'" />';
$visibility_disc= Display::return_icon('invisible.png', get_lang('HideDiscussExtra'),'',22);
$hide_show_disc='showdisc';
}
}
@ -2120,12 +2120,12 @@ if ($_GET['action']=='discuss')
{
if (check_ratinglock_discuss()==1)
{
$ratinglock_disc= '<img src="../img/wiki/rating.png" title="'.get_lang('UnlockRatingDiscussExtra').'" alt="'.get_lang('UnlockRatingDiscussExtra').'" />';
$ratinglock_disc= Display::return_icon('star.png', get_lang('UnlockRatingDiscussExtra'),'',22);
$lock_unlock_rating_disc='unlockrating';
}
else
{
$ratinglock_disc= '<img src="../img/wiki/rating_na.gif" title="'.get_lang('LockRatingDiscussExtra').'" alt="'.get_lang('LockRatingDiscussExtra').'" />';
$ratinglock_disc= Display::return_icon('star_na.png', get_lang('LockRatingDiscussExtra'),'',22);
$lock_unlock_rating_disc='lockrating';
}
}
@ -2137,12 +2137,12 @@ if ($_GET['action']=='discuss')
//discussion action: email notification
if (check_notify_discuss($page)==1)
{
$notify_disc= '<img src="../img/wiki/send_mail_checked.gif" title="'.get_lang('NotifyDiscussByEmail').'" alt="'.get_lang('NotifyDiscussByEmail').'" />';
$notify_disc= Display::return_icon('messagebox_info.png', get_lang('NotifyDiscussByEmail'),'',22);
$lock_unlock_notify_disc='unlocknotifydisc';
}
else
{
$notify_disc= '<img src="../img/wiki/send_mail.gif" title="'.get_lang('CancelNotifyDiscussByEmail').'" alt="'.get_lang('CancelNotifyDiscussByEmail').'" />';
$notify_disc= Display::return_icon('mail.png', get_lang('CancelNotifyDiscussByEmail'),'',22);
$lock_unlock_notify_disc='locknotifydisc';
}
echo '<span style="float:right">';
@ -2285,37 +2285,37 @@ if ($_GET['action']=='discuss')
$p_score=$row['p_score'];
switch($p_score){
case 0:
$imagerating='<img src="../img/wiki/rating/stars_0.gif"/>';
$imagerating='<img src="../img/rating/stars_0.gif"/>';
break;
case 1:
$imagerating='<img src="../img/wiki/rating/stars_5.gif"/>';
$imagerating='<img src="../img/rating/stars_5.gif"/>';
break;
case 2:
$imagerating='<img src="../img/wiki/rating/stars_10.gif"/>';
$imagerating='<img src="../img/rating/stars_10.gif"/>';
break;
case 3:
$imagerating='<img src="../img/wiki/rating/stars_15.gif"/>';
$imagerating='<img src="../img/rating/stars_15.gif"/>';
break;
case 4:
$imagerating='<img src="../img/wiki/rating/stars_20.gif"/>';
$imagerating='<img src="../img/rating/stars_20.gif"/>';
break;
case 5:
$imagerating='<img src="../img/wiki/rating/stars_25.gif"/>';
$imagerating='<img src="../img/rating/stars_25.gif"/>';
break;
case 6:
$imagerating='<img src="../img/wiki/rating/stars_30.gif"/>';
$imagerating='<img src="../img/rating/stars_30.gif"/>';
break;
case 7:
$imagerating='<img src="../img/wiki/rating/stars_35.gif"/>';
$imagerating='<img src="../img/rating/stars_35.gif"/>';
break;
case 8:
$imagerating='<img src="../img/wiki/rating/stars_40.gif"/>';
$imagerating='<img src="../img/rating/stars_40.gif"/>';
break;
case 9:
$imagerating='<img src="../img/wiki/rating/stars_45.gif"/>';
$imagerating='<img src="../img/rating/stars_45.gif"/>';
break;
case 10:
$imagerating='<img src="../img/wiki/rating/stars_50.gif"/>';
$imagerating='<img src="../img/rating/stars_50.gif"/>';
break;
}

@ -589,7 +589,8 @@ return true;
//task
echo '<div>&nbsp;</div>';
echo '<div style= "border : 1px dotted; padding:4px; margin-top:20px;">';
echo '<input type="checkbox" value="1" name="checktask" onclick="javascript: if(this.checked){document.getElementById(\'option4\').style.display=\'block\';}else{document.getElementById(\'option4\').style.display=\'none\';}"/>&nbsp;<img src="../img/wiki/task.gif" title="'.get_lang('DefineTask').'" alt="'.get_lang('DefineTask').'"/>'.get_lang('DescriptionOfTheTask').'';
echo '<input type="checkbox" value="1" name="checktask" onclick="javascript: if(this.checked){document.getElementById(\'option4\').style.display=\'block\';}else{document.getElementById(\'option4\').style.display=\'none\';}"/>&nbsp;
'.Display::return_icon('wiki_task.png', get_lang('DefineTask'),'',22).' '.get_lang('DescriptionOfTheTask').'';
echo '&nbsp;&nbsp;&nbsp;<span id="msg_error4" style="display:none;color:red"></span>';
echo '<div id="option4" style="padding:4px; margin:5px; border:1px dotted; display:none;">';
@ -806,18 +807,18 @@ function display_wiki_entry($newtitle)
//assignment mode: identify page type
if($row['assignment']==1)
{
$icon_assignment='<img src="../img/wiki/assignment.png" title="'.get_lang('AssignmentDescExtra').'" alt="'.get_lang('AssignmentDescExtra').'" />';
$icon_assignment=Display::return_icon('wiki_assignment.png', get_lang('AssignmentDescExtra'),'',22);
}
elseif($row['assignment']==2)
{
$icon_assignment='<img src="../img/wiki/works.png" title="'.get_lang('AssignmentWorkExtra').'" alt="'.get_lang('AssignmentWorkExtra').'" />';
$icon_assignment=Display::return_icon('wiki_work.png', get_lang('AssignmentWork'),'',22);
}
//task mode
if (!empty($row['task']))
{
$icon_task='<img src="../img/wiki/task.gif" title="'.get_lang('StandardTask').'" alt="'.get_lang('StandardTask').'" />';
$icon_task=Display::return_icon('wiki_task.png', get_lang('StandardTask'),'',22);
}
//Show page. Show page to all users if isn't hide page. Mode assignments: if student is the author, can view
@ -830,16 +831,16 @@ function display_wiki_entry($newtitle)
{
if (check_protect_page()==1)
{
$protect_page= '<img src="../img/wiki/lock.gif" title="'.get_lang('PageLockedExtra').'" alt="'.get_lang('PageLockedExtra').'" />';
$protect_page= Display::return_icon('lock.png', get_lang('PageLockedExtra'),'',22);
$lock_unlock_protect='unlock';
}
else
{
$protect_page= '<img src="../img/wiki/unlock.gif" title="'.get_lang('PageUnlockedExtra').'" alt="'.get_lang('PageUnlockedExtra').'" />';
$protect_page= Display::return_icon('unlock.png', get_lang('PageUnlockedExtra'),'',22);
$lock_unlock_protect='lock';
}
}
echo '<span style="float:right;padding:4px 3px 4px 3px;">';
echo '<span style="float:right;">';
echo '<a href="index.php?action=showpage&amp;actionpage='.$lock_unlock_protect.'&amp;title='.api_htmlentities(urlencode($page)).'">'.$protect_page.'</a>';
echo '</span>';
@ -853,17 +854,18 @@ function display_wiki_entry($newtitle)
//{
//
// }
$visibility_page= '<img src="../img/wiki/visible.gif" title="'.get_lang('ShowPageExtra').'" alt="'.get_lang('ShowPageExtra').'" />';
$visibility_page= Display::return_icon('visible.png', get_lang('ShowPageExtra'),'',22);
$lock_unlock_visibility='invisible';
}
else
{
$visibility_page= '<img src="../img/wiki/invisible.gif" title="'.get_lang('HidePageExtra').'" alt="'.get_lang('HidePageExtra').'" />';
$visibility_page= Display::return_icon('invisible.png', get_lang('HidePageExtra'),'',22);
$lock_unlock_visibility='visible';
}
}
echo '<span style="float:right;padding:4px 3px 4px 3px;">';
echo '<span style="float:right;">';
echo '<a href="index.php?action=showpage&amp;actionpage='.$lock_unlock_visibility.'&amp;title='.api_htmlentities(urlencode($page)).'">'.$visibility_page.'</a>';
echo '</span>';
@ -871,15 +873,14 @@ function display_wiki_entry($newtitle)
if (api_is_allowed_to_session_edit())
{
if (check_notify_page($page)==1) {
$notify_page= '<img src="../img/wiki/send_mail_checked.gif" title="'.get_lang('NotifyByEmail').'" alt="'.get_lang('NotifyByEmail').'" />';
$notify_page= Display::return_icon('messagebox_info.png', get_lang('NotifyByEmail'),'',22);
$lock_unlock_notify_page='unlocknotify';
} else {
$notify_page= '<img src="../img/wiki/send_mail.gif" title="'.get_lang('CancelNotifyByEmail').'" alt="'.get_lang('CancelNotifyByEmail').'" />';
$notify_page= Display::return_icon('mail.png', get_lang('CancelNotifyByEmail'),'',22);
$lock_unlock_notify_page='locknotify';
}
}
echo '<span style="float:right;padding:4px 3px 4px 3px;">';
echo '<span style="float:right;">';
echo '<a href="index.php?action=showpage&amp;actionpage='.$lock_unlock_notify_page.'&amp;title='.api_htmlentities(urlencode($page)).'">'.$notify_page.'</a>';
echo '</span>';
@ -902,19 +903,19 @@ function display_wiki_entry($newtitle)
echo '<form name="form_export2PDF" method="post" action="index.php">';
echo '<input type="hidden" name="action" value="export_to_pdf">';
echo '<input type="hidden" name="wiki_id" value="'.$row['id'].'">';
echo '<input type="image" src="../img/wiki/wexport2pdf.gif" border ="0" title="'.get_lang('ExportToPDF').'" alt="'.get_lang('ExportToPDF').'" style=" border:none; margin-top: -6px">';
echo '<input type="image" src="../img/icons/22/pdf.png" border ="0" title="'.get_lang('ExportToPDF').'" alt="'.get_lang('ExportToPDF').'" style=" border:none; margin-top: -9px">';
echo '</form>';
echo '</span>';
//page action: copy last version to doc area
if(api_is_allowed_to_edit(false,true) || api_is_platform_admin())
{
echo '<span style="float:right;padding-top:5px;">';
echo '<span style="float:right;">';
echo '<form name="form_export2DOC" method="post" action="index.php" >';
echo '<input type=hidden name="export2DOC" value="export2doc">';
echo '<input type=hidden name="titleDOC" value="'.api_htmlentities($title, ENT_QUOTES, $charset).'">';
echo '<input type=hidden name="contentDOC" value="'.api_htmlentities($content, ENT_QUOTES, $charset).'">';
echo '<input type="image" src="../img/wiki/wexport2doc.png" border ="0" title="'.get_lang('ExportToDocArea').'" alt="'.get_lang('ExportToDocArea').'" style=" border:none; margin-top: -6px">';
echo '<input type="image" src="../img/icons/22/export_to_documents.png" border ="0" title="'.get_lang('ExportToDocArea').'" alt="'.get_lang('ExportToDocArea').'" style=" border:none; margin-top: -6px">';
echo '</form>';
echo '</span>';
}
@ -932,8 +933,8 @@ function display_wiki_entry($newtitle)
}
</script>
<?php
echo '<span style="float:right; padding:4px 3px 4px 3px; cursor: pointer;">';
echo '<img src="../img/wiki/wprint.gif" title="'.get_lang('Print').'" alt="'.get_lang('Print').'" onclick="javascript: goprint();">';
echo '<span style="float:right; cursor: pointer;">';
echo Display::return_icon('printer.png', get_lang('Print'),array('onclick' => "javascript: goprint();"),'22');
echo '</span>';
@ -2051,15 +2052,15 @@ function display_wiki_search_results($search_term, $search_content=0)
//get type assignment icon
if($obj->assignment==1)
{
$ShowAssignment='<img src="../img/wiki/assignment.png" title="'.get_lang('AssignmentDesc').'" alt="'.get_lang('AssignmentDesc').'" />';
$ShowAssignment=Display::return_icon('wiki_assignment.png', get_lang('AssignmentDesc'),'',22);
}
elseif ($obj->assignment==2)
{
$ShowAssignment='<img src="../img/wiki/works.png" title="'.get_lang('AssignmentWork').'" alt="'.get_lang('AssignmentWork').'" />';
$ShowAssignment=Display::return_icon('wiki_work.png', get_lang('AssignmentWork'),'',22);
}
elseif ($obj->assignment==0)
{
$ShowAssignment='<img src="../img/wiki/trans.gif" />';
$ShowAssignment='<img src="../img/px_transparent.gif" />';
}
$row = array ();
@ -2070,9 +2071,10 @@ function display_wiki_search_results($search_term, $search_content=0)
if(api_is_allowed_to_edit(false,true)|| api_is_platform_admin())
{
$showdelete=' <a href="'.api_get_self().'?cidReq='.$_course[id].'&action=delete&title='.api_htmlentities(urlencode($obj->reflink)).'&group_id='.api_htmlentities($_GET['group_id']).'"><img src="../img/delete.gif" title="'.get_lang('Delete').'" alt="'.get_lang('Delete').'" />';
$showdelete=' <a href="'.api_get_self().'?cidReq='.$_course[id].'&action=delete&title='.api_htmlentities(urlencode($obj->reflink)).'&group_id='.api_htmlentities($_GET['group_id']).'">'.Display::return_icon('delete.png', get_lang('Delete'),'',22);
}
$row[] = '<a href="'.api_get_self().'?cidReq='.$_course[id].'&action=edit&title='.api_htmlentities(urlencode($obj->reflink)).'&group_id='.api_htmlentities($_GET['group_id']).'"><img src="../img/lp_quiz.png" title="'.get_lang('EditPage').'" alt="'.get_lang('EditPage').'" /></a> <a href="'.api_get_self().'?cidReq='.$_course[id].'&action=discuss&title='.api_htmlentities(urlencode($obj->reflink)).'&session_id='.api_htmlentities($_GET['session_id']).'&group_id='.api_htmlentities($_GET['group_id']).'"><img src="../img/comment_bubble.gif" title="'.get_lang('Discuss').'" alt="'.get_lang('Discuss').'" /></a> <a href="'.api_get_self().'?cidReq='.$_course[id].'&action=history&title='.api_htmlentities(urlencode($obj->reflink)).'&session_id='.api_htmlentities($_GET['session_id']).'&group_id='.api_htmlentities($_GET['group_id']).'"><img src="../img/history.gif" title="'.get_lang('History').'" alt="'.get_lang('History').'" /></a> <a href="'.api_get_self().'?cidReq='.$_course[id].'&action=links&title='.api_htmlentities(urlencode($obj->reflink)).'&group_id='.api_htmlentities($_GET['group_id']).'"><img src="../img/lp_link.png" title="'.get_lang('LinksPages').'" alt="'.get_lang('LinksPages').'" /></a>'.$showdelete;
$row[] = '<a href="'.api_get_self().'?cidReq='.$_course[id].'&action=edit&title='.api_htmlentities(urlencode($obj->reflink)).'&group_id='.api_htmlentities($_GET['group_id']).'">'.Display::return_icon('edit.png', get_lang('EditPage'),'',22).'</a> <a href="'.api_get_self().'?cidReq='.$_course[id].'&action=discuss&title='.api_htmlentities(urlencode($obj->reflink)).'&session_id='.api_htmlentities($_GET['session_id']).'&group_id='.api_htmlentities($_GET['group_id']).'">
'.Display::return_icon('discuss.png', get_lang('Discuss'),'',22).'</a> <a href="'.api_get_self().'?cidReq='.$_course[id].'&action=history&title='.api_htmlentities(urlencode($obj->reflink)).'&session_id='.api_htmlentities($_GET['session_id']).'&group_id='.api_htmlentities($_GET['group_id']).'">'.Display::return_icon('history.png', get_lang('History'),'',22).'</a> <a href="'.api_get_self().'?cidReq='.$_course[id].'&action=links&title='.api_htmlentities(urlencode($obj->reflink)).'&group_id='.api_htmlentities($_GET['group_id']).'">'.Display::return_icon('what_link_here.png', get_lang('LinksPages'),'',22).'</a>'.$showdelete;
$rows[] = $row;
}
@ -2084,7 +2086,7 @@ function display_wiki_search_results($search_term, $search_content=0)
$table->set_header(1,get_lang('Title'), false);
$table->set_header(2,get_lang('Author').' ('.get_lang('LastVersion').')', false);
$table->set_header(3,get_lang('Date').' ('.get_lang('LastVersion').')', false);
$table->set_header(4,get_lang('Actions'), false, array ('style' => 'width:100px;'));
$table->set_header(4,get_lang('Actions'), false, array ('style' => 'width:130px;'));
$table->display();
}

Loading…
Cancel
Save