2019-07-10 17:22:39 +02:00
|
|
|
<?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 id="widgets">
|
|
|
|
|
2019-07-11 12:04:22 +02:00
|
|
|
</div>';
|
2019-07-10 17:22:39 +02:00
|
|
|
|
2019-07-11 12:04:22 +02:00
|
|
|
$statistiche = Modules::get('Statistiche');
|
2019-07-10 17:22:39 +02:00
|
|
|
|
2020-02-14 12:23:50 +01:00
|
|
|
if ($statistiche != null) {
|
2020-02-11 16:58:25 +01:00
|
|
|
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>
|
2020-02-11 17:07:11 +01:00
|
|
|
<script src="'.$statistiche->fileurl('js/stats/widget.js').'"></script>';
|
2020-02-11 16:58:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
echo'
|
2019-07-11 12:04:22 +02:00
|
|
|
<script>
|
|
|
|
var local_url = "'.str_replace('edit.php', '', $structure->fileurl('edit.php')).'";
|
2019-07-10 17:22:39 +02:00
|
|
|
|
2019-07-11 12:04:22 +02:00
|
|
|
function init_calendar(calendar) {
|
|
|
|
var widgets = new Widget(calendar, "info.php", {}, "#widgets");
|
2019-07-10 17:22:39 +02:00
|
|
|
|
|
|
|
calendar.addElement(widgets);
|
|
|
|
}
|
2020-02-11 16:58:25 +01:00
|
|
|
</script>';
|
2020-02-11 17:07:11 +01:00
|
|
|
|
2020-02-14 12:23:50 +01:00
|
|
|
if ($statistiche != null) {
|
2020-02-11 17:07:11 +01:00
|
|
|
echo '
|
|
|
|
<script src="'.$statistiche->fileurl('js/init.js').'"></script>';
|
|
|
|
}
|