<?
	#---------------------------------------------------------------------#
	# This source code is (c)2000 White Pajamas, Inc                      #
	# see http://www.stonekeep.com/license.html for licensing information #
	#---------------------------------------------------------------------#

	#----------------------------------------------------------------------
	# $Id: attachmenu.php3,v 1.5 2000/12/14 19:13:45 shevett Exp $
	#----------------------------------------------------------------------
	
	#----------------------------------------------------------------------
	#		Show the Attachments menu
	#----------------------------------------------------------------------

	include "sliputils.php3";

?>
	<td>
		<table width=100% bgcolor=#000000 border=0 cellpadding=0 cellspacing=0>
			<tr valign=top>
				<td colspan=3 bgcolor=#bbbbbb align=center>
					<h3>Attachments for Slip #<?echo $sid?>
				</td>
			</tr>
			<tr bgcolor=#00000></tr>
			<tr valign=top>
				<td bgcolor=#bbbbbb width=5% align=left>
					<a href="nbrowse.php3?f_mdataset=slips"><img src="<? echo $sys_graphics ?>/active-left.gif" border=0></a>
				</td>
				<td width=5% bgcolor=#bbbbbb align=right>
					<font size=2>
					<a href="nbrowse.php3?f_func=libattach&sid=<?echo $sid?>">Library<br>
					<a href="nbrowse.php3?f_func=newattach&sid=<?echo $sid?>">Upload<br>
					<a href="nbrowse.php3?f_func=delattach">Delete<br>
				</td>
				<td bgcolor=#808080 align=center width=90% valign=middle>
					<?
						$fres = db_query("select at_fname,at_tech from attachments where at_sid=$sid");
						if (db_numrows($fres) == 0) {
							echo "<b>No attachments for this slip</b>";
						} else {
							echo "<table width=100% cellspacing=0 cellpadding=0 border=0>";
							while ($arow = db_fetch_array($fres)) {
								ShowAttachRow($arow);
								echo "<tr><td></td></tr>";
							}
							echo "</table>";
						}
					?>
				</td>
			</tr>
		</table>
	</td>


