Jump to content

mltpilot

Members
  • Posts

    20
  • Joined

  • Last visited

Everything posted by mltpilot

  1. In my flights schedules page, the Options list and my main flight ID are white, the same colour of the background so I can't see anything unless I put my cursor on it. Is there a way I can change this specific text colour. I am using the Lance Free Skin. Thanks
  2. How can I link my Aircraft to the actual aircraft. I have added names to the dropdown menu, but its still not filtering aircraft. How can i do this? <div id="aircrafttab"> <p>Select Aircraft:</p> <select id="equipment" name="equipment"> <option value="">Select aircraft</option> <?php if(!$aircraft_list) { $aircraft_list = array(); } foreach($aircraft_list as $aircraft) { echo '<option value="'.$aircraft->name.'">'.$aircraft->name.'</option>'; } ?> </select> <input type="submit" name="submit" value="Find Flights" /> </div>
  3. Every time I use filter to find a route, it comes up under another tabs section and logo. This is the second time it happens so I have 2 tabs sections and 2 tabs logo's. How can I arrange this? I am using lance free skin.
  4. Ok! Problem Solved! Thanks
  5. As I use the filter on an airport in Schedules section, the results come up but I see the Tabs and Logo come up the second time, just beneath the original. How can I fix this?
  6. Didn't work, is there another option? Iput the code after the link
  7. vistajetvirtual.com schedules page
  8. W here should i input this code?
  9. Warning: Invalid argument supplied for foreach() in /home/vistrojh/public_html/lib/skins/lance/frontpage_recentpilots.tpl on line 3
  10. How can I make a page only accessible when a pilot is logged in or registered? Thanks in advance
  11. How Can I Fill in and create page for Seperated Link, About Tab in the Lance Skin?" Thanks
  12. Still not working. Is this correct? <?php /** * phpVMS - Virtual Airline Administration Software * Copyright © 2008 Nabeel Shahzad * For more information, visit www.phpvms.net * Forums: http://www.phpvms.net/forum'>http://www.phpvms.net/forum * Documentation: http://www.phpvms.net/docs'>http://www.phpvms.net/docs * * phpVMS is licenced under the following license: * Creative Commons Attribution Non-commercial Share Alike (by-nc-sa) * View license.txt in the root, or visit http://creativecommons.org/licenses/by-nc-sa/3.0/ * * @author Nabeel Shahzad * @copyright Copyright © 2008, Nabeel Shahzad * @link http://www.phpvms.net * @license http://creativecommons.org/licenses/by-nc-sa/3.0/ */ class OFCharts extends CodonData { protected static $chart; protected static $x_axis; protected static $y_axis; protected static $data_set = array(); protected static $range; protected static function init() { include_once CORE_LIB_PATH.'/php-ofc-library/open-flash-chart.php'; self::$chart = new open_flash_chart(); self::$y_axis = new y_axis(); self::$x_axis = new x_axis(); } protected static function get_range($values) { # Determine a max $range = array( 'max' => $values[0], 'min' => $values[1], ); foreach($values as $v) { if($v > $range['max']) $range['max'] = $v; if($v < $range['min']) $range['min'] = $v; } if($range['max'] == $range['min']) { $step = ceil($range['max']/2); } else { $diff = intval(abs($range['max'] - $range['min'])); $step = ceil(($diff / 90)); } $range['max'] += $step; $range['min'] -= $step; return $range; } public static function add_data_set($titles, $values, $line_title = '', $color='#3D5C56') { self::$data_set[] = array( 'line_title' => $line_title, 'titles' => $titles, 'values' => $values, 'color' => $color, ); } public static function create_pie_graph($title) { self::init(); $d = array(); foreach(self::$data_set as $data) { $d[] = new pie_value($data['values'], $data['titles']); } $pie = new pie(); $pie->start_angle(35) ->add_animation( new pie_fade() ) ->add_animation( new pie_bounce(4) ) // ->label_colour('#432BAF') // <-- uncomment to see all labels set to blue ->gradient_fill() ->tooltip( '#val# of #total#<br>#percent# of 100%' ) ->colours( array( '#1F8FA1', // <-- blue '#848484', // <-- grey '#CACFBE', // <-- green '#DEF799' // <-- light green ) ); $pie->set_values( $d ); self::$chart->add_element($pie); self::show_chart($title); } public static function create_area_graph($title) { self::init(); $d = new solid_dot(); $d->size(3)->halo_size(1)->colour('#3D5C56'); $range_values = array(); foreach(self::$data_set as $data) { if(!is_array($data['values'])) continue; $area = new area(); // set the circle line width: $area->set_width( 2 ); $area->set_default_dot_style($d); $area->set_colour($data['color']); $area->set_fill_colour($data['color']); $area->set_fill_alpha( .3 ); $area->on_show(new line_on_show('pop-up', 2, 0.5)); $area->set_key($data['line_title'], 10); $area->set_values($data['values']); # Since there should be an even number on the xaxis for all sets $x_axis_titles = $data['titles']; # Add our values into a big bucket so we can get the highest and lowest $range_values = array_merge($range_values, $data['values']); self::$chart->add_element($area); } $x_labels = new x_axis_labels(); $x_labels->set_labels( $x_axis_titles ); $x_labels->set_vertical(); self::$x_axis->set_labels( $x_labels ); $range = self::get_range($range_values); self::$y_axis->set_range($range['min'], $range['max']); self::show_chart($title); } /** * Create a single line graph * * @param string $title Title of the graph * @param array $values Array of values * @param array $titles Array of titles * @return none * */ public static function create_line_graph($title) { self::init(); $d = new solid_dot(); $d->size(3)->halo_size(1)->colour('#3D5C56'); $range_values = array(); foreach(self::$data_set as $data) { if(!is_array($data['values'])) continue; $line = new line(); $line->set_default_dot_style($d); $line->set_values($data['values']); $line->set_width(2); $line->set_key($data['line_title'], 10); $line->set_colour($data['color']); # Since there should be an even number on the xaxis for all sets $x_axis_titles = $data['titles']; # Add our values into a big bucket so we can get the highest and lowest $range_values = array_merge($range_values, $data['values']); self::$chart->add_element($line); } $x_labels = new x_axis_labels(); $x_labels->set_labels( $x_axis_titles ); $x_labels->set_vertical(); self::$x_axis->set_labels( $x_labels ); $range = self::get_range($range_values); self::$y_axis->set_range($range['min'], $range['max']); self::show_chart($title); } protected static function show_chart($title) { $title = new title($title); self::$chart->set_title($title); self::$chart->set_y_axis(self::$y_axis); self::$chart->set_x_axis(self::$x_axis); self::$chart->set_bg_colour( '#FFFFFF' ); #echo '<pre>'; echo self::$chart->toPrettyString(); } }
  13. Open Flash Chart JSON Parse Error [syntax Error] Error at character 0, line 1: 0: <br /> This is the error I'm getting as I press on the My Stats menu! How can I fix this? Craig
  14. This is an error I encountered when I installed LANCE skin: Warning: Invalid argument supplied for foreach() in/home/vistrojh/public_html/lib/skins/lance/frontpage_recentpilots.tplon line 3 How can I fix this?
  15. What ACARS Program do you recommend for VA's
  16. Please give me steps on how to delete recaptcha! Thanks
  17. Same problems with me too! Registration not working.
  18. Whisch is the best free ACARS Program I can use? Thanks
  19. The proble is I am using 000webhost.com, in which I cant give database permissions. Is there any other way I can do this?
  20. Hi All, After I filled in the details of my Database account, this error came: Fatal error: Uncaught <blockquote><font face=arial size=2 color=000099><b>Last Error --</b> [<font color=000000><b>Unknown MySQL server host 'mysql6.000webhost.com ' (3) (2005)</b></font>]<br />[<font color=000000></font>]</font><p> </blockquote><hr noshade color=dddddd size=1> thrown in /home/a3575548/public_html/core/classes/ezdb/ezdb_mysql.class.php on line 99 How can I resolve this? Thanks
×
×
  • Create New...