[Hw4mdl-svn] SF.net SVN: hw4mdl: [60] trunk/moodle/mod/liveclassroom
Brought to you by:
jhlinder,
trollinger
From: <sh...@us...> - 2006-09-12 16:06:26
|
Revision: 60 http://svn.sourceforge.net/hw4mdl/?rev=60&view=rev Author: shazan Date: 2006-09-12 09:06:16 -0700 (Tue, 12 Sep 2006) Log Message: ----------- basic version of the nugget Modified Paths: -------------- trunk/moodle/mod/liveclassroom/index.php Added Paths: ----------- trunk/moodle/mod/liveclassroom/manageRoom.php Modified: trunk/moodle/mod/liveclassroom/index.php =================================================================== --- trunk/moodle/mod/liveclassroom/index.php 2006-09-12 16:03:20 UTC (rev 59) +++ trunk/moodle/mod/liveclassroom/index.php 2006-09-12 16:06:16 UTC (rev 60) @@ -80,1079 +80,49 @@ } ?> <head> - <script type="text/javascript"> -var hidestatus = new Array(); -function hideArchive(id) -{ - if(hidestatus[id]==null)//first use - hidestatus[id]=1; - if (hidestatus[id]==1) - { - document.getElementById(id).style.display="block"; - document.images['toggleimg'+id].src="pictures/minus.gif"; - hidestatus[id]=0; - } - else - { - document.getElementById(id).style.display="none"; - document.images['toggleimg'+id].src="pictures/plus.gif"; - hidestatus[id]=1; - } -} -var TampNumberMainLectureRoom=0; -var TampNumberBreakoutRoom=0; -var TampNumberOrphanedRoom=0; -function hideBloc(id) -{ - - if(hidestatus[id]==null)//first use - hidestatus[id]=0; - if (hidestatus[id]==1) - { - document.getElementById(id).style.display="block"; - //document.images['toggleimg'+id].src="<%=Setup.getInstance().getLcServerURL()%>/images/integration/small_collapse.gif"; - document.images['toggleimg'+id].src="pictures/small_collapse.gif"; - hidestatus[id]=0; - if(id=='orphaned'){ - - NumberOrphanedRoom=TampNumberOrphanedRoom; - } - else if(id=='breakout'){ - - NumberBreakoutRoom=TampNumberBreakoutRoom; - } - else if(id=='main'){ - - NumberMainLectureRoom=TampNumberMainLectureRoom; - } - } - else - { - document.getElementById(id).style.display="none"; - document.images['toggleimg'+id].src="pictures/small_expand.gif"; - hidestatus[id]=1; - if(id=='orphaned'){ - TampNumberOrphanedRoom=NumberOrphanedRoom; - NumberOrphanedRoom=0; - } - else if(id=='breakout'){ - TampNumberBreakoutRoom=NumberBreakoutRoom; - NumberBreakoutRoom=0; - } - else if(id=='main'){ - TampNumberMainLectureRoom=NumberMainLectureRoom; - NumberMainLectureRoom=0; - } - } - gestionDisplay('collapse'); -} -function Navigateur() -{ - if (navigator.appName.indexOf("Netscape") > -1) - { - return "Netscape"; - } - if (navigator.appName.indexOf("Explorer") > -1) - { - return "Explorer"; - } - return "Unknown"; -} -var current=""; -function OneClick(id) -{ - if(studentView==false) - { - if(Navigateur()=="Explorer" && parseFloat(navigator.appVersion)<5.5) - { - document.getElementById('schedule_icon').style.filter=" progid:DXImageTransform.Microsoft.AlphaImageLoader(src='pictures/schedule.png', sizingMethod='scale')"; - document.getElementById('launch_icon').style.filter=" progid:DXImageTransform.Microsoft.AlphaImageLoader(src='pictures/launch.png', sizingMethod='scale')"; - document.getElementById('launch_icon_student').style.filter=" progid:DXImageTransform.Microsoft.AlphaImageLoader(src='pictures/launch.png', sizingMethod='scale')"; - document.getElementById('settings_icon').style.filter=" progid:DXImageTransform.Microsoft.AlphaImageLoader(src='pictures/settings.png', sizingMethod='scale')"; - document.getElementById('content_icon').style.filter=" progid:DXImageTransform.Microsoft.AlphaImageLoader(src='pictures/content.png', sizingMethod='scale')"; - document.getElementById('poll_icon').style.filter=" progid:DXImageTransform.Microsoft.AlphaImageLoader(src='pictures/poll.png', sizingMethod='scale')"; - } - else - { - document.images["launch_icon"].src="pictures/launch.png"; - document.images["schedule_icon"].src="pictures/schedule.png"; - document.images["settings_icon"].src="pictures/settings.png"; - document.images["content_icon"].src="pictures/content.png"; - document.images["poll_icon"].src="pictures/poll.png"; - } - document.getElementById("menu_admin").className="button_enabled"; - } - else - { - if(Navigateur()=="Explorer" && parseFloat(navigator.appVersion)<5.5) - { - document.getElementById('launch_icon_student').style.filter=" progid:DXImageTransform.Microsoft.AlphaImageLoader(src='pictures/launch.png', sizingMethod='scale')"; - } - else - { - document.images["launch_icon_student"].src="pictures/launch.png"; - } - document.getElementById("menu_student").className="button_enabled"; - } - if(current!="" && current!=id) - document.getElementById(current).style.backgroundColor="white"; - if(current!=id) - { - document.getElementById(id).style.backgroundColor="#c3dbf7"; - } - current=id; - if(document.getElementById("info")!=null && document.getElementById("info").style.display=="block") - document.getElementById("info").style.display="none"; -} -function dclick(id) -{ - if(current!="") - document.getElementById(current).style.backgroundColor="white"; - current=id; -} -function onOver(id) -{ - if(current!=id) - { - document.getElementById(id).style.backgroundColor="#f0f3f5"; - document.getElementById(id).style.cursor="pointer"; - } -} -function onOut(id) -{ - if(current!=id) - document.getElementById(id).style.backgroundColor="white"; -} -function Horizon(tok) -{ - if(current!="") - startHorizon(current, null, null, null, null, tok) -} -<?php if (isstudent($course->id)) -{ -?> - - var studentView=true; - document.getElementById("admin_Menu").style.display="block"; - document.getElementById("student_Menu").style.display="none"; - -<?php -} -else -{ -?> + + </head> +<br> +<body> +<br> +<div align="center"> - var studentView=false; - document.getElementById("admin_Menu").style.display="none"; - document.getElementById("student_Menu").style.display="block"; - -<?php -} -?> -function ChangeView() -{ - if( document.getElementById("view").value=="student") - { - studentView=true; - - document.getElementById("admin_Menu").style.display="none"; - document.getElementById("student_Menu").style.display="block"; - if(Navigateur()=="Explorer" && parseFloat(navigator.appVersion)<5.5) - { - document.getElementById('launch_icon_student').style.filter=" progid:DXImageTransform.Microsoft.AlphaImageLoader(src='pictures/launch_Black.png', sizingMethod='scale')"; - } - else - { - document.images["launch_icon_student"].src="pictures/launch_Black.png"; - } - } - else - { - studentView=false; - document.getElementById("admin_Menu").style.display="block"; - document.getElementById("student_Menu").style.display="none"; - if(Navigateur()=="Explorer" && parseFloat(navigator.appVersion)<5.5) - { - document.getElementById('schedule_icon').style.filter=" progid:DXImageTransform.Microsoft.AlphaImageLoader(src='pictures/schedule_Black.png', sizingMethod='scale')"; - document.getElementById('launch_icon').style.filter=" progid:DXImageTransform.Microsoft.AlphaImageLoader(src='pictures/launch_Black.png', sizingMethod='scale')"; - document.getElementById('settings_icon').style.filter=" progid:DXImageTransform.Microsoft.AlphaImageLoader(src='pictures/settings_Black.png', sizingMethod='scale')"; - document.getElementById('content_icon').style.filter=" progid:DXImageTransform.Microsoft.AlphaImageLoader(src='pictures/content_Black.png', sizingMethod='scale')"; - document.getElementById('poll_icon').style.filter=" progid:DXImageTransform.Microsoft.AlphaImageLoader(src='pictures/poll_Black.png', sizingMethod='scale')"; - } - else - { - document.images["launch_icon"].src="pictures/launch_Black.png"; - document.images["schedule_icon"].src="pictures/schedule_Black.png"; - document.images["settings_icon"].src="pictures/settings_Black.png"; - document.images["content_icon"].src="pictures/content_Black.png"; - document.images["poll_icon"].src="pictures/poll_Black.png"; - } - } - getMainLectureRoom(""); - getBreakoutRoom(""); - //getOrphanedArchive(""); - if(document.getElementById("info")!=null && document.getElementById("info").style.display=="block") - document.getElementById("info").style.display="none"; - current=""; - document.getElementById("menu_admin").className="button_disabled" - document.getElementById("menu_student").className="button_disabled"; -} + <iframe src="accueil.php?id=<?php p($id) ?>" width="1000" height="400" name="yo" frameborder="1" align="middle"> + <p>Votre navigateur ne peut malheureusement pas afficher de cadre incorpor\xE9: Vous pouvez appeler la page incorpor\xE9e + par ce lien: <a href="../../../index.htm">SELFHTML</a></p> + </iframe> -function LaunchWizard(url) -{ -var w = window.open(url,'lc_popup','scrollbars=yes,resizable=yes,width=800,height=500'); -w.focus(); -} +</div> + <table width="1000" align="center"> + <tr style="background-color: white"> + <td width="55%"></td> + <td align=right valign=middle style="color: #cccccc; font-style: italic; font-family: Verdana; height: 12px;"> + + Powered by : + </td> + <td align="right"><img src="pictures/logo.gif" /></td> + </tr> + </table> + + <?php + /* + $tab = liveclassroom_api_get_orphaned_archive_list(); + for($j=0;$j<sizeof($tab);$j++){ + echo $tab[$j]; + }*/ -function doOpen(popup,url,param) -{ - - if(current!="") - { - var complete_url=url+'?roomId='+current+'&'+param; - if(popup==false) - { - window.open(complete_url,"_self"); - } - else - { - var w = window.open(complete_url,'lc_popup','scrollbars=yes,resizable=yes,width=800,height=500'); - w.focus(); - } - } -} -function doOpenExtern(url,param) -{ - if(current!="") - { - var complete_url=url+'?class_id='+current+'&'+param; - var w = window.open(complete_url,'lc_popup','scrollbars=yes,resizable=yes,width=800,height=500'); - w.focus(); - } -} -function hideCroix(v) -{ - if(v.length>0) - document.getElementById("croix").style.display="block"; - else - document.getElementById("croix").style.display="none"; -} -var hiddenCroix=0; -function overCroix(v) -{ - if(hiddenCroix==0) - { - v.src="pictures/x_normal.gif"; - hiddenCroix=1; - } - else - { - v.src="pictures/x_over.gif"; - hiddenCroix=0; - - } -} -function clickCroix() -{ - document.getElementById("search").value=""; - document.getElementById("croix").style.display="none"; -} - - -var NumberMainLectureRoom=0; -var NumberBreakoutRoom=0; -var NumberOrphanedRoom=0; -function getMainLectureRoom(search) -{ - <?php - $tab = liveclassroom_get_main_room_list($course); ?> - /* - <% - SortedList archiveOfThisRoomID; - %>*/ - var retour=""; - NumberMainLectureRoom=0; - var numberArchive=0; - var number=0; - retour += " <table width=460px cellspacing=0 cellpadding=1 border=0>"; - <?php for($i=0; $i<sizeof($tab[0]); $i++) - { - ?> - myString = new String("<?php p(liveclassroom_get_room_name_from_id($tab[0][$i])) ?>"); - mysearch=new String(search); - mysearch=mysearch.toLowerCase(); - results = myString.match(mysearch) - if(search==null || results!=null) - { - var preview; - <?php - if(liveclassroom_api_room_is_preview($tab[0][$i])) - { - ?> - preview=true; - <?php - } - else - { - ?> - preview=false; - <?php - } - ?> - if(studentView==false || ( studentView==true && !preview)) - { - retour += "<tr id='<?php p($tab[0][$i]) ?>' Onclick=\"OneClick('<?php p($tab[0][$i]) ?>')\">" - - if(studentView==false) - { - retour+="<td width=\"20px\" Onclick=\"OneClick('<?php p($tab[0][$i]) ?>')\" Ondblclick=\"javascript:startHorizon('<?php p($tab[0][$i]) ?>', null, null, null, null, 'hzA=<?php p($usersession)?>')\" onmouseover=\"onOver('<?php p($tab[0][$i]) ?>')\" onmouseout=\"onOut('<?php p($tab[0][$i]) ?>')\"> </td>"; - retour+="<td width=\"20px\" Onclick=\"OneClick('<?php p($tab[0][$i]) ?>')\" Ondblclick=\"javascript:startHorizon('<?php p($tab[0][$i]) ?>', null, null, null, null, 'hzA=<?php p($usersession)?>')\" onmouseover=\"onOver('<?php p($tab[0][$i]) ?>')\" onmouseout=\"onOut('<?php p($tab[0][$i]) ?>')\"> </td>"; - - }else{ - - retour+="<td width=\"20px\" Onclick=\"OneClick('<?php p($tab[0][$i]) ?>')\" Ondblclick=\"javascript:startHorizon('<?php p($tab[0][$i]) ?>', null, null, null, null, 'hzA=<?php p($usersession)?>')\" onmouseover=\"onOver('<?php p($tab[0][$i]) ?>')\" onmouseout=\"onOut('<?php p($tab[0][$i]) ?>')\"> </td>"; - retour+="<td width=\"20px\" Onclick=\"OneClick('<?php p($tab[0][$i]) ?>')\" Ondblclick=\"javascript:startHorizon('<?php p($tab[0][$i]) ?>', null, null, null, null, 'hzA=<?php p($usersession)?>')\" onmouseover=\"onOver('<?php p($tab[0][$i]) ?>')\" onmouseout=\"onOut('<?php p($tab[0][$i]) ?>')\"> </td>"; - - } - retour += "<td width=\"300px\" Onclick=\"OneClick('<?php p($tab[0][$i]) ?>')\" Ondblclick=\"javascript:startHorizon('<?php p($tab[0][$i]) ?>', null, null, null, null, 'hzA=<?php p($usersession)?>')\" onmouseover=\"onOver('<?php p($tab[0][$i]) ?>')\" onmouseout=\"onOut('<?php p($tab[0][$i]) ?>')\"><?php p(liveclassroom_get_room_name_from_id($tab[0][$i])) ?></td>"; - if(!preview) - { - if(studentView==false) - { - retour +="<td width=\"16px\" align=\"center\"><a style='cursor:hand;' href=\"javascript:doOpen(false,'','time=<%=session.getTimeOfLoad()%>&<%=session.url_params %>action=closeRoom&signature=<%=Util.mD5Crypt(session.getSignature()+ Setup.getInstance().getHashKey())%>')\"><img src=\"pictures/online.png\" style=\"WIDTH: 16px; HEIGHT: 16px\" border=\"0\""; - retour +="alt=\"Change Availibility\" title=\"Change Availability\"></a>"; - } - else - retour +="<td width=\"16px\" align=\"center\" Onclick=\"OneClick('<?php p($tab[0][$i]) ?>')\" Ondblclick=\"javascript:startHorizon('<?php p($tab[0][$i]) ?>', null, null, null, null, 'hzA=<?php p($usersession)?>')\" onmouseover=\"onOver('<%=prefix+((LCRoom)mainLectureRoom.GetByIndex(i)).getRoomId()%>')\" onmouseout=\"onOut('<?php p($tab[0][$i]) ?>')\"><img src=\"pictures/online.png\" style=\"WIDTH: 16px; HEIGHT: 16px\" border=\"0\"></a>"; - - } - else - { - if(studentView==false) - { - retour +="<td width=\"16px\" align=\"center\"><a style='cursor:hand;' href=\"javascript:doOpen(false,'','time=<%=session.getTimeOfLoad()%>&<%=session.url_params %>action=openRoom&signature=<%=Util.mD5Crypt(session.getSignature()+ Setup.getInstance().getHashKey())%>')\"><img src=\"pictures/away.png\" style=\"WIDTH: 16px; HEIGHT: 16px\" border=\"0\""; - retour +="alt=\"Change Availibility\" title=\"Change Availability\"></a>"; - } - else - retour +="<td width=\"16px\" align=\"center\" Onclick=\"OneClick('<?php p($tab[0][$i]) ?>')\" Ondblclick=\"javascript:startHorizon('<?php p($tab[0][$i]) ?>', null, null, null, null, 'hzA=<?php p($usersession)?>')\" onmouseover=\"onOver('<?php p($tab[0][$i]) ?>')\" onmouseout=\"onOut('<?php p($tab[0][$i]) ?>')\"><img src=\"pictures/away.png\" style=\"WIDTH: 16px; HEIGHT: 16px\" border=\"0\"></a>"; - } - retour +="</td><td width='100px' Onclick=\"OneClick('<?php p($tab[0][$i]) ?>')\" Ondblclick=\"javascript:startHorizon('<?php p($tab[0][$i]) ?>', null, null, null, null, 'hzA=<?php p($usersession)?>')\" onmouseover=\"onOver('<?php p($tab[0][$i]) ?>')\" onmouseout=\"onOut('<?php p($tab[0][$i]) ?>')\"></td></tr>"; - - - NumberMainLectureRoom++; - } - } - <?php - } - ?> - if(numberArchive>0){ - - NumberMainLectureRoom++; - } - - retour += "</table>"; - document.getElementById("main").innerHTML = retour; - gestionDisplay(); - if(Navigateur()=="Explorer" && parseFloat(navigator.appVersion)<5.5) - correctPNG(); -} +</body> -function getBreakoutRoom(search) -{ - <?php - $tab = liveclassroom_get_main_room_list($course); - ?> - var retour=""; - NumberBreakoutRoom=0; - var numberArchive=0; - var number=0; - retour += " <table width=460px cellspacing=0 cellpadding=1 border=0>"; - <?php for($i=0; $i<sizeof($tab[1]); $i++) - { - ?> - myString = new String("<?php p(liveclassroom_get_room_name_from_id($tab[1][$i])) ?>"); - mysearch=new String(search); - mysearch=mysearch.toLowerCase(); - results = myString.match(mysearch) - if(search==null || results!=null) - { - var preview; - <?php - if(liveclassroom_api_room_is_preview($tab[1][$i])) - //<%if(((LCRoom)breakoutRoom.GetByIndex(i)).isPreview()) - { - ?> - preview=true; - <?php - } - else - { - ?> - preview=false; - <?php - } - ?> - if(studentView==false || ( studentView==true && !preview)) - { - retour += "<tr id='<?php p($tab[1][$i]) ?>' Onclick=\"OneClick('<?php p($tab[1][$i]) ?>')\">" - if(studentView==false) - { - /* - <%if((((SortedList)archive[((LCRoom)breakoutRoom.GetByIndex(i)).getRoomId()]).Count)>0) - { - %> - numberArchive++; - - retour+="<td width=\"20px\" Onclick=\"OneClick('<%=prefix+((LCRoom)breakoutRoom.GetByIndex(i)).getRoomId()%>')\" Ondblclick=\"javascript:startHorizon('<%=prefix+((LCRoom)breakoutRoom.GetByIndex(i)).getRoomId()%>', null, null, null, null, 'hzA=<%=AuthToken%>')\" onmouseover=\"onOver('<%=prefix+((LCRoom)breakoutRoom.GetByIndex(i)).getRoomId()%>')\" onmouseout=\"onOut('<%=prefix+((LCRoom)breakoutRoom.GetByIndex(i)).getRoomId()%>')\"></td>"; - retour+="<td width=\"20px\" align=\"right\"><img src=\"pictures/plus.gif\" onclick=\"hideArchive('<%=prefix+((LCRoom)breakoutRoom.GetByIndex(i)).getRoomId()%>hide')\" name=\"toggleimg<%=prefix+((LCRoom)breakoutRoom.GetByIndex(i)).getRoomId()%>hide\" border=\"0\" alt=\"Expand/Collapse More Options\" /></td>"; - - <% - } - else - { - %>*/ - retour+="<td width=\"20px\" Onclick=\"OneClick('<?php p($tab[1][$i]) ?>')\" Ondblclick=\"javascript:startHorizon('<?php p($tab[1][$i]) ?>', null, null, null, null, 'hzA=<?php p($usersession)?>')\" onmouseover=\"onOver('<?php p($tab[1][$i]) ?>')\" onmouseout=\"onOut('<?php p($tab[1][$i]) ?>')\"> </td>"; - retour+="<td width=\"20px\" Onclick=\"OneClick('<?php p($tab[1][$i]) ?>')\" Ondblclick=\"javascript:startHorizon('<?php p($tab[1][$i]) ?>', null, null, null, null, 'hzA=<?php p($usersession)?>')\" onmouseover=\"onOver('<?php p($tab[1][$i]) ?>')\" onmouseout=\"onOut('<?php p($tab[1][$i]) ?>')\"> </td>"; - - }else{ - /* - <%if((openArchive[((LCRoom)breakoutRoom.GetByIndex(i)).getRoomId()])!=null) - { - %> - - numberArchive++; - - retour+="<td width=\"20px\" Onclick=\"OneClick('<%=prefix+((LCRoom)breakoutRoom.GetByIndex(i)).getRoomId()%>')\" Ondblclick=\"javascript:startHorizon('<%=prefix+((LCRoom)breakoutRoom.GetByIndex(i)).getRoomId()%>', null, null, null, null, 'hzA=<%=AuthToken%>')\" onmouseover=\"onOver('<%=prefix+((LCRoom)breakoutRoom.GetByIndex(i)).getRoomId()%>')\" onmouseout=\"onOut('<%=prefix+((LCRoom)breakoutRoom.GetByIndex(i)).getRoomId()%>')\"></td>"; - retour+="<td width=\"20px\" align=\"right\"><img src=\"pictures/plus.gif\" onclick=\"hideArchive('<%=prefix+((LCRoom)breakoutRoom.GetByIndex(i)).getRoomId()%>hide')\" name=\"toggleimg<%=prefix+((LCRoom)breakoutRoom.GetByIndex(i)).getRoomId()%>hide\" border=\"0\" alt=\"Expand/Collapse More Options\" /></td>"; - - <% - } - else - { - %>*/ - retour+="<td width=\"20px\" Onclick=\"OneClick('<?php p($tab[1][$i]) ?>')\" Ondblclick=\"javascript:startHorizon('<?php p($tab[1][$i]) ?>', null, null, null, null, 'hzA=<?php p($usersession)?>')\" onmouseover=\"onOver('<?php p($tab[1][$i]) ?>')\" onmouseout=\"onOut('<?php p($tab[1][$i]) ?>')\"> </td>"; - retour+="<td width=\"20px\" Onclick=\"OneClick('<?php p($tab[1][$i]) ?>')\" Ondblclick=\"javascript:startHorizon('<?php p($tab[1][$i]) ?>', null, null, null, null, 'hzA=<?php p($usersession)?>')\" onmouseover=\"onOver('<?php p($tab[1][$i]) ?>')\" onmouseout=\"onOut('<?php p($tab[1][$i]) ?>')\"> </td>"; - - } - retour += "<td width=\"300px\" Onclick=\"OneClick('<?php p($tab[1][$i]) ?>')\" Ondblclick=\"javascript:startHorizon('<?php p($tab[1][$i]) ?>', null, null, null, null, 'hzA=<?php p($usersession)?>')\" onmouseover=\"onOver('<?php p($tab[1][$i]) ?>')\" onmouseout=\"onOut('<?php p($tab[1][$i]) ?>')\"><?php p(liveclassroom_get_room_name_from_id($tab[1][$i])) ?></td>"; - if(!preview) - { - if(studentView==false) - { - retour +="<td width=\"16px\" align=\"center\"><a style='cursor:hand;' href=\"javascript:doOpen(false,'','time=<%=session.getTimeOfLoad()%>&<%=session.url_params %>action=closeRoom&signature=<%=Util.mD5Crypt(session.getSignature()+ Setup.getInstance().getHashKey())%>')\"><img src=\"pictures/online.png\" style=\"WIDTH: 16px; HEIGHT: 16px\" border=\"0\""; - retour +="alt=\"Change Availibility\" title=\"Change Availability\"></a>"; - } - else - retour +="<td width=\"16px\" align=\"center\" Onclick=\"OneClick('<?php p($tab[1][$i]) ?>')\" Ondblclick=\"javascript:startHorizon('<?php p($tab[1][$i]) ?>', null, null, null, null, 'hzA=<?php p($usersession)?>')\" onmouseover=\"onOver('<?php p($tab[1][$i]) ?>')\" onmouseout=\"onOut('<?php p($tab[1][$i]) ?>')\"><img src=\"pictures/online.png\" style=\"WIDTH: 16px; HEIGHT: 16px\" border=\"0\"></a>"; - - - } - else - { - if(studentView==false) - { - retour +="<td width=\"16px\" align=\"center\"><a style='cursor:hand;' href=\"javascript:doOpen(false,'','time=<%=session.getTimeOfLoad()%>&<%=session.url_params %>action=openRoom&signature=<%=Util.mD5Crypt(session.getSignature()+ Setup.getInstance().getHashKey())%>')\"><img src=\"pictures/away.png\" style=\"WIDTH: 16px; HEIGHT: 16px\" border=\"0\""; - retour +="alt=\"Change Availibility\" title=\"Change Availability\"></a>"; - } - else - retour +="<td width=\"16px\" align=\"center\" Onclick=\"OneClick('<?php p($tab[1][$i]) ?>')\" Ondblclick=\"javascript:startHorizon('<?php p($tab[1][$i]) ?>', null, null, null, null, 'hzA=<?php p($usersession)?>')\" onmouseover=\"onOver('<?php p($tab[1][$i]) ?>')\" onmouseout=\"onOut('<?php p($tab[1][$i]) ?>')\"><img src=\"pictures/away.png\" style=\"WIDTH: 16px; HEIGHT: 16px\" border=\"0\"></a>"; - } - retour +="</td><td width='100px' Onclick=\"OneClick('<?php p($tab[1][$i]) ?>')\" Ondblclick=\"javascript:startHorizon('<?php p($tab[1][$i]) ?>', null, null, null, null, 'hzA=<?php p($usersession)?>')\" onmouseover=\"onOver('<?php p($tab[1][$i]) ?>')\" onmouseout=\"onOut('<?php p($tab[1][$i]) ?>')\"></td></tr>"; - /* <% if((((SortedList)archive[((LCRoom)breakoutRoom.GetByIndex(i)).getRoomId()]).Count)>0) - { - - %> - - retour+="<tr><td colspan=5 style=\"padding:0px 0px 0px 0px\"><div style=\"display:none\" id='<%=prefix+((LCRoom)breakoutRoom.GetByIndex(i)).getRoomId()%>hide'>"; - <% archiveOfThisRoomID=(SortedList)archive[((LCRoom)breakoutRoom.GetByIndex(i)).getRoomId()]; - %> - retour += " <table width=460px cellspacing=0 cellpadding=1 border=0 >"; - <% for( j=0; j<archiveOfThisRoomID.Count; j++) - { - if(orphanedArchive.ContainsKey(prefix+((LCRoom)archiveOfThisRoomID.GetByIndex(j)).getRoomId())) - orphanedArchive.Remove(prefix+((LCRoom)archiveOfThisRoomID.GetByIndex(j)).getRoomId()); - %> - var preview; - <%if(((LCRoom)archiveOfThisRoomID.GetByIndex(j)).isPreview()) - { - %> - preview=true; - <% - } - else - { - %> - preview=false; - <% - } - %> - if(studentView==false|| ( studentView==true && !preview)) - { - retour += "<tr id='<%=prefix+((LCRoom)archiveOfThisRoomID.GetByIndex(j)).getRoomId()%>' Onclick=\"OneClick('<%=prefix+((LCRoom)archiveOfThisRoomID.GetByIndex(j)).getRoomId()%>')\"><td width=\"40px\" Ondblclick=\"javascript:startHorizon('<%=prefix+((LCRoom)archiveOfThisRoomID.GetByIndex(j)).getRoomId()%>', null, null, null, null, 'hzA=<%=AuthToken%>')\" onmouseover=\"onOver('<%=prefix+((LCRoom)archiveOfThisRoomID.GetByIndex(j)).getRoomId()%>')\" onmouseout=\"onOut('<%=prefix+((LCRoom)archiveOfThisRoomID.GetByIndex(j)).getRoomId()%>')\"></td>"; - retour += "<td width=300px Onclick=\"OneClick('<%=prefix+((LCRoom)archiveOfThisRoomID.GetByIndex(j)).getRoomId()%>')\" Ondblclick=\"javascript:startHorizon('<%=prefix+((LCRoom)archiveOfThisRoomID.GetByIndex(j)).getRoomId()%>', null, null, null, null, 'hzA=<%=AuthToken%>')\" onmouseover=\"onOver('<%=prefix+((LCRoom)archiveOfThisRoomID.GetByIndex(j)).getRoomId()%>')\" onmouseout=\"onOut('<%=prefix+((LCRoom)archiveOfThisRoomID.GetByIndex(j)).getRoomId()%>')\">"; - retour += "<span ><img src=\"<%=Setup.getInstance().getLcServerURL()%>/images/integration/pointer.gif\" style=\"border:none\" />"; - retour += "<%=((LCRoom)archiveOfThisRoomID.GetByIndex(j)).getLongname()%></td>"; - if(!preview) - { - if(studentView==false) - { - retour +="<td width=\"16px\" align=\"center\"><a style='cursor:hand;' href=\"javascript:doOpen(false,'','time=<%=session.getTimeOfLoad()%>&<%=session.url_params %>action=closeRoom&signature=<%=Util.mD5Crypt(session.getSignature()+ Setup.getInstance().getHashKey())%>')\"><img src=\"pictures/online.png\" style=\"WIDTH: 16px; HEIGHT: 16px\" border=\"0\""; - retour +="alt=\"Change Availibility\" title=\"Change Availability\"></a>"; - } - else - { - retour +="<td width=\"16px\" align=\"center\" Onclick=\"OneClick('<%=prefix+((LCRoom)archiveOfThisRoomID.GetByIndex(j)).getRoomId()%>')\" Ondblclick=\"javascript:startHorizon('<%=prefix+((LCRoom)archiveOfThisRoomID.GetByIndex(j)).getRoomId()%>', null, null, null, null, 'hzA=<%=AuthToken%>')\" onmouseover=\"onOver('<%=prefix+((LCRoom)archiveOfThisRoomID.GetByIndex(j)).getRoomId()%>')\" onmouseout=\"onOut('<%=prefix+((LCRoom)archiveOfThisRoomID.GetByIndex(j)).getRoomId()%>')\"><img src=\"pictures/online.png\" style=\"WIDTH: 16px; HEIGHT: 16px\" border=\"0\"></a>"; - } - - } - else - { - if(studentView==false) - { - retour +="<td width=\"16px\" align=\"center\"><a style='cursor:hand;' href=\"javascript:doOpen(false,'','time=<%=session.getTimeOfLoad()%>&<%=session.url_params %>action=openRoom&signature=<%=Util.mD5Crypt(session.getSignature()+ Setup.getInstance().getHashKey())%>')\"><img src=\"pictures/away.png\" style=\"WIDTH: 16px; HEIGHT: 16px\" border=\"0\""; - retour +="alt=\"Change Availibility\" title=\"Change Availability\"></a>"; - } - else - retour +="<td width=\"16px\" align=\"center\" Onclick=\"OneClick('<%=prefix+((LCRoom)archiveOfThisRoomID.GetByIndex(j)).getRoomId()%>')\" Ondblclick=\"javascript:startHorizon('<%=prefix+((LCRoom)archiveOfThisRoomID.GetByIndex(j)).getRoomId()%>', null, null, null, null, 'hzA=<%=AuthToken%>')\" onmouseover=\"onOver('<%=prefix+((LCRoom)archiveOfThisRoomID.GetByIndex(j)).getRoomId()%>')\" onmouseout=\"onOut('<%=prefix+((LCRoom)archiveOfThisRoomID.GetByIndex(j)).getRoomId()%>')\"><img src=\"pictures/away.png\" style=\"WIDTH: 16px; HEIGHT: 16px\" border=\"0\"></a>"; - } - retour +="</td><td width='100px' Onclick=\"OneClick('<%=prefix+((LCRoom)archiveOfThisRoomID.GetByIndex(j)).getRoomId()%>')\" Ondblclick=\"javascript:startHorizon('<%=prefix+((LCRoom)archiveOfThisRoomID.GetByIndex(j)).getRoomId()%>', null, null, null, null, 'hzA=<%=AuthToken%>')\" onmouseover=\"onOver('<%=prefix+((LCRoom)archiveOfThisRoomID.GetByIndex(j)).getRoomId()%>')\" onmouseout=\"onOut('<%=prefix+((LCRoom)archiveOfThisRoomID.GetByIndex(j)).getRoomId()%>')\"></td></tr>"; - } - <% - } - %> - retour += "</table>"; - retour += " </div></td></tr>"; - <% - } - %>*/ - NumberBreakoutRoom++; - } - } - <?php - } - ?> - if(numberArchive>0){ - - NumberBreakoutRoom++; - } - - retour += "</table>"; - document.getElementById("breakout").innerHTML = retour; - gestionDisplay(); - if(Navigateur()=="Explorer" && parseFloat(navigator.appVersion)<5.5) - correctPNG(); -} -/* -function getOrphanedArchive(search) -{ - NumberOrphanedRoom=0; - var retour=""; - retour += " <table width=460px cellspacing=0 border=0 >"; - <% for(i=0; i<orphanedArchive.Count; i++) - { - %> - myString = new String("<%=((LCRoom)orphanedArchive.GetByIndex(i)).getLongname().ToLower()%>"); - mysearch=new String(search); - mysearch=mysearch.toLowerCase(); - results = myString.match(mysearch); - if(search==null || results!=null) - { - var preview; - <%if(((LCRoom)orphanedArchive.GetByIndex(i)).isPreview()) - { - %> - preview=true; - <% - } - else - { - %> - preview=false; - <% - } - %> - if(studentView==false|| ( studentView==true && !preview)) - { - retour += "<tr id='<%=prefix+((LCRoom)orphanedArchive.GetByIndex(i)).getRoomId()%>' Onclick=\"OneClick('<%=prefix+((LCRoom)orphanedArchive.GetByIndex(i)).getRoomId()%>')\">"; - retour += "<td width=\"20px\" Onclick=\"OneClick('<%=prefix+((LCRoom)orphanedArchive.GetByIndex(i)).getRoomId()%>')\" Ondblclick=\"javascript:startHorizon('<%=prefix+((LCRoom)orphanedArchive.GetByIndex(i)).getRoomId()%>', null, null, null, null, 'hzA=<%=AuthToken%>')\" onmouseover=\"onOver('<%=prefix+((LCRoom)orphanedArchive.GetByIndex(i)).getRoomId()%>')\" onmouseout=\"onOut('<%=prefix+((LCRoom)orphanedArchive.GetByIndex(i)).getRoomId()%>')\" ></td>"; - retour += "<td width=\"20px\" Onclick=\"OneClick('<%=prefix+((LCRoom)orphanedArchive.GetByIndex(i)).getRoomId()%>')\" Ondblclick=\"javascript:startHorizon('<%=prefix+((LCRoom)orphanedArchive.GetByIndex(i)).getRoomId()%>', null, null, null, null, 'hzA=<%=AuthToken%>')\" onmouseover=\"onOver('<%=prefix+((LCRoom)orphanedArchive.GetByIndex(i)).getRoomId()%>')\" onmouseout=\"onOut('<%=prefix+((LCRoom)orphanedArchive.GetByIndex(i)).getRoomId()%>')\" ></td>"; - - retour += "<td width=300px onclick=\"OneClick('<%=prefix+((LCRoom)orphanedArchive.GetByIndex(i)).getRoomId()%>')\" Ondblclick=\"javascript:startHorizon('<%=prefix+((LCRoom)orphanedArchive.GetByIndex(i)).getRoomId()%>', null, null, null, null, 'hzA=<%=AuthToken%>')\" onmouseover=\"onOver('<%=prefix+((LCRoom)orphanedArchive.GetByIndex(i)).getRoomId()%>')\" onmouseout=\"onOut('<%=prefix+((LCRoom)orphanedArchive.GetByIndex(i)).getRoomId()%>')\">"; - - retour += "<%=((LCRoom)orphanedArchive.GetByIndex(i)).getLongname()%></td>"; - if(!preview) - { - if(studentView==false) - retour +="<td width=\"20px\" align=\"center\" ><a style='cursor:hand;' href=\"javascript:doOpen(false,'','time=<%=session.getTimeOfLoad()%>&<%=session.url_params %>action=closeRoom&signature=<%=Util.mD5Crypt(session.getSignature()+ Setup.getInstance().getHashKey())%>')\"><img src=\"pictures/online.png\" style=\"WIDTH: 16px; HEIGHT: 16px\" border=\"0\""; - else - retour +="<td width=\"20px\" align=\"center\" Onclick=\"OneClick('<%=prefix+((LCRoom)orphanedArchive.GetByIndex(i)).getRoomId()%>')\" Ondblclick=\"javascript:startHorizon('<%=prefix+((LCRoom)orphanedArchive.GetByIndex(i)).getRoomId()%>', null, null, null, null, 'hzA=<%=AuthToken%>')\" onmouseover=\"onOver('<%=prefix+((LCRoom)orphanedArchive.GetByIndex(i)).getRoomId()%>')\" onmouseout=\"onOut('<%=prefix+((LCRoom)orphanedArchive.GetByIndex(i)).getRoomId()%>')\"><img src=\"pictures/online.png\" style=\"WIDTH: 16px; HEIGHT: 16px\" border=\"0\""; - } - else - { - if(studentView==false) - { - retour +="<td width=\"20px\" align=\"center\" ><a style='cursor:hand;' href=\"javascript:doOpen(false,'','time=<%=session.getTimeOfLoad()%>&<%=session.url_params %>action=openRoom&signature=<%=Util.mD5Crypt(session.getSignature()+ Setup.getInstance().getHashKey())%>')\"><img src=\"pictures/away.png\" style=\"WIDTH: 16px; HEIGHT: 16px\" border=\"0\""; - retour +="alt=\"Change Availibility\" title=\"Change Availability\"></a>"; - } - else - retour +="<td width=\"20px\" align=\"center\" Ondblclick=\"javascript:startHorizon('<%=prefix+((LCRoom)orphanedArchive.GetByIndex(i)).getRoomId()%>', null, null, null, null, 'hzA=<%=AuthToken%>')\" onmouseover=\"onOver('<%=prefix+((LCRoom)orphanedArchive.GetByIndex(i)).getRoomId()%>')\" onmouseout=\"onOut('<%=prefix+((LCRoom)orphanedArchive.GetByIndex(i)).getRoomId()%>')\"><img src=\"pictures/away.png\" style=\"WIDTH: 16px; HEIGHT: 16px\" border=\"0\"></a>"; - } - retour +="</td><td width='100px' Onclick=\"OneClick('<%=prefix+((LCRoom)orphanedArchive.GetByIndex(i)).getRoomId()%>')\" Ondblclick=\"javascript:startHorizon('<%=prefix+((LCRoom)orphanedArchive.GetByIndex(i)).getRoomId()%>', null, null, null, null, 'hzA=<%=AuthToken%>')\" onmouseover=\"onOver('<%=prefix+((LCRoom)orphanedArchive.GetByIndex(i)).getRoomId()%>')\" onmouseout=\"onOut('<%=prefix+((LCRoom)orphanedArchive.GetByIndex(i)).getRoomId()%>')\"></td></tr>"; - NumberOrphanedRoom++; - } - } - <% - } - %> - <% for(i=0; i<orphanedArchiveForStudent.Count; i++) - { - %> - myString = new String("<%=prefix+((LCRoom)orphanedArchiveForStudent.GetByIndex(i)).getLongname().ToLower()%>"); - mysearch=new String(search); - mysearch=mysearch.toLowerCase(); - results = myString.match(mysearch); - if(search==null || results!=null) - { - var preview; - <%if(((LCRoom)orphanedArchiveForStudent.GetByIndex(i)).isPreview()) - { - %> - preview=true; - <% - } - else - { - %> - preview=false; - <% - } - %> - if( studentView==true && !preview) - { - retour += "<tr id='<%=prefix+((LCRoom)orphanedArchiveForStudent.GetByIndex(i)).getRoomId()%>'><td width=\"10px\" Onclick=\"OneClick('<%=prefix+((LCRoom)orphanedArchiveForStudent.GetByIndex(i)).getRoomId()%>')\" Ondblclick=\"javascript:startHorizon('<%=prefix+((LCRoom)orphanedArchiveForStudent.GetByIndex(i)).getRoomId()%>', null, null, null, null, 'hzA=<%=AuthToken%>')\" onmouseover=\"onOver('<%=prefix+((LCRoom)orphanedArchiveForStudent.GetByIndex(i)).getRoomId()%>')\" onmouseout=\"onOut('<%=prefix+((LCRoom)orphanedArchiveForStudent.GetByIndex(i)).getRoomId()%>')\" ></td><td onclick=\"OneClick('<%=prefix+((LCRoom)orphanedArchiveForStudent.GetByIndex(i)).getRoomId()%>')\" Ondblclick=\"javascript:startHorizon('<%=prefix+((LCRoom)orphanedArchiveForStudent.GetByIndex(i)).getRoomId()%>', null, null, null, null, 'hzA=<%=AuthToken%>')\" onmouseover=\"onOver('<%=prefix+((LCRoom)orphanedArchiveForStudent.GetByIndex(i)).getRoomId()%>')\" onmouseout=\"onOut('<%=prefix+((LCRoom)orphanedArchiveForStudent.GetByIndex(i)).getRoomId()%>')\">"; - retour += "<%=prefix+((LCRoom)orphanedArchiveForStudent.GetByIndex(i)).getLongname()%></td>"; - if(!preview) - { - if(studentView==false) - retour +="<td width=\"20px\" align=\"center\" ><a style='cursor:hand;' href=\"javascript:doOpen(false,'','time=<%=session.getTimeOfLoad()%>&<%=session.url_params %>action=closeRoom&signature=<%=Util.mD5Crypt(session.getSignature()+ Setup.getInstance().getHashKey())%>')\"><img src=\"pictures/online.png\" style=\"WIDTH: 16px; HEIGHT: 16px\" border=\"0\""; - else - retour +="<td width=\"20px\" align=\"center\" Onclick=\"OneClick('<%=prefix+((LCRoom)orphanedArchiveForStudent.GetByIndex(i)).getRoomId()%>')\" Ondblclick=\"javascript:startHorizon('<%=prefix+((LCRoom)orphanedArchiveForStudent.GetByIndex(i)).getRoomId()%>', null, null, null, null, 'hzA=<%=AuthToken%>')\" onmouseover=\"onOver('<%=prefix+((LCRoom)orphanedArchiveForStudent.GetByIndex(i)).getRoomId()%>')\" onmouseout=\"onOut('<%=prefix+((LCRoom)orphanedArchiveForStudent.GetByIndex(i)).getRoomId()%>')\"><img src=\"pictures/online.png\" style=\"WIDTH: 16px; HEIGHT: 16px\" border=\"0\""; - } - else - { - if(studentView==false) - { - retour +="<td width=\"20px\" align=\"center\" Onclick=\"OneClick('<%=prefix+((LCRoom)orphanedArchiveForStudent.GetByIndex(i)).getRoomId()%>')\"><a style='cursor:hand;' href=\"javascript:doOpen(false,'','time=<%=session.getTimeOfLoad()%>&<%=session.url_params %>action=openRoom&signature=<%=Util.mD5Crypt(session.getSignature()+ Setup.getInstance().getHashKey())%>')\"><img src=\"pictures/away.png\" style=\"WIDTH: 16px; HEIGHT: 16px\" border=\"0\""; - retour +="alt=\"Change Availibility\" title=\"Change Availability\"></a>"; - } - else - retour +="<td width=\"20px\" align=\"center\" Onclick=\"OneClick('<%=prefix+((LCRoom)orphanedArchiveForStudent.GetByIndex(i)).getRoomId()%>')\" Ondblclick=\"javascript:startHorizon('<%=prefix+((LCRoom)orphanedArchiveForStudent.GetByIndex(i)).getRoomId()%>', null, null, null, null, 'hzA=<%=AuthToken%>')\" onmouseover=\"onOver('<%=prefix+((LCRoom)orphanedArchiveForStudent.GetByIndex(i)).getRoomId()%>')\" onmouseout=\"onOut('<%=prefix+((LCRoom)orphanedArchiveForStudent.GetByIndex(i)).getRoomId()%>')\"><img src=\"pictures/away.png\" style=\"WIDTH: 16px; HEIGHT: 16px\" border=\"0\"></a>"; - } - retour +="</td><td width='100px' Onclick=\"OneClick('<%=prefix+((LCRoom)orphanedArchiveForStudent.GetByIndex(i)).getRoomId()%>')\" Ondblclick=\"javascript:startHorizon('<%=prefix+((LCRoom)orphanedArchiveForStudent.GetByIndex(i)).getRoomId()%>', null, null, null, null, 'hzA=<%=AuthToken%>')\" onmouseover=\"onOver('<%=prefix+((LCRoom)orphanedArchiveForStudent.GetByIndex(i)).getRoomId()%>')\" onmouseout=\"onOut('<%=prefix+((LCRoom)orphanedArchiveForStudent.GetByIndex(i)).getRoomId()%>')\"></td></tr>"; - NumberOrphanedRoom++; - } - } - <% - } - %> - retour += "</table>"; - document.getElementById("orphaned").innerHTML = retour; - gestionDisplay(); - if(Navigateur()=="Explorer" && parseFloat(navigator.appVersion)<5.5) - correctPNG(); -} -*/ -function gestionDisplay(type) -{ - if(type!='collapse'){ - if(NumberOrphanedRoom==0) - { - document.getElementById("orphaned").style.display="none"; - document.getElementById("orphaned_title").style.display="none"; - } - else - { - document.getElementById("orphaned").style.display="block"; - document.getElementById("orphaned_title").style.display="block"; - } - if(NumberBreakoutRoom==0) - { - document.getElementById("breakout").style.display="none"; - document.getElementById("breakout_title").style.display="none"; - } - else - { - document.getElementById("breakout").style.display="block"; - document.getElementById("breakout_title").style.display="block"; - } - if(NumberMainLectureRoom==0) - { - document.getElementById("main").style.display="none"; - document.getElementById("main_title").style.display="none"; - } - else - { - document.getElementById("main").style.display="block"; - document.getElementById("main_title").style.display="block"; - } - } - if(NumberMainLectureRoom==0) - { - if(NumberBreakoutRoom==0) - { - if(NumberOrphanedRoom<10) - document.getElementById("orphaned").style.height=NumberOrphanedRoom*18.5+"px"; - else - document.getElementById("orphaned").style.height=10*18.5+"px"; - } - else if(NumberOrphanedRoom==0) - { - if(NumberBreakoutRoom<10) - document.getElementById("breakout").style.height=NumberBreakoutRoom*18.5+"px"; - else - document.getElementById("breakout").style.height=10*18.5+"px"; - } - else if(NumberOrphanedRoom>=5 && NumberBreakoutRoom>=5) - { - document.getElementById("breakout").style.height=5*18.5+"px"; - document.getElementById("orphaned").style.height=5*18.5+"px"; - } - else if(NumberOrphanedRoom<5 && NumberBreakoutRoom>=5) - { - document.getElementById("breakout").style.height=NumberOrphanedRoom*18.5+"px"; - if(NumberBreakoutRoom>(10-NumberOrphanedRoom)) - document.getElementById("orphaned").style.height=(10-NumberOrphanedRoom)*18.5+"px"; - else - document.getElementById("orphaned").style.height=NumberBreakoutRoom*18.5+"px"; - } - else if(NumberOrphanedRoom<5 && NumberBreakoutRoom<5) - { - document.getElementById("orphaned").style.height=NumberOrphanedRoom*18.5+"px"; - document.getElementById("breakout").style.height=NumberBreakoutRoom*18.5+"px"; - } - else if(NumberOrphanedRoom>=5 && NumberBreakoutRoom<5) - { - document.getElementById("breakout").style.height=NumberBreakoutRoom*18.5+"px"; - if(NumberOrphanedRoom>(10-NumberBreakoutRoom)) - document.getElementById("orphaned").style.height=(10-NumberBreakoutRoom)*18.5+"px"; - else - document.getElementById("orphaned").style.height=NumberOrphanedRoom*18.5+"px"; - } - } - else if(NumberMainLectureRoom<3) - { - if(NumberBreakoutRoom==0 && NumberOrphanedRoom==0) - { - document.getElementById("main").style.height=NumberMainLectureRoom*18.5+"px"; - } - else if(NumberBreakoutRoom==0) - { - document.getElementById("main").style.height=NumberMainLectureRoom*18.5+"px"; - if(NumberOrphanedRoom>(10-NumberMainLectureRoom)) - document.getElementById("orphaned").style.height=(10-NumberMainLectureRoom)*18.5+"px"; - else - document.getElementById("orphaned").style.height=NumberOrphanedRoom*18.5+"px"; - } - else if(NumberOrphanedRoom==0) - { - document.getElementById("main").style.height=NumberMainLectureRoom*18.5+"px"; - if(NumberBreakoutRoom>(10-NumberMainLectureRoom) ){ - document.getElementById("breakout").style.height=(10-NumberMainLectureRoom)*18.5+"px"; - //document.getElementById("breakout").style.o="scroll"; - //document.getElementById("breakout").style.overflow="hidden"; - } - else - document.getElementById("breakout").style.height=NumberBreakoutRoom*18.5+"px"; - } - else if(NumberOrphanedRoom>=3 && NumberBreakoutRoom>=3) - { - document.getElementById("breakout").style.height=3*18.5+"px"; - document.getElementById("orphaned").style.height=3*18.5+"px"; - document.getElementById("main").style.height=3*18.5+"px"; - } - else if(NumberOrphanedRoom<3 && NumberBreakoutRoom>=3) - { - document.getElementById("main").style.height=NumberMainLectureRoom*18.5+"px"; - document.getElementById("orphaned").style.height=NumberOrphanedRoom*18.5+"px"; - if(NumberBreakoutRoom>(10-NumberOrphanedRoom-NumberMainLectureRoom)) - document.getElementById("breakout").style.height=(10-NumberOrphanedRoom-NumberMainLectureRoom)*18.5+"px"; - else - document.getElementById("breakout").style.height=NumberBreakoutRoom*18.5+"px"; - } - else if(NumberOrphanedRoom<3 && NumberBreakoutRoom<3) - { - document.getElementById("orphaned").style.height=NumberOrphanedRoom*18.5+"px"; - document.getElementById("breakout").style.height=NumberBreakoutRoom*18.5+"px"; - document.getElementById("main").style.height=NumberMainLectureRoom*18.5+"px"; - } - else if(NumberOrphanedRoom>=3 && NumberBreakoutRoom<3) - { - document.getElementById("main").style.height=NumberMainLectureRoom*18.5+"px"; - document.getElementById("breakout").style.height=NumberBreakoutRoom*18.5+"px"; - if(NumberOrphanedRoom>(10-NumberBreakoutRoom-NumberMainLectureRoom)) - document.getElementById("orphaned").style.height=(10-NumberBreakoutRoom-NumberMainLectureRoom)*18.5+"px"; - else - document.getElementById("orphaned").style.height=NumberOrphanedRoom*18.5+"px"; - } - } - else if(NumberMainLectureRoom>=3) - { - if(NumberBreakoutRoom==0 && NumberOrphanedRoom==0) - { - if(NumberMainLectureRoom<10) - document.getElementById("main").style.height=NumberMainLectureRoom*18.5+"px"; - else - document.getElementById("main").style.height=10*18.5+"px"; - } - else if(NumberBreakoutRoom==0) - { - if(NumberOrphanedRoom<5 && NumberMainLectureRoom<5) - { - document.getElementById("orphaned").style.height=NumberOrphanedRoom*18.5+"px"; - document.getElementById("main").style.height=NumberMainLectureRoom*18.5+"px"; - } - else if(NumberOrphanedRoom>=5 && NumberMainLectureRoom>=5) - { - document.getElementById("orphaned").style.height=5*18.5+"px"; - document.getElementById("main").style.height=5*18.5+"px"; - } - else if(NumberOrphanedRoom<5 && NumberMainLectureRoom>=5) - { - document.getElementById("orphaned").style.height=NumberOrphanedRoom*18.5+"px"; - if(NumberMainLectureRoom>(10-NumberOrphanedRoom)) - document.getElementById("main").style.height=(10-NumberOrphanedRoom)*18.5+"px"; - else - document.getElementById("main").style.height=NumberMainLectureRoom*18.5+"px"; - } - } - else if(NumberOrphanedRoom==0) - { - if(NumberBreakoutRoom<5 && NumberMainLectureRoom<5) - { - document.getElementById("breakout").style.height=NumberBreakoutRoom*18.5+"px"; - document.getElementById("main").style.height=NumberMainLectureRoom*18.5+"px"; - } - else if(NumberBreakoutRoom>=5 && NumberMainLectureRoom>=5) - { - document.getElementById("breakout").style.height=5*18.5+"px"; - document.getElementById("main").style.height=5*18.5+"px"; - } - else if(NumberBreakoutRoom<5 && NumberMainLectureRoom>=5) - { - document.getElementById("breakout").style.height=NumberBreakoutRoom*18.5+"px"; - if(NumberMainLectureRoom>(10-NumberBreakoutRoom)) - { - document.getElementById("main").style.height=(10-NumberBreakoutRoom)*18.5+"px"; - } - else - document.getElementById("main").style.height=NumberMainLectureRoom*18.5+"px"; - } - else if(NumberBreakoutRoom>=5 && NumberMainLectureRoom<5) - { - document.getElementById("main").style.height=NumberMainLectureRoom*18.5+"px"; - if(NumberBreakoutRoom>(10-NumberMainLectureRoom)) - { - document.getElementById("breakout").style.height=(10-NumberMainLectureRoom)*18.5+"px"; - } - else - document.getElementById("breakout").style.height=NumberBreakoutRoom*18.5+"px"; - } - } - else if(NumberOrphanedRoom>=3 && NumberBreakoutRoom>=3) - { - document.getElementById("breakout").style.height=3*18.5+"px"; - document.getElementById("orphaned").style.height=3*18.5+"px"; - document.getElementById("main").style.height=3*18.5+"px"; - } - else if(NumberOrphanedRoom<3 && NumberBreakoutRoom>=3) - { - - document.getElementById("main").style.height=3*18.5+"px"; - document.getElementById("breakout").style.height=3*18.5+"px"; - document.getElementById("orphaned").style.height=NumberOrphanedRoom*18.5+"px"; - } - else if(NumberOrphanedRoom<3 && NumberBreakoutRoom<3) - { - document.getElementById("orphaned").style.height=NumberOrphanedRoom*18.5+"px"; - document.getElementById("breakout").style.height=NumberBreakoutRoom*18.5+"px"; - if(NumberMainLectureRoom>(10-NumberBreakoutRoom-NumberOrphanedRoom)) - { - document.getElementById("main").style.height=(10-NumberBreakoutRoom-NumberOrphanedRoom)*18.5+"px"; - } - else - document.getElementById("main").style.height=NumberMainLectureRoom*18.5+"px"; - } - else if(NumberOrphanedRoom>=3 && NumberBreakoutRoom<3) - { - document.getElementById("main").style.height=3*18.5+"px"; - document.getElementById("breakout").style.height=NumberBreakoutRoom*18.5+"px"; - document.getElementById("orphaned").style.height=3*18.5+"px"; - } - } -} -</script> - <link rel="STYLESHEET" href="css/StyleSheet.css" type="text/css" /> - - </head> - - <br> - - - - <span id="student_Menu"> - <table style="width: 1000" cellspacing="0" cellpadding="1" border="1" align="center"> - <tr class="button_disabled" id="menu_student"> - <td width="5px"></td> - <td align="center" > - <a href="javascript:Horizon('hzA=<?php p($usersession)?>');" > - <img src="pictures/launch_Black.png" border="0" - alt="Edit RoomSettings" title="Launch Room" id="launch_icon_student" name="launch_icon_student" height="24" width="24"><br /> - Launch</a> - - </td> - - <td width=77%></td> - </tr> - </table> - </span> - <span id="admin_Menu"> - <table style="width: 1000" cellspacing="0" cellpadding="1" border="1" align="center"> - <tr class="button_disabled" id="menu_admin"> - - <td width="12%" align="center" > - <a href="javascript:Horizon('hzA=<?php p($usersession)?>');" > - <img src="pictures/launch_Black.png" border="0" - alt="Edit RoomSettings" title="Launch Room" id="launch_icon" name="launch_icon" height="24" width="24"><br /> - Launch</a> - - </td> - <td width="12%" align="center" > - <a href="javascript:Horizon('hzA=<?php p($usersession)?>');" > - <img src="pictures/launch_Black.png" border="0" - alt="Edit RoomSettings" title="Launch Room" id="launch_icon" name="launch_icon" height="24" width="24"><br /> - Add Activity</a> - - </td> - <td style="border-right: 1px solid #666666;"> </td> - <td width="5px"></td> - <td width="10%" align=center class="button_enabled"> - - <!-- a href="<%="ManageRoom.aspx?time="+ session.getTimeOfLoad()+"&"+session.url_params+"signature="+Util.mD5Crypt(session.getSignature()+Setup.getInstance().getHashKey()) %>"> --> - <img src="pictures/new.png" border="0" alt="Calendar" title="Calendar" id="Img1" height="24" width="24"> - <br />New Room</a> - </td> - <td width="5px"></td> - <td width="10%" align="center" > - <!-- <a href="javascript:doOpenExtern('<%=Setup.getInstance().getLcServerURL()%>/admin/class/carousels.epl','hzA=<?php p($usersession)?>')" > - --> <img src="pictures/content_Black.png" border="0" - alt="Manage Content" title="Manage Content" id="content_icon" name="content_icon" height="24" width="24"><br /> - Content</a> - </td> - <td width="10%" align="center" > - <!-- <a href="javascript:doOpen(true,'View_Report.aspx','hzA=<?php p($usersession)?>')" > - --> <img src="pictures/poll_Black.png" border="0" - alt="View Room Records" title="View Poll Results" id="poll_icon" name="poll_icon" height="24" width="24"><br /> - Poll</a> - </td> - <td style="border-right: 1px solid #666666;"> </td> - <td width="10%" align="center" > - <!-- <a href="javascript:doOpen(false,'AddCalendarEvent.aspx','time=<%=session.getTimeOfLoad() %>&<%=session.url_params %>signature=<%=Util.mD5Crypt(session.getSignature()+ Setup.getInstance().getHashKey())%>')" > - --> <img src="pictures/schedule_Black.png" border="0" alt="Schedule" - name="schedule_icon" id="schedule_icon" height="24" width="24" ><br /> - Availability</a> - </td> - - <td width="10%" align="center" > - <!-- <a href="javascript:doOpen(false,'ManageRoom.aspx','time=<%=session.getTimeOfLoad()%>&<%=session.url_params %>action=editRoom&signature=<%=Util.mD5Crypt(session.getSignature()+ Setup.getInstance().getHashKey())%>')" > - --> <img src="pictures/settings_Black.png" border="0" - alt="Edit RoomSettings" title="Edit Room Settings" id="settings_icon" name="settings_icon" height="24" width="24"><br /> - Settings</a> - </td> - - - <td width="10%" align="center" > - <!-- <a href="javascript:doOpen(false,'','time=<%=session.getTimeOfLoad()%>&<%=session.url_params %>action=deleteRoom&signature=<%=Util.mD5Crypt(session.getSignature()+ Setup.getInstance().getHashKey())%>')" onclick=";return confirm('Are you sure to delete this room ?');" > - --> <img src="pictures/delete_Black.png" border="0" - alt="Delete Room" title="Delete Room" id="delete_icon" height="24" width="24"><br /> - Delete</a> - </td> - - </tr> - </span> - <!-- message --> - <tr> - <td colspan="12" style... [truncated message content] |