<?php

##################################################################################
#    HOTELDRUID
#    Copyright (C) 2001-2024 by Marco Maria Francesco De Santis (marco@digitaldruid.net)
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU Affero General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    any later version accepted by Marco Maria Francesco De Santis, which
#    shall act as a proxy as defined in Section 14 of version 3 of the
#    license.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU Affero General Public License for more details.
#
#    You should have received a copy of the GNU Affero General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
##################################################################################


if ($pag != "visualizza_contratto.php" or $show_bar != "NO") {
if ($show_bar == "NO") echo "</td></tr></table>";
else echo "
</div>

<script type=\"text/javascript\">
<!--
replica_tasti();
-->
</script>
";
} # fine if ($pag != "visualizza_contratto.php" or $show_bar != "NO")

if ($pag == "inizio.php") {
echo "
<script type=\"text/javascript\">
<!--
attiva_seleziona_icona_tab('');
-->
</script>
";
} # fine if ($pag == "inizio.php")

if ($pag == "visualizza_tabelle.php" and isset($tipo_tabella) and $tipo_tabella == "prenotazioni") {
echo "
<script type=\"text/javascript\">
<!--
var lista_prenota_contr_orig = '".htmlspecialchars(fixstr($lista_prenota_contr))."';
var lista_prenota_mod_orig = ',".htmlspecialchars(fixstr($lista_prenota_mod)).",';
attiva_seleziona_uguali('');
-->
</script>
";
} # fine if ($pag == "visualizza_tabelle.php" and...

if ($pag == "modifica_prenota.php" or $pag == "modifica_cliente.php") {
echo "
<script type=\"text/javascript\">
<!--
ridim_col_modres();
-->
</script>
";
} # fine if ($pag == "modifica_prenota.php" or $pag == "modifica_cliente.php")

if (!empty($mobile_device)) {
echo "
<script type=\"text/javascript\">
<!--
tab_in_container();
-->
</script>
";
} # fine if (!empty($mobile_device))



if (isset($start_time)) {
$start_time = explode(" ",$start_time);
$start_time = (float) $start_time[0] + (float) $start_time[1];
$end_time = explode(" ",microtime());
$end_time = (float) $end_time[0] + (float) $end_time[1];
echo "<small><small>seconds: ".round(($end_time - $start_time),2)."</small></small>";
} # fine if (isset($start_time))



if (defined('C_FILE_JS_PERS') and C_FILE_JS_PERS != "" and @is_file(C_FILE_JS_PERS)) echo "
<script type=\"text/javascript\" src=\"".C_FILE_JS_PERS."\">
</script>
";

/*echo "<script type=\"text/javascript\">
<!--
if ('serviceWorker' in navigator && !navigator.serviceWorker.controller && typeof hide_def_worker === 'undefined') {
navigator.serviceWorker.register('sw.js');
}
-->
</script>
";*/



echo "
</body>
</html>";




?>
