Jump to content

[MOD] for Booking


CVV001

Recommended Posts

I have modified the template to display the results of passengers booking. The option "Add to bid" is permitted only if the flight type is for passengers ("P"). For Cargo or other flight types the "Add to bid" link is replaced with a message "Not for Pax".

Ciao

Here is the entire code to replace in the file core/templates/booking_results.tpl

---------------------------------------------------------------------------------

<p><a href="<?php echo SITE_URL?>/index.php/booking">Search for Flights</a>    <b><a href="<?php echo SITE_URL?>/index.php/booking/results">Search Results</a></b></p>

<table width="100%" border="1px">

<tr>

<td><strong>FLIGHT TYPE</strong></td>

<td><strong>DEPART</strong></td>

<td><strong>ARRIVE</strong></td>

<td><strong>FLIGHT</strong></td>

<td><strong>AIRCRAFT</strong></td>

<td><strong>DURATION</strong></td>

<td><strong>PRICE</strong></td>

<td><strong>OPTIONS</strong></td>

</tr>

<?php

if (!$allresults)

{ ?>

<tr><td>No Routes Found!</td></tr>

<?php }

else

{ ?>

<?php foreach($allresults as $result) { ?>

<tr>

<td><p><strong><?php echo $result->flighttype; ?></strong><br />

<td><p><strong><?php echo $result->deptime; ?></strong><br />

<?php echo $result->depname; ?>

</p></td>

<td><p><strong><?php echo $result->arrtime; ?></strong><br />

<?php echo $result->arrname; ?></p></td>

<td><strong><?php echo $result->code.''.$result->flightnum?></strong></td>

<td><strong><?php echo $result->aircraft; ?></strong></td>

<td><strong><?php echo $result->flighttime; ?></strong></td>

<td><strong>Euro <?php echo $result->price; ?></strong></td>

<?php if($result->flighttype!="P")

{ ?>

<td><center><b><font color=red><?php echo 'Not for Pax'; ?> </font></b></center></td>

<?php }

else

{ ?>

<td><center><b><a id="<?php echo $result->id; ?>" class="addbid" href="<?php echo SITE_URL?>/action.php/Schedules/addbid/">Add to Bid</a></b></center></td>

<?php } ?>

</tr>

<?php } ?>

<?php } ?>

</table>

Link to comment
Share on other sites

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...