2020-05-24 22:12:58 +00:00
< ? php if ( $query -> num_rows () > 0 ) { foreach ( $query -> result () as $row ) { ?>
2020-10-28 22:20:03 +00:00
< div class = " container-fluid " >
2021-03-14 15:03:48 +00:00
< ul style = " margin-bottom: 10px; " class = " nav nav-tabs " id = " myTab " role = " tablist " >
2020-10-28 22:20:03 +00:00
< li class = " nav-item " >
2021-02-08 21:18:36 +00:00
< a class = " nav-link active " id = " table-tab " data - toggle = " tab " href = " #qsodetails " role = " tab " aria - controls = " table " aria - selected = " true " >< ? php echo $this -> lang -> line ( 'qso_details' ); ?> </a>
2020-10-28 22:20:03 +00:00
</ li >
2020-12-22 18:03:01 +00:00
< li class = " nav-item " >
2021-02-08 21:18:36 +00:00
< a id = " station-tab " class = " nav-link " data - toggle = " tab " href = " #stationdetails " role = " tab " aria - controls = " table " aria - selected = " true " >< ? php echo $this -> lang -> line ( 'cloudlog_station_profile' ); ?> </a>
2020-12-22 18:03:01 +00:00
</ li >
2020-10-28 22:20:03 +00:00
< ? php
2023-03-21 08:58:29 +00:00
if ( $row -> COL_NOTES != null ) { ?>
< li class = " nav-item " >
< a id = " notes-tab " class = " nav-link " data - toggle = " tab " href = " #notesdetails " role = " tab " aria - controls = " table " aria - selected = " true " >< ? php echo " Notes " ; ?> </a>
</ li >
< ? php } ?>
< ? php
2020-10-28 22:20:03 +00:00
if (( $this -> config -> item ( 'use_auth' )) && ( $this -> session -> userdata ( 'user_type' ) >= 2 )) {
2020-11-01 11:36:02 +00:00
echo '<li ' ;
if ( count ( $qslimages ) == 0 ) {
echo 'hidden ' ;
2020-10-28 22:20:03 +00:00
}
2020-11-01 11:36:02 +00:00
echo ' class = " qslcardtab nav-item " >
2021-02-21 14:43:21 +00:00
< a class = " nav-link " id = " qsltab " data - toggle = " tab " href = " #qslcard " role = " tab " aria - controls = " home " aria - selected = " false " > '. $this->lang->line(' general_word_qslcard ') .' </ a >
2020-11-01 11:36:02 +00:00
</ li > ' ;
2020-10-28 22:20:03 +00:00
echo ' < li class = " nav-item " >
2021-02-21 14:43:21 +00:00
< a class = " nav-link " id = " qslmanagementtab " data - toggle = " tab " href = " #qslupload " role = " tab " aria - controls = " home " aria - selected = " false " > '. $this->lang->line(' general_word_qslcard_management ') .' </ a >
2020-10-28 22:20:03 +00:00
</ li > ' ;
}
2020-11-01 11:36:02 +00:00
2020-10-28 22:20:03 +00:00
?>
</ ul >
< div class = " tab-content " id = " myTabContent " >
< div class = " tab-pane active " id = " qsodetails " role = " tabpanel " aria - labelledby = " home-tab " >
< div class = " row " >
2021-03-24 17:16:16 +00:00
< div class = " col-md " >
2020-10-28 22:20:03 +00:00
< table width = " 100% " >
< tr >
< ? php
// Get Date format
if ( $this -> session -> userdata ( 'user_date_format' )) {
// If Logged in and session exists
$custom_date_format = $this -> session -> userdata ( 'user_date_format' );
} else {
// Get Default date format from /config/cloudlog.php
$custom_date_format = $this -> config -> item ( 'qso_date_format' );
}
?>
2021-02-08 21:18:36 +00:00
< td >< ? php echo $this -> lang -> line ( 'general_word_datetime' ); ?> </td>
2020-10-28 22:20:03 +00:00
< ? php if (( $this -> config -> item ( 'use_auth' ) && ( $this -> session -> userdata ( 'user_type' ) >= 2 )) || $this -> config -> item ( 'use_auth' ) === FALSE || ( $this -> config -> item ( 'show_time' ))) { ?>
< td >< ? php $timestamp = strtotime ( $row -> COL_TIME_ON ); echo date ( $custom_date_format , $timestamp ); $timestamp = strtotime ( $row -> COL_TIME_ON ); echo " at " . date ( 'H:i' , $timestamp ); ?> </td>
< ? php } else { ?>
< td >< ? php $timestamp = strtotime ( $row -> COL_TIME_ON ); echo date ( $custom_date_format , $timestamp ); ?> </td>
< ? php } ?>
</ tr >
< tr >
2021-02-08 21:18:36 +00:00
< td >< ? php echo $this -> lang -> line ( 'gen_hamradio_callsign' ); ?> </td>
2022-06-15 13:53:54 +00:00
< td >< b >< ? php echo str_replace ( " 0 " , " Ø " , strtoupper ( $row -> COL_CALL )); ?> </b> <a target="_blank" href="https://www.qrz.com/db/<?php echo strtoupper($row->COL_CALL); ?>"><img width="16" height="16" src="<?php echo base_url(); ?>images/icons/qrz.png" alt="Lookup <?php echo strtoupper($row->COL_CALL); ?> on QRZ.com"></a> <a target="_blank" href="https://www.hamqth.com/<?php echo strtoupper($row->COL_CALL); ?>"><img width="16" height="16" src="<?php echo base_url(); ?>images/icons/hamqth.png" alt="Lookup <?php echo strtoupper($row->COL_CALL); ?> on HamQTH"></a></td>
2020-10-28 22:20:03 +00:00
</ tr >
< tr >
2021-02-08 21:18:36 +00:00
< td >< ? php echo $this -> lang -> line ( 'gen_hamradio_band' ); ?> </td>
2020-10-28 22:20:03 +00:00
< td >< ? php echo $row -> COL_BAND ; ?> </td>
</ tr >
< ? php if ( $this -> config -> item ( 'display_freq' ) == true ) { ?>
< tr >
2021-02-08 21:18:36 +00:00
< td >< ? php echo $this -> lang -> line ( 'gen_hamradio_frequency' ); ?> </td>
2021-05-06 14:44:38 +00:00
< td >< ? php echo $this -> frequency -> hz_to_mhz ( $row -> COL_FREQ ); ?> </td>
2020-10-28 22:20:03 +00:00
</ tr >
< ? php if ( $row -> COL_FREQ_RX != 0 ) { ?>
< tr >
2021-02-08 21:18:36 +00:00
< td >< ? php echo $this -> lang -> line ( 'gen_hamradio_frequency_rx' ); ?> </td>
2021-05-06 14:44:38 +00:00
< td >< ? php echo $this -> frequency -> hz_to_mhz ( $row -> COL_FREQ_RX ); ?> </td>
2020-10-28 22:20:03 +00:00
</ tr >
< ? php }} ?>
< tr >
2021-02-08 21:18:36 +00:00
< td >< ? php echo $this -> lang -> line ( 'gen_hamradio_mode' ); ?> </td>
2020-10-28 22:20:03 +00:00
< td >< ? php echo $row -> COL_SUBMODE == null ? $row -> COL_MODE : $row -> COL_SUBMODE ; ?> </td>
</ tr >
< tr >
2021-02-08 21:18:36 +00:00
< td >< ? php echo $this -> lang -> line ( 'gen_hamradio_rsts' ); ?> </td>
2022-01-01 20:33:48 +00:00
< td >< ? php echo $row -> COL_RST_SENT ; ?> <?php if ($row->COL_STX) { ?>(<?php printf("%03d", $row->COL_STX);?>)<?php } ?> <?php if ($row->COL_STX_STRING) { ?>(<?php echo $row->COL_STX_STRING;?>)<?php } ?></td>
2020-10-28 22:20:03 +00:00
</ tr >
< tr >
2021-02-08 21:18:36 +00:00
< td >< ? php echo $this -> lang -> line ( 'gen_hamradio_rstr' ); ?> </td>
2022-01-01 20:33:48 +00:00
< td >< ? php echo $row -> COL_RST_RCVD ; ?> <?php if ($row->COL_SRX) { ?>(<?php printf("%03d", $row->COL_SRX);?>)<?php } ?> <?php if ($row->COL_SRX_STRING) { ?>(<?php echo $row->COL_SRX_STRING;?>)<?php } ?></td>
2020-10-28 22:20:03 +00:00
</ tr >
< ? php if ( $row -> COL_GRIDSQUARE != null ) { ?>
< tr >
< td > Gridsquare :</ td >
2022-02-21 21:53:09 +00:00
< td >< ? php echo $row -> COL_GRIDSQUARE ; ?> <a href="javascript:spawnQrbCalculator('<?php echo $row->station_gridsquare . '\',\'' . $row->COL_GRIDSQUARE; ?>')"><i class="fas fa-globe"></i></a></td>
2020-10-28 22:20:03 +00:00
</ tr >
< ? php } ?>
2021-06-07 16:28:26 +00:00
< ? php if ( $row -> COL_GRIDSQUARE != null && strlen ( $row -> COL_GRIDSQUARE ) >= 4 ) { ?>
2020-10-28 22:20:03 +00:00
<!-- Total Distance Between the Station Profile Gridsquare and Logged Square -->
< tr >
2021-02-08 21:18:36 +00:00
< td >< ? php echo $this -> lang -> line ( 'general_total_distance' ); //Total distance ?></td>
2020-10-28 22:20:03 +00:00
< td >
< ? php
// Load the QRA Library
$CI =& get_instance ();
$CI -> load -> library ( 'qra' );
// Cacluate Distance
2022-08-09 19:20:36 +00:00
$distance = $CI -> qra -> distance ( $row -> station_gridsquare , $row -> COL_GRIDSQUARE , $measurement_base );
2020-10-28 22:20:03 +00:00
switch ( $measurement_base ) {
case 'M' :
2022-08-09 19:20:36 +00:00
$distance .= " mi " ;
2020-10-28 22:20:03 +00:00
break ;
case 'K' :
2022-08-09 19:20:36 +00:00
$distance .= " km " ;
2020-10-28 22:20:03 +00:00
break ;
case 'N' :
2022-08-09 19:20:36 +00:00
$distance .= " nmi " ;
2020-10-28 22:20:03 +00:00
break ;
}
2022-08-09 19:20:36 +00:00
echo $distance ;
2020-10-28 22:20:03 +00:00
?>
</ td >
</ tr >
< ? php } ?>
< ? php if ( $row -> COL_VUCC_GRIDS != null ) { ?>
< tr >
< td > Gridsquare ( Multi ) :</ td >
2022-02-21 21:53:09 +00:00
< td >< ? php echo $row -> COL_VUCC_GRIDS ; ?> <a href="javascript:spawnQrbCalculator('<?php echo $row->station_gridsquare . '\',\'' . $row->COL_VUCC_GRIDS; ?>')"><i class="fas fa-globe"></i></a></td>
2020-10-28 22:20:03 +00:00
</ tr >
< ? php } ?>
< ? php if ( $row -> COL_STATE != null ) { ?>
< tr >
< td > USA State :</ td >
< td >< ? php echo $row -> COL_STATE ; ?> </td>
</ tr >
< ? php } ?>
2021-03-09 13:30:13 +00:00
< ? php if ( $row -> COL_CNTY != null && $row -> COL_CNTY != " , " ) { ?>
2021-01-31 14:27:56 +00:00
< tr >
< td > USA County :</ td >
2021-02-07 16:15:32 +00:00
< td >< ? php echo $row -> COL_CNTY ; ?> </td>
2021-01-31 14:27:56 +00:00
</ tr >
< ? php } ?>
2020-10-28 22:20:03 +00:00
< ? php if ( $row -> COL_NAME != null ) { ?>
< tr >
2021-02-08 21:18:36 +00:00
< td >< ? php echo $this -> lang -> line ( 'general_word_name' ); ?> </td>
2020-10-28 22:20:03 +00:00
< td >< ? php echo $row -> COL_NAME ; ?> </td>
</ tr >
< ? php } ?>
< ? php if (( $this -> config -> item ( 'use_auth' ) && ( $this -> session -> userdata ( 'user_type' ) >= 2 )) || $this -> config -> item ( 'use_auth' ) === FALSE ) { ?>
< ? php if ( $row -> COL_COMMENT != null ) { ?>
< tr >
2021-02-08 21:18:36 +00:00
< td >< ? php echo $this -> lang -> line ( 'general_word_comment' ); ?> </td>
2020-10-28 22:20:03 +00:00
< td >< ? php echo $row -> COL_COMMENT ; ?> </td>
</ tr >
< ? php } ?>
< ? php } ?>
< ? php if ( $row -> COL_SAT_NAME != null ) { ?>
< tr >
2021-02-08 21:18:36 +00:00
< td >< ? php echo $this -> lang -> line ( 'gen_hamradio_satellite_name' ); ?> </td>
2022-08-11 10:41:59 +00:00
< td >< a href = " https://db.satnogs.org/search/?q=<?php echo $row->COL_SAT_NAME ; ?> " target = " _blank " >< ? php echo $row -> COL_SAT_NAME ; ?> </a></td>
2020-10-28 22:20:03 +00:00
</ tr >
< ? php } ?>
< ? php if ( $row -> COL_SAT_MODE != null ) { ?>
< tr >
2021-02-08 21:18:36 +00:00
< td >< ? php echo $this -> lang -> line ( 'gen_hamradio_satellite_mode' ); ?> </td>
2020-10-28 22:20:03 +00:00
< td >< ? php echo $row -> COL_SAT_MODE ; ?> </td>
</ tr >
< ? php } ?>
< ? php if ( $row -> COL_COUNTRY != null ) { ?>
< tr >
2021-02-21 22:31:09 +00:00
< td >< ? php echo $this -> lang -> line ( 'general_word_country' ); ?> </td>
2022-09-19 06:58:21 +00:00
< td >< ? php echo ucwords ( strtolower (( $row -> COL_COUNTRY )), " - (/ " ); ?> </td>
2020-10-28 22:20:03 +00:00
</ tr >
< ? php } ?>
2023-02-04 16:41:21 +00:00
< ? php if ( $row -> COL_CONT != null ) { ?>
< tr >
< td >< ? php echo $this -> lang -> line ( 'gen_hamradio_continent' ); ?> </td>
< td >
< ? php
switch ( $row -> COL_CONT ) {
case " AF " :
echo $this -> lang -> line ( 'africa' );
break ;
case " AN " :
echo $this -> lang -> line ( 'antarctica' );
break ;
case " AS " :
echo $this -> lang -> line ( 'asia' );
break ;
case " EU " :
echo $this -> lang -> line ( 'europe' );
break ;
case " NA " :
echo $this -> lang -> line ( 'northamerica' );
break ;
case " OC " :
echo $this -> lang -> line ( 'oceania' );
break ;
case " SA " :
echo $this -> lang -> line ( 'southamerica' );
break ;
}
?>
</ td >
</ tr >
< ? php } ?>
2020-12-22 17:54:32 +00:00
< ? php if ( $row -> COL_CONTEST_ID != null ) { ?>
< tr >
2021-02-08 21:18:36 +00:00
< td >< ? php echo $this -> lang -> line ( 'contesting_contest_name' ); ?> </td>
2020-12-22 17:54:32 +00:00
< td >< ? php echo $row -> COL_CONTEST_ID ; ?> </td>
</ tr >
< ? php } ?>
2020-10-28 22:20:03 +00:00
< ? php if ( $row -> COL_IOTA != null ) { ?>
< tr >
2021-02-08 21:18:36 +00:00
< td >< ? php echo $this -> lang -> line ( 'gen_hamradio_iota_reference' ); ?> </td>
2022-05-09 12:57:26 +00:00
< td >< a href = " https://www.iota-world.org/iotamaps/?grpref=<?php echo $row->COL_IOTA ; ?> " target = " _blank " >< ? php echo $row -> COL_IOTA ; ?> </a></td>
2020-10-28 22:20:03 +00:00
</ tr >
< ? php } ?>
< ? php if ( $row -> COL_SOTA_REF != null ) { ?>
< tr >
2021-02-08 21:18:36 +00:00
< td >< ? php echo $this -> lang -> line ( 'gen_hamradio_sota_reference' ); ?> </td>
2022-01-03 10:07:29 +00:00
< td >< a href = " https://summits.sota.org.uk/summit/<?php echo $row->COL_SOTA_REF ; ?> " target = " _blank " >< ? php echo $row -> COL_SOTA_REF ; ?> </a></td>
2020-10-28 22:20:03 +00:00
</ tr >
< ? php } ?>
2022-08-15 14:57:37 +00:00
< ? php if ( $row -> COL_WWFF_REF != null ) { ?>
< tr >
< td >< ? php echo $this -> lang -> line ( 'gen_hamradio_wwff_reference' ); ?> </td>
2022-10-18 16:54:50 +00:00
< td >< a href = " https://www.cqgma.org/zinfo.php?ref=<?php echo $row->COL_WWFF_REF ; ?> " target = " _blank " >< ? php echo $row -> COL_WWFF_REF ; ?> </a></td>
2022-08-15 14:57:37 +00:00
</ tr >
< ? php } ?>
2022-10-05 15:05:53 +00:00
< ? php if ( $row -> COL_POTA_REF != null ) { ?>
< tr >
< td >< ? php echo $this -> lang -> line ( 'gen_hamradio_pota_reference' ); ?> </td>
2022-10-05 15:59:49 +00:00
< td >< a href = " https://pota.app/#/park/<?php echo $row->COL_POTA_REF ; ?> " target = " _blank " >< ? php echo $row -> COL_POTA_REF ; ?> </a></td>
2022-10-05 15:05:53 +00:00
</ tr >
< ? php } ?>
2020-11-16 20:21:59 +00:00
< ? php if ( $row -> COL_SIG != null ) { ?>
< tr >
2021-02-08 21:18:36 +00:00
< td >< ? php echo $this -> lang -> line ( 'gen_hamradio_sig' ); ?> </td>
2020-11-16 20:21:59 +00:00
< td >< ? php echo $row -> COL_SIG ; ?> </td>
</ tr >
< ? php } ?>
< ? php if ( $row -> COL_SIG_INFO != null ) { ?>
< tr >
2021-02-08 21:18:36 +00:00
< td >< ? php echo $this -> lang -> line ( 'gen_hamradio_sig_info' ); ?> </td>
2022-07-08 10:18:25 +00:00
< ? php
switch ( $row -> COL_SIG ) {
case " GMA " :
echo " <td><a href= \" https://www.cqgma.org/zinfo.php?ref= " . $row -> COL_SIG_INFO . " \" target= \" _blank \" > " . $row -> COL_SIG_INFO . " </a></td> " ;
break ;
2022-08-16 11:49:06 +00:00
case " MQC " :
echo " <td><a href= \" https://www.mountainqrp.it/awards/referenza.php?ref= " . $row -> COL_SIG_INFO . " \" target= \" _blank \" > " . $row -> COL_SIG_INFO . " </a></td> " ;
break ;
2022-07-08 10:18:25 +00:00
default :
echo " <td> " . $row -> COL_SIG_INFO . " </td> " ;
break ;
}
?>
2020-11-16 20:21:59 +00:00
</ tr >
< ? php } ?>
2020-10-28 22:20:03 +00:00
< ? php if ( $row -> COL_DARC_DOK != null ) { ?>
< tr >
2021-02-08 21:18:36 +00:00
< td >< ? php echo $this -> lang -> line ( 'gen_hamradio_dok' ); ?> </td>
2022-04-16 16:04:27 +00:00
< ? php if ( preg_match ( '/^[A-Y]\d{2}$/' , $row -> COL_DARC_DOK )) { ?>
2022-01-03 10:07:29 +00:00
< td >< a href = " https://www.darc.de/<?php echo $row->COL_DARC_DOK ; ?> " target = " _blank " >< ? php echo $row -> COL_DARC_DOK ; ?> </a></td>
2022-04-16 16:04:27 +00:00
< ? php } else if ( preg_match ( '/^Z\d{2}$/' , $row -> COL_DARC_DOK )) { ?>
< td >< a href = " https://<?php echo $row->COL_DARC_DOK ; ?>.vfdb.org " target = " _blank " >< ? php echo $row -> COL_DARC_DOK ; ?> </a></td>
< ? php } else { ?>
< td >< ? php echo $row -> COL_DARC_DOK ; ?> </td>
< ? php } ?>
2020-10-28 22:20:03 +00:00
</ tr >
< ? php } ?>
</ table >
< ? php if ( $row -> COL_QSL_SENT == " Y " || $row -> COL_QSL_RCVD == " Y " ) { ?>
2021-02-08 21:18:36 +00:00
< h3 >< ? php echo $this -> lang -> line ( 'qslcard_info' ); ?> </h3>
2020-10-28 22:20:03 +00:00
2022-11-10 13:45:40 +00:00
< ? php if ( $row -> COL_QSL_SENT == " Y " ) { ?>
< ? php if ( $row -> COL_QSL_SENT_VIA == " B " ) { ?>
< p >< ? php echo $this -> lang -> line ( 'qslcard_sent_bureau' ); ?>
< ? php } else if ( $row -> COL_QSL_SENT_VIA == " D " ) { ?>
< p >< ? php echo $this -> lang -> line ( 'qslcard_sent_direct' ); ?>
< ? php } else if ( $row -> COL_QSL_SENT_VIA == " E " ) { ?>
< p >< ? php echo $this -> lang -> line ( 'qslcard_sent_electronic' ); ?>
< ? php } else if ( $row -> COL_QSL_SENT_VIA == " M " ) { ?>
< p >< ? php echo $this -> lang -> line ( 'qslcard_sent_manager' ); ?>
< ? php } else { ?>
< p >< ? php echo $this -> lang -> line ( 'qslcard_sent' ); ?>
< ? php } ?>
2022-12-22 07:32:12 +00:00
< ? php if ( $row -> COL_QSLSDATE != null ) { ?>
< ? php $timestamp = strtotime ( $row -> COL_QSLSDATE ); echo " ( " . date ( $custom_date_format , $timestamp ) . " ) " ; ?> </p>
< ? php } ?>
2020-10-28 22:20:03 +00:00
< ? php } ?>
2022-11-10 13:45:40 +00:00
< ? php if ( $row -> COL_QSL_RCVD == " Y " ) { ?>
< ? php if ( $row -> COL_QSL_RCVD_VIA == " B " ) { ?>
< p >< ? php echo $this -> lang -> line ( 'qslcard_rcvd_bureau' ); ?>
< ? php } else if ( $row -> COL_QSL_RCVD_VIA == " D " ) { ?>
< p >< ? php echo $this -> lang -> line ( 'qslcard_rcvd_direct' ); ?>
< ? php } else if ( $row -> COL_QSL_RCVD_VIA == " E " ) { ?>
< p >< ? php echo $this -> lang -> line ( 'qslcard_rcvd_electronic' ); ?>
< ? php } else if ( $row -> COL_QSL_RCVD_VIA == " M " ) { ?>
< p >< ? php echo $this -> lang -> line ( 'qslcard_rcvd_manager' ); ?>
< ? php } else { ?>
< p >< ? php echo $this -> lang -> line ( 'qslcard_rcvd' ); ?>
< ? php } ?>
2022-12-22 07:32:12 +00:00
< ? php if ( $row -> COL_QSLRDATE != null ) { ?>
< ? php $timestamp = strtotime ( $row -> COL_QSLRDATE ); echo " ( " . date ( $custom_date_format , $timestamp ) . " ) " ; ?> </p>
< ? php } ?>
2020-10-28 22:20:03 +00:00
< ? php } ?>
< ? php } ?>
< ? php if ( $row -> COL_LOTW_QSL_RCVD == " Y " ) { ?>
2021-02-08 21:18:36 +00:00
< h3 >< ? php echo $this -> lang -> line ( 'lotw_short' ); ?> </h3>
2021-03-14 15:11:21 +00:00
< p >< ? php echo $this -> lang -> line ( 'gen_this_qso_was_confirmed_on' ); ?> <?php $timestamp = strtotime($row->COL_LOTW_QSLRDATE); echo date($custom_date_format, $timestamp); ?>.</p>
< ? php } ?>
< ? php if ( $row -> COL_EQSL_QSL_RCVD == " Y " ) { ?>
< h3 > eQSL </ h3 >
< p >< ? php echo $this -> lang -> line ( 'gen_this_qso_was_confirmed_on' ); ?> <?php $timestamp = strtotime($row->COL_EQSL_QSLRDATE); echo date($custom_date_format, $timestamp); ?>.</p>
2020-10-28 22:20:03 +00:00
< ? php } ?>
2020-12-22 18:03:01 +00:00
</ div >
2021-03-24 17:16:16 +00:00
< div class = " col-md " >
2020-10-28 22:20:03 +00:00
2021-03-14 15:03:48 +00:00
< div id = " mapqso " style = " width: 100%; height: 250px " ></ div >
2020-10-28 22:20:03 +00:00
2020-12-22 18:03:01 +00:00
< ? php if (( $this -> config -> item ( 'use_auth' ) && ( $this -> session -> userdata ( 'user_type' ) >= 2 )) || $this -> config -> item ( 'use_auth' ) === FALSE ) { ?>
< br >
2022-10-19 21:27:13 +00:00
< div style = " display: inline-block; " >< p class = " editButton " >< a class = " btn btn-primary " href = " <?php echo site_url('qso/edit'); ?>/<?php echo $row->COL_PRIMARY_KEY ; ?> " href = " javascript:; " >< i class = " fas fa-edit " ></ i >< ? php echo $this -> lang -> line ( 'qso_btn_edit_qso' ); ?> </a></p></div>
2022-10-30 15:53:01 +00:00
< div style = " display: inline-block; " >< form method = " POST " action = " <?php echo site_url('search'); ?> " >< input type = " hidden " value = " <?php echo strtoupper( $row->COL_CALL ); ?> " name = " callsign " >< button class = " btn btn-primary " type = " submit " >< i class = " fas fa-eye " ></ i > More QSOs </ button ></ form ></ div >
2020-12-22 18:03:01 +00:00
< ? php } ?>
< ? php
if ( $row -> COL_SAT_NAME != null ) {
$twitter_band_sat = $row -> COL_SAT_NAME ;
$hashtags = " #hamr #cloudlog #amsat " ;
} else {
$twitter_band_sat = $row -> COL_BAND ;
$hashtags = " #hamr #cloudlog " ;
}
2022-08-24 16:18:11 +00:00
if ( ! isset ( $distance )) {
$twitter_string = urlencode ( " Just worked " . $row -> COL_CALL . " in " . ucwords ( strtolower (( $row -> COL_COUNTRY ))) . " on " . $twitter_band_sat . " using " . ( $row -> COL_SUBMODE == null ? $row -> COL_MODE : $row -> COL_SUBMODE ) . " " . $hashtags );
} else {
$twitter_string = urlencode ( " Just worked " . $row -> COL_CALL . " in " . ucwords ( strtolower (( $row -> COL_COUNTRY ))) . " (Gridsquare: " . $row -> COL_GRIDSQUARE . " / distance: " . $distance . " ) on " . $twitter_band_sat . " using " . ( $row -> COL_SUBMODE == null ? $row -> COL_MODE : $row -> COL_SUBMODE ) . " " . $hashtags );
}
2020-12-22 18:03:01 +00:00
?>
2022-11-07 17:53:41 +00:00
< div style = " display: inline-block; " >< a class = " btn btn-primary twitter-share-button " target = " _blank " href = " https://twitter.com/intent/tweet?text=<?php echo $twitter_string ; ?> " >< i class = " fab fa-twitter " ></ i > Tweet </ a ></ div >
2020-12-22 18:03:01 +00:00
</ div >
</ div >
</ div >
< div class = " tab-pane fade " id = " stationdetails " role = " tabpanel " aria - labelledby = " table-tab " >
< h3 > Station Details </ h3 >
< table width = " 100% " >
2020-10-28 22:20:03 +00:00
< tr >
< td > Station Callsign </ td >
< td >< ? php echo $row -> station_callsign ; ?> </td>
</ tr >
2022-04-27 19:52:55 +00:00
< tr >
< td > Station Name </ td >
< td >< ? php echo $row -> station_profile_name ; ?> </td>
</ tr >
2020-10-28 22:20:03 +00:00
< tr >
< td > Station Gridsquare </ td >
< td >< ? php echo $row -> station_gridsquare ; ?> </td>
</ tr >
< ? php if ( $row -> station_city ) { ?>
< tr >
2021-03-14 15:03:48 +00:00
< td > Station City </ td >
2020-10-28 22:20:03 +00:00
< td >< ? php echo $row -> station_city ; ?> </td>
</ tr >
< ? php } ?>
< ? php if ( $row -> station_country ) { ?>
< tr >
2021-03-14 15:03:48 +00:00
< td > Station Country </ td >
2022-09-19 06:58:21 +00:00
< td >< ? php echo ucwords ( strtolower (( $row -> station_country )), " - (/ " ); ?> </td>
2020-10-28 22:20:03 +00:00
</ tr >
< ? php } ?>
< ? php if ( $row -> COL_OPERATOR ) { ?>
< tr >
< td > Station Operator </ td >
< td >< ? php echo $row -> COL_OPERATOR ; ?> </td>
</ tr >
< ? php } ?>
< ? php if ( $row -> COL_TX_PWR ) { ?>
< tr >
< td > Station Transmit Power </ td >
< td >< ? php echo $row -> COL_TX_PWR ; ?> w</td>
</ tr >
< ? php } ?>
2022-08-17 12:33:15 +00:00
< ? php if ( $row -> COL_MY_WWFF_REF ) { ?>
< tr >
< td > Station WWFF Reference </ td >
< td >< ? php echo $row -> COL_MY_WWFF_REF ; ?> </td>
</ tr >
< ? php } ?>
2022-10-05 15:05:53 +00:00
< ? php if ( $row -> COL_MY_POTA_REF ) { ?>
< tr >
< td > Station POTA Reference </ td >
< td >< ? php echo $row -> COL_MY_POTA_REF ; ?> </td>
</ tr >
< ? php } ?>
2020-12-22 18:03:01 +00:00
</ table >
2020-10-28 22:20:03 +00:00
</ div >
2023-03-21 08:58:29 +00:00
< div class = " tab-pane fade " id = " notesdetails " role = " tabpanel " aria - labelledby = " table-tab " >
< h3 > Notes </ h3 >
< ? php echo nl2br ( $row -> COL_NOTES ); ?>
</ div >
2020-10-28 22:20:03 +00:00
< ? php
if (( $this -> config -> item ( 'use_auth' )) && ( $this -> session -> userdata ( 'user_type' ) >= 2 )) {
?>
< div class = " tab-pane fade " id = " qslupload " role = " tabpanel " aria - labelledby = " table-tab " >
< ? php
if ( count ( $qslimages ) > 0 ) {
echo ' < table style = " width:100% " class = " qsltable table table-sm table-bordered table-hover table-striped table-condensed " >
< thead >
< tr >
< th style = \ ' text - align : center\ ' > QSL image file </ th >
< th style = \ ' text - align : center\ ' ></ th >
2020-11-01 20:45:47 +00:00
< th style = \ ' text - align : center\ ' ></ th >
2020-10-28 22:20:03 +00:00
</ tr >
</ thead >< tbody > ' ;
foreach ( $qslimages as $qsl ) {
echo '<tr>' ;
echo '<td style=\'text-align: center\'>' . $qsl -> filename . '</td>' ;
2020-11-01 11:36:02 +00:00
echo '<td id="' . $qsl -> id . '" style=\'text-align: center\'><button onclick="deleteQsl(' . $qsl -> id . ')" class="btn btn-sm btn-danger">Delete</button></td>' ;
2020-11-01 20:45:47 +00:00
echo '<td style=\'text-align: center\'><button onclick="viewQsl(\'' . $qsl -> filename . '\')" class="btn btn-sm btn-success">View</button></td>' ;
2020-10-28 22:20:03 +00:00
echo '</tr>' ;
}
echo '</tbody></table>' ;
}
?>
2020-11-02 17:23:41 +00:00
< p >< div class = " alert alert-warning " role = " alert " >< span class = " badge badge-warning " > Warning </ span > Maximum file upload size is < ? php echo $max_upload ; ?> B.</div></p>
2020-11-01 11:36:02 +00:00
< form class = " form " id = " fileinfo " name = " fileinfo " enctype = " multipart/form-data " >
2020-10-28 22:20:03 +00:00
< fieldset >
< div class = " form-group " >
2021-02-08 21:18:36 +00:00
< label for = " qslcardfront " >< ? php echo $this -> lang -> line ( 'qslcard_upload_front' ); ?> </label>
2020-11-03 13:52:14 +00:00
< input class = " form-control-file " type = " file " id = " qslcardfront " name = " qslcardfront " accept = " image/* " >
2020-10-28 22:20:03 +00:00
</ div >
2020-10-29 19:18:51 +00:00
< div class = " form-group " >
2021-02-08 21:18:36 +00:00
< label for = " qslcardback " >< ? php echo $this -> lang -> line ( 'qslcard_upload_back' ); ?> </label>
2020-11-03 13:52:14 +00:00
< input class = " form-control-file " type = " file " id = " qslcardback " name = " qslcardback " accept = " image/* " >
2020-10-29 19:18:51 +00:00
</ div >
2020-10-28 22:20:03 +00:00
< input type = " hidden " class = " form-control " id = " qsoinputid " name = " qsoid " value = " <?php echo $row->COL_PRIMARY_KEY ; ?> " >
2021-02-08 21:18:36 +00:00
< button type = " button " onclick = " uploadQsl(); " id = " button1id " name = " button1id " class = " btn btn-primary " >< ? php echo $this -> lang -> line ( 'qslcard_upload_button' ); ?> </button>
2020-10-28 22:20:03 +00:00
</ fieldset >
</ form >
</ div >
< div class = " tab-pane fade " id = " qslcard " role = " tabpanel " aria - labelledby = " table-tab " >
< div id = " carouselExampleIndicators " class = " carousel slide " data - ride = " carousel " >
< ol class = " carousel-indicators " >
< ? php
$i = 0 ;
foreach ( $qslimages as $image ) {
echo '<li data-target="#carouselExampleIndicators" data-slide-to="' . $i . '"' ;
if ( $i == 0 ) {
echo 'class="active"' ;
}
$i ++ ;
echo '></li>' ;
}
?>
</ ol >
< div class = " carousel-inner " >
< ? php
$i = 1 ;
foreach ( $qslimages as $image ) {
2020-11-01 11:36:02 +00:00
echo '<div class="carousel-item carouselimageid_' . $image -> id ;
2020-10-28 22:20:03 +00:00
if ( $i == 1 ) {
echo ' active' ;
}
echo '">' ;
echo '<img class="d-block w-100" src="' . base_url () . '/assets/qslcard/' . $image -> filename . '" alt="QSL picture #' . $i ++. '">' ;
echo '</div>' ;
}
?>
</ div >
< a class = " carousel-control-prev " href = " #carouselExampleIndicators " role = " button " data - slide = " prev " >
< span class = " carousel-control-prev-icon " aria - hidden = " true " ></ span >
< span class = " sr-only " > Previous </ span >
</ a >
< a class = " carousel-control-next " href = " #carouselExampleIndicators " role = " button " data - slide = " next " >
< span class = " carousel-control-next-icon " aria - hidden = " true " ></ span >
< span class = " sr-only " > Next </ span >
</ a >
</ div >
</ div >
< ? php
}
?>
</ div >
2020-03-02 20:13:19 +00:00
</ div >
2011-07-21 23:10:09 +00:00
< ? php
2021-06-07 16:28:26 +00:00
if ( $row -> COL_GRIDSQUARE != null && strlen ( $row -> COL_GRIDSQUARE ) >= 4 ) {
$stn_loc = $this -> qra -> qra2latlong ( trim ( $row -> COL_GRIDSQUARE ));
if ( $stn_loc [ 0 ] != 0 ) {
$lat = $stn_loc [ 0 ];
$lng = $stn_loc [ 1 ];
}
2022-04-04 14:15:24 +00:00
} elseif ( $row -> COL_VUCC_GRIDS != null ) {
$grids = explode ( " , " , $row -> COL_VUCC_GRIDS );
if ( count ( $grids ) == 2 ) {
$grid1 = $this -> qra -> qra2latlong ( trim ( $grids [ 0 ]));
$grid2 = $this -> qra -> qra2latlong ( trim ( $grids [ 1 ]));
$coords [] = array ( 'lat' => $grid1 [ 0 ], 'lng' => $grid1 [ 1 ]);
$coords [] = array ( 'lat' => $grid2 [ 0 ], 'lng' => $grid2 [ 1 ]);
$midpoint = $this -> qra -> get_midpoint ( $coords );
$lat = $midpoint [ 0 ];
$lng = $midpoint [ 1 ];
}
if ( count ( $grids ) == 4 ) {
$grid1 = $this -> qra -> qra2latlong ( trim ( $grids [ 0 ]));
$grid2 = $this -> qra -> qra2latlong ( trim ( $grids [ 1 ]));
$grid3 = $this -> qra -> qra2latlong ( trim ( $grids [ 2 ]));
$grid4 = $this -> qra -> qra2latlong ( trim ( $grids [ 3 ]));
$coords [] = array ( 'lat' => $grid1 [ 0 ], 'lng' => $grid1 [ 1 ]);
$coords [] = array ( 'lat' => $grid2 [ 0 ], 'lng' => $grid2 [ 1 ]);
$coords [] = array ( 'lat' => $grid3 [ 0 ], 'lng' => $grid3 [ 1 ]);
$coords [] = array ( 'lat' => $grid4 [ 0 ], 'lng' => $grid4 [ 1 ]);
$midpoint = $this -> qra -> get_midpoint ( $coords );
$lat = $midpoint [ 0 ];
$lng = $midpoint [ 1 ];
}
2013-02-15 00:27:27 +00:00
} else {
2022-07-04 06:46:33 +00:00
if ( isset ( $row -> lat )) {
$lat = $row -> lat ;
} else {
$lat = 0 ;
}
2019-12-04 20:02:37 +00:00
2022-07-04 06:46:33 +00:00
if ( isset ( $row -> long )) {
$lng = $row -> long ;
} else {
$lng = 0 ;
2021-06-07 16:28:26 +00:00
}
2013-02-15 00:27:27 +00:00
}
2011-07-21 23:10:09 +00:00
?>
2018-11-27 14:11:14 +00:00
< script >
2019-05-25 17:43:32 +00:00
var lat = < ? php echo $lat ; ?> ;
var long = < ? php echo $lng ; ?> ;
var callsign = " <?php echo $row->COL_CALL ; ?> " ;
2018-11-27 14:11:14 +00:00
</ script >
2020-09-18 10:17:41 +00:00
< div hidden id = 'lat' >< ? php echo $lat ; ?> </div>
< div hidden id = 'long' >< ? php echo $lng ; ?> </div>
< div hidden id = 'callsign' >< ? php echo $row -> COL_CALL ; ?> </div>
< div hidden id = 'qsoid' >< ? php echo $row -> COL_PRIMARY_KEY ; ?> </div>
2011-07-21 23:10:09 +00:00
2022-01-01 20:33:48 +00:00
< ? php } } ?>