<?php
	# Mantis - a php based bugtracking system
	# Copyright (C) 2000 - 2002  Kenzaburo Ito - kenito@300baud.org
	# Copyright (C) 2002 - 2004  Mantis Team   - mantisbt-dev@lists.sourceforge.net
	# This program is distributed under the terms and conditions of the GPL
	# See the README and LICENSE files for details

	# --------------------------------------------------------
	# $Id: bugnote_add2.php
	# --------------------------------------------------------
?>
<?php
	# Insert the bugnote into the database then redirect to the bug page
?>
<?php
	require_once( 'core.php' );

	html_page_top1();
	html_page_top2();

	$t_key = mt_rand( 0,99999 );
?>
<br>
<br>
<center>
<form name="captcha_form" method="post" action="bugnote_add.php">
<input type="hidden" name="bug_id" value="<?php echo gpc_get_int( 'bug_id' ) ?>">
<input type="hidden" name="private" value="<?php echo gpc_get_bool( 'private' ) ?>">
<input type="hidden" name="bugnote_text" value="<?php echo gpc_get_string( 'bugnote_text', '' ) ?>">
<table class="width50" cellspacing="1">
<tr>
	<td class="form-title" colspan="3">
		<?php echo lang_get( 'add_bugnote_button' ) ?>
	</td>
</tr>
<tr class="row-1">
	<td class="category">
		<?php echo "Guest accounts must enter this code as it is shown in the box on the right" ?>:
	</td>
	<td>
		<?php print_captcha_input( 'captcha', '' ) ?>
	</td>
	<td>
		<img src="make_captcha_img.php?public_key=<?php echo $t_key ?>">
		<input type="hidden" name="public_key" value="<?php echo $t_key ?>">
	</td>
</tr>
<tr>
	<td class="center" colspan="3">
		<input type="submit" class="button" value="<?php echo lang_get( 'add_bugnote_button' ) ?>" />
	</td>
</tr>
</table>
</form>
</center>
<br>
<br>
<?php
	html_page_bottom1a( __FILE__ );
?>
