kopia lustrzana https://github.com/magicbug/Cloudlog
Merge branch 'master' of https://github.com/magicbug/HRD-Web-Frontend
Conflicts: application/models/logbook_model.phppull/106/merge
commit
178bf1ca10
|
@ -0,0 +1,82 @@
|
|||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|
||||
Provides outputted kml files for use with Google Map services
|
||||
All maps are stored within /kml in the root directory
|
||||
|
||||
*/
|
||||
|
||||
class Kml extends CI_Controller {
|
||||
|
||||
public function index()
|
||||
{
|
||||
// Load Librarys
|
||||
$this->load->library('qra');
|
||||
$this->load->helper('file');
|
||||
|
||||
// Load Database connections
|
||||
$this->load->model('logbook_model');
|
||||
|
||||
// Get QSOs with Valid QRAs
|
||||
$qsos = $this->logbook_model->kml_get_all_qsos();
|
||||
|
||||
//header('Content-type: text/xml');
|
||||
//header("Cache-Control: no-cache");
|
||||
|
||||
$output = "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
|
||||
$output .= "<kml xmlns=\"http://www.opengis.net/kml/2.2\">";
|
||||
|
||||
$output .= "<Document>";
|
||||
|
||||
foreach ($qsos->result() as $row)
|
||||
{
|
||||
$output .= "<Placemark>";
|
||||
//print_r($row);
|
||||
if($row->COL_GRIDSQUARE != null) {
|
||||
$stn_loc = $this->qra->qra2latlong($row->COL_GRIDSQUARE);
|
||||
|
||||
$lat = $stn_loc[0];
|
||||
$lng = $stn_loc[1];
|
||||
} else {
|
||||
$query = $this->db->query('
|
||||
SELECT *
|
||||
FROM dxcc
|
||||
WHERE prefix = SUBSTRING( \''.$row->COL_CALL.'\', 1, LENGTH( prefix ) )
|
||||
ORDER BY LENGTH( prefix ) DESC
|
||||
LIMIT 1
|
||||
');
|
||||
|
||||
foreach ($query->result() as $dxcc) {
|
||||
$lat = $dxcc->lat;
|
||||
$lng = $dxcc->long;
|
||||
}
|
||||
}
|
||||
|
||||
$timestamp = strtotime($row->COL_TIME_ON);
|
||||
|
||||
|
||||
$output .= "<name>".$row->COL_CALL."</name>";
|
||||
$output .= "<description><![CDATA[<p>Date/Time: ".date('Y-m-d H:i:s', ($timestamp))."<br/>Band: ".$row->COL_BAND."<br /></p>]]></description>";
|
||||
$output .= "<Point>";
|
||||
$output .= "<coordinates>".$lng.",".$lat.",0</coordinates>";
|
||||
$output .= "</Point>";
|
||||
$output .= "</Placemark>";
|
||||
}
|
||||
|
||||
|
||||
$output .= "</Document>";
|
||||
$output .= "</kml>";
|
||||
|
||||
if ( ! write_file('kml/qsos.kml', $output))
|
||||
{
|
||||
echo 'Unable to write the file';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'qsos.kml written! and can be found in /kml/qsos.kml';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,66 @@
|
|||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Social extends CI_Controller {
|
||||
|
||||
|
||||
public function map($day)
|
||||
{
|
||||
|
||||
$this->load->model('logbook_model');
|
||||
|
||||
$map_date = date('Y-m-d', strtotime($day));
|
||||
$formated_date = date('d-m-Y', strtotime($day));
|
||||
|
||||
$data['qsos'] = $this->logbook_model->get_date_qsos($map_date);
|
||||
|
||||
$data['date'] = $map_date;
|
||||
$data['formated_date'] = $formated_date;
|
||||
|
||||
$this->load->view('layout/header');
|
||||
$this->load->view('social/map', $data);
|
||||
$this->load->view('layout/footer');
|
||||
}
|
||||
|
||||
function json_map($date) {
|
||||
$this->load->model('logbook_model');
|
||||
|
||||
$qsos = $this->logbook_model->map_day($date);
|
||||
|
||||
echo "{\"markers\": [";
|
||||
$count = 1;
|
||||
foreach ($qsos->result() as $row) {
|
||||
//print_r($row);
|
||||
if($row->COL_GRIDSQUARE != null) {
|
||||
$stn_loc = qra2latlong($row->COL_GRIDSQUARE);
|
||||
if($count != 1) {
|
||||
echo ",";
|
||||
}
|
||||
|
||||
echo "{\"lat\":\"".$stn_loc[0]."\",\"lng\":\"".$stn_loc[1]."\", \"html\":\"Callsign: ".$row->COL_CALL."<br />Date/Time: ".$row->COL_TIME_ON."<br />Band: ".$row->COL_BAND."<br />Mode: ".$row->COL_MODE."\",\"label\":\"".$row->COL_CALL."\"}";
|
||||
|
||||
$count++;
|
||||
|
||||
} else {
|
||||
$query = $this->db->query('
|
||||
SELECT *
|
||||
FROM dxcc
|
||||
WHERE prefix = SUBSTRING( \''.$row->COL_CALL.'\', 1, LENGTH( prefix ) )
|
||||
ORDER BY LENGTH( prefix ) DESC
|
||||
LIMIT 1
|
||||
');
|
||||
|
||||
foreach ($query->result() as $dxcc) {
|
||||
if($count != 1) {
|
||||
echo ",";
|
||||
}
|
||||
echo "{\"lat\":\"".$dxcc->lat."\",\"lng\":\"".$dxcc->long."\", \"html\":\"Callsign: ".$row->COL_CALL."<br />Date/Time: ".$row->COL_TIME_ON."<br />Band: ".$row->COL_BAND."<br />Mode: ".$row->COL_MODE."\",\"label\":\"".$row->COL_CALL."\"}";
|
||||
$count++;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
echo "]";
|
||||
echo "}";
|
||||
|
||||
}
|
||||
}
|
|
@ -174,6 +174,27 @@ class Logbook_model extends CI_Model {
|
|||
|
||||
return $query;
|
||||
}
|
||||
|
||||
/* Get All QSOs with a Valid Grid */
|
||||
function kml_get_all_qsos() {
|
||||
$this->db->select('COL_CALL, COL_BAND, COL_TIME_ON, COL_RST_RCVD, COL_RST_SENT, COL_MODE, COL_NAME, COL_COUNTRY, COL_PRIMARY_KEY, COL_SAT_NAME, COL_GRIDSQUARE');
|
||||
$this->db->where('COL_GRIDSQUARE != \'null\'');
|
||||
$query = $this->db->get($this->config->item('table_name'));
|
||||
|
||||
return $query;
|
||||
}
|
||||
|
||||
function get_date_qsos($date) {
|
||||
$this->db->select('COL_CALL, COL_BAND, COL_TIME_ON, COL_RST_RCVD, COL_RST_SENT, COL_MODE, COL_NAME, COL_COUNTRY, COL_PRIMARY_KEY, COL_SAT_NAME');
|
||||
$this->db->order_by("COL_TIME_ON", "desc");
|
||||
$start = $date." 00:00:00";
|
||||
$end = $date." 23:59:59";
|
||||
|
||||
$this->db->where("COL_TIME_ON BETWEEN '".$start."' AND '".$end."'");
|
||||
$query = $this->db->get($this->config->item('table_name'));
|
||||
|
||||
return $query;
|
||||
}
|
||||
|
||||
function get_todays_qsos() {
|
||||
|
||||
|
@ -184,6 +205,7 @@ class Logbook_model extends CI_Model {
|
|||
return $query;
|
||||
}
|
||||
|
||||
/* Return total number of qsos */
|
||||
function total_qsos() {
|
||||
$query = $this->db->query('SELECT COUNT( * ) as count FROM '.$this->config->item('table_name').'');
|
||||
|
||||
|
@ -196,7 +218,7 @@ class Logbook_model extends CI_Model {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/* Return number of QSOs had today */
|
||||
function todays_qsos() {
|
||||
|
||||
$morning = date('Y-m-d 00:00:00');
|
||||
|
@ -212,6 +234,7 @@ class Logbook_model extends CI_Model {
|
|||
}
|
||||
}
|
||||
|
||||
/* Return QSOs over a period of days */
|
||||
function map_week_qsos($start, $end) {
|
||||
|
||||
$this->db->where("COL_TIME_ON BETWEEN '".$start."' AND '".$end."'");
|
||||
|
@ -220,8 +243,21 @@ class Logbook_model extends CI_Model {
|
|||
|
||||
return $query;
|
||||
}
|
||||
|
||||
/* Returns QSOs for the date sent eg 2011-09-30 */
|
||||
function map_day($date) {
|
||||
|
||||
$start = $date." 00:00:00";
|
||||
$end = $date." 23:59:59";
|
||||
|
||||
$this->db->where("COL_TIME_ON BETWEEN '".$start."' AND '".$end."'");
|
||||
$this->db->order_by("COL_TIME_ON", "ASC");
|
||||
$query = $this->db->get($this->config->item('table_name'));
|
||||
|
||||
return $query;
|
||||
}
|
||||
|
||||
// Return QSOs made during the current month
|
||||
function month_qsos() {
|
||||
|
||||
$morning = date('Y-m-01 00:00:00');
|
||||
|
@ -237,6 +273,7 @@ class Logbook_model extends CI_Model {
|
|||
}
|
||||
}
|
||||
|
||||
/* Return QSOs made during the current Year */
|
||||
function year_qsos() {
|
||||
|
||||
$morning = date('Y-01-01 00:00:00');
|
||||
|
@ -252,7 +289,7 @@ class Logbook_model extends CI_Model {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/* Return total amount of SSB QSOs logged */
|
||||
function total_ssb() {
|
||||
$query = $this->db->query('SELECT COUNT( * ) as count FROM '.$this->config->item('table_name').' WHERE COL_MODE = \'SSB\' OR COL_MODE = \'LSB\' OR COL_MODE = \'USB\'');
|
||||
|
||||
|
@ -264,14 +301,15 @@ class Logbook_model extends CI_Model {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Return total number of satellite QSOs */
|
||||
function total_sat() {
|
||||
$query = $this->db->query('SELECT COL_SAT_NAME, COUNT( * ) as count FROM '.$this->config->item('table_name').' WHERE COL_SAT_NAME != \'null\' GROUP BY COL_SAT_NAME');
|
||||
|
||||
return $query;
|
||||
}
|
||||
|
||||
|
||||
/* Return total number of CW QSOs */
|
||||
function total_cw() {
|
||||
$query = $this->db->query('SELECT COUNT( * ) as count FROM '.$this->config->item('table_name').' WHERE COL_MODE = \'CW\' ');
|
||||
|
||||
|
@ -284,6 +322,7 @@ class Logbook_model extends CI_Model {
|
|||
}
|
||||
}
|
||||
|
||||
/* Return total number of FM QSOs */
|
||||
function total_fm() {
|
||||
$query = $this->db->query('SELECT COUNT( * ) as count FROM '.$this->config->item('table_name').' WHERE COL_MODE = \'FM\'');
|
||||
|
||||
|
@ -296,6 +335,7 @@ class Logbook_model extends CI_Model {
|
|||
}
|
||||
}
|
||||
|
||||
/* Return total number of Digital QSOs */
|
||||
function total_digi() {
|
||||
$query = $this->db->query('SELECT COUNT( * ) as count FROM '.$this->config->item('table_name').' WHERE COL_MODE != \'SSB\' AND (COL_MODE != \'LSB\' or COL_MODE != \'USB\' or COL_MODE != \'CW\' or COL_MODE != \'FM\')');
|
||||
|
||||
|
@ -308,12 +348,14 @@ class Logbook_model extends CI_Model {
|
|||
}
|
||||
}
|
||||
|
||||
/* Return total number of QSOs per band */
|
||||
function total_bands() {
|
||||
$query = $this->db->query('SELECT DISTINCT (COL_BAND) AS band, count( * ) AS count FROM '.$this->config->item('table_name').' GROUP BY band ORDER BY count DESC');
|
||||
|
||||
return $query;
|
||||
}
|
||||
|
||||
/* Return total number of QSL Cards sent */
|
||||
function total_qsl_sent() {
|
||||
$query = $this->db->query('SELECT DISTINCT (COL_QSL_SENT) AS band, count(COL_QSL_SENT) AS count FROM '.$this->config->item('table_name').' WHERE COL_QSL_SENT = "Y" GROUP BY band');
|
||||
|
||||
|
@ -326,6 +368,7 @@ class Logbook_model extends CI_Model {
|
|||
}
|
||||
}
|
||||
|
||||
/* Return total number of QSL Cards requested */
|
||||
function total_qsl_requested() {
|
||||
$query = $this->db->query('SELECT DISTINCT (COL_QSL_SENT) AS band, count(COL_QSL_SENT) AS count FROM '.$this->config->item('table_name').' WHERE COL_QSL_SENT = "R" GROUP BY band');
|
||||
|
||||
|
@ -338,6 +381,7 @@ class Logbook_model extends CI_Model {
|
|||
}
|
||||
}
|
||||
|
||||
/* Return total number of QSL Cards received */
|
||||
function total_qsl_recv() {
|
||||
$query = $this->db->query('SELECT DISTINCT (COL_QSL_RCVD) AS band, count(COL_QSL_RCVD) AS count FROM '.$this->config->item('table_name').' WHERE COL_QSL_RCVD = "Y" GROUP BY band');
|
||||
|
||||
|
@ -350,6 +394,7 @@ class Logbook_model extends CI_Model {
|
|||
}
|
||||
}
|
||||
|
||||
/* Return total number of countrys worked */
|
||||
function total_countrys() {
|
||||
$query = $this->db->query('SELECT DISTINCT (COL_COUNTRY) FROM '.$this->config->item('table_name').'');
|
||||
|
||||
|
@ -374,6 +419,7 @@ class Logbook_model extends CI_Model {
|
|||
return array('query' => $this->db->queries[2], 'result_string' => $results, 'time' => $time);
|
||||
}
|
||||
|
||||
/* Delete QSO based on the QSO ID */
|
||||
function delete($id) {
|
||||
$this->db->where('COL_PRIMARY_KEY', $id);
|
||||
$this->db->delete($this->config->item('table_name'));
|
||||
|
|
|
@ -0,0 +1,47 @@
|
|||
<h2>API</h2>
|
||||
|
||||
<script type="text/javascript" src="<?php echo base_url() ;?>/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
|
||||
|
||||
<script type="text/javascript" src="<?php echo base_url() ;?>/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo base_url() ;?>/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
$(document).ready(function() {
|
||||
$(".qsobox").fancybox({
|
||||
'width' : '75%',
|
||||
'height' : '50%',
|
||||
'autoScale' : false,
|
||||
'transitionIn' : 'none',
|
||||
'transitionOut' : 'none',
|
||||
'type' : 'iframe'
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<div class="wrap_content user">
|
||||
|
||||
|
||||
<?php if($this->session->flashdata('notice')) { ?>
|
||||
<div id="message" >
|
||||
<?php echo $this->session->flashdata('notice'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
There are a number of API calls you can make from other applications.
|
||||
|
||||
<h2>search</h2>
|
||||
<h3>Description</h3>
|
||||
Query the logbook
|
||||
<h3>Syntax</h3>
|
||||
<li><pre>/search/query[<field><=|~><value>{(and|or)...]}/limit[<num>]/fields[<field1>,{<field2>}]/order[<field>]</pre>
|
||||
<h3>Example</h3>
|
||||
Search for entries with a call beginning with <b>M0</b> and a locator beginning with <b>I</b> or <b>J</b>, show the callsign and locator fields, order it by callsign and limit the results to <b>10</b>.
|
||||
<li><pre>/search/query[Call~M0*(and)(Locator~I*(or)Locator~J*)]/limit[10]/fields[distinct(Call),Locator]/order[Call(asc)]</pre>
|
||||
<li><a href="/index.php/api/search/query[Call~M0*(and)(Locator~I*(or)Locator~J*)]/limit[10]/fields[distinct(Call),Locator]/order[Call(asc)]">Run it!</a>
|
||||
|
||||
</div>
|
|
@ -0,0 +1,123 @@
|
|||
<script type="text/javascript" src="<?php echo base_url() ;?>/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
|
||||
|
||||
<script type="text/javascript" src="<?php echo base_url() ;?>/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo base_url() ;?>/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
$(document).ready(function() {
|
||||
$(".qsobox").fancybox({
|
||||
'autoDimensions' : false,
|
||||
'width' : 700,
|
||||
'height' : 300,
|
||||
'transitionIn' : 'fade',
|
||||
'transitionOut' : 'fade',
|
||||
'type' : 'iframe'
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
function create_map() {
|
||||
var latlng = new google.maps.LatLng(40.313043, -32.695312);
|
||||
var myOptions = {
|
||||
zoom: 2,
|
||||
center: latlng,
|
||||
mapTypeId: google.maps.MapTypeId.ROADMAP
|
||||
};
|
||||
var infowindow = new google.maps.InfoWindow();
|
||||
|
||||
var marker, i;
|
||||
|
||||
/* Get QSO points via json*/
|
||||
$.getJSON("/logbook/index.php/social/json_map/<?php echo $date; ?>", function(data) {
|
||||
|
||||
$.each(data.markers, function(i, val) {
|
||||
/* Create Markers */
|
||||
marker = new google.maps.Marker({
|
||||
position: new google.maps.LatLng(this.lat, this.lng),
|
||||
map: map
|
||||
});
|
||||
|
||||
/* Store Popup Text */
|
||||
var content = this.html;
|
||||
|
||||
/* Create Popups */
|
||||
google.maps.event.addListener(marker, 'click', (function(marker, i) {
|
||||
return function() {
|
||||
infowindow.setContent(content);
|
||||
infowindow.open(map, marker);
|
||||
}
|
||||
})(marker, i));
|
||||
});
|
||||
});
|
||||
|
||||
var map = new google.maps.Map(document.getElementById("map"),
|
||||
myOptions);
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
create_map();
|
||||
});
|
||||
</script>
|
||||
|
||||
<h2>Social Media Map - <?php echo $formated_date; ?></h2>
|
||||
<div class="wrap_content dashboard">
|
||||
|
||||
<div id="map" style="width: 100%; height: 300px"></div>
|
||||
|
||||
|
||||
<div id="dashboard_container">
|
||||
|
||||
<div class="dashboard_top">
|
||||
|
||||
<div class="dashboard_log">
|
||||
<table class="logbook" width="100%">
|
||||
<tr class="log_title titles">
|
||||
<td>Time</td>
|
||||
<td>Call</td>
|
||||
<td>Mode</td>
|
||||
<td>Sent</td>
|
||||
<td>Recv</td>
|
||||
<td>Band</td>
|
||||
</tr>
|
||||
|
||||
<?php $i = 0;
|
||||
foreach ($qsos->result() as $row) { ?>
|
||||
<?php echo '<tr class="tr'.($i & 1).'">'; ?>
|
||||
<td><?php $timestamp = strtotime($row->COL_TIME_ON); echo date('d/m/y', $timestamp); ?></td>
|
||||
<td><?php $timestamp = strtotime($row->COL_TIME_ON); echo date('H:i', $timestamp); ?></td>
|
||||
<td><a class="qsobox" href="<?php echo site_url('logbook/view')."/".$row->COL_PRIMARY_KEY; ?>"><?php echo strtoupper($row->COL_CALL); ?></a></td>
|
||||
<td><?php echo $row->COL_MODE; ?></td>
|
||||
<td><?php echo $row->COL_RST_SENT; ?></td>
|
||||
<td><?php echo $row->COL_RST_RCVD; ?></td>
|
||||
<?php if($row->COL_SAT_NAME != null) { ?>
|
||||
<td>SAT</td>
|
||||
<?php } else { ?>
|
||||
<td><?php echo $row->COL_BAND; ?></td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $i++; } ?>
|
||||
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<!-- <div class="dashboard_bottom">
|
||||
<div class="chart" id="modechart_div"></div>
|
||||
<div class="chart" id="bandchart_div"></div>
|
||||
</div> -->
|
||||
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
</div>
|
|
@ -11,19 +11,70 @@
|
|||
},
|
||||
"buffers":
|
||||
[
|
||||
{
|
||||
"file": "application/controllers/social.php",
|
||||
"settings":
|
||||
{
|
||||
"buffer_size": 1757,
|
||||
"line_ending": "Unix"
|
||||
}
|
||||
},
|
||||
{
|
||||
"file": "application/controllers/dashboard.php",
|
||||
"settings":
|
||||
{
|
||||
"buffer_size": 6056,
|
||||
"line_ending": "Windows"
|
||||
}
|
||||
},
|
||||
{
|
||||
"file": "application/models/logbook_model.php",
|
||||
"settings":
|
||||
{
|
||||
"buffer_size": 13676,
|
||||
"line_ending": "Windows"
|
||||
}
|
||||
},
|
||||
{
|
||||
"contents": " <script type=\"text/javascript\" src=\"<?php echo base_url() ;?>/fancybox/jquery.mousewheel-3.0.4.pack.js\"></script>\n\n <script type=\"text/javascript\" src=\"<?php echo base_url() ;?>/fancybox/jquery.fancybox-1.3.4.pack.js\"></script>\n\n <link rel=\"stylesheet\" type=\"text/css\" href=\"<?php echo base_url() ;?>/fancybox/jquery.fancybox-1.3.4.css\" media=\"screen\" />\n\n <script type=\"text/javascript\">\n\n $(document).ready(function() {\n $(\".qsobox\").fancybox({\n 'autoDimensions' : false,\n 'width' : 700,\n 'height' : 300,\n 'transitionIn' : 'fade',\n 'transitionOut' : 'fade',\n 'type' : 'iframe'\n });\n\n\n });\n\n </script>\n\n\n \n <script type=\"text/javascript\">\n function create_map() {\n var latlng = new google.maps.LatLng(40.313043, -32.695312);\n var myOptions = {\n zoom: 2,\n center: latlng,\n mapTypeId: google.maps.MapTypeId.ROADMAP\n };\n var infowindow = new google.maps.InfoWindow();\n\n var marker, i;\n\n /* Get QSO points via json*/\n $.getJSON(\"/logbook/index.php/social/json_map/<?php echo $date; ?>\", function(data) {\n \n $.each(data.markers, function(i, val) {\n /* Create Markers */\n marker = new google.maps.Marker({\n position: new google.maps.LatLng(this.lat, this.lng),\n map: map\n });\n \n /* Store Popup Text */\n var content = this.html;\n \n /* Create Popups */\n google.maps.event.addListener(marker, 'click', (function(marker, i) {\n return function() {\n infowindow.setContent(content);\n infowindow.open(map, marker);\n }\n })(marker, i));\n });\n });\n\n var map = new google.maps.Map(document.getElementById(\"map\"),\n myOptions);\n }\n\n $(document).ready(function(){\n create_map();\n });\n </script>\n\n<h2>Social Media Map - <?php echo $formated_date; ?></h2>\n<div class=\"wrap_content dashboard\">\n\n <div id=\"map\" style=\"width: 100%; height: 300px\"></div> \n\n\n <div id=\"dashboard_container\">\n \n <div class=\"dashboard_top\">\n \n <div class=\"dashboard_log\">\n <table class=\"logbook\" width=\"100%\">\n <tr class=\"log_title titles\">\n <td>Time</td>\n <td>Call</td>\n <td>Mode</td>\n <td>Sent</td>\n <td>Recv</td>\n <td>Band</td>\n </tr>\n\n <?php $i = 0; \n foreach ($qsos->result() as $row) { ?>\n <?php echo '<tr class=\"tr'.($i & 1).'\">'; ?>\n <td><?php $timestamp = strtotime($row->COL_TIME_ON); echo date('d/m/y', $timestamp); ?></td>\n <td><?php $timestamp = strtotime($row->COL_TIME_ON); echo date('H:i', $timestamp); ?></td>\n <td><a class=\"qsobox\" href=\"<?php echo site_url('logbook/view').\"/\".$row->COL_PRIMARY_KEY; ?>\"><?php echo strtoupper($row->COL_CALL); ?></a></td>\n <td><?php echo $row->COL_MODE; ?></td>\n <td><?php echo $row->COL_RST_SENT; ?></td>\n <td><?php echo $row->COL_RST_RCVD; ?></td>\n <?php if($row->COL_SAT_NAME != null) { ?>\n <td>SAT</td>\n <?php } else { ?>\n <td><?php echo $row->COL_BAND; ?></td>\n <?php } ?>\n </tr>\n <?php $i++; } ?>\n\n </table>\n\n </div>\n \n <div class=\"clear\"></div>\n </div>\n \n <!-- <div class=\"dashboard_bottom\">\n <div class=\"chart\" id=\"modechart_div\"></div>\n <div class=\"chart\" id=\"bandchart_div\"></div>\n </div> -->\n \n </div>\n\n <div class=\"clear\"></div>\n</div>",
|
||||
"file": "application/views/social/map.php",
|
||||
"file_size": 3479,
|
||||
"file_write_time": 129618638065790029,
|
||||
"settings":
|
||||
{
|
||||
"buffer_size": 3336,
|
||||
"line_ending": "Windows"
|
||||
}
|
||||
},
|
||||
{
|
||||
"file": "application/config/routes.php",
|
||||
"settings":
|
||||
{
|
||||
"buffer_size": 1545,
|
||||
"line_ending": "Unix"
|
||||
}
|
||||
}
|
||||
],
|
||||
"build_system": "",
|
||||
"command_palette":
|
||||
{
|
||||
"height": 392.0,
|
||||
"height": 286.0,
|
||||
"selected_items":
|
||||
[
|
||||
[
|
||||
"Package Control: ",
|
||||
"Package Control: Enable Package"
|
||||
],
|
||||
[
|
||||
"Pa",
|
||||
"Package Control: Add Repository"
|
||||
]
|
||||
],
|
||||
"width": 512.0
|
||||
},
|
||||
"console":
|
||||
{
|
||||
"height": 0.0
|
||||
"height": 143.0
|
||||
},
|
||||
"distraction_free":
|
||||
{
|
||||
|
@ -36,13 +87,19 @@
|
|||
},
|
||||
"file_history":
|
||||
[
|
||||
"/C/Users/Peter/AppData/Roaming/Sublime Text 2/Packages/User/Default (Windows).sublime-keymap",
|
||||
"/C/Users/Peter/git/HRD-Web-Frontend/application/controllers/dashboard.php",
|
||||
"/C/Users/Peter/git/HRD-Web-Frontend/application/views/dashboard/index.php",
|
||||
"/C/wamp/www/m3php/data.html",
|
||||
"/C/Users/Peter/git/HRD-Web-Frontend/application/views/layout/header.php",
|
||||
"/C/Users/Peter/git/HRD-Web-Frontend/application/config/config.php",
|
||||
"/C/Users/Peter/git/HRD-Web-Frontend/index.php",
|
||||
"/C/Users/Peter/AppData/Roaming/Sublime Text 2/Packages/Default/Base File.sublime-settings",
|
||||
"/C/Users/Peter/AppData/Roaming/Sublime Text 2/Packages/User/Base File.sublime-settings"
|
||||
],
|
||||
"find":
|
||||
{
|
||||
"height": 0.0
|
||||
"height": 32.0
|
||||
},
|
||||
"find_in_files":
|
||||
{
|
||||
|
@ -59,6 +116,8 @@
|
|||
"case_sensitive": false,
|
||||
"find_history":
|
||||
[
|
||||
"get_last_qsos",
|
||||
"map_"
|
||||
],
|
||||
"highlight": true,
|
||||
"in_selection": false,
|
||||
|
@ -76,8 +135,144 @@
|
|||
"groups":
|
||||
[
|
||||
{
|
||||
"selected": 3,
|
||||
"sheets":
|
||||
[
|
||||
{
|
||||
"buffer": 0,
|
||||
"file": "application/controllers/social.php",
|
||||
"settings":
|
||||
{
|
||||
"buffer_size": 1757,
|
||||
"regions":
|
||||
{
|
||||
},
|
||||
"selection":
|
||||
[
|
||||
[
|
||||
392,
|
||||
405
|
||||
]
|
||||
],
|
||||
"settings":
|
||||
{
|
||||
"syntax": "Packages/PHP/PHP.tmLanguage",
|
||||
"translate_tabs_to_spaces": false
|
||||
},
|
||||
"translation.x": 0.0,
|
||||
"translation.y": 0.0,
|
||||
"zoom_level": 1.0
|
||||
},
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"buffer": 1,
|
||||
"file": "application/controllers/dashboard.php",
|
||||
"settings":
|
||||
{
|
||||
"buffer_size": 6056,
|
||||
"regions":
|
||||
{
|
||||
},
|
||||
"selection":
|
||||
[
|
||||
[
|
||||
307,
|
||||
271
|
||||
]
|
||||
],
|
||||
"settings":
|
||||
{
|
||||
"syntax": "Packages/PHP/PHP.tmLanguage",
|
||||
"translate_tabs_to_spaces": false
|
||||
},
|
||||
"translation.x": 0.0,
|
||||
"translation.y": 72.0,
|
||||
"zoom_level": 1.0
|
||||
},
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"buffer": 2,
|
||||
"file": "application/models/logbook_model.php",
|
||||
"settings":
|
||||
{
|
||||
"buffer_size": 13676,
|
||||
"regions":
|
||||
{
|
||||
},
|
||||
"selection":
|
||||
[
|
||||
[
|
||||
6092,
|
||||
6105
|
||||
]
|
||||
],
|
||||
"settings":
|
||||
{
|
||||
"syntax": "Packages/PHP/PHP.tmLanguage",
|
||||
"tab_size": 4.0,
|
||||
"translate_tabs_to_spaces": true
|
||||
},
|
||||
"translation.x": 0.0,
|
||||
"translation.y": 2712.0,
|
||||
"zoom_level": 1.0
|
||||
},
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"buffer": 3,
|
||||
"file": "application/views/social/map.php",
|
||||
"settings":
|
||||
{
|
||||
"buffer_size": 3336,
|
||||
"regions":
|
||||
{
|
||||
},
|
||||
"selection":
|
||||
[
|
||||
[
|
||||
2964,
|
||||
2964
|
||||
]
|
||||
],
|
||||
"settings":
|
||||
{
|
||||
"syntax": "Packages/PHP/PHP.tmLanguage",
|
||||
"translate_tabs_to_spaces": false
|
||||
},
|
||||
"translation.x": 0.0,
|
||||
"translation.y": 1464.0,
|
||||
"zoom_level": 1.0
|
||||
},
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"buffer": 4,
|
||||
"file": "application/config/routes.php",
|
||||
"settings":
|
||||
{
|
||||
"buffer_size": 1545,
|
||||
"regions":
|
||||
{
|
||||
},
|
||||
"selection":
|
||||
[
|
||||
[
|
||||
1392,
|
||||
1392
|
||||
]
|
||||
],
|
||||
"settings":
|
||||
{
|
||||
"syntax": "Packages/PHP/PHP.tmLanguage"
|
||||
},
|
||||
"translation.x": 0.0,
|
||||
"translation.y": 270.0,
|
||||
"zoom_level": 1.0
|
||||
},
|
||||
"type": "text"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
|
@ -87,7 +282,7 @@
|
|||
},
|
||||
"input":
|
||||
{
|
||||
"height": 0.0
|
||||
"height": 31.0
|
||||
},
|
||||
"layout":
|
||||
{
|
||||
|
@ -137,6 +332,6 @@
|
|||
"show_open_files": false,
|
||||
"show_tabs": true,
|
||||
"side_bar_visible": true,
|
||||
"side_bar_width": 150.0,
|
||||
"side_bar_width": 210.0,
|
||||
"status_bar_visible": true
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
Ładowanie…
Reference in New Issue