Moderators mark1million Posted August 25, 2011 Moderators Report Posted August 25, 2011 I came across this page from air malta virtual http://airmaltavirtual.com/en/index.php/bookings, Is this custom or is the code available, i done a quick search here but didn't find anything. Daniel, hope you don't mind me listing your site. 1 Quote
Flightguy123 Posted August 25, 2011 Report Posted August 25, 2011 Hey Mark, i think its based off the code from the admin center, with the View Bids Changed it a bit to resemble the Air Malta one <h3>Current Booked Flights</h3> <?php /*echo '<pre>'; print_r($allbids); echo '</pre>';*/ if(!$allbids) { echo 'There are no bids!'; return; } ?> <table id="tabledlist" class="tablesorter"> <thead> <tr> <th>Route</th> <th>Pilot</th> <th>Day Filed</th> <th>Options</th> </tr> </thead> <tbody> <?php foreach($allbids as $bid) {?> <tr id="row<?php echo $bid->bidid?>"> <td><?php echo $bid->code.$bid->flightnum."({$bid->depicao} - {$bid->arricao})"?></td> <td><?php echo PilotData::GetPilotCode($bid->code, $bid->flightnum).' - '.$bid->firstname.' '.$bid->lastname; ?></td> <td><?php echo $bid->dateadded; ?></td> <td> <button href="<?php echo url('/schedules/brief/'.$bid->routeid);?>"> Brief</button> </td> </tr> <?php } ?> </tbody> </table> 1 Quote
Moderators mark1million Posted August 25, 2011 Author Moderators Report Posted August 25, 2011 Ah yes of course, that's what happens when you finish a 10 hour day, cant think straight lol. Thanks again for that, much appreciated. Quote
Moderators mark1million Posted August 25, 2011 Author Moderators Report Posted August 25, 2011 Hmmmmm, its not pulling any of the bids for some reason. Quote
Flightguy123 Posted August 26, 2011 Report Posted August 26, 2011 Hmmmmm, its not pulling any of the bids for some reason. Oh, yea cause there is no module set to grab it , let me see if I can make a quick one with the limit PHP skills i have Quote
Moderators mark1million Posted August 26, 2011 Author Moderators Report Posted August 26, 2011 I think there is already a public function, I will have a look. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.