Added spreadsheets

This commit is contained in:
MatMasIt 2022-02-06 18:06:08 +01:00 committed by GitHub
parent 1123dc6947
commit dbabac32be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,12 +113,45 @@ function main($pdo)
<th>Dimensione</th> <th>Dimensione</th>
<td><?php echo human_filesize(filesize("data/current.csv")); ?> </td> <td><?php echo human_filesize(filesize("data/current.csv")); ?> </td>
</tr> </tr>
<tr>
<th>Numero di elementi</th>
<td><?php echo count(file("data/current.csv",FILE_SKIP_EMPTY_LINES))-1; ?> </td>
</tr>
</tbody></table> </tbody></table>
<a href="data/current.csv" class="w3-btn w3-right w3-blue-grey"><i class="fa fa-download"></i>Scarica</a> <a href="data/current.csv" class="w3-btn w3-right w3-blue-grey"><i class="fa fa-download"></i>Scarica</a>
</div>
<div class="resultD w3-panel w3-card">
<table>
<tbody><tr>
<th>Tipo</th>
<td>Foglio di Microsoft Excel</td>
</tr>
<tr>
<th>Nome</th>
<td>current.xlsx</td>
</tr>
<tr>
<th>Dimensione</th>
<td><?php echo human_filesize(filesize("data/current.xslx")); ?> </td>
</tr>
</tbody></table>
<a href="data/current.xlsx" class="w3-btn w3-right w3-blue-grey"><i class="fa fa-download" aria-hidden="true"></i>Scarica</a>
</div>
<div class="resultD w3-panel w3-card">
<table>
<tbody><tr>
<th>Tipo</th>
<td>Foglio di calcolo di LibreOffice</td>
</tr>
<tr>
<th>Nome</th>
<td>current.ods</td>
</tr>
<tr>
<th>Dimensione</th>
<td><?php echo human_filesize(filesize("data/current.ods")); ?> </td>
</tr>
</tbody></table>
<a href="data/current.ods" class="w3-btn w3-right w3-blue-grey"><i class="fa fa-download" aria-hidden="true"></i>Scarica</a>
</div> </div>
<div class="resultD w3-panel w3-card"> <div class="resultD w3-panel w3-card">
<table> <table>
@ -134,13 +167,11 @@ function main($pdo)
<th>Dimensione</th> <th>Dimensione</th>
<td><?php echo human_filesize(filesize("db")); ?> </td> <td><?php echo human_filesize(filesize("db")); ?> </td>
</tr> </tr>
<tr>
<th>Numero di elementi</th>
<td><?php echo $vols; ?> </td>
</tr>
</tbody></table> </tbody></table>
<a href="db" class="w3-btn w3-right w3-blue-grey"><i class="fa fa-download" aria-hidden="true"></i>Scarica</a> <a href="db" class="w3-btn w3-right w3-blue-grey"><i class="fa fa-download" aria-hidden="true"></i>Scarica</a>
</div> </div>
<br /> <br />
<br /> <br />