<form action="bug.php" method="post">
    <input type="hidden" name="bugid" value="0">
    <input type="hidden" name="project" value="{$project}">
    <input type="hidden" name="op" value="do">
    <table border="0">
{if $error}
	<tr>
	    <td colspan="2" class="error">{$error}</td>
	</tr>
{/if}
	<tr>
	    <td align="right" valign="top">{$STRING.BUGFORM.Project}:</td>
	    <td>{$projectname|stripslashes}</td>
	</tr><tr>
	    <td align="right" valign="top">{$STRING.BUGFORM.Version}:</td>
	    <td><select name="version">{build_select box=version selected=$version project=$project}
		</select></td>
	</tr><tr>
	    <td align="right" valign="top">{$STRING.BUGFORM.Summary}:</td>
	    <td><input type="text" size="50" maxlength="100" name="title"
		<!-- FM 453 : do not use utf8_encode for output as the input has already been "htmlspecialchared" 
		Here, the title hasn't been filtered because it's just a new form. -->
		value="{$title|stripslashes}"></td>
	</tr><tr>
	    <td align="right" valign="top">{$STRING.BUGFORM.Description}:</td>
	    <td><textarea name="description" cols="50" rows="8"
		wrap=virtual>{$description|stripslashes}</textarea></td>
	</tr><tr>
	    <td align="right" valign="top">URL:</td>
	    <td><input type="text" size="30" maxlength="255" name="url" value="{$url}"></td>
	</tr><tr>
	    <td align="right" valign="top">{$STRING.BUGFORM.Severity}:</td>
	    <td><select name="severity">{build_select box=severity selected=$severity}
		</select></td>
	</tr><tr>
	    <td align="right" valign="top">{$STRING.BUGFORM.Priority}:</td>
	    <td><select name="priority">{build_select box=priority selected=$priority}
		</select></td>
	</tr><tr>
	    <td align="right" valign="top">{$STRING.BUGFORM.Component}:</td>
	    <td><select name="component">{build_select box=component selected=$component project=$project}
		</select></td>
	</tr><tr>
	    <td align="right" valign="top">{$STRING.BUGFORM.Database}:</td>
	    <td><select name="database">{build_select box=database selected=$database}
		</select></td>
	</tr><tr>
	    <td align="right" valign="top">{$STRING.BUGFORM.Site}:</td>
	    <td><select name="site">{build_select box=site selected=$site}
		</select></td>
	</tr><tr>
	    <td align="right" valign="top">{$STRING.BUGFORM.OS}:</td>
	    <td><select name="os">{build_select box=os selected=$os}
		</select></td>
	</tr><tr>
	    <td align="right" valign="top">{$STRING.BUGFORM.AddAnother}:</td>
		<td valign="top"><input type="checkbox" name="another" value="1"></td>
	</tr>
    </table>
    <input type="submit" name="submit" value="{$STRING.BUGFORM.Submit}">
</form>
