diff --git a/admin/reports.php b/admin/reports.php index 5524e95..00f19d4 100644 --- a/admin/reports.php +++ b/admin/reports.php @@ -175,8 +175,12 @@ function save_report() function add_report() { - var reports_id = $('#report').val(); - edit_report(-1, reports_id); + edit_report(-1, $('#report').val()); +} + +function gen_report() +{ + report_gen($('#report').val()); } var edit=false; @@ -255,14 +259,12 @@ $(document).ready(function() { } if($i->reports_id > 0) { - $name = $i->name; - $url = "admin/reports_gen.php?id={$i->reports_id}&show_options=1"; +// $url = "admin/reports_gen.php?id={$i->reports_id}&show_options=1"; + $name = "reports_id}); return false\">{$i->name}"; } else { - $name = $report_custom[-$i->reports_id]['name']; - $url = $report_custom[-$i->reports_id]['custom_url']; + $name = "reports_id]['custom_url']}\"> + {$report_custom[-$i->reports_id]['name']}"; } - $name = "$name"; - ?>