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

	#----------------------------------------------------------------------
	# $Id: addattach.php3,v 1.4 2000/12/14 19:13:43 shevett Exp $
	#----------------------------------------------------------------------
	
	#----------------------------------------------------------------------
	#		Add an attachment to a slip. $sid should contain what slip we're
	#		adding to.
	#----------------------------------------------------------------------
?>
	<FORM ENCTYPE="multipart/form-data" ACTION="nbrowse.php3" METHOD=POST>
	<input type="hidden" name="f_process" value="postattach">
	<input type="hidden" name="a_tech" value="<? echo $curruser ?>">
	<td align=center>
		<table>
			<tr bgcolor=#808080>
				<td>
					<b>Upload a new file...</b>
				</td>
			</tr>
			<tr bgcolor=#808080>
				<td>
					<i>Child of Slip #</i><br>
					<?
					$sval = ($sid == 0) ? "0" : "$sid";
					?>
					<input name="a_sid" value="<? echo $sval ?>">
				</td>
			</tr>
			<tr bgcolor=#808080>
				<td>
					<i>Title</i><br>
					<input name="a_title" type="text">
				</td>
			</tr>
			<tr bgcolor=#808080>
				<td>
					<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="<? echo $sys_attachsiz ?>">
					<i>Send this file</i><br>
				 <INPUT NAME="userfile" TYPE="file">
				</td>
			</tr>
			<tr bgcolor=#808080>
				<td>
					<i>Description</i><br>
					<textarea name="a_descrip" rows=10 cols=60></textarea>
				</td>
			</tr>
			<tr bgcolor=#808080>
				<td>
					<i>Should this attachment be available in the Library?</i><br>
					<input type="radio" name="a_public" value="1" CHECKED> Yes <br>
					<input type="radio" name="a_public" value="0"> No
				</td>
			</tr>
			<tr bgcolor=#808080>
				<td align=center colspan=2>
				<?
					PostBar("Send file");
				?>
				</td>
			</tr>
		</table>
	</td>
	</form>
