2003-02-14 00:05:56 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
include_once("util.inc");
|
|
|
|
include_once("db.inc");
|
|
|
|
|
|
|
|
function print_platform_select() {
|
|
|
|
echo "
|
|
|
|
<select name=platform>
|
|
|
|
";
|
|
|
|
|
|
|
|
$result = mysql_query("select * from platform");
|
|
|
|
while ($platform = mysql_fetch_object($result)) {
|
|
|
|
echo"
|
|
|
|
<option value=$platform->name>$platform->user_friendly_name
|
|
|
|
";
|
|
|
|
}
|
|
|
|
mysql_free_result($result);
|
|
|
|
echo "</select>\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
$authenticator = init_session();
|
|
|
|
db_init();
|
|
|
|
|
|
|
|
$user = get_user_from_auth($authenticator);
|
|
|
|
if ($user == NULL) {
|
|
|
|
print_login_form();
|
|
|
|
exit();
|
|
|
|
}
|
|
|
|
page_head("Problem Report Form", $user);
|
|
|
|
|
|
|
|
echo "
|
|
|
|
<h3>Problem Report Form</h3>
|
|
|
|
<form method=post action=bug_report_action.php>
|
|
|
|
<table>
|
|
|
|
<tr><td align=right>Computer type</td><td>
|
|
|
|
";
|
|
|
|
print_platform_select();
|
|
|
|
echo"
|
|
|
|
</td></tr>
|
2003-02-14 00:56:19 +00:00
|
|
|
<tr><td valign=top align=right>
|
2003-02-14 00:05:56 +00:00
|
|
|
Problem description:
|
|
|
|
</td><td>
|
2003-02-14 00:56:19 +00:00
|
|
|
<textarea name=problem rows=10 cols=80></textarea>
|
2003-02-14 00:05:56 +00:00
|
|
|
</td></tr>
|
|
|
|
<tr><td><br></td><td>
|
|
|
|
<input type=submit value=OK>
|
|
|
|
</td></tr></table>
|
|
|
|
</form>
|
|
|
|
";
|
2003-02-14 22:59:25 +00:00
|
|
|
page_tail();
|
2003-02-14 00:05:56 +00:00
|
|
|
|
|
|
|
?>
|