Fixed some old pix paths

This commit is contained in:
moodler 2004-02-16 09:24:14 +00:00
parent c10a04e82d
commit 096b5432a7
5 changed files with 15 additions and 15 deletions

View file

@ -513,9 +513,9 @@ function assignment_print_user_files($assignment, $user) {
$ffurl = "file.php?file=/$filearea/$file"; $ffurl = "file.php?file=/$filearea/$file";
} }
echo "<IMG SRC=\"$CFG->wwwroot/files/pix/$icon\" HEIGHT=16 WIDTH=16 BORDER=0 ALT=\"File\">"; echo "<img src=\"$CFG->pixpath/f/$icon\" height=16 width=16 border=0 alt=\"file\">";
echo "&nbsp;<A TARGET=\"uploadedfile\" HREF=\"$CFG->wwwroot/$ffurl\">$file</A>"; echo "&nbsp;<a target=\"uploadedfile\" href=\"$CFG->wwwroot/$ffurl\">$file</a>";
echo "<BR>"; echo "<br />";
} }
} }
} }

View file

@ -2385,7 +2385,7 @@ function exercise_print_assessment_form($exercise, $assessment = false, $allowch
echo "</TD><TD>". get_string("suggestedgrade", "exercise")."</TD></TR>\n"; echo "</TD><TD>". get_string("suggestedgrade", "exercise")."</TD></TR>\n";
for ($i=0; $i<=$exercise->nelements; $i++) { for ($i=0; $i<=$exercise->nelements; $i++) {
if ($i == intval($error + 0.5)) { if ($i == intval($error + 0.5)) {
echo "<TR><TD ALIGN=\"CENTER\"><IMG SRC=\"../../pix/t/right.gif\"> $i</TD><TD ALIGN=\"CENTER\">{$elements[$i]->maxscore}</TD></TR>\n"; echo "<TR><TD ALIGN=\"CENTER\"><IMG SRC=\"$CFG->pixpath/t/right.gif\"> $i</TD><TD ALIGN=\"CENTER\">{$elements[$i]->maxscore}</TD></TR>\n";
} }
else { else {
echo "<TR><TD ALIGN=\"CENTER\">$i</TD><TD ALIGN=\"CENTER\">{$elements[$i]->maxscore}</TD></TR>\n"; echo "<TR><TD ALIGN=\"CENTER\">$i</TD><TD ALIGN=\"CENTER\">{$elements[$i]->maxscore}</TD></TR>\n";
@ -2981,7 +2981,7 @@ function exercise_print_dual_assessment_form($exercise, $assessment, $submission
echo "</TD><TD>". get_string("suggestedgrade", "exercise")."</TD></TR>\n"; echo "</TD><TD>". get_string("suggestedgrade", "exercise")."</TD></TR>\n";
for ($i=0; $i<=$exercise->nelements; $i++) { for ($i=0; $i<=$exercise->nelements; $i++) {
if ($i == intval($error + 0.5)) { if ($i == intval($error + 0.5)) {
echo "<TR><TD ALIGN=\"CENTER\"><IMG SRC=\"../../pix/t/right.gif\"> $i</TD><TD ALIGN=\"CENTER\">{$elements[$i]->maxscore}</TD></TR>\n"; echo "<TR><TD ALIGN=\"CENTER\"><IMG SRC=\"$CFG->pixpath/t/right.gif\"> $i</TD><TD ALIGN=\"CENTER\">{$elements[$i]->maxscore}</TD></TR>\n";
} }
else { else {
echo "<TR><TD ALIGN=\"CENTER\">$i</TD><TD ALIGN=\"CENTER\">{$elements[$i]->maxscore}</TD></TR>\n"; echo "<TR><TD ALIGN=\"CENTER\">$i</TD><TD ALIGN=\"CENTER\">{$elements[$i]->maxscore}</TD></TR>\n";
@ -3423,7 +3423,7 @@ function exercise_print_dual_assessment_form($exercise, $assessment, $submission
echo "</TD><TD>". get_string("suggestedgrade", "exercise")."</TD></TR>\n"; echo "</TD><TD>". get_string("suggestedgrade", "exercise")."</TD></TR>\n";
for ($i=0; $i<=$exercise->nelements; $i++) { for ($i=0; $i<=$exercise->nelements; $i++) {
if ($i == intval($error + 0.5)) { if ($i == intval($error + 0.5)) {
echo "<TR><TD ALIGN=\"CENTER\"><IMG SRC=\"../../pix/t/right.gif\"> $i</TD><TD ALIGN=\"CENTER\">{$elements[$i]->maxscore}</TD></TR>\n"; echo "<TR><TD ALIGN=\"CENTER\"><IMG SRC=\"$CFG->pixpath/t/right.gif\"> $i</TD><TD ALIGN=\"CENTER\">{$elements[$i]->maxscore}</TD></TR>\n";
} }
else { else {
echo "<TR><TD ALIGN=\"CENTER\">$i</TD><TD ALIGN=\"CENTER\">{$elements[$i]->maxscore}</TD></TR>\n"; echo "<TR><TD ALIGN=\"CENTER\">$i</TD><TD ALIGN=\"CENTER\">{$elements[$i]->maxscore}</TD></TR>\n";
@ -3727,7 +3727,7 @@ function exercise_print_submission_title($exercise, $submission) {
} else { } else {
$ffurl = "file.php?file=/$filearea/$file"; $ffurl = "file.php?file=/$filearea/$file";
} }
return "<IMG SRC=\"$CFG->wwwroot/files/pix/$icon\" HEIGHT=16 WIDTH=16 BORDER=0 ALT=\"File\">". return "<IMG SRC=\"$CFG->pixpath/f/$icon\" HEIGHT=16 WIDTH=16 BORDER=0 ALT=\"File\">".
"&nbsp;<A TARGET=\"uploadedfile\" HREF=\"$CFG->wwwroot/$ffurl\">$submission->title</A>"; "&nbsp;<A TARGET=\"uploadedfile\" HREF=\"$CFG->wwwroot/$ffurl\">$submission->title</A>";
} }
} }

View file

@ -1641,7 +1641,7 @@ function forum_print_attachments($post, $return=NULL) {
} else { } else {
$ffurl = "file.php?file=/$filearea/$file"; $ffurl = "file.php?file=/$filearea/$file";
} }
$image = "<img border=0 src=\"$CFG->wwwroot/files/pix/$icon\" height=16 width=16 alt=\"$strpopupwindow\">"; $image = "<img border=\"0\" src=\"$CFG->pixpath/f/$icon\" height=\"16\" width=\"16\" alt=\"$strpopupwindow\">";
if ($return == "html") { if ($return == "html") {
$output .= "<a href=\"$CFG->wwwroot/$ffurl\">$image</a> "; $output .= "<a href=\"$CFG->wwwroot/$ffurl\">$image</a> ";

View file

@ -568,7 +568,7 @@ function glossary_print_entry_icons($course, $cm, $glossary, $entry,$mode="",$ho
if ( $entry->sourceglossaryid ) { if ( $entry->sourceglossaryid ) {
$icon = "minus.gif"; // graphical metaphor (minus) for deleting an imported entry $icon = "minus.gif"; // graphical metaphor (minus) for deleting an imported entry
} else { } else {
$icon = "../../pix/t/delete.gif"; $icon = "$CFG->pixpath/t/delete.gif";
} }
// Exported entries can be updated/deleted only by teachers in the main glossary // Exported entries can be updated/deleted only by teachers in the main glossary
@ -577,7 +577,7 @@ function glossary_print_entry_icons($course, $cm, $glossary, $entry,$mode="",$ho
$return .= $icon; $return .= $icon;
$return .= "\" height=11 width=11 border=0></a> "; $return .= "\" height=11 width=11 border=0></a> ";
$return .= " <a title=\"" . get_string("edit") . "\" href=\"edit.php?id=$cm->id&e=$entry->id&mode=$mode&hook=$hook\"><img src=\"../../pix/t/edit.gif\" height=11 width=11 border=0></a>"; $return .= " <a title=\"" . get_string("edit") . "\" href=\"edit.php?id=$cm->id&e=$entry->id&mode=$mode&hook=$hook\"><img src=\"$CFG->pixpath/t/edit.gif\" height=11 width=11 border=0></a>";
} elseif ( $importedentry ) { } elseif ( $importedentry ) {
$return .= " <font size=-1>" . get_string("exportedentry","glossary") . "</font>"; $return .= " <font size=-1>" . get_string("exportedentry","glossary") . "</font>";
} }
@ -981,7 +981,7 @@ function glossary_print_attachments($entry, $return=NULL, $align="left") {
} else { } else {
$ffurl = "file.php?file=/$filearea/$file"; $ffurl = "file.php?file=/$filearea/$file";
} }
$image = "<img border=0 src=\"$CFG->wwwroot/files/pix/$icon\" height=16 width=16 alt=\"$strpopupwindow\">"; $image = "<img border=0 src=\"$CFG->pixpath/f/$icon\" height=16 width=16 alt=\"$strpopupwindow\">";
if ($return == "html") { if ($return == "html") {
$output .= "<a target=_image href=\"$CFG->wwwroot/$ffurl\">$image</a> "; $output .= "<a target=_image href=\"$CFG->wwwroot/$ffurl\">$image</a> ";
@ -1440,11 +1440,11 @@ function glossary_print_comment($course, $cm, $glossary, $entry, $comment) {
echo "<div align=right><p align=right>"; echo "<div align=right><p align=right>";
if ( (time() - $comment->timemodified < $CFG->maxeditingtime and $USER->id == $comment->userid) or isteacher($course->id) ) { if ( (time() - $comment->timemodified < $CFG->maxeditingtime and $USER->id == $comment->userid) or isteacher($course->id) ) {
echo "<a href=\"comment.php?id=$cm->id&eid=$entry->id&cid=$comment->id&action=edit\"><img echo "<a href=\"comment.php?id=$cm->id&eid=$entry->id&cid=$comment->id&action=edit\"><img
alt=\"" . get_string("edit") . "\" src=\"../../pix/t/edit.gif\" height=11 width=11 border=0></a> "; alt=\"" . get_string("edit") . "\" src=\"$CFG->pixpath/t/edit.gif\" height=11 width=11 border=0></a> ";
} }
if ( $USER->id == $comment->userid or isteacher($course->id) ) { if ( $USER->id == $comment->userid or isteacher($course->id) ) {
echo "<a href=\"comment.php?id=$cm->id&eid=$entry->id&cid=$comment->id&action=delete\"><img echo "<a href=\"comment.php?id=$cm->id&eid=$entry->id&cid=$comment->id&action=delete\"><img
alt=\"" . get_string("delete") . "\" src=\"../../pix/t/delete.gif\" height=11 width=11 border=0></a>"; alt=\"" . get_string("delete") . "\" src=\"$CFG->pixpath/t/delete.gif\" height=11 width=11 border=0></a>";
} }
echo "</p>"; echo "</p>";

View file

@ -3033,7 +3033,7 @@ function workshop_print_assessment($workshop, $assessment = false, $allowchanges
} }
for ($i=0; $i<=$workshop->nelements; $i++) { for ($i=0; $i<=$workshop->nelements; $i++) {
if ($i == $negativecount) { if ($i == $negativecount) {
echo "<TR><TD ALIGN=\"CENTER\"><IMG SRC=\"../../pix/t/right.gif\"> $i</TD><TD ALIGN=\"CENTER\">{$elements[$i]->maxscore}</TD></TR>\n"; echo "<TR><TD ALIGN=\"CENTER\"><IMG SRC=\"$CFG->pixpath/t/right.gif\"> $i</TD><TD ALIGN=\"CENTER\">{$elements[$i]->maxscore}</TD></TR>\n";
} }
else { else {
echo "<TR><TD ALIGN=\"CENTER\">$i</TD><TD ALIGN=\"CENTER\">{$elements[$i]->maxscore}</TD></TR>\n"; echo "<TR><TD ALIGN=\"CENTER\">$i</TD><TD ALIGN=\"CENTER\">{$elements[$i]->maxscore}</TD></TR>\n";
@ -3489,7 +3489,7 @@ function workshop_print_submission_title($workshop, $submission) {
} else { } else {
$ffurl = "file.php?file=/$filearea/$file"; $ffurl = "file.php?file=/$filearea/$file";
} }
return "<IMG SRC=\"$CFG->wwwroot/files/pix/$icon\" HEIGHT=16 WIDTH=16 BORDER=0 ALT=\"File\">". return "<IMG SRC=\"$CFG->pixpath/f/$icon\" HEIGHT=16 WIDTH=16 BORDER=0 ALT=\"File\">".
"&nbsp;<A TARGET=\"uploadedfile$submission->id\" HREF=\"$CFG->wwwroot/$ffurl\">$submission->title</A>"; "&nbsp;<A TARGET=\"uploadedfile$submission->id\" HREF=\"$CFG->wwwroot/$ffurl\">$submission->title</A>";
} }
} }