Jump to content

Help to make normal form template "boardingpass" !!!


bass

Recommended Posts

I'm sure there's a better way to do this, but here's a quick solution

<?php
# This will only show this message if it's not a popup window
# Ends on line 13-15
if(!isset($_GET['newwindow']))
{
?>
<h3>Requirements for Online Checkin</h3>
<p>To proceed through Security Checkpoint, you will need a government-issued photo ID and either a Boarding Pass or Security document. <br />
Customers under 18 years of age are not required to show government-issued photo ID.</p>
<p><a href="#"
onclick="window.open('<?php echo actionurl('/schedules/boardingpass/'.$schedule->id.'?newwindow');?>'); return false;">Open in new window for printing</a></p>
<?php
}
?>
<style>
/* Some integrated styles here, for the popup */
#pass1 {
background-image: url(http://va-airlaguna.do.am/12.png);
background-repeat: no-repeat;
padding-bottom:300px;
}
</style>
<div id="pass1">
<p style="position:absolute;margin-left:173px; padding-top:100px;">
  <strong><?php
   echo chr(rand(65, 90));
   echo rand(1, 30);
  ?></strong></p><br />
<p style="position:absolute;margin-left:284px; padding-top:80px;">
   <strong><?php
   echo chr(rand(65, 90));
  ?></strong>
	    <br /></p>
<p style="position:absolute;margin-left:440px; padding-top:80px;">
   <strong>
		 <?php echo $schedule->flightlevel; ?>
		 </strong>
	    <br /></p>
<p style="position:absolute;margin-left:230px; padding-top:129px;">
   <strong>
		 Внутренний
		 </strong>
	    <br /></p>
<p style="position:absolute;margin-left:170px; padding-top:190px;">
   <strong>
		 <?php echo "$schedule->depicao";?>
		 </strong>
	    <br /></p>
<p style="position:absolute;margin-left:376px; padding-top:190px;">
   <strong>
		 <?php echo "$schedule->arricao";?>
		 </strong>
	    <br /></p>
<p style="position:absolute;margin-left:170px; padding-top:225px;">
   <strong>
		 <?php echo $schedule->code.$schedule->flightnum?>
		 </strong>
	    <br /></p>
<p style="position:absolute;margin-left:588px; padding-top:75px;">
   <strong>
		 <?php echo $schedule->deptime; ?>
		 </strong>
	    <br /></p>
<p style="position:absolute;margin-left:588px; padding-top:130px;">
   <strong>
		 <?php echo $schedule->arrtime; ?>
		 </strong>
	    <br /></p>
<p style="position:absolute;margin-left:590px; padding-top:170px;">
   <strong>
		 <?php echo $schedule->aircraft?>
		 </strong>
	    <br /></p>
<p style="position:absolute;margin-left:660px; padding-top:60px;">
   <img src="http://va-airlaguna.do.am/3xqzq-Earth_Rotation_Animation.gif" style="height:40%;width:40%;" alt="Rotating Globe" />
	    <br /></p>
</div>

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