\n";
my $trh = $tt;
$trh =~ s|| | |ig;
$trh =~ s|_freq_|FREQ|ig;
$trh =~ s|_time_|Time|ig;
$trh =~ s|_station_|Station|ig;
$trh =~ s|_country_|Country|ig;
$trh =~ s|_lang_|Language|ig;
$trh =~ s|_days_|Days|ig;
$trh =~ s|_modulation_|AM/SSB|ig;
$trh =~ s|_power_|Power (kW)|ig;
$trh =~ s|_sitename_|Site|ig;
$theTable .= $trh;
my $txh = $tx;
$txh =~ s|_freq_|FREQ|ig;
$txh =~ s|_time_|Time|ig;
$txh =~ s|_station_|Station|ig;
$txh =~ s|_country_|Country|ig;
$txh =~ s|_lang_|Language|ig;
$txh =~ s|_days_|Days|ig;
$txh =~ s|_modulation_|AM/SSB|ig;
$txh =~ s|_power_|Power (kW)|ig;
$txh =~ s|_sitename_|Site|ig;
$mailTable .= $txh;
my $color = 0;
foreach $stationRec (sort (@foundItems)) {
my ($tRow) = $tt;
my ($lRow) = $tx;
my ($freq,$utcTime,$station,$days,$lang,$country,$power,$modulation,$sitename) = split(/\t/, $stationRec);
$tnum++;
if ($color == 0) {
$tRow =~ s| | | |ig;
$tRow =~ s|| | |ig;
$color = 1;
} else {
$color = 0;
}
$utcTime =~ m|^(\d{4})[^\d]*(\d{4})$|imsg;
my ($startTime_) = $1;
my ($endTime_) = $2;
#print STDERR "st_ = [$startTime_], et_ = [$endTime_]\n";
my $lFreq = $freq;
my $lutcTime = $utcTime;
my $lstation = $station;
my $lcountry = $country;
my $llang = $lang;
my $ldays = $days;
my $lpower = $power;
my $lmodulation = $modulation;
my $lsitename = $sitename;
if (
(($showTime >= $startTime_) && ($showTime <= $endTime_))
|| (($showTime >= $startTime_) && (($endTime_ < $startTime_) && ($endTime_ < $showTime)))
|| (($startTime_ > $endTime_) && ($endTime_ > $showTime))
) {
$lutcTime = "* $utcTime";
$freq = "$freq";
$utcTime = "$utcTime";
$station = "$station";
$country = "$country";
$lang = "$lang";
$days = "$days";
$modulation = "$modulation";
$sitename = "$sitename";
$tRow =~ s| | ||ig;
$tRow =~ s|||ig;
}
$tRow =~ s|_freq_|$freq|ig;
$tRow =~ s|_time_|$utcTime|ig;
$tRow =~ s|_station_|$station|ig;
$tRow =~ s|_country_|$country|ig;
$tRow =~ s|_lang_|$lang|ig;
$tRow =~ s|_days_|$days|ig;
$tRow =~ s|_modulation_|$modulation|ig;
$tRow =~ s|_sitename_|$sitename|ig;
$tRow =~ s|_power_|$power|ig;
$theTable .= $tRow;
$lRow =~ s|_freq_|$lFreq|ig;
$lRow =~ s|_time_|$lutcTime|ig;
$lRow =~ s|_station_|$lstation|ig;
$lRow =~ s|_country_|$lcountry|ig;
$lRow =~ s|_lang_|$llang|ig;
$lRow =~ s|_days_|$ldays|ig;
$lRow =~ s|_modulation_|$lmodulation|ig;
$lRow =~ s|_sitename_|$lsitename|ig;
$lRow =~ s|_power_|$lpower|ig;
$mailTable .= $lRow;
if (0) { #$downloadOK) {
my ($newFreqL) = $freq;
my ($newStation) = $station;
$newFreqL =~ s|\.||g;
$newFreqL =~ s|\||g;
$newFreqL =~ s|\||g;
$newFreqL =~ s|^(\d+?)(\d\d\d)(\d\d)$|$1\.$2|;
$newStation =~ s|\||g;
$newStation =~ s|\||g;
push(@downloadList, "$newStation\t$newFreqL\tAM\t\t");
}
}
if (0) { #$downloadOK) {
my ($rte_time) = `date -u +\"%Y-%d-%m_%H%M\"`;
chop ($rte_time);
my ($pid) = $$;
my ($dlFileName) = "search_results" . "." . $pid . ".frq";
$theTable .= " | Shift-Click here to Download ";
$theTable .= "Results for YPLog | \n";
open (OUTSF, "> /hfradio/html/swbc/$dlFileName");
foreach $sfreq (@downloadList) {
print OUTSF "$sfreq\n";
}
close (OUTSF);
}
$theTable .= " |