-
Notifications
You must be signed in to change notification settings - Fork 2
/
logsearch.php
73 lines (59 loc) · 1.82 KB
/
logsearch.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
include("config_defaults.php");
include("config.php");
include("inc/header.php");
include("inc/parse_search.php");
$page = basename(__FILE__, '.php');
?>
<!DOCTYPE html>
<html>
<head>
<?php
include("inc/logbook.php");
$Logbook = new Logbook($DbSpawner->newdb(), $log_id);
echo '<title>' . strtoupper($Cqrlog_common->logid_to_call($log_id)) . ' \'s Logsearch</title>'
?>
<link rel="stylesheet" type="text/css" href="inc/css/logold.css">
<meta charset="UTF-8">
<?php include("inc/metaheader.php"); ?>
</head>
<body>
<?php
include("inc/navbar.php");
echo '<h1 align="center">Logsearch of ' . strtoupper($Cqrlog_common->logid_to_call($log_id)) . '</h1><div class="hidden-xs hidden-sm"><br /><br /></div>';
include("inc/search_input.php");
?>
<?php
include("inc/search_proc.php");
?>
<?php
$match_amount = $Logbook->count_qsos($log_id);
switch ($match_amount) {
case 0:
echo '<div class="alert alert-danger ">' . "\n" .
'<strong>NO </strong> QSO found' . "\n" .
'</div>';
break;
case 1:
echo '<div class="alert alert-info">' . "\n" .
'<strong>' . $match_amount . '</strong> QSO found' . "\n" .
'</div>';
break;
default:
echo '<div class="alert alert-info">' . "\n" .
'<strong>' . $match_amount . '</strong> QSOs found' . "\n" .
'</div>';
}
if ($adif_export) {
echo '<div class="alert alert-info">' . "\n" .
'<strong>EXPORT</strong> complete, link at bottom of page' . "\n" .
'</div>';
}
include("inc/qsotable.php");
if ($adif_export) {
include("inc/exportfile.php");
}
include("inc/metafooter.php");
?>
</body>
</html>