Put custom reports back in

This commit is contained in:
dave 2010-03-15 06:02:25 +00:00
parent adf606f0d3
commit 76eefdf3cd
2 changed files with 15 additions and 0 deletions

View File

@ -180,6 +180,7 @@ function add_report()
function gen_report() {
report_gen($('#report').val());
return false;
}
var edit=false;
@ -312,7 +313,12 @@ $(document).ready(function() {
<?
/* Load available reports */
$reports = report_load_all();
foreach($report_custom as $id=>$r) {
$r['id'] = -$id;
$reports[-$id] = $r;
}
?>
<hr />
<h4><?=i18n("All Reports")?></h3>

View File

@ -56,6 +56,15 @@ if(is_array($_GET['filter'])) {
switch($_GET['action']) {
case 'dialog_gen':
if($id < 0) {
$u = "{$config['SFIABDIRECTORY']}/{$report_custom[-$id]['custom_url']}";
?>
<script type="text/javascript">
window.location.href="<?=$u?>";
</script>
<?
exit;
}
?>
<div id="report_dialog_gen" title="Generate Report" style="display: none">
<div id="report_gen_tabs">