| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <header class="d-flex flex-column flex-md-row align-items-md-center p-3 bg-light ">
- <h2 class="bd-title" id="content">
- <span>Restauration des données</span>
- <a href="/submit.php?from=host-add-backup" style="position: absolute; right: 0; margin: 0 40px 0 0;"><button type="submit" class="btn btn-outline-success btn-sm"><span data-feather="plus-square"></span> Créer un nouveau backup</button></a>
- </h2>
- </header>
- <?php
- echo core::filAriane(array(
- "current" => "Restauration des données",
- "arbo" => array(
- "Maintenance" => NULL,
- "Restauration des données" => "/host-restore.html")
- ));
- ?>
- <div>
- <table
- id="table"
- class="table-striped table-hover table-sm"
- data-toggle="table"
- data-sort-name="date"
- data-sort-order="desc"
- data-url="/json.php?jsonData=host-restore">
- <thead>
- <tr>
- <th data-formatter="downloadFile" data-sortable="true" data-field="file" data-filter-control="input" data-align="left">Nom</th>
- <th data-sortable="true" data-field="size" data-filter-control="input" data-width="100">Taille</th>
- <th data-sortable="true" data-field="date" data-filter-control="input" data-width="170">Date de création</th>
- <th data-formatter="restoreBackup" data-width="130"></th>
- </tr>
- </thead>
- </table>
- </div>
- <script>
- function downloadFile(value, row) {
- return '<form method="post" action="/submit.php">\n\
- <input type="hidden" name="from" value="host-download-backup-zip">\n\
- <input type="hidden" name="file" value="' + row.file + '">\n\
- <button type="submit" style="border:none; background:none;" title="Télécharger le fichier : ' + row.file + '">' + row.file + '</button>\n\
- </form>';
- }
- function restoreBackup(value, row) {
- return '<form method="post" action="/submit.php">\n\
- <input type="hidden" name="from" value="host-restore-backup-zip">\n\
- <input type="hidden" name="file" value="' + row.file + '">\n\
- <button type="submit" onclick="return confirm(\'Etes-vous certain de vouloir restaurer cette version (données et fichiers) ?\')" class="btn btn-outline-danger btn-sm">Restaurer</button>\n\
- </form>';
- }
- </script>
|