Added Onlinesearch Icon into main view, at each online searchable field.

This commit is contained in:
Andre Lorbach 2010-02-18 17:04:53 +01:00
parent b6d2256ec0
commit 74c6331ac9
2 changed files with 10 additions and 0 deletions

View File

@ -966,6 +966,10 @@ function AddOnClickMenu(&$fieldGridItem, $fieldType, $FieldID)
'DisplayName' => $content['LN_VIEW_SEARCHFOR'] . " " . $szFieldDisplayName . " '" . $fieldGridItem['fieldvalue'] . "'", 'DisplayName' => $content['LN_VIEW_SEARCHFOR'] . " " . $szFieldDisplayName . " '" . $fieldGridItem['fieldvalue'] . "'",
'IconSource' => $content['MENU_NETWORK'] 'IconSource' => $content['MENU_NETWORK']
); );
// Enable SearchOnline Icon
$fieldGridItem['searchonline'] = true;
$fieldGridItem['SearchOnlineUrl'] = 'http://kb.monitorware.com/kbsearch.php?sa=Search&origin=phplogcon&oid=' . $FieldID . '&q=' . $szEncodedFieldValue;
} }
// Search for links within the fieldcontent! // Search for links within the fieldcontent!

View File

@ -288,6 +288,11 @@
</li> </li>
</ul> </ul>
</div> </div>
<!-- IF searchonline="true" -->
<a href="{SearchOnlineUrl}" target="_blank"><img align="left" src="{MENU_EARTH_FIND}" width="16" height="16" vspace="2"></a>
<!-- ENDIF searchonline="true" -->
<!-- ENDIF hasbuttons="true" --> <!-- ENDIF hasbuttons="true" -->
<!-- IF ismessagefield="true" --> <!-- IF ismessagefield="true" -->
@ -308,6 +313,7 @@
<!-- IF ismessagefield="true" --> <!-- IF ismessagefield="true" -->
<a href="{detaillink}{additional_url_sourceonly}{additional_url}" class="syslogdetails" target="_top">{fieldvalue}</a> <a href="{detaillink}{additional_url_sourceonly}{additional_url}" class="syslogdetails" target="_top">{fieldvalue}</a>
<!-- ENDIF ismessagefield="true" --> <!-- ENDIF ismessagefield="true" -->
<!-- ENDIF hasdetails="false" --> <!-- ENDIF hasdetails="false" -->
<!-- IF hasdetails="true" --> <!-- IF hasdetails="true" -->