Jump to content

Live Map issue. Help!


tobyrice01

Recommended Posts

Website: http://bluehawkvirtual.net/index.php/

The live map has the pilot on it. When you click it, it does not go to the pilot's profile.

(E.G. http://bluehawkvirtual.net/index.php/profile/view/79 )

Here is the Frontpage_main.tpl:

<style>
#bodytext{
padding:0px;
}
.bodytext{padding:5px;}
</style>
<div class="innerwrapper" style="margin-top:0px;">

</div>
<script>
$(document).ready(function(){
 $('.carousel').carousel({
 interval: 2000
})
});
</script>
<center>(Click the side arrows to start the slideshow)</center>
<div class="bodytext">
<div class="row">
 <div class="col-md-4">
 <div class="span3"><h3>Latest News</h3>
<?php SimpleNews::NewsList(5); ?>

  <h3>Statistics</h3>
<table cellspacing="0" border="0" style="width: 210px; font-size:12px;">
<tbody><tr>
		    <td><strong>Total Hours:</strong></td>
		    <td style><span class="label label-default"><?php echo StatsData::TotalHours (); ?></span></td>

</tr>
 <tr>
 <td><strong>Total Flights:</strong></td>
		    <td><span class="label label-default"><?php echo StatsData::TotalFlights(); ?></span></td>
		   </tr>
		 <tr>
	   <td><strong>Miles Flown:</strong></td>
	   <td><span class="label label-default"><?php echo StatsData::totalmilesflown(); ?>nm</span></td>
	   </tr>


	   <tr>
	   <td><strong>Pilot Recruitment Status:</strong></td>
	   <td><span class="label label-success">Open</span></td>
	   </tr>
	   <tr>
	   <td><strong>Staff Recruitment Status:</strong></td>
	   <td><span class="label label-success">Open</span></td>
	   </tr>

</table>


 <h3>Newest Pilots</h3>
 <?php MainController::Run('Pilots', 'RecentFrontPage', 5); ?>


<h3>Random Screenshot</h3>
<?php Screenshots::show_random_screenshot(); ?>

<h3>Pilot Training</h3>
<img src=http://bluehawkvirtual.net/lib/skins/Arctic/images/Learn-To-Fly-Sign-single4.png width="150" height="150">
<p>See our Pilot Training!
<p><a href="http://www.bluehawkvirtual.net/index.php/pages/comingsoon">Check it out here!
</a></p>
</div>



<h3>Partners</h3>
<a href="http://www.vatsim.net"><img src=http://bluehawkvirtual.net/lib/skins/Arctic/images/vatsim.PNG width="175" height="81">
<p>
<a href="http://www.fs2crew.com"><img src=http://bluehawkvirtual.net/lib/skins/Arctic/images/FS2Crew_Banner.jpg width="175" height="55">
<p>
<a href="http://paintingpete.weebly.com"><img src=http://www.soarvirtualairlines.net/lib/images/Fleet%20Cards/white.png width="175">
</p></a>

<h3>VATSIM Flights</h3>
<?php MainController::Run('Vatsim', 'create_vatsim_table', '!CLIENTS:', 'PILOT', 'BHK'); ?>


</div>


 <div class="col-md-7" >
 <h3>About</h3>
 <img src="http://bluehawkvirtual.net/lib/skins/Arctic/images/BlueHawk%20Virtual%20Airways%20-%20Reflect.PNG" width="600">
 <p>
 <p>Welcome to BlueHawk Virtual Airways!
 <p>We were founded on May 9th, 2013 and have been serving the virtual skies since.
 <p>We operate out of 7 major hubs which are spread across the world!
 <p>Our fleet is large and versatile, containing aircraft such as the Cessna 208 Caravan, to the Boeing 777 Worldliner.
 <p>
 <p>We use the flight simulators FS9, FSX, P3D and X-Plane so if you have a flight-sim, you can fly with us.
 <p>
 <p>Our flight logging software, or ACARS, is the genius "SmartCARS" program.
 <p>It is very detailed, user friendly, and has many cool features such as a built in Chat box, and online "radio".
 <p>
 <p>We are always accepting new pilot applications, so come fly with us!
 <p>
 <p><b>BlueHawk Virtual Airways - Your Skyhome</b>
 <p>
 </p>



 <div class="art-postcontent art-postcontent-0 clearfix"><div class="art-content-layout-wrapper layout-item-0">
<div class="art-content-layout layout-item-1">
<div class="art-content-layout-row">
<div class="art-layout-cell layout-item-2" style="width: 100%" >
<div class="art-blockheader">
<h3 class="t">Live Flight Tracker</h3>
</div>
<p style="color: rgb(46, 59, 62);">
<script type="text/javascript">
var acars_map_defaults = {
autozoom: true,
zoom: 4,
   center: new google.maps.LatLng("45.484400", "-62.334821"),
   mapTypeId: google.maps.MapTypeId.TERRAIN,
   refreshTime: 10000
};
</script>
<div class="mapcenter" align="center">
<div id="acarsmap" style="width:600px; height: 500px"></div>
</div>
<br />
<table width="100%" border="5" cellspacing="0" cellpadding="0" class="ocean_table">
<thead>
<tr>
 <th>Pilot</th>
 <th>Flight</th>
 <th>Departure</th>
 <th>Arrival</th>
 <th>Status</th>
 <th>Altitude</th>
 <th>Aircraft</th>
</tr>
</thead>
<tbody id="pilotlist"></tbody>
</table>
<script type="text/javascript" src="<?php echo SITE_URL; ?>/lib/js/acarsmap.js"></script>
<script type="text/html" id="acars_map_row">
<tr class="<%=flight.trclass%>">
<td width="80"><a href="<?php echo SITE_URL; ?>/profile/view/<%=flight.pilotname%>"><%=flight.pilotname%></a></td>
<td width="80"><%=flight.flightnum%></td>
<td width="20"><%=flight.depicao%></td>
<td width="20"><%=flight.arricao%></td>
<td width="80"><%=flight.phasedetail%></td>
<td width="40"><%=flight.alt%></td>
<td width="140"><%=flight.aircraftname%></td>
</tr>
</script>
<script type="text/html" id="acars_map_bubble">
<span style="font-size: 10px; text-align:left; width: 100%" align="left">
<a href="<?php echo SITE_URL; ?>/profile/view/<%=flight.pilotid%>"><%=flight.pilotid%> - <%=flight.pilotname%></a><br />
<strong>Flight <%=flight.flightnum%></strong> (<%=flight.depicao%> to <%=flight.arricao%>)<br />
<strong>Status: </strong><%=flight.phasedetail%><br />
<strong>Dist/Time Remain: </strong><%=flight.distremaining%> nm / <%=flight.timeremaining%><br />
</span>
</script>
<script type="text/html" id="navpoint_bubble">
<span style="font-size: 10px; text-align:left; width: 100%" align="left">
<strong>Name: </strong><%=nav.title%> (<%=nav.name%>)<br />
<strong>Type: </strong>
<% if(nav.type == 2) { %> NDB <% } %>
<% if(nav.type == 3) { %> VOR <% } %>
<% if(nav.type == 4) { %> DME <% } %>
<% if(nav.type == 5) { %> FIX <% } %>
<% if(nav.type == 6) { %> TRACK <% } %>
<br />
<% if(nav.freq != 0) { %>
<strong>Frequency: </strong><%=nav.freq%>
<% } %>
</span>
</script>
<br></br>

<h3>Live Flights</h3>
<?php
$q = "SELECT * FROM phpvms_acarsdata";
$l = DB::get_results($q);
if($l != null){
?>
<table border="0" width="100%" cellspacing="4" class="acarsmap">
<thead>
<tr>
 <td><b>Pilot</b></td>
 <td><b>Flight Number</b></td>
 <td><b>Departure</b></td>
 <td><b>Arrival</b></td>
 <td><b>Status</b></td>

</tr>
</thead>
<tbody id="pilotlist">
<?
foreach($l as $fl) {
$lu = strtotime($fl->lastupdate);
$min_u = strtotime(date("Y-m-d") - 900);
if($lu > $min_u) {
echo("<tr>");
echo("<td>".$fl->pilotname."</td>");
echo("<td>".$fl->flightnum."</td>");
echo("<td>".$fl->depicao."</td>");
echo("<td>".$fl->arricao."</td>");
echo("<td>".$fl->phasedetail."</td>");

echo("</tr>");
}
}
}else{ ?>

<div class="alert alert-info">

 <strong>Looks Like our Pilots are taking a rest!</strong> There is no current flights online.
</div>
<?php
}
?>
</tbody>
</table>
<h3>Recent Flights</h3>
 <?php
$count = 5;
$pireps = PIREPData::getRecentReportsByCount($count);
?>
<table class="table table-striped">
  <thead>
	 <tr>
	   <th>Flight #</th>
	   <th>Departure</th>
	   <th>Arrival</th>
	   <th>Duration</th>
	   <th>Pilot</th>
	   <th>Landing Rate</th>
	 </tr>
    </thead>
<tbody>

<?php
if(count($pireps) > 0)
{
 foreach ($pireps as $pirep)
 {
    $pilotinfo = PilotData::getPilotData($pirep->pilotid);
    $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid);
    echo '<tr>';
    echo '<td>'.$pirep->code.$pirep->flightnum.'</td>';
    echo '<td>'.$pirep->depicao.'</td>';
    echo '<td>'.$pirep->arricao.'</td>';
    echo '<td>'.$pirep->flighttime.'</td>';
    echo '<td>'.$pilotinfo->firstname.' '.$pilotinfo->lastname.'</td>';
    echo '<td>'.$pirep->landingrate.'</td>';
    echo '</tr>';
 }
}
else
{
    echo '<tr><td>There are no recent flights!</td></tr>';
}
?>
  </tbody>
</table>
 </div>

</div>

</div>

How do I fix this?

Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...