[svn r22072] change target="_top" with target="_self" FS#3759

skala
John Hinojosa 17 years ago
parent 19a6a30906
commit 2a6e4ce087
  1. 4
      main/forum/forumfunction.inc.php
  2. 26
      main/inc/banner.inc.php
  3. 6
      main/inc/lib/main_api.lib.php
  4. 6
      main/inc/tool_navigation_menu.inc.php
  5. 4
      user_portal.php

@ -2536,7 +2536,7 @@ function store_edit_post($values) {
*/
function display_user_link($user_id, $name, $origin='') {
if ($user_id<>0) {
return '<a href="../user/userInfo.php?uInfo='.$user_id.'" '. (!empty($origin)? 'target="_top"': '') .'>'.$name.'</a>';
return '<a href="../user/userInfo.php?uInfo='.$user_id.'" '. (!empty($origin)? 'target="_self"': '') .'>'.$name.'</a>';
} else {
return $name.' ('.get_lang('Anonymous').')';
}
@ -2551,7 +2551,7 @@ function display_user_link($user_id, $name, $origin='') {
*/
function display_user_image($user_id,$name, $origin='') {
$link='<a href="../user/userInfo.php?uInfo='.$user_id.'" '. (!empty($origin)? 'target="_top"': '') .'>';
$link='<a href="../user/userInfo.php?uInfo='.$user_id.'" '. (!empty($origin)? 'target="_self"': '') .'>';
$attrb=array();
if ($user_id<>0) {
$image_path = UserManager::get_user_picture_path_by_id($user_id,'web',false, true);

@ -13,13 +13,13 @@
<div id="header1">
<div id="top_corner"></div>
<div id="institution">
<a href="<?php echo api_get_path(WEB_PATH);?>index.php" target="_top"><?php echo api_get_setting('siteName') ?></a>
<a href="<?php echo api_get_path(WEB_PATH);?>index.php" target="_self"><?php echo api_get_setting('siteName') ?></a>
<?php
$iurl = api_get_setting('InstitutionUrl');
$iname = api_get_setting('Institution');
if (!empty($iname))
{
echo '-&nbsp;<a href="'.$iurl.'" target="_top">'.$iname.'</a>';
echo '-&nbsp;<a href="'.$iurl.'" target="_self">'.$iname.'</a>';
}
?>
</div>
@ -32,12 +32,12 @@
if (!empty($_cid) and $_cid != -1 and isset($_course)) {
//Put the name of the course in the header
?>
<div id="my_courses"><a href="<?php echo api_get_path(WEB_COURSE_PATH).$_course['path']; ?>/index.php" target="_top">
<div id="my_courses"><a href="<?php echo api_get_path(WEB_COURSE_PATH).$_course['path']; ?>/index.php" target="_self">
<?php
echo $_course['name']." ";
/*echo '
<div id="my_courses">
<a href="'.api_get_path(WEB_COURSE_PATH).$_course['path'].'/index.php" target="_top">'.$_course['name'].' ';*/
<a href="'.api_get_path(WEB_COURSE_PATH).$_course['path'].'/index.php" target="_self">'.$_course['name'].' ';*/
if (api_get_setting("display_coursecode_in_courselist") == "true") {
echo $_course['official_code'];
}
@ -57,7 +57,7 @@ if (!empty($_cid) and $_cid != -1 and isset($_course)) {
if (!isset ($_user['user_id'])) {
echo " ";
} elseif(!$noPHP_SELF) {
echo "<div id=\"my_courses\"><a href=\"".api_get_self()."?".api_get_cidreq(), "\" target=\"_top\">", $nameTools, "</a></div>", "\n";
echo "<div id=\"my_courses\"><a href=\"".api_get_self()."?".api_get_cidreq(), "\" target=\"_self\">", $nameTools, "</a></div>", "\n";
} else {
echo "<div id=\"my_courses\">$nameTools</div>\n";
}
@ -81,7 +81,7 @@ $web_course_path = api_get_path(WEB_COURSE_PATH);
if (isset($_course['extLink']) && $_course['extLink']['name'] != "") {
echo "<span class=\"extLinkSeparator\"> / </span>";
if ($_course['extLink']['url'] != "") {
echo "<a class=\"extLink\" href=\"".$_course['extLink']['url']."\" target=\"_top\">";
echo "<a class=\"extLink\" href=\"".$_course['extLink']['url']."\" target=\"_self\">";
echo $_course['extLink']['name'];
echo "</a>";
} else {
@ -97,7 +97,7 @@ if (isset($_course['extLink']) && $_course['extLink']['name'] != "") {
<?php
if ((api_get_setting('showonline','world') == "true" AND !$_user['user_id']) OR (api_get_setting('showonline','users') == "true" AND $_user['user_id']) OR (api_get_setting('showonline','course') == "true" AND $_user['user_id'] AND $_cid)) {
if (api_get_setting("use_session_mode") == "true" && isset($_user['user_id']) && api_is_coach()) {
echo ' <li><a href="'.api_get_path(WEB_PATH).'whoisonlinesession.php?id_coach='.$_user['user_id'].'&amp;referer='.urlencode($_SERVER['REQUEST_URI']).'" target="_top">'.get_lang('UsersConnectedToMySessions').'</a></li>';
echo ' <li><a href="'.api_get_path(WEB_PATH).'whoisonlinesession.php?id_coach='.$_user['user_id'].'&amp;referer='.urlencode($_SERVER['REQUEST_URI']).'" target="_self">'.get_lang('UsersConnectedToMySessions').'</a></li>';
}
$statistics_database = Database :: get_statistic_database();
@ -112,13 +112,13 @@ if ((api_get_setting('showonline','world') == "true" AND !$_user['user_id']) OR
echo "<li>";
// Display the who's online of the platform
if ((api_get_setting('showonline','world') == "true" AND !$_user['user_id']) OR (api_get_setting('showonline','users') == "true" AND $_user['user_id'])) {
//echo '<a href="'.api_get_path(WEB_PATH).'whoisonline.php" target="_top">'.$number.'</a>';
echo '<a href="'.api_get_path(WEB_PATH).'whoisonline.php" target="_top">'.get_lang('UsersOnline').': '.$number.'</a>';
//echo '<a href="'.api_get_path(WEB_PATH).'whoisonline.php" target="_self">'.$number.'</a>';
echo '<a href="'.api_get_path(WEB_PATH).'whoisonline.php" target="_self">'.get_lang('UsersOnline').': '.$number.'</a>';
}
// Display the who's online for the course
if (is_array($_course) AND api_get_setting('showonline','course') == "true" AND isset($_course['sysCode'])) {
echo "(<a href='".api_get_path(WEB_PATH)."whoisonline.php?cidReq=".$_course['sysCode']."' target='_top'>$number_online_in_course ".get_lang('InThisCourse')."</a>)";
echo "(<a href='".api_get_path(WEB_PATH)."whoisonline.php?cidReq=".$_course['sysCode']."' target='_self'>$number_online_in_course ".get_lang('InThisCourse')."</a>)";
}
echo '</li>';
}
@ -166,7 +166,7 @@ if ($_user['user_id']) {
<!-- start user section line with name, my course, my profile, scorm info, etc -->
<ul id="logout">
<li><a href="<?php echo api_get_path(WEB_PATH); ?>index.php?logout=logout&uid=<?php echo $_user['user_id']; ?>" target="_top"><span><?php echo get_lang('Logout').' '.$login; ?></span></a></li>
<li><a href="<?php echo api_get_path(WEB_PATH); ?>index.php?logout=logout&uid=<?php echo $_user['user_id']; ?>" target="_self"><span><?php echo get_lang('Logout').' '.$login; ?></span></a></li>
</ul>
<?php
}
@ -247,7 +247,7 @@ foreach($navigation as $section => $navigation_info) {
} else {
$current = '';
}
echo '<li'.$current.'><a href="'.$navigation_info['url'].'" target="_top"><span>'.$navigation_info['title'].'</span></a></li>'."\n";
echo '<li'.$current.'><a href="'.$navigation_info['url'].'" target="_self"><span>'.$navigation_info['title'].'</span></a></li>'."\n";
}
?>
</ul>
@ -303,7 +303,7 @@ if (isset ($nameTools) AND $language_file<>"course_home") {
$final_navigation = array();
foreach($navigation as $index => $navigation_info) {
if(!empty($navigation_info['title'])) {
$final_navigation[$index] = '<a href="'.$navigation_info['url'].'" class="breadcrumb breadcrumb'.$index.'" target="_top">'.$navigation_info['title'].'</a>';
$final_navigation[$index] = '<a href="'.$navigation_info['url'].'" class="breadcrumb breadcrumb'.$index.'" target="_self">'.$navigation_info['title'].'</a>';
}
}
echo implode(' &gt; ',$final_navigation);

@ -1646,15 +1646,15 @@ function api_display_tool_view_option() {
// we have to remove the isStudentView=true from the $sourceurl
$sourceurl = str_replace('&isStudentView=true', '', $sourceurl);
$sourceurl = str_replace('&isStudentView=false', '', $sourceurl);
$output_string .= '<a href="'.$sourceurl.'&isStudentView=false" target="_top">'.get_lang("CourseManagerview").'</a>';
$output_string .= '<a href="'.$sourceurl.'&isStudentView=false" target="_self">'.get_lang("CourseManagerview").'</a>';
} elseif ($_SESSION['studentview']=='teacherview') {
//switching to teacherview
$sourceurl = str_replace('&isStudentView=true', '', $sourceurl);
$sourceurl = str_replace('&isStudentView=false', '', $sourceurl);
$output_string .= '<a href="'.$sourceurl.'&isStudentView=true" target="_top">'.get_lang("StudentView").'</a>';
$output_string .= '<a href="'.$sourceurl.'&isStudentView=true" target="_self">'.get_lang("StudentView").'</a>';
}
} else {
$output_string .= '<a href="'.$sourceurl.'&isStudentView=true" target="_top">'.get_lang("StudentView").'</a>';
$output_string .= '<a href="'.$sourceurl.'&isStudentView=true" target="_self">'.get_lang("StudentView").'</a>';
}
echo $output_string;
}

@ -1,5 +1,5 @@
<?php
// $Id: tool_navigation_menu.inc.php 20959 2009-05-24 19:00:24Z ivantcholakov $
// $Id: tool_navigation_menu.inc.php 22072 2009-07-14 15:14:42Z jhp1411 $
/*
==============================================================================
Dokeos - elearning and course management software
@ -221,7 +221,7 @@ function show_navigation_menu()
}
else
{
echo '<a href="'.$navigation_item['link'].'" target="_top" ';
echo '<a href="'.$navigation_item['link'].'" target="_self" ';
}
if (stristr($url_item['path'],$url_current['path']))
@ -284,7 +284,7 @@ function show_navigation_tool_shortcuts($orientation = SHORTCUTS_HORIZONTAL)
{
echo ' id="here"';
}
echo ' target="_top" title="'.$navigation_item['name'].'">';
echo ' target="_self" title="'.$navigation_item['name'].'">';
echo '<img src="'.api_get_path(WEB_IMG_PATH).$navigation_item['image'].'" alt="'.$navigation_item['name'].'"/>';
echo '</a>';
if($orientation == SHORTCUTS_VERTICAL)

@ -1,4 +1,4 @@
<?php // $Id: user_portal.php 21667 2009-06-30 00:23:23Z iflorespaz $
<?php // $Id: user_portal.php 22072 2009-07-14 15:14:42Z jhp1411 $
/* For licensing terms, see /dokeos_license.txt */
/**
@ -956,7 +956,7 @@ if (!empty($menu_navigation)) {
foreach ($menu_navigation as $section => $navigation_info) {
$current = ($section == $GLOBALS['this_section'] ? ' id="current"' : '');
echo '<li'.$current.'>';
echo '<a href="'.$navigation_info['url'].'" target="_top">'.$navigation_info['title'].'</a>';
echo '<a href="'.$navigation_info['url'].'" target="_self">'.$navigation_info['title'].'</a>';
echo '</li>';
echo "\n";
}

Loading…
Cancel
Save