Update the selector so it works

This commit is contained in:
dave 2007-03-20 20:50:14 +00:00
parent 23934f080a
commit c64d7445e9

View File

@ -31,7 +31,7 @@
$id = intval($_POST['id']);
echo "<h4>".i18n("All Reports")."</h4>";
echo "<form method=\"post\" name=\"reportload\" action=\"reports.php\" onChange=\"document.reportload.submit()\">";
echo "<form method=\"get\" name=\"reportgen\" action=\"reports_gen.php\">";
echo "<select name=\"id\" id=\"report\">";
echo "<option value=\"0\">".i18n("Select a Report")."</option>\n";
$reports = report_load_all();
@ -40,9 +40,12 @@
$sel = ($id == $r['id']) ? 'selected=\"selected\"' : '';
echo "<option value=\"{$r['id']}\" $sel>{$r['name']}</option>\n";
}
echo "</select><br />";
echo "<a href=\"reports_gen.php?id=$id&type=pdf\">Generate PDF</a> &nbsp; ";
echo "<a href=\"reports_gen.php?id=$id&type=csv\">Generate CSV</a> &nbsp; ";
echo "</select>";
echo "<select name=\"type\"><option value=\"\">Default Format</option>";
echo "<option value=\"pdf\">PDF</option>";
echo "<option value=\"csv\">CSV</option></select>";
echo "<input type=\"submit\" value=\"Generate Report\"></form>";
echo "<br />";
echo "<hr />";