$string['survey:participate'] = 'Respond to survey';
$string['survey:readresponses'] = 'View responses';
$string['surveycompleted'] = 'You\'ve completed this survey. The graph below shows a summary of your results compared to the class averages.';
+$string['surveygraph'] = 'Survey graph';
$string['surveyname'] = 'Survey name';
$string['surveysaved'] = 'Survey saved';
$string['surveytype'] = 'Survey type';
.$this->field->id.'_filename" id="field_'.$this->field->id.'_filename" value="'.$description.'" /><br />';
$str .= '<input type="hidden" name="MAX_FILE_SIZE" value="'.$this->field->param3.'" />';
if ($filepath){
- $str .= '<img width="'.$this->previewwidth.'" height="'.$this->previewheight.'" src="'.$filepath.'" />';
+ $str .= '<img width="'.$this->previewwidth.'" height="'.$this->previewheight.'" src="'.$filepath.'" alt="" />';
}
$str .= '</div>';
return $str;
echo '<tr>';
echo '<td>';
if (!empty($preset->screenshot)) {
- echo '<img width="150" class="presetscreenshot" src="'.$preset->screenshot.'" />';
+ echo '<img width="150" class="presetscreenshot" src="'.$preset->screenshot.'" alt="'.get_string('screenshot').'" />';
}
echo '</td><td>'.$preset->name;
if (!empty($preset->userid)) {
} else {
$ffurl = "file.php?file=/$filearea/$file";
}
- return "<img src=\"$CFG->pixpath/f/$icon\" height=\"16\" width=\"16\" border=\"0\" alt=\"File\" />".
+ return "<img src=\"$CFG->pixpath/f/$icon\" height=\"16\" width=\"16\" border=\"0\" alt=\"".get_string('file')."\" />".
" <a target=\"uploadedfile\" href=\"$CFG->wwwroot/$ffurl\">$submission->title</a>";
}
}
print_heading(format_string(get_string('commentson','glossary')." <b>\"$entry->concept\"</b>"));
if ($glossary->allowcomments || has_capability('mod/glossary:managecomments', $context)) {
- print_heading("<a href=\"comment.php?action=add&eid=$entry->id\">$straddcomment</a> <img title=\"$straddcomment\" src=\"comment.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"\" />");
+ print_heading("<a href=\"comment.php?action=add&eid=$entry->id\">$straddcomment <img title=\"$straddcomment\" src=\"comment.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"$straddcomment\" /></a>");
}
if ($comments = get_records("glossary_comments","entryid",$entry->id,"timemodified ASC")) {
$recformat = get_record('glossary_formats','id',$formatid);
echo '<tr>';
echo '<td>' . $formatname . '</td>';
- $eicon = "<a title=\"" . get_string("edit") . "\" href=\"$CFG->wwwroot/mod/glossary/formats.php?id=$formatid&mode=edit\"><img border=\"0\" src=\"../pix/t/edit.gif\" alt=\"\" /></a>";
+ $eicon = "<a title=\"" . get_string("edit") . "\" href=\"$CFG->wwwroot/mod/glossary/formats.php?id=$formatid&mode=edit\"><img border=\"0\" src=\"../pix/t/edit.gif\" alt=\"".get_string("edit")."\" /></a>";
if ( $recformat->visible ) {
$vtitle = get_string("hide");
$vicon = "hide.gif";
$vtitle = get_string("show");
$vicon = "show.gif";
}
- $vicon = "<a title=\"" . $vtitle . "\" href=\"$CFG->wwwroot/mod/glossary/formats.php?id=$formatid&mode=visible\"><img border=\"0\" src=\"../pix/t/" . $vicon . "\" alt=\"\" /></a>";
+ $vicon = "<a title=\"" . $vtitle . "\" href=\"$CFG->wwwroot/mod/glossary/formats.php?id=$formatid&mode=visible\"><img border=\"0\" src=\"../pix/t/" . $vicon . "\" alt=\"$vtitle\" /></a>";
echo '<td align="center" nowrap="nowrap">' . $eicon . ' ' . $vicon . '</td>';
echo '</tr>';
$output = true;
$return .= " <a title=\"" . get_string("delete") . "\" href=\"deleteentry.php?id=$cm->id&mode=delete&entry=$entry->id&prevmode=$mode&hook=$hook\"><img src=\"";
$return .= $icon;
- $return .= "\" height=\"11\" width=\"11\" border=\"0\" alt=\"\" /></a> ";
+ $return .= "\" height=\"11\" width=\"11\" border=\"0\" alt=\"" . get_string("delete") . "\" /></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\" alt=\"\" /></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\" alt=\"" . get_string("edit") . "\" /></a>";
} elseif ( $importedentry ) {
$return .= " <font size=\"-1\">" . get_string("exportedentry","glossary") . "</font>";
}
if ($insidetable) {
echo '<table class="glossaryapproval" align="'.$align.'"><tr><td align="'.$align.'">';
}
- echo '<a title="'.get_string('approve','glossary').'" href="approve.php?id='.$cm->id.'&eid='.$entry->id.'&mode='.$mode.'"><img align="'.$align.'" src="check.gif" border="0" width="34" height="34" alt="" /></a>';
+ echo '<a title="'.get_string('approve','glossary').'" href="approve.php?id='.$cm->id.'&eid='.$entry->id.'&mode='.$mode.'"><img align="'.$align.'" src="check.gif" border="0" width="34" height="34" alt="'.get_string('approve','glossary').'" /></a>';
if ($insidetable) {
echo '</td></tr></table>';
}
$printicon = '';
if ( $isuserframe and $mode != 'search') {
if (has_capability('mod/glossary:manageentries', $context) or $glossary->allowprintview) {
- $printicon = " <a title =\"". get_string("printerfriendly","glossary") . "\" alt =\"". get_string("printerfriendly","glossary") . "\" target=\"printview\" href=\"print.php?id=$cm->id&mode=$mode&hook=$hook&sortkey=$sortkey&sortorder=$sortorder&offset=$offset\"><img border=\"0\" src=\"print.gif\" alt=\"\" /></a>";
+ $printicon = " <a title =\"". get_string("printerfriendly","glossary") . "\" alt =\"". get_string("printerfriendly","glossary") . "\" target=\"printview\" href=\"print.php?id=$cm->id&mode=$mode&hook=$hook&sortkey=$sortkey&sortorder=$sortorder&offset=$offset\"><img border=\"0\" src=\"print.gif\" alt=\"". get_string("printerfriendly","glossary") . "\" /></a>";
}
}
print_heading(format_string($glossary->name).$printicon);
// Show the zoom boxes
if ($displaysection==$hotpot->section) {
$strshowall = get_string('showall'.$course->format);
- $printsection .= '<br /><a href="index.php?id='.$course->id.'§ion=all" title="'.$strshowall.'"><img src="'.$CFG->pixpath.'/i/all.gif" height=25 width=16 border=0></a><br />';
+ $printsection .= '<br /><a href="index.php?id='.$course->id.'§ion=all" title="'.$strshowall.'"><img src="'.$CFG->pixpath.'/i/all.gif" height=25 width=16 border=0 alt="'.$strshowall.'"></a><br />';
} else {
$strshowone = get_string('showonly'.preg_replace('|s$|', '', $course->format, 1), '', $hotpot->section);
- $printsection .= '<br /><a href="index.php?id='.$course->id.'§ion='.$hotpot->section.'" title="'.$strshowone.'"><img src="'.$CFG->pixpath.'/i/one.gif" height=16 width=16 border=0></a><br />';
+ $printsection .= '<br /><a href="index.php?id='.$course->id.'§ion='.$hotpot->section.'" title="'.$strshowone.'"><img src="'.$CFG->pixpath.'/i/one.gif" height=16 width=16 border=0 alt="'.$strshowone.'"></a><br />';
}
}
}
$strname = get_string("name");
$strsize = get_string("size");
$strmodified = get_string("modified");
+ $strfolder = get_string("folder");
+ $strfile = get_string("file");
echo '<table cellpadding="4" cellspacing="1" class="files">';
- echo "<tr><th colspan=\"2\" class=\"header name\">$strname</th>".
+ echo "<tr><th class=\"header name\">$strname</th>".
"<th align=\"right\" colspan=\"2\" class=\"header size\">$strsize</th>".
"<th align=\"right\" class=\"header date\">$strmodified</th>".
"</tr>";
}
if ($icon == 'folder.gif') {
- echo '<tr class="folder"><td>';
- echo "<img src=\"$CFG->pixpath/f/$icon\" width=\"16\" height=\"16\" alt=\"\"/>";
- echo '</td>';
+ echo '<tr class="folder">';
echo '<td nowrap="nowrap" class="name">';
- echo "<a href=\"view.php?id={$cm->id}&subdir=$subdir/$file\">$file</a>";
+ echo "<a href=\"view.php?id={$cm->id}&subdir=$subdir/$file\">";
+ echo "<img src=\"$CFG->pixpath/f/$icon\" width=\"16\" height=\"16\" alt=\"$strfolder\" /> $file</a>";
} else {
- echo '<tr class="file"><td>';
- echo "<img src=\"$CFG->pixpath/f/$icon\" width=\"16\" height=\"16\" alt=\"\"/>";
- echo '</td>';
+ echo '<tr class="file">';
echo '<td nowrap="nowrap" class="name">';
- link_to_popup_window($relativeurl, "resourcedirectory{$resource->id}", "$file", 450, 600, '');
+ link_to_popup_window($relativeurl, "resourcedirectory{$resource->id}", "<img src=\"$CFG->pixpath/f/$icon\" width=\"16\" height=\"16\" alt=\"$strfile\" /> $file", 450, 600, '');
}
echo '</td>';
echo '<td> </td>';
</tr>
<tr valign="top">
<td align="right" nowrap="nowrap">
- <img src="<?php echo $CFG->wwwroot.'/mod/resource/type/repository/hive/hp-footer-hive-powered.gif' ?>" align="top" />
+ <img src="<?php echo $CFG->wwwroot.'/mod/resource/type/repository/hive/hp-footer-hive-powered.gif' ?>" align="top" alt="" />
</td>
<td>
<?php
if (($nextsco !== false) && ($sco->parent != $nextsco->parent) && (($level==0) || (($level>0) && ($nextsco->parent == $sco->identifier)))) {
$sublist++;
} else {
- $report .= '<img src="'.$scormpixdir.'/spacer.gif" />';
+ $report .= '<img src="'.$scormpixdir.'/spacer.gif" alt="" />';
}
if ($sco->launch) {
} else {
echo "<img height=\"$SURVEY_GHEIGHT\" width=\"$SURVEY_GWIDTH\" border=\"1\"".
- " src=\"$CFG->wwwroot/mod/survey/graph.php?$url\" alt=\"\" />";
+ " src=\"$CFG->wwwroot/mod/survey/graph.php?$url\" alt=\"".get_string("surveygraph", "survey")."\" />";
}
}
}
echo "<tr><td><b>".get_string("attachment", "workshop")." $n:</b> \n";
echo "<img src=\"$CFG->pixpath/f/$icon\" height=\"16\" width=\"16\"
- border=\"0\" alt=\"File\" />".
+ border=\"0\" alt=\"".get_string('file')."\" />".
" <a target=\"uploadedfile\" href=\"$CFG->wwwroot/$ffurl\">$file</a></td></tr>";
$n++;
}
$ffurl = "file.php?file=/$filearea/$file";
}
echo "<tr><td>".get_string("attachment", "workshop")." $n: <img src=\"$CFG->pixpath/f/$icon\"
- height=\"16\" width=\"16\" border=\"0\" alt=\"File\" />".
+ height=\"16\" width=\"16\" border=\"0\" alt=\"".get_string('file')."\" />".
" <a target=\"uploadedfile\" href=\"$CFG->wwwroot/$ffurl\">$file</a></td></tr>\n";
}
} else {