2019-01-14 16:29:06 +00:00
< div class = " container " >
< br >
< ? php if ( $this -> session -> flashdata ( 'message' )) { ?>
<!-- Display Message -->
< div class = " alert-message error " >
< p >< ? php echo $this -> session -> flashdata ( 'message' ); ?> </p>
</ div >
< ? php } ?>
2011-11-06 23:09:51 +00:00
2026-01-15 15:26:15 +00:00
< ? php if ( ! isset ( $zip_installed ) || ! $zip_installed ) { ?>
< div class = " alert alert-warning " role = " alert " >
< strong > Warning :</ strong > The PHP ZIP extension is not installed . Backup and restore functionality requires the ZIP extension . Please install it to use these features . See the < a href = " <?php echo site_url('debug'); ?> " class = " alert-link " > Debug page </ a > for more information .
</ div >
< ? php } ?>
2020-10-20 15:51:55 +01:00
< h2 >< ? php echo $page_title ; ?> </h2>
2025-11-24 17:30:40 +00:00
<!-- Legacy backup card removed as ADIF / Notes exports superseded by user data ZIP import / export workflow -->
< div class = " card mt-4 " >
< div class = " card-header d-flex justify-content-between align-items-center " >
< span > User Data Backup & Restore </ span >
< a href = " <?php echo site_url('backup/user_export'); ?> " class = " btn btn-sm btn-outline-primary " title = " Download ZIP backup of your stations, logbooks & QSOs " > Download ZIP Backup </ a >
</ div >
< div class = " card-body " >
< p class = " card-text " > Export and restore only your own Stations , Logbooks and QSOs . Imported stations / logbooks are never set active automatically ; duplicates reuse existing records ; QSOs skip conflicts .</ p >
< form method = " post " enctype = " multipart/form-data " hx - post = " <?php echo site_url('backup/user_import'); ?> " hx - target = " #user-import-preview " hx - swap = " innerHTML " class = " mb-3 " >
< div class = " mb-2 " >
< input type = " file " name = " backup_file " accept = " .zip,application/zip,application/json " required class = " form-control " />
</ div >
< button type = " submit " class = " btn btn-success " > Upload & Preview </ button >
</ form >
< div id = " user-import-preview " ></ div >
</ div >
2019-01-14 16:29:06 +00:00
</ div >
2011-11-06 23:09:51 +00:00
2011-09-30 22:27:18 +01:00
2019-01-14 16:29:06 +00:00
</ div >
2011-09-30 22:27:18 +01:00