Die Template-Dateien
ht://Dig verwendet mehrere Template-Dateien für die Ausgabe des Suchergebnisses.
Wenn eine Suche erfolgreich war wird die Ergebnisseite aus zwei HTML-Templates im
Common-Verzeichnis von ht://Dig erstellt, und zwar aus header.html und footer.html.
Quelltext für header.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Search results for '$&(WORDS)'</title>
</head>
<body bgcolor="#eef7ff">
<h2><img src="/htdig/htdig.gif" alt="ht://Dig">
Search results for '$&(LOGICAL_WORDS)'</h2>
<hr noshade size="4">
<form method="get" action="$(CGI)">
<font size="-1">
<input type="hidden" name="config" value="$&(CONFIG)">
<input type="hidden" name="restrict" value="$&(RESTRICT)">
<input type="hidden" name="exclude" value="$&(EXCLUDE)">
Match: $(METHOD)
Format: $(FORMAT)
Sort by: $(SORT)
<br>
Refine search:
<input type="text" size="30" name="words" value="$&(WORDS)">
<input type="submit" value="Search">
</font>
</form>
<hr noshade size="1">
<strong>Documents $(FIRSTDISPLAYED) - $(LASTDISPLAYED) of $(MATCHES) matches.
More <img src="/htdig/star.gif" alt="*">'s indicate a better match.
</strong>
<hr noshade size="1">
|
nach oben
Danach werden die Suchergebnisse angezeigt, wie es in der Konfigurationsdatei von ht://Dig festgelegt wurde.
Zum Schluss wird die Datei footer.html eingebunden.
Quelltext für footer.html
$(PAGEHEADER)
$(PREVPAGE) $(PAGELIST) $(NEXTPAGE)
<hr noshade size="4">
<a href="http://www.htdig.org/">
<img src="/htdig/htdig.gif" border="0" alt="ht://Dig">ht://Dig $(VERSION)</a>
</body>
</html>
|
nach oben
Falls kein Ergebnis bei einer Suche vorliegt wird die Datei nomatch.html als Template verwendet.
Quelltext für nomatch.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>No match for '$&(LOGICAL_WORDS)'</title>
</head>
<body bgcolor="#eef7ff">
<h1><img src="/htdig/htdig.gif" alt="ht://Dig">
Search results</h1>
<hr noshade size="4">
<h2>No matches were found for '$&(LOGICAL_WORDS)'</h2>
<p>
Check the spelling of the search word(s) you used.
If the spelling is correct and you only used one word,
try using one or more similar search words with "<strong>Any</strong>."
</p>
<p>
If the spelling is correct and you used more than one
word with "<strong>Any</strong>," try using one or more similar search
words with "<strong>Any</strong>."</p>
<p>
If the spelling is correct and you used more than one
word with "<strong>All</strong>," try using one or more of the same words
with "<strong>Any</strong>."</p>
<hr noshade size="4">
<form method="get" action="$(CGI)">
<font size="-1">
<input type="hidden" name="config" value="$&(CONFIG)">
<input type="hidden" name="restrict" value="$&(RESTRICT)">
<input type="hidden" name="exclude" value="$&(EXCLUDE)">
Match: $(METHOD)
Format: $(FORMAT)
Sort by: $(SORT)
<br>
Refine search:
<input type="text" size="30" name="words" value="$&(WORDS)">
<input type="submit" value="Search">
</font>
</form>
<hr noshade size="4">
<a href="http://www.htdig.org/">
<img src="/htdig/htdig.gif" border="0" alt="ht://Dig">ht://Dig $(VERSION)</a>
</body>
</html>
|
nach oben
|