Exemplo n.º 1
0
add_to_log($course->id, 'hiperbook', 'view', 'popup.php?id='.$cm->id.'&target_navigation_chapter='.$navchapter->id, $book->id, $cm->id);		

	///read standard strings
	$strbooks = get_string('modulenameplural', 'hiperbook');
	$strbook  = get_string('modulename', 'hiperbook');
	$strTOC = get_string('TOC', 'hiperbook');
	
	/// prepare header (not the hiperbook navigation)
	if ($course->category) {
		$navigation = '<a href="../../course/view.php?id='.$course->id.'">'.$course->shortname.'</a> ->';
	} else {
		$navigation = '';
	}
	
	$buttons = $isteacher ? '<table cellspacing="0" cellpadding="0"><tr><td>'.update_module_button($cm->id, $course->id, $strbook).'</td>'.
			   '<td>&nbsp;</td><td>'.hiperbook_edit_button($cm->id, $course->id, $chapterid,$navigationnum).'</td></tr></table>'
			   : '&nbsp;';
	
	
	print_header();				
			?>
<!-- popups inspired by DOM popup kit 

http://www.methods.co.nz/popup/popup.html

 -->
					
   <script src="prototype.js" type="text/javascript"></script>
  <script src="effects.js" type="text/javascript"></script>
  <script src="dragdrop.js" type="text/javascript"></script>
  <script src="popup.js" type="text/javascript"></script>
Exemplo n.º 2
0
	add_to_log($course->id, 'hiperbook', 'view', 'view.php?id='.$cm->id.'&target_navigation_chapter='.$navchapter->id, $book->id, $cm->id);
		
	///read standard strings
	$strbooks = get_string('modulenameplural', 'hiperbook');
	$strbook  = get_string('modulename', 'hiperbook');
	$strTOC = get_string('TOC', 'hiperbook');
	
	/// prepare header (not the hiperbook navigation)
	if ($course->category) {
		$navigation = '<a href="../../course/view.php?id='.$course->id.'">'.$course->shortname.'</a> ->';
	} else {
		$navigation = '';
	}
	
	$buttons = $isteacher ? '<table cellspacing="0" cellpadding="0"><tr><td>'.update_module_button($cm->id, $course->id, $strbook).'</td>'.
			   '<td>&nbsp;</td><td>'.hiperbook_edit_button($cm->id, $course->id, $navchapter->chapterid,$navigationnum, $pagenum,  $target_navigation_chapter).'</td></tr></table>'
			   : '&nbsp;';
	
	print_header( "$course->shortname: $book->name",
				  $course->fullname,
				  "$navigation <a href=\"index.php?id=$course->id\">$strbooks</a> -> $book->name",
				  '',
				  '',
				  true,
				  $buttons,
				  null
				);	
				
			?>
<!-- popups inspired by DOM popup kit