[Hw4mdl-svn] SF.net SVN: hw4mdl: [63] trunk/moodle/mod/liveclassroom
Brought to you by:
jhlinder,
trollinger
From: <sh...@us...> - 2006-09-13 16:07:29
|
Revision: 63 http://svn.sourceforge.net/hw4mdl/?rev=63&view=rev Author: shazan Date: 2006-09-13 09:07:14 -0700 (Wed, 13 Sep 2006) Log Message: ----------- New name for the index page of the iframe Welcome :) + new functions for the archive room Modified Paths: -------------- trunk/moodle/mod/liveclassroom/api.php trunk/moodle/mod/liveclassroom/index.php trunk/moodle/mod/liveclassroom/lib.php Added Paths: ----------- trunk/moodle/mod/liveclassroom/welcome.php Modified: trunk/moodle/mod/liveclassroom/api.php =================================================================== --- trunk/moodle/mod/liveclassroom/api.php 2006-09-13 14:08:54 UTC (rev 62) +++ trunk/moodle/mod/liveclassroom/api.php 2006-09-13 16:07:14 UTC (rev 63) @@ -681,36 +681,8 @@ } -/* -* archive=1 ===> room is an archive -* -* NEED TO BE TESTED !!! -*/ -function liveclassroom_api_get_archive_list($course) { - global $CFG; - global $LIVECLASSROOM_API_ADMIN; - global $LIVECLASSROOM_API_FUNCTION_GET_ROOM_LIST; - - $data = liveclassroom_api_send_query($ch,$LIVECLASSROOM_API_FUNCTION_GET_ROOM_LIST, "&attribute=class_id&filter01=archive&filter01value=1"); - - preg_match("(\d*)", $data, $matches); - $respcode = $matches[0]; - - if ( $respcode != 100) { - return false; - } - $tok = split("100 OK",$data); - $tok1 = split($LIVECLASSROOM_API_RECORD_SEPERATOR,$tok[1]); - - $j=0; - - for($i=0;$i<sizeof($tok1);$i++) { - $list_return[$j]=$tok[$i]; - - } - return $list_return; -} + /* * List all the archive room associated with the room given * @@ -964,9 +936,6 @@ function liveclassroom_api_get_orphaned_archive_list() { - - - $tab_archive = liveclassroom_api_get_archive_list() ; @@ -1016,6 +985,39 @@ return $response; } + /* +* Give the nam of the room given +* @param $roomid : the id of the room +* return a String :name of the room +*/ +function liveclassroom_api_get_room_name($roomid){ + global $CFG; + global $LIVECLASSROOM_API_ADMIN; + global $LIVECLASSROOM_API_FUNCTION_GET_ROOM_LIST; + global $LIVECLASSROOM_API_RECORD_SEPERATOR; + + $data = liveclassroom_api_send_query($ch,$LIVECLASSROOM_API_FUNCTION_GET_ROOM_LIST, "&attribute=longname&filter00=class_id&filter00value=$roomid"); + + preg_match("(\d*)", $data, $matches); + $respcode = $matches[0]; + + if ( $respcode != 100) { + return false; + } + //print $url; + $tok = split("100 OK",$data); + $tok1 = split($LIVECLASSROOM_API_RECORD_SEPERATOR,$tok[1]); + + $test = strstr($tok1[0],"longname="); + + //$tok2 = split("class_id=",$tok1[0]); + $result = liveclassroom_parse_line($test,"longname="); + //Remove le " " at the end of the line + $response = substr($result,0,-1); + + return $response; + +} /** * Enroll the given user into the group. Modified: trunk/moodle/mod/liveclassroom/index.php =================================================================== --- trunk/moodle/mod/liveclassroom/index.php 2006-09-13 14:08:54 UTC (rev 62) +++ trunk/moodle/mod/liveclassroom/index.php 2006-09-13 16:07:14 UTC (rev 63) @@ -79,6 +79,7 @@ die; } ?> +<script type="text/javascript" src='<?PHP p($CFG->liveclassroom_servername)?>/js/launch.js'></script> <head> @@ -88,15 +89,17 @@ <br> <div align="center"> - <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 src="welcome.php?id=<?php p($id) ?>" width="1000" height="400" name="yo" frameborder="1" align="middle"> + <p>Sorry your navigator can't display this iframe +<a href="../../../index.htm">SELFHTML</a></p> </iframe> </div> <table width="1000" align="center"> <tr style="background-color: white"> - <td width="55%"></td> + <td width="55%" valign=top style="color: #cccccc; font-family: Verdana; height: 9px;"> + <a href="javascript:startWizard()" target="_self" class="external"><?php echo get_string('wizard.text.2', 'liveclassroom') ?></a> + </td> <td align=right valign=middle style="color: #cccccc; font-style: italic; font-family: Verdana; height: 12px;"> Powered by : @@ -105,13 +108,15 @@ </tr> </table> - <?php - /* - $tab = liveclassroom_api_get_orphaned_archive_list(); + <?php + //echo liveclassroom_api_get_room_name('_moodle_1c1_23459_2006_0913_0856_47'); + + /* + $tab = liveclassroom_api_get_archive_list_for_a_room('_moodle_1c1_244459'); for($j=0;$j<sizeof($tab);$j++){ echo $tab[$j]; - }*/ - + } +*/ ?> </body> Modified: trunk/moodle/mod/liveclassroom/lib.php =================================================================== --- trunk/moodle/mod/liveclassroom/lib.php 2006-09-13 14:08:54 UTC (rev 62) +++ trunk/moodle/mod/liveclassroom/lib.php 2006-09-13 16:07:14 UTC (rev 63) @@ -522,7 +522,7 @@ function liveclassroom_get_room_name_from_id($roomid) { if(!($list = get_record('liveclassroom_rooms','room_id',$roomid))) { - error( "Response get list type room per course : query to database failed"); + error( "Response get room name from id : query to database failed"); } return $list->name; @@ -537,7 +537,7 @@ function liveclassroom_get_roomid_list($course) { if(!($rooms = get_records('liveclassroom_rooms','course',$course->id))) { - error( "Response get list type room per course : query to database failed"); + error( "Response get roomid list : query to database failed"); } $i=0; Added: trunk/moodle/mod/liveclassroom/welcome.php =================================================================== --- trunk/moodle/mod/liveclassroom/welcome.php (rev 0) +++ trunk/moodle/mod/liveclassroom/welcome.php 2006-09-13 16:07:14 UTC (rev 63) @@ -0,0 +1,1003 @@ +<?PHP + +/****************************************************************************** + * * + * Copyright (c) 1999-2006 Horizon Wimba, All Rights Reserved. * + * * + * COPYRIGHT: * + * This software is the property of Horizon Wimba. * + * You can redistribute it and/or modify it under the terms of * + * the GNU General Public License as published by the * + * Free Software Foundation. * + * * + * WARRANTIES: * + * This software is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with the Horizon Wimba Moodle Integration; * + * if not, write to the Free Software Foundation, Inc., * + * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * + * * + * Author: Samy Hazan * + * * + * Date: 15th April 2006 * + * * + ******************************************************************************/ + +/* $Id$ */ + +/// This page is to display the widget + + + require_once("../../config.php"); + require_once("lib.php"); + + $id = optional_param('id', 0, PARAM_INT); + + $course = optional_param('course', 0, PARAM_INT); + $roomname = optional_param('idroomname', 0, PARAM_TEXT); + //$roomid = optional_param('idroom', 0, PARAM_TEXT); + + if (! $room = get_record("liveclassroom", "course", $id)) { + error("Course ID is incorrect"); + } + + //$id = require_param('id', 0, PARAM_INT); + //require_variable($id); // course + global $CFG; + + if (! $course = get_record("course", "id", $id)) { + error("Course ID is incorrect"); + } + + require_login($course->id); + + add_to_log($course->id, "liveclassroom", "view all", "index.php?id=$course->id", ""); + + +/// Get all required strings + + $strliveclassrooms = get_string("modulenameplural", "liveclassroom"); + $strliveclassroom = get_string("modulename", "liveclassroom"); + + if (!$usersession = liveclassroom_create_session ($course, isteacher($course->id, $USER->id))) { + error ("Cannot create session"); + } + +/// Print the header + + if ($course->category) { + $navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->"; + } + + // print_header("$course->shortname: $strliveclassrooms", "$course->fullname", "$navigation $strliveclassrooms", "", "", true, "", navmenu($course)); + +/// Get all the appropriate data + + if (! $liveclassrooms = get_all_instances_in_course("liveclassroom", $course)) { + notice("There are no liveclassrooms", "../../course/view.php?id=$course->id"); + die; + } +?> + <head> + <link rel="STYLESHEET" href="css/StyleSheet.css" type="text/css" /> +<script type="text/javascript" src='<?PHP p($CFG->liveclassroom_servername)?>/js/launch.js'></script> + <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 +{ +?> + + 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"; +} + +function LaunchWizard(url) +{ +var w = window.open(url,'lc_popup','scrollbars=yes,resizable=yes,width=800,height=500'); +w.focus(); +} +function doOpenIntern(popup,url){ + if(current!="") + { + + if(popup==false) + { + window.open(url,"_top"); + } + else + { + var w = window.open(url,'lc_popup','scrollbars=yes,resizable=yes,width=800,height=500'); + w.focus(); + } + } + +} +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); + ?> + + var retour=""; + NumberMainLectureRoom=0; + var numberArchive=0; + var number=0; + retour += " <table width=1000px cellspacing=0 cellpadding=1 border=0>"; + <?php for($i=0; $i<sizeof($tab[0]); $i++) + { + // print ($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) + { + + <?php + if(sizeof(liveclassroom_api_get_archive_list_for_a_room($tab[0][$i]))>0) + { + ?> + numberArchive++; + + 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\" align=\"right\"><img src=\"pictures/plus.gif\" onclick=\"hideArchive('<?php p($tab[0][$i]) ?>hide')\" name=\"toggleimg<?php p($tab[0][$i]) ?>hide\" border=\"0\" alt=\"Expand/Collapse More Options\" /></td>"; + + <?php + } + 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>"; + <?php + } + ?> + }else{ + + <?php /* + if((openArchive[((LCRoom)mainLectureRoom.GetByIndex(i)).getRoomId()])!=null) + { + ?> + + numberArchive++; + + 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\" align=\"right\"><img src=\"pictures/plus.gif\" onclick=\"hideArchive('<?php p($tab[0][$i]) ?>hide')\" name=\"toggleimg<?php p($tab[0][$i]) ?>hide\" border=\"0\" alt=\"Expand/Collapse More Options\" /></td>"; + + <?php + } + 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=\"550px\" 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('<?php p($tab[0][$i]) ?>')\" 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='520px' 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>"; + + + <?php + if(sizeof(liveclassroom_api_get_archive_list_for_a_room($tab[0][$i]))>0) + { + ?> + retour+="<tr><td colspan=5 style=\"padding:0px 0px 0px 0px\"><div style=\"display:none\" id='<?php p($tab[0][$i]) ?>hide'>"; + <?php + $archiveOfThisRoomID=liveclassroom_api_get_archive_list_for_a_room($tab[0][$i]); + ?> + retour += " <table width=700px cellspacing=0 cellpadding=1 border=0 >"; + <?php for( $j=0; $j<sizeof($archiveOfThisRoomID); $j++) + { + /* + if(orphanedArchive.ContainsKey(prefix+((LCRoom)archiveOfThisRoomID.GetByIndex(j)).getRoomId())) + orphanedArchive.Remove(prefix+((LCRoom)archiveOfThisRoomID.GetByIndex(j)).getRoomId());*/ + ?> + var preview; + <?php if(!liveclassroom_api_room_is_preview($archiveOfThisRoomID[$j])) + { + ?> + preview=true; + <?php + } + else + { + ?> + preview=false; + <?php + } + ?> + if(studentView==false|| ( studentView==true && !preview)) + { + retour += "<tr id='<?php p($archiveOfThisRoomID[$j]) ?>' Onclick=\"OneClick('<?php p($archiveOfThisRoomID[$j]) ?>')\"><td width=\"40px\" Ondblclick=\"javascript:startHorizon('<?php p($archiveOfThisRoomID[$j]) ?>', null, null, null, null, 'hzA=<?php p($usersession)?>')\" onmouseover=\"onOver('<?php p($archiveOfThisRoomID[$j]) ?>')\" onmouseout=\"onOut('<?php p($archiveOfThisRoomID[$j]) ?>')\"></td>"; + retour += "<td width=300px Onclick=\"OneClick('<?php p($archiveOfThisRoomID[$j]) ?>')\" Ondblclick=\"javascript:startHorizon('<?php p($archiveOfThisRoomID[$j]) ?>', null, null, null, null, 'hzA=<?php p($usersession)?>')\" onmouseover=\"onOver('<?php p($archiveOfThisRoomID[$j]) ?>')\" onmouseout=\"onOut('<?php p($archiveOfThisRoomID[$j]) ?>')\">"; + retour += "<span ><img src=\"<?php p($CFG->liveclassroom_servername)?>/images/integration/pointer.gif\" style=\"border:none\" />"; + retour += "<?php p(liveclassroom_api_get_room_name($archiveOfThisRoomID[$j])) ?></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($archiveOfThisRoomID[$j]) ?>')\" Ondblclick=\"javascript:startHorizon('<?php p($archiveOfThisRoomID[$j]) ?>', null, null, null, null, 'hzA=<?php p($usersession)?>')\" onmouseover=\"onOver('<?php p($archiveOfThisRoomID[$j]) ?>')\" onmouseout=\"onOut('<?php p($archiveOfThisRoomID[$j]) ?>')\"><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($archiveOfThisRoomID[$j]) ?>')\" Ondblclick=\"javascript:startHorizon('<?php p($archiveOfThisRoomID[$j]) ?>', null, null, null, null, 'hzA=<?php p($usersession)?>')\" onmouseover=\"onOver('<?php p($archiveOfThisRoomID[$j]) ?>')\" onmouseout=\"onOut('<?php p($archiveOfThisRoomID[$j]) ?>')\"><img src=\"pictures/away.png\" style=\"WIDTH: 16px; HEIGHT: 16px\" border=\"0\"></a>"; + } + retour +="</td><td width='100px' Onclick=\"OneClick('<?php p($archiveOfThisRoomID[$j]) ?>')\" Ondblclick=\"javascript:startHorizon('<?php p($archiveOfThisRoomID[$j]) ?>', null, null, null, null, 'hzA=<?php p($usersession)?>')\" onmouseover=\"onOver('<?php p($archiveOfThisRoomID[$j]) ?>')\" onmouseout=\"onOut('<?php p($archiveOfThisRoomID[$j]) ?>')\"></td></tr>"; + } + <?php + } + ?> + retour += "</table>"; + retour += " </div></td></tr>"; + <?php + } + ?> + NumberMainLectureRoom++; + } + } + <?php + } + ?> + if(numberArchive>0){ + + NumberMainLectureRoom++; + } + + retour += "</table>"; + document.getElementById("main").innerHTML = retour; + gestionDisplay(); + if(Navigateur()=="Explorer" && parseFloat(navigator.appVersion)<5.5) + correctPNG(); +} + + +function getBreakoutRoom(search) +{ + + <?php + $tab = liveclassroom_get_main_room_list($course); + ?> + + var retour=""; + NumberBreakoutRoom=0; + var numberArchive=0; + var number=0; + retour += " <table width=1000px 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])) + { + ?> + 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) + { + + 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{ + + 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=\"550\" 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='520px' Onclick=\"OneClick('<?php p($tab[1][$i]) ?>')\" Ondblclick=\"javascript:startHorizon('<?php p($tab[1][$i]) ?>', null, null, null, null, 'hzA=<%=AuthToken%>')\" onmouseover=\"onOver('<?php p($tab[1][$i]) ?>')\" onmouseout=\"onOut('<?php p($tab[1][$i]) ?>')\"></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 deleteRoom() { + +} + +/* +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) +{ + + + +} + +</script> + + + </head> +<body> + + +<table cellspacing="0" cellpadding="0" width="1000" border="0" align="center" id="TABLE1"> + <tr style="background-color: #f0f0f0"> + <td colspan="6" style="border-top:white 1px solid"> + <?php if (isstudent($course->id)){ ?> + <span id="student_Menu"> + <table style="width: 1000" cellspacing="0" cellpadding="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=50%></td> + <td colspan="3" align="right" valign="middle" > + <table border=0 style="background-image: url(pictures/searchfield.gif); background-repeat:no-repeat;"> + <tr> + <td align="right" width=15px></td> + <td align="right" width=105px height=25px> + <input name="search" id="search" type="text" style="border:0; width: 105px;" + onkeyup="hideCroix(search.value);javascript:getBreakoutRoom(search.value); getMainLectureRoom(search.value); getOrphanedArchive(search.value);" /> + </td> + <td align=left width=20px > + <div id="croix" style="display:none"> + <img onmouseover="overCroix(this)" Onclick="clickCroix();javascript:getBreakoutRoom(''); getMainLectureRoom(''); getOrphanedArchive('');" Onmouseout="overCroix(this)" src="pictures/x_normal.gif" align="middle" style="border:none " /> + </div> + </td> + </tr> + </table> + </td> + </tr> + </table> + </span> + <?php + }else if (isteacher($course->id, $USER->id)) + { ?> + <span id="admin_Menu"> + <table style="width: 1000" cellspacing="0" cellpadding="1" align="center"> + <tr class="button_disabled" id="menu_admin" > + <td width="9%" 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="9%" align="center" > + <a href="javascript:window.open('../../course/mod.php?id=<?php p($course->id)?>§ion=0&sesskey=<?php echo sesskey(); ?>&add=liveclassroom','_top')" > + <img src="pictures/launch_Black.png" border="0" + alt="Edit RoomSettings" title="Add Activity" 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="9%" align=center class="button_enabled"> + + <a href="javascript:doOpen(false,'manageRoom.php','action=createRoom')" > + <img src="pictures/new.png" border="0" alt="Calendar" title="New Room" id="Img1" height="24" width="24"> + <br />New Room</a> + </td> + <td width="5px"></td> + <td width="9%" align="center" > + <a href="javascript:doOpenExtern('<?php p($CFG->liveclassroom_servername)?>/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="9%" 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="9%" 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" title="Change Availability Room" id="schedule_icon" height="24" width="24" ><br /> + Availability</a> + </td> + <td width="9%" align="center" > + <a href="javascript:doOpen(false,'manageRoom.php','action=editRoom')" > + <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="9%" align="center" > + <a href="javascript:doOpen(false,'','')" 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> + <td colspan="3" align="right" valign="middle" > + <table border=0 style="background-image: url(pictures/searchfield.gif); background-repeat:no-repeat;"> + <tr> + <td align="right" width=15px></td> + <td align="right" width=105px height=25px> + <input name="search" id="search" type="text" style="border:0; width: 105px;" + onkeyup="hideCroix(search.value);javascript:getBreakoutRoom(search.value); getMainLectureRoom(search.value); getOrphanedArchive(search.value);" /> + </td> + <td align=left width=20px > + <div id="croix" style="display:none"> + <img onmouseover="overCroix(this)" Onclick="clickCroix();javascript:getBreakoutRoom(''); getMainLectureRoom(''); getOrphanedArchive('');" Onmouseout="overCroix(this)" src="pictures/x_normal.gif" align="middle" style="border:none " /> + </div> + </td> + </tr> + </table> + </td> + </tr> + </table> + </span> + <?php + } ?> + </td> + </tr> + <tr> + <td colspan="15" style="background-color: #c9d2df;"> + <div id="main_title"> + <a href="javascript:hideBloc('main')" title="Expand/Collapse Archive List"> + <img src="<?php p($CFG->liveclassroom_servername)?>/images/integration/small_collapse.gif" name="toggleimgmain" + border="0" alt="Expand/Collapse More Options" /> + <strong style="color: white">Main rooms: + </a></strong> + </div> + </td> + </tr> + <tr> + <td colspan="15" > + <div id="main" style=" overflow-y:auto;overflow-x: hidden;width:100%;" > + </div> + </td> + </tr> + <tr> + <td colspan="15" style="background-color: #c9d2df; " > + <div id="breakout_title"> + <a href="javascript:hideBloc('breakout')" title="Expand/Collapse Archive List"> + <img src="<?php p($CFG->liveclassroom_servername)?>/images/integration/small_collapse.gif" name="toggleimgbreakout" + border="0" alt="Expand/Collapse More Options" /></a><strong style="color: white"> Discussion rooms: + </strong></div> + </td> + </tr> + <tr> + <td colspan="15" > + <div id="breakout" style=" overflow-y:auto;overflow-x: hidden;width:100%" > + </div> + </td> + </tr> + <tr> + <td colspan="8" style="background-color: #c9d2df; " > + <div id="orphaned_title" > + + <a href="javascript:hideBloc('orphaned')" title="Expand/Collapse Archive List"> + <img src="<?php p($CFG->liveclassroom_servername)?>/images/integration/small_collapse.gif" name="toggleimgorphaned" + ... [truncated message content] |