[Hw4mdl-svn] SF.net SVN: hw4mdl: [160] trunk/moodle
Brought to you by:
jhlinder,
trollinger
|
From: <hu...@us...> - 2007-01-04 09:58:31
|
Revision: 160
http://svn.sourceforge.net/hw4mdl/?rev=160&view=rev
Author: hugues
Date: 2007-01-04 01:55:29 -0800 (Thu, 04 Jan 2007)
Log Message:
-----------
http://u.horizonwimba.com/bugzilla/show_bug.cgi?id=10615
- Updated the display of the Room ID: labrel and ield when guest access os enabled
- Updated a typo in french
Modified Paths:
--------------
trunk/moodle/lang/fr/liveclassroom.php
trunk/moodle/lang/fr_utf8/liveclassroom.php
trunk/moodle/mod/liveclassroom/generateSettings.php
Modified: trunk/moodle/lang/fr/liveclassroom.php
===================================================================
--- trunk/moodle/lang/fr/liveclassroom.php 2007-01-04 07:58:56 UTC (rev 159)
+++ trunk/moodle/lang/fr/liveclassroom.php 2007-01-04 09:55:29 UTC (rev 160)
@@ -133,7 +133,7 @@
$string['Unlimited'] = "Illimité";
$string['Limited: '] = "Limite : ";
$string['Enable guest access'] = "Autoriser l'accès Invité";
-$string['Room Id: '] = "Room Id&bnsp;: ";
+$string['Room Id: '] = "Room Id : ";
Modified: trunk/moodle/lang/fr_utf8/liveclassroom.php
===================================================================
--- trunk/moodle/lang/fr_utf8/liveclassroom.php 2007-01-04 07:58:56 UTC (rev 159)
+++ trunk/moodle/lang/fr_utf8/liveclassroom.php 2007-01-04 09:55:29 UTC (rev 160)
@@ -133,7 +133,7 @@
$string['Unlimited'] = "Illimité";
$string['Limited: '] = "Limite : ";
$string['Enable guest access'] = "Autoriser l'accès Invité";
-$string['Room Id: '] = "Room Id&bnsp;: ";
+$string['Room Id: '] = "Room Id : ";
Modified: trunk/moodle/mod/liveclassroom/generateSettings.php
===================================================================
--- trunk/moodle/mod/liveclassroom/generateSettings.php 2007-01-04 07:58:56 UTC (rev 159)
+++ trunk/moodle/mod/liveclassroom/generateSettings.php 2007-01-04 09:55:29 UTC (rev 160)
@@ -1111,6 +1111,7 @@
$linepart->append_child($align);
$parameters=array("type" => "checkbox", "value" => "1", "id" => "guestAcess_value", "name" => "guests", "onclick" => "hideDiv(\"launcher_link_row\")") ;
if(($action=='update')&&(liveclassroom_api_role_user_room($roomId,'Guest')=='Student')){
+ $guest_access_enabled = true;
$parameters['checked']=true;
}
@@ -1122,12 +1123,11 @@
$panelContent->append_child($panelLine);
- // SIXTH LINE - HIDE
+ // SIXTH LINE - Hide when guest access disabled
$panelLine = $xmldoc->create_element('panelLine');
-
$panelLineStyle = $xmldoc->create_element('style');
- $panelLineStyle->append_child($xmldoc->create_text_node("hide"));
+ $panelLineStyle->append_child($xmldoc->create_text_node($guest_access_enabled?"visible":"hide"));
$panelLine->append_child($panelLineStyle);
$panelLineId = $xmldoc->create_element('id');
$panelLineId->append_child($xmldoc->create_text_node("launcher_link_row"));
@@ -1135,7 +1135,7 @@
$linepart = $xmldoc->create_element('panelLinePart');
$style = $xmldoc->create_element('style');
- $style->append_child($xmldoc->create_text_node(" "));
+ $style->append_child($xmldoc->create_text_node(""));
$linepart->append_child($style);
$colspan = $xmldoc->create_element('colspan');
$colspan->append_child($xmldoc->create_text_node("2"));
@@ -1143,7 +1143,8 @@
$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" => "launcher_link_field", "value" => liveclassroom_get_message("Room Id:")) ));
+ $linepart->append_child(liveclassroom_create_linepart_element($xmldoc,$contextDisplay,"label",
+ $parameters=array("for" => "launcher_link_field", "value" => liveclassroom_get_message("Room Id: ")) ));
$panelLine->append_child($linepart);
$parameters=array("type" => "text", "id" => "link", "name" => "link", "maxlength" => "50") ;
@@ -1178,7 +1179,7 @@
$xmldoc->append_child($root);
- $xmldoc->dump_file("choice.xml", false, true);
+ $xmldoc->dump_file("/Users/hugues/Sites/moodledata/choice.xml", false, true);
$xmlstring = $xmldoc->dump_mem(true); // Xml datas into a string
$finalstring = str_replace("\n", '', $xmlstring);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|