diff --git a/admin/committee_reports.php b/admin/committee_reports.php index 50d806d..09209d4 100644 --- a/admin/committee_reports.php +++ b/admin/committee_reports.php @@ -123,15 +123,24 @@ echo "{$i->category}"; $last_category = $i->category; } - if($i->reports_id > 0) $name = $i->name; - else $name = $report_custom[-$i->reports_id]['name']; - echo ""; + + if($i->reports_id > 0) { + $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 = "$name"; + + echo "
$name
"; echo ""; echo ""; - echo ""; + echo ""; echo ""; echo "
$name
"; if($edit_mode == true) { echo "id}\">\"Remove"; } - echo ""; if($i->reports_id > 0) { @@ -141,21 +150,7 @@ } else { echo i18n('Custom report, no options available'); } - echo ""; - if($edit_mode == false) { - if($i->reports_id > 0) { - echo "
"; - echo "reports_id}\" />"; - echo ""; - } else { - $url = $report_custom[-$i->reports_id]['custom_url']; - echo ""; - } - echo "
"; - echo "
"; - } - echo "
{$i->comment}
";