Anthony,
sorry but I should look better next time .... yes, it's correct that there is only one head and only one body ....
But there is some overlapping code that should better stay in the header of the html page. Yes, it's correct that you can have javascipts in your body code but it would be better to move them into the header. And I found some code that should always stay in the header ... see next three lines
<LINK REL="stylesheet" href="mrbs.css" type="text/css">
<META HTTP-EQUIV="Content-Type" content="text/html; charset=utf-8">
<META NAME="Robots" content="noindex">
I hope that it would be easy to repair the header code.
Regards, Ralf
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- html code starting at line 104
</script>
</head>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- end of the head
- start of the body
<body class="blocks-mrbs-web course-1 dir-ltr lang-de_utf8" id="blocks-mrbs-web-day">
<div id="page">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- navigation and user message
<div id="header" class=" clearfix"> <h1 class="headermain">Raumbuchungssystem</h1>
<div class="headermenu"><div class="logininfo">Sie sind angemeldet als <a href="http://moodle4mac.dyndns.org:8888/moodle19/user/view.php?id=2&course=1">- Admin -</a> (<a href="http://moodle4mac.dyndns.org:8888/moodle19/login/logout.php?sesskey=kIHHEpr9Bd">Logout</a>)</div></div>
</div> <div class="navbar clearfix">
<div class="breadcrumb"><h2 class="accesshide " >Sie sind hier</h2> <ul>
<li class="first"><a onclick="this.target='_top'" href="http://moodle4mac.dyndns.org:8888/moodle19/">Start</a></li><li class="first"> <span class="accesshide " >/ </span><span class="arrow sep">▶</span> Raumbuchungssystem</li></ul></div>
<div class="navbutton"> </div>
</div>
<!-- END OF HEADER -->
<div id="content" class=" clearfix">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- code that should stay in the head
<LINK REL="stylesheet" href="mrbs.css" type="text/css">
<META HTTP-EQUIV="Content-Type" content="text/html; charset=utf-8">
<META NAME="Robots" content="noindex">
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
/* Script inspired by "True Date Selector"
Created by: Lee Hinder, lee.hinder@ntlworld.com
Tested with Windows IE 6.0
Tested with Linux Opera 7.21, Mozilla 1.3, Konqueror 3.1.0
*/
function daysInFebruary (year){
// February has 28 days unless the year is divisible by four,
// and if it is the turn of the century then the century year
// must also be divisible by 400 when it has 29 days
return (((year % 4 == 0) && ( (!(year % 100 == 0)) || (year % 400 == 0))) ? 29 : 28 );
}
//function for returning how many days there are in a month including leap years
function DaysInMonth(WhichMonth, WhichYear)
{
var DaysInMonth = 31;
if (WhichMonth == "4" || WhichMonth == "6" || WhichMonth == "9" || WhichMonth == "11")
DaysInMonth = 30;
if (WhichMonth == "2")
DaysInMonth = daysInFebruary( WhichYear );
return DaysInMonth;
}
//function to change the available days in a months
function ChangeOptionDays(formObj, prefix)
{
var DaysObject = eval("formObj." + prefix + "day");
var MonthObject = eval("formObj." + prefix + "month");
var YearObject = eval("formObj." + prefix + "year");
if (DaysObject.selectedIndex && DaysObject.options)
{ // The DOM2 standard way
// alert("The DOM2 standard way");
var DaySelIdx = DaysObject.selectedIndex;
var Month = parseInt(MonthObject.options[MonthObject.selectedIndex].value);
var Year = parseInt(YearObject.options[YearObject.selectedIndex].value);
}
else if (DaysObject.selectedIndex && DaysObject[DaysObject.selectedIndex])
{ // The legacy MRBS way
// alert("The legacy MRBS way");
var DaySelIdx = DaysObject.selectedIndex;
var Month = parseInt(MonthObject[MonthObject.selectedIndex].value);
var Year = parseInt(YearObject[YearObject.selectedIndex].value);
}
else if (DaysObject.value)
{ // Opera 6 stores the selectedIndex in property 'value'.
// alert("The Opera 6 way");
var DaySelIdx = parseInt(DaysObject.value);
var Month = parseInt(MonthObject.options[MonthObject.value].value);
var Year = parseInt(YearObject.options[YearObject.value].value);
}
// alert("Day="(DaySelIdx+1)" Month="Month" Year="+Year);
var DaysForThisSelection = DaysInMonth(Month, Year);
var CurrentDaysInSelection = DaysObject.length;
if (CurrentDaysInSelection > DaysForThisSelection)
{
for (i=0; i<(CurrentDaysInSelection-DaysForThisSelection); i++)
{
DaysObject.options[DaysObject.options.length - 1] = null
}
}
if (DaysForThisSelection > CurrentDaysInSelection)
{
for (i=0; i<DaysForThisSelection; i++)
{
DaysObject.options[i] = new Option(eval(i + 1));
}
}
if (DaysObject.selectedIndex < 0) DaysObject.selectedIndex = 0;
if (DaySelIdx >= DaysForThisSelection)
DaysObject.selectedIndex = DaysForThisSelection-1;
else
DaysObject.selectedIndex = DaySelIdx;
}
// End -->
</SCRIPT>
Ralf - I went to the link you provided but did not find two <head> tags and nothing related to the MRBS other than the links. I'm attaching a screen shot. It is not clear to me what you are describing as being the problem and why this may be a security issue. Could you provide me step by step instructions where I could see the problem? Peace - Anthony