mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-01-31 04:31:07 -05:00
- Replaced TRUE/FALSE constants with true/false keywords - Replaced NULL constant with null keyword - Replaced `<?php echo` in views with shortened `<?=` - Added missing variable declaration - Added missing function return type in declaration - replaced `== true`, `== false`, `=== true` and `=== false` in if statements with simplified forms
35 lines
656 B
PHP
35 lines
656 B
PHP
<?php
|
|
/**
|
|
* @var string $title
|
|
* @var string $subtitle
|
|
* @var string $chart_type
|
|
* @var array $summary_data_1
|
|
*/
|
|
?>
|
|
<?= view('partial/header') ?>
|
|
|
|
<script type="text/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(esc($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') ?>
|