Browse Source

The hyperlink to the online-help file is now configurable

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1018 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 14 years ago
parent
commit
dc3bea7e83
2 changed files with 10 additions and 1 deletions
  1. 2 1
      application/itopwebpage.class.inc.php
  2. 8 0
      core/config.class.inc.php

+ 2 - 1
application/itopwebpage.class.inc.php

@@ -673,6 +673,7 @@ EOF
 			$sApplicationBanner = '';
 		}
 
+		$sOnlineHelpUrl = MetaModel::GetConfig()->Get('online_help');
 		//$sLogOffMenu = "<span id=\"logOffBtn\" style=\"height:55px;padding:0;margin:0;\"><img src=\"../images/onOffBtn.png\"></span>";
 
 		echo '<div id="left-pane" class="ui-layout-west">';
@@ -702,7 +703,7 @@ EOF
 		echo $sApplicationBanner;
 		echo '		<div id="global-search"><form action="../pages/UI.php"><table><tr><td></td><td id="g-search-input"><input type="text" name="text" value="'.$sText.'"'.$sOnClick.'/></td>';
 		echo '<td><input type="image" src="../images/searchBtn.png"/></a></td>';
-		echo '<td><a style="background:transparent;" href="http://www.combodo.com/itop-help" target="_blank"><img style="border:0;padding-left:20px;padding-right:10px;" title="'.Dict::S('UI:Help').'" src="../images/help.png"/></td>';
+		echo '<td><a style="background:transparent;" href="'.$sOnlineHelpUrl.'" target="_blank"><img style="border:0;padding-left:20px;padding-right:10px;" title="'.Dict::S('UI:Help').'" src="../images/help.png"/></td>';
 		echo '<td style="padding-right:20px;padding-left:10px;">'.$sLogOffMenu.'</td><td><input type="hidden" name="operation" value="full_text"/></td></tr></table></form></div>';
 		//echo '<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="hidden" name="operation" value="full_text"/></td></tr></table></form></div>';
 		echo '	</div>';

+ 8 - 0
core/config.class.inc.php

@@ -197,6 +197,14 @@ class Config
 			'source_of_value' => '',
 			'show_in_conf_sample' => true,
 		),
+		'online_help' => array(
+			'type' => 'string',
+			'description' => 'Hyperlink to the online-help web page',
+			'default' => 'http://www.combodo.com/itop-help',
+			'value' => '',
+			'source_of_value' => '',
+			'show_in_conf_sample' => true,
+		),
 	);
 
 	public function IsProperty($sPropCode)