[Hw4mdl-svn] SF.net SVN: hw4mdl: [148] trunk/moodle/mod/liveclassroom
Brought to you by:
jhlinder,
trollinger
|
From: <hu...@us...> - 2006-12-29 11:05:41
|
Revision: 148
http://svn.sourceforge.net/hw4mdl/?rev=148&view=rev
Author: hugues
Date: 2006-12-29 03:05:36 -0800 (Fri, 29 Dec 2006)
Log Message:
-----------
http://u.horizonwimba.com/bugzilla/show_bug.cgi?id=10561
- Fixing some more code formatting
- Fixed message displays
Modified Paths:
--------------
trunk/moodle/mod/liveclassroom/generateListRooms.php
trunk/moodle/mod/liveclassroom/generateSettings.php
trunk/moodle/mod/liveclassroom/lib.php
trunk/moodle/mod/liveclassroom/manageRoomAction.php
trunk/moodle/mod/liveclassroom/welcome.php
Modified: trunk/moodle/mod/liveclassroom/generateListRooms.php
===================================================================
--- trunk/moodle/mod/liveclassroom/generateListRooms.php 2006-12-29 10:25:41 UTC (rev 147)
+++ trunk/moodle/mod/liveclassroom/generateListRooms.php 2006-12-29 11:05:36 UTC (rev 148)
@@ -21,7 +21,7 @@
* if not, write to the Free Software Foundation, Inc., *
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *
* *
- * Author: Hazan Samy *
+ * Author: Hazan Samy *
* *
* Date: October 2006 *
* *
@@ -32,122 +32,121 @@
/// This page is to generate the list of rooms and archives
- require_once("../../config.php");
- require_once("lib.php");
- require_once("api.php");
+require_once("../../config.php");
+require_once("lib.php");
+require_once("api.php");
- // Variables needed
- global $CFG;
+// Variables needed
+global $CFG;
- if (version_compare(PHP_VERSION,'5','>=')) {
- require_once($CFG->libdir.'/cas/domxml-php4-php5.php');
- }
-
- if(empty($_POST)){
- $params = $_GET;
- }
- else $params = $_POST;
+if (version_compare(PHP_VERSION,'5','>=')) {
+ require_once($CFG->libdir.'/cas/domxml-php4-php5.php');
+}
- $courseid = $params['enc_course_id'];
+if(empty($_POST)){
+ $params = $_GET;
+}
+else {
+ $params = $_POST;
+}
- $userid = liveclassroom_api_get_teacher_user_id($courseid);
-
- if(isteacher($courseid, $USER->id) ) {
- $isteacher = 1;
- }
- else if (isstudent($courseid) ) {
- $isteacher = 0;
- }
-
- if (!liveclassroom_init_session($params)) {
- error("ExpiredSessionException");
- }
+$courseid = $params['enc_course_id'];
+$userid = liveclassroom_api_get_teacher_user_id($courseid);
+
+if(isteacher($courseid, $USER->id) ) {
+ $isteacher = 1;
+}
+else if (isstudent($courseid) ) {
+ $isteacher = 0;
+}
+
+if (!liveclassroom_init_session($params)) {
+ error("ExpiredSessionException");
+}
- $xmldoc = domxml_new_doc("1.0");
-
- $root = $xmldoc->create_element('root');
-
- $root->append_child(liveclassroom_get_session_params($xmldoc,$params));
-
- $windows = $xmldoc->create_element('windows');
- //HEADER BAR
- $windows->append_child(liveclassroom_create_headerbar($xmldoc));
+$xmldoc = domxml_new_doc("1.0");
+
+$root = $xmldoc->create_element('root');
+
+$root->append_child(liveclassroom_get_session_params($xmldoc,$params));
+
+$windows = $xmldoc->create_element('windows');
+//HEADER BAR
+$windows->append_child(liveclassroom_create_headerbar($xmldoc));
- //TOOL BAR
- $toolbar = $xmldoc->create_element('windowsElement');
- $tbtype = $xmldoc->create_element('type');
- $tbtype->append_child($xmldoc->create_text_node("toolBar"));
- $toolbar->append_child($tbtype);
-
- $tbelementParameters = $xmldoc->create_element("windowsElementParameters");
-
- $menubar = $xmldoc->create_element('menuElements');
-
- $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', "launchNew('generateSettings.php','Management','new','LiveClassroom','MainLecture')", ''));
- $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->append_child($menubar);
- $toolbar->append_child($tbelementParameters);
-
- $windows->append_child($toolbar);
+//TOOL BAR
+$toolbar = $xmldoc->create_element('windowsElement');
+$tbtype = $xmldoc->create_element('type');
+$tbtype->append_child($xmldoc->create_text_node("toolBar"));
+$toolbar->append_child($tbtype);
+
+$tbelementParameters = $xmldoc->create_element("windowsElementParameters");
+
+$menubar = $xmldoc->create_element('menuElements');
+
+$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', "launchNew('generateSettings.php','Management','new','LiveClassroom','MainLecture')", ''));
+$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', "", "", "", "",""));
- // MESSAGE BAR
- if (isset($params['messageType'])) {
- $windows->append_child(liveclassroom_create_message($xmldoc, liveclassroom_get_message($params['messageType'])));
- }
- // LIST
+$tbelementParameters->append_child($menubar);
+$toolbar->append_child($tbelementParameters);
+
+$windows->append_child($toolbar);
- $list = $xmldoc->create_element('windowsElement');
- $typeWindowsElement = $xmldoc->create_element('type');
- $typeWindowsElement->append_child($xmldoc->create_text_node("list"));
- $list->append_child($typeWindowsElement);
-
- $elementParameters = $xmldoc->create_element('windowsElementParameters');
-
- $products = $xmldoc->create_element('products');
-
- // LIST PRODUCTS
-
- $listProducts = $xmldoc->create_element('listProducts');
-
- $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->append_child($listProducts);
-
- // PRODUCTS CONTENT
+// MESSAGE BAR
+if (isset($params['messageType'])) {
+ $windows->append_child(liveclassroom_create_message($xmldoc, liveclassroom_get_message($params['messageType'])));
+}
-
- $products->append_child(liveclassroom_roomsarchiveslist($xmldoc,$userid,$courseid,$isteacher));
-
- $elementParameters->append_child($products);
-
- $list->append_child($elementParameters);
-
- $windows->append_child($list);
+// LIST
+$list = $xmldoc->create_element('windowsElement');
+$typeWindowsElement = $xmldoc->create_element('type');
+$typeWindowsElement->append_child($xmldoc->create_text_node("list"));
+$list->append_child($typeWindowsElement);
+
+$elementParameters = $xmldoc->create_element('windowsElementParameters');
+
+$products = $xmldoc->create_element('products');
+
+// LIST PRODUCTS
+
+$listProducts = $xmldoc->create_element('listProducts');
+
+$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->append_child($listProducts);
+
+// PRODUCTS CONTENT
- $root->append_child($windows);
-
- $xmldoc->append_child($root);
+
+$products->append_child(liveclassroom_roomsarchiveslist($xmldoc,$userid,$courseid,$isteacher));
+
+$elementParameters->append_child($products);
+
+$list->append_child($elementParameters);
+
+$windows->append_child($list);
- $xmlstring = $xmldoc->dump_mem(true); // Xml datas into a string
-
- $finalstring = str_replace("\n", '', $xmlstring);
-
- add_to_log("", "liveclassroom", "test id", "test", $xmlstring);
-
- echo $xmlstring;
-
+$root->append_child($windows);
+
+$xmldoc->append_child($root);
+
+$xmlstring = $xmldoc->dump_mem(true); // Xml datas into a string
+
+$finalstring = str_replace("\n", '', $xmlstring);
+
+echo $xmlstring;
?>
\ No newline at end of file
Modified: trunk/moodle/mod/liveclassroom/generateSettings.php
===================================================================
--- trunk/moodle/mod/liveclassroom/generateSettings.php 2006-12-29 10:25:41 UTC (rev 147)
+++ trunk/moodle/mod/liveclassroom/generateSettings.php 2006-12-29 11:05:36 UTC (rev 148)
@@ -21,1162 +21,1162 @@
* if not, write to the Free Software Foundation, Inc., *
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *
* *
- * Author: Hazan Samy *
+ * Author: Hazan Samy *
* *
- * Date: October 2006 *
+ * Date: October 2006 *
* *
******************************************************************************/
/* $Id$ */
/// This page is to generate the settings of a room or archive
- // require_once($CFG->dirroot.'/config.php');
- require_once("../../config.php");
- require_once("lib.php");
+ // require_once($CFG->dirroot.'/config.php');
+ require_once("../../config.php");
+ require_once("lib.php");
require_once("api.php");
// Variables needed
global $CFG;
- if (version_compare(PHP_VERSION,'5','>=')) {
- require_once($CFG->libdir.'/cas/domxml-php4-php5.php');
- }
-
- $courseid = $_GET['enc_course_id'];
+ if (version_compare(PHP_VERSION,'5','>=')) {
+ require_once($CFG->libdir.'/cas/domxml-php4-php5.php');
+ }
+
+ $courseid = $_GET['enc_course_id'];
$signature = $_GET['signature'];
$action = $_GET['action'];
$MAINLECTURE = 'MainLecture';
$DISCUSSIONROOM = 'Discussion';
- $MAINDISCUSSION = 'MainLectureRoom-DiscussionRoom';
-
- if (!liveclassroom_init_session($_GET)) {
- error("ExpiredSessionException");
- }
-
- if($action == 'update') {
- $roomId = $_GET['id'];
- $room_info = liveclassroom_api_get_infos_room($roomId);
- if(liveclassroom_is_lecturehall($roomId,$courseid)) {
- $isLectureRoom = true;
- }
- else {
- $isLectureRoom = false;
- }
- session_start(); // session to store the previous types of the room
+ $MAINDISCUSSION = 'MainLectureRoom-DiscussionRoom';
+
+ if (!liveclassroom_init_session($_GET)) {
+ error("ExpiredSessionException");
+ }
+
+ if($action == 'update') {
+ $roomId = $_GET['id'];
+ $room_info = liveclassroom_api_get_infos_room($roomId);
+ if(liveclassroom_is_lecturehall($roomId,$courseid)) {
+ $isLectureRoom = true;
+ }
+ else {
+ $isLectureRoom = false;
+ }
+ session_start(); // session to store the previous types of the room
}
else {
- $room_info = array();
+ $room_info = array();
}
- $contextDisplay='all';
-
- $xmldoc = domxml_new_doc("1.0");
-
- $root = $xmldoc->create_element('root');
-
- $root->append_child(liveclassroom_get_session_params($xmldoc,$_GET));
-
- $windows = $xmldoc->create_element('windows');
+ $contextDisplay='all';
+
+ $xmldoc = domxml_new_doc("1.0");
+
+ $root = $xmldoc->create_element('root');
+
+ $root->append_child(liveclassroom_get_session_params($xmldoc,$_GET));
+
+ $windows = $xmldoc->create_element('windows');
- //HEADER BAR
- $windows->append_child(liveclassroom_create_headerbar($xmldoc));
+ //HEADER BAR
+ $windows->append_child(liveclassroom_create_headerbar($xmldoc));
- // CONTEXT BAR
-
- $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->append_child($xmldoc->create_text_node($room_info['longname']));
- }
- 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->append_child($contextbarinformations);
-
- $contextbar->append_child($cbelementParameters);
-
- $windows->append_child($contextbar);
-
-
- // SETTINGS
-
- $settings = $xmldoc->create_element('windowsElement');
- $settingstype = $xmldoc->create_element('type');
- $settingstype->append_child($xmldoc->create_text_node("settings"));
- $settings->append_child($settingstype);
-
- $settingsElementParameters = $xmldoc->create_element("windowsElementParameters");
-
-
- $panelsSettings = $xmldoc->create_element('panelsSettings');
-
- // -------------- ROOM INFO -------------------
- $panelSettings = $xmldoc->create_element('panelSettings');
- // ROOM INFO PANEL INFO
+ // CONTEXT BAR
+
+ $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->append_child($xmldoc->create_text_node($room_info['longname']));
+ }
+ 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->append_child($contextbarinformations);
+
+ $contextbar->append_child($cbelementParameters);
+
+ $windows->append_child($contextbar);
+
+
+ // SETTINGS
+
+ $settings = $xmldoc->create_element('windowsElement');
+ $settingstype = $xmldoc->create_element('type');
+ $settingstype->append_child($xmldoc->create_text_node("settings"));
+ $settings->append_child($settingstype);
+
+ $settingsElementParameters = $xmldoc->create_element("windowsElementParameters");
+
+
+ $panelsSettings = $xmldoc->create_element('panelsSettings');
+
+ // -------------- ROOM INFO -------------------
+ $panelSettings = $xmldoc->create_element('panelSettings');
+ // ROOM INFO PANEL INFO
- $panelSettings->append_child(create_panel_info($xmldoc, 'all', 'tabSelected', 'tabDisabled', 'Room Info', "1", "block"));
- // ROOM INFO CONTENT
- $panelContent = $xmldoc->create_element('panelContent');
-
- // FIRST LINE
- $panelLine = $xmldoc->create_element('panelLine');
-
- $plid = $xmldoc->create_element('id');
- $plid->append_child($xmldoc->create_text_node(""));
- $panelLine->append_child($plid);
-
- $panelLineStyle = $xmldoc->create_element('style');
- $panelLineStyle->append_child($xmldoc->create_text_node(" "));
- $panelLine->append_child($panelLineStyle);
+ $panelSettings->append_child(create_panel_info($xmldoc, 'all', 'tabSelected', 'tabDisabled', 'Room Info', "1", "block"));
+ // ROOM INFO CONTENT
+ $panelContent = $xmldoc->create_element('panelContent');
+
+ // FIRST LINE
+ $panelLine = $xmldoc->create_element('panelLine');
+
+ $plid = $xmldoc->create_element('id');
+ $plid->append_child($xmldoc->create_text_node(""));
+ $panelLine->append_child($plid);
+
+ $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);
+ $linepart = $xmldoc->create_element('panelLinePart');
+
+ $style = $xmldoc->create_element('style');
+ $style->append_child($xmldoc->create_text_node(""));
+ $linepart->append_child($style);
- $colspan = $xmldoc->create_element('colspan');
- $colspan->append_child($xmldoc->create_text_node("0"));
- $linepart->append_child($colspan);
-
- $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("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->create_element('panelLinePart');
-
- $style = $xmldoc->create_element('style');
- $style->append_child($xmldoc->create_text_node(""));
- $linepart->append_child($style);
+ $colspan = $xmldoc->create_element('colspan');
+ $colspan->append_child($xmldoc->create_text_node("0"));
+ $linepart->append_child($colspan);
+
+ $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("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->create_element('panelLinePart');
+
+ $style = $xmldoc->create_element('style');
+ $style->append_child($xmldoc->create_text_node(""));
+ $linepart->append_child($style);
- $colspan = $xmldoc->create_element('colspan');
- $colspan->append_child($xmldoc->create_text_node("0"));
- $linepart->append_child($colspan);
-
- $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,"input", $parameters));
- $panelLine->append_child($linepart);
-
- $panelContent->append_child($panelLine);
-
- // SECOND LINE
- $panelLine = $xmldoc->create_element('panelLine');
+ $colspan = $xmldoc->create_element('colspan');
+ $colspan->append_child($xmldoc->create_text_node("0"));
+ $linepart->append_child($colspan);
+
+ $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,"input", $parameters));
+ $panelLine->append_child($linepart);
+
+ $panelContent->append_child($panelLine);
+
+ // SECOND LINE
+ $panelLine = $xmldoc->create_element('panelLine');
- $plid = $xmldoc->create_element('id');
- $plid->append_child($xmldoc->create_text_node(""));
- $panelLine->append_child($plid);
-
- $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);
-
- $colspan = $xmldoc->create_element('colspan');
- $colspan->append_child($xmldoc->create_text_node("0"));
- $linepart->append_child($colspan);
-
- $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" => "Description : ") ));
- $panelLine->append_child($linepart);
-
- $linepart = $xmldoc->create_element('panelLinePart');
- $style = $xmldoc->create_element('style');
- $style->append_child($xmldoc->create_text_node(""));
- $linepart->append_child($style);
+ $plid = $xmldoc->create_element('id');
+ $plid->append_child($xmldoc->create_text_node(""));
+ $panelLine->append_child($plid);
+
+ $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);
+
+ $colspan = $xmldoc->create_element('colspan');
+ $colspan->append_child($xmldoc->create_text_node("0"));
+ $linepart->append_child($colspan);
+
+ $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" => "Description : ") ));
+ $panelLine->append_child($linepart);
+
+ $linepart = $xmldoc->create_element('panelLinePart');
+ $style = $xmldoc->create_element('style');
+ $style->append_child($xmldoc->create_text_node(""));
+ $linepart->append_child($style);
- $colspan = $xmldoc->create_element('colspan');
- $colspan->append_child($xmldoc->create_text_node("0"));
- $linepart->append_child($colspan);
-
- $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,"textarea", $parameters=array("cols" => "40", "id" => "description", "value" => $room_info['description'], "name" => "description", "rows" => "4") ));
- $panelLine->append_child($linepart);
-
- $panelContent->append_child($panelLine);
-
-
- if(($room_info['archive']!=1) || ($roomId == "")) {
- // THIRD LINE
- $panelLine = $xmldoc->create_element('panelLine');
- $plid = $xmldoc->create_element('id');
- $plid->append_child($xmldoc->create_text_node(""));
- $panelLine->append_child($plid);
- $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);
-
+ $colspan = $xmldoc->create_element('colspan');
+ $colspan->append_child($xmldoc->create_text_node("0"));
+ $linepart->append_child($colspan);
+
+ $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,"textarea", $parameters=array("cols" => "40", "id" => "description", "value" => $room_info['description'], "name" => "description", "rows" => "4") ));
+ $panelLine->append_child($linepart);
+
+ $panelContent->append_child($panelLine);
+
+
+ if(($room_info['archive']!=1) || ($roomId == "")) {
+ // THIRD LINE
+ $panelLine = $xmldoc->create_element('panelLine');
+ $plid = $xmldoc->create_element('id');
+ $plid->append_child($xmldoc->create_text_node(""));
+ $panelLine->append_child($plid);
+ $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);
+
- $colspan = $xmldoc->create_element('colspan');
- $colspan->append_child($xmldoc->create_text_node("0"));
- $linepart->append_child($colspan);
-
- $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(\"$MAINLECTURE\")") ;
- if(($action=="update") && ($isLectureRoom==true))
- {
- $_SESSION['led']='instructor';
- $parameters['checked']=true;
- }
- else if($action=="new")
- {
- $parameters['checked']=true;
- }
- else
- {
- $parameters['checked']=true;
- }
-
- $linepart = $xmldoc->create_element('panelLinePart');
- $style = $xmldoc->create_element('style');
- $style->append_child($xmldoc->create_text_node(""));
- $linepart->append_child($style);
-
- $colspan = $xmldoc->create_element('colspan');
- $colspan->append_child($xmldoc->create_text_node("0"));
- $linepart->append_child($colspan);
-
- $align = $xmldoc->create_element('align');
- $align->append_child($xmldoc->create_text_node(""));
- $linepart->append_child($align);
- $linepart->append_child(liveclassroom_create_linepart_element($xmldoc, "$MAINLECTURE","input", $parameters));
- $panelLine->append_child($linepart);
-
- $parameters=array("type" => "radio", "value" => "instructor", "id" => "led_instructor", "name" => "led", "onclick" => "toggleType(\"$MAINLECTURE\")") ;
+ $colspan = $xmldoc->create_element('colspan');
+ $colspan->append_child($xmldoc->create_text_node("0"));
+ $linepart->append_child($colspan);
+
+ $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(\"$MAINLECTURE\")") ;
+ if(($action=="update") && ($isLectureRoom==true))
+ {
+ $_SESSION['led']='instructor';
+ $parameters['checked']=true;
+ }
+ else if($action=="new")
+ {
+ $parameters['checked']=true;
+ }
+ else
+ {
+ $parameters['checked']=true;
+ }
+
+ $linepart = $xmldoc->create_element('panelLinePart');
+ $style = $xmldoc->create_element('style');
+ $style->append_child($xmldoc->create_text_node(""));
+ $linepart->append_child($style);
+
+ $colspan = $xmldoc->create_element('colspan');
+ $colspan->append_child($xmldoc->create_text_node("0"));
+ $linepart->append_child($colspan);
+
+ $align = $xmldoc->create_element('align');
+ $align->append_child($xmldoc->create_text_node(""));
+ $linepart->append_child($align);
+ $linepart->append_child(liveclassroom_create_linepart_element($xmldoc, "$MAINLECTURE","input", $parameters));
+ $panelLine->append_child($linepart);
+
+ $parameters=array("type" => "radio", "value" => "instructor", "id" => "led_instructor", "name" => "led", "onclick" => "toggleType(\"$MAINLECTURE\")") ;
- $linepart->append_child(liveclassroom_create_linepart_element($xmldoc, "$DISCUSSIONROOM","input", $parameters));
- $panelLine->append_child($linepart);
+ $linepart->append_child(liveclassroom_create_linepart_element($xmldoc, "$DISCUSSIONROOM","input", $parameters));
+ $panelLine->append_child($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->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" => "Instructors lead the presentation" ) ));
- $panelLine->append_child($linepart);
-
-
- $panelContent->append_child($panelLine);
-
- // FOURTH LINE
- $panelLine = $xmldoc->create_element('panelLine');
-
- $plid = $xmldoc->create_element('id');
- $plid->append_child($xmldoc->create_text_node(""));
- $panelLine->append_child($plid);
-
- $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);
-
+
+ $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->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" => "Instructors lead the presentation" ) ));
+ $panelLine->append_child($linepart);
+
+
+ $panelContent->append_child($panelLine);
+
+ // FOURTH LINE
+ $panelLine = $xmldoc->create_element('panelLine');
+
+ $plid = $xmldoc->create_element('id');
+ $plid->append_child($xmldoc->create_text_node(""));
+ $panelLine->append_child($plid);
+
+ $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);
+
- $colspan = $xmldoc->create_element('colspan');
- $colspan->append_child($xmldoc->create_text_node("0"));
- $linepart->append_child($colspan);
-
- $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->create_element('panelLinePart');
- $style = $xmldoc->create_element('style');
- $style->append_child($xmldoc->create_text_node(""));
- $linepart->append_child($style);
-
-
- $colspan = $xmldoc->create_element('colspan');
- $colspan->append_child($xmldoc->create_text_node("0"));
- $linepart->append_child($colspan);
-
- $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\")") ;
+ $colspan = $xmldoc->create_element('colspan');
+ $colspan->append_child($xmldoc->create_text_node("0"));
+ $linepart->append_child($colspan);
+
+ $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->create_element('panelLinePart');
+ $style = $xmldoc->create_element('style');
+ $style->append_child($xmldoc->create_text_node(""));
+ $linepart->append_child($style);
+
+
+ $colspan = $xmldoc->create_element('colspan');
+ $colspan->append_child($xmldoc->create_text_node("0"));
+ $linepart->append_child($colspan);
+
+ $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->append_child(liveclassroom_create_linepart_element($xmldoc,"$MAINLECTURE","input", $parameters));
- $panelLine->append_child($linepart);
+ $linepart->append_child(liveclassroom_create_linepart_element($xmldoc,"$MAINLECTURE","input", $parameters));
+ $panelLine->append_child($linepart);
-
- $parameters=array("type" => "radio", "value" => "student", "id" => "led_student", "name" => "led", "onclick" => "toggleType(\"$DISCUSSIONROOM\")") ;
- if(($action=="update") && ($isLectureRoom==false))
- {
- $_SESSION['led']='student';
- $parameters['checked']=true;
+
+ $parameters=array("type" => "radio", "value" => "student", "id" => "led_student", "name" => "led", "onclick" => "toggleType(\"$DISCUSSIONROOM\")") ;
+ if(($action=="update") && ($isLectureRoom==false))
+ {
+ $_SESSION['led']='student';
+ $parameters['checked']=true;
- }
- else
- {
- $parameters['checked']=true;
- }
+ }
+ else
+ {
+ $parameters['checked']=true;
+ }
- $linepart->append_child(liveclassroom_create_linepart_element($xmldoc,"$DISCUSSIONROOM","input", $parameters));
- $panelLine->append_child($linepart);
+ $linepart->append_child(liveclassroom_create_linepart_element($xmldoc,"$DISCUSSIONROOM","input", $parameters));
+ $panelLine->append_child($linepart);
- $linepart->append_child(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"label", $parameters=array("for" => "led_student", "value" => "Discussion room" ) ));
- $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" => "Students and Instructors have the same rigths" ) ));
- $panelLine->append_child($linepart);
-
- $panelContent->append_child($panelLine);
- }
+ $linepart->append_child(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"label", $parameters=array("for" => "led_student", "value" => "Discussion room" ) ));
+ $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" => "Students and Instructors have the same rigths" ) ));
+ $panelLine->append_child($linepart);
+
+ $panelContent->append_child($panelLine);
+ }
- $panelSettings->append_child($panelContent);
-
- $panelsSettings->append_child($panelSettings);
-
+ $panelSettings->append_child($panelContent);
+
+ $panelsSettings->append_child($panelSettings);
+
-
- // ----------------- MEDIA ------------------
-
- $panelSettingsM = $xmldoc->create_element('panelSettings');
- // MEDIA PANEL INFO
- $panelSettingsM->append_child(create_panel_info($xmldoc, "$MAINLECTURE", 'tabNoSelected', 'tabDisabled', 'Media', "2", 'none'));
-
- // MEDIA CONTENT
- $panelContentM = $xmldoc->create_element('panelContent');
-
- // FIRST LINE
- $panelLine = $xmldoc->create_element('panelLine');
-
- $plid = $xmldoc->create_element('id');
- $plid->append_child($xmldoc->create_text_node(""));
- $panelLine->append_child($plid);
-
- $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);
-
- $colspan = $xmldoc->create_element('colspan');
- $colspan->append_child($xmldoc->create_text_node("0"));
- $linepart->append_child($colspan);
-
- $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->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->append_child($panelLine);
-
- // SECOND LINE
- $panelLine = $xmldoc->create_element('panelLine');
-
- $plid = $xmldoc->create_element('id');
- $plid->append_child($xmldoc->create_text_node(""));
- $panelLine->append_child($plid);
-
- $panelLineStyle = $xmldoc->create_element('style');
- $panelLineStyle->append_child($xmldoc->create_text_node("subOption"));
- $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);
+
+ // ----------------- MEDIA ------------------
+
+ $panelSettingsM = $xmldoc->create_element('panelSettings');
+ // MEDIA PANEL INFO
+ $panelSettingsM->append_child(create_panel_info($xmldoc, "$MAINLECTURE", 'tabNoSelected', 'tabDisabled', 'Media', "2", 'none'));
+
+ // MEDIA CONTENT
+ $panelContentM = $xmldoc->create_element('panelContent');
+
+ // FIRST LINE
+ $panelLine = $xmldoc->create_element('panelLine');
+
+ $plid = $xmldoc->create_element('id');
+ $plid->append_child($xmldoc->create_text_node(""));
+ $panelLine->append_child($plid);
+
+ $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);
+
+ $colspan = $xmldoc->create_element('colspan');
+ $colspan->append_child($xmldoc->create_text_node("0"));
+ $linepart->append_child($colspan);
+
+ $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->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->append_child($panelLine);
+
+ // SECOND LINE
+ $panelLine = $xmldoc->create_element('panelLine');
+
+ $plid = $xmldoc->create_element('id');
+ $plid->append_child($xmldoc->create_text_node(""));
+ $panelLine->append_child($plid);
+
+ $panelLineStyle = $xmldoc->create_element('style');
+ $panelLineStyle->append_child($xmldoc->create_text_node("subOption"));
+ $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);
- $colspan = $xmldoc->create_element('colspan');
- $colspan->append_child($xmldoc->create_text_node("0"));
- $linepart->append_child($colspan);
-
- $align = $xmldoc->create_element('align');
- $align->append_child($xmldoc->create_text_node(""));
- $linepart->append_child($align);
- $parameters=array("type" => "checkbox", "value" => "0", "id" => "student_simulcast", "name" => "hms_simulcast_restricted") ;
- if($action=='update'){
- if($room_info['hms_simulcast_restricted']==0){
- $parameters['checked']=true;
+ $colspan = $xmldoc->create_element('colspan');
+ $colspan->append_child($xmldoc->create_text_node("0"));
+ $linepart->append_child($colspan);
+
+ $align = $xmldoc->create_element('align');
+ $align->append_child($xmldoc->create_text_node(""));
+ $linepart->append_child($align);
+ $parameters=array("type" => "checkbox", "value" => "0", "id" => "student_simulcast", "name" => "hms_simulcast_restricted") ;
+ if($action=='update'){
+ if($room_info['hms_simulcast_restricted']==0){
+ $parameters['checked']=true;
}
else if($room_info['media_type']=="two-way-video"){
- $parameters['checked']=false;
- }
- //else $parameters['checked']=true;
+ $parameters['checked']=false;
+ }
+ //else $parameters['checked']=true;
}
else $parameters['checked']=true;
-
- $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 the phone") ));
- $panelLine->append_child($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" => "Enable Students to use the phone") ));
+ $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" => "Note : Instructors can always use the phone") ));
- $panelLine->append_child($linepart);
-
- $panelContentM->append_child($panelLine);
-
- // THIRD LINE
-
- $panelLine = $xmldoc->create_element('panelLine');
- $plid = $xmldoc->create_element('id');
- $plid->append_child($xmldoc->create_text_node(""));
- $panelLine->append_child($plid);
- $panelLineStyle = $xmldoc->create_element('style');
- $panelLineStyle->append_child($xmldoc->create_text_node("subOption"));
- $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);
+ $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" => "Note: Instructors can always use the phone") ));
+ $panelLine->append_child($linepart);
+
+ $panelContentM->append_child($panelLine);
+
+ // THIRD LINE
+
+ $panelLine = $xmldoc->create_element('panelLine');
+ $plid = $xmldoc->create_element('id');
+ $plid->append_child($xmldoc->create_text_node(""));
+ $panelLine->append_child($plid);
+ $panelLineStyle = $xmldoc->create_element('style');
+ $panelLineStyle->append_child($xmldoc->create_text_node("subOption"));
+ $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);
- $colspan = $xmldoc->create_element('colspan');
- $colspan->append_child($xmldoc->create_text_node("0"));
- $linepart->append_child($colspan);
-
- $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'){
- if($room_info['hms_two_way_enabled']==1){
- $parameters['checked']=true;
- }
- else if($room_info['media_type']=="two-way-video"){
- $parameters['checked']=false;
- }
-
- //$parameters['checked']=true;
- }
- else $parameters['checked']=true;
-
- $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);
+ $colspan = $xmldoc->create_element('colspan');
+ $colspan->append_child($xmldoc->create_text_node("0"));
+ $linepart->append_child($colspan);
+
+ $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'){
+ if($room_info['hms_two_way_enabled']==1){
+ $parameters['checked']=true;
+ }
+ else if($room_info['media_type']=="two-way-video"){
+ $parameters['checked']=false;
+ }
+
+ //$parameters['checked']=true;
+ }
+ else $parameters['checked']=true;
+
+ $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" => "Enable Student's microphones at presentation start") ));
+ $panelLine->append_child($linepart);
- $panelContentM->append_child($panelLine);
-
- //FOURTh LINE
- $panelLine = $xmldoc->create_element('panelLine');
- $plid = $xmldoc->create_element('id');
- $plid->append_child($xmldoc->create_text_node(""));
- $panelLine->append_child($plid);
- $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);
+ $panelContentM->append_child($panelLine);
+
+ //FOURTh LINE
+ $panelLine = $xmldoc->create_element('panelLine');
+ $plid = $xmldoc->create_element('id');
+ $plid->append_child($xmldoc->create_text_node(""));
+ $panelLine->append_child($plid);
+ $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);
- $colspan = $xmldoc->create_element('colspan');
- $colspan->append_child($xmldoc->create_text_node("0"));
- $linepart->append_child($colspan);
-
- $align = $xmldoc->create_element('align');
- $align->append_child($xmldoc->create_text_node(""));
- $linepart->append_child($align);
- $parameters=array("type" => "radio", "value" => "one-way-video", "id" => "video", "name" => "media_type", "onclick" => "doChangeMedia(\"video\")") ;
- if($action=='update'){
- if($room_info['media_type']=="one-way-video"){
- $parameters['checked']=true;
- }
- }
-
- $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->append_child($panelLine);
-
- // HIDE LINE
-
- $panelLine = $xmldoc->create_element('panelLine');
+ $colspan = $xmldoc->create_element('colspan');
+ $colspan->append_child($xmldoc->create_text_node("0"));
+ $linepart->append_child($colspan);
+
+ $align = $xmldoc->create_element('align');
+ $align->append_child($xmldoc->create_text_node(""));
+ $linepart->append_child($align);
+ $parameters=array("type" => "radio", "value" => "one-way-video", "id" => "video", "name" => "media_type", "onclick" => "doChangeMedia(\"video\")") ;
+ if($action=='update'){
+ if($room_info['media_type']=="one-way-video"){
+ $parameters['checked']=true;
+ }
+ }
+
+ $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->append_child($panelLine);
+
+ // HIDE LINE
+
+ $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);
+ $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);
- $colspan = $xmldoc->create_element('colspan');
- $colspan->append_child($xmldoc->create_text_node("0"));
- $linepart->append_child($colspan);
-
- $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->append_child(liveclassroom_create_linepart_element($xmldoc,$contextDisplay, "input", $parameters) );
- $panelLine->append_child($linepart);
+ $colspan = $xmldoc->create_element('colspan');
+ $colspan->append_child($xmldoc->create_text_node("0"));
+ $linepart->append_child($colspan);
+
+ $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->append_child(liveclassroom_create_linepart_element($xmldoc,$contextDisplay, "input", $parameters) );
+ $panelLine->append_child($linepart);
-
- $panelContentM->append_child($panelLine);
-
-
-
- //FIFTH LINE
- $panelLine = $xmldoc->create_element('panelLine');
- $plid = $xmldoc->create_element('id');
- $plid->append_child($xmldoc->create_text_node(""));
- $panelLine->append_child($plid);
- $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);
+
+ $panelContentM->append_child($panelLine);
+
+
+
+ //FIFTH LINE
+ $panelLine = $xmldoc->create_element('panelLine');
+ $plid = $xmldoc->create_element('id');
+ $plid->append_child($xmldoc->create_text_node(""));
+ $panelLine->append_child($plid);
+ $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);
-
- $colspan = $xmldoc->create_element('colspan');
- $colspan->append_child($xmldoc->create_text_node("0"));
- $linepart->append_child($colspan);
-
- $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->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->append_child($panelLine);
+
+ $colspan = $xmldoc->create_element('colspan');
+ $colspan->append_child($xmldoc->create_text_node("0"));
+ $linepart->append_child($colspan);
+
+ $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->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->append_child($panelLine);
- $panelSettingsM->append_child($panelContentM);
- $panelsSetti...
[truncated message content] |