Pārlūkot izejas kodu

[svn r15332] hide by default the audiorecorder FS#2573

Eric Marguin 17 gadi atpakaļ
vecāks
revīzija
952ff78184

+ 8 - 1
main/css/academica/default.css

@@ -1598,4 +1598,11 @@ div.system_announcement {
 	color : #4171b5;
 }
 /* Quizzes tool */
-.quiz_export_link { float: right; }
+.quiz_export_link { float: right; }
+
+/*
+------------------------------------------------------------------------------
+    Learning path
+------------------------------------------------------------------------------
+*/
+#show_audiorecorder_div{background:#F0F0F0; border:1px solid #999999; font-weight:bold; padding:2px; width:350px;}

+ 8 - 1
main/css/baby_orange/default.css

@@ -1516,4 +1516,11 @@ div.system_announcement {
 	color : #317100;  
 }
 /* Quizzes tool */
-.quiz_export_link { float: right; }
+.quiz_export_link { float: right; }
+
+/*
+------------------------------------------------------------------------------
+    Learning path
+------------------------------------------------------------------------------
+*/
+#show_audiorecorder_div{background:#F0F0F0; border:1px solid #999999; font-weight:bold; padding:2px; width:350px;}

+ 8 - 1
main/css/corporate/default.css

@@ -1504,4 +1504,11 @@ padding-top: 0px;	padding-right: 0px;	padding-bottom: 0px;	padding-left: 0px;}
 	color : #333;   
 }
 /* Quizzes tool */
-.quiz_export_link { float: right; }
+.quiz_export_link { float: right; }
+
+/*
+------------------------------------------------------------------------------
+    Learning path
+------------------------------------------------------------------------------
+*/
+#show_audiorecorder_div{background:#F0F0F0; border:1px solid #999999; font-weight:bold; padding:2px; width:350px;}

+ 8 - 1
main/css/dokeos_classic/default.css

@@ -1583,4 +1583,11 @@ padding-top: 0px;	padding-right: 0px;	padding-bottom: 0px;	padding-left: 0px;}
 	color : #4171b5;  
 }
 /* Quizzes tool */
-.quiz_export_link { float: right; }
+.quiz_export_link { float: right; }
+
+/*
+------------------------------------------------------------------------------
+    Learning path
+------------------------------------------------------------------------------
+*/
+#show_audiorecorder_div{background:#F0F0F0; border:1px solid #999999; font-weight:bold; padding:2px; width:350px;}

+ 8 - 1
main/css/dokeos_classic_2D/default.css

@@ -2170,4 +2170,11 @@ input.forms	{
 	color : #4171b5;  
 }
 /* Quizzes tool */
-.quiz_export_link { float: right; }
+.quiz_export_link { float: right; }
+
+/*
+------------------------------------------------------------------------------
+    Learning path
+------------------------------------------------------------------------------
+*/
+#show_audiorecorder_div{background:#F0F0F0; border:1px solid #999999; font-weight:bold; padding:2px; width:350px;}

+ 7 - 0
main/css/medical/default.css

@@ -1561,3 +1561,10 @@ padding-top: 0px;	padding-right: 0px;	padding-bottom: 0px;	padding-left: 0px;}
 	display:none;
 }
 */
+
+/*
+------------------------------------------------------------------------------
+    Learning path
+------------------------------------------------------------------------------
+*/
+#show_audiorecorder_div{background:#F0F0F0; border:1px solid #999999; font-weight:bold; padding:2px; width:350px;}

+ 7 - 0
main/css/public_admin/default.css

@@ -1553,3 +1553,10 @@ padding-top: 0px;	padding-right: 0px;	padding-bottom: 0px;	padding-left: 0px;}
 	display:none;
 }
 */
+
+/*
+------------------------------------------------------------------------------
+    Learning path
+------------------------------------------------------------------------------
+*/
+#show_audiorecorder_div{background:#F0F0F0; border:1px solid #999999; font-weight:bold; padding:2px; width:350px;}

+ 8 - 1
main/css/silver_line/default.css

@@ -1476,4 +1476,11 @@ div.system_announcement {
 	color : #900;  
 }
 /* Quizzes tool */
-.quiz_export_link { float: right; }
+.quiz_export_link { float: right; }
+
+/*
+------------------------------------------------------------------------------
+    Learning path
+------------------------------------------------------------------------------
+*/
+#show_audiorecorder_div{background:#F0F0F0; border:1px solid #999999; font-weight:bold; padding:2px; width:350px;}

+ 21 - 7
main/newscorm/audiorecorder.inc.php

@@ -58,12 +58,26 @@ else
 }
 
 if(!empty($path_to_lzx)){
-	printf("<object type=\"application/x-shockwave-flash\" data=\"%s\" 
-			width='$width' height='$height'>
-	         <param name=\"movie\" value=\"%s\">
-		 <param name=\"quality\" value=\"high\">
-		 <param name=\"scale\" value=\"noscale\">
-		 <param name=\"salign\" value=\"LT\">
-		 <param name=\"menu\" value=\"false\"></object>",$path_to_lzx,$path_to_lzx);
+	$recorder_content = sprintf("<object type=\"application/x-shockwave-flash\" data=\"%s\" ".
+			"width='$width' height='$height'>".
+	         "<param name=\"movie\" value=\"%s\">".
+		 "<param name=\"quality\" value=\"high\">".
+		 "<param name=\"scale\" value=\"noscale\">".
+		 "<param name=\"salign\" value=\"LT\">".
+		 "<param name=\"menu\" value=\"false\"></object>",$path_to_lzx,$path_to_lzx);
+	
+	echo '<script type="text/javascript">
+
+	function show_audiorecorder()
+	{
+		document.getElementById("audiorecorder_frame").innerHTML = "'.addslashes($recorder_content).'";
+		document.getElementById("show_audiorecorder_div").style.display="none";
+	}
+
+	</script>
+	';
+	
+	echo '<div id="show_audiorecorder_div"><a style="cursor:pointer" onclick="show_audiorecorder()">'.get_lang('ShowAudioRecorder').'</a></div>';
+	echo '<div id="audiorecorder_frame"></div>';
 }
 ?>

+ 1 - 1
main/newscorm/lp_view.php

@@ -159,7 +159,7 @@ if($_SESSION['oLP']->mode == 'fullscreen')
 else
 {	
 	include_once('../inc/reduced_header.inc.php');
-	$displayAudioRecorder = (api_get_setting('service_ppt2lp','active')=='true' && api_get_setting('service_ppt2lp','path_to_lzx')!='') ? true : false;
+	$displayAudioRecorder = (api_get_setting('service_visio','active')=='true') ? true : false;
 	//check if audio recorder needs to be in studentview
 	$course_id=$_SESSION["_course"]["id"];
 	if($_SESSION["status"][$course_id]==5)