}
$search = optional_param('search', '', PARAM_CLEAN);
-/// Our two users are defined - let's set up the page
+ add_to_log(SITEID, 'message', 'history', 'history.php?user1='.$userid1.'&user2='.$userid2, $userid1);
- $THEME->body = $THEME->cellcontent;
+/// Our two users are defined - let's set up the page
print_header(get_string('messagehistory', 'message'));
echo '</tr><tr>';
/// Print out contents of the tab
- echo '<td colspan="3" bgcolor="'.$THEME->cellcontent.'">';
+ echo '<td colspan="3"">';
/// a print function is associated with each tab
$tabprintfunction = 'message_print_'.$tab;
switch ($frame) { /// Put data into all the frames
case 'info': /// Print the top frame with information and links
- $THEME->body = $THEME->cellcontent2;
print_header('','','','','',false,'','',false,'leftmargin="2" topmargin="2" marginwidth="2" marginheight="2"');
echo '<table width="100%" cellpadding="0" cellspacing="0"><tr>';
echo '<td width="100">';
break;
case 'messages': /// Print the main frame containing the current chat
- $THEME->body = '#FFFFFF';
print_header();
echo '<script language="Javascript">';
echo 'document.write(\'<link rel="stylesheet" type="text/css" href="'.$CFG->wwwroot.'/theme/standard/styles.php" />\');';