diff options
| author | polo <ordipolo@gmx.fr> | 2022-03-28 03:45:38 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2022-03-28 03:45:38 +0200 |
| commit | 4873117ec6aeb86ef169cbf8750123ca24041cdf (patch) | |
| tree | 7f8ec95171e74d03d9cd9a6edc12108ecbd59785 /view | |
| parent | 92a4565f303f5b9f273a8d1eb74d52ac541e89bc (diff) | |
| download | melaine-4873117ec6aeb86ef169cbf8750123ca24041cdf.tar.gz melaine-4873117ec6aeb86ef169cbf8750123ca24041cdf.tar.bz2 melaine-4873117ec6aeb86ef169cbf8750123ca24041cdf.zip | |
upload gros zip AJAX
Diffstat (limited to 'view')
| -rw-r--r-- | view/backup.php | 10 | ||||
| -rw-r--r-- | view/template.php | 4 |
2 files changed, 7 insertions, 7 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 |
diff --git a/view/template.php b/view/template.php index 93881f4..7fafbbb 100644 --- a/view/template.php +++ b/view/template.php | |||
| @@ -8,7 +8,7 @@ | |||
| 8 | <!-- partie que Melaine doit écrire --> | 8 | <!-- partie que Melaine doit écrire --> |
| 9 | <meta name="description" content="" /> | 9 | <meta name="description" content="" /> |
| 10 | 10 | ||
| 11 | <!-- <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" /> --> | 11 | <!-- <link rel="shortcut icon" type="image/x-icon" href="public/favicon.ico" /> --> |
| 12 | <link rel="icon" type="image/png" href="public/mouette-logo.png" > | 12 | <link rel="icon" type="image/png" href="public/mouette-logo.png" > |
| 13 | <link rel="stylesheet" type="text/css" href="public/css/normalize.css"> | 13 | <link rel="stylesheet" type="text/css" href="public/css/normalize.css"> |
| 14 | <link rel="stylesheet" type="text/css" href="public/css/accueil.css" /> | 14 | <link rel="stylesheet" type="text/css" href="public/css/accueil.css" /> |
| @@ -57,7 +57,7 @@ if($_SESSION['admin'] == 0 && isset($_GET['page']) && $_GET['page'] != 'accueil' | |||
| 57 | { | 57 | { |
| 58 | ?> | 58 | ?> |
| 59 | <div id="lienModeAdmin" > | 59 | <div id="lienModeAdmin" > |
| 60 | <p><a href="index.php?page=connexion&from=<?= $page ?>" >Mode Administrateur</a></p> | 60 | <button><a href="index.php?page=connexion&from=<?= $page ?>" >Mode Administrateur</a></button> |
| 61 | </div> | 61 | </div> |
| 62 | <?php | 62 | <?php |
| 63 | } | 63 | } |
