Jump to content

Problem with the boarding pass


chrisbontnewydd

Recommended Posts

I have modified the boarding pass template, but I'm getting this error:

Parse error: syntax error, unexpected $end in /home/vol7/byethost5.com/b5_3263459/htdocs/core/templates/schedule_boarding_pass.tpl on line 70

I don't know what's causing it.

Here is the code:

<?php
# This will only show this message if it's not a popup window
# Ends on line 13-15
if(!isset($_GET['newwindow']))
{
?>
<h1>Requirements for Online Checkin</h1>

<p>To proceed through Security Checkpoint, you will need a government-issued photo ID and either a Boarding Pass or Security Document. Customers under 18 years of age are not required to show government-issued photo ID.</p>

<p><a href="#" 
onclick="window.open('<?php echo SITE_URL?>/action.php/schedules/boardingpass/<?php echo $schedule->id?>?newwindow'); return false;">Open in new window for printing</a></p>






  <style type="text/css">
<!--
.tdback { background-image: url(http://flybluesky.byethost5.com/lib/images/boarding-pass.jpg);}
-->
  </style>
<table style="text-align: left; width: 473px; height: 195px;" border="0" cellpadding="0" cellspacing="0">

  <tbody>

    <tr>

      <td class="tdback"><small><small><span style="font-family: Helvetica,Arial,sans-serif;"><small><small><br>
      <br>
      <br>
      <big><big><br>
      </big><br>
      </big></small><big><big><br>
      </big></big></small><br>
                   
                   
     <?php echo Auth::$userinfo->firstname.' '.Auth::$userinfo->lastname?></span><br style="font-family: Helvetica,Arial,sans-serif;">
      <span style="font-family: Helvetica,Arial,sans-serif;"> 
                   
                   
   <?php echo Auth::$userinfo->code.strtoupper(substr(md5(Auth::$userinfo->pilotid), 0, 6))?></span><br style="font-family: Helvetica,Arial,sans-serif;">
      <span style="font-family: Helvetica,Arial,sans-serif;"> 
                   
                   
   <?php echo chr(rand(65, 90)); 
echo rand(100000, 999999);	?><br>
      <big><big>             <?php echo chr(rand(65, 69));		
echo rand(1, 20);	?>
                   
                   
                   
                   
 </big><?php echo $schedule->aircraft?></big><br>
      <br>
             <small><?php echo $schedule->code.$schedule->flightnum?><br>
             <small><?php echo "$schedule->depname ($schedule->depicao)";?> at <?php echo $schedule->deptime; ?><small><small><br>
      <big><big>               
   <?php echo "$schedule->arrname ($schedule->arricao)"; ?> at <?php echo $schedule->arrtime;?><br>
      </big></big></small></small></small></small></span></small></small></td>

    </tr>

  </tbody>
</table>




108_61331a3b151b5c76e07bba3d20102db5880f40d1

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