kopia lustrzana https://github.com/magicbug/Cloudlog
Added Library Frequency to autoload
Added frequency to autoload and changed the Radio Status to use the library.pull/1022/head
rodzic
422fbd4490
commit
c6d2e701fe
|
@ -52,7 +52,7 @@ $autoload['packages'] = array(APPPATH.'third_party');
|
|||
| $autoload['libraries'] = array('database', 'session', 'xmlrpc');
|
||||
*/
|
||||
|
||||
$autoload['libraries'] = array('database', 'session', 'curl', 'OptionsLib');
|
||||
$autoload['libraries'] = array('database', 'session', 'curl', 'OptionsLib', 'Frequency');
|
||||
|
||||
|
||||
/*
|
||||
|
|
|
@ -191,7 +191,7 @@
|
|||
<?php if($row['radio'] == "SatPC32") { ?>
|
||||
<?php echo $row['sat_name']; ?>
|
||||
<?php } else { ?>
|
||||
<?php echo frequency_display_string($row['frequency']); ?> (<?php echo $row['mode']; ?>)
|
||||
<?php echo $this->frequency->hz_to_mhz($row['frequency']); ?> (<?php echo $row['mode']; ?>)
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -201,14 +201,6 @@
|
|||
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
// converts a frequency in Hz (e.g. 3650) to 3.650 MHz
|
||||
function frequency_display_string($frequency)
|
||||
{
|
||||
return number_format (($frequency / 1000 / 1000), 3) . " MHz";
|
||||
}
|
||||
?>
|
||||
|
||||
<table class="table table-striped">
|
||||
<tr class="titles">
|
||||
<td colspan="2"><i class="fas fa-chart-bar"></i> <?php echo $this->lang->line('dashboard_qso_breakdown'); ?></td>
|
||||
|
|
Ładowanie…
Reference in New Issue