ncd200
-
Posts
163 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Posts posted by ncd200
-
-
I have installed the sql, I am using the php version.
My code from the schedule_results is allmost default now cause of a clean install after trying everything.
I have removed one line that was causing errors with my template.
Quote<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
Quote<div class="app-content content container-fluid">
<div class="content-wrapper">
<div class="content-header row">
</div>
<section id="basic-alerts">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header">
<h4 class="card-title">Avaiable flights</h4>
<a class="heading-elements-toggle"><i class="icon-ellipsis font-medium-3"></i></a>
<div class="heading-elements">
<ul class="list-inline mb-0">
<li><a data-action="collapse"><i class="icon-minus4"></i></a></li>
<li><a data-action="reload"><i class="icon-reload"></i></a></li>
<li><a data-action="expand"><i class="icon-expand2"></i></a></li>
<li><a data-action="close"><i class="icon-cross2"></i></a></li>
</ul>
</div>
</div>
<div class="card-body collapse in">
<div class="card-block">
<?php
$pilotid = Auth::$userinfo->pilotid;
$last_location = FltbookData::getLocation($pilotid);
$last_name = OperationsData::getAirportInfo($last_location->arricao);
?>
<!-- Bootstrap - Latest compiled and minified CSS --><!-- Pagination => Enable it via the module settings -->
<?php if($settings['pagination_enabled'] == 1) { ?>
<style>
div.dataTables_paginate {
float: right;
margin-top: -25px;
}
div.dataTables_length {
float: left;
margin: 0;
}
div.dataTables_filter {
float: right;
margin: 0;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script><script type="text/javascript" src="<?php echo fileurl('lib/js/jquery.dataTables.js');?>"></script>
<script type="text/javascript" src="<?php echo fileurl('lib/js/datatables.js');?>"></script>
<script type="text/javascript" src="<?php echo fileurl('lib/js/dataTables.bootstrap.min.js');?>"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
$('#schedules_table').dataTable( {
"lengthMenu": [ [10, 25, 50, -1], [10, 25, 50, "All"] ]
} )});
</script>
<?php } ?>
<!-- Latest compiled and minified JavaScript - Modified to clear modal on data-dismiss -->
<script type="text/javascript" src="<?php echo SITE_URL; ?>/lib/js/bootstrap.js"></script>
<br /><table id="schedules_table" class="table" width="100%">
<?php
if(!$allroutes) {
echo '<tr><td align="center">No flights found!</td></tr>';
} else {
?>
<thead>
<tr id="tablehead">
<th>Airline</th>
<th>Flight Number</th>
<th>Origin</th>
<th>Destination</th>
<th>Aircraft</th>
<th>Options</th>
<?php if($settings['show_details_button'] == 1) { ?>
<th style="display: none;">Details</th>
<?php } ?>
</tr>
</thead>
<tbody>
<?php
foreach($allroutes as $route) {
if($settings['disabled_ac_sched_show'] == 0) {
# Disable 'fake' aircraft to get hide a lot of schedules at once
$aircraft = FltbookData::getAircraftByID($route->aircraftid);
if($aircraft->enabled != 1) {
continue;
}
}if(Config::Get('RESTRICT_AIRCRAFT_RANKS') == 1 && Auth::LoggedIn()) {
if($route->aircraftlevel > Auth::$userinfo->ranklevel) {
continue;
}
}
?>
<tr style="height: 12px; font-size: 14px; font-weight: normal;">
<td width="16.5%" valign="middle"><img src="<?php echo SITE_URL; ?>/lib/images/airlinelogos/<?php echo $route->code;?>.png" alt="<?php echo $route->code;?>"></td>
<td width="16.5%" align="center" valign="middle"><?php echo $route->code . $route->flightnum?></td>
<td width="16.5%" align="center" valign="middle"><?php echo $route->depicao ;?></td>
<td width="16.5%" align="center" valign="middle"><?php echo $route->arricao ;?></td>
<td width="16.5%" valign="middle"><?php echo $route->aircraft ;?>
<div class="vertical-align-text pull-right" style="padding-left: 6px;">
<div class="font-small pull-right"><?php echo $route->flighttime; ?>h</div>
<div class="font-small"><?php echo round($route->distance, 0, PHP_ROUND_HALF_UP); ?>nm</div>
</div>
</td>
<td width="16.5%" align="center" valign="middle">
<?php if($settings['show_details_button'] == 1) { ?>
<input type="button" value="Details" class="btn btn-warning" onclick="$('#details_<?php echo $route->flightnum;?>').toggle()">
<?php } ?>
<?php
$aircraft = OperationsData::getAircraftInfo($route->aircraftid);
$acbidded = FltbookData::getBidByAircraft($aircraft->id);
$check = SchedulesData::getBidWithRoute(Auth::$userinfo->pilotid, $route->code, $route->flightnum);if(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0) {
echo '<div class="btn btn-danger btn-sm disabled">Booked</div>';
} elseif($check) {
echo '<div class="btn btn-danger btn-sm disabled">Booked</div>';
} else {
echo '<a data-toggle="modal" href="'.SITE_URL.'/action.php/Fltbook/confirm?id='.$route->id.'&airline='.$route->code.'&aicao='.$route->aircrafticao.'" data-target="#confirm" class="btn btn-success btn-md">Book</a>';
}
?>
</td>
<?php if($settings['show_details_button'] == 1) { ?>
<td colspan="6" id="details_<?php echo $route->flightnum; ?>" style="display: none;" width="100%">
<table class="table table-striped">
<tr>
<th align="center" bgcolor="black" colspan="6"><font color="white">Flight Briefing</font></th>
</tr>
<tr>
<td>Departure:</td>
<td colspan="2"><strong>
<?php
$name = OperationsData::getAirportInfo($route->depicao);
echo "{$name->name}";
?></strong>
</td>
<td>Arrival:</td>
<td colspan="2"><strong>
<?php
$name = OperationsData::getAirportInfo($route->arricao);
echo "{$name->name}";
?></strong>
</td>
</tr>
<tr>
<td>Aircraft</td>
<td colspan="2"><strong>
<?php
$plane = OperationsData::getAircraftByName($route->aircraft);
echo $plane->fullname;
?></strong>
</td>
<td>Distance:</td>
<td colspan="2"><strong><?php echo $route->distance.Config::Get('UNITS'); ?></strong></td>
</tr>
<tr>
<td>Dep Time:</td>
<td colspan="2"><strong><font color="red"><?php echo $route->deptime?> UTC</font></strong></td>
<td>Arr Time:</td>
<td colspan="2"><strong><font color="red"><?php echo $route->arrtime?> UTC</font></strong></td>
</tr>
<tr>
<td>Altitude:</td>
<td colspan="2"><strong><?php echo $route->flightlevel; ?> ft</strong></td>
<td>Duration:</td>
<td colspan="2">
<font color="red">
<strong>
<?php
$dist = $route->distance;
$speed = 440;
$app = $speed / 60;
$flttime = round($dist / $app,0) + 20;
$hours = intval($flttime / 60);
$minutes = (($flttime / 60) - $hours) * 60;if($hours > "9" AND $minutes > "9") {
echo $hours.':'.$minutes ;
} else {
echo '0'.$hours.':0'.$minutes ;
}
?> Hrs
</strong>
</font>
</td>
</tr>
<tr>
<td>Days:</td>
<td colspan="2"><strong><?php echo Util::GetDaysLong($route->daysofweek); ?></strong></td>
<td>Price:</td>
<td colspan="2"><strong>$<?php echo $route->price ;?>.00</strong></td>
</tr>
<tr>
<td>Flight Type:</td>
<td colspan="2"><strong>
<?php
if($route->flighttype == "P") {
echo 'Passenger';
} elseif($route->flighttype == "C") {
echo 'Cargo';
} elseif($route->flighttype == "H") {
echo 'Charter';
} else {
echo 'Passenger';
}
?>
</strong></td>
<td>Times Flown</td>
<td colspan="2"><strong><?php echo $route->timesflown ;?></strong></td>
</tr>
</table>
</td>
<?php } ?>
</tr>
<div class="modal fade" id="confirm">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
</div>
</div>
</div>
</div>
<?php
/* END OF ONE TABLE ROW */
}
}
?>
</tbody>
</table>
</div>
<hr>
<center><a href="<?php echo url('/Fltbook') ;?>"><input type="submit" class="btn btn-primary" name="submit" value="Back to Flight Booking" ></a></center></div>
<br /> -
Thanks, but as mentioned above, I have allready tried that. when i do that the popup opens as a blank white line. no form below it.
Rick
-
Ok another problem.
Also I have now the problem that the popup for aircraft selection dissappears directly.
I have tried to use the options given above but I can't figure it out.
I know it is a js problem.
Any ideas?
Rick
-
18 minutes ago, Vangelis said:
send ftp and a demo username and password and i will have a look at it
PM Send
-
thank you for the reply, the problem is that I have tried all day now to fix it with reding topics here.
There is something in my template that is not working as it should.
Any more ideas?
I can pay for the help
-
Hello
Can someone help me solving the no route passed error.
I can't find the error.
Website
Crew.silverwingsva.com
Kindly regards
Rick
-
Thanks mate, Works !!
-
Hello,
My new admin template is running but i cant find out why i recieve the error no route passed.
I know for sure it is a jquiry error. but dont know how to fix this.
Can anyone take a look at my layout?
The link is crew.silverwingsva.com
Kindly regards,
Rick
Quote<!DOCTYPE html>
<html lang="en"><head>
<link rel="icon" type="image/png" sizes="16x16" href="<?php echo SITE_URL?>/lib/skins/crewcenter/plugins/images/favicon.ico">
<title>SVG | CrewCenter</title>
<?php echo $page_htmlhead; ?>
<!-- Bootstrap Core CSS -->
<link href="<?php echo SITE_URL?>/lib/skins/crewcenter/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Menu CSS -->
<link href="<?php echo SITE_URL?>/lib/skins/crewcenter/plugins/bower_components/sidebar-nav/dist/sidebar-nav.min.css" rel="stylesheet">
<!-- chartist CSS -->
<link href="<?php echo SITE_URL?>/lib/skins/crewcenter/plugins/bower_components/chartist-js/dist/chartist.min.css" rel="stylesheet">
<link href="<?php echo SITE_URL?>/lib/skins/crewcenter/plugins/bower_components/chartist-plugin-tooltip-master/dist/chartist-plugin-tooltip.css" rel="stylesheet">
<!-- Vector CSS -->
<link href="<?php echo SITE_URL?>/lib/skins/crewcenter/plugins/bower_components/vectormap/jquery-jvectormap-2.0.2.css" rel="stylesheet" />
<!-- animation CSS -->
<link href="<?php echo SITE_URL?>/lib/skins/crewcenter/css/animate.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="<?php echo SITE_URL?>/lib/skins/crewcenter/css/style.css" rel="stylesheet">
<!-- color CSS -->
<link href="<?php echo SITE_URL?>/lib/skins/crewcenter/css/colors/megna-dark.css" id="theme" rel="stylesheet">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head><body class="fix-header">
<?php echo $page_htmlreq; ?>
<div id="content">
<?php if(Auth::LoggedIn() == true){ ?>
<?php require 'app_top.php' ?>
<? } ?>
<?php echo $page_content; ?>
</div>
</div>
<!-- /.container-fluid -->
<footer class="footer text-center"> © 2016 - <?php echo date("Y"); ?> Copyright. SilverWingsva.com</footer>
</div>
<!-- /#page-wrapper -->
</div>
<!-- /#wrapper -->
<!-- jQuery -->
<script src="<?php echo SITE_URL?>/lib/skins/crewcenter/plugins/bower_components/jquery/dist/jquery.min.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="<?php echo SITE_URL?>/lib/skins/crewcenter/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- Menu Plugin JavaScript -->
<script src="<?php echo SITE_URL?>/lib/skins/crewcenter/plugins/bower_components/sidebar-nav/dist/sidebar-nav.min.js"></script>
<!--Counter js -->
<script src="<?php echo SITE_URL?>/lib/skins/crewcenter/plugins/bower_components/waypoints/lib/jquery.waypoints.js"></script>
<script src="<?php echo SITE_URL?>/lib/skins/crewcenter/plugins/bower_components/counterup/jquery.counterup.min.js"></script>
<!--slimscroll JavaScript -->
<script src="<?php echo SITE_URL?>/lib/skins/crewcenter/js/jquery.slimscroll.js"></script>
<!--Wave Effects -->
<script src="<?php echo SITE_URL?>/lib/skins/crewcenter/js/waves.js"></script>
<!-- Vector map JavaScript -->
<script src="<?php echo SITE_URL?>/lib/skins/crewcenter/plugins/bower_components/vectormap/jquery-jvectormap-2.0.2.min.js"></script>
<script src="<?php echo SITE_URL?>/lib/skins/crewcenter/plugins/bower_components/vectormap/jquery-jvectormap-world-mill-en.js"></script>
<script src="<?php echo SITE_URL?>/lib/skins/crewcenter/plugins/bower_components/vectormap/jquery-jvectormap-in-mill.js"></script>
<script src="<?php echo SITE_URL?>/lib/skins/crewcenter/plugins/bower_components/vectormap/jquery-jvectormap-us-aea-en.js"></script>
<!-- chartist chart -->
<script src="<?php echo SITE_URL?>/lib/skins/crewcenter/plugins/bower_components/chartist-js/dist/chartist.min.js"></script>
<script src="<?php echo SITE_URL?>/lib/skins/crewcenter/plugins/bower_components/chartist-plugin-tooltip-master/dist/chartist-plugin-tooltip.min.js"></script>
<!-- sparkline chart JavaScript -->
<script src="<?php echo SITE_URL?>/lib/skins/crewcenter/plugins/bower_components/jquery-sparkline/jquery.sparkline.min.js"></script>
<script src="<?php echo SITE_URL?>/lib/skins/crewcenter/plugins/bower_components/jquery-sparkline/jquery.charts-sparkline.js"></script>
<!-- Custom Theme JavaScript -->
<script src="<?php echo SITE_URL?>/lib/skins/crewcenter/js/custom.min.js"></script>
<script src="<?php echo SITE_URL?>/lib/skins/crewcenter/js/dashboard3.js"></script>
<!--Style Switcher -->
<script src="<?php echo SITE_URL?>/lib/skins/crewcenter/plugins/bower_components/styleswitcher/jQuery.style.switcher.js"></script>
</body></html>
-
find out which divs are revering to the css, copy all that css code and paste it above all info on the page between <style> </style>
Then just copy the complete code of the boxxes, that should work.
-
Hello,
I am creating my own admin template as shown on the shot below, I am trying to show the menu on all pages, that works if i put the line in the layout.
I am using the freeware crewcenter as a guide on hot to set things up so the following lines are present in the layout to show the menu everywhere.
Quote<?php require 'app_top.php' ?>
Only problem is that the menu based in the app_top.php is also visible in the login page.
Does anyone lnow how to exclude this from the login and registration pages?
-
Hello,
I am creating my brand new admin template for my va. the only problem I have is that I cant figure out why my profile_edit would not save the new entered information.
Anyone that can take a look?
My profile_edit.php is below.
Kindly regards,
Rick
Quote<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?>
<section class="content-header">
<h3>Edit Profile</h3>
</section><!-- Main content -->
<section class="content">
<!-- Main row -->
<div class="row">
<!-- Left col -->
<section class="col-lg-6">
<div class="form-group">
<div class="box-header with-border">
<h3 class="box-title">Edit Profile</h3>
</div>
<div class="box-body">
<form action="<?php echo url('/profile');?>" method="post" enctype="multipart/form-data">
<div class="form-group">
<label>Email Address</label>
<dd><input type="text" name="email" value="<?php echo $pilot->email;?>" class="form-control" />
<?php
if(isset($email_error) && $email_error == true)
echo '<p class="error">Please enter your email address</p>';
?>
</div>
<div class="form-group">
<dt>Location</dt>
<dd><select name="location" class="form-control">
<?php
foreach($countries as $countryCode=>$countryName)
{
if($pilot->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>';
?>
</div>
<div class="form-group">
<?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 name="'.$field->fieldname.'" class="customfield_textarea">'.$field->value.'</textarea>';
} else {
echo '<input type="text" class="form-control" name="'.$field->fieldname.'" value="'.$field->value.'" />';
}
echo '</dd>';
}
}
?>
</div>
<div class="form-group">
<label>Avatar:</label>
<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
}
?>
</div>
<dt></dt>
<dd><input type="hidden" name="action" value="saveprofile" />
<input type="submit" name="submit" value="Save Changes" /></dd>
</dl>
</form>
</div>
<!-- /.box-body -->
</div>
<!-- /.box -->
</section>
<!-- /.Left col -->
<!-- Middle col -->
<section class="col-lg-6">
<div class="form-group">
<div class="box-header with-border">
<h3 class="box-title">Change Password</h3>
</div>
<div class="box-body">
<form action="<?php echo url('/profile');?>" method="post">
<div class="form-group">
<label>Old Password</label>
<input type="password" name="oldpassword" class="form-control">
</div>
<div class="form-group">
<label>New Password</label>
<input type="password" id="password" name="password1" class="form-control" value="">
</div>
<div class="form-group">
<label>Confirm New Password</label>
<input type="password" name="password2" class="form-control" value="">
</div>
<input type="hidden" name="action" value="changepassword" />
<input type="submit" name="submit" class="btn btn-primary btn-flat pull-right" value="Save Password" />
</form>
</div>
<!-- /.box-body -->
</div>
<!-- /.box -->
</section>
<!-- /.Middle col -->
</div>
<!-- /.row (main row) --></section>
<!-- /.content -->
-
5 hours ago, LukeW said:
If you need a promotional video done I have made them in the past for websites and forums. I can provide examples of these.
If you sent me the liveries for your fleet, I could capture then compose anything you needed
Let me know
LukeW,
Thank you for the offer, what would be the costs of this?
I allready have a song ready for the video.
Thank you in advance.
-
SilverWings V.A.
-
1 hour ago, HCStrike said:
If you could provide me with clips I could have a go at doing it
The problem is that I am really bad in creating nice clips for a promo video.
-
Hello.
Does anyone know a person that can create a promotional video for virtual airlines?
Kindly regards
Rick
-
Dear reader,Since November 2016 the plans to restart SilverWings V.A. was born. We provide realistic operations, two different kinds of flight logging, our logging system that scans the IVAO and VATSIM network for your flight number and ID and our SmartCars client for offline flights.
At this moment our route network contains 850 flights and is still counting.
Also quite unique is our typerating system, the maximum rank you can achieve without a typerating is captain, with typeratings you can achieve higher ranks.SilverWings is using a fleet that consist out of different types of aircraft, from small planes as the JS41 or F50 to the big planes as the B744 and A332. Also we have a few helicopters to ensure all pilots can fly whatever they refer.
We are using a modified crew center where you can download our liveries, enter the forum, send emails to other pilots, find our tours and events and plan your flights with a full flight briefing package for the best simulation. Also you will have the choice to get random assigned flights every month based on your wishes by the system.
Please visit our website at www.silverwingsva.com for more information.
We're looking forward to welcome you as a crewmember of SilverWings V.A.
NOTE : We are recruiting staff members to make this V.A. even better as it is now. Visit our website and click on the link staff vacancies for more information.
-
On 11-9-2017 at 11:20 PM, web541 said:
Which dropdown lists (all of them)? Also, how many airports and aircraft types (so not every registration, but each type e.g. B738, B744) do you have in your database? I have a feeling it's loading in way too much information for it to handle, and it may be easier to transform them into text boxes, but just confirm the questions above first.
found the problem, it was in my airport list.
As vacentral is down and the system is unable to fetch airports i have installed a list found here.
I am removing many airports from this list now, allready 8000 now.
Now the site loads faster.
Thanks for the help
-
I recommend to install the simpilots version 5.5.
This is as far as i know the latest version.
-
Hello,
I am also using this great module, I just love it. Only one problem, or you cant call it a problem.
The dropdown list items are taking about a minute to load, which will cause the site responds very slowly.
Do you have any idea on how to fix this?
Kindly regards,
Rick
-
Hello,
I can help you.
Please send me a PM with details, then we can arrange something.
Rick
-
glad you have fixed it.
-
21 minutes ago, HCStrike said:
Anyone know why my crew center looks like this, http://prntscr.com/g5bus8 I am on phpvms 5.5 and I am using the files in the php_templates folder
ing issues with the css not being loaded correctly, why, I cant say right now, are you running minimal php version 5.5 on your host as well?
-
hello,
At my va we are using the Metric system, so all weights in KG.
But everytime we create a flight briefing with simbrief the system is forced to lbs.
Is it possible to force the flightplan generating to kg?
-
3 hours ago, web541 said:
Change that line to this
<td colspan="0" align="left" ><b><?php echo $route->distance . Config::Get('UNITS') ;?></b></td>
and see if that works
yep,that did the trick. thank you very much
FltbookSystem issue
in Support Forum
Posted
negative sir,
Posted below is my confirm bid