Jump to content
mark1million

Current Flight bids

Recommended Posts

You can get all the current bid info using

<?php $bids = SchedulesData::getAllBids(); ?>

Then use your $bids variable to display what you would like B)

Share this post


Link to post
Share on other sites

You can get all the current bid info using

<?php $bids = SchedulesData::getAllBids(); ?>

Then use your $bids variable to display what you would like B)

Awesome, thanks Simpilot. Moving to Code Sniplets!

Share this post


Link to post
Share on other sites
Guest

I would like to add a bids page in to show current bids on lets say as a new page but not in phpvms.

How would i do that and if i cant what do i need to do to add it to phpvms?

I have tried this code you had above in a new phpvms page but it just comes up showing the code.

I know your probaly laughing now but i'm still learning this.

Thanks Tim

Share this post


Link to post
Share on other sites
Guest

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.

What you said went right over my head .....new to all this.

Share this post


Link to post
Share on other sites

Hi im learning my way in phpVMS, hence excuse this question if this is stupid :P

 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>


 

Share this post


Link to post
Share on other sites
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 :P

 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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×