forked from science-ation/science-ation
Update the selector so it works
This commit is contained in:
parent
23934f080a
commit
c64d7445e9
@ -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> ";
|
||||
echo "<a href=\"reports_gen.php?id=$id&type=csv\">Generate CSV</a> ";
|
||||
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 />";
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user