Interface fix: add link to gsearch/ on normal search page
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@198 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
parent
381c575564
commit
f7ccbde310
4 changed files with 17 additions and 0 deletions
|
@ -7,6 +7,11 @@
|
||||||
//require_once('httpauth.inc.php');
|
//require_once('httpauth.inc.php');
|
||||||
require_once('../header.inc.php');
|
require_once('../header.inc.php');
|
||||||
|
|
||||||
|
if($GLOBALS['enableGoogleCustomSearch'] == false) {
|
||||||
|
echo "Google Custom Search disabled. You can enable it into the config.inc.php file.";
|
||||||
|
die;
|
||||||
|
}
|
||||||
|
|
||||||
$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
|
$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
|
||||||
$userservice =& ServiceFactory::getServiceInstance('UserService');
|
$userservice =& ServiceFactory::getServiceInstance('UserService');
|
||||||
|
|
||||||
|
|
|
@ -45,6 +45,7 @@ select:focus,
|
||||||
textarea:focus {
|
textarea:focus {
|
||||||
border-color: #666;
|
border-color: #666;
|
||||||
}
|
}
|
||||||
|
p.tipMsg,
|
||||||
p.error,
|
p.error,
|
||||||
p.success {
|
p.success {
|
||||||
border: 1px solid;
|
border: 1px solid;
|
||||||
|
@ -53,6 +54,11 @@ p.success {
|
||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
width: 70%;
|
width: 70%;
|
||||||
}
|
}
|
||||||
|
p.tipMsg {
|
||||||
|
background: #FFFF99;
|
||||||
|
border-color: #CC9900;
|
||||||
|
color: #CC9900;
|
||||||
|
}
|
||||||
p.error {
|
p.error {
|
||||||
background: #FCC;
|
background: #FCC;
|
||||||
border-color: #966;
|
border-color: #966;
|
||||||
|
|
|
@ -117,6 +117,9 @@ if (POST_TERMS != '') {
|
||||||
// Save search
|
// Save search
|
||||||
$searchhistoryservice->addSearch($terms, $range, $bookmarks['total'], $currentUserId);
|
$searchhistoryservice->addSearch($terms, $range, $bookmarks['total'], $currentUserId);
|
||||||
|
|
||||||
|
if($GLOBALS['enableGoogleCustomSearch']) {
|
||||||
|
$tplVars['tipMsg'] = T_('Unsatisfied? You can also try our ').'<a href="'.createUrl('gsearch/index').'">Google Custom Search page</a>.';
|
||||||
|
}
|
||||||
$tplVars['rsschannels'] = array();
|
$tplVars['rsschannels'] = array();
|
||||||
$tplVars['page'] = $page;
|
$tplVars['page'] = $page;
|
||||||
$tplVars['start'] = $start;
|
$tplVars['start'] = $start;
|
||||||
|
|
|
@ -53,4 +53,7 @@ if (isset($error) && $error!='') {
|
||||||
if (isset($msg) && $msg!='') {
|
if (isset($msg) && $msg!='') {
|
||||||
echo '<p class="success">'. $msg ."</p>\n";
|
echo '<p class="success">'. $msg ."</p>\n";
|
||||||
}
|
}
|
||||||
|
if (isset($tipMsg) && $tipMsg!='') {
|
||||||
|
echo '<p class="tipMsg">'. $tipMsg ."</p>\n";
|
||||||
|
}
|
||||||
?>
|
?>
|
Loading…
Reference in a new issue