diff options
Diffstat (limited to 'view/backup.php')
| -rw-r--r-- | view/backup.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/view/backup.php b/view/backup.php index 30b644b..bbea60d 100644 --- a/view/backup.php +++ b/view/backup.php | |||
| @@ -54,15 +54,15 @@ elseif(isset($_GET['action']) && $_GET['action'] == 'restauration') | |||
| 54 | ob_start(); | 54 | ob_start(); |
| 55 | ?> | 55 | ?> |
| 56 | <h2>Restauration des données à partir d'une sauvegarde.</h2> | 56 | <h2>Restauration des données à partir d'une sauvegarde.</h2> |
| 57 | <p>Vous devez avoir créé précédemment un fichier <i>melaineDATA</i><br/> | 57 | <p>Vous devez avoir créé précédemment un fichier dont le nom commence par <i>melaineDATA</i><br/> |
| 58 | à la page <i>Sauvegarder les données.</i></p><br/> | 58 | à la page <i>Sauvegarder les données.</i></p><br/> |
| 59 | 59 | ||
| 60 | <form method="post" enctype="multipart/form-data" action="index.php?from=<?= $from ?>&action=restauration" > | 60 | <form method="post" enctype="multipart/form-data" action="index.php?from=<?= $from ?>&action=restauration" > |
| 61 | <input type="file" name="archive" accept=".zip" class="boutonBackup" ><br/> | 61 | <input id="archiveUpload" type="file" name="archive" accept=".zip" class="boutonBackup" onchange="sendFileSize();" ><br/> |
| 62 | 62 | ||
| 63 | <!-- demande de confirmation en JS au submit --> | 63 | <!-- demande de confirmation en JS au submit --> |
| 64 | 64 | ||
| 65 | <input type="submit" class="boutonBackup" value="Valider" > | 65 | <input type="submit" class="boutonBackup" value="Valider" onclick="uploadDespiteServerMaxWeightLimit(<?= $maxWeight ?>);" > |
| 66 | <?= $message ?> | 66 | <?= $message ?> |
| 67 | </form> | 67 | </form> |
| 68 | <button class="boutonBackup" ><a href="index.php?page=<?= $from ?>" >Retour au site</a></button> | 68 | <button class="boutonBackup" ><a href="index.php?page=<?= $from ?>" >Retour au site</a></button> |
| @@ -82,7 +82,7 @@ elseif(isset($_GET['action']) && $_GET['action'] == 'restauration') | |||
| 82 | <?php | 82 | <?php |
| 83 | if(isset($_GET['action']) && $_GET['action'] == 'restauration') | 83 | if(isset($_GET['action']) && $_GET['action'] == 'restauration') |
| 84 | { | 84 | { |
| 85 | echo('<script type="text/javascript" src="public/main.js" ></script>'); | 85 | echo('<script type="text/javascript" src="public/file_upload.js" ></script>'); |
| 86 | } | 86 | } |
| 87 | ?> | 87 | ?> |
| 88 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | 88 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| @@ -91,5 +91,5 @@ if(isset($_GET['action']) && $_GET['action'] == 'restauration') | |||
| 91 | <div id="bloc_page" style="padding: 10px;" > | 91 | <div id="bloc_page" style="padding: 10px;" > |
| 92 | <?= $content ?> | 92 | <?= $content ?> |
| 93 | </div> | 93 | </div> |
| 94 | </body> | 94 | </body> |
| 95 | </html> \ No newline at end of file | 95 | </html> \ No newline at end of file |
