| 
									
										
										
										
											2019-04-08 22:36:23 +08:00
										 |  |  | <div class="container dashboard"> | 
					
						
							| 
									
										
										
										
											2011-08-23 02:31:53 +08:00
										 |  |  | <?php if(($this->config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_auth') === FALSE) { ?>
 | 
					
						
							| 
									
										
										
										
											2019-03-21 00:58:06 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	<?php if($todays_qsos >= 1) { ?>
 | 
					
						
							|  |  |  | 		<div class="alert alert-success" role="alert"> | 
					
						
							| 
									
										
										
										
											2020-09-29 02:16:22 +08:00
										 |  |  | 			  <?php echo $this->lang->line('dashboard_you_have_had'); ?> <strong><?php echo $todays_qsos; ?></strong> <?php echo $this->lang->line('dashboard_qsos_today'); ?>
 | 
					
						
							| 
									
										
										
										
											2019-03-21 00:58:06 +08:00
										 |  |  | 		</div> | 
					
						
							|  |  |  | 	<?php } else { ?>
 | 
					
						
							|  |  |  | 		<div class="alert alert-danger" role="alert"> | 
					
						
							| 
									
										
										
										
											2020-09-29 02:16:22 +08:00
										 |  |  | 			  <span class="badge badge-info"><?php echo $this->lang->line('general_word_important'); ?></span> <i class="fas fa-broadcast-tower"></i> <?php echo $this->lang->line('notice_turn_the_radio_on'); ?>
 | 
					
						
							| 
									
										
										
										
											2019-03-21 00:58:06 +08:00
										 |  |  | 		</div> | 
					
						
							|  |  |  | 	<?php } ?>
 | 
					
						
							| 
									
										
										
										
											2019-10-03 19:56:25 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	<?php if($current_active == 0) { ?>
 | 
					
						
							|  |  |  | 		<div class="alert alert-danger" role="alert"> | 
					
						
							| 
									
										
										
										
											2020-09-29 02:16:22 +08:00
										 |  |  | 		  <?php echo $this->lang->line('error_no_active_station_profile'); ?>
 | 
					
						
							| 
									
										
										
										
											2019-10-03 19:56:25 +08:00
										 |  |  | 		</div> | 
					
						
							|  |  |  | 	<?php } ?>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-08-23 02:31:53 +08:00
										 |  |  | <?php } ?>
 | 
					
						
							| 
									
										
										
										
											2020-08-23 06:34:15 +08:00
										 |  |  | </div> | 
					
						
							| 
									
										
										
										
											2011-06-17 20:52:00 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-11-07 07:09:51 +08:00
										 |  |  | <!-- Map --> | 
					
						
							| 
									
										
										
										
											2020-08-23 06:34:15 +08:00
										 |  |  | <div id="map" style="width: 100%; height: 350px"></div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <div style="padding-top: 0px; margin-top: 5px;" class="container dashboard"> | 
					
						
							| 
									
										
										
										
											2011-11-07 07:09:51 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | <!-- Log Data --> | 
					
						
							| 
									
										
										
										
											2019-04-08 22:36:23 +08:00
										 |  |  | <div class="row logdata"> | 
					
						
							|  |  |  |   <div class="col-sm-8"> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   	<div class="table-responsive"> | 
					
						
							| 
									
										
										
										
											2019-03-21 00:58:06 +08:00
										 |  |  |     	<table class="table table-striped table-hover"> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     		<thead> | 
					
						
							|  |  |  | 				<tr class="titles"> | 
					
						
							| 
									
										
										
										
											2020-09-29 02:16:22 +08:00
										 |  |  | 					<th><?php echo $this->lang->line('general_word_date'); ?></th>
 | 
					
						
							| 
									
										
										
										
											2019-06-23 23:00:14 +08: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'))) { ?>
 | 
					
						
							| 
									
										
										
										
											2020-09-29 02:16:22 +08:00
										 |  |  | 					<th><?php echo $this->lang->line('general_word_time'); ?></th>
 | 
					
						
							| 
									
										
										
										
											2019-06-23 23:00:14 +08:00
										 |  |  | 					<?php } ?>
 | 
					
						
							| 
									
										
										
										
											2020-09-29 02:16:22 +08:00
										 |  |  | 					<th><?php echo $this->lang->line('gen_hamradio_call'); ?></th>
 | 
					
						
							|  |  |  | 					<th><?php echo $this->lang->line('gen_hamradio_mode'); ?></th>
 | 
					
						
							|  |  |  | 					<th class="d-none d-sm-table-cell"><?php echo $this->lang->line('gen_hamradio_rst_sent'); ?></th>
 | 
					
						
							|  |  |  | 					<th class="d-none d-sm-table-cell"><?php echo $this->lang->line('gen_hamradio_rst_recv'); ?></th>
 | 
					
						
							|  |  |  | 					<th><?php echo $this->lang->line('gen_hamradio_band'); ?></th>
 | 
					
						
							| 
									
										
										
										
											2019-03-21 00:58:06 +08:00
										 |  |  | 				</tr> | 
					
						
							|  |  |  | 			</thead> | 
					
						
							| 
									
										
										
										
											2011-11-07 07:09:51 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-02-21 19:40:05 +08:00
										 |  |  | 			<?php  | 
					
						
							|  |  |  | 			$i = 0;  | 
					
						
							| 
									
										
										
										
											2011-11-07 07:09:51 +08:00
										 |  |  | 			foreach ($last_five_qsos->result() as $row) { ?>
 | 
					
						
							|  |  |  | 				<?php  echo '<tr class="tr'.($i & 1).'">'; ?>
 | 
					
						
							| 
									
										
										
										
											2020-09-16 05:04:47 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 					<?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'); | 
					
						
							|  |  |  | 					} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 					?>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 					<td><?php $timestamp = strtotime($row->COL_TIME_ON); echo date($custom_date_format, $timestamp); ?></td>
 | 
					
						
							| 
									
										
										
										
											2019-06-22 18:34:06 +08: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'))) { ?>
 | 
					
						
							| 
									
										
										
										
											2011-11-07 07:09:51 +08:00
										 |  |  | 					<td><?php $timestamp = strtotime($row->COL_TIME_ON); echo date('H:i', $timestamp); ?></td>
 | 
					
						
							| 
									
										
										
										
											2019-06-22 04:25:11 +08:00
										 |  |  | 					<?php } else { ?>
 | 
					
						
							|  |  |  | 					<?php } ?>
 | 
					
						
							| 
									
										
										
										
											2019-03-21 01:47:40 +08:00
										 |  |  | 					<td> | 
					
						
							| 
									
										
										
										
											2020-09-25 02:22:09 +08:00
										 |  |  |                         <a id="edit_qso" href="javascript:displayQso(<?php echo $row->COL_PRIMARY_KEY; ?>)"><?php echo str_replace("0","Ø",strtoupper($row->COL_CALL)); ?></a>
 | 
					
						
							| 
									
										
										
										
											2019-03-21 01:47:40 +08:00
										 |  |  | 					</td> | 
					
						
							| 
									
										
										
										
											2020-05-24 14:51:30 +08:00
										 |  |  | 					<td><?php echo $row->COL_SUBMODE==null?$row->COL_MODE:$row->COL_SUBMODE; ?></td>
 | 
					
						
							| 
									
										
										
										
											2019-05-13 21:04:16 +08:00
										 |  |  | 					<td class="d-none d-sm-table-cell"><?php echo $row->COL_RST_SENT; ?> <?php if ($row->COL_STX_STRING) { ?><span class="label"><?php echo $row->COL_STX_STRING;?></span><?php } ?></td>
 | 
					
						
							|  |  |  | 					<td  class="d-none d-sm-table-cell"><?php echo $row->COL_RST_RCVD; ?> <?php if ($row->COL_SRX_STRING) { ?><span class="label"><?php echo $row->COL_SRX_STRING;?></span><?php } ?></td>
 | 
					
						
							| 
									
										
										
										
											2011-11-07 07:09:51 +08:00
										 |  |  | 					<?php if($row->COL_SAT_NAME != null) { ?>
 | 
					
						
							| 
									
										
										
										
											2011-11-26 01:38:20 +08:00
										 |  |  | 					<td><?php echo $row->COL_SAT_NAME; ?></td>
 | 
					
						
							| 
									
										
										
										
											2011-11-07 07:09:51 +08:00
										 |  |  | 					<?php } else { ?>
 | 
					
						
							| 
									
										
										
										
											2014-01-09 02:05:14 +08:00
										 |  |  | 					<td><?php echo strtolower($row->COL_BAND); ?></td>
 | 
					
						
							| 
									
										
										
										
											2011-11-07 07:09:51 +08:00
										 |  |  | 					<?php } ?>
 | 
					
						
							|  |  |  | 				</tr> | 
					
						
							|  |  |  | 			<?php $i++; } ?>
 | 
					
						
							|  |  |  | 		</table> | 
					
						
							| 
									
										
										
										
											2019-04-08 22:36:23 +08:00
										 |  |  | 	</div> | 
					
						
							| 
									
										
										
										
											2011-11-07 07:09:51 +08:00
										 |  |  |   </div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-04-08 22:36:23 +08:00
										 |  |  |   <div class="col-sm-4"> | 
					
						
							|  |  |  |   	<div class="table-responsive"> | 
					
						
							| 
									
										
										
										
											2019-05-13 21:04:16 +08:00
										 |  |  |     	<table class="table table-striped"> | 
					
						
							| 
									
										
										
										
											2011-11-07 07:09:51 +08:00
										 |  |  | 			<tr class="titles"> | 
					
						
							| 
									
										
										
										
											2020-09-29 02:16:22 +08:00
										 |  |  | 				<td colspan="2"><i class="fas fa-chart-bar"></i> <?php echo $this->lang->line('dashboard_qso_breakdown'); ?></td>
 | 
					
						
							| 
									
										
										
										
											2011-11-07 07:09:51 +08:00
										 |  |  | 			</tr> | 
					
						
							|  |  |  | 			 | 
					
						
							|  |  |  | 			<tr> | 
					
						
							| 
									
										
										
										
											2020-09-29 02:16:22 +08:00
										 |  |  | 				<td><?php echo $this->lang->line('general_word_total'); ?></td>
 | 
					
						
							| 
									
										
										
										
											2011-11-07 07:09:51 +08:00
										 |  |  | 				<td><?php echo $total_qsos; ?></td>
 | 
					
						
							|  |  |  | 			</tr> | 
					
						
							|  |  |  | 			 | 
					
						
							|  |  |  | 			<tr> | 
					
						
							| 
									
										
										
										
											2020-09-29 02:16:22 +08:00
										 |  |  | 				<td><?php echo $this->lang->line('general_word_year'); ?></td>
 | 
					
						
							| 
									
										
										
										
											2011-11-07 07:09:51 +08:00
										 |  |  | 				<td><?php echo $year_qsos; ?></td>
 | 
					
						
							|  |  |  | 			</tr> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 			<tr> | 
					
						
							| 
									
										
										
										
											2020-09-29 02:16:22 +08:00
										 |  |  | 				<td><?php echo $this->lang->line('general_word_month'); ?></td>
 | 
					
						
							| 
									
										
										
										
											2011-11-07 07:09:51 +08:00
										 |  |  | 				<td><?php echo $month_qsos; ?></td>
 | 
					
						
							|  |  |  | 			</tr> | 
					
						
							| 
									
										
										
										
											2019-05-13 21:04:16 +08:00
										 |  |  | 		</table> | 
					
						
							| 
									
										
										
										
											2011-11-07 07:09:51 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-05-13 21:04:16 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		<table class="table table-striped"> | 
					
						
							| 
									
										
										
										
											2011-11-07 07:09:51 +08:00
										 |  |  | 			<tr class="titles"> | 
					
						
							| 
									
										
										
										
											2020-09-29 02:16:22 +08:00
										 |  |  | 				<td colspan="2"><i class="fas fa-globe-europe"></i> <?php echo $this->lang->line('dashboard_countries_breakdown'); ?></td>
 | 
					
						
							| 
									
										
										
										
											2011-11-07 07:09:51 +08:00
										 |  |  | 			</tr> | 
					
						
							| 
									
										
										
										
											2011-09-22 05:17:24 +08:00
										 |  |  | 			 | 
					
						
							| 
									
										
										
										
											2011-11-07 07:09:51 +08:00
										 |  |  | 			<tr> | 
					
						
							| 
									
										
										
										
											2020-09-29 02:16:22 +08:00
										 |  |  | 				<td><?php echo $this->lang->line('general_word_worked'); ?></td>
 | 
					
						
							| 
									
										
										
										
											2020-10-17 02:02:54 +08:00
										 |  |  | 				<td><?php echo $total_countries; ?></td>
 | 
					
						
							| 
									
										
										
										
											2011-11-07 07:09:51 +08:00
										 |  |  | 			</tr> | 
					
						
							| 
									
										
										
										
											2019-12-08 06:32:41 +08:00
										 |  |  | 			<tr> | 
					
						
							| 
									
										
										
										
											2020-09-29 02:16:22 +08:00
										 |  |  | 				<td><a href="#" onclick="return false" data-original-title="QSL Cards / eQSL / LoTW" data-toggle="tooltip"><?php echo $this->lang->line('general_word_confirmed'); ?></a></td>
 | 
					
						
							| 
									
										
										
										
											2020-02-28 06:17:12 +08:00
										 |  |  | 				<td> | 
					
						
							| 
									
										
										
										
											2020-10-17 02:02:54 +08:00
										 |  |  | 					<?php echo $total_countries_confirmed_paper; ?> /
 | 
					
						
							|  |  |  | 					<?php echo $total_countries_confirmed_eqsl; ?> /
 | 
					
						
							|  |  |  | 					<?php echo $total_countries_confirmed_lotw; ?>
 | 
					
						
							| 
									
										
										
										
											2020-02-28 06:17:12 +08:00
										 |  |  | 				</td> | 
					
						
							| 
									
										
										
										
											2019-12-08 06:32:41 +08:00
										 |  |  | 			</tr> | 
					
						
							| 
									
										
										
										
											2011-09-22 05:17:24 +08:00
										 |  |  | 			 | 
					
						
							| 
									
										
										
										
											2011-11-07 07:09:51 +08:00
										 |  |  | 			<tr> | 
					
						
							| 
									
										
										
										
											2020-09-29 02:16:22 +08:00
										 |  |  | 				<td><?php echo $this->lang->line('general_word_needed'); ?></td>
 | 
					
						
							| 
									
										
										
										
											2020-10-17 02:02:54 +08:00
										 |  |  | 				<td><?php echo $total_countries_needed; ?></td>
 | 
					
						
							| 
									
										
										
										
											2011-11-07 07:09:51 +08:00
										 |  |  | 			</tr> | 
					
						
							| 
									
										
										
										
											2019-05-13 21:04:16 +08:00
										 |  |  | 		</table> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		<?php if(($this->config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_auth') === FALSE) { ?>
 | 
					
						
							|  |  |  | 		<table class="table table-striped">	 | 
					
						
							| 
									
										
										
										
											2011-11-07 07:09:51 +08:00
										 |  |  | 			<tr class="titles"> | 
					
						
							| 
									
										
										
										
											2020-09-29 02:16:22 +08:00
										 |  |  | 				<td colspan="2"><i class="fas fa-envelope"></i> <?php echo $this->lang->line('general_word_qslcards'); ?></td>
 | 
					
						
							| 
									
										
										
										
											2011-11-07 07:09:51 +08:00
										 |  |  | 			</tr> | 
					
						
							|  |  |  | 			 | 
					
						
							|  |  |  | 			<tr> | 
					
						
							| 
									
										
										
										
											2020-09-29 02:16:22 +08:00
										 |  |  | 				<td><?php echo $this->lang->line('general_word_sent'); ?></td>
 | 
					
						
							| 
									
										
										
										
											2011-11-07 07:09:51 +08:00
										 |  |  | 				<td><?php echo $total_qsl_sent; ?></td>
 | 
					
						
							|  |  |  | 			</tr> | 
					
						
							|  |  |  | 					 | 
					
						
							|  |  |  | 			<tr> | 
					
						
							| 
									
										
										
										
											2020-09-29 02:16:22 +08:00
										 |  |  | 				<td><?php echo $this->lang->line('general_word_received'); ?></td>
 | 
					
						
							| 
									
										
										
										
											2011-11-07 07:09:51 +08:00
										 |  |  | 				<td><?php echo $total_qsl_recv; ?></td>
 | 
					
						
							|  |  |  | 			</tr> | 
					
						
							|  |  |  | 			 | 
					
						
							|  |  |  | 			<tr> | 
					
						
							| 
									
										
										
										
											2020-09-29 02:16:22 +08:00
										 |  |  | 				<td><?php echo $this->lang->line('general_word_requested'); ?></td>
 | 
					
						
							| 
									
										
										
										
											2011-11-07 07:09:51 +08:00
										 |  |  | 				<td><?php echo $total_qsl_requested; ?></td>
 | 
					
						
							|  |  |  | 			</tr> | 
					
						
							|  |  |  | 		</table> | 
					
						
							| 
									
										
										
										
											2019-05-13 21:04:16 +08:00
										 |  |  | 		<?php } ?>
 | 
					
						
							| 
									
										
										
										
											2019-04-08 22:36:23 +08:00
										 |  |  | 	</div> | 
					
						
							| 
									
										
										
										
											2011-11-07 07:09:51 +08:00
										 |  |  |   </div> | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-09-30 20:34:06 +08:00
										 |  |  | </div> |