mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-27 00:06:14 +01:00
103 lines
3.2 KiB
PHP
103 lines
3.2 KiB
PHP
<?php
|
|
|
|
include_once __DIR__.'/../../core.php';
|
|
|
|
echo '
|
|
<hr>
|
|
<div class="box box-warning">
|
|
<div class="box-header">
|
|
<h4 class="box-title">
|
|
'.tr('Periodi temporali').'
|
|
</h4>
|
|
<div class="box-tools pull-right">
|
|
<button class="btn btn-warning btn-xs" onclick="add_calendar()">
|
|
<i class="fa fa-plus"></i> '.tr('Aggiungi periodo').'
|
|
</button>
|
|
<button type="button" class="btn btn-box-tool" data-widget="collapse">
|
|
<i class="fa fa-minus"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="box-body collapse in" id="calendars">
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="panel panel-primary">
|
|
<div class="panel-heading">
|
|
<h3 class="panel-title">'.tr('Prezzo medio acquisto').'</h3>
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
<table class="table table-striped table-condensed table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th class="text-center">#</th>
|
|
<th>'.tr('Periodo').'</th>
|
|
<th>'.tr('Prezzo minimo').'</th>
|
|
<th>'.tr('Prezzo medio').'</th>
|
|
<th>'.tr('Prezzo massimo').'</th>
|
|
<th>'.tr('Oscillazione').'</th>
|
|
<th>'.tr('Oscillazione in %').'</th>
|
|
<th>'.tr('Andamento prezzo').'</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="prezzi_acquisto">
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="panel panel-primary">
|
|
<div class="panel-heading">
|
|
<h3 class="panel-title">'.tr('Prezzo medio vendita').'</h3>
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
<table class="table table-striped table-condensed table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>#</th>
|
|
<th>'.tr('Periodo').'</th>
|
|
<th>'.tr('Prezzo minimo').'</th>
|
|
<th>'.tr('Prezzo medio').'</th>
|
|
<th>'.tr('Prezzo massimo').'</th>
|
|
<th>'.tr('Oscillazione').'</th>
|
|
<th>'.tr('Oscillazione in %').'</th>
|
|
<th>'.tr('Andamento prezzo').'</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="prezzi_vendita">
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>';
|
|
|
|
$statistiche = Modules::get('Statistiche');
|
|
|
|
echo '
|
|
<script src="'.$statistiche->fileurl('js/functions.js').'"></script>
|
|
<script src="'.$statistiche->fileurl('js/manager.js').'"></script>
|
|
<script src="'.$statistiche->fileurl('js/calendar.js').'"></script>
|
|
<script src="'.$statistiche->fileurl('js/stat.js').'"></script>
|
|
<script src="'.$statistiche->fileurl('js/stats/table.js').'"></script>
|
|
|
|
<script src="'.$structure->fileurl('js/prezzo.js').'"></script>
|
|
|
|
<script>
|
|
var local_url = "'.str_replace('edit.php', '', $structure->fileurl('edit.php')).'";
|
|
|
|
function init_calendar(calendar) {
|
|
var prezzo_acquisto = new Prezzo(calendar, "#prezzi_acquisto", "uscita");
|
|
var prezzo_vendita = new Prezzo(calendar, "#prezzi_vendita", "entrata");
|
|
|
|
calendar.addElement(prezzo_acquisto);
|
|
calendar.addElement(prezzo_vendita);
|
|
}
|
|
</script>
|
|
|
|
<script src="'.$statistiche->fileurl('js/init.js').'"></script>';
|