[Hw4mdl-svn] SF.net SVN: hw4mdl: [109] trunk/moodle/mod/liveclassroom
Brought to you by:
jhlinder,
trollinger
From: <sh...@us...> - 2006-12-14 14:22:10
|
Revision: 109 http://svn.sourceforge.net/hw4mdl/?rev=109&view=rev Author: shazan Date: 2006-12-14 06:22:06 -0800 (Thu, 14 Dec 2006) Log Message: ----------- version works on php4.3 Modified Paths: -------------- trunk/moodle/mod/liveclassroom/api.php trunk/moodle/mod/liveclassroom/css/StyleSheet.css trunk/moodle/mod/liveclassroom/generateListRooms.php trunk/moodle/mod/liveclassroom/generateSettings.php trunk/moodle/mod/liveclassroom/index.php trunk/moodle/mod/liveclassroom/js/manageXml.js trunk/moodle/mod/liveclassroom/lib.php trunk/moodle/mod/liveclassroom/mod.html trunk/moodle/mod/liveclassroom/reports.php trunk/moodle/mod/liveclassroom/welcome.php Modified: trunk/moodle/mod/liveclassroom/api.php =================================================================== --- trunk/moodle/mod/liveclassroom/api.php 2006-12-08 09:29:21 UTC (rev 108) +++ trunk/moodle/mod/liveclassroom/api.php 2006-12-14 14:22:06 UTC (rev 109) @@ -41,12 +41,12 @@ * @package liveclassroom */ -require_once('System.php'); +//require_once('System.php'); require_once('lib.php'); $LIVECLASSROOM_MOODLE_PREFIX = liveclassroom_api_get_prefix(); -$LIVECLASSROOM_API_ADMIN = '/admin/api/api.pl?'; +$LIVECLASSROOM_API_ADMIN = 'admin/api/api.pl?'; $LIVECLASSROOM_API_FUNCTION_NOOP = 'function=NOOP'; $LIVECLASSROOM_API_FUNCTION_CREATE_USER = 'function=createUser'; $LIVECLASSROOM_API_FUNCTION_MODIFY_USER = 'function=modifyUser'; @@ -65,7 +65,7 @@ $LIVECLASSROOM_API_RECORD_SEPERATOR = "=END RECORD"; -$LIVECLASSROOM_LOGS = "logs.php"; +$LIVECLASSROOM_LOGS = "logs.php"; //file use to the logs /* @@ -1281,14 +1281,25 @@ } $line = explode("\n",$data); $rooms=array(); + for($i=1;$i<sizeof($line)-2;$i=$i+3){ $room[0] = liveclassroom_parse_line($line[$i],"class_id="); //class_id $room[1]= liveclassroom_parse_line($line[$i+1],"longname="); //longname - array_push($rooms,$room); + array_push($rooms,$room); } return $rooms; } +function inputRightPlace($array, $value){ + + $return = array(); + foreach($array as $room){ + if(strcmp($room[0],$value[0])<0) array_push($return,$room); + else array_push($return,$value); + } + return $return; +} + /* * List all the rooms and their archives associed + the orphaned archives list * @@ -1415,7 +1426,7 @@ - $listElements = $xmldoc->createElement('listElements'); + $listElements = $xmldoc->create_element('listElements'); //$orphanedArchivesForStudent = $xmldoc->createElement('orphanedArchivesForStudent'); $line = explode("\n",$data); @@ -1431,10 +1442,10 @@ $roompreview= liveclassroom_parse_line($line[$i],"preview="); //preview - $element = $xmldoc->createElement('listElement'); + $element = $xmldoc->create_element('listElement'); - $roomParameters = $xmldoc->createElement('listElementParameters'); + $roomParameters = $xmldoc->create_element('listElementParameters'); if ($isteacher=="1") { @@ -1449,40 +1460,40 @@ if(liveclassroom_api_role_user_room($roomid, $studentuserid)=='Student') { //lecture room - $type = $xmldoc->createElement('typeOfElement'); - $type->appendChild($xmldoc->createTextNode("Main Lecture")); + $type = $xmldoc->create_element('typeOfElement'); + $type->append_child($xmldoc->create_text_node("Main Lecture")); $positionValue = 1; } else{ - $type = $xmldoc->createElement('typeOfElement'); - $type->appendChild($xmldoc->createTextNode("DiscussionRoom")); + $type = $xmldoc->create_element('typeOfElement'); + $type->append_child($xmldoc->create_text_node("DiscussionRoom")); $positionValue = 2; } - $position = $xmldoc->createElement('position'); - $position->appendChild($xmldoc->createTextNode("$positionValue")); - $id = $xmldoc->createElement('id'); - $id->appendChild($xmldoc->createTextNode("$roomid")); - $longname = $xmldoc->createElement('nameDisplay'); - $longname->appendChild($xmldoc->createTextNode("$roomname")); - $preview = $xmldoc->createElement('preview'); + $position = $xmldoc->create_element('position'); + $position->append_child($xmldoc->create_text_node("$positionValue")); + $id = $xmldoc->create_element('id'); + $id->append_child($xmldoc->create_text_node("$roomid")); + $longname = $xmldoc->create_element('nameDisplay'); + $longname->append_child($xmldoc->create_text_node("$roomname")); + $preview = $xmldoc->create_element('preview'); if ($roompreview=="1") { - $preview->appendChild($xmldoc->createTextNode("unavailable")); + $preview->append_child($xmldoc->create_text_node("unavailable")); } else { - $preview->appendChild($xmldoc->createTextNode("available")); + $preview->append_child($xmldoc->create_text_node("available")); } - $roomParameters->appendChild($type); - $roomParameters->appendChild($position); - $roomParameters->appendChild($id); - $roomParameters->appendChild($longname); - $roomParameters->appendChild($preview); - $element->appendChild($roomParameters); + $roomParameters->append_child($type); + $roomParameters->append_child($position); + $roomParameters->append_child($id); + $roomParameters->append_child($longname); + $roomParameters->append_child($preview); + $element->append_child($roomParameters); // $tabarchive = liveclassroom_api_get_archive_list_for_a_room($roomid,$userid); @@ -1490,30 +1501,30 @@ $nbrClosedArchive = 0; - $archives = $xmldoc->createElement('archives'); + $archives = $xmldoc->create_element('archives'); foreach ($tabarchive as $tabarchive_value) { - $archive = $xmldoc->createElement('archive'); + $archive = $xmldoc->create_element('archive'); // $xmlOrphanedArchiveForStudent = $xmldoc->CreateElement("orphanedArchiveForStudent"); - $archiveid = $xmldoc->createElement('id'); - $archiveid->appendChild($xmldoc->createTextNode("$tabarchive_value[1]")); - $archivename = $xmldoc->createElement('nameDisplay'); - $archivename->appendChild($xmldoc->createTextNode("$tabarchive_value[2]")); - $archivepreview = $xmldoc->createElement('preview'); + $archiveid = $xmldoc->create_element('id'); + $archiveid->append_child($xmldoc->create_text_node("$tabarchive_value[1]")); + $archivename = $xmldoc->create_element('nameDisplay'); + $archivename->append_child($xmldoc->create_text_node("$tabarchive_value[2]")); + $archivepreview = $xmldoc->create_element('preview'); if($tabarchive_value[0]=="1") { - $archivepreview->appendChild($xmldoc->createTextNode("unavailable")); + $archivepreview->append_child($xmldoc->create_text_node("unavailable")); $nbrClosedArchive++; } else { - $archivepreview->appendChild($xmldoc->createTextNode("available")); + $archivepreview->append_child($xmldoc->create_text_node("available")); } - $archive->appendChild($archiveid); - $archive->appendChild($archivename); - $archive->appendChild($archivepreview); - $archives->appendChild($archive); + $archive->append_child($archiveid); + $archive->append_child($archivename); + $archive->append_child($archivepreview); + $archives->append_child($archive); unset($orphanedArchives[$tabarchive_value[1]]) ; /* if ( ($roompreview==1) && ($tabarchive_value[0]==0)) @@ -1537,81 +1548,81 @@ } */ } - $roomParameters->appendChild($archives); + $roomParameters->append_child($archives); } - $closedArchive = $xmldoc->createElement("closedArchive"); + $closedArchive = $xmldoc->create_element("closedArchive"); if (sizeof($tabarchive) == $nbrClosedArchive) { - $closedArchive->appendChild($xmldoc->createTextNode("true")); + $closedArchive->append_child($xmldoc->create_text_node("true")); } else { - $closedArchive->appendChild($xmldoc->createTextNode("false")); + $closedArchive->append_child($xmldoc->create_text_node("false")); } - $roomParameters->appendChild($closedArchive); + $roomParameters->append_child($closedArchive); - $element->appendChild($roomParameters); + $element->append_child($roomParameters); - $listElements->appendChild($element); + $listElements->append_child($element); } foreach ($orphanedArchives as $orphanedArchive) { - $xmlOrphanedArchive = $xmldoc->createElement("listElement"); + $xmlOrphanedArchive = $xmldoc->create_element("listElement"); - $parametersOrphaned = $xmldoc->createElement("listElementParameters"); + $parametersOrphaned = $xmldoc->create_element("listElementParameters"); - $typeOrphaned = $xmldoc->createElement("typeOfElement"); - $typeOrphaned->appendChild($xmldoc->createTextNode("orphanedArchive")); - $parametersOrphaned->appendChild($typeOrphaned); + $typeOrphaned = $xmldoc->create_element("typeOfElement"); + $typeOrphaned->append_child($xmldoc->create_text_node("orphanedArchive")); + $parametersOrphaned->append_child($typeOrphaned); - $pos = $xmldoc->createElement("position"); - $pos->appendChild($xmldoc->createTextNode("3")); - $parametersOrphaned->appendChild($pos); + $pos = $xmldoc->create_element("position"); + $pos->append_child($xmldoc->create_text_node("3")); + $parametersOrphaned->append_child($pos); - $typeOrphanedArchive = $xmldoc->createElement("type"); + $typeOrphanedArchive = $xmldoc->create_element("type"); if(liveclassroom_api_role_user_room($orphanedArchive[1], $studentuserid)=='Student') { //lecture room - $typeOrphanedArchive->appendChild($xmldoc->createTextNode("mainLectureRoom")); + $typeOrphanedArchive->append_child($xmldoc->create_text_node("mainLectureRoom")); } else{ - $typeOrphanedArchive->appendChild($xmldoc->createTextNode("discussionRoom")); + $typeOrphanedArchive->append_child($xmldoc->create_text_node("discussionRoom")); } - $parametersOrphaned->appendChild($typeOrphanedArchive); + $parametersOrphaned->append_child($typeOrphanedArchive); - $idOrphanedArchive = $xmldoc->createElement("id"); - $idOrphanedArchive->appendChild($xmldoc->createTextNode($orphanedArchive[1])); - $parametersOrphaned->appendChild($idOrphanedArchive); + $idOrphanedArchive = $xmldoc->create_element("id"); + $idOrphanedArchive->append_child($xmldoc->create_text_node($orphanedArchive[1])); + $parametersOrphaned->append_child($idOrphanedArchive); - $longnameOrphanedArchive = $xmldoc->createElement("nameDisplay"); - $longnameOrphanedArchive->appendChild($xmldoc->createTextNode($orphanedArchive[2])); - $parametersOrphaned->appendChild($longnameOrphanedArchive); + $longnameOrphanedArchive = $xmldoc->create_element("nameDisplay"); + $longnameOrphanedArchive->append_child($xmldoc->create_text_node($orphanedArchive[2])); + $parametersOrphaned->append_child($longnameOrphanedArchive); - $previewOrphanedArchive = $xmldoc->createElement("preview"); + $previewOrphanedArchive = $xmldoc->create_element("preview"); if ($orphanedArchive[$j][0]==1) { - $previewOrphanedArchive->appendChild($xmldoc->createTextNode("unavailable")); + $previewOrphanedArchive->append_child($xmldoc->create_text_node("unavailable")); } else { - $previewOrphanedArchive->appendChild($xmldoc->createTextNode("available")); + $previewOrphanedArchive->append_child($xmldoc->create_text_node("available")); } - $parametersOrphaned->appendChild($previewOrphanedArchive); + $parametersOrphaned->append_child($previewOrphanedArchive); - $xmlOrphanedArchive->appendChild($parametersOrphaned); + $xmlOrphanedArchive->append_child($parametersOrphaned); - $listElements->appendChild($xmlOrphanedArchive); + $listElements->append_child($xmlOrphanedArchive); } - $xmldoc->appendChild($listElements); + $xmldoc->append_child($listElements); return $listElements; Modified: trunk/moodle/mod/liveclassroom/css/StyleSheet.css =================================================================== --- trunk/moodle/mod/liveclassroom/css/StyleSheet.css 2006-12-08 09:29:21 UTC (rev 108) +++ trunk/moodle/mod/liveclassroom/css/StyleSheet.css 2006-12-14 14:22:06 UTC (rev 109) @@ -527,4 +527,16 @@ width:100%; border-bottom: #818181 1px solid; - } \ No newline at end of file + } + +.toolTip{ +width: 200px; +display: none; +position: absolute; +z-index : 1; +background-color: #ffffd0; +padding: 2px; +margin: 2px; +font-family: Verdana; +font-size: 8pt; +} \ No newline at end of file Modified: trunk/moodle/mod/liveclassroom/generateListRooms.php =================================================================== --- trunk/moodle/mod/liveclassroom/generateListRooms.php 2006-12-08 09:29:21 UTC (rev 108) +++ trunk/moodle/mod/liveclassroom/generateListRooms.php 2006-12-14 14:22:06 UTC (rev 109) @@ -64,88 +64,87 @@ } - $xmldoc = new DomDocument(); + $xmldoc = domxml_new_doc("1.0");// new DomDocument(); - $root = $xmldoc->createElement('root'); + $root = $xmldoc->create_element('root'); - $root->appendChild(liveclassroom_get_session_params($xmldoc,$params)); + $root->append_child(liveclassroom_get_session_params($xmldoc,$params)); - $windows = $xmldoc->createElement('windows'); + $windows = $xmldoc->create_element('windows'); //HEADER BAR - $windows->appendChild(liveclassroom_create_headerbar($xmldoc)); + $windows->append_child(liveclassroom_create_headerbar($xmldoc)); - + //TOOL BAR - $toolbar = $xmldoc->createElement('windowsElement'); - $tbtype = $xmldoc->createElement('type'); - $tbtype->appendChild($xmldoc->createTextNode("toolBar")); - $toolbar->appendChild($tbtype); + $toolbar = $xmldoc->create_element('windowsElement'); + $tbtype = $xmldoc->create_element('type'); + $tbtype->append_child($xmldoc->create_text_node("toolBar")); + $toolbar->append_child($tbtype); - $tbelementParameters = $xmldoc->createElement("windowsElementParameters"); + $tbelementParameters = $xmldoc->create_element("windowsElementParameters"); - $menubar = $xmldoc->createElement('menuElements'); + $menubar = $xmldoc->create_element('menuElements'); - $menubar->appendChild(liveclassroom_create_menu_element($xmldoc,'false', 'button', 'all', 'all', 'pictures/buttons/toolbar-launch', 'Launch', 'Launch()', "hza=".$params['authToken'])); - $menubar->appendChild(liveclassroom_create_menu_element($xmldoc,'false', 'button', 'instructor', 'all', 'pictures/buttons/toolbar-activities', 'Add Activity', "doOpenAddActivity('../../course/mod.php','add=liveclassroom')",'')); - $menubar->appendChild(liveclassroom_create_menu_element($xmldoc,'true', 'button', 'instructor', 'all', 'pictures/buttons/toolbar-new', 'New', "launchAjaxRequest('generateSettings.php','Management','new','true')", '')); - $menubar->appendChild(liveclassroom_create_menu_element($xmldoc,'true', 'fixSpace', 'all', 'all', '', '', '', '', '')); - $menubar->appendChild(liveclassroom_create_menu_element($xmldoc,'false','button', 'instructor', 'all', 'pictures/buttons/toolbar-content', 'Content', "openContentWindows()", '')); - $menubar->appendChild(liveclassroom_create_menu_element($xmldoc,'false','button', 'instructor', 'all', 'pictures/buttons/toolbar-poll', 'Reports', 'doOpenReport()','')); - $menubar->appendChild(liveclassroom_create_menu_element($xmldoc,'false','button', 'instructor', 'all', 'pictures/buttons/toolbar-settings', 'Settings', "launchAjaxRequest('generateSettings.php','Management','update','false')", '')); - $menubar->appendChild(liveclassroom_create_menu_element($xmldoc,'false','button', 'instructor', 'all', 'pictures/buttons/toolbar-delete', 'Delete', 'doDelete()', '')); - $menubar->appendChild(liveclassroom_create_menu_element($xmldoc,'true', 'fixSpace', 'all', 'all', '', '', '', '', '')); - $menubar->appendChild(liveclassroom_create_menu_element($xmldoc,'true','search', 'all','all', "", "", "", "","")); + $menubar->append_child(liveclassroom_create_menu_element($xmldoc,'false', 'button', 'all', 'all', 'pictures/buttons/toolbar-launch', 'Launch', 'Launch()', "hza=".$params['authToken'])); + $menubar->append_child(liveclassroom_create_menu_element($xmldoc,'false', 'button', 'instructor', 'all', 'pictures/buttons/toolbar-activities', 'Add Activity', "doOpenAddActivity('../../course/mod.php','add=liveclassroom')",'')); + $menubar->append_child(liveclassroom_create_menu_element($xmldoc,'true', 'button', 'instructor', 'all', 'pictures/buttons/toolbar-new', 'New', "launchAjaxRequest('generateSettings.php','Management','new','true')", '')); + $menubar->append_child(liveclassroom_create_menu_element($xmldoc,'true', 'fixSpace', 'all', 'all', '', '', '', '', '')); + $menubar->append_child(liveclassroom_create_menu_element($xmldoc,'false','button', 'instructor', 'all', 'pictures/buttons/toolbar-content', 'Content', "openContentWindows()", '')); + $menubar->append_child(liveclassroom_create_menu_element($xmldoc,'false','button', 'instructor', 'all', 'pictures/buttons/toolbar-poll', 'Reports', 'doOpenReport()','')); + $menubar->append_child(liveclassroom_create_menu_element($xmldoc,'false','button', 'instructor', 'all', 'pictures/buttons/toolbar-settings', 'Settings', "launchAjaxRequest('generateSettings.php','Management','update','false')", '')); + $menubar->append_child(liveclassroom_create_menu_element($xmldoc,'false','button', 'instructor', 'all', 'pictures/buttons/toolbar-delete', 'Delete', 'doDelete()', '')); + $menubar->append_child(liveclassroom_create_menu_element($xmldoc,'true', 'fixSpace', 'all', 'all', '', '', '', '', '')); + $menubar->append_child(liveclassroom_create_menu_element($xmldoc,'true','search', 'all','all', "", "", "", "","")); - $tbelementParameters->appendChild($menubar); - $toolbar->appendChild($tbelementParameters); + $tbelementParameters->append_child($menubar); + $toolbar->append_child($tbelementParameters); - $windows->appendChild($toolbar); - + $windows->append_child($toolbar); + // MESSAGE BAR if (isset($params['messageType'])) { - $windows->appendChild(liveclassroom_create_message($xmldoc, 'info', liveclassroom_get_message($params['messageType']))); + $windows->append_child(liveclassroom_create_message($xmldoc, 'info', liveclassroom_get_message($params['messageType']))); } // LIST - - $list = $xmldoc->createElement('windowsElement'); - $typeWindowsElement = $xmldoc->createElement('type'); - $typeWindowsElement->appendChild($xmldoc->createTextNode("list")); - $list->appendChild($typeWindowsElement); + + $list = $xmldoc->create_element('windowsElement'); + $typeWindowsElement = $xmldoc->create_element('type'); + $typeWindowsElement->append_child($xmldoc->create_text_node("list")); + $list->append_child($typeWindowsElement); - $elementParameters = $xmldoc->createElement('windowsElementParameters'); + $elementParameters = $xmldoc->create_element('windowsElementParameters'); - $products = $xmldoc->createElement('products'); + $products = $xmldoc->create_element('products'); // LIST PRODUCTS - $listProducts = $xmldoc->createElement('listProducts'); + $listProducts = $xmldoc->create_element('listProducts'); - $listProducts->appendChild(liveclassroom_create_product_information($xmldoc,'1','toggleimgmain','productType','Lecture rooms')); - $listProducts->appendChild(liveclassroom_create_product_information($xmldoc,'2','toggleimgbreakout','productType','Discussion rooms')); -// $listProducts->appendChild(liveclassroom_create_product_information($xmldoc,'3','toggleimgorphaned','productType','Orphaned archives')); + $listProducts->append_child(liveclassroom_create_product_information($xmldoc,'1','toggleimgmain','productType','Lecture rooms')); + $listProducts->append_child(liveclassroom_create_product_information($xmldoc,'2','toggleimgbreakout','productType','Discussion rooms')); - $products->appendChild($listProducts); + $products->append_child($listProducts); // PRODUCTS CONTENT - $productContent = $xmldoc->createElement('productsContent'); + $productContent = $xmldoc->create_element('productsContent'); - $productContent->appendChild(liveclassroom_list_xml_roomsarchiveslist($xmldoc,$userid,$courseid,$isteacher)); + $productContent->append_child(liveclassroom_list_xml_roomsarchiveslist($xmldoc,$userid,$courseid,$isteacher)); - $products->appendChild($productContent); + $products->append_child($productContent); - $elementParameters->appendChild($products); + $elementParameters->append_child($products); - $list->appendChild($elementParameters); + $list->append_child($elementParameters); - $windows->appendChild($list); + $windows->append_child($list); + + $root->append_child($windows); - $root->appendChild($windows); + $xmldoc->append_child($root); + + $xmlstring = $xmldoc->dump_mem(true); //saveXML(); // Xml datas into a string - $xmldoc->appendChild($root); - - $xmlstring = $xmldoc->saveXML(); // Xml datas into a string - $finalstring = str_replace("\n", '', $xmlstring); echo $xmlstring; Modified: trunk/moodle/mod/liveclassroom/generateSettings.php =================================================================== --- trunk/moodle/mod/liveclassroom/generateSettings.php 2006-12-08 09:29:21 UTC (rev 108) +++ trunk/moodle/mod/liveclassroom/generateSettings.php 2006-12-14 14:22:06 UTC (rev 109) @@ -63,157 +63,157 @@ } $contextDisplay='all'; - $xmldoc = new DomDocument(); + $xmldoc = domxml_new_doc("1.0");//new DomDocument(); - $root = $xmldoc->createElement('root'); + $root = $xmldoc->create_element('root'); - $root->appendChild(liveclassroom_get_session_params($xmldoc,$_GET)); - $windows = $xmldoc->createElement('windows'); + $root->append_child(liveclassroom_get_session_params($xmldoc,$_GET)); + $windows = $xmldoc->create_element('windows'); // HEADER BAR - $windows->appendChild(liveclassroom_create_headerbar($xmldoc)); + $windows->append_child(liveclassroom_create_headerbar($xmldoc)); // CONTEXT BAR - $contextbar = $xmldoc->createElement('windowsElement'); - $cbtype = $xmldoc->createElement('type'); - $cbtype->appendChild($xmldoc->createTextNode("contextBar")); - $contextbar->appendChild($cbtype); - $cbelementParameters = $xmldoc->createElement("windowsElementParameters"); - $contextbarinformations = $xmldoc->createElement("contextBarInformations"); - $cbname = $xmldoc->createElement("name"); + $contextbar = $xmldoc->create_element('windowsElement'); + $cbtype = $xmldoc->create_element('type'); + $cbtype->append_child($xmldoc->create_text_node("contextBar")); + $contextbar->append_child($cbtype); + $cbelementParameters = $xmldoc->create_element("windowsElementParameters"); + $contextbarinformations = $xmldoc->create_element("contextBarInformations"); + $cbname = $xmldoc->create_element("name"); if($action=="update") { - $cbname->appendChild($xmldoc->createTextNode($room_info['longname'])); + $cbname->append_child($xmldoc->create_text_node($room_info['longname'])); } - else $cbname->appendChild($xmldoc->createTextNode("New room")); - $contextbarinformations->appendChild($cbname); - $cbcontext = $xmldoc->createElement("context"); - $cbcontext->appendChild($xmldoc->createTextNode("Settings")); - $contextbarinformations->appendChild($cbcontext); - $cbproduct = $xmldoc->createElement("product"); - $cbproduct->appendChild($xmldoc->createTextNode("Live Classroom")); - $contextbarinformations->appendChild($cbproduct); + else $cbname->append_child($xmldoc->create_text_node("New room")); + $contextbarinformations->append_child($cbname); + $cbcontext = $xmldoc->create_element("context"); + $cbcontext->append_child($xmldoc->create_text_node("Settings")); + $contextbarinformations->append_child($cbcontext); + $cbproduct = $xmldoc->create_element("product"); + $cbproduct->append_child($xmldoc->create_text_node("Live Classroom")); + $contextbarinformations->append_child($cbproduct); - $cbelementParameters->appendChild($contextbarinformations); + $cbelementParameters->append_child($contextbarinformations); - $contextbar->appendChild($cbelementParameters); + $contextbar->append_child($cbelementParameters); - $windows->appendChild($contextbar); + $windows->append_child($contextbar); // SETTINGS - $settings = $xmldoc->createElement('windowsElement'); - $settingstype = $xmldoc->createElement('type'); - $settingstype->appendChild($xmldoc->createTextNode("settings")); - $settings->appendChild($settingstype); + $settings = $xmldoc->create_element('windowsElement'); + $settingstype = $xmldoc->create_element('type'); + $settingstype->append_child($xmldoc->create_text_node("settings")); + $settings->append_child($settingstype); - $settingsElementParameters = $xmldoc->createElement("windowsElementParameters"); + $settingsElementParameters = $xmldoc->create_element("windowsElementParameters"); - $panelsSettings = $xmldoc->createElement('panelsSettings'); + $panelsSettings = $xmldoc->create_element('panelsSettings'); // -------------- ROOM INFO ------------------- - $panelSettings = $xmldoc->createElement('panelSettings'); + $panelSettings = $xmldoc->create_element('panelSettings'); // ROOM INFO PANEL INFO - $panelSettings->appendChild(create_panel_info($xmldoc, 'all', 'tabSelected', 'tabDisabled', 'Room Info', "1", "block")); + $panelSettings->append_child(create_panel_info($xmldoc, 'all', 'tabSelected', 'tabDisabled', 'Room Info', "1", "block")); // ROOM INFO CONTENT - $panelContent = $xmldoc->createElement('panelContent'); + $panelContent = $xmldoc->create_element('panelContent'); // FIRST LINE - $panelLine = $xmldoc->createElement('panelLine'); + $panelLine = $xmldoc->create_element('panelLine'); - $panelLineStyle = $xmldoc->createElement('style'); - $panelLineStyle->appendChild($xmldoc->createTextNode(" ")); - $panelLine->appendChild($panelLineStyle); + $panelLineStyle = $xmldoc->create_element('style'); + $panelLineStyle->append_child($xmldoc->create_text_node(" ")); + $panelLine->append_child($panelLineStyle); - $linepart = $xmldoc->createElement('panelLinePart'); + $linepart = $xmldoc->create_element('panelLinePart'); - $style = $xmldoc->createElement('style'); - $style->appendChild($xmldoc->createTextNode("")); - $linepart->appendChild($style); + $style = $xmldoc->create_element('style'); + $style->append_child($xmldoc->create_text_node("")); + $linepart->append_child($style); - $align = $xmldoc->createElement('align'); - $align->appendChild($xmldoc->createTextNode("right")); - $linepart->appendChild($align); + $align = $xmldoc->create_element('align'); + $align->append_child($xmldoc->create_text_node("right")); + $linepart->append_child($align); - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc, $contextDisplay, "label", $parameters=array("class" => "alert", "value" => "*") )); - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc, $contextDisplay,"label", $parameters=array("value" => "Title : ") )); - $panelLine->appendChild($linepart); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc, $contextDisplay, "label", $parameters=array("class" => "alert", "value" => "*") )); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc, $contextDisplay,"label", $parameters=array("value" => "Title : ") )); + $panelLine->append_child($linepart); $parameters=array("id" => "longname", "maxlength" => "50", "name" => "longname", "type" => "text"); if($action=="update"){ $parameters['value'] = $room_info['longname']; } - $linepart = $xmldoc->createElement('panelLinePart'); + $linepart = $xmldoc->create_element('panelLinePart'); - $style = $xmldoc->createElement('style'); - $style->appendChild($xmldoc->createTextNode("")); - $linepart->appendChild($style); + $style = $xmldoc->create_element('style'); + $style->append_child($xmldoc->create_text_node("")); + $linepart->append_child($style); - $align = $xmldoc->createElement('align'); - $align->appendChild($xmldoc->createTextNode("")); - $linepart->appendChild($align); + $align = $xmldoc->create_element('align'); + $align->append_child($xmldoc->create_text_node("")); + $linepart->append_child($align); - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc, $contextDisplay,"input", $parameters)); - $panelLine->appendChild($linepart); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc, $contextDisplay,"input", $parameters)); + $panelLine->append_child($linepart); - $panelContent->appendChild($panelLine); + $panelContent->append_child($panelLine); // SECOND LINE - $panelLine = $xmldoc->createElement('panelLine'); + $panelLine = $xmldoc->create_element('panelLine'); - $panelLineStyle = $xmldoc->createElement('style'); - $panelLineStyle->appendChild($xmldoc->createTextNode(" ")); - $panelLine->appendChild($panelLineStyle); + $panelLineStyle = $xmldoc->create_element('style'); + $panelLineStyle->append_child($xmldoc->create_text_node(" ")); + $panelLine->append_child($panelLineStyle); - $linepart = $xmldoc->createElement('panelLinePart'); + $linepart = $xmldoc->create_element('panelLinePart'); - $style = $xmldoc->createElement('style'); - $style->appendChild($xmldoc->createTextNode("")); - $linepart->appendChild($style); + $style = $xmldoc->create_element('style'); + $style->append_child($xmldoc->create_text_node("")); + $linepart->append_child($style); - $align = $xmldoc->createElement('align'); - $align->appendChild($xmldoc->createTextNode("right")); - $linepart->appendChild($align); + $align = $xmldoc->create_element('align'); + $align->append_child($xmldoc->create_text_node("right")); + $linepart->append_child($align); - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc, $contextDisplay,"label", $parameters=array("value" => "Description : ") )); - $panelLine->appendChild($linepart); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc, $contextDisplay,"label", $parameters=array("value" => "Description : ") )); + $panelLine->append_child($linepart); - $linepart = $xmldoc->createElement('panelLinePart'); - $style = $xmldoc->createElement('style'); - $style->appendChild($xmldoc->createTextNode("")); - $linepart->appendChild($style); + $linepart = $xmldoc->create_element('panelLinePart'); + $style = $xmldoc->create_element('style'); + $style->append_child($xmldoc->create_text_node("")); + $linepart->append_child($style); - $align = $xmldoc->createElement('align'); - $align->appendChild($xmldoc->createTextNode("")); - $linepart->appendChild($align); + $align = $xmldoc->create_element('align'); + $align->append_child($xmldoc->create_text_node("")); + $linepart->append_child($align); - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"textarea", $parameters=array("cols" => "40", "id" => "description", "value" => $room_info['description'], "name" => "description", "rows" => "4") )); - $panelLine->appendChild($linepart); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"textarea", $parameters=array("cols" => "40", "id" => "description", "value" => $room_info['description'], "name" => "description", "rows" => "4") )); + $panelLine->append_child($linepart); - $panelContent->appendChild($panelLine); + $panelContent->append_child($panelLine); if(($room_info['archive']!=1) || ($roomId == "")) { // THIRD LINE - $panelLine = $xmldoc->createElement('panelLine'); - $panelLineStyle = $xmldoc->createElement('style'); - $panelLineStyle->appendChild($xmldoc->createTextNode("")); - $panelLine->appendChild($panelLineStyle); - $linepart = $xmldoc->createElement('panelLinePart'); - $style = $xmldoc->createElement('style'); - $style->appendChild($xmldoc->createTextNode("")); - $linepart->appendChild($style); + $panelLine = $xmldoc->create_element('panelLine'); + $panelLineStyle = $xmldoc->create_element('style'); + $panelLineStyle->append_child($xmldoc->create_text_node("")); + $panelLine->append_child($panelLineStyle); + $linepart = $xmldoc->create_element('panelLinePart'); + $style = $xmldoc->create_element('style'); + $style->append_child($xmldoc->create_text_node("")); + $linepart->append_child($style); - $align = $xmldoc->createElement('align'); - $align->appendChild($xmldoc->createTextNode("right")); - $linepart->appendChild($align); - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc, $contextDisplay ,"label", $parameters=array("value" => "Type : ") )); - $panelLine->appendChild($linepart); + $align = $xmldoc->create_element('align'); + $align->append_child($xmldoc->create_text_node("right")); + $linepart->append_child($align); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc, $contextDisplay ,"label", $parameters=array("value" => "Type : ") )); + $panelLine->append_child($linepart); $parameters=array("type" => "radio", "value" => "instructor", "id" => "led_instructor", "name" => "led", "onclick" => "toggleType(\"mainLectureRoom\")") ; if(($action=="update") && ($isLectureRoom==true)) @@ -230,65 +230,65 @@ $parameters['checked']=true; } - $linepart = $xmldoc->createElement('panelLinePart'); - $style = $xmldoc->createElement('style'); - $style->appendChild($xmldoc->createTextNode("")); - $linepart->appendChild($style); + $linepart = $xmldoc->create_element('panelLinePart'); + $style = $xmldoc->create_element('style'); + $style->append_child($xmldoc->create_text_node("")); + $linepart->append_child($style); - $align = $xmldoc->createElement('align'); - $align->appendChild($xmldoc->createTextNode("")); - $linepart->appendChild($align); - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc, "mainLectureRoom","input", $parameters)); - $panelLine->appendChild($linepart); + $align = $xmldoc->create_element('align'); + $align->append_child($xmldoc->create_text_node("")); + $linepart->append_child($align); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc, "mainLectureRoom","input", $parameters)); + $panelLine->append_child($linepart); $parameters=array("type" => "radio", "value" => "instructor", "id" => "led_instructor", "name" => "led", "onclick" => "toggleType(\"mainLectureRoom\")") ; - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc, "discussionRoom","input", $parameters)); - $panelLine->appendChild($linepart); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc, "discussionRoom","input", $parameters)); + $panelLine->append_child($linepart); - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"label", $parameters=array("for" => "led_instructor", "valign" => "top", "value" => "Lecture room" ) )); - $panelLine->appendChild($linepart); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"label", $parameters=array("for" => "led_instructor", "valign" => "top", "value" => "Lecture room" ) )); + $panelLine->append_child($linepart); - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"br", $parameters=array() )); - $panelLine->appendChild($linepart); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"br", $parameters=array() )); + $panelLine->append_child($linepart); - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"label", $parameters=array("class" => "comment", "value" => "Instructors lead the presentation" ) )); - $panelLine->appendChild($linepart); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"label", $parameters=array("class" => "comment", "value" => "Instructors lead the presentation" ) )); + $panelLine->append_child($linepart); - $panelContent->appendChild($panelLine); + $panelContent->append_child($panelLine); // FOURTH LINE - $panelLine = $xmldoc->createElement('panelLine'); + $panelLine = $xmldoc->create_element('panelLine'); - $panelLineStyle = $xmldoc->createElement('style'); - $panelLineStyle->appendChild($xmldoc->createTextNode(" ")); - $panelLine->appendChild($panelLineStyle); + $panelLineStyle = $xmldoc->create_element('style'); + $panelLineStyle->append_child($xmldoc->create_text_node(" ")); + $panelLine->append_child($panelLineStyle); - $linepart = $xmldoc->createElement('panelLinePart'); - $style = $xmldoc->createElement('style'); - $style->appendChild($xmldoc->createTextNode("")); - $linepart->appendChild($style); + $linepart = $xmldoc->create_element('panelLinePart'); + $style = $xmldoc->create_element('style'); + $style->append_child($xmldoc->create_text_node("")); + $linepart->append_child($style); - $align = $xmldoc->createElement('align'); - $align->appendChild($xmldoc->createTextNode("")); - $linepart->appendChild($align); - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"label", $parameters=array("value" =>""))); - $panelLine->appendChild($linepart); + $align = $xmldoc->create_element('align'); + $align->append_child($xmldoc->create_text_node("")); + $linepart->append_child($align); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"label", $parameters=array("value" =>""))); + $panelLine->append_child($linepart); - $linepart = $xmldoc->createElement('panelLinePart'); - $style = $xmldoc->createElement('style'); - $style->appendChild($xmldoc->createTextNode("")); - $linepart->appendChild($style); + $linepart = $xmldoc->create_element('panelLinePart'); + $style = $xmldoc->create_element('style'); + $style->append_child($xmldoc->create_text_node("")); + $linepart->append_child($style); - $align = $xmldoc->createElement('align'); - $align->appendChild($xmldoc->createTextNode("")); - $linepart->appendChild($align); + $align = $xmldoc->create_element('align'); + $align->append_child($xmldoc->create_text_node("")); + $linepart->append_child($align); $parameters=array("type" => "radio", "value" => "student", "id" => "led_student", "name" => "led", "onclick" => "toggleType(\"discussionRoom\")") ; - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc,"mainLectureRoom","input", $parameters)); - $panelLine->appendChild($linepart); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc,"mainLectureRoom","input", $parameters)); + $panelLine->append_child($linepart); $parameters=array("type" => "radio", "value" => "student", "id" => "led_student", "name" => "led", "onclick" => "toggleType(\"discussionRoom\")") ; @@ -302,78 +302,78 @@ $parameters['checked']=true; } - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc,"discussionRoom","input", $parameters)); - $panelLine->appendChild($linepart); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc,"discussionRoom","input", $parameters)); + $panelLine->append_child($linepart); - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"label", $parameters=array("for" => "led_student", "value" => "Discussion room" ) )); - $panelLine->appendChild($linepart); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"label", $parameters=array("for" => "led_student", "value" => "Discussion room" ) )); + $panelLine->append_child($linepart); - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"br", $parameters=array() )); - $panelLine->appendChild($linepart); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"br", $parameters=array() )); + $panelLine->append_child($linepart); - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"label", $parameters=array("class" => "comment", "value" => "Students and Instructors have the same rigths" ) )); - $panelLine->appendChild($linepart); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"label", $parameters=array("class" => "comment", "value" => "Students and Instructors have the same rigths" ) )); + $panelLine->append_child($linepart); - $panelContent->appendChild($panelLine); + $panelContent->append_child($panelLine); } - $panelSettings->appendChild($panelContent); + $panelSettings->append_child($panelContent); - $panelsSettings->appendChild($panelSettings); + $panelsSettings->append_child($panelSettings); // ----------------- MEDIA ------------------ - $panelSettingsM = $xmldoc->createElement('panelSettings'); + $panelSettingsM = $xmldoc->create_element('panelSettings'); // MEDIA PANEL INFO - $panelSettingsM->appendChild(create_panel_info($xmldoc, 'mainLectureRoom', 'tabNoSelected', 'tabDisabled', 'Media', "2", 'none')); + $panelSettingsM->append_child(create_panel_info($xmldoc, 'mainLectureRoom', 'tabNoSelected', 'tabDisabled', 'Media', "2", 'none')); // MEDIA CONTENT - $panelContentM = $xmldoc->createElement('panelContent'); + $panelContentM = $xmldoc->create_element('panelContent'); // FIRST LINE - $panelLine = $xmldoc->createElement('panelLine'); + $panelLine = $xmldoc->create_element('panelLine'); - $panelLineStyle = $xmldoc->createElement('style'); - $panelLineStyle->appendChild($xmldoc->createTextNode(" ")); - $panelLine->appendChild($panelLineStyle); + $panelLineStyle = $xmldoc->create_element('style'); + $panelLineStyle->append_child($xmldoc->create_text_node(" ")); + $panelLine->append_child($panelLineStyle); - $linepart = $xmldoc->createElement('panelLinePart'); - $style = $xmldoc->createElement('style'); - $style->appendChild($xmldoc->createTextNode("")); - $linepart->appendChild($style); + $linepart = $xmldoc->create_element('panelLinePart'); + $style = $xmldoc->create_element('style'); + $style->append_child($xmldoc->create_text_node("")); + $linepart->append_child($style); - $align = $xmldoc->createElement('align'); - $align->appendChild($xmldoc->createTextNode("")); - $linepart->appendChild($align); + $align = $xmldoc->create_element('align'); + $align->append_child($xmldoc->create_text_node("")); + $linepart->append_child($align); $parameters=array("type" => "radio", "value" => "two-way-audio", "id" => "audio", "name" => "media_type", "onclick" =>"doChangeMedia(\"audio\")") ; if($action=='update') { if($room_info['media_type']=="two-way-audio") $parameters['checked']=true; } else $parameters['checked']=true; - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc,$contextDisplay, "input", $parameters)); - $panelLine->appendChild($linepart); - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"label", $parameters=array("value" => "Audio") )); - $panelLine->appendChild($linepart); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc,$contextDisplay, "input", $parameters)); + $panelLine->append_child($linepart); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"label", $parameters=array("value" => "Audio") )); + $panelLine->append_child($linepart); - $panelContentM->appendChild($panelLine); + $panelContentM->append_child($panelLine); // SECOND LINE - $panelLine = $xmldoc->createElement('panelLine'); - $panelLineStyle = $xmldoc->createElement('style'); - $panelLineStyle->appendChild($xmldoc->createTextNode(" ")); - $panelLine->appendChild($panelLineStyle); - $linepart = $xmldoc->createElement('panelLinePart'); - $style = $xmldoc->createElement('style'); - $style->appendChild($xmldoc->createTextNode("")); - $linepart->appendChild($style); + $panelLine = $xmldoc->create_element('panelLine'); + $panelLineStyle = $xmldoc->create_element('style'); + $panelLineStyle->append_child($xmldoc->create_text_node(" ")); + $panelLine->append_child($panelLineStyle); + $linepart = $xmldoc->create_element('panelLinePart'); + $style = $xmldoc->create_element('style'); + $style->append_child($xmldoc->create_text_node("")); + $linepart->append_child($style); - $align = $xmldoc->createElement('align'); - $align->appendChild($xmldoc->createTextNode("")); - $linepart->appendChild($align); + $align = $xmldoc->create_element('align'); + $align->append_child($xmldoc->create_text_node("")); + $linepart->append_child($align); $parameters=array("type" => "checkbox", "value" => "1", "id" => "student_simulcast", "name" => "hms_simulcast_restricted") ; if($action=='update'){ if($room_info['hms_simulcast_restricted']==1){ @@ -386,34 +386,34 @@ } else $parameters['checked']=true; - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc,$contextDisplay, "input", $parameters) ); - $panelLine->appendChild($linepart); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc,$contextDisplay, "input", $parameters) ); + $panelLine->append_child($linepart); - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"label", $parameters=array("value" => "Enabled Students to use the phone") )); - $panelLine->appendChild($linepart); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"label", $parameters=array("value" => "Enabled Students to use the phone") )); + $panelLine->append_child($linepart); - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"br", $parameters=array() )); - $panelLine->appendChild($linepart); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"br", $parameters=array() )); + $panelLine->append_child($linepart); - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"label", $parameters=array("class" => "comment", "value" => "Note : Instructors can always use the phone") )); - $panelLine->appendChild($linepart); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"label", $parameters=array("class" => "comment", "value" => "Note : Instructors can always use the phone") )); + $panelLine->append_child($linepart); - $panelContentM->appendChild($panelLine); + $panelContentM->append_child($panelLine); // THIRD LINE - $panelLine = $xmldoc->createElement('panelLine'); - $panelLineStyle = $xmldoc->createElement('style'); - $panelLineStyle->appendChild($xmldoc->createTextNode(" ")); - $panelLine->appendChild($panelLineStyle); - $linepart = $xmldoc->createElement('panelLinePart'); - $style = $xmldoc->createElement('style'); - $style->appendChild($xmldoc->createTextNode("")); - $linepart->appendChild($style); + $panelLine = $xmldoc->create_element('panelLine'); + $panelLineStyle = $xmldoc->create_element('style'); + $panelLineStyle->append_child($xmldoc->create_text_node(" ")); + $panelLine->append_child($panelLineStyle); + $linepart = $xmldoc->create_element('panelLinePart'); + $style = $xmldoc->create_element('style'); + $style->append_child($xmldoc->create_text_node("")); + $linepart->append_child($style); - $align = $xmldoc->createElement('align'); - $align->appendChild($xmldoc->createTextNode("")); - $linepart->appendChild($align); + $align = $xmldoc->create_element('align'); + $align->append_child($xmldoc->create_text_node("")); + $linepart->append_child($align); $parameters=array("type" => "checkbox", "value" => "1", "id" => "two_way_enabled", "name" => "hms_two_way_enabled") ; if($action=='update'){ @@ -427,26 +427,26 @@ } else $parameters['checked']=true; - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc, $contextDisplay,"input", $parameters) ); - $panelLine->appendChild($linepart); - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"label", $parameters=array("value" => "Enabled Students microphones at presentation start") )); - $panelLine->appendChild($linepart); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc, $contextDisplay,"input", $parameters) ); + $panelLine->append_child($linepart); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"label", $parameters=array("value" => "Enabled Students microphones at presentation start") )); + $panelLine->append_child($linepart); - $panelContentM->appendChild($panelLine); + $panelContentM->append_child($panelLine); //FOURTh LINE - $panelLine = $xmldoc->createElement('panelLine'); - $panelLineStyle = $xmldoc->createElement('style'); - $panelLineStyle->appendChild($xmldoc->createTextNode(" ")); - $panelLine->appendChild($panelLineStyle); - $linepart = $xmldoc->createElement('panelLinePart'); - $style = $xmldoc->createElement('style'); - $style->appendChild($xmldoc->createTextNode("")); - $linepart->appendChild($style); + $panelLine = $xmldoc->create_element('panelLine'); + $panelLineStyle = $xmldoc->create_element('style'); + $panelLineStyle->append_child($xmldoc->create_text_node(" ")); + $panelLine->append_child($panelLineStyle); + $linepart = $xmldoc->create_element('panelLinePart'); + $style = $xmldoc->create_element('style'); + $style->append_child($xmldoc->create_text_node("")); + $linepart->append_child($style); - $align = $xmldoc->createElement('align'); - $align->appendChild($xmldoc->createTextNode("")); - $linepart->appendChild($align); + $align = $xmldoc->create_element('align'); + $align->append_child($xmldoc->create_text_node("")); + $linepart->append_child($align); $parameters=array("type" => "radio", "value" => "one-way-audio", "id" => "video", "name" => "media_type", "onclick" => "doChangeMedia(\"video\")") ; if($action=='update'){ if($room_info['media_type']=="one-way-video"){ @@ -454,539 +454,539 @@ } } - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc,$contextDisplay, "input", $parameters) ); - $panelLine->appendChild($linepart); - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"label", $parameters=array("value" => "One-way Video") )); - $panelLine->appendChild($linepart); - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"br", $parameters=array() )); - $panelLine->appendChild($linepart); - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"label", $parameters=array("class" => "comment", "value" => "Presenter uses RealProducer") )); - $panelLine->appendChild($linepart); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc,$contextDisplay, "input", $parameters) ); + $panelLine->append_child($linepart); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"label", $parameters=array("value" => "One-way Video") )); + $panelLine->append_child($linepart); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"br", $parameters=array() )); + $panelLine->append_child($linepart); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"label", $parameters=array("class" => "comment", "value" => "Presenter uses RealProducer") )); + $panelLine->append_child($linepart); - $panelContentM->appendChild($panelLine); + $panelContentM->append_child($panelLine); // HIDE LINE - $panelLine = $xmldoc->createElement('panelLine'); - $panelLineStyle = $xmldoc->createElement('style'); - $panelLineStyle->appendChild($xmldoc->createTextNode("hide")); - $panelLine->appendChild($panelLineStyle); - $panelLineId = $xmldoc->createElement('id'); - $panelLineId->appendChild($xmldoc->createTextNode("roomId_row")); - $panelLine->appendChild($panelLineId); - $linepart = $xmldoc->createElement('panelLinePart'); - $style = $xmldoc->createElement('style'); - $style->appendChild($xmldoc->createTextNode("")); - $linepart->appendChild($style); + $panelLine = $xmldoc->create_element('panelLine'); + $panelLineStyle = $xmldoc->create_element('style'); + $panelLineStyle->append_child($xmldoc->create_text_node("hide")); + $panelLine->append_child($panelLineStyle); + $panelLineId = $xmldoc->create_element('id'); + $panelLineId->append_child($xmldoc->create_text_node("roomId_row")); + $panelLine->append_child($panelLineId); + $linepart = $xmldoc->create_element('panelLinePart'); + $style = $xmldoc->create_element('style'); + $style->append_child($xmldoc->create_text_node("")); + $linepart->append_child($style); - $align = $xmldoc->createElement('align'); - $align->appendChild($xmldoc->createTextNode("")); - $linepart->appendChild($align); - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"label", $parameters=array("for" => "roomId_field", "value" => "Room Id : ") )); - $panelLine->appendChild($linepart); + $align = $xmldoc->create_element('align'); + $align->append_child($xmldoc->create_text_node("")); + $linepart->append_child($align); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"label", $parameters=array("for" => "roomId_field", "value" => "Room Id : ") )); + $panelLine->append_child($linepart); $parameters=array("type" => "text", "id" => "roomId_field", "name" => "roomId_Field", "maxlength" => "50") ; if($action=='update'){ $parameters['value']=$roomId; } - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc,$contextDisplay, "input", $parameters) ); - $panelLine->appendChild($linepart); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc,$contextDisplay, "input", $parameters) ); + $panelLine->append_child($linepart); - $panelContentM->appendChild($panelLine); + $panelContentM->append_child($panelLine); //FIFTH LINE - $panelLine = $xmldoc->createElement('panelLine'); - $panelLineStyle = $xmldoc->createElement('style'); - $panelLineStyle->appendChild($xmldoc->createTextNode(" ")); - $panelLine->appendChild($panelLineStyle); - $linepart = $xmldoc->createElement('panelLinePart'); - $style = $xmldoc->createElement('style'); - $style->appendChild($xmldoc->createTextNode("")); - $linepart->appendChild($style); + $panelLine = $xmldoc->create_element('panelLine'); + $panelLineStyle = $xmldoc->create_element('style'); + $panelLineStyle->append_child($xmldoc->create_text_node(" ")); + $panelLine->append_child($panelLineStyle); + $linepart = $xmldoc->create_element('panelLinePart'); + $style = $xmldoc->create_element('style'); + $style->append_child($xmldoc->create_text_node("")); + $linepart->append_child($style); - $align = $xmldoc->createElement('align'); - $align->appendChild($xmldoc->createTextNode("")); - $linepart->appendChild($align); + $align = $xmldoc->create_element('align'); + $align->append_child($xmldoc->create_text_node("")); + $linepart->append_child($align); $parameters=array("type" => "radio", "value" => "none", "id" => "none", "name" => "media_type", "onclick" => "doChangeMedia(\"none\")") ; if($action=='update') { if($room_info['media_type']=="none") $parameters['checked']=true; } - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc,$contextDisplay, "input", $parameters) ); - $panelLine->appendChild($linepart); - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"label", $parameters=array("value" => "Third-party Conference Call") )); - $panelLine->appendChild($linepart); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc,$contextDisplay, "input", $parameters) ); + $panelLine->append_child($linepart); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"label", $parameters=array("value" => "Third-party Conference Call") )); + $panelLine->append_child($linepart); - $panelContentM->appendChild($panelLine); + $panelContentM->append_child($panelLine); - $panelSettingsM->appendChild($panelContentM); - $panelsSettings->appendChild($panelSettingsM); + $panelSettingsM->append_child($panelContentM); + $panelsSettings->append_child($panelSettingsM); //--------- END MEDIA -------- // ----------------- FEATURES ---------------- - $panelSettings = $xmldoc->createElement('panelSettings'); + $panelSettings = $xmldoc->create_element('panelSettings'); // FEATURES PANEL INFO - $panelSettings->appendChild(create_panel_info($xmldoc, 'mainLectureRoom-discussionRoom', 'tabNoSelected', 'tabDisabled', 'Features', "3", 'none')); + $panelSettings->append_child(create_panel_info($xmldoc, 'mainLectureRoom-discussionRoom', 'tabNoSelected', 'tabDisabled', 'Features', "3", 'none')); // FEATURES CONTENT - $panelContent = $xmldoc->createElement('panelContent'); + $panelContent = $xmldoc->create_element('panelContent'); // FIRST LINE - $panelLine = $xmldoc->createElement('panelLine'); - $panelLineStyle = $xmldoc->createElement('style'); - $panelLineStyle->appendChild($xmldoc->createTextNode(" ")); - $panelLine->appendChild($panelLineStyle); - $linepart = $xmldoc->createElement('panelLinePart'); - $style = $xmldoc->createElement('style'); - $style->appendChild($xmldoc->createTextNode("")); - $linepart->appendChild($style); + $panelLine = $xmldoc->create_element('panelLine'); + $panelLineStyle = $xmldoc->create_element('style'); + $panelLineStyle->append_child($xmldoc->create_text_node(" ")); + $panelLine->append_child($panelLineStyle); + $linepart = $xmldoc->create_element('panelLinePart'); + $style = $xmldoc->create_element('style'); + $style->append_child($xmldoc->create_text_node("")); + $linepart->append_child($style); - $align = $xmldoc->createElement('align'); - $align->appendChild($xmldoc->createTextNode("")); - $linepart->appendChild($align); + $align = $xmldoc->create_element('align'); + $align->append_child($xmldoc->create_text_node("")); + $linepart->append_child($align); $parameters=array("type" => "checkbox", "value" => "1", "id" => "enabled_eboard", "name" => "student_wb_enabled") ; if($action=='update'){ if($room_info['student_wb_enabled']==1) $parameters['checked']=true; } - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc,$contextDisplay, "input", $parameters) ); - $panelLine->appendChild($linepart); - $linepart->appendChild(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"label", $parameters=array("value" => "Enabled Students to use eBoard") )); - $panelLine->appendChild($linepart); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc,$contextDisplay, "input", $parameters) ); + $panelLine->append_child($linepart); + $linepart->append_child(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"label", $parameters=array("value" => "Enabled Students to use eBoard") )); + $panelLine->append_child($linepart); - $panelContent->appendChild($pan... [truncated message content] |