Jump to content

Bid Flight on a Different Page [SOLVED]


Jeff

Recommended Posts

Is it possible to bid on a flight from the schedule_details.tpl page? I am trying to use this code to bid on the flight, but it does not do anything when clicked on.

<?php 
               # Don't allow overlapping bids and a bid exists
               if(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0)
               {
               ?>
                       <a id="<?php echo $route->id; ?>" class="addbid" 
                               href="<?php echo actionurl('/schedules/addbid');?>"><img src="http://www.mysite.net/lib/skins/cityportal/images/purchase2.png" srcover="http://www.mysite.net/lib/skins/cityportal/images/purchase2.png" srcdown="http://www.mysite.net/lib/skins/cityportal/images/purchase2.png" alt="Bid Flight" /></a>
               <?php
               }
               else
               {
                       if(Auth::LoggedIn())
                       {
                        ?>
                               <a id="<?php echo $route->id; ?>" class="addbid" 
                                       href="<?php echo url('/schedules/addbid');?>"><img src="http://www.mysite.net/lib/skins/cityportal/images/purchase2.png" srcover="http://www.mysite.net/lib/skins/cityportal/images/purchase2.png" srcdown="http://www.mysite.net/lib/skins/cityportal/images/purchase2.png" alt="Bid Flight"/></a><br />
                       <?php                    
                       }
               }               
               ?>

Link to comment
Share on other sites

I used this to get it working:

<?php 
               # Don't allow overlapping bids and a bid exists
               if(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0)
               {
               ?>
                       <a id="<?php echo $schedule->id; ?>" class="addbid" 
                               href="<?php echo actionurl('/schedules/addbid');?>"><img src="http://www.mysite.net/lib/skins/cityportal/images/purchase2.png" srcover="http://www.mysite.net/lib/skins/cityportal/images/purchase2.png" srcdown="http://www.mysite.net/lib/skins/cityportal/images/purchase2.png" alt="Bid Flight" /></a>
               <?php
               }
               else
               {
                       if(Auth::LoggedIn())
                       {
                        ?>
                               <a id="<?php echo $schedule->id; ?>" class="addbid" 
                                       href="<?php echo url('/schedules/addbid');?>"><img src="http://www.mysite.net/lib/skins/cityportal/images/purchase2.png" srcover="http://www.mysite.net/lib/skins/cityportal/images/purchase2.png" srcdown="http://www.mysite.net/lib/skins/cityportal/images/purchase2.png" alt="Bid Flight"/></a><br />
                       <?php                    
                       }
               }               
               ?>

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