forked from science-ation/science-ation
Put custom reports back in
This commit is contained in:
parent
adf606f0d3
commit
76eefdf3cd
@ -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>
|
||||
|
||||
|
@ -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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user