<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title><?php echo get_string('discussion', 'message').': '.fullname($user) ?></title>
</head>
- <frameset rows="110,*,0,200" border="0" marginwidth="2" marginheight="1">
+ <frameset rows="110,*,0,200">
+ <noframes><body>Sorry, but support for Frames is required to use Messaging</body></noframes>
+
<frame src="user.php?id=<?php p($user->id)?>&frame=user" name="user"
- scrolling="no" marginwidth="0" marginheight="">
+ scrolling="no" marginwidth="0" marginheight="0" frameborder="0" />
<frame src="messages.php" name="messages"
- scrolling="yes" marginwidth="10" marginheight="10">
+ scrolling="yes" marginwidth="10" marginheight="10" frameborder="0" />
<frame src="refresh.php?id=<?php p($user->id)?>&name=<?php echo urlencode(fullname($user)) ?>" name="refresh"
- scrolling="no" marginwidth="0" marginheight="0">
+ scrolling="no" marginwidth="0" marginheight="0" frameborder="0" />
<frame src="send.php?id=<?php p($user->id)?>" name="send"
- scrolling="no" marginwidth="2" marginheight="2">
+ scrolling="no" marginwidth="2" marginheight="2" frameborder="0" />
</frameset>
- <noframes>Sorry, but support for Frames is required to use Messaging</noframes>
-
</html>
/// Our two users are defined - let's set up the page
- print_header(get_string('messagehistory', 'message'), '', '', '', '<base target="_blank">');
+ print_header(get_string('messagehistory', 'message'), '', '', '', '<base target="_blank" />');
/// Print out a heading including the users we are looking at
echo fullname($user1);
echo '</td>';
echo '<td align="center">';
- echo '<img src="'.$CFG->wwwroot.'/pix/t/left.gif" alt="'.get_string('from').'">';
- echo '<img src="'.$CFG->wwwroot.'/pix/t/right.gif" alt="'.get_string('to').'">';
+ echo '<img src="'.$CFG->wwwroot.'/pix/t/left.gif" alt="'.get_string('from').'" />';
+ echo '<img src="'.$CFG->wwwroot.'/pix/t/right.gif" alt="'.get_string('to').'" />';
echo '</td>';
echo '<td align="center">';
echo print_user_picture($user2->id, SITEID, $user2->picture, 100, true, true, 'userwindow').'<br />';
print_heading(get_string('nomessagesfound', 'message'));
}
+ print_footer('none');
?>
}
echo '</td> </tr> </table>';
- echo ' </body> </html>';
+ print_footer('none');
+
?>
$output = '<span class="'.$linktype.'">'.
'<a href="'.$script.'&'.$command.'='.$userid.
- '&sesskey='.sesskey().'" title="'.$string.'">'.
- '<img src="'.$CFG->pixpath.$icon.'" height="11" width="11" border="0" alt="'.$string.'">'.
+ '&sesskey='.sesskey().'" title="'.s($string).'">'.
+ '<img src="'.$CFG->pixpath.$icon.'" height="11" width="11" border="0" alt="'.s($string).'" />'.
$text.'</a></span>';
if ($return) {
}
if ($linktext == 'icon') { // Icon only
- $fulllink = '<img src="'.$CFG->pixpath.'/t/log.gif" height="11" width="11" border="0" alt="'.$strmessagehistory.'">';
+ $fulllink = '<img src="'.$CFG->pixpath.'/t/log.gif" height="11" width="11" border="0" alt="'.$strmessagehistory.'" />';
} else if ($linktext == 'both') { // Icon and standard name
- $fulllink = '<img src="'.$CFG->pixpath.'/t/log.gif" height="11" width="11" border="0" alt="'.$strmessagehistory.'">';
+ $fulllink = '<img src="'.$CFG->pixpath.'/t/log.gif" height="11" width="11" border="0" alt="'.$strmessagehistory.'" />';
$fulllink .= ' '.$strmessagehistory;
} else if ($linktext) { // Custom name
$fulllink = $linktext;
}
@header('Content-Type: text/html; charset=utf-8');
- echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Frameset//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd\">\n";
- echo "<html $direction>\n<head>\n";
+ echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n";
+ echo "<html $direction xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n";
echo '<meta http-equiv="content-type" content="text/html; charset=utf-8" />';
echo $stylesheetshtml;
add_to_log(SITEID, 'message', 'write', 'history.php?user1='.$user->id.'&user2='.$USER->id.'#m'.$messageid, $user->id);
}
- echo '</head>';
+ echo '<title></title></head>';
echo '<body class="message course-1" id="message-send">';
message_unblock_contact($unblockcontact);
}
- print_header('','','','','',false,'','',false,'leftmargin="2" topmargin="2" marginwidth="2" marginheight="2"');
+ print_header('','','','','',false,'','',false,'');
echo '<table width="100%" cellpadding="0" cellspacing="0"><tr>';
echo '<td width="100">';
echo print_user_picture($user->id, SITEID, $user->picture, true, true, true, 'userwindow').'</td>';
echo '</td></tr></table>';
- echo '</table></table></body>'; // Close possible theme tables off
+ echo '</div></div></body></html>'; // Close possible theme tables off
?>