MDL-8105 some more icon class fixes including new .iconhelp for help and docs icon

This commit is contained in:
skodak 2007-01-08 20:30:38 +00:00
parent c90edfe168
commit 0f13ec8f9b
19 changed files with 131 additions and 114 deletions

View File

@ -20,7 +20,7 @@ class block_admin_bookmarks extends block_base {
}
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() {

View File

@ -160,21 +160,21 @@ function comp(v) { // general entry point for all cases
</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>

View File

@ -136,7 +136,7 @@ if ($thissection->summary or $thissection->sequence or isediting($course->id)) {
'&'.$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&amp;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&amp;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();
@ -152,7 +152,7 @@ if ($thissection->summary or $thissection->sequence or isediting($course->id)) {
'&'.$LAMSCONSTANTS->param_hash.'='.$hash.
'&'.$LAMSCONSTANTS->param_courseid.'='.$course->id;
//echo '<a target="popup" title="Open Monitor" href="../help.php?module=moodle&amp;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&amp;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();

View File

@ -193,7 +193,7 @@
// 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
@ -205,30 +205,30 @@
// 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&amp;perpage=$perpage&amp;page=$page&amp;hide=$course->id&amp;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&amp;perpage=$perpage&amp;page=$page&amp;show=$course->id&amp;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>";

View File

@ -53,6 +53,7 @@ function string_file_picture_algebra($imagefile, $tex= "", $height="", $width=""
$output = "";
$origtex = $tex;
$style = 'style="border:0px; vertical-align:'.$align.';';
if ($tex) {
$tex = str_replace('&','&amp;',$tex);
$tex = str_replace('<','&lt;',$tex);
@ -62,11 +63,12 @@ function string_file_picture_algebra($imagefile, $tex= "", $height="", $width=""
$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\">";
@ -77,13 +79,13 @@ function string_file_picture_algebra($imagefile, $tex= "", $height="", $width=""
$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";

View File

@ -46,6 +46,7 @@ function string_file_picture_tex($imagefile, $tex= "", $height="", $width="", $a
$output = "";
$origtex = $tex;
$style = 'style="border:0px; vertical-align:'.$align.';';
if ($tex) {
$tex = str_replace('&','&amp;',$tex);
$tex = str_replace('<','&lt;',$tex);
@ -55,11 +56,12 @@ function string_file_picture_tex($imagefile, $tex= "", $height="", $width="", $a
$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\">";
@ -70,13 +72,13 @@ function string_file_picture_tex($imagefile, $tex= "", $height="", $width="", $a
$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";

View File

@ -584,7 +584,7 @@ if (isset($_GET['help'])) {
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>';
@ -598,14 +598,14 @@ if (isset($_GET['help'])) {
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 {
@ -981,8 +981,7 @@ function install_helpbutton($url, $title='') {
$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";
}

View File

@ -36,11 +36,11 @@
<blockquote>
<p>&nbsp;<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>&nbsp;<img src="../pix/i/hide.gif" width="16" height="16" /> - the <strong>open-eye
<p>&nbsp;<img src="../pix/i/hide.gif" class="icon" /> - the <strong>open-eye
icon</strong> will let you hide something from students</p>
<p>&nbsp;<img src="../pix/i/show.gif" width="16" height="16" /> - the <strong>closed-eye
<p>&nbsp;<img src="../pix/i/show.gif" class="icon" /> - the <strong>closed-eye
icon</strong> will make a hidden item available</p>
</blockquote>
</li>

View File

@ -5,52 +5,52 @@
<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>
@ -59,52 +59,52 @@
<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>

View File

@ -24,23 +24,23 @@
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>
@ -49,52 +49,52 @@
<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>
@ -103,52 +103,52 @@
<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>

View File

@ -11,52 +11,52 @@ Writing text in Moodle works pretty much the way you would expect, but you also
<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>
@ -65,52 +65,52 @@ Writing text in Moodle works pretty much the way you would expect, but you also
<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>

View File

@ -84,8 +84,8 @@ function cancel() {
$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>";
@ -103,8 +103,8 @@ function cancel() {
$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>";

View File

@ -4461,7 +4461,7 @@ function print_grade_menu($courseid, $name, $current, $includenograde=true, $ret
}
$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 .'&amp;list=true', 'ratingscales',
$linkobject, 400, 500, $strscales, 'none', true);
@ -4489,7 +4489,7 @@ function print_scale_menu($courseid, $name, $current, $return=false) {
$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 .'&amp;list=true', 'ratingscales',
$linkobject, 400, 500, $strscales, 'none', true);
if ($return) {
@ -4514,7 +4514,7 @@ function print_scale_menu_helpbutton($courseid, $scale, $return=false) {
$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 .'&amp;list=true&amp;scaleid='. $scale->id, 'ratingscale',
$linkobject, 400, 500, $scale->name, 'none', true);
if ($return) {
@ -4675,7 +4675,7 @@ function editorhelpbutton(){
$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);
}
@ -4724,7 +4724,7 @@ function helpbutton ($page, $title='', $module='moodle', $image=true, $linktext=
if ($imagetext) {
$linkobject .= $imagetext;
} else {
$linkobject .= '<img alt="'.$tooltip.'" src="'.
$linkobject .= '<img class="iconhelp" alt="'.$tooltip.'" src="'.
$CFG->pixpath .'/help.gif" />';
}
} else {
@ -4786,7 +4786,7 @@ function editorshortcutshelpbutton() {
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);
}
@ -5569,7 +5569,7 @@ function page_doc_link($text='', $iconpath='') {
}
// 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;
}

View File

@ -104,11 +104,11 @@ class data_field_picture extends data_field_file {
$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.'&amp;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;
}

View File

@ -220,7 +220,7 @@
$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";
@ -228,7 +228,7 @@
$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 . '&nbsp;&nbsp;' . $vicon . '</td>';
echo '</tr>';

View File

@ -252,7 +252,7 @@
$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&amp;mode=$mode&amp;hook=$hook&amp;sortkey=$sortkey&amp;sortorder=$sortorder&amp;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&amp;mode=$mode&amp;hook=$hook&amp;sortkey=$sortkey&amp;sortorder=$sortorder&amp;offset=$offset\"><img class=\"icon\" src=\"print.gif\" alt=\"". get_string("printerfriendly","glossary") . "\" /></a>";
}
}
print_heading(format_string($glossary->name).$printicon);

View File

@ -609,7 +609,7 @@ function quiz_get_question_review($quiz, $question) {
$quiz_id = $quiz->id ? '&amp;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>";
}

View File

@ -334,7 +334,7 @@ function ewiki_entry_downloads($row, $show_section=0, $fullinfo=false) {
$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 />" : '');

View File

@ -294,21 +294,35 @@ form.popupform {
}
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;