# \[MOD\] for Booking

**URL:** <https://forum.phpvms.net/t/mod-for-booking/3709>\
**Category:** Development Help\
**Created:** [November 26, 2010, 2:42pm UTC](https://forum.phpvms.net/t/mod-for-booking/3709 "2010-11-26T14:42:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![CVV001](https://forum.phpvms.net/user_avatar/forum.phpvms.net/cvv001/32/101_2.png) [@CVV001](https://forum.phpvms.net/u/CVV001)\
**Post date:** [November 26, 2010, 2:42pm UTC](https://forum.phpvms.net/t/mod-for-booking/3709/1 "2010-11-26T14:42:14Z")

</div>

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\>&nbsp;&nbsp;&nbsp;&nbsp;\<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\>
