Files
opensourcepos/app/Views/reports/graphical.php
objecttothis e71c035671 Formatting
- Made view CI form helper function call format uniform.
- replaced calls to array() with []
- Placed { on its own line
- Removed empty lines where there shouldn't be any.
- Replaced text/javascript with application/javascript as the former is deprecated
2024-06-15 17:19:15 +02:00

35 lines
658 B
PHP

<?php
/**
* @var string $title
* @var string $subtitle
* @var string $chart_type
* @var array $summary_data_1
*/
?>
<?= view('partial/header') ?>
<script type="application/javascript">
dialog_support.init("a.modal-dlg");
</script>
<div id="page_title"><?= esc($title) ?></div>
<div id="page_subtitle"><?= esc($subtitle) ?></div>
<div class="ct-chart ct-golden-section" id="chart1"></div>
<?= view($chart_type) ?>
<div id="chart_report_summary">
<?php
foreach($summary_data_1 as $name => $value)
{
?>
<div class="summary_row"><?= lang("Reports.$name"). ': ' . to_currency($value) ?></div>
<?php
}
?>
</div>
<?= view('partial/footer') ?>