Hi is there a quick way of displaying the current flight bids on another page just like they are in the admin section?
You can get all the current bid info using
<?php $bids = SchedulesData::getAllBids(); ?>
Then use your $bids variable to display what you would like
You can get all the current bid info using
<?php $bids = SchedulesData::getAllBids(); ?>Then use your $bids variable to display what you would like
Awesome, thanks Simpilot. Moving to Code Sniplets!
Cheers, Thanks for that
You could use the same code above but you need to include the codon config to phpvms at the top of the new page to access the api.
You can use this php command to do that:
<?php include("your-site-path/codon.config.php"); ?>
On top of your page. Take a farther look here:
http://www.w3schools.com/PHP/php_includes.asp
And here:
Hi im learning my way in phpVMS, hence excuse this question if this is stupid
i tried to use this Snippet, but no joy, In phpVMS i have bids, and ive also inserted this code, now how do i access them?
Give me an example
This is how i intend to use the details
<table class=“table”>
<thead>
<h4><tr>
<th>Pilot</th>
<th>Aircraft</th>
<th>Sector</th>
</tr></h4>
</thead>
<tbody>
<?php $bids = SchedulesData::getAllBids(); ?>
<tr> <!-- I NEED TO GET THE DETAILS OF BIDS AND PASTE IT HERE–>
<td>???</td>
<td>???</td>
<td>???</td>
</tbody>
On 5/1/2017 at 11:13 PM, LeonardIGO4036 said:
Hi im learning my way in phpVMS, hence excuse this question if this is stupid
i tried to use this Snippet, but no joy, In phpVMS i have bids, and ive also inserted this code, now how do i access them?
Give me an example
This is how i intend to use the details
<table class=“table”>
<thead>
<h4><tr>
<th>Pilot</th>
<th>Aircraft</th>
<th>Sector</th>
</tr></h4>
</thead><tbody>
<?php $bids = SchedulesData::getAllBids(); ?>
<tr> <!-- I NEED TO GET THE DETAILS OF BIDS AND PASTE IT HERE–>
<td>???</td><td>???</td>
<td>???</td>
</tbody>
U need to trigger a foreach($bids as $bid)
Use the variables used in used in schedule_bids.php