| 
									
										
										
										
											2023-04-12 17:58:47 +08:00
										 |  |  | <?php | 
					
						
							|  |  |  | header('Content-Type: text/plain; charset=utf-8'); | 
					
						
							| 
									
										
										
										
											2023-11-24 15:25:49 +08:00
										 |  |  | header('Content-Disposition: attachment; filename="'.$callsign.'-'.$contest_id.'-'.date('Ymd-Hi').'.cbr"'); | 
					
						
							| 
									
										
										
										
											2023-04-12 17:58:47 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | $CI =& get_instance(); | 
					
						
							|  |  |  | $CI->load->library('Cabrilloformat'); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-04-13 18:30:12 +08:00
										 |  |  | echo $CI->cabrilloformat->header($contest_id, $callsign, $claimed_score,  | 
					
						
							|  |  |  | 	$operators, $club, $name, $address, $addresscity, $addressstateprovince, $addresspostalcode, $addresscountry, $soapbox, $gridlocator,  | 
					
						
							|  |  |  | 	$categoryoverlay, $categorytransmitter, $categorystation, $categorypower, $categorymode, $categoryband, $categoryassisted, $categoryoperator, $email); | 
					
						
							| 
									
										
										
										
											2023-04-12 17:58:47 +08:00
										 |  |  | foreach ($qsos->result() as $row) { | 
					
						
							|  |  |  | 	echo $CI->cabrilloformat->qso($row); | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2023-11-24 15:25:49 +08:00
										 |  |  | echo $CI->cabrilloformat->footer(); |