فهرست منبع

[svn r10247] add display in LP edit menu
Remove links and students publications in the LP Creation

Eric Marguin 18 سال پیش
والد
کامیت
533359a017

+ 1 - 1
main/newscorm/kevin_lp_add.php

@@ -150,7 +150,7 @@ echo '<table cellpadding="0" cellspacing="0" class="lp_build">';
 			
 		echo '<td class="tree">';
 		
-			echo '<p style="border-bottom:1px solid #999999; margin:0; padding:2px;"><strong style="color:#999999">Basic overview</strong></p>';
+			echo '<p style="border-bottom:1px solid #999999; margin:0; padding:2px;"><strong style="color:#999999">'.get_lang("BasicOverview").'</strong>&nbsp;<strong style="color:#999999">'.get_lang("Display").'</strong></p>';
 			
 			//links for adding a module, chapter or step
 			echo '<div class="lp_actions">';

+ 1 - 14
main/newscorm/kevin_lp_add_item.php

@@ -180,7 +180,7 @@ echo '<table cellpadding="0" cellspacing="0" class="lp_build">';
 			
 		echo '<td class="tree">';
 		
-			echo '<p style="border-bottom:1px solid #999999; margin:0; padding:2px;"><a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=admin_view&amp;lp_id=' . $_SESSION['oLP']->lp_id . '">Basic overview</a></p>';
+			echo '<p style="border-bottom:1px solid #999999; margin:0; padding:2px;"><a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=admin_view&amp;lp_id=' . $_SESSION['oLP']->lp_id . '">'.get_lang("BasicOverview").'</a>&nbsp;<a href="lp_controller.php?cidReq='.$_GET['cidReq'].'&action=view&lp_id='.$_SESSION['oLP']->lp_id.'">'.get_lang("Display").'</a></p>';
 			
 			//links for adding a module, chapter or step
 			echo '<div class="lp_actions">';
@@ -273,20 +273,7 @@ echo '<table cellpadding="0" cellspacing="0" class="lp_build">';
 						
 						break;
 					
-					case TOOL_DOCUMENT:
 					
-						//if(isset($_GET['file']) && (is_numeric($_GET['file'])) || $_GET['file'] == 'new')
-						//{
-							$msg = '<div class="lp_message" style="margin-bottom:10px;">';
-							
-								$msg .= 'The new document has been created.';
-							
-							$msg .= '</div>';
-							
-							echo $_SESSION['oLP']->display_item($new_item_id, true, $msg);
-						//}
-						
-						break;
 				}
 			}
 			else

+ 1 - 1
main/newscorm/kevin_lp_edit_item.php

@@ -179,7 +179,7 @@ echo '<table cellpadding="0" cellspacing="0" class="lp_build">';
 			
 		echo '<td class="tree">';
 		
-			echo '<p style="border-bottom:1px solid #999999; margin:0; padding:2px;"><a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=admin_view&amp;lp_id=' . $_SESSION['oLP']->lp_id . '">Basic overview</a></p>';
+			echo '<p style="border-bottom:1px solid #999999; margin:0; padding:2px;"><a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=admin_view&amp;lp_id=' . $_SESSION['oLP']->lp_id . '">'.get_lang("BasicOverview").'</a>&nbsp;<a href="lp_controller.php?cidReq='.$_GET['cidReq'].'&action=view&lp_id='.$_SESSION['oLP']->lp_id.'">'.get_lang("Display").'</a></p>';
 			
 			//links for adding a module, chapter or step
 			echo '<div class="lp_actions">';

+ 1 - 1
main/newscorm/kevin_lp_edit_item_prereq.php

@@ -177,7 +177,7 @@ echo '<table cellpadding="0" cellspacing="0" class="lp_build">';
 			
 		echo '<td class="tree">';
 		
-			echo '<p style="border-bottom:1px solid #999999; margin:0; padding:2px;"><a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=admin_view&amp;lp_id=' . $_SESSION['oLP']->lp_id . '">Basic overview</a></p>';
+			echo '<p style="border-bottom:1px solid #999999; margin:0; padding:2px;"><a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=admin_view&amp;lp_id=' . $_SESSION['oLP']->lp_id . '">'.get_lang("BasicOverview").'</a>&nbsp;<a href="lp_controller.php?cidReq='.$_GET['cidReq'].'&action=view&lp_id='.$_SESSION['oLP']->lp_id.'">'.get_lang("Display").'</a></p>';
 			
 			//links for adding a module, chapter or step
 			echo '<div class="lp_actions">';

+ 1 - 1
main/newscorm/kevin_lp_move_item.php

@@ -180,7 +180,7 @@ echo '<table cellpadding="0" cellspacing="0" class="lp_build">';
 			
 		echo '<td class="tree">';
 		
-			echo '<p style="border-bottom:1px solid #999999; margin:0; padding:2px;"><a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=admin_view&amp;lp_id=' . $_SESSION['oLP']->lp_id . '">Basic overview</a></p>';
+			echo '<p style="border-bottom:1px solid #999999; margin:0; padding:2px;"><a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=admin_view&amp;lp_id=' . $_SESSION['oLP']->lp_id . '">'.get_lang("BasicOverview").'</a>&nbsp;<a href="lp_controller.php?cidReq='.$_GET['cidReq'].'&action=view&lp_id='.$_SESSION['oLP']->lp_id.'">'.get_lang("Display").'</a></p>';
 			
 			//links for adding a module, chapter or step
 			echo '<div class="lp_actions">';

+ 1 - 1
main/newscorm/kevin_lp_view_item.php

@@ -181,7 +181,7 @@ echo '<table cellpadding="0" cellspacing="0" class="lp_build">';
 			
 		echo '<td class="tree">';
 		
-			echo '<p style="border-bottom:1px solid #999999; margin:0; padding:2px;"><a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=admin_view&amp;lp_id=' . $_SESSION['oLP']->lp_id . '">Basic overview</a></p>';
+			echo '<p style="border-bottom:1px solid #999999; margin:0; padding:2px;"><a href="' . $_SERVER['PHP_SELF'] . '?cidReq=' . $_GET['cidReq'] . '&amp;action=admin_view&amp;lp_id=' . $_SESSION['oLP']->lp_id . '">'.get_lang("BasicOverview").'</a>&nbsp;<a href="lp_controller.php?cidReq='.$_GET['cidReq'].'&action=view&lp_id='.$_SESSION['oLP']->lp_id.'">'.get_lang("Display").'</a></p>';
 			
 			//links for adding a module, chapter or step
 			echo '<div class="lp_actions">';

+ 4 - 4
main/newscorm/learnpath.class.php

@@ -4709,10 +4709,10 @@ class learnpath {
 			$return .= $this->get_exercises();
 				
 			/* get al links */
-			$return .= $this->get_links();
+			//$return .= $this->get_links();
 				
 		/* get al the student publications */
-			$return .= $this->get_student_publications();
+			//$return .= $this->get_student_publications();
 		
 		$return .= '</div>' . "\n";
 		
@@ -6365,8 +6365,8 @@ class learnpath {
 			ORDER BY title ASC";
 		$res_quiz = api_sql_query($sql_quiz, __FILE__, __LINE__);
 		
-		$return .= '<div class="lp_resource_header"' . " onclick=\"if(document.getElementById('resExercise').style.display == 'block') {document.getElementById('resExercise').style.display = 'none';} else {document.getElementById('resExercise').style.display = 'block';}\"" . ' style="cursor:pointer;"><img align="left" alt="" src="img/lp_' . TOOL_QUIZ . '.png" style="margin-right:5px;" title="" />Exercises</div>';
-		$return .= '<div class="lp_resource_elements" id="resExercise">';
+		$return .= '<div class="lp_resource_header_end"' . " onclick=\"if(document.getElementById('resExercise').style.display == 'block') {document.getElementById('resExercise').style.display = 'none';} else {document.getElementById('resExercise').style.display = 'block';}\"" . ' style="cursor:pointer;"><img align="left" alt="" src="img/lp_' . TOOL_QUIZ . '.png" style="margin-right:5px;" title="" />Exercises</div>';
+		$return .= '<div class="lp_resource_elements_end" id="resExercise">';
 		
 			while($row_quiz = Database::fetch_array($res_quiz))
 			{

+ 4 - 2
main/newscorm/learnpath.css

@@ -16,8 +16,10 @@ div.lp_manipulate a{padding-right:10px;}
 div.lp_message{background:#FEC880; border:1px solid #E28C15; font-size:12px; padding:10px;}
 
 
-div.lp_resource_header{background:#F0F0F0; border:1px solid #999999; border-bottom:0; font-weight:bold; padding:10px; width:300px;}
-div.lp_resource_elements{background:#FAFAFA; border:1px solid #999999; border-bottom:0; display:none; padding:5px 10px; width:300px;}
+div.lp_resource_header{background:#F0F0F0; border:1px solid #999999; border-bottom:0; font-weight:bold; padding:10px; width:300px;}
+div.lp_resource_header_end{background:#F0F0F0; border:1px solid #999999; font-weight:bold; padding:10px; width:300px;}
+div.lp_resource_elements{background:#FAFAFA; border:1px solid #999999; border-bottom:0; display:none; padding:5px 10px; width:300px;}
+div.lp_resource_elements_end{background:#FAFAFA; border:1px solid #999999; border-top: 0px; display:none; padding:5px 10px; width:300px;}
 div.lp_resource_elements div{padding:5px;}
 
 div.lp_tree{min-height:300px; padding:3px 10px 3px 0; overflow:auto; width:187px;}

+ 2 - 0
main/newscorm/lp_stats.php

@@ -174,6 +174,7 @@ foreach($list as $my_item_id){
 		$extend_link = '<a href="lp_controller.php?action=stats&fold_id='.$my_item_id.'"><img src="../img/visible.gif" alt="fold_view" border="0"></a>'."\n";
 		
 		$title=$row['mytitle'];
+		$title=stripslashes($title);
 		if(empty($title)){
 			$title = rl_get_resource_name(api_get_course_id(),$lp_id,$row['myid']);
 		}
@@ -294,6 +295,7 @@ foreach($list as $my_item_id){
 		$time=learnpathItem::get_scorm_time('php',$subtotal_time);
 		$scoIdentifier=$row['myid'];
 		$title=$row['mytitle'];
+		$title=stripslashes($title);
 		if($score==0){
 			$maxscore = 0;
 		}else{