forked from science-ation/science-ation
- Add an "All Reports" section to the My Reports page, just like the top of the
(soon to be old) reports.php
This commit is contained in:
parent
d554e116fd
commit
85c3ad8694
@ -158,17 +158,35 @@
|
||||
|
||||
}
|
||||
|
||||
/* Load available reports */
|
||||
$reports = report_load_all();
|
||||
|
||||
if($edit_mode == false) {
|
||||
echo "<hr />";
|
||||
echo '<hr />';
|
||||
echo '<a href="committee_reports.php?edit=1">'.i18n('Click here to edit your Report List').'</a>';
|
||||
|
||||
echo '<hr />';
|
||||
echo "<h4>".i18n("All Reports")."</h4>";
|
||||
|
||||
/* Print all the reports in a pulldown menu for generation */
|
||||
echo "<form method=\"get\" name=\"reportgen\" action=\"reports_gen.php\">";
|
||||
echo "<input type=\"hidden\" name=\"show_options\" value=\"1\" />";
|
||||
echo "<select name=\"id\" id=\"report\">";
|
||||
echo "<option value=\"0\">".i18n("Select a Report")."</option>\n";
|
||||
$x=0;
|
||||
foreach($reports as $r) {
|
||||
echo "<option value=\"{$r['id']}\">{$r['name']}</option>\n";
|
||||
}
|
||||
echo "</select>";
|
||||
echo "<input type=\"submit\" value=\"Generate Report\"></form>";
|
||||
echo "<br />";
|
||||
|
||||
send_footer();
|
||||
exit;
|
||||
}
|
||||
|
||||
echo '<hr />';
|
||||
|
||||
/* Load available reports */
|
||||
$reports = report_load_all();
|
||||
|
||||
/* Create an add report box */
|
||||
echo '<h4>'.i18n('Add a Report to your Report List').'</h4>';
|
||||
|
Loading…
Reference in New Issue
Block a user