forked from science-ation/science-ation
- Instead of using big ugly "Generate" buttons, just make the report names
clickable.
This commit is contained in:
parent
5b282980ee
commit
e384a48ea6
@ -123,15 +123,24 @@
|
|||||||
echo "{$i->category}</h4>";
|
echo "{$i->category}</h4>";
|
||||||
$last_category = $i->category;
|
$last_category = $i->category;
|
||||||
}
|
}
|
||||||
if($i->reports_id > 0) $name = $i->name;
|
|
||||||
else $name = $report_custom[-$i->reports_id]['name'];
|
if($i->reports_id > 0) {
|
||||||
echo "<table><tr><td colspan=\"3\">$name</td>";
|
$name = $i->name;
|
||||||
|
$url = "admin/reports_gen.php?id={$i->reports_id}&show_options=1";
|
||||||
|
} else {
|
||||||
|
$name = $report_custom[-$i->reports_id]['name'];
|
||||||
|
$url = $report_custom[-$i->reports_id]['custom_url'];
|
||||||
|
}
|
||||||
|
|
||||||
|
if($edit_mode == false)
|
||||||
|
$name = "<a href=\"{$config['SFIABDIRECTORY']}/$url\">$name</a>";
|
||||||
|
|
||||||
|
echo "<table><tr><td colspan=\"2\">$name</td></tr>";
|
||||||
echo "<tr><td width=\"20px\">";
|
echo "<tr><td width=\"20px\">";
|
||||||
if($edit_mode == true) {
|
if($edit_mode == true) {
|
||||||
echo "<a title=\"Remove Report\" href=\"committee_reports.php?action=unlink&id={$i->id}\"><img src=\"".$config['SFIABDIRECTORY']."/images/16/button_cancel.".$config['icon_extension']."\" border=\"0\" alt=\"Remove Report\" /></a>";
|
echo "<a title=\"Remove Report\" href=\"committee_reports.php?action=unlink&id={$i->id}\"><img src=\"".$config['SFIABDIRECTORY']."/images/16/button_cancel.".$config['icon_extension']."\" border=\"0\" alt=\"Remove Report\" /></a>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
echo "</td>";
|
echo "</td>";
|
||||||
echo "<td><span style=\"font-size: 0.75em;\">";
|
echo "<td><span style=\"font-size: 0.75em;\">";
|
||||||
if($i->reports_id > 0) {
|
if($i->reports_id > 0) {
|
||||||
@ -141,21 +150,7 @@
|
|||||||
} else {
|
} else {
|
||||||
echo i18n('Custom report, no options available');
|
echo i18n('Custom report, no options available');
|
||||||
}
|
}
|
||||||
echo "</span></td>";
|
echo "</span></td></tr>";
|
||||||
echo "<td rowspan=\"2\">";
|
|
||||||
if($edit_mode == false) {
|
|
||||||
if($i->reports_id > 0) {
|
|
||||||
echo "<form method=\"get\" action=\"reports_gen.php\">";
|
|
||||||
echo "<input type=\"hidden\" name=\"id\" value=\"{$i->reports_id}\" />";
|
|
||||||
echo "<input type=\"hidden\" name=\"show_options\" value=\"1\" />";
|
|
||||||
} else {
|
|
||||||
$url = $report_custom[-$i->reports_id]['custom_url'];
|
|
||||||
echo "<form method=\"post\" action=\"{$config['SFIABDIRECTORY']}/$url\">";
|
|
||||||
}
|
|
||||||
echo "<input type=\"submit\" value=\"".i18n('Generate')."\" /><br />";
|
|
||||||
echo "</form>";
|
|
||||||
}
|
|
||||||
echo "</td></tr>";
|
|
||||||
|
|
||||||
echo "<tr><td></td><td>{$i->comment}</td></tr>";
|
echo "<tr><td></td><td>{$i->comment}</td></tr>";
|
||||||
echo "</table>";
|
echo "</table>";
|
||||||
|
Loading…
Reference in New Issue
Block a user