}
function create_item($visiblename,$link,$icon) {
- $this->tempcontent .= '<a href="' . $link . '"><img src="' . $icon . '" border="0" alt="" /> ' . $visiblename . '</a><br />' . "\n";
+ $this->tempcontent .= '<a href="' . $link . '"><img src="' . $icon . '" alt="" /> ' . $visiblename . '</a><br />' . "\n";
}
function get_content() {
</tr>
<tr>
<td><input name="LOANAMOUNT" id="LOANAMOUNT" size="17" /></td>
- <td><a href="JavaScript:comp(\'pv\');"><img src="'.$calc.'" alt="calculate" border="0" /></a></td>
+ <td><a href="JavaScript:comp(\'pv\');"><img src="'.$calc.'" alt="calculate" /></a></td>
</tr>
<tr>
<td colspan="2">'.get_string('repaymentamount','block_loancalc').'</td>
</tr>
<tr>
<td><input name="LOANREPAYMENT" id="LOANREPAYMENT" size="17" /></td>
- <td><a href="JavaScript:comp(\'pmt\');"><img src="'.$calc.'" alt="calculate" border="0" /></a></td>
+ <td><a href="JavaScript:comp(\'pmt\');"><img src="'.$calc.'" alt="calculate" /></a></td>
</tr>
<tr>
<td colspan="2">'.get_string('loanterm','block_loancalc').'</td>
</tr>
<tr>
<td><input name="LOANTERM" id="LOANTERM" size="17" /></td>
- <td><a href="JavaScript:comp(\'np\');"><img src="'.$calc.'" alt="calculate" border="0" /></a></td>
+ <td><a href="JavaScript:comp(\'np\');"><img src="'.$calc.'" alt="calculate" /></a></td>
</tr>
<tr>
<td colspan="2">'.get_string('interestrate','block_loancalc').'</td>
'&'.$LAMSCONSTANTS->param_hash.'='.$hash.
'&'.$LAMSCONSTANTS->param_courseid.'='.$course->id;
echo '<div style="text-align: right"><td align="right">';
- //echo '<a target="popup" title="Open Author" href="../help.php?module=moodle&file=resource/types.html"><span class="helplink"><img height="17" width="17" alt="Open Author" src="../pix/help.gif" /></span></a>';
+ //echo '<a target="popup" title="Open Author" href="../help.php?module=moodle&file=resource/types.html"><span class="helplink"><img class="iconhelp" alt="Open Author" src="../pix/help.gif" /></span></a>';
print_simple_box_start('right');
echo '<a target="LAMS Author" title="LAMS Author" href="'.$author_url.'">'.get_string("openauthor", "lams").'</a>';
print_simple_box_end();
'&'.$LAMSCONSTANTS->param_hash.'='.$hash.
'&'.$LAMSCONSTANTS->param_courseid.'='.$course->id;
- //echo '<a target="popup" title="Open Monitor" href="../help.php?module=moodle&file=resource/types.html"><span class="helplink"><img height="17" width="17" alt="Open Monitor" src="../pix/help.gif" /></span></a>';
+ //echo '<a target="popup" title="Open Monitor" href="../help.php?module=moodle&file=resource/types.html"><span class="helplink"><img class="iconhelp" alt="Open Monitor" src="../pix/help.gif" /></span></a>';
print_simple_box_start('right');
echo '<a target="LAMS Monitor" title="LAMS Monitor" href="'.$monitor_url.'">'.get_string("openmonitor", "lams").'</a>';
print_simple_box_end();
// checks whether user can update course settings
if (has_capability('moodle/course:update', $coursecontext)) {
echo "<a title=\"".get_string("settings")."\" href=\"$CFG->wwwroot/course/edit.php?id=$course->id\"><img".
- " src=\"$pixpath/t/edit.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"".get_string("settings")."\"></a> ";
+ " src=\"$pixpath/t/edit.gif\" class=\"iconsmall\" alt=\"".get_string("settings")."\"></a> ";
}
// checks whether user can do role assignment
// checks whether user can delete course
if (has_capability('moodle/course:delete', $coursecontext)) {
echo "<a title=\"".get_string("delete")."\" href=\"delete.php?id=$course->id\"><img".
- " src=\"$pixpath/t/delete.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"".get_string("delete")."\"></a> ";
+ " src=\"$pixpath/t/delete.gif\" class=\"iconsmall\" alt=\"".get_string("delete")."\"></a> ";
}
// checks whether user can change visibility
if (has_capability('moodle/course:visibility', $coursecontext)) {
if (!empty($course->visible)) {
echo "<a title=\"".get_string("hide")."\" href=\"search.php?search=$encodedsearch&perpage=$perpage&page=$page&hide=$course->id&sesskey=$USER->sesskey\"><img".
- " src=\"$pixpath/t/hide.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"".get_string("hide")."\"></a> ";
+ " src=\"$pixpath/t/hide.gif\" class=\"iconsmall\" alt=\"".get_string("hide")."\"></a> ";
} else {
echo "<a title=\"".get_string("show")."\" href=\"search.php?search=$encodedsearch&perpage=$perpage&page=$page&show=$course->id&sesskey=$USER->sesskey\"><img".
- " src=\"$pixpath/t/show.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"".get_string("show")."\"></a> ";
+ " src=\"$pixpath/t/show.gif\" class=\"iconsmall\" alt=\"".get_string("show")."\"></a> ";
}
}
// checks whether user can do site backup
if (has_capability('moodle/site:backup', $coursecontext)) {
echo "<a title=\"".get_string("backup")."\" href=\"../backup/backup.php?id=$course->id\"><img".
- " src=\"$pixpath/t/backup.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"".get_string("backup")."\"></a> ";
+ " src=\"$pixpath/t/backup.gif\" class=\"iconsmall\" alt=\"".get_string("backup")."\"></a> ";
}
// checks whether user can do restore
if (has_capability('moodle/site:restore', $coursecontext)) {
echo "<a title=\"".get_string("restore")."\" href=\"../files/index.php?id=$course->id&wdir=/backupdata\"><img".
- " src=\"$pixpath/t/restore.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"".get_string("restore")."\"></a> ";
+ " src=\"$pixpath/t/restore.gif\" class=\"iconsmall\" alt=\"".get_string("restore")."\"></a> ";
}
echo "</td></tr>";
$output = "";
$origtex = $tex;
+ $style = 'style="border:0px; vertical-align:'.$align.';';
if ($tex) {
$tex = str_replace('&','&',$tex);
$tex = str_replace('<','<',$tex);
$title = "title=\"$tex\"";
}
if ($height) {
- $height = "height=\"$height\"";
+ $style .= " height:{$height}px;";
}
if ($width) {
- $width = "width=\"$width\"";
+ $style .= " width:{$width}px;";
}
+ $style .= '"';
if ($imagefile) {
if (!file_exists("$CFG->dataroot/$CFG->algebrafilterdir/$imagefile") && has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM, SITEID))) {
$output .= "<a href=\"$CFG->wwwroot/$CFG->algebrafilterdir/algebradebug.php\">";
$output .= urlencode($tex) . "', 'popup', 'menubar=0,location=0,scrollbars,";
$output .= "resizable,width=300,height=240', 0);\">";
}
- $output .= "<img border=\"0\" $title $height $width alt=\"".s($origtex)."\" src=\"";
+ $output .= "<img $title alt=\"".s($origtex)."\" src=\"";
if ($CFG->slasharguments) { // Use this method if possible for better caching
$output .= "$CFG->wwwroot/$CFG->algebrafilterdir/pix.php/$imagefile";
} else {
$output .= "$CFG->wwwroot/$CFG->algebrafilterdir/pix.php?file=$imagefile";
}
- $output .= "\" style=\"vertical-align:$align\" />";
+ $output .= "\" $style />";
$output .= "</a>";
} else {
$output .= "Error: must pass URL or course";
$output = "";
$origtex = $tex;
+ $style = 'style="border:0px; vertical-align:'.$align.';';
if ($tex) {
$tex = str_replace('&','&',$tex);
$tex = str_replace('<','<',$tex);
$title = "title=\"$tex\"";
}
if ($height) {
- $height = "height=\"$height\"";
+ $style .= " height:{$height}px;";
}
if ($width) {
- $width = "width=\"$width\"";
+ $style .= " width:{$width}px;";
}
+ $style .= '"';
if ($imagefile) {
if (!file_exists("$CFG->dataroot/$CFG->texfilterdir/$imagefile") && has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM, SITEID))) {
$output .= "<a href=\"$CFG->wwwroot/$CFG->texfilterdir/texdebug.php\">";
$output .= urlencode($tex) . "', 'popup', 'menubar=0,location=0,scrollbars,";
$output .= "resizable,width=300,height=240', 0);\">";
}
- $output .= "<img class=\"texrender\" border=\"0\" $title $height $width alt=\"".s($origtex)."\" src=\"";
+ $output .= "<img class=\"texrender\" $title alt=\"".s($origtex)."\" src=\"";
if ($CFG->slasharguments) { // Use this method if possible for better caching
$output .= "$CFG->wwwroot/$CFG->texfilterdir/pix.php/$imagefile";
} else {
$output .= "$CFG->wwwroot/$CFG->texfilterdir/pix.php?file=$imagefile";
}
- $output .= "\" style=\"vertical-align:$align\" />";
+ $output .= "\" $style />";
$output .= "</a>";
} else {
$output .= "Error: must pass URL or course";
echo '<div id="mssql" name="mssql">' . get_string('databasesettingssub_mssql', 'install');
/// Link to mssql installation page
echo '<p align="right"><a href="http://docs.moodle.org/en/Installing_MSSQL_for_PHP" target="_blank">';
- echo '<img src="' . $INSTALL['wwwrootform'] . '/pix/docs.gif' . '" alt="Docs" border="0" />';
+ echo '<img src="' . $INSTALL['wwwrootform'] . '/pix/docs.gif' . '" alt="Docs" class="iconhelp" />';
echo get_string('moodledocslink', 'install') . '</a></p>';
echo '</div>';
echo '<div id="odbc_mssql" name="odbc_mssql">'. get_string('databasesettingssub_odbc_mssql', 'install');
/// Link to mssql installation page
echo '<p align="right"><a href="http://docs.moodle.org/en/Installing_MSSQL_for_PHP" target="_blank">';
- echo '<img src="' . $INSTALL['wwwrootform'] . '/pix/docs.gif' . '" alt="Docs" border="0" />';
+ echo '<img src="' . $INSTALL['wwwrootform'] . '/pix/docs.gif' . '" alt="Docs" class="iconhelp" />';
echo get_string('moodledocslink', 'install') . '</a></p>';
echo '</div>';
echo '<div id="oci8po" name="oci8po">' . get_string('databasesettingssub_oci8po', 'install');
/// Link to oracle installation page
echo '<p align="right"><a href="http://docs.moodle.org/en/Installing_Oracle_for_PHP" target="_blank">';
- echo '<img src="' . $INSTALL['wwwrootform'] . '/pix/docs.gif' . '" alt="Docs" border="0" />';
+ echo '<img src="' . $INSTALL['wwwrootform'] . '/pix/docs.gif' . '" alt="Docs" class="iconhelp" />';
echo get_string('moodledocslink', 'install') . '</a></p>';
echo '</div>';
} else {
$title = get_string('help');
}
echo "<a href=\"javascript: void(0)\">";
- echo "<img src=\"./pix/help.gif\" height=\"17\" width=\"17\" alt=\"$title\"";
- echo "border=\"0\" align=\"middle\" title=\"$title\" ";
+ echo "<img src=\"./pix/help.gif\" class=\"iconhelp\" alt=\"$title\" title=\"$title\" ";
echo "onClick=\"return window.open('$url', 'Help', 'menubar=0,location=0,scrollbars,resizable,width=500,height=400')\">";
echo "</a>\n";
}
<blockquote>
<p> <img src="../pix/i/edit.gif" /> - the <strong>edit icon</strong>
lets you edit whatever it is next to.</p>
- <p><img src="../pix/help.gif" width="22" height="17" /> - the <strong>help
+ <p><img src="../pix/help.gif" class="iconhelp" /> - the <strong>help
icon</strong> will provide you with a <a target="helpwindow" href="../help.php?file=index.html">popup help window</a></p>
- <p> <img src="../pix/i/hide.gif" width="16" height="16" /> - the <strong>open-eye
+ <p> <img src="../pix/i/hide.gif" class="icon" /> - the <strong>open-eye
icon</strong> will let you hide something from students</p>
- <p> <img src="../pix/i/show.gif" width="16" height="16" /> - the <strong>closed-eye
+ <p> <img src="../pix/i/show.gif" class="icon" /> - the <strong>closed-eye
icon</strong> will make a hidden item available</p>
</blockquote>
</li>
<td>
<table border="0" align="center" cellpadding="5">
<tr>
- <td><a href="javascript:inserttext(':-)')"><img border="0" hspace="10" src="pix/s/smiley.gif" width="15" height="15" alt="" /></a></td>
+ <td><a href="javascript:inserttext(':-)')"><img src="pix/s/smiley.gif" class="icon" alt="" /></a></td>
<td>smile</td>
<td><font face="courier">:-)</font></td>
</tr>
<tr>
- <td><a href="javascript:inserttext(':-D')"><img border="0" hspace="10" src="pix/s/biggrin.gif" width="15" height="15" alt="" /></a></td>
+ <td><a href="javascript:inserttext(':-D')"><img src="pix/s/biggrin.gif" class="icon" alt="" /></a></td>
<td>big grin</td>
<td><font face="courier">:-D</font></td>
</tr>
<tr>
- <td><a href="javascript:inserttext(';-)')"><img border="0" hspace="10" src="pix/s/wink.gif" width="15" height="15" alt="" /></a></td>
+ <td><a href="javascript:inserttext(';-)')"><img src="pix/s/wink.gif" class="icon" alt="" /></a></td>
<td>wink</td>
<td><font face="courier">;-)</font></td>
</tr>
<tr>
- <td><a href="javascript:inserttext(':-/')"><img border="0" hspace="10" src="pix/s/mixed.gif" width="15" height="15" alt="" /></a></td>
+ <td><a href="javascript:inserttext(':-/')"><img src="pix/s/mixed.gif" class="icon" alt="" /></a></td>
<td>mixed</td>
<td><font face="courier">:-/</font></td>
</tr>
<tr>
- <td><a href="javascript:inserttext('V-.')"><img border="0" hspace="10" src="pix/s/thoughtful.gif" width="15" height="15" alt="" /></a></td>
+ <td><a href="javascript:inserttext('V-.')"><img src="pix/s/thoughtful.gif" class="icon" alt="" /></a></td>
<td>thoughtful</td>
<td><font face="courier">V-.</font></td>
</tr>
<tr>
- <td><a href="javascript:inserttext(':-P')"><img border="0" hspace="10" src="pix/s/tongueout.gif" width="15" height="15" alt="" /></a></td>
+ <td><a href="javascript:inserttext(':-P')"><img src="pix/s/tongueout.gif" class="icon" alt="" /></a></td>
<td>tongue out</td>
<td><font face="courier">:-P</font></td>
</tr>
<tr>
- <td><a href="javascript:inserttext('B-)')"><img border="0" hspace="10" src="pix/s/cool.gif" width="15" height="15" alt="" /></a></td>
+ <td><a href="javascript:inserttext('B-)')"><img src="pix/s/cool.gif" class="icon" alt="" /></a></td>
<td>cool</td>
<td><font face="courier">B-)</font></td>
</tr>
<tr>
- <td><a href="javascript:inserttext('^-)')"><img border="0" hspace="10" src="pix/s/approve.gif" width="15" height="15" alt="" /></a></td>
+ <td><a href="javascript:inserttext('^-)')"><img src="pix/s/approve.gif" class="icon" alt="" /></a></td>
<td>approve</td>
<td><font face="courier">^-)</font></td>
</tr>
<tr>
- <td><a href="javascript:inserttext('8-)')"><img border="0" hspace="10" src="pix/s/wideeyes.gif" width="15" height="15" alt="" /></a></td>
+ <td><a href="javascript:inserttext('8-)')"><img src="pix/s/wideeyes.gif" class="icon" alt="" /></a></td>
<td>wide eyes</td>
<td><font face="courier">8-)</font></td>
</tr>
<tr>
- <td><a href="javascript:inserttext('8-o')"><img border="0" hspace="10" src="pix/s/surprise.gif" width="15" height="15" alt="" /></a></td>
+ <td><a href="javascript:inserttext('8-o')"><img src="pix/s/surprise.gif" class="icon" alt="" /></a></td>
<td>surprise</td>
<td><font face="courier">8-o</font></td>
</tr>
<td>
<table border="0" align="center" cellpadding="5">
<tr>
- <td><a href="javascript:inserttext(':-(')"><img border="0" hspace="10" src="pix/s/sad.gif" width="15" height="15" alt="" /></a></td>
+ <td><a href="javascript:inserttext(':-(')"><img src="pix/s/sad.gif" class="icon" alt="" /></a></td>
<td>sad</td>
<td><font face="courier">:-(</font></td>
</tr>
<tr>
- <td><a href="javascript:inserttext('8-.')"><img border="0" hspace="10" src="pix/s/shy.gif" width="15" height="15" alt="" /></a></td>
+ <td><a href="javascript:inserttext('8-.')"><img src="pix/s/shy.gif" class="icon" alt="" /></a></td>
<td>shy</td>
<td><font face="courier">8-.</font></td>
</tr>
<tr>
- <td><a href="javascript:inserttext(':-I')"><img border="0" hspace="10" src="pix/s/blush.gif" width="15" height="15" alt="" /></a></td>
+ <td><a href="javascript:inserttext(':-I')"><img src="pix/s/blush.gif" class="icon" alt="" /></a></td>
<td>blush</td>
<td><font face="courier">:-I</font></td>
</tr>
<tr>
- <td><a href="javascript:inserttext(':-X')"><img border="0" hspace="10" src="pix/s/kiss.gif" width="15" height="15" alt="" /></a></td>
+ <td><a href="javascript:inserttext(':-X')"><img src="pix/s/kiss.gif" class="icon" alt="" /></a></td>
<td>kisses</td>
<td><font face="courier">:-X</font></td>
</tr>
<tr>
- <td><a href="javascript:inserttext(':o)')"><img border="0" hspace="10" src="pix/s/clown.gif" width="15" height="15" alt="" /></a></td>
+ <td><a href="javascript:inserttext(':o)')"><img src="pix/s/clown.gif" class="icon" alt="" /></a></td>
<td>clown</td>
<td><font face="courier">:o)</font></td>
</tr>
<tr>
- <td><a href="javascript:inserttext('P-|')"><img border="0" hspace="10" src="pix/s/blackeye.gif" width="15" height="15" alt="" /></a></td>
+ <td><a href="javascript:inserttext('P-|')"><img src="pix/s/blackeye.gif" class="icon" alt="" /></a></td>
<td>black eye</td>
<td><font face="courier">P-|</font></td>
</tr>
<tr>
- <td><a href="javascript:inserttext('8-[')"><img border="0" hspace="10" src="pix/s/angry.gif" width="15" height="15" alt="" /></a></td>
+ <td><a href="javascript:inserttext('8-[')"><img src="pix/s/angry.gif" class="icon" alt="" /></a></td>
<td>angry</td>
<td><font face="courier">8-[</font></td>
</tr>
<tr>
- <td><a href="javascript:inserttext('xx-P')"><img border="0" hspace="10" src="pix/s/dead.gif" width="15" height="15" alt="" /></a></td>
+ <td><a href="javascript:inserttext('xx-P')"><img src="pix/s/dead.gif" class="icon" alt="" /></a></td>
<td>dead</td>
<td><font face="courier">xx-P</font></td>
</tr>
<tr>
- <td><a href="javascript:inserttext('|-.')"><img border="0" hspace="10" src="pix/s/sleepy.gif" width="15" height="15" alt="" /></a></td>
+ <td><a href="javascript:inserttext('|-.')"><img src="pix/s/sleepy.gif" class="icon" alt="" /></a></td>
<td>sleepy</td>
<td><font face="courier">|-.</font></td>
</tr>
<tr>
- <td><a href="javascript:inserttext('}-]')"><img border="0" hspace="10" src="pix/s/evil.gif" width="15" height="15" alt="" /></a></td>
+ <td><a href="javascript:inserttext('}-]')"><img src="pix/s/evil.gif" class="icon" alt="" /></a></td>
<td>evil</td>
<td><font face="courier">}-]</font></td>
</tr>
menus in your web browser (or Control-C and Control-V).</p>
</ul>
-<p><b>Inserting images <img alt="" border="0" hspace="10" src="lib/editor/htmlarea/images/ed_image.gif" /></b></p>
+<p><b>Inserting images <img alt="" src="lib/editor/htmlarea/images/ed_image.gif" /></b></p>
<ul>
<p>If you have images that are already published on a web site and accessible via a URL, you can include these images in your texts using the "Insert Image" button.</p>
</ul>
-<p><b>Inserting Tables <img alt="" border="0" hspace="10" src="lib/editor/htmlarea/images/insert_table.gif" /></b></p>
+<p><b>Inserting Tables <img alt="" src="lib/editor/htmlarea/images/insert_table.gif" /></b></p>
<ul>
<p>To add layout to your texts, you can use the "Insert Tables" button in the toolbar.
</ul>
-<p><b>Inserting Links <img alt="" border="0" hspace="10" src="lib/editor/htmlarea/images/ed_link.gif" /> /</b></p>
+<p><b>Inserting Links <img alt="" src="lib/editor/htmlarea/images/ed_link.gif" /> /</b></p>
<ul>
<p>To make a new link, first type the text that you want to be a link. Then select it and click the link button in the toolbar. Type the URL you want to link to and it's done!</p>
</ul>
-<p><b>Inserting smilies (emoticons) <img alt="" border="0" hspace="10" src="pix/s/smiley.gif" width="15" height="15" /></b></p>
+<p><b>Inserting smilies (emoticons) <img alt="" src="pix/s/smiley.gif" class="icon" /></b></p>
<ul>
<p>To embed these small icons in your text, click on the smiley icon in the toolbar. A dialog will pop up that allows you to select from the following smiley icons. (Alternatively, you can just type the corresponding code straight into your text and it will be converted later when your text is displayed).</p>
<td>
<table border="0" align="center" cellpadding="10">
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/smiley.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/smiley.gif" class="icon" /></td>
<td>smile</td>
<td nowrap="nowrap"><font face="Courier">:-)</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/biggrin.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/biggrin.gif" class="icon" /></td>
<td>big grin</td>
<td nowrap="nowrap"><font face="Courier">:-D</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/wink.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/wink.gif" class="icon" /></td>
<td>wink</td>
<td nowrap="nowrap"><font face="Courier">;-)</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/mixed.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/mixed.gif" class="icon" /></td>
<td>mixed</td>
<td nowrap="nowrap"><font face="Courier">:-/</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/thoughtful.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/thoughtful.gif" class="icon" /></td>
<td>thoughtful</td>
<td nowrap="nowrap"><font face="Courier">V-.</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/tongueout.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/tongueout.gif" class="icon" /></td>
<td>tongue out</td>
<td nowrap="nowrap"><font face="Courier">:-P</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/cool.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/cool.gif" class="icon" /></td>
<td>cool</td>
<td nowrap="nowrap"><font face="Courier">B-)</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/approve.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/approve.gif" class="icon" /></td>
<td>approve</td>
<td nowrap="nowrap"><font face="Courier">^-)</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/wideeyes.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/wideeyes.gif" class="icon" /></td>
<td>wide eyes</td>
<td nowrap="nowrap"><font face="Courier">8-)</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/surprise.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/surprise.gif" class="icon" /></td>
<td>surprise</td>
<td nowrap="nowrap"><font face="Courier">8-o</font></td>
</tr>
<td>
<table border="0" align="center" cellpadding="10">
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/sad.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/sad.gif" class="icon" /></td>
<td>sad</td>
<td nowrap="nowrap"><font face="Courier">:-(</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/shy.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/shy.gif" class="icon" /></td>
<td>shy</td>
<td nowrap="nowrap"><font face="Courier">8-.</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/blush.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/blush.gif" class="icon" /></td>
<td>blush</td>
<td nowrap="nowrap"><font face="Courier">:-I</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/kiss.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/kiss.gif" class="icon" /></td>
<td>kisses</td>
<td nowrap="nowrap"><font face="Courier">:-X</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/clown.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/clown.gif" class="icon" /></td>
<td>clown</td>
<td nowrap="nowrap"><font face="Courier">:o)</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/blackeye.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/blackeye.gif" class="icon" /></td>
<td>black eye</td>
<td nowrap="nowrap"><font face="Courier">P-|</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/angry.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/angry.gif" class="icon" /></td>
<td>angry</td>
<td nowrap="nowrap"><font face="Courier">8-[</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/dead.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/dead.gif" class="icon" /></td>
<td>dead</td>
<td nowrap="nowrap"><font face="Courier">xx-P</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/sleepy.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/sleepy.gif" class="icon" /></td>
<td>sleepy</td>
<td nowrap="nowrap"><font face="Courier">|-.</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/evil.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/evil.gif" class="icon" /></td>
<td>evil</td>
<td nowrap="nowrap"><font face="Courier">}-]</font></td>
</tr>
<td>
<table border="0" align="center" cellpadding="10">
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/smiley.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/smiley.gif" class="icon" /></td>
<td>smile</td>
<td><font face="Courier">:-)</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/biggrin.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/biggrin.gif" class="icon" /></td>
<td>big grin</td>
<td><font face="Courier">:-D</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/wink.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/wink.gif" class="icon" /></td>
<td>wink</td>
<td><font face="Courier">;-)</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/mixed.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/mixed.gif" class="icon" /></td>
<td>mixed</td>
<td><font face="Courier">:-/</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/thoughtful.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/thoughtful.gif" class="icon" /></td>
<td>thoughtful</td>
<td><font face="Courier">V-.</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/tongueout.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/tongueout.gif" class="icon" /></td>
<td>tongue out</td>
<td><font face="Courier">:-P</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/cool.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/cool.gif" class="icon" /></td>
<td>cool</td>
<td><font face="Courier">B-)</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/approve.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/approve.gif" class="icon" /></td>
<td>approve</td>
<td><font face="Courier">^-)</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/wideeyes.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/wideeyes.gif" class="icon" /></td>
<td>wide eyes</td>
<td><font face="Courier">8-)</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/surprise.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/surprise.gif" class="icon" /></td>
<td>surprise</td>
<td><font face="Courier">8-o</font></td>
</tr>
<td>
<table border="0" align="center" cellpadding="10">
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/sad.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/sad.gif" class="icon" /></td>
<td>sad</td>
<td><font face="Courier">:-(</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/shy.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/shy.gif" class="icon" /></td>
<td>shy</td>
<td><font face="Courier">8-.</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/blush.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/blush.gif" class="icon" /></td>
<td>blush</td>
<td><font face="Courier">:-I</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/kiss.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/kiss.gif" class="icon" /></td>
<td>kisses</td>
<td><font face="Courier">:-X</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/clown.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/clown.gif" class="icon" /></td>
<td>clown</td>
<td><font face="Courier">:o)</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/blackeye.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/blackeye.gif" class="icon" /></td>
<td>black eye</td>
<td><font face="Courier">P-|</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/angry.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/angry.gif" class="icon" /></td>
<td>angry</td>
<td><font face="Courier">8-[</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/dead.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/dead.gif" class="icon" /></td>
<td>dead</td>
<td><font face="Courier">xx-P</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/sleepy.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/sleepy.gif" class="icon" /></td>
<td>sleepy</td>
<td><font face="Courier">|-.</font></td>
</tr>
<tr>
- <td><img alt="" border="0" hspace="10" src="pix/s/evil.gif" width="15" height="15" /></td>
+ <td><img alt="" src="pix/s/evil.gif" class="icon" /></td>
<td>evil</td>
<td><font face="Courier">}-]</font></td>
</tr>
$name = $fullnames[$image];
$icon = $emoticons[$image];
echo '<tr>';
- echo "<td><img alt=\"$name\" border=\"0\" hspace=\"10\" src=\"$pixpath/$image.gif\" ".
- " onclick=\"insert('$pixpath/$image.gif','$name')\" width=\"15\" height=\"15\" /></td>";
+ echo "<td><img alt=\"$name\" class=\"icon\" src=\"$pixpath/$image.gif\" ".
+ " onclick=\"insert('$pixpath/$image.gif','$name')\" /></td>";
echo "<td>$name</td>";
echo "<td class=\"smile\">$icon</td>";
echo "</tr>";
$name = $fullnames[$image];
$icon = $emoticons[$image];
echo '<tr>';
- echo "<td><img alt=\"$name\" border=\"0\" hspace=\"10\" src=\"$pixpath/$image.gif\" ".
- " onclick=\"insert('$pixpath/$image.gif','$name')\" width=\"15\" height=\"15\" /></td>";
+ echo "<td><img alt=\"$name\" class=\"icon\" src=\"$pixpath/$image.gif\" ".
+ " onclick=\"insert('$pixpath/$image.gif','$name')\" /></td>";
echo "<td>$name</td>";
echo "<td class=\"smile\">$icon</td>";
echo "</tr>";
}
$output .= choose_from_menu($grades, $name, $current, '', '', 0, true);
- $linkobject = '<span class="helplink"><img height="17" width="17" alt="'.$strscales.'" src="'.$CFG->pixpath .'/help.gif" /></span>';
+ $linkobject = '<span class="helplink"><img class="iconhelp" alt="'.$strscales.'" src="'.$CFG->pixpath .'/help.gif" /></span>';
$output .= link_to_popup_window ('/course/scales.php?id='. $courseid .'&list=true', 'ratingscales',
$linkobject, 400, 500, $strscales, 'none', true);
$strscales = get_string('scales');
$output .= choose_from_menu(get_scales_menu($courseid), $name, $current, '', '', 0, true);
- $linkobject = '<span class="helplink"><img height="17" width="17" alt="'.$strscales.'" src="'.$CFG->pixpath .'/help.gif" /></span>';
+ $linkobject = '<span class="helplink"><img class="iconhelp" alt="'.$strscales.'" src="'.$CFG->pixpath .'/help.gif" /></span>';
$output .= link_to_popup_window ('/course/scales.php?id='. $courseid .'&list=true', 'ratingscales',
$linkobject, 400, 500, $strscales, 'none', true);
if ($return) {
$output = '';
$strscales = get_string('scales');
- $linkobject = '<span class="helplink"><img height="17" width="17" alt="'.$scale->name.'" src="'.$CFG->pixpath .'/help.gif" /></span>';
+ $linkobject = '<span class="helplink"><img class="iconhelp" alt="'.$scale->name.'" src="'.$CFG->pixpath .'/help.gif" /></span>';
$output .= link_to_popup_window ('/course/scales.php?id='. $courseid .'&list=true&scaleid='. $scale->id, 'ratingscale',
$linkobject, 400, 500, $scale->name, 'none', true);
if ($return) {
$alttag = join (', ', $titles);
$paramstring = join('&', $urlparams);
- $linkobject = '<img alt="'.$alttag.'" src="'.$CFG->pixpath .'/help.gif" />';
+ $linkobject = '<img alt="'.$alttag.'" class="iconhelp" src="'.$CFG->pixpath .'/help.gif" />';
return link_to_popup_window(s('/lib/form/editorhelp.php?'.$paramstring), $alttag, $linkobject, 400, 500, $alttag, 'none', true);
}
if ($imagetext) {
$linkobject .= $imagetext;
} else {
- $linkobject .= '<img alt="'.$tooltip.'" src="'.
+ $linkobject .= '<img class="iconhelp" alt="'.$tooltip.'" src="'.
$CFG->pixpath .'/help.gif" />';
}
} else {
global $CFG;
$imagetext = '<img src="' . $CFG->wwwroot . '/lib/editor/htmlarea/images/kbhelp.gif" alt="'.
- get_string('editorshortcutkeys').'" style="width:49px; height:17px; margin:0;" />';
+ get_string('editorshortcutkeys').'" class="iconkbhelp" />';
return helpbutton('editorshortcuts', get_string('editorshortcutkeys'), 'moodle', true, false, '', true, $imagetext);
}
}
// alt left blank intentionally to prevent repetition in screenreaders
- $str .= '<img src="' .$iconpath. '" alt="" />' .$text. '</a>';
+ $str .= '<img class="iconhelp" src="' .$iconpath. '" alt="" />' .$text. '</a>';
return $str;
}
$width = $this->field->param4 ? ' width="'.s($this->field->param4).'" ' : ' ';
$height = $this->field->param5 ? ' height="'.s($this->field->param5).'" ' : ' ';
$str = '<a href="view.php?d='.$this->field->dataid.'&rid='.$recordid.'"><img '.
- $width.$height.' src="'.$thumbnailsource.'" alt="'.s($alt).'" title="'.s($title).'" border="0" /></a>';
+ $width.$height.' src="'.$thumbnailsource.'" alt="'.s($alt).'" title="'.s($title).'" style="border:0px" /></a>';
} else {
$width = $this->field->param1 ? ' width="'.s($this->field->param1).'" ':' ';
$height = $this->field->param2 ? ' height="'.s($this->field->param2).'" ':' ';
- $str = '<a href="'.$source.'"><img '.$width.$height.' src="'.$source.'" alt="'.s($alt).'" title="'.s($title).'" border="0"/></a>';
+ $str = '<a href="'.$source.'"><img '.$width.$height.' src="'.$source.'" alt="'.s($alt).'" title="'.s($title).'" style="border:0px" /></a>';
}
return $str;
}
$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=\"".get_string("edit")."\" /></a>";
+ $eicon = "<a title=\"" . get_string("edit") . "\" href=\"$CFG->wwwroot/mod/glossary/formats.php?id=$formatid&mode=edit\"><img class=\"iconsmall\" 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=\"$vtitle\" /></a>";
+ $vicon = "<a title=\"" . $vtitle . "\" href=\"$CFG->wwwroot/mod/glossary/formats.php?id=$formatid&mode=visible\"><img class=\"iconsmall\" src=\"../pix/t/" . $vicon . "\" alt=\"$vtitle\" /></a>";
echo '<td align="center" nowrap="nowrap">' . $eicon . ' ' . $vicon . '</td>';
echo '</tr>';
$printicon = '';
if ( $isuserframe and $mode != 'search') {
if (has_capability('mod/glossary:manageentries', $context) or $glossary->allowprintview) {
- $printicon = " <a title =\"". 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>";
+ $printicon = " <a title =\"". get_string("printerfriendly","glossary") ."\" target=\"printview\" href=\"print.php?id=$cm->id&mode=$mode&hook=$hook&sortkey=$sortkey&sortorder=$sortorder&offset=$offset\"><img class=\"icon\" src=\"print.gif\" alt=\"". get_string("printerfriendly","glossary") . "\" /></a>";
}
}
print_heading(format_string($glossary->name).$printicon);
$quiz_id = $quiz->id ? '&quizid=' . $quiz->id : '';
return "<a title=\"$strpreview\" href=\"javascript:void(0)\" onClick=\"openpopup('/question/preview.php?id=$qnum$quiz_id','questionpreview', " .
QUESTION_PREVIEW_POPUP_OPTIONS . ", false)\">
- <img src=\"../../pix/t/preview.gif\" border=\"0\" alt=\"$strpreview\" /></a>";
+ <img src=\"../../pix/t/preview.gif\" class=\"iconsmall\" alt=\"$strpreview\" /></a>";
}
$info->id = $id;
$info->size = $p_size;
- $info->icon = ($p_icon ? '<img src="'.$p_icon.'" alt="['.$p_icon_t.']" align="left" width="14" height="14" border="0" /> ' : '');
+ $info->icon = ($p_icon ? '<img src="'.$p_icon.'" alt="['.$p_icon_t.']" class="icon" /> ' : '');
$info->time = $p_time;
$info->hits = $p_hits;
$info->section = ($show_section ? ewiki_t('dwnl_section') . ": $p_section<br />" : '');
}
img.icon {
- vertical-align: middle;
- margin-right: 4px;
+ vertical-align:middle;
+ margin-right:4px;
width:16px;
height:16px;
border:0px;
}
img.iconsmall {
- vertical-align: middle;
- margin-right: 1px;
+ vertical-align:middle;
+ margin-right:1px;
width:11px;
height:11px;
border:0px;
}
+img.iconhelp {
+ vertical-align:middle;
+ margin-right:4px;
+ width:17px;
+ height:17px;
+ border:0px;
+}
+
+img.iconkbhelp {
+ width:49px;
+ height:17px;
+ border:0px;
+}
+
/*Accessibility: text 'seen' by screen readers but not visual users. Fixed for RTL languages, example Farsi. */
.accesshide {
position:absolute;