Commit 423e25a5 authored by Leigh Stoller's avatar Leigh Stoller

Check in search page stuff. I've incorporated the web form from the

webglimpse dir right into search.php3. Its a simple form and I wanted
it to look a little different. It also allows me to get rid of the
FollowSymlinks change I made a couple of days ago. I've added a
install section that creates a symlink to the webglimpse dir, but
thats strictly for convenience. The install target cds into that
directory and reruns the glimpse index (its very quick cause we do not
have much documentation, perhaps a second. Overall, I do not like the
webglimpse stuff, but it will do for now.
parent 26e51d71
Options Includes FollowSymLinks
Options Includes
ErrorDocument 404 /error.shtml
ErrorDocument 403 /error.shtml
......
......@@ -61,13 +61,18 @@ install: $(addprefix $(INSTALL_WWWDIR)/, $(ALLFILES)) \
$(addprefix $(INSTALL_WWWDIR)/doc/, $(ALLDOCS)) \
$(addprefix $(INSTALL_WWWDIR)/autostatus-icons/, $(ALLICONS))
cd $(INSTALL_WWWDIR) && \
rm -f webglimpse \
ln -s ../webglimpse webglimpse \
if test -d ../webglimpse; \
then \
rm -f webglimpse; \
ln -s ../webglimpse webglimpse; \
(cd webglimpse && wgreindex -q); \
fi; \
rm -f tbdb.html; \
ln -s index.html tbdb.html; \
rm -f icons; \
ln -s /usr/local/www/icons icons;
$(INSTALL_WWWDIR)/%: %
@echo "Installing $<"
-mkdir -p $(patsubst %/,%,$(dir $@))
......
......@@ -63,6 +63,7 @@ function WRITESIDEBAR() {
"docwrapper.php3?docname=news.html");
WRITESIDEBARBUTTON("Publications", $TBDOCBASE, "pubs.php3");
WRITESIDEBARBUTTON("Documentation", $TBDOCBASE, "doc.php3");
WRITESIDEBARBUTTON("Search Documentation", $TBDOCBASE, "search.php3");
WRITESIDEBARBUTTON("FAQ", $TBDOCBASE, "faq.php3");
WRITESIDEBARBUTTON("Tutorial", $TBDOCBASE, "tutorial/tutorial.php3");
WRITESIDEBARBUTTON("People", $TBDOCBASE, "people.php3");
......
<?php
require("defs.php3");
#
# Standard Testbed Header
#
PAGEHEADER("Search Emulab Documentation");
?>
<center>
<table border=5>
<FORM method=get ACTION="/cgi-bin/webglimpse/usr/testbed/webglimpse">
<tr><td align=center colspan=2 valign=middle>
<font size=+3>
<a href="http://glimpse.cs.arizona.edu/webglimpse">WebGlimpse</a>
Search<br></font>
</td>
</tr>
<tr>
<td colspan=2>
String to search for: <INPUT NAME=query size=30>
<INPUT TYPE=submit VALUE=Submit>
<br>
<INPUT NAME=case TYPE=checkbox>Case&nbsp;sensitive
<!-- SPACES -->&nbsp;&nbsp;&nbsp;
<INPUT NAME=whole TYPE=checkbox>Partial&nbsp;match
<!-- SPACES -->&nbsp;&nbsp;&nbsp;
<INPUT NAME=lines TYPE=checkbox>Jump&nbsp;to&nbsp;line
<!-- SPACES -->&nbsp;&nbsp;&nbsp;
<SELECT NAME=errors align=right>
<OPTION>0
<OPTION>1
<OPTION>2
</SELECT>
misspellings&nbsp;allowed
<br>
Return only files modified within the last <INPUT NAME=age size=5>
days.
<br>
Maximum number of files returned:
<SELECT NAME=maxfiles>
<OPTION>10
<OPTION selected>50
<OPTION>100
<OPTION>1000
</SELECT>
<br>
Maximum number of matches per file returned:
<SELECT NAME=maxlines>
<OPTION>10
<OPTION selected>30
<OPTION>50
<OPTION>500
</SELECT>
<br>
Maximum number of characters output per file:
<INPUT NAME="maxchars" VALUE=10000>
</td>
</tr>
<tr>
<td colspan=2>
<center>
<font size=-1>
<a href="http://glimpse.cs.arizona.edu">Glimpse</a> and
<a href="http://glimpse.cs.arizona.edu/webglimpse">WebGlimpse</a>,
Copyright &copy; 1996, University of Arizona
</font>
</center>
</td>
</tr>
</form>
</table>
<?php
#
# Standard Testbed Footer
#
PAGEFOOTER();
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment