Replacing <img> with WEB_IMG_PATH and Display::return_icon see BT#6903

1.10.x
Julio Montoya 11 years ago
parent 8b7c976686
commit 40a01436db
  1. 20
      main/course_description/index.php
  2. 2
      main/document/edit_document.php
  3. 35
      main/document/upload.php
  4. 2
      main/inc/lib/document.lib.php
  5. 2
      main/inc/lib/page.lib.php
  6. 10
      main/inc/lib/statsUtils.lib.inc.php
  7. 18
      main/survey/survey.lib.php
  8. 50
      main/wiki/index.php
  9. 20
      main/wiki/wiki.inc.php

@ -2,7 +2,7 @@
/* For licensing terms, see /license.txt */
/**
* Template (front controller in MVC pattern) used for distpaching to the controllers depend on the current action
* Template (front controller in MVC pattern) used for distpaching to the controllers depend on the current action
* @author Christian Fasanando <christian1827@gmail.com>
* @package chamilo.course_description
*/
@ -10,7 +10,7 @@
// name of the language file that needs to be included
$language_file = array ('course_description', 'accessibility');
// including files
// including files
require_once '../inc/global.inc.php';
$current_course_tool = TOOL_COURSE_DESCRIPTION;
@ -65,28 +65,28 @@ if(intval($description_type) >= 9) $interbreadcrumb[] = array ("url" => "#", "na
$course_description_controller = new CourseDescriptionController();
// distpacher actions to controller
switch ($action) {
case 'listing':
switch ($action) {
case 'listing':
$course_description_controller->listing();
break;
case 'history':
break;
case 'history':
$course_description_controller->listing(true);
break;
case 'add' :
case 'add' :
if (api_is_allowed_to_edit(null,true)) {
$course_description_controller->add();
}
break;
case 'edit' :
case 'edit' :
if (api_is_allowed_to_edit(null,true)) {
$course_description_controller->edit($id, $description_type);
}
break;
case 'delete' :
case 'delete' :
if (api_is_allowed_to_edit(null,true)) {
$course_description_controller->destroy($id);
}
break;
default :
default :
$course_description_controller->listing();
}

@ -42,7 +42,6 @@ var hide_bar = function() {
$("#template_col").hide();
$("#doc_form").removeClass("span9");
$("#doc_form").addClass("span11");
$("#hide_bar_template").css({"background-image" : \'url("../img/hide2.png")\'})
}
$(document).ready(function() {
@ -58,7 +57,6 @@ $(document).ready(function() {
$("#template_col").show();
$("#doc_form").removeClass("span11");
$("#doc_form").addClass("span9");
$(this).css("background-image", \'url("../img/hide0.png")\');
}
);
});

@ -49,27 +49,17 @@ $htmlHeadXtra[] = api_get_jquery_libraries_js(array('jquery-ui', 'jquery-upload'
$htmlHeadXtra[] = '<script>
function check_unzip() {
if(document.upload.unzip.checked){
document.upload.if_exists[0].disabled=true;
document.upload.if_exists[1].checked=true;
document.upload.if_exists[2].disabled=true;
} else {
document.upload.if_exists[0].checked=true;
document.upload.if_exists[0].disabled=false;
document.upload.if_exists[2].disabled=false;
}
}
function advanced_parameters() {
if(document.getElementById(\'options\').style.display == \'none\') {
document.getElementById(\'options\').style.display = \'block\';
document.getElementById(\'img_plus_and_minus\').innerHTML=\'&nbsp;<img style="vertical-align:middle;" src="../img/div_hide.gif" alt="" />&nbsp;'.get_lang('AdvancedParameters').'\';
} else {
document.getElementById(\'options\').style.display = \'none\';
document.getElementById(\'img_plus_and_minus\').innerHTML=\'&nbsp;<img style="vertical-align:middle;" src="../img/div_show.gif" alt="" />&nbsp;'.get_lang('AdvancedParameters').'\';
if (document.upload.unzip.checked){
document.upload.if_exists[0].disabled=true;
document.upload.if_exists[1].checked=true;
document.upload.if_exists[2].disabled=true;
} else {
document.upload.if_exists[0].checked=true;
document.upload.if_exists[0].disabled=false;
document.upload.if_exists[2].disabled=false;
}
}
}
function setFocus(){
$("#title_file").focus();
}
@ -227,12 +217,9 @@ $form->addElement('file', 'file', array(get_lang('File'), $label), 'style="width
$form->addElement('text', 'title', get_lang('Title'), array('size' => '20', 'style' => 'width:300px', 'id' => 'title_file'));
$form->addElement('textarea', 'comment', get_lang('Comment'), 'wrap="virtual" style="width:300px;"');
$advanced = '<a href="javascript://" onclick=" return advanced_parameters()">
<span id="img_plus_and_minus"><div style="vertical-align:top;" >
<img style="vertical-align:middle;" src="../img/div_show.gif" alt="" />&nbsp;'.get_lang('AdvancedParameters').'</div></span></a>';
// Advanced parameters
$form -> addElement('advanced_settings', $advanced);
$form -> addElement('html', '<div id="options" style="display:none">');
$form->addElement('label', null, Display::url(get_lang('AdvancedParameters'), '#', array('id' => 'upload_settings', 'class' => 'advanced_options')));
$form->addElement('html', '<div id="upload_settings_options" style="display:none">');
// Check box options
$form->addElement('checkbox', 'unzip', get_lang('Options'), get_lang('Uncompress'), 'onclick="javascript: check_unzip();" value="1"');

@ -3221,7 +3221,7 @@ class DocumentManager
) {
$img_path = api_get_path(WEB_IMG_PATH);
$img_sys_path = api_get_path(SYS_CODE_PATH).'img/';
$img_sys_path = api_get_path(SYS_IMG_PATH);
$web_code_path = api_get_path(WEB_CODE_PATH);
$return = '';

@ -883,7 +883,7 @@ class PageController
).'" method="post">';
$courses_list_string .= '<input type="hidden" name="sec_token" value="'.$stok.'">';
$courses_list_string .= '<input type="hidden" name="subscribe" value="'.$course['code'].'" />';
$courses_list_string .= '<input type="image" name="unsub" src="main/img/enroll.gif" alt="'.get_lang('Subscribe').'" />'.get_lang('Subscribe').'
$courses_list_string .= '<input type="image" name="unsub" src="'.api_get_path(WEB_IMG_PATH).'enroll.gif" alt="'.get_lang('Subscribe').'" />'.get_lang('Subscribe').'
</form>';
} else {
$courses_list_string .= '<br />'.get_lang('SubscribingNotAllowed');

@ -232,15 +232,15 @@ function makeHitsTable($period_array, $periodTitle, $linkOnPeriod = '???') {
echo "</td>
<td width='60%' style='padding-top: 3px;' align='center'>"
// display hitbar
."<img src='../img/bar_1.gif' width='1' height='12' alt='$periodPiece : $cpt hits &ndash; $pourcent %' />";
."<img src='".api_get_path(WEB_IMG_PATH)."bar_1.gif' width='1' height='12' alt='$periodPiece : $cpt hits &ndash; $pourcent %' />";
if($pourcent != 0)
echo "<img src='../img/bar_1u.gif' width='$barwidth' height='12' alt='$periodPiece : $cpt hits &ndash; $pourcent %' />";
echo "<img src='".api_get_path(WEB_IMG_PATH)."bar_1u.gif' width='$barwidth' height='12' alt='$periodPiece : $cpt hits &ndash; $pourcent %' />";
// display 100% bar
if($pourcent != 100 && $pourcent != 0)
echo "<img src='../img/bar_1m.gif' width='1' height='12' alt='$periodPiece : $cpt hits &ndash; $pourcent %' />";
echo "<img src='".api_get_path(WEB_IMG_PATH)."bar_1m.gif' width='1' height='12' alt='$periodPiece : $cpt hits &ndash; $pourcent %' />";
if($pourcent != 100)
echo "<img src='../img/bar_1r.gif' width='".($maxSize-$barwidth)."' height='12' alt='$periodPiece : $cpt hits &ndash; $pourcent %' />";
echo "<img src='../img/bar_1.gif' width='1' height='12' alt='$periodPiece : $cpt hits &ndash; $pourcent %' />
echo "<img src='".api_get_path(WEB_IMG_PATH)."bar_1r.gif' width='".($maxSize-$barwidth)."' height='12' alt='$periodPiece : $cpt hits &ndash; $pourcent %' />";
echo "<img src='".api_get_path(WEB_IMG_PATH)."bar_1.gif' width='1' height='12' alt='$periodPiece : $cpt hits &ndash; $pourcent %' />
</td>
<td align='center' width='10%'>
$cpt

@ -1985,13 +1985,13 @@ class ch_multiplechoice extends survey_question
).'</td>';
$this->html .= ' <td>';
if ($key < $total_number_of_answers - 1) {
$this->html .= ' <input style="width:22px" type="image" src="../img/icons/22/down.png" value="move_down['.$key.']" name="move_down['.$key.']"/>';
$this->html .= '<input style="width:22px" type="image" src="'.api_get_path(WEB_IMG_PATH).'icons/22/down.png" value="move_down['.$key.']" name="move_down['.$key.']"/>';
}
if ($key > 0) {
$this->html .= ' <input style="width:22px" type="image" src="../img/icons/22/up.png" value="move_up['.$key.']" name="move_up['.$key.']"/>';
$this->html .= '<input style="width:22px" type="image" src="'.api_get_path(WEB_IMG_PATH).'icons/22/up.png" value="move_up['.$key.']" name="move_up['.$key.']"/>';
}
if ($total_number_of_answers > 2) {
$this->html .= ' <input style="width:22px" type="image" src="../img/icons/22/delete.png" value="delete_answer['.$key.']" name="delete_answer['.$key.']"/>';
$this->html .= '<input style="width:22px" type="image" src="'.api_get_path(WEB_IMG_PATH).'icons/22/delete.png" value="delete_answer['.$key.']" name="delete_answer['.$key.']"/>';
}
$this->html .= ' </td>';
$this->html .= ' </tr>';
@ -2096,13 +2096,13 @@ class ch_personality extends survey_question
}
if ($key < $total_number_of_answers - 1) {
$this->html .= ' <input type="image" style="width:22px" src="../img/icons/22/down.png" value="move_down['.$key.']" name="move_down['.$key.']"/>';
$this->html .= ' <input type="image" style="width:22px" src="'.api_get_path(WEB_IMG_PATH).'icons/22/down.png" value="move_down['.$key.']" name="move_down['.$key.']"/>';
}
if ($key > 0) {
$this->html .= ' <input type="image" style="width:22px" src="../img/icons/22/up.png" value="move_up['.$key.']" name="move_up['.$key.']"/>';
$this->html .= ' <input type="image" style="width:22px" src="'.api_get_path(WEB_IMG_PATH).'icons/22/up.png" value="move_up['.$key.']" name="move_up['.$key.']"/>';
}
if ($total_number_of_answers > 2) {
$this->html .= ' <input type="image" style="width:22px" src="../img/icons/22/delete.png" value="delete_answer['.$key.']" name="delete_answer['.$key.']"/>';
$this->html .= ' <input type="image" style="width:22px" src="'.api_get_path(WEB_IMG_PATH).'icons/22/delete.png" value="delete_answer['.$key.']" name="delete_answer['.$key.']"/>';
}
$this->html .= ' </td>';
$this->html .= ' </tr>';
@ -2184,15 +2184,15 @@ class ch_multipleresponse extends survey_question
).'</td>';
$this->html .= ' <td>';
if ($key < $total_number_of_answers - 1) {
$this->html .= ' <input type="image" style="width:22px" src="../img/icons/22/down.png" value="move_down['.$key.']" name="move_down['.$key.']"/>';
$this->html .= ' <input type="image" style="width:22px" src="'.api_get_path(WEB_IMG_PATH).'icons/22/down.png" value="move_down['.$key.']" name="move_down['.$key.']"/>';
}
if ($key > 0) {
$this->html .= ' <input type="image" style="width:22px" src="../img/icons/22/up.png" value="move_up['.$key.']" name="move_up['.$key.']"/>';
$this->html .= ' <input type="image" style="width:22px" src="'.api_get_path(WEB_IMG_PATH).'icons/22/up.png" value="move_up['.$key.']" name="move_up['.$key.']"/>';
}
if ($total_number_of_answers > 2) {
$this->html .= ' <input type="image" style="width:22px" src="../img/icons/22/delete.png" value="delete_answer['.$key.']" name="delete_answer['.$key.']"/>';
$this->html .= ' <input type="image" style="width:22px" src="'.api_get_path(WEB_IMG_PATH).'icons/22/delete.png" value="delete_answer['.$key.']" name="delete_answer['.$key.']"/>';
}
$this->html .= ' </td>';
$this->html .= ' </tr>';

@ -356,10 +356,10 @@ if ( api_is_allowed_to_session_edit(false,true) ) {
if (api_is_allowed_to_edit(false,true) || api_is_platform_admin()) {
// page action: enable or disable the adding of new pages
if (check_addnewpagelock()==0) {
$protect_addnewpage= '<img src="../img/off.png" title="'.get_lang('AddOptionProtected').'" alt="'.get_lang('AddOptionProtected').'" width="8" height="8" />';
$protect_addnewpage= '<img src="'.api_get_path(WEB_IMG_PATH).'off.png" title="'.get_lang('AddOptionProtected').'" alt="'.get_lang('AddOptionProtected').'" width="8" height="8" />';
$lock_unlock_addnew='unlockaddnew';
} else {
$protect_addnewpage= '<img src="../img/on.png" title="'.get_lang('AddOptionUnprotected').'" alt="'.get_lang('AddOptionUnprotected').'" width="8" height="8" />';
$protect_addnewpage= '<img src="'.api_get_path(WEB_IMG_PATH).'on.png" title="'.get_lang('AddOptionUnprotected').'" alt="'.get_lang('AddOptionUnprotected').'" width="8" height="8" />';
$lock_unlock_addnew='lockaddnew';
}
}
@ -1067,7 +1067,7 @@ if ($_GET['action']=='usercontrib') {
} elseif ($obj->assignment==2) {
$ShowAssignment=Display::return_icon('wiki_work.png', get_lang('AssignmentWork'),'',ICON_SIZE_SMALL);
} elseif ($obj->assignment==0) {
$ShowAssignment='<img src="../img/px_transparent.gif" />';
$ShowAssignment='<img src="'.api_get_path(WEB_IMG_PATH).'px_transparent.gif" />';
}
$row = array ();
@ -1126,7 +1126,7 @@ if ($_GET['action']=='mostchanged') {
} elseif ($obj->assignment==2) {
$ShowAssignment=Display::return_icon('wiki_work.png', get_lang('AssignmentWork'),'',ICON_SIZE_SMALL);
} elseif ($obj->assignment==0) {
$ShowAssignment='<img src="../img/px_transparent.gif" />';
$ShowAssignment='<img src="'.api_get_path(WEB_IMG_PATH).'px_transparent.gif" />';
}
$row = array ();
@ -1168,7 +1168,7 @@ if ($_GET['action']=='mvisited') {
} elseif ($obj->assignment==2) {
$ShowAssignment=$ShowAssignment=Display::return_icon('wiki_work.png', get_lang('AssignmentWork'),'',ICON_SIZE_SMALL);
} elseif ($obj->assignment==0) {
$ShowAssignment='<img src="../img/px_transparent.gif" />';
$ShowAssignment='<img src="'.api_get_path(WEB_IMG_PATH).'px_transparent.gif" />';
}
$row = array ();
@ -1299,7 +1299,7 @@ if ($_GET['action']=='orphaned') {
} elseif ($row['assignment']==2) {
$ShowAssignment=Display::return_icon('wiki_work.png','','',ICON_SIZE_SMALL);
} elseif ($row['assignment']==0) {
$ShowAssignment='<img src="../img/px_transparent.gif" />';
$ShowAssignment='<img src="'.api_get_path(WEB_IMG_PATH).'px_transparent.gif" />';
}
}
if (!api_is_allowed_to_edit(false,true) || !api_is_platform_admin() AND $orphaned_visibility==0){
@ -1503,7 +1503,7 @@ if ($_GET['action']=='links') {
} elseif ($row['assignment']==2) {
$ShowAssignment=Display::return_icon('wiki_work.png', get_lang('AssignmentWork'),'',ICON_SIZE_SMALL);
} elseif ($row['assignment']==0) {
$ShowAssignment='<img src="../img/px_transparent.gif" />';
$ShowAssignment='<img src="'.api_get_path(WEB_IMG_PATH).'px_transparent.gif" />';
}
//fix Title to reflink (link Main Page)
@ -1553,7 +1553,7 @@ if ($_GET['action']=='links') {
} elseif ($obj->assignment==2) {
$ShowAssignment=Display::return_icon('wiki_work.png', get_lang('AssignmentWork'),'',ICON_SIZE_SMALL);
} elseif ($obj->assignment==0) {
$ShowAssignment='<img src="../img/px_transparent.gif" />';
$ShowAssignment='<img src="'.api_get_path(WEB_IMG_PATH).'px_transparent.gif" />';
}
$row = array ();
@ -2233,14 +2233,14 @@ if ($_GET['action']=='recentchanges') {
} elseif ($obj->assignment==2) {
$ShowAssignment=Display::return_icon('wiki_work.png', get_lang('AssignmentWork'),'',ICON_SIZE_SMALL);
} elseif ($obj->assignment==0) {
$ShowAssignment='<img src="../img/px_transparent.gif" />';
$ShowAssignment='<img src="'.api_get_path(WEB_IMG_PATH).'px_transparent.gif" />';
}
//get icon task
if (!empty($obj->task)) {
$icon_task=Display::return_icon('wiki_task.png', get_lang('StandardTask'),'',ICON_SIZE_SMALL);
} else {
$icon_task='<img src="../img/px_transparent.gif" />';
$icon_task='<img src="'.api_get_path(WEB_IMG_PATH).'px_transparent.gif" />';
}
@ -2308,14 +2308,14 @@ if ($_GET['action']=='allpages') {
} elseif ($obj->assignment==2) {
$ShowAssignment=Display::return_icon('wiki_work.png', get_lang('AssignmentWork'),'',ICON_SIZE_SMALL);
} elseif ($obj->assignment==0) {
$ShowAssignment='<img src="../img/px_transparent.gif" />';
$ShowAssignment='<img src="'.api_get_path(WEB_IMG_PATH).'px_transparent.gif" />';
}
//get icon task
if (!empty($obj->task)) {
$icon_task=Display::return_icon('wiki_task.png', get_lang('StandardTask'),'',ICON_SIZE_SMALL);
} else {
$icon_task='<img src="../img/px_transparent.gif" />';
$icon_task='<img src="'.api_get_path(WEB_IMG_PATH).'px_transparent.gif" />';
}
$row = array ();
@ -2415,7 +2415,7 @@ if ($_GET['action']=='discuss') {
/// TODO: Fix Mode assignments: If is hidden, show discussion to student only if student is the author
//if(($row['assignment']==2 && $row['visibility_disc']==0 && (api_get_user_id()==$row['user_id']))==false)
//{
//$visibility_disc= '<img src="../img/wiki/invisible.gif" title="'.get_lang('HideDiscussExtra').'" alt="'.get_lang('HideDiscussExtra').'" />';
//$visibility_disc= '<img src="'.api_get_path(WEB_IMG_PATH).'wiki/invisible.gif" title="'.get_lang('HideDiscussExtra').'" alt="'.get_lang('HideDiscussExtra').'" />';
//}
$visibility_disc= Display::return_icon('visible.png', get_lang('ShowDiscussExtra'),'',ICON_SIZE_SMALL);
@ -2574,44 +2574,44 @@ if ($_GET['action']=='discuss') {
$existing_image = $image_path['file'];
$author_photo= '<img src="'.$image_repository.$existing_image.'" alt="'.api_htmlentities($name).'" width="40" height="50" align="top" title="'.api_htmlentities($name).'" />';
} else {
$author_photo= '<img src="'.api_get_path(WEB_CODE_PATH)."img/unknown.jpg".'" alt="'.api_htmlentities($name).'" width="40" height="50" align="top" title="'.api_htmlentities($name).'" />';
$author_photo= '<img src="'.api_get_path(WEB_IMG_PATH)."unknown.jpg".'" alt="'.api_htmlentities($name).'" width="40" height="50" align="top" title="'.api_htmlentities($name).'" />';
}
//stars
$p_score=$row['p_score'];
switch ($p_score) {
case 0:
$imagerating='<img src="../img/rating/stars_0.gif"/>';
$imagerating='<img src="'.api_get_path(WEB_IMG_PATH).'rating/stars_0.gif"/>';
break;
case 1:
$imagerating='<img src="../img/rating/stars_5.gif"/>';
$imagerating='<img src="'.api_get_path(WEB_IMG_PATH).'rating/stars_5.gif"/>';
break;
case 2:
$imagerating='<img src="../img/rating/stars_10.gif"/>';
$imagerating='<img src="'.api_get_path(WEB_IMG_PATH).'rating/stars_10.gif"/>';
break;
case 3:
$imagerating='<img src="../img/rating/stars_15.gif"/>';
$imagerating='<img src="'.api_get_path(WEB_IMG_PATH).'rating/stars_15.gif"/>';
break;
case 4:
$imagerating='<img src="../img/rating/stars_20.gif"/>';
$imagerating='<img src="'.api_get_path(WEB_IMG_PATH).'rating/stars_20.gif"/>';
break;
case 5:
$imagerating='<img src="../img/rating/stars_25.gif"/>';
$imagerating='<img src="'.api_get_path(WEB_IMG_PATH).'rating/stars_25.gif"/>';
break;
case 6:
$imagerating='<img src="../img/rating/stars_30.gif"/>';
$imagerating='<img src="'.api_get_path(WEB_IMG_PATH).'rating/stars_30.gif"/>';
break;
case 7:
$imagerating='<img src="../img/rating/stars_35.gif"/>';
$imagerating='<img src="'.api_get_path(WEB_IMG_PATH).'rating/stars_35.gif"/>';
break;
case 8:
$imagerating='<img src="../img/rating/stars_40.gif"/>';
$imagerating='<img src="'.api_get_path(WEB_IMG_PATH).'rating/stars_40.gif"/>';
break;
case 9:
$imagerating='<img src="../img/rating/stars_45.gif"/>';
$imagerating='<img src="'.api_get_path(WEB_IMG_PATH).'rating/stars_45.gif"/>';
break;
case 10:
$imagerating='<img src="../img/rating/stars_50.gif"/>';
$imagerating='<img src="'.api_get_path(WEB_IMG_PATH).'rating/stars_50.gif"/>';
break;
}

@ -791,12 +791,10 @@ function display_new_wiki_form()
echo '</div>';
echo '</div>';
//to define as an individual assignment
echo '<div style= "border : 1px dotted; padding:4px; margin-top:20px;"><img src="../img/icons/22/wiki_assignment.png" title="'.get_lang(
'CreateAssignmentPage'
).'" alt="'.get_lang('CreateAssignmentPage').'"/>&nbsp;'.get_lang(
'DefineAssignmentPage'
).': <input type="checkbox" name="assignment" value="1"></div>'; // 1= teacher 2 =student
//
echo '<div style= "border : 1px dotted; padding:4px; margin-top:20px;">
<img src="'.api_get_path(WEB_IMG_PATH).'icons/22/wiki_assignment.png" title="'.get_lang('CreateAssignmentPage').'" alt="'.get_lang('CreateAssignmentPage').'"/>&nbsp;'.get_lang('DefineAssignmentPage').':
<input type="checkbox" name="assignment" value="1"></div>';
// 1= teacher 2 =student
echo'</div>';
}
@ -1020,7 +1018,7 @@ 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/icons/22/pdf.png" border ="0" title="'.get_lang(
echo '<input type="image" src="'.api_get_path(WEB_IMG_PATH).'icons/22/pdf.png" border ="0" title="'.get_lang(
'ExportToPDF'
).'" alt="'.get_lang('ExportToPDF').'" style=" width:22px; border:none; margin-top: -9px">';
echo '</form>';
@ -1032,7 +1030,7 @@ function display_wiki_entry($newtitle)
echo '<form name="form_export2DOC" method="post" action="index.php" >';
echo '<input type=hidden name="export2DOC" value="export2doc">';
echo '<input type=hidden name="doc_id" value="'.$row['id'].'">';
echo '<input type="image" src="../img/icons/22/export_to_documents.png" border ="0" title="'.get_lang(
echo '<input type="image" src="'.api_get_path(WEB_IMG_PATH).'icons/22/export_to_documents.png" border ="0" title="'.get_lang(
'ExportToDocArea'
).'" alt="'.get_lang('ExportToDocArea').'" style=" width:22px; border:none; margin-top: -6px">';
echo '</form>';
@ -2080,9 +2078,7 @@ function auto_add_page_users($assignment_type)
$existing_image = $image_path['file'];
$photo = '<img src="'.$image_repository.$existing_image.'" alt="'.$name.'" width="40" height="50" align="top" title="'.$name.'" />';
} else {
$photo = '<img src="'.api_get_path(
WEB_CODE_PATH
)."img/unknown.jpg".'" alt="'.$name.'" width="40" height="50" align="top" title="'.$name.'" />';
$photo = '<img src="'.api_get_path(WEB_IMG_PATH)."unknown.jpg".'" alt="'.$name.'" width="40" height="50" align="top" title="'.$name.'" />';
}
//teacher assignment title
@ -2303,7 +2299,7 @@ function display_wiki_search_results($search_term, $search_content = 0, $all_ver
ICON_SIZE_SMALL
);
} elseif ($obj->assignment == 0) {
$ShowAssignment = '<img src="../img/px_transparent.gif" />';
$ShowAssignment = '<img src="'.api_get_path(WEB_IMG_PATH).'px_transparent.gif" />';
}
$row = array();

Loading…
Cancel
Save