Fixing header when chat is not a popup see CT#746

skala
Julio Montoya 16 years ago
parent 2eab1d1d09
commit cea6dccf9f
  1. 14
      main/chat/chat.php
  2. 1
      main/chat/chat_whoisonline.php

@ -56,8 +56,15 @@ if (!empty($mycourseid) && $mycourseid != -1) {
}
if (api_get_setting('show_navigation_menu') != 'false') {
$footer_size = 20;
} else {
switch($my_style) {
} else {
$top_size = 135;
switch($my_style) {
case 'chamilo_red' :
case 'chamilo_green' :
case 'chamilo' :
$top_size = 185;
$footer_size = 48;
break;
case 'dokeos_classic' :
case 'chamilo_classic' :
$footer_size = 48;
@ -79,6 +86,7 @@ if (api_get_setting('show_navigation_menu') != 'false') {
break;
}
}
$cidreq = Security::remove_XSS($_GET['cidReq']);
?>
@ -92,7 +100,7 @@ $cidreq = Security::remove_XSS($_GET['cidReq']);
echo'<title>'.get_lang('Chat').' - '.$mycourseid.' - '.api_get_setting('siteName').'</title>';
if (empty($open_chat_window)) {
echo'<frameset rows="135,*,'.$footer_size.'" border="0" frameborder="0" framespacing="1">';
echo'<frameset rows="'.$top_size.',*,'.$footer_size.'" border="0" frameborder="0" framespacing="1">';
echo '<frame src="chat_banner.php?cidReq='.$cidreq.'" name="chat_banner" scrolling="no">';
}

@ -90,6 +90,7 @@ if (!empty($course)) {
$user_id = $enreg['user_id'];
require 'header_frame.inc.php';
?>
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="data_table">
<tr><th colspan="2"><?php echo get_lang('Connected'); ?></th></tr>

Loading…
Cancel
Save