From 66678c1768c8c8702da1e676416c15fc26339a97 Mon Sep 17 00:00:00 2001 From: MatMasIt Date: Sun, 6 Feb 2022 17:32:46 +0100 Subject: [PATCH] Create open.php --- server/open.php | 216 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 216 insertions(+) create mode 100644 server/open.php diff --git a/server/open.php b/server/open.php new file mode 100644 index 0000000..1babe34 --- /dev/null +++ b/server/open.php @@ -0,0 +1,216 @@ + 0.9; $i++, $size /= 1024) {} + return round($size, $precision).['B','kB','MB','GB','TB','PB','EB','ZB','YB'][$i]; +} +function main($pdo) +{ + +?> + + + Biblioteca | <?php echo $GLOBALS["place"]; ?> + + + + + + + + + + + +
+
+ Biblioteca | + +
+
+ + + +
+ +
+ +
+ +
+
+

Biblioteca online

+

+

Dati Aperti

+
+
+ + +

prepare("SELECT COUNT(*) as n FROM Libri"); + $stmt->execute(); + $data = $stmt->fetch(); + + echo "Volumi: " . $data["n"]; + + $vols = $data["n"]; + ?>

+ + +

prepare("SELECT COUNT(DISTINCT Autore) as n FROM Libri"); + $stmt->execute(); + $data = $stmt->fetch(); + + echo "Autori: " . $data["n"]; + + ?>

+ + +

+ +
+
+
+ + + + +
+
+ + +
+
+ + + + + + + + + + + + + + + + + +
TipoFoglio CSV
Nomecurrent.csv
Dimensione
Numero di elementi
+ Scarica +
+
+ + + + + + + + + + + + + + + + + +
TipoDatabase sqllite
Nomedb
Dimensione
Numero di elementi
+ Scarica +
+
+
+ +
+ + + +
+
+
+ + + + + +
+ + + + + +
+ + +
+
+ + + + + + + + + + + + +