<?
	#---------------------------------------------------------------------#
	# This source code is (c)2000 Dave Belfer-Shevett - shevett@pobox.com #
	# see http://www.stonekeep.com/license.html for licensing information #
	#---------------------------------------------------------------------#

	#----------------------------------------------------------------------
	# $Id: index.php3,v 1.21 2000/12/20 19:09:20 nclemons Exp $
	#----------------------------------------------------------------------
	
	setcookie("keycookie","",time()-86400,"/");

	$page_title = "KeyStone Login";

	include "./conf/keystone.conf.default";
	if (file_exists("./conf/keystone.conf")) {
		include "./conf/keystone.conf";
	}

	include "./conf/colors.conf.default";
	if (file_exists("./conf/colors.conf")) {
		include "./conf/colors.conf";
	}

	include "./header.php3";
?>

<center>
<table width=75%>
<tr><td bgcolor=#888888>
<table width=100% cellspacing=5>
	<tr valign=center>
		<td colspan=9><table width=100% border=1><tr>
		<td width=10% bgcolor=#707070 align=center>
			<font color=#FFFFFF>
			<h2>K
		</td>
		<td width=10% bgcolor=#606060 align=center>
			<font color=#FFFFFF>
			<h2>E
		</td>					
		<td width=10% bgcolor=#707070 align=center>
			<font color=#FFFFFF>
			<h2>Y
		</td>					
		<td width=10% bgcolor=#808080 align=center>
			<font color=#FFFFFF>
			<h2>S
		</td>					
		<td width=10% bgcolor=#707070 align=center>
			<font color=#FFFFFF>
			<h2>T
		</td>					
		<td width=10% bgcolor=#606060 align=center>
			<font color=#FFFFFF>
			<h2>O
		</td>					
		<td width=10% bgcolor=#707070 align=center>
			<font color=#FFFFFF>
			<h2>N
		</td>					
		<td width=10% bgcolor=#808080 align=center>
			<font color=#FFFFFF>
			<h2>E
		</td>
		</tr></td></table></td>
	</tr>
	<tr><td>&nbsp</td></tr>
	<tr>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td bgcolor=#BBBBBB align=center>
			<i>To log in to Keystone</i><p>
			<form method=post action="nbrowse.php3">
			Username: <input type=text size=15 name=login><br>
			Password: <input type=password size=15 name=password><p>
			<input type=submit value="Log In">
			</form>
		</td>
		<td>&nbsp;</td>
		<td bgcolor=#BBBBBB align=center>
			<i>Contact login</i><p>
			<form method=post action="contactbrowse.php3">
			Username: <input type=text size=15 name=login><br>
			Password: <input type=password size=15 name=password><p>
			<input type=submit value="Log In">
			</form>
		</td>
		<td>&nbsp;</td>
		<td bgcolor=#BBBBBB align=center>
			<i>To look up a specific slip...</i><p>
			<form method=post action="visitor.php3">
			Slip ID: <input type=text size=10 name=sid>
			<input type=hidden name=v_func value="zoom">
			<p>
			<input type=submit value="View">
			</form>
		</td>
<?
#		<td colspan=2 bgcolor=#BBBBBB align=center>
#			<i>To view a customer's slips...</i><br>(Not yet enabled)<p>
#			<form method=post action="nbrowse.php3">
#			<!-- FIXME: needs maxsize based on database query -->
#			Contact: <input type=text size=10 name=f_contact>
#			<p>
#			<input type=submit value="View">
#			</form>
#		</td>
#		<td width=10%>&nbsp</td>
?>
	</tr>
	<tr><td>&nbsp</td></tr>
	<tr>
		<td colspan=4 align=right>
			<form method=post action="visitor.php3">
			<input type=submit value="Browse all public slips.">
			</form>
		</td>
		<td>
		</td>
		<td colspan=3 align=left>
			<form method=post action="visitor.php3">
			<input type="hidden" name="v_func" value="addslip">
			<input type=submit value="Add a new slip.">
			</form>
		</td>
	</tr>

	<tr>
		<td colspan=9 align=center>
			<hr>
			<font size=2>
			Keystone is &copy; 1998-2000 - Dave Belfer-Shevett<br>
			<a href="http://www.stonekeep.com/">www.stonekeep.com</a><br>
		</td>
	</tr>
	</table>
</td></tr></table>


