Jump to content

Recommended Posts

  • Administrators
Posted

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)

Posted

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!

  • 1 year later...
Posted

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

Posted

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.

  • 6 years later...
Posted

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>


 

  • 3 months later...
Posted
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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...