2026-07-18 22:01:33 +01:00
< ? php
$page_title = $page_title ? ? '' ;
$eqsl_mapping_mode = $eqsl_mapping_mode ? ? false ;
$eqsl_mappings_count = $eqsl_mappings_count ? ? 0 ;
$mapped_station_ids = $mapped_station_ids ? ? array ();
?>
2019-05-22 17:06:47 +01:00
< div class = " container eqsl " >
2020-10-20 15:51:55 +01:00
< h2 >< ? php echo $page_title ; ?> </h2>
2019-05-22 17:06:47 +01:00
< div class = " card " >
< div class = " card-header " >
2020-10-20 15:51:55 +01:00
< div class = " card-title " > eQSL Import </ div >
2019-05-22 17:06:47 +01:00
< ul class = " nav nav-tabs card-header-tabs " >
< li class = " nav-item " >
< a class = " nav-link active " href = " <?php echo site_url('eqsl/import');?> " > Download QSOs </ a >
</ li >
< li class = " nav-item " >
< a class = " nav-link " href = " <?php echo site_url('eqsl/Export');?> " > Upload QSOs </ a >
2020-11-03 16:06:35 +00:00
</ li >
2026-07-18 22:01:33 +01:00
< li class = " nav-item " >
< a class = " nav-link " href = " <?php echo site_url('eqsl/mappings');?> " > Mappings </ a >
</ li >
2020-11-03 16:06:35 +00:00
< li class = " nav-item " >
< a class = " nav-link " href = " <?php echo site_url('eqsl/tools');?> " > Tools </ a >
2019-05-22 17:06:47 +01:00
</ li >
2023-05-10 21:36:46 +02:00
< li class = " nav-item " >
2023-05-21 22:50:30 +02:00
< a class = " nav-link " href = " <?php echo site_url('eqsl/download');?> " > Download eQSL cards </ a >
2023-05-10 21:36:46 +02:00
</ li >
2019-05-22 17:06:47 +01:00
</ ul >
</ div >
< div class = " card-body " >
< ? php $this -> load -> view ( 'layout/messages' ); ?>
2013-08-25 13:45:09 -05:00
2026-07-18 22:01:33 +01:00
< ? php if ( ! empty ( $eqsl_mapping_mode )) { ?>
< div class = " alert alert-info " role = " alert " >
Using mapping mode with < ? php echo ( int ) $eqsl_mappings_count ; ?> active mapping(s). eQSL import fetches password and QTH nickname from your mappings.
</ div >
< ? php } else { ?>
< div class = " alert alert-warning " role = " alert " >
Using legacy fallback mode . Configure mappings to manage multiple eQSL identities and nicknames explicitly .
</ div >
< ? php } ?>
2019-05-22 17:06:47 +01:00
< ? php echo form_open_multipart ( 'eqsl/import' ); ?>
2020-06-17 15:17:46 +01:00
< div class = " form-check " >
< input class = " form-check-input " type = " radio " name = " eqslimport " id = " upload " value = " upload " checked />
< label class = " form-check-label " for = " exampleRadios1 " >
2020-10-28 18:03:30 +00:00
Import from file ...
2020-06-17 15:17:46 +01:00
</ label >
2023-10-03 12:15:33 +02:00
< br >
2023-08-27 14:53:57 +02:00
< p > Upload the Exported ADIF file from eQSL from the < a href = " https://eqsl.cc/qslcard/DownloadInBox.cfm " target = " _blank " > Download Inbox </ a > page , to mark QSOs as confirmed on eQSL .</ p >
2023-07-04 18:49:00 +00:00
< p > Choose Station ( location ) eQSL File belongs to :</ p >
2023-11-14 13:35:53 +01:00
< select name = " station_profile " class = " form-select mb-2 me-sm-2 " style = " width: 20%; " >
2023-07-04 18:49:00 +00:00
< option value = " 0 " > Select Station Location </ option >
2026-07-18 22:01:33 +01:00
< ? php if ( isset ( $station_profile )) { foreach ( $station_profile -> result () as $station ) {
$show_station = false ;
if ( ! empty ( $eqsl_mapping_mode )) {
$show_station = in_array (( int ) $station -> station_id , $mapped_station_ids ? ? array (), true );
} else {
$show_station = ( bool ) $station -> eqslqthnickname ;
}
if ( $show_station ) { ?>
< option value = " <?php echo $station->station_id ; ?> " < ? php if ( $station -> station_id == $this -> stations -> find_active ()) { echo " selected = \" selected \" " ; } ?> >Callsign: <?php echo $station->station_callsign; ?> (<?php echo $station->station_profile_name.") eQSL: ".(!empty($eqsl_mapping_mode) ? 'Mapped' : $station->eqslqthnickname); ?></option>
< ? php } } } ?>
2023-07-04 18:49:00 +00:00
</ select >
2024-02-05 21:30:23 +01:00
< p >< span class = " label important " > Important </ span > Log files must have the file type . adi </ p >
< input type = " file " name = " userfile " size = " 20 " />
2020-06-17 15:17:46 +01:00
</ div >
2024-02-05 21:30:23 +01:00
< hr class = " divider " >
2020-06-17 15:17:46 +01:00
< div class = " form-check " >
< input class = " form-check-input " type = " radio " name = " eqslimport " id = " fetch " value = " fetch " checked = " checked " />
2023-10-03 12:15:33 +02:00
< label class = " form-check-label " for = " exampleRadios1 " > Import directly from eQSL </ label >
2026-07-18 22:01:33 +01:00
< ? php if ( ! empty ( $eqsl_mapping_mode )) { ?>
< p > Cloudlog will use the password from each active eQSL mapping to download confirmations for mapped station callsigns and nicknames .</ p >
< ? php } else { ?>
2021-09-07 17:09:19 +01:00
< p > Cloudlog will use the eQSL credentials from your Cloudlog user profile to connect to eQSL and download confirmations .</ p >
2026-07-18 22:01:33 +01:00
< ? php } ?>
2023-11-14 13:35:53 +01:00
< div class = " row " >
< div class = " mb-3 col-sm-2 " >
2023-10-03 12:15:33 +02:00
< div class = " dxatlasdatepicker input-group date " id = " eqsl_force_from_date " data - target - input = " nearest " >
2023-11-19 13:42:56 +01:00
< input name = " eqsl_force_from_date " id = " eqsl_force_from_date " type = " date " class = " form-control w-auto " >
2023-10-03 12:15:33 +02:00
</ div >
</ div >
2023-11-14 13:35:53 +01:00
< div class = " mb-3 col-sm-5 " style = " vertical-align:middle; " >< label class = " form-label " >< ? php echo " (Select a date, only if you want to force an import with an older date) " ; //$this->lang->line(''); ?></label></div>
2023-10-03 12:15:33 +02:00
</ div >
2020-06-17 15:17:46 +01:00
</ div >
2024-02-05 21:30:23 +01:00
< hr class = " divider " >
2023-11-14 13:35:53 +01:00
< div class = " mb-3 " >< input class = " btn btn-primary " type = " submit " value = " Import eQSL QSO Matches " /></ div >
2019-05-22 17:06:47 +01:00
</ form >
</ div >
</ div >
2013-08-25 13:45:09 -05:00
</ div >