<?php
use \sven\sys\core as CORE;
CORE::setLogin(true);
CORE::addReplacement('head', 'TITLE', 'Statistik');
CORE::addReplacement('main', 'FILE', <<<EOF
<div class="container">
				<div class="row">
					<div class="col-md-12">
						<h2>Verkaufte Produkte</h2>
						<br />
						<div class="ct-chart ct-golden-section" id="chart1" onready="gesamtMenge()"></div>
						<br />
						<br />
						<h2>Produkte</h2>
						<div id ="products-selector" class="input-group">
							<label for="produkte">Produkt auswählen:</label>
							<select id="produkte" class="custom-select"></select>
							<button class="btn btn-primary" onclick="selectProduct()">Verkaufte Menge</button>
							<button class="btn btn-primary" onclick="gewinnGraph()">Gewinngraph</button>
						</div>
						<br />
						<br />
						<div class="ct-chart ct-golden-section" id="chart2"></div>
					</div>
				</div>
			</div>
EOF
);
?>
