45 行
		
	
	
	
		
			2.3 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
		
		
			
		
	
	
			45 行
		
	
	
	
		
			2.3 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
|  | <?php | ||
|  | if ($qsos->result() != NULL) { | ||
|  | 	echo '<table style="width:100%" class="qsolist table-sm table-bordered table-hover table-striped table-condensed"> | ||
|  | 	<thead> | ||
|  | 	<tr> | ||
|  | 	<th style=\'text-align: center\'>'.$this->lang->line('gen_hamradio_callsign').'</th> | ||
|  | 	<th style=\'text-align: center\'>' . $this->lang->line('general_word_date') . '</th> | ||
|  | 	<th style=\'text-align: center\'>'. $this->lang->line('general_word_time') .'</th> | ||
|  | 	<th style=\'text-align: center\'>' . $this->lang->line('gen_hamradio_mode') . '</th> | ||
|  | 	<th style=\'text-align: center\'>' . $this->lang->line('gen_hamradio_band') . '</th> | ||
|  | 	<th style=\'text-align: center\'>' . $this->lang->line('gen_hamradio_station') . '</th> | ||
|  | 	<th style=\'text-align: center\'></th> | ||
|  | 	</tr> | ||
|  | 	</thead><tbody>'; | ||
|  | 
 | ||
|  | 	// 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'); | ||
|  | 	} | ||
|  | 
 | ||
|  | 	foreach ($qsos->result() as $qsl) { | ||
|  | 		echo '<tr id ="qsolist_'.$qsl->COL_PRIMARY_KEY.'">'; | ||
|  | 		echo '<td style=\'text-align: center\'>' . $qsl->COL_CALL . '</td>'; | ||
|  | 		echo '<td style=\'text-align: center\'>'; $timestamp = strtotime($qsl->COL_TIME_ON); echo date($custom_date_format, $timestamp); echo '</td>'; | ||
|  | 		echo '<td style=\'text-align: center\'>'; $timestamp = strtotime($qsl->COL_TIME_ON); echo date('H:i', $timestamp); echo '</td>'; | ||
|  | 		echo '<td style=\'text-align: center\'>'; echo $qsl->COL_SUBMODE==null?$qsl->COL_MODE:$qsl->COL_SUBMODE; echo '</td>'; | ||
|  | 		echo '<td style=\'text-align: center\'>'; if($qsl->COL_SAT_NAME != null) { echo $qsl->COL_SAT_NAME; } else { echo strtolower($qsl->COL_BAND); }; echo '</td>'; | ||
|  | 		echo '<td style=\'text-align: center\'><span class="badge badge-light">' . $qsl->station_callsign . '</span></td>'; | ||
|  | 		echo '<td id="'.$qsl->COL_PRIMARY_KEY.'" style=\'text-align: center\'><button onclick="addQsoToPrintQueue(\''.$qsl->COL_PRIMARY_KEY.'\')" class="btn btn-sm btn-success">Add to print queue</button></td>'; | ||
|  | 		echo '</tr>'; | ||
|  | 	} | ||
|  | 
 | ||
|  | 	echo '</tbody></table>'; | ||
|  | 	?>
 | ||
|  | 
 | ||
|  | 	<?php | ||
|  | } else { | ||
|  | 	echo '<div class="alert alert-danger"><a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>No additional QSO\'s were found. That means they are probably already in the queue.</div>'; | ||
|  | } | ||
|  | ?>
 |