summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0a5fd14)
raw | patch | inline | side by side (parent: 0a5fd14)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Jun 2005 09:15:07 +0000 (09:15 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Jun 2005 09:15:07 +0000 (09:15 +0000) |
include/functions_helpviewer.inc | patch | blob | history |
index 3738f8f0dd444bc72c64c8bc924118590efd4c9d..9c122f8b1af5b589193aaf93e9aa8dc4e7a425ce 100644 (file)
$percentage = (int)(($res['hits']['overall'] / $max) * 100) ;
$color = dechex($percentage+150);
$color2 = dechex(150 - $percentage);
+
+ $entry['content'] = preg_replace("\"".$entry['headline']."\"","",$entry['content'],1);
+
if(strlen($color)==1) $color = "0".$color;
+
+
/* the object tag is needed for W3c */
$str = "<a href=\"?pg=".$name."&mark=1\" title=\"".$percentage."% ".$entry['headline']."\">
<object>
<td height=15>
<b>".$entry['headline']."</b> -".htmlentities( substr(strip_tags($entry['content']),0,120))."...
</td>
- <td width=110 valign=\"top\">
- <div style=\"width:100px;background-color:#BBBBBB;\">
- <div style=\"width:".$percentage."px; height:8px; background-color:#".$color2.$color2.$color."; \">
+ <td width=50 valign=\"top\">
+ <div style=\"width:50px;background-color:#DDDDDD;\">
+ <div style=\"width:".((int)($percentage/2))."px; height:8px; background-color:#".$color2.$color2.$color."; \">
</div>
</div>
</td>