Jump to content

SouthwestVA

Members
  • Posts

    71
  • Joined

  • Last visited

Everything posted by SouthwestVA

  1. I need some help, i want to redesign my admin center but i dont know what to do with it. Has anyone here changed theres? If so can i see some screenshots? Thanks
  2. i know, but you cant set it to see only THEIR hub
  3. I got one, an addon for the admin panel that is like My Hub, for those hub managers. They get a list of new pireps for there hub and a list of pilots in there hub with some actions, ex. mark LOA, send an email, add user notes.
  4. I think you get points for the amount of pilots you have
  5. Is there a way i can program the Admin Center so that i can add groups to staff so they can only see the pending PIREPS for there hub?
  6. I love this, i think i want one lol. Professional + - Total custom design with a design of your choice either I will design it or if you like you can design it and I will make Radio station (Due to limitations not all radio stations can be used but I can definetly do the onces included in standard and a few extras) TV (BBC Only) News Movies (Dependent on copyright status of the film) Games About Food order (Iframe) Shop (Have your own products or allow users to use other retailers, Iframe) HTML 5 with Javascript Chat Between £35 - £40 Can I choose like a few like all i want is: Radio TV NEWS Movies Games About Chat HTML 5 and Java. Can you do th is for like 30.
  7. <h3>Edit Profile</h3> <form action="<?php echo url('/profile');?>" method="post" enctype="multipart/form-data"> <dl> <dt>Name</dt> <dd><?php echo $userinfo->firstname . ' ' . $userinfo->lastname;?></dd> <dt>Airline</dt> <dd><?php echo $userinfo->code?> <p>To request a change, contact your admin</p> </dd> <dt>Email Address</dt> <dd><input type="text" name="email" value="<?php echo $userinfo->email;?>" /> <?php if(isset($email_error) && $email_error == true) echo '<p class="error">Please enter your email address</p>'; ?> </dd> <dt>Location</dt> <dd><select name="location"> <?php foreach($countries as $countryCode=>$countryName) { if($userinfo->location == $countryCode) $sel = 'selected="selected"'; else $sel = ''; echo '<option value="'.$countryCode.'" '.$sel.'>'.$countryName.'</option>'; } ?> </select> <?php if(isset($location_error) && $location_error == true) echo '<p class="error">Please enter your location</p>'; ?> </dd> <dt>Signature Background</dt> <dd><select name="bgimage"> <?php foreach($bgimages as $image) { if($userinfo->bgimage == $image) $sel = 'selected="selected"'; else $sel = ''; echo '<option value="'.$image.'" '.$sel.'>'.$image.'</option>'; } ?> </select> </dd> <?php if($customfields) { foreach($customfields as $field) { echo '<dt>'.$field->title.'</dt> <dd>'; if($field->type == 'dropdown') { $field_values = SettingsData::GetField($field->fieldid); $values = explode(',', $field_values->value); echo "<select name=\"{$field->fieldname}\">"; if(is_array($values)) { foreach($values as $val) { $val = trim($val); if($val == $field->value) $sel = " selected "; else $sel = ''; echo "<option value=\"{$val}\" {$sel}>{$val}</option>"; } } echo '</select>'; } elseif($field->type == 'textarea') { echo '<textarea class="customfield_textarea"></textarea>'; } else { echo '<input type="text" name="'.$field->fieldname.'" value="'.$field->value.'" />'; } echo '</dd>'; } } ?> <dt>Avatar:</dt> <dd><input type="hidden" name="MAX_FILE_SIZE" value="<?php echo Config::Get('AVATAR_FILE_SIZE');?>" /> <input type="file" name="avatar" size="40"> <p>Your image will be resized to <?php echo Config::Get('AVATAR_MAX_HEIGHT').'x'.Config::Get('AVATAR_MAX_WIDTH');?>px</p> </dd> <dt>Current Avatar:</dt> <dd><?php if(!file_exists(SITE_ROOT.AVATAR_PATH.'/'.$pilotcode.'.png')) { echo 'None selected'; } else { ?> <img src="<?php echo SITE_URL.AVATAR_PATH.'/'.$pilotcode.'.png';?>" /></dd> <?php } ?> <dt></dt> <dd><input type="hidden" name="action" value="saveprofile" /> <input type="submit" name="submit" value="Save Changes" /></dd> </dl> </form> <h3>Sig Background Previews</h3> <img src="blah" /><br /> add a img tag with your options, thats what i did. <h3>Sig Background Previews</h3> <img src="blah" /><br />
  8. yeah edit the tpl, ill post mine, give me an hour
  9. wheres the powered by phpVMS link back? other then that nice site. Good Luck!
  10. i checked it out, it says <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"[]> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en"> <head> <!-- Created by Taylor Welka --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title><?php echo $page_title ?></title> <meta name="description" content="Description" /> <meta name="keywords" content="Keywords" /> <link rel="stylesheet" href="/lib/skins/UAL1/style.css" type="text/css" media="screen" /> <!--[if IE 6]><link rel="stylesheet" href="style.ie6.css" type="text/css" media="screen" /><![endif]--> <!--[if IE 7]><link rel="stylesheet" href="style.ie7.css" type="text/css" media="screen" /><![endif]--> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="script.js"></script> <?php Template::Show('core_htmlhead.tpl'); ?> </head> <body> <?php Template::Show('core_htmlreq.tpl'); ?> <div id="art-main"> <div class="cleared reset-box"></div> <div class="art-header"> <div class="art-header-clip"> <div class="art-header-center"> <div class="art-header-png"></div> <div class="art-header-jpeg"></div> </div> </div> <div class="art-header-wrapper"> <div class="art-header-inner"> <div class="art-logo"> </div> </div> </div> </div> <div class="cleared reset-box"></div> <div class="art-sheet"> <div class="art-sheet-tl"></div> <div class="art-sheet-tr"></div> <div class="art-sheet-bl"></div> <div class="art-sheet-br"></div> <div class="art-sheet-tc"></div> <div class="art-sheet-bc"></div> <div class="art-sheet-cl"></div> <div class="art-sheet-cr"></div> <div class="art-sheet-cc"></div> <div class="art-sheet-body"> <div class="art-nav"> <div class="art-nav-l"></div> <div class="art-nav-r"></div> <div class="art-nav-outer"> <ul class="art-hmenu"> <li> <a href="./home.html" class="active"><span class="l"></span><span class="r"></span><span class="t">Home</span></a> </li> <li> <a href="./new-page-2.html"><span class="l"></span><span class="r"></span><span class="t">New Page 2</span></a> </li> </ul> </div> </div> <div class="cleared reset-box"></div> <div class="art-content-layout"> <div class="art-content-layout-row"> <div class="art-layout-cell art-content"> <div class="art-post"> <div class="art-post-body"> <div class="art-post-inner art-article"> <div class="art-postcontent"> <p><?php echo $page_content; ?></p> </div> <div class="cleared"></div> </div> <div class="cleared"></div> </div> </div> <div class="cleared"></div> </div> <div class="art-layout-cell art-sidebar1"> <div class="art-block"> <div class="art-block-body"> <div class="art-blockheader"> <h3 class="t">New Block</h3> </div> <div class="art-blockcontent"> <div class="art-blockcontent-body"> <p>Enter Block content here...</p> <div class="cleared"></div> </div> </div> <div class="cleared"></div> </div> </div> <div class="art-block"> <div class="art-block-body"> <div class="art-blockheader"> <h3 class="t">New Block 2</h3> </div> <div class="art-blockcontent"> <div class="art-blockcontent-body"> <p>content here</p> <div class="cleared"></div> </div> </div> <div class="cleared"></div> </div> </div> <div class="art-block"> <div class="art-block-body"> <div class="art-blockheader"> <h3 class="t">New Block 3</h3> </div> <div class="art-blockcontent"> <div class="art-blockcontent-body"> <p>content here</p> <div class="cleared"></div> </div> </div> <div class="cleared"></div> </div> </div> <div class="art-block"> <div class="art-block-body"> <div class="art-blockheader"> <h3 class="t">New Block 4</h3> </div> <div class="art-blockcontent"> <div class="art-blockcontent-body"> <p>content here</p> <div class="cleared"></div> </div> </div> <div class="cleared"></div> </div> </div> <div class="art-block"> <div class="art-block-body"> <div class="art-blockheader"> <h3 class="t">New Block 5</h3> </div> <div class="art-blockcontent"> <div class="art-blockcontent-body"> <p>content here</p> <div class="cleared"></div> </div> </div> <div class="cleared"></div> </div> </div> <div class="cleared"></div> </div> </div> </div> <div class="cleared"></div> <div class="art-footer"> <div class="art-footer-t"></div> <div class="art-footer-b"></div> <div class="art-footer-body"> <div class="art-footer-text"> <p style="font-family:Arial, sans-serif;text-align:-webkit-center;"><span style="color:rgb(249, 250, 251);">Copyright 2011. Virtual United Airlines <br />All logos are copyright of there respective owners. <br />To visit the real world United Airlines please go </span><a href="http://www.united.com/" style="font-family:Arial, Helvetica, sans-serif;"><span style="color:rgb(249, 250, 251);">Here</span></a><span style="color:rgb(249, 250, 251);"><br /></span></p> <p style="font-family:Arial, sans-serif;text-align:-webkit-center;"><span style="color:rgb(249, 250, 251);">Virtual United Airlines is a flight sim community run by flight sim enthusiasts. We are in </span><b><span style="color:rgb(249, 250, 251);">no way</span></b><span style="color:rgb(249, 250, 251);"> affiliated with the real world United airlines.</span></p> </div> <div class="cleared"></div> </div> </div> <div class="cleared"></div> </div> </div> <div class="cleared"></div> <p class="art-page-footer"></p> <div class="cleared"></div> </div> </body> </html> It says UAL, i thought you made it... copy again, thats sad Then you did this in the layout.tpl <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"[]> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en"> <head> <!-- Created by MyVADesigns --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title><?php echo $page_title ?></title> <meta name="description" content="Description" /> <meta name="keywords" content="Keywords" /> <link type="text/css" href="/lib/skins/bluelight/menu.css" rel="stylesheet" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="menu.js"></script> <link rel="stylesheet" href="/lib/skins/bluelight/style.css" type="text/css" media="screen" /> <style type="text/css"> #left { float: left; width: 310px; padding-right: 10px; font-size: 18px; height: 600px; } #centre { width: 264px; float: left; height: 600px; text-align: center; } #right { float: left; width: 206px; padding-left: 10px; text-align: center; font-size: 15px; } #left p { font-size: 15px; } #main { overflow:hidden;clear:both; #left p { font-weight: bold; } #left p h { color: #00F; } #left py { color: #000; } #left p { color: #000; } #left #1block { font-size: 15px; text-align: center; color: #FFF; background-color: #046DA6; } #left #1block1 { font-size: 15px; text-align: center; } </style> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="script.js"></script> <?php Template::Show('core_htmlhead.tpl'); ?> </head> <body> <?php Template::Show('core_htmlreq.tpl'); ?> <div id="art-main"> <div class="cleared reset-box"></div> <div class="art-header"> <div class="art-header-clip"> <div class="art-header-center"> <div class="art-header-png"></div> <div class="art-header-jpeg"></div> </div> </div> <div class="art-header-wrapper"> <div class="art-header-inner"> <div class="art-logo"> </div> </div> </div> </div> <div class="cleared reset-box"></div> <div class="art-sheet"> <div class="art-sheet-tl"></div> <div class="art-sheet-tr"></div> <div class="art-sheet-bl"></div> <div class="art-sheet-br"></div> <div class="art-sheet-tc"></div> <div class="art-sheet-bc"></div> <div class="art-sheet-cl"></div> <div class="art-sheet-cr"></div> <div class="art-sheet-cc"></div> <div class="art-sheet-body"> <div class="art-nav"> <div class="art-nav-l"></div> <div class="art-nav-r"></div> <div id="menu"> <ul class="menu"> <li><a href="http://yourdomain.com/" class="parent"><span>Home</span></a> <div><ul> </ul></div> </li> <li><a href="#"><span>Careers</span></a> <div><ul> <li><a href="http://yourdomain.com/index.php/pages/apply"><span>Join Us!</span></a> </li> </ul></div> </li> <li><a href="#"><span>Operations</span></a> <div><ul> <li><a href="http://yourdomain.com/index.php/pilots"><span>Pilot Roster</span></a> </li> <li><a href="http://yourdomain.com/index.php/downloads"><span>Downloads</span></a> </li> <li><a href="http://yourdomain.com/index.php/Schedules"><span>Schedules</span></a> </li> </ul></div> </li> <li><a href="#"><span>Statistics</span></a> <div><ul> <li><a href="http://yourdomain.com/index.php/touchdownstats" ><span>Top Landings</span></a> </li> <li><a href="http://yourdomain.com/index.php/TopPilot"><span>Top Pilot</span></a> </li> </ul></div> </li> <li><a href="#"><span>Hubs</span></a> <div><ul> <li><a href="http://yourdomain.com/index.php/pages/ord"><span>Chicago</span></a> </li> </ul></div> </li> <li><a href="#"><span>About Us</span></a> <div><ul> <li><a href="http://yourdomain.com/index.php/staff"><span>Staff</span></a> </li> <li><a href="http://yourdomain.com/index.php/pages/staffdirectory"><span>Staff Directory</span></a> </li> </ul></div> </li> <li><a href="http://yourdomain.com/index.php/profile"><span>Pilot Center</span></a> <li class="last"><a href="http://yourdomain.com/forum"><span>Forum</span></a></li> </ul> </div> </div> <div class="cleared reset-box"></div> <div class="art-content-layout"> <div class="art-content-layout-row"> <div class="art-layout-cell art-content"> <div class="art-post"> <div class="art-post-body"> <div class="art-post-inner art-article"> <div class="art-postcontent"> <p><?php echo $page_content; ?></p> </div> <div class="cleared"></div> </div> <div class="cleared"></div> </div> </div> <div class="cleared"></div> </div> <div class="art-layout-cell art-sidebar1"> <div class="art-block"> <div class="art-block-body"> <div class="art-blockheader"> <h3 class="t">Pilot Login</h3> </div> <div class="art-blockcontent"> <div class="art-blockcontent-body"> <p><?php if(Auth::LoggedIn() == false) { ?> <div class="art-Block"> <div class="art-Block-body"> <div class="art-BlockHeader"> <div class="l"></div> <div class="r"></div> <div class="art-header-tag-icon"> <div class="t">Login</div> </div> </div><div class="art-BlockContent"> <div class="art-BlockContent-body"> <div><form name="loginform" action="<?php echo url('/login'); ?>" method="post"> <label>Pilot ID: </label><input type="text" name="email" size="18" value="UAL" onClick="this.value='UAL'" /><br/> <label>Password:</label><input type="password" name="password" size="18" value="" /> <input type="hidden" name="remember" value="on" /> <input type="hidden" name="action" value="login" /> <input type="submit" name="submit" value="Log In" /><br/> <td><a href="http://yourdomain.com/index.php/Login/forgotpassword">Forgot Password</a><a href="http://yourdomain.com/index.php/registration"><br /> Not a Pilot? Join Now!</a></td> </form></div> </div> </div> </div> </div> <?php } else { $pilotid = PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid); ?> <div class="art-Block"> <div class="art-Block-body"> <div class="art-BlockHeader"> <div class="l"></div> <div class="r"></div> <div class="art-header-tag-icon"> <div class="t">Welcome to Your Virtual Airline!</div> </div> </div><div class="art-BlockContent"> <div class="art-BlockContent-body"> <div><strong>Pilot ID: </strong> <?php echo $pilotid ; ?><br/> <strong>Rank: </strong><?php echo Auth::$userinfo->rank;?><br /> <strong>Total Flights: </strong><?php echo Auth::$userinfo->totalflights?> <br/> <strong>Total Hours: </strong><?php echo Auth::$userinfo->totalhours;?> <br /> <li><a href="<?php echo url('/FrontSchedules');?>">Book A Flight</a><br/></li> <li><a href="<?php echo url('/pireps/new');?>">File a New PIREP</a><br/></li> <li><a href="<?php echo url('/schedules/bids');?>">View My Bids</a></li> <?php if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN)) { echo '<li><a href="'.fileurl('/admin').'">Admin Center</a></li> <li><a href="'.fileurl('/index.php/pilotmanager').'">Pilot Manager</a></li><li><a href="http://yourdomain.com/webmail" target="_blank">Staff E-Mail</a></li>'; } ?> <li><a href="<?php echo url('/pages/requestloa');?>">Request LOA</a></li> <li><a href="<?php echo url('/logout'); ?>">Log Out</a></li></div> </div> </div> </div> </div> <?php } ?></p> <div class="cleared"></div> </div> </div> <div class="cleared"></div> </div> </div> <div class="art-block"> <div class="art-block-body"> <div class="art-blockheader"> <h3 class="t">VA Statistics</h3> </div> <div class="art-blockcontent"> <div class="art-blockcontent-body"> <p>Total Pilots: <?php echo StatsData::PilotCount(); ?><br /> Total Flights: <?php echo StatsData::TotalFlights(); ?><br /> Total Hours: <?php echo round(StatsData::TotalHours(), 0); ?> hrs<br /> Flights Today: <?php echo StatsData::totalflightstoday(); ?><br /> Total Pax Carried: <?php echo StatsData::totalpaxcarried(); ?><br /> Miles Flown: <?php echo StatsData::totalmilesflown(); ?> nm<br /> Aircraft In Fleet: <?php echo StatsData::totalaircraftinfleet(); ?><br /> Total Schedules: <?php echo StatsData::totalschedules(); ?><br /></p> <div class="cleared"></div> </div> </div> <div class="cleared"></div> </div> </div> <div class="art-block"> <div class="art-block-body"> <div class="art-blockheader"> <h3 class="t">Newest Pilots</h3> </div> <div class="art-blockcontent"> <div class="art-blockcontent-body"> <p><?php MainController::Run('Pilots', 'RecentFrontPage', 5); ?></p> <div class="cleared"></div> </div> </div> <div class="cleared"></div> </div> </div> <div class="art-block"> <div class="art-block-body"> <div class="art-blockheader"> <h3 class="t">Whos Online</h3> </div> <div class="art-blockcontent"> <div class="art-blockcontent-body"> <p><center> <p><?php $usersonline = StatsData::UsersOnline(); $guestsonline = StatsData::GuestsOnline(); ?> <h4>Pilots Online</h4> <?php if ($usersonline) { $shown = array(); foreach ($usersonline as $user) { if (in_array($user->pilotid, $shown)) { continue; } else { $shown[] = $user->pilotid; echo PilotData::getPilotCode($user->code, $user->pilotid) . ' - ' . $user->firstname . ' ' . $user->lastname.'<br />'; } } echo '<hr />'; } ?> Guests: <?php echo count($guestsonline); ?> </p> </center> </p> <div class="cleared"></div> </div> </div> <div class="cleared"></div> </div> </div> <div class="cleared"></div> </div> </div> </div> <div class="cleared"></div> <div class="art-footer"> <div class="art-footer-t"></div> <div class="art-footer-b"></div> <div class="art-footer-body"> <div class="art-footer-text"> <p style="font-family:Arial, sans-serif;text-align:-webkit-center;"><span style="color:rgb(249, 250, 251);">Copyright 2012 Your VA | Made By MyVADesigns | <a href="http://www.phpvms.net" target="_blank">powered by phpVMS</a></span></br><a href="http://myvadesigns.org"><img src="http://yourdomain.com/lib/skins/bluelight/images/vadesignlo.png"/></a></p> </div> <div class="cleared"></div> </div> </div> <div class="cleared"></div> </div> </div> <div class="cleared"></div> <p class="art-page-footer"></p> <div class="cleared"></div> </div> </body> </html>
  11. wow dude, spam much, seach the forums, do something...
  12. I think it might be in simpilots top pilot mod
  13. if simpilots offering it for money, i dont think anyone has shared theres or is going to ....
  14. $actualtime = $pirep->flighttime; $schedtime = $schedule->flighttime; if($actualtime < $schedtime){ echo '<td>Early</td>'; } elseif($actualtime > $schedtime){ echo '<td>Delayed</td>'; } else { echo '<td>On Time</td>'; } found that in code forums, might help you
  15. <?php $query = 'SELECT flighttime FROM '.TABLE_PREFIX.'pireps WHERE aircraft = '6' AND pilotid = '.Auth::$userinfo->pilotid.'; $result=DB::get_row($query); echo $result->distance; { } ?> try that
  16. AND pilotid = '.Auth::$userinfo->pilotid'; that part, to echo inside of a php code its '.xxx.' you for got the 2nd dot It should be this: AND pilotid = '.Auth::$userinfo->pilotid.';
  17. there is one on the forums, try seaching
  18. <?php $query = 'SELECT flighttime FROM '.TABLE_PREFIX.'pireps WHERE aircraft = 6 AND pilotid = '.Auth::$userinfo->pilotid.'; $result=DB::get_row($query); echo $result->distance; { } ?> you for got a . i think try that.
  19. Now i can say, Thanks Alot Kyle! I think it needed auth because i was calling it in Layout.TPL
  20. <?php /** * These are some options for the ACARS map, you can change here * * By default, the zoom level and center are ignored, and the map * will try to fit the all the flights in. If you want to manually set * the zoom level and center, set "autozoom" to false. * * You can use these MapTypeId's: * http://code.google.com/apis/maps/documentation/v3/reference.html#MapTypeId * * Change the "TERRAIN" to the "Constant" listed there - they are case-sensitive * * Also, how to style the acars pilot list table. You can use these style selectors: * * table.acarsmap { } * table.acarsmap thead { } * table.acarsmap tbody { } * table.acarsmap tbody tr.even { } * table.acarsmap tbody tr.odd { } */ ?> <script type="text/javascript"> <?php /* These are the settings for the Google map. You can see the Google API reference if you want to add more options. There's two options I've added: autozoom: This will automatically center in on/zoom so all your current flights are visible. If false, then the zoom and center you specify will be used instead refreshTime: Time, in seconds * 1000 to refresh the map. The default is 10000 (10 seconds) */ ?> var acars_map_defaults = { autozoom: true, zoom: 4, center: new google.maps.LatLng("<?php echo Config::Get('MAP_CENTER_LAT'); ?>", "<?php echo Config::Get('MAP_CENTER_LNG'); ?>"), mapTypeId: google.maps.MapTypeId.TERRAIN, refreshTime: 10000 }; </script> <div class="mapcenter" align="center"> <div id="acarsmap" style="width:<?php echo Config::Get('MAP_WIDTH');?>; height: <?php echo Config::Get('MAP_HEIGHT')?>"></div> </div> <?php /* See below for details and columns you can use in this table */ ?> <table border = "0" width="100%" 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> <td><b>Altitude</b></td> <td><b>Speed</b></td> <td><b>Distance/Time Remain</b></td> </tr> </thead> <tbody id="pilotlist"></tbody> </table> <script type="text/javascript" src="<?php echo fileurl('/lib/js/acarsmap.js');?>"></script> <?php /* This is the template which is used in the table above, for each row. Be careful modifying it. You can simply add/remove columns, combine columns too. Keep each "section" (<%=...%>) intact Variables you can use (what they are is pretty obvious) Variable: Notes: <%=flight.pilotid%> <%=flight.firstname%> <%=flight.lastname%> <%=flight.pilotname%> First and last combined <%=flight.flightnum%> <%=flight.depapt%> Gives the airport name <%=flight.depicao%> <%=flight.arrapt%> Gives the airport name <%=flight.arricao%> <%=flight.phasedetail%> <%=flight.heading%> <%=flight.alt%> <%=flight.gs%> <%=flight.disremaining%> <%=flight.timeremaning%> <%=flight.aircraft%> Gives the registration <%=flight.aircraftname%> Gives the full name <%=flight.client%> FSACARS/Xacars/FSFK, etc <%=flight.trclass%> "even" or "odd" You can also use logic in the templating, if you so choose: http://ejohn.org/blog/javascript-micro-templating/ */ ?> <script type="text/html" id="acars_map_row"> <tr class="<%=flight.trclass%>"> <td><a href="<?php echo url('/profile/view');?>/<%=flight.pilotid%>"><%=flight.pilotid%> - <%=flight.pilotname%></a></td> <td><%=flight.flightnum%></td> <td><%=flight.depicao%></td> <td><%=flight.arricao%></td> <td><%=flight.phasedetail%></td> <td><%=flight.alt%></td> <td><%=flight.gs%></td> <td><%=flight.distremaining%> <?php echo Config::Get('UNITS');?> / <%=flight.timeremaining%></td> </tr> </script> <?php /* This is the template for the little map bubble which pops up when you click on a flight Same principle as above, keep the <%=...%> tags intact. The same variables are available to use here as are available above. */ ?> <script type="text/html" id="acars_map_bubble"> <span style="font-size: 10px; text-align:left; width: 100%" align="left"> <a href="<?php echo 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%> <?php echo Config::Get('UNITS');?> / <%=flight.timeremaining%><br /> </span> </script> <?php /* This is a small template for information about a navpoint popup Variables available: <%=nav.title%> <%=nav.name%> <%=nav.freq%> <%=nav.lat%> <%=nav.lng%> <%=nav.type%> 2=NDB 3=VOR 4=DME 5=FIX 6=TRACK */ ?> <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> <?php /* Show the type of point */ ?> <% 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 /> <?php /* Only show frequency if it's not a 0*/ ?> <% if(nav.freq != 0) { %> <strong>Frequency: </strong><%=nav.freq%> <% } %> </span> </script>
  21. EDIT: Nah, it still dont work ;(
×
×
  • Create New...